]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/mac/_controls_wrap.cpp
reSWIGged
[wxWidgets.git] / wxPython / src / mac / _controls_wrap.cpp
CommitLineData
d55e5bfc
RD
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
1bd55598 3 * Version 1.3.29
d55e5bfc
RD
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11#define SWIGPYTHON
1bd55598 12#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
d55e5bfc
RD
13
14#ifdef __cplusplus
15template<class T> class SwigValueWrapper {
16 T *tt;
17public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
36ed4f51 27};
d55e5bfc
RD
28#endif
29
1bd55598 30/* -----------------------------------------------------------------------------
32fe5131
RD
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
1bd55598 33 * ----------------------------------------------------------------------------- */
d55e5bfc 34
32fe5131
RD
35/* template workaround for compilers that cannot correctly implement the C++ standard */
36#ifndef SWIGTEMPLATEDISAMBIGUATOR
1bd55598
RD
37# if defined(__SUNPRO_CC)
38# if (__SUNPRO_CC <= 0x560)
39# define SWIGTEMPLATEDISAMBIGUATOR template
40# else
41# define SWIGTEMPLATEDISAMBIGUATOR
42# endif
43# else
44# define SWIGTEMPLATEDISAMBIGUATOR
45# endif
36ed4f51 46#endif
d55e5bfc 47
32fe5131
RD
48/* inline attribute */
49#ifndef SWIGINLINE
50# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51# define SWIGINLINE inline
52# else
53# define SWIGINLINE
54# endif
55#endif
56
57/* attribute recognised by some compilers to avoid 'unused' warnings */
58#ifndef SWIGUNUSED
1bd55598
RD
59# if defined(__GNUC__)
60# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61# define SWIGUNUSED __attribute__ ((__unused__))
62# else
63# define SWIGUNUSED
64# endif
65# elif defined(__ICC)
66# define SWIGUNUSED __attribute__ ((__unused__))
32fe5131
RD
67# else
68# define SWIGUNUSED
69# endif
70#endif
71
1bd55598
RD
72#ifndef SWIGUNUSEDPARM
73# ifdef __cplusplus
74# define SWIGUNUSEDPARM(p)
75# else
76# define SWIGUNUSEDPARM(p) p SWIGUNUSED
77# endif
78#endif
79
32fe5131
RD
80/* internal SWIG method */
81#ifndef SWIGINTERN
82# define SWIGINTERN static SWIGUNUSED
83#endif
84
85/* internal inline SWIG method */
86#ifndef SWIGINTERNINLINE
87# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88#endif
89
1bd55598
RD
90/* exporting methods */
91#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92# ifndef GCC_HASCLASSVISIBILITY
93# define GCC_HASCLASSVISIBILITY
94# endif
95#endif
96
32fe5131
RD
97#ifndef SWIGEXPORT
98# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99# if defined(STATIC_LINKED)
100# define SWIGEXPORT
101# else
102# define SWIGEXPORT __declspec(dllexport)
103# endif
104# else
1bd55598
RD
105# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106# define SWIGEXPORT __attribute__ ((visibility("default")))
107# else
108# define SWIGEXPORT
109# endif
32fe5131
RD
110# endif
111#endif
112
113/* calling conventions for Windows */
114#ifndef SWIGSTDCALL
115# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116# define SWIGSTDCALL __stdcall
117# else
118# define SWIGSTDCALL
119# endif
120#endif
121
1bd55598
RD
122/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124# define _CRT_SECURE_NO_DEPRECATE
125#endif
32fe5131 126
d55e5bfc 127
1bd55598 128/* Python.h has to appear first */
36ed4f51 129#include <Python.h>
d55e5bfc 130
1bd55598 131/* -----------------------------------------------------------------------------
36ed4f51 132 * swigrun.swg
d55e5bfc 133 *
1bd55598
RD
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
d55e5bfc 137
36ed4f51
RD
138/* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
32fe5131 140#define SWIG_RUNTIME_VERSION "2"
d55e5bfc 141
36ed4f51
RD
142/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143#ifdef SWIG_TYPE_TABLE
32fe5131
RD
144# define SWIG_QUOTE_STRING(x) #x
145# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
d55e5bfc 147#else
32fe5131 148# define SWIG_TYPE_TABLE_NAME
36ed4f51
RD
149#endif
150
151/*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158*/
32fe5131 159
36ed4f51 160#ifndef SWIGRUNTIME
32fe5131 161# define SWIGRUNTIME SWIGINTERN
36ed4f51 162#endif
32fe5131 163
36ed4f51 164#ifndef SWIGRUNTIMEINLINE
32fe5131 165# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
d55e5bfc
RD
166#endif
167
1bd55598
RD
168/* Generic buffer size */
169#ifndef SWIG_BUFFER_SIZE
170# define SWIG_BUFFER_SIZE 1024
171#endif
172
173/* Flags for pointer conversions */
174#define SWIG_POINTER_DISOWN 0x1
175
176/* Flags for new pointer objects */
177#define SWIG_POINTER_OWN 0x1
178
179
180/*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260#define SWIG_OK (0)
261#define SWIG_ERROR (-1)
262#define SWIG_IsOK(r) (r >= 0)
263#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265/* The CastRankLimit says how many bits are used for the cast rank */
266#define SWIG_CASTRANKLIMIT (1 << 8)
267/* The NewMask denotes the object was created (using new/malloc) */
268#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269/* The TmpMask is for in/out typemaps that use temporal objects */
270#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271/* Simple returning values */
272#define SWIG_BADOBJ (SWIG_ERROR)
273#define SWIG_OLDOBJ (SWIG_OK)
274#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276/* Check, add and del mask methods */
277#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280#define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285/* Cast-Rank Mode */
286#if defined(SWIG_CASTRANK_MODE)
287# ifndef SWIG_TypeRank
288# define SWIG_TypeRank unsigned long
289# endif
290# ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291# define SWIG_MAXCASTRANK (2)
292# endif
293# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297}
298SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300}
301#else /* no cast-rank mode */
302# define SWIG_AddCast
303# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304#endif
305
306
307
308
32fe5131
RD
309#include <string.h>
310
d55e5bfc
RD
311#ifdef __cplusplus
312extern "C" {
313#endif
314
315typedef void *(*swig_converter_func)(void *);
316typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
32fe5131 318/* Structure to store inforomation on one type */
d55e5bfc 319typedef struct swig_type_info {
32fe5131
RD
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
1bd55598 325 int owndata; /* flag if the structure owns the clientdata */
d55e5bfc
RD
326} swig_type_info;
327
32fe5131
RD
328/* Structure to store a type and conversion function used for casting */
329typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334} swig_cast_info;
335
336/* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346} swig_module_info;
347
36ed4f51
RD
348/*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354*/
355SWIGRUNTIME int
356SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
1bd55598 361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
36ed4f51
RD
362 }
363 return (l1 - f1) - (l2 - f2);
364}
365
366/*
367 Check type equivalence in a name list like <name1>|<name2>|...
32fe5131 368 Return 0 if not equal, 1 if equal
36ed4f51
RD
369*/
370SWIGRUNTIME int
371SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
32fe5131 379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
36ed4f51
RD
380 if (*ne) ++ne;
381 }
382 return equiv;
383}
384
385/*
32fe5131
RD
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
36ed4f51 388*/
32fe5131
RD
389SWIGRUNTIME int
390SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
36ed4f51 397 }
32fe5131
RD
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
36ed4f51 400 }
32fe5131 401 return equiv;
36ed4f51
RD
402}
403
32fe5131
RD
404
405/* think of this as a c++ template<> or a scheme macro */
406#define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
36ed4f51
RD
427/*
428 Check the typename
429*/
32fe5131 430SWIGRUNTIME swig_cast_info *
36ed4f51 431SWIG_TypeCheck(const char *c, swig_type_info *ty) {
32fe5131
RD
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433}
434
435/* Same as previous function, except strcmp is replaced with a pointer comparison */
436SWIGRUNTIME swig_cast_info *
437SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
36ed4f51
RD
439}
440
441/*
442 Cast a pointer up an inheritance hierarchy
443*/
444SWIGRUNTIMEINLINE void *
32fe5131 445SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
36ed4f51
RD
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447}
448
449/*
450 Dynamic pointer casting. Down an inheritance hierarchy
451*/
452SWIGRUNTIME swig_type_info *
453SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461}
462
463/*
464 Return the name associated with this type
465*/
466SWIGRUNTIMEINLINE const char *
467SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469}
470
471/*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474*/
475SWIGRUNTIME const char *
476SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
1bd55598 481 if (!type) return NULL;
36ed4f51
RD
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491}
492
36ed4f51
RD
493/*
494 Set the clientdata field for a type
495*/
496SWIGRUNTIME void
32fe5131
RD
497SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
36ed4f51
RD
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
32fe5131
RD
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
36ed4f51 507 }
32fe5131
RD
508 }
509 cast = cast->next;
510 }
511}
1bd55598
RD
512SWIGRUNTIME void
513SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516}
517
32fe5131
RD
518/*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525*/
526SWIGRUNTIME swig_type_info *
527SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
36ed4f51 556 }
32fe5131
RD
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560}
561
562/*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570*/
571SWIGRUNTIME swig_type_info *
572SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
36ed4f51 591 }
32fe5131
RD
592
593 /* neither found a match */
594 return 0;
36ed4f51
RD
595}
596
597/*
598 Pack binary data into a string
599*/
600SWIGRUNTIME char *
601SWIG_PackData(char *c, void *ptr, size_t sz) {
32fe5131
RD
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
36ed4f51 605 for (; u != eu; ++u) {
32fe5131 606 register unsigned char uu = *u;
36ed4f51
RD
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611}
612
613/*
614 Unpack binary data from a string
615*/
616SWIGRUNTIME const char *
617SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
32fe5131 619 register const unsigned char *eu = u + sz;
36ed4f51 620 for (; u != eu; ++u) {
32fe5131 621 register char d = *(c++);
1bd55598 622 register unsigned char uu;
36ed4f51
RD
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639}
640
36ed4f51
RD
641/*
642 Pack 'void *' into a string buffer.
643*/
644SWIGRUNTIME char *
645SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653}
654
655SWIGRUNTIME const char *
656SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666}
667
668SWIGRUNTIME char *
669SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681}
d55e5bfc 682
36ed4f51
RD
683SWIGRUNTIME const char *
684SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694}
d55e5bfc
RD
695
696#ifdef __cplusplus
697}
698#endif
699
1bd55598
RD
700/* Errors in SWIG */
701#define SWIG_UnknownError -1
702#define SWIG_IOError -2
703#define SWIG_RuntimeError -3
704#define SWIG_IndexError -4
705#define SWIG_TypeError -5
706#define SWIG_DivisionByZero -6
707#define SWIG_OverflowError -7
708#define SWIG_SyntaxError -8
709#define SWIG_ValueError -9
710#define SWIG_SystemError -10
711#define SWIG_AttributeError -11
712#define SWIG_MemoryError -12
713#define SWIG_NullReferenceError -13
d55e5bfc 714
1bd55598
RD
715
716
717/* Python.h has to appear first */
718#include <Python.h>
719
720/* Add PyOS_snprintf for old Pythons */
721#if PY_VERSION_HEX < 0x02020000
722# if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723# define PyOS_snprintf _snprintf
724# else
725# define PyOS_snprintf snprintf
726# endif
727#endif
728
729/* A crude PyString_FromFormat implementation for old Pythons */
730#if PY_VERSION_HEX < 0x02020000
731
732#ifndef SWIG_PYBUFFER_SIZE
733# define SWIG_PYBUFFER_SIZE 1024
734#endif
735
736static PyObject *
737PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745}
746#endif
747
748/* Add PyObject_Del for old Pythons */
749#if PY_VERSION_HEX < 0x01060000
750# define PyObject_Del(op) PyMem_DEL((op))
751#endif
752#ifndef PyObject_DEL
753# define PyObject_DEL PyObject_Del
754#endif
755
756/* A crude PyExc_StopIteration exception for old Pythons */
757#if PY_VERSION_HEX < 0x02020000
758# ifndef PyExc_StopIteration
759# define PyExc_StopIteration PyExc_RuntimeError
760# endif
761# ifndef PyObject_GenericGetAttr
762# define PyObject_GenericGetAttr 0
763# endif
36ed4f51 764#endif
1bd55598
RD
765/* Py_NotImplemented is defined in 2.1 and up. */
766#if PY_VERSION_HEX < 0x02010000
767# ifndef Py_NotImplemented
768# define Py_NotImplemented PyExc_RuntimeError
769# endif
770#endif
771
772
773/* A crude PyString_AsStringAndSize implementation for old Pythons */
774#if PY_VERSION_HEX < 0x02010000
775# ifndef PyString_AsStringAndSize
776# define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777# endif
778#endif
779
780/* PySequence_Size for old Pythons */
781#if PY_VERSION_HEX < 0x02000000
782# ifndef PySequence_Size
783# define PySequence_Size PySequence_Length
784# endif
785#endif
786
787
788/* PyBool_FromLong for old Pythons */
789#if PY_VERSION_HEX < 0x02030000
790static
791PyObject *PyBool_FromLong(long ok)
792{
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796}
797#endif
798
c370783e 799
36ed4f51 800/* -----------------------------------------------------------------------------
1bd55598 801 * error manipulation
36ed4f51 802 * ----------------------------------------------------------------------------- */
d55e5bfc 803
1bd55598
RD
804SWIGRUNTIME PyObject*
805SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845}
d55e5bfc 846
1bd55598
RD
847
848SWIGRUNTIME void
849SWIG_Python_AddErrorMsg(const char* mesg)
850{
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866}
867
868
869
870#if defined(SWIG_PYTHON_NO_THREADS)
871# if defined(SWIG_PYTHON_THREADS)
872# undef SWIG_PYTHON_THREADS
873# endif
874#endif
875#if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876# if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877# if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878# define SWIG_PYTHON_USE_GIL
879# endif
880# endif
881# if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882# ifndef SWIG_PYTHON_INITIALIZE_THREADS
883# define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884# endif
885# ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902# define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903# define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904# define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905# define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906# else /* C code */
907# define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908# define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909# define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910# define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911# endif
912# else /* Old thread way, not implemented, user must provide it */
913# if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914# define SWIG_PYTHON_INITIALIZE_THREADS
915# endif
916# if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918# endif
919# if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920# define SWIG_PYTHON_THREAD_END_BLOCK
921# endif
922# if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924# endif
925# if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926# define SWIG_PYTHON_THREAD_END_ALLOW
927# endif
928# endif
929#else /* No thread support */
930# define SWIG_PYTHON_INITIALIZE_THREADS
931# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932# define SWIG_PYTHON_THREAD_END_BLOCK
933# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934# define SWIG_PYTHON_THREAD_END_ALLOW
36ed4f51 935#endif
d55e5bfc 936
1bd55598
RD
937/* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
36ed4f51 940
1bd55598
RD
941#ifdef __cplusplus
942extern "C" {
943#if 0
944} /* cc-mode */
945#endif
946#endif
36ed4f51
RD
947
948/* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
d55e5bfc 951
36ed4f51 952/* Constant Types */
36ed4f51
RD
953#define SWIG_PY_POINTER 4
954#define SWIG_PY_BINARY 5
955
956/* Constant information structure */
957typedef struct swig_const_info {
1bd55598
RD
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
36ed4f51 964} swig_const_info;
d55e5bfc 965
d55e5bfc 966#ifdef __cplusplus
1bd55598
RD
967#if 0
968{ /* cc-mode */
969#endif
36ed4f51
RD
970}
971#endif
d55e5bfc 972
d55e5bfc 973
1bd55598
RD
974/* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
36ed4f51
RD
978 * pyrun.swg
979 *
1bd55598
RD
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
36ed4f51 983 *
1bd55598 984 * ----------------------------------------------------------------------------- */
d55e5bfc 985
36ed4f51 986/* Common SWIG API */
d55e5bfc 987
4f89b6b7
RD
988#if PY_VERSION_HEX < 0x02050000
989typedef int Py_ssize_t;
990#endif
991
1bd55598
RD
992/* for raw pointers */
993#define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997#define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998#define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999#define swig_owntype int
d55e5bfc 1000
1bd55598
RD
1001/* for raw packed data */
1002#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
d55e5bfc 1004
1bd55598
RD
1005/* for class or struct pointers */
1006#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
d55e5bfc 1008
1bd55598
RD
1009/* for C or C++ function pointers */
1010#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
d55e5bfc 1012
1bd55598
RD
1013/* for C++ member pointers, ie, member methods */
1014#define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015#define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
32fe5131 1016
d55e5bfc 1017
1bd55598 1018/* Runtime API */
d55e5bfc 1019
1bd55598
RD
1020#define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021#define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022#define SWIG_NewClientData(obj) PySwigClientData_New(obj)
32fe5131 1023
1bd55598
RD
1024#define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025#define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026#define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027#define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028#define SWIG_fail goto fail
32fe5131 1029
d55e5bfc 1030
1bd55598 1031/* Runtime API implementation */
36ed4f51 1032
1bd55598 1033/* Error manipulation */
36ed4f51 1034
1bd55598
RD
1035SWIGINTERN void
1036SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
d55e5bfc
RD
1041}
1042
1bd55598
RD
1043SWIGINTERN void
1044SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
36ed4f51 1048}
d55e5bfc 1049
1bd55598 1050#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
32fe5131 1051
1bd55598 1052/* Set a constant value */
36ed4f51 1053
1bd55598
RD
1054SWIGINTERN void
1055SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
d55e5bfc
RD
1058}
1059
1bd55598 1060/* Append a value to the result obj */
d55e5bfc 1061
1bd55598
RD
1062SWIGINTERN PyObject*
1063SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064#if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080#else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
c370783e 1088 } else {
1bd55598
RD
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
c370783e 1100 }
1bd55598
RD
1101 return result;
1102#endif
d55e5bfc 1103}
36ed4f51 1104
1bd55598 1105/* Unpack the argument tuple */
36ed4f51 1106
1bd55598
RD
1107SWIGINTERN int
1108SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109{
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143}
1144
1145/* A functor is a function object with one single object argument */
1146#if PY_VERSION_HEX >= 0x02020000
1147#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148#else
1149#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150#endif
1151
1152/*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155*/
1156#ifdef __cplusplus
1157#define SWIG_STATIC_POINTER(var) var
1158#else
1159#define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160#endif
1161
1162/* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166/* Flags for new pointer objects */
1167#define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168#define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170#define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172#ifdef __cplusplus
1173extern "C" {
1174#if 0
1175} /* cc-mode */
1176#endif
1177#endif
1178
1179/* How to access Py_None */
1180#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181# ifndef SWIG_PYTHON_NO_BUILD_NONE
1182# ifndef SWIG_PYTHON_BUILD_NONE
1183# define SWIG_PYTHON_BUILD_NONE
1184# endif
1185# endif
1186#endif
1187
1188#ifdef SWIG_PYTHON_BUILD_NONE
1189# ifdef Py_None
1190# undef Py_None
1191# define Py_None SWIG_Py_None()
1192# endif
1193SWIGRUNTIMEINLINE PyObject *
1194_SWIG_Py_None(void)
1195{
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199}
1200SWIGRUNTIME PyObject *
1201SWIG_Py_None(void)
1202{
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205}
1206#endif
1207
1208/* The python void return value */
1209
1210SWIGRUNTIMEINLINE PyObject *
1211SWIG_Py_Void(void)
1212{
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216}
1217
1218/* PySwigClientData */
1219
1220typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227} PySwigClientData;
1228
1229SWIGRUNTIMEINLINE int
1230SWIG_Python_CheckImplicit(swig_type_info *ty)
1231{
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234}
1235
1236SWIGRUNTIMEINLINE PyObject *
1237SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241}
1242
1243
1244SWIGRUNTIME PySwigClientData *
1245PySwigClientData_New(PyObject* obj)
1246{
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260#if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262#else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264#endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284#ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286#else
1287 data->delargs = 0;
1288#endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295}
1296
1297SWIGRUNTIME void
1298PySwigClientData_Del(PySwigClientData* data)
1299{
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303}
1304
1305/* =============== PySwigObject =====================*/
1306
1307typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313} PySwigObject;
1314
1315SWIGRUNTIME PyObject *
1316PySwigObject_long(PySwigObject *v)
1317{
1318 return PyLong_FromVoidPtr(v->ptr);
1319}
1320
1321SWIGRUNTIME PyObject *
1322PySwigObject_format(const char* fmt, PySwigObject *v)
1323{
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337}
1338
1339SWIGRUNTIME PyObject *
1340PySwigObject_oct(PySwigObject *v)
1341{
1342 return PySwigObject_format("%o",v);
1343}
1344
1345SWIGRUNTIME PyObject *
1346PySwigObject_hex(PySwigObject *v)
1347{
1348 return PySwigObject_format("%x",v);
1349}
1350
1351SWIGRUNTIME PyObject *
1352#ifdef METH_NOARGS
1353PySwigObject_repr(PySwigObject *v)
1354#else
1355PySwigObject_repr(PySwigObject *v, PyObject *args)
1356#endif
1357{
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363#ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365#else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367#endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371}
1372
1373SWIGRUNTIME int
1374PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375{
1376#ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378#else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380#endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388}
1389
1390SWIGRUNTIME PyObject *
1391PySwigObject_str(PySwigObject *v)
1392{
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396}
1397
1398SWIGRUNTIME int
1399PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400{
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404}
1405
1406SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408SWIGRUNTIME PyTypeObject*
1409PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412}
1413
1414SWIGRUNTIMEINLINE int
1415PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418}
1419
1420SWIGRUNTIME PyObject *
1421PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423SWIGRUNTIME void
1424PySwigObject_dealloc(PyObject *v)
1425{
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448#if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450#endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455}
1456
1457SWIGRUNTIME PyObject*
1458PySwigObject_append(PyObject* v, PyObject* next)
1459{
1460 PySwigObject *sobj = (PySwigObject *) v;
1461#ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465#endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472}
1473
1474SWIGRUNTIME PyObject*
1475#ifdef METH_NOARGS
1476PySwigObject_next(PyObject* v)
1477#else
1478PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479#endif
1480{
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488}
1489
1490SWIGINTERN PyObject*
1491#ifdef METH_NOARGS
1492PySwigObject_disown(PyObject *v)
1493#else
1494PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495#endif
1496{
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500}
1501
1502SWIGINTERN PyObject*
1503#ifdef METH_NOARGS
1504PySwigObject_acquire(PyObject *v)
1505#else
1506PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507#endif
1508{
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512}
1513
1514SWIGINTERN PyObject*
1515PySwigObject_own(PyObject *v, PyObject *args)
1516{
1517 PyObject *val = 0;
1518#if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520#else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522#endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531#ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537#else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543#endif
1544 }
1545 return obj;
1546 }
1547}
1548
1549#ifdef METH_O
1550static PyMethodDef
1551swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559};
1560#else
1561static PyMethodDef
1562swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570};
1571#endif
1572
1573#if PY_VERSION_HEX < 0x02020000
1574SWIGINTERN PyObject *
1575PySwigObject_getattr(PySwigObject *sobj,char *name)
1576{
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578}
1579#endif
1580
1581SWIGRUNTIME PyTypeObject*
1582_PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
36ed4f51
RD
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
32fe5131 1609#if PY_VERSION_HEX >= 0x02020000
36ed4f51 1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
32fe5131
RD
1611#elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
36ed4f51
RD
1613#endif
1614 };
1615
1bd55598 1616 static PyTypeObject pyswigobject_type;
32fe5131 1617 static int type_init = 0;
36ed4f51 1618 if (!type_init) {
1bd55598
RD
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628#if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630#else
1631 (getattrfunc)0, /* tp_getattr */
36ed4f51 1632#endif
1bd55598
RD
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
36ed4f51 1651#if PY_VERSION_HEX >= 0x02020000
1bd55598
RD
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
d55e5bfc 1672#endif
36ed4f51 1673#if PY_VERSION_HEX >= 0x02030000
1bd55598 1674 0, /* tp_del */
36ed4f51
RD
1675#endif
1676#ifdef COUNT_ALLOCS
1bd55598 1677 0,0,0,0 /* tp_alloc -> tp_next */
36ed4f51 1678#endif
1bd55598 1679 };
32fe5131 1680 pyswigobject_type = tmp;
1bd55598 1681 pyswigobject_type.ob_type = &PyType_Type;
36ed4f51
RD
1682 type_init = 1;
1683 }
32fe5131 1684 return &pyswigobject_type;
36ed4f51
RD
1685}
1686
1687SWIGRUNTIME PyObject *
1bd55598 1688PySwigObject_New(void *ptr, swig_type_info *ty, int own)
36ed4f51 1689{
1bd55598
RD
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
32fe5131 1696 }
1bd55598 1697 return (PyObject *)sobj;
36ed4f51
RD
1698}
1699
1700/* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704typedef struct {
1705 PyObject_HEAD
1706 void *pack;
1bd55598 1707 swig_type_info *ty;
36ed4f51
RD
1708 size_t size;
1709} PySwigPacked;
1710
1711SWIGRUNTIME int
1bd55598 1712PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
36ed4f51
RD
1713{
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
1719 }
1bd55598 1720 fputs(v->ty->name,fp);
36ed4f51
RD
1721 fputs(">", fp);
1722 return 0;
1723}
1724
1725SWIGRUNTIME PyObject *
1726PySwigPacked_repr(PySwigPacked *v)
1727{
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1bd55598 1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
36ed4f51 1731 } else {
1bd55598 1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
36ed4f51
RD
1733 }
1734}
1735
1736SWIGRUNTIME PyObject *
1737PySwigPacked_str(PySwigPacked *v)
1738{
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1bd55598 1741 return PyString_FromFormat("%s%s", result, v->ty->name);
36ed4f51 1742 } else {
1bd55598 1743 return PyString_FromString(v->ty->name);
36ed4f51
RD
1744 }
1745}
1746
1747SWIGRUNTIME int
1748PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1749{
1bd55598
RD
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
36ed4f51
RD
1754}
1755
1bd55598 1756SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
36ed4f51
RD
1757
1758SWIGRUNTIME PyTypeObject*
32fe5131 1759PySwigPacked_type(void) {
1bd55598
RD
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762}
1763
1764SWIGRUNTIMEINLINE int
1765PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768}
1769
1770SWIGRUNTIME void
1771PySwigPacked_dealloc(PyObject *v)
1772{
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778}
1779
1780SWIGRUNTIME PyTypeObject*
1781_PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814#if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
36ed4f51
RD
1835#endif
1836#if PY_VERSION_HEX >= 0x02030000
1bd55598 1837 0, /* tp_del */
36ed4f51
RD
1838#endif
1839#ifdef COUNT_ALLOCS
1bd55598 1840 0,0,0,0 /* tp_alloc -> tp_next */
36ed4f51 1841#endif
1bd55598 1842 };
32fe5131 1843 pyswigpacked_type = tmp;
1bd55598 1844 pyswigpacked_type.ob_type = &PyType_Type;
36ed4f51
RD
1845 type_init = 1;
1846 }
32fe5131 1847 return &pyswigpacked_type;
36ed4f51
RD
1848}
1849
1850SWIGRUNTIME PyObject *
1bd55598 1851PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
36ed4f51 1852{
1bd55598
RD
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
36ed4f51 1855 void *pack = malloc(size);
32fe5131
RD
1856 if (pack) {
1857 memcpy(pack, ptr, size);
1bd55598
RD
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
32fe5131 1864 }
36ed4f51 1865 }
1bd55598 1866 return (PyObject *) sobj;
36ed4f51
RD
1867}
1868
1bd55598 1869SWIGRUNTIME swig_type_info *
36ed4f51
RD
1870PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871{
1bd55598
RD
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
36ed4f51
RD
1880}
1881
36ed4f51 1882/* -----------------------------------------------------------------------------
1bd55598 1883 * pointers/data manipulation
36ed4f51
RD
1884 * ----------------------------------------------------------------------------- */
1885
1bd55598
RD
1886SWIGRUNTIMEINLINE PyObject *
1887_SWIG_This(void)
1888{
1889 return PyString_FromString("this");
1890}
36ed4f51 1891
1bd55598
RD
1892SWIGRUNTIME PyObject *
1893SWIG_This(void)
1894{
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897}
36ed4f51 1898
1bd55598 1899/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
36ed4f51 1900
1bd55598
RD
1901SWIGRUNTIME PySwigObject *
1902SWIG_Python_GetSwigThis(PyObject *pyobj)
36ed4f51 1903{
1bd55598
RD
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917#ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922#endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
36ed4f51 1926 } else {
1bd55598
RD
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
36ed4f51 1929 }
36ed4f51 1930 }
1bd55598
RD
1931 }
1932#else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940#endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
36ed4f51
RD
1947 }
1948}
1949
1bd55598
RD
1950/* Acquire a pointer value */
1951
1952SWIGRUNTIME int
1953SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
36ed4f51 1961 }
1bd55598 1962 return 0;
36ed4f51
RD
1963}
1964
1bd55598
RD
1965/* Convert a pointer value */
1966
36ed4f51 1967SWIGRUNTIME int
1bd55598
RD
1968SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
36ed4f51 1992 } else {
1bd55598
RD
1993 if (ptr) *ptr = vptr;
1994 break;
36ed4f51 1995 }
36ed4f51 1996 }
1bd55598
RD
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
36ed4f51
RD
2042 }
2043}
2044
1bd55598
RD
2045/* Convert a function ptr value */
2046
36ed4f51 2047SWIGRUNTIME int
1bd55598
RD
2048SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
36ed4f51 2051 } else {
1bd55598
RD
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
4f89b6b7 2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
1bd55598
RD
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
36ed4f51
RD
2069 }
2070}
2071
1bd55598 2072/* Convert a packed value value */
36ed4f51 2073
36ed4f51 2074SWIGRUNTIME int
1bd55598
RD
2075SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
36ed4f51 2084 }
1bd55598
RD
2085 return SWIG_OK;
2086}
36ed4f51 2087
1bd55598
RD
2088/* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
36ed4f51 2091
1bd55598
RD
2092/*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095*/
36ed4f51 2096
1bd55598
RD
2097SWIGRUNTIME PyObject*
2098SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099{
2100#if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
36ed4f51 2115 }
1bd55598
RD
2116#else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119#endif
36ed4f51 2120 }
1bd55598
RD
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
36ed4f51 2126 }
1bd55598
RD
2127 return inst;
2128#else
2129#if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136#else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
36ed4f51 2140 }
1bd55598
RD
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
36ed4f51 2147 }
1bd55598
RD
2148#ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150#endif
2151#ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153#endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156#endif
2157#endif
36ed4f51
RD
2158}
2159
1bd55598
RD
2160SWIGRUNTIME void
2161SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162{
2163 PyObject *dict;
2164#if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
36ed4f51 2175#endif
1bd55598
RD
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179}
36ed4f51 2180
1bd55598
RD
2181
2182SWIGINTERN PyObject *
2183SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
36ed4f51 2191 } else {
1bd55598 2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
36ed4f51 2193 }
1bd55598 2194 return SWIG_Py_Void();
36ed4f51 2195 }
1bd55598
RD
2196}
2197
2198/* Create a new pointer object */
36ed4f51 2199
36ed4f51 2200SWIGRUNTIME PyObject *
1bd55598 2201SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
36ed4f51 2202 if (!ptr) {
1bd55598
RD
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
36ed4f51 2213 }
36ed4f51 2214 }
1bd55598 2215 return robj;
36ed4f51 2216 }
36ed4f51
RD
2217}
2218
1bd55598
RD
2219/* Create a new packed object */
2220
2221SWIGRUNTIMEINLINE PyObject *
36ed4f51 2222SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
1bd55598 2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
36ed4f51
RD
2224}
2225
2226/* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230#ifdef SWIG_LINK_RUNTIME
2231void *SWIG_ReturnGlobalTypeList(void *);
2232#endif
2233
32fe5131
RD
2234SWIGRUNTIME swig_module_info *
2235SWIG_Python_GetModule(void) {
36ed4f51
RD
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239#ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2241#else
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
36ed4f51 2248#endif
32fe5131
RD
2249 }
2250 return (swig_module_info *) type_pointer;
36ed4f51
RD
2251}
2252
32fe5131
RD
2253#if PY_MAJOR_VERSION < 2
2254/* PyModule_AddObject function was introduced in Python 2.0. The following function
1bd55598 2255 is copied out of Python/modsupport.c in python version 2.3.4 */
32fe5131
RD
2256SWIGINTERN int
2257PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258{
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
1bd55598 2263 return SWIG_ERROR;
32fe5131
RD
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
1bd55598 2268 return SWIG_ERROR;
32fe5131
RD
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
1bd55598 2276 return SWIG_ERROR;
32fe5131
RD
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
1bd55598 2279 return SWIG_ERROR;
32fe5131 2280 Py_DECREF(o);
1bd55598 2281 return SWIG_OK;
36ed4f51 2282}
32fe5131 2283#endif
36ed4f51 2284
1bd55598
RD
2285SWIGRUNTIME void
2286SWIG_Python_DestroyModule(void *vptr)
2287{
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299}
2300
32fe5131
RD
2301SWIGRUNTIME void
2302SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
1bd55598 2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
32fe5131
RD
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
1bd55598
RD
2310 } else {
2311 Py_XDECREF(pointer);
32fe5131
RD
2312 }
2313}
36ed4f51 2314
1bd55598
RD
2315/* The python cached type query */
2316SWIGRUNTIME PyObject *
2317SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
36ed4f51 2320}
36ed4f51 2321
1bd55598
RD
2322SWIGRUNTIME swig_type_info *
2323SWIG_Python_TypeQuery(const char *type)
2324{
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342}
2343
2344/*
2345 For backward compatibility only
2346*/
2347#define SWIG_POINTER_EXCEPTION 0
2348#define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349#define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351SWIGRUNTIME int
2352SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353{
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374}
2375
2376SWIGRUNTIME int
2377SWIG_Python_ArgFail(int argnum)
2378{
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387}
2388
2389SWIGRUNTIMEINLINE const char *
2390PySwigObject_GetDesc(PyObject *self)
2391{
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395}
2396
2397SWIGRUNTIME void
2398SWIG_Python_TypeError(const char *type, PyObject *obj)
2399{
2400 if (type) {
2401#if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410#endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431}
2432
2433
2434/* Convert a pointer value, signal an exception on a type mismatch */
2435SWIGRUNTIME void *
2436SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446}
2447
2448
2449#ifdef __cplusplus
2450#if 0
2451{ /* cc-mode */
2452#endif
2453}
2454#endif
2455
2456
2457
2458#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464/* -------- TYPES TABLE (BEGIN) -------- */
2465
2466#define SWIGTYPE_p_bool swig_types[0]
2467#define SWIGTYPE_p_char swig_types[1]
32fe5131
RD
2468#define SWIGTYPE_p_form_ops_t swig_types[2]
2469#define SWIGTYPE_p_int swig_types[3]
2470#define SWIGTYPE_p_long swig_types[4]
2471#define SWIGTYPE_p_unsigned_char swig_types[5]
2472#define SWIGTYPE_p_unsigned_int swig_types[6]
2473#define SWIGTYPE_p_unsigned_long swig_types[7]
2474#define SWIGTYPE_p_void swig_types[8]
2475#define SWIGTYPE_p_wxANIHandler swig_types[9]
2476#define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2477#define SWIGTYPE_p_wxActivateEvent swig_types[11]
2478#define SWIGTYPE_p_wxArrayInt swig_types[12]
2479#define SWIGTYPE_p_wxArrayString swig_types[13]
2480#define SWIGTYPE_p_wxBMPHandler swig_types[14]
2481#define SWIGTYPE_p_wxBitmap swig_types[15]
2482#define SWIGTYPE_p_wxBitmapButton swig_types[16]
2483#define SWIGTYPE_p_wxBookCtrlBase swig_types[17]
2484#define SWIGTYPE_p_wxBookCtrlBaseEvent swig_types[18]
2485#define SWIGTYPE_p_wxBoxSizer swig_types[19]
2486#define SWIGTYPE_p_wxButton swig_types[20]
2487#define SWIGTYPE_p_wxCURHandler swig_types[21]
2488#define SWIGTYPE_p_wxCheckBox swig_types[22]
2489#define SWIGTYPE_p_wxCheckListBox swig_types[23]
2490#define SWIGTYPE_p_wxChildFocusEvent swig_types[24]
2491#define SWIGTYPE_p_wxChoice swig_types[25]
2492#define SWIGTYPE_p_wxChoicebook swig_types[26]
2493#define SWIGTYPE_p_wxChoicebookEvent swig_types[27]
2131d850
RD
2494#define SWIGTYPE_p_wxClipboardTextEvent swig_types[28]
2495#define SWIGTYPE_p_wxCloseEvent swig_types[29]
5172800e
RD
2496#define SWIGTYPE_p_wxCollapsiblePane swig_types[30]
2497#define SWIGTYPE_p_wxCollapsiblePaneEvent swig_types[31]
2498#define SWIGTYPE_p_wxColour swig_types[32]
2499#define SWIGTYPE_p_wxColourPickerCtrl swig_types[33]
2500#define SWIGTYPE_p_wxColourPickerEvent swig_types[34]
2501#define SWIGTYPE_p_wxComboBox swig_types[35]
2502#define SWIGTYPE_p_wxCommandEvent swig_types[36]
2503#define SWIGTYPE_p_wxContextHelp swig_types[37]
2504#define SWIGTYPE_p_wxContextHelpButton swig_types[38]
2505#define SWIGTYPE_p_wxContextMenuEvent swig_types[39]
2506#define SWIGTYPE_p_wxControl swig_types[40]
2507#define SWIGTYPE_p_wxControlWithItems swig_types[41]
2508#define SWIGTYPE_p_wxCursor swig_types[42]
2509#define SWIGTYPE_p_wxDC swig_types[43]
2510#define SWIGTYPE_p_wxDateEvent swig_types[44]
2511#define SWIGTYPE_p_wxDatePickerCtrl swig_types[45]
2512#define SWIGTYPE_p_wxDateTime swig_types[46]
2513#define SWIGTYPE_p_wxDirFilterListCtrl swig_types[47]
2514#define SWIGTYPE_p_wxDirPickerCtrl swig_types[48]
2515#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[49]
2516#define SWIGTYPE_p_wxDropFilesEvent swig_types[50]
2517#define SWIGTYPE_p_wxDuplexMode swig_types[51]
2518#define SWIGTYPE_p_wxEraseEvent swig_types[52]
2519#define SWIGTYPE_p_wxEvent swig_types[53]
2520#define SWIGTYPE_p_wxEvtHandler swig_types[54]
2521#define SWIGTYPE_p_wxFSFile swig_types[55]
2522#define SWIGTYPE_p_wxFileDirPickerEvent swig_types[56]
2523#define SWIGTYPE_p_wxFilePickerCtrl swig_types[57]
2524#define SWIGTYPE_p_wxFileSystem swig_types[58]
2525#define SWIGTYPE_p_wxFlexGridSizer swig_types[59]
2526#define SWIGTYPE_p_wxFocusEvent swig_types[60]
2527#define SWIGTYPE_p_wxFont swig_types[61]
2528#define SWIGTYPE_p_wxFontPickerCtrl swig_types[62]
2529#define SWIGTYPE_p_wxFontPickerEvent swig_types[63]
2530#define SWIGTYPE_p_wxGBSizerItem swig_types[64]
2531#define SWIGTYPE_p_wxGIFHandler swig_types[65]
2532#define SWIGTYPE_p_wxGauge swig_types[66]
2533#define SWIGTYPE_p_wxGenericDirCtrl swig_types[67]
2534#define SWIGTYPE_p_wxGenericDragImage swig_types[68]
2535#define SWIGTYPE_p_wxGridBagSizer swig_types[69]
2536#define SWIGTYPE_p_wxGridSizer swig_types[70]
2537#define SWIGTYPE_p_wxHelpEvent swig_types[71]
2538#define SWIGTYPE_p_wxHelpProvider swig_types[72]
2539#define SWIGTYPE_p_wxHyperlinkCtrl swig_types[73]
2540#define SWIGTYPE_p_wxHyperlinkEvent swig_types[74]
2541#define SWIGTYPE_p_wxICOHandler swig_types[75]
2542#define SWIGTYPE_p_wxIcon swig_types[76]
2543#define SWIGTYPE_p_wxIconizeEvent swig_types[77]
2544#define SWIGTYPE_p_wxIdleEvent swig_types[78]
2545#define SWIGTYPE_p_wxImage swig_types[79]
2546#define SWIGTYPE_p_wxImageHandler swig_types[80]
2547#define SWIGTYPE_p_wxImageList swig_types[81]
2548#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[82]
2549#define SWIGTYPE_p_wxInitDialogEvent swig_types[83]
2550#define SWIGTYPE_p_wxItemContainer swig_types[84]
2551#define SWIGTYPE_p_wxJPEGHandler swig_types[85]
2552#define SWIGTYPE_p_wxKeyEvent swig_types[86]
2553#define SWIGTYPE_p_wxLayoutConstraints swig_types[87]
2554#define SWIGTYPE_p_wxListBox swig_types[88]
2555#define SWIGTYPE_p_wxListEvent swig_types[89]
2556#define SWIGTYPE_p_wxListItem swig_types[90]
2557#define SWIGTYPE_p_wxListItemAttr swig_types[91]
2558#define SWIGTYPE_p_wxListView swig_types[92]
2559#define SWIGTYPE_p_wxListbook swig_types[93]
2560#define SWIGTYPE_p_wxListbookEvent swig_types[94]
2561#define SWIGTYPE_p_wxMaximizeEvent swig_types[95]
2562#define SWIGTYPE_p_wxMemoryDC swig_types[96]
2563#define SWIGTYPE_p_wxMenu swig_types[97]
2564#define SWIGTYPE_p_wxMenuBar swig_types[98]
2565#define SWIGTYPE_p_wxMenuEvent swig_types[99]
2566#define SWIGTYPE_p_wxMenuItem swig_types[100]
2567#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[101]
2568#define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[102]
2569#define SWIGTYPE_p_wxMouseEvent swig_types[103]
2570#define SWIGTYPE_p_wxMoveEvent swig_types[104]
2571#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[105]
2572#define SWIGTYPE_p_wxNcPaintEvent swig_types[106]
2573#define SWIGTYPE_p_wxNotebook swig_types[107]
2574#define SWIGTYPE_p_wxNotebookEvent swig_types[108]
2575#define SWIGTYPE_p_wxNotifyEvent swig_types[109]
2576#define SWIGTYPE_p_wxObject swig_types[110]
2577#define SWIGTYPE_p_wxPCXHandler swig_types[111]
2578#define SWIGTYPE_p_wxPNGHandler swig_types[112]
2579#define SWIGTYPE_p_wxPNMHandler swig_types[113]
2580#define SWIGTYPE_p_wxPaintEvent swig_types[114]
2581#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[115]
2582#define SWIGTYPE_p_wxPaperSize swig_types[116]
2583#define SWIGTYPE_p_wxPickerBase swig_types[117]
2584#define SWIGTYPE_p_wxPoint swig_types[118]
2585#define SWIGTYPE_p_wxPyApp swig_types[119]
2586#define SWIGTYPE_p_wxPyCommandEvent swig_types[120]
2587#define SWIGTYPE_p_wxPyControl swig_types[121]
2588#define SWIGTYPE_p_wxPyEvent swig_types[122]
2589#define SWIGTYPE_p_wxPyImageHandler swig_types[123]
2590#define SWIGTYPE_p_wxPyListCtrl swig_types[124]
2591#define SWIGTYPE_p_wxPySizer swig_types[125]
2592#define SWIGTYPE_p_wxPyTreeCtrl swig_types[126]
2593#define SWIGTYPE_p_wxPyTreeItemData swig_types[127]
2594#define SWIGTYPE_p_wxPyValidator swig_types[128]
2595#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[129]
2596#define SWIGTYPE_p_wxRadioBox swig_types[130]
2597#define SWIGTYPE_p_wxRadioButton swig_types[131]
2598#define SWIGTYPE_p_wxRect swig_types[132]
2599#define SWIGTYPE_p_wxScrollBar swig_types[133]
2600#define SWIGTYPE_p_wxScrollEvent swig_types[134]
2601#define SWIGTYPE_p_wxScrollWinEvent swig_types[135]
3f7f284d
RD
2602#define SWIGTYPE_p_wxSearchCtrl swig_types[136]
2603#define SWIGTYPE_p_wxSetCursorEvent swig_types[137]
2604#define SWIGTYPE_p_wxShowEvent swig_types[138]
2605#define SWIGTYPE_p_wxSimpleHelpProvider swig_types[139]
2606#define SWIGTYPE_p_wxSize swig_types[140]
2607#define SWIGTYPE_p_wxSizeEvent swig_types[141]
2608#define SWIGTYPE_p_wxSizer swig_types[142]
2609#define SWIGTYPE_p_wxSizerItem swig_types[143]
2610#define SWIGTYPE_p_wxSlider swig_types[144]
2611#define SWIGTYPE_p_wxSpinButton swig_types[145]
2612#define SWIGTYPE_p_wxSpinCtrl swig_types[146]
2613#define SWIGTYPE_p_wxSpinEvent swig_types[147]
2614#define SWIGTYPE_p_wxStaticBitmap swig_types[148]
2615#define SWIGTYPE_p_wxStaticBox swig_types[149]
2616#define SWIGTYPE_p_wxStaticBoxSizer swig_types[150]
2617#define SWIGTYPE_p_wxStaticLine swig_types[151]
2618#define SWIGTYPE_p_wxStaticText swig_types[152]
2619#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[153]
2620#define SWIGTYPE_p_wxString swig_types[154]
2621#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[155]
2622#define SWIGTYPE_p_wxTGAHandler swig_types[156]
2623#define SWIGTYPE_p_wxTIFFHandler swig_types[157]
2624#define SWIGTYPE_p_wxTextAttr swig_types[158]
2625#define SWIGTYPE_p_wxTextCtrl swig_types[159]
2626#define SWIGTYPE_p_wxTextUrlEvent swig_types[160]
2627#define SWIGTYPE_p_wxToggleButton swig_types[161]
2628#define SWIGTYPE_p_wxToolBar swig_types[162]
2629#define SWIGTYPE_p_wxToolBarBase swig_types[163]
2630#define SWIGTYPE_p_wxToolBarToolBase swig_types[164]
2631#define SWIGTYPE_p_wxToolbook swig_types[165]
2632#define SWIGTYPE_p_wxToolbookEvent swig_types[166]
2633#define SWIGTYPE_p_wxTreeEvent swig_types[167]
2634#define SWIGTYPE_p_wxTreeItemId swig_types[168]
2635#define SWIGTYPE_p_wxTreebook swig_types[169]
2636#define SWIGTYPE_p_wxTreebookEvent swig_types[170]
2637#define SWIGTYPE_p_wxUpdateUIEvent swig_types[171]
2638#define SWIGTYPE_p_wxValidator swig_types[172]
2639#define SWIGTYPE_p_wxVisualAttributes swig_types[173]
2640#define SWIGTYPE_p_wxWindow swig_types[174]
2641#define SWIGTYPE_p_wxWindowBase swig_types[175]
2642#define SWIGTYPE_p_wxWindowCreateEvent swig_types[176]
2643#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[177]
2644#define SWIGTYPE_p_wxXPMHandler swig_types[178]
2645static swig_type_info *swig_types[180];
2646static swig_module_info swig_module = {swig_types, 179, 0, 0, 0, 0};
32fe5131
RD
2647#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2648#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
36ed4f51
RD
2649
2650/* -------- TYPES TABLE (END) -------- */
2651
1bd55598
RD
2652#if (PY_VERSION_HEX <= 0x02000000)
2653# if !defined(SWIG_PYTHON_CLASSIC)
2654# error "This python version requires to use swig with the '-classic' option"
2655# endif
2656#endif
2657#if (PY_VERSION_HEX <= 0x02020000)
2658# error "This python version requires to use swig with the '-nomodern' option"
2659#endif
2660#if (PY_VERSION_HEX <= 0x02020000)
2661# error "This python version requires to use swig with the '-nomodernargs' option"
2662#endif
2663#ifndef METH_O
2664# error "This python version requires to use swig with the '-nofastunpack' option"
2665#endif
36ed4f51
RD
2666
2667/*-----------------------------------------------
2668 @(target):= _controls_.so
2669 ------------------------------------------------*/
2670#define SWIG_init init_controls_
2671
2672#define SWIG_name "_controls_"
2673
1bd55598
RD
2674#define SWIGVERSION 0x010329
2675
2676
2677#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2678#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2679
2680
2681#include <stdexcept>
2682
2683
2684namespace swig {
2685 class PyObject_ptr {
2686 protected:
2687 PyObject *_obj;
2688
2689 public:
2690 PyObject_ptr() :_obj(0)
2691 {
2692 }
2693
2694 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2695 {
2696 Py_XINCREF(_obj);
2697 }
2698
2699 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2700 {
2701 if (initial_ref) Py_XINCREF(_obj);
2702 }
2703
2704 PyObject_ptr & operator=(const PyObject_ptr& item)
2705 {
2706 Py_XINCREF(item._obj);
2707 Py_XDECREF(_obj);
2708 _obj = item._obj;
2709 return *this;
2710 }
2711
2712 ~PyObject_ptr()
2713 {
2714 Py_XDECREF(_obj);
2715 }
2716
2717 operator PyObject *() const
2718 {
2719 return _obj;
2720 }
2721
2722 PyObject *operator->() const
2723 {
2724 return _obj;
2725 }
2726 };
2727}
2728
2729
2730namespace swig {
2731 struct PyObject_var : PyObject_ptr {
2732 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2733
2734 PyObject_var & operator = (PyObject* obj)
2735 {
2736 Py_XDECREF(_obj);
2737 _obj = obj;
2738 return *this;
2739 }
2740 };
2741}
2742
2743
36ed4f51
RD
2744#include "wx/wxPython/wxPython.h"
2745#include "wx/wxPython/pyclasses.h"
2746
2747 static const wxString wxPyPanelNameStr(wxPanelNameStr);
2748 static const wxString wxPyEmptyString(wxEmptyString);
2749 static const wxString wxPyControlNameStr(wxControlNameStr);
2750
2751 const wxArrayString wxPyEmptyStringArray;
2752
2753 static const wxString wxPyButtonNameStr(wxButtonNameStr);
2754
1bd55598 2755 #define SWIG_From_long PyInt_FromLong
36ed4f51
RD
2756
2757
1bd55598
RD
2758SWIGINTERNINLINE PyObject *
2759SWIG_From_int (int value)
2760{
2761 return SWIG_From_long (value);
2762}
36ed4f51
RD
2763
2764
1bd55598
RD
2765#include <limits.h>
2766#ifndef LLONG_MIN
2767# define LLONG_MIN LONG_LONG_MIN
2768#endif
2769#ifndef LLONG_MAX
2770# define LLONG_MAX LONG_LONG_MAX
2771#endif
2772#ifndef ULLONG_MAX
2773# define ULLONG_MAX ULONG_LONG_MAX
2774#endif
36ed4f51
RD
2775
2776
2777SWIGINTERN int
1bd55598 2778SWIG_AsVal_long (PyObject* obj, long* val)
36ed4f51
RD
2779{
2780 if (PyNumber_Check(obj)) {
2781 if (val) *val = PyInt_AsLong(obj);
1bd55598 2782 return SWIG_OK;
36ed4f51 2783 }
1bd55598 2784 return SWIG_TypeError;
36ed4f51
RD
2785}
2786
2787
36ed4f51 2788SWIGINTERN int
1bd55598
RD
2789SWIG_AsVal_int (PyObject * obj, int *val)
2790{
36ed4f51 2791 long v;
1bd55598
RD
2792 int res = SWIG_AsVal_long (obj, &v);
2793 if (SWIG_IsOK(res)) {
2794 if ((v < INT_MIN || v > INT_MAX)) {
2795 return SWIG_OverflowError;
36ed4f51 2796 } else {
1bd55598 2797 if (val) *val = static_cast< int >(v);
36ed4f51 2798 }
1bd55598
RD
2799 }
2800 return res;
d55e5bfc
RD
2801}
2802
c370783e 2803 static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr);
d55e5bfc 2804
36ed4f51 2805SWIGINTERN int
1bd55598 2806SWIG_AsVal_bool (PyObject *obj, bool *val)
d55e5bfc 2807{
c370783e
RD
2808 if (obj == Py_True) {
2809 if (val) *val = true;
1bd55598
RD
2810 return SWIG_OK;
2811 } else if (obj == Py_False) {
c370783e 2812 if (val) *val = false;
1bd55598 2813 return SWIG_OK;
36ed4f51 2814 } else {
1bd55598
RD
2815 long v = 0;
2816 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2817 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2818 return res;
c370783e 2819 }
d55e5bfc
RD
2820}
2821
2822 static const wxString wxPyChoiceNameStr(wxChoiceNameStr);
2823 static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr);
2824 static const wxString wxPyGaugeNameStr(wxGaugeNameStr);
2825 static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr);
2826 static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr);
2827 static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr);
3f7f284d 2828 static const wxString wxPyStaticLineNameStr(wxStaticLineNameStr);
d55e5bfc
RD
2829
2830#include <wx/checklst.h>
d55e5bfc
RD
2831
2832 static const wxString wxPyListBoxNameStr(wxListBoxNameStr);
1bd55598 2833SWIGINTERN void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData=NULL){
e9d6f3a4
RD
2834 if (clientData)
2835 {
d55e5bfc
RD
2836 wxPyClientData* data = new wxPyClientData(clientData);
2837 self->Insert(item, pos, data);
e9d6f3a4
RD
2838 }
2839 else
d55e5bfc
RD
2840 self->Insert(item, pos);
2841 }
50f151d7
RD
2842
2843SWIGINTERN int
2844SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2845{
2846 long v = 0;
2847 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2848 return SWIG_TypeError;
2849 }
2850 else if (val)
2851 *val = (unsigned long)v;
2852 return SWIG_OK;
2853}
2854
2855
2856SWIGINTERN int
2857SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
2858{
2859 unsigned long v;
2860 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2861 if (SWIG_IsOK(res)) {
2862 if ((v > UINT_MAX)) {
2863 return SWIG_OverflowError;
2864 } else {
2865 if (val) *val = static_cast< unsigned int >(v);
2866 }
2867 }
2868 return res;
2869}
2870
1bd55598 2871SWIGINTERN PyObject *wxListBox_GetSelections(wxListBox *self){
e9d6f3a4 2872 wxPyBlock_t blocked = wxPyBeginBlockThreads();
7e08d4ef
RD
2873 wxArrayInt lst;
2874 self->GetSelections(lst);
2875 PyObject *tup = PyTuple_New(lst.GetCount());
e9d6f3a4
RD
2876 for (size_t i=0; i<lst.GetCount(); i++)
2877 {
7e08d4ef
RD
2878 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
2879 }
e9d6f3a4 2880 wxPyEndBlockThreads(blocked);
7e08d4ef
RD
2881 return tup;
2882 }
1bd55598 2883SWIGINTERN void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){
d55e5bfc
RD
2884 #ifdef __WXMSW__
2885 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2886 self->GetItem(item)->SetTextColour(c);
2887 #endif
2888 }
1bd55598 2889SWIGINTERN void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){
d55e5bfc
RD
2890 #ifdef __WXMSW__
2891 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2892 self->GetItem(item)->SetBackgroundColour(c);
2893 #endif
2894 }
1bd55598 2895SWIGINTERN void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){
d55e5bfc
RD
2896 #ifdef __WXMSW__
2897 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2898 self->GetItem(item)->SetFont(f);
2899 #endif
2900 }
2901 static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr);
1bd55598 2902SWIGINTERN void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
d55e5bfc
RD
2903 self->AppendText(text);
2904 }
1bd55598 2905SWIGINTERN wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
d55e5bfc
RD
2906 return self->GetValue().Mid(from, to - from);
2907 }
2908 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
2909 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
2910 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
2911 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
2912 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
2913
1c71765a
RD
2914SWIGINTERNINLINE PyObject*
2915SWIG_From_unsigned_SS_long (unsigned long value)
2916{
2917 return (value > LONG_MAX) ?
2918 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2919}
2920
2921
2922SWIGINTERNINLINE PyObject *
2923SWIG_From_size_t (size_t value)
2924{
2925 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
2926}
2927
2928
50f151d7
RD
2929SWIGINTERNINLINE PyObject *
2930SWIG_From_unsigned_SS_int (unsigned int value)
2931{
2932 return SWIG_From_unsigned_SS_long (value);
2933}
2934
2935
d55e5bfc
RD
2936#include <wx/slider.h>
2937
2938
2939 static const wxString wxPySliderNameStr(wxSliderNameStr);
2940 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
2941
2942#if !wxUSE_TOGGLEBTN
2943// implement dummy items for platforms that don't have this class
2944
2945#define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
2946
2947class wxToggleButton : public wxControl
2948{
2949public:
2950 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
2951 const wxPoint&, const wxSize&, long,
2952 const wxValidator&, const wxString&)
2953 { wxPyRaiseNotImplemented(); }
2954
2955 wxToggleButton()
2956 { wxPyRaiseNotImplemented(); }
2957};
2958#endif
2959
51b83b37 2960 static const wxString wxPyNotebookNameStr(wxNotebookNameStr);
d55e5bfc 2961
7e08d4ef 2962SWIGINTERNINLINE int
1bd55598 2963SWIG_AsVal_size_t (PyObject * obj, size_t *val)
7e08d4ef 2964{
7e08d4ef 2965 unsigned long v;
1bd55598
RD
2966 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
2967 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
2968 return res;
7e08d4ef 2969}
7e08d4ef 2970
d55e5bfc 2971 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
1bd55598 2972SWIGINTERN PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
d55e5bfc
RD
2973 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
2974 if (udata) {
2975 Py_INCREF(udata->m_obj);
2976 return udata->m_obj;
2977 } else {
2978 Py_INCREF(Py_None);
2979 return Py_None;
2980 }
2981 }
1bd55598 2982SWIGINTERN void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
d55e5bfc
RD
2983 self->SetClientData(new wxPyUserData(clientData));
2984 }
1bd55598 2985SWIGINTERN 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
2986 wxPyUserData* udata = NULL;
2987 if (clientData && clientData != Py_None)
2988 udata = new wxPyUserData(clientData);
2989 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
2990 shortHelp, longHelp, udata);
2991 }
1bd55598 2992SWIGINTERN 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
2993 wxPyUserData* udata = NULL;
2994 if (clientData && clientData != Py_None)
2995 udata = new wxPyUserData(clientData);
2996 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
2997 shortHelp, longHelp, udata);
2998 }
1bd55598 2999SWIGINTERN PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
d55e5bfc
RD
3000 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
3001 if (udata) {
3002 Py_INCREF(udata->m_obj);
3003 return udata->m_obj;
3004 } else {
3005 Py_INCREF(Py_None);
3006 return Py_None;
3007 }
3008 }
1bd55598 3009SWIGINTERN void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
d55e5bfc
RD
3010 self->SetToolClientData(id, new wxPyUserData(clientData));
3011 }
3012
3013#include <wx/listctrl.h>
3014
fef4c27a 3015 static const wxString wxPyListCtrlNameStr(wxListCtrlNameStr);
1bd55598 3016SWIGINTERN void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
d55e5bfc
RD
3017 // Python aware sorting function for wxPyListCtrl
3018 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
3019 int retval = 0;
3020 PyObject* func = (PyObject*)funcPtr;
5a446332 3021 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc
RD
3022
3023 PyObject* args = Py_BuildValue("(ii)", item1, item2);
3024 PyObject* result = PyEval_CallObject(func, args);
3025 Py_DECREF(args);
3026 if (result) {
3027 retval = PyInt_AsLong(result);
3028 Py_DECREF(result);
3029 }
3030
3031 wxPyEndBlockThreads(blocked);
3032 return retval;
3033 }
3034
3035 // C++ Version of a Python aware class
3036class wxPyListCtrl : public wxListCtrl {
32fe5131 3037 DECLARE_ABSTRACT_CLASS(wxPyListCtrl)
d55e5bfc
RD
3038public:
3039 wxPyListCtrl() : wxListCtrl() {}
3040 wxPyListCtrl(wxWindow* parent, wxWindowID id,
3041 const wxPoint& pos,
3042 const wxSize& size,
3043 long style,
3044 const wxValidator& validator,
3045 const wxString& name) :
3046 wxListCtrl(parent, id, pos, size, style, validator, name) {}
3047
3048 bool Create(wxWindow* parent, wxWindowID id,
3049 const wxPoint& pos,
3050 const wxSize& size,
3051 long style,
3052 const wxValidator& validator,
3053 const wxString& name) {
3054 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
3055 }
3056
3057 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
d55e5bfc
RD
3058 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
3059
84f85550
RD
3060 // use the virtual version to avoid a confusing assert in the base class
3061 DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage);
7e08d4ef 3062 DEC_PYCALLBACK_INT_LONGLONG(OnGetItemColumnImage);
84f85550 3063
d55e5bfc
RD
3064 PYPRIVATE;
3065};
3066
3067IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
3068
3069IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
d55e5bfc 3070IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
84f85550 3071IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage);
c25f90f6 3072IMP_PYCALLBACK_INT_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemColumnImage);
7e08d4ef 3073
d55e5bfc 3074
1bd55598 3075SWIGINTERN wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
d55e5bfc
RD
3076 wxListItem item;
3077 item.SetMask( wxLIST_MASK_STATE |
3078 wxLIST_MASK_TEXT |
3079 wxLIST_MASK_IMAGE |
3080 wxLIST_MASK_DATA |
3081 wxLIST_SET_ITEM |
3082 wxLIST_MASK_WIDTH |
3083 wxLIST_MASK_FORMAT
3084 );
3085 if (self->GetColumn(col, item))
3086 return new wxListItem(item);
3087 else
3088 return NULL;
3089 }
1bd55598 3090SWIGINTERN wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col=0){
d55e5bfc
RD
3091 wxListItem* info = new wxListItem;
3092 info->m_itemId = itemId;
3093 info->m_col = col;
3094 info->m_mask = 0xFFFF;
3095 self->GetItem(*info);
3096 return info;
3097 }
1bd55598 3098SWIGINTERN wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
d55e5bfc
RD
3099 wxPoint pos;
3100 self->GetItemPosition(item, pos);
3101 return pos;
3102 }
1bd55598 3103SWIGINTERN wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code=wxLIST_RECT_BOUNDS){
d55e5bfc
RD
3104 wxRect rect;
3105 self->GetItemRect(item, rect, code);
3106 return rect;
3107 }
1bd55598 3108SWIGINTERN bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
d55e5bfc 3109 if (!PyCallable_Check(func))
b411df4a 3110 return false;
d55e5bfc
RD
3111 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
3112 }
1bd55598 3113SWIGINTERN wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
d55e5bfc 3114
6a223074
RD
3115 return self;
3116
d55e5bfc
RD
3117
3118
d55e5bfc
RD
3119 }
3120
3121#include <wx/treectrl.h>
3122#include "wx/wxPython/pytree.h"
3123
3124 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
1bd55598
RD
3125SWIGINTERN bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; }
3126SWIGINTERN bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; }
3127SWIGINTERN void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
b02396e8
RD
3128
3129 static wxTreeItemId wxNullTreeItemId;
3130
d55e5bfc
RD
3131 // C++ version of Python aware wxTreeCtrl
3132class wxPyTreeCtrl : public wxTreeCtrl {
32fe5131 3133 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl)
d55e5bfc
RD
3134public:
3135 wxPyTreeCtrl() : wxTreeCtrl() {}
3136 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
3137 const wxPoint& pos,
3138 const wxSize& size,
3139 long style,
3140 const wxValidator& validator,
3141 const wxString& name) :
3142 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
3143
3144 bool Create(wxWindow *parent, wxWindowID id,
3145 const wxPoint& pos,
3146 const wxSize& size,
3147 long style,
3148 const wxValidator& validator,
3149 const wxString& name) {
3150 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
3151 }
3152
3153
3154 int OnCompareItems(const wxTreeItemId& item1,
3155 const wxTreeItemId& item2) {
3156 int rval = 0;
3157 bool found;
5a446332 3158 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc 3159 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
b411df4a
RD
3160 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false);
3161 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false);
d55e5bfc
RD
3162 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
3163 Py_DECREF(o1);
3164 Py_DECREF(o2);
3165 }
3166 wxPyEndBlockThreads(blocked);
3167 if (! found)
3168 rval = wxTreeCtrl::OnCompareItems(item1, item2);
3169 return rval;
3170 }
3171 PYPRIVATE;
3172};
3173
3174IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
3175
3176
1bd55598 3177SWIGINTERN wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
d55e5bfc
RD
3178 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3179 if (data == NULL) {
3180 data = new wxPyTreeItemData();
3181 data->SetId(item); // set the id
3182 self->SetItemData(item, data);
3183 }
3184 return data;
3185 }
1bd55598 3186SWIGINTERN PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
d55e5bfc
RD
3187 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3188 if (data == NULL) {
3189 data = new wxPyTreeItemData();
3190 data->SetId(item); // set the id
3191 self->SetItemData(item, data);
3192 }
3193 return data->GetData();
3194 }
1bd55598 3195SWIGINTERN void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
d55e5bfc
RD
3196 data->SetId(item); // set the id
3197 self->SetItemData(item, data);
3198 }
1bd55598 3199SWIGINTERN void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
d55e5bfc
RD
3200 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3201 if (data == NULL) {
3202 data = new wxPyTreeItemData(obj);
3203 data->SetId(item); // set the id
3204 self->SetItemData(item, data);
3205 } else
3206 data->SetData(obj);
3207 }
1bd55598 3208SWIGINTERN PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
5a446332 3209 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc
RD
3210 PyObject* rval = PyList_New(0);
3211 wxArrayTreeItemIds array;
3212 size_t num, x;
3213 num = self->GetSelections(array);
3214 for (x=0; x < num; x++) {
3215 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
b411df4a 3216 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true);
d55e5bfc 3217 PyList_Append(rval, item);
68e533f8 3218 Py_DECREF(item);
d55e5bfc
RD
3219 }
3220 wxPyEndBlockThreads(blocked);
3221 return rval;
3222 }
1bd55598 3223SWIGINTERN PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
d55e5bfc
RD
3224 void* cookie = 0;
3225 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
5a446332 3226 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc 3227 PyObject* tup = PyTuple_New(2);
b411df4a 3228 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
d55e5bfc
RD
3229 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3230 wxPyEndBlockThreads(blocked);
3231 return tup;
3232 }
1bd55598 3233SWIGINTERN PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
d55e5bfc 3234 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
5a446332 3235 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc 3236 PyObject* tup = PyTuple_New(2);
b411df4a 3237 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
d55e5bfc
RD
3238 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3239 wxPyEndBlockThreads(blocked);
3240 return tup;
3241 }
1bd55598 3242SWIGINTERN PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly=false){
d55e5bfc
RD
3243 wxRect rect;
3244 if (self->GetBoundingRect(item, rect, textOnly)) {
5a446332 3245 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc 3246 wxRect* r = new wxRect(rect);
b411df4a 3247 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true);
d55e5bfc
RD
3248 wxPyEndBlockThreads(blocked);
3249 return val;
3250 }
3251 else
3252 RETURN_NONE();
3253 }
3254 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
c370783e 3255
32fe5131 3256SWIGINTERNINLINE PyObject*
1bd55598 3257 SWIG_From_bool (bool value)
c370783e 3258{
1bd55598 3259 return PyBool_FromLong(value ? 1 : 0);
c370783e
RD
3260}
3261
d55e5bfc
RD
3262 // C++ version of Python aware wxControl
3263class wxPyControl : public wxControl
3264{
3265 DECLARE_DYNAMIC_CLASS(wxPyControl)
3266public:
3267 wxPyControl() : wxControl() {}
3268 wxPyControl(wxWindow* parent, const wxWindowID id,
3269 const wxPoint& pos = wxDefaultPosition,
3270 const wxSize& size = wxDefaultSize,
3271 long style = 0,
3272 const wxValidator& validator=wxDefaultValidator,
3273 const wxString& name = wxPyControlNameStr)
3274 : wxControl(parent, id, pos, size, style, validator, name) {}
3275
3276
976dbff5
RD
3277 bool DoEraseBackground(wxDC* dc) {
3278#ifdef __WXMSW__
3279 return wxWindow::DoEraseBackground(dc->GetHDC());
3280#else
3281 dc->SetBackground(wxBrush(GetBackgroundColour()));
3282 dc->Clear();
3283 return true;
3284#endif
3285 }
3286
d55e5bfc
RD
3287 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
3288 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
3289 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
3290 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
3291
3292 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
3293 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
3294 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
3295
3296 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
3297 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
3298
3299 DEC_PYCALLBACK__(InitDialog);
3300 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
3301 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
3302 DEC_PYCALLBACK_BOOL_(Validate);
3303
3304 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
3305 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
3306 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
3307
3308 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
3309 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
3310
a5ee0656 3311 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
a5ee0656 3312 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
d55e5bfc 3313
51b83b37
RD
3314 DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
3315
8d38bd1d
RD
3316 DEC_PYCALLBACK_VOID_(OnInternalIdle);
3317
d55e5bfc
RD
3318 PYPRIVATE;
3319};
3320
3321IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
3322
3323IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
3324IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
3325IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
3326IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
3327
3328IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
3329IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
3330IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
3331
3332IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
3333IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
3334
3335IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
3336IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
3337IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
3338IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
3339
3340IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
3341IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
3342IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
3343
3344IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
3345IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
3346
a5ee0656 3347IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
a5ee0656 3348IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
d55e5bfc 3349
51b83b37 3350IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground);
8d38bd1d
RD
3351
3352IMP_PYCALLBACK_VOID_(wxPyControl, wxControl, OnInternalIdle);
3353
d55e5bfc
RD
3354
3355
1bd55598 3356SWIGINTERN void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
d55e5bfc
RD
3357
3358#include <wx/generic/dragimgg.h>
3359
53aa7709 3360 static const wxString wxPyDatePickerCtrlNameStr(wxDatePickerCtrlNameStr);
1bd55598 3361SWIGINTERN wxDateTime wxDatePickerCtrl_GetLowerLimit(wxDatePickerCtrl *self){
53aa7709
RD
3362 wxDateTime rv;
3363 self->GetRange(&rv, NULL);
3364 return rv;
3365 }
1bd55598 3366SWIGINTERN wxDateTime wxDatePickerCtrl_GetUpperLimit(wxDatePickerCtrl *self){
53aa7709
RD
3367 wxDateTime rv;
3368 self->GetRange(NULL, &rv);
3369 return rv;
3370 }
704eda0c 3371 static const wxString wxPyHyperlinkCtrlNameStr(wxHyperlinkCtrlNameStr);
b850e7f3
RD
3372 static const wxString wxPyColourPickerCtrlNameStr(wxColourPickerCtrlNameStr);
3373 static const wxString wxPyFilePickerCtrlNameStr(wxFilePickerCtrlNameStr);
3374 static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
3375 static const wxString wxPyDirPickerCtrlNameStr(wxDirPickerCtrlNameStr);
3376 static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
3377 static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr);
3378 static const wxString wxPyFontPickerCtrlNameStr(wxFontPickerCtrlNameStr);
5172800e 3379 static const wxString wxPyCollapsiblePaneNameStr(wxCollapsiblePaneNameStr);
3f7f284d
RD
3380 static const wxString wxPySearchCtrlNameStr(wxSearchCtrlNameStr);
3381SWIGINTERN void wxSearchCtrl_SetSearchBitmap(wxSearchCtrl *self,wxBitmap const &){}
3382SWIGINTERN void wxSearchCtrl_SetSearchMenuBitmap(wxSearchCtrl *self,wxBitmap const &){}
3383SWIGINTERN void wxSearchCtrl_SetCancelBitmap(wxSearchCtrl *self,wxBitmap const &){}
d55e5bfc
RD
3384#ifdef __cplusplus
3385extern "C" {
3386#endif
1bd55598
RD
3387SWIGINTERN int ButtonNameStr_set(PyObject *) {
3388 SWIG_Error(SWIG_AttributeError,"Variable ButtonNameStr is read-only.");
3389 return 1;
d55e5bfc
RD
3390}
3391
3392
1bd55598
RD
3393SWIGINTERN PyObject *ButtonNameStr_get(void) {
3394 PyObject *pyobj = 0;
3395
3396 {
d55e5bfc 3397#if wxUSE_UNICODE
1bd55598 3398 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
d55e5bfc 3399#else
1bd55598 3400 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
d55e5bfc 3401#endif
1bd55598
RD
3402 }
3403 return pyobj;
3404}
3405
3406
3407SWIGINTERN PyObject *_wrap_new_Button(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3408 PyObject *resultobj = 0;
3409 wxWindow *arg1 = (wxWindow *) 0 ;
3410 int arg2 = (int) -1 ;
3411 wxString const &arg3_defvalue = wxPyEmptyString ;
3412 wxString *arg3 = (wxString *) &arg3_defvalue ;
3413 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3414 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3415 wxSize const &arg5_defvalue = wxDefaultSize ;
3416 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3417 long arg6 = (long) 0 ;
3418 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3419 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3420 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3421 wxString *arg8 = (wxString *) &arg8_defvalue ;
3422 wxButton *result = 0 ;
3423 void *argp1 = 0 ;
3424 int res1 = 0 ;
3425 int val2 ;
3426 int ecode2 = 0 ;
3427 bool temp3 = false ;
3428 wxPoint temp4 ;
3429 wxSize temp5 ;
3430 long val6 ;
3431 int ecode6 = 0 ;
3432 void *argp7 = 0 ;
3433 int res7 = 0 ;
3434 bool temp8 = false ;
3435 PyObject * obj0 = 0 ;
3436 PyObject * obj1 = 0 ;
3437 PyObject * obj2 = 0 ;
3438 PyObject * obj3 = 0 ;
3439 PyObject * obj4 = 0 ;
3440 PyObject * obj5 = 0 ;
3441 PyObject * obj6 = 0 ;
3442 PyObject * obj7 = 0 ;
3443 char * kwnames[] = {
3444 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3445 };
3446
3447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3449 if (!SWIG_IsOK(res1)) {
3450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Button" "', expected argument " "1"" of type '" "wxWindow *""'");
3451 }
3452 arg1 = reinterpret_cast< wxWindow * >(argp1);
3453 if (obj1) {
3454 ecode2 = SWIG_AsVal_int(obj1, &val2);
3455 if (!SWIG_IsOK(ecode2)) {
3456 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Button" "', expected argument " "2"" of type '" "int""'");
3457 }
3458 arg2 = static_cast< int >(val2);
3459 }
3460 if (obj2) {
d55e5bfc 3461 {
1bd55598
RD
3462 arg3 = wxString_in_helper(obj2);
3463 if (arg3 == NULL) SWIG_fail;
3464 temp3 = true;
d55e5bfc 3465 }
1bd55598
RD
3466 }
3467 if (obj3) {
d55e5bfc 3468 {
1bd55598
RD
3469 arg4 = &temp4;
3470 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 3471 }
1bd55598
RD
3472 }
3473 if (obj4) {
d55e5bfc 3474 {
1bd55598
RD
3475 arg5 = &temp5;
3476 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 3477 }
1bd55598
RD
3478 }
3479 if (obj5) {
3480 ecode6 = SWIG_AsVal_long(obj5, &val6);
3481 if (!SWIG_IsOK(ecode6)) {
3482 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Button" "', expected argument " "6"" of type '" "long""'");
3483 }
3484 arg6 = static_cast< long >(val6);
3485 }
3486 if (obj6) {
3487 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3488 if (!SWIG_IsOK(res7)) {
3489 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 3490 }
1bd55598
RD
3491 if (!argp7) {
3492 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 3493 }
1bd55598
RD
3494 arg7 = reinterpret_cast< wxValidator * >(argp7);
3495 }
3496 if (obj7) {
d55e5bfc 3497 {
1bd55598
RD
3498 arg8 = wxString_in_helper(obj7);
3499 if (arg8 == NULL) SWIG_fail;
3500 temp8 = true;
d55e5bfc 3501 }
1bd55598
RD
3502 }
3503 {
3504 if (!wxPyCheckForApp()) SWIG_fail;
3505 PyThreadState* __tstate = wxPyBeginAllowThreads();
3506 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3507 wxPyEndAllowThreads(__tstate);
3508 if (PyErr_Occurred()) SWIG_fail;
3509 }
3510 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_NEW | 0 );
3511 {
3512 if (temp3)
3513 delete arg3;
3514 }
3515 {
3516 if (temp8)
3517 delete arg8;
3518 }
3519 return resultobj;
3520fail:
3521 {
3522 if (temp3)
3523 delete arg3;
3524 }
3525 {
3526 if (temp8)
3527 delete arg8;
3528 }
3529 return NULL;
d55e5bfc
RD
3530}
3531
3532
1bd55598
RD
3533SWIGINTERN PyObject *_wrap_new_PreButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3534 PyObject *resultobj = 0;
3535 wxButton *result = 0 ;
3536
3537 if (!SWIG_Python_UnpackTuple(args,"new_PreButton",0,0,0)) SWIG_fail;
3538 {
3539 if (!wxPyCheckForApp()) SWIG_fail;
3540 PyThreadState* __tstate = wxPyBeginAllowThreads();
3541 result = (wxButton *)new wxButton();
3542 wxPyEndAllowThreads(__tstate);
3543 if (PyErr_Occurred()) SWIG_fail;
3544 }
3545 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_OWN | 0 );
3546 return resultobj;
3547fail:
3548 return NULL;
3549}
3550
3551
3552SWIGINTERN PyObject *_wrap_Button_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3553 PyObject *resultobj = 0;
3554 wxButton *arg1 = (wxButton *) 0 ;
3555 wxWindow *arg2 = (wxWindow *) 0 ;
3556 int arg3 = (int) -1 ;
3557 wxString const &arg4_defvalue = wxPyEmptyString ;
3558 wxString *arg4 = (wxString *) &arg4_defvalue ;
3559 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3560 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3561 wxSize const &arg6_defvalue = wxDefaultSize ;
3562 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3563 long arg7 = (long) 0 ;
3564 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3565 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3566 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3567 wxString *arg9 = (wxString *) &arg9_defvalue ;
3568 bool result;
3569 void *argp1 = 0 ;
3570 int res1 = 0 ;
3571 void *argp2 = 0 ;
3572 int res2 = 0 ;
3573 int val3 ;
3574 int ecode3 = 0 ;
3575 bool temp4 = false ;
3576 wxPoint temp5 ;
3577 wxSize temp6 ;
3578 long val7 ;
3579 int ecode7 = 0 ;
3580 void *argp8 = 0 ;
3581 int res8 = 0 ;
3582 bool temp9 = false ;
3583 PyObject * obj0 = 0 ;
3584 PyObject * obj1 = 0 ;
3585 PyObject * obj2 = 0 ;
3586 PyObject * obj3 = 0 ;
3587 PyObject * obj4 = 0 ;
3588 PyObject * obj5 = 0 ;
3589 PyObject * obj6 = 0 ;
3590 PyObject * obj7 = 0 ;
3591 PyObject * obj8 = 0 ;
3592 char * kwnames[] = {
3593 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3594 };
3595
3596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3598 if (!SWIG_IsOK(res1)) {
3599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_Create" "', expected argument " "1"" of type '" "wxButton *""'");
3600 }
3601 arg1 = reinterpret_cast< wxButton * >(argp1);
3602 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3603 if (!SWIG_IsOK(res2)) {
3604 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Button_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3605 }
3606 arg2 = reinterpret_cast< wxWindow * >(argp2);
3607 if (obj2) {
3608 ecode3 = SWIG_AsVal_int(obj2, &val3);
3609 if (!SWIG_IsOK(ecode3)) {
3610 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Button_Create" "', expected argument " "3"" of type '" "int""'");
3611 }
3612 arg3 = static_cast< int >(val3);
3613 }
3614 if (obj3) {
d55e5bfc 3615 {
1bd55598
RD
3616 arg4 = wxString_in_helper(obj3);
3617 if (arg4 == NULL) SWIG_fail;
3618 temp4 = true;
d55e5bfc 3619 }
1bd55598
RD
3620 }
3621 if (obj4) {
d55e5bfc 3622 {
1bd55598
RD
3623 arg5 = &temp5;
3624 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 3625 }
1bd55598
RD
3626 }
3627 if (obj5) {
d55e5bfc 3628 {
1bd55598
RD
3629 arg6 = &temp6;
3630 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 3631 }
1bd55598
RD
3632 }
3633 if (obj6) {
3634 ecode7 = SWIG_AsVal_long(obj6, &val7);
3635 if (!SWIG_IsOK(ecode7)) {
3636 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Button_Create" "', expected argument " "7"" of type '" "long""'");
3637 }
3638 arg7 = static_cast< long >(val7);
3639 }
3640 if (obj7) {
3641 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3642 if (!SWIG_IsOK(res8)) {
3643 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 3644 }
1bd55598
RD
3645 if (!argp8) {
3646 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 3647 }
1bd55598
RD
3648 arg8 = reinterpret_cast< wxValidator * >(argp8);
3649 }
3650 if (obj8) {
d55e5bfc 3651 {
1bd55598
RD
3652 arg9 = wxString_in_helper(obj8);
3653 if (arg9 == NULL) SWIG_fail;
3654 temp9 = true;
d55e5bfc 3655 }
1bd55598
RD
3656 }
3657 {
3658 PyThreadState* __tstate = wxPyBeginAllowThreads();
3659 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3660 wxPyEndAllowThreads(__tstate);
3661 if (PyErr_Occurred()) SWIG_fail;
3662 }
3663 {
3664 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3665 }
3666 {
3667 if (temp4)
3668 delete arg4;
3669 }
3670 {
3671 if (temp9)
3672 delete arg9;
3673 }
3674 return resultobj;
3675fail:
3676 {
3677 if (temp4)
3678 delete arg4;
3679 }
3680 {
3681 if (temp9)
3682 delete arg9;
3683 }
3684 return NULL;
d55e5bfc
RD
3685}
3686
3687
1bd55598
RD
3688SWIGINTERN PyObject *_wrap_Button_SetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3689 PyObject *resultobj = 0;
3690 wxButton *arg1 = (wxButton *) 0 ;
3691 void *argp1 = 0 ;
3692 int res1 = 0 ;
3693 PyObject *swig_obj[1] ;
3694
3695 if (!args) SWIG_fail;
3696 swig_obj[0] = args;
3697 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3698 if (!SWIG_IsOK(res1)) {
3699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_SetDefault" "', expected argument " "1"" of type '" "wxButton *""'");
3700 }
3701 arg1 = reinterpret_cast< wxButton * >(argp1);
3702 {
3703 PyThreadState* __tstate = wxPyBeginAllowThreads();
3704 (arg1)->SetDefault();
3705 wxPyEndAllowThreads(__tstate);
3706 if (PyErr_Occurred()) SWIG_fail;
3707 }
3708 resultobj = SWIG_Py_Void();
3709 return resultobj;
3710fail:
3711 return NULL;
d55e5bfc
RD
3712}
3713
3714
1bd55598
RD
3715SWIGINTERN PyObject *_wrap_Button_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3716 PyObject *resultobj = 0;
3717 wxSize result;
3718
3719 if (!SWIG_Python_UnpackTuple(args,"Button_GetDefaultSize",0,0,0)) SWIG_fail;
3720 {
3721 PyThreadState* __tstate = wxPyBeginAllowThreads();
3722 result = wxButton::GetDefaultSize();
3723 wxPyEndAllowThreads(__tstate);
3724 if (PyErr_Occurred()) SWIG_fail;
3725 }
3726 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
3727 return resultobj;
3728fail:
3729 return NULL;
3730}
3731
3732
3733SWIGINTERN PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3734 PyObject *resultobj = 0;
3735 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
3736 SwigValueWrapper<wxVisualAttributes > result;
3737 int val1 ;
3738 int ecode1 = 0 ;
3739 PyObject * obj0 = 0 ;
3740 char * kwnames[] = {
3741 (char *) "variant", NULL
3742 };
3743
3744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
3745 if (obj0) {
3746 ecode1 = SWIG_AsVal_int(obj0, &val1);
3747 if (!SWIG_IsOK(ecode1)) {
3748 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Button_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
3749 }
3750 arg1 = static_cast< wxWindowVariant >(val1);
3751 }
3752 {
3753 if (!wxPyCheckForApp()) SWIG_fail;
3754 PyThreadState* __tstate = wxPyBeginAllowThreads();
3755 result = wxButton::GetClassDefaultAttributes(arg1);
3756 wxPyEndAllowThreads(__tstate);
3757 if (PyErr_Occurred()) SWIG_fail;
3758 }
3759 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
3760 return resultobj;
3761fail:
3762 return NULL;
3763}
3764
3765
3766SWIGINTERN PyObject *Button_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3767 PyObject *obj;
3768 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3769 SWIG_TypeNewClientData(SWIGTYPE_p_wxButton, SWIG_NewClientData(obj));
3770 return SWIG_Py_Void();
3771}
3772
3773SWIGINTERN PyObject *Button_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3774 return SWIG_Python_InitShadowInstance(args);
3775}
3776
3777SWIGINTERN PyObject *_wrap_new_BitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3778 PyObject *resultobj = 0;
3779 wxWindow *arg1 = (wxWindow *) 0 ;
3780 int arg2 = (int) -1 ;
3781 wxBitmap const &arg3_defvalue = wxNullBitmap ;
3782 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
3783 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3784 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3785 wxSize const &arg5_defvalue = wxDefaultSize ;
3786 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3787 long arg6 = (long) wxBU_AUTODRAW ;
3788 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3789 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3790 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3791 wxString *arg8 = (wxString *) &arg8_defvalue ;
3792 wxBitmapButton *result = 0 ;
3793 void *argp1 = 0 ;
3794 int res1 = 0 ;
3795 int val2 ;
3796 int ecode2 = 0 ;
3797 void *argp3 = 0 ;
3798 int res3 = 0 ;
3799 wxPoint temp4 ;
3800 wxSize temp5 ;
3801 long val6 ;
3802 int ecode6 = 0 ;
3803 void *argp7 = 0 ;
3804 int res7 = 0 ;
3805 bool temp8 = false ;
3806 PyObject * obj0 = 0 ;
3807 PyObject * obj1 = 0 ;
3808 PyObject * obj2 = 0 ;
3809 PyObject * obj3 = 0 ;
3810 PyObject * obj4 = 0 ;
3811 PyObject * obj5 = 0 ;
3812 PyObject * obj6 = 0 ;
3813 PyObject * obj7 = 0 ;
3814 char * kwnames[] = {
3815 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3816 };
3817
3818 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3819 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3820 if (!SWIG_IsOK(res1)) {
3821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapButton" "', expected argument " "1"" of type '" "wxWindow *""'");
3822 }
3823 arg1 = reinterpret_cast< wxWindow * >(argp1);
3824 if (obj1) {
3825 ecode2 = SWIG_AsVal_int(obj1, &val2);
3826 if (!SWIG_IsOK(ecode2)) {
3827 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapButton" "', expected argument " "2"" of type '" "int""'");
3828 }
3829 arg2 = static_cast< int >(val2);
3830 }
3831 if (obj2) {
3832 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
3833 if (!SWIG_IsOK(res3)) {
3834 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3835 }
3836 if (!argp3) {
3837 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3838 }
3839 arg3 = reinterpret_cast< wxBitmap * >(argp3);
3840 }
3841 if (obj3) {
d55e5bfc 3842 {
1bd55598
RD
3843 arg4 = &temp4;
3844 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 3845 }
1bd55598
RD
3846 }
3847 if (obj4) {
d55e5bfc 3848 {
1bd55598
RD
3849 arg5 = &temp5;
3850 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 3851 }
1bd55598
RD
3852 }
3853 if (obj5) {
3854 ecode6 = SWIG_AsVal_long(obj5, &val6);
3855 if (!SWIG_IsOK(ecode6)) {
3856 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_BitmapButton" "', expected argument " "6"" of type '" "long""'");
3857 }
3858 arg6 = static_cast< long >(val6);
3859 }
3860 if (obj6) {
3861 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3862 if (!SWIG_IsOK(res7)) {
3863 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
f20a2e1f 3864 }
1bd55598
RD
3865 if (!argp7) {
3866 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
f20a2e1f 3867 }
1bd55598
RD
3868 arg7 = reinterpret_cast< wxValidator * >(argp7);
3869 }
3870 if (obj7) {
f20a2e1f 3871 {
1bd55598
RD
3872 arg8 = wxString_in_helper(obj7);
3873 if (arg8 == NULL) SWIG_fail;
3874 temp8 = true;
f20a2e1f 3875 }
1bd55598
RD
3876 }
3877 {
3878 if (!wxPyCheckForApp()) SWIG_fail;
3879 PyThreadState* __tstate = wxPyBeginAllowThreads();
3880 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3881 wxPyEndAllowThreads(__tstate);
3882 if (PyErr_Occurred()) SWIG_fail;
3883 }
3884 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_NEW | 0 );
3885 {
3886 if (temp8)
3887 delete arg8;
3888 }
3889 return resultobj;
3890fail:
3891 {
3892 if (temp8)
3893 delete arg8;
3894 }
3895 return NULL;
f20a2e1f
RD
3896}
3897
3898
1bd55598
RD
3899SWIGINTERN PyObject *_wrap_new_PreBitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3900 PyObject *resultobj = 0;
3901 wxBitmapButton *result = 0 ;
3902
3903 if (!SWIG_Python_UnpackTuple(args,"new_PreBitmapButton",0,0,0)) SWIG_fail;
3904 {
3905 if (!wxPyCheckForApp()) SWIG_fail;
3906 PyThreadState* __tstate = wxPyBeginAllowThreads();
3907 result = (wxBitmapButton *)new wxBitmapButton();
3908 wxPyEndAllowThreads(__tstate);
3909 if (PyErr_Occurred()) SWIG_fail;
3910 }
3911 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_OWN | 0 );
3912 return resultobj;
3913fail:
3914 return NULL;
3915}
3916
3917
3918SWIGINTERN PyObject *_wrap_BitmapButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3919 PyObject *resultobj = 0;
3920 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
3921 wxWindow *arg2 = (wxWindow *) 0 ;
3922 int arg3 = (int) -1 ;
3923 wxBitmap const &arg4_defvalue = wxNullBitmap ;
3924 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
3925 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3926 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3927 wxSize const &arg6_defvalue = wxDefaultSize ;
3928 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3929 long arg7 = (long) wxBU_AUTODRAW ;
3930 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3931 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3932 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3933 wxString *arg9 = (wxString *) &arg9_defvalue ;
3934 bool result;
3935 void *argp1 = 0 ;
3936 int res1 = 0 ;
3937 void *argp2 = 0 ;
3938 int res2 = 0 ;
3939 int val3 ;
3940 int ecode3 = 0 ;
3941 void *argp4 = 0 ;
3942 int res4 = 0 ;
3943 wxPoint temp5 ;
3944 wxSize temp6 ;
3945 long val7 ;
3946 int ecode7 = 0 ;
3947 void *argp8 = 0 ;
3948 int res8 = 0 ;
3949 bool temp9 = false ;
3950 PyObject * obj0 = 0 ;
3951 PyObject * obj1 = 0 ;
3952 PyObject * obj2 = 0 ;
3953 PyObject * obj3 = 0 ;
3954 PyObject * obj4 = 0 ;
3955 PyObject * obj5 = 0 ;
3956 PyObject * obj6 = 0 ;
3957 PyObject * obj7 = 0 ;
3958 PyObject * obj8 = 0 ;
3959 char * kwnames[] = {
3960 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3961 };
3962
3963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
3965 if (!SWIG_IsOK(res1)) {
3966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_Create" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
3967 }
3968 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
3969 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3970 if (!SWIG_IsOK(res2)) {
3971 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3972 }
3973 arg2 = reinterpret_cast< wxWindow * >(argp2);
3974 if (obj2) {
3975 ecode3 = SWIG_AsVal_int(obj2, &val3);
3976 if (!SWIG_IsOK(ecode3)) {
3977 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_Create" "', expected argument " "3"" of type '" "int""'");
3978 }
3979 arg3 = static_cast< int >(val3);
3980 }
3981 if (obj3) {
3982 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
3983 if (!SWIG_IsOK(res4)) {
3984 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
d55e5bfc 3985 }
1bd55598
RD
3986 if (!argp4) {
3987 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
d55e5bfc 3988 }
1bd55598
RD
3989 arg4 = reinterpret_cast< wxBitmap * >(argp4);
3990 }
3991 if (obj4) {
d55e5bfc 3992 {
1bd55598
RD
3993 arg5 = &temp5;
3994 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 3995 }
1bd55598
RD
3996 }
3997 if (obj5) {
d55e5bfc 3998 {
1bd55598
RD
3999 arg6 = &temp6;
4000 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4001 }
4002 }
4003 if (obj6) {
4004 ecode7 = SWIG_AsVal_long(obj6, &val7);
4005 if (!SWIG_IsOK(ecode7)) {
4006 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "BitmapButton_Create" "', expected argument " "7"" of type '" "long""'");
4007 }
4008 arg7 = static_cast< long >(val7);
4009 }
4010 if (obj7) {
4011 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4012 if (!SWIG_IsOK(res8)) {
4013 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4014 }
4015 if (!argp8) {
4016 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 4017 }
1bd55598
RD
4018 arg8 = reinterpret_cast< wxValidator * >(argp8);
4019 }
4020 if (obj8) {
d55e5bfc 4021 {
1bd55598
RD
4022 arg9 = wxString_in_helper(obj8);
4023 if (arg9 == NULL) SWIG_fail;
4024 temp9 = true;
d55e5bfc 4025 }
1bd55598
RD
4026 }
4027 {
4028 PyThreadState* __tstate = wxPyBeginAllowThreads();
4029 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4030 wxPyEndAllowThreads(__tstate);
4031 if (PyErr_Occurred()) SWIG_fail;
4032 }
4033 {
4034 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4035 }
4036 {
4037 if (temp9)
4038 delete arg9;
4039 }
4040 return resultobj;
4041fail:
4042 {
4043 if (temp9)
4044 delete arg9;
4045 }
4046 return NULL;
d55e5bfc
RD
4047}
4048
4049
1bd55598
RD
4050SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4051 PyObject *resultobj = 0;
4052 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4053 wxBitmap result;
4054 void *argp1 = 0 ;
4055 int res1 = 0 ;
4056 PyObject *swig_obj[1] ;
4057
4058 if (!args) SWIG_fail;
4059 swig_obj[0] = args;
4060 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4061 if (!SWIG_IsOK(res1)) {
4062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4063 }
4064 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4065 {
4066 PyThreadState* __tstate = wxPyBeginAllowThreads();
4067 result = (arg1)->GetBitmapLabel();
4068 wxPyEndAllowThreads(__tstate);
4069 if (PyErr_Occurred()) SWIG_fail;
4070 }
4071 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4072 return resultobj;
4073fail:
4074 return NULL;
d55e5bfc
RD
4075}
4076
4077
1bd55598
RD
4078SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4079 PyObject *resultobj = 0;
4080 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4081 wxBitmap result;
4082 void *argp1 = 0 ;
4083 int res1 = 0 ;
4084 PyObject *swig_obj[1] ;
4085
4086 if (!args) SWIG_fail;
4087 swig_obj[0] = args;
4088 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4089 if (!SWIG_IsOK(res1)) {
4090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4091 }
4092 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4093 {
4094 PyThreadState* __tstate = wxPyBeginAllowThreads();
4095 result = (arg1)->GetBitmapDisabled();
4096 wxPyEndAllowThreads(__tstate);
4097 if (PyErr_Occurred()) SWIG_fail;
4098 }
4099 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4100 return resultobj;
4101fail:
4102 return NULL;
d55e5bfc
RD
4103}
4104
4105
1bd55598
RD
4106SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4107 PyObject *resultobj = 0;
4108 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4109 wxBitmap result;
4110 void *argp1 = 0 ;
4111 int res1 = 0 ;
4112 PyObject *swig_obj[1] ;
4113
4114 if (!args) SWIG_fail;
4115 swig_obj[0] = args;
4116 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4117 if (!SWIG_IsOK(res1)) {
4118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4119 }
4120 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4121 {
4122 PyThreadState* __tstate = wxPyBeginAllowThreads();
4123 result = (arg1)->GetBitmapFocus();
4124 wxPyEndAllowThreads(__tstate);
4125 if (PyErr_Occurred()) SWIG_fail;
4126 }
4127 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4128 return resultobj;
4129fail:
4130 return NULL;
d55e5bfc
RD
4131}
4132
4133
1bd55598
RD
4134SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4135 PyObject *resultobj = 0;
4136 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4137 wxBitmap result;
4138 void *argp1 = 0 ;
4139 int res1 = 0 ;
4140 PyObject *swig_obj[1] ;
4141
4142 if (!args) SWIG_fail;
4143 swig_obj[0] = args;
4144 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4145 if (!SWIG_IsOK(res1)) {
4146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4147 }
4148 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4149 {
4150 PyThreadState* __tstate = wxPyBeginAllowThreads();
4151 result = (arg1)->GetBitmapSelected();
4152 wxPyEndAllowThreads(__tstate);
4153 if (PyErr_Occurred()) SWIG_fail;
4154 }
4155 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4156 return resultobj;
4157fail:
4158 return NULL;
d55e5bfc
RD
4159}
4160
4161
1bd55598
RD
4162SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4163 PyObject *resultobj = 0;
4164 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4165 wxBitmap result;
4166 void *argp1 = 0 ;
4167 int res1 = 0 ;
4168 PyObject *swig_obj[1] ;
4169
4170 if (!args) SWIG_fail;
4171 swig_obj[0] = args;
4172 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4173 if (!SWIG_IsOK(res1)) {
4174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4175 }
4176 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4177 {
4178 PyThreadState* __tstate = wxPyBeginAllowThreads();
4179 result = (arg1)->GetBitmapHover();
4180 wxPyEndAllowThreads(__tstate);
4181 if (PyErr_Occurred()) SWIG_fail;
4182 }
4183 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4184 return resultobj;
4185fail:
4186 return NULL;
4187}
4188
4189
4190SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4191 PyObject *resultobj = 0;
4192 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4193 wxBitmap *arg2 = 0 ;
4194 void *argp1 = 0 ;
4195 int res1 = 0 ;
4196 void *argp2 = 0 ;
4197 int res2 = 0 ;
4198 PyObject * obj0 = 0 ;
4199 PyObject * obj1 = 0 ;
4200 char * kwnames[] = {
4201 (char *) "self",(char *) "bitmap", NULL
4202 };
4203
4204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) SWIG_fail;
4205 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4206 if (!SWIG_IsOK(res1)) {
4207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4208 }
4209 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4210 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4211 if (!SWIG_IsOK(res2)) {
4212 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4213 }
4214 if (!argp2) {
4215 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4216 }
4217 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4218 {
4219 PyThreadState* __tstate = wxPyBeginAllowThreads();
4220 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
4221 wxPyEndAllowThreads(__tstate);
4222 if (PyErr_Occurred()) SWIG_fail;
4223 }
4224 resultobj = SWIG_Py_Void();
4225 return resultobj;
4226fail:
4227 return NULL;
4228}
4229
4230
4231SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4232 PyObject *resultobj = 0;
4233 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4234 wxBitmap *arg2 = 0 ;
4235 void *argp1 = 0 ;
4236 int res1 = 0 ;
4237 void *argp2 = 0 ;
4238 int res2 = 0 ;
4239 PyObject * obj0 = 0 ;
4240 PyObject * obj1 = 0 ;
4241 char * kwnames[] = {
4242 (char *) "self",(char *) "bitmap", NULL
4243 };
4244
4245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) SWIG_fail;
4246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4247 if (!SWIG_IsOK(res1)) {
4248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4249 }
4250 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4251 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4252 if (!SWIG_IsOK(res2)) {
4253 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4254 }
4255 if (!argp2) {
4256 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4257 }
4258 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4259 {
4260 PyThreadState* __tstate = wxPyBeginAllowThreads();
4261 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
4262 wxPyEndAllowThreads(__tstate);
4263 if (PyErr_Occurred()) SWIG_fail;
4264 }
4265 resultobj = SWIG_Py_Void();
4266 return resultobj;
4267fail:
4268 return NULL;
4269}
4270
4271
4272SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4273 PyObject *resultobj = 0;
4274 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4275 wxBitmap *arg2 = 0 ;
4276 void *argp1 = 0 ;
4277 int res1 = 0 ;
4278 void *argp2 = 0 ;
4279 int res2 = 0 ;
4280 PyObject * obj0 = 0 ;
4281 PyObject * obj1 = 0 ;
4282 char * kwnames[] = {
4283 (char *) "self",(char *) "bitmap", NULL
4284 };
4285
4286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) SWIG_fail;
4287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4288 if (!SWIG_IsOK(res1)) {
4289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4290 }
4291 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4292 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4293 if (!SWIG_IsOK(res2)) {
4294 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4295 }
4296 if (!argp2) {
4297 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4298 }
4299 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4300 {
4301 PyThreadState* __tstate = wxPyBeginAllowThreads();
4302 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
4303 wxPyEndAllowThreads(__tstate);
4304 if (PyErr_Occurred()) SWIG_fail;
4305 }
4306 resultobj = SWIG_Py_Void();
4307 return resultobj;
4308fail:
4309 return NULL;
4310}
4311
4312
4313SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4314 PyObject *resultobj = 0;
4315 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4316 wxBitmap *arg2 = 0 ;
4317 void *argp1 = 0 ;
4318 int res1 = 0 ;
4319 void *argp2 = 0 ;
4320 int res2 = 0 ;
4321 PyObject * obj0 = 0 ;
4322 PyObject * obj1 = 0 ;
4323 char * kwnames[] = {
4324 (char *) "self",(char *) "bitmap", NULL
4325 };
4326
4327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) SWIG_fail;
4328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4329 if (!SWIG_IsOK(res1)) {
4330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4331 }
4332 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4333 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4334 if (!SWIG_IsOK(res2)) {
4335 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4336 }
4337 if (!argp2) {
4338 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4339 }
4340 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4341 {
4342 PyThreadState* __tstate = wxPyBeginAllowThreads();
4343 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
4344 wxPyEndAllowThreads(__tstate);
4345 if (PyErr_Occurred()) SWIG_fail;
4346 }
4347 resultobj = SWIG_Py_Void();
4348 return resultobj;
4349fail:
4350 return NULL;
4351}
4352
4353
4354SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4355 PyObject *resultobj = 0;
4356 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4357 wxBitmap *arg2 = 0 ;
4358 void *argp1 = 0 ;
4359 int res1 = 0 ;
4360 void *argp2 = 0 ;
4361 int res2 = 0 ;
4362 PyObject * obj0 = 0 ;
4363 PyObject * obj1 = 0 ;
4364 char * kwnames[] = {
4365 (char *) "self",(char *) "hover", NULL
4366 };
4367
4368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapHover",kwnames,&obj0,&obj1)) SWIG_fail;
4369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4370 if (!SWIG_IsOK(res1)) {
4371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4372 }
4373 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4374 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4375 if (!SWIG_IsOK(res2)) {
4376 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4377 }
4378 if (!argp2) {
4379 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4380 }
4381 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4382 {
4383 PyThreadState* __tstate = wxPyBeginAllowThreads();
4384 (arg1)->SetBitmapHover((wxBitmap const &)*arg2);
4385 wxPyEndAllowThreads(__tstate);
4386 if (PyErr_Occurred()) SWIG_fail;
4387 }
4388 resultobj = SWIG_Py_Void();
4389 return resultobj;
4390fail:
4391 return NULL;
4392}
4393
4394
4395SWIGINTERN PyObject *_wrap_BitmapButton_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4396 PyObject *resultobj = 0;
4397 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4398 int arg2 ;
4399 int arg3 ;
4400 void *argp1 = 0 ;
4401 int res1 = 0 ;
4402 int val2 ;
4403 int ecode2 = 0 ;
4404 int val3 ;
4405 int ecode3 = 0 ;
4406 PyObject * obj0 = 0 ;
4407 PyObject * obj1 = 0 ;
4408 PyObject * obj2 = 0 ;
4409 char * kwnames[] = {
4410 (char *) "self",(char *) "x",(char *) "y", NULL
4411 };
4412
4413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4415 if (!SWIG_IsOK(res1)) {
4416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetMargins" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4417 }
4418 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4419 ecode2 = SWIG_AsVal_int(obj1, &val2);
4420 if (!SWIG_IsOK(ecode2)) {
4421 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BitmapButton_SetMargins" "', expected argument " "2"" of type '" "int""'");
4422 }
4423 arg2 = static_cast< int >(val2);
4424 ecode3 = SWIG_AsVal_int(obj2, &val3);
4425 if (!SWIG_IsOK(ecode3)) {
4426 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_SetMargins" "', expected argument " "3"" of type '" "int""'");
4427 }
4428 arg3 = static_cast< int >(val3);
4429 {
4430 PyThreadState* __tstate = wxPyBeginAllowThreads();
4431 (arg1)->SetMargins(arg2,arg3);
4432 wxPyEndAllowThreads(__tstate);
4433 if (PyErr_Occurred()) SWIG_fail;
4434 }
4435 resultobj = SWIG_Py_Void();
4436 return resultobj;
4437fail:
4438 return NULL;
d55e5bfc
RD
4439}
4440
4441
1bd55598
RD
4442SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4443 PyObject *resultobj = 0;
4444 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4445 int result;
4446 void *argp1 = 0 ;
4447 int res1 = 0 ;
4448 PyObject *swig_obj[1] ;
4449
4450 if (!args) SWIG_fail;
4451 swig_obj[0] = args;
4452 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4453 if (!SWIG_IsOK(res1)) {
4454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginX" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4455 }
4456 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4457 {
4458 PyThreadState* __tstate = wxPyBeginAllowThreads();
4459 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
4460 wxPyEndAllowThreads(__tstate);
4461 if (PyErr_Occurred()) SWIG_fail;
4462 }
4463 resultobj = SWIG_From_int(static_cast< int >(result));
4464 return resultobj;
4465fail:
4466 return NULL;
d55e5bfc
RD
4467}
4468
4469
1bd55598
RD
4470SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4471 PyObject *resultobj = 0;
4472 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4473 int result;
4474 void *argp1 = 0 ;
4475 int res1 = 0 ;
4476 PyObject *swig_obj[1] ;
4477
4478 if (!args) SWIG_fail;
4479 swig_obj[0] = args;
4480 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4481 if (!SWIG_IsOK(res1)) {
4482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginY" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4483 }
4484 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4485 {
4486 PyThreadState* __tstate = wxPyBeginAllowThreads();
4487 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
4488 wxPyEndAllowThreads(__tstate);
4489 if (PyErr_Occurred()) SWIG_fail;
4490 }
4491 resultobj = SWIG_From_int(static_cast< int >(result));
4492 return resultobj;
4493fail:
4494 return NULL;
b1fcee84
RD
4495}
4496
4497
1bd55598
RD
4498SWIGINTERN PyObject *BitmapButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4499 PyObject *obj;
4500 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4501 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmapButton, SWIG_NewClientData(obj));
4502 return SWIG_Py_Void();
d55e5bfc
RD
4503}
4504
1bd55598
RD
4505SWIGINTERN PyObject *BitmapButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4506 return SWIG_Python_InitShadowInstance(args);
4507}
d55e5bfc 4508
1bd55598
RD
4509SWIGINTERN int CheckBoxNameStr_set(PyObject *) {
4510 SWIG_Error(SWIG_AttributeError,"Variable CheckBoxNameStr is read-only.");
4511 return 1;
d55e5bfc
RD
4512}
4513
4514
1bd55598
RD
4515SWIGINTERN PyObject *CheckBoxNameStr_get(void) {
4516 PyObject *pyobj = 0;
4517
4518 {
4519#if wxUSE_UNICODE
4520 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4521#else
4522 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4523#endif
4524 }
4525 return pyobj;
4526}
4527
4528
4529SWIGINTERN PyObject *_wrap_new_CheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4530 PyObject *resultobj = 0;
4531 wxWindow *arg1 = (wxWindow *) 0 ;
4532 int arg2 = (int) -1 ;
4533 wxString const &arg3_defvalue = wxPyEmptyString ;
4534 wxString *arg3 = (wxString *) &arg3_defvalue ;
4535 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4536 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4537 wxSize const &arg5_defvalue = wxDefaultSize ;
4538 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4539 long arg6 = (long) 0 ;
4540 wxValidator const &arg7_defvalue = wxDefaultValidator ;
4541 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
4542 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
4543 wxString *arg8 = (wxString *) &arg8_defvalue ;
4544 wxCheckBox *result = 0 ;
4545 void *argp1 = 0 ;
4546 int res1 = 0 ;
4547 int val2 ;
4548 int ecode2 = 0 ;
4549 bool temp3 = false ;
4550 wxPoint temp4 ;
4551 wxSize temp5 ;
4552 long val6 ;
4553 int ecode6 = 0 ;
4554 void *argp7 = 0 ;
4555 int res7 = 0 ;
4556 bool temp8 = false ;
4557 PyObject * obj0 = 0 ;
4558 PyObject * obj1 = 0 ;
4559 PyObject * obj2 = 0 ;
4560 PyObject * obj3 = 0 ;
4561 PyObject * obj4 = 0 ;
4562 PyObject * obj5 = 0 ;
4563 PyObject * obj6 = 0 ;
4564 PyObject * obj7 = 0 ;
4565 char * kwnames[] = {
4566 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4567 };
4568
4569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
4570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
4571 if (!SWIG_IsOK(res1)) {
4572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckBox" "', expected argument " "1"" of type '" "wxWindow *""'");
4573 }
4574 arg1 = reinterpret_cast< wxWindow * >(argp1);
4575 if (obj1) {
4576 ecode2 = SWIG_AsVal_int(obj1, &val2);
4577 if (!SWIG_IsOK(ecode2)) {
4578 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckBox" "', expected argument " "2"" of type '" "int""'");
4579 }
4580 arg2 = static_cast< int >(val2);
4581 }
4582 if (obj2) {
d55e5bfc 4583 {
1bd55598
RD
4584 arg3 = wxString_in_helper(obj2);
4585 if (arg3 == NULL) SWIG_fail;
4586 temp3 = true;
d55e5bfc 4587 }
1bd55598
RD
4588 }
4589 if (obj3) {
4590 {
4591 arg4 = &temp4;
4592 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 4593 }
1bd55598
RD
4594 }
4595 if (obj4) {
d55e5bfc 4596 {
1bd55598
RD
4597 arg5 = &temp5;
4598 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 4599 }
1bd55598
RD
4600 }
4601 if (obj5) {
4602 ecode6 = SWIG_AsVal_long(obj5, &val6);
4603 if (!SWIG_IsOK(ecode6)) {
4604 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckBox" "', expected argument " "6"" of type '" "long""'");
4605 }
4606 arg6 = static_cast< long >(val6);
4607 }
4608 if (obj6) {
4609 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
4610 if (!SWIG_IsOK(res7)) {
4611 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
b1fcee84 4612 }
1bd55598
RD
4613 if (!argp7) {
4614 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4615 }
4616 arg7 = reinterpret_cast< wxValidator * >(argp7);
4617 }
4618 if (obj7) {
b1fcee84 4619 {
1bd55598
RD
4620 arg8 = wxString_in_helper(obj7);
4621 if (arg8 == NULL) SWIG_fail;
4622 temp8 = true;
b1fcee84 4623 }
1bd55598
RD
4624 }
4625 {
4626 if (!wxPyCheckForApp()) SWIG_fail;
4627 PyThreadState* __tstate = wxPyBeginAllowThreads();
4628 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
4629 wxPyEndAllowThreads(__tstate);
4630 if (PyErr_Occurred()) SWIG_fail;
4631 }
4632 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_NEW | 0 );
4633 {
4634 if (temp3)
4635 delete arg3;
4636 }
4637 {
4638 if (temp8)
4639 delete arg8;
4640 }
4641 return resultobj;
4642fail:
4643 {
4644 if (temp3)
4645 delete arg3;
4646 }
4647 {
4648 if (temp8)
4649 delete arg8;
4650 }
4651 return NULL;
b1fcee84
RD
4652}
4653
4654
1bd55598
RD
4655SWIGINTERN PyObject *_wrap_new_PreCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4656 PyObject *resultobj = 0;
4657 wxCheckBox *result = 0 ;
4658
4659 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckBox",0,0,0)) SWIG_fail;
4660 {
4661 if (!wxPyCheckForApp()) SWIG_fail;
4662 PyThreadState* __tstate = wxPyBeginAllowThreads();
4663 result = (wxCheckBox *)new wxCheckBox();
4664 wxPyEndAllowThreads(__tstate);
4665 if (PyErr_Occurred()) SWIG_fail;
4666 }
4667 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_OWN | 0 );
4668 return resultobj;
4669fail:
4670 return NULL;
4671}
4672
4673
4674SWIGINTERN PyObject *_wrap_CheckBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4675 PyObject *resultobj = 0;
4676 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4677 wxWindow *arg2 = (wxWindow *) 0 ;
4678 int arg3 = (int) -1 ;
4679 wxString const &arg4_defvalue = wxPyEmptyString ;
4680 wxString *arg4 = (wxString *) &arg4_defvalue ;
4681 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4682 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4683 wxSize const &arg6_defvalue = wxDefaultSize ;
4684 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4685 long arg7 = (long) 0 ;
4686 wxValidator const &arg8_defvalue = wxDefaultValidator ;
4687 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
4688 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
4689 wxString *arg9 = (wxString *) &arg9_defvalue ;
4690 bool result;
4691 void *argp1 = 0 ;
4692 int res1 = 0 ;
4693 void *argp2 = 0 ;
4694 int res2 = 0 ;
4695 int val3 ;
4696 int ecode3 = 0 ;
4697 bool temp4 = false ;
4698 wxPoint temp5 ;
4699 wxSize temp6 ;
4700 long val7 ;
4701 int ecode7 = 0 ;
4702 void *argp8 = 0 ;
4703 int res8 = 0 ;
4704 bool temp9 = false ;
4705 PyObject * obj0 = 0 ;
4706 PyObject * obj1 = 0 ;
4707 PyObject * obj2 = 0 ;
4708 PyObject * obj3 = 0 ;
4709 PyObject * obj4 = 0 ;
4710 PyObject * obj5 = 0 ;
4711 PyObject * obj6 = 0 ;
4712 PyObject * obj7 = 0 ;
4713 PyObject * obj8 = 0 ;
4714 char * kwnames[] = {
4715 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4716 };
4717
4718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
4719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4720 if (!SWIG_IsOK(res1)) {
4721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Create" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4722 }
4723 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4724 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
4725 if (!SWIG_IsOK(res2)) {
4726 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
4727 }
4728 arg2 = reinterpret_cast< wxWindow * >(argp2);
4729 if (obj2) {
4730 ecode3 = SWIG_AsVal_int(obj2, &val3);
4731 if (!SWIG_IsOK(ecode3)) {
4732 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckBox_Create" "', expected argument " "3"" of type '" "int""'");
4733 }
4734 arg3 = static_cast< int >(val3);
4735 }
4736 if (obj3) {
36ed4f51 4737 {
1bd55598
RD
4738 arg4 = wxString_in_helper(obj3);
4739 if (arg4 == NULL) SWIG_fail;
4740 temp4 = true;
36ed4f51 4741 }
1bd55598
RD
4742 }
4743 if (obj4) {
36ed4f51 4744 {
1bd55598
RD
4745 arg5 = &temp5;
4746 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 4747 }
1bd55598
RD
4748 }
4749 if (obj5) {
d55e5bfc 4750 {
1bd55598
RD
4751 arg6 = &temp6;
4752 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 4753 }
1bd55598
RD
4754 }
4755 if (obj6) {
4756 ecode7 = SWIG_AsVal_long(obj6, &val7);
4757 if (!SWIG_IsOK(ecode7)) {
4758 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckBox_Create" "', expected argument " "7"" of type '" "long""'");
4759 }
4760 arg7 = static_cast< long >(val7);
4761 }
4762 if (obj7) {
4763 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4764 if (!SWIG_IsOK(res8)) {
4765 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 4766 }
1bd55598
RD
4767 if (!argp8) {
4768 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4769 }
4770 arg8 = reinterpret_cast< wxValidator * >(argp8);
4771 }
4772 if (obj8) {
36ed4f51 4773 {
1bd55598
RD
4774 arg9 = wxString_in_helper(obj8);
4775 if (arg9 == NULL) SWIG_fail;
4776 temp9 = true;
36ed4f51 4777 }
1bd55598
RD
4778 }
4779 {
4780 PyThreadState* __tstate = wxPyBeginAllowThreads();
4781 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4782 wxPyEndAllowThreads(__tstate);
4783 if (PyErr_Occurred()) SWIG_fail;
4784 }
4785 {
4786 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4787 }
4788 {
4789 if (temp4)
4790 delete arg4;
4791 }
4792 {
4793 if (temp9)
4794 delete arg9;
4795 }
4796 return resultobj;
4797fail:
4798 {
4799 if (temp4)
4800 delete arg4;
4801 }
4802 {
4803 if (temp9)
4804 delete arg9;
4805 }
4806 return NULL;
d55e5bfc
RD
4807}
4808
4809
1bd55598
RD
4810SWIGINTERN PyObject *_wrap_CheckBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4811 PyObject *resultobj = 0;
4812 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4813 bool result;
4814 void *argp1 = 0 ;
4815 int res1 = 0 ;
4816 PyObject *swig_obj[1] ;
4817
4818 if (!args) SWIG_fail;
4819 swig_obj[0] = args;
4820 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4821 if (!SWIG_IsOK(res1)) {
4822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_GetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4823 }
4824 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4825 {
4826 PyThreadState* __tstate = wxPyBeginAllowThreads();
4827 result = (bool)(arg1)->GetValue();
4828 wxPyEndAllowThreads(__tstate);
4829 if (PyErr_Occurred()) SWIG_fail;
4830 }
4831 {
4832 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4833 }
4834 return resultobj;
4835fail:
4836 return NULL;
d55e5bfc
RD
4837}
4838
4839
1bd55598
RD
4840SWIGINTERN PyObject *_wrap_CheckBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4841 PyObject *resultobj = 0;
4842 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4843 bool result;
4844 void *argp1 = 0 ;
4845 int res1 = 0 ;
4846 PyObject *swig_obj[1] ;
4847
4848 if (!args) SWIG_fail;
4849 swig_obj[0] = args;
4850 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4851 if (!SWIG_IsOK(res1)) {
4852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4853 }
4854 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4855 {
4856 PyThreadState* __tstate = wxPyBeginAllowThreads();
4857 result = (bool)(arg1)->IsChecked();
4858 wxPyEndAllowThreads(__tstate);
4859 if (PyErr_Occurred()) SWIG_fail;
4860 }
4861 {
4862 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4863 }
4864 return resultobj;
4865fail:
4866 return NULL;
4867}
4868
4869
4870SWIGINTERN PyObject *_wrap_CheckBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4871 PyObject *resultobj = 0;
4872 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4873 bool arg2 ;
4874 void *argp1 = 0 ;
4875 int res1 = 0 ;
4876 bool val2 ;
4877 int ecode2 = 0 ;
4878 PyObject * obj0 = 0 ;
4879 PyObject * obj1 = 0 ;
4880 char * kwnames[] = {
4881 (char *) "self",(char *) "state", NULL
4882 };
4883
4884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
4885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4886 if (!SWIG_IsOK(res1)) {
4887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_SetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4888 }
4889 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4890 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4891 if (!SWIG_IsOK(ecode2)) {
4892 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_SetValue" "', expected argument " "2"" of type '" "bool""'");
4893 }
4894 arg2 = static_cast< bool >(val2);
4895 {
4896 PyThreadState* __tstate = wxPyBeginAllowThreads();
4897 (arg1)->SetValue(arg2);
4898 wxPyEndAllowThreads(__tstate);
4899 if (PyErr_Occurred()) SWIG_fail;
4900 }
4901 resultobj = SWIG_Py_Void();
4902 return resultobj;
4903fail:
4904 return NULL;
d55e5bfc 4905}
1bd55598
RD
4906
4907
4908SWIGINTERN PyObject *_wrap_CheckBox_Get3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4909 PyObject *resultobj = 0;
4910 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4911 wxCheckBoxState result;
4912 void *argp1 = 0 ;
4913 int res1 = 0 ;
4914 PyObject *swig_obj[1] ;
4915
4916 if (!args) SWIG_fail;
4917 swig_obj[0] = args;
4918 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4919 if (!SWIG_IsOK(res1)) {
4920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Get3StateValue" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4921 }
4922 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4923 {
4924 PyThreadState* __tstate = wxPyBeginAllowThreads();
4925 result = (wxCheckBoxState)((wxCheckBox const *)arg1)->Get3StateValue();
4926 wxPyEndAllowThreads(__tstate);
4927 if (PyErr_Occurred()) SWIG_fail;
4928 }
4929 resultobj = SWIG_From_int(static_cast< int >(result));
4930 return resultobj;
4931fail:
4932 return NULL;
4933}
4934
4935
4936SWIGINTERN PyObject *_wrap_CheckBox_Set3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4937 PyObject *resultobj = 0;
4938 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4939 wxCheckBoxState arg2 ;
4940 void *argp1 = 0 ;
4941 int res1 = 0 ;
4942 int val2 ;
4943 int ecode2 = 0 ;
4944 PyObject * obj0 = 0 ;
4945 PyObject * obj1 = 0 ;
4946 char * kwnames[] = {
4947 (char *) "self",(char *) "state", NULL
4948 };
4949
4950 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) SWIG_fail;
4951 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4952 if (!SWIG_IsOK(res1)) {
4953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Set3StateValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4954 }
4955 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4956 ecode2 = SWIG_AsVal_int(obj1, &val2);
4957 if (!SWIG_IsOK(ecode2)) {
4958 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_Set3StateValue" "', expected argument " "2"" of type '" "wxCheckBoxState""'");
4959 }
4960 arg2 = static_cast< wxCheckBoxState >(val2);
4961 {
4962 PyThreadState* __tstate = wxPyBeginAllowThreads();
4963 (arg1)->Set3StateValue(arg2);
4964 wxPyEndAllowThreads(__tstate);
4965 if (PyErr_Occurred()) SWIG_fail;
4966 }
4967 resultobj = SWIG_Py_Void();
4968 return resultobj;
4969fail:
4970 return NULL;
d55e5bfc
RD
4971}
4972
4973
1bd55598
RD
4974SWIGINTERN PyObject *_wrap_CheckBox_Is3State(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4975 PyObject *resultobj = 0;
4976 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4977 bool result;
4978 void *argp1 = 0 ;
4979 int res1 = 0 ;
4980 PyObject *swig_obj[1] ;
4981
4982 if (!args) SWIG_fail;
4983 swig_obj[0] = args;
4984 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4985 if (!SWIG_IsOK(res1)) {
4986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3State" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4987 }
4988 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4989 {
4990 PyThreadState* __tstate = wxPyBeginAllowThreads();
4991 result = (bool)((wxCheckBox const *)arg1)->Is3State();
4992 wxPyEndAllowThreads(__tstate);
4993 if (PyErr_Occurred()) SWIG_fail;
4994 }
4995 {
4996 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4997 }
4998 return resultobj;
4999fail:
5000 return NULL;
d55e5bfc
RD
5001}
5002
5003
1bd55598
RD
5004SWIGINTERN PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5005 PyObject *resultobj = 0;
5006 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
5007 bool result;
5008 void *argp1 = 0 ;
5009 int res1 = 0 ;
5010 PyObject *swig_obj[1] ;
5011
5012 if (!args) SWIG_fail;
5013 swig_obj[0] = args;
5014 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
5015 if (!SWIG_IsOK(res1)) {
5016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3rdStateAllowedForUser" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
5017 }
5018 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
5019 {
5020 PyThreadState* __tstate = wxPyBeginAllowThreads();
5021 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
5022 wxPyEndAllowThreads(__tstate);
5023 if (PyErr_Occurred()) SWIG_fail;
5024 }
5025 {
5026 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5027 }
5028 return resultobj;
5029fail:
5030 return NULL;
d55e5bfc
RD
5031}
5032
5033
1bd55598
RD
5034SWIGINTERN PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5035 PyObject *resultobj = 0;
5036 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5037 SwigValueWrapper<wxVisualAttributes > result;
5038 int val1 ;
5039 int ecode1 = 0 ;
5040 PyObject * obj0 = 0 ;
5041 char * kwnames[] = {
5042 (char *) "variant", NULL
5043 };
5044
5045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5046 if (obj0) {
5047 ecode1 = SWIG_AsVal_int(obj0, &val1);
5048 if (!SWIG_IsOK(ecode1)) {
5049 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CheckBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5050 }
5051 arg1 = static_cast< wxWindowVariant >(val1);
5052 }
5053 {
5054 if (!wxPyCheckForApp()) SWIG_fail;
5055 PyThreadState* __tstate = wxPyBeginAllowThreads();
5056 result = wxCheckBox::GetClassDefaultAttributes(arg1);
5057 wxPyEndAllowThreads(__tstate);
5058 if (PyErr_Occurred()) SWIG_fail;
5059 }
5060 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5061 return resultobj;
5062fail:
5063 return NULL;
d55e5bfc
RD
5064}
5065
5066
1bd55598
RD
5067SWIGINTERN PyObject *CheckBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5068 PyObject *obj;
5069 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5070 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckBox, SWIG_NewClientData(obj));
5071 return SWIG_Py_Void();
d55e5bfc
RD
5072}
5073
1bd55598
RD
5074SWIGINTERN PyObject *CheckBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5075 return SWIG_Python_InitShadowInstance(args);
5076}
d55e5bfc 5077
1bd55598
RD
5078SWIGINTERN int ChoiceNameStr_set(PyObject *) {
5079 SWIG_Error(SWIG_AttributeError,"Variable ChoiceNameStr is read-only.");
5080 return 1;
d55e5bfc
RD
5081}
5082
5083
1bd55598
RD
5084SWIGINTERN PyObject *ChoiceNameStr_get(void) {
5085 PyObject *pyobj = 0;
5086
5087 {
5088#if wxUSE_UNICODE
5089 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5090#else
5091 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5092#endif
5093 }
5094 return pyobj;
5095}
5096
5097
5098SWIGINTERN PyObject *_wrap_new_Choice(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5099 PyObject *resultobj = 0;
5100 wxWindow *arg1 = (wxWindow *) 0 ;
5101 int arg2 = (int) -1 ;
5102 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5103 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5104 wxSize const &arg4_defvalue = wxDefaultSize ;
5105 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5106 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5107 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5108 long arg6 = (long) 0 ;
5109 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5110 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5111 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
5112 wxString *arg8 = (wxString *) &arg8_defvalue ;
5113 wxChoice *result = 0 ;
5114 void *argp1 = 0 ;
5115 int res1 = 0 ;
5116 int val2 ;
5117 int ecode2 = 0 ;
5118 wxPoint temp3 ;
5119 wxSize temp4 ;
5120 bool temp5 = false ;
5121 long val6 ;
5122 int ecode6 = 0 ;
5123 void *argp7 = 0 ;
5124 int res7 = 0 ;
5125 bool temp8 = false ;
5126 PyObject * obj0 = 0 ;
5127 PyObject * obj1 = 0 ;
5128 PyObject * obj2 = 0 ;
5129 PyObject * obj3 = 0 ;
5130 PyObject * obj4 = 0 ;
5131 PyObject * obj5 = 0 ;
5132 PyObject * obj6 = 0 ;
5133 PyObject * obj7 = 0 ;
5134 char * kwnames[] = {
5135 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5136 };
5137
5138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
5139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5140 if (!SWIG_IsOK(res1)) {
5141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choice" "', expected argument " "1"" of type '" "wxWindow *""'");
5142 }
5143 arg1 = reinterpret_cast< wxWindow * >(argp1);
5144 if (obj1) {
5145 ecode2 = SWIG_AsVal_int(obj1, &val2);
5146 if (!SWIG_IsOK(ecode2)) {
5147 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choice" "', expected argument " "2"" of type '" "int""'");
5148 }
5149 arg2 = static_cast< int >(val2);
5150 }
5151 if (obj2) {
36ed4f51 5152 {
1bd55598
RD
5153 arg3 = &temp3;
5154 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36ed4f51 5155 }
1bd55598
RD
5156 }
5157 if (obj3) {
d55e5bfc 5158 {
1bd55598
RD
5159 arg4 = &temp4;
5160 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 5161 }
1bd55598
RD
5162 }
5163 if (obj4) {
d55e5bfc 5164 {
1bd55598
RD
5165 if (! PySequence_Check(obj4)) {
5166 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5167 SWIG_fail;
5168 }
5169 arg5 = new wxArrayString;
5170 temp5 = true;
5171 int i, len=PySequence_Length(obj4);
5172 for (i=0; i<len; i++) {
5173 PyObject* item = PySequence_GetItem(obj4, i);
5174 wxString* s = wxString_in_helper(item);
5175 if (PyErr_Occurred()) SWIG_fail;
5176 arg5->Add(*s);
5177 delete s;
5178 Py_DECREF(item);
5179 }
d55e5bfc 5180 }
1bd55598
RD
5181 }
5182 if (obj5) {
5183 ecode6 = SWIG_AsVal_long(obj5, &val6);
5184 if (!SWIG_IsOK(ecode6)) {
5185 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Choice" "', expected argument " "6"" of type '" "long""'");
5186 }
5187 arg6 = static_cast< long >(val6);
5188 }
5189 if (obj6) {
5190 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
5191 if (!SWIG_IsOK(res7)) {
5192 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
36ed4f51 5193 }
1bd55598
RD
5194 if (!argp7) {
5195 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5196 }
5197 arg7 = reinterpret_cast< wxValidator * >(argp7);
5198 }
5199 if (obj7) {
d55e5bfc 5200 {
1bd55598
RD
5201 arg8 = wxString_in_helper(obj7);
5202 if (arg8 == NULL) SWIG_fail;
5203 temp8 = true;
d55e5bfc 5204 }
1bd55598
RD
5205 }
5206 {
5207 if (!wxPyCheckForApp()) SWIG_fail;
5208 PyThreadState* __tstate = wxPyBeginAllowThreads();
5209 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5210 wxPyEndAllowThreads(__tstate);
5211 if (PyErr_Occurred()) SWIG_fail;
5212 }
5213 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_NEW | 0 );
5214 {
5215 if (temp5) delete arg5;
5216 }
5217 {
5218 if (temp8)
5219 delete arg8;
5220 }
5221 return resultobj;
5222fail:
5223 {
5224 if (temp5) delete arg5;
5225 }
5226 {
5227 if (temp8)
5228 delete arg8;
5229 }
5230 return NULL;
d55e5bfc
RD
5231}
5232
5233
1bd55598
RD
5234SWIGINTERN PyObject *_wrap_new_PreChoice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5235 PyObject *resultobj = 0;
5236 wxChoice *result = 0 ;
5237
5238 if (!SWIG_Python_UnpackTuple(args,"new_PreChoice",0,0,0)) SWIG_fail;
5239 {
5240 if (!wxPyCheckForApp()) SWIG_fail;
5241 PyThreadState* __tstate = wxPyBeginAllowThreads();
5242 result = (wxChoice *)new wxChoice();
5243 wxPyEndAllowThreads(__tstate);
5244 if (PyErr_Occurred()) SWIG_fail;
5245 }
5246 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_OWN | 0 );
5247 return resultobj;
5248fail:
5249 return NULL;
5250}
5251
5252
5253SWIGINTERN PyObject *_wrap_Choice_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5254 PyObject *resultobj = 0;
5255 wxChoice *arg1 = (wxChoice *) 0 ;
5256 wxWindow *arg2 = (wxWindow *) 0 ;
5257 int arg3 = (int) -1 ;
5258 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5259 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5260 wxSize const &arg5_defvalue = wxDefaultSize ;
5261 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5262 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5263 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5264 long arg7 = (long) 0 ;
5265 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5266 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5267 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
5268 wxString *arg9 = (wxString *) &arg9_defvalue ;
5269 bool result;
5270 void *argp1 = 0 ;
5271 int res1 = 0 ;
5272 void *argp2 = 0 ;
5273 int res2 = 0 ;
5274 int val3 ;
5275 int ecode3 = 0 ;
5276 wxPoint temp4 ;
5277 wxSize temp5 ;
5278 bool temp6 = false ;
5279 long val7 ;
5280 int ecode7 = 0 ;
5281 void *argp8 = 0 ;
5282 int res8 = 0 ;
5283 bool temp9 = false ;
5284 PyObject * obj0 = 0 ;
5285 PyObject * obj1 = 0 ;
5286 PyObject * obj2 = 0 ;
5287 PyObject * obj3 = 0 ;
5288 PyObject * obj4 = 0 ;
5289 PyObject * obj5 = 0 ;
5290 PyObject * obj6 = 0 ;
5291 PyObject * obj7 = 0 ;
5292 PyObject * obj8 = 0 ;
5293 char * kwnames[] = {
5294 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5295 };
5296
5297 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5298 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5299 if (!SWIG_IsOK(res1)) {
5300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_Create" "', expected argument " "1"" of type '" "wxChoice *""'");
5301 }
5302 arg1 = reinterpret_cast< wxChoice * >(argp1);
5303 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5304 if (!SWIG_IsOK(res2)) {
5305 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choice_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5306 }
5307 arg2 = reinterpret_cast< wxWindow * >(argp2);
5308 if (obj2) {
5309 ecode3 = SWIG_AsVal_int(obj2, &val3);
5310 if (!SWIG_IsOK(ecode3)) {
5311 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choice_Create" "', expected argument " "3"" of type '" "int""'");
5312 }
5313 arg3 = static_cast< int >(val3);
5314 }
5315 if (obj3) {
d55e5bfc 5316 {
1bd55598
RD
5317 arg4 = &temp4;
5318 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 5319 }
1bd55598
RD
5320 }
5321 if (obj4) {
d55e5bfc 5322 {
1bd55598
RD
5323 arg5 = &temp5;
5324 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 5325 }
1bd55598
RD
5326 }
5327 if (obj5) {
d55e5bfc 5328 {
1bd55598
RD
5329 if (! PySequence_Check(obj5)) {
5330 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5331 SWIG_fail;
5332 }
5333 arg6 = new wxArrayString;
5334 temp6 = true;
5335 int i, len=PySequence_Length(obj5);
5336 for (i=0; i<len; i++) {
5337 PyObject* item = PySequence_GetItem(obj5, i);
5338 wxString* s = wxString_in_helper(item);
5339 if (PyErr_Occurred()) SWIG_fail;
5340 arg6->Add(*s);
5341 delete s;
5342 Py_DECREF(item);
5343 }
5344 }
5345 }
5346 if (obj6) {
5347 ecode7 = SWIG_AsVal_long(obj6, &val7);
5348 if (!SWIG_IsOK(ecode7)) {
5349 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Choice_Create" "', expected argument " "7"" of type '" "long""'");
5350 }
5351 arg7 = static_cast< long >(val7);
5352 }
5353 if (obj7) {
5354 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5355 if (!SWIG_IsOK(res8)) {
5356 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 5357 }
1bd55598
RD
5358 if (!argp8) {
5359 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5360 }
5361 arg8 = reinterpret_cast< wxValidator * >(argp8);
5362 }
5363 if (obj8) {
d55e5bfc 5364 {
1bd55598
RD
5365 arg9 = wxString_in_helper(obj8);
5366 if (arg9 == NULL) SWIG_fail;
5367 temp9 = true;
d55e5bfc 5368 }
1bd55598
RD
5369 }
5370 {
5371 PyThreadState* __tstate = wxPyBeginAllowThreads();
5372 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5373 wxPyEndAllowThreads(__tstate);
5374 if (PyErr_Occurred()) SWIG_fail;
5375 }
5376 {
5377 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5378 }
5379 {
5380 if (temp6) delete arg6;
5381 }
5382 {
5383 if (temp9)
5384 delete arg9;
5385 }
5386 return resultobj;
5387fail:
5388 {
5389 if (temp6) delete arg6;
5390 }
5391 {
5392 if (temp9)
5393 delete arg9;
5394 }
5395 return NULL;
d55e5bfc
RD
5396}
5397
5398
1bd55598
RD
5399SWIGINTERN PyObject *_wrap_Choice_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5400 PyObject *resultobj = 0;
5401 wxChoice *arg1 = (wxChoice *) 0 ;
5402 int result;
5403 void *argp1 = 0 ;
5404 int res1 = 0 ;
5405 PyObject *swig_obj[1] ;
5406
5407 if (!args) SWIG_fail;
5408 swig_obj[0] = args;
5409 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5410 if (!SWIG_IsOK(res1)) {
5411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_GetCurrentSelection" "', expected argument " "1"" of type '" "wxChoice const *""'");
5412 }
5413 arg1 = reinterpret_cast< wxChoice * >(argp1);
5414 {
5415 PyThreadState* __tstate = wxPyBeginAllowThreads();
5416 result = (int)((wxChoice const *)arg1)->GetCurrentSelection();
5417 wxPyEndAllowThreads(__tstate);
5418 if (PyErr_Occurred()) SWIG_fail;
5419 }
5420 resultobj = SWIG_From_int(static_cast< int >(result));
5421 return resultobj;
5422fail:
5423 return NULL;
5424}
5425
5426
5427SWIGINTERN PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5428 PyObject *resultobj = 0;
5429 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5430 SwigValueWrapper<wxVisualAttributes > result;
5431 int val1 ;
5432 int ecode1 = 0 ;
5433 PyObject * obj0 = 0 ;
5434 char * kwnames[] = {
5435 (char *) "variant", NULL
5436 };
5437
5438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5439 if (obj0) {
5440 ecode1 = SWIG_AsVal_int(obj0, &val1);
5441 if (!SWIG_IsOK(ecode1)) {
5442 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Choice_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5443 }
5444 arg1 = static_cast< wxWindowVariant >(val1);
5445 }
5446 {
5447 if (!wxPyCheckForApp()) SWIG_fail;
5448 PyThreadState* __tstate = wxPyBeginAllowThreads();
5449 result = wxChoice::GetClassDefaultAttributes(arg1);
5450 wxPyEndAllowThreads(__tstate);
5451 if (PyErr_Occurred()) SWIG_fail;
5452 }
5453 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5454 return resultobj;
5455fail:
5456 return NULL;
f20a2e1f
RD
5457}
5458
5459
1bd55598
RD
5460SWIGINTERN PyObject *Choice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5461 PyObject *obj;
5462 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5463 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoice, SWIG_NewClientData(obj));
5464 return SWIG_Py_Void();
d55e5bfc 5465}
1bd55598
RD
5466
5467SWIGINTERN PyObject *Choice_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5468 return SWIG_Python_InitShadowInstance(args);
5469}
5470
5471SWIGINTERN int ComboBoxNameStr_set(PyObject *) {
5472 SWIG_Error(SWIG_AttributeError,"Variable ComboBoxNameStr is read-only.");
5473 return 1;
d55e5bfc
RD
5474}
5475
5476
1bd55598
RD
5477SWIGINTERN PyObject *ComboBoxNameStr_get(void) {
5478 PyObject *pyobj = 0;
5479
5480 {
d55e5bfc 5481#if wxUSE_UNICODE
1bd55598 5482 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
d55e5bfc 5483#else
1bd55598 5484 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
d55e5bfc 5485#endif
1bd55598
RD
5486 }
5487 return pyobj;
5488}
5489
5490
5491SWIGINTERN PyObject *_wrap_new_ComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5492 PyObject *resultobj = 0;
5493 wxWindow *arg1 = (wxWindow *) 0 ;
5494 int arg2 = (int) -1 ;
5495 wxString const &arg3_defvalue = wxPyEmptyString ;
5496 wxString *arg3 = (wxString *) &arg3_defvalue ;
5497 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5498 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5499 wxSize const &arg5_defvalue = wxDefaultSize ;
5500 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5501 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5502 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5503 long arg7 = (long) 0 ;
5504 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5505 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5506 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
5507 wxString *arg9 = (wxString *) &arg9_defvalue ;
5508 wxComboBox *result = 0 ;
5509 void *argp1 = 0 ;
5510 int res1 = 0 ;
5511 int val2 ;
5512 int ecode2 = 0 ;
5513 bool temp3 = false ;
5514 wxPoint temp4 ;
5515 wxSize temp5 ;
5516 bool temp6 = false ;
5517 long val7 ;
5518 int ecode7 = 0 ;
5519 void *argp8 = 0 ;
5520 int res8 = 0 ;
5521 bool temp9 = false ;
5522 PyObject * obj0 = 0 ;
5523 PyObject * obj1 = 0 ;
5524 PyObject * obj2 = 0 ;
5525 PyObject * obj3 = 0 ;
5526 PyObject * obj4 = 0 ;
5527 PyObject * obj5 = 0 ;
5528 PyObject * obj6 = 0 ;
5529 PyObject * obj7 = 0 ;
5530 PyObject * obj8 = 0 ;
5531 char * kwnames[] = {
5532 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5533 };
5534
5535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5537 if (!SWIG_IsOK(res1)) {
5538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ComboBox" "', expected argument " "1"" of type '" "wxWindow *""'");
5539 }
5540 arg1 = reinterpret_cast< wxWindow * >(argp1);
5541 if (obj1) {
5542 ecode2 = SWIG_AsVal_int(obj1, &val2);
5543 if (!SWIG_IsOK(ecode2)) {
5544 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ComboBox" "', expected argument " "2"" of type '" "int""'");
5545 }
5546 arg2 = static_cast< int >(val2);
5547 }
5548 if (obj2) {
d55e5bfc 5549 {
1bd55598
RD
5550 arg3 = wxString_in_helper(obj2);
5551 if (arg3 == NULL) SWIG_fail;
5552 temp3 = true;
d55e5bfc 5553 }
1bd55598
RD
5554 }
5555 if (obj3) {
d55e5bfc 5556 {
1bd55598
RD
5557 arg4 = &temp4;
5558 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 5559 }
1bd55598
RD
5560 }
5561 if (obj4) {
d55e5bfc 5562 {
1bd55598
RD
5563 arg5 = &temp5;
5564 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 5565 }
1bd55598
RD
5566 }
5567 if (obj5) {
d55e5bfc 5568 {
1bd55598
RD
5569 if (! PySequence_Check(obj5)) {
5570 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5571 SWIG_fail;
5572 }
5573 arg6 = new wxArrayString;
5574 temp6 = true;
5575 int i, len=PySequence_Length(obj5);
5576 for (i=0; i<len; i++) {
5577 PyObject* item = PySequence_GetItem(obj5, i);
5578 wxString* s = wxString_in_helper(item);
5579 if (PyErr_Occurred()) SWIG_fail;
5580 arg6->Add(*s);
5581 delete s;
5582 Py_DECREF(item);
5583 }
d55e5bfc 5584 }
1bd55598
RD
5585 }
5586 if (obj6) {
5587 ecode7 = SWIG_AsVal_long(obj6, &val7);
5588 if (!SWIG_IsOK(ecode7)) {
5589 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ComboBox" "', expected argument " "7"" of type '" "long""'");
5590 }
5591 arg7 = static_cast< long >(val7);
5592 }
5593 if (obj7) {
5594 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5595 if (!SWIG_IsOK(res8)) {
5596 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5597 }
5598 if (!argp8) {
5599 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5600 }
5601 arg8 = reinterpret_cast< wxValidator * >(argp8);
5602 }
5603 if (obj8) {
d55e5bfc 5604 {
1bd55598
RD
5605 arg9 = wxString_in_helper(obj8);
5606 if (arg9 == NULL) SWIG_fail;
5607 temp9 = true;
d55e5bfc 5608 }
1bd55598
RD
5609 }
5610 {
5611 if (!wxPyCheckForApp()) SWIG_fail;
5612 PyThreadState* __tstate = wxPyBeginAllowThreads();
5613 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);
5614 wxPyEndAllowThreads(__tstate);
5615 if (PyErr_Occurred()) SWIG_fail;
5616 }
5617 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_NEW | 0 );
5618 {
5619 if (temp3)
5620 delete arg3;
5621 }
5622 {
5623 if (temp6) delete arg6;
5624 }
5625 {
5626 if (temp9)
5627 delete arg9;
5628 }
5629 return resultobj;
5630fail:
5631 {
5632 if (temp3)
5633 delete arg3;
5634 }
5635 {
5636 if (temp6) delete arg6;
5637 }
5638 {
5639 if (temp9)
5640 delete arg9;
5641 }
5642 return NULL;
d55e5bfc
RD
5643}
5644
5645
1bd55598
RD
5646SWIGINTERN PyObject *_wrap_new_PreComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5647 PyObject *resultobj = 0;
5648 wxComboBox *result = 0 ;
5649
5650 if (!SWIG_Python_UnpackTuple(args,"new_PreComboBox",0,0,0)) SWIG_fail;
5651 {
5652 if (!wxPyCheckForApp()) SWIG_fail;
5653 PyThreadState* __tstate = wxPyBeginAllowThreads();
5654 result = (wxComboBox *)new wxComboBox();
5655 wxPyEndAllowThreads(__tstate);
5656 if (PyErr_Occurred()) SWIG_fail;
5657 }
5658 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_OWN | 0 );
5659 return resultobj;
5660fail:
5661 return NULL;
5662}
5663
5664
5665SWIGINTERN PyObject *_wrap_ComboBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5666 PyObject *resultobj = 0;
5667 wxComboBox *arg1 = (wxComboBox *) 0 ;
5668 wxWindow *arg2 = (wxWindow *) 0 ;
5669 int arg3 = (int) -1 ;
5670 wxString const &arg4_defvalue = wxPyEmptyString ;
5671 wxString *arg4 = (wxString *) &arg4_defvalue ;
5672 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5673 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5674 wxSize const &arg6_defvalue = wxDefaultSize ;
5675 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5676 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
5677 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
5678 long arg8 = (long) 0 ;
5679 wxValidator const &arg9_defvalue = wxDefaultValidator ;
5680 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
5681 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
5682 wxString *arg10 = (wxString *) &arg10_defvalue ;
5683 bool result;
5684 void *argp1 = 0 ;
5685 int res1 = 0 ;
5686 void *argp2 = 0 ;
5687 int res2 = 0 ;
5688 int val3 ;
5689 int ecode3 = 0 ;
5690 bool temp4 = false ;
5691 wxPoint temp5 ;
5692 wxSize temp6 ;
5693 bool temp7 = false ;
5694 long val8 ;
5695 int ecode8 = 0 ;
5696 void *argp9 = 0 ;
5697 int res9 = 0 ;
5698 bool temp10 = false ;
5699 PyObject * obj0 = 0 ;
5700 PyObject * obj1 = 0 ;
5701 PyObject * obj2 = 0 ;
5702 PyObject * obj3 = 0 ;
5703 PyObject * obj4 = 0 ;
5704 PyObject * obj5 = 0 ;
5705 PyObject * obj6 = 0 ;
5706 PyObject * obj7 = 0 ;
5707 PyObject * obj8 = 0 ;
5708 PyObject * obj9 = 0 ;
5709 char * kwnames[] = {
5710 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5711 };
5712
5713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
5714 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5715 if (!SWIG_IsOK(res1)) {
5716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Create" "', expected argument " "1"" of type '" "wxComboBox *""'");
5717 }
5718 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5719 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5720 if (!SWIG_IsOK(res2)) {
5721 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ComboBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5722 }
5723 arg2 = reinterpret_cast< wxWindow * >(argp2);
5724 if (obj2) {
5725 ecode3 = SWIG_AsVal_int(obj2, &val3);
5726 if (!SWIG_IsOK(ecode3)) {
5727 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Create" "', expected argument " "3"" of type '" "int""'");
5728 }
5729 arg3 = static_cast< int >(val3);
5730 }
5731 if (obj3) {
d55e5bfc 5732 {
1bd55598
RD
5733 arg4 = wxString_in_helper(obj3);
5734 if (arg4 == NULL) SWIG_fail;
5735 temp4 = true;
d55e5bfc 5736 }
1bd55598
RD
5737 }
5738 if (obj4) {
d55e5bfc 5739 {
1bd55598
RD
5740 arg5 = &temp5;
5741 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 5742 }
1bd55598
RD
5743 }
5744 if (obj5) {
d55e5bfc 5745 {
1bd55598
RD
5746 arg6 = &temp6;
5747 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 5748 }
1bd55598
RD
5749 }
5750 if (obj6) {
d55e5bfc 5751 {
1bd55598
RD
5752 if (! PySequence_Check(obj6)) {
5753 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5754 SWIG_fail;
5755 }
5756 arg7 = new wxArrayString;
5757 temp7 = true;
5758 int i, len=PySequence_Length(obj6);
5759 for (i=0; i<len; i++) {
5760 PyObject* item = PySequence_GetItem(obj6, i);
5761 wxString* s = wxString_in_helper(item);
5762 if (PyErr_Occurred()) SWIG_fail;
5763 arg7->Add(*s);
5764 delete s;
5765 Py_DECREF(item);
5766 }
d55e5bfc 5767 }
1bd55598
RD
5768 }
5769 if (obj7) {
5770 ecode8 = SWIG_AsVal_long(obj7, &val8);
5771 if (!SWIG_IsOK(ecode8)) {
5772 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ComboBox_Create" "', expected argument " "8"" of type '" "long""'");
5773 }
5774 arg8 = static_cast< long >(val8);
5775 }
5776 if (obj8) {
5777 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
5778 if (!SWIG_IsOK(res9)) {
5779 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
d55e5bfc 5780 }
1bd55598
RD
5781 if (!argp9) {
5782 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
d55e5bfc 5783 }
1bd55598
RD
5784 arg9 = reinterpret_cast< wxValidator * >(argp9);
5785 }
5786 if (obj9) {
d55e5bfc 5787 {
1bd55598
RD
5788 arg10 = wxString_in_helper(obj9);
5789 if (arg10 == NULL) SWIG_fail;
5790 temp10 = true;
d55e5bfc 5791 }
1bd55598
RD
5792 }
5793 {
5794 PyThreadState* __tstate = wxPyBeginAllowThreads();
5795 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);
5796 wxPyEndAllowThreads(__tstate);
5797 if (PyErr_Occurred()) SWIG_fail;
5798 }
5799 {
5800 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5801 }
5802 {
5803 if (temp4)
5804 delete arg4;
5805 }
5806 {
5807 if (temp7) delete arg7;
5808 }
5809 {
5810 if (temp10)
5811 delete arg10;
5812 }
5813 return resultobj;
5814fail:
5815 {
5816 if (temp4)
5817 delete arg4;
5818 }
5819 {
5820 if (temp7) delete arg7;
5821 }
5822 {
5823 if (temp10)
5824 delete arg10;
5825 }
5826 return NULL;
d55e5bfc
RD
5827}
5828
5829
1bd55598
RD
5830SWIGINTERN PyObject *_wrap_ComboBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5831 PyObject *resultobj = 0;
5832 wxComboBox *arg1 = (wxComboBox *) 0 ;
5833 wxString result;
5834 void *argp1 = 0 ;
5835 int res1 = 0 ;
5836 PyObject *swig_obj[1] ;
5837
5838 if (!args) SWIG_fail;
5839 swig_obj[0] = args;
5840 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5841 if (!SWIG_IsOK(res1)) {
5842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetValue" "', expected argument " "1"" of type '" "wxComboBox const *""'");
5843 }
5844 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5845 {
5846 PyThreadState* __tstate = wxPyBeginAllowThreads();
5847 result = ((wxComboBox const *)arg1)->GetValue();
5848 wxPyEndAllowThreads(__tstate);
5849 if (PyErr_Occurred()) SWIG_fail;
5850 }
5851 {
d55e5bfc 5852#if wxUSE_UNICODE
1bd55598 5853 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 5854#else
1bd55598 5855 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 5856#endif
1bd55598
RD
5857 }
5858 return resultobj;
5859fail:
5860 return NULL;
5861}
5862
5863
5864SWIGINTERN PyObject *_wrap_ComboBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5865 PyObject *resultobj = 0;
5866 wxComboBox *arg1 = (wxComboBox *) 0 ;
5867 wxString *arg2 = 0 ;
5868 void *argp1 = 0 ;
5869 int res1 = 0 ;
5870 bool temp2 = false ;
5871 PyObject * obj0 = 0 ;
5872 PyObject * obj1 = 0 ;
5873 char * kwnames[] = {
5874 (char *) "self",(char *) "value", NULL
5875 };
5876
5877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
5878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5879 if (!SWIG_IsOK(res1)) {
5880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetValue" "', expected argument " "1"" of type '" "wxComboBox *""'");
5881 }
5882 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5883 {
5884 arg2 = wxString_in_helper(obj1);
5885 if (arg2 == NULL) SWIG_fail;
5886 temp2 = true;
5887 }
5888 {
5889 PyThreadState* __tstate = wxPyBeginAllowThreads();
5890 (arg1)->SetValue((wxString const &)*arg2);
5891 wxPyEndAllowThreads(__tstate);
5892 if (PyErr_Occurred()) SWIG_fail;
5893 }
5894 resultobj = SWIG_Py_Void();
5895 {
5896 if (temp2)
5897 delete arg2;
5898 }
5899 return resultobj;
5900fail:
5901 {
5902 if (temp2)
5903 delete arg2;
5904 }
5905 return NULL;
d55e5bfc
RD
5906}
5907
5908
1bd55598
RD
5909SWIGINTERN PyObject *_wrap_ComboBox_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5910 PyObject *resultobj = 0;
5911 wxComboBox *arg1 = (wxComboBox *) 0 ;
5912 void *argp1 = 0 ;
5913 int res1 = 0 ;
5914 PyObject *swig_obj[1] ;
5915
5916 if (!args) SWIG_fail;
5917 swig_obj[0] = args;
5918 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5919 if (!SWIG_IsOK(res1)) {
5920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Copy" "', expected argument " "1"" of type '" "wxComboBox *""'");
5921 }
5922 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5923 {
5924 PyThreadState* __tstate = wxPyBeginAllowThreads();
5925 (arg1)->Copy();
5926 wxPyEndAllowThreads(__tstate);
5927 if (PyErr_Occurred()) SWIG_fail;
5928 }
5929 resultobj = SWIG_Py_Void();
5930 return resultobj;
5931fail:
5932 return NULL;
d55e5bfc
RD
5933}
5934
5935
1bd55598
RD
5936SWIGINTERN PyObject *_wrap_ComboBox_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5937 PyObject *resultobj = 0;
5938 wxComboBox *arg1 = (wxComboBox *) 0 ;
5939 void *argp1 = 0 ;
5940 int res1 = 0 ;
5941 PyObject *swig_obj[1] ;
5942
5943 if (!args) SWIG_fail;
5944 swig_obj[0] = args;
5945 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5946 if (!SWIG_IsOK(res1)) {
5947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Cut" "', expected argument " "1"" of type '" "wxComboBox *""'");
5948 }
5949 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5950 {
5951 PyThreadState* __tstate = wxPyBeginAllowThreads();
5952 (arg1)->Cut();
5953 wxPyEndAllowThreads(__tstate);
5954 if (PyErr_Occurred()) SWIG_fail;
5955 }
5956 resultobj = SWIG_Py_Void();
5957 return resultobj;
5958fail:
5959 return NULL;
d55e5bfc
RD
5960}
5961
5962
1bd55598
RD
5963SWIGINTERN PyObject *_wrap_ComboBox_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5964 PyObject *resultobj = 0;
5965 wxComboBox *arg1 = (wxComboBox *) 0 ;
5966 void *argp1 = 0 ;
5967 int res1 = 0 ;
5968 PyObject *swig_obj[1] ;
5969
5970 if (!args) SWIG_fail;
5971 swig_obj[0] = args;
5972 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5973 if (!SWIG_IsOK(res1)) {
5974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Paste" "', expected argument " "1"" of type '" "wxComboBox *""'");
5975 }
5976 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5977 {
5978 PyThreadState* __tstate = wxPyBeginAllowThreads();
5979 (arg1)->Paste();
5980 wxPyEndAllowThreads(__tstate);
5981 if (PyErr_Occurred()) SWIG_fail;
5982 }
5983 resultobj = SWIG_Py_Void();
5984 return resultobj;
5985fail:
5986 return NULL;
5987}
5988
5989
5990SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5991 PyObject *resultobj = 0;
5992 wxComboBox *arg1 = (wxComboBox *) 0 ;
5993 long arg2 ;
5994 void *argp1 = 0 ;
5995 int res1 = 0 ;
5996 long val2 ;
5997 int ecode2 = 0 ;
5998 PyObject * obj0 = 0 ;
5999 PyObject * obj1 = 0 ;
6000 char * kwnames[] = {
6001 (char *) "self",(char *) "pos", NULL
6002 };
6003
6004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
6005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6006 if (!SWIG_IsOK(res1)) {
6007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox *""'");
6008 }
6009 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6010 ecode2 = SWIG_AsVal_long(obj1, &val2);
6011 if (!SWIG_IsOK(ecode2)) {
6012 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
6013 }
6014 arg2 = static_cast< long >(val2);
6015 {
6016 PyThreadState* __tstate = wxPyBeginAllowThreads();
6017 (arg1)->SetInsertionPoint(arg2);
6018 wxPyEndAllowThreads(__tstate);
6019 if (PyErr_Occurred()) SWIG_fail;
6020 }
6021 resultobj = SWIG_Py_Void();
6022 return resultobj;
6023fail:
6024 return NULL;
d55e5bfc
RD
6025}
6026
6027
1bd55598
RD
6028SWIGINTERN PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6029 PyObject *resultobj = 0;
6030 wxComboBox *arg1 = (wxComboBox *) 0 ;
6031 long result;
6032 void *argp1 = 0 ;
6033 int res1 = 0 ;
6034 PyObject *swig_obj[1] ;
6035
6036 if (!args) SWIG_fail;
6037 swig_obj[0] = args;
6038 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6039 if (!SWIG_IsOK(res1)) {
6040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6041 }
6042 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6043 {
6044 PyThreadState* __tstate = wxPyBeginAllowThreads();
6045 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
6046 wxPyEndAllowThreads(__tstate);
6047 if (PyErr_Occurred()) SWIG_fail;
6048 }
6049 resultobj = SWIG_From_long(static_cast< long >(result));
6050 return resultobj;
6051fail:
6052 return NULL;
d55e5bfc
RD
6053}
6054
6055
1bd55598
RD
6056SWIGINTERN PyObject *_wrap_ComboBox_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6057 PyObject *resultobj = 0;
6058 wxComboBox *arg1 = (wxComboBox *) 0 ;
6059 long result;
6060 void *argp1 = 0 ;
6061 int res1 = 0 ;
6062 PyObject *swig_obj[1] ;
6063
6064 if (!args) SWIG_fail;
6065 swig_obj[0] = args;
6066 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6067 if (!SWIG_IsOK(res1)) {
6068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetLastPosition" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6069 }
6070 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6071 {
6072 PyThreadState* __tstate = wxPyBeginAllowThreads();
6073 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
6074 wxPyEndAllowThreads(__tstate);
6075 if (PyErr_Occurred()) SWIG_fail;
6076 }
6077 resultobj = SWIG_From_long(static_cast< long >(result));
6078 return resultobj;
6079fail:
6080 return NULL;
6081}
6082
6083
6084SWIGINTERN PyObject *_wrap_ComboBox_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6085 PyObject *resultobj = 0;
6086 wxComboBox *arg1 = (wxComboBox *) 0 ;
6087 long arg2 ;
6088 long arg3 ;
6089 wxString *arg4 = 0 ;
6090 void *argp1 = 0 ;
6091 int res1 = 0 ;
6092 long val2 ;
6093 int ecode2 = 0 ;
6094 long val3 ;
6095 int ecode3 = 0 ;
6096 bool temp4 = false ;
6097 PyObject * obj0 = 0 ;
6098 PyObject * obj1 = 0 ;
6099 PyObject * obj2 = 0 ;
6100 PyObject * obj3 = 0 ;
6101 char * kwnames[] = {
2131d850 6102 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
1bd55598
RD
6103 };
6104
6105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6107 if (!SWIG_IsOK(res1)) {
6108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Replace" "', expected argument " "1"" of type '" "wxComboBox *""'");
6109 }
6110 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6111 ecode2 = SWIG_AsVal_long(obj1, &val2);
6112 if (!SWIG_IsOK(ecode2)) {
6113 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Replace" "', expected argument " "2"" of type '" "long""'");
6114 }
6115 arg2 = static_cast< long >(val2);
6116 ecode3 = SWIG_AsVal_long(obj2, &val3);
6117 if (!SWIG_IsOK(ecode3)) {
6118 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Replace" "', expected argument " "3"" of type '" "long""'");
6119 }
6120 arg3 = static_cast< long >(val3);
6121 {
6122 arg4 = wxString_in_helper(obj3);
6123 if (arg4 == NULL) SWIG_fail;
6124 temp4 = true;
6125 }
6126 {
6127 PyThreadState* __tstate = wxPyBeginAllowThreads();
6128 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
6129 wxPyEndAllowThreads(__tstate);
6130 if (PyErr_Occurred()) SWIG_fail;
6131 }
6132 resultobj = SWIG_Py_Void();
6133 {
6134 if (temp4)
6135 delete arg4;
6136 }
6137 return resultobj;
6138fail:
6139 {
6140 if (temp4)
6141 delete arg4;
6142 }
6143 return NULL;
6144}
6145
6146
6147SWIGINTERN PyObject *_wrap_ComboBox_SetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6148 PyObject *resultobj = 0;
6149 wxComboBox *arg1 = (wxComboBox *) 0 ;
6150 long arg2 ;
6151 long arg3 ;
6152 void *argp1 = 0 ;
6153 int res1 = 0 ;
6154 long val2 ;
6155 int ecode2 = 0 ;
6156 long val3 ;
6157 int ecode3 = 0 ;
6158 PyObject * obj0 = 0 ;
6159 PyObject * obj1 = 0 ;
6160 PyObject * obj2 = 0 ;
6161 char * kwnames[] = {
2131d850 6162 (char *) "self",(char *) "from",(char *) "to", NULL
1bd55598
RD
6163 };
6164
6165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6166 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6167 if (!SWIG_IsOK(res1)) {
6168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6169 }
6170 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6171 ecode2 = SWIG_AsVal_long(obj1, &val2);
6172 if (!SWIG_IsOK(ecode2)) {
6173 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetMark" "', expected argument " "2"" of type '" "long""'");
6174 }
6175 arg2 = static_cast< long >(val2);
6176 ecode3 = SWIG_AsVal_long(obj2, &val3);
6177 if (!SWIG_IsOK(ecode3)) {
6178 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_SetMark" "', expected argument " "3"" of type '" "long""'");
6179 }
6180 arg3 = static_cast< long >(val3);
6181 {
6182 PyThreadState* __tstate = wxPyBeginAllowThreads();
6183 (arg1)->SetSelection(arg2,arg3);
6184 wxPyEndAllowThreads(__tstate);
6185 if (PyErr_Occurred()) SWIG_fail;
6186 }
6187 resultobj = SWIG_Py_Void();
6188 return resultobj;
6189fail:
6190 return NULL;
d55e5bfc
RD
6191}
6192
6193
1bd55598
RD
6194SWIGINTERN PyObject *_wrap_ComboBox_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6195 PyObject *resultobj = 0;
6196 wxComboBox *arg1 = (wxComboBox *) 0 ;
6197 int result;
6198 void *argp1 = 0 ;
6199 int res1 = 0 ;
6200 PyObject *swig_obj[1] ;
6201
6202 if (!args) SWIG_fail;
6203 swig_obj[0] = args;
6204 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6205 if (!SWIG_IsOK(res1)) {
6206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetCurrentSelection" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6207 }
6208 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6209 {
6210 PyThreadState* __tstate = wxPyBeginAllowThreads();
6211 result = (int)((wxComboBox const *)arg1)->GetCurrentSelection();
6212 wxPyEndAllowThreads(__tstate);
6213 if (PyErr_Occurred()) SWIG_fail;
6214 }
6215 resultobj = SWIG_From_int(static_cast< int >(result));
6216 return resultobj;
6217fail:
6218 return NULL;
6219}
6220
6221
6222SWIGINTERN PyObject *_wrap_ComboBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6223 PyObject *resultobj = 0;
6224 wxComboBox *arg1 = (wxComboBox *) 0 ;
6225 wxString *arg2 = 0 ;
6226 bool result;
6227 void *argp1 = 0 ;
6228 int res1 = 0 ;
6229 bool temp2 = false ;
6230 PyObject * obj0 = 0 ;
6231 PyObject * obj1 = 0 ;
6232 char * kwnames[] = {
6233 (char *) "self",(char *) "string", NULL
6234 };
6235
6236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
6237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6238 if (!SWIG_IsOK(res1)) {
6239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetStringSelection" "', expected argument " "1"" of type '" "wxComboBox *""'");
6240 }
6241 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6242 {
6243 arg2 = wxString_in_helper(obj1);
6244 if (arg2 == NULL) SWIG_fail;
6245 temp2 = true;
6246 }
6247 {
6248 PyThreadState* __tstate = wxPyBeginAllowThreads();
6249 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
6250 wxPyEndAllowThreads(__tstate);
6251 if (PyErr_Occurred()) SWIG_fail;
6252 }
6253 {
6254 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6255 }
6256 {
6257 if (temp2)
6258 delete arg2;
6259 }
6260 return resultobj;
6261fail:
6262 {
6263 if (temp2)
6264 delete arg2;
6265 }
6266 return NULL;
6267}
6268
6269
6270SWIGINTERN PyObject *_wrap_ComboBox_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6271 PyObject *resultobj = 0;
6272 wxComboBox *arg1 = (wxComboBox *) 0 ;
6273 bool arg2 ;
6274 void *argp1 = 0 ;
6275 int res1 = 0 ;
6276 bool val2 ;
6277 int ecode2 = 0 ;
6278 PyObject * obj0 = 0 ;
6279 PyObject * obj1 = 0 ;
6280 char * kwnames[] = {
6281 (char *) "self",(char *) "editable", NULL
6282 };
6283
6284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
6285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6286 if (!SWIG_IsOK(res1)) {
6287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetEditable" "', expected argument " "1"" of type '" "wxComboBox *""'");
6288 }
6289 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6290 ecode2 = SWIG_AsVal_bool(obj1, &val2);
6291 if (!SWIG_IsOK(ecode2)) {
6292 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetEditable" "', expected argument " "2"" of type '" "bool""'");
6293 }
6294 arg2 = static_cast< bool >(val2);
6295 {
6296 PyThreadState* __tstate = wxPyBeginAllowThreads();
6297 (arg1)->SetEditable(arg2);
6298 wxPyEndAllowThreads(__tstate);
6299 if (PyErr_Occurred()) SWIG_fail;
6300 }
6301 resultobj = SWIG_Py_Void();
6302 return resultobj;
6303fail:
6304 return NULL;
d55e5bfc
RD
6305}
6306
6307
1bd55598
RD
6308SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6309 PyObject *resultobj = 0;
6310 wxComboBox *arg1 = (wxComboBox *) 0 ;
6311 void *argp1 = 0 ;
6312 int res1 = 0 ;
6313 PyObject *swig_obj[1] ;
6314
6315 if (!args) SWIG_fail;
6316 swig_obj[0] = args;
6317 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6318 if (!SWIG_IsOK(res1)) {
6319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxComboBox *""'");
6320 }
6321 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6322 {
6323 PyThreadState* __tstate = wxPyBeginAllowThreads();
6324 (arg1)->SetInsertionPointEnd();
6325 wxPyEndAllowThreads(__tstate);
6326 if (PyErr_Occurred()) SWIG_fail;
6327 }
6328 resultobj = SWIG_Py_Void();
6329 return resultobj;
6330fail:
6331 return NULL;
6332}
6333
6334
6335SWIGINTERN PyObject *_wrap_ComboBox_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6336 PyObject *resultobj = 0;
6337 wxComboBox *arg1 = (wxComboBox *) 0 ;
6338 long arg2 ;
6339 long arg3 ;
6340 void *argp1 = 0 ;
6341 int res1 = 0 ;
6342 long val2 ;
6343 int ecode2 = 0 ;
6344 long val3 ;
6345 int ecode3 = 0 ;
6346 PyObject * obj0 = 0 ;
6347 PyObject * obj1 = 0 ;
6348 PyObject * obj2 = 0 ;
6349 char * kwnames[] = {
2131d850 6350 (char *) "self",(char *) "from",(char *) "to", NULL
1bd55598
RD
6351 };
6352
6353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6355 if (!SWIG_IsOK(res1)) {
6356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Remove" "', expected argument " "1"" of type '" "wxComboBox *""'");
6357 }
6358 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6359 ecode2 = SWIG_AsVal_long(obj1, &val2);
6360 if (!SWIG_IsOK(ecode2)) {
6361 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Remove" "', expected argument " "2"" of type '" "long""'");
6362 }
6363 arg2 = static_cast< long >(val2);
6364 ecode3 = SWIG_AsVal_long(obj2, &val3);
6365 if (!SWIG_IsOK(ecode3)) {
6366 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Remove" "', expected argument " "3"" of type '" "long""'");
6367 }
6368 arg3 = static_cast< long >(val3);
6369 {
6370 PyThreadState* __tstate = wxPyBeginAllowThreads();
6371 (arg1)->Remove(arg2,arg3);
6372 wxPyEndAllowThreads(__tstate);
6373 if (PyErr_Occurred()) SWIG_fail;
6374 }
6375 resultobj = SWIG_Py_Void();
6376 return resultobj;
6377fail:
6378 return NULL;
d55e5bfc
RD
6379}
6380
6381
1bd55598
RD
6382SWIGINTERN PyObject *_wrap_ComboBox_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6383 PyObject *resultobj = 0;
6384 wxComboBox *arg1 = (wxComboBox *) 0 ;
6385 bool result;
6386 void *argp1 = 0 ;
6387 int res1 = 0 ;
6388 PyObject *swig_obj[1] ;
6389
6390 if (!args) SWIG_fail;
6391 swig_obj[0] = args;
6392 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6393 if (!SWIG_IsOK(res1)) {
6394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_IsEditable" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6395 }
6396 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6397 {
6398 PyThreadState* __tstate = wxPyBeginAllowThreads();
6399 result = (bool)((wxComboBox const *)arg1)->IsEditable();
6400 wxPyEndAllowThreads(__tstate);
6401 if (PyErr_Occurred()) SWIG_fail;
6402 }
6403 {
6404 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6405 }
6406 return resultobj;
6407fail:
6408 return NULL;
d55e5bfc
RD
6409}
6410
6411
1bd55598
RD
6412SWIGINTERN PyObject *_wrap_ComboBox_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6413 PyObject *resultobj = 0;
6414 wxComboBox *arg1 = (wxComboBox *) 0 ;
6415 void *argp1 = 0 ;
6416 int res1 = 0 ;
6417 PyObject *swig_obj[1] ;
6418
6419 if (!args) SWIG_fail;
6420 swig_obj[0] = args;
6421 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6422 if (!SWIG_IsOK(res1)) {
6423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Undo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6424 }
6425 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6426 {
6427 PyThreadState* __tstate = wxPyBeginAllowThreads();
6428 (arg1)->Undo();
6429 wxPyEndAllowThreads(__tstate);
6430 if (PyErr_Occurred()) SWIG_fail;
6431 }
6432 resultobj = SWIG_Py_Void();
6433 return resultobj;
6434fail:
6435 return NULL;
d55e5bfc
RD
6436}
6437
6438
1bd55598
RD
6439SWIGINTERN PyObject *_wrap_ComboBox_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6440 PyObject *resultobj = 0;
6441 wxComboBox *arg1 = (wxComboBox *) 0 ;
6442 void *argp1 = 0 ;
6443 int res1 = 0 ;
6444 PyObject *swig_obj[1] ;
6445
6446 if (!args) SWIG_fail;
6447 swig_obj[0] = args;
6448 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6449 if (!SWIG_IsOK(res1)) {
6450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Redo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6451 }
6452 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6453 {
6454 PyThreadState* __tstate = wxPyBeginAllowThreads();
6455 (arg1)->Redo();
6456 wxPyEndAllowThreads(__tstate);
6457 if (PyErr_Occurred()) SWIG_fail;
6458 }
6459 resultobj = SWIG_Py_Void();
6460 return resultobj;
6461fail:
6462 return NULL;
d55e5bfc
RD
6463}
6464
6465
1bd55598
RD
6466SWIGINTERN PyObject *_wrap_ComboBox_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6467 PyObject *resultobj = 0;
6468 wxComboBox *arg1 = (wxComboBox *) 0 ;
6469 void *argp1 = 0 ;
6470 int res1 = 0 ;
6471 PyObject *swig_obj[1] ;
6472
6473 if (!args) SWIG_fail;
6474 swig_obj[0] = args;
6475 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6476 if (!SWIG_IsOK(res1)) {
6477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SelectAll" "', expected argument " "1"" of type '" "wxComboBox *""'");
6478 }
6479 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6480 {
6481 PyThreadState* __tstate = wxPyBeginAllowThreads();
6482 (arg1)->SelectAll();
6483 wxPyEndAllowThreads(__tstate);
6484 if (PyErr_Occurred()) SWIG_fail;
6485 }
6486 resultobj = SWIG_Py_Void();
6487 return resultobj;
6488fail:
6489 return NULL;
943e8dfd
RD
6490}
6491
6492
1bd55598
RD
6493SWIGINTERN PyObject *_wrap_ComboBox_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6494 PyObject *resultobj = 0;
6495 wxComboBox *arg1 = (wxComboBox *) 0 ;
6496 bool result;
6497 void *argp1 = 0 ;
6498 int res1 = 0 ;
6499 PyObject *swig_obj[1] ;
6500
6501 if (!args) SWIG_fail;
6502 swig_obj[0] = args;
6503 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6504 if (!SWIG_IsOK(res1)) {
6505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCopy" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6506 }
6507 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6508 {
6509 PyThreadState* __tstate = wxPyBeginAllowThreads();
6510 result = (bool)((wxComboBox const *)arg1)->CanCopy();
6511 wxPyEndAllowThreads(__tstate);
6512 if (PyErr_Occurred()) SWIG_fail;
6513 }
6514 {
6515 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6516 }
6517 return resultobj;
6518fail:
6519 return NULL;
121b9a67
RD
6520}
6521
6522
1bd55598
RD
6523SWIGINTERN PyObject *_wrap_ComboBox_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6524 PyObject *resultobj = 0;
6525 wxComboBox *arg1 = (wxComboBox *) 0 ;
6526 bool result;
6527 void *argp1 = 0 ;
6528 int res1 = 0 ;
6529 PyObject *swig_obj[1] ;
6530
6531 if (!args) SWIG_fail;
6532 swig_obj[0] = args;
6533 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6534 if (!SWIG_IsOK(res1)) {
6535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCut" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6536 }
6537 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6538 {
6539 PyThreadState* __tstate = wxPyBeginAllowThreads();
6540 result = (bool)((wxComboBox const *)arg1)->CanCut();
6541 wxPyEndAllowThreads(__tstate);
6542 if (PyErr_Occurred()) SWIG_fail;
6543 }
6544 {
6545 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6546 }
6547 return resultobj;
6548fail:
6549 return NULL;
121b9a67
RD
6550}
6551
6552
1bd55598
RD
6553SWIGINTERN PyObject *_wrap_ComboBox_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6554 PyObject *resultobj = 0;
6555 wxComboBox *arg1 = (wxComboBox *) 0 ;
6556 bool result;
6557 void *argp1 = 0 ;
6558 int res1 = 0 ;
6559 PyObject *swig_obj[1] ;
6560
6561 if (!args) SWIG_fail;
6562 swig_obj[0] = args;
6563 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6564 if (!SWIG_IsOK(res1)) {
6565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanPaste" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6566 }
6567 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6568 {
6569 PyThreadState* __tstate = wxPyBeginAllowThreads();
6570 result = (bool)((wxComboBox const *)arg1)->CanPaste();
6571 wxPyEndAllowThreads(__tstate);
6572 if (PyErr_Occurred()) SWIG_fail;
6573 }
6574 {
6575 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6576 }
6577 return resultobj;
6578fail:
6579 return NULL;
d55e5bfc
RD
6580}
6581
6582
1bd55598
RD
6583SWIGINTERN PyObject *_wrap_ComboBox_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6584 PyObject *resultobj = 0;
6585 wxComboBox *arg1 = (wxComboBox *) 0 ;
6586 bool result;
6587 void *argp1 = 0 ;
6588 int res1 = 0 ;
6589 PyObject *swig_obj[1] ;
6590
6591 if (!args) SWIG_fail;
6592 swig_obj[0] = args;
6593 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6594 if (!SWIG_IsOK(res1)) {
6595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanUndo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6596 }
6597 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6598 {
6599 PyThreadState* __tstate = wxPyBeginAllowThreads();
6600 result = (bool)((wxComboBox const *)arg1)->CanUndo();
6601 wxPyEndAllowThreads(__tstate);
6602 if (PyErr_Occurred()) SWIG_fail;
6603 }
6604 {
6605 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6606 }
6607 return resultobj;
6608fail:
6609 return NULL;
d55e5bfc
RD
6610}
6611
6612
1bd55598
RD
6613SWIGINTERN PyObject *_wrap_ComboBox_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6614 PyObject *resultobj = 0;
6615 wxComboBox *arg1 = (wxComboBox *) 0 ;
6616 bool result;
6617 void *argp1 = 0 ;
6618 int res1 = 0 ;
6619 PyObject *swig_obj[1] ;
6620
6621 if (!args) SWIG_fail;
6622 swig_obj[0] = args;
6623 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6624 if (!SWIG_IsOK(res1)) {
6625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanRedo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6626 }
6627 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6628 {
6629 PyThreadState* __tstate = wxPyBeginAllowThreads();
6630 result = (bool)((wxComboBox const *)arg1)->CanRedo();
6631 wxPyEndAllowThreads(__tstate);
6632 if (PyErr_Occurred()) SWIG_fail;
6633 }
6634 {
6635 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6636 }
6637 return resultobj;
6638fail:
6639 return NULL;
d55e5bfc
RD
6640}
6641
6642
1bd55598
RD
6643SWIGINTERN PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6644 PyObject *resultobj = 0;
6645 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
6646 SwigValueWrapper<wxVisualAttributes > result;
6647 int val1 ;
6648 int ecode1 = 0 ;
6649 PyObject * obj0 = 0 ;
6650 char * kwnames[] = {
6651 (char *) "variant", NULL
6652 };
6653
6654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
6655 if (obj0) {
6656 ecode1 = SWIG_AsVal_int(obj0, &val1);
6657 if (!SWIG_IsOK(ecode1)) {
6658 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ComboBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
6659 }
6660 arg1 = static_cast< wxWindowVariant >(val1);
6661 }
6662 {
6663 if (!wxPyCheckForApp()) SWIG_fail;
6664 PyThreadState* __tstate = wxPyBeginAllowThreads();
6665 result = wxComboBox::GetClassDefaultAttributes(arg1);
6666 wxPyEndAllowThreads(__tstate);
6667 if (PyErr_Occurred()) SWIG_fail;
6668 }
6669 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
6670 return resultobj;
6671fail:
6672 return NULL;
5cbf236d
RD
6673}
6674
6675
1bd55598
RD
6676SWIGINTERN PyObject *ComboBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6677 PyObject *obj;
6678 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6679 SWIG_TypeNewClientData(SWIGTYPE_p_wxComboBox, SWIG_NewClientData(obj));
6680 return SWIG_Py_Void();
5cbf236d
RD
6681}
6682
1bd55598
RD
6683SWIGINTERN PyObject *ComboBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6684 return SWIG_Python_InitShadowInstance(args);
5cbf236d
RD
6685}
6686
1bd55598
RD
6687SWIGINTERN int GaugeNameStr_set(PyObject *) {
6688 SWIG_Error(SWIG_AttributeError,"Variable GaugeNameStr is read-only.");
6689 return 1;
5cbf236d
RD
6690}
6691
6692
1bd55598
RD
6693SWIGINTERN PyObject *GaugeNameStr_get(void) {
6694 PyObject *pyobj = 0;
6695
6696 {
6697#if wxUSE_UNICODE
6698 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6699#else
6700 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6701#endif
6702 }
6703 return pyobj;
6704}
6705
6706
6707SWIGINTERN PyObject *_wrap_new_Gauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6708 PyObject *resultobj = 0;
6709 wxWindow *arg1 = (wxWindow *) 0 ;
6710 int arg2 = (int) -1 ;
6711 int arg3 = (int) 100 ;
6712 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6713 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6714 wxSize const &arg5_defvalue = wxDefaultSize ;
6715 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6716 long arg6 = (long) wxGA_HORIZONTAL ;
6717 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6718 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6719 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
6720 wxString *arg8 = (wxString *) &arg8_defvalue ;
6721 wxGauge *result = 0 ;
6722 void *argp1 = 0 ;
6723 int res1 = 0 ;
6724 int val2 ;
6725 int ecode2 = 0 ;
6726 int val3 ;
6727 int ecode3 = 0 ;
6728 wxPoint temp4 ;
6729 wxSize temp5 ;
6730 long val6 ;
6731 int ecode6 = 0 ;
6732 void *argp7 = 0 ;
6733 int res7 = 0 ;
6734 bool temp8 = false ;
6735 PyObject * obj0 = 0 ;
6736 PyObject * obj1 = 0 ;
6737 PyObject * obj2 = 0 ;
6738 PyObject * obj3 = 0 ;
6739 PyObject * obj4 = 0 ;
6740 PyObject * obj5 = 0 ;
6741 PyObject * obj6 = 0 ;
6742 PyObject * obj7 = 0 ;
6743 char * kwnames[] = {
6744 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6745 };
6746
6747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
6748 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
6749 if (!SWIG_IsOK(res1)) {
6750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gauge" "', expected argument " "1"" of type '" "wxWindow *""'");
6751 }
6752 arg1 = reinterpret_cast< wxWindow * >(argp1);
6753 if (obj1) {
6754 ecode2 = SWIG_AsVal_int(obj1, &val2);
6755 if (!SWIG_IsOK(ecode2)) {
6756 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gauge" "', expected argument " "2"" of type '" "int""'");
6757 }
6758 arg2 = static_cast< int >(val2);
6759 }
6760 if (obj2) {
6761 ecode3 = SWIG_AsVal_int(obj2, &val3);
6762 if (!SWIG_IsOK(ecode3)) {
6763 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gauge" "', expected argument " "3"" of type '" "int""'");
6764 }
6765 arg3 = static_cast< int >(val3);
6766 }
6767 if (obj3) {
5cbf236d 6768 {
1bd55598
RD
6769 arg4 = &temp4;
6770 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5cbf236d 6771 }
1bd55598
RD
6772 }
6773 if (obj4) {
5cbf236d 6774 {
1bd55598
RD
6775 arg5 = &temp5;
6776 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5cbf236d 6777 }
1bd55598
RD
6778 }
6779 if (obj5) {
6780 ecode6 = SWIG_AsVal_long(obj5, &val6);
6781 if (!SWIG_IsOK(ecode6)) {
6782 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Gauge" "', expected argument " "6"" of type '" "long""'");
6783 }
6784 arg6 = static_cast< long >(val6);
6785 }
6786 if (obj6) {
6787 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
6788 if (!SWIG_IsOK(res7)) {
6789 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6790 }
6791 if (!argp7) {
6792 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
5cbf236d 6793 }
1bd55598
RD
6794 arg7 = reinterpret_cast< wxValidator * >(argp7);
6795 }
6796 if (obj7) {
5cbf236d 6797 {
1bd55598
RD
6798 arg8 = wxString_in_helper(obj7);
6799 if (arg8 == NULL) SWIG_fail;
6800 temp8 = true;
5cbf236d 6801 }
1bd55598
RD
6802 }
6803 {
6804 if (!wxPyCheckForApp()) SWIG_fail;
6805 PyThreadState* __tstate = wxPyBeginAllowThreads();
6806 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6807 wxPyEndAllowThreads(__tstate);
6808 if (PyErr_Occurred()) SWIG_fail;
6809 }
6810 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_NEW | 0 );
6811 {
6812 if (temp8)
6813 delete arg8;
6814 }
6815 return resultobj;
6816fail:
6817 {
6818 if (temp8)
6819 delete arg8;
6820 }
6821 return NULL;
5cbf236d
RD
6822}
6823
6824
1bd55598
RD
6825SWIGINTERN PyObject *_wrap_new_PreGauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6826 PyObject *resultobj = 0;
6827 wxGauge *result = 0 ;
6828
6829 if (!SWIG_Python_UnpackTuple(args,"new_PreGauge",0,0,0)) SWIG_fail;
6830 {
6831 if (!wxPyCheckForApp()) SWIG_fail;
6832 PyThreadState* __tstate = wxPyBeginAllowThreads();
6833 result = (wxGauge *)new wxGauge();
6834 wxPyEndAllowThreads(__tstate);
6835 if (PyErr_Occurred()) SWIG_fail;
6836 }
6837 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_OWN | 0 );
6838 return resultobj;
6839fail:
6840 return NULL;
6841}
6842
6843
6844SWIGINTERN PyObject *_wrap_Gauge_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6845 PyObject *resultobj = 0;
6846 wxGauge *arg1 = (wxGauge *) 0 ;
6847 wxWindow *arg2 = (wxWindow *) 0 ;
6848 int arg3 = (int) -1 ;
6849 int arg4 = (int) 100 ;
6850 wxPoint const &arg5_defvalue = wxDefaultPosition ;
6851 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
6852 wxSize const &arg6_defvalue = wxDefaultSize ;
6853 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
6854 long arg7 = (long) wxGA_HORIZONTAL ;
6855 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6856 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6857 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
6858 wxString *arg9 = (wxString *) &arg9_defvalue ;
6859 bool result;
6860 void *argp1 = 0 ;
6861 int res1 = 0 ;
6862 void *argp2 = 0 ;
6863 int res2 = 0 ;
6864 int val3 ;
6865 int ecode3 = 0 ;
6866 int val4 ;
6867 int ecode4 = 0 ;
6868 wxPoint temp5 ;
6869 wxSize temp6 ;
6870 long val7 ;
6871 int ecode7 = 0 ;
6872 void *argp8 = 0 ;
6873 int res8 = 0 ;
6874 bool temp9 = false ;
6875 PyObject * obj0 = 0 ;
6876 PyObject * obj1 = 0 ;
6877 PyObject * obj2 = 0 ;
6878 PyObject * obj3 = 0 ;
6879 PyObject * obj4 = 0 ;
6880 PyObject * obj5 = 0 ;
6881 PyObject * obj6 = 0 ;
6882 PyObject * obj7 = 0 ;
6883 PyObject * obj8 = 0 ;
6884 char * kwnames[] = {
6885 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6886 };
6887
6888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
6889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
6890 if (!SWIG_IsOK(res1)) {
6891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Create" "', expected argument " "1"" of type '" "wxGauge *""'");
6892 }
6893 arg1 = reinterpret_cast< wxGauge * >(argp1);
6894 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
6895 if (!SWIG_IsOK(res2)) {
6896 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gauge_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
6897 }
6898 arg2 = reinterpret_cast< wxWindow * >(argp2);
6899 if (obj2) {
6900 ecode3 = SWIG_AsVal_int(obj2, &val3);
6901 if (!SWIG_IsOK(ecode3)) {
6902 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Gauge_Create" "', expected argument " "3"" of type '" "int""'");
6903 }
6904 arg3 = static_cast< int >(val3);
6905 }
6906 if (obj3) {
6907 ecode4 = SWIG_AsVal_int(obj3, &val4);
6908 if (!SWIG_IsOK(ecode4)) {
6909 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Gauge_Create" "', expected argument " "4"" of type '" "int""'");
6910 }
6911 arg4 = static_cast< int >(val4);
6912 }
6913 if (obj4) {
5cbf236d 6914 {
1bd55598
RD
6915 arg5 = &temp5;
6916 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5cbf236d 6917 }
1bd55598
RD
6918 }
6919 if (obj5) {
5cbf236d 6920 {
1bd55598
RD
6921 arg6 = &temp6;
6922 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5cbf236d 6923 }
1bd55598
RD
6924 }
6925 if (obj6) {
6926 ecode7 = SWIG_AsVal_long(obj6, &val7);
6927 if (!SWIG_IsOK(ecode7)) {
6928 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Gauge_Create" "', expected argument " "7"" of type '" "long""'");
6929 }
6930 arg7 = static_cast< long >(val7);
6931 }
6932 if (obj7) {
6933 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
6934 if (!SWIG_IsOK(res8)) {
6935 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5cbf236d 6936 }
1bd55598
RD
6937 if (!argp8) {
6938 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
6939 }
6940 arg8 = reinterpret_cast< wxValidator * >(argp8);
6941 }
6942 if (obj8) {
5cbf236d 6943 {
1bd55598
RD
6944 arg9 = wxString_in_helper(obj8);
6945 if (arg9 == NULL) SWIG_fail;
6946 temp9 = true;
5cbf236d 6947 }
1bd55598
RD
6948 }
6949 {
6950 PyThreadState* __tstate = wxPyBeginAllowThreads();
6951 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
6952 wxPyEndAllowThreads(__tstate);
6953 if (PyErr_Occurred()) SWIG_fail;
6954 }
6955 {
6956 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6957 }
6958 {
6959 if (temp9)
6960 delete arg9;
6961 }
6962 return resultobj;
6963fail:
6964 {
6965 if (temp9)
6966 delete arg9;
6967 }
6968 return NULL;
6969}
6970
6971
6972SWIGINTERN PyObject *_wrap_Gauge_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6973 PyObject *resultobj = 0;
6974 wxGauge *arg1 = (wxGauge *) 0 ;
6975 int arg2 ;
6976 void *argp1 = 0 ;
6977 int res1 = 0 ;
6978 int val2 ;
6979 int ecode2 = 0 ;
6980 PyObject * obj0 = 0 ;
6981 PyObject * obj1 = 0 ;
6982 char * kwnames[] = {
6983 (char *) "self",(char *) "range", NULL
6984 };
6985
6986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) SWIG_fail;
6987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
6988 if (!SWIG_IsOK(res1)) {
6989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetRange" "', expected argument " "1"" of type '" "wxGauge *""'");
6990 }
6991 arg1 = reinterpret_cast< wxGauge * >(argp1);
6992 ecode2 = SWIG_AsVal_int(obj1, &val2);
6993 if (!SWIG_IsOK(ecode2)) {
6994 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetRange" "', expected argument " "2"" of type '" "int""'");
6995 }
6996 arg2 = static_cast< int >(val2);
6997 {
6998 PyThreadState* __tstate = wxPyBeginAllowThreads();
6999 (arg1)->SetRange(arg2);
7000 wxPyEndAllowThreads(__tstate);
7001 if (PyErr_Occurred()) SWIG_fail;
7002 }
7003 resultobj = SWIG_Py_Void();
7004 return resultobj;
7005fail:
7006 return NULL;
5cbf236d
RD
7007}
7008
7009
1bd55598
RD
7010SWIGINTERN PyObject *_wrap_Gauge_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7011 PyObject *resultobj = 0;
7012 wxGauge *arg1 = (wxGauge *) 0 ;
7013 int result;
7014 void *argp1 = 0 ;
7015 int res1 = 0 ;
7016 PyObject *swig_obj[1] ;
7017
7018 if (!args) SWIG_fail;
7019 swig_obj[0] = args;
7020 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7021 if (!SWIG_IsOK(res1)) {
7022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetRange" "', expected argument " "1"" of type '" "wxGauge const *""'");
7023 }
7024 arg1 = reinterpret_cast< wxGauge * >(argp1);
7025 {
7026 PyThreadState* __tstate = wxPyBeginAllowThreads();
7027 result = (int)((wxGauge const *)arg1)->GetRange();
7028 wxPyEndAllowThreads(__tstate);
7029 if (PyErr_Occurred()) SWIG_fail;
7030 }
7031 resultobj = SWIG_From_int(static_cast< int >(result));
7032 return resultobj;
7033fail:
7034 return NULL;
7035}
7036
7037
7038SWIGINTERN PyObject *_wrap_Gauge_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7039 PyObject *resultobj = 0;
7040 wxGauge *arg1 = (wxGauge *) 0 ;
7041 int arg2 ;
7042 void *argp1 = 0 ;
7043 int res1 = 0 ;
7044 int val2 ;
7045 int ecode2 = 0 ;
7046 PyObject * obj0 = 0 ;
7047 PyObject * obj1 = 0 ;
7048 char * kwnames[] = {
7049 (char *) "self",(char *) "pos", NULL
7050 };
7051
7052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
7053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7054 if (!SWIG_IsOK(res1)) {
7055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetValue" "', expected argument " "1"" of type '" "wxGauge *""'");
7056 }
7057 arg1 = reinterpret_cast< wxGauge * >(argp1);
7058 ecode2 = SWIG_AsVal_int(obj1, &val2);
7059 if (!SWIG_IsOK(ecode2)) {
7060 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetValue" "', expected argument " "2"" of type '" "int""'");
7061 }
7062 arg2 = static_cast< int >(val2);
7063 {
7064 PyThreadState* __tstate = wxPyBeginAllowThreads();
7065 (arg1)->SetValue(arg2);
7066 wxPyEndAllowThreads(__tstate);
7067 if (PyErr_Occurred()) SWIG_fail;
7068 }
7069 resultobj = SWIG_Py_Void();
7070 return resultobj;
7071fail:
7072 return NULL;
5cbf236d
RD
7073}
7074
7075
1bd55598
RD
7076SWIGINTERN PyObject *_wrap_Gauge_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7077 PyObject *resultobj = 0;
7078 wxGauge *arg1 = (wxGauge *) 0 ;
7079 int result;
7080 void *argp1 = 0 ;
7081 int res1 = 0 ;
7082 PyObject *swig_obj[1] ;
7083
7084 if (!args) SWIG_fail;
7085 swig_obj[0] = args;
7086 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7087 if (!SWIG_IsOK(res1)) {
7088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetValue" "', expected argument " "1"" of type '" "wxGauge const *""'");
7089 }
7090 arg1 = reinterpret_cast< wxGauge * >(argp1);
7091 {
7092 PyThreadState* __tstate = wxPyBeginAllowThreads();
7093 result = (int)((wxGauge const *)arg1)->GetValue();
7094 wxPyEndAllowThreads(__tstate);
7095 if (PyErr_Occurred()) SWIG_fail;
7096 }
7097 resultobj = SWIG_From_int(static_cast< int >(result));
7098 return resultobj;
7099fail:
7100 return NULL;
f20a2e1f
RD
7101}
7102
7103
0d2c9713
RD
7104SWIGINTERN PyObject *_wrap_Gauge_Pulse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7105 PyObject *resultobj = 0;
7106 wxGauge *arg1 = (wxGauge *) 0 ;
7107 void *argp1 = 0 ;
7108 int res1 = 0 ;
7109 PyObject *swig_obj[1] ;
7110
7111 if (!args) SWIG_fail;
7112 swig_obj[0] = args;
7113 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7114 if (!SWIG_IsOK(res1)) {
7115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Pulse" "', expected argument " "1"" of type '" "wxGauge *""'");
7116 }
7117 arg1 = reinterpret_cast< wxGauge * >(argp1);
7118 {
7119 PyThreadState* __tstate = wxPyBeginAllowThreads();
7120 (arg1)->Pulse();
7121 wxPyEndAllowThreads(__tstate);
7122 if (PyErr_Occurred()) SWIG_fail;
7123 }
7124 resultobj = SWIG_Py_Void();
7125 return resultobj;
7126fail:
7127 return NULL;
7128}
7129
7130
1bd55598
RD
7131SWIGINTERN PyObject *_wrap_Gauge_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7132 PyObject *resultobj = 0;
7133 wxGauge *arg1 = (wxGauge *) 0 ;
7134 bool result;
7135 void *argp1 = 0 ;
7136 int res1 = 0 ;
7137 PyObject *swig_obj[1] ;
7138
7139 if (!args) SWIG_fail;
7140 swig_obj[0] = args;
7141 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7142 if (!SWIG_IsOK(res1)) {
7143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_IsVertical" "', expected argument " "1"" of type '" "wxGauge const *""'");
7144 }
7145 arg1 = reinterpret_cast< wxGauge * >(argp1);
7146 {
7147 PyThreadState* __tstate = wxPyBeginAllowThreads();
7148 result = (bool)((wxGauge const *)arg1)->IsVertical();
7149 wxPyEndAllowThreads(__tstate);
7150 if (PyErr_Occurred()) SWIG_fail;
7151 }
7152 {
7153 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7154 }
7155 return resultobj;
7156fail:
7157 return NULL;
7158}
7159
7160
7161SWIGINTERN PyObject *_wrap_Gauge_SetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7162 PyObject *resultobj = 0;
7163 wxGauge *arg1 = (wxGauge *) 0 ;
7164 int arg2 ;
7165 void *argp1 = 0 ;
7166 int res1 = 0 ;
7167 int val2 ;
7168 int ecode2 = 0 ;
7169 PyObject * obj0 = 0 ;
7170 PyObject * obj1 = 0 ;
7171 char * kwnames[] = {
7172 (char *) "self",(char *) "w", NULL
7173 };
7174
7175 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7176 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7177 if (!SWIG_IsOK(res1)) {
7178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetShadowWidth" "', expected argument " "1"" of type '" "wxGauge *""'");
7179 }
7180 arg1 = reinterpret_cast< wxGauge * >(argp1);
7181 ecode2 = SWIG_AsVal_int(obj1, &val2);
7182 if (!SWIG_IsOK(ecode2)) {
7183 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetShadowWidth" "', expected argument " "2"" of type '" "int""'");
7184 }
7185 arg2 = static_cast< int >(val2);
7186 {
7187 PyThreadState* __tstate = wxPyBeginAllowThreads();
7188 (arg1)->SetShadowWidth(arg2);
7189 wxPyEndAllowThreads(__tstate);
7190 if (PyErr_Occurred()) SWIG_fail;
7191 }
7192 resultobj = SWIG_Py_Void();
7193 return resultobj;
7194fail:
7195 return NULL;
d55e5bfc
RD
7196}
7197
7198
1bd55598
RD
7199SWIGINTERN PyObject *_wrap_Gauge_GetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7200 PyObject *resultobj = 0;
7201 wxGauge *arg1 = (wxGauge *) 0 ;
7202 int result;
7203 void *argp1 = 0 ;
7204 int res1 = 0 ;
7205 PyObject *swig_obj[1] ;
7206
7207 if (!args) SWIG_fail;
7208 swig_obj[0] = args;
7209 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7210 if (!SWIG_IsOK(res1)) {
7211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetShadowWidth" "', expected argument " "1"" of type '" "wxGauge const *""'");
7212 }
7213 arg1 = reinterpret_cast< wxGauge * >(argp1);
7214 {
7215 PyThreadState* __tstate = wxPyBeginAllowThreads();
7216 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
7217 wxPyEndAllowThreads(__tstate);
7218 if (PyErr_Occurred()) SWIG_fail;
7219 }
7220 resultobj = SWIG_From_int(static_cast< int >(result));
7221 return resultobj;
7222fail:
7223 return NULL;
7224}
7225
7226
7227SWIGINTERN PyObject *_wrap_Gauge_SetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7228 PyObject *resultobj = 0;
7229 wxGauge *arg1 = (wxGauge *) 0 ;
7230 int arg2 ;
7231 void *argp1 = 0 ;
7232 int res1 = 0 ;
7233 int val2 ;
7234 int ecode2 = 0 ;
7235 PyObject * obj0 = 0 ;
7236 PyObject * obj1 = 0 ;
7237 char * kwnames[] = {
7238 (char *) "self",(char *) "w", NULL
7239 };
7240
7241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) SWIG_fail;
7242 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7243 if (!SWIG_IsOK(res1)) {
7244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetBezelFace" "', expected argument " "1"" of type '" "wxGauge *""'");
7245 }
7246 arg1 = reinterpret_cast< wxGauge * >(argp1);
7247 ecode2 = SWIG_AsVal_int(obj1, &val2);
7248 if (!SWIG_IsOK(ecode2)) {
7249 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetBezelFace" "', expected argument " "2"" of type '" "int""'");
7250 }
7251 arg2 = static_cast< int >(val2);
7252 {
7253 PyThreadState* __tstate = wxPyBeginAllowThreads();
7254 (arg1)->SetBezelFace(arg2);
7255 wxPyEndAllowThreads(__tstate);
7256 if (PyErr_Occurred()) SWIG_fail;
7257 }
7258 resultobj = SWIG_Py_Void();
7259 return resultobj;
7260fail:
7261 return NULL;
d55e5bfc
RD
7262}
7263
7264
1bd55598
RD
7265SWIGINTERN PyObject *_wrap_Gauge_GetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7266 PyObject *resultobj = 0;
7267 wxGauge *arg1 = (wxGauge *) 0 ;
7268 int result;
7269 void *argp1 = 0 ;
7270 int res1 = 0 ;
7271 PyObject *swig_obj[1] ;
7272
7273 if (!args) SWIG_fail;
7274 swig_obj[0] = args;
7275 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7276 if (!SWIG_IsOK(res1)) {
7277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetBezelFace" "', expected argument " "1"" of type '" "wxGauge const *""'");
7278 }
7279 arg1 = reinterpret_cast< wxGauge * >(argp1);
7280 {
7281 PyThreadState* __tstate = wxPyBeginAllowThreads();
7282 result = (int)((wxGauge const *)arg1)->GetBezelFace();
7283 wxPyEndAllowThreads(__tstate);
7284 if (PyErr_Occurred()) SWIG_fail;
7285 }
7286 resultobj = SWIG_From_int(static_cast< int >(result));
7287 return resultobj;
7288fail:
7289 return NULL;
7290}
7291
7292
7293SWIGINTERN PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7294 PyObject *resultobj = 0;
7295 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7296 SwigValueWrapper<wxVisualAttributes > result;
7297 int val1 ;
7298 int ecode1 = 0 ;
7299 PyObject * obj0 = 0 ;
7300 char * kwnames[] = {
7301 (char *) "variant", NULL
7302 };
7303
7304 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7305 if (obj0) {
7306 ecode1 = SWIG_AsVal_int(obj0, &val1);
7307 if (!SWIG_IsOK(ecode1)) {
7308 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Gauge_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7309 }
7310 arg1 = static_cast< wxWindowVariant >(val1);
7311 }
7312 {
7313 if (!wxPyCheckForApp()) SWIG_fail;
7314 PyThreadState* __tstate = wxPyBeginAllowThreads();
7315 result = wxGauge::GetClassDefaultAttributes(arg1);
7316 wxPyEndAllowThreads(__tstate);
7317 if (PyErr_Occurred()) SWIG_fail;
7318 }
7319 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7320 return resultobj;
7321fail:
7322 return NULL;
d55e5bfc
RD
7323}
7324
7325
1bd55598
RD
7326SWIGINTERN PyObject *Gauge_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7327 PyObject *obj;
7328 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7329 SWIG_TypeNewClientData(SWIGTYPE_p_wxGauge, SWIG_NewClientData(obj));
7330 return SWIG_Py_Void();
d55e5bfc
RD
7331}
7332
1bd55598
RD
7333SWIGINTERN PyObject *Gauge_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7334 return SWIG_Python_InitShadowInstance(args);
7335}
d55e5bfc 7336
1bd55598
RD
7337SWIGINTERN int StaticBitmapNameStr_set(PyObject *) {
7338 SWIG_Error(SWIG_AttributeError,"Variable StaticBitmapNameStr is read-only.");
7339 return 1;
d55e5bfc
RD
7340}
7341
7342
1bd55598
RD
7343SWIGINTERN PyObject *StaticBitmapNameStr_get(void) {
7344 PyObject *pyobj = 0;
7345
7346 {
7347#if wxUSE_UNICODE
7348 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7349#else
7350 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7351#endif
7352 }
7353 return pyobj;
d55e5bfc
RD
7354}
7355
7356
1bd55598
RD
7357SWIGINTERN int StaticBoxNameStr_set(PyObject *) {
7358 SWIG_Error(SWIG_AttributeError,"Variable StaticBoxNameStr is read-only.");
7359 return 1;
d55e5bfc
RD
7360}
7361
7362
1bd55598
RD
7363SWIGINTERN PyObject *StaticBoxNameStr_get(void) {
7364 PyObject *pyobj = 0;
7365
7366 {
7367#if wxUSE_UNICODE
7368 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7369#else
7370 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7371#endif
7372 }
7373 return pyobj;
d55e5bfc
RD
7374}
7375
7376
1bd55598
RD
7377SWIGINTERN int StaticTextNameStr_set(PyObject *) {
7378 SWIG_Error(SWIG_AttributeError,"Variable StaticTextNameStr is read-only.");
7379 return 1;
d55e5bfc
RD
7380}
7381
7382
1bd55598
RD
7383SWIGINTERN PyObject *StaticTextNameStr_get(void) {
7384 PyObject *pyobj = 0;
7385
7386 {
7387#if wxUSE_UNICODE
7388 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7389#else
7390 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7391#endif
7392 }
7393 return pyobj;
7394}
7395
7396
3f7f284d
RD
7397SWIGINTERN int StaticLineNameStr_set(PyObject *) {
7398 SWIG_Error(SWIG_AttributeError,"Variable StaticLineNameStr is read-only.");
7399 return 1;
7400}
7401
7402
7403SWIGINTERN PyObject *StaticLineNameStr_get(void) {
7404 PyObject *pyobj = 0;
7405
7406 {
7407#if wxUSE_UNICODE
7408 pyobj = PyUnicode_FromWideChar((&wxPyStaticLineNameStr)->c_str(), (&wxPyStaticLineNameStr)->Len());
7409#else
7410 pyobj = PyString_FromStringAndSize((&wxPyStaticLineNameStr)->c_str(), (&wxPyStaticLineNameStr)->Len());
7411#endif
7412 }
7413 return pyobj;
7414}
7415
7416
1bd55598
RD
7417SWIGINTERN PyObject *_wrap_new_StaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7418 PyObject *resultobj = 0;
7419 wxWindow *arg1 = (wxWindow *) 0 ;
7420 int arg2 = (int) -1 ;
7421 wxString const &arg3_defvalue = wxPyEmptyString ;
7422 wxString *arg3 = (wxString *) &arg3_defvalue ;
7423 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7424 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7425 wxSize const &arg5_defvalue = wxDefaultSize ;
7426 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7427 long arg6 = (long) 0 ;
7428 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
7429 wxString *arg7 = (wxString *) &arg7_defvalue ;
7430 wxStaticBox *result = 0 ;
7431 void *argp1 = 0 ;
7432 int res1 = 0 ;
7433 int val2 ;
7434 int ecode2 = 0 ;
7435 bool temp3 = false ;
7436 wxPoint temp4 ;
7437 wxSize temp5 ;
7438 long val6 ;
7439 int ecode6 = 0 ;
7440 bool temp7 = false ;
7441 PyObject * obj0 = 0 ;
7442 PyObject * obj1 = 0 ;
7443 PyObject * obj2 = 0 ;
7444 PyObject * obj3 = 0 ;
7445 PyObject * obj4 = 0 ;
7446 PyObject * obj5 = 0 ;
7447 PyObject * obj6 = 0 ;
7448 char * kwnames[] = {
7449 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7450 };
7451
7452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7454 if (!SWIG_IsOK(res1)) {
7455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBox" "', expected argument " "1"" of type '" "wxWindow *""'");
7456 }
7457 arg1 = reinterpret_cast< wxWindow * >(argp1);
7458 if (obj1) {
7459 ecode2 = SWIG_AsVal_int(obj1, &val2);
7460 if (!SWIG_IsOK(ecode2)) {
7461 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBox" "', expected argument " "2"" of type '" "int""'");
7462 }
7463 arg2 = static_cast< int >(val2);
7464 }
7465 if (obj2) {
36ed4f51 7466 {
1bd55598
RD
7467 arg3 = wxString_in_helper(obj2);
7468 if (arg3 == NULL) SWIG_fail;
7469 temp3 = true;
36ed4f51 7470 }
1bd55598
RD
7471 }
7472 if (obj3) {
d55e5bfc 7473 {
1bd55598
RD
7474 arg4 = &temp4;
7475 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 7476 }
1bd55598
RD
7477 }
7478 if (obj4) {
d55e5bfc 7479 {
1bd55598
RD
7480 arg5 = &temp5;
7481 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 7482 }
1bd55598
RD
7483 }
7484 if (obj5) {
7485 ecode6 = SWIG_AsVal_long(obj5, &val6);
7486 if (!SWIG_IsOK(ecode6)) {
7487 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBox" "', expected argument " "6"" of type '" "long""'");
7488 }
7489 arg6 = static_cast< long >(val6);
7490 }
7491 if (obj6) {
36ed4f51 7492 {
1bd55598
RD
7493 arg7 = wxString_in_helper(obj6);
7494 if (arg7 == NULL) SWIG_fail;
7495 temp7 = true;
36ed4f51 7496 }
1bd55598
RD
7497 }
7498 {
7499 if (!wxPyCheckForApp()) SWIG_fail;
7500 PyThreadState* __tstate = wxPyBeginAllowThreads();
7501 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7502 wxPyEndAllowThreads(__tstate);
7503 if (PyErr_Occurred()) SWIG_fail;
7504 }
7505 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_NEW | 0 );
7506 {
7507 if (temp3)
7508 delete arg3;
7509 }
7510 {
7511 if (temp7)
7512 delete arg7;
7513 }
7514 return resultobj;
7515fail:
7516 {
7517 if (temp3)
7518 delete arg3;
7519 }
7520 {
7521 if (temp7)
7522 delete arg7;
7523 }
7524 return NULL;
7525}
d55e5bfc 7526
1bd55598
RD
7527
7528SWIGINTERN PyObject *_wrap_new_PreStaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7529 PyObject *resultobj = 0;
7530 wxStaticBox *result = 0 ;
7531
7532 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBox",0,0,0)) SWIG_fail;
7533 {
7534 if (!wxPyCheckForApp()) SWIG_fail;
7535 PyThreadState* __tstate = wxPyBeginAllowThreads();
7536 result = (wxStaticBox *)new wxStaticBox();
7537 wxPyEndAllowThreads(__tstate);
7538 if (PyErr_Occurred()) SWIG_fail;
7539 }
7540 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_OWN | 0 );
7541 return resultobj;
7542fail:
7543 return NULL;
7544}
7545
7546
7547SWIGINTERN PyObject *_wrap_StaticBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7548 PyObject *resultobj = 0;
7549 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
7550 wxWindow *arg2 = (wxWindow *) 0 ;
7551 int arg3 = (int) -1 ;
7552 wxString const &arg4_defvalue = wxPyEmptyString ;
7553 wxString *arg4 = (wxString *) &arg4_defvalue ;
7554 wxPoint const &arg5_defvalue = wxDefaultPosition ;
7555 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
7556 wxSize const &arg6_defvalue = wxDefaultSize ;
7557 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
7558 long arg7 = (long) 0 ;
7559 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
7560 wxString *arg8 = (wxString *) &arg8_defvalue ;
7561 bool result;
7562 void *argp1 = 0 ;
7563 int res1 = 0 ;
7564 void *argp2 = 0 ;
7565 int res2 = 0 ;
7566 int val3 ;
7567 int ecode3 = 0 ;
7568 bool temp4 = false ;
7569 wxPoint temp5 ;
7570 wxSize temp6 ;
7571 long val7 ;
7572 int ecode7 = 0 ;
7573 bool temp8 = false ;
7574 PyObject * obj0 = 0 ;
7575 PyObject * obj1 = 0 ;
7576 PyObject * obj2 = 0 ;
7577 PyObject * obj3 = 0 ;
7578 PyObject * obj4 = 0 ;
7579 PyObject * obj5 = 0 ;
7580 PyObject * obj6 = 0 ;
7581 PyObject * obj7 = 0 ;
7582 char * kwnames[] = {
7583 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7584 };
7585
7586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
7587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBox, 0 | 0 );
7588 if (!SWIG_IsOK(res1)) {
7589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBox_Create" "', expected argument " "1"" of type '" "wxStaticBox *""'");
7590 }
7591 arg1 = reinterpret_cast< wxStaticBox * >(argp1);
7592 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7593 if (!SWIG_IsOK(res2)) {
7594 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7595 }
7596 arg2 = reinterpret_cast< wxWindow * >(argp2);
7597 if (obj2) {
7598 ecode3 = SWIG_AsVal_int(obj2, &val3);
7599 if (!SWIG_IsOK(ecode3)) {
7600 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBox_Create" "', expected argument " "3"" of type '" "int""'");
7601 }
7602 arg3 = static_cast< int >(val3);
7603 }
7604 if (obj3) {
36ed4f51 7605 {
1bd55598
RD
7606 arg4 = wxString_in_helper(obj3);
7607 if (arg4 == NULL) SWIG_fail;
7608 temp4 = true;
36ed4f51 7609 }
1bd55598
RD
7610 }
7611 if (obj4) {
d55e5bfc 7612 {
1bd55598
RD
7613 arg5 = &temp5;
7614 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 7615 }
1bd55598
RD
7616 }
7617 if (obj5) {
d55e5bfc 7618 {
1bd55598
RD
7619 arg6 = &temp6;
7620 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 7621 }
1bd55598
RD
7622 }
7623 if (obj6) {
7624 ecode7 = SWIG_AsVal_long(obj6, &val7);
7625 if (!SWIG_IsOK(ecode7)) {
7626 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBox_Create" "', expected argument " "7"" of type '" "long""'");
7627 }
7628 arg7 = static_cast< long >(val7);
7629 }
7630 if (obj7) {
36ed4f51 7631 {
1bd55598
RD
7632 arg8 = wxString_in_helper(obj7);
7633 if (arg8 == NULL) SWIG_fail;
7634 temp8 = true;
36ed4f51 7635 }
1bd55598
RD
7636 }
7637 {
7638 PyThreadState* __tstate = wxPyBeginAllowThreads();
7639 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
7640 wxPyEndAllowThreads(__tstate);
7641 if (PyErr_Occurred()) SWIG_fail;
7642 }
7643 {
7644 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7645 }
7646 {
7647 if (temp4)
7648 delete arg4;
7649 }
7650 {
7651 if (temp8)
7652 delete arg8;
7653 }
7654 return resultobj;
7655fail:
7656 {
7657 if (temp4)
7658 delete arg4;
7659 }
7660 {
7661 if (temp8)
7662 delete arg8;
7663 }
7664 return NULL;
d55e5bfc
RD
7665}
7666
7667
1bd55598
RD
7668SWIGINTERN PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7669 PyObject *resultobj = 0;
7670 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7671 SwigValueWrapper<wxVisualAttributes > result;
7672 int val1 ;
7673 int ecode1 = 0 ;
7674 PyObject * obj0 = 0 ;
7675 char * kwnames[] = {
7676 (char *) "variant", NULL
7677 };
7678
7679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7680 if (obj0) {
7681 ecode1 = SWIG_AsVal_int(obj0, &val1);
7682 if (!SWIG_IsOK(ecode1)) {
7683 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7684 }
7685 arg1 = static_cast< wxWindowVariant >(val1);
7686 }
7687 {
7688 if (!wxPyCheckForApp()) SWIG_fail;
7689 PyThreadState* __tstate = wxPyBeginAllowThreads();
7690 result = wxStaticBox::GetClassDefaultAttributes(arg1);
7691 wxPyEndAllowThreads(__tstate);
7692 if (PyErr_Occurred()) SWIG_fail;
7693 }
7694 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7695 return resultobj;
7696fail:
7697 return NULL;
7698}
7699
7700
7701SWIGINTERN PyObject *StaticBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7702 PyObject *obj;
7703 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7704 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBox, SWIG_NewClientData(obj));
7705 return SWIG_Py_Void();
7706}
7707
7708SWIGINTERN PyObject *StaticBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7709 return SWIG_Python_InitShadowInstance(args);
7710}
7711
7712SWIGINTERN PyObject *_wrap_new_StaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7713 PyObject *resultobj = 0;
7714 wxWindow *arg1 = (wxWindow *) 0 ;
7715 int arg2 = (int) -1 ;
7716 wxPoint const &arg3_defvalue = wxDefaultPosition ;
7717 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
7718 wxSize const &arg4_defvalue = wxDefaultSize ;
7719 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
7720 long arg5 = (long) wxLI_HORIZONTAL ;
3f7f284d 7721 wxString const &arg6_defvalue = wxPyStaticLineNameStr ;
1bd55598
RD
7722 wxString *arg6 = (wxString *) &arg6_defvalue ;
7723 wxStaticLine *result = 0 ;
7724 void *argp1 = 0 ;
7725 int res1 = 0 ;
7726 int val2 ;
7727 int ecode2 = 0 ;
7728 wxPoint temp3 ;
7729 wxSize temp4 ;
7730 long val5 ;
7731 int ecode5 = 0 ;
7732 bool temp6 = false ;
7733 PyObject * obj0 = 0 ;
7734 PyObject * obj1 = 0 ;
7735 PyObject * obj2 = 0 ;
7736 PyObject * obj3 = 0 ;
7737 PyObject * obj4 = 0 ;
7738 PyObject * obj5 = 0 ;
7739 char * kwnames[] = {
7740 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7741 };
7742
7743 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
7744 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7745 if (!SWIG_IsOK(res1)) {
7746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticLine" "', expected argument " "1"" of type '" "wxWindow *""'");
7747 }
7748 arg1 = reinterpret_cast< wxWindow * >(argp1);
7749 if (obj1) {
7750 ecode2 = SWIG_AsVal_int(obj1, &val2);
7751 if (!SWIG_IsOK(ecode2)) {
7752 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticLine" "', expected argument " "2"" of type '" "int""'");
7753 }
7754 arg2 = static_cast< int >(val2);
7755 }
7756 if (obj2) {
7757 {
7758 arg3 = &temp3;
7759 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
f20a2e1f 7760 }
1bd55598
RD
7761 }
7762 if (obj3) {
f20a2e1f 7763 {
1bd55598
RD
7764 arg4 = &temp4;
7765 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
f20a2e1f 7766 }
1bd55598
RD
7767 }
7768 if (obj4) {
7769 ecode5 = SWIG_AsVal_long(obj4, &val5);
7770 if (!SWIG_IsOK(ecode5)) {
7771 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_StaticLine" "', expected argument " "5"" of type '" "long""'");
7772 }
7773 arg5 = static_cast< long >(val5);
7774 }
7775 if (obj5) {
f20a2e1f 7776 {
1bd55598
RD
7777 arg6 = wxString_in_helper(obj5);
7778 if (arg6 == NULL) SWIG_fail;
7779 temp6 = true;
f20a2e1f 7780 }
1bd55598
RD
7781 }
7782 {
7783 if (!wxPyCheckForApp()) SWIG_fail;
7784 PyThreadState* __tstate = wxPyBeginAllowThreads();
7785 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
7786 wxPyEndAllowThreads(__tstate);
7787 if (PyErr_Occurred()) SWIG_fail;
7788 }
7789 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_NEW | 0 );
7790 {
7791 if (temp6)
7792 delete arg6;
7793 }
7794 return resultobj;
7795fail:
7796 {
7797 if (temp6)
7798 delete arg6;
7799 }
7800 return NULL;
d55e5bfc
RD
7801}
7802
7803
1bd55598
RD
7804SWIGINTERN PyObject *_wrap_new_PreStaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7805 PyObject *resultobj = 0;
7806 wxStaticLine *result = 0 ;
7807
7808 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticLine",0,0,0)) SWIG_fail;
7809 {
7810 if (!wxPyCheckForApp()) SWIG_fail;
7811 PyThreadState* __tstate = wxPyBeginAllowThreads();
7812 result = (wxStaticLine *)new wxStaticLine();
7813 wxPyEndAllowThreads(__tstate);
7814 if (PyErr_Occurred()) SWIG_fail;
7815 }
7816 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_OWN | 0 );
7817 return resultobj;
7818fail:
7819 return NULL;
7820}
7821
7822
7823SWIGINTERN PyObject *_wrap_StaticLine_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7824 PyObject *resultobj = 0;
7825 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7826 wxWindow *arg2 = (wxWindow *) 0 ;
7827 int arg3 = (int) -1 ;
7828 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7829 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7830 wxSize const &arg5_defvalue = wxDefaultSize ;
7831 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7832 long arg6 = (long) wxLI_HORIZONTAL ;
3f7f284d 7833 wxString const &arg7_defvalue = wxPyStaticLineNameStr ;
1bd55598
RD
7834 wxString *arg7 = (wxString *) &arg7_defvalue ;
7835 bool result;
7836 void *argp1 = 0 ;
7837 int res1 = 0 ;
7838 void *argp2 = 0 ;
7839 int res2 = 0 ;
7840 int val3 ;
7841 int ecode3 = 0 ;
7842 wxPoint temp4 ;
7843 wxSize temp5 ;
7844 long val6 ;
7845 int ecode6 = 0 ;
7846 bool temp7 = false ;
7847 PyObject * obj0 = 0 ;
7848 PyObject * obj1 = 0 ;
7849 PyObject * obj2 = 0 ;
7850 PyObject * obj3 = 0 ;
7851 PyObject * obj4 = 0 ;
7852 PyObject * obj5 = 0 ;
7853 PyObject * obj6 = 0 ;
7854 char * kwnames[] = {
7855 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7856 };
7857
7858 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7859 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7860 if (!SWIG_IsOK(res1)) {
7861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_Create" "', expected argument " "1"" of type '" "wxStaticLine *""'");
7862 }
7863 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7864 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7865 if (!SWIG_IsOK(res2)) {
7866 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticLine_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7867 }
7868 arg2 = reinterpret_cast< wxWindow * >(argp2);
7869 if (obj2) {
7870 ecode3 = SWIG_AsVal_int(obj2, &val3);
7871 if (!SWIG_IsOK(ecode3)) {
7872 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticLine_Create" "', expected argument " "3"" of type '" "int""'");
7873 }
7874 arg3 = static_cast< int >(val3);
7875 }
7876 if (obj3) {
d55e5bfc 7877 {
1bd55598
RD
7878 arg4 = &temp4;
7879 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 7880 }
1bd55598
RD
7881 }
7882 if (obj4) {
d55e5bfc 7883 {
1bd55598
RD
7884 arg5 = &temp5;
7885 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7886 }
7887 }
7888 if (obj5) {
7889 ecode6 = SWIG_AsVal_long(obj5, &val6);
7890 if (!SWIG_IsOK(ecode6)) {
7891 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "StaticLine_Create" "', expected argument " "6"" of type '" "long""'");
7892 }
7893 arg6 = static_cast< long >(val6);
7894 }
7895 if (obj6) {
7896 {
7897 arg7 = wxString_in_helper(obj6);
7898 if (arg7 == NULL) SWIG_fail;
7899 temp7 = true;
d55e5bfc 7900 }
1bd55598
RD
7901 }
7902 {
7903 PyThreadState* __tstate = wxPyBeginAllowThreads();
7904 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7905 wxPyEndAllowThreads(__tstate);
7906 if (PyErr_Occurred()) SWIG_fail;
7907 }
7908 {
7909 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7910 }
7911 {
7912 if (temp7)
7913 delete arg7;
7914 }
7915 return resultobj;
7916fail:
7917 {
7918 if (temp7)
7919 delete arg7;
7920 }
7921 return NULL;
d55e5bfc
RD
7922}
7923
7924
1bd55598
RD
7925SWIGINTERN PyObject *_wrap_StaticLine_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7926 PyObject *resultobj = 0;
7927 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7928 bool result;
7929 void *argp1 = 0 ;
7930 int res1 = 0 ;
7931 PyObject *swig_obj[1] ;
7932
7933 if (!args) SWIG_fail;
7934 swig_obj[0] = args;
7935 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7936 if (!SWIG_IsOK(res1)) {
7937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_IsVertical" "', expected argument " "1"" of type '" "wxStaticLine const *""'");
7938 }
7939 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7940 {
7941 PyThreadState* __tstate = wxPyBeginAllowThreads();
7942 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
7943 wxPyEndAllowThreads(__tstate);
7944 if (PyErr_Occurred()) SWIG_fail;
7945 }
7946 {
7947 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7948 }
7949 return resultobj;
7950fail:
7951 return NULL;
d55e5bfc
RD
7952}
7953
7954
1bd55598
RD
7955SWIGINTERN PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7956 PyObject *resultobj = 0;
7957 int result;
7958
7959 if (!SWIG_Python_UnpackTuple(args,"StaticLine_GetDefaultSize",0,0,0)) SWIG_fail;
7960 {
7961 PyThreadState* __tstate = wxPyBeginAllowThreads();
7962 result = (int)wxStaticLine::GetDefaultSize();
7963 wxPyEndAllowThreads(__tstate);
7964 if (PyErr_Occurred()) SWIG_fail;
7965 }
7966 resultobj = SWIG_From_int(static_cast< int >(result));
7967 return resultobj;
7968fail:
7969 return NULL;
7970}
7971
7972
7973SWIGINTERN PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7974 PyObject *resultobj = 0;
7975 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7976 SwigValueWrapper<wxVisualAttributes > result;
7977 int val1 ;
7978 int ecode1 = 0 ;
7979 PyObject * obj0 = 0 ;
7980 char * kwnames[] = {
7981 (char *) "variant", NULL
7982 };
7983
7984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7985 if (obj0) {
7986 ecode1 = SWIG_AsVal_int(obj0, &val1);
7987 if (!SWIG_IsOK(ecode1)) {
7988 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticLine_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7989 }
7990 arg1 = static_cast< wxWindowVariant >(val1);
7991 }
7992 {
7993 if (!wxPyCheckForApp()) SWIG_fail;
7994 PyThreadState* __tstate = wxPyBeginAllowThreads();
7995 result = wxStaticLine::GetClassDefaultAttributes(arg1);
7996 wxPyEndAllowThreads(__tstate);
7997 if (PyErr_Occurred()) SWIG_fail;
7998 }
7999 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8000 return resultobj;
8001fail:
8002 return NULL;
8003}
8004
8005
8006SWIGINTERN PyObject *StaticLine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8007 PyObject *obj;
8008 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8009 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticLine, SWIG_NewClientData(obj));
8010 return SWIG_Py_Void();
8011}
8012
8013SWIGINTERN PyObject *StaticLine_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8014 return SWIG_Python_InitShadowInstance(args);
8015}
8016
8017SWIGINTERN PyObject *_wrap_new_StaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8018 PyObject *resultobj = 0;
8019 wxWindow *arg1 = (wxWindow *) 0 ;
8020 int arg2 = (int) -1 ;
8021 wxString const &arg3_defvalue = wxPyEmptyString ;
8022 wxString *arg3 = (wxString *) &arg3_defvalue ;
8023 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8024 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8025 wxSize const &arg5_defvalue = wxDefaultSize ;
8026 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8027 long arg6 = (long) 0 ;
8028 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
8029 wxString *arg7 = (wxString *) &arg7_defvalue ;
8030 wxStaticText *result = 0 ;
8031 void *argp1 = 0 ;
8032 int res1 = 0 ;
8033 int val2 ;
8034 int ecode2 = 0 ;
8035 bool temp3 = false ;
8036 wxPoint temp4 ;
8037 wxSize temp5 ;
8038 long val6 ;
8039 int ecode6 = 0 ;
8040 bool temp7 = false ;
8041 PyObject * obj0 = 0 ;
8042 PyObject * obj1 = 0 ;
8043 PyObject * obj2 = 0 ;
8044 PyObject * obj3 = 0 ;
8045 PyObject * obj4 = 0 ;
8046 PyObject * obj5 = 0 ;
8047 PyObject * obj6 = 0 ;
8048 char * kwnames[] = {
8049 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8050 };
8051
8052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8054 if (!SWIG_IsOK(res1)) {
8055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticText" "', expected argument " "1"" of type '" "wxWindow *""'");
8056 }
8057 arg1 = reinterpret_cast< wxWindow * >(argp1);
8058 if (obj1) {
8059 ecode2 = SWIG_AsVal_int(obj1, &val2);
8060 if (!SWIG_IsOK(ecode2)) {
8061 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticText" "', expected argument " "2"" of type '" "int""'");
8062 }
8063 arg2 = static_cast< int >(val2);
8064 }
8065 if (obj2) {
d55e5bfc 8066 {
1bd55598
RD
8067 arg3 = wxString_in_helper(obj2);
8068 if (arg3 == NULL) SWIG_fail;
8069 temp3 = true;
d55e5bfc 8070 }
1bd55598
RD
8071 }
8072 if (obj3) {
d55e5bfc 8073 {
1bd55598
RD
8074 arg4 = &temp4;
8075 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 8076 }
1bd55598
RD
8077 }
8078 if (obj4) {
d55e5bfc 8079 {
1bd55598
RD
8080 arg5 = &temp5;
8081 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 8082 }
1bd55598
RD
8083 }
8084 if (obj5) {
8085 ecode6 = SWIG_AsVal_long(obj5, &val6);
8086 if (!SWIG_IsOK(ecode6)) {
8087 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticText" "', expected argument " "6"" of type '" "long""'");
8088 }
8089 arg6 = static_cast< long >(val6);
8090 }
8091 if (obj6) {
d55e5bfc 8092 {
1bd55598
RD
8093 arg7 = wxString_in_helper(obj6);
8094 if (arg7 == NULL) SWIG_fail;
8095 temp7 = true;
d55e5bfc 8096 }
1bd55598
RD
8097 }
8098 {
8099 if (!wxPyCheckForApp()) SWIG_fail;
8100 PyThreadState* __tstate = wxPyBeginAllowThreads();
8101 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8102 wxPyEndAllowThreads(__tstate);
8103 if (PyErr_Occurred()) SWIG_fail;
8104 }
8105 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_NEW | 0 );
8106 {
8107 if (temp3)
8108 delete arg3;
8109 }
8110 {
8111 if (temp7)
8112 delete arg7;
8113 }
8114 return resultobj;
8115fail:
8116 {
8117 if (temp3)
8118 delete arg3;
8119 }
8120 {
8121 if (temp7)
8122 delete arg7;
8123 }
8124 return NULL;
d55e5bfc
RD
8125}
8126
8127
1bd55598
RD
8128SWIGINTERN PyObject *_wrap_new_PreStaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8129 PyObject *resultobj = 0;
8130 wxStaticText *result = 0 ;
8131
8132 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticText",0,0,0)) SWIG_fail;
8133 {
8134 if (!wxPyCheckForApp()) SWIG_fail;
8135 PyThreadState* __tstate = wxPyBeginAllowThreads();
8136 result = (wxStaticText *)new wxStaticText();
8137 wxPyEndAllowThreads(__tstate);
8138 if (PyErr_Occurred()) SWIG_fail;
8139 }
8140 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_OWN | 0 );
8141 return resultobj;
8142fail:
8143 return NULL;
8144}
8145
8146
8147SWIGINTERN PyObject *_wrap_StaticText_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8148 PyObject *resultobj = 0;
8149 wxStaticText *arg1 = (wxStaticText *) 0 ;
8150 wxWindow *arg2 = (wxWindow *) 0 ;
8151 int arg3 = (int) -1 ;
8152 wxString const &arg4_defvalue = wxPyEmptyString ;
8153 wxString *arg4 = (wxString *) &arg4_defvalue ;
8154 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8155 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8156 wxSize const &arg6_defvalue = wxDefaultSize ;
8157 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8158 long arg7 = (long) 0 ;
8159 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
8160 wxString *arg8 = (wxString *) &arg8_defvalue ;
8161 bool result;
8162 void *argp1 = 0 ;
8163 int res1 = 0 ;
8164 void *argp2 = 0 ;
8165 int res2 = 0 ;
8166 int val3 ;
8167 int ecode3 = 0 ;
8168 bool temp4 = false ;
8169 wxPoint temp5 ;
8170 wxSize temp6 ;
8171 long val7 ;
8172 int ecode7 = 0 ;
8173 bool temp8 = false ;
8174 PyObject * obj0 = 0 ;
8175 PyObject * obj1 = 0 ;
8176 PyObject * obj2 = 0 ;
8177 PyObject * obj3 = 0 ;
8178 PyObject * obj4 = 0 ;
8179 PyObject * obj5 = 0 ;
8180 PyObject * obj6 = 0 ;
8181 PyObject * obj7 = 0 ;
8182 char * kwnames[] = {
8183 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8184 };
8185
8186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8187 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8188 if (!SWIG_IsOK(res1)) {
8189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Create" "', expected argument " "1"" of type '" "wxStaticText *""'");
8190 }
8191 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8192 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8193 if (!SWIG_IsOK(res2)) {
8194 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticText_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8195 }
8196 arg2 = reinterpret_cast< wxWindow * >(argp2);
8197 if (obj2) {
8198 ecode3 = SWIG_AsVal_int(obj2, &val3);
8199 if (!SWIG_IsOK(ecode3)) {
8200 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticText_Create" "', expected argument " "3"" of type '" "int""'");
8201 }
8202 arg3 = static_cast< int >(val3);
8203 }
8204 if (obj3) {
d55e5bfc 8205 {
1bd55598
RD
8206 arg4 = wxString_in_helper(obj3);
8207 if (arg4 == NULL) SWIG_fail;
8208 temp4 = true;
d55e5bfc 8209 }
1bd55598
RD
8210 }
8211 if (obj4) {
d55e5bfc 8212 {
1bd55598
RD
8213 arg5 = &temp5;
8214 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 8215 }
1bd55598
RD
8216 }
8217 if (obj5) {
d55e5bfc 8218 {
1bd55598
RD
8219 arg6 = &temp6;
8220 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 8221 }
1bd55598
RD
8222 }
8223 if (obj6) {
8224 ecode7 = SWIG_AsVal_long(obj6, &val7);
8225 if (!SWIG_IsOK(ecode7)) {
8226 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticText_Create" "', expected argument " "7"" of type '" "long""'");
8227 }
8228 arg7 = static_cast< long >(val7);
8229 }
8230 if (obj7) {
d55e5bfc 8231 {
1bd55598
RD
8232 arg8 = wxString_in_helper(obj7);
8233 if (arg8 == NULL) SWIG_fail;
8234 temp8 = true;
d55e5bfc 8235 }
1bd55598
RD
8236 }
8237 {
8238 PyThreadState* __tstate = wxPyBeginAllowThreads();
8239 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8240 wxPyEndAllowThreads(__tstate);
8241 if (PyErr_Occurred()) SWIG_fail;
8242 }
8243 {
8244 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8245 }
8246 {
8247 if (temp4)
8248 delete arg4;
8249 }
8250 {
8251 if (temp8)
8252 delete arg8;
8253 }
8254 return resultobj;
8255fail:
8256 {
8257 if (temp4)
8258 delete arg4;
8259 }
8260 {
8261 if (temp8)
8262 delete arg8;
8263 }
8264 return NULL;
8265}
8266
8267
8268SWIGINTERN PyObject *_wrap_StaticText_Wrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8269 PyObject *resultobj = 0;
8270 wxStaticText *arg1 = (wxStaticText *) 0 ;
8271 int arg2 ;
8272 void *argp1 = 0 ;
8273 int res1 = 0 ;
8274 int val2 ;
8275 int ecode2 = 0 ;
8276 PyObject * obj0 = 0 ;
8277 PyObject * obj1 = 0 ;
8278 char * kwnames[] = {
8279 (char *) "self",(char *) "width", NULL
8280 };
8281
8282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticText_Wrap",kwnames,&obj0,&obj1)) SWIG_fail;
8283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8284 if (!SWIG_IsOK(res1)) {
8285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Wrap" "', expected argument " "1"" of type '" "wxStaticText *""'");
8286 }
8287 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8288 ecode2 = SWIG_AsVal_int(obj1, &val2);
8289 if (!SWIG_IsOK(ecode2)) {
8290 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StaticText_Wrap" "', expected argument " "2"" of type '" "int""'");
8291 }
8292 arg2 = static_cast< int >(val2);
8293 {
8294 PyThreadState* __tstate = wxPyBeginAllowThreads();
8295 (arg1)->Wrap(arg2);
8296 wxPyEndAllowThreads(__tstate);
8297 if (PyErr_Occurred()) SWIG_fail;
8298 }
8299 resultobj = SWIG_Py_Void();
8300 return resultobj;
8301fail:
8302 return NULL;
8303}
8304
8305
8306SWIGINTERN PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8307 PyObject *resultobj = 0;
8308 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8309 SwigValueWrapper<wxVisualAttributes > result;
8310 int val1 ;
8311 int ecode1 = 0 ;
8312 PyObject * obj0 = 0 ;
8313 char * kwnames[] = {
8314 (char *) "variant", NULL
8315 };
8316
8317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8318 if (obj0) {
8319 ecode1 = SWIG_AsVal_int(obj0, &val1);
8320 if (!SWIG_IsOK(ecode1)) {
8321 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticText_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8322 }
8323 arg1 = static_cast< wxWindowVariant >(val1);
8324 }
8325 {
8326 if (!wxPyCheckForApp()) SWIG_fail;
8327 PyThreadState* __tstate = wxPyBeginAllowThreads();
8328 result = wxStaticText::GetClassDefaultAttributes(arg1);
8329 wxPyEndAllowThreads(__tstate);
8330 if (PyErr_Occurred()) SWIG_fail;
8331 }
8332 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8333 return resultobj;
8334fail:
8335 return NULL;
8336}
8337
8338
8339SWIGINTERN PyObject *StaticText_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8340 PyObject *obj;
8341 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8342 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticText, SWIG_NewClientData(obj));
8343 return SWIG_Py_Void();
8344}
8345
8346SWIGINTERN PyObject *StaticText_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8347 return SWIG_Python_InitShadowInstance(args);
8348}
8349
8350SWIGINTERN PyObject *_wrap_new_StaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8351 PyObject *resultobj = 0;
8352 wxWindow *arg1 = (wxWindow *) 0 ;
8353 int arg2 = (int) -1 ;
8354 wxBitmap const &arg3_defvalue = wxNullBitmap ;
8355 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
8356 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8357 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8358 wxSize const &arg5_defvalue = wxDefaultSize ;
8359 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8360 long arg6 = (long) 0 ;
8361 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
8362 wxString *arg7 = (wxString *) &arg7_defvalue ;
8363 wxStaticBitmap *result = 0 ;
8364 void *argp1 = 0 ;
8365 int res1 = 0 ;
8366 int val2 ;
8367 int ecode2 = 0 ;
8368 void *argp3 = 0 ;
8369 int res3 = 0 ;
8370 wxPoint temp4 ;
8371 wxSize temp5 ;
8372 long val6 ;
8373 int ecode6 = 0 ;
8374 bool temp7 = false ;
8375 PyObject * obj0 = 0 ;
8376 PyObject * obj1 = 0 ;
8377 PyObject * obj2 = 0 ;
8378 PyObject * obj3 = 0 ;
8379 PyObject * obj4 = 0 ;
8380 PyObject * obj5 = 0 ;
8381 PyObject * obj6 = 0 ;
8382 char * kwnames[] = {
8383 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8384 };
8385
8386 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8387 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8388 if (!SWIG_IsOK(res1)) {
8389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBitmap" "', expected argument " "1"" of type '" "wxWindow *""'");
8390 }
8391 arg1 = reinterpret_cast< wxWindow * >(argp1);
8392 if (obj1) {
8393 ecode2 = SWIG_AsVal_int(obj1, &val2);
8394 if (!SWIG_IsOK(ecode2)) {
8395 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBitmap" "', expected argument " "2"" of type '" "int""'");
8396 }
8397 arg2 = static_cast< int >(val2);
8398 }
8399 if (obj2) {
8400 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
8401 if (!SWIG_IsOK(res3)) {
8402 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
d55e5bfc 8403 }
1bd55598
RD
8404 if (!argp3) {
8405 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
d55e5bfc 8406 }
1bd55598
RD
8407 arg3 = reinterpret_cast< wxBitmap * >(argp3);
8408 }
8409 if (obj3) {
d55e5bfc 8410 {
1bd55598
RD
8411 arg4 = &temp4;
8412 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
f20a2e1f 8413 }
1bd55598
RD
8414 }
8415 if (obj4) {
f20a2e1f 8416 {
1bd55598
RD
8417 arg5 = &temp5;
8418 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
f20a2e1f 8419 }
1bd55598
RD
8420 }
8421 if (obj5) {
8422 ecode6 = SWIG_AsVal_long(obj5, &val6);
8423 if (!SWIG_IsOK(ecode6)) {
8424 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBitmap" "', expected argument " "6"" of type '" "long""'");
8425 }
8426 arg6 = static_cast< long >(val6);
8427 }
8428 if (obj6) {
f20a2e1f 8429 {
1bd55598
RD
8430 arg7 = wxString_in_helper(obj6);
8431 if (arg7 == NULL) SWIG_fail;
8432 temp7 = true;
f20a2e1f 8433 }
1bd55598
RD
8434 }
8435 {
8436 if (!wxPyCheckForApp()) SWIG_fail;
8437 PyThreadState* __tstate = wxPyBeginAllowThreads();
8438 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8439 wxPyEndAllowThreads(__tstate);
8440 if (PyErr_Occurred()) SWIG_fail;
8441 }
8442 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_NEW | 0 );
8443 {
8444 if (temp7)
8445 delete arg7;
8446 }
8447 return resultobj;
8448fail:
8449 {
8450 if (temp7)
8451 delete arg7;
8452 }
8453 return NULL;
f20a2e1f
RD
8454}
8455
8456
1bd55598
RD
8457SWIGINTERN PyObject *_wrap_new_PreStaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8458 PyObject *resultobj = 0;
8459 wxStaticBitmap *result = 0 ;
8460
8461 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBitmap",0,0,0)) SWIG_fail;
8462 {
8463 if (!wxPyCheckForApp()) SWIG_fail;
8464 PyThreadState* __tstate = wxPyBeginAllowThreads();
8465 result = (wxStaticBitmap *)new wxStaticBitmap();
8466 wxPyEndAllowThreads(__tstate);
8467 if (PyErr_Occurred()) SWIG_fail;
8468 }
8469 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_OWN | 0 );
8470 return resultobj;
8471fail:
8472 return NULL;
8473}
8474
8475
8476SWIGINTERN PyObject *_wrap_StaticBitmap_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8477 PyObject *resultobj = 0;
8478 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8479 wxWindow *arg2 = (wxWindow *) 0 ;
8480 int arg3 = (int) -1 ;
8481 wxBitmap const &arg4_defvalue = wxNullBitmap ;
8482 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
8483 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8484 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8485 wxSize const &arg6_defvalue = wxDefaultSize ;
8486 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8487 long arg7 = (long) 0 ;
8488 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
8489 wxString *arg8 = (wxString *) &arg8_defvalue ;
8490 bool result;
8491 void *argp1 = 0 ;
8492 int res1 = 0 ;
8493 void *argp2 = 0 ;
8494 int res2 = 0 ;
8495 int val3 ;
8496 int ecode3 = 0 ;
8497 void *argp4 = 0 ;
8498 int res4 = 0 ;
8499 wxPoint temp5 ;
8500 wxSize temp6 ;
8501 long val7 ;
8502 int ecode7 = 0 ;
8503 bool temp8 = false ;
8504 PyObject * obj0 = 0 ;
8505 PyObject * obj1 = 0 ;
8506 PyObject * obj2 = 0 ;
8507 PyObject * obj3 = 0 ;
8508 PyObject * obj4 = 0 ;
8509 PyObject * obj5 = 0 ;
8510 PyObject * obj6 = 0 ;
8511 PyObject * obj7 = 0 ;
8512 char * kwnames[] = {
8513 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8514 };
8515
8516 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8518 if (!SWIG_IsOK(res1)) {
8519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_Create" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8520 }
8521 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8522 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8523 if (!SWIG_IsOK(res2)) {
8524 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8525 }
8526 arg2 = reinterpret_cast< wxWindow * >(argp2);
8527 if (obj2) {
8528 ecode3 = SWIG_AsVal_int(obj2, &val3);
8529 if (!SWIG_IsOK(ecode3)) {
8530 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBitmap_Create" "', expected argument " "3"" of type '" "int""'");
8531 }
8532 arg3 = static_cast< int >(val3);
8533 }
8534 if (obj3) {
8535 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
8536 if (!SWIG_IsOK(res4)) {
8537 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
d55e5bfc 8538 }
1bd55598
RD
8539 if (!argp4) {
8540 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
d55e5bfc 8541 }
1bd55598
RD
8542 arg4 = reinterpret_cast< wxBitmap * >(argp4);
8543 }
8544 if (obj4) {
d55e5bfc 8545 {
1bd55598
RD
8546 arg5 = &temp5;
8547 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 8548 }
1bd55598
RD
8549 }
8550 if (obj5) {
d55e5bfc 8551 {
1bd55598
RD
8552 arg6 = &temp6;
8553 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 8554 }
1bd55598
RD
8555 }
8556 if (obj6) {
8557 ecode7 = SWIG_AsVal_long(obj6, &val7);
8558 if (!SWIG_IsOK(ecode7)) {
8559 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBitmap_Create" "', expected argument " "7"" of type '" "long""'");
8560 }
8561 arg7 = static_cast< long >(val7);
8562 }
8563 if (obj7) {
d55e5bfc 8564 {
1bd55598
RD
8565 arg8 = wxString_in_helper(obj7);
8566 if (arg8 == NULL) SWIG_fail;
8567 temp8 = true;
d55e5bfc 8568 }
1bd55598
RD
8569 }
8570 {
8571 PyThreadState* __tstate = wxPyBeginAllowThreads();
8572 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8573 wxPyEndAllowThreads(__tstate);
8574 if (PyErr_Occurred()) SWIG_fail;
8575 }
8576 {
8577 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8578 }
8579 {
8580 if (temp8)
8581 delete arg8;
8582 }
8583 return resultobj;
8584fail:
8585 {
8586 if (temp8)
8587 delete arg8;
8588 }
8589 return NULL;
d55e5bfc
RD
8590}
8591
8592
1bd55598
RD
8593SWIGINTERN PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8594 PyObject *resultobj = 0;
8595 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8596 wxBitmap result;
8597 void *argp1 = 0 ;
8598 int res1 = 0 ;
8599 PyObject *swig_obj[1] ;
8600
8601 if (!args) SWIG_fail;
8602 swig_obj[0] = args;
8603 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8604 if (!SWIG_IsOK(res1)) {
8605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_GetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8606 }
8607 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8608 {
8609 PyThreadState* __tstate = wxPyBeginAllowThreads();
8610 result = (arg1)->GetBitmap();
8611 wxPyEndAllowThreads(__tstate);
8612 if (PyErr_Occurred()) SWIG_fail;
8613 }
8614 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8615 return resultobj;
8616fail:
8617 return NULL;
8618}
8619
8620
8621SWIGINTERN PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8622 PyObject *resultobj = 0;
8623 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8624 wxBitmap *arg2 = 0 ;
8625 void *argp1 = 0 ;
8626 int res1 = 0 ;
8627 void *argp2 = 0 ;
8628 int res2 = 0 ;
8629 PyObject * obj0 = 0 ;
8630 PyObject * obj1 = 0 ;
8631 char * kwnames[] = {
8632 (char *) "self",(char *) "bitmap", NULL
8633 };
8634
8635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
8636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8637 if (!SWIG_IsOK(res1)) {
8638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8639 }
8640 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8641 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8642 if (!SWIG_IsOK(res2)) {
8643 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8644 }
8645 if (!argp2) {
8646 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8647 }
8648 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8649 {
8650 PyThreadState* __tstate = wxPyBeginAllowThreads();
8651 (arg1)->SetBitmap((wxBitmap const &)*arg2);
8652 wxPyEndAllowThreads(__tstate);
8653 if (PyErr_Occurred()) SWIG_fail;
8654 }
8655 resultobj = SWIG_Py_Void();
8656 return resultobj;
8657fail:
8658 return NULL;
8659}
8660
8661
8662SWIGINTERN PyObject *_wrap_StaticBitmap_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8663 PyObject *resultobj = 0;
8664 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8665 wxIcon *arg2 = 0 ;
8666 void *argp1 = 0 ;
8667 int res1 = 0 ;
8668 void *argp2 = 0 ;
8669 int res2 = 0 ;
8670 PyObject * obj0 = 0 ;
8671 PyObject * obj1 = 0 ;
8672 char * kwnames[] = {
8673 (char *) "self",(char *) "icon", NULL
8674 };
8675
8676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
8677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8678 if (!SWIG_IsOK(res1)) {
8679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetIcon" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8680 }
8681 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8682 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
8683 if (!SWIG_IsOK(res2)) {
8684 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8685 }
8686 if (!argp2) {
8687 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8688 }
8689 arg2 = reinterpret_cast< wxIcon * >(argp2);
8690 {
8691 PyThreadState* __tstate = wxPyBeginAllowThreads();
8692 (arg1)->SetIcon((wxIcon const &)*arg2);
8693 wxPyEndAllowThreads(__tstate);
8694 if (PyErr_Occurred()) SWIG_fail;
8695 }
8696 resultobj = SWIG_Py_Void();
8697 return resultobj;
8698fail:
8699 return NULL;
8700}
8701
8702
8703SWIGINTERN PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8704 PyObject *resultobj = 0;
8705 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8706 SwigValueWrapper<wxVisualAttributes > result;
8707 int val1 ;
8708 int ecode1 = 0 ;
8709 PyObject * obj0 = 0 ;
8710 char * kwnames[] = {
8711 (char *) "variant", NULL
8712 };
8713
8714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8715 if (obj0) {
8716 ecode1 = SWIG_AsVal_int(obj0, &val1);
8717 if (!SWIG_IsOK(ecode1)) {
8718 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBitmap_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8719 }
8720 arg1 = static_cast< wxWindowVariant >(val1);
8721 }
8722 {
8723 if (!wxPyCheckForApp()) SWIG_fail;
8724 PyThreadState* __tstate = wxPyBeginAllowThreads();
8725 result = wxStaticBitmap::GetClassDefaultAttributes(arg1);
8726 wxPyEndAllowThreads(__tstate);
8727 if (PyErr_Occurred()) SWIG_fail;
8728 }
8729 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8730 return resultobj;
8731fail:
8732 return NULL;
d55e5bfc
RD
8733}
8734
8735
1bd55598
RD
8736SWIGINTERN PyObject *StaticBitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8737 PyObject *obj;
8738 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8739 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBitmap, SWIG_NewClientData(obj));
8740 return SWIG_Py_Void();
d55e5bfc
RD
8741}
8742
1bd55598
RD
8743SWIGINTERN PyObject *StaticBitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8744 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
8745}
8746
1bd55598
RD
8747SWIGINTERN int ListBoxNameStr_set(PyObject *) {
8748 SWIG_Error(SWIG_AttributeError,"Variable ListBoxNameStr is read-only.");
8749 return 1;
f20a2e1f
RD
8750}
8751
8752
1bd55598
RD
8753SWIGINTERN PyObject *ListBoxNameStr_get(void) {
8754 PyObject *pyobj = 0;
8755
8756 {
8757#if wxUSE_UNICODE
8758 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8759#else
8760 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8761#endif
8762 }
8763 return pyobj;
8764}
8765
8766
8767SWIGINTERN PyObject *_wrap_new_ListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8768 PyObject *resultobj = 0;
8769 wxWindow *arg1 = (wxWindow *) 0 ;
8770 int arg2 = (int) -1 ;
8771 wxPoint const &arg3_defvalue = wxDefaultPosition ;
8772 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
8773 wxSize const &arg4_defvalue = wxDefaultSize ;
8774 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
8775 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
8776 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
8777 long arg6 = (long) 0 ;
8778 wxValidator const &arg7_defvalue = wxDefaultValidator ;
8779 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
8780 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
8781 wxString *arg8 = (wxString *) &arg8_defvalue ;
8782 wxListBox *result = 0 ;
8783 void *argp1 = 0 ;
8784 int res1 = 0 ;
8785 int val2 ;
8786 int ecode2 = 0 ;
8787 wxPoint temp3 ;
8788 wxSize temp4 ;
8789 bool temp5 = false ;
8790 long val6 ;
8791 int ecode6 = 0 ;
8792 void *argp7 = 0 ;
8793 int res7 = 0 ;
8794 bool temp8 = false ;
8795 PyObject * obj0 = 0 ;
8796 PyObject * obj1 = 0 ;
8797 PyObject * obj2 = 0 ;
8798 PyObject * obj3 = 0 ;
8799 PyObject * obj4 = 0 ;
8800 PyObject * obj5 = 0 ;
8801 PyObject * obj6 = 0 ;
8802 PyObject * obj7 = 0 ;
8803 char * kwnames[] = {
8804 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8805 };
8806
8807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8808 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8809 if (!SWIG_IsOK(res1)) {
8810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
8811 }
8812 arg1 = reinterpret_cast< wxWindow * >(argp1);
8813 if (obj1) {
8814 ecode2 = SWIG_AsVal_int(obj1, &val2);
8815 if (!SWIG_IsOK(ecode2)) {
8816 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListBox" "', expected argument " "2"" of type '" "int""'");
8817 }
8818 arg2 = static_cast< int >(val2);
8819 }
8820 if (obj2) {
d55e5bfc 8821 {
1bd55598
RD
8822 arg3 = &temp3;
8823 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 8824 }
1bd55598
RD
8825 }
8826 if (obj3) {
d55e5bfc 8827 {
1bd55598
RD
8828 arg4 = &temp4;
8829 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 8830 }
1bd55598
RD
8831 }
8832 if (obj4) {
d55e5bfc 8833 {
1bd55598
RD
8834 if (! PySequence_Check(obj4)) {
8835 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8836 SWIG_fail;
8837 }
8838 arg5 = new wxArrayString;
8839 temp5 = true;
8840 int i, len=PySequence_Length(obj4);
8841 for (i=0; i<len; i++) {
8842 PyObject* item = PySequence_GetItem(obj4, i);
8843 wxString* s = wxString_in_helper(item);
8844 if (PyErr_Occurred()) SWIG_fail;
8845 arg5->Add(*s);
8846 delete s;
8847 Py_DECREF(item);
8848 }
d55e5bfc 8849 }
1bd55598
RD
8850 }
8851 if (obj5) {
8852 ecode6 = SWIG_AsVal_long(obj5, &val6);
8853 if (!SWIG_IsOK(ecode6)) {
8854 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ListBox" "', expected argument " "6"" of type '" "long""'");
8855 }
8856 arg6 = static_cast< long >(val6);
8857 }
8858 if (obj6) {
8859 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
8860 if (!SWIG_IsOK(res7)) {
8861 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 8862 }
1bd55598
RD
8863 if (!argp7) {
8864 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 8865 }
1bd55598
RD
8866 arg7 = reinterpret_cast< wxValidator * >(argp7);
8867 }
8868 if (obj7) {
d55e5bfc 8869 {
1bd55598
RD
8870 arg8 = wxString_in_helper(obj7);
8871 if (arg8 == NULL) SWIG_fail;
8872 temp8 = true;
d55e5bfc 8873 }
1bd55598
RD
8874 }
8875 {
8876 if (!wxPyCheckForApp()) SWIG_fail;
8877 PyThreadState* __tstate = wxPyBeginAllowThreads();
8878 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
8879 wxPyEndAllowThreads(__tstate);
8880 if (PyErr_Occurred()) SWIG_fail;
8881 }
8882 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_NEW | 0 );
8883 {
8884 if (temp5) delete arg5;
8885 }
8886 {
8887 if (temp8)
8888 delete arg8;
8889 }
8890 return resultobj;
8891fail:
8892 {
8893 if (temp5) delete arg5;
8894 }
8895 {
8896 if (temp8)
8897 delete arg8;
8898 }
8899 return NULL;
d55e5bfc
RD
8900}
8901
8902
1bd55598
RD
8903SWIGINTERN PyObject *_wrap_new_PreListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8904 PyObject *resultobj = 0;
8905 wxListBox *result = 0 ;
8906
8907 if (!SWIG_Python_UnpackTuple(args,"new_PreListBox",0,0,0)) SWIG_fail;
8908 {
8909 if (!wxPyCheckForApp()) SWIG_fail;
8910 PyThreadState* __tstate = wxPyBeginAllowThreads();
8911 result = (wxListBox *)new wxListBox();
8912 wxPyEndAllowThreads(__tstate);
8913 if (PyErr_Occurred()) SWIG_fail;
8914 }
8915 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_OWN | 0 );
8916 return resultobj;
8917fail:
8918 return NULL;
8919}
8920
8921
8922SWIGINTERN PyObject *_wrap_ListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8923 PyObject *resultobj = 0;
8924 wxListBox *arg1 = (wxListBox *) 0 ;
8925 wxWindow *arg2 = (wxWindow *) 0 ;
8926 int arg3 = (int) -1 ;
8927 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8928 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8929 wxSize const &arg5_defvalue = wxDefaultSize ;
8930 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8931 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
8932 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
8933 long arg7 = (long) 0 ;
8934 wxValidator const &arg8_defvalue = wxDefaultValidator ;
8935 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
8936 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
8937 wxString *arg9 = (wxString *) &arg9_defvalue ;
8938 bool result;
8939 void *argp1 = 0 ;
8940 int res1 = 0 ;
8941 void *argp2 = 0 ;
8942 int res2 = 0 ;
8943 int val3 ;
8944 int ecode3 = 0 ;
8945 wxPoint temp4 ;
8946 wxSize temp5 ;
8947 bool temp6 = false ;
8948 long val7 ;
8949 int ecode7 = 0 ;
8950 void *argp8 = 0 ;
8951 int res8 = 0 ;
8952 bool temp9 = false ;
8953 PyObject * obj0 = 0 ;
8954 PyObject * obj1 = 0 ;
8955 PyObject * obj2 = 0 ;
8956 PyObject * obj3 = 0 ;
8957 PyObject * obj4 = 0 ;
8958 PyObject * obj5 = 0 ;
8959 PyObject * obj6 = 0 ;
8960 PyObject * obj7 = 0 ;
8961 PyObject * obj8 = 0 ;
8962 char * kwnames[] = {
8963 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8964 };
8965
8966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
8967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
8968 if (!SWIG_IsOK(res1)) {
8969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Create" "', expected argument " "1"" of type '" "wxListBox *""'");
8970 }
8971 arg1 = reinterpret_cast< wxListBox * >(argp1);
8972 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8973 if (!SWIG_IsOK(res2)) {
8974 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8975 }
8976 arg2 = reinterpret_cast< wxWindow * >(argp2);
8977 if (obj2) {
8978 ecode3 = SWIG_AsVal_int(obj2, &val3);
8979 if (!SWIG_IsOK(ecode3)) {
8980 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Create" "', expected argument " "3"" of type '" "int""'");
8981 }
8982 arg3 = static_cast< int >(val3);
8983 }
8984 if (obj3) {
d55e5bfc 8985 {
1bd55598
RD
8986 arg4 = &temp4;
8987 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 8988 }
1bd55598
RD
8989 }
8990 if (obj4) {
d55e5bfc 8991 {
1bd55598
RD
8992 arg5 = &temp5;
8993 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 8994 }
1bd55598
RD
8995 }
8996 if (obj5) {
943e8dfd 8997 {
1bd55598
RD
8998 if (! PySequence_Check(obj5)) {
8999 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9000 SWIG_fail;
9001 }
9002 arg6 = new wxArrayString;
9003 temp6 = true;
9004 int i, len=PySequence_Length(obj5);
9005 for (i=0; i<len; i++) {
9006 PyObject* item = PySequence_GetItem(obj5, i);
9007 wxString* s = wxString_in_helper(item);
9008 if (PyErr_Occurred()) SWIG_fail;
9009 arg6->Add(*s);
9010 delete s;
9011 Py_DECREF(item);
9012 }
943e8dfd 9013 }
1bd55598
RD
9014 }
9015 if (obj6) {
9016 ecode7 = SWIG_AsVal_long(obj6, &val7);
9017 if (!SWIG_IsOK(ecode7)) {
9018 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ListBox_Create" "', expected argument " "7"" of type '" "long""'");
9019 }
9020 arg7 = static_cast< long >(val7);
9021 }
9022 if (obj7) {
9023 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
9024 if (!SWIG_IsOK(res8)) {
9025 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
943e8dfd 9026 }
1bd55598
RD
9027 if (!argp8) {
9028 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
f20a2e1f 9029 }
1bd55598
RD
9030 arg8 = reinterpret_cast< wxValidator * >(argp8);
9031 }
9032 if (obj8) {
f20a2e1f 9033 {
1bd55598
RD
9034 arg9 = wxString_in_helper(obj8);
9035 if (arg9 == NULL) SWIG_fail;
9036 temp9 = true;
f20a2e1f 9037 }
1bd55598
RD
9038 }
9039 {
9040 PyThreadState* __tstate = wxPyBeginAllowThreads();
9041 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
9042 wxPyEndAllowThreads(__tstate);
9043 if (PyErr_Occurred()) SWIG_fail;
9044 }
9045 {
9046 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9047 }
9048 {
9049 if (temp6) delete arg6;
9050 }
9051 {
9052 if (temp9)
9053 delete arg9;
9054 }
9055 return resultobj;
9056fail:
9057 {
9058 if (temp6) delete arg6;
9059 }
9060 {
9061 if (temp9)
9062 delete arg9;
9063 }
9064 return NULL;
9065}
9066
9067
9068SWIGINTERN PyObject *_wrap_ListBox_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9069 PyObject *resultobj = 0;
9070 wxListBox *arg1 = (wxListBox *) 0 ;
9071 wxString *arg2 = 0 ;
9072 int arg3 ;
9073 PyObject *arg4 = (PyObject *) NULL ;
9074 void *argp1 = 0 ;
9075 int res1 = 0 ;
9076 bool temp2 = false ;
9077 int val3 ;
9078 int ecode3 = 0 ;
9079 PyObject * obj0 = 0 ;
9080 PyObject * obj1 = 0 ;
9081 PyObject * obj2 = 0 ;
9082 PyObject * obj3 = 0 ;
9083 char * kwnames[] = {
9084 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
9085 };
9086
9087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9089 if (!SWIG_IsOK(res1)) {
9090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Insert" "', expected argument " "1"" of type '" "wxListBox *""'");
9091 }
9092 arg1 = reinterpret_cast< wxListBox * >(argp1);
9093 {
9094 arg2 = wxString_in_helper(obj1);
9095 if (arg2 == NULL) SWIG_fail;
9096 temp2 = true;
9097 }
9098 ecode3 = SWIG_AsVal_int(obj2, &val3);
9099 if (!SWIG_IsOK(ecode3)) {
9100 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Insert" "', expected argument " "3"" of type '" "int""'");
9101 }
9102 arg3 = static_cast< int >(val3);
9103 if (obj3) {
9104 arg4 = obj3;
9105 }
9106 {
9107 PyThreadState* __tstate = wxPyBeginAllowThreads();
9108 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
9109 wxPyEndAllowThreads(__tstate);
9110 if (PyErr_Occurred()) SWIG_fail;
9111 }
9112 resultobj = SWIG_Py_Void();
9113 {
9114 if (temp2)
9115 delete arg2;
9116 }
9117 return resultobj;
9118fail:
9119 {
9120 if (temp2)
9121 delete arg2;
9122 }
9123 return NULL;
9124}
9125
9126
9127SWIGINTERN PyObject *_wrap_ListBox_InsertItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9128 PyObject *resultobj = 0;
9129 wxListBox *arg1 = (wxListBox *) 0 ;
9130 wxArrayString *arg2 = 0 ;
50f151d7 9131 unsigned int arg3 ;
1bd55598
RD
9132 void *argp1 = 0 ;
9133 int res1 = 0 ;
9134 bool temp2 = false ;
50f151d7 9135 unsigned int val3 ;
1bd55598
RD
9136 int ecode3 = 0 ;
9137 PyObject * obj0 = 0 ;
9138 PyObject * obj1 = 0 ;
9139 PyObject * obj2 = 0 ;
9140 char * kwnames[] = {
9141 (char *) "self",(char *) "items",(char *) "pos", NULL
9142 };
9143
9144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9146 if (!SWIG_IsOK(res1)) {
9147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_InsertItems" "', expected argument " "1"" of type '" "wxListBox *""'");
9148 }
9149 arg1 = reinterpret_cast< wxListBox * >(argp1);
9150 {
9151 if (! PySequence_Check(obj1)) {
9152 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9153 SWIG_fail;
9154 }
9155 arg2 = new wxArrayString;
9156 temp2 = true;
9157 int i, len=PySequence_Length(obj1);
9158 for (i=0; i<len; i++) {
9159 PyObject* item = PySequence_GetItem(obj1, i);
9160 wxString* s = wxString_in_helper(item);
9161 if (PyErr_Occurred()) SWIG_fail;
9162 arg2->Add(*s);
9163 delete s;
9164 Py_DECREF(item);
f20a2e1f 9165 }
1bd55598 9166 }
50f151d7 9167 ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
1bd55598 9168 if (!SWIG_IsOK(ecode3)) {
50f151d7 9169 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_InsertItems" "', expected argument " "3"" of type '" "unsigned int""'");
1bd55598 9170 }
50f151d7 9171 arg3 = static_cast< unsigned int >(val3);
1bd55598
RD
9172 {
9173 PyThreadState* __tstate = wxPyBeginAllowThreads();
9174 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
9175 wxPyEndAllowThreads(__tstate);
9176 if (PyErr_Occurred()) SWIG_fail;
9177 }
9178 resultobj = SWIG_Py_Void();
9179 {
9180 if (temp2) delete arg2;
9181 }
9182 return resultobj;
9183fail:
9184 {
9185 if (temp2) delete arg2;
9186 }
9187 return NULL;
f20a2e1f
RD
9188}
9189
9190
1bd55598
RD
9191SWIGINTERN PyObject *_wrap_ListBox_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9192 PyObject *resultobj = 0;
9193 wxListBox *arg1 = (wxListBox *) 0 ;
9194 wxArrayString *arg2 = 0 ;
9195 void *argp1 = 0 ;
9196 int res1 = 0 ;
9197 bool temp2 = false ;
9198 PyObject * obj0 = 0 ;
9199 PyObject * obj1 = 0 ;
9200 char * kwnames[] = {
9201 (char *) "self",(char *) "items", NULL
9202 };
9203
9204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) SWIG_fail;
9205 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9206 if (!SWIG_IsOK(res1)) {
9207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Set" "', expected argument " "1"" of type '" "wxListBox *""'");
9208 }
9209 arg1 = reinterpret_cast< wxListBox * >(argp1);
9210 {
9211 if (! PySequence_Check(obj1)) {
9212 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9213 SWIG_fail;
9214 }
9215 arg2 = new wxArrayString;
9216 temp2 = true;
9217 int i, len=PySequence_Length(obj1);
9218 for (i=0; i<len; i++) {
9219 PyObject* item = PySequence_GetItem(obj1, i);
9220 wxString* s = wxString_in_helper(item);
9221 if (PyErr_Occurred()) SWIG_fail;
9222 arg2->Add(*s);
9223 delete s;
9224 Py_DECREF(item);
bfddbb17 9225 }
1bd55598
RD
9226 }
9227 {
9228 PyThreadState* __tstate = wxPyBeginAllowThreads();
9229 (arg1)->Set((wxArrayString const &)*arg2);
9230 wxPyEndAllowThreads(__tstate);
9231 if (PyErr_Occurred()) SWIG_fail;
9232 }
9233 resultobj = SWIG_Py_Void();
9234 {
9235 if (temp2) delete arg2;
9236 }
9237 return resultobj;
9238fail:
9239 {
9240 if (temp2) delete arg2;
9241 }
9242 return NULL;
9243}
9244
9245
9246SWIGINTERN PyObject *_wrap_ListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9247 PyObject *resultobj = 0;
9248 wxListBox *arg1 = (wxListBox *) 0 ;
9249 int arg2 ;
9250 bool result;
9251 void *argp1 = 0 ;
9252 int res1 = 0 ;
9253 int val2 ;
9254 int ecode2 = 0 ;
9255 PyObject * obj0 = 0 ;
9256 PyObject * obj1 = 0 ;
9257 char * kwnames[] = {
9258 (char *) "self",(char *) "n", NULL
9259 };
9260
9261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
9262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9263 if (!SWIG_IsOK(res1)) {
9264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSelected" "', expected argument " "1"" of type '" "wxListBox const *""'");
9265 }
9266 arg1 = reinterpret_cast< wxListBox * >(argp1);
9267 ecode2 = SWIG_AsVal_int(obj1, &val2);
9268 if (!SWIG_IsOK(ecode2)) {
9269 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_IsSelected" "', expected argument " "2"" of type '" "int""'");
9270 }
9271 arg2 = static_cast< int >(val2);
9272 {
9273 PyThreadState* __tstate = wxPyBeginAllowThreads();
9274 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
9275 wxPyEndAllowThreads(__tstate);
9276 if (PyErr_Occurred()) SWIG_fail;
9277 }
9278 {
9279 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9280 }
9281 return resultobj;
9282fail:
9283 return NULL;
9284}
9285
9286
9287SWIGINTERN PyObject *_wrap_ListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9288 PyObject *resultobj = 0;
9289 wxListBox *arg1 = (wxListBox *) 0 ;
9290 int arg2 ;
9291 bool arg3 = (bool) true ;
9292 void *argp1 = 0 ;
9293 int res1 = 0 ;
9294 int val2 ;
9295 int ecode2 = 0 ;
9296 bool val3 ;
9297 int ecode3 = 0 ;
9298 PyObject * obj0 = 0 ;
9299 PyObject * obj1 = 0 ;
9300 PyObject * obj2 = 0 ;
9301 char * kwnames[] = {
9302 (char *) "self",(char *) "n",(char *) "select", NULL
9303 };
9304
9305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9307 if (!SWIG_IsOK(res1)) {
9308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9309 }
9310 arg1 = reinterpret_cast< wxListBox * >(argp1);
9311 ecode2 = SWIG_AsVal_int(obj1, &val2);
9312 if (!SWIG_IsOK(ecode2)) {
9313 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
9314 }
9315 arg2 = static_cast< int >(val2);
9316 if (obj2) {
9317 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9318 if (!SWIG_IsOK(ecode3)) {
9319 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetSelection" "', expected argument " "3"" of type '" "bool""'");
9320 }
9321 arg3 = static_cast< bool >(val3);
9322 }
9323 {
9324 PyThreadState* __tstate = wxPyBeginAllowThreads();
9325 (arg1)->SetSelection(arg2,arg3);
9326 wxPyEndAllowThreads(__tstate);
9327 if (PyErr_Occurred()) SWIG_fail;
9328 }
9329 resultobj = SWIG_Py_Void();
9330 return resultobj;
9331fail:
9332 return NULL;
9333}
9334
9335
9336SWIGINTERN PyObject *_wrap_ListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9337 PyObject *resultobj = 0;
9338 wxListBox *arg1 = (wxListBox *) 0 ;
9339 int arg2 ;
9340 void *argp1 = 0 ;
9341 int res1 = 0 ;
9342 int val2 ;
9343 int ecode2 = 0 ;
9344 PyObject * obj0 = 0 ;
9345 PyObject * obj1 = 0 ;
9346 char * kwnames[] = {
9347 (char *) "self",(char *) "n", NULL
9348 };
9349
9350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) SWIG_fail;
9351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9352 if (!SWIG_IsOK(res1)) {
9353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Select" "', expected argument " "1"" of type '" "wxListBox *""'");
9354 }
9355 arg1 = reinterpret_cast< wxListBox * >(argp1);
9356 ecode2 = SWIG_AsVal_int(obj1, &val2);
9357 if (!SWIG_IsOK(ecode2)) {
9358 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Select" "', expected argument " "2"" of type '" "int""'");
9359 }
9360 arg2 = static_cast< int >(val2);
9361 {
9362 PyThreadState* __tstate = wxPyBeginAllowThreads();
9363 (arg1)->Select(arg2);
9364 wxPyEndAllowThreads(__tstate);
9365 if (PyErr_Occurred()) SWIG_fail;
9366 }
9367 resultobj = SWIG_Py_Void();
9368 return resultobj;
9369fail:
9370 return NULL;
9371}
9372
9373
9374SWIGINTERN PyObject *_wrap_ListBox_Deselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9375 PyObject *resultobj = 0;
9376 wxListBox *arg1 = (wxListBox *) 0 ;
9377 int arg2 ;
9378 void *argp1 = 0 ;
9379 int res1 = 0 ;
9380 int val2 ;
9381 int ecode2 = 0 ;
9382 PyObject * obj0 = 0 ;
9383 PyObject * obj1 = 0 ;
9384 char * kwnames[] = {
9385 (char *) "self",(char *) "n", NULL
9386 };
9387
9388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) SWIG_fail;
9389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9390 if (!SWIG_IsOK(res1)) {
9391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Deselect" "', expected argument " "1"" of type '" "wxListBox *""'");
9392 }
9393 arg1 = reinterpret_cast< wxListBox * >(argp1);
9394 ecode2 = SWIG_AsVal_int(obj1, &val2);
9395 if (!SWIG_IsOK(ecode2)) {
9396 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Deselect" "', expected argument " "2"" of type '" "int""'");
9397 }
9398 arg2 = static_cast< int >(val2);
9399 {
9400 PyThreadState* __tstate = wxPyBeginAllowThreads();
9401 (arg1)->Deselect(arg2);
9402 wxPyEndAllowThreads(__tstate);
9403 if (PyErr_Occurred()) SWIG_fail;
9404 }
9405 resultobj = SWIG_Py_Void();
9406 return resultobj;
9407fail:
9408 return NULL;
9409}
9410
9411
9412SWIGINTERN PyObject *_wrap_ListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9413 PyObject *resultobj = 0;
9414 wxListBox *arg1 = (wxListBox *) 0 ;
9415 int arg2 = (int) -1 ;
9416 void *argp1 = 0 ;
9417 int res1 = 0 ;
9418 int val2 ;
9419 int ecode2 = 0 ;
9420 PyObject * obj0 = 0 ;
9421 PyObject * obj1 = 0 ;
9422 char * kwnames[] = {
9423 (char *) "self",(char *) "itemToLeaveSelected", NULL
9424 };
9425
9426 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) SWIG_fail;
9427 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9428 if (!SWIG_IsOK(res1)) {
9429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_DeselectAll" "', expected argument " "1"" of type '" "wxListBox *""'");
9430 }
9431 arg1 = reinterpret_cast< wxListBox * >(argp1);
9432 if (obj1) {
9433 ecode2 = SWIG_AsVal_int(obj1, &val2);
9434 if (!SWIG_IsOK(ecode2)) {
9435 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_DeselectAll" "', expected argument " "2"" of type '" "int""'");
9436 }
9437 arg2 = static_cast< int >(val2);
9438 }
9439 {
9440 PyThreadState* __tstate = wxPyBeginAllowThreads();
9441 (arg1)->DeselectAll(arg2);
9442 wxPyEndAllowThreads(__tstate);
9443 if (PyErr_Occurred()) SWIG_fail;
9444 }
9445 resultobj = SWIG_Py_Void();
9446 return resultobj;
9447fail:
9448 return NULL;
9449}
9450
9451
9452SWIGINTERN PyObject *_wrap_ListBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9453 PyObject *resultobj = 0;
9454 wxListBox *arg1 = (wxListBox *) 0 ;
9455 wxString *arg2 = 0 ;
9456 bool arg3 = (bool) true ;
9457 bool result;
9458 void *argp1 = 0 ;
9459 int res1 = 0 ;
9460 bool temp2 = false ;
9461 bool val3 ;
9462 int ecode3 = 0 ;
9463 PyObject * obj0 = 0 ;
9464 PyObject * obj1 = 0 ;
9465 PyObject * obj2 = 0 ;
9466 char * kwnames[] = {
9467 (char *) "self",(char *) "s",(char *) "select", NULL
9468 };
9469
9470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9471 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9472 if (!SWIG_IsOK(res1)) {
9473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetStringSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9474 }
9475 arg1 = reinterpret_cast< wxListBox * >(argp1);
9476 {
9477 arg2 = wxString_in_helper(obj1);
9478 if (arg2 == NULL) SWIG_fail;
9479 temp2 = true;
9480 }
9481 if (obj2) {
9482 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9483 if (!SWIG_IsOK(ecode3)) {
9484 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetStringSelection" "', expected argument " "3"" of type '" "bool""'");
9485 }
9486 arg3 = static_cast< bool >(val3);
9487 }
9488 {
9489 PyThreadState* __tstate = wxPyBeginAllowThreads();
9490 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
9491 wxPyEndAllowThreads(__tstate);
9492 if (PyErr_Occurred()) SWIG_fail;
9493 }
9494 {
9495 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9496 }
9497 {
9498 if (temp2)
9499 delete arg2;
9500 }
9501 return resultobj;
9502fail:
9503 {
9504 if (temp2)
9505 delete arg2;
9506 }
9507 return NULL;
d55e5bfc
RD
9508}
9509
9510
1bd55598
RD
9511SWIGINTERN PyObject *_wrap_ListBox_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9512 PyObject *resultobj = 0;
9513 wxListBox *arg1 = (wxListBox *) 0 ;
9514 PyObject *result = 0 ;
9515 void *argp1 = 0 ;
9516 int res1 = 0 ;
9517 PyObject *swig_obj[1] ;
9518
9519 if (!args) SWIG_fail;
9520 swig_obj[0] = args;
9521 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9522 if (!SWIG_IsOK(res1)) {
9523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_GetSelections" "', expected argument " "1"" of type '" "wxListBox *""'");
9524 }
9525 arg1 = reinterpret_cast< wxListBox * >(argp1);
9526 {
9527 PyThreadState* __tstate = wxPyBeginAllowThreads();
9528 result = (PyObject *)wxListBox_GetSelections(arg1);
9529 wxPyEndAllowThreads(__tstate);
9530 if (PyErr_Occurred()) SWIG_fail;
9531 }
9532 resultobj = result;
9533 return resultobj;
9534fail:
9535 return NULL;
9536}
9537
9538
9539SWIGINTERN PyObject *_wrap_ListBox_SetFirstItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9540 PyObject *resultobj = 0;
9541 wxListBox *arg1 = (wxListBox *) 0 ;
9542 int arg2 ;
9543 void *argp1 = 0 ;
9544 int res1 = 0 ;
9545 int val2 ;
9546 int ecode2 = 0 ;
9547 PyObject * obj0 = 0 ;
9548 PyObject * obj1 = 0 ;
9549 char * kwnames[] = {
9550 (char *) "self",(char *) "n", NULL
9551 };
9552
9553 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) SWIG_fail;
9554 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9555 if (!SWIG_IsOK(res1)) {
9556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItem" "', expected argument " "1"" of type '" "wxListBox *""'");
9557 }
9558 arg1 = reinterpret_cast< wxListBox * >(argp1);
9559 ecode2 = SWIG_AsVal_int(obj1, &val2);
9560 if (!SWIG_IsOK(ecode2)) {
9561 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetFirstItem" "', expected argument " "2"" of type '" "int""'");
9562 }
9563 arg2 = static_cast< int >(val2);
9564 {
9565 PyThreadState* __tstate = wxPyBeginAllowThreads();
9566 (arg1)->SetFirstItem(arg2);
9567 wxPyEndAllowThreads(__tstate);
9568 if (PyErr_Occurred()) SWIG_fail;
9569 }
9570 resultobj = SWIG_Py_Void();
9571 return resultobj;
9572fail:
9573 return NULL;
9574}
9575
9576
9577SWIGINTERN PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9578 PyObject *resultobj = 0;
9579 wxListBox *arg1 = (wxListBox *) 0 ;
9580 wxString *arg2 = 0 ;
9581 void *argp1 = 0 ;
9582 int res1 = 0 ;
9583 bool temp2 = false ;
9584 PyObject * obj0 = 0 ;
9585 PyObject * obj1 = 0 ;
9586 char * kwnames[] = {
9587 (char *) "self",(char *) "s", NULL
9588 };
9589
9590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) SWIG_fail;
9591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9592 if (!SWIG_IsOK(res1)) {
9593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItemStr" "', expected argument " "1"" of type '" "wxListBox *""'");
9594 }
9595 arg1 = reinterpret_cast< wxListBox * >(argp1);
9596 {
9597 arg2 = wxString_in_helper(obj1);
9598 if (arg2 == NULL) SWIG_fail;
9599 temp2 = true;
9600 }
9601 {
9602 PyThreadState* __tstate = wxPyBeginAllowThreads();
9603 (arg1)->SetFirstItem((wxString const &)*arg2);
9604 wxPyEndAllowThreads(__tstate);
9605 if (PyErr_Occurred()) SWIG_fail;
9606 }
9607 resultobj = SWIG_Py_Void();
9608 {
9609 if (temp2)
9610 delete arg2;
9611 }
9612 return resultobj;
9613fail:
9614 {
9615 if (temp2)
9616 delete arg2;
9617 }
9618 return NULL;
9619}
9620
9621
9622SWIGINTERN PyObject *_wrap_ListBox_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9623 PyObject *resultobj = 0;
9624 wxListBox *arg1 = (wxListBox *) 0 ;
9625 int arg2 ;
9626 void *argp1 = 0 ;
9627 int res1 = 0 ;
9628 int val2 ;
9629 int ecode2 = 0 ;
9630 PyObject * obj0 = 0 ;
9631 PyObject * obj1 = 0 ;
9632 char * kwnames[] = {
9633 (char *) "self",(char *) "n", NULL
9634 };
9635
9636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9638 if (!SWIG_IsOK(res1)) {
9639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_EnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9640 }
9641 arg1 = reinterpret_cast< wxListBox * >(argp1);
9642 ecode2 = SWIG_AsVal_int(obj1, &val2);
9643 if (!SWIG_IsOK(ecode2)) {
9644 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_EnsureVisible" "', expected argument " "2"" of type '" "int""'");
9645 }
9646 arg2 = static_cast< int >(val2);
9647 {
9648 PyThreadState* __tstate = wxPyBeginAllowThreads();
9649 (arg1)->EnsureVisible(arg2);
9650 wxPyEndAllowThreads(__tstate);
9651 if (PyErr_Occurred()) SWIG_fail;
9652 }
9653 resultobj = SWIG_Py_Void();
9654 return resultobj;
9655fail:
9656 return NULL;
9657}
9658
9659
9660SWIGINTERN PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9661 PyObject *resultobj = 0;
9662 wxListBox *arg1 = (wxListBox *) 0 ;
9663 wxString *arg2 = 0 ;
9664 void *argp1 = 0 ;
9665 int res1 = 0 ;
9666 bool temp2 = false ;
9667 PyObject * obj0 = 0 ;
9668 PyObject * obj1 = 0 ;
9669 char * kwnames[] = {
9670 (char *) "self",(char *) "s", NULL
9671 };
9672
9673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9674 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9675 if (!SWIG_IsOK(res1)) {
9676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_AppendAndEnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9677 }
9678 arg1 = reinterpret_cast< wxListBox * >(argp1);
9679 {
9680 arg2 = wxString_in_helper(obj1);
9681 if (arg2 == NULL) SWIG_fail;
9682 temp2 = true;
9683 }
9684 {
9685 PyThreadState* __tstate = wxPyBeginAllowThreads();
9686 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
9687 wxPyEndAllowThreads(__tstate);
9688 if (PyErr_Occurred()) SWIG_fail;
9689 }
9690 resultobj = SWIG_Py_Void();
9691 {
9692 if (temp2)
9693 delete arg2;
9694 }
9695 return resultobj;
9696fail:
9697 {
9698 if (temp2)
9699 delete arg2;
9700 }
9701 return NULL;
d55e5bfc
RD
9702}
9703
9704
1bd55598
RD
9705SWIGINTERN PyObject *_wrap_ListBox_IsSorted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9706 PyObject *resultobj = 0;
9707 wxListBox *arg1 = (wxListBox *) 0 ;
9708 bool result;
9709 void *argp1 = 0 ;
9710 int res1 = 0 ;
9711 PyObject *swig_obj[1] ;
9712
9713 if (!args) SWIG_fail;
9714 swig_obj[0] = args;
9715 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9716 if (!SWIG_IsOK(res1)) {
9717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSorted" "', expected argument " "1"" of type '" "wxListBox const *""'");
9718 }
9719 arg1 = reinterpret_cast< wxListBox * >(argp1);
9720 {
9721 PyThreadState* __tstate = wxPyBeginAllowThreads();
9722 result = (bool)((wxListBox const *)arg1)->IsSorted();
9723 wxPyEndAllowThreads(__tstate);
9724 if (PyErr_Occurred()) SWIG_fail;
9725 }
9726 {
9727 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9728 }
9729 return resultobj;
9730fail:
9731 return NULL;
9732}
9733
9734
9735SWIGINTERN PyObject *_wrap_ListBox_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9736 PyObject *resultobj = 0;
9737 wxListBox *arg1 = (wxListBox *) 0 ;
9738 wxPoint *arg2 = 0 ;
9739 int result;
9740 void *argp1 = 0 ;
9741 int res1 = 0 ;
9742 wxPoint temp2 ;
9743 PyObject * obj0 = 0 ;
9744 PyObject * obj1 = 0 ;
9745 char * kwnames[] = {
9746 (char *) "self",(char *) "pt", NULL
9747 };
9748
9749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
9750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9751 if (!SWIG_IsOK(res1)) {
9752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_HitTest" "', expected argument " "1"" of type '" "wxListBox const *""'");
9753 }
9754 arg1 = reinterpret_cast< wxListBox * >(argp1);
9755 {
9756 arg2 = &temp2;
9757 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9758 }
9759 {
9760 PyThreadState* __tstate = wxPyBeginAllowThreads();
9761 result = (int)((wxListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
9762 wxPyEndAllowThreads(__tstate);
9763 if (PyErr_Occurred()) SWIG_fail;
9764 }
9765 resultobj = SWIG_From_int(static_cast< int >(result));
9766 return resultobj;
9767fail:
9768 return NULL;
9769}
9770
9771
9772SWIGINTERN PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9773 PyObject *resultobj = 0;
9774 wxListBox *arg1 = (wxListBox *) 0 ;
9775 int arg2 ;
9776 wxColour *arg3 = 0 ;
9777 void *argp1 = 0 ;
9778 int res1 = 0 ;
9779 int val2 ;
9780 int ecode2 = 0 ;
9781 wxColour temp3 ;
9782 PyObject * obj0 = 0 ;
9783 PyObject * obj1 = 0 ;
9784 PyObject * obj2 = 0 ;
9785 char * kwnames[] = {
9786 (char *) "self",(char *) "item",(char *) "c", NULL
9787 };
9788
9789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9791 if (!SWIG_IsOK(res1)) {
9792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9793 }
9794 arg1 = reinterpret_cast< wxListBox * >(argp1);
9795 ecode2 = SWIG_AsVal_int(obj1, &val2);
9796 if (!SWIG_IsOK(ecode2)) {
9797 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "2"" of type '" "int""'");
9798 }
9799 arg2 = static_cast< int >(val2);
9800 {
9801 arg3 = &temp3;
9802 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9803 }
9804 {
9805 PyThreadState* __tstate = wxPyBeginAllowThreads();
9806 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
9807 wxPyEndAllowThreads(__tstate);
9808 if (PyErr_Occurred()) SWIG_fail;
9809 }
9810 resultobj = SWIG_Py_Void();
9811 return resultobj;
9812fail:
9813 return NULL;
9814}
9815
9816
9817SWIGINTERN PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9818 PyObject *resultobj = 0;
9819 wxListBox *arg1 = (wxListBox *) 0 ;
9820 int arg2 ;
9821 wxColour *arg3 = 0 ;
9822 void *argp1 = 0 ;
9823 int res1 = 0 ;
9824 int val2 ;
9825 int ecode2 = 0 ;
9826 wxColour temp3 ;
9827 PyObject * obj0 = 0 ;
9828 PyObject * obj1 = 0 ;
9829 PyObject * obj2 = 0 ;
9830 char * kwnames[] = {
9831 (char *) "self",(char *) "item",(char *) "c", NULL
9832 };
9833
9834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9835 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9836 if (!SWIG_IsOK(res1)) {
9837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9838 }
9839 arg1 = reinterpret_cast< wxListBox * >(argp1);
9840 ecode2 = SWIG_AsVal_int(obj1, &val2);
9841 if (!SWIG_IsOK(ecode2)) {
9842 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "2"" of type '" "int""'");
9843 }
9844 arg2 = static_cast< int >(val2);
9845 {
9846 arg3 = &temp3;
9847 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9848 }
9849 {
9850 PyThreadState* __tstate = wxPyBeginAllowThreads();
9851 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
9852 wxPyEndAllowThreads(__tstate);
9853 if (PyErr_Occurred()) SWIG_fail;
9854 }
9855 resultobj = SWIG_Py_Void();
9856 return resultobj;
9857fail:
9858 return NULL;
9859}
9860
9861
9862SWIGINTERN PyObject *_wrap_ListBox_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9863 PyObject *resultobj = 0;
9864 wxListBox *arg1 = (wxListBox *) 0 ;
9865 int arg2 ;
9866 wxFont *arg3 = 0 ;
9867 void *argp1 = 0 ;
9868 int res1 = 0 ;
9869 int val2 ;
9870 int ecode2 = 0 ;
9871 void *argp3 = 0 ;
9872 int res3 = 0 ;
9873 PyObject * obj0 = 0 ;
9874 PyObject * obj1 = 0 ;
9875 PyObject * obj2 = 0 ;
9876 char * kwnames[] = {
9877 (char *) "self",(char *) "item",(char *) "f", NULL
9878 };
9879
9880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9882 if (!SWIG_IsOK(res1)) {
9883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemFont" "', expected argument " "1"" of type '" "wxListBox *""'");
9884 }
9885 arg1 = reinterpret_cast< wxListBox * >(argp1);
9886 ecode2 = SWIG_AsVal_int(obj1, &val2);
9887 if (!SWIG_IsOK(ecode2)) {
9888 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemFont" "', expected argument " "2"" of type '" "int""'");
9889 }
9890 arg2 = static_cast< int >(val2);
9891 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
9892 if (!SWIG_IsOK(res3)) {
9893 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9894 }
9895 if (!argp3) {
9896 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9897 }
9898 arg3 = reinterpret_cast< wxFont * >(argp3);
9899 {
9900 PyThreadState* __tstate = wxPyBeginAllowThreads();
9901 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
9902 wxPyEndAllowThreads(__tstate);
9903 if (PyErr_Occurred()) SWIG_fail;
9904 }
9905 resultobj = SWIG_Py_Void();
9906 return resultobj;
9907fail:
9908 return NULL;
9909}
9910
9911
9912SWIGINTERN PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9913 PyObject *resultobj = 0;
9914 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
9915 SwigValueWrapper<wxVisualAttributes > result;
9916 int val1 ;
9917 int ecode1 = 0 ;
9918 PyObject * obj0 = 0 ;
9919 char * kwnames[] = {
9920 (char *) "variant", NULL
9921 };
9922
9923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
9924 if (obj0) {
9925 ecode1 = SWIG_AsVal_int(obj0, &val1);
9926 if (!SWIG_IsOK(ecode1)) {
9927 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
9928 }
9929 arg1 = static_cast< wxWindowVariant >(val1);
9930 }
9931 {
9932 if (!wxPyCheckForApp()) SWIG_fail;
9933 PyThreadState* __tstate = wxPyBeginAllowThreads();
9934 result = wxListBox::GetClassDefaultAttributes(arg1);
9935 wxPyEndAllowThreads(__tstate);
9936 if (PyErr_Occurred()) SWIG_fail;
9937 }
9938 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
9939 return resultobj;
9940fail:
9941 return NULL;
9942}
9943
9944
9945SWIGINTERN PyObject *ListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9946 PyObject *obj;
9947 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9948 SWIG_TypeNewClientData(SWIGTYPE_p_wxListBox, SWIG_NewClientData(obj));
9949 return SWIG_Py_Void();
9950}
9951
9952SWIGINTERN PyObject *ListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9953 return SWIG_Python_InitShadowInstance(args);
9954}
9955
9956SWIGINTERN PyObject *_wrap_new_CheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9957 PyObject *resultobj = 0;
9958 wxWindow *arg1 = (wxWindow *) 0 ;
9959 int arg2 = (int) -1 ;
9960 wxPoint const &arg3_defvalue = wxDefaultPosition ;
9961 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
9962 wxSize const &arg4_defvalue = wxDefaultSize ;
9963 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
9964 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
9965 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
9966 long arg6 = (long) 0 ;
9967 wxValidator const &arg7_defvalue = wxDefaultValidator ;
9968 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
9969 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
9970 wxString *arg8 = (wxString *) &arg8_defvalue ;
9971 wxCheckListBox *result = 0 ;
9972 void *argp1 = 0 ;
9973 int res1 = 0 ;
9974 int val2 ;
9975 int ecode2 = 0 ;
9976 wxPoint temp3 ;
9977 wxSize temp4 ;
9978 bool temp5 = false ;
9979 long val6 ;
9980 int ecode6 = 0 ;
9981 void *argp7 = 0 ;
9982 int res7 = 0 ;
9983 bool temp8 = false ;
9984 PyObject * obj0 = 0 ;
9985 PyObject * obj1 = 0 ;
9986 PyObject * obj2 = 0 ;
9987 PyObject * obj3 = 0 ;
9988 PyObject * obj4 = 0 ;
9989 PyObject * obj5 = 0 ;
9990 PyObject * obj6 = 0 ;
9991 PyObject * obj7 = 0 ;
9992 char * kwnames[] = {
9993 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
9994 };
9995
9996 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
9997 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
9998 if (!SWIG_IsOK(res1)) {
9999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
10000 }
10001 arg1 = reinterpret_cast< wxWindow * >(argp1);
10002 if (obj1) {
10003 ecode2 = SWIG_AsVal_int(obj1, &val2);
10004 if (!SWIG_IsOK(ecode2)) {
10005 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckListBox" "', expected argument " "2"" of type '" "int""'");
10006 }
10007 arg2 = static_cast< int >(val2);
10008 }
10009 if (obj2) {
10010 {
10011 arg3 = &temp3;
10012 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
bfddbb17 10013 }
1bd55598
RD
10014 }
10015 if (obj3) {
10016 {
10017 arg4 = &temp4;
10018 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 10019 }
1bd55598
RD
10020 }
10021 if (obj4) {
10022 {
10023 if (! PySequence_Check(obj4)) {
10024 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10025 SWIG_fail;
10026 }
10027 arg5 = new wxArrayString;
10028 temp5 = true;
10029 int i, len=PySequence_Length(obj4);
10030 for (i=0; i<len; i++) {
10031 PyObject* item = PySequence_GetItem(obj4, i);
10032 wxString* s = wxString_in_helper(item);
10033 if (PyErr_Occurred()) SWIG_fail;
10034 arg5->Add(*s);
10035 delete s;
10036 Py_DECREF(item);
10037 }
d55e5bfc 10038 }
1bd55598
RD
10039 }
10040 if (obj5) {
10041 ecode6 = SWIG_AsVal_long(obj5, &val6);
10042 if (!SWIG_IsOK(ecode6)) {
10043 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckListBox" "', expected argument " "6"" of type '" "long""'");
10044 }
10045 arg6 = static_cast< long >(val6);
10046 }
10047 if (obj6) {
10048 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
10049 if (!SWIG_IsOK(res7)) {
10050 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 10051 }
1bd55598
RD
10052 if (!argp7) {
10053 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 10054 }
1bd55598
RD
10055 arg7 = reinterpret_cast< wxValidator * >(argp7);
10056 }
10057 if (obj7) {
10058 {
10059 arg8 = wxString_in_helper(obj7);
10060 if (arg8 == NULL) SWIG_fail;
10061 temp8 = true;
d55e5bfc 10062 }
1bd55598
RD
10063 }
10064 {
10065 if (!wxPyCheckForApp()) SWIG_fail;
10066 PyThreadState* __tstate = wxPyBeginAllowThreads();
10067 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10068 wxPyEndAllowThreads(__tstate);
10069 if (PyErr_Occurred()) SWIG_fail;
10070 }
10071 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_NEW | 0 );
10072 {
10073 if (temp5) delete arg5;
10074 }
10075 {
10076 if (temp8)
10077 delete arg8;
10078 }
10079 return resultobj;
10080fail:
10081 {
10082 if (temp5) delete arg5;
10083 }
10084 {
10085 if (temp8)
10086 delete arg8;
10087 }
10088 return NULL;
10089}
10090
10091
10092SWIGINTERN PyObject *_wrap_new_PreCheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10093 PyObject *resultobj = 0;
10094 wxCheckListBox *result = 0 ;
10095
10096 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckListBox",0,0,0)) SWIG_fail;
10097 {
10098 if (!wxPyCheckForApp()) SWIG_fail;
10099 PyThreadState* __tstate = wxPyBeginAllowThreads();
10100 result = (wxCheckListBox *)new wxCheckListBox();
10101 wxPyEndAllowThreads(__tstate);
10102 if (PyErr_Occurred()) SWIG_fail;
10103 }
10104 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_OWN | 0 );
10105 return resultobj;
10106fail:
10107 return NULL;
10108}
10109
10110
10111SWIGINTERN PyObject *_wrap_CheckListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10112 PyObject *resultobj = 0;
10113 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10114 wxWindow *arg2 = (wxWindow *) 0 ;
10115 int arg3 = (int) -1 ;
10116 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10117 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10118 wxSize const &arg5_defvalue = wxDefaultSize ;
10119 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10120 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
10121 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
10122 long arg7 = (long) 0 ;
10123 wxValidator const &arg8_defvalue = wxDefaultValidator ;
10124 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
10125 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
10126 wxString *arg9 = (wxString *) &arg9_defvalue ;
10127 bool result;
10128 void *argp1 = 0 ;
10129 int res1 = 0 ;
10130 void *argp2 = 0 ;
10131 int res2 = 0 ;
10132 int val3 ;
10133 int ecode3 = 0 ;
10134 wxPoint temp4 ;
10135 wxSize temp5 ;
10136 bool temp6 = false ;
10137 long val7 ;
10138 int ecode7 = 0 ;
10139 void *argp8 = 0 ;
10140 int res8 = 0 ;
10141 bool temp9 = false ;
10142 PyObject * obj0 = 0 ;
10143 PyObject * obj1 = 0 ;
10144 PyObject * obj2 = 0 ;
10145 PyObject * obj3 = 0 ;
10146 PyObject * obj4 = 0 ;
10147 PyObject * obj5 = 0 ;
10148 PyObject * obj6 = 0 ;
10149 PyObject * obj7 = 0 ;
10150 PyObject * obj8 = 0 ;
10151 char * kwnames[] = {
10152 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10153 };
10154
10155 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
10156 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10157 if (!SWIG_IsOK(res1)) {
10158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Create" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10159 }
10160 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10161 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
10162 if (!SWIG_IsOK(res2)) {
10163 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
10164 }
10165 arg2 = reinterpret_cast< wxWindow * >(argp2);
10166 if (obj2) {
10167 ecode3 = SWIG_AsVal_int(obj2, &val3);
10168 if (!SWIG_IsOK(ecode3)) {
10169 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Create" "', expected argument " "3"" of type '" "int""'");
10170 }
10171 arg3 = static_cast< int >(val3);
10172 }
10173 if (obj3) {
d55e5bfc 10174 {
1bd55598
RD
10175 arg4 = &temp4;
10176 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 10177 }
1bd55598
RD
10178 }
10179 if (obj4) {
d55e5bfc 10180 {
1bd55598
RD
10181 arg5 = &temp5;
10182 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 10183 }
1bd55598
RD
10184 }
10185 if (obj5) {
d55e5bfc 10186 {
1bd55598
RD
10187 if (! PySequence_Check(obj5)) {
10188 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10189 SWIG_fail;
10190 }
10191 arg6 = new wxArrayString;
10192 temp6 = true;
10193 int i, len=PySequence_Length(obj5);
10194 for (i=0; i<len; i++) {
10195 PyObject* item = PySequence_GetItem(obj5, i);
10196 wxString* s = wxString_in_helper(item);
10197 if (PyErr_Occurred()) SWIG_fail;
10198 arg6->Add(*s);
10199 delete s;
10200 Py_DECREF(item);
10201 }
10202 }
10203 }
10204 if (obj6) {
10205 ecode7 = SWIG_AsVal_long(obj6, &val7);
10206 if (!SWIG_IsOK(ecode7)) {
10207 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckListBox_Create" "', expected argument " "7"" of type '" "long""'");
10208 }
10209 arg7 = static_cast< long >(val7);
10210 }
10211 if (obj7) {
10212 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
10213 if (!SWIG_IsOK(res8)) {
10214 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10215 }
10216 if (!argp8) {
10217 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 10218 }
1bd55598
RD
10219 arg8 = reinterpret_cast< wxValidator * >(argp8);
10220 }
10221 if (obj8) {
d55e5bfc 10222 {
1bd55598
RD
10223 arg9 = wxString_in_helper(obj8);
10224 if (arg9 == NULL) SWIG_fail;
10225 temp9 = true;
d55e5bfc 10226 }
1bd55598
RD
10227 }
10228 {
10229 PyThreadState* __tstate = wxPyBeginAllowThreads();
10230 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
10231 wxPyEndAllowThreads(__tstate);
10232 if (PyErr_Occurred()) SWIG_fail;
10233 }
10234 {
10235 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10236 }
10237 {
10238 if (temp6) delete arg6;
10239 }
10240 {
10241 if (temp9)
10242 delete arg9;
10243 }
10244 return resultobj;
10245fail:
10246 {
10247 if (temp6) delete arg6;
10248 }
10249 {
10250 if (temp9)
10251 delete arg9;
10252 }
10253 return NULL;
10254}
10255
10256
10257SWIGINTERN PyObject *_wrap_CheckListBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10258 PyObject *resultobj = 0;
10259 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
50f151d7 10260 unsigned int arg2 ;
1bd55598
RD
10261 bool result;
10262 void *argp1 = 0 ;
10263 int res1 = 0 ;
50f151d7 10264 unsigned int val2 ;
1bd55598
RD
10265 int ecode2 = 0 ;
10266 PyObject * obj0 = 0 ;
10267 PyObject * obj1 = 0 ;
10268 char * kwnames[] = {
10269 (char *) "self",(char *) "index", NULL
10270 };
10271
10272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail;
10273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10274 if (!SWIG_IsOK(res1)) {
10275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10276 }
10277 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
50f151d7 10278 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
1bd55598 10279 if (!SWIG_IsOK(ecode2)) {
50f151d7 10280 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_IsChecked" "', expected argument " "2"" of type '" "unsigned int""'");
1bd55598 10281 }
50f151d7 10282 arg2 = static_cast< unsigned int >(val2);
1bd55598
RD
10283 {
10284 PyThreadState* __tstate = wxPyBeginAllowThreads();
10285 result = (bool)(arg1)->IsChecked(arg2);
10286 wxPyEndAllowThreads(__tstate);
10287 if (PyErr_Occurred()) SWIG_fail;
10288 }
10289 {
10290 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10291 }
10292 return resultobj;
10293fail:
10294 return NULL;
10295}
10296
10297
10298SWIGINTERN PyObject *_wrap_CheckListBox_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10299 PyObject *resultobj = 0;
10300 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
50f151d7 10301 unsigned int arg2 ;
1bd55598
RD
10302 int arg3 = (int) true ;
10303 void *argp1 = 0 ;
10304 int res1 = 0 ;
50f151d7 10305 unsigned int val2 ;
1bd55598
RD
10306 int ecode2 = 0 ;
10307 int val3 ;
10308 int ecode3 = 0 ;
10309 PyObject * obj0 = 0 ;
10310 PyObject * obj1 = 0 ;
10311 PyObject * obj2 = 0 ;
10312 char * kwnames[] = {
10313 (char *) "self",(char *) "index",(char *) "check", NULL
10314 };
10315
10316 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10317 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10318 if (!SWIG_IsOK(res1)) {
10319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Check" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10320 }
10321 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
50f151d7 10322 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
1bd55598 10323 if (!SWIG_IsOK(ecode2)) {
50f151d7 10324 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_Check" "', expected argument " "2"" of type '" "unsigned int""'");
1bd55598 10325 }
50f151d7 10326 arg2 = static_cast< unsigned int >(val2);
1bd55598
RD
10327 if (obj2) {
10328 ecode3 = SWIG_AsVal_int(obj2, &val3);
10329 if (!SWIG_IsOK(ecode3)) {
10330 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Check" "', expected argument " "3"" of type '" "int""'");
10331 }
10332 arg3 = static_cast< int >(val3);
10333 }
10334 {
10335 PyThreadState* __tstate = wxPyBeginAllowThreads();
10336 (arg1)->Check(arg2,arg3);
10337 wxPyEndAllowThreads(__tstate);
10338 if (PyErr_Occurred()) SWIG_fail;
10339 }
10340 resultobj = SWIG_Py_Void();
10341 return resultobj;
10342fail:
10343 return NULL;
d55e5bfc
RD
10344}
10345
10346
1bd55598
RD
10347SWIGINTERN PyObject *CheckListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10348 PyObject *obj;
10349 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10350 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckListBox, SWIG_NewClientData(obj));
10351 return SWIG_Py_Void();
d55e5bfc
RD
10352}
10353
1bd55598
RD
10354SWIGINTERN PyObject *CheckListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10355 return SWIG_Python_InitShadowInstance(args);
10356}
d55e5bfc 10357
1bd55598
RD
10358SWIGINTERN int TextCtrlNameStr_set(PyObject *) {
10359 SWIG_Error(SWIG_AttributeError,"Variable TextCtrlNameStr is read-only.");
10360 return 1;
d55e5bfc
RD
10361}
10362
10363
1bd55598
RD
10364SWIGINTERN PyObject *TextCtrlNameStr_get(void) {
10365 PyObject *pyobj = 0;
10366
10367 {
d55e5bfc 10368#if wxUSE_UNICODE
1bd55598 10369 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
d55e5bfc 10370#else
1bd55598 10371 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
d55e5bfc 10372#endif
1bd55598
RD
10373 }
10374 return pyobj;
10375}
10376
10377
10378SWIGINTERN PyObject *_wrap_new_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10379 PyObject *resultobj = 0;
10380 wxColour const &arg1_defvalue = wxNullColour ;
10381 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
10382 wxColour const &arg2_defvalue = wxNullColour ;
10383 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
10384 wxFont const &arg3_defvalue = wxNullFont ;
10385 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
10386 wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ;
10387 wxTextAttr *result = 0 ;
10388 wxColour temp1 ;
10389 wxColour temp2 ;
10390 void *argp3 = 0 ;
10391 int res3 = 0 ;
10392 int val4 ;
10393 int ecode4 = 0 ;
10394 PyObject * obj0 = 0 ;
10395 PyObject * obj1 = 0 ;
10396 PyObject * obj2 = 0 ;
10397 PyObject * obj3 = 0 ;
10398 char * kwnames[] = {
10399 (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL
10400 };
10401
10402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10403 if (obj0) {
d55e5bfc 10404 {
1bd55598
RD
10405 arg1 = &temp1;
10406 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
d55e5bfc 10407 }
1bd55598
RD
10408 }
10409 if (obj1) {
d55e5bfc 10410 {
1bd55598
RD
10411 arg2 = &temp2;
10412 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 10413 }
1bd55598
RD
10414 }
10415 if (obj2) {
10416 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
10417 if (!SWIG_IsOK(res3)) {
10418 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
d55e5bfc 10419 }
1bd55598
RD
10420 if (!argp3) {
10421 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
d55e5bfc 10422 }
1bd55598
RD
10423 arg3 = reinterpret_cast< wxFont * >(argp3);
10424 }
10425 if (obj3) {
10426 ecode4 = SWIG_AsVal_int(obj3, &val4);
10427 if (!SWIG_IsOK(ecode4)) {
10428 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextAttr" "', expected argument " "4"" of type '" "wxTextAttrAlignment""'");
10429 }
10430 arg4 = static_cast< wxTextAttrAlignment >(val4);
10431 }
10432 {
10433 PyThreadState* __tstate = wxPyBeginAllowThreads();
10434 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,arg4);
10435 wxPyEndAllowThreads(__tstate);
10436 if (PyErr_Occurred()) SWIG_fail;
10437 }
10438 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_NEW | 0 );
10439 return resultobj;
10440fail:
10441 return NULL;
d55e5bfc
RD
10442}
10443
10444
1bd55598
RD
10445SWIGINTERN PyObject *_wrap_delete_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10446 PyObject *resultobj = 0;
10447 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10448 void *argp1 = 0 ;
10449 int res1 = 0 ;
10450 PyObject *swig_obj[1] ;
10451
10452 if (!args) SWIG_fail;
10453 swig_obj[0] = args;
10454 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, SWIG_POINTER_DISOWN | 0 );
10455 if (!SWIG_IsOK(res1)) {
10456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TextAttr" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10457 }
10458 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10459 {
10460 PyThreadState* __tstate = wxPyBeginAllowThreads();
10461 delete arg1;
d55e5bfc 10462
1bd55598
RD
10463 wxPyEndAllowThreads(__tstate);
10464 if (PyErr_Occurred()) SWIG_fail;
10465 }
10466 resultobj = SWIG_Py_Void();
10467 return resultobj;
10468fail:
10469 return NULL;
d55e5bfc
RD
10470}
10471
10472
1bd55598
RD
10473SWIGINTERN PyObject *_wrap_TextAttr_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10474 PyObject *resultobj = 0;
10475 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10476 void *argp1 = 0 ;
10477 int res1 = 0 ;
10478 PyObject *swig_obj[1] ;
10479
10480 if (!args) SWIG_fail;
10481 swig_obj[0] = args;
10482 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10483 if (!SWIG_IsOK(res1)) {
10484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Init" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10485 }
10486 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10487 {
10488 PyThreadState* __tstate = wxPyBeginAllowThreads();
10489 (arg1)->Init();
10490 wxPyEndAllowThreads(__tstate);
10491 if (PyErr_Occurred()) SWIG_fail;
10492 }
10493 resultobj = SWIG_Py_Void();
10494 return resultobj;
10495fail:
10496 return NULL;
10497}
10498
10499
2131d850
RD
10500SWIGINTERN PyObject *_wrap_TextAttr_Merge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10501 PyObject *resultobj = 0;
10502 wxTextAttr *arg1 = 0 ;
10503 wxTextAttr *arg2 = 0 ;
10504 wxTextAttr result;
10505 void *argp1 = 0 ;
10506 int res1 = 0 ;
10507 void *argp2 = 0 ;
10508 int res2 = 0 ;
10509 PyObject * obj0 = 0 ;
10510 PyObject * obj1 = 0 ;
10511 char * kwnames[] = {
10512 (char *) "base",(char *) "overlay", NULL
10513 };
10514
10515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_Merge",kwnames,&obj0,&obj1)) SWIG_fail;
10516 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
10517 if (!SWIG_IsOK(res1)) {
10518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10519 }
10520 if (!argp1) {
10521 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10522 }
10523 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10524 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
10525 if (!SWIG_IsOK(res2)) {
10526 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10527 }
10528 if (!argp2) {
10529 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10530 }
10531 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
10532 {
10533 PyThreadState* __tstate = wxPyBeginAllowThreads();
10534 result = wxTextAttr::Merge((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2);
10535 wxPyEndAllowThreads(__tstate);
10536 if (PyErr_Occurred()) SWIG_fail;
10537 }
10538 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
10539 return resultobj;
10540fail:
10541 return NULL;
10542}
10543
10544
1bd55598
RD
10545SWIGINTERN PyObject *_wrap_TextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10546 PyObject *resultobj = 0;
10547 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10548 wxColour *arg2 = 0 ;
10549 void *argp1 = 0 ;
10550 int res1 = 0 ;
10551 wxColour temp2 ;
10552 PyObject * obj0 = 0 ;
10553 PyObject * obj1 = 0 ;
10554 char * kwnames[] = {
10555 (char *) "self",(char *) "colText", NULL
10556 };
10557
10558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
10559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10560 if (!SWIG_IsOK(res1)) {
10561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10562 }
10563 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10564 {
10565 arg2 = &temp2;
10566 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10567 }
10568 {
10569 PyThreadState* __tstate = wxPyBeginAllowThreads();
10570 (arg1)->SetTextColour((wxColour const &)*arg2);
10571 wxPyEndAllowThreads(__tstate);
10572 if (PyErr_Occurred()) SWIG_fail;
10573 }
10574 resultobj = SWIG_Py_Void();
10575 return resultobj;
10576fail:
10577 return NULL;
10578}
10579
10580
10581SWIGINTERN PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10582 PyObject *resultobj = 0;
10583 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10584 wxColour *arg2 = 0 ;
10585 void *argp1 = 0 ;
10586 int res1 = 0 ;
10587 wxColour temp2 ;
10588 PyObject * obj0 = 0 ;
10589 PyObject * obj1 = 0 ;
10590 char * kwnames[] = {
10591 (char *) "self",(char *) "colBack", NULL
10592 };
10593
10594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
10595 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10596 if (!SWIG_IsOK(res1)) {
10597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10598 }
10599 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10600 {
10601 arg2 = &temp2;
10602 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10603 }
10604 {
10605 PyThreadState* __tstate = wxPyBeginAllowThreads();
10606 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
10607 wxPyEndAllowThreads(__tstate);
10608 if (PyErr_Occurred()) SWIG_fail;
10609 }
10610 resultobj = SWIG_Py_Void();
10611 return resultobj;
10612fail:
10613 return NULL;
10614}
10615
10616
10617SWIGINTERN PyObject *_wrap_TextAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10618 PyObject *resultobj = 0;
10619 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10620 wxFont *arg2 = 0 ;
10621 long arg3 = (long) wxTEXT_ATTR_FONT ;
10622 void *argp1 = 0 ;
10623 int res1 = 0 ;
10624 void *argp2 = 0 ;
10625 int res2 = 0 ;
10626 long val3 ;
10627 int ecode3 = 0 ;
10628 PyObject * obj0 = 0 ;
10629 PyObject * obj1 = 0 ;
10630 PyObject * obj2 = 0 ;
10631 char * kwnames[] = {
10632 (char *) "self",(char *) "font",(char *) "flags", NULL
10633 };
10634
10635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10637 if (!SWIG_IsOK(res1)) {
10638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFont" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10639 }
10640 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10641 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
10642 if (!SWIG_IsOK(res2)) {
10643 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10644 }
10645 if (!argp2) {
10646 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10647 }
10648 arg2 = reinterpret_cast< wxFont * >(argp2);
10649 if (obj2) {
10650 ecode3 = SWIG_AsVal_long(obj2, &val3);
10651 if (!SWIG_IsOK(ecode3)) {
10652 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetFont" "', expected argument " "3"" of type '" "long""'");
10653 }
10654 arg3 = static_cast< long >(val3);
10655 }
10656 {
10657 PyThreadState* __tstate = wxPyBeginAllowThreads();
10658 (arg1)->SetFont((wxFont const &)*arg2,arg3);
10659 wxPyEndAllowThreads(__tstate);
10660 if (PyErr_Occurred()) SWIG_fail;
10661 }
10662 resultobj = SWIG_Py_Void();
10663 return resultobj;
10664fail:
10665 return NULL;
10666}
10667
10668
10669SWIGINTERN PyObject *_wrap_TextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10670 PyObject *resultobj = 0;
10671 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10672 wxTextAttrAlignment arg2 ;
10673 void *argp1 = 0 ;
10674 int res1 = 0 ;
10675 int val2 ;
10676 int ecode2 = 0 ;
10677 PyObject * obj0 = 0 ;
10678 PyObject * obj1 = 0 ;
10679 char * kwnames[] = {
10680 (char *) "self",(char *) "alignment", NULL
10681 };
10682
10683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail;
10684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10685 if (!SWIG_IsOK(res1)) {
10686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10687 }
10688 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10689 ecode2 = SWIG_AsVal_int(obj1, &val2);
10690 if (!SWIG_IsOK(ecode2)) {
10691 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
10692 }
10693 arg2 = static_cast< wxTextAttrAlignment >(val2);
10694 {
10695 PyThreadState* __tstate = wxPyBeginAllowThreads();
10696 (arg1)->SetAlignment(arg2);
10697 wxPyEndAllowThreads(__tstate);
10698 if (PyErr_Occurred()) SWIG_fail;
10699 }
10700 resultobj = SWIG_Py_Void();
10701 return resultobj;
10702fail:
10703 return NULL;
10704}
10705
10706
10707SWIGINTERN PyObject *_wrap_TextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10708 PyObject *resultobj = 0;
10709 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10710 wxArrayInt *arg2 = 0 ;
10711 void *argp1 = 0 ;
10712 int res1 = 0 ;
10713 bool temp2 = false ;
10714 PyObject * obj0 = 0 ;
10715 PyObject * obj1 = 0 ;
10716 char * kwnames[] = {
10717 (char *) "self",(char *) "tabs", NULL
10718 };
10719
10720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail;
10721 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10722 if (!SWIG_IsOK(res1)) {
10723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTabs" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10724 }
10725 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10726 {
10727 if (! PySequence_Check(obj1)) {
10728 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10729 SWIG_fail;
10730 }
10731 arg2 = new wxArrayInt;
10732 temp2 = true;
10733 int i, len=PySequence_Length(obj1);
10734 for (i=0; i<len; i++) {
10735 PyObject* item = PySequence_GetItem(obj1, i);
10736 PyObject* number = PyNumber_Int(item);
ec8a7755
RD
10737 if (!number) {
10738 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10739 SWIG_fail;
10740 }
1bd55598
RD
10741 arg2->Add(PyInt_AS_LONG(number));
10742 Py_DECREF(item);
10743 Py_DECREF(number);
d55e5bfc 10744 }
1bd55598
RD
10745 }
10746 {
10747 PyThreadState* __tstate = wxPyBeginAllowThreads();
10748 (arg1)->SetTabs((wxArrayInt const &)*arg2);
10749 wxPyEndAllowThreads(__tstate);
10750 if (PyErr_Occurred()) SWIG_fail;
10751 }
10752 resultobj = SWIG_Py_Void();
10753 {
10754 if (temp2) delete arg2;
10755 }
10756 return resultobj;
10757fail:
10758 {
10759 if (temp2) delete arg2;
10760 }
10761 return NULL;
10762}
10763
10764
10765SWIGINTERN PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10766 PyObject *resultobj = 0;
10767 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10768 int arg2 ;
10769 int arg3 = (int) 0 ;
10770 void *argp1 = 0 ;
10771 int res1 = 0 ;
10772 int val2 ;
10773 int ecode2 = 0 ;
10774 int val3 ;
10775 int ecode3 = 0 ;
10776 PyObject * obj0 = 0 ;
10777 PyObject * obj1 = 0 ;
10778 PyObject * obj2 = 0 ;
10779 char * kwnames[] = {
10780 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
10781 };
10782
10783 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10784 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10785 if (!SWIG_IsOK(res1)) {
10786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10787 }
10788 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10789 ecode2 = SWIG_AsVal_int(obj1, &val2);
10790 if (!SWIG_IsOK(ecode2)) {
10791 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'");
10792 }
10793 arg2 = static_cast< int >(val2);
10794 if (obj2) {
10795 ecode3 = SWIG_AsVal_int(obj2, &val3);
10796 if (!SWIG_IsOK(ecode3)) {
10797 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'");
10798 }
10799 arg3 = static_cast< int >(val3);
10800 }
10801 {
10802 PyThreadState* __tstate = wxPyBeginAllowThreads();
10803 (arg1)->SetLeftIndent(arg2,arg3);
10804 wxPyEndAllowThreads(__tstate);
10805 if (PyErr_Occurred()) SWIG_fail;
10806 }
10807 resultobj = SWIG_Py_Void();
10808 return resultobj;
10809fail:
10810 return NULL;
10811}
10812
10813
10814SWIGINTERN PyObject *_wrap_TextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10815 PyObject *resultobj = 0;
10816 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10817 int arg2 ;
10818 void *argp1 = 0 ;
10819 int res1 = 0 ;
10820 int val2 ;
10821 int ecode2 = 0 ;
10822 PyObject * obj0 = 0 ;
10823 PyObject * obj1 = 0 ;
10824 char * kwnames[] = {
10825 (char *) "self",(char *) "indent", NULL
10826 };
10827
10828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail;
10829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10830 if (!SWIG_IsOK(res1)) {
10831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10832 }
10833 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10834 ecode2 = SWIG_AsVal_int(obj1, &val2);
10835 if (!SWIG_IsOK(ecode2)) {
10836 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'");
10837 }
10838 arg2 = static_cast< int >(val2);
10839 {
10840 PyThreadState* __tstate = wxPyBeginAllowThreads();
10841 (arg1)->SetRightIndent(arg2);
10842 wxPyEndAllowThreads(__tstate);
10843 if (PyErr_Occurred()) SWIG_fail;
10844 }
10845 resultobj = SWIG_Py_Void();
10846 return resultobj;
10847fail:
10848 return NULL;
10849}
10850
10851
10852SWIGINTERN PyObject *_wrap_TextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10853 PyObject *resultobj = 0;
10854 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10855 long arg2 ;
10856 void *argp1 = 0 ;
10857 int res1 = 0 ;
10858 long val2 ;
10859 int ecode2 = 0 ;
10860 PyObject * obj0 = 0 ;
10861 PyObject * obj1 = 0 ;
10862 char * kwnames[] = {
10863 (char *) "self",(char *) "flags", NULL
10864 };
10865
10866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
10867 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10868 if (!SWIG_IsOK(res1)) {
10869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFlags" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10870 }
10871 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10872 ecode2 = SWIG_AsVal_long(obj1, &val2);
10873 if (!SWIG_IsOK(ecode2)) {
10874 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'");
10875 }
10876 arg2 = static_cast< long >(val2);
10877 {
10878 PyThreadState* __tstate = wxPyBeginAllowThreads();
10879 (arg1)->SetFlags(arg2);
10880 wxPyEndAllowThreads(__tstate);
10881 if (PyErr_Occurred()) SWIG_fail;
10882 }
10883 resultobj = SWIG_Py_Void();
10884 return resultobj;
10885fail:
10886 return NULL;
d55e5bfc
RD
10887}
10888
10889
1bd55598
RD
10890SWIGINTERN PyObject *_wrap_TextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10891 PyObject *resultobj = 0;
10892 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10893 bool result;
10894 void *argp1 = 0 ;
10895 int res1 = 0 ;
10896 PyObject *swig_obj[1] ;
10897
10898 if (!args) SWIG_fail;
10899 swig_obj[0] = args;
10900 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10901 if (!SWIG_IsOK(res1)) {
10902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10903 }
10904 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10905 {
10906 PyThreadState* __tstate = wxPyBeginAllowThreads();
10907 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
10908 wxPyEndAllowThreads(__tstate);
10909 if (PyErr_Occurred()) SWIG_fail;
10910 }
10911 {
10912 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10913 }
10914 return resultobj;
10915fail:
10916 return NULL;
d55e5bfc
RD
10917}
10918
10919
1bd55598
RD
10920SWIGINTERN PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10921 PyObject *resultobj = 0;
10922 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10923 bool result;
10924 void *argp1 = 0 ;
10925 int res1 = 0 ;
10926 PyObject *swig_obj[1] ;
10927
10928 if (!args) SWIG_fail;
10929 swig_obj[0] = args;
10930 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10931 if (!SWIG_IsOK(res1)) {
10932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10933 }
10934 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10935 {
10936 PyThreadState* __tstate = wxPyBeginAllowThreads();
10937 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
10938 wxPyEndAllowThreads(__tstate);
10939 if (PyErr_Occurred()) SWIG_fail;
10940 }
10941 {
10942 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10943 }
10944 return resultobj;
10945fail:
10946 return NULL;
d55e5bfc
RD
10947}
10948
10949
1bd55598
RD
10950SWIGINTERN PyObject *_wrap_TextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10951 PyObject *resultobj = 0;
10952 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10953 bool result;
10954 void *argp1 = 0 ;
10955 int res1 = 0 ;
10956 PyObject *swig_obj[1] ;
10957
10958 if (!args) SWIG_fail;
10959 swig_obj[0] = args;
10960 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10961 if (!SWIG_IsOK(res1)) {
10962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10963 }
10964 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10965 {
10966 PyThreadState* __tstate = wxPyBeginAllowThreads();
10967 result = (bool)((wxTextAttr const *)arg1)->HasFont();
10968 wxPyEndAllowThreads(__tstate);
10969 if (PyErr_Occurred()) SWIG_fail;
10970 }
10971 {
10972 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10973 }
10974 return resultobj;
10975fail:
10976 return NULL;
d55e5bfc
RD
10977}
10978
10979
1bd55598
RD
10980SWIGINTERN PyObject *_wrap_TextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10981 PyObject *resultobj = 0;
10982 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10983 bool result;
10984 void *argp1 = 0 ;
10985 int res1 = 0 ;
10986 PyObject *swig_obj[1] ;
10987
10988 if (!args) SWIG_fail;
10989 swig_obj[0] = args;
10990 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10991 if (!SWIG_IsOK(res1)) {
10992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10993 }
10994 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10995 {
10996 PyThreadState* __tstate = wxPyBeginAllowThreads();
10997 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
10998 wxPyEndAllowThreads(__tstate);
10999 if (PyErr_Occurred()) SWIG_fail;
11000 }
11001 {
11002 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11003 }
11004 return resultobj;
11005fail:
11006 return NULL;
d55e5bfc
RD
11007}
11008
11009
1bd55598
RD
11010SWIGINTERN PyObject *_wrap_TextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11011 PyObject *resultobj = 0;
11012 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11013 bool result;
11014 void *argp1 = 0 ;
11015 int res1 = 0 ;
11016 PyObject *swig_obj[1] ;
11017
11018 if (!args) SWIG_fail;
11019 swig_obj[0] = args;
11020 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11021 if (!SWIG_IsOK(res1)) {
11022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11023 }
11024 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11025 {
11026 PyThreadState* __tstate = wxPyBeginAllowThreads();
11027 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
11028 wxPyEndAllowThreads(__tstate);
11029 if (PyErr_Occurred()) SWIG_fail;
11030 }
11031 {
11032 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11033 }
11034 return resultobj;
11035fail:
11036 return NULL;
d55e5bfc
RD
11037}
11038
11039
1bd55598
RD
11040SWIGINTERN PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11041 PyObject *resultobj = 0;
11042 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11043 bool result;
11044 void *argp1 = 0 ;
11045 int res1 = 0 ;
11046 PyObject *swig_obj[1] ;
11047
11048 if (!args) SWIG_fail;
11049 swig_obj[0] = args;
11050 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11051 if (!SWIG_IsOK(res1)) {
11052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11053 }
11054 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11055 {
11056 PyThreadState* __tstate = wxPyBeginAllowThreads();
11057 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
11058 wxPyEndAllowThreads(__tstate);
11059 if (PyErr_Occurred()) SWIG_fail;
11060 }
11061 {
11062 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11063 }
11064 return resultobj;
11065fail:
11066 return NULL;
d55e5bfc
RD
11067}
11068
11069
1bd55598
RD
11070SWIGINTERN PyObject *_wrap_TextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11071 PyObject *resultobj = 0;
11072 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11073 bool result;
11074 void *argp1 = 0 ;
11075 int res1 = 0 ;
11076 PyObject *swig_obj[1] ;
11077
11078 if (!args) SWIG_fail;
11079 swig_obj[0] = args;
11080 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11081 if (!SWIG_IsOK(res1)) {
11082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11083 }
11084 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11085 {
11086 PyThreadState* __tstate = wxPyBeginAllowThreads();
11087 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
11088 wxPyEndAllowThreads(__tstate);
11089 if (PyErr_Occurred()) SWIG_fail;
11090 }
11091 {
11092 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11093 }
11094 return resultobj;
11095fail:
11096 return NULL;
11097}
11098
11099
11100SWIGINTERN PyObject *_wrap_TextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11101 PyObject *resultobj = 0;
11102 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11103 long arg2 ;
11104 bool result;
11105 void *argp1 = 0 ;
11106 int res1 = 0 ;
11107 long val2 ;
11108 int ecode2 = 0 ;
11109 PyObject * obj0 = 0 ;
11110 PyObject * obj1 = 0 ;
11111 char * kwnames[] = {
11112 (char *) "self",(char *) "flag", NULL
11113 };
11114
11115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail;
11116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11117 if (!SWIG_IsOK(res1)) {
11118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFlag" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11119 }
11120 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11121 ecode2 = SWIG_AsVal_long(obj1, &val2);
11122 if (!SWIG_IsOK(ecode2)) {
11123 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'");
11124 }
11125 arg2 = static_cast< long >(val2);
11126 {
11127 PyThreadState* __tstate = wxPyBeginAllowThreads();
11128 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
11129 wxPyEndAllowThreads(__tstate);
11130 if (PyErr_Occurred()) SWIG_fail;
11131 }
11132 {
11133 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11134 }
11135 return resultobj;
11136fail:
11137 return NULL;
d55e5bfc
RD
11138}
11139
11140
1bd55598
RD
11141SWIGINTERN PyObject *_wrap_TextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11142 PyObject *resultobj = 0;
11143 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11144 wxColour *result = 0 ;
11145 void *argp1 = 0 ;
11146 int res1 = 0 ;
11147 PyObject *swig_obj[1] ;
11148
11149 if (!args) SWIG_fail;
11150 swig_obj[0] = args;
11151 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11152 if (!SWIG_IsOK(res1)) {
11153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11154 }
11155 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11156 {
11157 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 11158 {
1bd55598
RD
11159 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
11160 result = (wxColour *) &_result_ref;
d55e5bfc 11161 }
1bd55598
RD
11162 wxPyEndAllowThreads(__tstate);
11163 if (PyErr_Occurred()) SWIG_fail;
11164 }
11165 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11166 return resultobj;
11167fail:
11168 return NULL;
d55e5bfc
RD
11169}
11170
11171
1bd55598
RD
11172SWIGINTERN PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11173 PyObject *resultobj = 0;
11174 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11175 wxColour *result = 0 ;
11176 void *argp1 = 0 ;
11177 int res1 = 0 ;
11178 PyObject *swig_obj[1] ;
11179
11180 if (!args) SWIG_fail;
11181 swig_obj[0] = args;
11182 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11183 if (!SWIG_IsOK(res1)) {
11184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11185 }
11186 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11187 {
11188 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 11189 {
1bd55598
RD
11190 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
11191 result = (wxColour *) &_result_ref;
d55e5bfc 11192 }
1bd55598
RD
11193 wxPyEndAllowThreads(__tstate);
11194 if (PyErr_Occurred()) SWIG_fail;
11195 }
11196 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11197 return resultobj;
11198fail:
11199 return NULL;
d55e5bfc
RD
11200}
11201
11202
1bd55598
RD
11203SWIGINTERN PyObject *_wrap_TextAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11204 PyObject *resultobj = 0;
11205 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11206 wxFont *result = 0 ;
11207 void *argp1 = 0 ;
11208 int res1 = 0 ;
11209 PyObject *swig_obj[1] ;
11210
11211 if (!args) SWIG_fail;
11212 swig_obj[0] = args;
11213 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11214 if (!SWIG_IsOK(res1)) {
11215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11216 }
11217 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11218 {
11219 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 11220 {
1bd55598
RD
11221 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
11222 result = (wxFont *) &_result_ref;
d55e5bfc 11223 }
1bd55598
RD
11224 wxPyEndAllowThreads(__tstate);
11225 if (PyErr_Occurred()) SWIG_fail;
11226 }
11227 {
11228 wxFont* resultptr = new wxFont(*result);
11229 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
11230 }
11231 return resultobj;
11232fail:
11233 return NULL;
d55e5bfc
RD
11234}
11235
11236
1bd55598
RD
11237SWIGINTERN PyObject *_wrap_TextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11238 PyObject *resultobj = 0;
11239 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11240 wxTextAttrAlignment result;
11241 void *argp1 = 0 ;
11242 int res1 = 0 ;
11243 PyObject *swig_obj[1] ;
11244
11245 if (!args) SWIG_fail;
11246 swig_obj[0] = args;
11247 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11248 if (!SWIG_IsOK(res1)) {
11249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11250 }
11251 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11252 {
11253 PyThreadState* __tstate = wxPyBeginAllowThreads();
11254 result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment();
11255 wxPyEndAllowThreads(__tstate);
11256 if (PyErr_Occurred()) SWIG_fail;
11257 }
11258 resultobj = SWIG_From_int(static_cast< int >(result));
11259 return resultobj;
11260fail:
11261 return NULL;
d55e5bfc
RD
11262}
11263
11264
1bd55598
RD
11265SWIGINTERN PyObject *_wrap_TextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11266 PyObject *resultobj = 0;
11267 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11268 wxArrayInt *result = 0 ;
11269 void *argp1 = 0 ;
11270 int res1 = 0 ;
11271 PyObject *swig_obj[1] ;
11272
11273 if (!args) SWIG_fail;
11274 swig_obj[0] = args;
11275 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11276 if (!SWIG_IsOK(res1)) {
11277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11278 }
11279 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11280 {
11281 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 11282 {
1bd55598
RD
11283 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
11284 result = (wxArrayInt *) &_result_ref;
36ed4f51 11285 }
1bd55598
RD
11286 wxPyEndAllowThreads(__tstate);
11287 if (PyErr_Occurred()) SWIG_fail;
11288 }
11289 {
b39fe951 11290 resultobj = wxArrayInt2PyList_helper(*result);
1bd55598
RD
11291 }
11292 return resultobj;
11293fail:
11294 return NULL;
d55e5bfc
RD
11295}
11296
11297
1bd55598
RD
11298SWIGINTERN PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11299 PyObject *resultobj = 0;
11300 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11301 long result;
11302 void *argp1 = 0 ;
11303 int res1 = 0 ;
11304 PyObject *swig_obj[1] ;
11305
11306 if (!args) SWIG_fail;
11307 swig_obj[0] = args;
11308 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11309 if (!SWIG_IsOK(res1)) {
11310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11311 }
11312 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11313 {
11314 PyThreadState* __tstate = wxPyBeginAllowThreads();
11315 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
11316 wxPyEndAllowThreads(__tstate);
11317 if (PyErr_Occurred()) SWIG_fail;
11318 }
11319 resultobj = SWIG_From_long(static_cast< long >(result));
11320 return resultobj;
11321fail:
11322 return NULL;
d55e5bfc
RD
11323}
11324
11325
1bd55598
RD
11326SWIGINTERN PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11327 PyObject *resultobj = 0;
11328 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11329 long result;
11330 void *argp1 = 0 ;
11331 int res1 = 0 ;
11332 PyObject *swig_obj[1] ;
11333
11334 if (!args) SWIG_fail;
11335 swig_obj[0] = args;
11336 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11337 if (!SWIG_IsOK(res1)) {
11338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11339 }
11340 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11341 {
11342 PyThreadState* __tstate = wxPyBeginAllowThreads();
11343 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
11344 wxPyEndAllowThreads(__tstate);
11345 if (PyErr_Occurred()) SWIG_fail;
11346 }
11347 resultobj = SWIG_From_long(static_cast< long >(result));
11348 return resultobj;
11349fail:
11350 return NULL;
d55e5bfc
RD
11351}
11352
11353
1bd55598
RD
11354SWIGINTERN PyObject *_wrap_TextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11355 PyObject *resultobj = 0;
11356 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11357 long result;
11358 void *argp1 = 0 ;
11359 int res1 = 0 ;
11360 PyObject *swig_obj[1] ;
11361
11362 if (!args) SWIG_fail;
11363 swig_obj[0] = args;
11364 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11365 if (!SWIG_IsOK(res1)) {
11366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11367 }
11368 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11369 {
11370 PyThreadState* __tstate = wxPyBeginAllowThreads();
11371 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
11372 wxPyEndAllowThreads(__tstate);
11373 if (PyErr_Occurred()) SWIG_fail;
11374 }
11375 resultobj = SWIG_From_long(static_cast< long >(result));
11376 return resultobj;
11377fail:
11378 return NULL;
d55e5bfc
RD
11379}
11380
11381
1bd55598
RD
11382SWIGINTERN PyObject *_wrap_TextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11383 PyObject *resultobj = 0;
11384 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11385 long result;
11386 void *argp1 = 0 ;
11387 int res1 = 0 ;
11388 PyObject *swig_obj[1] ;
11389
11390 if (!args) SWIG_fail;
11391 swig_obj[0] = args;
11392 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11393 if (!SWIG_IsOK(res1)) {
11394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFlags" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11395 }
11396 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11397 {
11398 PyThreadState* __tstate = wxPyBeginAllowThreads();
11399 result = (long)((wxTextAttr const *)arg1)->GetFlags();
11400 wxPyEndAllowThreads(__tstate);
11401 if (PyErr_Occurred()) SWIG_fail;
11402 }
11403 resultobj = SWIG_From_long(static_cast< long >(result));
11404 return resultobj;
11405fail:
11406 return NULL;
d55e5bfc
RD
11407}
11408
11409
1bd55598
RD
11410SWIGINTERN PyObject *_wrap_TextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11411 PyObject *resultobj = 0;
11412 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11413 bool result;
11414 void *argp1 = 0 ;
11415 int res1 = 0 ;
11416 PyObject *swig_obj[1] ;
11417
11418 if (!args) SWIG_fail;
11419 swig_obj[0] = args;
11420 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11421 if (!SWIG_IsOK(res1)) {
11422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_IsDefault" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11423 }
11424 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11425 {
11426 PyThreadState* __tstate = wxPyBeginAllowThreads();
11427 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
11428 wxPyEndAllowThreads(__tstate);
11429 if (PyErr_Occurred()) SWIG_fail;
11430 }
11431 {
11432 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11433 }
11434 return resultobj;
11435fail:
11436 return NULL;
11437}
11438
11439
11440SWIGINTERN PyObject *_wrap_TextAttr_Combine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11441 PyObject *resultobj = 0;
11442 wxTextAttr *arg1 = 0 ;
11443 wxTextAttr *arg2 = 0 ;
11444 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
11445 wxTextAttr result;
11446 void *argp1 = 0 ;
11447 int res1 = 0 ;
11448 void *argp2 = 0 ;
11449 int res2 = 0 ;
11450 void *argp3 = 0 ;
11451 int res3 = 0 ;
11452 PyObject * obj0 = 0 ;
11453 PyObject * obj1 = 0 ;
11454 PyObject * obj2 = 0 ;
11455 char * kwnames[] = {
11456 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
11457 };
11458
11459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11460 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
11461 if (!SWIG_IsOK(res1)) {
11462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11463 }
11464 if (!argp1) {
11465 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11466 }
11467 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11468 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
11469 if (!SWIG_IsOK(res2)) {
11470 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11471 }
11472 if (!argp2) {
11473 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11474 }
11475 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
11476 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11477 if (!SWIG_IsOK(res3)) {
11478 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextAttr_Combine" "', expected argument " "3"" of type '" "wxTextCtrl const *""'");
11479 }
11480 arg3 = reinterpret_cast< wxTextCtrl * >(argp3);
11481 {
11482 PyThreadState* __tstate = wxPyBeginAllowThreads();
11483 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
11484 wxPyEndAllowThreads(__tstate);
11485 if (PyErr_Occurred()) SWIG_fail;
11486 }
11487 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
11488 return resultobj;
11489fail:
11490 return NULL;
11491}
11492
11493
11494SWIGINTERN PyObject *TextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11495 PyObject *obj;
11496 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11497 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextAttr, SWIG_NewClientData(obj));
11498 return SWIG_Py_Void();
11499}
11500
11501SWIGINTERN PyObject *TextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11502 return SWIG_Python_InitShadowInstance(args);
11503}
11504
11505SWIGINTERN PyObject *_wrap_new_TextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11506 PyObject *resultobj = 0;
11507 wxWindow *arg1 = (wxWindow *) 0 ;
11508 int arg2 = (int) -1 ;
11509 wxString const &arg3_defvalue = wxPyEmptyString ;
11510 wxString *arg3 = (wxString *) &arg3_defvalue ;
11511 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11512 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11513 wxSize const &arg5_defvalue = wxDefaultSize ;
11514 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11515 long arg6 = (long) 0 ;
11516 wxValidator const &arg7_defvalue = wxDefaultValidator ;
11517 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
11518 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
11519 wxString *arg8 = (wxString *) &arg8_defvalue ;
11520 wxTextCtrl *result = 0 ;
11521 void *argp1 = 0 ;
11522 int res1 = 0 ;
11523 int val2 ;
11524 int ecode2 = 0 ;
11525 bool temp3 = false ;
11526 wxPoint temp4 ;
11527 wxSize temp5 ;
11528 long val6 ;
11529 int ecode6 = 0 ;
11530 void *argp7 = 0 ;
11531 int res7 = 0 ;
11532 bool temp8 = false ;
11533 PyObject * obj0 = 0 ;
11534 PyObject * obj1 = 0 ;
11535 PyObject * obj2 = 0 ;
11536 PyObject * obj3 = 0 ;
11537 PyObject * obj4 = 0 ;
11538 PyObject * obj5 = 0 ;
11539 PyObject * obj6 = 0 ;
11540 PyObject * obj7 = 0 ;
11541 char * kwnames[] = {
11542 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11543 };
11544
11545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
11546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
11547 if (!SWIG_IsOK(res1)) {
11548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
11549 }
11550 arg1 = reinterpret_cast< wxWindow * >(argp1);
11551 if (obj1) {
11552 ecode2 = SWIG_AsVal_int(obj1, &val2);
11553 if (!SWIG_IsOK(ecode2)) {
11554 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TextCtrl" "', expected argument " "2"" of type '" "int""'");
11555 }
11556 arg2 = static_cast< int >(val2);
11557 }
11558 if (obj2) {
36ed4f51 11559 {
1bd55598
RD
11560 arg3 = wxString_in_helper(obj2);
11561 if (arg3 == NULL) SWIG_fail;
11562 temp3 = true;
36ed4f51 11563 }
1bd55598
RD
11564 }
11565 if (obj3) {
36ed4f51 11566 {
1bd55598
RD
11567 arg4 = &temp4;
11568 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 11569 }
1bd55598
RD
11570 }
11571 if (obj4) {
d55e5bfc 11572 {
1bd55598
RD
11573 arg5 = &temp5;
11574 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 11575 }
1bd55598
RD
11576 }
11577 if (obj5) {
11578 ecode6 = SWIG_AsVal_long(obj5, &val6);
11579 if (!SWIG_IsOK(ecode6)) {
11580 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_TextCtrl" "', expected argument " "6"" of type '" "long""'");
11581 }
11582 arg6 = static_cast< long >(val6);
11583 }
11584 if (obj6) {
11585 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
11586 if (!SWIG_IsOK(res7)) {
11587 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 11588 }
1bd55598
RD
11589 if (!argp7) {
11590 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 11591 }
1bd55598
RD
11592 arg7 = reinterpret_cast< wxValidator * >(argp7);
11593 }
11594 if (obj7) {
d55e5bfc 11595 {
1bd55598
RD
11596 arg8 = wxString_in_helper(obj7);
11597 if (arg8 == NULL) SWIG_fail;
11598 temp8 = true;
d55e5bfc 11599 }
1bd55598
RD
11600 }
11601 {
11602 if (!wxPyCheckForApp()) SWIG_fail;
11603 PyThreadState* __tstate = wxPyBeginAllowThreads();
11604 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
11605 wxPyEndAllowThreads(__tstate);
11606 if (PyErr_Occurred()) SWIG_fail;
11607 }
11608 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_NEW | 0 );
11609 {
11610 if (temp3)
11611 delete arg3;
11612 }
11613 {
11614 if (temp8)
11615 delete arg8;
11616 }
11617 return resultobj;
11618fail:
11619 {
11620 if (temp3)
11621 delete arg3;
11622 }
11623 {
11624 if (temp8)
11625 delete arg8;
11626 }
11627 return NULL;
d55e5bfc
RD
11628}
11629
11630
1bd55598
RD
11631SWIGINTERN PyObject *_wrap_new_PreTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11632 PyObject *resultobj = 0;
11633 wxTextCtrl *result = 0 ;
11634
11635 if (!SWIG_Python_UnpackTuple(args,"new_PreTextCtrl",0,0,0)) SWIG_fail;
11636 {
11637 if (!wxPyCheckForApp()) SWIG_fail;
11638 PyThreadState* __tstate = wxPyBeginAllowThreads();
11639 result = (wxTextCtrl *)new wxTextCtrl();
11640 wxPyEndAllowThreads(__tstate);
11641 if (PyErr_Occurred()) SWIG_fail;
11642 }
11643 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_OWN | 0 );
11644 return resultobj;
11645fail:
11646 return NULL;
11647}
11648
11649
11650SWIGINTERN PyObject *_wrap_TextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11651 PyObject *resultobj = 0;
11652 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11653 wxWindow *arg2 = (wxWindow *) 0 ;
11654 int arg3 = (int) -1 ;
11655 wxString const &arg4_defvalue = wxPyEmptyString ;
11656 wxString *arg4 = (wxString *) &arg4_defvalue ;
11657 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11658 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11659 wxSize const &arg6_defvalue = wxDefaultSize ;
11660 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11661 long arg7 = (long) 0 ;
11662 wxValidator const &arg8_defvalue = wxDefaultValidator ;
11663 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
11664 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
11665 wxString *arg9 = (wxString *) &arg9_defvalue ;
11666 bool result;
11667 void *argp1 = 0 ;
11668 int res1 = 0 ;
11669 void *argp2 = 0 ;
11670 int res2 = 0 ;
11671 int val3 ;
11672 int ecode3 = 0 ;
11673 bool temp4 = false ;
11674 wxPoint temp5 ;
11675 wxSize temp6 ;
11676 long val7 ;
11677 int ecode7 = 0 ;
11678 void *argp8 = 0 ;
11679 int res8 = 0 ;
11680 bool temp9 = false ;
11681 PyObject * obj0 = 0 ;
11682 PyObject * obj1 = 0 ;
11683 PyObject * obj2 = 0 ;
11684 PyObject * obj3 = 0 ;
11685 PyObject * obj4 = 0 ;
11686 PyObject * obj5 = 0 ;
11687 PyObject * obj6 = 0 ;
11688 PyObject * obj7 = 0 ;
11689 PyObject * obj8 = 0 ;
11690 char * kwnames[] = {
11691 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11692 };
11693
11694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
11695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11696 if (!SWIG_IsOK(res1)) {
11697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Create" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11698 }
11699 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11700 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11701 if (!SWIG_IsOK(res2)) {
11702 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
11703 }
11704 arg2 = reinterpret_cast< wxWindow * >(argp2);
11705 if (obj2) {
11706 ecode3 = SWIG_AsVal_int(obj2, &val3);
11707 if (!SWIG_IsOK(ecode3)) {
11708 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Create" "', expected argument " "3"" of type '" "int""'");
11709 }
11710 arg3 = static_cast< int >(val3);
11711 }
11712 if (obj3) {
d55e5bfc 11713 {
1bd55598
RD
11714 arg4 = wxString_in_helper(obj3);
11715 if (arg4 == NULL) SWIG_fail;
11716 temp4 = true;
d55e5bfc 11717 }
1bd55598
RD
11718 }
11719 if (obj4) {
d55e5bfc 11720 {
1bd55598
RD
11721 arg5 = &temp5;
11722 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 11723 }
1bd55598
RD
11724 }
11725 if (obj5) {
d55e5bfc 11726 {
1bd55598
RD
11727 arg6 = &temp6;
11728 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 11729 }
1bd55598
RD
11730 }
11731 if (obj6) {
11732 ecode7 = SWIG_AsVal_long(obj6, &val7);
11733 if (!SWIG_IsOK(ecode7)) {
11734 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "TextCtrl_Create" "', expected argument " "7"" of type '" "long""'");
11735 }
11736 arg7 = static_cast< long >(val7);
11737 }
11738 if (obj7) {
11739 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
11740 if (!SWIG_IsOK(res8)) {
11741 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 11742 }
1bd55598
RD
11743 if (!argp8) {
11744 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11745 }
11746 arg8 = reinterpret_cast< wxValidator * >(argp8);
11747 }
11748 if (obj8) {
d55e5bfc 11749 {
1bd55598
RD
11750 arg9 = wxString_in_helper(obj8);
11751 if (arg9 == NULL) SWIG_fail;
11752 temp9 = true;
d55e5bfc 11753 }
1bd55598
RD
11754 }
11755 {
11756 PyThreadState* __tstate = wxPyBeginAllowThreads();
11757 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
11758 wxPyEndAllowThreads(__tstate);
11759 if (PyErr_Occurred()) SWIG_fail;
11760 }
11761 {
11762 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11763 }
11764 {
11765 if (temp4)
11766 delete arg4;
11767 }
11768 {
11769 if (temp9)
11770 delete arg9;
11771 }
11772 return resultobj;
11773fail:
11774 {
11775 if (temp4)
11776 delete arg4;
11777 }
11778 {
11779 if (temp9)
11780 delete arg9;
11781 }
11782 return NULL;
d55e5bfc
RD
11783}
11784
11785
1bd55598
RD
11786SWIGINTERN PyObject *_wrap_TextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11787 PyObject *resultobj = 0;
11788 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11789 wxString result;
11790 void *argp1 = 0 ;
11791 int res1 = 0 ;
11792 PyObject *swig_obj[1] ;
11793
11794 if (!args) SWIG_fail;
11795 swig_obj[0] = args;
11796 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11797 if (!SWIG_IsOK(res1)) {
11798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetValue" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11799 }
11800 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11801 {
11802 PyThreadState* __tstate = wxPyBeginAllowThreads();
11803 result = ((wxTextCtrl const *)arg1)->GetValue();
11804 wxPyEndAllowThreads(__tstate);
11805 if (PyErr_Occurred()) SWIG_fail;
11806 }
11807 {
11808#if wxUSE_UNICODE
11809 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11810#else
11811 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11812#endif
11813 }
11814 return resultobj;
11815fail:
11816 return NULL;
11817}
11818
11819
11820SWIGINTERN PyObject *_wrap_TextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11821 PyObject *resultobj = 0;
11822 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11823 wxString *arg2 = 0 ;
11824 void *argp1 = 0 ;
11825 int res1 = 0 ;
11826 bool temp2 = false ;
11827 PyObject * obj0 = 0 ;
11828 PyObject * obj1 = 0 ;
11829 char * kwnames[] = {
11830 (char *) "self",(char *) "value", NULL
11831 };
11832
11833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
11834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11835 if (!SWIG_IsOK(res1)) {
11836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11837 }
11838 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11839 {
11840 arg2 = wxString_in_helper(obj1);
11841 if (arg2 == NULL) SWIG_fail;
11842 temp2 = true;
11843 }
11844 {
11845 PyThreadState* __tstate = wxPyBeginAllowThreads();
11846 (arg1)->SetValue((wxString const &)*arg2);
11847 wxPyEndAllowThreads(__tstate);
11848 if (PyErr_Occurred()) SWIG_fail;
11849 }
11850 resultobj = SWIG_Py_Void();
11851 {
11852 if (temp2)
11853 delete arg2;
11854 }
11855 return resultobj;
11856fail:
11857 {
11858 if (temp2)
11859 delete arg2;
11860 }
11861 return NULL;
11862}
11863
11864
b39fe951
RD
11865SWIGINTERN PyObject *_wrap_TextCtrl_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11866 PyObject *resultobj = 0;
11867 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11868 bool result;
11869 void *argp1 = 0 ;
11870 int res1 = 0 ;
11871 PyObject *swig_obj[1] ;
11872
11873 if (!args) SWIG_fail;
11874 swig_obj[0] = args;
11875 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11876 if (!SWIG_IsOK(res1)) {
11877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEmpty" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11878 }
11879 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11880 {
11881 PyThreadState* __tstate = wxPyBeginAllowThreads();
11882 result = (bool)((wxTextCtrl const *)arg1)->IsEmpty();
11883 wxPyEndAllowThreads(__tstate);
11884 if (PyErr_Occurred()) SWIG_fail;
11885 }
11886 {
11887 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11888 }
11889 return resultobj;
11890fail:
11891 return NULL;
11892}
11893
11894
11895SWIGINTERN PyObject *_wrap_TextCtrl_ChangeValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11896 PyObject *resultobj = 0;
11897 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11898 wxString *arg2 = 0 ;
11899 void *argp1 = 0 ;
11900 int res1 = 0 ;
11901 bool temp2 = false ;
11902 PyObject * obj0 = 0 ;
11903 PyObject * obj1 = 0 ;
11904 char * kwnames[] = {
11905 (char *) "self",(char *) "value", NULL
11906 };
11907
11908 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ChangeValue",kwnames,&obj0,&obj1)) SWIG_fail;
11909 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11910 if (!SWIG_IsOK(res1)) {
11911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ChangeValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11912 }
11913 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11914 {
11915 arg2 = wxString_in_helper(obj1);
11916 if (arg2 == NULL) SWIG_fail;
11917 temp2 = true;
11918 }
11919 {
11920 PyThreadState* __tstate = wxPyBeginAllowThreads();
11921 (arg1)->ChangeValue((wxString const &)*arg2);
11922 wxPyEndAllowThreads(__tstate);
11923 if (PyErr_Occurred()) SWIG_fail;
11924 }
11925 resultobj = SWIG_Py_Void();
11926 {
11927 if (temp2)
11928 delete arg2;
11929 }
11930 return resultobj;
11931fail:
11932 {
11933 if (temp2)
11934 delete arg2;
11935 }
11936 return NULL;
11937}
11938
11939
1bd55598
RD
11940SWIGINTERN PyObject *_wrap_TextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11941 PyObject *resultobj = 0;
11942 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11943 long arg2 ;
11944 long arg3 ;
11945 wxString result;
11946 void *argp1 = 0 ;
11947 int res1 = 0 ;
11948 long val2 ;
11949 int ecode2 = 0 ;
11950 long val3 ;
11951 int ecode3 = 0 ;
11952 PyObject * obj0 = 0 ;
11953 PyObject * obj1 = 0 ;
11954 PyObject * obj2 = 0 ;
11955 char * kwnames[] = {
2131d850 11956 (char *) "self",(char *) "from",(char *) "to", NULL
1bd55598
RD
11957 };
11958
11959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11961 if (!SWIG_IsOK(res1)) {
11962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetRange" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11963 }
11964 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11965 ecode2 = SWIG_AsVal_long(obj1, &val2);
11966 if (!SWIG_IsOK(ecode2)) {
11967 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'");
11968 }
11969 arg2 = static_cast< long >(val2);
11970 ecode3 = SWIG_AsVal_long(obj2, &val3);
11971 if (!SWIG_IsOK(ecode3)) {
11972 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'");
11973 }
11974 arg3 = static_cast< long >(val3);
11975 {
11976 PyThreadState* __tstate = wxPyBeginAllowThreads();
11977 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
11978 wxPyEndAllowThreads(__tstate);
11979 if (PyErr_Occurred()) SWIG_fail;
11980 }
11981 {
11982#if wxUSE_UNICODE
11983 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11984#else
11985 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11986#endif
11987 }
11988 return resultobj;
11989fail:
11990 return NULL;
11991}
11992
11993
11994SWIGINTERN PyObject *_wrap_TextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11995 PyObject *resultobj = 0;
11996 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11997 long arg2 ;
11998 int result;
11999 void *argp1 = 0 ;
12000 int res1 = 0 ;
12001 long val2 ;
12002 int ecode2 = 0 ;
12003 PyObject * obj0 = 0 ;
12004 PyObject * obj1 = 0 ;
12005 char * kwnames[] = {
12006 (char *) "self",(char *) "lineNo", NULL
12007 };
12008
12009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail;
12010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12011 if (!SWIG_IsOK(res1)) {
12012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12013 }
12014 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12015 ecode2 = SWIG_AsVal_long(obj1, &val2);
12016 if (!SWIG_IsOK(ecode2)) {
12017 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'");
12018 }
12019 arg2 = static_cast< long >(val2);
12020 {
12021 PyThreadState* __tstate = wxPyBeginAllowThreads();
12022 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
12023 wxPyEndAllowThreads(__tstate);
12024 if (PyErr_Occurred()) SWIG_fail;
12025 }
12026 resultobj = SWIG_From_int(static_cast< int >(result));
12027 return resultobj;
12028fail:
12029 return NULL;
12030}
12031
12032
12033SWIGINTERN PyObject *_wrap_TextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12034 PyObject *resultobj = 0;
12035 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12036 long arg2 ;
12037 wxString result;
12038 void *argp1 = 0 ;
12039 int res1 = 0 ;
12040 long val2 ;
12041 int ecode2 = 0 ;
12042 PyObject * obj0 = 0 ;
12043 PyObject * obj1 = 0 ;
12044 char * kwnames[] = {
12045 (char *) "self",(char *) "lineNo", NULL
12046 };
12047
12048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail;
12049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12050 if (!SWIG_IsOK(res1)) {
12051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12052 }
12053 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12054 ecode2 = SWIG_AsVal_long(obj1, &val2);
12055 if (!SWIG_IsOK(ecode2)) {
12056 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'");
12057 }
12058 arg2 = static_cast< long >(val2);
12059 {
12060 PyThreadState* __tstate = wxPyBeginAllowThreads();
12061 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
12062 wxPyEndAllowThreads(__tstate);
12063 if (PyErr_Occurred()) SWIG_fail;
12064 }
12065 {
12066#if wxUSE_UNICODE
12067 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12068#else
12069 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12070#endif
12071 }
12072 return resultobj;
12073fail:
12074 return NULL;
d55e5bfc
RD
12075}
12076
12077
1bd55598
RD
12078SWIGINTERN PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12079 PyObject *resultobj = 0;
12080 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12081 int result;
12082 void *argp1 = 0 ;
12083 int res1 = 0 ;
12084 PyObject *swig_obj[1] ;
12085
12086 if (!args) SWIG_fail;
12087 swig_obj[0] = args;
12088 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12089 if (!SWIG_IsOK(res1)) {
12090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12091 }
12092 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12093 {
12094 PyThreadState* __tstate = wxPyBeginAllowThreads();
12095 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
12096 wxPyEndAllowThreads(__tstate);
12097 if (PyErr_Occurred()) SWIG_fail;
12098 }
12099 resultobj = SWIG_From_int(static_cast< int >(result));
12100 return resultobj;
12101fail:
12102 return NULL;
d55e5bfc
RD
12103}
12104
12105
1bd55598
RD
12106SWIGINTERN PyObject *_wrap_TextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12107 PyObject *resultobj = 0;
12108 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12109 bool result;
12110 void *argp1 = 0 ;
12111 int res1 = 0 ;
12112 PyObject *swig_obj[1] ;
12113
12114 if (!args) SWIG_fail;
12115 swig_obj[0] = args;
12116 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12117 if (!SWIG_IsOK(res1)) {
12118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsModified" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12119 }
12120 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12121 {
12122 PyThreadState* __tstate = wxPyBeginAllowThreads();
12123 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
12124 wxPyEndAllowThreads(__tstate);
12125 if (PyErr_Occurred()) SWIG_fail;
12126 }
12127 {
12128 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12129 }
12130 return resultobj;
12131fail:
12132 return NULL;
d55e5bfc
RD
12133}
12134
12135
1bd55598
RD
12136SWIGINTERN PyObject *_wrap_TextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12137 PyObject *resultobj = 0;
12138 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12139 bool result;
12140 void *argp1 = 0 ;
12141 int res1 = 0 ;
12142 PyObject *swig_obj[1] ;
12143
12144 if (!args) SWIG_fail;
12145 swig_obj[0] = args;
12146 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12147 if (!SWIG_IsOK(res1)) {
12148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12149 }
12150 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12151 {
12152 PyThreadState* __tstate = wxPyBeginAllowThreads();
12153 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
12154 wxPyEndAllowThreads(__tstate);
12155 if (PyErr_Occurred()) SWIG_fail;
12156 }
12157 {
12158 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12159 }
12160 return resultobj;
12161fail:
12162 return NULL;
d55e5bfc
RD
12163}
12164
12165
1bd55598
RD
12166SWIGINTERN PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12167 PyObject *resultobj = 0;
12168 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12169 bool result;
12170 void *argp1 = 0 ;
12171 int res1 = 0 ;
12172 PyObject *swig_obj[1] ;
12173
12174 if (!args) SWIG_fail;
12175 swig_obj[0] = args;
12176 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12177 if (!SWIG_IsOK(res1)) {
12178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12179 }
12180 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12181 {
12182 PyThreadState* __tstate = wxPyBeginAllowThreads();
12183 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
12184 wxPyEndAllowThreads(__tstate);
12185 if (PyErr_Occurred()) SWIG_fail;
12186 }
12187 {
12188 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12189 }
12190 return resultobj;
12191fail:
12192 return NULL;
d55e5bfc
RD
12193}
12194
12195
1bd55598
RD
12196SWIGINTERN PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12197 PyObject *resultobj = 0;
12198 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12199 bool result;
12200 void *argp1 = 0 ;
12201 int res1 = 0 ;
12202 PyObject *swig_obj[1] ;
12203
12204 if (!args) SWIG_fail;
12205 swig_obj[0] = args;
12206 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12207 if (!SWIG_IsOK(res1)) {
12208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12209 }
12210 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12211 {
12212 PyThreadState* __tstate = wxPyBeginAllowThreads();
12213 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
12214 wxPyEndAllowThreads(__tstate);
12215 if (PyErr_Occurred()) SWIG_fail;
12216 }
12217 {
12218 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12219 }
12220 return resultobj;
12221fail:
12222 return NULL;
12223}
12224
12225
12226SWIGINTERN PyObject *_wrap_TextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12227 PyObject *resultobj = 0;
12228 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12229 long *arg2 = (long *) 0 ;
12230 long *arg3 = (long *) 0 ;
12231 void *argp1 = 0 ;
12232 int res1 = 0 ;
12233 long temp2 ;
12234 int res2 = SWIG_TMPOBJ ;
12235 long temp3 ;
12236 int res3 = SWIG_TMPOBJ ;
12237 PyObject *swig_obj[1] ;
12238
12239 arg2 = &temp2;
12240 arg3 = &temp3;
12241 if (!args) SWIG_fail;
12242 swig_obj[0] = args;
12243 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12244 if (!SWIG_IsOK(res1)) {
12245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12246 }
12247 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12248 {
12249 PyThreadState* __tstate = wxPyBeginAllowThreads();
12250 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
12251 wxPyEndAllowThreads(__tstate);
12252 if (PyErr_Occurred()) SWIG_fail;
12253 }
12254 resultobj = SWIG_Py_Void();
12255 if (SWIG_IsTmpObj(res2)) {
12256 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
12257 } else {
12258 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12259 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
12260 }
12261 if (SWIG_IsTmpObj(res3)) {
12262 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12263 } else {
12264 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12265 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
12266 }
12267 return resultobj;
12268fail:
12269 return NULL;
d55e5bfc
RD
12270}
12271
12272
1bd55598
RD
12273SWIGINTERN PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12274 PyObject *resultobj = 0;
12275 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12276 wxString result;
12277 void *argp1 = 0 ;
12278 int res1 = 0 ;
12279 PyObject *swig_obj[1] ;
12280
12281 if (!args) SWIG_fail;
12282 swig_obj[0] = args;
12283 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12284 if (!SWIG_IsOK(res1)) {
12285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12286 }
12287 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12288 {
12289 PyThreadState* __tstate = wxPyBeginAllowThreads();
12290 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
12291 wxPyEndAllowThreads(__tstate);
12292 if (PyErr_Occurred()) SWIG_fail;
12293 }
12294 {
d55e5bfc 12295#if wxUSE_UNICODE
1bd55598 12296 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 12297#else
1bd55598 12298 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 12299#endif
1bd55598
RD
12300 }
12301 return resultobj;
12302fail:
12303 return NULL;
d55e5bfc
RD
12304}
12305
12306
1bd55598
RD
12307SWIGINTERN PyObject *_wrap_TextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12308 PyObject *resultobj = 0;
12309 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12310 void *argp1 = 0 ;
12311 int res1 = 0 ;
12312 PyObject *swig_obj[1] ;
12313
12314 if (!args) SWIG_fail;
12315 swig_obj[0] = args;
12316 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12317 if (!SWIG_IsOK(res1)) {
12318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Clear" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12319 }
12320 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12321 {
12322 PyThreadState* __tstate = wxPyBeginAllowThreads();
12323 (arg1)->Clear();
12324 wxPyEndAllowThreads(__tstate);
12325 if (PyErr_Occurred()) SWIG_fail;
12326 }
12327 resultobj = SWIG_Py_Void();
12328 return resultobj;
12329fail:
12330 return NULL;
12331}
12332
12333
12334SWIGINTERN PyObject *_wrap_TextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12335 PyObject *resultobj = 0;
12336 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12337 long arg2 ;
12338 long arg3 ;
12339 wxString *arg4 = 0 ;
12340 void *argp1 = 0 ;
12341 int res1 = 0 ;
12342 long val2 ;
12343 int ecode2 = 0 ;
12344 long val3 ;
12345 int ecode3 = 0 ;
12346 bool temp4 = false ;
12347 PyObject * obj0 = 0 ;
12348 PyObject * obj1 = 0 ;
12349 PyObject * obj2 = 0 ;
12350 PyObject * obj3 = 0 ;
12351 char * kwnames[] = {
2131d850 12352 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
1bd55598
RD
12353 };
12354
12355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12356 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12357 if (!SWIG_IsOK(res1)) {
12358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Replace" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12359 }
12360 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12361 ecode2 = SWIG_AsVal_long(obj1, &val2);
12362 if (!SWIG_IsOK(ecode2)) {
12363 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Replace" "', expected argument " "2"" of type '" "long""'");
12364 }
12365 arg2 = static_cast< long >(val2);
12366 ecode3 = SWIG_AsVal_long(obj2, &val3);
12367 if (!SWIG_IsOK(ecode3)) {
12368 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Replace" "', expected argument " "3"" of type '" "long""'");
12369 }
12370 arg3 = static_cast< long >(val3);
12371 {
12372 arg4 = wxString_in_helper(obj3);
12373 if (arg4 == NULL) SWIG_fail;
12374 temp4 = true;
12375 }
12376 {
12377 PyThreadState* __tstate = wxPyBeginAllowThreads();
12378 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
12379 wxPyEndAllowThreads(__tstate);
12380 if (PyErr_Occurred()) SWIG_fail;
12381 }
12382 resultobj = SWIG_Py_Void();
12383 {
12384 if (temp4)
12385 delete arg4;
12386 }
12387 return resultobj;
12388fail:
12389 {
12390 if (temp4)
12391 delete arg4;
12392 }
12393 return NULL;
12394}
12395
12396
12397SWIGINTERN PyObject *_wrap_TextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12398 PyObject *resultobj = 0;
12399 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12400 long arg2 ;
12401 long arg3 ;
12402 void *argp1 = 0 ;
12403 int res1 = 0 ;
12404 long val2 ;
12405 int ecode2 = 0 ;
12406 long val3 ;
12407 int ecode3 = 0 ;
12408 PyObject * obj0 = 0 ;
12409 PyObject * obj1 = 0 ;
12410 PyObject * obj2 = 0 ;
12411 char * kwnames[] = {
2131d850 12412 (char *) "self",(char *) "from",(char *) "to", NULL
1bd55598
RD
12413 };
12414
12415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12417 if (!SWIG_IsOK(res1)) {
12418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Remove" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12419 }
12420 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12421 ecode2 = SWIG_AsVal_long(obj1, &val2);
12422 if (!SWIG_IsOK(ecode2)) {
12423 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Remove" "', expected argument " "2"" of type '" "long""'");
12424 }
12425 arg2 = static_cast< long >(val2);
12426 ecode3 = SWIG_AsVal_long(obj2, &val3);
12427 if (!SWIG_IsOK(ecode3)) {
12428 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Remove" "', expected argument " "3"" of type '" "long""'");
12429 }
12430 arg3 = static_cast< long >(val3);
12431 {
12432 PyThreadState* __tstate = wxPyBeginAllowThreads();
12433 (arg1)->Remove(arg2,arg3);
12434 wxPyEndAllowThreads(__tstate);
12435 if (PyErr_Occurred()) SWIG_fail;
12436 }
12437 resultobj = SWIG_Py_Void();
12438 return resultobj;
12439fail:
12440 return NULL;
12441}
12442
12443
12444SWIGINTERN PyObject *_wrap_TextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12445 PyObject *resultobj = 0;
12446 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12447 wxString *arg2 = 0 ;
f5263701 12448 int arg3 = (int) wxTEXT_TYPE_ANY ;
1bd55598
RD
12449 bool result;
12450 void *argp1 = 0 ;
12451 int res1 = 0 ;
12452 bool temp2 = false ;
f5263701
RD
12453 int val3 ;
12454 int ecode3 = 0 ;
1bd55598
RD
12455 PyObject * obj0 = 0 ;
12456 PyObject * obj1 = 0 ;
f5263701 12457 PyObject * obj2 = 0 ;
1bd55598 12458 char * kwnames[] = {
f5263701 12459 (char *) "self",(char *) "file",(char *) "fileType", NULL
1bd55598
RD
12460 };
12461
f5263701 12462 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextCtrl_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
1bd55598
RD
12463 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12464 if (!SWIG_IsOK(res1)) {
12465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12466 }
12467 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12468 {
12469 arg2 = wxString_in_helper(obj1);
12470 if (arg2 == NULL) SWIG_fail;
12471 temp2 = true;
12472 }
f5263701
RD
12473 if (obj2) {
12474 ecode3 = SWIG_AsVal_int(obj2, &val3);
12475 if (!SWIG_IsOK(ecode3)) {
12476 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_LoadFile" "', expected argument " "3"" of type '" "int""'");
12477 }
12478 arg3 = static_cast< int >(val3);
12479 }
1bd55598
RD
12480 {
12481 PyThreadState* __tstate = wxPyBeginAllowThreads();
f5263701 12482 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
1bd55598
RD
12483 wxPyEndAllowThreads(__tstate);
12484 if (PyErr_Occurred()) SWIG_fail;
12485 }
12486 {
12487 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12488 }
12489 {
12490 if (temp2)
12491 delete arg2;
12492 }
12493 return resultobj;
12494fail:
12495 {
12496 if (temp2)
12497 delete arg2;
12498 }
12499 return NULL;
12500}
12501
12502
12503SWIGINTERN PyObject *_wrap_TextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12504 PyObject *resultobj = 0;
12505 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12506 wxString const &arg2_defvalue = wxPyEmptyString ;
12507 wxString *arg2 = (wxString *) &arg2_defvalue ;
f5263701 12508 int arg3 = (int) wxTEXT_TYPE_ANY ;
1bd55598
RD
12509 bool result;
12510 void *argp1 = 0 ;
12511 int res1 = 0 ;
12512 bool temp2 = false ;
f5263701
RD
12513 int val3 ;
12514 int ecode3 = 0 ;
1bd55598
RD
12515 PyObject * obj0 = 0 ;
12516 PyObject * obj1 = 0 ;
f5263701 12517 PyObject * obj2 = 0 ;
1bd55598 12518 char * kwnames[] = {
f5263701 12519 (char *) "self",(char *) "file",(char *) "fileType", NULL
1bd55598
RD
12520 };
12521
f5263701 12522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:TextCtrl_SaveFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
1bd55598
RD
12523 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12524 if (!SWIG_IsOK(res1)) {
12525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12526 }
12527 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12528 if (obj1) {
d55e5bfc 12529 {
1bd55598
RD
12530 arg2 = wxString_in_helper(obj1);
12531 if (arg2 == NULL) SWIG_fail;
12532 temp2 = true;
d55e5bfc 12533 }
1bd55598 12534 }
f5263701
RD
12535 if (obj2) {
12536 ecode3 = SWIG_AsVal_int(obj2, &val3);
12537 if (!SWIG_IsOK(ecode3)) {
12538 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SaveFile" "', expected argument " "3"" of type '" "int""'");
12539 }
12540 arg3 = static_cast< int >(val3);
12541 }
1bd55598
RD
12542 {
12543 PyThreadState* __tstate = wxPyBeginAllowThreads();
f5263701 12544 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3);
1bd55598
RD
12545 wxPyEndAllowThreads(__tstate);
12546 if (PyErr_Occurred()) SWIG_fail;
12547 }
12548 {
12549 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12550 }
12551 {
12552 if (temp2)
12553 delete arg2;
12554 }
12555 return resultobj;
12556fail:
12557 {
12558 if (temp2)
12559 delete arg2;
12560 }
12561 return NULL;
d55e5bfc
RD
12562}
12563
12564
1bd55598
RD
12565SWIGINTERN PyObject *_wrap_TextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12566 PyObject *resultobj = 0;
12567 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12568 void *argp1 = 0 ;
12569 int res1 = 0 ;
12570 PyObject *swig_obj[1] ;
12571
12572 if (!args) SWIG_fail;
12573 swig_obj[0] = args;
12574 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12575 if (!SWIG_IsOK(res1)) {
12576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12577 }
12578 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12579 {
12580 PyThreadState* __tstate = wxPyBeginAllowThreads();
12581 (arg1)->MarkDirty();
12582 wxPyEndAllowThreads(__tstate);
12583 if (PyErr_Occurred()) SWIG_fail;
12584 }
12585 resultobj = SWIG_Py_Void();
12586 return resultobj;
12587fail:
12588 return NULL;
d55e5bfc
RD
12589}
12590
12591
1bd55598
RD
12592SWIGINTERN PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12593 PyObject *resultobj = 0;
12594 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12595 void *argp1 = 0 ;
12596 int res1 = 0 ;
12597 PyObject *swig_obj[1] ;
12598
12599 if (!args) SWIG_fail;
12600 swig_obj[0] = args;
12601 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12602 if (!SWIG_IsOK(res1)) {
12603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12604 }
12605 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12606 {
12607 PyThreadState* __tstate = wxPyBeginAllowThreads();
12608 (arg1)->DiscardEdits();
12609 wxPyEndAllowThreads(__tstate);
12610 if (PyErr_Occurred()) SWIG_fail;
12611 }
12612 resultobj = SWIG_Py_Void();
12613 return resultobj;
12614fail:
12615 return NULL;
12616}
12617
12618
b02396e8
RD
12619SWIGINTERN PyObject *_wrap_TextCtrl_SetModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12620 PyObject *resultobj = 0;
12621 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12622 bool arg2 ;
12623 void *argp1 = 0 ;
12624 int res1 = 0 ;
12625 bool val2 ;
12626 int ecode2 = 0 ;
12627 PyObject * obj0 = 0 ;
12628 PyObject * obj1 = 0 ;
12629 char * kwnames[] = {
12630 (char *) "self",(char *) "modified", NULL
12631 };
12632
12633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetModified",kwnames,&obj0,&obj1)) SWIG_fail;
12634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12635 if (!SWIG_IsOK(res1)) {
12636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetModified" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12637 }
12638 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12639 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12640 if (!SWIG_IsOK(ecode2)) {
12641 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetModified" "', expected argument " "2"" of type '" "bool""'");
12642 }
12643 arg2 = static_cast< bool >(val2);
12644 {
12645 PyThreadState* __tstate = wxPyBeginAllowThreads();
12646 (arg1)->SetModified(arg2);
12647 wxPyEndAllowThreads(__tstate);
12648 if (PyErr_Occurred()) SWIG_fail;
12649 }
12650 resultobj = SWIG_Py_Void();
12651 return resultobj;
12652fail:
12653 return NULL;
12654}
12655
12656
1bd55598
RD
12657SWIGINTERN PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12658 PyObject *resultobj = 0;
12659 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12660 unsigned long arg2 ;
12661 void *argp1 = 0 ;
12662 int res1 = 0 ;
12663 unsigned long val2 ;
12664 int ecode2 = 0 ;
12665 PyObject * obj0 = 0 ;
12666 PyObject * obj1 = 0 ;
12667 char * kwnames[] = {
12668 (char *) "self",(char *) "len", NULL
12669 };
12670
12671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail;
12672 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12673 if (!SWIG_IsOK(res1)) {
12674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12675 }
12676 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12677 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
12678 if (!SWIG_IsOK(ecode2)) {
12679 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'");
12680 }
12681 arg2 = static_cast< unsigned long >(val2);
12682 {
12683 PyThreadState* __tstate = wxPyBeginAllowThreads();
12684 (arg1)->SetMaxLength(arg2);
12685 wxPyEndAllowThreads(__tstate);
12686 if (PyErr_Occurred()) SWIG_fail;
12687 }
12688 resultobj = SWIG_Py_Void();
12689 return resultobj;
12690fail:
12691 return NULL;
12692}
12693
12694
12695SWIGINTERN PyObject *_wrap_TextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12696 PyObject *resultobj = 0;
12697 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12698 wxString *arg2 = 0 ;
12699 void *argp1 = 0 ;
12700 int res1 = 0 ;
12701 bool temp2 = false ;
12702 PyObject * obj0 = 0 ;
12703 PyObject * obj1 = 0 ;
12704 char * kwnames[] = {
12705 (char *) "self",(char *) "text", NULL
12706 };
12707
12708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail;
12709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12710 if (!SWIG_IsOK(res1)) {
12711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_WriteText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12712 }
12713 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12714 {
12715 arg2 = wxString_in_helper(obj1);
12716 if (arg2 == NULL) SWIG_fail;
12717 temp2 = true;
12718 }
12719 {
12720 PyThreadState* __tstate = wxPyBeginAllowThreads();
12721 (arg1)->WriteText((wxString const &)*arg2);
12722 wxPyEndAllowThreads(__tstate);
12723 if (PyErr_Occurred()) SWIG_fail;
12724 }
12725 resultobj = SWIG_Py_Void();
12726 {
12727 if (temp2)
12728 delete arg2;
12729 }
12730 return resultobj;
12731fail:
12732 {
12733 if (temp2)
12734 delete arg2;
12735 }
12736 return NULL;
d55e5bfc
RD
12737}
12738
12739
1bd55598
RD
12740SWIGINTERN PyObject *_wrap_TextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12741 PyObject *resultobj = 0;
12742 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12743 wxString *arg2 = 0 ;
12744 void *argp1 = 0 ;
12745 int res1 = 0 ;
12746 bool temp2 = false ;
12747 PyObject * obj0 = 0 ;
12748 PyObject * obj1 = 0 ;
12749 char * kwnames[] = {
12750 (char *) "self",(char *) "text", NULL
12751 };
12752
12753 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail;
12754 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12755 if (!SWIG_IsOK(res1)) {
12756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_AppendText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12757 }
12758 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12759 {
12760 arg2 = wxString_in_helper(obj1);
12761 if (arg2 == NULL) SWIG_fail;
12762 temp2 = true;
12763 }
12764 {
12765 PyThreadState* __tstate = wxPyBeginAllowThreads();
12766 (arg1)->AppendText((wxString const &)*arg2);
12767 wxPyEndAllowThreads(__tstate);
12768 if (PyErr_Occurred()) SWIG_fail;
12769 }
12770 resultobj = SWIG_Py_Void();
12771 {
12772 if (temp2)
12773 delete arg2;
12774 }
12775 return resultobj;
12776fail:
12777 {
12778 if (temp2)
12779 delete arg2;
12780 }
12781 return NULL;
12782}
12783
12784
12785SWIGINTERN PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12786 PyObject *resultobj = 0;
12787 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12788 wxKeyEvent *arg2 = 0 ;
12789 bool result;
12790 void *argp1 = 0 ;
12791 int res1 = 0 ;
12792 void *argp2 = 0 ;
12793 int res2 = 0 ;
12794 PyObject * obj0 = 0 ;
12795 PyObject * obj1 = 0 ;
12796 char * kwnames[] = {
12797 (char *) "self",(char *) "event", NULL
12798 };
12799
12800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) SWIG_fail;
12801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12802 if (!SWIG_IsOK(res1)) {
12803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12804 }
12805 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12806 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
12807 if (!SWIG_IsOK(res2)) {
12808 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12809 }
12810 if (!argp2) {
12811 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12812 }
12813 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
12814 {
12815 PyThreadState* __tstate = wxPyBeginAllowThreads();
12816 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
12817 wxPyEndAllowThreads(__tstate);
12818 if (PyErr_Occurred()) SWIG_fail;
12819 }
12820 {
12821 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12822 }
12823 return resultobj;
12824fail:
12825 return NULL;
12826}
12827
12828
12829SWIGINTERN PyObject *_wrap_TextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12830 PyObject *resultobj = 0;
12831 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12832 long arg2 ;
12833 long arg3 ;
12834 wxTextAttr *arg4 = 0 ;
12835 bool result;
12836 void *argp1 = 0 ;
12837 int res1 = 0 ;
12838 long val2 ;
12839 int ecode2 = 0 ;
12840 long val3 ;
12841 int ecode3 = 0 ;
12842 void *argp4 = 0 ;
12843 int res4 = 0 ;
12844 PyObject * obj0 = 0 ;
12845 PyObject * obj1 = 0 ;
12846 PyObject * obj2 = 0 ;
12847 PyObject * obj3 = 0 ;
12848 char * kwnames[] = {
12849 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
12850 };
12851
12852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12853 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12854 if (!SWIG_IsOK(res1)) {
12855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12856 }
12857 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12858 ecode2 = SWIG_AsVal_long(obj1, &val2);
12859 if (!SWIG_IsOK(ecode2)) {
12860 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetStyle" "', expected argument " "2"" of type '" "long""'");
12861 }
12862 arg2 = static_cast< long >(val2);
12863 ecode3 = SWIG_AsVal_long(obj2, &val3);
12864 if (!SWIG_IsOK(ecode3)) {
12865 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetStyle" "', expected argument " "3"" of type '" "long""'");
12866 }
12867 arg3 = static_cast< long >(val3);
12868 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxTextAttr, 0 | 0);
12869 if (!SWIG_IsOK(res4)) {
12870 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12871 }
12872 if (!argp4) {
12873 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12874 }
12875 arg4 = reinterpret_cast< wxTextAttr * >(argp4);
12876 {
12877 PyThreadState* __tstate = wxPyBeginAllowThreads();
12878 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
12879 wxPyEndAllowThreads(__tstate);
12880 if (PyErr_Occurred()) SWIG_fail;
12881 }
12882 {
12883 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12884 }
12885 return resultobj;
12886fail:
12887 return NULL;
12888}
12889
12890
12891SWIGINTERN PyObject *_wrap_TextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12892 PyObject *resultobj = 0;
12893 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12894 long arg2 ;
12895 wxTextAttr *arg3 = 0 ;
12896 bool result;
12897 void *argp1 = 0 ;
12898 int res1 = 0 ;
12899 long val2 ;
12900 int ecode2 = 0 ;
12901 void *argp3 = 0 ;
12902 int res3 = 0 ;
12903 PyObject * obj0 = 0 ;
12904 PyObject * obj1 = 0 ;
12905 PyObject * obj2 = 0 ;
12906 char * kwnames[] = {
12907 (char *) "self",(char *) "position",(char *) "style", NULL
12908 };
12909
12910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12912 if (!SWIG_IsOK(res1)) {
12913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12914 }
12915 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12916 ecode2 = SWIG_AsVal_long(obj1, &val2);
12917 if (!SWIG_IsOK(ecode2)) {
12918 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'");
12919 }
12920 arg2 = static_cast< long >(val2);
12921 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTextAttr, 0 );
12922 if (!SWIG_IsOK(res3)) {
12923 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12924 }
12925 if (!argp3) {
12926 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12927 }
12928 arg3 = reinterpret_cast< wxTextAttr * >(argp3);
12929 {
12930 PyThreadState* __tstate = wxPyBeginAllowThreads();
12931 result = (bool)(arg1)->GetStyle(arg2,*arg3);
12932 wxPyEndAllowThreads(__tstate);
12933 if (PyErr_Occurred()) SWIG_fail;
12934 }
12935 {
12936 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12937 }
12938 return resultobj;
12939fail:
12940 return NULL;
12941}
12942
12943
12944SWIGINTERN PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12945 PyObject *resultobj = 0;
12946 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12947 wxTextAttr *arg2 = 0 ;
12948 bool result;
12949 void *argp1 = 0 ;
12950 int res1 = 0 ;
12951 void *argp2 = 0 ;
12952 int res2 = 0 ;
12953 PyObject * obj0 = 0 ;
12954 PyObject * obj1 = 0 ;
12955 char * kwnames[] = {
12956 (char *) "self",(char *) "style", NULL
12957 };
12958
12959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12961 if (!SWIG_IsOK(res1)) {
12962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12963 }
12964 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12965 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
12966 if (!SWIG_IsOK(res2)) {
12967 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12968 }
12969 if (!argp2) {
12970 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12971 }
12972 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
12973 {
12974 PyThreadState* __tstate = wxPyBeginAllowThreads();
12975 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
12976 wxPyEndAllowThreads(__tstate);
12977 if (PyErr_Occurred()) SWIG_fail;
12978 }
12979 {
12980 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12981 }
12982 return resultobj;
12983fail:
12984 return NULL;
d55e5bfc
RD
12985}
12986
12987
1bd55598
RD
12988SWIGINTERN PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12989 PyObject *resultobj = 0;
12990 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12991 wxTextAttr *result = 0 ;
12992 void *argp1 = 0 ;
12993 int res1 = 0 ;
12994 PyObject *swig_obj[1] ;
12995
12996 if (!args) SWIG_fail;
12997 swig_obj[0] = args;
12998 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12999 if (!SWIG_IsOK(res1)) {
13000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13001 }
13002 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13003 {
13004 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 13005 {
1bd55598
RD
13006 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
13007 result = (wxTextAttr *) &_result_ref;
d55e5bfc 13008 }
1bd55598
RD
13009 wxPyEndAllowThreads(__tstate);
13010 if (PyErr_Occurred()) SWIG_fail;
13011 }
13012 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, 0 | 0 );
13013 return resultobj;
13014fail:
13015 return NULL;
13016}
13017
13018
13019SWIGINTERN PyObject *_wrap_TextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13020 PyObject *resultobj = 0;
13021 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13022 long arg2 ;
13023 long arg3 ;
13024 long result;
13025 void *argp1 = 0 ;
13026 int res1 = 0 ;
13027 long val2 ;
13028 int ecode2 = 0 ;
13029 long val3 ;
13030 int ecode3 = 0 ;
13031 PyObject * obj0 = 0 ;
13032 PyObject * obj1 = 0 ;
13033 PyObject * obj2 = 0 ;
13034 char * kwnames[] = {
13035 (char *) "self",(char *) "x",(char *) "y", NULL
13036 };
13037
13038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13039 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13040 if (!SWIG_IsOK(res1)) {
13041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13042 }
13043 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13044 ecode2 = SWIG_AsVal_long(obj1, &val2);
13045 if (!SWIG_IsOK(ecode2)) {
13046 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'");
13047 }
13048 arg2 = static_cast< long >(val2);
13049 ecode3 = SWIG_AsVal_long(obj2, &val3);
13050 if (!SWIG_IsOK(ecode3)) {
13051 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'");
13052 }
13053 arg3 = static_cast< long >(val3);
13054 {
13055 PyThreadState* __tstate = wxPyBeginAllowThreads();
13056 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
13057 wxPyEndAllowThreads(__tstate);
13058 if (PyErr_Occurred()) SWIG_fail;
13059 }
13060 resultobj = SWIG_From_long(static_cast< long >(result));
13061 return resultobj;
13062fail:
13063 return NULL;
13064}
13065
13066
13067SWIGINTERN PyObject *_wrap_TextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13068 PyObject *resultobj = 0;
13069 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13070 long arg2 ;
13071 long *arg3 = (long *) 0 ;
13072 long *arg4 = (long *) 0 ;
13073 void *argp1 = 0 ;
13074 int res1 = 0 ;
13075 long val2 ;
13076 int ecode2 = 0 ;
13077 long temp3 ;
13078 int res3 = SWIG_TMPOBJ ;
13079 long temp4 ;
13080 int res4 = SWIG_TMPOBJ ;
13081 PyObject * obj0 = 0 ;
13082 PyObject * obj1 = 0 ;
13083 char * kwnames[] = {
13084 (char *) "self",(char *) "pos", NULL
13085 };
13086
13087 arg3 = &temp3;
13088 arg4 = &temp4;
13089 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail;
13090 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13091 if (!SWIG_IsOK(res1)) {
13092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13093 }
13094 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13095 ecode2 = SWIG_AsVal_long(obj1, &val2);
13096 if (!SWIG_IsOK(ecode2)) {
13097 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'");
13098 }
13099 arg2 = static_cast< long >(val2);
13100 {
13101 PyThreadState* __tstate = wxPyBeginAllowThreads();
13102 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
13103 wxPyEndAllowThreads(__tstate);
13104 if (PyErr_Occurred()) SWIG_fail;
13105 }
13106 resultobj = SWIG_Py_Void();
13107 if (SWIG_IsTmpObj(res3)) {
13108 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13109 } else {
13110 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13111 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13112 }
13113 if (SWIG_IsTmpObj(res4)) {
13114 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13115 } else {
13116 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13117 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13118 }
13119 return resultobj;
13120fail:
13121 return NULL;
13122}
13123
13124
13125SWIGINTERN PyObject *_wrap_TextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13126 PyObject *resultobj = 0;
13127 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13128 long arg2 ;
13129 void *argp1 = 0 ;
13130 int res1 = 0 ;
13131 long val2 ;
13132 int ecode2 = 0 ;
13133 PyObject * obj0 = 0 ;
13134 PyObject * obj1 = 0 ;
13135 char * kwnames[] = {
13136 (char *) "self",(char *) "pos", NULL
13137 };
13138
13139 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail;
13140 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13141 if (!SWIG_IsOK(res1)) {
13142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13143 }
13144 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13145 ecode2 = SWIG_AsVal_long(obj1, &val2);
13146 if (!SWIG_IsOK(ecode2)) {
13147 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'");
13148 }
13149 arg2 = static_cast< long >(val2);
13150 {
13151 PyThreadState* __tstate = wxPyBeginAllowThreads();
13152 (arg1)->ShowPosition(arg2);
13153 wxPyEndAllowThreads(__tstate);
13154 if (PyErr_Occurred()) SWIG_fail;
13155 }
13156 resultobj = SWIG_Py_Void();
13157 return resultobj;
13158fail:
13159 return NULL;
13160}
13161
13162
13163SWIGINTERN PyObject *_wrap_TextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13164 PyObject *resultobj = 0;
13165 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13166 wxPoint *arg2 = 0 ;
13167 long *arg3 = (long *) 0 ;
13168 long *arg4 = (long *) 0 ;
13169 wxTextCtrlHitTestResult result;
13170 void *argp1 = 0 ;
13171 int res1 = 0 ;
13172 wxPoint temp2 ;
13173 long temp3 ;
13174 int res3 = SWIG_TMPOBJ ;
13175 long temp4 ;
13176 int res4 = SWIG_TMPOBJ ;
13177 PyObject * obj0 = 0 ;
13178 PyObject * obj1 = 0 ;
13179 char * kwnames[] = {
13180 (char *) "self",(char *) "pt", NULL
13181 };
13182
13183 arg3 = &temp3;
13184 arg4 = &temp4;
13185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
13186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13187 if (!SWIG_IsOK(res1)) {
13188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTest" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13189 }
13190 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13191 {
13192 arg2 = &temp2;
13193 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13194 }
13195 {
13196 PyThreadState* __tstate = wxPyBeginAllowThreads();
13197 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
13198 wxPyEndAllowThreads(__tstate);
13199 if (PyErr_Occurred()) SWIG_fail;
13200 }
13201 resultobj = SWIG_From_int(static_cast< int >(result));
13202 if (SWIG_IsTmpObj(res3)) {
13203 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13204 } else {
13205 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13206 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13207 }
13208 if (SWIG_IsTmpObj(res4)) {
13209 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13210 } else {
13211 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13212 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13213 }
13214 return resultobj;
13215fail:
13216 return NULL;
13217}
13218
13219
13220SWIGINTERN PyObject *_wrap_TextCtrl_HitTestPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13221 PyObject *resultobj = 0;
13222 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13223 wxPoint *arg2 = 0 ;
13224 long *arg3 = (long *) 0 ;
13225 wxTextCtrlHitTestResult result;
13226 void *argp1 = 0 ;
13227 int res1 = 0 ;
13228 wxPoint temp2 ;
13229 long temp3 ;
13230 int res3 = SWIG_TMPOBJ ;
13231 PyObject * obj0 = 0 ;
13232 PyObject * obj1 = 0 ;
13233 char * kwnames[] = {
13234 (char *) "self",(char *) "pt", NULL
13235 };
13236
13237 arg3 = &temp3;
13238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) SWIG_fail;
13239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13240 if (!SWIG_IsOK(res1)) {
13241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTestPos" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13242 }
13243 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13244 {
13245 arg2 = &temp2;
13246 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13247 }
13248 {
13249 PyThreadState* __tstate = wxPyBeginAllowThreads();
13250 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
13251 wxPyEndAllowThreads(__tstate);
13252 if (PyErr_Occurred()) SWIG_fail;
13253 }
13254 resultobj = SWIG_From_int(static_cast< int >(result));
13255 if (SWIG_IsTmpObj(res3)) {
13256 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13257 } else {
13258 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13259 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13260 }
13261 return resultobj;
13262fail:
13263 return NULL;
d55e5bfc
RD
13264}
13265
13266
1bd55598
RD
13267SWIGINTERN PyObject *_wrap_TextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13268 PyObject *resultobj = 0;
13269 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13270 void *argp1 = 0 ;
13271 int res1 = 0 ;
13272 PyObject *swig_obj[1] ;
13273
13274 if (!args) SWIG_fail;
13275 swig_obj[0] = args;
13276 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13277 if (!SWIG_IsOK(res1)) {
13278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Copy" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13279 }
13280 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13281 {
13282 PyThreadState* __tstate = wxPyBeginAllowThreads();
13283 (arg1)->Copy();
13284 wxPyEndAllowThreads(__tstate);
13285 if (PyErr_Occurred()) SWIG_fail;
13286 }
13287 resultobj = SWIG_Py_Void();
13288 return resultobj;
13289fail:
13290 return NULL;
d55e5bfc
RD
13291}
13292
13293
1bd55598
RD
13294SWIGINTERN PyObject *_wrap_TextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13295 PyObject *resultobj = 0;
13296 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13297 void *argp1 = 0 ;
13298 int res1 = 0 ;
13299 PyObject *swig_obj[1] ;
13300
13301 if (!args) SWIG_fail;
13302 swig_obj[0] = args;
13303 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13304 if (!SWIG_IsOK(res1)) {
13305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Cut" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13306 }
13307 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13308 {
13309 PyThreadState* __tstate = wxPyBeginAllowThreads();
13310 (arg1)->Cut();
13311 wxPyEndAllowThreads(__tstate);
13312 if (PyErr_Occurred()) SWIG_fail;
13313 }
13314 resultobj = SWIG_Py_Void();
13315 return resultobj;
13316fail:
13317 return NULL;
d55e5bfc
RD
13318}
13319
13320
1bd55598
RD
13321SWIGINTERN PyObject *_wrap_TextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13322 PyObject *resultobj = 0;
13323 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13324 void *argp1 = 0 ;
13325 int res1 = 0 ;
13326 PyObject *swig_obj[1] ;
13327
13328 if (!args) SWIG_fail;
13329 swig_obj[0] = args;
13330 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13331 if (!SWIG_IsOK(res1)) {
13332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Paste" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13333 }
13334 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13335 {
13336 PyThreadState* __tstate = wxPyBeginAllowThreads();
13337 (arg1)->Paste();
13338 wxPyEndAllowThreads(__tstate);
13339 if (PyErr_Occurred()) SWIG_fail;
13340 }
13341 resultobj = SWIG_Py_Void();
13342 return resultobj;
13343fail:
13344 return NULL;
d55e5bfc
RD
13345}
13346
13347
1bd55598
RD
13348SWIGINTERN PyObject *_wrap_TextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13349 PyObject *resultobj = 0;
13350 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13351 bool result;
13352 void *argp1 = 0 ;
13353 int res1 = 0 ;
13354 PyObject *swig_obj[1] ;
13355
13356 if (!args) SWIG_fail;
13357 swig_obj[0] = args;
13358 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13359 if (!SWIG_IsOK(res1)) {
13360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13361 }
13362 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13363 {
13364 PyThreadState* __tstate = wxPyBeginAllowThreads();
13365 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
13366 wxPyEndAllowThreads(__tstate);
13367 if (PyErr_Occurred()) SWIG_fail;
13368 }
13369 {
13370 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13371 }
13372 return resultobj;
13373fail:
13374 return NULL;
d55e5bfc
RD
13375}
13376
13377
1bd55598
RD
13378SWIGINTERN PyObject *_wrap_TextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13379 PyObject *resultobj = 0;
13380 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13381 bool result;
13382 void *argp1 = 0 ;
13383 int res1 = 0 ;
13384 PyObject *swig_obj[1] ;
13385
13386 if (!args) SWIG_fail;
13387 swig_obj[0] = args;
13388 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13389 if (!SWIG_IsOK(res1)) {
13390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCut" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13391 }
13392 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13393 {
13394 PyThreadState* __tstate = wxPyBeginAllowThreads();
13395 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
13396 wxPyEndAllowThreads(__tstate);
13397 if (PyErr_Occurred()) SWIG_fail;
13398 }
13399 {
13400 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13401 }
13402 return resultobj;
13403fail:
13404 return NULL;
d55e5bfc
RD
13405}
13406
13407
1bd55598
RD
13408SWIGINTERN PyObject *_wrap_TextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13409 PyObject *resultobj = 0;
13410 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13411 bool result;
13412 void *argp1 = 0 ;
13413 int res1 = 0 ;
13414 PyObject *swig_obj[1] ;
13415
13416 if (!args) SWIG_fail;
13417 swig_obj[0] = args;
13418 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13419 if (!SWIG_IsOK(res1)) {
13420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13421 }
13422 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13423 {
13424 PyThreadState* __tstate = wxPyBeginAllowThreads();
13425 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
13426 wxPyEndAllowThreads(__tstate);
13427 if (PyErr_Occurred()) SWIG_fail;
13428 }
13429 {
13430 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13431 }
13432 return resultobj;
13433fail:
13434 return NULL;
d55e5bfc
RD
13435}
13436
13437
1bd55598
RD
13438SWIGINTERN PyObject *_wrap_TextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13439 PyObject *resultobj = 0;
13440 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13441 void *argp1 = 0 ;
13442 int res1 = 0 ;
13443 PyObject *swig_obj[1] ;
13444
13445 if (!args) SWIG_fail;
13446 swig_obj[0] = args;
13447 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13448 if (!SWIG_IsOK(res1)) {
13449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Undo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13450 }
13451 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13452 {
13453 PyThreadState* __tstate = wxPyBeginAllowThreads();
13454 (arg1)->Undo();
13455 wxPyEndAllowThreads(__tstate);
13456 if (PyErr_Occurred()) SWIG_fail;
13457 }
13458 resultobj = SWIG_Py_Void();
13459 return resultobj;
13460fail:
13461 return NULL;
d55e5bfc
RD
13462}
13463
13464
1bd55598
RD
13465SWIGINTERN PyObject *_wrap_TextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13466 PyObject *resultobj = 0;
13467 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13468 void *argp1 = 0 ;
13469 int res1 = 0 ;
13470 PyObject *swig_obj[1] ;
13471
13472 if (!args) SWIG_fail;
13473 swig_obj[0] = args;
13474 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13475 if (!SWIG_IsOK(res1)) {
13476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Redo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13477 }
13478 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13479 {
13480 PyThreadState* __tstate = wxPyBeginAllowThreads();
13481 (arg1)->Redo();
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_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13493 PyObject *resultobj = 0;
13494 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13495 bool result;
13496 void *argp1 = 0 ;
13497 int res1 = 0 ;
13498 PyObject *swig_obj[1] ;
13499
13500 if (!args) SWIG_fail;
13501 swig_obj[0] = args;
13502 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13503 if (!SWIG_IsOK(res1)) {
13504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13505 }
13506 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13507 {
13508 PyThreadState* __tstate = wxPyBeginAllowThreads();
13509 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
13510 wxPyEndAllowThreads(__tstate);
13511 if (PyErr_Occurred()) SWIG_fail;
13512 }
13513 {
13514 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13515 }
13516 return resultobj;
13517fail:
13518 return NULL;
d55e5bfc
RD
13519}
13520
13521
1bd55598
RD
13522SWIGINTERN PyObject *_wrap_TextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13523 PyObject *resultobj = 0;
13524 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13525 bool result;
13526 void *argp1 = 0 ;
13527 int res1 = 0 ;
13528 PyObject *swig_obj[1] ;
13529
13530 if (!args) SWIG_fail;
13531 swig_obj[0] = args;
13532 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13533 if (!SWIG_IsOK(res1)) {
13534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13535 }
13536 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13537 {
13538 PyThreadState* __tstate = wxPyBeginAllowThreads();
13539 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
13540 wxPyEndAllowThreads(__tstate);
13541 if (PyErr_Occurred()) SWIG_fail;
13542 }
13543 {
13544 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13545 }
13546 return resultobj;
13547fail:
13548 return NULL;
13549}
13550
13551
13552SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13553 PyObject *resultobj = 0;
13554 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13555 long arg2 ;
13556 void *argp1 = 0 ;
13557 int res1 = 0 ;
13558 long val2 ;
13559 int ecode2 = 0 ;
13560 PyObject * obj0 = 0 ;
13561 PyObject * obj1 = 0 ;
13562 char * kwnames[] = {
13563 (char *) "self",(char *) "pos", NULL
13564 };
13565
13566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
13567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13568 if (!SWIG_IsOK(res1)) {
13569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13570 }
13571 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13572 ecode2 = SWIG_AsVal_long(obj1, &val2);
13573 if (!SWIG_IsOK(ecode2)) {
13574 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
13575 }
13576 arg2 = static_cast< long >(val2);
13577 {
13578 PyThreadState* __tstate = wxPyBeginAllowThreads();
13579 (arg1)->SetInsertionPoint(arg2);
13580 wxPyEndAllowThreads(__tstate);
13581 if (PyErr_Occurred()) SWIG_fail;
13582 }
13583 resultobj = SWIG_Py_Void();
13584 return resultobj;
13585fail:
13586 return NULL;
d55e5bfc
RD
13587}
13588
13589
1bd55598
RD
13590SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13591 PyObject *resultobj = 0;
13592 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13593 void *argp1 = 0 ;
13594 int res1 = 0 ;
13595 PyObject *swig_obj[1] ;
13596
13597 if (!args) SWIG_fail;
13598 swig_obj[0] = args;
13599 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13600 if (!SWIG_IsOK(res1)) {
13601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13602 }
13603 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13604 {
13605 PyThreadState* __tstate = wxPyBeginAllowThreads();
13606 (arg1)->SetInsertionPointEnd();
13607 wxPyEndAllowThreads(__tstate);
13608 if (PyErr_Occurred()) SWIG_fail;
13609 }
13610 resultobj = SWIG_Py_Void();
13611 return resultobj;
13612fail:
13613 return NULL;
d55e5bfc
RD
13614}
13615
13616
1bd55598
RD
13617SWIGINTERN PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13618 PyObject *resultobj = 0;
13619 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13620 long result;
13621 void *argp1 = 0 ;
13622 int res1 = 0 ;
13623 PyObject *swig_obj[1] ;
13624
13625 if (!args) SWIG_fail;
13626 swig_obj[0] = args;
13627 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13628 if (!SWIG_IsOK(res1)) {
13629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13630 }
13631 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13632 {
13633 PyThreadState* __tstate = wxPyBeginAllowThreads();
13634 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
13635 wxPyEndAllowThreads(__tstate);
13636 if (PyErr_Occurred()) SWIG_fail;
13637 }
13638 resultobj = SWIG_From_long(static_cast< long >(result));
13639 return resultobj;
13640fail:
13641 return NULL;
d55e5bfc
RD
13642}
13643
13644
1bd55598
RD
13645SWIGINTERN PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13646 PyObject *resultobj = 0;
13647 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13648 long result;
13649 void *argp1 = 0 ;
13650 int res1 = 0 ;
13651 PyObject *swig_obj[1] ;
13652
13653 if (!args) SWIG_fail;
13654 swig_obj[0] = args;
13655 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13656 if (!SWIG_IsOK(res1)) {
13657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13658 }
13659 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13660 {
13661 PyThreadState* __tstate = wxPyBeginAllowThreads();
13662 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
13663 wxPyEndAllowThreads(__tstate);
13664 if (PyErr_Occurred()) SWIG_fail;
13665 }
13666 resultobj = SWIG_From_long(static_cast< long >(result));
13667 return resultobj;
13668fail:
13669 return NULL;
13670}
13671
13672
13673SWIGINTERN PyObject *_wrap_TextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13674 PyObject *resultobj = 0;
13675 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13676 long arg2 ;
13677 long arg3 ;
13678 void *argp1 = 0 ;
13679 int res1 = 0 ;
13680 long val2 ;
13681 int ecode2 = 0 ;
13682 long val3 ;
13683 int ecode3 = 0 ;
13684 PyObject * obj0 = 0 ;
13685 PyObject * obj1 = 0 ;
13686 PyObject * obj2 = 0 ;
13687 char * kwnames[] = {
2131d850 13688 (char *) "self",(char *) "from",(char *) "to", NULL
1bd55598
RD
13689 };
13690
13691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13693 if (!SWIG_IsOK(res1)) {
13694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13695 }
13696 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13697 ecode2 = SWIG_AsVal_long(obj1, &val2);
13698 if (!SWIG_IsOK(ecode2)) {
13699 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
13700 }
13701 arg2 = static_cast< long >(val2);
13702 ecode3 = SWIG_AsVal_long(obj2, &val3);
13703 if (!SWIG_IsOK(ecode3)) {
13704 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
13705 }
13706 arg3 = static_cast< long >(val3);
13707 {
13708 PyThreadState* __tstate = wxPyBeginAllowThreads();
13709 (arg1)->SetSelection(arg2,arg3);
13710 wxPyEndAllowThreads(__tstate);
13711 if (PyErr_Occurred()) SWIG_fail;
13712 }
13713 resultobj = SWIG_Py_Void();
13714 return resultobj;
13715fail:
13716 return NULL;
d55e5bfc
RD
13717}
13718
13719
1bd55598
RD
13720SWIGINTERN PyObject *_wrap_TextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13721 PyObject *resultobj = 0;
13722 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13723 void *argp1 = 0 ;
13724 int res1 = 0 ;
13725 PyObject *swig_obj[1] ;
13726
13727 if (!args) SWIG_fail;
13728 swig_obj[0] = args;
13729 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13730 if (!SWIG_IsOK(res1)) {
13731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13732 }
13733 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13734 {
13735 PyThreadState* __tstate = wxPyBeginAllowThreads();
13736 (arg1)->SelectAll();
13737 wxPyEndAllowThreads(__tstate);
13738 if (PyErr_Occurred()) SWIG_fail;
13739 }
13740 resultobj = SWIG_Py_Void();
13741 return resultobj;
13742fail:
13743 return NULL;
13744}
13745
13746
13747SWIGINTERN PyObject *_wrap_TextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13748 PyObject *resultobj = 0;
13749 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13750 bool arg2 ;
13751 void *argp1 = 0 ;
13752 int res1 = 0 ;
13753 bool val2 ;
13754 int ecode2 = 0 ;
13755 PyObject * obj0 = 0 ;
13756 PyObject * obj1 = 0 ;
13757 char * kwnames[] = {
13758 (char *) "self",(char *) "editable", NULL
13759 };
13760
13761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
13762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13763 if (!SWIG_IsOK(res1)) {
13764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13765 }
13766 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13767 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13768 if (!SWIG_IsOK(ecode2)) {
13769 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'");
13770 }
13771 arg2 = static_cast< bool >(val2);
13772 {
13773 PyThreadState* __tstate = wxPyBeginAllowThreads();
13774 (arg1)->SetEditable(arg2);
13775 wxPyEndAllowThreads(__tstate);
13776 if (PyErr_Occurred()) SWIG_fail;
13777 }
13778 resultobj = SWIG_Py_Void();
13779 return resultobj;
13780fail:
13781 return NULL;
13782}
13783
13784
d7645bfd
VZ
13785SWIGINTERN PyObject *_wrap_TextCtrl_MacCheckSpelling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13786 PyObject *resultobj = 0;
13787 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13788 bool arg2 ;
13789 void *argp1 = 0 ;
13790 int res1 = 0 ;
13791 bool val2 ;
13792 int ecode2 = 0 ;
13793 PyObject * obj0 = 0 ;
13794 PyObject * obj1 = 0 ;
13795 char * kwnames[] = {
13796 (char *) "self",(char *) "check", NULL
13797 };
13798
13799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_MacCheckSpelling",kwnames,&obj0,&obj1)) SWIG_fail;
13800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13801 if (!SWIG_IsOK(res1)) {
13802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MacCheckSpelling" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13803 }
13804 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13805 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13806 if (!SWIG_IsOK(ecode2)) {
13807 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_MacCheckSpelling" "', expected argument " "2"" of type '" "bool""'");
13808 }
13809 arg2 = static_cast< bool >(val2);
13810 {
13811 PyThreadState* __tstate = wxPyBeginAllowThreads();
13812 (arg1)->MacCheckSpelling(arg2);
13813 wxPyEndAllowThreads(__tstate);
13814 if (PyErr_Occurred()) SWIG_fail;
13815 }
13816 resultobj = SWIG_Py_Void();
13817 return resultobj;
13818fail:
13819 return NULL;
13820}
13821
13822
b39fe951
RD
13823SWIGINTERN PyObject *_wrap_TextCtrl_SendTextUpdatedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13824 PyObject *resultobj = 0;
13825 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13826 void *argp1 = 0 ;
13827 int res1 = 0 ;
13828 PyObject *swig_obj[1] ;
13829
13830 if (!args) SWIG_fail;
13831 swig_obj[0] = args;
13832 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13833 if (!SWIG_IsOK(res1)) {
13834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SendTextUpdatedEvent" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13835 }
13836 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13837 {
13838 PyThreadState* __tstate = wxPyBeginAllowThreads();
13839 (arg1)->SendTextUpdatedEvent();
13840 wxPyEndAllowThreads(__tstate);
13841 if (PyErr_Occurred()) SWIG_fail;
13842 }
13843 resultobj = SWIG_Py_Void();
13844 return resultobj;
13845fail:
13846 return NULL;
13847}
13848
13849
1bd55598
RD
13850SWIGINTERN PyObject *_wrap_TextCtrl_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13851 PyObject *resultobj = 0;
13852 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13853 wxString *arg2 = 0 ;
13854 void *argp1 = 0 ;
13855 int res1 = 0 ;
13856 bool temp2 = false ;
13857 PyObject * obj0 = 0 ;
13858 PyObject * obj1 = 0 ;
13859 char * kwnames[] = {
13860 (char *) "self",(char *) "text", NULL
13861 };
13862
13863 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) SWIG_fail;
13864 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13865 if (!SWIG_IsOK(res1)) {
13866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_write" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13867 }
13868 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13869 {
13870 arg2 = wxString_in_helper(obj1);
13871 if (arg2 == NULL) SWIG_fail;
13872 temp2 = true;
13873 }
13874 {
13875 PyThreadState* __tstate = wxPyBeginAllowThreads();
13876 wxTextCtrl_write(arg1,(wxString const &)*arg2);
13877 wxPyEndAllowThreads(__tstate);
13878 if (PyErr_Occurred()) SWIG_fail;
13879 }
13880 resultobj = SWIG_Py_Void();
13881 {
13882 if (temp2)
13883 delete arg2;
13884 }
13885 return resultobj;
13886fail:
13887 {
13888 if (temp2)
13889 delete arg2;
13890 }
13891 return NULL;
13892}
13893
13894
13895SWIGINTERN PyObject *_wrap_TextCtrl_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13896 PyObject *resultobj = 0;
13897 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13898 long arg2 ;
13899 long arg3 ;
13900 wxString result;
13901 void *argp1 = 0 ;
13902 int res1 = 0 ;
13903 long val2 ;
13904 int ecode2 = 0 ;
13905 long val3 ;
13906 int ecode3 = 0 ;
13907 PyObject * obj0 = 0 ;
13908 PyObject * obj1 = 0 ;
13909 PyObject * obj2 = 0 ;
13910 char * kwnames[] = {
2131d850 13911 (char *) "self",(char *) "from",(char *) "to", NULL
1bd55598
RD
13912 };
13913
13914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13916 if (!SWIG_IsOK(res1)) {
13917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetString" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13918 }
13919 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13920 ecode2 = SWIG_AsVal_long(obj1, &val2);
13921 if (!SWIG_IsOK(ecode2)) {
13922 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetString" "', expected argument " "2"" of type '" "long""'");
13923 }
13924 arg2 = static_cast< long >(val2);
13925 ecode3 = SWIG_AsVal_long(obj2, &val3);
13926 if (!SWIG_IsOK(ecode3)) {
13927 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetString" "', expected argument " "3"" of type '" "long""'");
13928 }
13929 arg3 = static_cast< long >(val3);
13930 {
13931 PyThreadState* __tstate = wxPyBeginAllowThreads();
13932 result = wxTextCtrl_GetString(arg1,arg2,arg3);
13933 wxPyEndAllowThreads(__tstate);
13934 if (PyErr_Occurred()) SWIG_fail;
13935 }
13936 {
13937#if wxUSE_UNICODE
13938 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13939#else
13940 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13941#endif
13942 }
13943 return resultobj;
13944fail:
13945 return NULL;
d55e5bfc
RD
13946}
13947
13948
1bd55598
RD
13949SWIGINTERN PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13950 PyObject *resultobj = 0;
13951 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
13952 SwigValueWrapper<wxVisualAttributes > result;
13953 int val1 ;
13954 int ecode1 = 0 ;
13955 PyObject * obj0 = 0 ;
13956 char * kwnames[] = {
13957 (char *) "variant", NULL
13958 };
13959
13960 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
13961 if (obj0) {
13962 ecode1 = SWIG_AsVal_int(obj0, &val1);
13963 if (!SWIG_IsOK(ecode1)) {
13964 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TextCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
13965 }
13966 arg1 = static_cast< wxWindowVariant >(val1);
13967 }
13968 {
13969 if (!wxPyCheckForApp()) SWIG_fail;
13970 PyThreadState* __tstate = wxPyBeginAllowThreads();
13971 result = wxTextCtrl::GetClassDefaultAttributes(arg1);
13972 wxPyEndAllowThreads(__tstate);
13973 if (PyErr_Occurred()) SWIG_fail;
13974 }
13975 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
13976 return resultobj;
13977fail:
13978 return NULL;
13979}
13980
13981
13982SWIGINTERN PyObject *TextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13983 PyObject *obj;
13984 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13985 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextCtrl, SWIG_NewClientData(obj));
13986 return SWIG_Py_Void();
13987}
13988
13989SWIGINTERN PyObject *TextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13990 return SWIG_Python_InitShadowInstance(args);
13991}
13992
13993SWIGINTERN PyObject *_wrap_new_TextUrlEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13994 PyObject *resultobj = 0;
13995 int arg1 ;
13996 wxMouseEvent *arg2 = 0 ;
13997 long arg3 ;
13998 long arg4 ;
13999 wxTextUrlEvent *result = 0 ;
14000 int val1 ;
14001 int ecode1 = 0 ;
14002 void *argp2 = 0 ;
14003 int res2 = 0 ;
14004 long val3 ;
14005 int ecode3 = 0 ;
14006 long val4 ;
14007 int ecode4 = 0 ;
14008 PyObject * obj0 = 0 ;
14009 PyObject * obj1 = 0 ;
14010 PyObject * obj2 = 0 ;
14011 PyObject * obj3 = 0 ;
14012 char * kwnames[] = {
14013 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
14014 };
14015
14016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14017 ecode1 = SWIG_AsVal_int(obj0, &val1);
14018 if (!SWIG_IsOK(ecode1)) {
14019 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TextUrlEvent" "', expected argument " "1"" of type '" "int""'");
14020 }
14021 arg1 = static_cast< int >(val1);
14022 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxMouseEvent, 0 | 0);
14023 if (!SWIG_IsOK(res2)) {
14024 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
14025 }
14026 if (!argp2) {
14027 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
14028 }
14029 arg2 = reinterpret_cast< wxMouseEvent * >(argp2);
14030 ecode3 = SWIG_AsVal_long(obj2, &val3);
14031 if (!SWIG_IsOK(ecode3)) {
14032 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TextUrlEvent" "', expected argument " "3"" of type '" "long""'");
14033 }
14034 arg3 = static_cast< long >(val3);
14035 ecode4 = SWIG_AsVal_long(obj3, &val4);
14036 if (!SWIG_IsOK(ecode4)) {
14037 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextUrlEvent" "', expected argument " "4"" of type '" "long""'");
14038 }
14039 arg4 = static_cast< long >(val4);
14040 {
14041 PyThreadState* __tstate = wxPyBeginAllowThreads();
14042 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
14043 wxPyEndAllowThreads(__tstate);
14044 if (PyErr_Occurred()) SWIG_fail;
14045 }
14046 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_NEW | 0 );
14047 return resultobj;
14048fail:
14049 return NULL;
d55e5bfc
RD
14050}
14051
14052
1bd55598
RD
14053SWIGINTERN PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14054 PyObject *resultobj = 0;
14055 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14056 wxMouseEvent *result = 0 ;
14057 void *argp1 = 0 ;
14058 int res1 = 0 ;
14059 PyObject *swig_obj[1] ;
14060
14061 if (!args) SWIG_fail;
14062 swig_obj[0] = args;
14063 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14064 if (!SWIG_IsOK(res1)) {
14065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetMouseEvent" "', expected argument " "1"" of type '" "wxTextUrlEvent *""'");
14066 }
14067 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14068 {
14069 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 14070 {
1bd55598
RD
14071 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
14072 result = (wxMouseEvent *) &_result_ref;
d55e5bfc 14073 }
1bd55598
RD
14074 wxPyEndAllowThreads(__tstate);
14075 if (PyErr_Occurred()) SWIG_fail;
14076 }
14077 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseEvent, 0 | 0 );
14078 return resultobj;
14079fail:
14080 return NULL;
d55e5bfc
RD
14081}
14082
14083
1bd55598
RD
14084SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14085 PyObject *resultobj = 0;
14086 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14087 long result;
14088 void *argp1 = 0 ;
14089 int res1 = 0 ;
14090 PyObject *swig_obj[1] ;
14091
14092 if (!args) SWIG_fail;
14093 swig_obj[0] = args;
14094 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14095 if (!SWIG_IsOK(res1)) {
14096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLStart" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14097 }
14098 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14099 {
14100 PyThreadState* __tstate = wxPyBeginAllowThreads();
14101 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
14102 wxPyEndAllowThreads(__tstate);
14103 if (PyErr_Occurred()) SWIG_fail;
14104 }
14105 resultobj = SWIG_From_long(static_cast< long >(result));
14106 return resultobj;
14107fail:
14108 return NULL;
d55e5bfc
RD
14109}
14110
14111
1bd55598
RD
14112SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14113 PyObject *resultobj = 0;
14114 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14115 long result;
14116 void *argp1 = 0 ;
14117 int res1 = 0 ;
14118 PyObject *swig_obj[1] ;
14119
14120 if (!args) SWIG_fail;
14121 swig_obj[0] = args;
14122 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14123 if (!SWIG_IsOK(res1)) {
14124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLEnd" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14125 }
14126 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14127 {
14128 PyThreadState* __tstate = wxPyBeginAllowThreads();
14129 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
14130 wxPyEndAllowThreads(__tstate);
14131 if (PyErr_Occurred()) SWIG_fail;
14132 }
14133 resultobj = SWIG_From_long(static_cast< long >(result));
14134 return resultobj;
14135fail:
14136 return NULL;
d55e5bfc
RD
14137}
14138
14139
1bd55598
RD
14140SWIGINTERN PyObject *TextUrlEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14141 PyObject *obj;
14142 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14143 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextUrlEvent, SWIG_NewClientData(obj));
14144 return SWIG_Py_Void();
68e533f8
RD
14145}
14146
1bd55598
RD
14147SWIGINTERN PyObject *TextUrlEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14148 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
14149}
14150
1bd55598
RD
14151SWIGINTERN int ScrollBarNameStr_set(PyObject *) {
14152 SWIG_Error(SWIG_AttributeError,"Variable ScrollBarNameStr is read-only.");
14153 return 1;
d55e5bfc
RD
14154}
14155
14156
1bd55598
RD
14157SWIGINTERN PyObject *ScrollBarNameStr_get(void) {
14158 PyObject *pyobj = 0;
14159
14160 {
14161#if wxUSE_UNICODE
14162 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14163#else
14164 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14165#endif
14166 }
14167 return pyobj;
14168}
14169
14170
14171SWIGINTERN PyObject *_wrap_new_ScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14172 PyObject *resultobj = 0;
14173 wxWindow *arg1 = (wxWindow *) 0 ;
14174 int arg2 = (int) -1 ;
14175 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14176 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14177 wxSize const &arg4_defvalue = wxDefaultSize ;
14178 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14179 long arg5 = (long) wxSB_HORIZONTAL ;
14180 wxValidator const &arg6_defvalue = wxDefaultValidator ;
14181 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
14182 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
14183 wxString *arg7 = (wxString *) &arg7_defvalue ;
14184 wxScrollBar *result = 0 ;
14185 void *argp1 = 0 ;
14186 int res1 = 0 ;
14187 int val2 ;
14188 int ecode2 = 0 ;
14189 wxPoint temp3 ;
14190 wxSize temp4 ;
14191 long val5 ;
14192 int ecode5 = 0 ;
14193 void *argp6 = 0 ;
14194 int res6 = 0 ;
14195 bool temp7 = false ;
14196 PyObject * obj0 = 0 ;
14197 PyObject * obj1 = 0 ;
14198 PyObject * obj2 = 0 ;
14199 PyObject * obj3 = 0 ;
14200 PyObject * obj4 = 0 ;
14201 PyObject * obj5 = 0 ;
14202 PyObject * obj6 = 0 ;
14203 char * kwnames[] = {
14204 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14205 };
14206
14207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14208 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14209 if (!SWIG_IsOK(res1)) {
14210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrollBar" "', expected argument " "1"" of type '" "wxWindow *""'");
14211 }
14212 arg1 = reinterpret_cast< wxWindow * >(argp1);
14213 if (obj1) {
14214 ecode2 = SWIG_AsVal_int(obj1, &val2);
14215 if (!SWIG_IsOK(ecode2)) {
14216 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollBar" "', expected argument " "2"" of type '" "int""'");
14217 }
14218 arg2 = static_cast< int >(val2);
14219 }
14220 if (obj2) {
d55e5bfc 14221 {
1bd55598
RD
14222 arg3 = &temp3;
14223 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 14224 }
1bd55598
RD
14225 }
14226 if (obj3) {
36ed4f51 14227 {
1bd55598
RD
14228 arg4 = &temp4;
14229 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 14230 }
1bd55598
RD
14231 }
14232 if (obj4) {
14233 ecode5 = SWIG_AsVal_long(obj4, &val5);
14234 if (!SWIG_IsOK(ecode5)) {
14235 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrollBar" "', expected argument " "5"" of type '" "long""'");
14236 }
14237 arg5 = static_cast< long >(val5);
14238 }
14239 if (obj5) {
14240 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
14241 if (!SWIG_IsOK(res6)) {
14242 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 14243 }
1bd55598
RD
14244 if (!argp6) {
14245 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 14246 }
1bd55598
RD
14247 arg6 = reinterpret_cast< wxValidator * >(argp6);
14248 }
14249 if (obj6) {
d55e5bfc 14250 {
1bd55598
RD
14251 arg7 = wxString_in_helper(obj6);
14252 if (arg7 == NULL) SWIG_fail;
14253 temp7 = true;
d55e5bfc 14254 }
1bd55598
RD
14255 }
14256 {
14257 if (!wxPyCheckForApp()) SWIG_fail;
14258 PyThreadState* __tstate = wxPyBeginAllowThreads();
14259 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
14260 wxPyEndAllowThreads(__tstate);
14261 if (PyErr_Occurred()) SWIG_fail;
14262 }
14263 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_NEW | 0 );
14264 {
14265 if (temp7)
14266 delete arg7;
14267 }
14268 return resultobj;
14269fail:
14270 {
14271 if (temp7)
14272 delete arg7;
14273 }
14274 return NULL;
d55e5bfc
RD
14275}
14276
14277
1bd55598
RD
14278SWIGINTERN PyObject *_wrap_new_PreScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14279 PyObject *resultobj = 0;
14280 wxScrollBar *result = 0 ;
14281
14282 if (!SWIG_Python_UnpackTuple(args,"new_PreScrollBar",0,0,0)) SWIG_fail;
14283 {
14284 if (!wxPyCheckForApp()) SWIG_fail;
14285 PyThreadState* __tstate = wxPyBeginAllowThreads();
14286 result = (wxScrollBar *)new wxScrollBar();
14287 wxPyEndAllowThreads(__tstate);
14288 if (PyErr_Occurred()) SWIG_fail;
14289 }
14290 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_OWN | 0 );
14291 return resultobj;
14292fail:
14293 return NULL;
14294}
14295
14296
14297SWIGINTERN PyObject *_wrap_ScrollBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14298 PyObject *resultobj = 0;
14299 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14300 wxWindow *arg2 = (wxWindow *) 0 ;
14301 int arg3 = (int) -1 ;
14302 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14303 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14304 wxSize const &arg5_defvalue = wxDefaultSize ;
14305 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14306 long arg6 = (long) wxSB_HORIZONTAL ;
14307 wxValidator const &arg7_defvalue = wxDefaultValidator ;
14308 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
14309 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
14310 wxString *arg8 = (wxString *) &arg8_defvalue ;
14311 bool result;
14312 void *argp1 = 0 ;
14313 int res1 = 0 ;
14314 void *argp2 = 0 ;
14315 int res2 = 0 ;
14316 int val3 ;
14317 int ecode3 = 0 ;
14318 wxPoint temp4 ;
14319 wxSize temp5 ;
14320 long val6 ;
14321 int ecode6 = 0 ;
14322 void *argp7 = 0 ;
14323 int res7 = 0 ;
14324 bool temp8 = false ;
14325 PyObject * obj0 = 0 ;
14326 PyObject * obj1 = 0 ;
14327 PyObject * obj2 = 0 ;
14328 PyObject * obj3 = 0 ;
14329 PyObject * obj4 = 0 ;
14330 PyObject * obj5 = 0 ;
14331 PyObject * obj6 = 0 ;
14332 PyObject * obj7 = 0 ;
14333 char * kwnames[] = {
14334 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14335 };
14336
14337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
14338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14339 if (!SWIG_IsOK(res1)) {
14340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_Create" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14341 }
14342 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14343 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14344 if (!SWIG_IsOK(res2)) {
14345 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrollBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14346 }
14347 arg2 = reinterpret_cast< wxWindow * >(argp2);
14348 if (obj2) {
14349 ecode3 = SWIG_AsVal_int(obj2, &val3);
14350 if (!SWIG_IsOK(ecode3)) {
14351 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrollBar_Create" "', expected argument " "3"" of type '" "int""'");
14352 }
14353 arg3 = static_cast< int >(val3);
14354 }
14355 if (obj3) {
d55e5bfc 14356 {
1bd55598
RD
14357 arg4 = &temp4;
14358 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 14359 }
1bd55598
RD
14360 }
14361 if (obj4) {
d55e5bfc 14362 {
1bd55598
RD
14363 arg5 = &temp5;
14364 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 14365 }
1bd55598
RD
14366 }
14367 if (obj5) {
14368 ecode6 = SWIG_AsVal_long(obj5, &val6);
14369 if (!SWIG_IsOK(ecode6)) {
14370 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrollBar_Create" "', expected argument " "6"" of type '" "long""'");
14371 }
14372 arg6 = static_cast< long >(val6);
14373 }
14374 if (obj6) {
14375 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
14376 if (!SWIG_IsOK(res7)) {
14377 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 14378 }
1bd55598
RD
14379 if (!argp7) {
14380 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 14381 }
1bd55598
RD
14382 arg7 = reinterpret_cast< wxValidator * >(argp7);
14383 }
14384 if (obj7) {
d55e5bfc 14385 {
1bd55598
RD
14386 arg8 = wxString_in_helper(obj7);
14387 if (arg8 == NULL) SWIG_fail;
14388 temp8 = true;
d55e5bfc 14389 }
1bd55598
RD
14390 }
14391 {
14392 PyThreadState* __tstate = wxPyBeginAllowThreads();
14393 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
14394 wxPyEndAllowThreads(__tstate);
14395 if (PyErr_Occurred()) SWIG_fail;
14396 }
14397 {
14398 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14399 }
14400 {
14401 if (temp8)
14402 delete arg8;
14403 }
14404 return resultobj;
14405fail:
14406 {
14407 if (temp8)
14408 delete arg8;
14409 }
14410 return NULL;
d55e5bfc
RD
14411}
14412
14413
1bd55598
RD
14414SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14415 PyObject *resultobj = 0;
14416 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14417 int result;
14418 void *argp1 = 0 ;
14419 int res1 = 0 ;
14420 PyObject *swig_obj[1] ;
14421
14422 if (!args) SWIG_fail;
14423 swig_obj[0] = args;
14424 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14425 if (!SWIG_IsOK(res1)) {
14426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14427 }
14428 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14429 {
14430 PyThreadState* __tstate = wxPyBeginAllowThreads();
14431 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
14432 wxPyEndAllowThreads(__tstate);
14433 if (PyErr_Occurred()) SWIG_fail;
14434 }
14435 resultobj = SWIG_From_int(static_cast< int >(result));
14436 return resultobj;
14437fail:
14438 return NULL;
d55e5bfc
RD
14439}
14440
14441
1bd55598
RD
14442SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14443 PyObject *resultobj = 0;
14444 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14445 int result;
14446 void *argp1 = 0 ;
14447 int res1 = 0 ;
14448 PyObject *swig_obj[1] ;
14449
14450 if (!args) SWIG_fail;
14451 swig_obj[0] = args;
14452 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14453 if (!SWIG_IsOK(res1)) {
14454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14455 }
14456 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14457 {
14458 PyThreadState* __tstate = wxPyBeginAllowThreads();
14459 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
14460 wxPyEndAllowThreads(__tstate);
14461 if (PyErr_Occurred()) SWIG_fail;
14462 }
14463 resultobj = SWIG_From_int(static_cast< int >(result));
14464 return resultobj;
14465fail:
14466 return NULL;
d55e5bfc
RD
14467}
14468
14469
1bd55598
RD
14470SWIGINTERN PyObject *_wrap_ScrollBar_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14471 PyObject *resultobj = 0;
14472 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14473 int result;
14474 void *argp1 = 0 ;
14475 int res1 = 0 ;
14476 PyObject *swig_obj[1] ;
14477
14478 if (!args) SWIG_fail;
14479 swig_obj[0] = args;
14480 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14481 if (!SWIG_IsOK(res1)) {
14482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetPageSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14483 }
14484 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14485 {
14486 PyThreadState* __tstate = wxPyBeginAllowThreads();
14487 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
14488 wxPyEndAllowThreads(__tstate);
14489 if (PyErr_Occurred()) SWIG_fail;
14490 }
14491 resultobj = SWIG_From_int(static_cast< int >(result));
14492 return resultobj;
14493fail:
14494 return NULL;
d55e5bfc
RD
14495}
14496
14497
1bd55598
RD
14498SWIGINTERN PyObject *_wrap_ScrollBar_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14499 PyObject *resultobj = 0;
14500 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14501 int result;
14502 void *argp1 = 0 ;
14503 int res1 = 0 ;
14504 PyObject *swig_obj[1] ;
14505
14506 if (!args) SWIG_fail;
14507 swig_obj[0] = args;
14508 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14509 if (!SWIG_IsOK(res1)) {
14510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetRange" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14511 }
14512 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14513 {
14514 PyThreadState* __tstate = wxPyBeginAllowThreads();
14515 result = (int)((wxScrollBar const *)arg1)->GetRange();
14516 wxPyEndAllowThreads(__tstate);
14517 if (PyErr_Occurred()) SWIG_fail;
14518 }
14519 resultobj = SWIG_From_int(static_cast< int >(result));
14520 return resultobj;
14521fail:
14522 return NULL;
d55e5bfc
RD
14523}
14524
14525
1bd55598
RD
14526SWIGINTERN PyObject *_wrap_ScrollBar_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14527 PyObject *resultobj = 0;
14528 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14529 bool result;
14530 void *argp1 = 0 ;
14531 int res1 = 0 ;
14532 PyObject *swig_obj[1] ;
14533
14534 if (!args) SWIG_fail;
14535 swig_obj[0] = args;
14536 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14537 if (!SWIG_IsOK(res1)) {
14538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_IsVertical" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14539 }
14540 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14541 {
14542 PyThreadState* __tstate = wxPyBeginAllowThreads();
14543 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
14544 wxPyEndAllowThreads(__tstate);
14545 if (PyErr_Occurred()) SWIG_fail;
14546 }
14547 {
14548 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14549 }
14550 return resultobj;
14551fail:
14552 return NULL;
14553}
14554
14555
14556SWIGINTERN PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14557 PyObject *resultobj = 0;
14558 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14559 int arg2 ;
14560 void *argp1 = 0 ;
14561 int res1 = 0 ;
14562 int val2 ;
14563 int ecode2 = 0 ;
14564 PyObject * obj0 = 0 ;
14565 PyObject * obj1 = 0 ;
14566 char * kwnames[] = {
14567 (char *) "self",(char *) "viewStart", NULL
14568 };
14569
14570 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) SWIG_fail;
14571 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14572 if (!SWIG_IsOK(res1)) {
14573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14574 }
14575 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14576 ecode2 = SWIG_AsVal_int(obj1, &val2);
14577 if (!SWIG_IsOK(ecode2)) {
14578 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "2"" of type '" "int""'");
14579 }
14580 arg2 = static_cast< int >(val2);
14581 {
14582 PyThreadState* __tstate = wxPyBeginAllowThreads();
14583 (arg1)->SetThumbPosition(arg2);
14584 wxPyEndAllowThreads(__tstate);
14585 if (PyErr_Occurred()) SWIG_fail;
14586 }
14587 resultobj = SWIG_Py_Void();
14588 return resultobj;
14589fail:
14590 return NULL;
14591}
14592
14593
14594SWIGINTERN PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14595 PyObject *resultobj = 0;
14596 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14597 SwigValueWrapper<wxVisualAttributes > result;
14598 int val1 ;
14599 int ecode1 = 0 ;
14600 PyObject * obj0 = 0 ;
14601 char * kwnames[] = {
14602 (char *) "variant", NULL
14603 };
14604
14605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14606 if (obj0) {
14607 ecode1 = SWIG_AsVal_int(obj0, &val1);
14608 if (!SWIG_IsOK(ecode1)) {
14609 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrollBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14610 }
14611 arg1 = static_cast< wxWindowVariant >(val1);
14612 }
14613 {
14614 if (!wxPyCheckForApp()) SWIG_fail;
14615 PyThreadState* __tstate = wxPyBeginAllowThreads();
14616 result = wxScrollBar::GetClassDefaultAttributes(arg1);
14617 wxPyEndAllowThreads(__tstate);
14618 if (PyErr_Occurred()) SWIG_fail;
14619 }
14620 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14621 return resultobj;
14622fail:
14623 return NULL;
d55e5bfc
RD
14624}
14625
14626
1bd55598
RD
14627SWIGINTERN PyObject *ScrollBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14628 PyObject *obj;
14629 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14630 SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollBar, SWIG_NewClientData(obj));
14631 return SWIG_Py_Void();
d55e5bfc
RD
14632}
14633
1bd55598
RD
14634SWIGINTERN PyObject *ScrollBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14635 return SWIG_Python_InitShadowInstance(args);
14636}
d55e5bfc 14637
1bd55598
RD
14638SWIGINTERN int SPIN_BUTTON_NAME_set(PyObject *) {
14639 SWIG_Error(SWIG_AttributeError,"Variable SPIN_BUTTON_NAME is read-only.");
14640 return 1;
14641}
14642
14643
14644SWIGINTERN PyObject *SPIN_BUTTON_NAME_get(void) {
14645 PyObject *pyobj = 0;
14646
14647 {
d55e5bfc 14648#if wxUSE_UNICODE
1bd55598 14649 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
d55e5bfc 14650#else
1bd55598 14651 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
d55e5bfc 14652#endif
1bd55598
RD
14653 }
14654 return pyobj;
d55e5bfc
RD
14655}
14656
14657
1bd55598
RD
14658SWIGINTERN int SpinCtrlNameStr_set(PyObject *) {
14659 SWIG_Error(SWIG_AttributeError,"Variable SpinCtrlNameStr is read-only.");
14660 return 1;
d55e5bfc
RD
14661}
14662
14663
1bd55598
RD
14664SWIGINTERN PyObject *SpinCtrlNameStr_get(void) {
14665 PyObject *pyobj = 0;
14666
14667 {
14668#if wxUSE_UNICODE
14669 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14670#else
14671 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14672#endif
14673 }
14674 return pyobj;
14675}
14676
14677
14678SWIGINTERN PyObject *_wrap_new_SpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14679 PyObject *resultobj = 0;
14680 wxWindow *arg1 = (wxWindow *) 0 ;
14681 int arg2 = (int) -1 ;
14682 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14683 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14684 wxSize const &arg4_defvalue = wxDefaultSize ;
14685 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14686 long arg5 = (long) wxSP_HORIZONTAL ;
14687 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
14688 wxString *arg6 = (wxString *) &arg6_defvalue ;
14689 wxSpinButton *result = 0 ;
14690 void *argp1 = 0 ;
14691 int res1 = 0 ;
14692 int val2 ;
14693 int ecode2 = 0 ;
14694 wxPoint temp3 ;
14695 wxSize temp4 ;
14696 long val5 ;
14697 int ecode5 = 0 ;
14698 bool temp6 = false ;
14699 PyObject * obj0 = 0 ;
14700 PyObject * obj1 = 0 ;
14701 PyObject * obj2 = 0 ;
14702 PyObject * obj3 = 0 ;
14703 PyObject * obj4 = 0 ;
14704 PyObject * obj5 = 0 ;
14705 char * kwnames[] = {
14706 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14707 };
14708
14709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
14710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14711 if (!SWIG_IsOK(res1)) {
14712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinButton" "', expected argument " "1"" of type '" "wxWindow *""'");
14713 }
14714 arg1 = reinterpret_cast< wxWindow * >(argp1);
14715 if (obj1) {
14716 ecode2 = SWIG_AsVal_int(obj1, &val2);
14717 if (!SWIG_IsOK(ecode2)) {
14718 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinButton" "', expected argument " "2"" of type '" "int""'");
14719 }
14720 arg2 = static_cast< int >(val2);
14721 }
14722 if (obj2) {
d55e5bfc 14723 {
1bd55598
RD
14724 arg3 = &temp3;
14725 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 14726 }
1bd55598
RD
14727 }
14728 if (obj3) {
d55e5bfc 14729 {
1bd55598
RD
14730 arg4 = &temp4;
14731 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 14732 }
1bd55598
RD
14733 }
14734 if (obj4) {
14735 ecode5 = SWIG_AsVal_long(obj4, &val5);
14736 if (!SWIG_IsOK(ecode5)) {
14737 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpinButton" "', expected argument " "5"" of type '" "long""'");
14738 }
14739 arg5 = static_cast< long >(val5);
14740 }
14741 if (obj5) {
d55e5bfc 14742 {
1bd55598
RD
14743 arg6 = wxString_in_helper(obj5);
14744 if (arg6 == NULL) SWIG_fail;
14745 temp6 = true;
d55e5bfc 14746 }
1bd55598
RD
14747 }
14748 {
14749 if (!wxPyCheckForApp()) SWIG_fail;
14750 PyThreadState* __tstate = wxPyBeginAllowThreads();
14751 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14752 wxPyEndAllowThreads(__tstate);
14753 if (PyErr_Occurred()) SWIG_fail;
14754 }
14755 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_NEW | 0 );
14756 {
14757 if (temp6)
14758 delete arg6;
14759 }
14760 return resultobj;
14761fail:
14762 {
14763 if (temp6)
14764 delete arg6;
14765 }
14766 return NULL;
d55e5bfc
RD
14767}
14768
14769
1bd55598
RD
14770SWIGINTERN PyObject *_wrap_new_PreSpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14771 PyObject *resultobj = 0;
14772 wxSpinButton *result = 0 ;
14773
14774 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinButton",0,0,0)) SWIG_fail;
14775 {
14776 if (!wxPyCheckForApp()) SWIG_fail;
14777 PyThreadState* __tstate = wxPyBeginAllowThreads();
14778 result = (wxSpinButton *)new wxSpinButton();
14779 wxPyEndAllowThreads(__tstate);
14780 if (PyErr_Occurred()) SWIG_fail;
14781 }
14782 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_OWN | 0 );
14783 return resultobj;
14784fail:
14785 return NULL;
14786}
14787
14788
14789SWIGINTERN PyObject *_wrap_SpinButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14790 PyObject *resultobj = 0;
14791 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14792 wxWindow *arg2 = (wxWindow *) 0 ;
14793 int arg3 = (int) -1 ;
14794 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14795 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14796 wxSize const &arg5_defvalue = wxDefaultSize ;
14797 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14798 long arg6 = (long) wxSP_HORIZONTAL ;
14799 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
14800 wxString *arg7 = (wxString *) &arg7_defvalue ;
14801 bool result;
14802 void *argp1 = 0 ;
14803 int res1 = 0 ;
14804 void *argp2 = 0 ;
14805 int res2 = 0 ;
14806 int val3 ;
14807 int ecode3 = 0 ;
14808 wxPoint temp4 ;
14809 wxSize temp5 ;
14810 long val6 ;
14811 int ecode6 = 0 ;
14812 bool temp7 = false ;
14813 PyObject * obj0 = 0 ;
14814 PyObject * obj1 = 0 ;
14815 PyObject * obj2 = 0 ;
14816 PyObject * obj3 = 0 ;
14817 PyObject * obj4 = 0 ;
14818 PyObject * obj5 = 0 ;
14819 PyObject * obj6 = 0 ;
14820 char * kwnames[] = {
14821 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14822 };
14823
14824 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14825 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14826 if (!SWIG_IsOK(res1)) {
14827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_Create" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14828 }
14829 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14830 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14831 if (!SWIG_IsOK(res2)) {
14832 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14833 }
14834 arg2 = reinterpret_cast< wxWindow * >(argp2);
14835 if (obj2) {
14836 ecode3 = SWIG_AsVal_int(obj2, &val3);
14837 if (!SWIG_IsOK(ecode3)) {
14838 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_Create" "', expected argument " "3"" of type '" "int""'");
14839 }
14840 arg3 = static_cast< int >(val3);
14841 }
14842 if (obj3) {
d55e5bfc 14843 {
1bd55598
RD
14844 arg4 = &temp4;
14845 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 14846 }
1bd55598
RD
14847 }
14848 if (obj4) {
d55e5bfc 14849 {
1bd55598
RD
14850 arg5 = &temp5;
14851 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 14852 }
1bd55598
RD
14853 }
14854 if (obj5) {
14855 ecode6 = SWIG_AsVal_long(obj5, &val6);
14856 if (!SWIG_IsOK(ecode6)) {
14857 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SpinButton_Create" "', expected argument " "6"" of type '" "long""'");
14858 }
14859 arg6 = static_cast< long >(val6);
14860 }
14861 if (obj6) {
14862 {
14863 arg7 = wxString_in_helper(obj6);
14864 if (arg7 == NULL) SWIG_fail;
14865 temp7 = true;
14866 }
14867 }
14868 {
14869 PyThreadState* __tstate = wxPyBeginAllowThreads();
14870 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
14871 wxPyEndAllowThreads(__tstate);
14872 if (PyErr_Occurred()) SWIG_fail;
14873 }
14874 {
14875 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14876 }
14877 {
14878 if (temp7)
14879 delete arg7;
14880 }
14881 return resultobj;
14882fail:
14883 {
14884 if (temp7)
14885 delete arg7;
14886 }
14887 return NULL;
d55e5bfc
RD
14888}
14889
14890
1bd55598
RD
14891SWIGINTERN PyObject *_wrap_SpinButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14892 PyObject *resultobj = 0;
14893 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14894 int result;
14895 void *argp1 = 0 ;
14896 int res1 = 0 ;
14897 PyObject *swig_obj[1] ;
14898
14899 if (!args) SWIG_fail;
14900 swig_obj[0] = args;
14901 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14902 if (!SWIG_IsOK(res1)) {
14903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetValue" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14904 }
14905 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14906 {
14907 PyThreadState* __tstate = wxPyBeginAllowThreads();
14908 result = (int)((wxSpinButton const *)arg1)->GetValue();
14909 wxPyEndAllowThreads(__tstate);
14910 if (PyErr_Occurred()) SWIG_fail;
14911 }
14912 resultobj = SWIG_From_int(static_cast< int >(result));
14913 return resultobj;
14914fail:
14915 return NULL;
d55e5bfc
RD
14916}
14917
14918
1bd55598
RD
14919SWIGINTERN PyObject *_wrap_SpinButton_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14920 PyObject *resultobj = 0;
14921 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14922 int result;
14923 void *argp1 = 0 ;
14924 int res1 = 0 ;
14925 PyObject *swig_obj[1] ;
14926
14927 if (!args) SWIG_fail;
14928 swig_obj[0] = args;
14929 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14930 if (!SWIG_IsOK(res1)) {
14931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMin" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14932 }
14933 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14934 {
14935 PyThreadState* __tstate = wxPyBeginAllowThreads();
14936 result = (int)((wxSpinButton const *)arg1)->GetMin();
14937 wxPyEndAllowThreads(__tstate);
14938 if (PyErr_Occurred()) SWIG_fail;
14939 }
14940 resultobj = SWIG_From_int(static_cast< int >(result));
14941 return resultobj;
14942fail:
14943 return NULL;
d55e5bfc
RD
14944}
14945
14946
1bd55598
RD
14947SWIGINTERN PyObject *_wrap_SpinButton_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14948 PyObject *resultobj = 0;
14949 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14950 int result;
14951 void *argp1 = 0 ;
14952 int res1 = 0 ;
14953 PyObject *swig_obj[1] ;
14954
14955 if (!args) SWIG_fail;
14956 swig_obj[0] = args;
14957 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14958 if (!SWIG_IsOK(res1)) {
14959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMax" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14960 }
14961 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14962 {
14963 PyThreadState* __tstate = wxPyBeginAllowThreads();
14964 result = (int)((wxSpinButton const *)arg1)->GetMax();
14965 wxPyEndAllowThreads(__tstate);
14966 if (PyErr_Occurred()) SWIG_fail;
14967 }
14968 resultobj = SWIG_From_int(static_cast< int >(result));
14969 return resultobj;
14970fail:
14971 return NULL;
14972}
14973
14974
14975SWIGINTERN PyObject *_wrap_SpinButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14976 PyObject *resultobj = 0;
14977 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14978 int arg2 ;
14979 void *argp1 = 0 ;
14980 int res1 = 0 ;
14981 int val2 ;
14982 int ecode2 = 0 ;
14983 PyObject * obj0 = 0 ;
14984 PyObject * obj1 = 0 ;
14985 char * kwnames[] = {
14986 (char *) "self",(char *) "val", NULL
14987 };
14988
14989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
14990 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14991 if (!SWIG_IsOK(res1)) {
14992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetValue" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14993 }
14994 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14995 ecode2 = SWIG_AsVal_int(obj1, &val2);
14996 if (!SWIG_IsOK(ecode2)) {
14997 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetValue" "', expected argument " "2"" of type '" "int""'");
14998 }
14999 arg2 = static_cast< int >(val2);
15000 {
15001 PyThreadState* __tstate = wxPyBeginAllowThreads();
15002 (arg1)->SetValue(arg2);
15003 wxPyEndAllowThreads(__tstate);
15004 if (PyErr_Occurred()) SWIG_fail;
15005 }
15006 resultobj = SWIG_Py_Void();
15007 return resultobj;
15008fail:
15009 return NULL;
15010}
15011
15012
15013SWIGINTERN PyObject *_wrap_SpinButton_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15014 PyObject *resultobj = 0;
15015 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15016 int arg2 ;
15017 void *argp1 = 0 ;
15018 int res1 = 0 ;
15019 int val2 ;
15020 int ecode2 = 0 ;
15021 PyObject * obj0 = 0 ;
15022 PyObject * obj1 = 0 ;
15023 char * kwnames[] = {
15024 (char *) "self",(char *) "minVal", NULL
15025 };
15026
15027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
15028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15029 if (!SWIG_IsOK(res1)) {
15030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMin" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15031 }
15032 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15033 ecode2 = SWIG_AsVal_int(obj1, &val2);
15034 if (!SWIG_IsOK(ecode2)) {
15035 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMin" "', expected argument " "2"" of type '" "int""'");
15036 }
15037 arg2 = static_cast< int >(val2);
15038 {
15039 PyThreadState* __tstate = wxPyBeginAllowThreads();
15040 (arg1)->SetMin(arg2);
15041 wxPyEndAllowThreads(__tstate);
15042 if (PyErr_Occurred()) SWIG_fail;
15043 }
15044 resultobj = SWIG_Py_Void();
15045 return resultobj;
15046fail:
15047 return NULL;
15048}
15049
15050
15051SWIGINTERN PyObject *_wrap_SpinButton_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15052 PyObject *resultobj = 0;
15053 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15054 int arg2 ;
15055 void *argp1 = 0 ;
15056 int res1 = 0 ;
15057 int val2 ;
15058 int ecode2 = 0 ;
15059 PyObject * obj0 = 0 ;
15060 PyObject * obj1 = 0 ;
15061 char * kwnames[] = {
15062 (char *) "self",(char *) "maxVal", NULL
15063 };
15064
15065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
15066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15067 if (!SWIG_IsOK(res1)) {
15068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMax" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15069 }
15070 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15071 ecode2 = SWIG_AsVal_int(obj1, &val2);
15072 if (!SWIG_IsOK(ecode2)) {
15073 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMax" "', expected argument " "2"" of type '" "int""'");
15074 }
15075 arg2 = static_cast< int >(val2);
15076 {
15077 PyThreadState* __tstate = wxPyBeginAllowThreads();
15078 (arg1)->SetMax(arg2);
15079 wxPyEndAllowThreads(__tstate);
15080 if (PyErr_Occurred()) SWIG_fail;
15081 }
15082 resultobj = SWIG_Py_Void();
15083 return resultobj;
15084fail:
15085 return NULL;
15086}
15087
15088
15089SWIGINTERN PyObject *_wrap_SpinButton_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15090 PyObject *resultobj = 0;
15091 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15092 int arg2 ;
15093 int arg3 ;
15094 void *argp1 = 0 ;
15095 int res1 = 0 ;
15096 int val2 ;
15097 int ecode2 = 0 ;
15098 int val3 ;
15099 int ecode3 = 0 ;
15100 PyObject * obj0 = 0 ;
15101 PyObject * obj1 = 0 ;
15102 PyObject * obj2 = 0 ;
15103 char * kwnames[] = {
15104 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15105 };
15106
15107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15108 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15109 if (!SWIG_IsOK(res1)) {
15110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetRange" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15111 }
15112 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15113 ecode2 = SWIG_AsVal_int(obj1, &val2);
15114 if (!SWIG_IsOK(ecode2)) {
15115 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetRange" "', expected argument " "2"" of type '" "int""'");
15116 }
15117 arg2 = static_cast< int >(val2);
15118 ecode3 = SWIG_AsVal_int(obj2, &val3);
15119 if (!SWIG_IsOK(ecode3)) {
15120 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_SetRange" "', expected argument " "3"" of type '" "int""'");
15121 }
15122 arg3 = static_cast< int >(val3);
15123 {
15124 PyThreadState* __tstate = wxPyBeginAllowThreads();
15125 (arg1)->SetRange(arg2,arg3);
15126 wxPyEndAllowThreads(__tstate);
15127 if (PyErr_Occurred()) SWIG_fail;
15128 }
15129 resultobj = SWIG_Py_Void();
15130 return resultobj;
15131fail:
15132 return NULL;
d55e5bfc
RD
15133}
15134
15135
1bd55598
RD
15136SWIGINTERN PyObject *_wrap_SpinButton_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15137 PyObject *resultobj = 0;
15138 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15139 bool result;
15140 void *argp1 = 0 ;
15141 int res1 = 0 ;
15142 PyObject *swig_obj[1] ;
15143
15144 if (!args) SWIG_fail;
15145 swig_obj[0] = args;
15146 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15147 if (!SWIG_IsOK(res1)) {
15148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_IsVertical" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15149 }
15150 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15151 {
15152 PyThreadState* __tstate = wxPyBeginAllowThreads();
15153 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
15154 wxPyEndAllowThreads(__tstate);
15155 if (PyErr_Occurred()) SWIG_fail;
15156 }
15157 {
15158 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15159 }
15160 return resultobj;
15161fail:
15162 return NULL;
d55e5bfc
RD
15163}
15164
15165
1bd55598
RD
15166SWIGINTERN PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15167 PyObject *resultobj = 0;
15168 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15169 SwigValueWrapper<wxVisualAttributes > result;
15170 int val1 ;
15171 int ecode1 = 0 ;
15172 PyObject * obj0 = 0 ;
15173 char * kwnames[] = {
15174 (char *) "variant", NULL
15175 };
15176
15177 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15178 if (obj0) {
15179 ecode1 = SWIG_AsVal_int(obj0, &val1);
15180 if (!SWIG_IsOK(ecode1)) {
15181 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15182 }
15183 arg1 = static_cast< wxWindowVariant >(val1);
15184 }
15185 {
15186 if (!wxPyCheckForApp()) SWIG_fail;
15187 PyThreadState* __tstate = wxPyBeginAllowThreads();
15188 result = wxSpinButton::GetClassDefaultAttributes(arg1);
15189 wxPyEndAllowThreads(__tstate);
15190 if (PyErr_Occurred()) SWIG_fail;
15191 }
15192 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15193 return resultobj;
15194fail:
15195 return NULL;
15196}
15197
15198
15199SWIGINTERN PyObject *SpinButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15200 PyObject *obj;
15201 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15202 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinButton, SWIG_NewClientData(obj));
15203 return SWIG_Py_Void();
15204}
15205
15206SWIGINTERN PyObject *SpinButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15207 return SWIG_Python_InitShadowInstance(args);
15208}
15209
15210SWIGINTERN PyObject *_wrap_new_SpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15211 PyObject *resultobj = 0;
15212 wxWindow *arg1 = (wxWindow *) 0 ;
15213 int arg2 = (int) -1 ;
15214 wxString const &arg3_defvalue = wxPyEmptyString ;
15215 wxString *arg3 = (wxString *) &arg3_defvalue ;
15216 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15217 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15218 wxSize const &arg5_defvalue = wxDefaultSize ;
15219 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15220 long arg6 = (long) wxSP_ARROW_KEYS ;
15221 int arg7 = (int) 0 ;
15222 int arg8 = (int) 100 ;
15223 int arg9 = (int) 0 ;
15224 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
15225 wxString *arg10 = (wxString *) &arg10_defvalue ;
15226 wxSpinCtrl *result = 0 ;
15227 void *argp1 = 0 ;
15228 int res1 = 0 ;
15229 int val2 ;
15230 int ecode2 = 0 ;
15231 bool temp3 = false ;
15232 wxPoint temp4 ;
15233 wxSize temp5 ;
15234 long val6 ;
15235 int ecode6 = 0 ;
15236 int val7 ;
15237 int ecode7 = 0 ;
15238 int val8 ;
15239 int ecode8 = 0 ;
15240 int val9 ;
15241 int ecode9 = 0 ;
15242 bool temp10 = false ;
15243 PyObject * obj0 = 0 ;
15244 PyObject * obj1 = 0 ;
15245 PyObject * obj2 = 0 ;
15246 PyObject * obj3 = 0 ;
15247 PyObject * obj4 = 0 ;
15248 PyObject * obj5 = 0 ;
15249 PyObject * obj6 = 0 ;
15250 PyObject * obj7 = 0 ;
15251 PyObject * obj8 = 0 ;
15252 PyObject * obj9 = 0 ;
15253 char * kwnames[] = {
15254 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15255 };
15256
15257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15259 if (!SWIG_IsOK(res1)) {
15260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
15261 }
15262 arg1 = reinterpret_cast< wxWindow * >(argp1);
15263 if (obj1) {
15264 ecode2 = SWIG_AsVal_int(obj1, &val2);
15265 if (!SWIG_IsOK(ecode2)) {
15266 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinCtrl" "', expected argument " "2"" of type '" "int""'");
15267 }
15268 arg2 = static_cast< int >(val2);
15269 }
15270 if (obj2) {
d55e5bfc 15271 {
1bd55598
RD
15272 arg3 = wxString_in_helper(obj2);
15273 if (arg3 == NULL) SWIG_fail;
15274 temp3 = true;
d55e5bfc 15275 }
1bd55598
RD
15276 }
15277 if (obj3) {
d55e5bfc 15278 {
1bd55598
RD
15279 arg4 = &temp4;
15280 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 15281 }
1bd55598
RD
15282 }
15283 if (obj4) {
d55e5bfc 15284 {
1bd55598
RD
15285 arg5 = &temp5;
15286 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 15287 }
1bd55598
RD
15288 }
15289 if (obj5) {
15290 ecode6 = SWIG_AsVal_long(obj5, &val6);
15291 if (!SWIG_IsOK(ecode6)) {
15292 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpinCtrl" "', expected argument " "6"" of type '" "long""'");
15293 }
15294 arg6 = static_cast< long >(val6);
15295 }
15296 if (obj6) {
15297 ecode7 = SWIG_AsVal_int(obj6, &val7);
15298 if (!SWIG_IsOK(ecode7)) {
15299 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpinCtrl" "', expected argument " "7"" of type '" "int""'");
15300 }
15301 arg7 = static_cast< int >(val7);
15302 }
15303 if (obj7) {
15304 ecode8 = SWIG_AsVal_int(obj7, &val8);
15305 if (!SWIG_IsOK(ecode8)) {
15306 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SpinCtrl" "', expected argument " "8"" of type '" "int""'");
15307 }
15308 arg8 = static_cast< int >(val8);
15309 }
15310 if (obj8) {
15311 ecode9 = SWIG_AsVal_int(obj8, &val9);
15312 if (!SWIG_IsOK(ecode9)) {
15313 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpinCtrl" "', expected argument " "9"" of type '" "int""'");
15314 }
15315 arg9 = static_cast< int >(val9);
15316 }
15317 if (obj9) {
d55e5bfc 15318 {
1bd55598
RD
15319 arg10 = wxString_in_helper(obj9);
15320 if (arg10 == NULL) SWIG_fail;
15321 temp10 = true;
d55e5bfc 15322 }
1bd55598
RD
15323 }
15324 {
15325 if (!wxPyCheckForApp()) SWIG_fail;
15326 PyThreadState* __tstate = wxPyBeginAllowThreads();
15327 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
15328 wxPyEndAllowThreads(__tstate);
15329 if (PyErr_Occurred()) SWIG_fail;
15330 }
15331 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_NEW | 0 );
15332 {
15333 if (temp3)
15334 delete arg3;
15335 }
15336 {
15337 if (temp10)
15338 delete arg10;
15339 }
15340 return resultobj;
15341fail:
15342 {
15343 if (temp3)
15344 delete arg3;
15345 }
15346 {
15347 if (temp10)
15348 delete arg10;
15349 }
15350 return NULL;
d55e5bfc
RD
15351}
15352
15353
1bd55598
RD
15354SWIGINTERN PyObject *_wrap_new_PreSpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15355 PyObject *resultobj = 0;
15356 wxSpinCtrl *result = 0 ;
15357
15358 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinCtrl",0,0,0)) SWIG_fail;
15359 {
15360 if (!wxPyCheckForApp()) SWIG_fail;
15361 PyThreadState* __tstate = wxPyBeginAllowThreads();
15362 result = (wxSpinCtrl *)new wxSpinCtrl();
15363 wxPyEndAllowThreads(__tstate);
15364 if (PyErr_Occurred()) SWIG_fail;
15365 }
15366 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_OWN | 0 );
15367 return resultobj;
15368fail:
15369 return NULL;
15370}
15371
15372
15373SWIGINTERN PyObject *_wrap_SpinCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15374 PyObject *resultobj = 0;
15375 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15376 wxWindow *arg2 = (wxWindow *) 0 ;
15377 int arg3 = (int) -1 ;
15378 wxString const &arg4_defvalue = wxPyEmptyString ;
15379 wxString *arg4 = (wxString *) &arg4_defvalue ;
15380 wxPoint const &arg5_defvalue = wxDefaultPosition ;
15381 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
15382 wxSize const &arg6_defvalue = wxDefaultSize ;
15383 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
15384 long arg7 = (long) wxSP_ARROW_KEYS ;
15385 int arg8 = (int) 0 ;
15386 int arg9 = (int) 100 ;
15387 int arg10 = (int) 0 ;
15388 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
15389 wxString *arg11 = (wxString *) &arg11_defvalue ;
15390 bool result;
15391 void *argp1 = 0 ;
15392 int res1 = 0 ;
15393 void *argp2 = 0 ;
15394 int res2 = 0 ;
15395 int val3 ;
15396 int ecode3 = 0 ;
15397 bool temp4 = false ;
15398 wxPoint temp5 ;
15399 wxSize temp6 ;
15400 long val7 ;
15401 int ecode7 = 0 ;
15402 int val8 ;
15403 int ecode8 = 0 ;
15404 int val9 ;
15405 int ecode9 = 0 ;
15406 int val10 ;
15407 int ecode10 = 0 ;
15408 bool temp11 = false ;
15409 PyObject * obj0 = 0 ;
15410 PyObject * obj1 = 0 ;
15411 PyObject * obj2 = 0 ;
15412 PyObject * obj3 = 0 ;
15413 PyObject * obj4 = 0 ;
15414 PyObject * obj5 = 0 ;
15415 PyObject * obj6 = 0 ;
15416 PyObject * obj7 = 0 ;
15417 PyObject * obj8 = 0 ;
15418 PyObject * obj9 = 0 ;
15419 PyObject * obj10 = 0 ;
15420 char * kwnames[] = {
15421 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15422 };
15423
15424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
15425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15426 if (!SWIG_IsOK(res1)) {
15427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_Create" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15428 }
15429 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15430 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
15431 if (!SWIG_IsOK(res2)) {
15432 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
15433 }
15434 arg2 = reinterpret_cast< wxWindow * >(argp2);
15435 if (obj2) {
15436 ecode3 = SWIG_AsVal_int(obj2, &val3);
15437 if (!SWIG_IsOK(ecode3)) {
15438 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_Create" "', expected argument " "3"" of type '" "int""'");
15439 }
15440 arg3 = static_cast< int >(val3);
15441 }
15442 if (obj3) {
36ed4f51 15443 {
1bd55598
RD
15444 arg4 = wxString_in_helper(obj3);
15445 if (arg4 == NULL) SWIG_fail;
15446 temp4 = true;
36ed4f51 15447 }
1bd55598
RD
15448 }
15449 if (obj4) {
36ed4f51 15450 {
1bd55598
RD
15451 arg5 = &temp5;
15452 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 15453 }
1bd55598
RD
15454 }
15455 if (obj5) {
d55e5bfc 15456 {
1bd55598
RD
15457 arg6 = &temp6;
15458 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 15459 }
1bd55598
RD
15460 }
15461 if (obj6) {
15462 ecode7 = SWIG_AsVal_long(obj6, &val7);
15463 if (!SWIG_IsOK(ecode7)) {
15464 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SpinCtrl_Create" "', expected argument " "7"" of type '" "long""'");
15465 }
15466 arg7 = static_cast< long >(val7);
15467 }
15468 if (obj7) {
15469 ecode8 = SWIG_AsVal_int(obj7, &val8);
15470 if (!SWIG_IsOK(ecode8)) {
15471 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "SpinCtrl_Create" "', expected argument " "8"" of type '" "int""'");
15472 }
15473 arg8 = static_cast< int >(val8);
15474 }
15475 if (obj8) {
15476 ecode9 = SWIG_AsVal_int(obj8, &val9);
15477 if (!SWIG_IsOK(ecode9)) {
15478 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "SpinCtrl_Create" "', expected argument " "9"" of type '" "int""'");
15479 }
15480 arg9 = static_cast< int >(val9);
15481 }
15482 if (obj9) {
15483 ecode10 = SWIG_AsVal_int(obj9, &val10);
15484 if (!SWIG_IsOK(ecode10)) {
15485 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "SpinCtrl_Create" "', expected argument " "10"" of type '" "int""'");
15486 }
15487 arg10 = static_cast< int >(val10);
15488 }
15489 if (obj10) {
15490 {
15491 arg11 = wxString_in_helper(obj10);
15492 if (arg11 == NULL) SWIG_fail;
15493 temp11 = true;
15494 }
15495 }
15496 {
15497 PyThreadState* __tstate = wxPyBeginAllowThreads();
15498 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
15499 wxPyEndAllowThreads(__tstate);
15500 if (PyErr_Occurred()) SWIG_fail;
15501 }
15502 {
15503 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15504 }
15505 {
15506 if (temp4)
15507 delete arg4;
15508 }
15509 {
15510 if (temp11)
15511 delete arg11;
15512 }
15513 return resultobj;
15514fail:
15515 {
15516 if (temp4)
15517 delete arg4;
15518 }
15519 {
15520 if (temp11)
15521 delete arg11;
15522 }
15523 return NULL;
d55e5bfc
RD
15524}
15525
15526
1bd55598
RD
15527SWIGINTERN PyObject *_wrap_SpinCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15528 PyObject *resultobj = 0;
15529 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15530 int result;
15531 void *argp1 = 0 ;
15532 int res1 = 0 ;
15533 PyObject *swig_obj[1] ;
15534
15535 if (!args) SWIG_fail;
15536 swig_obj[0] = args;
15537 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15538 if (!SWIG_IsOK(res1)) {
15539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetValue" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15540 }
15541 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15542 {
15543 PyThreadState* __tstate = wxPyBeginAllowThreads();
15544 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
15545 wxPyEndAllowThreads(__tstate);
15546 if (PyErr_Occurred()) SWIG_fail;
15547 }
15548 resultobj = SWIG_From_int(static_cast< int >(result));
15549 return resultobj;
15550fail:
15551 return NULL;
15552}
15553
15554
15555SWIGINTERN PyObject *_wrap_SpinCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15556 PyObject *resultobj = 0;
15557 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15558 int arg2 ;
15559 void *argp1 = 0 ;
15560 int res1 = 0 ;
15561 int val2 ;
15562 int ecode2 = 0 ;
15563 PyObject * obj0 = 0 ;
15564 PyObject * obj1 = 0 ;
15565 char * kwnames[] = {
15566 (char *) "self",(char *) "value", NULL
15567 };
15568
15569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15571 if (!SWIG_IsOK(res1)) {
15572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValue" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15573 }
15574 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15575 ecode2 = SWIG_AsVal_int(obj1, &val2);
15576 if (!SWIG_IsOK(ecode2)) {
15577 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetValue" "', expected argument " "2"" of type '" "int""'");
15578 }
15579 arg2 = static_cast< int >(val2);
15580 {
15581 PyThreadState* __tstate = wxPyBeginAllowThreads();
15582 (arg1)->SetValue(arg2);
15583 wxPyEndAllowThreads(__tstate);
15584 if (PyErr_Occurred()) SWIG_fail;
15585 }
15586 resultobj = SWIG_Py_Void();
15587 return resultobj;
15588fail:
15589 return NULL;
15590}
15591
15592
15593SWIGINTERN PyObject *_wrap_SpinCtrl_SetValueString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15594 PyObject *resultobj = 0;
15595 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15596 wxString *arg2 = 0 ;
15597 void *argp1 = 0 ;
15598 int res1 = 0 ;
15599 bool temp2 = false ;
15600 PyObject * obj0 = 0 ;
15601 PyObject * obj1 = 0 ;
15602 char * kwnames[] = {
15603 (char *) "self",(char *) "text", NULL
15604 };
15605
15606 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) SWIG_fail;
15607 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15608 if (!SWIG_IsOK(res1)) {
15609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValueString" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15610 }
15611 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15612 {
15613 arg2 = wxString_in_helper(obj1);
15614 if (arg2 == NULL) SWIG_fail;
15615 temp2 = true;
15616 }
15617 {
15618 PyThreadState* __tstate = wxPyBeginAllowThreads();
15619 (arg1)->SetValue((wxString const &)*arg2);
15620 wxPyEndAllowThreads(__tstate);
15621 if (PyErr_Occurred()) SWIG_fail;
15622 }
15623 resultobj = SWIG_Py_Void();
15624 {
15625 if (temp2)
15626 delete arg2;
15627 }
15628 return resultobj;
15629fail:
15630 {
15631 if (temp2)
15632 delete arg2;
15633 }
15634 return NULL;
15635}
15636
15637
15638SWIGINTERN PyObject *_wrap_SpinCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15639 PyObject *resultobj = 0;
15640 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15641 int arg2 ;
15642 int arg3 ;
15643 void *argp1 = 0 ;
15644 int res1 = 0 ;
15645 int val2 ;
15646 int ecode2 = 0 ;
15647 int val3 ;
15648 int ecode3 = 0 ;
15649 PyObject * obj0 = 0 ;
15650 PyObject * obj1 = 0 ;
15651 PyObject * obj2 = 0 ;
15652 char * kwnames[] = {
15653 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15654 };
15655
15656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15658 if (!SWIG_IsOK(res1)) {
15659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetRange" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15660 }
15661 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15662 ecode2 = SWIG_AsVal_int(obj1, &val2);
15663 if (!SWIG_IsOK(ecode2)) {
15664 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetRange" "', expected argument " "2"" of type '" "int""'");
15665 }
15666 arg2 = static_cast< int >(val2);
15667 ecode3 = SWIG_AsVal_int(obj2, &val3);
15668 if (!SWIG_IsOK(ecode3)) {
15669 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetRange" "', expected argument " "3"" of type '" "int""'");
15670 }
15671 arg3 = static_cast< int >(val3);
15672 {
15673 PyThreadState* __tstate = wxPyBeginAllowThreads();
15674 (arg1)->SetRange(arg2,arg3);
15675 wxPyEndAllowThreads(__tstate);
15676 if (PyErr_Occurred()) SWIG_fail;
15677 }
15678 resultobj = SWIG_Py_Void();
15679 return resultobj;
15680fail:
15681 return NULL;
d55e5bfc
RD
15682}
15683
15684
1bd55598
RD
15685SWIGINTERN PyObject *_wrap_SpinCtrl_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15686 PyObject *resultobj = 0;
15687 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15688 int result;
15689 void *argp1 = 0 ;
15690 int res1 = 0 ;
15691 PyObject *swig_obj[1] ;
15692
15693 if (!args) SWIG_fail;
15694 swig_obj[0] = args;
15695 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15696 if (!SWIG_IsOK(res1)) {
15697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMin" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15698 }
15699 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15700 {
15701 PyThreadState* __tstate = wxPyBeginAllowThreads();
15702 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
15703 wxPyEndAllowThreads(__tstate);
15704 if (PyErr_Occurred()) SWIG_fail;
15705 }
15706 resultobj = SWIG_From_int(static_cast< int >(result));
15707 return resultobj;
15708fail:
15709 return NULL;
d55e5bfc
RD
15710}
15711
15712
1bd55598
RD
15713SWIGINTERN PyObject *_wrap_SpinCtrl_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15714 PyObject *resultobj = 0;
15715 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15716 int result;
15717 void *argp1 = 0 ;
15718 int res1 = 0 ;
15719 PyObject *swig_obj[1] ;
15720
15721 if (!args) SWIG_fail;
15722 swig_obj[0] = args;
15723 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15724 if (!SWIG_IsOK(res1)) {
15725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMax" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15726 }
15727 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15728 {
15729 PyThreadState* __tstate = wxPyBeginAllowThreads();
15730 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
15731 wxPyEndAllowThreads(__tstate);
15732 if (PyErr_Occurred()) SWIG_fail;
15733 }
15734 resultobj = SWIG_From_int(static_cast< int >(result));
15735 return resultobj;
15736fail:
15737 return NULL;
15738}
15739
15740
15741SWIGINTERN PyObject *_wrap_SpinCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15742 PyObject *resultobj = 0;
15743 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15744 long arg2 ;
15745 long arg3 ;
15746 void *argp1 = 0 ;
15747 int res1 = 0 ;
15748 long val2 ;
15749 int ecode2 = 0 ;
15750 long val3 ;
15751 int ecode3 = 0 ;
15752 PyObject * obj0 = 0 ;
15753 PyObject * obj1 = 0 ;
15754 PyObject * obj2 = 0 ;
15755 char * kwnames[] = {
2131d850 15756 (char *) "self",(char *) "from",(char *) "to", NULL
1bd55598
RD
15757 };
15758
15759 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15760 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15761 if (!SWIG_IsOK(res1)) {
15762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetSelection" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15763 }
15764 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15765 ecode2 = SWIG_AsVal_long(obj1, &val2);
15766 if (!SWIG_IsOK(ecode2)) {
15767 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
15768 }
15769 arg2 = static_cast< long >(val2);
15770 ecode3 = SWIG_AsVal_long(obj2, &val3);
15771 if (!SWIG_IsOK(ecode3)) {
15772 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
15773 }
15774 arg3 = static_cast< long >(val3);
15775 {
15776 PyThreadState* __tstate = wxPyBeginAllowThreads();
15777 (arg1)->SetSelection(arg2,arg3);
15778 wxPyEndAllowThreads(__tstate);
15779 if (PyErr_Occurred()) SWIG_fail;
15780 }
15781 resultobj = SWIG_Py_Void();
15782 return resultobj;
15783fail:
15784 return NULL;
15785}
15786
15787
15788SWIGINTERN PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15789 PyObject *resultobj = 0;
15790 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15791 SwigValueWrapper<wxVisualAttributes > result;
15792 int val1 ;
15793 int ecode1 = 0 ;
15794 PyObject * obj0 = 0 ;
15795 char * kwnames[] = {
15796 (char *) "variant", NULL
15797 };
15798
15799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15800 if (obj0) {
15801 ecode1 = SWIG_AsVal_int(obj0, &val1);
15802 if (!SWIG_IsOK(ecode1)) {
15803 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15804 }
15805 arg1 = static_cast< wxWindowVariant >(val1);
15806 }
15807 {
15808 if (!wxPyCheckForApp()) SWIG_fail;
15809 PyThreadState* __tstate = wxPyBeginAllowThreads();
15810 result = wxSpinCtrl::GetClassDefaultAttributes(arg1);
15811 wxPyEndAllowThreads(__tstate);
15812 if (PyErr_Occurred()) SWIG_fail;
15813 }
15814 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15815 return resultobj;
15816fail:
15817 return NULL;
d55e5bfc
RD
15818}
15819
15820
1bd55598
RD
15821SWIGINTERN PyObject *SpinCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15822 PyObject *obj;
15823 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15824 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinCtrl, SWIG_NewClientData(obj));
15825 return SWIG_Py_Void();
d55e5bfc
RD
15826}
15827
1bd55598
RD
15828SWIGINTERN PyObject *SpinCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15829 return SWIG_Python_InitShadowInstance(args);
15830}
d55e5bfc 15831
1bd55598
RD
15832SWIGINTERN PyObject *_wrap_new_SpinEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15833 PyObject *resultobj = 0;
15834 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15835 int arg2 = (int) 0 ;
15836 wxSpinEvent *result = 0 ;
15837 int val1 ;
15838 int ecode1 = 0 ;
15839 int val2 ;
15840 int ecode2 = 0 ;
15841 PyObject * obj0 = 0 ;
15842 PyObject * obj1 = 0 ;
15843 char * kwnames[] = {
15844 (char *) "commandType",(char *) "winid", NULL
15845 };
15846
15847 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) SWIG_fail;
15848 if (obj0) {
15849 ecode1 = SWIG_AsVal_int(obj0, &val1);
15850 if (!SWIG_IsOK(ecode1)) {
15851 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SpinEvent" "', expected argument " "1"" of type '" "wxEventType""'");
15852 }
15853 arg1 = static_cast< wxEventType >(val1);
15854 }
15855 if (obj1) {
15856 ecode2 = SWIG_AsVal_int(obj1, &val2);
15857 if (!SWIG_IsOK(ecode2)) {
15858 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinEvent" "', expected argument " "2"" of type '" "int""'");
15859 }
15860 arg2 = static_cast< int >(val2);
15861 }
15862 {
15863 PyThreadState* __tstate = wxPyBeginAllowThreads();
15864 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
15865 wxPyEndAllowThreads(__tstate);
15866 if (PyErr_Occurred()) SWIG_fail;
15867 }
15868 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_NEW | 0 );
15869 return resultobj;
15870fail:
15871 return NULL;
d55e5bfc
RD
15872}
15873
15874
1bd55598
RD
15875SWIGINTERN PyObject *_wrap_SpinEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15876 PyObject *resultobj = 0;
15877 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15878 int result;
15879 void *argp1 = 0 ;
15880 int res1 = 0 ;
15881 PyObject *swig_obj[1] ;
15882
15883 if (!args) SWIG_fail;
15884 swig_obj[0] = args;
15885 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15886 if (!SWIG_IsOK(res1)) {
15887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_GetPosition" "', expected argument " "1"" of type '" "wxSpinEvent const *""'");
15888 }
15889 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15890 {
15891 PyThreadState* __tstate = wxPyBeginAllowThreads();
15892 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
15893 wxPyEndAllowThreads(__tstate);
15894 if (PyErr_Occurred()) SWIG_fail;
15895 }
15896 resultobj = SWIG_From_int(static_cast< int >(result));
15897 return resultobj;
15898fail:
15899 return NULL;
15900}
15901
15902
15903SWIGINTERN PyObject *_wrap_SpinEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15904 PyObject *resultobj = 0;
15905 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15906 int arg2 ;
15907 void *argp1 = 0 ;
15908 int res1 = 0 ;
15909 int val2 ;
15910 int ecode2 = 0 ;
15911 PyObject * obj0 = 0 ;
15912 PyObject * obj1 = 0 ;
15913 char * kwnames[] = {
15914 (char *) "self",(char *) "pos", NULL
15915 };
15916
15917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
15918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15919 if (!SWIG_IsOK(res1)) {
15920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_SetPosition" "', expected argument " "1"" of type '" "wxSpinEvent *""'");
15921 }
15922 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15923 ecode2 = SWIG_AsVal_int(obj1, &val2);
15924 if (!SWIG_IsOK(ecode2)) {
15925 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinEvent_SetPosition" "', expected argument " "2"" of type '" "int""'");
15926 }
15927 arg2 = static_cast< int >(val2);
15928 {
15929 PyThreadState* __tstate = wxPyBeginAllowThreads();
15930 (arg1)->SetPosition(arg2);
15931 wxPyEndAllowThreads(__tstate);
15932 if (PyErr_Occurred()) SWIG_fail;
15933 }
15934 resultobj = SWIG_Py_Void();
15935 return resultobj;
15936fail:
15937 return NULL;
d55e5bfc
RD
15938}
15939
15940
1bd55598
RD
15941SWIGINTERN PyObject *SpinEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15942 PyObject *obj;
15943 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15944 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinEvent, SWIG_NewClientData(obj));
15945 return SWIG_Py_Void();
d55e5bfc
RD
15946}
15947
1bd55598
RD
15948SWIGINTERN PyObject *SpinEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15949 return SWIG_Python_InitShadowInstance(args);
15950}
d55e5bfc 15951
1bd55598
RD
15952SWIGINTERN int RadioBoxNameStr_set(PyObject *) {
15953 SWIG_Error(SWIG_AttributeError,"Variable RadioBoxNameStr is read-only.");
15954 return 1;
d55e5bfc
RD
15955}
15956
15957
1bd55598
RD
15958SWIGINTERN PyObject *RadioBoxNameStr_get(void) {
15959 PyObject *pyobj = 0;
15960
15961 {
15962#if wxUSE_UNICODE
15963 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15964#else
15965 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15966#endif
15967 }
15968 return pyobj;
d55e5bfc
RD
15969}
15970
15971
1bd55598
RD
15972SWIGINTERN int RadioButtonNameStr_set(PyObject *) {
15973 SWIG_Error(SWIG_AttributeError,"Variable RadioButtonNameStr is read-only.");
15974 return 1;
15975}
15976
15977
15978SWIGINTERN PyObject *RadioButtonNameStr_get(void) {
15979 PyObject *pyobj = 0;
15980
15981 {
15982#if wxUSE_UNICODE
15983 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15984#else
15985 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15986#endif
15987 }
15988 return pyobj;
15989}
15990
15991
15992SWIGINTERN PyObject *_wrap_new_RadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15993 PyObject *resultobj = 0;
15994 wxWindow *arg1 = (wxWindow *) 0 ;
15995 int arg2 = (int) -1 ;
15996 wxString const &arg3_defvalue = wxPyEmptyString ;
15997 wxString *arg3 = (wxString *) &arg3_defvalue ;
15998 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15999 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
16000 wxSize const &arg5_defvalue = wxDefaultSize ;
16001 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
16002 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
16003 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
16004 int arg7 = (int) 0 ;
16005 long arg8 = (long) wxRA_HORIZONTAL ;
16006 wxValidator const &arg9_defvalue = wxDefaultValidator ;
16007 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
16008 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
16009 wxString *arg10 = (wxString *) &arg10_defvalue ;
16010 wxRadioBox *result = 0 ;
16011 void *argp1 = 0 ;
16012 int res1 = 0 ;
16013 int val2 ;
16014 int ecode2 = 0 ;
16015 bool temp3 = false ;
16016 wxPoint temp4 ;
16017 wxSize temp5 ;
16018 bool temp6 = false ;
16019 int val7 ;
16020 int ecode7 = 0 ;
16021 long val8 ;
16022 int ecode8 = 0 ;
16023 void *argp9 = 0 ;
16024 int res9 = 0 ;
16025 bool temp10 = false ;
16026 PyObject * obj0 = 0 ;
16027 PyObject * obj1 = 0 ;
16028 PyObject * obj2 = 0 ;
16029 PyObject * obj3 = 0 ;
16030 PyObject * obj4 = 0 ;
16031 PyObject * obj5 = 0 ;
16032 PyObject * obj6 = 0 ;
16033 PyObject * obj7 = 0 ;
16034 PyObject * obj8 = 0 ;
16035 PyObject * obj9 = 0 ;
16036 char * kwnames[] = {
16037 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16038 };
16039
16040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
16041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
16042 if (!SWIG_IsOK(res1)) {
16043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioBox" "', expected argument " "1"" of type '" "wxWindow *""'");
16044 }
16045 arg1 = reinterpret_cast< wxWindow * >(argp1);
16046 if (obj1) {
16047 ecode2 = SWIG_AsVal_int(obj1, &val2);
16048 if (!SWIG_IsOK(ecode2)) {
16049 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioBox" "', expected argument " "2"" of type '" "int""'");
16050 }
16051 arg2 = static_cast< int >(val2);
16052 }
16053 if (obj2) {
36ed4f51 16054 {
1bd55598
RD
16055 arg3 = wxString_in_helper(obj2);
16056 if (arg3 == NULL) SWIG_fail;
16057 temp3 = true;
36ed4f51 16058 }
1bd55598
RD
16059 }
16060 if (obj3) {
36ed4f51 16061 {
1bd55598
RD
16062 arg4 = &temp4;
16063 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 16064 }
1bd55598
RD
16065 }
16066 if (obj4) {
d55e5bfc 16067 {
1bd55598
RD
16068 arg5 = &temp5;
16069 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 16070 }
1bd55598
RD
16071 }
16072 if (obj5) {
d55e5bfc 16073 {
1bd55598
RD
16074 if (! PySequence_Check(obj5)) {
16075 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16076 SWIG_fail;
16077 }
16078 arg6 = new wxArrayString;
16079 temp6 = true;
16080 int i, len=PySequence_Length(obj5);
16081 for (i=0; i<len; i++) {
16082 PyObject* item = PySequence_GetItem(obj5, i);
16083 wxString* s = wxString_in_helper(item);
16084 if (PyErr_Occurred()) SWIG_fail;
16085 arg6->Add(*s);
16086 delete s;
16087 Py_DECREF(item);
16088 }
d55e5bfc 16089 }
1bd55598
RD
16090 }
16091 if (obj6) {
16092 ecode7 = SWIG_AsVal_int(obj6, &val7);
16093 if (!SWIG_IsOK(ecode7)) {
16094 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_RadioBox" "', expected argument " "7"" of type '" "int""'");
16095 }
16096 arg7 = static_cast< int >(val7);
16097 }
16098 if (obj7) {
16099 ecode8 = SWIG_AsVal_long(obj7, &val8);
16100 if (!SWIG_IsOK(ecode8)) {
16101 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_RadioBox" "', expected argument " "8"" of type '" "long""'");
16102 }
16103 arg8 = static_cast< long >(val8);
16104 }
16105 if (obj8) {
16106 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
16107 if (!SWIG_IsOK(res9)) {
16108 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
d55e5bfc 16109 }
1bd55598
RD
16110 if (!argp9) {
16111 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
d55e5bfc 16112 }
1bd55598
RD
16113 arg9 = reinterpret_cast< wxValidator * >(argp9);
16114 }
16115 if (obj9) {
d55e5bfc 16116 {
1bd55598
RD
16117 arg10 = wxString_in_helper(obj9);
16118 if (arg10 == NULL) SWIG_fail;
16119 temp10 = true;
d55e5bfc 16120 }
1bd55598
RD
16121 }
16122 {
16123 if (!wxPyCheckForApp()) SWIG_fail;
16124 PyThreadState* __tstate = wxPyBeginAllowThreads();
16125 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);
16126 wxPyEndAllowThreads(__tstate);
16127 if (PyErr_Occurred()) SWIG_fail;
16128 }
16129 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_NEW | 0 );
16130 {
16131 if (temp3)
16132 delete arg3;
16133 }
16134 {
16135 if (temp6) delete arg6;
16136 }
16137 {
16138 if (temp10)
16139 delete arg10;
16140 }
16141 return resultobj;
16142fail:
16143 {
16144 if (temp3)
16145 delete arg3;
16146 }
16147 {
16148 if (temp6) delete arg6;
16149 }
16150 {
16151 if (temp10)
16152 delete arg10;
16153 }
16154 return NULL;
d55e5bfc
RD
16155}
16156
16157
1bd55598
RD
16158SWIGINTERN PyObject *_wrap_new_PreRadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16159 PyObject *resultobj = 0;
16160 wxRadioBox *result = 0 ;
16161
16162 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioBox",0,0,0)) SWIG_fail;
16163 {
16164 if (!wxPyCheckForApp()) SWIG_fail;
16165 PyThreadState* __tstate = wxPyBeginAllowThreads();
16166 result = (wxRadioBox *)new wxRadioBox();
16167 wxPyEndAllowThreads(__tstate);
16168 if (PyErr_Occurred()) SWIG_fail;
16169 }
16170 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_OWN | 0 );
16171 return resultobj;
16172fail:
16173 return NULL;
16174}
16175
16176
16177SWIGINTERN PyObject *_wrap_RadioBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16178 PyObject *resultobj = 0;
16179 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16180 wxWindow *arg2 = (wxWindow *) 0 ;
16181 int arg3 = (int) -1 ;
16182 wxString const &arg4_defvalue = wxPyEmptyString ;
16183 wxString *arg4 = (wxString *) &arg4_defvalue ;
16184 wxPoint const &arg5_defvalue = wxDefaultPosition ;
16185 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
16186 wxSize const &arg6_defvalue = wxDefaultSize ;
16187 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
16188 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
16189 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
16190 int arg8 = (int) 0 ;
16191 long arg9 = (long) wxRA_HORIZONTAL ;
16192 wxValidator const &arg10_defvalue = wxDefaultValidator ;
16193 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
16194 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
16195 wxString *arg11 = (wxString *) &arg11_defvalue ;
16196 bool result;
16197 void *argp1 = 0 ;
16198 int res1 = 0 ;
16199 void *argp2 = 0 ;
16200 int res2 = 0 ;
16201 int val3 ;
16202 int ecode3 = 0 ;
16203 bool temp4 = false ;
16204 wxPoint temp5 ;
16205 wxSize temp6 ;
16206 bool temp7 = false ;
16207 int val8 ;
16208 int ecode8 = 0 ;
16209 long val9 ;
16210 int ecode9 = 0 ;
16211 void *argp10 = 0 ;
16212 int res10 = 0 ;
16213 bool temp11 = false ;
16214 PyObject * obj0 = 0 ;
16215 PyObject * obj1 = 0 ;
16216 PyObject * obj2 = 0 ;
16217 PyObject * obj3 = 0 ;
16218 PyObject * obj4 = 0 ;
16219 PyObject * obj5 = 0 ;
16220 PyObject * obj6 = 0 ;
16221 PyObject * obj7 = 0 ;
16222 PyObject * obj8 = 0 ;
16223 PyObject * obj9 = 0 ;
16224 PyObject * obj10 = 0 ;
16225 char * kwnames[] = {
16226 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16227 };
16228
16229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
16230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16231 if (!SWIG_IsOK(res1)) {
16232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_Create" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16233 }
16234 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16235 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
16236 if (!SWIG_IsOK(res2)) {
16237 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
16238 }
16239 arg2 = reinterpret_cast< wxWindow * >(argp2);
16240 if (obj2) {
16241 ecode3 = SWIG_AsVal_int(obj2, &val3);
16242 if (!SWIG_IsOK(ecode3)) {
16243 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_Create" "', expected argument " "3"" of type '" "int""'");
16244 }
16245 arg3 = static_cast< int >(val3);
16246 }
16247 if (obj3) {
36ed4f51 16248 {
1bd55598
RD
16249 arg4 = wxString_in_helper(obj3);
16250 if (arg4 == NULL) SWIG_fail;
16251 temp4 = true;
36ed4f51 16252 }
1bd55598
RD
16253 }
16254 if (obj4) {
36ed4f51 16255 {
1bd55598
RD
16256 arg5 = &temp5;
16257 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 16258 }
1bd55598
RD
16259 }
16260 if (obj5) {
d55e5bfc 16261 {
1bd55598
RD
16262 arg6 = &temp6;
16263 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 16264 }
1bd55598
RD
16265 }
16266 if (obj6) {
36ed4f51 16267 {
1bd55598
RD
16268 if (! PySequence_Check(obj6)) {
16269 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16270 SWIG_fail;
16271 }
16272 arg7 = new wxArrayString;
16273 temp7 = true;
16274 int i, len=PySequence_Length(obj6);
16275 for (i=0; i<len; i++) {
16276 PyObject* item = PySequence_GetItem(obj6, i);
16277 wxString* s = wxString_in_helper(item);
16278 if (PyErr_Occurred()) SWIG_fail;
16279 arg7->Add(*s);
16280 delete s;
16281 Py_DECREF(item);
16282 }
36ed4f51 16283 }
1bd55598
RD
16284 }
16285 if (obj7) {
16286 ecode8 = SWIG_AsVal_int(obj7, &val8);
16287 if (!SWIG_IsOK(ecode8)) {
16288 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "RadioBox_Create" "', expected argument " "8"" of type '" "int""'");
16289 }
16290 arg8 = static_cast< int >(val8);
16291 }
16292 if (obj8) {
16293 ecode9 = SWIG_AsVal_long(obj8, &val9);
16294 if (!SWIG_IsOK(ecode9)) {
16295 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "RadioBox_Create" "', expected argument " "9"" of type '" "long""'");
16296 }
16297 arg9 = static_cast< long >(val9);
16298 }
16299 if (obj9) {
16300 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
16301 if (!SWIG_IsOK(res10)) {
16302 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
36ed4f51 16303 }
1bd55598
RD
16304 if (!argp10) {
16305 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
36ed4f51 16306 }
1bd55598
RD
16307 arg10 = reinterpret_cast< wxValidator * >(argp10);
16308 }
16309 if (obj10) {
d55e5bfc 16310 {
1bd55598
RD
16311 arg11 = wxString_in_helper(obj10);
16312 if (arg11 == NULL) SWIG_fail;
16313 temp11 = true;
d55e5bfc 16314 }
1bd55598
RD
16315 }
16316 {
16317 PyThreadState* __tstate = wxPyBeginAllowThreads();
16318 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);
16319 wxPyEndAllowThreads(__tstate);
16320 if (PyErr_Occurred()) SWIG_fail;
16321 }
16322 {
16323 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16324 }
16325 {
16326 if (temp4)
16327 delete arg4;
16328 }
16329 {
16330 if (temp7) delete arg7;
16331 }
16332 {
16333 if (temp11)
16334 delete arg11;
16335 }
16336 return resultobj;
16337fail:
16338 {
16339 if (temp4)
16340 delete arg4;
16341 }
16342 {
16343 if (temp7) delete arg7;
16344 }
16345 {
16346 if (temp11)
16347 delete arg11;
16348 }
16349 return NULL;
16350}
16351
16352
16353SWIGINTERN PyObject *_wrap_RadioBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16354 PyObject *resultobj = 0;
16355 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16356 int arg2 ;
16357 void *argp1 = 0 ;
16358 int res1 = 0 ;
16359 int val2 ;
16360 int ecode2 = 0 ;
16361 PyObject * obj0 = 0 ;
16362 PyObject * obj1 = 0 ;
16363 char * kwnames[] = {
16364 (char *) "self",(char *) "n", NULL
16365 };
16366
16367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16369 if (!SWIG_IsOK(res1)) {
16370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16371 }
16372 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16373 ecode2 = SWIG_AsVal_int(obj1, &val2);
16374 if (!SWIG_IsOK(ecode2)) {
16375 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
16376 }
16377 arg2 = static_cast< int >(val2);
16378 {
16379 PyThreadState* __tstate = wxPyBeginAllowThreads();
16380 (arg1)->SetSelection(arg2);
16381 wxPyEndAllowThreads(__tstate);
16382 if (PyErr_Occurred()) SWIG_fail;
16383 }
16384 resultobj = SWIG_Py_Void();
16385 return resultobj;
16386fail:
16387 return NULL;
d55e5bfc
RD
16388}
16389
16390
1bd55598
RD
16391SWIGINTERN PyObject *_wrap_RadioBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16392 PyObject *resultobj = 0;
16393 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16394 int result;
16395 void *argp1 = 0 ;
16396 int res1 = 0 ;
16397 PyObject *swig_obj[1] ;
16398
16399 if (!args) SWIG_fail;
16400 swig_obj[0] = args;
16401 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16402 if (!SWIG_IsOK(res1)) {
16403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16404 }
16405 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16406 {
16407 PyThreadState* __tstate = wxPyBeginAllowThreads();
16408 result = (int)((wxRadioBox const *)arg1)->GetSelection();
16409 wxPyEndAllowThreads(__tstate);
16410 if (PyErr_Occurred()) SWIG_fail;
16411 }
16412 resultobj = SWIG_From_int(static_cast< int >(result));
16413 return resultobj;
16414fail:
16415 return NULL;
d55e5bfc
RD
16416}
16417
16418
1bd55598
RD
16419SWIGINTERN PyObject *_wrap_RadioBox_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16420 PyObject *resultobj = 0;
16421 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16422 wxString result;
16423 void *argp1 = 0 ;
16424 int res1 = 0 ;
16425 PyObject *swig_obj[1] ;
16426
16427 if (!args) SWIG_fail;
16428 swig_obj[0] = args;
16429 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16430 if (!SWIG_IsOK(res1)) {
16431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16432 }
16433 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16434 {
16435 PyThreadState* __tstate = wxPyBeginAllowThreads();
16436 result = ((wxRadioBox const *)arg1)->GetStringSelection();
16437 wxPyEndAllowThreads(__tstate);
16438 if (PyErr_Occurred()) SWIG_fail;
16439 }
16440 {
16441#if wxUSE_UNICODE
16442 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16443#else
16444 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16445#endif
16446 }
16447 return resultobj;
16448fail:
16449 return NULL;
16450}
16451
16452
16453SWIGINTERN PyObject *_wrap_RadioBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16454 PyObject *resultobj = 0;
16455 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16456 wxString *arg2 = 0 ;
16457 bool result;
16458 void *argp1 = 0 ;
16459 int res1 = 0 ;
16460 bool temp2 = false ;
16461 PyObject * obj0 = 0 ;
16462 PyObject * obj1 = 0 ;
16463 char * kwnames[] = {
16464 (char *) "self",(char *) "s", NULL
16465 };
16466
16467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16468 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16469 if (!SWIG_IsOK(res1)) {
16470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16471 }
16472 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16473 {
16474 arg2 = wxString_in_helper(obj1);
16475 if (arg2 == NULL) SWIG_fail;
16476 temp2 = true;
16477 }
16478 {
16479 PyThreadState* __tstate = wxPyBeginAllowThreads();
16480 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
16481 wxPyEndAllowThreads(__tstate);
16482 if (PyErr_Occurred()) SWIG_fail;
16483 }
16484 {
16485 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16486 }
16487 {
16488 if (temp2)
16489 delete arg2;
16490 }
16491 return resultobj;
16492fail:
16493 {
16494 if (temp2)
16495 delete arg2;
16496 }
16497 return NULL;
4896ac9e
RD
16498}
16499
16500
1bd55598
RD
16501SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16502 PyObject *resultobj = 0;
16503 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
1c71765a 16504 size_t result;
1bd55598
RD
16505 void *argp1 = 0 ;
16506 int res1 = 0 ;
16507 PyObject *swig_obj[1] ;
16508
16509 if (!args) SWIG_fail;
16510 swig_obj[0] = args;
16511 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16512 if (!SWIG_IsOK(res1)) {
16513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16514 }
16515 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16516 {
16517 PyThreadState* __tstate = wxPyBeginAllowThreads();
1c71765a 16518 result = (size_t)((wxRadioBox const *)arg1)->GetCount();
1bd55598
RD
16519 wxPyEndAllowThreads(__tstate);
16520 if (PyErr_Occurred()) SWIG_fail;
16521 }
1c71765a 16522 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
1bd55598
RD
16523 return resultobj;
16524fail:
16525 return NULL;
16526}
16527
16528
16529SWIGINTERN PyObject *_wrap_RadioBox_FindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16530 PyObject *resultobj = 0;
16531 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16532 wxString *arg2 = 0 ;
16533 int result;
16534 void *argp1 = 0 ;
16535 int res1 = 0 ;
16536 bool temp2 = false ;
16537 PyObject * obj0 = 0 ;
16538 PyObject * obj1 = 0 ;
16539 char * kwnames[] = {
16540 (char *) "self",(char *) "s", NULL
16541 };
16542
16543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) SWIG_fail;
16544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16545 if (!SWIG_IsOK(res1)) {
16546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_FindString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16547 }
16548 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16549 {
16550 arg2 = wxString_in_helper(obj1);
16551 if (arg2 == NULL) SWIG_fail;
16552 temp2 = true;
16553 }
16554 {
16555 PyThreadState* __tstate = wxPyBeginAllowThreads();
16556 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
16557 wxPyEndAllowThreads(__tstate);
16558 if (PyErr_Occurred()) SWIG_fail;
16559 }
16560 resultobj = SWIG_From_int(static_cast< int >(result));
16561 {
16562 if (temp2)
16563 delete arg2;
16564 }
16565 return resultobj;
16566fail:
16567 {
16568 if (temp2)
16569 delete arg2;
16570 }
16571 return NULL;
16572}
16573
16574
16575SWIGINTERN PyObject *_wrap_RadioBox_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16576 PyObject *resultobj = 0;
16577 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16578 int arg2 ;
16579 wxString result;
16580 void *argp1 = 0 ;
16581 int res1 = 0 ;
16582 int val2 ;
16583 int ecode2 = 0 ;
16584 PyObject * obj0 = 0 ;
16585 PyObject * obj1 = 0 ;
16586 char * kwnames[] = {
16587 (char *) "self",(char *) "n", NULL
16588 };
16589
16590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) SWIG_fail;
16591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16592 if (!SWIG_IsOK(res1)) {
16593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16594 }
16595 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16596 ecode2 = SWIG_AsVal_int(obj1, &val2);
16597 if (!SWIG_IsOK(ecode2)) {
16598 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetString" "', expected argument " "2"" of type '" "int""'");
16599 }
16600 arg2 = static_cast< int >(val2);
16601 {
16602 PyThreadState* __tstate = wxPyBeginAllowThreads();
16603 result = ((wxRadioBox const *)arg1)->GetString(arg2);
16604 wxPyEndAllowThreads(__tstate);
16605 if (PyErr_Occurred()) SWIG_fail;
16606 }
16607 {
16608#if wxUSE_UNICODE
16609 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16610#else
16611 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16612#endif
16613 }
16614 return resultobj;
16615fail:
16616 return NULL;
16617}
16618
16619
16620SWIGINTERN PyObject *_wrap_RadioBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16621 PyObject *resultobj = 0;
16622 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16623 int arg2 ;
16624 wxString *arg3 = 0 ;
16625 void *argp1 = 0 ;
16626 int res1 = 0 ;
16627 int val2 ;
16628 int ecode2 = 0 ;
16629 bool temp3 = false ;
16630 PyObject * obj0 = 0 ;
16631 PyObject * obj1 = 0 ;
16632 PyObject * obj2 = 0 ;
16633 char * kwnames[] = {
16634 (char *) "self",(char *) "n",(char *) "label", NULL
16635 };
16636
16637 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16638 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16639 if (!SWIG_IsOK(res1)) {
16640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetString" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16641 }
16642 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16643 ecode2 = SWIG_AsVal_int(obj1, &val2);
16644 if (!SWIG_IsOK(ecode2)) {
16645 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetString" "', expected argument " "2"" of type '" "int""'");
16646 }
16647 arg2 = static_cast< int >(val2);
16648 {
16649 arg3 = wxString_in_helper(obj2);
16650 if (arg3 == NULL) SWIG_fail;
16651 temp3 = true;
16652 }
16653 {
16654 PyThreadState* __tstate = wxPyBeginAllowThreads();
16655 (arg1)->SetString(arg2,(wxString const &)*arg3);
16656 wxPyEndAllowThreads(__tstate);
16657 if (PyErr_Occurred()) SWIG_fail;
16658 }
16659 resultobj = SWIG_Py_Void();
16660 {
16661 if (temp3)
16662 delete arg3;
16663 }
16664 return resultobj;
16665fail:
16666 {
16667 if (temp3)
16668 delete arg3;
16669 }
16670 return NULL;
16671}
16672
16673
16674SWIGINTERN PyObject *_wrap_RadioBox_EnableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16675 PyObject *resultobj = 0;
16676 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16677 unsigned int arg2 ;
1bd55598
RD
16678 bool arg3 = (bool) true ;
16679 void *argp1 = 0 ;
16680 int res1 = 0 ;
50f151d7 16681 unsigned int val2 ;
1bd55598
RD
16682 int ecode2 = 0 ;
16683 bool val3 ;
16684 int ecode3 = 0 ;
16685 PyObject * obj0 = 0 ;
16686 PyObject * obj1 = 0 ;
16687 PyObject * obj2 = 0 ;
16688 char * kwnames[] = {
16689 (char *) "self",(char *) "n",(char *) "enable", NULL
16690 };
16691
16692 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16693 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16694 if (!SWIG_IsOK(res1)) {
16695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_EnableItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16696 }
16697 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
50f151d7 16698 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
1bd55598 16699 if (!SWIG_IsOK(ecode2)) {
50f151d7 16700 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_EnableItem" "', expected argument " "2"" of type '" "unsigned int""'");
1bd55598 16701 }
50f151d7 16702 arg2 = static_cast< unsigned int >(val2);
1bd55598
RD
16703 if (obj2) {
16704 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16705 if (!SWIG_IsOK(ecode3)) {
16706 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_EnableItem" "', expected argument " "3"" of type '" "bool""'");
16707 }
16708 arg3 = static_cast< bool >(val3);
16709 }
16710 {
16711 PyThreadState* __tstate = wxPyBeginAllowThreads();
16712 (arg1)->Enable(arg2,arg3);
16713 wxPyEndAllowThreads(__tstate);
16714 if (PyErr_Occurred()) SWIG_fail;
16715 }
16716 resultobj = SWIG_Py_Void();
16717 return resultobj;
16718fail:
16719 return NULL;
16720}
16721
16722
16723SWIGINTERN PyObject *_wrap_RadioBox_ShowItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16724 PyObject *resultobj = 0;
16725 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16726 unsigned int arg2 ;
1bd55598
RD
16727 bool arg3 = (bool) true ;
16728 void *argp1 = 0 ;
16729 int res1 = 0 ;
50f151d7 16730 unsigned int val2 ;
1bd55598
RD
16731 int ecode2 = 0 ;
16732 bool val3 ;
16733 int ecode3 = 0 ;
16734 PyObject * obj0 = 0 ;
16735 PyObject * obj1 = 0 ;
16736 PyObject * obj2 = 0 ;
16737 char * kwnames[] = {
16738 (char *) "self",(char *) "n",(char *) "show", NULL
16739 };
16740
16741 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16742 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16743 if (!SWIG_IsOK(res1)) {
16744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_ShowItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16745 }
16746 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
50f151d7 16747 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
1bd55598 16748 if (!SWIG_IsOK(ecode2)) {
50f151d7 16749 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_ShowItem" "', expected argument " "2"" of type '" "unsigned int""'");
1bd55598 16750 }
50f151d7 16751 arg2 = static_cast< unsigned int >(val2);
1bd55598
RD
16752 if (obj2) {
16753 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16754 if (!SWIG_IsOK(ecode3)) {
16755 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_ShowItem" "', expected argument " "3"" of type '" "bool""'");
16756 }
16757 arg3 = static_cast< bool >(val3);
16758 }
16759 {
16760 PyThreadState* __tstate = wxPyBeginAllowThreads();
16761 (arg1)->Show(arg2,arg3);
16762 wxPyEndAllowThreads(__tstate);
16763 if (PyErr_Occurred()) SWIG_fail;
16764 }
16765 resultobj = SWIG_Py_Void();
16766 return resultobj;
16767fail:
16768 return NULL;
d55e5bfc
RD
16769}
16770
16771
50f151d7
RD
16772SWIGINTERN PyObject *_wrap_RadioBox_IsItemEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16773 PyObject *resultobj = 0;
16774 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16775 unsigned int arg2 ;
16776 bool result;
16777 void *argp1 = 0 ;
16778 int res1 = 0 ;
16779 unsigned int val2 ;
16780 int ecode2 = 0 ;
16781 PyObject * obj0 = 0 ;
16782 PyObject * obj1 = 0 ;
16783 char * kwnames[] = {
16784 (char *) "self",(char *) "n", NULL
16785 };
16786
16787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
16788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16789 if (!SWIG_IsOK(res1)) {
16790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16791 }
16792 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16793 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16794 if (!SWIG_IsOK(ecode2)) {
16795 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "2"" of type '" "unsigned int""'");
16796 }
16797 arg2 = static_cast< unsigned int >(val2);
16798 {
16799 PyThreadState* __tstate = wxPyBeginAllowThreads();
16800 result = (bool)((wxRadioBox const *)arg1)->IsItemEnabled(arg2);
16801 wxPyEndAllowThreads(__tstate);
16802 if (PyErr_Occurred()) SWIG_fail;
16803 }
16804 {
16805 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16806 }
16807 return resultobj;
16808fail:
16809 return NULL;
16810}
16811
16812
16813SWIGINTERN PyObject *_wrap_RadioBox_IsItemShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16814 PyObject *resultobj = 0;
16815 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16816 unsigned int arg2 ;
16817 bool result;
16818 void *argp1 = 0 ;
16819 int res1 = 0 ;
16820 unsigned int val2 ;
16821 int ecode2 = 0 ;
16822 PyObject * obj0 = 0 ;
16823 PyObject * obj1 = 0 ;
16824 char * kwnames[] = {
16825 (char *) "self",(char *) "n", NULL
16826 };
16827
16828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemShown",kwnames,&obj0,&obj1)) SWIG_fail;
16829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16830 if (!SWIG_IsOK(res1)) {
16831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemShown" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16832 }
16833 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16834 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16835 if (!SWIG_IsOK(ecode2)) {
16836 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemShown" "', expected argument " "2"" of type '" "unsigned int""'");
16837 }
16838 arg2 = static_cast< unsigned int >(val2);
16839 {
16840 PyThreadState* __tstate = wxPyBeginAllowThreads();
16841 result = (bool)((wxRadioBox const *)arg1)->IsItemShown(arg2);
16842 wxPyEndAllowThreads(__tstate);
16843 if (PyErr_Occurred()) SWIG_fail;
16844 }
16845 {
16846 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16847 }
16848 return resultobj;
16849fail:
16850 return NULL;
16851}
16852
16853
1bd55598
RD
16854SWIGINTERN PyObject *_wrap_RadioBox_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16855 PyObject *resultobj = 0;
16856 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16857 unsigned int result;
1bd55598
RD
16858 void *argp1 = 0 ;
16859 int res1 = 0 ;
16860 PyObject *swig_obj[1] ;
16861
16862 if (!args) SWIG_fail;
16863 swig_obj[0] = args;
16864 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16865 if (!SWIG_IsOK(res1)) {
16866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetColumnCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16867 }
16868 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16869 {
16870 PyThreadState* __tstate = wxPyBeginAllowThreads();
50f151d7 16871 result = (unsigned int)((wxRadioBox const *)arg1)->GetColumnCount();
1bd55598
RD
16872 wxPyEndAllowThreads(__tstate);
16873 if (PyErr_Occurred()) SWIG_fail;
16874 }
50f151d7 16875 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
1bd55598
RD
16876 return resultobj;
16877fail:
16878 return NULL;
d55e5bfc
RD
16879}
16880
16881
1bd55598
RD
16882SWIGINTERN PyObject *_wrap_RadioBox_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16883 PyObject *resultobj = 0;
16884 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16885 unsigned int result;
1bd55598
RD
16886 void *argp1 = 0 ;
16887 int res1 = 0 ;
16888 PyObject *swig_obj[1] ;
16889
16890 if (!args) SWIG_fail;
16891 swig_obj[0] = args;
16892 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16893 if (!SWIG_IsOK(res1)) {
16894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetRowCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16895 }
16896 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16897 {
16898 PyThreadState* __tstate = wxPyBeginAllowThreads();
50f151d7 16899 result = (unsigned int)((wxRadioBox const *)arg1)->GetRowCount();
1bd55598
RD
16900 wxPyEndAllowThreads(__tstate);
16901 if (PyErr_Occurred()) SWIG_fail;
16902 }
50f151d7 16903 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
1bd55598
RD
16904 return resultobj;
16905fail:
16906 return NULL;
16907}
16908
16909
16910SWIGINTERN PyObject *_wrap_RadioBox_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16911 PyObject *resultobj = 0;
16912 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16913 int arg2 ;
16914 wxDirection arg3 ;
16915 long arg4 ;
16916 int result;
16917 void *argp1 = 0 ;
16918 int res1 = 0 ;
16919 int val2 ;
16920 int ecode2 = 0 ;
16921 int val3 ;
16922 int ecode3 = 0 ;
16923 long val4 ;
16924 int ecode4 = 0 ;
16925 PyObject * obj0 = 0 ;
16926 PyObject * obj1 = 0 ;
16927 PyObject * obj2 = 0 ;
16928 PyObject * obj3 = 0 ;
16929 char * kwnames[] = {
16930 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
16931 };
16932
16933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16935 if (!SWIG_IsOK(res1)) {
16936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetNextItem" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16937 }
16938 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16939 ecode2 = SWIG_AsVal_int(obj1, &val2);
16940 if (!SWIG_IsOK(ecode2)) {
16941 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetNextItem" "', expected argument " "2"" of type '" "int""'");
16942 }
16943 arg2 = static_cast< int >(val2);
16944 ecode3 = SWIG_AsVal_int(obj2, &val3);
16945 if (!SWIG_IsOK(ecode3)) {
16946 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_GetNextItem" "', expected argument " "3"" of type '" "wxDirection""'");
16947 }
16948 arg3 = static_cast< wxDirection >(val3);
16949 ecode4 = SWIG_AsVal_long(obj3, &val4);
16950 if (!SWIG_IsOK(ecode4)) {
16951 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RadioBox_GetNextItem" "', expected argument " "4"" of type '" "long""'");
16952 }
16953 arg4 = static_cast< long >(val4);
16954 {
16955 PyThreadState* __tstate = wxPyBeginAllowThreads();
16956 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,arg3,arg4);
16957 wxPyEndAllowThreads(__tstate);
16958 if (PyErr_Occurred()) SWIG_fail;
16959 }
16960 resultobj = SWIG_From_int(static_cast< int >(result));
16961 return resultobj;
16962fail:
16963 return NULL;
16964}
16965
16966
2131d850
RD
16967SWIGINTERN PyObject *_wrap_RadioBox_SetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16968 PyObject *resultobj = 0;
16969 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16970 unsigned int arg2 ;
16971 wxString *arg3 = 0 ;
16972 void *argp1 = 0 ;
16973 int res1 = 0 ;
16974 unsigned int val2 ;
16975 int ecode2 = 0 ;
16976 bool temp3 = false ;
16977 PyObject * obj0 = 0 ;
16978 PyObject * obj1 = 0 ;
16979 PyObject * obj2 = 0 ;
16980 char * kwnames[] = {
16981 (char *) "self",(char *) "item",(char *) "text", NULL
16982 };
16983
16984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemToolTip",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16985 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16986 if (!SWIG_IsOK(res1)) {
16987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16988 }
16989 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16990 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16991 if (!SWIG_IsOK(ecode2)) {
16992 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
16993 }
16994 arg2 = static_cast< unsigned int >(val2);
16995 {
16996 arg3 = wxString_in_helper(obj2);
16997 if (arg3 == NULL) SWIG_fail;
16998 temp3 = true;
16999 }
17000 {
17001 PyThreadState* __tstate = wxPyBeginAllowThreads();
17002 (arg1)->SetItemToolTip(arg2,(wxString const &)*arg3);
17003 wxPyEndAllowThreads(__tstate);
17004 if (PyErr_Occurred()) SWIG_fail;
17005 }
17006 resultobj = SWIG_Py_Void();
17007 {
17008 if (temp3)
17009 delete arg3;
17010 }
17011 return resultobj;
17012fail:
17013 {
17014 if (temp3)
17015 delete arg3;
17016 }
17017 return NULL;
17018}
17019
17020
17021SWIGINTERN PyObject *_wrap_RadioBox_GetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17022 PyObject *resultobj = 0;
17023 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17024 unsigned int arg2 ;
17025 wxToolTip *result = 0 ;
17026 void *argp1 = 0 ;
17027 int res1 = 0 ;
17028 unsigned int val2 ;
17029 int ecode2 = 0 ;
17030 PyObject * obj0 = 0 ;
17031 PyObject * obj1 = 0 ;
17032 char * kwnames[] = {
17033 (char *) "self",(char *) "item", NULL
17034 };
17035
17036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
17037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17038 if (!SWIG_IsOK(res1)) {
17039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17040 }
17041 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17042 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17043 if (!SWIG_IsOK(ecode2)) {
17044 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
17045 }
17046 arg2 = static_cast< unsigned int >(val2);
17047 {
17048 PyThreadState* __tstate = wxPyBeginAllowThreads();
17049 result = (wxToolTip *)((wxRadioBox const *)arg1)->GetItemToolTip(arg2);
17050 wxPyEndAllowThreads(__tstate);
17051 if (PyErr_Occurred()) SWIG_fail;
17052 }
17053 {
17054 resultobj = wxPyMake_wxObject(result, (bool)0);
17055 }
17056 return resultobj;
17057fail:
17058 return NULL;
17059}
17060
17061
b850e7f3
RD
17062SWIGINTERN PyObject *_wrap_RadioBox_SetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17063 PyObject *resultobj = 0;
17064 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17065 unsigned int arg2 ;
17066 wxString *arg3 = 0 ;
17067 void *argp1 = 0 ;
17068 int res1 = 0 ;
17069 unsigned int val2 ;
17070 int ecode2 = 0 ;
17071 bool temp3 = false ;
17072 PyObject * obj0 = 0 ;
17073 PyObject * obj1 = 0 ;
17074 PyObject * obj2 = 0 ;
17075 char * kwnames[] = {
17076 (char *) "self",(char *) "n",(char *) "helpText", NULL
17077 };
17078
17079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemHelpText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17080 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17081 if (!SWIG_IsOK(res1)) {
17082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox *""'");
17083 }
17084 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17085 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17086 if (!SWIG_IsOK(ecode2)) {
17087 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17088 }
17089 arg2 = static_cast< unsigned int >(val2);
17090 {
17091 arg3 = wxString_in_helper(obj2);
17092 if (arg3 == NULL) SWIG_fail;
17093 temp3 = true;
17094 }
17095 {
17096 PyThreadState* __tstate = wxPyBeginAllowThreads();
17097 (arg1)->SetItemHelpText(arg2,(wxString const &)*arg3);
17098 wxPyEndAllowThreads(__tstate);
17099 if (PyErr_Occurred()) SWIG_fail;
17100 }
17101 resultobj = SWIG_Py_Void();
17102 {
17103 if (temp3)
17104 delete arg3;
17105 }
17106 return resultobj;
17107fail:
17108 {
17109 if (temp3)
17110 delete arg3;
17111 }
17112 return NULL;
17113}
17114
17115
17116SWIGINTERN PyObject *_wrap_RadioBox_GetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17117 PyObject *resultobj = 0;
17118 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17119 unsigned int arg2 ;
17120 wxString result;
17121 void *argp1 = 0 ;
17122 int res1 = 0 ;
17123 unsigned int val2 ;
17124 int ecode2 = 0 ;
17125 PyObject * obj0 = 0 ;
17126 PyObject * obj1 = 0 ;
17127 char * kwnames[] = {
17128 (char *) "self",(char *) "n", NULL
17129 };
17130
17131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemHelpText",kwnames,&obj0,&obj1)) SWIG_fail;
17132 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17133 if (!SWIG_IsOK(res1)) {
17134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17135 }
17136 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17137 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17138 if (!SWIG_IsOK(ecode2)) {
17139 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17140 }
17141 arg2 = static_cast< unsigned int >(val2);
17142 {
17143 PyThreadState* __tstate = wxPyBeginAllowThreads();
17144 result = ((wxRadioBox const *)arg1)->GetItemHelpText(arg2);
17145 wxPyEndAllowThreads(__tstate);
17146 if (PyErr_Occurred()) SWIG_fail;
17147 }
17148 {
17149#if wxUSE_UNICODE
17150 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17151#else
17152 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17153#endif
17154 }
17155 return resultobj;
17156fail:
17157 return NULL;
17158}
17159
17160
1bd55598
RD
17161SWIGINTERN PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17162 PyObject *resultobj = 0;
17163 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17164 SwigValueWrapper<wxVisualAttributes > result;
17165 int val1 ;
17166 int ecode1 = 0 ;
17167 PyObject * obj0 = 0 ;
17168 char * kwnames[] = {
17169 (char *) "variant", NULL
17170 };
17171
17172 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17173 if (obj0) {
17174 ecode1 = SWIG_AsVal_int(obj0, &val1);
17175 if (!SWIG_IsOK(ecode1)) {
17176 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17177 }
17178 arg1 = static_cast< wxWindowVariant >(val1);
17179 }
17180 {
17181 if (!wxPyCheckForApp()) SWIG_fail;
17182 PyThreadState* __tstate = wxPyBeginAllowThreads();
17183 result = wxRadioBox::GetClassDefaultAttributes(arg1);
17184 wxPyEndAllowThreads(__tstate);
17185 if (PyErr_Occurred()) SWIG_fail;
17186 }
17187 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17188 return resultobj;
17189fail:
17190 return NULL;
17191}
17192
17193
17194SWIGINTERN PyObject *RadioBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17195 PyObject *obj;
17196 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17197 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioBox, SWIG_NewClientData(obj));
17198 return SWIG_Py_Void();
17199}
17200
17201SWIGINTERN PyObject *RadioBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17202 return SWIG_Python_InitShadowInstance(args);
17203}
17204
17205SWIGINTERN PyObject *_wrap_new_RadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17206 PyObject *resultobj = 0;
17207 wxWindow *arg1 = (wxWindow *) 0 ;
17208 int arg2 = (int) -1 ;
17209 wxString const &arg3_defvalue = wxPyEmptyString ;
17210 wxString *arg3 = (wxString *) &arg3_defvalue ;
17211 wxPoint const &arg4_defvalue = wxDefaultPosition ;
17212 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
17213 wxSize const &arg5_defvalue = wxDefaultSize ;
17214 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
17215 long arg6 = (long) 0 ;
17216 wxValidator const &arg7_defvalue = wxDefaultValidator ;
17217 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
17218 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
17219 wxString *arg8 = (wxString *) &arg8_defvalue ;
17220 wxRadioButton *result = 0 ;
17221 void *argp1 = 0 ;
17222 int res1 = 0 ;
17223 int val2 ;
17224 int ecode2 = 0 ;
17225 bool temp3 = false ;
17226 wxPoint temp4 ;
17227 wxSize temp5 ;
17228 long val6 ;
17229 int ecode6 = 0 ;
17230 void *argp7 = 0 ;
17231 int res7 = 0 ;
17232 bool temp8 = false ;
17233 PyObject * obj0 = 0 ;
17234 PyObject * obj1 = 0 ;
17235 PyObject * obj2 = 0 ;
17236 PyObject * obj3 = 0 ;
17237 PyObject * obj4 = 0 ;
17238 PyObject * obj5 = 0 ;
17239 PyObject * obj6 = 0 ;
17240 PyObject * obj7 = 0 ;
17241 char * kwnames[] = {
17242 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17243 };
17244
17245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
17246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17247 if (!SWIG_IsOK(res1)) {
17248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioButton" "', expected argument " "1"" of type '" "wxWindow *""'");
17249 }
17250 arg1 = reinterpret_cast< wxWindow * >(argp1);
17251 if (obj1) {
17252 ecode2 = SWIG_AsVal_int(obj1, &val2);
17253 if (!SWIG_IsOK(ecode2)) {
17254 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioButton" "', expected argument " "2"" of type '" "int""'");
17255 }
17256 arg2 = static_cast< int >(val2);
17257 }
17258 if (obj2) {
d55e5bfc 17259 {
1bd55598
RD
17260 arg3 = wxString_in_helper(obj2);
17261 if (arg3 == NULL) SWIG_fail;
17262 temp3 = true;
d55e5bfc 17263 }
1bd55598
RD
17264 }
17265 if (obj3) {
d55e5bfc 17266 {
1bd55598
RD
17267 arg4 = &temp4;
17268 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 17269 }
1bd55598
RD
17270 }
17271 if (obj4) {
d55e5bfc 17272 {
1bd55598
RD
17273 arg5 = &temp5;
17274 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 17275 }
1bd55598
RD
17276 }
17277 if (obj5) {
17278 ecode6 = SWIG_AsVal_long(obj5, &val6);
17279 if (!SWIG_IsOK(ecode6)) {
17280 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RadioButton" "', expected argument " "6"" of type '" "long""'");
17281 }
17282 arg6 = static_cast< long >(val6);
17283 }
17284 if (obj6) {
17285 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
17286 if (!SWIG_IsOK(res7)) {
17287 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 17288 }
1bd55598
RD
17289 if (!argp7) {
17290 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17291 }
17292 arg7 = reinterpret_cast< wxValidator * >(argp7);
17293 }
17294 if (obj7) {
d55e5bfc 17295 {
1bd55598
RD
17296 arg8 = wxString_in_helper(obj7);
17297 if (arg8 == NULL) SWIG_fail;
17298 temp8 = true;
d55e5bfc 17299 }
1bd55598
RD
17300 }
17301 {
17302 if (!wxPyCheckForApp()) SWIG_fail;
17303 PyThreadState* __tstate = wxPyBeginAllowThreads();
17304 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
17305 wxPyEndAllowThreads(__tstate);
17306 if (PyErr_Occurred()) SWIG_fail;
17307 }
17308 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_NEW | 0 );
17309 {
17310 if (temp3)
17311 delete arg3;
17312 }
17313 {
17314 if (temp8)
17315 delete arg8;
17316 }
17317 return resultobj;
17318fail:
17319 {
17320 if (temp3)
17321 delete arg3;
17322 }
17323 {
17324 if (temp8)
17325 delete arg8;
17326 }
17327 return NULL;
d55e5bfc
RD
17328}
17329
17330
1bd55598
RD
17331SWIGINTERN PyObject *_wrap_new_PreRadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17332 PyObject *resultobj = 0;
17333 wxRadioButton *result = 0 ;
17334
17335 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioButton",0,0,0)) SWIG_fail;
17336 {
17337 if (!wxPyCheckForApp()) SWIG_fail;
17338 PyThreadState* __tstate = wxPyBeginAllowThreads();
17339 result = (wxRadioButton *)new wxRadioButton();
17340 wxPyEndAllowThreads(__tstate);
17341 if (PyErr_Occurred()) SWIG_fail;
17342 }
17343 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_OWN | 0 );
17344 return resultobj;
17345fail:
17346 return NULL;
17347}
17348
17349
17350SWIGINTERN PyObject *_wrap_RadioButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17351 PyObject *resultobj = 0;
17352 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17353 wxWindow *arg2 = (wxWindow *) 0 ;
17354 int arg3 = (int) -1 ;
17355 wxString const &arg4_defvalue = wxPyEmptyString ;
17356 wxString *arg4 = (wxString *) &arg4_defvalue ;
17357 wxPoint const &arg5_defvalue = wxDefaultPosition ;
17358 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
17359 wxSize const &arg6_defvalue = wxDefaultSize ;
17360 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
17361 long arg7 = (long) 0 ;
17362 wxValidator const &arg8_defvalue = wxDefaultValidator ;
17363 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
17364 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
17365 wxString *arg9 = (wxString *) &arg9_defvalue ;
17366 bool result;
17367 void *argp1 = 0 ;
17368 int res1 = 0 ;
17369 void *argp2 = 0 ;
17370 int res2 = 0 ;
17371 int val3 ;
17372 int ecode3 = 0 ;
17373 bool temp4 = false ;
17374 wxPoint temp5 ;
17375 wxSize temp6 ;
17376 long val7 ;
17377 int ecode7 = 0 ;
17378 void *argp8 = 0 ;
17379 int res8 = 0 ;
17380 bool temp9 = false ;
17381 PyObject * obj0 = 0 ;
17382 PyObject * obj1 = 0 ;
17383 PyObject * obj2 = 0 ;
17384 PyObject * obj3 = 0 ;
17385 PyObject * obj4 = 0 ;
17386 PyObject * obj5 = 0 ;
17387 PyObject * obj6 = 0 ;
17388 PyObject * obj7 = 0 ;
17389 PyObject * obj8 = 0 ;
17390 char * kwnames[] = {
17391 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17392 };
17393
17394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
17395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17396 if (!SWIG_IsOK(res1)) {
17397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_Create" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17398 }
17399 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17400 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17401 if (!SWIG_IsOK(res2)) {
17402 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17403 }
17404 arg2 = reinterpret_cast< wxWindow * >(argp2);
17405 if (obj2) {
17406 ecode3 = SWIG_AsVal_int(obj2, &val3);
17407 if (!SWIG_IsOK(ecode3)) {
17408 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioButton_Create" "', expected argument " "3"" of type '" "int""'");
17409 }
17410 arg3 = static_cast< int >(val3);
17411 }
17412 if (obj3) {
d55e5bfc 17413 {
1bd55598
RD
17414 arg4 = wxString_in_helper(obj3);
17415 if (arg4 == NULL) SWIG_fail;
17416 temp4 = true;
d55e5bfc 17417 }
1bd55598
RD
17418 }
17419 if (obj4) {
d55e5bfc 17420 {
1bd55598
RD
17421 arg5 = &temp5;
17422 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 17423 }
1bd55598
RD
17424 }
17425 if (obj5) {
d55e5bfc 17426 {
1bd55598
RD
17427 arg6 = &temp6;
17428 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 17429 }
1bd55598
RD
17430 }
17431 if (obj6) {
17432 ecode7 = SWIG_AsVal_long(obj6, &val7);
17433 if (!SWIG_IsOK(ecode7)) {
17434 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RadioButton_Create" "', expected argument " "7"" of type '" "long""'");
17435 }
17436 arg7 = static_cast< long >(val7);
17437 }
17438 if (obj7) {
17439 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
17440 if (!SWIG_IsOK(res8)) {
17441 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 17442 }
1bd55598
RD
17443 if (!argp8) {
17444 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 17445 }
1bd55598
RD
17446 arg8 = reinterpret_cast< wxValidator * >(argp8);
17447 }
17448 if (obj8) {
d55e5bfc 17449 {
1bd55598
RD
17450 arg9 = wxString_in_helper(obj8);
17451 if (arg9 == NULL) SWIG_fail;
17452 temp9 = true;
d55e5bfc 17453 }
1bd55598
RD
17454 }
17455 {
17456 PyThreadState* __tstate = wxPyBeginAllowThreads();
17457 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
17458 wxPyEndAllowThreads(__tstate);
17459 if (PyErr_Occurred()) SWIG_fail;
17460 }
17461 {
17462 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17463 }
17464 {
17465 if (temp4)
17466 delete arg4;
17467 }
17468 {
17469 if (temp9)
17470 delete arg9;
17471 }
17472 return resultobj;
17473fail:
17474 {
17475 if (temp4)
17476 delete arg4;
17477 }
17478 {
17479 if (temp9)
17480 delete arg9;
17481 }
17482 return NULL;
d55e5bfc
RD
17483}
17484
17485
1bd55598
RD
17486SWIGINTERN PyObject *_wrap_RadioButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17487 PyObject *resultobj = 0;
17488 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17489 bool result;
17490 void *argp1 = 0 ;
17491 int res1 = 0 ;
17492 PyObject *swig_obj[1] ;
17493
17494 if (!args) SWIG_fail;
17495 swig_obj[0] = args;
17496 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17497 if (!SWIG_IsOK(res1)) {
17498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_GetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17499 }
17500 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17501 {
17502 PyThreadState* __tstate = wxPyBeginAllowThreads();
17503 result = (bool)(arg1)->GetValue();
17504 wxPyEndAllowThreads(__tstate);
17505 if (PyErr_Occurred()) SWIG_fail;
17506 }
17507 {
17508 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17509 }
17510 return resultobj;
17511fail:
17512 return NULL;
17513}
17514
17515
17516SWIGINTERN PyObject *_wrap_RadioButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17517 PyObject *resultobj = 0;
17518 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17519 bool arg2 ;
17520 void *argp1 = 0 ;
17521 int res1 = 0 ;
17522 bool val2 ;
17523 int ecode2 = 0 ;
17524 PyObject * obj0 = 0 ;
17525 PyObject * obj1 = 0 ;
17526 char * kwnames[] = {
17527 (char *) "self",(char *) "value", NULL
17528 };
17529
17530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17532 if (!SWIG_IsOK(res1)) {
17533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_SetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17534 }
17535 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17536 ecode2 = SWIG_AsVal_bool(obj1, &val2);
17537 if (!SWIG_IsOK(ecode2)) {
17538 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
17539 }
17540 arg2 = static_cast< bool >(val2);
17541 {
17542 PyThreadState* __tstate = wxPyBeginAllowThreads();
17543 (arg1)->SetValue(arg2);
17544 wxPyEndAllowThreads(__tstate);
17545 if (PyErr_Occurred()) SWIG_fail;
17546 }
17547 resultobj = SWIG_Py_Void();
17548 return resultobj;
17549fail:
17550 return NULL;
17551}
17552
17553
17554SWIGINTERN PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17555 PyObject *resultobj = 0;
17556 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17557 SwigValueWrapper<wxVisualAttributes > result;
17558 int val1 ;
17559 int ecode1 = 0 ;
17560 PyObject * obj0 = 0 ;
17561 char * kwnames[] = {
17562 (char *) "variant", NULL
17563 };
17564
17565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17566 if (obj0) {
17567 ecode1 = SWIG_AsVal_int(obj0, &val1);
17568 if (!SWIG_IsOK(ecode1)) {
17569 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17570 }
17571 arg1 = static_cast< wxWindowVariant >(val1);
17572 }
17573 {
17574 if (!wxPyCheckForApp()) SWIG_fail;
17575 PyThreadState* __tstate = wxPyBeginAllowThreads();
17576 result = wxRadioButton::GetClassDefaultAttributes(arg1);
17577 wxPyEndAllowThreads(__tstate);
17578 if (PyErr_Occurred()) SWIG_fail;
17579 }
17580 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17581 return resultobj;
17582fail:
17583 return NULL;
d55e5bfc
RD
17584}
17585
17586
1bd55598
RD
17587SWIGINTERN PyObject *RadioButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17588 PyObject *obj;
17589 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17590 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioButton, SWIG_NewClientData(obj));
17591 return SWIG_Py_Void();
d55e5bfc
RD
17592}
17593
1bd55598
RD
17594SWIGINTERN PyObject *RadioButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17595 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
17596}
17597
1bd55598
RD
17598SWIGINTERN int SliderNameStr_set(PyObject *) {
17599 SWIG_Error(SWIG_AttributeError,"Variable SliderNameStr is read-only.");
17600 return 1;
d55e5bfc
RD
17601}
17602
17603
1bd55598
RD
17604SWIGINTERN PyObject *SliderNameStr_get(void) {
17605 PyObject *pyobj = 0;
17606
17607 {
17608#if wxUSE_UNICODE
17609 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17610#else
17611 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17612#endif
17613 }
17614 return pyobj;
17615}
17616
17617
17618SWIGINTERN PyObject *_wrap_new_Slider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17619 PyObject *resultobj = 0;
17620 wxWindow *arg1 = (wxWindow *) 0 ;
17621 int arg2 = (int) -1 ;
17622 int arg3 = (int) 0 ;
17623 int arg4 = (int) 0 ;
17624 int arg5 = (int) 100 ;
17625 wxPoint const &arg6_defvalue = wxDefaultPosition ;
17626 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
17627 wxSize const &arg7_defvalue = wxDefaultSize ;
17628 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
17629 long arg8 = (long) wxSL_HORIZONTAL ;
17630 wxValidator const &arg9_defvalue = wxDefaultValidator ;
17631 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
17632 wxString const &arg10_defvalue = wxPySliderNameStr ;
17633 wxString *arg10 = (wxString *) &arg10_defvalue ;
17634 wxSlider *result = 0 ;
17635 void *argp1 = 0 ;
17636 int res1 = 0 ;
17637 int val2 ;
17638 int ecode2 = 0 ;
17639 int val3 ;
17640 int ecode3 = 0 ;
17641 int val4 ;
17642 int ecode4 = 0 ;
17643 int val5 ;
17644 int ecode5 = 0 ;
17645 wxPoint temp6 ;
17646 wxSize temp7 ;
17647 long val8 ;
17648 int ecode8 = 0 ;
17649 void *argp9 = 0 ;
17650 int res9 = 0 ;
17651 bool temp10 = false ;
17652 PyObject * obj0 = 0 ;
17653 PyObject * obj1 = 0 ;
17654 PyObject * obj2 = 0 ;
17655 PyObject * obj3 = 0 ;
17656 PyObject * obj4 = 0 ;
17657 PyObject * obj5 = 0 ;
17658 PyObject * obj6 = 0 ;
17659 PyObject * obj7 = 0 ;
17660 PyObject * obj8 = 0 ;
17661 PyObject * obj9 = 0 ;
17662 char * kwnames[] = {
17663 (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 *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
17667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17668 if (!SWIG_IsOK(res1)) {
17669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Slider" "', expected argument " "1"" of type '" "wxWindow *""'");
17670 }
17671 arg1 = reinterpret_cast< wxWindow * >(argp1);
17672 if (obj1) {
17673 ecode2 = SWIG_AsVal_int(obj1, &val2);
17674 if (!SWIG_IsOK(ecode2)) {
17675 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Slider" "', expected argument " "2"" of type '" "int""'");
17676 }
17677 arg2 = static_cast< int >(val2);
17678 }
17679 if (obj2) {
17680 ecode3 = SWIG_AsVal_int(obj2, &val3);
17681 if (!SWIG_IsOK(ecode3)) {
17682 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Slider" "', expected argument " "3"" of type '" "int""'");
17683 }
17684 arg3 = static_cast< int >(val3);
17685 }
17686 if (obj3) {
17687 ecode4 = SWIG_AsVal_int(obj3, &val4);
17688 if (!SWIG_IsOK(ecode4)) {
17689 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Slider" "', expected argument " "4"" of type '" "int""'");
17690 }
17691 arg4 = static_cast< int >(val4);
17692 }
17693 if (obj4) {
17694 ecode5 = SWIG_AsVal_int(obj4, &val5);
17695 if (!SWIG_IsOK(ecode5)) {
17696 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Slider" "', expected argument " "5"" of type '" "int""'");
17697 }
17698 arg5 = static_cast< int >(val5);
17699 }
17700 if (obj5) {
36ed4f51 17701 {
1bd55598
RD
17702 arg6 = &temp6;
17703 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
36ed4f51 17704 }
1bd55598
RD
17705 }
17706 if (obj6) {
36ed4f51 17707 {
1bd55598
RD
17708 arg7 = &temp7;
17709 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
36ed4f51 17710 }
1bd55598
RD
17711 }
17712 if (obj7) {
17713 ecode8 = SWIG_AsVal_long(obj7, &val8);
17714 if (!SWIG_IsOK(ecode8)) {
17715 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Slider" "', expected argument " "8"" of type '" "long""'");
17716 }
17717 arg8 = static_cast< long >(val8);
17718 }
17719 if (obj8) {
17720 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
17721 if (!SWIG_IsOK(res9)) {
17722 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
36ed4f51 17723 }
1bd55598
RD
17724 if (!argp9) {
17725 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
d55e5bfc 17726 }
1bd55598
RD
17727 arg9 = reinterpret_cast< wxValidator * >(argp9);
17728 }
17729 if (obj9) {
d55e5bfc 17730 {
1bd55598
RD
17731 arg10 = wxString_in_helper(obj9);
17732 if (arg10 == NULL) SWIG_fail;
17733 temp10 = true;
d55e5bfc 17734 }
1bd55598
RD
17735 }
17736 {
17737 if (!wxPyCheckForApp()) SWIG_fail;
17738 PyThreadState* __tstate = wxPyBeginAllowThreads();
17739 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
17740 wxPyEndAllowThreads(__tstate);
17741 if (PyErr_Occurred()) SWIG_fail;
17742 }
17743 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_NEW | 0 );
17744 {
17745 if (temp10)
17746 delete arg10;
17747 }
17748 return resultobj;
17749fail:
17750 {
17751 if (temp10)
17752 delete arg10;
17753 }
17754 return NULL;
d55e5bfc
RD
17755}
17756
17757
1bd55598
RD
17758SWIGINTERN PyObject *_wrap_new_PreSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17759 PyObject *resultobj = 0;
17760 wxSlider *result = 0 ;
17761
17762 if (!SWIG_Python_UnpackTuple(args,"new_PreSlider",0,0,0)) SWIG_fail;
17763 {
17764 if (!wxPyCheckForApp()) SWIG_fail;
17765 PyThreadState* __tstate = wxPyBeginAllowThreads();
17766 result = (wxSlider *)new wxSlider();
17767 wxPyEndAllowThreads(__tstate);
17768 if (PyErr_Occurred()) SWIG_fail;
17769 }
17770 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_OWN | 0 );
17771 return resultobj;
17772fail:
17773 return NULL;
17774}
17775
17776
17777SWIGINTERN PyObject *_wrap_Slider_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17778 PyObject *resultobj = 0;
17779 wxSlider *arg1 = (wxSlider *) 0 ;
17780 wxWindow *arg2 = (wxWindow *) 0 ;
17781 int arg3 = (int) -1 ;
17782 int arg4 = (int) 0 ;
17783 int arg5 = (int) 0 ;
17784 int arg6 = (int) 100 ;
17785 wxPoint const &arg7_defvalue = wxDefaultPosition ;
17786 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
17787 wxSize const &arg8_defvalue = wxDefaultSize ;
17788 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
17789 long arg9 = (long) wxSL_HORIZONTAL ;
17790 wxValidator const &arg10_defvalue = wxDefaultValidator ;
17791 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
17792 wxString const &arg11_defvalue = wxPySliderNameStr ;
17793 wxString *arg11 = (wxString *) &arg11_defvalue ;
17794 bool result;
17795 void *argp1 = 0 ;
17796 int res1 = 0 ;
17797 void *argp2 = 0 ;
17798 int res2 = 0 ;
17799 int val3 ;
17800 int ecode3 = 0 ;
17801 int val4 ;
17802 int ecode4 = 0 ;
17803 int val5 ;
17804 int ecode5 = 0 ;
17805 int val6 ;
17806 int ecode6 = 0 ;
17807 wxPoint temp7 ;
17808 wxSize temp8 ;
17809 long val9 ;
17810 int ecode9 = 0 ;
17811 void *argp10 = 0 ;
17812 int res10 = 0 ;
17813 bool temp11 = false ;
17814 PyObject * obj0 = 0 ;
17815 PyObject * obj1 = 0 ;
17816 PyObject * obj2 = 0 ;
17817 PyObject * obj3 = 0 ;
17818 PyObject * obj4 = 0 ;
17819 PyObject * obj5 = 0 ;
17820 PyObject * obj6 = 0 ;
17821 PyObject * obj7 = 0 ;
17822 PyObject * obj8 = 0 ;
17823 PyObject * obj9 = 0 ;
17824 PyObject * obj10 = 0 ;
17825 char * kwnames[] = {
17826 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17827 };
17828
17829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
17830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17831 if (!SWIG_IsOK(res1)) {
17832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_Create" "', expected argument " "1"" of type '" "wxSlider *""'");
17833 }
17834 arg1 = reinterpret_cast< wxSlider * >(argp1);
17835 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17836 if (!SWIG_IsOK(res2)) {
17837 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Slider_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17838 }
17839 arg2 = reinterpret_cast< wxWindow * >(argp2);
17840 if (obj2) {
17841 ecode3 = SWIG_AsVal_int(obj2, &val3);
17842 if (!SWIG_IsOK(ecode3)) {
17843 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_Create" "', expected argument " "3"" of type '" "int""'");
17844 }
17845 arg3 = static_cast< int >(val3);
17846 }
17847 if (obj3) {
17848 ecode4 = SWIG_AsVal_int(obj3, &val4);
17849 if (!SWIG_IsOK(ecode4)) {
17850 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Slider_Create" "', expected argument " "4"" of type '" "int""'");
17851 }
17852 arg4 = static_cast< int >(val4);
17853 }
17854 if (obj4) {
17855 ecode5 = SWIG_AsVal_int(obj4, &val5);
17856 if (!SWIG_IsOK(ecode5)) {
17857 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Slider_Create" "', expected argument " "5"" of type '" "int""'");
17858 }
17859 arg5 = static_cast< int >(val5);
17860 }
17861 if (obj5) {
17862 ecode6 = SWIG_AsVal_int(obj5, &val6);
17863 if (!SWIG_IsOK(ecode6)) {
17864 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Slider_Create" "', expected argument " "6"" of type '" "int""'");
17865 }
17866 arg6 = static_cast< int >(val6);
17867 }
17868 if (obj6) {
d55e5bfc 17869 {
1bd55598
RD
17870 arg7 = &temp7;
17871 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
d55e5bfc 17872 }
1bd55598
RD
17873 }
17874 if (obj7) {
d55e5bfc 17875 {
1bd55598
RD
17876 arg8 = &temp8;
17877 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
d55e5bfc 17878 }
1bd55598
RD
17879 }
17880 if (obj8) {
17881 ecode9 = SWIG_AsVal_long(obj8, &val9);
17882 if (!SWIG_IsOK(ecode9)) {
17883 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "Slider_Create" "', expected argument " "9"" of type '" "long""'");
17884 }
17885 arg9 = static_cast< long >(val9);
17886 }
17887 if (obj9) {
17888 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
17889 if (!SWIG_IsOK(res10)) {
17890 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
d55e5bfc 17891 }
1bd55598
RD
17892 if (!argp10) {
17893 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
d55e5bfc 17894 }
1bd55598
RD
17895 arg10 = reinterpret_cast< wxValidator * >(argp10);
17896 }
17897 if (obj10) {
d55e5bfc 17898 {
1bd55598
RD
17899 arg11 = wxString_in_helper(obj10);
17900 if (arg11 == NULL) SWIG_fail;
17901 temp11 = true;
d55e5bfc 17902 }
1bd55598
RD
17903 }
17904 {
17905 PyThreadState* __tstate = wxPyBeginAllowThreads();
17906 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
17907 wxPyEndAllowThreads(__tstate);
17908 if (PyErr_Occurred()) SWIG_fail;
17909 }
17910 {
17911 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17912 }
17913 {
17914 if (temp11)
17915 delete arg11;
17916 }
17917 return resultobj;
17918fail:
17919 {
17920 if (temp11)
17921 delete arg11;
17922 }
17923 return NULL;
d55e5bfc
RD
17924}
17925
17926
1bd55598
RD
17927SWIGINTERN PyObject *_wrap_Slider_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17928 PyObject *resultobj = 0;
17929 wxSlider *arg1 = (wxSlider *) 0 ;
17930 int result;
17931 void *argp1 = 0 ;
17932 int res1 = 0 ;
17933 PyObject *swig_obj[1] ;
17934
17935 if (!args) SWIG_fail;
17936 swig_obj[0] = args;
17937 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17938 if (!SWIG_IsOK(res1)) {
17939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetValue" "', expected argument " "1"" of type '" "wxSlider const *""'");
17940 }
17941 arg1 = reinterpret_cast< wxSlider * >(argp1);
17942 {
17943 PyThreadState* __tstate = wxPyBeginAllowThreads();
17944 result = (int)((wxSlider const *)arg1)->GetValue();
17945 wxPyEndAllowThreads(__tstate);
17946 if (PyErr_Occurred()) SWIG_fail;
17947 }
17948 resultobj = SWIG_From_int(static_cast< int >(result));
17949 return resultobj;
17950fail:
17951 return NULL;
17952}
17953
17954
17955SWIGINTERN PyObject *_wrap_Slider_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17956 PyObject *resultobj = 0;
17957 wxSlider *arg1 = (wxSlider *) 0 ;
17958 int arg2 ;
17959 void *argp1 = 0 ;
17960 int res1 = 0 ;
17961 int val2 ;
17962 int ecode2 = 0 ;
17963 PyObject * obj0 = 0 ;
17964 PyObject * obj1 = 0 ;
17965 char * kwnames[] = {
17966 (char *) "self",(char *) "value", NULL
17967 };
17968
17969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17971 if (!SWIG_IsOK(res1)) {
17972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetValue" "', expected argument " "1"" of type '" "wxSlider *""'");
17973 }
17974 arg1 = reinterpret_cast< wxSlider * >(argp1);
17975 ecode2 = SWIG_AsVal_int(obj1, &val2);
17976 if (!SWIG_IsOK(ecode2)) {
17977 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetValue" "', expected argument " "2"" of type '" "int""'");
17978 }
17979 arg2 = static_cast< int >(val2);
17980 {
17981 PyThreadState* __tstate = wxPyBeginAllowThreads();
17982 (arg1)->SetValue(arg2);
17983 wxPyEndAllowThreads(__tstate);
17984 if (PyErr_Occurred()) SWIG_fail;
17985 }
17986 resultobj = SWIG_Py_Void();
17987 return resultobj;
17988fail:
17989 return NULL;
17990}
17991
17992
17993SWIGINTERN PyObject *_wrap_Slider_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17994 PyObject *resultobj = 0;
17995 wxSlider *arg1 = (wxSlider *) 0 ;
17996 int arg2 ;
17997 int arg3 ;
17998 void *argp1 = 0 ;
17999 int res1 = 0 ;
18000 int val2 ;
18001 int ecode2 = 0 ;
18002 int val3 ;
18003 int ecode3 = 0 ;
18004 PyObject * obj0 = 0 ;
18005 PyObject * obj1 = 0 ;
18006 PyObject * obj2 = 0 ;
18007 char * kwnames[] = {
18008 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
18009 };
18010
18011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18013 if (!SWIG_IsOK(res1)) {
18014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetRange" "', expected argument " "1"" of type '" "wxSlider *""'");
18015 }
18016 arg1 = reinterpret_cast< wxSlider * >(argp1);
18017 ecode2 = SWIG_AsVal_int(obj1, &val2);
18018 if (!SWIG_IsOK(ecode2)) {
18019 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetRange" "', expected argument " "2"" of type '" "int""'");
18020 }
18021 arg2 = static_cast< int >(val2);
18022 ecode3 = SWIG_AsVal_int(obj2, &val3);
18023 if (!SWIG_IsOK(ecode3)) {
18024 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetRange" "', expected argument " "3"" of type '" "int""'");
18025 }
18026 arg3 = static_cast< int >(val3);
18027 {
18028 PyThreadState* __tstate = wxPyBeginAllowThreads();
18029 (arg1)->SetRange(arg2,arg3);
18030 wxPyEndAllowThreads(__tstate);
18031 if (PyErr_Occurred()) SWIG_fail;
18032 }
18033 resultobj = SWIG_Py_Void();
18034 return resultobj;
18035fail:
18036 return NULL;
d55e5bfc
RD
18037}
18038
18039
1bd55598
RD
18040SWIGINTERN PyObject *_wrap_Slider_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18041 PyObject *resultobj = 0;
18042 wxSlider *arg1 = (wxSlider *) 0 ;
18043 int result;
18044 void *argp1 = 0 ;
18045 int res1 = 0 ;
18046 PyObject *swig_obj[1] ;
18047
18048 if (!args) SWIG_fail;
18049 swig_obj[0] = args;
18050 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18051 if (!SWIG_IsOK(res1)) {
18052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMin" "', expected argument " "1"" of type '" "wxSlider const *""'");
18053 }
18054 arg1 = reinterpret_cast< wxSlider * >(argp1);
18055 {
18056 PyThreadState* __tstate = wxPyBeginAllowThreads();
18057 result = (int)((wxSlider const *)arg1)->GetMin();
18058 wxPyEndAllowThreads(__tstate);
18059 if (PyErr_Occurred()) SWIG_fail;
18060 }
18061 resultobj = SWIG_From_int(static_cast< int >(result));
18062 return resultobj;
18063fail:
18064 return NULL;
f20a2e1f
RD
18065}
18066
18067
1bd55598
RD
18068SWIGINTERN PyObject *_wrap_Slider_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18069 PyObject *resultobj = 0;
18070 wxSlider *arg1 = (wxSlider *) 0 ;
18071 int result;
18072 void *argp1 = 0 ;
18073 int res1 = 0 ;
18074 PyObject *swig_obj[1] ;
18075
18076 if (!args) SWIG_fail;
18077 swig_obj[0] = args;
18078 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18079 if (!SWIG_IsOK(res1)) {
18080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMax" "', expected argument " "1"" of type '" "wxSlider const *""'");
18081 }
18082 arg1 = reinterpret_cast< wxSlider * >(argp1);
18083 {
18084 PyThreadState* __tstate = wxPyBeginAllowThreads();
18085 result = (int)((wxSlider const *)arg1)->GetMax();
18086 wxPyEndAllowThreads(__tstate);
18087 if (PyErr_Occurred()) SWIG_fail;
18088 }
18089 resultobj = SWIG_From_int(static_cast< int >(result));
18090 return resultobj;
18091fail:
18092 return NULL;
18093}
18094
18095
18096SWIGINTERN PyObject *_wrap_Slider_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18097 PyObject *resultobj = 0;
18098 wxSlider *arg1 = (wxSlider *) 0 ;
18099 int arg2 ;
18100 void *argp1 = 0 ;
18101 int res1 = 0 ;
18102 int val2 ;
18103 int ecode2 = 0 ;
18104 PyObject * obj0 = 0 ;
18105 PyObject * obj1 = 0 ;
18106 char * kwnames[] = {
18107 (char *) "self",(char *) "minValue", NULL
18108 };
18109
18110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
18111 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18112 if (!SWIG_IsOK(res1)) {
18113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMin" "', expected argument " "1"" of type '" "wxSlider *""'");
18114 }
18115 arg1 = reinterpret_cast< wxSlider * >(argp1);
18116 ecode2 = SWIG_AsVal_int(obj1, &val2);
18117 if (!SWIG_IsOK(ecode2)) {
18118 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMin" "', expected argument " "2"" of type '" "int""'");
18119 }
18120 arg2 = static_cast< int >(val2);
18121 {
18122 PyThreadState* __tstate = wxPyBeginAllowThreads();
18123 (arg1)->SetMin(arg2);
18124 wxPyEndAllowThreads(__tstate);
18125 if (PyErr_Occurred()) SWIG_fail;
18126 }
18127 resultobj = SWIG_Py_Void();
18128 return resultobj;
18129fail:
18130 return NULL;
18131}
18132
18133
18134SWIGINTERN PyObject *_wrap_Slider_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18135 PyObject *resultobj = 0;
18136 wxSlider *arg1 = (wxSlider *) 0 ;
18137 int arg2 ;
18138 void *argp1 = 0 ;
18139 int res1 = 0 ;
18140 int val2 ;
18141 int ecode2 = 0 ;
18142 PyObject * obj0 = 0 ;
18143 PyObject * obj1 = 0 ;
18144 char * kwnames[] = {
18145 (char *) "self",(char *) "maxValue", NULL
18146 };
18147
18148 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
18149 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18150 if (!SWIG_IsOK(res1)) {
18151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMax" "', expected argument " "1"" of type '" "wxSlider *""'");
18152 }
18153 arg1 = reinterpret_cast< wxSlider * >(argp1);
18154 ecode2 = SWIG_AsVal_int(obj1, &val2);
18155 if (!SWIG_IsOK(ecode2)) {
18156 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMax" "', expected argument " "2"" of type '" "int""'");
18157 }
18158 arg2 = static_cast< int >(val2);
18159 {
18160 PyThreadState* __tstate = wxPyBeginAllowThreads();
18161 (arg1)->SetMax(arg2);
18162 wxPyEndAllowThreads(__tstate);
18163 if (PyErr_Occurred()) SWIG_fail;
18164 }
18165 resultobj = SWIG_Py_Void();
18166 return resultobj;
18167fail:
18168 return NULL;
18169}
18170
18171
18172SWIGINTERN PyObject *_wrap_Slider_SetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18173 PyObject *resultobj = 0;
18174 wxSlider *arg1 = (wxSlider *) 0 ;
18175 int arg2 ;
18176 void *argp1 = 0 ;
18177 int res1 = 0 ;
18178 int val2 ;
18179 int ecode2 = 0 ;
18180 PyObject * obj0 = 0 ;
18181 PyObject * obj1 = 0 ;
18182 char * kwnames[] = {
18183 (char *) "self",(char *) "lineSize", NULL
18184 };
18185
18186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) SWIG_fail;
18187 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18188 if (!SWIG_IsOK(res1)) {
18189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetLineSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18190 }
18191 arg1 = reinterpret_cast< wxSlider * >(argp1);
18192 ecode2 = SWIG_AsVal_int(obj1, &val2);
18193 if (!SWIG_IsOK(ecode2)) {
18194 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetLineSize" "', expected argument " "2"" of type '" "int""'");
18195 }
18196 arg2 = static_cast< int >(val2);
18197 {
18198 PyThreadState* __tstate = wxPyBeginAllowThreads();
18199 (arg1)->SetLineSize(arg2);
18200 wxPyEndAllowThreads(__tstate);
18201 if (PyErr_Occurred()) SWIG_fail;
18202 }
18203 resultobj = SWIG_Py_Void();
18204 return resultobj;
18205fail:
18206 return NULL;
18207}
18208
18209
18210SWIGINTERN PyObject *_wrap_Slider_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18211 PyObject *resultobj = 0;
18212 wxSlider *arg1 = (wxSlider *) 0 ;
18213 int arg2 ;
18214 void *argp1 = 0 ;
18215 int res1 = 0 ;
18216 int val2 ;
18217 int ecode2 = 0 ;
18218 PyObject * obj0 = 0 ;
18219 PyObject * obj1 = 0 ;
18220 char * kwnames[] = {
18221 (char *) "self",(char *) "pageSize", NULL
18222 };
18223
18224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
18225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18226 if (!SWIG_IsOK(res1)) {
18227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetPageSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18228 }
18229 arg1 = reinterpret_cast< wxSlider * >(argp1);
18230 ecode2 = SWIG_AsVal_int(obj1, &val2);
18231 if (!SWIG_IsOK(ecode2)) {
18232 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetPageSize" "', expected argument " "2"" of type '" "int""'");
18233 }
18234 arg2 = static_cast< int >(val2);
18235 {
18236 PyThreadState* __tstate = wxPyBeginAllowThreads();
18237 (arg1)->SetPageSize(arg2);
18238 wxPyEndAllowThreads(__tstate);
18239 if (PyErr_Occurred()) SWIG_fail;
18240 }
18241 resultobj = SWIG_Py_Void();
18242 return resultobj;
18243fail:
18244 return NULL;
d55e5bfc
RD
18245}
18246
18247
1bd55598
RD
18248SWIGINTERN PyObject *_wrap_Slider_GetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18249 PyObject *resultobj = 0;
18250 wxSlider *arg1 = (wxSlider *) 0 ;
18251 int result;
18252 void *argp1 = 0 ;
18253 int res1 = 0 ;
18254 PyObject *swig_obj[1] ;
18255
18256 if (!args) SWIG_fail;
18257 swig_obj[0] = args;
18258 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18259 if (!SWIG_IsOK(res1)) {
18260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetLineSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18261 }
18262 arg1 = reinterpret_cast< wxSlider * >(argp1);
18263 {
18264 PyThreadState* __tstate = wxPyBeginAllowThreads();
18265 result = (int)((wxSlider const *)arg1)->GetLineSize();
18266 wxPyEndAllowThreads(__tstate);
18267 if (PyErr_Occurred()) SWIG_fail;
18268 }
18269 resultobj = SWIG_From_int(static_cast< int >(result));
18270 return resultobj;
18271fail:
18272 return NULL;
d55e5bfc
RD
18273}
18274
18275
1bd55598
RD
18276SWIGINTERN PyObject *_wrap_Slider_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18277 PyObject *resultobj = 0;
18278 wxSlider *arg1 = (wxSlider *) 0 ;
18279 int result;
18280 void *argp1 = 0 ;
18281 int res1 = 0 ;
18282 PyObject *swig_obj[1] ;
18283
18284 if (!args) SWIG_fail;
18285 swig_obj[0] = args;
18286 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18287 if (!SWIG_IsOK(res1)) {
18288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetPageSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18289 }
18290 arg1 = reinterpret_cast< wxSlider * >(argp1);
18291 {
18292 PyThreadState* __tstate = wxPyBeginAllowThreads();
18293 result = (int)((wxSlider const *)arg1)->GetPageSize();
18294 wxPyEndAllowThreads(__tstate);
18295 if (PyErr_Occurred()) SWIG_fail;
18296 }
18297 resultobj = SWIG_From_int(static_cast< int >(result));
18298 return resultobj;
18299fail:
18300 return NULL;
18301}
18302
18303
18304SWIGINTERN PyObject *_wrap_Slider_SetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18305 PyObject *resultobj = 0;
18306 wxSlider *arg1 = (wxSlider *) 0 ;
18307 int arg2 ;
18308 void *argp1 = 0 ;
18309 int res1 = 0 ;
18310 int val2 ;
18311 int ecode2 = 0 ;
18312 PyObject * obj0 = 0 ;
18313 PyObject * obj1 = 0 ;
18314 char * kwnames[] = {
18315 (char *) "self",(char *) "lenPixels", NULL
18316 };
18317
18318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) SWIG_fail;
18319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18320 if (!SWIG_IsOK(res1)) {
18321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetThumbLength" "', expected argument " "1"" of type '" "wxSlider *""'");
18322 }
18323 arg1 = reinterpret_cast< wxSlider * >(argp1);
18324 ecode2 = SWIG_AsVal_int(obj1, &val2);
18325 if (!SWIG_IsOK(ecode2)) {
18326 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetThumbLength" "', expected argument " "2"" of type '" "int""'");
18327 }
18328 arg2 = static_cast< int >(val2);
18329 {
18330 PyThreadState* __tstate = wxPyBeginAllowThreads();
18331 (arg1)->SetThumbLength(arg2);
18332 wxPyEndAllowThreads(__tstate);
18333 if (PyErr_Occurred()) SWIG_fail;
18334 }
18335 resultobj = SWIG_Py_Void();
18336 return resultobj;
18337fail:
18338 return NULL;
d55e5bfc
RD
18339}
18340
18341
1bd55598
RD
18342SWIGINTERN PyObject *_wrap_Slider_GetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18343 PyObject *resultobj = 0;
18344 wxSlider *arg1 = (wxSlider *) 0 ;
18345 int result;
18346 void *argp1 = 0 ;
18347 int res1 = 0 ;
18348 PyObject *swig_obj[1] ;
18349
18350 if (!args) SWIG_fail;
18351 swig_obj[0] = args;
18352 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18353 if (!SWIG_IsOK(res1)) {
18354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetThumbLength" "', expected argument " "1"" of type '" "wxSlider const *""'");
18355 }
18356 arg1 = reinterpret_cast< wxSlider * >(argp1);
18357 {
18358 PyThreadState* __tstate = wxPyBeginAllowThreads();
18359 result = (int)((wxSlider const *)arg1)->GetThumbLength();
18360 wxPyEndAllowThreads(__tstate);
18361 if (PyErr_Occurred()) SWIG_fail;
18362 }
18363 resultobj = SWIG_From_int(static_cast< int >(result));
18364 return resultobj;
18365fail:
18366 return NULL;
18367}
18368
18369
18370SWIGINTERN PyObject *_wrap_Slider_SetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18371 PyObject *resultobj = 0;
18372 wxSlider *arg1 = (wxSlider *) 0 ;
18373 int arg2 ;
18374 int arg3 = (int) 1 ;
18375 void *argp1 = 0 ;
18376 int res1 = 0 ;
18377 int val2 ;
18378 int ecode2 = 0 ;
18379 int val3 ;
18380 int ecode3 = 0 ;
18381 PyObject * obj0 = 0 ;
18382 PyObject * obj1 = 0 ;
18383 PyObject * obj2 = 0 ;
18384 char * kwnames[] = {
18385 (char *) "self",(char *) "n",(char *) "pos", NULL
18386 };
18387
18388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18390 if (!SWIG_IsOK(res1)) {
18391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTickFreq" "', expected argument " "1"" of type '" "wxSlider *""'");
18392 }
18393 arg1 = reinterpret_cast< wxSlider * >(argp1);
18394 ecode2 = SWIG_AsVal_int(obj1, &val2);
18395 if (!SWIG_IsOK(ecode2)) {
18396 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTickFreq" "', expected argument " "2"" of type '" "int""'");
18397 }
18398 arg2 = static_cast< int >(val2);
18399 if (obj2) {
18400 ecode3 = SWIG_AsVal_int(obj2, &val3);
18401 if (!SWIG_IsOK(ecode3)) {
18402 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetTickFreq" "', expected argument " "3"" of type '" "int""'");
18403 }
18404 arg3 = static_cast< int >(val3);
18405 }
18406 {
18407 PyThreadState* __tstate = wxPyBeginAllowThreads();
18408 (arg1)->SetTickFreq(arg2,arg3);
18409 wxPyEndAllowThreads(__tstate);
18410 if (PyErr_Occurred()) SWIG_fail;
18411 }
18412 resultobj = SWIG_Py_Void();
18413 return resultobj;
18414fail:
18415 return NULL;
d55e5bfc
RD
18416}
18417
18418
1bd55598
RD
18419SWIGINTERN PyObject *_wrap_Slider_GetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18420 PyObject *resultobj = 0;
18421 wxSlider *arg1 = (wxSlider *) 0 ;
18422 int result;
18423 void *argp1 = 0 ;
18424 int res1 = 0 ;
18425 PyObject *swig_obj[1] ;
18426
18427 if (!args) SWIG_fail;
18428 swig_obj[0] = args;
18429 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18430 if (!SWIG_IsOK(res1)) {
18431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetTickFreq" "', expected argument " "1"" of type '" "wxSlider const *""'");
18432 }
18433 arg1 = reinterpret_cast< wxSlider * >(argp1);
18434 {
18435 PyThreadState* __tstate = wxPyBeginAllowThreads();
18436 result = (int)((wxSlider const *)arg1)->GetTickFreq();
18437 wxPyEndAllowThreads(__tstate);
18438 if (PyErr_Occurred()) SWIG_fail;
18439 }
18440 resultobj = SWIG_From_int(static_cast< int >(result));
18441 return resultobj;
18442fail:
18443 return NULL;
d55e5bfc
RD
18444}
18445
18446
1bd55598
RD
18447SWIGINTERN PyObject *_wrap_Slider_ClearTicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18448 PyObject *resultobj = 0;
18449 wxSlider *arg1 = (wxSlider *) 0 ;
18450 void *argp1 = 0 ;
18451 int res1 = 0 ;
18452 PyObject *swig_obj[1] ;
18453
18454 if (!args) SWIG_fail;
18455 swig_obj[0] = args;
18456 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18457 if (!SWIG_IsOK(res1)) {
18458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearTicks" "', expected argument " "1"" of type '" "wxSlider *""'");
18459 }
18460 arg1 = reinterpret_cast< wxSlider * >(argp1);
18461 {
18462 PyThreadState* __tstate = wxPyBeginAllowThreads();
18463 (arg1)->ClearTicks();
18464 wxPyEndAllowThreads(__tstate);
18465 if (PyErr_Occurred()) SWIG_fail;
18466 }
18467 resultobj = SWIG_Py_Void();
18468 return resultobj;
18469fail:
18470 return NULL;
18471}
18472
18473
18474SWIGINTERN PyObject *_wrap_Slider_SetTick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18475 PyObject *resultobj = 0;
18476 wxSlider *arg1 = (wxSlider *) 0 ;
18477 int arg2 ;
18478 void *argp1 = 0 ;
18479 int res1 = 0 ;
18480 int val2 ;
18481 int ecode2 = 0 ;
18482 PyObject * obj0 = 0 ;
18483 PyObject * obj1 = 0 ;
18484 char * kwnames[] = {
18485 (char *) "self",(char *) "tickPos", NULL
18486 };
18487
18488 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) SWIG_fail;
18489 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18490 if (!SWIG_IsOK(res1)) {
18491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTick" "', expected argument " "1"" of type '" "wxSlider *""'");
18492 }
18493 arg1 = reinterpret_cast< wxSlider * >(argp1);
18494 ecode2 = SWIG_AsVal_int(obj1, &val2);
18495 if (!SWIG_IsOK(ecode2)) {
18496 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTick" "', expected argument " "2"" of type '" "int""'");
18497 }
18498 arg2 = static_cast< int >(val2);
18499 {
18500 PyThreadState* __tstate = wxPyBeginAllowThreads();
18501 (arg1)->SetTick(arg2);
18502 wxPyEndAllowThreads(__tstate);
18503 if (PyErr_Occurred()) SWIG_fail;
18504 }
18505 resultobj = SWIG_Py_Void();
18506 return resultobj;
18507fail:
18508 return NULL;
d55e5bfc
RD
18509}
18510
18511
1bd55598
RD
18512SWIGINTERN PyObject *_wrap_Slider_ClearSel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18513 PyObject *resultobj = 0;
18514 wxSlider *arg1 = (wxSlider *) 0 ;
18515 void *argp1 = 0 ;
18516 int res1 = 0 ;
18517 PyObject *swig_obj[1] ;
18518
18519 if (!args) SWIG_fail;
18520 swig_obj[0] = args;
18521 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18522 if (!SWIG_IsOK(res1)) {
18523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearSel" "', expected argument " "1"" of type '" "wxSlider *""'");
18524 }
18525 arg1 = reinterpret_cast< wxSlider * >(argp1);
18526 {
18527 PyThreadState* __tstate = wxPyBeginAllowThreads();
18528 (arg1)->ClearSel();
18529 wxPyEndAllowThreads(__tstate);
18530 if (PyErr_Occurred()) SWIG_fail;
18531 }
18532 resultobj = SWIG_Py_Void();
18533 return resultobj;
18534fail:
18535 return NULL;
d55e5bfc
RD
18536}
18537
18538
1bd55598
RD
18539SWIGINTERN PyObject *_wrap_Slider_GetSelEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18540 PyObject *resultobj = 0;
18541 wxSlider *arg1 = (wxSlider *) 0 ;
18542 int result;
18543 void *argp1 = 0 ;
18544 int res1 = 0 ;
18545 PyObject *swig_obj[1] ;
18546
18547 if (!args) SWIG_fail;
18548 swig_obj[0] = args;
18549 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18550 if (!SWIG_IsOK(res1)) {
18551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelEnd" "', expected argument " "1"" of type '" "wxSlider const *""'");
18552 }
18553 arg1 = reinterpret_cast< wxSlider * >(argp1);
18554 {
18555 PyThreadState* __tstate = wxPyBeginAllowThreads();
18556 result = (int)((wxSlider const *)arg1)->GetSelEnd();
18557 wxPyEndAllowThreads(__tstate);
18558 if (PyErr_Occurred()) SWIG_fail;
18559 }
18560 resultobj = SWIG_From_int(static_cast< int >(result));
18561 return resultobj;
18562fail:
18563 return NULL;
d55e5bfc
RD
18564}
18565
18566
1bd55598
RD
18567SWIGINTERN PyObject *_wrap_Slider_GetSelStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18568 PyObject *resultobj = 0;
18569 wxSlider *arg1 = (wxSlider *) 0 ;
18570 int result;
18571 void *argp1 = 0 ;
18572 int res1 = 0 ;
18573 PyObject *swig_obj[1] ;
18574
18575 if (!args) SWIG_fail;
18576 swig_obj[0] = args;
18577 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18578 if (!SWIG_IsOK(res1)) {
18579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelStart" "', expected argument " "1"" of type '" "wxSlider const *""'");
18580 }
18581 arg1 = reinterpret_cast< wxSlider * >(argp1);
18582 {
18583 PyThreadState* __tstate = wxPyBeginAllowThreads();
18584 result = (int)((wxSlider const *)arg1)->GetSelStart();
18585 wxPyEndAllowThreads(__tstate);
18586 if (PyErr_Occurred()) SWIG_fail;
18587 }
18588 resultobj = SWIG_From_int(static_cast< int >(result));
18589 return resultobj;
18590fail:
18591 return NULL;
18592}
18593
18594
18595SWIGINTERN PyObject *_wrap_Slider_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18596 PyObject *resultobj = 0;
18597 wxSlider *arg1 = (wxSlider *) 0 ;
18598 int arg2 ;
18599 int arg3 ;
18600 void *argp1 = 0 ;
18601 int res1 = 0 ;
18602 int val2 ;
18603 int ecode2 = 0 ;
18604 int val3 ;
18605 int ecode3 = 0 ;
18606 PyObject * obj0 = 0 ;
18607 PyObject * obj1 = 0 ;
18608 PyObject * obj2 = 0 ;
18609 char * kwnames[] = {
18610 (char *) "self",(char *) "min",(char *) "max", NULL
18611 };
18612
18613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18615 if (!SWIG_IsOK(res1)) {
18616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetSelection" "', expected argument " "1"" of type '" "wxSlider *""'");
18617 }
18618 arg1 = reinterpret_cast< wxSlider * >(argp1);
18619 ecode2 = SWIG_AsVal_int(obj1, &val2);
18620 if (!SWIG_IsOK(ecode2)) {
18621 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetSelection" "', expected argument " "2"" of type '" "int""'");
18622 }
18623 arg2 = static_cast< int >(val2);
18624 ecode3 = SWIG_AsVal_int(obj2, &val3);
18625 if (!SWIG_IsOK(ecode3)) {
18626 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetSelection" "', expected argument " "3"" of type '" "int""'");
18627 }
18628 arg3 = static_cast< int >(val3);
18629 {
18630 PyThreadState* __tstate = wxPyBeginAllowThreads();
18631 (arg1)->SetSelection(arg2,arg3);
18632 wxPyEndAllowThreads(__tstate);
18633 if (PyErr_Occurred()) SWIG_fail;
18634 }
18635 resultobj = SWIG_Py_Void();
18636 return resultobj;
18637fail:
18638 return NULL;
18639}
18640
18641
18642SWIGINTERN PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18643 PyObject *resultobj = 0;
18644 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18645 SwigValueWrapper<wxVisualAttributes > result;
18646 int val1 ;
18647 int ecode1 = 0 ;
18648 PyObject * obj0 = 0 ;
18649 char * kwnames[] = {
18650 (char *) "variant", NULL
18651 };
18652
18653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18654 if (obj0) {
18655 ecode1 = SWIG_AsVal_int(obj0, &val1);
18656 if (!SWIG_IsOK(ecode1)) {
18657 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Slider_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18658 }
18659 arg1 = static_cast< wxWindowVariant >(val1);
18660 }
18661 {
18662 if (!wxPyCheckForApp()) SWIG_fail;
18663 PyThreadState* __tstate = wxPyBeginAllowThreads();
18664 result = wxSlider::GetClassDefaultAttributes(arg1);
18665 wxPyEndAllowThreads(__tstate);
18666 if (PyErr_Occurred()) SWIG_fail;
18667 }
18668 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18669 return resultobj;
18670fail:
18671 return NULL;
d55e5bfc
RD
18672}
18673
18674
1bd55598
RD
18675SWIGINTERN PyObject *Slider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18676 PyObject *obj;
18677 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18678 SWIG_TypeNewClientData(SWIGTYPE_p_wxSlider, SWIG_NewClientData(obj));
18679 return SWIG_Py_Void();
d55e5bfc
RD
18680}
18681
1bd55598
RD
18682SWIGINTERN PyObject *Slider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18683 return SWIG_Python_InitShadowInstance(args);
18684}
d55e5bfc 18685
1bd55598
RD
18686SWIGINTERN int ToggleButtonNameStr_set(PyObject *) {
18687 SWIG_Error(SWIG_AttributeError,"Variable ToggleButtonNameStr is read-only.");
18688 return 1;
d55e5bfc
RD
18689}
18690
18691
1bd55598
RD
18692SWIGINTERN PyObject *ToggleButtonNameStr_get(void) {
18693 PyObject *pyobj = 0;
18694
18695 {
18696#if wxUSE_UNICODE
18697 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18698#else
18699 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18700#endif
18701 }
18702 return pyobj;
18703}
18704
18705
18706SWIGINTERN PyObject *_wrap_new_ToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18707 PyObject *resultobj = 0;
18708 wxWindow *arg1 = (wxWindow *) 0 ;
18709 int arg2 = (int) -1 ;
18710 wxString const &arg3_defvalue = wxPyEmptyString ;
18711 wxString *arg3 = (wxString *) &arg3_defvalue ;
18712 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18713 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18714 wxSize const &arg5_defvalue = wxDefaultSize ;
18715 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18716 long arg6 = (long) 0 ;
18717 wxValidator const &arg7_defvalue = wxDefaultValidator ;
18718 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
18719 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
18720 wxString *arg8 = (wxString *) &arg8_defvalue ;
18721 wxToggleButton *result = 0 ;
18722 void *argp1 = 0 ;
18723 int res1 = 0 ;
18724 int val2 ;
18725 int ecode2 = 0 ;
18726 bool temp3 = false ;
18727 wxPoint temp4 ;
18728 wxSize temp5 ;
18729 long val6 ;
18730 int ecode6 = 0 ;
18731 void *argp7 = 0 ;
18732 int res7 = 0 ;
18733 bool temp8 = false ;
18734 PyObject * obj0 = 0 ;
18735 PyObject * obj1 = 0 ;
18736 PyObject * obj2 = 0 ;
18737 PyObject * obj3 = 0 ;
18738 PyObject * obj4 = 0 ;
18739 PyObject * obj5 = 0 ;
18740 PyObject * obj6 = 0 ;
18741 PyObject * obj7 = 0 ;
18742 char * kwnames[] = {
18743 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18744 };
18745
18746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
18747 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
18748 if (!SWIG_IsOK(res1)) {
18749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToggleButton" "', expected argument " "1"" of type '" "wxWindow *""'");
18750 }
18751 arg1 = reinterpret_cast< wxWindow * >(argp1);
18752 if (obj1) {
18753 ecode2 = SWIG_AsVal_int(obj1, &val2);
18754 if (!SWIG_IsOK(ecode2)) {
18755 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToggleButton" "', expected argument " "2"" of type '" "int""'");
18756 }
18757 arg2 = static_cast< int >(val2);
18758 }
18759 if (obj2) {
d55e5bfc 18760 {
1bd55598
RD
18761 arg3 = wxString_in_helper(obj2);
18762 if (arg3 == NULL) SWIG_fail;
18763 temp3 = true;
d55e5bfc 18764 }
1bd55598
RD
18765 }
18766 if (obj3) {
36ed4f51 18767 {
1bd55598
RD
18768 arg4 = &temp4;
18769 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36ed4f51 18770 }
1bd55598
RD
18771 }
18772 if (obj4) {
d55e5bfc 18773 {
1bd55598
RD
18774 arg5 = &temp5;
18775 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 18776 }
1bd55598
RD
18777 }
18778 if (obj5) {
18779 ecode6 = SWIG_AsVal_long(obj5, &val6);
18780 if (!SWIG_IsOK(ecode6)) {
18781 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ToggleButton" "', expected argument " "6"" of type '" "long""'");
18782 }
18783 arg6 = static_cast< long >(val6);
18784 }
18785 if (obj6) {
18786 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
18787 if (!SWIG_IsOK(res7)) {
18788 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 18789 }
1bd55598
RD
18790 if (!argp7) {
18791 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
36ed4f51 18792 }
1bd55598
RD
18793 arg7 = reinterpret_cast< wxValidator * >(argp7);
18794 }
18795 if (obj7) {
d55e5bfc 18796 {
1bd55598
RD
18797 arg8 = wxString_in_helper(obj7);
18798 if (arg8 == NULL) SWIG_fail;
18799 temp8 = true;
d55e5bfc 18800 }
1bd55598
RD
18801 }
18802 {
18803 if (!wxPyCheckForApp()) SWIG_fail;
18804 PyThreadState* __tstate = wxPyBeginAllowThreads();
18805 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
18806 wxPyEndAllowThreads(__tstate);
18807 if (PyErr_Occurred()) SWIG_fail;
18808 }
18809 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_NEW | 0 );
18810 {
18811 if (temp3)
18812 delete arg3;
18813 }
18814 {
18815 if (temp8)
18816 delete arg8;
18817 }
18818 return resultobj;
18819fail:
18820 {
18821 if (temp3)
18822 delete arg3;
18823 }
18824 {
18825 if (temp8)
18826 delete arg8;
18827 }
18828 return NULL;
d55e5bfc
RD
18829}
18830
18831
1bd55598
RD
18832SWIGINTERN PyObject *_wrap_new_PreToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18833 PyObject *resultobj = 0;
18834 wxToggleButton *result = 0 ;
18835
18836 if (!SWIG_Python_UnpackTuple(args,"new_PreToggleButton",0,0,0)) SWIG_fail;
18837 {
18838 if (!wxPyCheckForApp()) SWIG_fail;
18839 PyThreadState* __tstate = wxPyBeginAllowThreads();
18840 result = (wxToggleButton *)new wxToggleButton();
18841 wxPyEndAllowThreads(__tstate);
18842 if (PyErr_Occurred()) SWIG_fail;
18843 }
18844 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_OWN | 0 );
18845 return resultobj;
18846fail:
18847 return NULL;
18848}
18849
18850
18851SWIGINTERN PyObject *_wrap_ToggleButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18852 PyObject *resultobj = 0;
18853 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18854 wxWindow *arg2 = (wxWindow *) 0 ;
18855 int arg3 = (int) -1 ;
18856 wxString const &arg4_defvalue = wxPyEmptyString ;
18857 wxString *arg4 = (wxString *) &arg4_defvalue ;
18858 wxPoint const &arg5_defvalue = wxDefaultPosition ;
18859 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
18860 wxSize const &arg6_defvalue = wxDefaultSize ;
18861 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
18862 long arg7 = (long) 0 ;
18863 wxValidator const &arg8_defvalue = wxDefaultValidator ;
18864 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
18865 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
18866 wxString *arg9 = (wxString *) &arg9_defvalue ;
18867 bool result;
18868 void *argp1 = 0 ;
18869 int res1 = 0 ;
18870 void *argp2 = 0 ;
18871 int res2 = 0 ;
18872 int val3 ;
18873 int ecode3 = 0 ;
18874 bool temp4 = false ;
18875 wxPoint temp5 ;
18876 wxSize temp6 ;
18877 long val7 ;
18878 int ecode7 = 0 ;
18879 void *argp8 = 0 ;
18880 int res8 = 0 ;
18881 bool temp9 = false ;
18882 PyObject * obj0 = 0 ;
18883 PyObject * obj1 = 0 ;
18884 PyObject * obj2 = 0 ;
18885 PyObject * obj3 = 0 ;
18886 PyObject * obj4 = 0 ;
18887 PyObject * obj5 = 0 ;
18888 PyObject * obj6 = 0 ;
18889 PyObject * obj7 = 0 ;
18890 PyObject * obj8 = 0 ;
18891 char * kwnames[] = {
18892 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18893 };
18894
18895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
18896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18897 if (!SWIG_IsOK(res1)) {
18898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_Create" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18899 }
18900 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18901 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
18902 if (!SWIG_IsOK(res2)) {
18903 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToggleButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
18904 }
18905 arg2 = reinterpret_cast< wxWindow * >(argp2);
18906 if (obj2) {
18907 ecode3 = SWIG_AsVal_int(obj2, &val3);
18908 if (!SWIG_IsOK(ecode3)) {
18909 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToggleButton_Create" "', expected argument " "3"" of type '" "int""'");
18910 }
18911 arg3 = static_cast< int >(val3);
18912 }
18913 if (obj3) {
36ed4f51 18914 {
1bd55598
RD
18915 arg4 = wxString_in_helper(obj3);
18916 if (arg4 == NULL) SWIG_fail;
18917 temp4 = true;
36ed4f51 18918 }
1bd55598
RD
18919 }
18920 if (obj4) {
36ed4f51 18921 {
1bd55598
RD
18922 arg5 = &temp5;
18923 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 18924 }
1bd55598
RD
18925 }
18926 if (obj5) {
36ed4f51 18927 {
1bd55598
RD
18928 arg6 = &temp6;
18929 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
36ed4f51 18930 }
1bd55598
RD
18931 }
18932 if (obj6) {
18933 ecode7 = SWIG_AsVal_long(obj6, &val7);
18934 if (!SWIG_IsOK(ecode7)) {
18935 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToggleButton_Create" "', expected argument " "7"" of type '" "long""'");
18936 }
18937 arg7 = static_cast< long >(val7);
18938 }
18939 if (obj7) {
18940 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
18941 if (!SWIG_IsOK(res8)) {
18942 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
36ed4f51 18943 }
1bd55598
RD
18944 if (!argp8) {
18945 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 18946 }
1bd55598
RD
18947 arg8 = reinterpret_cast< wxValidator * >(argp8);
18948 }
18949 if (obj8) {
d55e5bfc 18950 {
1bd55598
RD
18951 arg9 = wxString_in_helper(obj8);
18952 if (arg9 == NULL) SWIG_fail;
18953 temp9 = true;
d55e5bfc 18954 }
1bd55598
RD
18955 }
18956 {
18957 PyThreadState* __tstate = wxPyBeginAllowThreads();
18958 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
18959 wxPyEndAllowThreads(__tstate);
18960 if (PyErr_Occurred()) SWIG_fail;
18961 }
18962 {
18963 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18964 }
18965 {
18966 if (temp4)
18967 delete arg4;
18968 }
18969 {
18970 if (temp9)
18971 delete arg9;
18972 }
18973 return resultobj;
18974fail:
18975 {
18976 if (temp4)
18977 delete arg4;
18978 }
18979 {
18980 if (temp9)
18981 delete arg9;
18982 }
18983 return NULL;
18984}
18985
18986
18987SWIGINTERN PyObject *_wrap_ToggleButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18988 PyObject *resultobj = 0;
18989 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18990 bool arg2 ;
18991 void *argp1 = 0 ;
18992 int res1 = 0 ;
18993 bool val2 ;
18994 int ecode2 = 0 ;
18995 PyObject * obj0 = 0 ;
18996 PyObject * obj1 = 0 ;
18997 char * kwnames[] = {
18998 (char *) "self",(char *) "value", NULL
18999 };
19000
19001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
19002 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
19003 if (!SWIG_IsOK(res1)) {
19004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_SetValue" "', expected argument " "1"" of type '" "wxToggleButton *""'");
19005 }
19006 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
19007 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19008 if (!SWIG_IsOK(ecode2)) {
19009 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToggleButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
19010 }
19011 arg2 = static_cast< bool >(val2);
19012 {
19013 PyThreadState* __tstate = wxPyBeginAllowThreads();
19014 (arg1)->SetValue(arg2);
19015 wxPyEndAllowThreads(__tstate);
19016 if (PyErr_Occurred()) SWIG_fail;
19017 }
19018 resultobj = SWIG_Py_Void();
19019 return resultobj;
19020fail:
19021 return NULL;
d55e5bfc
RD
19022}
19023
19024
1bd55598
RD
19025SWIGINTERN PyObject *_wrap_ToggleButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19026 PyObject *resultobj = 0;
19027 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
19028 bool result;
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_wxToggleButton, 0 | 0 );
19036 if (!SWIG_IsOK(res1)) {
19037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_GetValue" "', expected argument " "1"" of type '" "wxToggleButton const *""'");
19038 }
19039 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
19040 {
19041 PyThreadState* __tstate = wxPyBeginAllowThreads();
19042 result = (bool)((wxToggleButton const *)arg1)->GetValue();
19043 wxPyEndAllowThreads(__tstate);
19044 if (PyErr_Occurred()) SWIG_fail;
19045 }
19046 {
19047 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19048 }
19049 return resultobj;
19050fail:
19051 return NULL;
f20a2e1f
RD
19052}
19053
19054
1bd55598
RD
19055SWIGINTERN PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19056 PyObject *resultobj = 0;
19057 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
19058 SwigValueWrapper<wxVisualAttributes > result;
19059 int val1 ;
19060 int ecode1 = 0 ;
19061 PyObject * obj0 = 0 ;
19062 char * kwnames[] = {
19063 (char *) "variant", NULL
19064 };
19065
19066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
19067 if (obj0) {
19068 ecode1 = SWIG_AsVal_int(obj0, &val1);
19069 if (!SWIG_IsOK(ecode1)) {
19070 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToggleButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
19071 }
19072 arg1 = static_cast< wxWindowVariant >(val1);
19073 }
19074 {
19075 if (!wxPyCheckForApp()) SWIG_fail;
19076 PyThreadState* __tstate = wxPyBeginAllowThreads();
19077 result = wxToggleButton::GetClassDefaultAttributes(arg1);
19078 wxPyEndAllowThreads(__tstate);
19079 if (PyErr_Occurred()) SWIG_fail;
19080 }
19081 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
19082 return resultobj;
19083fail:
19084 return NULL;
d55e5bfc
RD
19085}
19086
19087
1bd55598
RD
19088SWIGINTERN PyObject *ToggleButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19089 PyObject *obj;
19090 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
19091 SWIG_TypeNewClientData(SWIGTYPE_p_wxToggleButton, SWIG_NewClientData(obj));
19092 return SWIG_Py_Void();
d55e5bfc
RD
19093}
19094
1bd55598
RD
19095SWIGINTERN PyObject *ToggleButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19096 return SWIG_Python_InitShadowInstance(args);
19097}
d55e5bfc 19098
1bd55598
RD
19099SWIGINTERN int NotebookNameStr_set(PyObject *) {
19100 SWIG_Error(SWIG_AttributeError,"Variable NotebookNameStr is read-only.");
19101 return 1;
d55e5bfc
RD
19102}
19103
19104
1bd55598
RD
19105SWIGINTERN PyObject *NotebookNameStr_get(void) {
19106 PyObject *pyobj = 0;
19107
19108 {
d55e5bfc 19109#if wxUSE_UNICODE
1bd55598 19110 pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
d55e5bfc 19111#else
1bd55598 19112 pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
d55e5bfc 19113#endif
1bd55598
RD
19114 }
19115 return pyobj;
d55e5bfc
RD
19116}
19117
19118
1bd55598
RD
19119SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19120 PyObject *resultobj = 0;
19121 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19122 size_t result;
19123 void *argp1 = 0 ;
19124 int res1 = 0 ;
19125 PyObject *swig_obj[1] ;
19126
19127 if (!args) SWIG_fail;
19128 swig_obj[0] = args;
19129 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19130 if (!SWIG_IsOK(res1)) {
19131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageCount" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19132 }
19133 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19134 {
19135 PyThreadState* __tstate = wxPyBeginAllowThreads();
19136 result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount();
19137 wxPyEndAllowThreads(__tstate);
19138 if (PyErr_Occurred()) SWIG_fail;
19139 }
19140 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
19141 return resultobj;
19142fail:
19143 return NULL;
19144}
19145
19146
19147SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19148 PyObject *resultobj = 0;
19149 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19150 size_t arg2 ;
19151 wxWindow *result = 0 ;
19152 void *argp1 = 0 ;
19153 int res1 = 0 ;
19154 size_t val2 ;
19155 int ecode2 = 0 ;
19156 PyObject * obj0 = 0 ;
19157 PyObject * obj1 = 0 ;
19158 char * kwnames[] = {
19159 (char *) "self",(char *) "n", NULL
19160 };
19161
19162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) SWIG_fail;
19163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19164 if (!SWIG_IsOK(res1)) {
19165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19166 }
19167 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19168 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19169 if (!SWIG_IsOK(ecode2)) {
19170 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPage" "', expected argument " "2"" of type '" "size_t""'");
19171 }
19172 arg2 = static_cast< size_t >(val2);
19173 {
19174 PyThreadState* __tstate = wxPyBeginAllowThreads();
19175 result = (wxWindow *)(arg1)->GetPage(arg2);
19176 wxPyEndAllowThreads(__tstate);
19177 if (PyErr_Occurred()) SWIG_fail;
19178 }
19179 {
19180 resultobj = wxPyMake_wxObject(result, 0);
19181 }
19182 return resultobj;
19183fail:
19184 return NULL;
d55e5bfc
RD
19185}
19186
19187
1bd55598
RD
19188SWIGINTERN PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19189 PyObject *resultobj = 0;
19190 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19191 wxWindow *result = 0 ;
19192 void *argp1 = 0 ;
19193 int res1 = 0 ;
19194 PyObject *swig_obj[1] ;
19195
19196 if (!args) SWIG_fail;
19197 swig_obj[0] = args;
19198 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19199 if (!SWIG_IsOK(res1)) {
19200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19201 }
19202 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19203 {
19204 PyThreadState* __tstate = wxPyBeginAllowThreads();
19205 result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage();
19206 wxPyEndAllowThreads(__tstate);
19207 if (PyErr_Occurred()) SWIG_fail;
19208 }
19209 {
19210 resultobj = wxPyMake_wxObject(result, 0);
19211 }
19212 return resultobj;
19213fail:
19214 return NULL;
d55e5bfc
RD
19215}
19216
19217
1bd55598
RD
19218SWIGINTERN PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19219 PyObject *resultobj = 0;
19220 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19221 int result;
19222 void *argp1 = 0 ;
19223 int res1 = 0 ;
19224 PyObject *swig_obj[1] ;
19225
19226 if (!args) SWIG_fail;
19227 swig_obj[0] = args;
19228 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19229 if (!SWIG_IsOK(res1)) {
19230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19231 }
19232 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19233 {
19234 PyThreadState* __tstate = wxPyBeginAllowThreads();
19235 result = (int)((wxBookCtrlBase const *)arg1)->GetSelection();
19236 wxPyEndAllowThreads(__tstate);
19237 if (PyErr_Occurred()) SWIG_fail;
19238 }
19239 resultobj = SWIG_From_int(static_cast< int >(result));
19240 return resultobj;
19241fail:
19242 return NULL;
19243}
19244
19245
19246SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19247 PyObject *resultobj = 0;
19248 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19249 size_t arg2 ;
19250 wxString *arg3 = 0 ;
19251 bool result;
19252 void *argp1 = 0 ;
19253 int res1 = 0 ;
19254 size_t val2 ;
19255 int ecode2 = 0 ;
19256 bool temp3 = false ;
19257 PyObject * obj0 = 0 ;
19258 PyObject * obj1 = 0 ;
19259 PyObject * obj2 = 0 ;
19260 char * kwnames[] = {
19261 (char *) "self",(char *) "n",(char *) "strText", NULL
19262 };
19263
19264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19266 if (!SWIG_IsOK(res1)) {
19267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19268 }
19269 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19270 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19271 if (!SWIG_IsOK(ecode2)) {
19272 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "2"" of type '" "size_t""'");
19273 }
19274 arg2 = static_cast< size_t >(val2);
19275 {
19276 arg3 = wxString_in_helper(obj2);
19277 if (arg3 == NULL) SWIG_fail;
19278 temp3 = true;
19279 }
19280 {
19281 PyThreadState* __tstate = wxPyBeginAllowThreads();
19282 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
19283 wxPyEndAllowThreads(__tstate);
19284 if (PyErr_Occurred()) SWIG_fail;
19285 }
19286 {
19287 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19288 }
19289 {
19290 if (temp3)
19291 delete arg3;
19292 }
19293 return resultobj;
19294fail:
19295 {
19296 if (temp3)
19297 delete arg3;
19298 }
19299 return NULL;
19300}
19301
19302
19303SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19304 PyObject *resultobj = 0;
19305 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19306 size_t arg2 ;
19307 wxString result;
19308 void *argp1 = 0 ;
19309 int res1 = 0 ;
19310 size_t val2 ;
19311 int ecode2 = 0 ;
19312 PyObject * obj0 = 0 ;
19313 PyObject * obj1 = 0 ;
19314 char * kwnames[] = {
19315 (char *) "self",(char *) "n", NULL
19316 };
19317
19318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) SWIG_fail;
19319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19320 if (!SWIG_IsOK(res1)) {
19321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19322 }
19323 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19324 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19325 if (!SWIG_IsOK(ecode2)) {
19326 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "2"" of type '" "size_t""'");
19327 }
19328 arg2 = static_cast< size_t >(val2);
19329 {
19330 PyThreadState* __tstate = wxPyBeginAllowThreads();
19331 result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2);
19332 wxPyEndAllowThreads(__tstate);
19333 if (PyErr_Occurred()) SWIG_fail;
19334 }
19335 {
19336#if wxUSE_UNICODE
19337 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19338#else
19339 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19340#endif
19341 }
19342 return resultobj;
19343fail:
19344 return NULL;
19345}
19346
19347
19348SWIGINTERN PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19349 PyObject *resultobj = 0;
19350 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19351 wxImageList *arg2 = (wxImageList *) 0 ;
19352 void *argp1 = 0 ;
19353 int res1 = 0 ;
19354 void *argp2 = 0 ;
19355 int res2 = 0 ;
19356 PyObject * obj0 = 0 ;
19357 PyObject * obj1 = 0 ;
19358 char * kwnames[] = {
19359 (char *) "self",(char *) "imageList", NULL
19360 };
19361
19362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19364 if (!SWIG_IsOK(res1)) {
19365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19366 }
19367 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19368 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
19369 if (!SWIG_IsOK(res2)) {
19370 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19371 }
19372 arg2 = reinterpret_cast< wxImageList * >(argp2);
19373 {
19374 PyThreadState* __tstate = wxPyBeginAllowThreads();
19375 (arg1)->SetImageList(arg2);
19376 wxPyEndAllowThreads(__tstate);
19377 if (PyErr_Occurred()) SWIG_fail;
19378 }
19379 resultobj = SWIG_Py_Void();
19380 return resultobj;
19381fail:
19382 return NULL;
19383}
19384
19385
19386SWIGINTERN PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19387 PyObject *resultobj = 0;
19388 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19389 wxImageList *arg2 = (wxImageList *) 0 ;
19390 void *argp1 = 0 ;
19391 int res1 = 0 ;
19392 int res2 = 0 ;
19393 PyObject * obj0 = 0 ;
19394 PyObject * obj1 = 0 ;
19395 char * kwnames[] = {
19396 (char *) "self",(char *) "imageList", NULL
19397 };
19398
19399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19401 if (!SWIG_IsOK(res1)) {
19402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19403 }
19404 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19405 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
19406 if (!SWIG_IsOK(res2)) {
19407 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19408 }
19409 {
19410 PyThreadState* __tstate = wxPyBeginAllowThreads();
19411 (arg1)->AssignImageList(arg2);
19412 wxPyEndAllowThreads(__tstate);
19413 if (PyErr_Occurred()) SWIG_fail;
19414 }
19415 resultobj = SWIG_Py_Void();
19416 return resultobj;
19417fail:
19418 return NULL;
d55e5bfc
RD
19419}
19420
19421
1bd55598
RD
19422SWIGINTERN PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19423 PyObject *resultobj = 0;
19424 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19425 wxImageList *result = 0 ;
19426 void *argp1 = 0 ;
19427 int res1 = 0 ;
19428 PyObject *swig_obj[1] ;
19429
19430 if (!args) SWIG_fail;
19431 swig_obj[0] = args;
19432 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19433 if (!SWIG_IsOK(res1)) {
19434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19435 }
19436 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19437 {
19438 PyThreadState* __tstate = wxPyBeginAllowThreads();
19439 result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList();
19440 wxPyEndAllowThreads(__tstate);
19441 if (PyErr_Occurred()) SWIG_fail;
19442 }
3ecece7e
RD
19443 {
19444 resultobj = wxPyMake_wxObject(result, (bool)0);
19445 }
1bd55598
RD
19446 return resultobj;
19447fail:
19448 return NULL;
19449}
19450
19451
19452SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19453 PyObject *resultobj = 0;
19454 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19455 size_t arg2 ;
19456 int result;
19457 void *argp1 = 0 ;
19458 int res1 = 0 ;
19459 size_t val2 ;
19460 int ecode2 = 0 ;
19461 PyObject * obj0 = 0 ;
19462 PyObject * obj1 = 0 ;
19463 char * kwnames[] = {
19464 (char *) "self",(char *) "n", NULL
19465 };
19466
19467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) SWIG_fail;
19468 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19469 if (!SWIG_IsOK(res1)) {
19470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19471 }
19472 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19473 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19474 if (!SWIG_IsOK(ecode2)) {
19475 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19476 }
19477 arg2 = static_cast< size_t >(val2);
19478 {
19479 PyThreadState* __tstate = wxPyBeginAllowThreads();
19480 result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2);
19481 wxPyEndAllowThreads(__tstate);
19482 if (PyErr_Occurred()) SWIG_fail;
19483 }
19484 resultobj = SWIG_From_int(static_cast< int >(result));
19485 return resultobj;
19486fail:
19487 return NULL;
19488}
19489
19490
19491SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19492 PyObject *resultobj = 0;
19493 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19494 size_t arg2 ;
19495 int arg3 ;
19496 bool result;
19497 void *argp1 = 0 ;
19498 int res1 = 0 ;
19499 size_t val2 ;
19500 int ecode2 = 0 ;
19501 int val3 ;
19502 int ecode3 = 0 ;
19503 PyObject * obj0 = 0 ;
19504 PyObject * obj1 = 0 ;
19505 PyObject * obj2 = 0 ;
19506 char * kwnames[] = {
19507 (char *) "self",(char *) "n",(char *) "imageId", NULL
19508 };
19509
19510 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19511 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19512 if (!SWIG_IsOK(res1)) {
19513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19514 }
19515 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19516 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19517 if (!SWIG_IsOK(ecode2)) {
19518 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19519 }
19520 arg2 = static_cast< size_t >(val2);
19521 ecode3 = SWIG_AsVal_int(obj2, &val3);
19522 if (!SWIG_IsOK(ecode3)) {
19523 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "3"" of type '" "int""'");
19524 }
19525 arg3 = static_cast< int >(val3);
19526 {
19527 PyThreadState* __tstate = wxPyBeginAllowThreads();
19528 result = (bool)(arg1)->SetPageImage(arg2,arg3);
19529 wxPyEndAllowThreads(__tstate);
19530 if (PyErr_Occurred()) SWIG_fail;
19531 }
19532 {
19533 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19534 }
19535 return resultobj;
19536fail:
19537 return NULL;
19538}
19539
19540
19541SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19542 PyObject *resultobj = 0;
19543 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19544 wxSize *arg2 = 0 ;
19545 void *argp1 = 0 ;
19546 int res1 = 0 ;
19547 wxSize temp2 ;
19548 PyObject * obj0 = 0 ;
19549 PyObject * obj1 = 0 ;
19550 char * kwnames[] = {
19551 (char *) "self",(char *) "size", NULL
19552 };
19553
19554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
19555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19556 if (!SWIG_IsOK(res1)) {
19557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageSize" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19558 }
19559 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19560 {
19561 arg2 = &temp2;
19562 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19563 }
19564 {
19565 PyThreadState* __tstate = wxPyBeginAllowThreads();
19566 (arg1)->SetPageSize((wxSize const &)*arg2);
19567 wxPyEndAllowThreads(__tstate);
19568 if (PyErr_Occurred()) SWIG_fail;
19569 }
19570 resultobj = SWIG_Py_Void();
19571 return resultobj;
19572fail:
19573 return NULL;
19574}
19575
19576
19577SWIGINTERN PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19578 PyObject *resultobj = 0;
19579 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19580 wxSize *arg2 = 0 ;
19581 wxSize result;
19582 void *argp1 = 0 ;
19583 int res1 = 0 ;
19584 wxSize temp2 ;
19585 PyObject * obj0 = 0 ;
19586 PyObject * obj1 = 0 ;
19587 char * kwnames[] = {
19588 (char *) "self",(char *) "sizePage", NULL
19589 };
19590
19591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) SWIG_fail;
19592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19593 if (!SWIG_IsOK(res1)) {
19594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_CalcSizeFromPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19595 }
19596 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19597 {
19598 arg2 = &temp2;
19599 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19600 }
19601 {
19602 PyThreadState* __tstate = wxPyBeginAllowThreads();
19603 result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
19604 wxPyEndAllowThreads(__tstate);
19605 if (PyErr_Occurred()) SWIG_fail;
19606 }
19607 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
19608 return resultobj;
19609fail:
19610 return NULL;
d55e5bfc
RD
19611}
19612
19613
1bd55598
RD
19614SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19615 PyObject *resultobj = 0;
19616 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
e9d6f3a4 19617 unsigned int result;
1bd55598
RD
19618 void *argp1 = 0 ;
19619 int res1 = 0 ;
19620 PyObject *swig_obj[1] ;
19621
19622 if (!args) SWIG_fail;
19623 swig_obj[0] = args;
19624 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19625 if (!SWIG_IsOK(res1)) {
19626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19627 }
19628 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19629 {
19630 PyThreadState* __tstate = wxPyBeginAllowThreads();
e9d6f3a4 19631 result = (unsigned int)((wxBookCtrlBase const *)arg1)->GetInternalBorder();
1bd55598
RD
19632 wxPyEndAllowThreads(__tstate);
19633 if (PyErr_Occurred()) SWIG_fail;
19634 }
e9d6f3a4 19635 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
1bd55598
RD
19636 return resultobj;
19637fail:
19638 return NULL;
19639}
19640
19641
19642SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19643 PyObject *resultobj = 0;
19644 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
e9d6f3a4 19645 unsigned int arg2 ;
1bd55598
RD
19646 void *argp1 = 0 ;
19647 int res1 = 0 ;
e9d6f3a4 19648 unsigned int val2 ;
1bd55598
RD
19649 int ecode2 = 0 ;
19650 PyObject * obj0 = 0 ;
19651 PyObject * obj1 = 0 ;
19652 char * kwnames[] = {
19653 (char *) "self",(char *) "internalBorder", NULL
19654 };
19655
19656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetInternalBorder",kwnames,&obj0,&obj1)) SWIG_fail;
19657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19658 if (!SWIG_IsOK(res1)) {
19659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19660 }
19661 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
e9d6f3a4 19662 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
1bd55598 19663 if (!SWIG_IsOK(ecode2)) {
e9d6f3a4 19664 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "unsigned int""'");
1bd55598 19665 }
e9d6f3a4 19666 arg2 = static_cast< unsigned int >(val2);
1bd55598
RD
19667 {
19668 PyThreadState* __tstate = wxPyBeginAllowThreads();
19669 (arg1)->SetInternalBorder(arg2);
19670 wxPyEndAllowThreads(__tstate);
19671 if (PyErr_Occurred()) SWIG_fail;
19672 }
19673 resultobj = SWIG_Py_Void();
19674 return resultobj;
19675fail:
19676 return NULL;
d55e5bfc
RD
19677}
19678
19679
1bd55598
RD
19680SWIGINTERN PyObject *_wrap_BookCtrlBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19681 PyObject *resultobj = 0;
19682 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19683 bool result;
19684 void *argp1 = 0 ;
19685 int res1 = 0 ;
19686 PyObject *swig_obj[1] ;
19687
19688 if (!args) SWIG_fail;
19689 swig_obj[0] = args;
19690 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19691 if (!SWIG_IsOK(res1)) {
19692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_IsVertical" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19693 }
19694 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19695 {
19696 PyThreadState* __tstate = wxPyBeginAllowThreads();
19697 result = (bool)((wxBookCtrlBase const *)arg1)->IsVertical();
19698 wxPyEndAllowThreads(__tstate);
19699 if (PyErr_Occurred()) SWIG_fail;
19700 }
19701 {
19702 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19703 }
19704 return resultobj;
19705fail:
19706 return NULL;
19707}
19708
19709
e9d6f3a4
RD
19710SWIGINTERN PyObject *_wrap_BookCtrlBase_SetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19711 PyObject *resultobj = 0;
19712 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19713 int arg2 ;
19714 void *argp1 = 0 ;
19715 int res1 = 0 ;
19716 int val2 ;
19717 int ecode2 = 0 ;
19718 PyObject * obj0 = 0 ;
19719 PyObject * obj1 = 0 ;
19720 char * kwnames[] = {
19721 (char *) "self",(char *) "margin", NULL
19722 };
19723
19724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetControlMargin",kwnames,&obj0,&obj1)) SWIG_fail;
19725 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19726 if (!SWIG_IsOK(res1)) {
19727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19728 }
19729 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19730 ecode2 = SWIG_AsVal_int(obj1, &val2);
19731 if (!SWIG_IsOK(ecode2)) {
19732 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "2"" of type '" "int""'");
19733 }
19734 arg2 = static_cast< int >(val2);
19735 {
19736 PyThreadState* __tstate = wxPyBeginAllowThreads();
19737 (arg1)->SetControlMargin(arg2);
19738 wxPyEndAllowThreads(__tstate);
19739 if (PyErr_Occurred()) SWIG_fail;
19740 }
19741 resultobj = SWIG_Py_Void();
19742 return resultobj;
19743fail:
19744 return NULL;
19745}
19746
19747
19748SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19749 PyObject *resultobj = 0;
19750 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19751 int result;
19752 void *argp1 = 0 ;
19753 int res1 = 0 ;
19754 PyObject *swig_obj[1] ;
19755
19756 if (!args) SWIG_fail;
19757 swig_obj[0] = args;
19758 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19759 if (!SWIG_IsOK(res1)) {
19760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19761 }
19762 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19763 {
19764 PyThreadState* __tstate = wxPyBeginAllowThreads();
19765 result = (int)((wxBookCtrlBase const *)arg1)->GetControlMargin();
19766 wxPyEndAllowThreads(__tstate);
19767 if (PyErr_Occurred()) SWIG_fail;
19768 }
19769 resultobj = SWIG_From_int(static_cast< int >(result));
19770 return resultobj;
19771fail:
19772 return NULL;
19773}
19774
19775
1bd55598
RD
19776SWIGINTERN PyObject *_wrap_BookCtrlBase_SetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19777 PyObject *resultobj = 0;
19778 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19779 bool arg2 ;
19780 void *argp1 = 0 ;
19781 int res1 = 0 ;
19782 bool val2 ;
19783 int ecode2 = 0 ;
19784 PyObject * obj0 = 0 ;
19785 PyObject * obj1 = 0 ;
19786 char * kwnames[] = {
19787 (char *) "self",(char *) "fit", NULL
19788 };
19789
19790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetFitToCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail;
19791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19792 if (!SWIG_IsOK(res1)) {
19793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19794 }
19795 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19796 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19797 if (!SWIG_IsOK(ecode2)) {
19798 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "2"" of type '" "bool""'");
19799 }
19800 arg2 = static_cast< bool >(val2);
19801 {
19802 PyThreadState* __tstate = wxPyBeginAllowThreads();
19803 (arg1)->SetFitToCurrentPage(arg2);
19804 wxPyEndAllowThreads(__tstate);
19805 if (PyErr_Occurred()) SWIG_fail;
19806 }
19807 resultobj = SWIG_Py_Void();
19808 return resultobj;
19809fail:
19810 return NULL;
d55e5bfc
RD
19811}
19812
19813
1bd55598
RD
19814SWIGINTERN PyObject *_wrap_BookCtrlBase_GetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19815 PyObject *resultobj = 0;
19816 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19817 bool result;
19818 void *argp1 = 0 ;
19819 int res1 = 0 ;
19820 PyObject *swig_obj[1] ;
19821
19822 if (!args) SWIG_fail;
19823 swig_obj[0] = args;
19824 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19825 if (!SWIG_IsOK(res1)) {
19826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19827 }
19828 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19829 {
19830 PyThreadState* __tstate = wxPyBeginAllowThreads();
19831 result = (bool)((wxBookCtrlBase const *)arg1)->GetFitToCurrentPage();
19832 wxPyEndAllowThreads(__tstate);
19833 if (PyErr_Occurred()) SWIG_fail;
19834 }
19835 {
19836 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19837 }
19838 return resultobj;
19839fail:
19840 return NULL;
19841}
19842
19843
e9d6f3a4
RD
19844SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19845 PyObject *resultobj = 0;
19846 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19847 wxSizer *result = 0 ;
19848 void *argp1 = 0 ;
19849 int res1 = 0 ;
19850 PyObject *swig_obj[1] ;
19851
19852 if (!args) SWIG_fail;
19853 swig_obj[0] = args;
19854 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19855 if (!SWIG_IsOK(res1)) {
19856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlSizer" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19857 }
19858 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19859 {
19860 PyThreadState* __tstate = wxPyBeginAllowThreads();
19861 result = (wxSizer *)((wxBookCtrlBase const *)arg1)->GetControlSizer();
19862 wxPyEndAllowThreads(__tstate);
19863 if (PyErr_Occurred()) SWIG_fail;
19864 }
19865 {
19866 resultobj = wxPyMake_wxObject(result, (bool)0);
19867 }
19868 return resultobj;
19869fail:
19870 return NULL;
19871}
19872
19873
1bd55598
RD
19874SWIGINTERN PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19875 PyObject *resultobj = 0;
19876 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19877 size_t arg2 ;
19878 bool result;
19879 void *argp1 = 0 ;
19880 int res1 = 0 ;
19881 size_t val2 ;
19882 int ecode2 = 0 ;
19883 PyObject * obj0 = 0 ;
19884 PyObject * obj1 = 0 ;
19885 char * kwnames[] = {
19886 (char *) "self",(char *) "n", NULL
19887 };
19888
19889 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) SWIG_fail;
19890 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19891 if (!SWIG_IsOK(res1)) {
19892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19893 }
19894 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19895 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19896 if (!SWIG_IsOK(ecode2)) {
19897 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "2"" of type '" "size_t""'");
19898 }
19899 arg2 = static_cast< size_t >(val2);
19900 {
19901 PyThreadState* __tstate = wxPyBeginAllowThreads();
19902 result = (bool)(arg1)->DeletePage(arg2);
19903 wxPyEndAllowThreads(__tstate);
19904 if (PyErr_Occurred()) SWIG_fail;
19905 }
19906 {
19907 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19908 }
19909 return resultobj;
19910fail:
19911 return NULL;
19912}
19913
19914
19915SWIGINTERN PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19916 PyObject *resultobj = 0;
19917 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19918 size_t arg2 ;
19919 bool result;
19920 void *argp1 = 0 ;
19921 int res1 = 0 ;
19922 size_t val2 ;
19923 int ecode2 = 0 ;
19924 PyObject * obj0 = 0 ;
19925 PyObject * obj1 = 0 ;
19926 char * kwnames[] = {
19927 (char *) "self",(char *) "n", NULL
19928 };
19929
19930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) SWIG_fail;
19931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19932 if (!SWIG_IsOK(res1)) {
19933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19934 }
19935 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19936 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19937 if (!SWIG_IsOK(ecode2)) {
19938 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "2"" of type '" "size_t""'");
19939 }
19940 arg2 = static_cast< size_t >(val2);
19941 {
19942 PyThreadState* __tstate = wxPyBeginAllowThreads();
19943 result = (bool)(arg1)->RemovePage(arg2);
19944 wxPyEndAllowThreads(__tstate);
19945 if (PyErr_Occurred()) SWIG_fail;
19946 }
19947 {
19948 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19949 }
19950 return resultobj;
19951fail:
19952 return NULL;
f20a2e1f
RD
19953}
19954
19955
1bd55598
RD
19956SWIGINTERN PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19957 PyObject *resultobj = 0;
19958 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19959 bool result;
19960 void *argp1 = 0 ;
19961 int res1 = 0 ;
19962 PyObject *swig_obj[1] ;
19963
19964 if (!args) SWIG_fail;
19965 swig_obj[0] = args;
19966 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19967 if (!SWIG_IsOK(res1)) {
19968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeleteAllPages" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19969 }
19970 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19971 {
19972 PyThreadState* __tstate = wxPyBeginAllowThreads();
19973 result = (bool)(arg1)->DeleteAllPages();
19974 wxPyEndAllowThreads(__tstate);
19975 if (PyErr_Occurred()) SWIG_fail;
19976 }
19977 {
19978 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19979 }
19980 return resultobj;
19981fail:
19982 return NULL;
19983}
19984
19985
19986SWIGINTERN PyObject *_wrap_BookCtrlBase_AddPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19987 PyObject *resultobj = 0;
19988 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19989 wxWindow *arg2 = (wxWindow *) 0 ;
19990 wxString *arg3 = 0 ;
19991 bool arg4 = (bool) false ;
19992 int arg5 = (int) -1 ;
19993 bool result;
19994 void *argp1 = 0 ;
19995 int res1 = 0 ;
19996 void *argp2 = 0 ;
19997 int res2 = 0 ;
19998 bool temp3 = false ;
19999 bool val4 ;
20000 int ecode4 = 0 ;
20001 int val5 ;
20002 int ecode5 = 0 ;
20003 PyObject * obj0 = 0 ;
20004 PyObject * obj1 = 0 ;
20005 PyObject * obj2 = 0 ;
20006 PyObject * obj3 = 0 ;
20007 PyObject * obj4 = 0 ;
20008 char * kwnames[] = {
20009 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
20010 };
20011
20012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20014 if (!SWIG_IsOK(res1)) {
20015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AddPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20016 }
20017 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20018 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20019 if (!SWIG_IsOK(res2)) {
20020 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AddPage" "', expected argument " "2"" of type '" "wxWindow *""'");
20021 }
20022 arg2 = reinterpret_cast< wxWindow * >(argp2);
20023 {
20024 arg3 = wxString_in_helper(obj2);
20025 if (arg3 == NULL) SWIG_fail;
20026 temp3 = true;
20027 }
20028 if (obj3) {
20029 ecode4 = SWIG_AsVal_bool(obj3, &val4);
20030 if (!SWIG_IsOK(ecode4)) {
20031 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BookCtrlBase_AddPage" "', expected argument " "4"" of type '" "bool""'");
20032 }
20033 arg4 = static_cast< bool >(val4);
20034 }
20035 if (obj4) {
20036 ecode5 = SWIG_AsVal_int(obj4, &val5);
20037 if (!SWIG_IsOK(ecode5)) {
20038 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_AddPage" "', expected argument " "5"" of type '" "int""'");
20039 }
20040 arg5 = static_cast< int >(val5);
20041 }
20042 {
20043 PyThreadState* __tstate = wxPyBeginAllowThreads();
20044 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
20045 wxPyEndAllowThreads(__tstate);
20046 if (PyErr_Occurred()) SWIG_fail;
20047 }
20048 {
20049 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20050 }
20051 {
20052 if (temp3)
20053 delete arg3;
20054 }
20055 return resultobj;
20056fail:
20057 {
20058 if (temp3)
20059 delete arg3;
20060 }
20061 return NULL;
20062}
20063
20064
20065SWIGINTERN PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20066 PyObject *resultobj = 0;
20067 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20068 size_t arg2 ;
20069 wxWindow *arg3 = (wxWindow *) 0 ;
20070 wxString *arg4 = 0 ;
20071 bool arg5 = (bool) false ;
20072 int arg6 = (int) -1 ;
20073 bool result;
20074 void *argp1 = 0 ;
20075 int res1 = 0 ;
20076 size_t val2 ;
20077 int ecode2 = 0 ;
20078 void *argp3 = 0 ;
20079 int res3 = 0 ;
20080 bool temp4 = false ;
20081 bool val5 ;
20082 int ecode5 = 0 ;
20083 int val6 ;
20084 int ecode6 = 0 ;
20085 PyObject * obj0 = 0 ;
20086 PyObject * obj1 = 0 ;
20087 PyObject * obj2 = 0 ;
20088 PyObject * obj3 = 0 ;
20089 PyObject * obj4 = 0 ;
20090 PyObject * obj5 = 0 ;
20091 char * kwnames[] = {
20092 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
20093 };
20094
20095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20097 if (!SWIG_IsOK(res1)) {
20098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20099 }
20100 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20101 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20102 if (!SWIG_IsOK(ecode2)) {
20103 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "2"" of type '" "size_t""'");
20104 }
20105 arg2 = static_cast< size_t >(val2);
20106 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
20107 if (!SWIG_IsOK(res3)) {
20108 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "3"" of type '" "wxWindow *""'");
20109 }
20110 arg3 = reinterpret_cast< wxWindow * >(argp3);
20111 {
20112 arg4 = wxString_in_helper(obj3);
20113 if (arg4 == NULL) SWIG_fail;
20114 temp4 = true;
20115 }
20116 if (obj4) {
20117 ecode5 = SWIG_AsVal_bool(obj4, &val5);
20118 if (!SWIG_IsOK(ecode5)) {
20119 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "5"" of type '" "bool""'");
20120 }
20121 arg5 = static_cast< bool >(val5);
20122 }
20123 if (obj5) {
20124 ecode6 = SWIG_AsVal_int(obj5, &val6);
20125 if (!SWIG_IsOK(ecode6)) {
20126 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "6"" of type '" "int""'");
20127 }
20128 arg6 = static_cast< int >(val6);
20129 }
20130 {
20131 PyThreadState* __tstate = wxPyBeginAllowThreads();
20132 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
20133 wxPyEndAllowThreads(__tstate);
20134 if (PyErr_Occurred()) SWIG_fail;
20135 }
20136 {
20137 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20138 }
20139 {
20140 if (temp4)
20141 delete arg4;
20142 }
20143 return resultobj;
20144fail:
20145 {
20146 if (temp4)
20147 delete arg4;
20148 }
20149 return NULL;
20150}
20151
20152
20153SWIGINTERN PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20154 PyObject *resultobj = 0;
20155 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20156 size_t arg2 ;
20157 int result;
20158 void *argp1 = 0 ;
20159 int res1 = 0 ;
20160 size_t val2 ;
20161 int ecode2 = 0 ;
20162 PyObject * obj0 = 0 ;
20163 PyObject * obj1 = 0 ;
20164 char * kwnames[] = {
20165 (char *) "self",(char *) "n", NULL
20166 };
20167
20168 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20169 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20170 if (!SWIG_IsOK(res1)) {
20171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20172 }
20173 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20174 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20175 if (!SWIG_IsOK(ecode2)) {
20176 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "2"" of type '" "size_t""'");
20177 }
20178 arg2 = static_cast< size_t >(val2);
20179 {
20180 PyThreadState* __tstate = wxPyBeginAllowThreads();
20181 result = (int)(arg1)->SetSelection(arg2);
20182 wxPyEndAllowThreads(__tstate);
20183 if (PyErr_Occurred()) SWIG_fail;
20184 }
20185 resultobj = SWIG_From_int(static_cast< int >(result));
20186 return resultobj;
20187fail:
20188 return NULL;
20189}
20190
20191
b39fe951
RD
20192SWIGINTERN PyObject *_wrap_BookCtrlBase_ChangeSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20193 PyObject *resultobj = 0;
20194 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20195 size_t arg2 ;
20196 int result;
20197 void *argp1 = 0 ;
20198 int res1 = 0 ;
20199 size_t val2 ;
20200 int ecode2 = 0 ;
20201 PyObject * obj0 = 0 ;
20202 PyObject * obj1 = 0 ;
20203 char * kwnames[] = {
20204 (char *) "self",(char *) "n", NULL
20205 };
20206
20207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_ChangeSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20208 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20209 if (!SWIG_IsOK(res1)) {
20210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_ChangeSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20211 }
20212 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20213 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20214 if (!SWIG_IsOK(ecode2)) {
20215 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_ChangeSelection" "', expected argument " "2"" of type '" "size_t""'");
20216 }
20217 arg2 = static_cast< size_t >(val2);
20218 {
20219 PyThreadState* __tstate = wxPyBeginAllowThreads();
20220 result = (int)(arg1)->ChangeSelection(arg2);
20221 wxPyEndAllowThreads(__tstate);
20222 if (PyErr_Occurred()) SWIG_fail;
20223 }
20224 resultobj = SWIG_From_int(static_cast< int >(result));
20225 return resultobj;
20226fail:
20227 return NULL;
20228}
20229
20230
1bd55598
RD
20231SWIGINTERN PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20232 PyObject *resultobj = 0;
20233 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20234 bool arg2 = (bool) true ;
20235 void *argp1 = 0 ;
20236 int res1 = 0 ;
20237 bool val2 ;
20238 int ecode2 = 0 ;
20239 PyObject * obj0 = 0 ;
20240 PyObject * obj1 = 0 ;
20241 char * kwnames[] = {
20242 (char *) "self",(char *) "forward", NULL
20243 };
20244
20245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20247 if (!SWIG_IsOK(res1)) {
20248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20249 }
20250 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20251 if (obj1) {
20252 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20253 if (!SWIG_IsOK(ecode2)) {
20254 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "2"" of type '" "bool""'");
20255 }
20256 arg2 = static_cast< bool >(val2);
20257 }
20258 {
20259 PyThreadState* __tstate = wxPyBeginAllowThreads();
20260 (arg1)->AdvanceSelection(arg2);
20261 wxPyEndAllowThreads(__tstate);
20262 if (PyErr_Occurred()) SWIG_fail;
20263 }
20264 resultobj = SWIG_Py_Void();
20265 return resultobj;
20266fail:
20267 return NULL;
20268}
20269
20270
704eda0c
RD
20271SWIGINTERN PyObject *_wrap_BookCtrlBase_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20272 PyObject *resultobj = 0;
20273 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20274 wxPoint *arg2 = 0 ;
20275 long *arg3 = (long *) 0 ;
20276 int result;
20277 void *argp1 = 0 ;
20278 int res1 = 0 ;
20279 wxPoint temp2 ;
20280 long temp3 ;
20281 int res3 = SWIG_TMPOBJ ;
20282 PyObject * obj0 = 0 ;
20283 PyObject * obj1 = 0 ;
20284 char * kwnames[] = {
20285 (char *) "self",(char *) "pt", NULL
20286 };
20287
20288 arg3 = &temp3;
20289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
20290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20291 if (!SWIG_IsOK(res1)) {
20292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_HitTest" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
20293 }
20294 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20295 {
20296 arg2 = &temp2;
20297 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20298 }
20299 {
20300 PyThreadState* __tstate = wxPyBeginAllowThreads();
20301 result = (int)((wxBookCtrlBase const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
20302 wxPyEndAllowThreads(__tstate);
20303 if (PyErr_Occurred()) SWIG_fail;
20304 }
20305 resultobj = SWIG_From_int(static_cast< int >(result));
20306 if (SWIG_IsTmpObj(res3)) {
20307 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
20308 } else {
20309 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20310 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
20311 }
20312 return resultobj;
20313fail:
20314 return NULL;
20315}
20316
20317
1bd55598
RD
20318SWIGINTERN PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20319 PyObject *resultobj = 0;
20320 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20321 SwigValueWrapper<wxVisualAttributes > result;
20322 int val1 ;
20323 int ecode1 = 0 ;
20324 PyObject * obj0 = 0 ;
20325 char * kwnames[] = {
20326 (char *) "variant", NULL
20327 };
20328
20329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20330 if (obj0) {
20331 ecode1 = SWIG_AsVal_int(obj0, &val1);
20332 if (!SWIG_IsOK(ecode1)) {
20333 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BookCtrlBase_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20334 }
20335 arg1 = static_cast< wxWindowVariant >(val1);
20336 }
20337 {
20338 if (!wxPyCheckForApp()) SWIG_fail;
20339 PyThreadState* __tstate = wxPyBeginAllowThreads();
20340 result = wxBookCtrlBase::GetClassDefaultAttributes(arg1);
20341 wxPyEndAllowThreads(__tstate);
20342 if (PyErr_Occurred()) SWIG_fail;
20343 }
20344 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20345 return resultobj;
20346fail:
20347 return NULL;
20348}
20349
20350
20351SWIGINTERN PyObject *BookCtrlBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20352 PyObject *obj;
20353 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20354 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBase, SWIG_NewClientData(obj));
20355 return SWIG_Py_Void();
20356}
20357
20358SWIGINTERN PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20359 PyObject *resultobj = 0;
20360 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20361 int arg2 = (int) 0 ;
20362 int arg3 = (int) -1 ;
20363 int arg4 = (int) -1 ;
20364 wxBookCtrlBaseEvent *result = 0 ;
20365 int val1 ;
20366 int ecode1 = 0 ;
20367 int val2 ;
20368 int ecode2 = 0 ;
20369 int val3 ;
20370 int ecode3 = 0 ;
20371 int val4 ;
20372 int ecode4 = 0 ;
20373 PyObject * obj0 = 0 ;
20374 PyObject * obj1 = 0 ;
20375 PyObject * obj2 = 0 ;
20376 PyObject * obj3 = 0 ;
20377 char * kwnames[] = {
20378 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20379 };
20380
20381 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20382 if (obj0) {
20383 ecode1 = SWIG_AsVal_int(obj0, &val1);
20384 if (!SWIG_IsOK(ecode1)) {
20385 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20386 }
20387 arg1 = static_cast< wxEventType >(val1);
20388 }
20389 if (obj1) {
20390 ecode2 = SWIG_AsVal_int(obj1, &val2);
20391 if (!SWIG_IsOK(ecode2)) {
20392 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "2"" of type '" "int""'");
20393 }
20394 arg2 = static_cast< int >(val2);
20395 }
20396 if (obj2) {
20397 ecode3 = SWIG_AsVal_int(obj2, &val3);
20398 if (!SWIG_IsOK(ecode3)) {
20399 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "3"" of type '" "int""'");
20400 }
20401 arg3 = static_cast< int >(val3);
20402 }
20403 if (obj3) {
20404 ecode4 = SWIG_AsVal_int(obj3, &val4);
20405 if (!SWIG_IsOK(ecode4)) {
20406 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "4"" of type '" "int""'");
20407 }
20408 arg4 = static_cast< int >(val4);
20409 }
20410 {
20411 PyThreadState* __tstate = wxPyBeginAllowThreads();
20412 result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4);
20413 wxPyEndAllowThreads(__tstate);
20414 if (PyErr_Occurred()) SWIG_fail;
20415 }
20416 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_NEW | 0 );
20417 return resultobj;
20418fail:
20419 return NULL;
d55e5bfc
RD
20420}
20421
20422
1bd55598
RD
20423SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20424 PyObject *resultobj = 0;
20425 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20426 int result;
20427 void *argp1 = 0 ;
20428 int res1 = 0 ;
20429 PyObject *swig_obj[1] ;
20430
20431 if (!args) SWIG_fail;
20432 swig_obj[0] = args;
20433 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20434 if (!SWIG_IsOK(res1)) {
20435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20436 }
20437 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20438 {
20439 PyThreadState* __tstate = wxPyBeginAllowThreads();
20440 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection();
20441 wxPyEndAllowThreads(__tstate);
20442 if (PyErr_Occurred()) SWIG_fail;
20443 }
20444 resultobj = SWIG_From_int(static_cast< int >(result));
20445 return resultobj;
20446fail:
20447 return NULL;
20448}
20449
20450
20451SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20452 PyObject *resultobj = 0;
20453 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20454 int arg2 ;
20455 void *argp1 = 0 ;
20456 int res1 = 0 ;
20457 int val2 ;
20458 int ecode2 = 0 ;
20459 PyObject * obj0 = 0 ;
20460 PyObject * obj1 = 0 ;
20461 char * kwnames[] = {
20462 (char *) "self",(char *) "nSel", NULL
20463 };
20464
20465 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20466 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20467 if (!SWIG_IsOK(res1)) {
20468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20469 }
20470 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20471 ecode2 = SWIG_AsVal_int(obj1, &val2);
20472 if (!SWIG_IsOK(ecode2)) {
20473 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "2"" of type '" "int""'");
20474 }
20475 arg2 = static_cast< int >(val2);
20476 {
20477 PyThreadState* __tstate = wxPyBeginAllowThreads();
20478 (arg1)->SetSelection(arg2);
20479 wxPyEndAllowThreads(__tstate);
20480 if (PyErr_Occurred()) SWIG_fail;
20481 }
20482 resultobj = SWIG_Py_Void();
20483 return resultobj;
20484fail:
20485 return NULL;
d55e5bfc
RD
20486}
20487
20488
1bd55598
RD
20489SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20490 PyObject *resultobj = 0;
20491 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20492 int result;
20493 void *argp1 = 0 ;
20494 int res1 = 0 ;
20495 PyObject *swig_obj[1] ;
20496
20497 if (!args) SWIG_fail;
20498 swig_obj[0] = args;
20499 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20500 if (!SWIG_IsOK(res1)) {
20501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20502 }
20503 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20504 {
20505 PyThreadState* __tstate = wxPyBeginAllowThreads();
20506 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection();
20507 wxPyEndAllowThreads(__tstate);
20508 if (PyErr_Occurred()) SWIG_fail;
20509 }
20510 resultobj = SWIG_From_int(static_cast< int >(result));
20511 return resultobj;
20512fail:
20513 return NULL;
20514}
20515
20516
20517SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20518 PyObject *resultobj = 0;
20519 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20520 int arg2 ;
20521 void *argp1 = 0 ;
20522 int res1 = 0 ;
20523 int val2 ;
20524 int ecode2 = 0 ;
20525 PyObject * obj0 = 0 ;
20526 PyObject * obj1 = 0 ;
20527 char * kwnames[] = {
20528 (char *) "self",(char *) "nOldSel", NULL
20529 };
20530
20531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20533 if (!SWIG_IsOK(res1)) {
20534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20535 }
20536 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20537 ecode2 = SWIG_AsVal_int(obj1, &val2);
20538 if (!SWIG_IsOK(ecode2)) {
20539 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "2"" of type '" "int""'");
20540 }
20541 arg2 = static_cast< int >(val2);
20542 {
20543 PyThreadState* __tstate = wxPyBeginAllowThreads();
20544 (arg1)->SetOldSelection(arg2);
20545 wxPyEndAllowThreads(__tstate);
20546 if (PyErr_Occurred()) SWIG_fail;
20547 }
20548 resultobj = SWIG_Py_Void();
20549 return resultobj;
20550fail:
20551 return NULL;
20552}
20553
20554
20555SWIGINTERN PyObject *BookCtrlBaseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20556 PyObject *obj;
20557 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20558 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_NewClientData(obj));
20559 return SWIG_Py_Void();
20560}
20561
20562SWIGINTERN PyObject *BookCtrlBaseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20563 return SWIG_Python_InitShadowInstance(args);
20564}
20565
20566SWIGINTERN PyObject *_wrap_new_Notebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20567 PyObject *resultobj = 0;
20568 wxWindow *arg1 = (wxWindow *) 0 ;
20569 int arg2 = (int) -1 ;
20570 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20571 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20572 wxSize const &arg4_defvalue = wxDefaultSize ;
20573 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20574 long arg5 = (long) 0 ;
20575 wxString const &arg6_defvalue = wxPyNotebookNameStr ;
20576 wxString *arg6 = (wxString *) &arg6_defvalue ;
20577 wxNotebook *result = 0 ;
20578 void *argp1 = 0 ;
20579 int res1 = 0 ;
20580 int val2 ;
20581 int ecode2 = 0 ;
20582 wxPoint temp3 ;
20583 wxSize temp4 ;
20584 long val5 ;
20585 int ecode5 = 0 ;
20586 bool temp6 = false ;
20587 PyObject * obj0 = 0 ;
20588 PyObject * obj1 = 0 ;
20589 PyObject * obj2 = 0 ;
20590 PyObject * obj3 = 0 ;
20591 PyObject * obj4 = 0 ;
20592 PyObject * obj5 = 0 ;
20593 char * kwnames[] = {
20594 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20595 };
20596
20597 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20598 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20599 if (!SWIG_IsOK(res1)) {
20600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Notebook" "', expected argument " "1"" of type '" "wxWindow *""'");
20601 }
20602 arg1 = reinterpret_cast< wxWindow * >(argp1);
20603 if (obj1) {
20604 ecode2 = SWIG_AsVal_int(obj1, &val2);
20605 if (!SWIG_IsOK(ecode2)) {
20606 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Notebook" "', expected argument " "2"" of type '" "int""'");
20607 }
20608 arg2 = static_cast< int >(val2);
20609 }
20610 if (obj2) {
20611 {
20612 arg3 = &temp3;
20613 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 20614 }
1bd55598
RD
20615 }
20616 if (obj3) {
d55e5bfc 20617 {
1bd55598
RD
20618 arg4 = &temp4;
20619 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 20620 }
1bd55598
RD
20621 }
20622 if (obj4) {
20623 ecode5 = SWIG_AsVal_long(obj4, &val5);
20624 if (!SWIG_IsOK(ecode5)) {
20625 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Notebook" "', expected argument " "5"" of type '" "long""'");
20626 }
20627 arg5 = static_cast< long >(val5);
20628 }
20629 if (obj5) {
d55e5bfc 20630 {
1bd55598
RD
20631 arg6 = wxString_in_helper(obj5);
20632 if (arg6 == NULL) SWIG_fail;
20633 temp6 = true;
d55e5bfc 20634 }
1bd55598
RD
20635 }
20636 {
20637 if (!wxPyCheckForApp()) SWIG_fail;
20638 PyThreadState* __tstate = wxPyBeginAllowThreads();
20639 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20640 wxPyEndAllowThreads(__tstate);
20641 if (PyErr_Occurred()) SWIG_fail;
20642 }
20643 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_NEW | 0 );
20644 {
20645 if (temp6)
20646 delete arg6;
20647 }
20648 return resultobj;
20649fail:
20650 {
20651 if (temp6)
20652 delete arg6;
20653 }
20654 return NULL;
20655}
20656
20657
20658SWIGINTERN PyObject *_wrap_new_PreNotebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20659 PyObject *resultobj = 0;
20660 wxNotebook *result = 0 ;
20661
20662 if (!SWIG_Python_UnpackTuple(args,"new_PreNotebook",0,0,0)) SWIG_fail;
20663 {
20664 if (!wxPyCheckForApp()) SWIG_fail;
20665 PyThreadState* __tstate = wxPyBeginAllowThreads();
20666 result = (wxNotebook *)new wxNotebook();
20667 wxPyEndAllowThreads(__tstate);
20668 if (PyErr_Occurred()) SWIG_fail;
20669 }
20670 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_OWN | 0 );
20671 return resultobj;
20672fail:
20673 return NULL;
20674}
20675
20676
20677SWIGINTERN PyObject *_wrap_Notebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20678 PyObject *resultobj = 0;
20679 wxNotebook *arg1 = (wxNotebook *) 0 ;
20680 wxWindow *arg2 = (wxWindow *) 0 ;
20681 int arg3 = (int) -1 ;
20682 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20683 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20684 wxSize const &arg5_defvalue = wxDefaultSize ;
20685 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20686 long arg6 = (long) 0 ;
20687 wxString const &arg7_defvalue = wxPyNotebookNameStr ;
20688 wxString *arg7 = (wxString *) &arg7_defvalue ;
20689 bool result;
20690 void *argp1 = 0 ;
20691 int res1 = 0 ;
20692 void *argp2 = 0 ;
20693 int res2 = 0 ;
20694 int val3 ;
20695 int ecode3 = 0 ;
20696 wxPoint temp4 ;
20697 wxSize temp5 ;
20698 long val6 ;
20699 int ecode6 = 0 ;
20700 bool temp7 = false ;
20701 PyObject * obj0 = 0 ;
20702 PyObject * obj1 = 0 ;
20703 PyObject * obj2 = 0 ;
20704 PyObject * obj3 = 0 ;
20705 PyObject * obj4 = 0 ;
20706 PyObject * obj5 = 0 ;
20707 PyObject * obj6 = 0 ;
20708 char * kwnames[] = {
20709 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20710 };
20711
20712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20714 if (!SWIG_IsOK(res1)) {
20715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_Create" "', expected argument " "1"" of type '" "wxNotebook *""'");
20716 }
20717 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20718 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20719 if (!SWIG_IsOK(res2)) {
20720 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Notebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20721 }
20722 arg2 = reinterpret_cast< wxWindow * >(argp2);
20723 if (obj2) {
20724 ecode3 = SWIG_AsVal_int(obj2, &val3);
20725 if (!SWIG_IsOK(ecode3)) {
20726 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_Create" "', expected argument " "3"" of type '" "int""'");
20727 }
20728 arg3 = static_cast< int >(val3);
20729 }
20730 if (obj3) {
d55e5bfc 20731 {
1bd55598
RD
20732 arg4 = &temp4;
20733 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 20734 }
1bd55598
RD
20735 }
20736 if (obj4) {
d55e5bfc 20737 {
1bd55598
RD
20738 arg5 = &temp5;
20739 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 20740 }
1bd55598
RD
20741 }
20742 if (obj5) {
20743 ecode6 = SWIG_AsVal_long(obj5, &val6);
20744 if (!SWIG_IsOK(ecode6)) {
20745 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Notebook_Create" "', expected argument " "6"" of type '" "long""'");
20746 }
20747 arg6 = static_cast< long >(val6);
20748 }
20749 if (obj6) {
d55e5bfc 20750 {
1bd55598
RD
20751 arg7 = wxString_in_helper(obj6);
20752 if (arg7 == NULL) SWIG_fail;
20753 temp7 = true;
d55e5bfc 20754 }
1bd55598
RD
20755 }
20756 {
20757 PyThreadState* __tstate = wxPyBeginAllowThreads();
20758 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20759 wxPyEndAllowThreads(__tstate);
20760 if (PyErr_Occurred()) SWIG_fail;
20761 }
20762 {
20763 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20764 }
20765 {
20766 if (temp7)
20767 delete arg7;
20768 }
20769 return resultobj;
20770fail:
20771 {
20772 if (temp7)
20773 delete arg7;
20774 }
20775 return NULL;
d55e5bfc
RD
20776}
20777
20778
1bd55598
RD
20779SWIGINTERN PyObject *_wrap_Notebook_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20780 PyObject *resultobj = 0;
20781 wxNotebook *arg1 = (wxNotebook *) 0 ;
20782 int result;
20783 void *argp1 = 0 ;
20784 int res1 = 0 ;
20785 PyObject *swig_obj[1] ;
20786
20787 if (!args) SWIG_fail;
20788 swig_obj[0] = args;
20789 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20790 if (!SWIG_IsOK(res1)) {
20791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetRowCount" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20792 }
20793 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20794 {
20795 PyThreadState* __tstate = wxPyBeginAllowThreads();
20796 result = (int)((wxNotebook const *)arg1)->GetRowCount();
20797 wxPyEndAllowThreads(__tstate);
20798 if (PyErr_Occurred()) SWIG_fail;
20799 }
20800 resultobj = SWIG_From_int(static_cast< int >(result));
20801 return resultobj;
20802fail:
20803 return NULL;
20804}
20805
20806
20807SWIGINTERN PyObject *_wrap_Notebook_SetPadding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20808 PyObject *resultobj = 0;
20809 wxNotebook *arg1 = (wxNotebook *) 0 ;
20810 wxSize *arg2 = 0 ;
20811 void *argp1 = 0 ;
20812 int res1 = 0 ;
20813 wxSize temp2 ;
20814 PyObject * obj0 = 0 ;
20815 PyObject * obj1 = 0 ;
20816 char * kwnames[] = {
20817 (char *) "self",(char *) "padding", NULL
20818 };
20819
20820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) SWIG_fail;
20821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20822 if (!SWIG_IsOK(res1)) {
20823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetPadding" "', expected argument " "1"" of type '" "wxNotebook *""'");
20824 }
20825 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20826 {
20827 arg2 = &temp2;
20828 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20829 }
20830 {
20831 PyThreadState* __tstate = wxPyBeginAllowThreads();
20832 (arg1)->SetPadding((wxSize const &)*arg2);
20833 wxPyEndAllowThreads(__tstate);
20834 if (PyErr_Occurred()) SWIG_fail;
20835 }
20836 resultobj = SWIG_Py_Void();
20837 return resultobj;
20838fail:
20839 return NULL;
20840}
20841
20842
20843SWIGINTERN PyObject *_wrap_Notebook_SetTabSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20844 PyObject *resultobj = 0;
20845 wxNotebook *arg1 = (wxNotebook *) 0 ;
20846 wxSize *arg2 = 0 ;
20847 void *argp1 = 0 ;
20848 int res1 = 0 ;
20849 wxSize temp2 ;
20850 PyObject * obj0 = 0 ;
20851 PyObject * obj1 = 0 ;
20852 char * kwnames[] = {
20853 (char *) "self",(char *) "sz", NULL
20854 };
20855
20856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) SWIG_fail;
20857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20858 if (!SWIG_IsOK(res1)) {
20859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetTabSize" "', expected argument " "1"" of type '" "wxNotebook *""'");
20860 }
20861 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20862 {
20863 arg2 = &temp2;
20864 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20865 }
20866 {
20867 PyThreadState* __tstate = wxPyBeginAllowThreads();
20868 (arg1)->SetTabSize((wxSize const &)*arg2);
20869 wxPyEndAllowThreads(__tstate);
20870 if (PyErr_Occurred()) SWIG_fail;
20871 }
20872 resultobj = SWIG_Py_Void();
20873 return resultobj;
20874fail:
20875 return NULL;
20876}
20877
20878
1bd55598
RD
20879SWIGINTERN PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20880 PyObject *resultobj = 0;
20881 wxNotebook *arg1 = (wxNotebook *) 0 ;
20882 wxColour result;
20883 void *argp1 = 0 ;
20884 int res1 = 0 ;
20885 PyObject *swig_obj[1] ;
20886
20887 if (!args) SWIG_fail;
20888 swig_obj[0] = args;
20889 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20890 if (!SWIG_IsOK(res1)) {
20891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetThemeBackgroundColour" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20892 }
20893 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20894 {
20895 PyThreadState* __tstate = wxPyBeginAllowThreads();
20896 result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour();
20897 wxPyEndAllowThreads(__tstate);
20898 if (PyErr_Occurred()) SWIG_fail;
20899 }
20900 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
20901 return resultobj;
20902fail:
20903 return NULL;
20904}
20905
20906
20907SWIGINTERN PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20908 PyObject *resultobj = 0;
20909 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20910 SwigValueWrapper<wxVisualAttributes > result;
20911 int val1 ;
20912 int ecode1 = 0 ;
20913 PyObject * obj0 = 0 ;
20914 char * kwnames[] = {
20915 (char *) "variant", NULL
20916 };
20917
20918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20919 if (obj0) {
20920 ecode1 = SWIG_AsVal_int(obj0, &val1);
20921 if (!SWIG_IsOK(ecode1)) {
20922 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Notebook_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20923 }
20924 arg1 = static_cast< wxWindowVariant >(val1);
20925 }
20926 {
20927 if (!wxPyCheckForApp()) SWIG_fail;
20928 PyThreadState* __tstate = wxPyBeginAllowThreads();
20929 result = wxNotebook::GetClassDefaultAttributes(arg1);
20930 wxPyEndAllowThreads(__tstate);
20931 if (PyErr_Occurred()) SWIG_fail;
20932 }
20933 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20934 return resultobj;
20935fail:
20936 return NULL;
20937}
20938
20939
b39fe951
RD
20940SWIGINTERN PyObject *_wrap_Notebook_SendPageChangingEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20941 PyObject *resultobj = 0;
20942 wxNotebook *arg1 = (wxNotebook *) 0 ;
20943 int arg2 ;
20944 bool result;
20945 void *argp1 = 0 ;
20946 int res1 = 0 ;
20947 int val2 ;
20948 int ecode2 = 0 ;
20949 PyObject * obj0 = 0 ;
20950 PyObject * obj1 = 0 ;
20951 char * kwnames[] = {
20952 (char *) "self",(char *) "nPage", NULL
20953 };
20954
20955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SendPageChangingEvent",kwnames,&obj0,&obj1)) SWIG_fail;
20956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20957 if (!SWIG_IsOK(res1)) {
20958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SendPageChangingEvent" "', expected argument " "1"" of type '" "wxNotebook *""'");
20959 }
20960 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20961 ecode2 = SWIG_AsVal_int(obj1, &val2);
20962 if (!SWIG_IsOK(ecode2)) {
20963 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Notebook_SendPageChangingEvent" "', expected argument " "2"" of type '" "int""'");
20964 }
20965 arg2 = static_cast< int >(val2);
20966 {
20967 PyThreadState* __tstate = wxPyBeginAllowThreads();
20968 result = (bool)(arg1)->SendPageChangingEvent(arg2);
20969 wxPyEndAllowThreads(__tstate);
20970 if (PyErr_Occurred()) SWIG_fail;
20971 }
20972 {
20973 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20974 }
20975 return resultobj;
20976fail:
20977 return NULL;
20978}
20979
20980
20981SWIGINTERN PyObject *_wrap_Notebook_SendPageChangedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20982 PyObject *resultobj = 0;
20983 wxNotebook *arg1 = (wxNotebook *) 0 ;
20984 int arg2 ;
20985 int arg3 = (int) -1 ;
20986 void *argp1 = 0 ;
20987 int res1 = 0 ;
20988 int val2 ;
20989 int ecode2 = 0 ;
20990 int val3 ;
20991 int ecode3 = 0 ;
20992 PyObject * obj0 = 0 ;
20993 PyObject * obj1 = 0 ;
20994 PyObject * obj2 = 0 ;
20995 char * kwnames[] = {
20996 (char *) "self",(char *) "nPageOld",(char *) "nPageNew", NULL
20997 };
20998
20999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Notebook_SendPageChangedEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
21001 if (!SWIG_IsOK(res1)) {
21002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "1"" of type '" "wxNotebook *""'");
21003 }
21004 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21005 ecode2 = SWIG_AsVal_int(obj1, &val2);
21006 if (!SWIG_IsOK(ecode2)) {
21007 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "2"" of type '" "int""'");
21008 }
21009 arg2 = static_cast< int >(val2);
21010 if (obj2) {
21011 ecode3 = SWIG_AsVal_int(obj2, &val3);
21012 if (!SWIG_IsOK(ecode3)) {
21013 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "3"" of type '" "int""'");
21014 }
21015 arg3 = static_cast< int >(val3);
21016 }
21017 {
21018 PyThreadState* __tstate = wxPyBeginAllowThreads();
21019 (arg1)->SendPageChangedEvent(arg2,arg3);
21020 wxPyEndAllowThreads(__tstate);
21021 if (PyErr_Occurred()) SWIG_fail;
21022 }
21023 resultobj = SWIG_Py_Void();
21024 return resultobj;
21025fail:
21026 return NULL;
21027}
21028
21029
1bd55598
RD
21030SWIGINTERN PyObject *Notebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21031 PyObject *obj;
21032 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21033 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebook, SWIG_NewClientData(obj));
21034 return SWIG_Py_Void();
21035}
21036
21037SWIGINTERN PyObject *Notebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21038 return SWIG_Python_InitShadowInstance(args);
21039}
21040
21041SWIGINTERN PyObject *_wrap_new_NotebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21042 PyObject *resultobj = 0;
21043 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21044 int arg2 = (int) 0 ;
21045 int arg3 = (int) -1 ;
21046 int arg4 = (int) -1 ;
21047 wxNotebookEvent *result = 0 ;
21048 int val1 ;
21049 int ecode1 = 0 ;
21050 int val2 ;
21051 int ecode2 = 0 ;
21052 int val3 ;
21053 int ecode3 = 0 ;
21054 int val4 ;
21055 int ecode4 = 0 ;
21056 PyObject * obj0 = 0 ;
21057 PyObject * obj1 = 0 ;
21058 PyObject * obj2 = 0 ;
21059 PyObject * obj3 = 0 ;
21060 char * kwnames[] = {
21061 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21062 };
21063
21064 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21065 if (obj0) {
21066 ecode1 = SWIG_AsVal_int(obj0, &val1);
21067 if (!SWIG_IsOK(ecode1)) {
21068 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NotebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21069 }
21070 arg1 = static_cast< wxEventType >(val1);
21071 }
21072 if (obj1) {
21073 ecode2 = SWIG_AsVal_int(obj1, &val2);
21074 if (!SWIG_IsOK(ecode2)) {
21075 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NotebookEvent" "', expected argument " "2"" of type '" "int""'");
21076 }
21077 arg2 = static_cast< int >(val2);
21078 }
21079 if (obj2) {
21080 ecode3 = SWIG_AsVal_int(obj2, &val3);
21081 if (!SWIG_IsOK(ecode3)) {
21082 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NotebookEvent" "', expected argument " "3"" of type '" "int""'");
21083 }
21084 arg3 = static_cast< int >(val3);
21085 }
21086 if (obj3) {
21087 ecode4 = SWIG_AsVal_int(obj3, &val4);
21088 if (!SWIG_IsOK(ecode4)) {
21089 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NotebookEvent" "', expected argument " "4"" of type '" "int""'");
21090 }
21091 arg4 = static_cast< int >(val4);
21092 }
21093 {
21094 PyThreadState* __tstate = wxPyBeginAllowThreads();
21095 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
21096 wxPyEndAllowThreads(__tstate);
21097 if (PyErr_Occurred()) SWIG_fail;
21098 }
21099 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebookEvent, SWIG_POINTER_NEW | 0 );
21100 return resultobj;
21101fail:
21102 return NULL;
21103}
21104
21105
21106SWIGINTERN PyObject *NotebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21107 PyObject *obj;
21108 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21109 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebookEvent, SWIG_NewClientData(obj));
21110 return SWIG_Py_Void();
21111}
21112
21113SWIGINTERN PyObject *NotebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21114 return SWIG_Python_InitShadowInstance(args);
21115}
21116
21117SWIGINTERN PyObject *_wrap_new_Listbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21118 PyObject *resultobj = 0;
21119 wxWindow *arg1 = (wxWindow *) 0 ;
21120 int arg2 = (int) -1 ;
21121 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21122 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21123 wxSize const &arg4_defvalue = wxDefaultSize ;
21124 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21125 long arg5 = (long) 0 ;
21126 wxString const &arg6_defvalue = wxPyEmptyString ;
21127 wxString *arg6 = (wxString *) &arg6_defvalue ;
21128 wxListbook *result = 0 ;
21129 void *argp1 = 0 ;
21130 int res1 = 0 ;
21131 int val2 ;
21132 int ecode2 = 0 ;
21133 wxPoint temp3 ;
21134 wxSize temp4 ;
21135 long val5 ;
21136 int ecode5 = 0 ;
21137 bool temp6 = false ;
21138 PyObject * obj0 = 0 ;
21139 PyObject * obj1 = 0 ;
21140 PyObject * obj2 = 0 ;
21141 PyObject * obj3 = 0 ;
21142 PyObject * obj4 = 0 ;
21143 PyObject * obj5 = 0 ;
21144 char * kwnames[] = {
21145 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21146 };
21147
21148 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21149 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21150 if (!SWIG_IsOK(res1)) {
21151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Listbook" "', expected argument " "1"" of type '" "wxWindow *""'");
21152 }
21153 arg1 = reinterpret_cast< wxWindow * >(argp1);
21154 if (obj1) {
21155 ecode2 = SWIG_AsVal_int(obj1, &val2);
21156 if (!SWIG_IsOK(ecode2)) {
21157 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Listbook" "', expected argument " "2"" of type '" "int""'");
21158 }
21159 arg2 = static_cast< int >(val2);
21160 }
21161 if (obj2) {
d55e5bfc 21162 {
1bd55598
RD
21163 arg3 = &temp3;
21164 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 21165 }
1bd55598
RD
21166 }
21167 if (obj3) {
d55e5bfc 21168 {
1bd55598
RD
21169 arg4 = &temp4;
21170 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 21171 }
1bd55598
RD
21172 }
21173 if (obj4) {
21174 ecode5 = SWIG_AsVal_long(obj4, &val5);
21175 if (!SWIG_IsOK(ecode5)) {
21176 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Listbook" "', expected argument " "5"" of type '" "long""'");
21177 }
21178 arg5 = static_cast< long >(val5);
21179 }
21180 if (obj5) {
d55e5bfc 21181 {
1bd55598
RD
21182 arg6 = wxString_in_helper(obj5);
21183 if (arg6 == NULL) SWIG_fail;
21184 temp6 = true;
d55e5bfc 21185 }
1bd55598
RD
21186 }
21187 {
21188 if (!wxPyCheckForApp()) SWIG_fail;
21189 PyThreadState* __tstate = wxPyBeginAllowThreads();
21190 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21191 wxPyEndAllowThreads(__tstate);
21192 if (PyErr_Occurred()) SWIG_fail;
21193 }
21194 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_NEW | 0 );
21195 {
21196 if (temp6)
21197 delete arg6;
21198 }
21199 return resultobj;
21200fail:
21201 {
21202 if (temp6)
21203 delete arg6;
21204 }
21205 return NULL;
21206}
21207
21208
21209SWIGINTERN PyObject *_wrap_new_PreListbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21210 PyObject *resultobj = 0;
21211 wxListbook *result = 0 ;
21212
21213 if (!SWIG_Python_UnpackTuple(args,"new_PreListbook",0,0,0)) SWIG_fail;
21214 {
21215 if (!wxPyCheckForApp()) SWIG_fail;
21216 PyThreadState* __tstate = wxPyBeginAllowThreads();
21217 result = (wxListbook *)new wxListbook();
21218 wxPyEndAllowThreads(__tstate);
21219 if (PyErr_Occurred()) SWIG_fail;
21220 }
21221 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_OWN | 0 );
21222 return resultobj;
21223fail:
21224 return NULL;
21225}
21226
21227
21228SWIGINTERN PyObject *_wrap_Listbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21229 PyObject *resultobj = 0;
21230 wxListbook *arg1 = (wxListbook *) 0 ;
21231 wxWindow *arg2 = (wxWindow *) 0 ;
21232 int arg3 = (int) -1 ;
21233 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21234 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21235 wxSize const &arg5_defvalue = wxDefaultSize ;
21236 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21237 long arg6 = (long) 0 ;
21238 wxString const &arg7_defvalue = wxPyEmptyString ;
21239 wxString *arg7 = (wxString *) &arg7_defvalue ;
21240 bool result;
21241 void *argp1 = 0 ;
21242 int res1 = 0 ;
21243 void *argp2 = 0 ;
21244 int res2 = 0 ;
21245 int val3 ;
21246 int ecode3 = 0 ;
21247 wxPoint temp4 ;
21248 wxSize temp5 ;
21249 long val6 ;
21250 int ecode6 = 0 ;
21251 bool temp7 = false ;
21252 PyObject * obj0 = 0 ;
21253 PyObject * obj1 = 0 ;
21254 PyObject * obj2 = 0 ;
21255 PyObject * obj3 = 0 ;
21256 PyObject * obj4 = 0 ;
21257 PyObject * obj5 = 0 ;
21258 PyObject * obj6 = 0 ;
21259 char * kwnames[] = {
21260 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21261 };
21262
21263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21265 if (!SWIG_IsOK(res1)) {
21266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_Create" "', expected argument " "1"" of type '" "wxListbook *""'");
21267 }
21268 arg1 = reinterpret_cast< wxListbook * >(argp1);
21269 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21270 if (!SWIG_IsOK(res2)) {
21271 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Listbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21272 }
21273 arg2 = reinterpret_cast< wxWindow * >(argp2);
21274 if (obj2) {
21275 ecode3 = SWIG_AsVal_int(obj2, &val3);
21276 if (!SWIG_IsOK(ecode3)) {
21277 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Listbook_Create" "', expected argument " "3"" of type '" "int""'");
21278 }
21279 arg3 = static_cast< int >(val3);
21280 }
21281 if (obj3) {
d55e5bfc 21282 {
1bd55598
RD
21283 arg4 = &temp4;
21284 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 21285 }
1bd55598
RD
21286 }
21287 if (obj4) {
d55e5bfc 21288 {
1bd55598
RD
21289 arg5 = &temp5;
21290 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 21291 }
1bd55598
RD
21292 }
21293 if (obj5) {
21294 ecode6 = SWIG_AsVal_long(obj5, &val6);
21295 if (!SWIG_IsOK(ecode6)) {
21296 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Listbook_Create" "', expected argument " "6"" of type '" "long""'");
21297 }
21298 arg6 = static_cast< long >(val6);
21299 }
21300 if (obj6) {
d55e5bfc 21301 {
1bd55598
RD
21302 arg7 = wxString_in_helper(obj6);
21303 if (arg7 == NULL) SWIG_fail;
21304 temp7 = true;
d55e5bfc 21305 }
1bd55598
RD
21306 }
21307 {
21308 PyThreadState* __tstate = wxPyBeginAllowThreads();
21309 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21310 wxPyEndAllowThreads(__tstate);
21311 if (PyErr_Occurred()) SWIG_fail;
21312 }
21313 {
21314 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21315 }
21316 {
21317 if (temp7)
21318 delete arg7;
21319 }
21320 return resultobj;
21321fail:
21322 {
21323 if (temp7)
21324 delete arg7;
21325 }
21326 return NULL;
d55e5bfc
RD
21327}
21328
21329
1bd55598
RD
21330SWIGINTERN PyObject *_wrap_Listbook_GetListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21331 PyObject *resultobj = 0;
21332 wxListbook *arg1 = (wxListbook *) 0 ;
21333 wxListView *result = 0 ;
21334 void *argp1 = 0 ;
21335 int res1 = 0 ;
21336 PyObject *swig_obj[1] ;
21337
21338 if (!args) SWIG_fail;
21339 swig_obj[0] = args;
21340 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21341 if (!SWIG_IsOK(res1)) {
21342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_GetListView" "', expected argument " "1"" of type '" "wxListbook *""'");
21343 }
21344 arg1 = reinterpret_cast< wxListbook * >(argp1);
21345 {
21346 PyThreadState* __tstate = wxPyBeginAllowThreads();
21347 result = (wxListView *)(arg1)->GetListView();
21348 wxPyEndAllowThreads(__tstate);
21349 if (PyErr_Occurred()) SWIG_fail;
21350 }
21351 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, 0 | 0 );
21352 return resultobj;
21353fail:
21354 return NULL;
21355}
21356
21357
21358SWIGINTERN PyObject *Listbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21359 PyObject *obj;
21360 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21361 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbook, SWIG_NewClientData(obj));
21362 return SWIG_Py_Void();
21363}
21364
21365SWIGINTERN PyObject *Listbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21366 return SWIG_Python_InitShadowInstance(args);
21367}
21368
21369SWIGINTERN PyObject *_wrap_new_ListbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21370 PyObject *resultobj = 0;
21371 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21372 int arg2 = (int) 0 ;
21373 int arg3 = (int) -1 ;
21374 int arg4 = (int) -1 ;
21375 wxListbookEvent *result = 0 ;
21376 int val1 ;
21377 int ecode1 = 0 ;
21378 int val2 ;
21379 int ecode2 = 0 ;
21380 int val3 ;
21381 int ecode3 = 0 ;
21382 int val4 ;
21383 int ecode4 = 0 ;
21384 PyObject * obj0 = 0 ;
21385 PyObject * obj1 = 0 ;
21386 PyObject * obj2 = 0 ;
21387 PyObject * obj3 = 0 ;
21388 char * kwnames[] = {
21389 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21390 };
21391
21392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21393 if (obj0) {
21394 ecode1 = SWIG_AsVal_int(obj0, &val1);
21395 if (!SWIG_IsOK(ecode1)) {
21396 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21397 }
21398 arg1 = static_cast< wxEventType >(val1);
21399 }
21400 if (obj1) {
21401 ecode2 = SWIG_AsVal_int(obj1, &val2);
21402 if (!SWIG_IsOK(ecode2)) {
21403 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListbookEvent" "', expected argument " "2"" of type '" "int""'");
21404 }
21405 arg2 = static_cast< int >(val2);
21406 }
21407 if (obj2) {
21408 ecode3 = SWIG_AsVal_int(obj2, &val3);
21409 if (!SWIG_IsOK(ecode3)) {
21410 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ListbookEvent" "', expected argument " "3"" of type '" "int""'");
21411 }
21412 arg3 = static_cast< int >(val3);
21413 }
21414 if (obj3) {
21415 ecode4 = SWIG_AsVal_int(obj3, &val4);
21416 if (!SWIG_IsOK(ecode4)) {
21417 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ListbookEvent" "', expected argument " "4"" of type '" "int""'");
21418 }
21419 arg4 = static_cast< int >(val4);
21420 }
21421 {
21422 PyThreadState* __tstate = wxPyBeginAllowThreads();
21423 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
21424 wxPyEndAllowThreads(__tstate);
21425 if (PyErr_Occurred()) SWIG_fail;
21426 }
21427 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbookEvent, SWIG_POINTER_NEW | 0 );
21428 return resultobj;
21429fail:
21430 return NULL;
21431}
21432
21433
21434SWIGINTERN PyObject *ListbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21435 PyObject *obj;
21436 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21437 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbookEvent, SWIG_NewClientData(obj));
21438 return SWIG_Py_Void();
21439}
21440
21441SWIGINTERN PyObject *ListbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21442 return SWIG_Python_InitShadowInstance(args);
21443}
21444
21445SWIGINTERN PyObject *_wrap_new_Choicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21446 PyObject *resultobj = 0;
21447 wxWindow *arg1 = (wxWindow *) 0 ;
21448 int arg2 ;
21449 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21450 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21451 wxSize const &arg4_defvalue = wxDefaultSize ;
21452 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21453 long arg5 = (long) 0 ;
21454 wxString const &arg6_defvalue = wxPyEmptyString ;
21455 wxString *arg6 = (wxString *) &arg6_defvalue ;
21456 wxChoicebook *result = 0 ;
21457 void *argp1 = 0 ;
21458 int res1 = 0 ;
21459 int val2 ;
21460 int ecode2 = 0 ;
21461 wxPoint temp3 ;
21462 wxSize temp4 ;
21463 long val5 ;
21464 int ecode5 = 0 ;
21465 bool temp6 = false ;
21466 PyObject * obj0 = 0 ;
21467 PyObject * obj1 = 0 ;
21468 PyObject * obj2 = 0 ;
21469 PyObject * obj3 = 0 ;
21470 PyObject * obj4 = 0 ;
21471 PyObject * obj5 = 0 ;
21472 char * kwnames[] = {
21473 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21474 };
21475
21476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21477 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21478 if (!SWIG_IsOK(res1)) {
21479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choicebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21480 }
21481 arg1 = reinterpret_cast< wxWindow * >(argp1);
21482 ecode2 = SWIG_AsVal_int(obj1, &val2);
21483 if (!SWIG_IsOK(ecode2)) {
21484 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choicebook" "', expected argument " "2"" of type '" "int""'");
21485 }
21486 arg2 = static_cast< int >(val2);
21487 if (obj2) {
36ed4f51 21488 {
1bd55598
RD
21489 arg3 = &temp3;
21490 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36ed4f51 21491 }
1bd55598
RD
21492 }
21493 if (obj3) {
36ed4f51 21494 {
1bd55598
RD
21495 arg4 = &temp4;
21496 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
36ed4f51 21497 }
1bd55598
RD
21498 }
21499 if (obj4) {
21500 ecode5 = SWIG_AsVal_long(obj4, &val5);
21501 if (!SWIG_IsOK(ecode5)) {
21502 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Choicebook" "', expected argument " "5"" of type '" "long""'");
21503 }
21504 arg5 = static_cast< long >(val5);
21505 }
21506 if (obj5) {
d55e5bfc 21507 {
1bd55598
RD
21508 arg6 = wxString_in_helper(obj5);
21509 if (arg6 == NULL) SWIG_fail;
21510 temp6 = true;
d55e5bfc 21511 }
1bd55598
RD
21512 }
21513 {
21514 if (!wxPyCheckForApp()) SWIG_fail;
21515 PyThreadState* __tstate = wxPyBeginAllowThreads();
21516 result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21517 wxPyEndAllowThreads(__tstate);
21518 if (PyErr_Occurred()) SWIG_fail;
21519 }
21520 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_NEW | 0 );
21521 {
21522 if (temp6)
21523 delete arg6;
21524 }
21525 return resultobj;
21526fail:
21527 {
21528 if (temp6)
21529 delete arg6;
21530 }
21531 return NULL;
d55e5bfc
RD
21532}
21533
21534
1bd55598
RD
21535SWIGINTERN PyObject *_wrap_new_PreChoicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21536 PyObject *resultobj = 0;
21537 wxChoicebook *result = 0 ;
21538
21539 if (!SWIG_Python_UnpackTuple(args,"new_PreChoicebook",0,0,0)) SWIG_fail;
21540 {
21541 if (!wxPyCheckForApp()) SWIG_fail;
21542 PyThreadState* __tstate = wxPyBeginAllowThreads();
21543 result = (wxChoicebook *)new wxChoicebook();
21544 wxPyEndAllowThreads(__tstate);
21545 if (PyErr_Occurred()) SWIG_fail;
21546 }
21547 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_OWN | 0 );
21548 return resultobj;
21549fail:
21550 return NULL;
21551}
21552
21553
21554SWIGINTERN PyObject *_wrap_Choicebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21555 PyObject *resultobj = 0;
21556 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21557 wxWindow *arg2 = (wxWindow *) 0 ;
21558 int arg3 ;
21559 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21560 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21561 wxSize const &arg5_defvalue = wxDefaultSize ;
21562 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21563 long arg6 = (long) 0 ;
21564 wxString const &arg7_defvalue = wxPyEmptyString ;
21565 wxString *arg7 = (wxString *) &arg7_defvalue ;
21566 bool result;
21567 void *argp1 = 0 ;
21568 int res1 = 0 ;
21569 void *argp2 = 0 ;
21570 int res2 = 0 ;
21571 int val3 ;
21572 int ecode3 = 0 ;
21573 wxPoint temp4 ;
21574 wxSize temp5 ;
21575 long val6 ;
21576 int ecode6 = 0 ;
21577 bool temp7 = false ;
21578 PyObject * obj0 = 0 ;
21579 PyObject * obj1 = 0 ;
21580 PyObject * obj2 = 0 ;
21581 PyObject * obj3 = 0 ;
21582 PyObject * obj4 = 0 ;
21583 PyObject * obj5 = 0 ;
21584 PyObject * obj6 = 0 ;
21585 char * kwnames[] = {
21586 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21587 };
21588
21589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21591 if (!SWIG_IsOK(res1)) {
21592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_Create" "', expected argument " "1"" of type '" "wxChoicebook *""'");
21593 }
21594 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21595 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21596 if (!SWIG_IsOK(res2)) {
21597 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choicebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21598 }
21599 arg2 = reinterpret_cast< wxWindow * >(argp2);
21600 ecode3 = SWIG_AsVal_int(obj2, &val3);
21601 if (!SWIG_IsOK(ecode3)) {
21602 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choicebook_Create" "', expected argument " "3"" of type '" "int""'");
21603 }
21604 arg3 = static_cast< int >(val3);
21605 if (obj3) {
d55e5bfc 21606 {
1bd55598
RD
21607 arg4 = &temp4;
21608 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 21609 }
1bd55598
RD
21610 }
21611 if (obj4) {
d55e5bfc 21612 {
1bd55598
RD
21613 arg5 = &temp5;
21614 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 21615 }
1bd55598
RD
21616 }
21617 if (obj5) {
21618 ecode6 = SWIG_AsVal_long(obj5, &val6);
21619 if (!SWIG_IsOK(ecode6)) {
21620 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Choicebook_Create" "', expected argument " "6"" of type '" "long""'");
21621 }
21622 arg6 = static_cast< long >(val6);
21623 }
21624 if (obj6) {
d55e5bfc 21625 {
1bd55598
RD
21626 arg7 = wxString_in_helper(obj6);
21627 if (arg7 == NULL) SWIG_fail;
21628 temp7 = true;
d55e5bfc 21629 }
1bd55598
RD
21630 }
21631 {
21632 PyThreadState* __tstate = wxPyBeginAllowThreads();
21633 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21634 wxPyEndAllowThreads(__tstate);
21635 if (PyErr_Occurred()) SWIG_fail;
21636 }
21637 {
21638 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21639 }
21640 {
21641 if (temp7)
21642 delete arg7;
21643 }
21644 return resultobj;
21645fail:
21646 {
21647 if (temp7)
21648 delete arg7;
21649 }
21650 return NULL;
d55e5bfc
RD
21651}
21652
21653
1bd55598
RD
21654SWIGINTERN PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21655 PyObject *resultobj = 0;
21656 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21657 wxChoice *result = 0 ;
21658 void *argp1 = 0 ;
21659 int res1 = 0 ;
21660 PyObject *swig_obj[1] ;
21661
21662 if (!args) SWIG_fail;
21663 swig_obj[0] = args;
21664 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21665 if (!SWIG_IsOK(res1)) {
21666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_GetChoiceCtrl" "', expected argument " "1"" of type '" "wxChoicebook const *""'");
21667 }
21668 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21669 {
21670 PyThreadState* __tstate = wxPyBeginAllowThreads();
21671 result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl();
21672 wxPyEndAllowThreads(__tstate);
21673 if (PyErr_Occurred()) SWIG_fail;
21674 }
21675 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, 0 | 0 );
21676 return resultobj;
21677fail:
21678 return NULL;
21679}
21680
21681
21682SWIGINTERN PyObject *Choicebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21683 PyObject *obj;
21684 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21685 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebook, SWIG_NewClientData(obj));
21686 return SWIG_Py_Void();
21687}
21688
21689SWIGINTERN PyObject *Choicebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21690 return SWIG_Python_InitShadowInstance(args);
21691}
21692
21693SWIGINTERN PyObject *_wrap_new_ChoicebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21694 PyObject *resultobj = 0;
21695 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21696 int arg2 = (int) 0 ;
21697 int arg3 = (int) -1 ;
21698 int arg4 = (int) -1 ;
21699 wxChoicebookEvent *result = 0 ;
21700 int val1 ;
21701 int ecode1 = 0 ;
21702 int val2 ;
21703 int ecode2 = 0 ;
21704 int val3 ;
21705 int ecode3 = 0 ;
21706 int val4 ;
21707 int ecode4 = 0 ;
21708 PyObject * obj0 = 0 ;
21709 PyObject * obj1 = 0 ;
21710 PyObject * obj2 = 0 ;
21711 PyObject * obj3 = 0 ;
21712 char * kwnames[] = {
21713 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21714 };
21715
21716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21717 if (obj0) {
21718 ecode1 = SWIG_AsVal_int(obj0, &val1);
21719 if (!SWIG_IsOK(ecode1)) {
21720 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ChoicebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21721 }
21722 arg1 = static_cast< wxEventType >(val1);
21723 }
21724 if (obj1) {
21725 ecode2 = SWIG_AsVal_int(obj1, &val2);
21726 if (!SWIG_IsOK(ecode2)) {
21727 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ChoicebookEvent" "', expected argument " "2"" of type '" "int""'");
21728 }
21729 arg2 = static_cast< int >(val2);
21730 }
21731 if (obj2) {
21732 ecode3 = SWIG_AsVal_int(obj2, &val3);
21733 if (!SWIG_IsOK(ecode3)) {
21734 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ChoicebookEvent" "', expected argument " "3"" of type '" "int""'");
21735 }
21736 arg3 = static_cast< int >(val3);
21737 }
21738 if (obj3) {
21739 ecode4 = SWIG_AsVal_int(obj3, &val4);
21740 if (!SWIG_IsOK(ecode4)) {
21741 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ChoicebookEvent" "', expected argument " "4"" of type '" "int""'");
21742 }
21743 arg4 = static_cast< int >(val4);
21744 }
21745 {
21746 PyThreadState* __tstate = wxPyBeginAllowThreads();
21747 result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4);
21748 wxPyEndAllowThreads(__tstate);
21749 if (PyErr_Occurred()) SWIG_fail;
21750 }
21751 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebookEvent, SWIG_POINTER_NEW | 0 );
21752 return resultobj;
21753fail:
21754 return NULL;
21755}
21756
21757
21758SWIGINTERN PyObject *ChoicebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21759 PyObject *obj;
21760 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21761 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebookEvent, SWIG_NewClientData(obj));
21762 return SWIG_Py_Void();
21763}
21764
21765SWIGINTERN PyObject *ChoicebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21766 return SWIG_Python_InitShadowInstance(args);
21767}
21768
21769SWIGINTERN PyObject *_wrap_new_Treebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21770 PyObject *resultobj = 0;
21771 wxWindow *arg1 = (wxWindow *) 0 ;
21772 int arg2 ;
21773 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21774 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21775 wxSize const &arg4_defvalue = wxDefaultSize ;
21776 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21777 long arg5 = (long) wxBK_DEFAULT ;
21778 wxString const &arg6_defvalue = wxPyEmptyString ;
21779 wxString *arg6 = (wxString *) &arg6_defvalue ;
21780 wxTreebook *result = 0 ;
21781 void *argp1 = 0 ;
21782 int res1 = 0 ;
21783 int val2 ;
21784 int ecode2 = 0 ;
21785 wxPoint temp3 ;
21786 wxSize temp4 ;
21787 long val5 ;
21788 int ecode5 = 0 ;
21789 bool temp6 = false ;
21790 PyObject * obj0 = 0 ;
21791 PyObject * obj1 = 0 ;
21792 PyObject * obj2 = 0 ;
21793 PyObject * obj3 = 0 ;
21794 PyObject * obj4 = 0 ;
21795 PyObject * obj5 = 0 ;
21796 char * kwnames[] = {
21797 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21798 };
21799
21800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Treebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21802 if (!SWIG_IsOK(res1)) {
21803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Treebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21804 }
21805 arg1 = reinterpret_cast< wxWindow * >(argp1);
21806 ecode2 = SWIG_AsVal_int(obj1, &val2);
21807 if (!SWIG_IsOK(ecode2)) {
21808 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Treebook" "', expected argument " "2"" of type '" "int""'");
21809 }
21810 arg2 = static_cast< int >(val2);
21811 if (obj2) {
36ed4f51 21812 {
1bd55598
RD
21813 arg3 = &temp3;
21814 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36ed4f51 21815 }
1bd55598
RD
21816 }
21817 if (obj3) {
36ed4f51 21818 {
1bd55598
RD
21819 arg4 = &temp4;
21820 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
36ed4f51 21821 }
1bd55598
RD
21822 }
21823 if (obj4) {
21824 ecode5 = SWIG_AsVal_long(obj4, &val5);
21825 if (!SWIG_IsOK(ecode5)) {
21826 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Treebook" "', expected argument " "5"" of type '" "long""'");
21827 }
21828 arg5 = static_cast< long >(val5);
21829 }
21830 if (obj5) {
d55e5bfc 21831 {
1bd55598
RD
21832 arg6 = wxString_in_helper(obj5);
21833 if (arg6 == NULL) SWIG_fail;
21834 temp6 = true;
d55e5bfc 21835 }
1bd55598
RD
21836 }
21837 {
21838 if (!wxPyCheckForApp()) SWIG_fail;
21839 PyThreadState* __tstate = wxPyBeginAllowThreads();
21840 result = (wxTreebook *)new wxTreebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21841 wxPyEndAllowThreads(__tstate);
21842 if (PyErr_Occurred()) SWIG_fail;
21843 }
21844 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_NEW | 0 );
21845 {
21846 if (temp6)
21847 delete arg6;
21848 }
21849 return resultobj;
21850fail:
21851 {
21852 if (temp6)
21853 delete arg6;
21854 }
21855 return NULL;
d55e5bfc
RD
21856}
21857
21858
1bd55598
RD
21859SWIGINTERN PyObject *_wrap_new_PreTreebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21860 PyObject *resultobj = 0;
21861 wxTreebook *result = 0 ;
21862
21863 if (!SWIG_Python_UnpackTuple(args,"new_PreTreebook",0,0,0)) SWIG_fail;
21864 {
21865 if (!wxPyCheckForApp()) SWIG_fail;
21866 PyThreadState* __tstate = wxPyBeginAllowThreads();
21867 result = (wxTreebook *)new wxTreebook();
21868 wxPyEndAllowThreads(__tstate);
21869 if (PyErr_Occurred()) SWIG_fail;
21870 }
21871 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_OWN | 0 );
21872 return resultobj;
21873fail:
21874 return NULL;
21875}
21876
21877
21878SWIGINTERN PyObject *_wrap_Treebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21879 PyObject *resultobj = 0;
21880 wxTreebook *arg1 = (wxTreebook *) 0 ;
21881 wxWindow *arg2 = (wxWindow *) 0 ;
21882 int arg3 ;
21883 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21884 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21885 wxSize const &arg5_defvalue = wxDefaultSize ;
21886 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21887 long arg6 = (long) wxBK_DEFAULT ;
21888 wxString const &arg7_defvalue = wxPyEmptyString ;
21889 wxString *arg7 = (wxString *) &arg7_defvalue ;
21890 bool result;
21891 void *argp1 = 0 ;
21892 int res1 = 0 ;
21893 void *argp2 = 0 ;
21894 int res2 = 0 ;
21895 int val3 ;
21896 int ecode3 = 0 ;
21897 wxPoint temp4 ;
21898 wxSize temp5 ;
21899 long val6 ;
21900 int ecode6 = 0 ;
21901 bool temp7 = false ;
21902 PyObject * obj0 = 0 ;
21903 PyObject * obj1 = 0 ;
21904 PyObject * obj2 = 0 ;
21905 PyObject * obj3 = 0 ;
21906 PyObject * obj4 = 0 ;
21907 PyObject * obj5 = 0 ;
21908 PyObject * obj6 = 0 ;
21909 char * kwnames[] = {
21910 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21911 };
21912
21913 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Treebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) 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_Create" "', expected argument " "1"" of type '" "wxTreebook *""'");
21917 }
21918 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21919 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21920 if (!SWIG_IsOK(res2)) {
21921 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21922 }
21923 arg2 = reinterpret_cast< wxWindow * >(argp2);
21924 ecode3 = SWIG_AsVal_int(obj2, &val3);
21925 if (!SWIG_IsOK(ecode3)) {
21926 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_Create" "', expected argument " "3"" of type '" "int""'");
21927 }
21928 arg3 = static_cast< int >(val3);
21929 if (obj3) {
36ed4f51 21930 {
1bd55598
RD
21931 arg4 = &temp4;
21932 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36ed4f51 21933 }
1bd55598
RD
21934 }
21935 if (obj4) {
d55e5bfc 21936 {
1bd55598
RD
21937 arg5 = &temp5;
21938 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 21939 }
1bd55598
RD
21940 }
21941 if (obj5) {
21942 ecode6 = SWIG_AsVal_long(obj5, &val6);
21943 if (!SWIG_IsOK(ecode6)) {
21944 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_Create" "', expected argument " "6"" of type '" "long""'");
21945 }
21946 arg6 = static_cast< long >(val6);
21947 }
21948 if (obj6) {
36ed4f51 21949 {
1bd55598
RD
21950 arg7 = wxString_in_helper(obj6);
21951 if (arg7 == NULL) SWIG_fail;
21952 temp7 = true;
36ed4f51 21953 }
1bd55598
RD
21954 }
21955 {
21956 PyThreadState* __tstate = wxPyBeginAllowThreads();
21957 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21958 wxPyEndAllowThreads(__tstate);
21959 if (PyErr_Occurred()) SWIG_fail;
21960 }
21961 {
21962 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21963 }
21964 {
21965 if (temp7)
21966 delete arg7;
21967 }
21968 return resultobj;
21969fail:
21970 {
21971 if (temp7)
21972 delete arg7;
21973 }
21974 return NULL;
21975}
21976
21977
21978SWIGINTERN PyObject *_wrap_Treebook_InsertSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21979 PyObject *resultobj = 0;
21980 wxTreebook *arg1 = (wxTreebook *) 0 ;
21981 size_t arg2 ;
21982 wxWindow *arg3 = (wxWindow *) 0 ;
21983 wxString *arg4 = 0 ;
21984 bool arg5 = (bool) false ;
21985 int arg6 = (int) wxNOT_FOUND ;
21986 bool result;
21987 void *argp1 = 0 ;
21988 int res1 = 0 ;
21989 size_t val2 ;
21990 int ecode2 = 0 ;
21991 void *argp3 = 0 ;
21992 int res3 = 0 ;
21993 bool temp4 = false ;
21994 bool val5 ;
21995 int ecode5 = 0 ;
21996 int val6 ;
21997 int ecode6 = 0 ;
21998 PyObject * obj0 = 0 ;
21999 PyObject * obj1 = 0 ;
22000 PyObject * obj2 = 0 ;
22001 PyObject * obj3 = 0 ;
22002 PyObject * obj4 = 0 ;
22003 PyObject * obj5 = 0 ;
22004 char * kwnames[] = {
22005 (char *) "self",(char *) "pos",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
22006 };
22007
22008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Treebook_InsertSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22010 if (!SWIG_IsOK(res1)) {
22011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_InsertSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
22012 }
22013 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22014 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22015 if (!SWIG_IsOK(ecode2)) {
22016 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_InsertSubPage" "', expected argument " "2"" of type '" "size_t""'");
22017 }
22018 arg2 = static_cast< size_t >(val2);
22019 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
22020 if (!SWIG_IsOK(res3)) {
22021 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Treebook_InsertSubPage" "', expected argument " "3"" of type '" "wxWindow *""'");
22022 }
22023 arg3 = reinterpret_cast< wxWindow * >(argp3);
22024 {
22025 arg4 = wxString_in_helper(obj3);
22026 if (arg4 == NULL) SWIG_fail;
22027 temp4 = true;
22028 }
22029 if (obj4) {
22030 ecode5 = SWIG_AsVal_bool(obj4, &val5);
22031 if (!SWIG_IsOK(ecode5)) {
22032 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_InsertSubPage" "', expected argument " "5"" of type '" "bool""'");
22033 }
22034 arg5 = static_cast< bool >(val5);
22035 }
22036 if (obj5) {
22037 ecode6 = SWIG_AsVal_int(obj5, &val6);
22038 if (!SWIG_IsOK(ecode6)) {
22039 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_InsertSubPage" "', expected argument " "6"" of type '" "int""'");
22040 }
22041 arg6 = static_cast< int >(val6);
22042 }
22043 {
22044 PyThreadState* __tstate = wxPyBeginAllowThreads();
22045 result = (bool)(arg1)->InsertSubPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
22046 wxPyEndAllowThreads(__tstate);
22047 if (PyErr_Occurred()) SWIG_fail;
22048 }
22049 {
22050 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22051 }
22052 {
22053 if (temp4)
22054 delete arg4;
22055 }
22056 return resultobj;
22057fail:
22058 {
22059 if (temp4)
22060 delete arg4;
22061 }
22062 return NULL;
22063}
22064
22065
22066SWIGINTERN PyObject *_wrap_Treebook_AddSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22067 PyObject *resultobj = 0;
22068 wxTreebook *arg1 = (wxTreebook *) 0 ;
22069 wxWindow *arg2 = (wxWindow *) 0 ;
22070 wxString *arg3 = 0 ;
22071 bool arg4 = (bool) false ;
22072 int arg5 = (int) wxNOT_FOUND ;
22073 bool result;
22074 void *argp1 = 0 ;
22075 int res1 = 0 ;
22076 void *argp2 = 0 ;
22077 int res2 = 0 ;
22078 bool temp3 = false ;
22079 bool val4 ;
22080 int ecode4 = 0 ;
22081 int val5 ;
22082 int ecode5 = 0 ;
22083 PyObject * obj0 = 0 ;
22084 PyObject * obj1 = 0 ;
22085 PyObject * obj2 = 0 ;
22086 PyObject * obj3 = 0 ;
22087 PyObject * obj4 = 0 ;
22088 char * kwnames[] = {
22089 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
22090 };
22091
22092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Treebook_AddSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
22093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22094 if (!SWIG_IsOK(res1)) {
22095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_AddSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
22096 }
22097 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22098 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22099 if (!SWIG_IsOK(res2)) {
22100 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_AddSubPage" "', expected argument " "2"" of type '" "wxWindow *""'");
22101 }
22102 arg2 = reinterpret_cast< wxWindow * >(argp2);
22103 {
22104 arg3 = wxString_in_helper(obj2);
22105 if (arg3 == NULL) SWIG_fail;
22106 temp3 = true;
22107 }
22108 if (obj3) {
22109 ecode4 = SWIG_AsVal_bool(obj3, &val4);
22110 if (!SWIG_IsOK(ecode4)) {
22111 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Treebook_AddSubPage" "', expected argument " "4"" of type '" "bool""'");
22112 }
22113 arg4 = static_cast< bool >(val4);
22114 }
22115 if (obj4) {
22116 ecode5 = SWIG_AsVal_int(obj4, &val5);
22117 if (!SWIG_IsOK(ecode5)) {
22118 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_AddSubPage" "', expected argument " "5"" of type '" "int""'");
22119 }
22120 arg5 = static_cast< int >(val5);
22121 }
22122 {
22123 PyThreadState* __tstate = wxPyBeginAllowThreads();
22124 result = (bool)(arg1)->AddSubPage(arg2,(wxString const &)*arg3,arg4,arg5);
22125 wxPyEndAllowThreads(__tstate);
22126 if (PyErr_Occurred()) SWIG_fail;
22127 }
22128 {
22129 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22130 }
22131 {
22132 if (temp3)
22133 delete arg3;
22134 }
22135 return resultobj;
22136fail:
22137 {
22138 if (temp3)
22139 delete arg3;
22140 }
22141 return NULL;
22142}
22143
22144
22145SWIGINTERN PyObject *_wrap_Treebook_IsNodeExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22146 PyObject *resultobj = 0;
22147 wxTreebook *arg1 = (wxTreebook *) 0 ;
22148 size_t arg2 ;
22149 bool result;
22150 void *argp1 = 0 ;
22151 int res1 = 0 ;
22152 size_t val2 ;
22153 int ecode2 = 0 ;
22154 PyObject * obj0 = 0 ;
22155 PyObject * obj1 = 0 ;
22156 char * kwnames[] = {
22157 (char *) "self",(char *) "pos", NULL
22158 };
22159
22160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_IsNodeExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
22161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22162 if (!SWIG_IsOK(res1)) {
22163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22164 }
22165 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22166 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22167 if (!SWIG_IsOK(ecode2)) {
22168 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "2"" of type '" "size_t""'");
22169 }
22170 arg2 = static_cast< size_t >(val2);
22171 {
22172 PyThreadState* __tstate = wxPyBeginAllowThreads();
22173 result = (bool)((wxTreebook const *)arg1)->IsNodeExpanded(arg2);
22174 wxPyEndAllowThreads(__tstate);
22175 if (PyErr_Occurred()) SWIG_fail;
22176 }
22177 {
22178 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22179 }
22180 return resultobj;
22181fail:
22182 return NULL;
22183}
22184
22185
22186SWIGINTERN PyObject *_wrap_Treebook_ExpandNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22187 PyObject *resultobj = 0;
22188 wxTreebook *arg1 = (wxTreebook *) 0 ;
22189 size_t arg2 ;
22190 bool arg3 = (bool) true ;
22191 bool result;
22192 void *argp1 = 0 ;
22193 int res1 = 0 ;
22194 size_t val2 ;
22195 int ecode2 = 0 ;
22196 bool val3 ;
22197 int ecode3 = 0 ;
22198 PyObject * obj0 = 0 ;
22199 PyObject * obj1 = 0 ;
22200 PyObject * obj2 = 0 ;
22201 char * kwnames[] = {
22202 (char *) "self",(char *) "pos",(char *) "expand", NULL
22203 };
22204
22205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Treebook_ExpandNode",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22207 if (!SWIG_IsOK(res1)) {
22208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_ExpandNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
22209 }
22210 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22211 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22212 if (!SWIG_IsOK(ecode2)) {
22213 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_ExpandNode" "', expected argument " "2"" of type '" "size_t""'");
22214 }
22215 arg2 = static_cast< size_t >(val2);
22216 if (obj2) {
22217 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22218 if (!SWIG_IsOK(ecode3)) {
22219 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_ExpandNode" "', expected argument " "3"" of type '" "bool""'");
22220 }
22221 arg3 = static_cast< bool >(val3);
22222 }
22223 {
22224 PyThreadState* __tstate = wxPyBeginAllowThreads();
22225 result = (bool)(arg1)->ExpandNode(arg2,arg3);
22226 wxPyEndAllowThreads(__tstate);
22227 if (PyErr_Occurred()) SWIG_fail;
22228 }
22229 {
22230 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22231 }
22232 return resultobj;
22233fail:
22234 return NULL;
22235}
22236
22237
22238SWIGINTERN PyObject *_wrap_Treebook_CollapseNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22239 PyObject *resultobj = 0;
22240 wxTreebook *arg1 = (wxTreebook *) 0 ;
22241 size_t arg2 ;
22242 bool result;
22243 void *argp1 = 0 ;
22244 int res1 = 0 ;
22245 size_t val2 ;
22246 int ecode2 = 0 ;
22247 PyObject * obj0 = 0 ;
22248 PyObject * obj1 = 0 ;
22249 char * kwnames[] = {
22250 (char *) "self",(char *) "pos", NULL
22251 };
22252
22253 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_CollapseNode",kwnames,&obj0,&obj1)) SWIG_fail;
22254 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22255 if (!SWIG_IsOK(res1)) {
22256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_CollapseNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
22257 }
22258 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22259 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22260 if (!SWIG_IsOK(ecode2)) {
22261 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_CollapseNode" "', expected argument " "2"" of type '" "size_t""'");
22262 }
22263 arg2 = static_cast< size_t >(val2);
22264 {
22265 PyThreadState* __tstate = wxPyBeginAllowThreads();
22266 result = (bool)(arg1)->CollapseNode(arg2);
22267 wxPyEndAllowThreads(__tstate);
22268 if (PyErr_Occurred()) SWIG_fail;
22269 }
22270 {
22271 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22272 }
22273 return resultobj;
22274fail:
22275 return NULL;
22276}
22277
22278
22279SWIGINTERN PyObject *_wrap_Treebook_GetPageParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22280 PyObject *resultobj = 0;
22281 wxTreebook *arg1 = (wxTreebook *) 0 ;
22282 size_t arg2 ;
22283 int result;
22284 void *argp1 = 0 ;
22285 int res1 = 0 ;
22286 size_t val2 ;
22287 int ecode2 = 0 ;
22288 PyObject * obj0 = 0 ;
22289 PyObject * obj1 = 0 ;
22290 char * kwnames[] = {
22291 (char *) "self",(char *) "pos", NULL
22292 };
22293
22294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_GetPageParent",kwnames,&obj0,&obj1)) SWIG_fail;
22295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22296 if (!SWIG_IsOK(res1)) {
22297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetPageParent" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22298 }
22299 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22300 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22301 if (!SWIG_IsOK(ecode2)) {
22302 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_GetPageParent" "', expected argument " "2"" of type '" "size_t""'");
22303 }
22304 arg2 = static_cast< size_t >(val2);
22305 {
22306 PyThreadState* __tstate = wxPyBeginAllowThreads();
22307 result = (int)((wxTreebook const *)arg1)->GetPageParent(arg2);
22308 wxPyEndAllowThreads(__tstate);
22309 if (PyErr_Occurred()) SWIG_fail;
22310 }
22311 resultobj = SWIG_From_int(static_cast< int >(result));
22312 return resultobj;
22313fail:
22314 return NULL;
d55e5bfc
RD
22315}
22316
22317
1bd55598
RD
22318SWIGINTERN PyObject *_wrap_Treebook_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22319 PyObject *resultobj = 0;
22320 wxTreebook *arg1 = (wxTreebook *) 0 ;
10044bf1 22321 wxPyTreeCtrl *result = 0 ;
1bd55598
RD
22322 void *argp1 = 0 ;
22323 int res1 = 0 ;
22324 PyObject *swig_obj[1] ;
22325
22326 if (!args) SWIG_fail;
22327 swig_obj[0] = args;
22328 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22329 if (!SWIG_IsOK(res1)) {
22330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetTreeCtrl" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22331 }
22332 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22333 {
22334 PyThreadState* __tstate = wxPyBeginAllowThreads();
10044bf1 22335 result = (wxPyTreeCtrl *)((wxTreebook const *)arg1)->GetTreeCtrl();
1bd55598
RD
22336 wxPyEndAllowThreads(__tstate);
22337 if (PyErr_Occurred()) SWIG_fail;
22338 }
10044bf1
RD
22339 {
22340 resultobj = wxPyMake_wxObject(result, (bool)0);
22341 }
1bd55598
RD
22342 return resultobj;
22343fail:
22344 return NULL;
22345}
22346
22347
22348SWIGINTERN PyObject *Treebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22349 PyObject *obj;
22350 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22351 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebook, SWIG_NewClientData(obj));
22352 return SWIG_Py_Void();
22353}
22354
22355SWIGINTERN PyObject *Treebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22356 return SWIG_Python_InitShadowInstance(args);
22357}
22358
22359SWIGINTERN PyObject *_wrap_new_TreebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22360 PyObject *resultobj = 0;
22361 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22362 int arg2 = (int) 0 ;
22363 int arg3 = (int) wxNOT_FOUND ;
22364 int arg4 = (int) wxNOT_FOUND ;
22365 wxTreebookEvent *result = 0 ;
22366 int val1 ;
22367 int ecode1 = 0 ;
22368 int val2 ;
22369 int ecode2 = 0 ;
22370 int val3 ;
22371 int ecode3 = 0 ;
22372 int val4 ;
22373 int ecode4 = 0 ;
22374 PyObject * obj0 = 0 ;
22375 PyObject * obj1 = 0 ;
22376 PyObject * obj2 = 0 ;
22377 PyObject * obj3 = 0 ;
22378 char * kwnames[] = {
22379 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22380 };
22381
22382 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TreebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22383 if (obj0) {
22384 ecode1 = SWIG_AsVal_int(obj0, &val1);
22385 if (!SWIG_IsOK(ecode1)) {
22386 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22387 }
22388 arg1 = static_cast< wxEventType >(val1);
22389 }
22390 if (obj1) {
22391 ecode2 = SWIG_AsVal_int(obj1, &val2);
22392 if (!SWIG_IsOK(ecode2)) {
22393 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreebookEvent" "', expected argument " "2"" of type '" "int""'");
22394 }
22395 arg2 = static_cast< int >(val2);
22396 }
22397 if (obj2) {
22398 ecode3 = SWIG_AsVal_int(obj2, &val3);
22399 if (!SWIG_IsOK(ecode3)) {
22400 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TreebookEvent" "', expected argument " "3"" of type '" "int""'");
22401 }
22402 arg3 = static_cast< int >(val3);
22403 }
22404 if (obj3) {
22405 ecode4 = SWIG_AsVal_int(obj3, &val4);
22406 if (!SWIG_IsOK(ecode4)) {
22407 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TreebookEvent" "', expected argument " "4"" of type '" "int""'");
22408 }
22409 arg4 = static_cast< int >(val4);
22410 }
22411 {
22412 PyThreadState* __tstate = wxPyBeginAllowThreads();
22413 result = (wxTreebookEvent *)new wxTreebookEvent(arg1,arg2,arg3,arg4);
22414 wxPyEndAllowThreads(__tstate);
22415 if (PyErr_Occurred()) SWIG_fail;
22416 }
22417 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebookEvent, SWIG_POINTER_NEW | 0 );
22418 return resultobj;
22419fail:
22420 return NULL;
22421}
22422
22423
22424SWIGINTERN PyObject *TreebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22425 PyObject *obj;
22426 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22427 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebookEvent, SWIG_NewClientData(obj));
22428 return SWIG_Py_Void();
22429}
22430
22431SWIGINTERN PyObject *TreebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22432 return SWIG_Python_InitShadowInstance(args);
22433}
22434
22435SWIGINTERN PyObject *_wrap_new_Toolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22436 PyObject *resultobj = 0;
22437 wxWindow *arg1 = (wxWindow *) 0 ;
22438 int arg2 ;
22439 wxPoint const &arg3_defvalue = wxDefaultPosition ;
22440 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
22441 wxSize const &arg4_defvalue = wxDefaultSize ;
22442 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
22443 long arg5 = (long) wxBK_DEFAULT ;
22444 wxString const &arg6_defvalue = wxPyEmptyString ;
22445 wxString *arg6 = (wxString *) &arg6_defvalue ;
22446 wxToolbook *result = 0 ;
22447 void *argp1 = 0 ;
22448 int res1 = 0 ;
22449 int val2 ;
22450 int ecode2 = 0 ;
22451 wxPoint temp3 ;
22452 wxSize temp4 ;
22453 long val5 ;
22454 int ecode5 = 0 ;
22455 bool temp6 = false ;
22456 PyObject * obj0 = 0 ;
22457 PyObject * obj1 = 0 ;
22458 PyObject * obj2 = 0 ;
22459 PyObject * obj3 = 0 ;
22460 PyObject * obj4 = 0 ;
22461 PyObject * obj5 = 0 ;
22462 char * kwnames[] = {
22463 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22464 };
22465
22466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Toolbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
22468 if (!SWIG_IsOK(res1)) {
22469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Toolbook" "', expected argument " "1"" of type '" "wxWindow *""'");
22470 }
22471 arg1 = reinterpret_cast< wxWindow * >(argp1);
22472 ecode2 = SWIG_AsVal_int(obj1, &val2);
22473 if (!SWIG_IsOK(ecode2)) {
22474 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Toolbook" "', expected argument " "2"" of type '" "int""'");
22475 }
22476 arg2 = static_cast< int >(val2);
22477 if (obj2) {
36ed4f51 22478 {
1bd55598
RD
22479 arg3 = &temp3;
22480 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36ed4f51 22481 }
1bd55598
RD
22482 }
22483 if (obj3) {
36ed4f51 22484 {
1bd55598
RD
22485 arg4 = &temp4;
22486 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
36ed4f51 22487 }
1bd55598
RD
22488 }
22489 if (obj4) {
22490 ecode5 = SWIG_AsVal_long(obj4, &val5);
22491 if (!SWIG_IsOK(ecode5)) {
22492 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Toolbook" "', expected argument " "5"" of type '" "long""'");
22493 }
22494 arg5 = static_cast< long >(val5);
22495 }
22496 if (obj5) {
d55e5bfc 22497 {
1bd55598
RD
22498 arg6 = wxString_in_helper(obj5);
22499 if (arg6 == NULL) SWIG_fail;
22500 temp6 = true;
d55e5bfc 22501 }
1bd55598
RD
22502 }
22503 {
22504 PyThreadState* __tstate = wxPyBeginAllowThreads();
22505 result = (wxToolbook *)new wxToolbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
22506 wxPyEndAllowThreads(__tstate);
22507 if (PyErr_Occurred()) SWIG_fail;
22508 }
22509 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_NEW | 0 );
22510 {
22511 if (temp6)
22512 delete arg6;
22513 }
22514 return resultobj;
22515fail:
22516 {
22517 if (temp6)
22518 delete arg6;
22519 }
22520 return NULL;
d55e5bfc
RD
22521}
22522
22523
1bd55598
RD
22524SWIGINTERN PyObject *_wrap_new_PreToolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22525 PyObject *resultobj = 0;
22526 wxToolbook *result = 0 ;
22527
22528 if (!SWIG_Python_UnpackTuple(args,"new_PreToolbook",0,0,0)) SWIG_fail;
22529 {
22530 PyThreadState* __tstate = wxPyBeginAllowThreads();
22531 result = (wxToolbook *)new wxToolbook();
22532 wxPyEndAllowThreads(__tstate);
22533 if (PyErr_Occurred()) SWIG_fail;
22534 }
22535 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_OWN | 0 );
22536 return resultobj;
22537fail:
22538 return NULL;
22539}
22540
22541
22542SWIGINTERN PyObject *_wrap_Toolbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22543 PyObject *resultobj = 0;
22544 wxToolbook *arg1 = (wxToolbook *) 0 ;
22545 wxWindow *arg2 = (wxWindow *) 0 ;
22546 int arg3 ;
22547 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22548 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22549 wxSize const &arg5_defvalue = wxDefaultSize ;
22550 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22551 long arg6 = (long) 0 ;
22552 wxString const &arg7_defvalue = wxEmptyString ;
22553 wxString *arg7 = (wxString *) &arg7_defvalue ;
22554 bool result;
22555 void *argp1 = 0 ;
22556 int res1 = 0 ;
22557 void *argp2 = 0 ;
22558 int res2 = 0 ;
22559 int val3 ;
22560 int ecode3 = 0 ;
22561 wxPoint temp4 ;
22562 wxSize temp5 ;
22563 long val6 ;
22564 int ecode6 = 0 ;
22565 bool temp7 = false ;
22566 PyObject * obj0 = 0 ;
22567 PyObject * obj1 = 0 ;
22568 PyObject * obj2 = 0 ;
22569 PyObject * obj3 = 0 ;
22570 PyObject * obj4 = 0 ;
22571 PyObject * obj5 = 0 ;
22572 PyObject * obj6 = 0 ;
22573 char * kwnames[] = {
22574 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22575 };
22576
22577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Toolbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22578 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22579 if (!SWIG_IsOK(res1)) {
22580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Create" "', expected argument " "1"" of type '" "wxToolbook *""'");
22581 }
22582 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22583 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22584 if (!SWIG_IsOK(res2)) {
22585 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Toolbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
22586 }
22587 arg2 = reinterpret_cast< wxWindow * >(argp2);
22588 ecode3 = SWIG_AsVal_int(obj2, &val3);
22589 if (!SWIG_IsOK(ecode3)) {
22590 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Toolbook_Create" "', expected argument " "3"" of type '" "int""'");
22591 }
22592 arg3 = static_cast< int >(val3);
22593 if (obj3) {
22594 {
22595 arg4 = &temp4;
22596 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
f20a2e1f 22597 }
1bd55598
RD
22598 }
22599 if (obj4) {
f20a2e1f 22600 {
1bd55598
RD
22601 arg5 = &temp5;
22602 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
f20a2e1f 22603 }
1bd55598
RD
22604 }
22605 if (obj5) {
22606 ecode6 = SWIG_AsVal_long(obj5, &val6);
22607 if (!SWIG_IsOK(ecode6)) {
22608 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Toolbook_Create" "', expected argument " "6"" of type '" "long""'");
22609 }
22610 arg6 = static_cast< long >(val6);
22611 }
22612 if (obj6) {
f20a2e1f 22613 {
1bd55598
RD
22614 arg7 = wxString_in_helper(obj6);
22615 if (arg7 == NULL) SWIG_fail;
22616 temp7 = true;
f20a2e1f 22617 }
1bd55598
RD
22618 }
22619 {
22620 PyThreadState* __tstate = wxPyBeginAllowThreads();
22621 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22622 wxPyEndAllowThreads(__tstate);
22623 if (PyErr_Occurred()) SWIG_fail;
22624 }
22625 {
22626 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22627 }
22628 {
22629 if (temp7)
22630 delete arg7;
22631 }
22632 return resultobj;
22633fail:
22634 {
22635 if (temp7)
22636 delete arg7;
22637 }
22638 return NULL;
f20a2e1f
RD
22639}
22640
22641
1bd55598
RD
22642SWIGINTERN PyObject *_wrap_Toolbook_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22643 PyObject *resultobj = 0;
22644 wxToolbook *arg1 = (wxToolbook *) 0 ;
22645 wxToolBarBase *result = 0 ;
22646 void *argp1 = 0 ;
22647 int res1 = 0 ;
22648 PyObject *swig_obj[1] ;
22649
22650 if (!args) SWIG_fail;
22651 swig_obj[0] = args;
22652 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22653 if (!SWIG_IsOK(res1)) {
22654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_GetToolBar" "', expected argument " "1"" of type '" "wxToolbook const *""'");
22655 }
22656 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22657 {
22658 PyThreadState* __tstate = wxPyBeginAllowThreads();
22659 result = (wxToolBarBase *)((wxToolbook const *)arg1)->GetToolBar();
22660 wxPyEndAllowThreads(__tstate);
22661 if (PyErr_Occurred()) SWIG_fail;
22662 }
22663 {
22664 resultobj = wxPyMake_wxObject(result, (bool)0);
22665 }
22666 return resultobj;
22667fail:
22668 return NULL;
d55e5bfc
RD
22669}
22670
22671
1bd55598
RD
22672SWIGINTERN PyObject *_wrap_Toolbook_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22673 PyObject *resultobj = 0;
22674 wxToolbook *arg1 = (wxToolbook *) 0 ;
22675 void *argp1 = 0 ;
22676 int res1 = 0 ;
22677 PyObject *swig_obj[1] ;
22678
22679 if (!args) SWIG_fail;
22680 swig_obj[0] = args;
22681 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22682 if (!SWIG_IsOK(res1)) {
22683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Realize" "', expected argument " "1"" of type '" "wxToolbook *""'");
22684 }
22685 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22686 {
22687 PyThreadState* __tstate = wxPyBeginAllowThreads();
22688 (arg1)->Realize();
22689 wxPyEndAllowThreads(__tstate);
22690 if (PyErr_Occurred()) SWIG_fail;
22691 }
22692 resultobj = SWIG_Py_Void();
22693 return resultobj;
22694fail:
22695 return NULL;
22696}
22697
22698
22699SWIGINTERN PyObject *Toolbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22700 PyObject *obj;
22701 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22702 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbook, SWIG_NewClientData(obj));
22703 return SWIG_Py_Void();
22704}
22705
22706SWIGINTERN PyObject *Toolbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22707 return SWIG_Python_InitShadowInstance(args);
22708}
22709
22710SWIGINTERN PyObject *_wrap_new_ToolbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22711 PyObject *resultobj = 0;
22712 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22713 int arg2 = (int) 0 ;
22714 int arg3 = (int) wxNOT_FOUND ;
22715 int arg4 = (int) wxNOT_FOUND ;
22716 wxToolbookEvent *result = 0 ;
22717 int val1 ;
22718 int ecode1 = 0 ;
22719 int val2 ;
22720 int ecode2 = 0 ;
22721 int val3 ;
22722 int ecode3 = 0 ;
22723 int val4 ;
22724 int ecode4 = 0 ;
22725 PyObject * obj0 = 0 ;
22726 PyObject * obj1 = 0 ;
22727 PyObject * obj2 = 0 ;
22728 PyObject * obj3 = 0 ;
22729 char * kwnames[] = {
22730 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22731 };
22732
22733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ToolbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22734 if (obj0) {
22735 ecode1 = SWIG_AsVal_int(obj0, &val1);
22736 if (!SWIG_IsOK(ecode1)) {
22737 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ToolbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22738 }
22739 arg1 = static_cast< wxEventType >(val1);
22740 }
22741 if (obj1) {
22742 ecode2 = SWIG_AsVal_int(obj1, &val2);
22743 if (!SWIG_IsOK(ecode2)) {
22744 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolbookEvent" "', expected argument " "2"" of type '" "int""'");
22745 }
22746 arg2 = static_cast< int >(val2);
22747 }
22748 if (obj2) {
22749 ecode3 = SWIG_AsVal_int(obj2, &val3);
22750 if (!SWIG_IsOK(ecode3)) {
22751 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ToolbookEvent" "', expected argument " "3"" of type '" "int""'");
22752 }
22753 arg3 = static_cast< int >(val3);
22754 }
22755 if (obj3) {
22756 ecode4 = SWIG_AsVal_int(obj3, &val4);
22757 if (!SWIG_IsOK(ecode4)) {
22758 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ToolbookEvent" "', expected argument " "4"" of type '" "int""'");
22759 }
22760 arg4 = static_cast< int >(val4);
22761 }
22762 {
22763 PyThreadState* __tstate = wxPyBeginAllowThreads();
22764 result = (wxToolbookEvent *)new wxToolbookEvent(arg1,arg2,arg3,arg4);
22765 wxPyEndAllowThreads(__tstate);
22766 if (PyErr_Occurred()) SWIG_fail;
22767 }
22768 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbookEvent, SWIG_POINTER_NEW | 0 );
22769 return resultobj;
22770fail:
22771 return NULL;
d55e5bfc
RD
22772}
22773
22774
1bd55598
RD
22775SWIGINTERN PyObject *ToolbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22776 PyObject *obj;
22777 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22778 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbookEvent, SWIG_NewClientData(obj));
22779 return SWIG_Py_Void();
d55e5bfc
RD
22780}
22781
1bd55598
RD
22782SWIGINTERN PyObject *ToolbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22783 return SWIG_Python_InitShadowInstance(args);
22784}
d55e5bfc 22785
1bd55598
RD
22786SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22787 PyObject *resultobj = 0;
22788 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22789 int result;
22790 void *argp1 = 0 ;
22791 int res1 = 0 ;
22792 PyObject *swig_obj[1] ;
22793
22794 if (!args) SWIG_fail;
22795 swig_obj[0] = args;
22796 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22797 if (!SWIG_IsOK(res1)) {
22798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetId" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22799 }
22800 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22801 {
22802 PyThreadState* __tstate = wxPyBeginAllowThreads();
22803 result = (int)(arg1)->GetId();
22804 wxPyEndAllowThreads(__tstate);
22805 if (PyErr_Occurred()) SWIG_fail;
22806 }
22807 resultobj = SWIG_From_int(static_cast< int >(result));
22808 return resultobj;
22809fail:
22810 return NULL;
d55e5bfc 22811}
1bd55598
RD
22812
22813
22814SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22815 PyObject *resultobj = 0;
22816 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22817 wxControl *result = 0 ;
22818 void *argp1 = 0 ;
22819 int res1 = 0 ;
22820 PyObject *swig_obj[1] ;
22821
22822 if (!args) SWIG_fail;
22823 swig_obj[0] = args;
22824 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22825 if (!SWIG_IsOK(res1)) {
22826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22827 }
22828 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22829 {
22830 PyThreadState* __tstate = wxPyBeginAllowThreads();
22831 result = (wxControl *)(arg1)->GetControl();
22832 wxPyEndAllowThreads(__tstate);
22833 if (PyErr_Occurred()) SWIG_fail;
22834 }
22835 {
22836 resultobj = wxPyMake_wxObject(result, 0);
22837 }
22838 return resultobj;
22839fail:
22840 return NULL;
d55e5bfc
RD
22841}
22842
22843
1bd55598
RD
22844SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22845 PyObject *resultobj = 0;
22846 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22847 wxToolBarBase *result = 0 ;
22848 void *argp1 = 0 ;
22849 int res1 = 0 ;
22850 PyObject *swig_obj[1] ;
22851
22852 if (!args) SWIG_fail;
22853 swig_obj[0] = args;
22854 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22855 if (!SWIG_IsOK(res1)) {
22856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetToolBar" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22857 }
22858 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22859 {
22860 PyThreadState* __tstate = wxPyBeginAllowThreads();
22861 result = (wxToolBarBase *)(arg1)->GetToolBar();
22862 wxPyEndAllowThreads(__tstate);
22863 if (PyErr_Occurred()) SWIG_fail;
22864 }
22865 {
22866 resultobj = wxPyMake_wxObject(result, (bool)0);
22867 }
22868 return resultobj;
22869fail:
22870 return NULL;
d55e5bfc
RD
22871}
22872
22873
1bd55598
RD
22874SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22875 PyObject *resultobj = 0;
22876 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22877 int result;
22878 void *argp1 = 0 ;
22879 int res1 = 0 ;
22880 PyObject *swig_obj[1] ;
22881
22882 if (!args) SWIG_fail;
22883 swig_obj[0] = args;
22884 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22885 if (!SWIG_IsOK(res1)) {
22886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsButton" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22887 }
22888 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22889 {
22890 PyThreadState* __tstate = wxPyBeginAllowThreads();
22891 result = (int)(arg1)->IsButton();
22892 wxPyEndAllowThreads(__tstate);
22893 if (PyErr_Occurred()) SWIG_fail;
22894 }
22895 resultobj = SWIG_From_int(static_cast< int >(result));
22896 return resultobj;
22897fail:
22898 return NULL;
d55e5bfc
RD
22899}
22900
22901
1bd55598
RD
22902SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22903 PyObject *resultobj = 0;
22904 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22905 int result;
22906 void *argp1 = 0 ;
22907 int res1 = 0 ;
22908 PyObject *swig_obj[1] ;
22909
22910 if (!args) SWIG_fail;
22911 swig_obj[0] = args;
22912 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22913 if (!SWIG_IsOK(res1)) {
22914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22915 }
22916 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22917 {
22918 PyThreadState* __tstate = wxPyBeginAllowThreads();
22919 result = (int)(arg1)->IsControl();
22920 wxPyEndAllowThreads(__tstate);
22921 if (PyErr_Occurred()) SWIG_fail;
22922 }
22923 resultobj = SWIG_From_int(static_cast< int >(result));
22924 return resultobj;
22925fail:
22926 return NULL;
d55e5bfc
RD
22927}
22928
22929
1bd55598
RD
22930SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22931 PyObject *resultobj = 0;
22932 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22933 int result;
22934 void *argp1 = 0 ;
22935 int res1 = 0 ;
22936 PyObject *swig_obj[1] ;
22937
22938 if (!args) SWIG_fail;
22939 swig_obj[0] = args;
22940 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22941 if (!SWIG_IsOK(res1)) {
22942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsSeparator" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22943 }
22944 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22945 {
22946 PyThreadState* __tstate = wxPyBeginAllowThreads();
22947 result = (int)(arg1)->IsSeparator();
22948 wxPyEndAllowThreads(__tstate);
22949 if (PyErr_Occurred()) SWIG_fail;
22950 }
22951 resultobj = SWIG_From_int(static_cast< int >(result));
22952 return resultobj;
22953fail:
22954 return NULL;
d55e5bfc
RD
22955}
22956
22957
1bd55598
RD
22958SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22959 PyObject *resultobj = 0;
22960 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22961 int result;
22962 void *argp1 = 0 ;
22963 int res1 = 0 ;
22964 PyObject *swig_obj[1] ;
22965
22966 if (!args) SWIG_fail;
22967 swig_obj[0] = args;
22968 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22969 if (!SWIG_IsOK(res1)) {
22970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetStyle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22971 }
22972 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22973 {
22974 PyThreadState* __tstate = wxPyBeginAllowThreads();
22975 result = (int)(arg1)->GetStyle();
22976 wxPyEndAllowThreads(__tstate);
22977 if (PyErr_Occurred()) SWIG_fail;
22978 }
22979 resultobj = SWIG_From_int(static_cast< int >(result));
22980 return resultobj;
22981fail:
22982 return NULL;
d55e5bfc
RD
22983}
22984
22985
1bd55598
RD
22986SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22987 PyObject *resultobj = 0;
22988 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22989 wxItemKind result;
22990 void *argp1 = 0 ;
22991 int res1 = 0 ;
22992 PyObject *swig_obj[1] ;
22993
22994 if (!args) SWIG_fail;
22995 swig_obj[0] = args;
22996 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22997 if (!SWIG_IsOK(res1)) {
22998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetKind" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22999 }
23000 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23001 {
23002 PyThreadState* __tstate = wxPyBeginAllowThreads();
23003 result = (wxItemKind)(arg1)->GetKind();
23004 wxPyEndAllowThreads(__tstate);
23005 if (PyErr_Occurred()) SWIG_fail;
23006 }
23007 resultobj = SWIG_From_int(static_cast< int >(result));
23008 return resultobj;
23009fail:
23010 return NULL;
d55e5bfc
RD
23011}
23012
23013
1bd55598
RD
23014SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23015 PyObject *resultobj = 0;
23016 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23017 bool result;
23018 void *argp1 = 0 ;
23019 int res1 = 0 ;
23020 PyObject *swig_obj[1] ;
23021
23022 if (!args) SWIG_fail;
23023 swig_obj[0] = args;
23024 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23025 if (!SWIG_IsOK(res1)) {
23026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsEnabled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23027 }
23028 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23029 {
23030 PyThreadState* __tstate = wxPyBeginAllowThreads();
23031 result = (bool)(arg1)->IsEnabled();
23032 wxPyEndAllowThreads(__tstate);
23033 if (PyErr_Occurred()) SWIG_fail;
23034 }
23035 {
23036 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23037 }
23038 return resultobj;
23039fail:
23040 return NULL;
d55e5bfc
RD
23041}
23042
23043
1bd55598
RD
23044SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23045 PyObject *resultobj = 0;
23046 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23047 bool result;
23048 void *argp1 = 0 ;
23049 int res1 = 0 ;
23050 PyObject *swig_obj[1] ;
23051
23052 if (!args) SWIG_fail;
23053 swig_obj[0] = args;
23054 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23055 if (!SWIG_IsOK(res1)) {
23056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23057 }
23058 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23059 {
23060 PyThreadState* __tstate = wxPyBeginAllowThreads();
23061 result = (bool)(arg1)->IsToggled();
23062 wxPyEndAllowThreads(__tstate);
23063 if (PyErr_Occurred()) SWIG_fail;
23064 }
23065 {
23066 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23067 }
23068 return resultobj;
23069fail:
23070 return NULL;
d55e5bfc
RD
23071}
23072
23073
1bd55598
RD
23074SWIGINTERN PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23075 PyObject *resultobj = 0;
23076 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23077 bool result;
23078 void *argp1 = 0 ;
23079 int res1 = 0 ;
23080 PyObject *swig_obj[1] ;
23081
23082 if (!args) SWIG_fail;
23083 swig_obj[0] = args;
23084 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23085 if (!SWIG_IsOK(res1)) {
23086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_CanBeToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23087 }
23088 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23089 {
23090 PyThreadState* __tstate = wxPyBeginAllowThreads();
23091 result = (bool)(arg1)->CanBeToggled();
23092 wxPyEndAllowThreads(__tstate);
23093 if (PyErr_Occurred()) SWIG_fail;
23094 }
23095 {
23096 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23097 }
23098 return resultobj;
23099fail:
23100 return NULL;
d55e5bfc
RD
23101}
23102
23103
1bd55598
RD
23104SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23105 PyObject *resultobj = 0;
23106 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23107 wxBitmap *result = 0 ;
23108 void *argp1 = 0 ;
23109 int res1 = 0 ;
23110 PyObject *swig_obj[1] ;
23111
23112 if (!args) SWIG_fail;
23113 swig_obj[0] = args;
23114 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23115 if (!SWIG_IsOK(res1)) {
23116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23117 }
23118 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23119 {
23120 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 23121 {
1bd55598
RD
23122 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
23123 result = (wxBitmap *) &_result_ref;
36ed4f51 23124 }
1bd55598
RD
23125 wxPyEndAllowThreads(__tstate);
23126 if (PyErr_Occurred()) SWIG_fail;
23127 }
23128 {
23129 wxBitmap* resultptr = new wxBitmap(*result);
23130 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
23131 }
23132 return resultobj;
23133fail:
23134 return NULL;
d55e5bfc
RD
23135}
23136
23137
1bd55598
RD
23138SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23139 PyObject *resultobj = 0;
23140 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23141 wxBitmap *result = 0 ;
23142 void *argp1 = 0 ;
23143 int res1 = 0 ;
23144 PyObject *swig_obj[1] ;
23145
23146 if (!args) SWIG_fail;
23147 swig_obj[0] = args;
23148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23149 if (!SWIG_IsOK(res1)) {
23150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23151 }
23152 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23153 {
23154 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 23155 {
1bd55598
RD
23156 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
23157 result = (wxBitmap *) &_result_ref;
d55e5bfc 23158 }
1bd55598
RD
23159 wxPyEndAllowThreads(__tstate);
23160 if (PyErr_Occurred()) SWIG_fail;
23161 }
23162 {
23163 wxBitmap* resultptr = new wxBitmap(*result);
23164 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
23165 }
23166 return resultobj;
23167fail:
23168 return NULL;
d55e5bfc
RD
23169}
23170
23171
1bd55598
RD
23172SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23173 PyObject *resultobj = 0;
23174 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23175 wxBitmap result;
23176 void *argp1 = 0 ;
23177 int res1 = 0 ;
23178 PyObject *swig_obj[1] ;
23179
23180 if (!args) SWIG_fail;
23181 swig_obj[0] = args;
23182 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23183 if (!SWIG_IsOK(res1)) {
23184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23185 }
23186 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23187 {
23188 PyThreadState* __tstate = wxPyBeginAllowThreads();
23189 result = (arg1)->GetBitmap();
23190 wxPyEndAllowThreads(__tstate);
23191 if (PyErr_Occurred()) SWIG_fail;
23192 }
23193 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
23194 return resultobj;
23195fail:
23196 return NULL;
d55e5bfc
RD
23197}
23198
23199
1bd55598
RD
23200SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23201 PyObject *resultobj = 0;
23202 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23203 wxString result;
23204 void *argp1 = 0 ;
23205 int res1 = 0 ;
23206 PyObject *swig_obj[1] ;
23207
23208 if (!args) SWIG_fail;
23209 swig_obj[0] = args;
23210 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23211 if (!SWIG_IsOK(res1)) {
23212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23213 }
23214 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23215 {
23216 PyThreadState* __tstate = wxPyBeginAllowThreads();
23217 result = (arg1)->GetLabel();
23218 wxPyEndAllowThreads(__tstate);
23219 if (PyErr_Occurred()) SWIG_fail;
23220 }
23221 {
23222#if wxUSE_UNICODE
23223 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23224#else
23225 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23226#endif
23227 }
23228 return resultobj;
23229fail:
23230 return NULL;
d55e5bfc
RD
23231}
23232
23233
1bd55598
RD
23234SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23235 PyObject *resultobj = 0;
23236 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23237 wxString result;
23238 void *argp1 = 0 ;
23239 int res1 = 0 ;
23240 PyObject *swig_obj[1] ;
23241
23242 if (!args) SWIG_fail;
23243 swig_obj[0] = args;
23244 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23245 if (!SWIG_IsOK(res1)) {
23246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23247 }
23248 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23249 {
23250 PyThreadState* __tstate = wxPyBeginAllowThreads();
23251 result = (arg1)->GetShortHelp();
23252 wxPyEndAllowThreads(__tstate);
23253 if (PyErr_Occurred()) SWIG_fail;
23254 }
23255 {
23256#if wxUSE_UNICODE
23257 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23258#else
23259 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23260#endif
23261 }
23262 return resultobj;
23263fail:
23264 return NULL;
d55e5bfc
RD
23265}
23266
23267
1bd55598
RD
23268SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23269 PyObject *resultobj = 0;
23270 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23271 wxString result;
23272 void *argp1 = 0 ;
23273 int res1 = 0 ;
23274 PyObject *swig_obj[1] ;
23275
23276 if (!args) SWIG_fail;
23277 swig_obj[0] = args;
23278 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23279 if (!SWIG_IsOK(res1)) {
23280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23281 }
23282 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23283 {
23284 PyThreadState* __tstate = wxPyBeginAllowThreads();
23285 result = (arg1)->GetLongHelp();
23286 wxPyEndAllowThreads(__tstate);
23287 if (PyErr_Occurred()) SWIG_fail;
23288 }
23289 {
23290#if wxUSE_UNICODE
23291 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23292#else
23293 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23294#endif
23295 }
23296 return resultobj;
23297fail:
23298 return NULL;
23299}
23300
23301
23302SWIGINTERN PyObject *_wrap_ToolBarToolBase_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23303 PyObject *resultobj = 0;
23304 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23305 bool arg2 ;
23306 bool result;
23307 void *argp1 = 0 ;
23308 int res1 = 0 ;
23309 bool val2 ;
23310 int ecode2 = 0 ;
23311 PyObject * obj0 = 0 ;
23312 PyObject * obj1 = 0 ;
23313 char * kwnames[] = {
23314 (char *) "self",(char *) "enable", NULL
23315 };
23316
23317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) SWIG_fail;
23318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23319 if (!SWIG_IsOK(res1)) {
23320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Enable" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23321 }
23322 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23323 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23324 if (!SWIG_IsOK(ecode2)) {
23325 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_Enable" "', expected argument " "2"" of type '" "bool""'");
23326 }
23327 arg2 = static_cast< bool >(val2);
23328 {
23329 PyThreadState* __tstate = wxPyBeginAllowThreads();
23330 result = (bool)(arg1)->Enable(arg2);
23331 wxPyEndAllowThreads(__tstate);
23332 if (PyErr_Occurred()) SWIG_fail;
23333 }
23334 {
23335 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23336 }
23337 return resultobj;
23338fail:
23339 return NULL;
d55e5bfc
RD
23340}
23341
23342
1bd55598
RD
23343SWIGINTERN PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23344 PyObject *resultobj = 0;
23345 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23346 void *argp1 = 0 ;
23347 int res1 = 0 ;
23348 PyObject *swig_obj[1] ;
23349
23350 if (!args) SWIG_fail;
23351 swig_obj[0] = args;
23352 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23353 if (!SWIG_IsOK(res1)) {
23354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Toggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23355 }
23356 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23357 {
23358 PyThreadState* __tstate = wxPyBeginAllowThreads();
23359 (arg1)->Toggle();
23360 wxPyEndAllowThreads(__tstate);
23361 if (PyErr_Occurred()) SWIG_fail;
23362 }
23363 resultobj = SWIG_Py_Void();
23364 return resultobj;
23365fail:
23366 return NULL;
23367}
23368
23369
23370SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23371 PyObject *resultobj = 0;
23372 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23373 bool arg2 ;
23374 bool result;
23375 void *argp1 = 0 ;
23376 int res1 = 0 ;
23377 bool val2 ;
23378 int ecode2 = 0 ;
23379 PyObject * obj0 = 0 ;
23380 PyObject * obj1 = 0 ;
23381 char * kwnames[] = {
23382 (char *) "self",(char *) "toggle", NULL
23383 };
23384
23385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) SWIG_fail;
23386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23387 if (!SWIG_IsOK(res1)) {
23388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23389 }
23390 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23391 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23392 if (!SWIG_IsOK(ecode2)) {
23393 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "2"" of type '" "bool""'");
23394 }
23395 arg2 = static_cast< bool >(val2);
23396 {
23397 PyThreadState* __tstate = wxPyBeginAllowThreads();
23398 result = (bool)(arg1)->SetToggle(arg2);
23399 wxPyEndAllowThreads(__tstate);
23400 if (PyErr_Occurred()) SWIG_fail;
23401 }
23402 {
23403 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23404 }
23405 return resultobj;
23406fail:
23407 return NULL;
23408}
23409
23410
23411SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23412 PyObject *resultobj = 0;
23413 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23414 wxString *arg2 = 0 ;
23415 bool result;
23416 void *argp1 = 0 ;
23417 int res1 = 0 ;
23418 bool temp2 = false ;
23419 PyObject * obj0 = 0 ;
23420 PyObject * obj1 = 0 ;
23421 char * kwnames[] = {
23422 (char *) "self",(char *) "help", NULL
23423 };
23424
23425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23426 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23427 if (!SWIG_IsOK(res1)) {
23428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23429 }
23430 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23431 {
23432 arg2 = wxString_in_helper(obj1);
23433 if (arg2 == NULL) SWIG_fail;
23434 temp2 = true;
23435 }
23436 {
23437 PyThreadState* __tstate = wxPyBeginAllowThreads();
23438 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
23439 wxPyEndAllowThreads(__tstate);
23440 if (PyErr_Occurred()) SWIG_fail;
23441 }
23442 {
23443 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23444 }
23445 {
23446 if (temp2)
23447 delete arg2;
23448 }
23449 return resultobj;
23450fail:
23451 {
23452 if (temp2)
23453 delete arg2;
23454 }
23455 return NULL;
23456}
23457
23458
23459SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23460 PyObject *resultobj = 0;
23461 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23462 wxString *arg2 = 0 ;
23463 bool result;
23464 void *argp1 = 0 ;
23465 int res1 = 0 ;
23466 bool temp2 = false ;
23467 PyObject * obj0 = 0 ;
23468 PyObject * obj1 = 0 ;
23469 char * kwnames[] = {
23470 (char *) "self",(char *) "help", NULL
23471 };
23472
23473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23475 if (!SWIG_IsOK(res1)) {
23476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23477 }
23478 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23479 {
23480 arg2 = wxString_in_helper(obj1);
23481 if (arg2 == NULL) SWIG_fail;
23482 temp2 = true;
23483 }
23484 {
23485 PyThreadState* __tstate = wxPyBeginAllowThreads();
23486 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
23487 wxPyEndAllowThreads(__tstate);
23488 if (PyErr_Occurred()) SWIG_fail;
23489 }
23490 {
23491 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23492 }
23493 {
23494 if (temp2)
23495 delete arg2;
23496 }
23497 return resultobj;
23498fail:
23499 {
23500 if (temp2)
23501 delete arg2;
23502 }
23503 return NULL;
23504}
23505
23506
23507SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23508 PyObject *resultobj = 0;
23509 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23510 wxBitmap *arg2 = 0 ;
23511 void *argp1 = 0 ;
23512 int res1 = 0 ;
23513 void *argp2 = 0 ;
23514 int res2 = 0 ;
23515 PyObject * obj0 = 0 ;
23516 PyObject * obj1 = 0 ;
23517 char * kwnames[] = {
23518 (char *) "self",(char *) "bmp", NULL
23519 };
23520
23521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23523 if (!SWIG_IsOK(res1)) {
23524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23525 }
23526 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23527 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23528 if (!SWIG_IsOK(res2)) {
23529 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23530 }
23531 if (!argp2) {
23532 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23533 }
23534 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23535 {
23536 PyThreadState* __tstate = wxPyBeginAllowThreads();
23537 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
23538 wxPyEndAllowThreads(__tstate);
23539 if (PyErr_Occurred()) SWIG_fail;
23540 }
23541 resultobj = SWIG_Py_Void();
23542 return resultobj;
23543fail:
23544 return NULL;
23545}
23546
23547
23548SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23549 PyObject *resultobj = 0;
23550 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23551 wxBitmap *arg2 = 0 ;
23552 void *argp1 = 0 ;
23553 int res1 = 0 ;
23554 void *argp2 = 0 ;
23555 int res2 = 0 ;
23556 PyObject * obj0 = 0 ;
23557 PyObject * obj1 = 0 ;
23558 char * kwnames[] = {
23559 (char *) "self",(char *) "bmp", NULL
23560 };
23561
23562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23564 if (!SWIG_IsOK(res1)) {
23565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23566 }
23567 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23568 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23569 if (!SWIG_IsOK(res2)) {
23570 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23571 }
23572 if (!argp2) {
23573 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23574 }
23575 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23576 {
23577 PyThreadState* __tstate = wxPyBeginAllowThreads();
23578 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
23579 wxPyEndAllowThreads(__tstate);
23580 if (PyErr_Occurred()) SWIG_fail;
23581 }
23582 resultobj = SWIG_Py_Void();
23583 return resultobj;
23584fail:
23585 return NULL;
23586}
23587
23588
23589SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23590 PyObject *resultobj = 0;
23591 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23592 wxString *arg2 = 0 ;
23593 void *argp1 = 0 ;
23594 int res1 = 0 ;
23595 bool temp2 = false ;
23596 PyObject * obj0 = 0 ;
23597 PyObject * obj1 = 0 ;
23598 char * kwnames[] = {
23599 (char *) "self",(char *) "label", NULL
23600 };
23601
23602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
23603 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23604 if (!SWIG_IsOK(res1)) {
23605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23606 }
23607 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23608 {
23609 arg2 = wxString_in_helper(obj1);
23610 if (arg2 == NULL) SWIG_fail;
23611 temp2 = true;
23612 }
23613 {
23614 PyThreadState* __tstate = wxPyBeginAllowThreads();
23615 (arg1)->SetLabel((wxString const &)*arg2);
23616 wxPyEndAllowThreads(__tstate);
23617 if (PyErr_Occurred()) SWIG_fail;
23618 }
23619 resultobj = SWIG_Py_Void();
23620 {
23621 if (temp2)
23622 delete arg2;
23623 }
23624 return resultobj;
23625fail:
23626 {
23627 if (temp2)
23628 delete arg2;
23629 }
23630 return NULL;
d55e5bfc
RD
23631}
23632
23633
1bd55598
RD
23634SWIGINTERN PyObject *_wrap_ToolBarToolBase_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23635 PyObject *resultobj = 0;
23636 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23637 void *argp1 = 0 ;
23638 int res1 = 0 ;
23639 PyObject *swig_obj[1] ;
23640
23641 if (!args) SWIG_fail;
23642 swig_obj[0] = args;
23643 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23644 if (!SWIG_IsOK(res1)) {
23645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Detach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23646 }
23647 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23648 {
23649 PyThreadState* __tstate = wxPyBeginAllowThreads();
23650 (arg1)->Detach();
23651 wxPyEndAllowThreads(__tstate);
23652 if (PyErr_Occurred()) SWIG_fail;
23653 }
23654 resultobj = SWIG_Py_Void();
23655 return resultobj;
23656fail:
23657 return NULL;
23658}
23659
23660
23661SWIGINTERN PyObject *_wrap_ToolBarToolBase_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23662 PyObject *resultobj = 0;
23663 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23664 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
23665 void *argp1 = 0 ;
23666 int res1 = 0 ;
23667 void *argp2 = 0 ;
23668 int res2 = 0 ;
23669 PyObject * obj0 = 0 ;
23670 PyObject * obj1 = 0 ;
23671 char * kwnames[] = {
23672 (char *) "self",(char *) "tbar", NULL
23673 };
23674
23675 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) SWIG_fail;
23676 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23677 if (!SWIG_IsOK(res1)) {
23678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Attach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23679 }
23680 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23681 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23682 if (!SWIG_IsOK(res2)) {
23683 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_Attach" "', expected argument " "2"" of type '" "wxToolBarBase *""'");
23684 }
23685 arg2 = reinterpret_cast< wxToolBarBase * >(argp2);
23686 {
23687 PyThreadState* __tstate = wxPyBeginAllowThreads();
23688 (arg1)->Attach(arg2);
23689 wxPyEndAllowThreads(__tstate);
23690 if (PyErr_Occurred()) SWIG_fail;
23691 }
23692 resultobj = SWIG_Py_Void();
23693 return resultobj;
23694fail:
23695 return NULL;
d55e5bfc
RD
23696}
23697
23698
1bd55598
RD
23699SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23700 PyObject *resultobj = 0;
23701 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23702 PyObject *result = 0 ;
23703 void *argp1 = 0 ;
23704 int res1 = 0 ;
23705 PyObject *swig_obj[1] ;
23706
23707 if (!args) SWIG_fail;
23708 swig_obj[0] = args;
23709 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23710 if (!SWIG_IsOK(res1)) {
23711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23712 }
23713 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23714 {
23715 PyThreadState* __tstate = wxPyBeginAllowThreads();
23716 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
23717 wxPyEndAllowThreads(__tstate);
23718 if (PyErr_Occurred()) SWIG_fail;
23719 }
23720 resultobj = result;
23721 return resultobj;
23722fail:
23723 return NULL;
23724}
23725
23726
23727SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23728 PyObject *resultobj = 0;
23729 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23730 PyObject *arg2 = (PyObject *) 0 ;
23731 void *argp1 = 0 ;
23732 int res1 = 0 ;
23733 PyObject * obj0 = 0 ;
23734 PyObject * obj1 = 0 ;
23735 char * kwnames[] = {
23736 (char *) "self",(char *) "clientData", NULL
23737 };
23738
23739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) SWIG_fail;
23740 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23741 if (!SWIG_IsOK(res1)) {
23742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23743 }
23744 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23745 arg2 = obj1;
23746 {
23747 PyThreadState* __tstate = wxPyBeginAllowThreads();
23748 wxToolBarToolBase_SetClientData(arg1,arg2);
23749 wxPyEndAllowThreads(__tstate);
23750 if (PyErr_Occurred()) SWIG_fail;
23751 }
23752 resultobj = SWIG_Py_Void();
23753 return resultobj;
23754fail:
23755 return NULL;
23756}
23757
23758
23759SWIGINTERN PyObject *ToolBarToolBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23760 PyObject *obj;
23761 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23762 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarToolBase, SWIG_NewClientData(obj));
23763 return SWIG_Py_Void();
23764}
23765
23766SWIGINTERN PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23767 PyObject *resultobj = 0;
23768 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23769 int arg2 ;
23770 wxString *arg3 = 0 ;
23771 wxBitmap *arg4 = 0 ;
23772 wxBitmap const &arg5_defvalue = wxNullBitmap ;
23773 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
23774 wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ;
23775 wxString const &arg7_defvalue = wxPyEmptyString ;
23776 wxString *arg7 = (wxString *) &arg7_defvalue ;
23777 wxString const &arg8_defvalue = wxPyEmptyString ;
23778 wxString *arg8 = (wxString *) &arg8_defvalue ;
23779 PyObject *arg9 = (PyObject *) NULL ;
23780 wxToolBarToolBase *result = 0 ;
23781 void *argp1 = 0 ;
23782 int res1 = 0 ;
23783 int val2 ;
23784 int ecode2 = 0 ;
23785 bool temp3 = false ;
23786 void *argp4 = 0 ;
23787 int res4 = 0 ;
23788 void *argp5 = 0 ;
23789 int res5 = 0 ;
23790 int val6 ;
23791 int ecode6 = 0 ;
23792 bool temp7 = false ;
23793 bool temp8 = false ;
23794 PyObject * obj0 = 0 ;
23795 PyObject * obj1 = 0 ;
23796 PyObject * obj2 = 0 ;
23797 PyObject * obj3 = 0 ;
23798 PyObject * obj4 = 0 ;
23799 PyObject * obj5 = 0 ;
23800 PyObject * obj6 = 0 ;
23801 PyObject * obj7 = 0 ;
23802 PyObject * obj8 = 0 ;
23803 char * kwnames[] = {
23804 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23805 };
23806
23807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
23808 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23809 if (!SWIG_IsOK(res1)) {
23810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23811 }
23812 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23813 ecode2 = SWIG_AsVal_int(obj1, &val2);
23814 if (!SWIG_IsOK(ecode2)) {
23815 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "2"" of type '" "int""'");
23816 }
23817 arg2 = static_cast< int >(val2);
23818 {
23819 arg3 = wxString_in_helper(obj2);
23820 if (arg3 == NULL) SWIG_fail;
23821 temp3 = true;
23822 }
23823 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
23824 if (!SWIG_IsOK(res4)) {
23825 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23826 }
23827 if (!argp4) {
23828 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23829 }
23830 arg4 = reinterpret_cast< wxBitmap * >(argp4);
23831 if (obj4) {
23832 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23833 if (!SWIG_IsOK(res5)) {
23834 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
36ed4f51 23835 }
1bd55598
RD
23836 if (!argp5) {
23837 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
f20a2e1f 23838 }
1bd55598
RD
23839 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23840 }
23841 if (obj5) {
23842 ecode6 = SWIG_AsVal_int(obj5, &val6);
23843 if (!SWIG_IsOK(ecode6)) {
23844 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "6"" of type '" "wxItemKind""'");
23845 }
23846 arg6 = static_cast< wxItemKind >(val6);
23847 }
23848 if (obj6) {
f20a2e1f 23849 {
1bd55598
RD
23850 arg7 = wxString_in_helper(obj6);
23851 if (arg7 == NULL) SWIG_fail;
23852 temp7 = true;
f20a2e1f 23853 }
1bd55598
RD
23854 }
23855 if (obj7) {
f20a2e1f 23856 {
1bd55598
RD
23857 arg8 = wxString_in_helper(obj7);
23858 if (arg8 == NULL) SWIG_fail;
23859 temp8 = true;
d55e5bfc 23860 }
1bd55598
RD
23861 }
23862 if (obj8) {
23863 arg9 = obj8;
23864 }
23865 {
23866 PyThreadState* __tstate = wxPyBeginAllowThreads();
23867 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
23868 wxPyEndAllowThreads(__tstate);
23869 if (PyErr_Occurred()) SWIG_fail;
23870 }
23871 {
23872 resultobj = wxPyMake_wxObject(result, (bool)0);
23873 }
23874 {
23875 if (temp3)
23876 delete arg3;
23877 }
23878 {
23879 if (temp7)
23880 delete arg7;
23881 }
23882 {
23883 if (temp8)
23884 delete arg8;
23885 }
23886 return resultobj;
23887fail:
23888 {
23889 if (temp3)
23890 delete arg3;
23891 }
23892 {
23893 if (temp7)
23894 delete arg7;
23895 }
23896 {
23897 if (temp8)
23898 delete arg8;
23899 }
23900 return NULL;
23901}
23902
23903
23904SWIGINTERN PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23905 PyObject *resultobj = 0;
23906 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23907 size_t arg2 ;
23908 int arg3 ;
23909 wxString *arg4 = 0 ;
23910 wxBitmap *arg5 = 0 ;
23911 wxBitmap const &arg6_defvalue = wxNullBitmap ;
23912 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
23913 wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ;
23914 wxString const &arg8_defvalue = wxPyEmptyString ;
23915 wxString *arg8 = (wxString *) &arg8_defvalue ;
23916 wxString const &arg9_defvalue = wxPyEmptyString ;
23917 wxString *arg9 = (wxString *) &arg9_defvalue ;
23918 PyObject *arg10 = (PyObject *) NULL ;
23919 wxToolBarToolBase *result = 0 ;
23920 void *argp1 = 0 ;
23921 int res1 = 0 ;
23922 size_t val2 ;
23923 int ecode2 = 0 ;
23924 int val3 ;
23925 int ecode3 = 0 ;
23926 bool temp4 = false ;
23927 void *argp5 = 0 ;
23928 int res5 = 0 ;
23929 void *argp6 = 0 ;
23930 int res6 = 0 ;
23931 int val7 ;
23932 int ecode7 = 0 ;
23933 bool temp8 = false ;
23934 bool temp9 = false ;
23935 PyObject * obj0 = 0 ;
23936 PyObject * obj1 = 0 ;
23937 PyObject * obj2 = 0 ;
23938 PyObject * obj3 = 0 ;
23939 PyObject * obj4 = 0 ;
23940 PyObject * obj5 = 0 ;
23941 PyObject * obj6 = 0 ;
23942 PyObject * obj7 = 0 ;
23943 PyObject * obj8 = 0 ;
23944 PyObject * obj9 = 0 ;
23945 char * kwnames[] = {
23946 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23947 };
23948
23949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
23950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23951 if (!SWIG_IsOK(res1)) {
23952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23953 }
23954 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23955 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23956 if (!SWIG_IsOK(ecode2)) {
23957 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "2"" of type '" "size_t""'");
23958 }
23959 arg2 = static_cast< size_t >(val2);
23960 ecode3 = SWIG_AsVal_int(obj2, &val3);
23961 if (!SWIG_IsOK(ecode3)) {
23962 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "3"" of type '" "int""'");
23963 }
23964 arg3 = static_cast< int >(val3);
23965 {
23966 arg4 = wxString_in_helper(obj3);
23967 if (arg4 == NULL) SWIG_fail;
23968 temp4 = true;
23969 }
23970 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23971 if (!SWIG_IsOK(res5)) {
23972 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23973 }
23974 if (!argp5) {
23975 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23976 }
23977 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23978 if (obj5) {
23979 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxBitmap, 0 | 0);
23980 if (!SWIG_IsOK(res6)) {
23981 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
d55e5bfc 23982 }
1bd55598
RD
23983 if (!argp6) {
23984 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
d55e5bfc 23985 }
1bd55598
RD
23986 arg6 = reinterpret_cast< wxBitmap * >(argp6);
23987 }
23988 if (obj6) {
23989 ecode7 = SWIG_AsVal_int(obj6, &val7);
23990 if (!SWIG_IsOK(ecode7)) {
23991 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "7"" of type '" "wxItemKind""'");
23992 }
23993 arg7 = static_cast< wxItemKind >(val7);
23994 }
23995 if (obj7) {
d55e5bfc 23996 {
1bd55598
RD
23997 arg8 = wxString_in_helper(obj7);
23998 if (arg8 == NULL) SWIG_fail;
23999 temp8 = true;
d55e5bfc 24000 }
1bd55598
RD
24001 }
24002 if (obj8) {
d55e5bfc 24003 {
1bd55598
RD
24004 arg9 = wxString_in_helper(obj8);
24005 if (arg9 == NULL) SWIG_fail;
24006 temp9 = true;
d55e5bfc 24007 }
1bd55598
RD
24008 }
24009 if (obj9) {
24010 arg10 = obj9;
24011 }
24012 {
24013 PyThreadState* __tstate = wxPyBeginAllowThreads();
24014 result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10);
24015 wxPyEndAllowThreads(__tstate);
24016 if (PyErr_Occurred()) SWIG_fail;
24017 }
24018 {
24019 resultobj = wxPyMake_wxObject(result, (bool)0);
24020 }
24021 {
24022 if (temp4)
24023 delete arg4;
24024 }
24025 {
24026 if (temp8)
24027 delete arg8;
24028 }
24029 {
24030 if (temp9)
24031 delete arg9;
24032 }
24033 return resultobj;
24034fail:
24035 {
24036 if (temp4)
24037 delete arg4;
24038 }
24039 {
24040 if (temp8)
24041 delete arg8;
24042 }
24043 {
24044 if (temp9)
24045 delete arg9;
24046 }
24047 return NULL;
24048}
24049
24050
24051SWIGINTERN PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24052 PyObject *resultobj = 0;
24053 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24054 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
24055 wxToolBarToolBase *result = 0 ;
24056 void *argp1 = 0 ;
24057 int res1 = 0 ;
24058 void *argp2 = 0 ;
24059 int res2 = 0 ;
24060 PyObject * obj0 = 0 ;
24061 PyObject * obj1 = 0 ;
24062 char * kwnames[] = {
24063 (char *) "self",(char *) "tool", NULL
24064 };
24065
24066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) SWIG_fail;
24067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24068 if (!SWIG_IsOK(res1)) {
24069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24070 }
24071 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24072 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
24073 if (!SWIG_IsOK(res2)) {
24074 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "2"" of type '" "wxToolBarToolBase *""'");
24075 }
24076 arg2 = reinterpret_cast< wxToolBarToolBase * >(argp2);
24077 {
24078 PyThreadState* __tstate = wxPyBeginAllowThreads();
24079 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
24080 wxPyEndAllowThreads(__tstate);
24081 if (PyErr_Occurred()) SWIG_fail;
24082 }
24083 {
24084 resultobj = wxPyMake_wxObject(result, (bool)0);
24085 }
24086 return resultobj;
24087fail:
24088 return NULL;
24089}
24090
24091
24092SWIGINTERN PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24093 PyObject *resultobj = 0;
24094 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24095 size_t arg2 ;
24096 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
24097 wxToolBarToolBase *result = 0 ;
24098 void *argp1 = 0 ;
24099 int res1 = 0 ;
24100 size_t val2 ;
24101 int ecode2 = 0 ;
24102 void *argp3 = 0 ;
24103 int res3 = 0 ;
24104 PyObject * obj0 = 0 ;
24105 PyObject * obj1 = 0 ;
24106 PyObject * obj2 = 0 ;
24107 char * kwnames[] = {
24108 (char *) "self",(char *) "pos",(char *) "tool", NULL
24109 };
24110
24111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24113 if (!SWIG_IsOK(res1)) {
24114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24115 }
24116 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24117 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24118 if (!SWIG_IsOK(ecode2)) {
24119 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "2"" of type '" "size_t""'");
24120 }
24121 arg2 = static_cast< size_t >(val2);
24122 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
24123 if (!SWIG_IsOK(res3)) {
24124 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "3"" of type '" "wxToolBarToolBase *""'");
24125 }
24126 arg3 = reinterpret_cast< wxToolBarToolBase * >(argp3);
24127 {
24128 PyThreadState* __tstate = wxPyBeginAllowThreads();
24129 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
24130 wxPyEndAllowThreads(__tstate);
24131 if (PyErr_Occurred()) SWIG_fail;
24132 }
24133 {
24134 resultobj = wxPyMake_wxObject(result, (bool)0);
24135 }
24136 return resultobj;
24137fail:
24138 return NULL;
24139}
24140
24141
24142SWIGINTERN PyObject *_wrap_ToolBarBase_AddControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24143 PyObject *resultobj = 0;
24144 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24145 wxControl *arg2 = (wxControl *) 0 ;
24146 wxToolBarToolBase *result = 0 ;
24147 void *argp1 = 0 ;
24148 int res1 = 0 ;
24149 void *argp2 = 0 ;
24150 int res2 = 0 ;
24151 PyObject * obj0 = 0 ;
24152 PyObject * obj1 = 0 ;
24153 char * kwnames[] = {
24154 (char *) "self",(char *) "control", NULL
24155 };
24156
24157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) SWIG_fail;
24158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24159 if (!SWIG_IsOK(res1)) {
24160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24161 }
24162 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24163 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxControl, 0 | 0 );
24164 if (!SWIG_IsOK(res2)) {
24165 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddControl" "', expected argument " "2"" of type '" "wxControl *""'");
24166 }
24167 arg2 = reinterpret_cast< wxControl * >(argp2);
24168 {
24169 PyThreadState* __tstate = wxPyBeginAllowThreads();
24170 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
24171 wxPyEndAllowThreads(__tstate);
24172 if (PyErr_Occurred()) SWIG_fail;
24173 }
24174 {
24175 resultobj = wxPyMake_wxObject(result, (bool)0);
24176 }
24177 return resultobj;
24178fail:
24179 return NULL;
24180}
24181
24182
24183SWIGINTERN PyObject *_wrap_ToolBarBase_InsertControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24184 PyObject *resultobj = 0;
24185 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24186 size_t arg2 ;
24187 wxControl *arg3 = (wxControl *) 0 ;
24188 wxToolBarToolBase *result = 0 ;
24189 void *argp1 = 0 ;
24190 int res1 = 0 ;
24191 size_t val2 ;
24192 int ecode2 = 0 ;
24193 void *argp3 = 0 ;
24194 int res3 = 0 ;
24195 PyObject * obj0 = 0 ;
24196 PyObject * obj1 = 0 ;
24197 PyObject * obj2 = 0 ;
24198 char * kwnames[] = {
24199 (char *) "self",(char *) "pos",(char *) "control", NULL
24200 };
24201
24202 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24203 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24204 if (!SWIG_IsOK(res1)) {
24205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24206 }
24207 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24208 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24209 if (!SWIG_IsOK(ecode2)) {
24210 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertControl" "', expected argument " "2"" of type '" "size_t""'");
24211 }
24212 arg2 = static_cast< size_t >(val2);
24213 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxControl, 0 | 0 );
24214 if (!SWIG_IsOK(res3)) {
24215 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertControl" "', expected argument " "3"" of type '" "wxControl *""'");
24216 }
24217 arg3 = reinterpret_cast< wxControl * >(argp3);
24218 {
24219 PyThreadState* __tstate = wxPyBeginAllowThreads();
24220 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
24221 wxPyEndAllowThreads(__tstate);
24222 if (PyErr_Occurred()) SWIG_fail;
24223 }
24224 {
24225 resultobj = wxPyMake_wxObject(result, (bool)0);
24226 }
24227 return resultobj;
24228fail:
24229 return NULL;
24230}
24231
24232
24233SWIGINTERN PyObject *_wrap_ToolBarBase_FindControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24234 PyObject *resultobj = 0;
24235 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24236 int arg2 ;
24237 wxControl *result = 0 ;
24238 void *argp1 = 0 ;
24239 int res1 = 0 ;
24240 int val2 ;
24241 int ecode2 = 0 ;
24242 PyObject * obj0 = 0 ;
24243 PyObject * obj1 = 0 ;
24244 char * kwnames[] = {
24245 (char *) "self",(char *) "id", NULL
24246 };
24247
24248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) SWIG_fail;
24249 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24250 if (!SWIG_IsOK(res1)) {
24251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24252 }
24253 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24254 ecode2 = SWIG_AsVal_int(obj1, &val2);
24255 if (!SWIG_IsOK(ecode2)) {
24256 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindControl" "', expected argument " "2"" of type '" "int""'");
24257 }
24258 arg2 = static_cast< int >(val2);
24259 {
24260 PyThreadState* __tstate = wxPyBeginAllowThreads();
24261 result = (wxControl *)(arg1)->FindControl(arg2);
24262 wxPyEndAllowThreads(__tstate);
24263 if (PyErr_Occurred()) SWIG_fail;
24264 }
24265 {
24266 resultobj = wxPyMake_wxObject(result, 0);
24267 }
24268 return resultobj;
24269fail:
24270 return NULL;
d55e5bfc
RD
24271}
24272
24273
1bd55598
RD
24274SWIGINTERN PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24275 PyObject *resultobj = 0;
24276 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24277 wxToolBarToolBase *result = 0 ;
24278 void *argp1 = 0 ;
24279 int res1 = 0 ;
24280 PyObject *swig_obj[1] ;
24281
24282 if (!args) SWIG_fail;
24283 swig_obj[0] = args;
24284 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24285 if (!SWIG_IsOK(res1)) {
24286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24287 }
24288 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24289 {
24290 PyThreadState* __tstate = wxPyBeginAllowThreads();
24291 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
24292 wxPyEndAllowThreads(__tstate);
24293 if (PyErr_Occurred()) SWIG_fail;
24294 }
24295 {
24296 resultobj = wxPyMake_wxObject(result, (bool)0);
24297 }
24298 return resultobj;
24299fail:
24300 return NULL;
24301}
24302
24303
24304SWIGINTERN PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24305 PyObject *resultobj = 0;
24306 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24307 size_t arg2 ;
24308 wxToolBarToolBase *result = 0 ;
24309 void *argp1 = 0 ;
24310 int res1 = 0 ;
24311 size_t val2 ;
24312 int ecode2 = 0 ;
24313 PyObject * obj0 = 0 ;
24314 PyObject * obj1 = 0 ;
24315 char * kwnames[] = {
24316 (char *) "self",(char *) "pos", NULL
24317 };
24318
24319 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) SWIG_fail;
24320 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24321 if (!SWIG_IsOK(res1)) {
24322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24323 }
24324 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24325 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24326 if (!SWIG_IsOK(ecode2)) {
24327 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "2"" of type '" "size_t""'");
24328 }
24329 arg2 = static_cast< size_t >(val2);
24330 {
24331 PyThreadState* __tstate = wxPyBeginAllowThreads();
24332 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
24333 wxPyEndAllowThreads(__tstate);
24334 if (PyErr_Occurred()) SWIG_fail;
24335 }
24336 {
24337 resultobj = wxPyMake_wxObject(result, (bool)0);
24338 }
24339 return resultobj;
24340fail:
24341 return NULL;
24342}
24343
24344
24345SWIGINTERN PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24346 PyObject *resultobj = 0;
24347 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24348 int arg2 ;
24349 wxToolBarToolBase *result = 0 ;
24350 void *argp1 = 0 ;
24351 int res1 = 0 ;
24352 int val2 ;
24353 int ecode2 = 0 ;
24354 PyObject * obj0 = 0 ;
24355 PyObject * obj1 = 0 ;
24356 char * kwnames[] = {
24357 (char *) "self",(char *) "id", NULL
24358 };
24359
24360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) SWIG_fail;
24361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24362 if (!SWIG_IsOK(res1)) {
24363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24364 }
24365 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24366 ecode2 = SWIG_AsVal_int(obj1, &val2);
24367 if (!SWIG_IsOK(ecode2)) {
24368 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "2"" of type '" "int""'");
24369 }
24370 arg2 = static_cast< int >(val2);
24371 {
24372 PyThreadState* __tstate = wxPyBeginAllowThreads();
24373 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
24374 wxPyEndAllowThreads(__tstate);
24375 if (PyErr_Occurred()) SWIG_fail;
24376 }
24377 {
24378 resultobj = wxPyMake_wxObject(result, (bool)0);
24379 }
24380 return resultobj;
24381fail:
24382 return NULL;
24383}
24384
24385
24386SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24387 PyObject *resultobj = 0;
24388 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24389 size_t arg2 ;
24390 bool result;
24391 void *argp1 = 0 ;
24392 int res1 = 0 ;
24393 size_t val2 ;
24394 int ecode2 = 0 ;
24395 PyObject * obj0 = 0 ;
24396 PyObject * obj1 = 0 ;
24397 char * kwnames[] = {
24398 (char *) "self",(char *) "pos", NULL
24399 };
24400
24401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) SWIG_fail;
24402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24403 if (!SWIG_IsOK(res1)) {
24404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24405 }
24406 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24407 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24408 if (!SWIG_IsOK(ecode2)) {
24409 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "2"" of type '" "size_t""'");
24410 }
24411 arg2 = static_cast< size_t >(val2);
24412 {
24413 PyThreadState* __tstate = wxPyBeginAllowThreads();
24414 result = (bool)(arg1)->DeleteToolByPos(arg2);
24415 wxPyEndAllowThreads(__tstate);
24416 if (PyErr_Occurred()) SWIG_fail;
24417 }
24418 {
24419 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24420 }
24421 return resultobj;
24422fail:
24423 return NULL;
24424}
24425
24426
24427SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24428 PyObject *resultobj = 0;
24429 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24430 int arg2 ;
24431 bool result;
24432 void *argp1 = 0 ;
24433 int res1 = 0 ;
24434 int val2 ;
24435 int ecode2 = 0 ;
24436 PyObject * obj0 = 0 ;
24437 PyObject * obj1 = 0 ;
24438 char * kwnames[] = {
24439 (char *) "self",(char *) "id", NULL
24440 };
24441
24442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) SWIG_fail;
24443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24444 if (!SWIG_IsOK(res1)) {
24445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24446 }
24447 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24448 ecode2 = SWIG_AsVal_int(obj1, &val2);
24449 if (!SWIG_IsOK(ecode2)) {
24450 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "2"" of type '" "int""'");
24451 }
24452 arg2 = static_cast< int >(val2);
24453 {
24454 PyThreadState* __tstate = wxPyBeginAllowThreads();
24455 result = (bool)(arg1)->DeleteTool(arg2);
24456 wxPyEndAllowThreads(__tstate);
24457 if (PyErr_Occurred()) SWIG_fail;
24458 }
24459 {
24460 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24461 }
24462 return resultobj;
24463fail:
24464 return NULL;
d55e5bfc
RD
24465}
24466
24467
1bd55598
RD
24468SWIGINTERN PyObject *_wrap_ToolBarBase_ClearTools(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24469 PyObject *resultobj = 0;
24470 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24471 void *argp1 = 0 ;
24472 int res1 = 0 ;
24473 PyObject *swig_obj[1] ;
24474
24475 if (!args) SWIG_fail;
24476 swig_obj[0] = args;
24477 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24478 if (!SWIG_IsOK(res1)) {
24479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ClearTools" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24480 }
24481 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24482 {
24483 PyThreadState* __tstate = wxPyBeginAllowThreads();
24484 (arg1)->ClearTools();
24485 wxPyEndAllowThreads(__tstate);
24486 if (PyErr_Occurred()) SWIG_fail;
24487 }
24488 resultobj = SWIG_Py_Void();
24489 return resultobj;
24490fail:
24491 return NULL;
d55e5bfc
RD
24492}
24493
24494
1bd55598
RD
24495SWIGINTERN PyObject *_wrap_ToolBarBase_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24496 PyObject *resultobj = 0;
24497 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24498 bool result;
24499 void *argp1 = 0 ;
24500 int res1 = 0 ;
24501 PyObject *swig_obj[1] ;
24502
24503 if (!args) SWIG_fail;
24504 swig_obj[0] = args;
24505 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24506 if (!SWIG_IsOK(res1)) {
24507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_Realize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24508 }
24509 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24510 {
24511 PyThreadState* __tstate = wxPyBeginAllowThreads();
24512 result = (bool)(arg1)->Realize();
24513 wxPyEndAllowThreads(__tstate);
24514 if (PyErr_Occurred()) SWIG_fail;
24515 }
24516 {
24517 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24518 }
24519 return resultobj;
24520fail:
24521 return NULL;
24522}
24523
24524
24525SWIGINTERN PyObject *_wrap_ToolBarBase_EnableTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24526 PyObject *resultobj = 0;
24527 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24528 int arg2 ;
24529 bool arg3 ;
24530 void *argp1 = 0 ;
24531 int res1 = 0 ;
24532 int val2 ;
24533 int ecode2 = 0 ;
24534 bool val3 ;
24535 int ecode3 = 0 ;
24536 PyObject * obj0 = 0 ;
24537 PyObject * obj1 = 0 ;
24538 PyObject * obj2 = 0 ;
24539 char * kwnames[] = {
24540 (char *) "self",(char *) "id",(char *) "enable", NULL
24541 };
24542
24543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24545 if (!SWIG_IsOK(res1)) {
24546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_EnableTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24547 }
24548 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24549 ecode2 = SWIG_AsVal_int(obj1, &val2);
24550 if (!SWIG_IsOK(ecode2)) {
24551 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_EnableTool" "', expected argument " "2"" of type '" "int""'");
24552 }
24553 arg2 = static_cast< int >(val2);
24554 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24555 if (!SWIG_IsOK(ecode3)) {
24556 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_EnableTool" "', expected argument " "3"" of type '" "bool""'");
24557 }
24558 arg3 = static_cast< bool >(val3);
24559 {
24560 PyThreadState* __tstate = wxPyBeginAllowThreads();
24561 (arg1)->EnableTool(arg2,arg3);
24562 wxPyEndAllowThreads(__tstate);
24563 if (PyErr_Occurred()) SWIG_fail;
24564 }
24565 resultobj = SWIG_Py_Void();
24566 return resultobj;
24567fail:
24568 return NULL;
24569}
24570
24571
24572SWIGINTERN PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24573 PyObject *resultobj = 0;
24574 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24575 int arg2 ;
24576 bool arg3 ;
24577 void *argp1 = 0 ;
24578 int res1 = 0 ;
24579 int val2 ;
24580 int ecode2 = 0 ;
24581 bool val3 ;
24582 int ecode3 = 0 ;
24583 PyObject * obj0 = 0 ;
24584 PyObject * obj1 = 0 ;
24585 PyObject * obj2 = 0 ;
24586 char * kwnames[] = {
24587 (char *) "self",(char *) "id",(char *) "toggle", NULL
24588 };
24589
24590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24592 if (!SWIG_IsOK(res1)) {
24593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24594 }
24595 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24596 ecode2 = SWIG_AsVal_int(obj1, &val2);
24597 if (!SWIG_IsOK(ecode2)) {
24598 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "2"" of type '" "int""'");
24599 }
24600 arg2 = static_cast< int >(val2);
24601 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24602 if (!SWIG_IsOK(ecode3)) {
24603 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "3"" of type '" "bool""'");
24604 }
24605 arg3 = static_cast< bool >(val3);
24606 {
24607 PyThreadState* __tstate = wxPyBeginAllowThreads();
24608 (arg1)->ToggleTool(arg2,arg3);
24609 wxPyEndAllowThreads(__tstate);
24610 if (PyErr_Occurred()) SWIG_fail;
24611 }
24612 resultobj = SWIG_Py_Void();
24613 return resultobj;
24614fail:
24615 return NULL;
24616}
24617
24618
24619SWIGINTERN PyObject *_wrap_ToolBarBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24620 PyObject *resultobj = 0;
24621 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24622 int arg2 ;
24623 bool arg3 ;
24624 void *argp1 = 0 ;
24625 int res1 = 0 ;
24626 int val2 ;
24627 int ecode2 = 0 ;
24628 bool val3 ;
24629 int ecode3 = 0 ;
24630 PyObject * obj0 = 0 ;
24631 PyObject * obj1 = 0 ;
24632 PyObject * obj2 = 0 ;
24633 char * kwnames[] = {
24634 (char *) "self",(char *) "id",(char *) "toggle", NULL
24635 };
24636
24637 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24638 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24639 if (!SWIG_IsOK(res1)) {
24640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24641 }
24642 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24643 ecode2 = SWIG_AsVal_int(obj1, &val2);
24644 if (!SWIG_IsOK(ecode2)) {
24645 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToggle" "', expected argument " "2"" of type '" "int""'");
24646 }
24647 arg2 = static_cast< int >(val2);
24648 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24649 if (!SWIG_IsOK(ecode3)) {
24650 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetToggle" "', expected argument " "3"" of type '" "bool""'");
24651 }
24652 arg3 = static_cast< bool >(val3);
24653 {
24654 PyThreadState* __tstate = wxPyBeginAllowThreads();
24655 (arg1)->SetToggle(arg2,arg3);
24656 wxPyEndAllowThreads(__tstate);
24657 if (PyErr_Occurred()) SWIG_fail;
24658 }
24659 resultobj = SWIG_Py_Void();
24660 return resultobj;
24661fail:
24662 return NULL;
24663}
24664
24665
24666SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24667 PyObject *resultobj = 0;
24668 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24669 int arg2 ;
24670 PyObject *result = 0 ;
24671 void *argp1 = 0 ;
24672 int res1 = 0 ;
24673 int val2 ;
24674 int ecode2 = 0 ;
24675 PyObject * obj0 = 0 ;
24676 PyObject * obj1 = 0 ;
24677 char * kwnames[] = {
24678 (char *) "self",(char *) "id", NULL
24679 };
24680
24681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) SWIG_fail;
24682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24683 if (!SWIG_IsOK(res1)) {
24684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24685 }
24686 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24687 ecode2 = SWIG_AsVal_int(obj1, &val2);
24688 if (!SWIG_IsOK(ecode2)) {
24689 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "2"" of type '" "int""'");
24690 }
24691 arg2 = static_cast< int >(val2);
24692 {
24693 PyThreadState* __tstate = wxPyBeginAllowThreads();
24694 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
24695 wxPyEndAllowThreads(__tstate);
24696 if (PyErr_Occurred()) SWIG_fail;
24697 }
24698 resultobj = result;
24699 return resultobj;
24700fail:
24701 return NULL;
24702}
24703
24704
24705SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24706 PyObject *resultobj = 0;
24707 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24708 int arg2 ;
24709 PyObject *arg3 = (PyObject *) 0 ;
24710 void *argp1 = 0 ;
24711 int res1 = 0 ;
24712 int val2 ;
24713 int ecode2 = 0 ;
24714 PyObject * obj0 = 0 ;
24715 PyObject * obj1 = 0 ;
24716 PyObject * obj2 = 0 ;
24717 char * kwnames[] = {
24718 (char *) "self",(char *) "id",(char *) "clientData", NULL
24719 };
24720
24721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24723 if (!SWIG_IsOK(res1)) {
24724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24725 }
24726 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24727 ecode2 = SWIG_AsVal_int(obj1, &val2);
24728 if (!SWIG_IsOK(ecode2)) {
24729 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "2"" of type '" "int""'");
24730 }
24731 arg2 = static_cast< int >(val2);
24732 arg3 = obj2;
24733 {
24734 PyThreadState* __tstate = wxPyBeginAllowThreads();
24735 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
24736 wxPyEndAllowThreads(__tstate);
24737 if (PyErr_Occurred()) SWIG_fail;
24738 }
24739 resultobj = SWIG_Py_Void();
24740 return resultobj;
24741fail:
24742 return NULL;
24743}
24744
24745
24746SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24747 PyObject *resultobj = 0;
24748 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24749 int arg2 ;
24750 int result;
24751 void *argp1 = 0 ;
24752 int res1 = 0 ;
24753 int val2 ;
24754 int ecode2 = 0 ;
24755 PyObject * obj0 = 0 ;
24756 PyObject * obj1 = 0 ;
24757 char * kwnames[] = {
24758 (char *) "self",(char *) "id", NULL
24759 };
24760
24761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) SWIG_fail;
24762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24763 if (!SWIG_IsOK(res1)) {
24764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
24765 }
24766 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24767 ecode2 = SWIG_AsVal_int(obj1, &val2);
24768 if (!SWIG_IsOK(ecode2)) {
24769 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "2"" of type '" "int""'");
24770 }
24771 arg2 = static_cast< int >(val2);
24772 {
24773 PyThreadState* __tstate = wxPyBeginAllowThreads();
24774 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
24775 wxPyEndAllowThreads(__tstate);
24776 if (PyErr_Occurred()) SWIG_fail;
24777 }
24778 resultobj = SWIG_From_int(static_cast< int >(result));
24779 return resultobj;
24780fail:
24781 return NULL;
24782}
24783
24784
24785SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24786 PyObject *resultobj = 0;
24787 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24788 int arg2 ;
24789 bool result;
24790 void *argp1 = 0 ;
24791 int res1 = 0 ;
24792 int val2 ;
24793 int ecode2 = 0 ;
24794 PyObject * obj0 = 0 ;
24795 PyObject * obj1 = 0 ;
24796 char * kwnames[] = {
24797 (char *) "self",(char *) "id", NULL
24798 };
24799
24800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) SWIG_fail;
24801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24802 if (!SWIG_IsOK(res1)) {
24803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolState" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24804 }
24805 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24806 ecode2 = SWIG_AsVal_int(obj1, &val2);
24807 if (!SWIG_IsOK(ecode2)) {
24808 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolState" "', expected argument " "2"" of type '" "int""'");
24809 }
24810 arg2 = static_cast< int >(val2);
24811 {
24812 PyThreadState* __tstate = wxPyBeginAllowThreads();
24813 result = (bool)(arg1)->GetToolState(arg2);
24814 wxPyEndAllowThreads(__tstate);
24815 if (PyErr_Occurred()) SWIG_fail;
24816 }
24817 {
24818 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24819 }
24820 return resultobj;
24821fail:
24822 return NULL;
24823}
24824
24825
24826SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24827 PyObject *resultobj = 0;
24828 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24829 int arg2 ;
24830 bool result;
24831 void *argp1 = 0 ;
24832 int res1 = 0 ;
24833 int val2 ;
24834 int ecode2 = 0 ;
24835 PyObject * obj0 = 0 ;
24836 PyObject * obj1 = 0 ;
24837 char * kwnames[] = {
24838 (char *) "self",(char *) "id", NULL
24839 };
24840
24841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
24842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24843 if (!SWIG_IsOK(res1)) {
24844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24845 }
24846 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24847 ecode2 = SWIG_AsVal_int(obj1, &val2);
24848 if (!SWIG_IsOK(ecode2)) {
24849 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "2"" of type '" "int""'");
24850 }
24851 arg2 = static_cast< int >(val2);
24852 {
24853 PyThreadState* __tstate = wxPyBeginAllowThreads();
24854 result = (bool)(arg1)->GetToolEnabled(arg2);
24855 wxPyEndAllowThreads(__tstate);
24856 if (PyErr_Occurred()) SWIG_fail;
24857 }
24858 {
24859 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24860 }
24861 return resultobj;
24862fail:
24863 return NULL;
24864}
24865
24866
24867SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24868 PyObject *resultobj = 0;
24869 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24870 int arg2 ;
24871 wxString *arg3 = 0 ;
24872 void *argp1 = 0 ;
24873 int res1 = 0 ;
24874 int val2 ;
24875 int ecode2 = 0 ;
24876 bool temp3 = false ;
24877 PyObject * obj0 = 0 ;
24878 PyObject * obj1 = 0 ;
24879 PyObject * obj2 = 0 ;
24880 char * kwnames[] = {
24881 (char *) "self",(char *) "id",(char *) "helpString", NULL
24882 };
24883
24884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24886 if (!SWIG_IsOK(res1)) {
24887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24888 }
24889 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24890 ecode2 = SWIG_AsVal_int(obj1, &val2);
24891 if (!SWIG_IsOK(ecode2)) {
24892 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24893 }
24894 arg2 = static_cast< int >(val2);
24895 {
24896 arg3 = wxString_in_helper(obj2);
24897 if (arg3 == NULL) SWIG_fail;
24898 temp3 = true;
24899 }
24900 {
24901 PyThreadState* __tstate = wxPyBeginAllowThreads();
24902 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
24903 wxPyEndAllowThreads(__tstate);
24904 if (PyErr_Occurred()) SWIG_fail;
24905 }
24906 resultobj = SWIG_Py_Void();
24907 {
24908 if (temp3)
24909 delete arg3;
24910 }
24911 return resultobj;
24912fail:
24913 {
24914 if (temp3)
24915 delete arg3;
24916 }
24917 return NULL;
24918}
24919
24920
24921SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24922 PyObject *resultobj = 0;
24923 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24924 int arg2 ;
24925 wxString result;
24926 void *argp1 = 0 ;
24927 int res1 = 0 ;
24928 int val2 ;
24929 int ecode2 = 0 ;
24930 PyObject * obj0 = 0 ;
24931 PyObject * obj1 = 0 ;
24932 char * kwnames[] = {
24933 (char *) "self",(char *) "id", NULL
24934 };
24935
24936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24938 if (!SWIG_IsOK(res1)) {
24939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24940 }
24941 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24942 ecode2 = SWIG_AsVal_int(obj1, &val2);
24943 if (!SWIG_IsOK(ecode2)) {
24944 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24945 }
24946 arg2 = static_cast< int >(val2);
24947 {
24948 PyThreadState* __tstate = wxPyBeginAllowThreads();
24949 result = (arg1)->GetToolShortHelp(arg2);
24950 wxPyEndAllowThreads(__tstate);
24951 if (PyErr_Occurred()) SWIG_fail;
24952 }
24953 {
24954#if wxUSE_UNICODE
24955 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24956#else
24957 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24958#endif
24959 }
24960 return resultobj;
24961fail:
24962 return NULL;
24963}
24964
24965
24966SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24967 PyObject *resultobj = 0;
24968 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24969 int arg2 ;
24970 wxString *arg3 = 0 ;
24971 void *argp1 = 0 ;
24972 int res1 = 0 ;
24973 int val2 ;
24974 int ecode2 = 0 ;
24975 bool temp3 = false ;
24976 PyObject * obj0 = 0 ;
24977 PyObject * obj1 = 0 ;
24978 PyObject * obj2 = 0 ;
24979 char * kwnames[] = {
24980 (char *) "self",(char *) "id",(char *) "helpString", NULL
24981 };
24982
24983 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24984 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24985 if (!SWIG_IsOK(res1)) {
24986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24987 }
24988 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24989 ecode2 = SWIG_AsVal_int(obj1, &val2);
24990 if (!SWIG_IsOK(ecode2)) {
24991 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24992 }
24993 arg2 = static_cast< int >(val2);
24994 {
24995 arg3 = wxString_in_helper(obj2);
24996 if (arg3 == NULL) SWIG_fail;
24997 temp3 = true;
24998 }
24999 {
25000 PyThreadState* __tstate = wxPyBeginAllowThreads();
25001 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
25002 wxPyEndAllowThreads(__tstate);
25003 if (PyErr_Occurred()) SWIG_fail;
25004 }
25005 resultobj = SWIG_Py_Void();
25006 {
25007 if (temp3)
25008 delete arg3;
25009 }
25010 return resultobj;
25011fail:
25012 {
25013 if (temp3)
25014 delete arg3;
25015 }
25016 return NULL;
25017}
25018
25019
25020SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25021 PyObject *resultobj = 0;
25022 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25023 int arg2 ;
25024 wxString result;
25025 void *argp1 = 0 ;
25026 int res1 = 0 ;
25027 int val2 ;
25028 int ecode2 = 0 ;
25029 PyObject * obj0 = 0 ;
25030 PyObject * obj1 = 0 ;
25031 char * kwnames[] = {
25032 (char *) "self",(char *) "id", NULL
25033 };
25034
25035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
25036 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25037 if (!SWIG_IsOK(res1)) {
25038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25039 }
25040 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25041 ecode2 = SWIG_AsVal_int(obj1, &val2);
25042 if (!SWIG_IsOK(ecode2)) {
25043 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
25044 }
25045 arg2 = static_cast< int >(val2);
25046 {
25047 PyThreadState* __tstate = wxPyBeginAllowThreads();
25048 result = (arg1)->GetToolLongHelp(arg2);
25049 wxPyEndAllowThreads(__tstate);
25050 if (PyErr_Occurred()) SWIG_fail;
25051 }
25052 {
25053#if wxUSE_UNICODE
25054 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25055#else
25056 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25057#endif
25058 }
25059 return resultobj;
25060fail:
25061 return NULL;
25062}
25063
25064
25065SWIGINTERN PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25066 PyObject *resultobj = 0;
25067 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25068 int arg2 ;
25069 int arg3 ;
25070 void *argp1 = 0 ;
25071 int res1 = 0 ;
25072 int val2 ;
25073 int ecode2 = 0 ;
25074 int val3 ;
25075 int ecode3 = 0 ;
25076 PyObject * obj0 = 0 ;
25077 PyObject * obj1 = 0 ;
25078 PyObject * obj2 = 0 ;
25079 char * kwnames[] = {
25080 (char *) "self",(char *) "x",(char *) "y", NULL
25081 };
25082
25083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25085 if (!SWIG_IsOK(res1)) {
25086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25087 }
25088 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25089 ecode2 = SWIG_AsVal_int(obj1, &val2);
25090 if (!SWIG_IsOK(ecode2)) {
25091 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "2"" of type '" "int""'");
25092 }
25093 arg2 = static_cast< int >(val2);
25094 ecode3 = SWIG_AsVal_int(obj2, &val3);
25095 if (!SWIG_IsOK(ecode3)) {
25096 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "3"" of type '" "int""'");
25097 }
25098 arg3 = static_cast< int >(val3);
25099 {
25100 PyThreadState* __tstate = wxPyBeginAllowThreads();
25101 (arg1)->SetMargins(arg2,arg3);
25102 wxPyEndAllowThreads(__tstate);
25103 if (PyErr_Occurred()) SWIG_fail;
25104 }
25105 resultobj = SWIG_Py_Void();
25106 return resultobj;
25107fail:
25108 return NULL;
25109}
25110
25111
25112SWIGINTERN PyObject *_wrap_ToolBarBase_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25113 PyObject *resultobj = 0;
25114 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25115 wxSize *arg2 = 0 ;
25116 void *argp1 = 0 ;
25117 int res1 = 0 ;
25118 wxSize temp2 ;
25119 PyObject * obj0 = 0 ;
25120 PyObject * obj1 = 0 ;
25121 char * kwnames[] = {
25122 (char *) "self",(char *) "size", NULL
25123 };
25124
25125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail;
25126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25127 if (!SWIG_IsOK(res1)) {
25128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25129 }
25130 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25131 {
25132 arg2 = &temp2;
25133 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25134 }
25135 {
25136 PyThreadState* __tstate = wxPyBeginAllowThreads();
25137 (arg1)->SetMargins((wxSize const &)*arg2);
25138 wxPyEndAllowThreads(__tstate);
25139 if (PyErr_Occurred()) SWIG_fail;
25140 }
25141 resultobj = SWIG_Py_Void();
25142 return resultobj;
25143fail:
25144 return NULL;
25145}
25146
25147
25148SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25149 PyObject *resultobj = 0;
25150 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25151 int arg2 ;
25152 void *argp1 = 0 ;
25153 int res1 = 0 ;
25154 int val2 ;
25155 int ecode2 = 0 ;
25156 PyObject * obj0 = 0 ;
25157 PyObject * obj1 = 0 ;
25158 char * kwnames[] = {
25159 (char *) "self",(char *) "packing", NULL
25160 };
25161
25162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) SWIG_fail;
25163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25164 if (!SWIG_IsOK(res1)) {
25165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25166 }
25167 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25168 ecode2 = SWIG_AsVal_int(obj1, &val2);
25169 if (!SWIG_IsOK(ecode2)) {
25170 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "2"" of type '" "int""'");
25171 }
25172 arg2 = static_cast< int >(val2);
25173 {
25174 PyThreadState* __tstate = wxPyBeginAllowThreads();
25175 (arg1)->SetToolPacking(arg2);
25176 wxPyEndAllowThreads(__tstate);
25177 if (PyErr_Occurred()) SWIG_fail;
25178 }
25179 resultobj = SWIG_Py_Void();
25180 return resultobj;
25181fail:
25182 return NULL;
25183}
25184
25185
25186SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25187 PyObject *resultobj = 0;
25188 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25189 int arg2 ;
25190 void *argp1 = 0 ;
25191 int res1 = 0 ;
25192 int val2 ;
25193 int ecode2 = 0 ;
25194 PyObject * obj0 = 0 ;
25195 PyObject * obj1 = 0 ;
25196 char * kwnames[] = {
25197 (char *) "self",(char *) "separation", NULL
25198 };
25199
25200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) SWIG_fail;
25201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25202 if (!SWIG_IsOK(res1)) {
25203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25204 }
25205 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25206 ecode2 = SWIG_AsVal_int(obj1, &val2);
25207 if (!SWIG_IsOK(ecode2)) {
25208 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "2"" of type '" "int""'");
25209 }
25210 arg2 = static_cast< int >(val2);
25211 {
25212 PyThreadState* __tstate = wxPyBeginAllowThreads();
25213 (arg1)->SetToolSeparation(arg2);
25214 wxPyEndAllowThreads(__tstate);
25215 if (PyErr_Occurred()) SWIG_fail;
25216 }
25217 resultobj = SWIG_Py_Void();
25218 return resultobj;
25219fail:
25220 return NULL;
d55e5bfc
RD
25221}
25222
25223
1bd55598
RD
25224SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25225 PyObject *resultobj = 0;
25226 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25227 wxSize result;
25228 void *argp1 = 0 ;
25229 int res1 = 0 ;
25230 PyObject *swig_obj[1] ;
25231
25232 if (!args) SWIG_fail;
25233 swig_obj[0] = args;
25234 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25235 if (!SWIG_IsOK(res1)) {
25236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25237 }
25238 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25239 {
25240 PyThreadState* __tstate = wxPyBeginAllowThreads();
25241 result = (arg1)->GetToolMargins();
25242 wxPyEndAllowThreads(__tstate);
25243 if (PyErr_Occurred()) SWIG_fail;
25244 }
25245 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25246 return resultobj;
25247fail:
25248 return NULL;
d55e5bfc
RD
25249}
25250
25251
1bd55598
RD
25252SWIGINTERN PyObject *_wrap_ToolBarBase_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25253 PyObject *resultobj = 0;
25254 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25255 wxSize result;
25256 void *argp1 = 0 ;
25257 int res1 = 0 ;
25258 PyObject *swig_obj[1] ;
25259
25260 if (!args) SWIG_fail;
25261 swig_obj[0] = args;
25262 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25263 if (!SWIG_IsOK(res1)) {
25264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25265 }
25266 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25267 {
25268 PyThreadState* __tstate = wxPyBeginAllowThreads();
25269 result = (arg1)->GetMargins();
25270 wxPyEndAllowThreads(__tstate);
25271 if (PyErr_Occurred()) SWIG_fail;
25272 }
25273 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25274 return resultobj;
25275fail:
25276 return NULL;
d55e5bfc
RD
25277}
25278
25279
1bd55598
RD
25280SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25281 PyObject *resultobj = 0;
25282 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25283 int result;
25284 void *argp1 = 0 ;
25285 int res1 = 0 ;
25286 PyObject *swig_obj[1] ;
25287
25288 if (!args) SWIG_fail;
25289 swig_obj[0] = args;
25290 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25291 if (!SWIG_IsOK(res1)) {
25292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25293 }
25294 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25295 {
25296 PyThreadState* __tstate = wxPyBeginAllowThreads();
25297 result = (int)(arg1)->GetToolPacking();
25298 wxPyEndAllowThreads(__tstate);
25299 if (PyErr_Occurred()) SWIG_fail;
25300 }
25301 resultobj = SWIG_From_int(static_cast< int >(result));
25302 return resultobj;
25303fail:
25304 return NULL;
d55e5bfc
RD
25305}
25306
25307
1bd55598
RD
25308SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25309 PyObject *resultobj = 0;
25310 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25311 int result;
25312 void *argp1 = 0 ;
25313 int res1 = 0 ;
25314 PyObject *swig_obj[1] ;
25315
25316 if (!args) SWIG_fail;
25317 swig_obj[0] = args;
25318 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25319 if (!SWIG_IsOK(res1)) {
25320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25321 }
25322 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25323 {
25324 PyThreadState* __tstate = wxPyBeginAllowThreads();
25325 result = (int)(arg1)->GetToolSeparation();
25326 wxPyEndAllowThreads(__tstate);
25327 if (PyErr_Occurred()) SWIG_fail;
25328 }
25329 resultobj = SWIG_From_int(static_cast< int >(result));
25330 return resultobj;
25331fail:
25332 return NULL;
25333}
25334
25335
25336SWIGINTERN PyObject *_wrap_ToolBarBase_SetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25337 PyObject *resultobj = 0;
25338 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25339 int arg2 ;
25340 void *argp1 = 0 ;
25341 int res1 = 0 ;
25342 int val2 ;
25343 int ecode2 = 0 ;
25344 PyObject * obj0 = 0 ;
25345 PyObject * obj1 = 0 ;
25346 char * kwnames[] = {
25347 (char *) "self",(char *) "nRows", NULL
25348 };
25349
25350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) SWIG_fail;
25351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25352 if (!SWIG_IsOK(res1)) {
25353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25354 }
25355 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25356 ecode2 = SWIG_AsVal_int(obj1, &val2);
25357 if (!SWIG_IsOK(ecode2)) {
25358 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetRows" "', expected argument " "2"" of type '" "int""'");
25359 }
25360 arg2 = static_cast< int >(val2);
25361 {
25362 PyThreadState* __tstate = wxPyBeginAllowThreads();
25363 (arg1)->SetRows(arg2);
25364 wxPyEndAllowThreads(__tstate);
25365 if (PyErr_Occurred()) SWIG_fail;
25366 }
25367 resultobj = SWIG_Py_Void();
25368 return resultobj;
25369fail:
25370 return NULL;
25371}
25372
25373
25374SWIGINTERN PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25375 PyObject *resultobj = 0;
25376 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25377 int arg2 ;
25378 int arg3 ;
25379 void *argp1 = 0 ;
25380 int res1 = 0 ;
25381 int val2 ;
25382 int ecode2 = 0 ;
25383 int val3 ;
25384 int ecode3 = 0 ;
25385 PyObject * obj0 = 0 ;
25386 PyObject * obj1 = 0 ;
25387 PyObject * obj2 = 0 ;
25388 char * kwnames[] = {
25389 (char *) "self",(char *) "rows",(char *) "cols", NULL
25390 };
25391
25392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25394 if (!SWIG_IsOK(res1)) {
25395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25396 }
25397 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25398 ecode2 = SWIG_AsVal_int(obj1, &val2);
25399 if (!SWIG_IsOK(ecode2)) {
25400 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "2"" of type '" "int""'");
25401 }
25402 arg2 = static_cast< int >(val2);
25403 ecode3 = SWIG_AsVal_int(obj2, &val3);
25404 if (!SWIG_IsOK(ecode3)) {
25405 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "3"" of type '" "int""'");
25406 }
25407 arg3 = static_cast< int >(val3);
25408 {
25409 PyThreadState* __tstate = wxPyBeginAllowThreads();
25410 (arg1)->SetMaxRowsCols(arg2,arg3);
25411 wxPyEndAllowThreads(__tstate);
25412 if (PyErr_Occurred()) SWIG_fail;
25413 }
25414 resultobj = SWIG_Py_Void();
25415 return resultobj;
25416fail:
25417 return NULL;
d55e5bfc
RD
25418}
25419
25420
1bd55598
RD
25421SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25422 PyObject *resultobj = 0;
25423 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25424 int result;
25425 void *argp1 = 0 ;
25426 int res1 = 0 ;
25427 PyObject *swig_obj[1] ;
25428
25429 if (!args) SWIG_fail;
25430 swig_obj[0] = args;
25431 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25432 if (!SWIG_IsOK(res1)) {
25433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25434 }
25435 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25436 {
25437 PyThreadState* __tstate = wxPyBeginAllowThreads();
25438 result = (int)(arg1)->GetMaxRows();
25439 wxPyEndAllowThreads(__tstate);
25440 if (PyErr_Occurred()) SWIG_fail;
25441 }
25442 resultobj = SWIG_From_int(static_cast< int >(result));
25443 return resultobj;
25444fail:
25445 return NULL;
d55e5bfc
RD
25446}
25447
25448
1bd55598
RD
25449SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25450 PyObject *resultobj = 0;
25451 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25452 int result;
25453 void *argp1 = 0 ;
25454 int res1 = 0 ;
25455 PyObject *swig_obj[1] ;
25456
25457 if (!args) SWIG_fail;
25458 swig_obj[0] = args;
25459 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25460 if (!SWIG_IsOK(res1)) {
25461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25462 }
25463 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25464 {
25465 PyThreadState* __tstate = wxPyBeginAllowThreads();
25466 result = (int)(arg1)->GetMaxCols();
25467 wxPyEndAllowThreads(__tstate);
25468 if (PyErr_Occurred()) SWIG_fail;
25469 }
25470 resultobj = SWIG_From_int(static_cast< int >(result));
25471 return resultobj;
25472fail:
25473 return NULL;
25474}
25475
25476
25477SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25478 PyObject *resultobj = 0;
25479 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25480 wxSize *arg2 = 0 ;
25481 void *argp1 = 0 ;
25482 int res1 = 0 ;
25483 wxSize temp2 ;
25484 PyObject * obj0 = 0 ;
25485 PyObject * obj1 = 0 ;
25486 char * kwnames[] = {
25487 (char *) "self",(char *) "size", NULL
25488 };
25489
25490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) SWIG_fail;
25491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25492 if (!SWIG_IsOK(res1)) {
25493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25494 }
25495 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25496 {
25497 arg2 = &temp2;
25498 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25499 }
25500 {
25501 PyThreadState* __tstate = wxPyBeginAllowThreads();
25502 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
25503 wxPyEndAllowThreads(__tstate);
25504 if (PyErr_Occurred()) SWIG_fail;
25505 }
25506 resultobj = SWIG_Py_Void();
25507 return resultobj;
25508fail:
25509 return NULL;
d55e5bfc
RD
25510}
25511
25512
1bd55598
RD
25513SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25514 PyObject *resultobj = 0;
25515 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25516 wxSize result;
25517 void *argp1 = 0 ;
25518 int res1 = 0 ;
25519 PyObject *swig_obj[1] ;
25520
25521 if (!args) SWIG_fail;
25522 swig_obj[0] = args;
25523 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25524 if (!SWIG_IsOK(res1)) {
25525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25526 }
25527 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25528 {
25529 PyThreadState* __tstate = wxPyBeginAllowThreads();
25530 result = (arg1)->GetToolBitmapSize();
25531 wxPyEndAllowThreads(__tstate);
25532 if (PyErr_Occurred()) SWIG_fail;
25533 }
25534 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25535 return resultobj;
25536fail:
25537 return NULL;
d55e5bfc
RD
25538}
25539
25540
1bd55598
RD
25541SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25542 PyObject *resultobj = 0;
25543 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25544 wxSize result;
25545 void *argp1 = 0 ;
25546 int res1 = 0 ;
25547 PyObject *swig_obj[1] ;
25548
25549 if (!args) SWIG_fail;
25550 swig_obj[0] = args;
25551 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25552 if (!SWIG_IsOK(res1)) {
25553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25554 }
25555 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25556 {
25557 PyThreadState* __tstate = wxPyBeginAllowThreads();
25558 result = (arg1)->GetToolSize();
25559 wxPyEndAllowThreads(__tstate);
25560 if (PyErr_Occurred()) SWIG_fail;
25561 }
25562 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25563 return resultobj;
25564fail:
25565 return NULL;
25566}
25567
25568
25569SWIGINTERN PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25570 PyObject *resultobj = 0;
25571 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25572 int arg2 ;
25573 int arg3 ;
25574 wxToolBarToolBase *result = 0 ;
25575 void *argp1 = 0 ;
25576 int res1 = 0 ;
25577 int val2 ;
25578 int ecode2 = 0 ;
25579 int val3 ;
25580 int ecode3 = 0 ;
25581 PyObject * obj0 = 0 ;
25582 PyObject * obj1 = 0 ;
25583 PyObject * obj2 = 0 ;
25584 char * kwnames[] = {
25585 (char *) "self",(char *) "x",(char *) "y", NULL
25586 };
25587
25588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25590 if (!SWIG_IsOK(res1)) {
25591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25592 }
25593 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25594 ecode2 = SWIG_AsVal_int(obj1, &val2);
25595 if (!SWIG_IsOK(ecode2)) {
25596 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "2"" of type '" "int""'");
25597 }
25598 arg2 = static_cast< int >(val2);
25599 ecode3 = SWIG_AsVal_int(obj2, &val3);
25600 if (!SWIG_IsOK(ecode3)) {
25601 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "3"" of type '" "int""'");
25602 }
25603 arg3 = static_cast< int >(val3);
25604 {
25605 PyThreadState* __tstate = wxPyBeginAllowThreads();
25606 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
25607 wxPyEndAllowThreads(__tstate);
25608 if (PyErr_Occurred()) SWIG_fail;
25609 }
25610 {
25611 resultobj = wxPyMake_wxObject(result, (bool)0);
25612 }
25613 return resultobj;
25614fail:
25615 return NULL;
25616}
25617
25618
25619SWIGINTERN PyObject *_wrap_ToolBarBase_FindById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25620 PyObject *resultobj = 0;
25621 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25622 int arg2 ;
25623 wxToolBarToolBase *result = 0 ;
25624 void *argp1 = 0 ;
25625 int res1 = 0 ;
25626 int val2 ;
25627 int ecode2 = 0 ;
25628 PyObject * obj0 = 0 ;
25629 PyObject * obj1 = 0 ;
25630 char * kwnames[] = {
25631 (char *) "self",(char *) "toolid", NULL
25632 };
25633
25634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) SWIG_fail;
25635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25636 if (!SWIG_IsOK(res1)) {
25637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindById" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25638 }
25639 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25640 ecode2 = SWIG_AsVal_int(obj1, &val2);
25641 if (!SWIG_IsOK(ecode2)) {
25642 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindById" "', expected argument " "2"" of type '" "int""'");
25643 }
25644 arg2 = static_cast< int >(val2);
25645 {
25646 PyThreadState* __tstate = wxPyBeginAllowThreads();
25647 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
25648 wxPyEndAllowThreads(__tstate);
25649 if (PyErr_Occurred()) SWIG_fail;
25650 }
25651 {
25652 resultobj = wxPyMake_wxObject(result, (bool)0);
25653 }
25654 return resultobj;
25655fail:
25656 return NULL;
d55e5bfc
RD
25657}
25658
25659
1bd55598
RD
25660SWIGINTERN PyObject *_wrap_ToolBarBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25661 PyObject *resultobj = 0;
25662 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25663 bool result;
25664 void *argp1 = 0 ;
25665 int res1 = 0 ;
25666 PyObject *swig_obj[1] ;
25667
25668 if (!args) SWIG_fail;
25669 swig_obj[0] = args;
25670 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25671 if (!SWIG_IsOK(res1)) {
25672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_IsVertical" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25673 }
25674 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25675 {
25676 PyThreadState* __tstate = wxPyBeginAllowThreads();
25677 result = (bool)(arg1)->IsVertical();
25678 wxPyEndAllowThreads(__tstate);
25679 if (PyErr_Occurred()) SWIG_fail;
25680 }
25681 {
25682 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25683 }
25684 return resultobj;
25685fail:
25686 return NULL;
d55e5bfc
RD
25687}
25688
25689
1bd55598
RD
25690SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25691 PyObject *resultobj = 0;
25692 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25693 size_t result;
25694 void *argp1 = 0 ;
25695 int res1 = 0 ;
25696 PyObject *swig_obj[1] ;
25697
25698 if (!args) SWIG_fail;
25699 swig_obj[0] = args;
25700 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25701 if (!SWIG_IsOK(res1)) {
25702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolsCount" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25703 }
25704 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25705 {
25706 PyThreadState* __tstate = wxPyBeginAllowThreads();
25707 result = (size_t)((wxToolBarBase const *)arg1)->GetToolsCount();
25708 wxPyEndAllowThreads(__tstate);
25709 if (PyErr_Occurred()) SWIG_fail;
25710 }
25711 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
25712 return resultobj;
25713fail:
25714 return NULL;
25715}
25716
25717
25718SWIGINTERN PyObject *ToolBarBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25719 PyObject *obj;
25720 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25721 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarBase, SWIG_NewClientData(obj));
25722 return SWIG_Py_Void();
25723}
25724
25725SWIGINTERN PyObject *_wrap_new_ToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25726 PyObject *resultobj = 0;
25727 wxWindow *arg1 = (wxWindow *) 0 ;
25728 int arg2 = (int) -1 ;
25729 wxPoint const &arg3_defvalue = wxDefaultPosition ;
25730 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
25731 wxSize const &arg4_defvalue = wxDefaultSize ;
25732 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
25733 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25734 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
25735 wxString *arg6 = (wxString *) &arg6_defvalue ;
25736 wxToolBar *result = 0 ;
25737 void *argp1 = 0 ;
25738 int res1 = 0 ;
25739 int val2 ;
25740 int ecode2 = 0 ;
25741 wxPoint temp3 ;
25742 wxSize temp4 ;
25743 long val5 ;
25744 int ecode5 = 0 ;
25745 bool temp6 = false ;
25746 PyObject * obj0 = 0 ;
25747 PyObject * obj1 = 0 ;
25748 PyObject * obj2 = 0 ;
25749 PyObject * obj3 = 0 ;
25750 PyObject * obj4 = 0 ;
25751 PyObject * obj5 = 0 ;
25752 char * kwnames[] = {
25753 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25754 };
25755
25756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25757 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25758 if (!SWIG_IsOK(res1)) {
25759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToolBar" "', expected argument " "1"" of type '" "wxWindow *""'");
25760 }
25761 arg1 = reinterpret_cast< wxWindow * >(argp1);
25762 if (obj1) {
25763 ecode2 = SWIG_AsVal_int(obj1, &val2);
25764 if (!SWIG_IsOK(ecode2)) {
25765 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolBar" "', expected argument " "2"" of type '" "int""'");
25766 }
25767 arg2 = static_cast< int >(val2);
25768 }
25769 if (obj2) {
d55e5bfc 25770 {
1bd55598
RD
25771 arg3 = &temp3;
25772 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 25773 }
1bd55598
RD
25774 }
25775 if (obj3) {
d55e5bfc 25776 {
1bd55598
RD
25777 arg4 = &temp4;
25778 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 25779 }
1bd55598
RD
25780 }
25781 if (obj4) {
25782 ecode5 = SWIG_AsVal_long(obj4, &val5);
25783 if (!SWIG_IsOK(ecode5)) {
25784 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ToolBar" "', expected argument " "5"" of type '" "long""'");
25785 }
25786 arg5 = static_cast< long >(val5);
25787 }
25788 if (obj5) {
36ed4f51 25789 {
1bd55598
RD
25790 arg6 = wxString_in_helper(obj5);
25791 if (arg6 == NULL) SWIG_fail;
25792 temp6 = true;
36ed4f51 25793 }
1bd55598
RD
25794 }
25795 {
25796 if (!wxPyCheckForApp()) SWIG_fail;
25797 PyThreadState* __tstate = wxPyBeginAllowThreads();
25798 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
25799 wxPyEndAllowThreads(__tstate);
25800 if (PyErr_Occurred()) SWIG_fail;
25801 }
25802 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_NEW | 0 );
25803 {
25804 if (temp6)
25805 delete arg6;
25806 }
25807 return resultobj;
25808fail:
25809 {
25810 if (temp6)
25811 delete arg6;
25812 }
25813 return NULL;
d55e5bfc
RD
25814}
25815
25816
1bd55598
RD
25817SWIGINTERN PyObject *_wrap_new_PreToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25818 PyObject *resultobj = 0;
25819 wxToolBar *result = 0 ;
25820
25821 if (!SWIG_Python_UnpackTuple(args,"new_PreToolBar",0,0,0)) SWIG_fail;
25822 {
25823 if (!wxPyCheckForApp()) SWIG_fail;
25824 PyThreadState* __tstate = wxPyBeginAllowThreads();
25825 result = (wxToolBar *)new wxToolBar();
25826 wxPyEndAllowThreads(__tstate);
25827 if (PyErr_Occurred()) SWIG_fail;
25828 }
25829 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_OWN | 0 );
25830 return resultobj;
25831fail:
25832 return NULL;
25833}
25834
25835
25836SWIGINTERN PyObject *_wrap_ToolBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25837 PyObject *resultobj = 0;
25838 wxToolBar *arg1 = (wxToolBar *) 0 ;
25839 wxWindow *arg2 = (wxWindow *) 0 ;
25840 int arg3 = (int) -1 ;
25841 wxPoint const &arg4_defvalue = wxDefaultPosition ;
25842 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
25843 wxSize const &arg5_defvalue = wxDefaultSize ;
25844 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
25845 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25846 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
25847 wxString *arg7 = (wxString *) &arg7_defvalue ;
25848 bool result;
25849 void *argp1 = 0 ;
25850 int res1 = 0 ;
25851 void *argp2 = 0 ;
25852 int res2 = 0 ;
25853 int val3 ;
25854 int ecode3 = 0 ;
25855 wxPoint temp4 ;
25856 wxSize temp5 ;
25857 long val6 ;
25858 int ecode6 = 0 ;
25859 bool temp7 = false ;
25860 PyObject * obj0 = 0 ;
25861 PyObject * obj1 = 0 ;
25862 PyObject * obj2 = 0 ;
25863 PyObject * obj3 = 0 ;
25864 PyObject * obj4 = 0 ;
25865 PyObject * obj5 = 0 ;
25866 PyObject * obj6 = 0 ;
25867 char * kwnames[] = {
25868 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25869 };
25870
25871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
25873 if (!SWIG_IsOK(res1)) {
25874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_Create" "', expected argument " "1"" of type '" "wxToolBar *""'");
25875 }
25876 arg1 = reinterpret_cast< wxToolBar * >(argp1);
25877 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25878 if (!SWIG_IsOK(res2)) {
25879 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
25880 }
25881 arg2 = reinterpret_cast< wxWindow * >(argp2);
25882 if (obj2) {
25883 ecode3 = SWIG_AsVal_int(obj2, &val3);
25884 if (!SWIG_IsOK(ecode3)) {
25885 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_Create" "', expected argument " "3"" of type '" "int""'");
25886 }
25887 arg3 = static_cast< int >(val3);
25888 }
25889 if (obj3) {
d55e5bfc 25890 {
1bd55598
RD
25891 arg4 = &temp4;
25892 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 25893 }
1bd55598
RD
25894 }
25895 if (obj4) {
d55e5bfc 25896 {
1bd55598
RD
25897 arg5 = &temp5;
25898 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 25899 }
1bd55598
RD
25900 }
25901 if (obj5) {
25902 ecode6 = SWIG_AsVal_long(obj5, &val6);
25903 if (!SWIG_IsOK(ecode6)) {
25904 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBar_Create" "', expected argument " "6"" of type '" "long""'");
25905 }
25906 arg6 = static_cast< long >(val6);
25907 }
25908 if (obj6) {
36ed4f51 25909 {
1bd55598
RD
25910 arg7 = wxString_in_helper(obj6);
25911 if (arg7 == NULL) SWIG_fail;
25912 temp7 = true;
36ed4f51 25913 }
1bd55598
RD
25914 }
25915 {
25916 PyThreadState* __tstate = wxPyBeginAllowThreads();
25917 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
25918 wxPyEndAllowThreads(__tstate);
25919 if (PyErr_Occurred()) SWIG_fail;
25920 }
25921 {
25922 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25923 }
25924 {
25925 if (temp7)
25926 delete arg7;
25927 }
25928 return resultobj;
25929fail:
25930 {
25931 if (temp7)
25932 delete arg7;
25933 }
25934 return NULL;
25935}
25936
25937
1bd55598
RD
25938SWIGINTERN PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25939 PyObject *resultobj = 0;
25940 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
25941 SwigValueWrapper<wxVisualAttributes > result;
25942 int val1 ;
25943 int ecode1 = 0 ;
25944 PyObject * obj0 = 0 ;
25945 char * kwnames[] = {
25946 (char *) "variant", NULL
25947 };
25948
25949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
25950 if (obj0) {
25951 ecode1 = SWIG_AsVal_int(obj0, &val1);
25952 if (!SWIG_IsOK(ecode1)) {
25953 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
25954 }
25955 arg1 = static_cast< wxWindowVariant >(val1);
25956 }
25957 {
25958 if (!wxPyCheckForApp()) SWIG_fail;
25959 PyThreadState* __tstate = wxPyBeginAllowThreads();
25960 result = wxToolBar::GetClassDefaultAttributes(arg1);
25961 wxPyEndAllowThreads(__tstate);
25962 if (PyErr_Occurred()) SWIG_fail;
25963 }
25964 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
25965 return resultobj;
25966fail:
25967 return NULL;
d55e5bfc
RD
25968}
25969
25970
1bd55598
RD
25971SWIGINTERN PyObject *ToolBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25972 PyObject *obj;
25973 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25974 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBar, SWIG_NewClientData(obj));
25975 return SWIG_Py_Void();
d55e5bfc
RD
25976}
25977
1bd55598
RD
25978SWIGINTERN PyObject *ToolBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25979 return SWIG_Python_InitShadowInstance(args);
25980}
d55e5bfc 25981
1bd55598
RD
25982SWIGINTERN int ListCtrlNameStr_set(PyObject *) {
25983 SWIG_Error(SWIG_AttributeError,"Variable ListCtrlNameStr is read-only.");
25984 return 1;
d55e5bfc
RD
25985}
25986
25987
1bd55598
RD
25988SWIGINTERN PyObject *ListCtrlNameStr_get(void) {
25989 PyObject *pyobj = 0;
25990
25991 {
25992#if wxUSE_UNICODE
25993 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
25994#else
25995 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
25996#endif
25997 }
25998 return pyobj;
25999}
26000
26001
26002SWIGINTERN PyObject *_wrap_new_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26003 PyObject *resultobj = 0;
26004 wxColour const &arg1_defvalue = wxNullColour ;
26005 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
26006 wxColour const &arg2_defvalue = wxNullColour ;
26007 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
26008 wxFont const &arg3_defvalue = wxNullFont ;
26009 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
26010 wxListItemAttr *result = 0 ;
26011 wxColour temp1 ;
26012 wxColour temp2 ;
26013 void *argp3 = 0 ;
26014 int res3 = 0 ;
26015 PyObject * obj0 = 0 ;
26016 PyObject * obj1 = 0 ;
26017 PyObject * obj2 = 0 ;
26018 char * kwnames[] = {
26019 (char *) "colText",(char *) "colBack",(char *) "font", NULL
26020 };
26021
26022 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26023 if (obj0) {
d55e5bfc 26024 {
1bd55598
RD
26025 arg1 = &temp1;
26026 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
d55e5bfc 26027 }
1bd55598
RD
26028 }
26029 if (obj1) {
36ed4f51 26030 {
1bd55598
RD
26031 arg2 = &temp2;
26032 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
36ed4f51 26033 }
1bd55598
RD
26034 }
26035 if (obj2) {
26036 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
26037 if (!SWIG_IsOK(res3)) {
26038 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
d55e5bfc 26039 }
1bd55598
RD
26040 if (!argp3) {
26041 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
36ed4f51 26042 }
1bd55598
RD
26043 arg3 = reinterpret_cast< wxFont * >(argp3);
26044 }
26045 {
26046 PyThreadState* __tstate = wxPyBeginAllowThreads();
26047 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
26048 wxPyEndAllowThreads(__tstate);
26049 if (PyErr_Occurred()) SWIG_fail;
26050 }
26051 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_NEW | 0 );
26052 return resultobj;
26053fail:
26054 return NULL;
d55e5bfc
RD
26055}
26056
26057
1bd55598
RD
26058SWIGINTERN PyObject *_wrap_delete_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26059 PyObject *resultobj = 0;
26060 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26061 void *argp1 = 0 ;
26062 int res1 = 0 ;
26063 PyObject *swig_obj[1] ;
26064
26065 if (!args) SWIG_fail;
26066 swig_obj[0] = args;
26067 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_DISOWN | 0 );
26068 if (!SWIG_IsOK(res1)) {
26069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItemAttr" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26070 }
26071 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26072 {
26073 PyThreadState* __tstate = wxPyBeginAllowThreads();
26074 delete arg1;
d55e5bfc 26075
1bd55598
RD
26076 wxPyEndAllowThreads(__tstate);
26077 if (PyErr_Occurred()) SWIG_fail;
26078 }
26079 resultobj = SWIG_Py_Void();
26080 return resultobj;
26081fail:
26082 return NULL;
26083}
26084
26085
26086SWIGINTERN PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26087 PyObject *resultobj = 0;
26088 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26089 wxColour *arg2 = 0 ;
26090 void *argp1 = 0 ;
26091 int res1 = 0 ;
26092 wxColour temp2 ;
26093 PyObject * obj0 = 0 ;
26094 PyObject * obj1 = 0 ;
26095 char * kwnames[] = {
26096 (char *) "self",(char *) "colText", NULL
26097 };
26098
26099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
26100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26101 if (!SWIG_IsOK(res1)) {
26102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26103 }
26104 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26105 {
26106 arg2 = &temp2;
26107 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26108 }
26109 {
26110 PyThreadState* __tstate = wxPyBeginAllowThreads();
26111 (arg1)->SetTextColour((wxColour const &)*arg2);
26112 wxPyEndAllowThreads(__tstate);
26113 if (PyErr_Occurred()) SWIG_fail;
26114 }
26115 resultobj = SWIG_Py_Void();
26116 return resultobj;
26117fail:
26118 return NULL;
26119}
26120
26121
26122SWIGINTERN PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26123 PyObject *resultobj = 0;
26124 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26125 wxColour *arg2 = 0 ;
26126 void *argp1 = 0 ;
26127 int res1 = 0 ;
26128 wxColour temp2 ;
26129 PyObject * obj0 = 0 ;
26130 PyObject * obj1 = 0 ;
26131 char * kwnames[] = {
26132 (char *) "self",(char *) "colBack", NULL
26133 };
26134
26135 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
26136 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26137 if (!SWIG_IsOK(res1)) {
26138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26139 }
26140 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26141 {
26142 arg2 = &temp2;
26143 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26144 }
26145 {
26146 PyThreadState* __tstate = wxPyBeginAllowThreads();
26147 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
26148 wxPyEndAllowThreads(__tstate);
26149 if (PyErr_Occurred()) SWIG_fail;
26150 }
26151 resultobj = SWIG_Py_Void();
26152 return resultobj;
26153fail:
26154 return NULL;
26155}
26156
26157
26158SWIGINTERN PyObject *_wrap_ListItemAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26159 PyObject *resultobj = 0;
26160 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26161 wxFont *arg2 = 0 ;
26162 void *argp1 = 0 ;
26163 int res1 = 0 ;
26164 void *argp2 = 0 ;
26165 int res2 = 0 ;
26166 PyObject * obj0 = 0 ;
26167 PyObject * obj1 = 0 ;
26168 char * kwnames[] = {
26169 (char *) "self",(char *) "font", NULL
26170 };
26171
26172 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26173 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26174 if (!SWIG_IsOK(res1)) {
26175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26176 }
26177 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26178 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26179 if (!SWIG_IsOK(res2)) {
26180 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26181 }
26182 if (!argp2) {
26183 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26184 }
26185 arg2 = reinterpret_cast< wxFont * >(argp2);
26186 {
26187 PyThreadState* __tstate = wxPyBeginAllowThreads();
26188 (arg1)->SetFont((wxFont const &)*arg2);
26189 wxPyEndAllowThreads(__tstate);
26190 if (PyErr_Occurred()) SWIG_fail;
26191 }
26192 resultobj = SWIG_Py_Void();
26193 return resultobj;
26194fail:
26195 return NULL;
d55e5bfc
RD
26196}
26197
26198
1bd55598
RD
26199SWIGINTERN PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26200 PyObject *resultobj = 0;
26201 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26202 bool result;
26203 void *argp1 = 0 ;
26204 int res1 = 0 ;
26205 PyObject *swig_obj[1] ;
26206
26207 if (!args) SWIG_fail;
26208 swig_obj[0] = args;
26209 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26210 if (!SWIG_IsOK(res1)) {
26211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26212 }
26213 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26214 {
26215 PyThreadState* __tstate = wxPyBeginAllowThreads();
26216 result = (bool)(arg1)->HasTextColour();
26217 wxPyEndAllowThreads(__tstate);
26218 if (PyErr_Occurred()) SWIG_fail;
26219 }
26220 {
26221 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26222 }
26223 return resultobj;
26224fail:
26225 return NULL;
f20a2e1f
RD
26226}
26227
26228
1bd55598
RD
26229SWIGINTERN PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26230 PyObject *resultobj = 0;
26231 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26232 bool result;
26233 void *argp1 = 0 ;
26234 int res1 = 0 ;
26235 PyObject *swig_obj[1] ;
26236
26237 if (!args) SWIG_fail;
26238 swig_obj[0] = args;
26239 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26240 if (!SWIG_IsOK(res1)) {
26241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26242 }
26243 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26244 {
26245 PyThreadState* __tstate = wxPyBeginAllowThreads();
26246 result = (bool)(arg1)->HasBackgroundColour();
26247 wxPyEndAllowThreads(__tstate);
26248 if (PyErr_Occurred()) SWIG_fail;
26249 }
26250 {
26251 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26252 }
26253 return resultobj;
26254fail:
26255 return NULL;
d55e5bfc 26256}
1bd55598
RD
26257
26258
26259SWIGINTERN PyObject *_wrap_ListItemAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26260 PyObject *resultobj = 0;
26261 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26262 bool result;
26263 void *argp1 = 0 ;
26264 int res1 = 0 ;
26265 PyObject *swig_obj[1] ;
26266
26267 if (!args) SWIG_fail;
26268 swig_obj[0] = args;
26269 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26270 if (!SWIG_IsOK(res1)) {
26271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26272 }
26273 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26274 {
26275 PyThreadState* __tstate = wxPyBeginAllowThreads();
26276 result = (bool)(arg1)->HasFont();
26277 wxPyEndAllowThreads(__tstate);
26278 if (PyErr_Occurred()) SWIG_fail;
26279 }
26280 {
26281 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26282 }
26283 return resultobj;
26284fail:
26285 return NULL;
d55e5bfc
RD
26286}
26287
26288
1bd55598
RD
26289SWIGINTERN PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26290 PyObject *resultobj = 0;
26291 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26292 wxColour result;
26293 void *argp1 = 0 ;
26294 int res1 = 0 ;
26295 PyObject *swig_obj[1] ;
26296
26297 if (!args) SWIG_fail;
26298 swig_obj[0] = args;
26299 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26300 if (!SWIG_IsOK(res1)) {
26301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26302 }
26303 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26304 {
26305 PyThreadState* __tstate = wxPyBeginAllowThreads();
26306 result = (arg1)->GetTextColour();
26307 wxPyEndAllowThreads(__tstate);
26308 if (PyErr_Occurred()) SWIG_fail;
26309 }
26310 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26311 return resultobj;
26312fail:
26313 return NULL;
d55e5bfc
RD
26314}
26315
26316
1bd55598
RD
26317SWIGINTERN PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26318 PyObject *resultobj = 0;
26319 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26320 wxColour result;
26321 void *argp1 = 0 ;
26322 int res1 = 0 ;
26323 PyObject *swig_obj[1] ;
26324
26325 if (!args) SWIG_fail;
26326 swig_obj[0] = args;
26327 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26328 if (!SWIG_IsOK(res1)) {
26329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26330 }
26331 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26332 {
26333 PyThreadState* __tstate = wxPyBeginAllowThreads();
26334 result = (arg1)->GetBackgroundColour();
26335 wxPyEndAllowThreads(__tstate);
26336 if (PyErr_Occurred()) SWIG_fail;
26337 }
26338 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26339 return resultobj;
26340fail:
26341 return NULL;
d55e5bfc
RD
26342}
26343
26344
1bd55598
RD
26345SWIGINTERN PyObject *_wrap_ListItemAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26346 PyObject *resultobj = 0;
26347 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26348 wxFont result;
26349 void *argp1 = 0 ;
26350 int res1 = 0 ;
26351 PyObject *swig_obj[1] ;
26352
26353 if (!args) SWIG_fail;
26354 swig_obj[0] = args;
26355 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26356 if (!SWIG_IsOK(res1)) {
26357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26358 }
26359 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26360 {
26361 PyThreadState* __tstate = wxPyBeginAllowThreads();
26362 result = (arg1)->GetFont();
26363 wxPyEndAllowThreads(__tstate);
26364 if (PyErr_Occurred()) SWIG_fail;
26365 }
26366 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
26367 return resultobj;
26368fail:
26369 return NULL;
26370}
26371
26372
26373SWIGINTERN PyObject *_wrap_ListItemAttr_AssignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26374 PyObject *resultobj = 0;
26375 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26376 wxListItemAttr *arg2 = 0 ;
26377 void *argp1 = 0 ;
26378 int res1 = 0 ;
26379 void *argp2 = 0 ;
26380 int res2 = 0 ;
26381 PyObject * obj0 = 0 ;
26382 PyObject * obj1 = 0 ;
26383 char * kwnames[] = {
26384 (char *) "self",(char *) "source", NULL
26385 };
26386
26387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_AssignFrom",kwnames,&obj0,&obj1)) SWIG_fail;
26388 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26389 if (!SWIG_IsOK(res1)) {
26390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26391 }
26392 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26393 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItemAttr, 0 | 0);
26394 if (!SWIG_IsOK(res2)) {
26395 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26396 }
26397 if (!argp2) {
26398 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26399 }
26400 arg2 = reinterpret_cast< wxListItemAttr * >(argp2);
26401 {
26402 PyThreadState* __tstate = wxPyBeginAllowThreads();
26403 (arg1)->AssignFrom((wxListItemAttr const &)*arg2);
26404 wxPyEndAllowThreads(__tstate);
26405 if (PyErr_Occurred()) SWIG_fail;
26406 }
26407 resultobj = SWIG_Py_Void();
26408 return resultobj;
26409fail:
26410 return NULL;
121b9a67
RD
26411}
26412
26413
1bd55598
RD
26414SWIGINTERN PyObject *_wrap_ListItemAttr_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26415 PyObject *resultobj = 0;
26416 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26417 void *argp1 = 0 ;
26418 int res1 = 0 ;
26419 PyObject *swig_obj[1] ;
26420
26421 if (!args) SWIG_fail;
26422 swig_obj[0] = args;
26423 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26424 if (!SWIG_IsOK(res1)) {
26425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_Destroy" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26426 }
26427 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26428 {
26429 PyThreadState* __tstate = wxPyBeginAllowThreads();
26430 wxListItemAttr_Destroy(arg1);
26431 wxPyEndAllowThreads(__tstate);
26432 if (PyErr_Occurred()) SWIG_fail;
26433 }
26434 resultobj = SWIG_Py_Void();
26435 return resultobj;
26436fail:
26437 return NULL;
121b9a67
RD
26438}
26439
26440
1bd55598
RD
26441SWIGINTERN PyObject *ListItemAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26442 PyObject *obj;
26443 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26444 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItemAttr, SWIG_NewClientData(obj));
26445 return SWIG_Py_Void();
121b9a67
RD
26446}
26447
1bd55598
RD
26448SWIGINTERN PyObject *ListItemAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26449 return SWIG_Python_InitShadowInstance(args);
26450}
121b9a67 26451
1bd55598
RD
26452SWIGINTERN PyObject *_wrap_new_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26453 PyObject *resultobj = 0;
26454 wxListItem *result = 0 ;
26455
26456 if (!SWIG_Python_UnpackTuple(args,"new_ListItem",0,0,0)) SWIG_fail;
26457 {
26458 PyThreadState* __tstate = wxPyBeginAllowThreads();
26459 result = (wxListItem *)new wxListItem();
26460 wxPyEndAllowThreads(__tstate);
26461 if (PyErr_Occurred()) SWIG_fail;
26462 }
3ecece7e 26463 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, SWIG_POINTER_NEW | 0 );
1bd55598
RD
26464 return resultobj;
26465fail:
26466 return NULL;
121b9a67
RD
26467}
26468
26469
1bd55598
RD
26470SWIGINTERN PyObject *_wrap_delete_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26471 PyObject *resultobj = 0;
26472 wxListItem *arg1 = (wxListItem *) 0 ;
26473 void *argp1 = 0 ;
26474 int res1 = 0 ;
26475 PyObject *swig_obj[1] ;
26476
26477 if (!args) SWIG_fail;
26478 swig_obj[0] = args;
26479 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, SWIG_POINTER_DISOWN | 0 );
26480 if (!SWIG_IsOK(res1)) {
26481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItem" "', expected argument " "1"" of type '" "wxListItem *""'");
26482 }
26483 arg1 = reinterpret_cast< wxListItem * >(argp1);
26484 {
26485 PyThreadState* __tstate = wxPyBeginAllowThreads();
26486 delete arg1;
f20a2e1f 26487
1bd55598
RD
26488 wxPyEndAllowThreads(__tstate);
26489 if (PyErr_Occurred()) SWIG_fail;
26490 }
26491 resultobj = SWIG_Py_Void();
26492 return resultobj;
26493fail:
26494 return NULL;
f20a2e1f
RD
26495}
26496
26497
1bd55598
RD
26498SWIGINTERN PyObject *_wrap_ListItem_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26499 PyObject *resultobj = 0;
26500 wxListItem *arg1 = (wxListItem *) 0 ;
26501 void *argp1 = 0 ;
26502 int res1 = 0 ;
26503 PyObject *swig_obj[1] ;
26504
26505 if (!args) SWIG_fail;
26506 swig_obj[0] = args;
26507 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26508 if (!SWIG_IsOK(res1)) {
26509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_Clear" "', expected argument " "1"" of type '" "wxListItem *""'");
26510 }
26511 arg1 = reinterpret_cast< wxListItem * >(argp1);
26512 {
26513 PyThreadState* __tstate = wxPyBeginAllowThreads();
26514 (arg1)->Clear();
26515 wxPyEndAllowThreads(__tstate);
26516 if (PyErr_Occurred()) SWIG_fail;
26517 }
26518 resultobj = SWIG_Py_Void();
26519 return resultobj;
26520fail:
26521 return NULL;
d55e5bfc 26522}
1bd55598
RD
26523
26524
26525SWIGINTERN PyObject *_wrap_ListItem_ClearAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26526 PyObject *resultobj = 0;
26527 wxListItem *arg1 = (wxListItem *) 0 ;
26528 void *argp1 = 0 ;
26529 int res1 = 0 ;
26530 PyObject *swig_obj[1] ;
26531
26532 if (!args) SWIG_fail;
26533 swig_obj[0] = args;
26534 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26535 if (!SWIG_IsOK(res1)) {
26536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_ClearAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26537 }
26538 arg1 = reinterpret_cast< wxListItem * >(argp1);
26539 {
26540 PyThreadState* __tstate = wxPyBeginAllowThreads();
26541 (arg1)->ClearAttributes();
26542 wxPyEndAllowThreads(__tstate);
26543 if (PyErr_Occurred()) SWIG_fail;
26544 }
26545 resultobj = SWIG_Py_Void();
26546 return resultobj;
26547fail:
26548 return NULL;
26549}
26550
26551
26552SWIGINTERN PyObject *_wrap_ListItem_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26553 PyObject *resultobj = 0;
26554 wxListItem *arg1 = (wxListItem *) 0 ;
26555 long arg2 ;
26556 void *argp1 = 0 ;
26557 int res1 = 0 ;
26558 long val2 ;
26559 int ecode2 = 0 ;
26560 PyObject * obj0 = 0 ;
26561 PyObject * obj1 = 0 ;
26562 char * kwnames[] = {
26563 (char *) "self",(char *) "mask", NULL
26564 };
26565
26566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
26567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26568 if (!SWIG_IsOK(res1)) {
26569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26570 }
26571 arg1 = reinterpret_cast< wxListItem * >(argp1);
26572 ecode2 = SWIG_AsVal_long(obj1, &val2);
26573 if (!SWIG_IsOK(ecode2)) {
26574 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetMask" "', expected argument " "2"" of type '" "long""'");
26575 }
26576 arg2 = static_cast< long >(val2);
26577 {
26578 PyThreadState* __tstate = wxPyBeginAllowThreads();
26579 (arg1)->SetMask(arg2);
26580 wxPyEndAllowThreads(__tstate);
26581 if (PyErr_Occurred()) SWIG_fail;
26582 }
26583 resultobj = SWIG_Py_Void();
26584 return resultobj;
26585fail:
26586 return NULL;
26587}
26588
26589
26590SWIGINTERN PyObject *_wrap_ListItem_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26591 PyObject *resultobj = 0;
26592 wxListItem *arg1 = (wxListItem *) 0 ;
26593 long arg2 ;
26594 void *argp1 = 0 ;
26595 int res1 = 0 ;
26596 long val2 ;
26597 int ecode2 = 0 ;
26598 PyObject * obj0 = 0 ;
26599 PyObject * obj1 = 0 ;
26600 char * kwnames[] = {
26601 (char *) "self",(char *) "id", NULL
26602 };
26603
26604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
26605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26606 if (!SWIG_IsOK(res1)) {
26607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26608 }
26609 arg1 = reinterpret_cast< wxListItem * >(argp1);
26610 ecode2 = SWIG_AsVal_long(obj1, &val2);
26611 if (!SWIG_IsOK(ecode2)) {
26612 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetId" "', expected argument " "2"" of type '" "long""'");
26613 }
26614 arg2 = static_cast< long >(val2);
26615 {
26616 PyThreadState* __tstate = wxPyBeginAllowThreads();
26617 (arg1)->SetId(arg2);
26618 wxPyEndAllowThreads(__tstate);
26619 if (PyErr_Occurred()) SWIG_fail;
26620 }
26621 resultobj = SWIG_Py_Void();
26622 return resultobj;
26623fail:
26624 return NULL;
26625}
26626
26627
26628SWIGINTERN PyObject *_wrap_ListItem_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26629 PyObject *resultobj = 0;
26630 wxListItem *arg1 = (wxListItem *) 0 ;
26631 int arg2 ;
26632 void *argp1 = 0 ;
26633 int res1 = 0 ;
26634 int val2 ;
26635 int ecode2 = 0 ;
26636 PyObject * obj0 = 0 ;
26637 PyObject * obj1 = 0 ;
26638 char * kwnames[] = {
26639 (char *) "self",(char *) "col", NULL
26640 };
26641
26642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
26643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26644 if (!SWIG_IsOK(res1)) {
26645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26646 }
26647 arg1 = reinterpret_cast< wxListItem * >(argp1);
26648 ecode2 = SWIG_AsVal_int(obj1, &val2);
26649 if (!SWIG_IsOK(ecode2)) {
26650 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetColumn" "', expected argument " "2"" of type '" "int""'");
26651 }
26652 arg2 = static_cast< int >(val2);
26653 {
26654 PyThreadState* __tstate = wxPyBeginAllowThreads();
26655 (arg1)->SetColumn(arg2);
26656 wxPyEndAllowThreads(__tstate);
26657 if (PyErr_Occurred()) SWIG_fail;
26658 }
26659 resultobj = SWIG_Py_Void();
26660 return resultobj;
26661fail:
26662 return NULL;
26663}
26664
26665
26666SWIGINTERN PyObject *_wrap_ListItem_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26667 PyObject *resultobj = 0;
26668 wxListItem *arg1 = (wxListItem *) 0 ;
26669 long arg2 ;
26670 void *argp1 = 0 ;
26671 int res1 = 0 ;
26672 long val2 ;
26673 int ecode2 = 0 ;
26674 PyObject * obj0 = 0 ;
26675 PyObject * obj1 = 0 ;
26676 char * kwnames[] = {
26677 (char *) "self",(char *) "state", NULL
26678 };
26679
26680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) SWIG_fail;
26681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26682 if (!SWIG_IsOK(res1)) {
26683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26684 }
26685 arg1 = reinterpret_cast< wxListItem * >(argp1);
26686 ecode2 = SWIG_AsVal_long(obj1, &val2);
26687 if (!SWIG_IsOK(ecode2)) {
26688 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetState" "', expected argument " "2"" of type '" "long""'");
26689 }
26690 arg2 = static_cast< long >(val2);
26691 {
26692 PyThreadState* __tstate = wxPyBeginAllowThreads();
26693 (arg1)->SetState(arg2);
26694 wxPyEndAllowThreads(__tstate);
26695 if (PyErr_Occurred()) SWIG_fail;
26696 }
26697 resultobj = SWIG_Py_Void();
26698 return resultobj;
26699fail:
26700 return NULL;
26701}
26702
26703
26704SWIGINTERN PyObject *_wrap_ListItem_SetStateMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26705 PyObject *resultobj = 0;
26706 wxListItem *arg1 = (wxListItem *) 0 ;
26707 long arg2 ;
26708 void *argp1 = 0 ;
26709 int res1 = 0 ;
26710 long val2 ;
26711 int ecode2 = 0 ;
26712 PyObject * obj0 = 0 ;
26713 PyObject * obj1 = 0 ;
26714 char * kwnames[] = {
26715 (char *) "self",(char *) "stateMask", NULL
26716 };
26717
26718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) SWIG_fail;
26719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26720 if (!SWIG_IsOK(res1)) {
26721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetStateMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26722 }
26723 arg1 = reinterpret_cast< wxListItem * >(argp1);
26724 ecode2 = SWIG_AsVal_long(obj1, &val2);
26725 if (!SWIG_IsOK(ecode2)) {
26726 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetStateMask" "', expected argument " "2"" of type '" "long""'");
26727 }
26728 arg2 = static_cast< long >(val2);
26729 {
26730 PyThreadState* __tstate = wxPyBeginAllowThreads();
26731 (arg1)->SetStateMask(arg2);
26732 wxPyEndAllowThreads(__tstate);
26733 if (PyErr_Occurred()) SWIG_fail;
26734 }
26735 resultobj = SWIG_Py_Void();
26736 return resultobj;
26737fail:
26738 return NULL;
26739}
26740
26741
26742SWIGINTERN PyObject *_wrap_ListItem_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26743 PyObject *resultobj = 0;
26744 wxListItem *arg1 = (wxListItem *) 0 ;
26745 wxString *arg2 = 0 ;
26746 void *argp1 = 0 ;
26747 int res1 = 0 ;
26748 bool temp2 = false ;
26749 PyObject * obj0 = 0 ;
26750 PyObject * obj1 = 0 ;
26751 char * kwnames[] = {
26752 (char *) "self",(char *) "text", NULL
26753 };
26754
26755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) SWIG_fail;
26756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26757 if (!SWIG_IsOK(res1)) {
26758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26759 }
26760 arg1 = reinterpret_cast< wxListItem * >(argp1);
26761 {
26762 arg2 = wxString_in_helper(obj1);
26763 if (arg2 == NULL) SWIG_fail;
26764 temp2 = true;
26765 }
26766 {
26767 PyThreadState* __tstate = wxPyBeginAllowThreads();
26768 (arg1)->SetText((wxString const &)*arg2);
26769 wxPyEndAllowThreads(__tstate);
26770 if (PyErr_Occurred()) SWIG_fail;
26771 }
26772 resultobj = SWIG_Py_Void();
26773 {
26774 if (temp2)
26775 delete arg2;
26776 }
26777 return resultobj;
26778fail:
26779 {
26780 if (temp2)
26781 delete arg2;
26782 }
26783 return NULL;
26784}
26785
26786
26787SWIGINTERN PyObject *_wrap_ListItem_SetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26788 PyObject *resultobj = 0;
26789 wxListItem *arg1 = (wxListItem *) 0 ;
26790 int arg2 ;
26791 void *argp1 = 0 ;
26792 int res1 = 0 ;
26793 int val2 ;
26794 int ecode2 = 0 ;
26795 PyObject * obj0 = 0 ;
26796 PyObject * obj1 = 0 ;
26797 char * kwnames[] = {
26798 (char *) "self",(char *) "image", NULL
26799 };
26800
26801 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) SWIG_fail;
26802 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26803 if (!SWIG_IsOK(res1)) {
26804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26805 }
26806 arg1 = reinterpret_cast< wxListItem * >(argp1);
26807 ecode2 = SWIG_AsVal_int(obj1, &val2);
26808 if (!SWIG_IsOK(ecode2)) {
26809 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetImage" "', expected argument " "2"" of type '" "int""'");
26810 }
26811 arg2 = static_cast< int >(val2);
26812 {
26813 PyThreadState* __tstate = wxPyBeginAllowThreads();
26814 (arg1)->SetImage(arg2);
26815 wxPyEndAllowThreads(__tstate);
26816 if (PyErr_Occurred()) SWIG_fail;
26817 }
26818 resultobj = SWIG_Py_Void();
26819 return resultobj;
26820fail:
26821 return NULL;
26822}
26823
26824
26825SWIGINTERN PyObject *_wrap_ListItem_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26826 PyObject *resultobj = 0;
26827 wxListItem *arg1 = (wxListItem *) 0 ;
26828 long arg2 ;
26829 void *argp1 = 0 ;
26830 int res1 = 0 ;
26831 long val2 ;
26832 int ecode2 = 0 ;
26833 PyObject * obj0 = 0 ;
26834 PyObject * obj1 = 0 ;
26835 char * kwnames[] = {
26836 (char *) "self",(char *) "data", NULL
26837 };
26838
26839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
26840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26841 if (!SWIG_IsOK(res1)) {
26842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26843 }
26844 arg1 = reinterpret_cast< wxListItem * >(argp1);
26845 ecode2 = SWIG_AsVal_long(obj1, &val2);
26846 if (!SWIG_IsOK(ecode2)) {
26847 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetData" "', expected argument " "2"" of type '" "long""'");
26848 }
26849 arg2 = static_cast< long >(val2);
26850 {
26851 PyThreadState* __tstate = wxPyBeginAllowThreads();
26852 (arg1)->SetData(arg2);
26853 wxPyEndAllowThreads(__tstate);
26854 if (PyErr_Occurred()) SWIG_fail;
26855 }
26856 resultobj = SWIG_Py_Void();
26857 return resultobj;
26858fail:
26859 return NULL;
26860}
26861
26862
26863SWIGINTERN PyObject *_wrap_ListItem_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26864 PyObject *resultobj = 0;
26865 wxListItem *arg1 = (wxListItem *) 0 ;
26866 int arg2 ;
26867 void *argp1 = 0 ;
26868 int res1 = 0 ;
26869 int val2 ;
26870 int ecode2 = 0 ;
26871 PyObject * obj0 = 0 ;
26872 PyObject * obj1 = 0 ;
26873 char * kwnames[] = {
26874 (char *) "self",(char *) "width", NULL
26875 };
26876
26877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
26878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26879 if (!SWIG_IsOK(res1)) {
26880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26881 }
26882 arg1 = reinterpret_cast< wxListItem * >(argp1);
26883 ecode2 = SWIG_AsVal_int(obj1, &val2);
26884 if (!SWIG_IsOK(ecode2)) {
26885 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetWidth" "', expected argument " "2"" of type '" "int""'");
26886 }
26887 arg2 = static_cast< int >(val2);
26888 {
26889 PyThreadState* __tstate = wxPyBeginAllowThreads();
26890 (arg1)->SetWidth(arg2);
26891 wxPyEndAllowThreads(__tstate);
26892 if (PyErr_Occurred()) SWIG_fail;
26893 }
26894 resultobj = SWIG_Py_Void();
26895 return resultobj;
26896fail:
26897 return NULL;
26898}
26899
26900
26901SWIGINTERN PyObject *_wrap_ListItem_SetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26902 PyObject *resultobj = 0;
26903 wxListItem *arg1 = (wxListItem *) 0 ;
26904 wxListColumnFormat arg2 ;
26905 void *argp1 = 0 ;
26906 int res1 = 0 ;
26907 int val2 ;
26908 int ecode2 = 0 ;
26909 PyObject * obj0 = 0 ;
26910 PyObject * obj1 = 0 ;
26911 char * kwnames[] = {
26912 (char *) "self",(char *) "align", NULL
26913 };
26914
26915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) SWIG_fail;
26916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26917 if (!SWIG_IsOK(res1)) {
26918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
26919 }
26920 arg1 = reinterpret_cast< wxListItem * >(argp1);
26921 ecode2 = SWIG_AsVal_int(obj1, &val2);
26922 if (!SWIG_IsOK(ecode2)) {
26923 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetAlign" "', expected argument " "2"" of type '" "wxListColumnFormat""'");
26924 }
26925 arg2 = static_cast< wxListColumnFormat >(val2);
26926 {
26927 PyThreadState* __tstate = wxPyBeginAllowThreads();
26928 (arg1)->SetAlign(arg2);
26929 wxPyEndAllowThreads(__tstate);
26930 if (PyErr_Occurred()) SWIG_fail;
26931 }
26932 resultobj = SWIG_Py_Void();
26933 return resultobj;
26934fail:
26935 return NULL;
26936}
26937
26938
26939SWIGINTERN PyObject *_wrap_ListItem_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26940 PyObject *resultobj = 0;
26941 wxListItem *arg1 = (wxListItem *) 0 ;
26942 wxColour *arg2 = 0 ;
26943 void *argp1 = 0 ;
26944 int res1 = 0 ;
26945 wxColour temp2 ;
26946 PyObject * obj0 = 0 ;
26947 PyObject * obj1 = 0 ;
26948 char * kwnames[] = {
26949 (char *) "self",(char *) "colText", NULL
26950 };
26951
26952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
26953 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26954 if (!SWIG_IsOK(res1)) {
26955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetTextColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26956 }
26957 arg1 = reinterpret_cast< wxListItem * >(argp1);
26958 {
26959 arg2 = &temp2;
26960 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26961 }
26962 {
26963 PyThreadState* __tstate = wxPyBeginAllowThreads();
26964 (arg1)->SetTextColour((wxColour const &)*arg2);
26965 wxPyEndAllowThreads(__tstate);
26966 if (PyErr_Occurred()) SWIG_fail;
26967 }
26968 resultobj = SWIG_Py_Void();
26969 return resultobj;
26970fail:
26971 return NULL;
26972}
26973
26974
26975SWIGINTERN PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26976 PyObject *resultobj = 0;
26977 wxListItem *arg1 = (wxListItem *) 0 ;
26978 wxColour *arg2 = 0 ;
26979 void *argp1 = 0 ;
26980 int res1 = 0 ;
26981 wxColour temp2 ;
26982 PyObject * obj0 = 0 ;
26983 PyObject * obj1 = 0 ;
26984 char * kwnames[] = {
26985 (char *) "self",(char *) "colBack", NULL
26986 };
26987
26988 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
26989 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26990 if (!SWIG_IsOK(res1)) {
26991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26992 }
26993 arg1 = reinterpret_cast< wxListItem * >(argp1);
26994 {
26995 arg2 = &temp2;
26996 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26997 }
26998 {
26999 PyThreadState* __tstate = wxPyBeginAllowThreads();
27000 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
27001 wxPyEndAllowThreads(__tstate);
27002 if (PyErr_Occurred()) SWIG_fail;
27003 }
27004 resultobj = SWIG_Py_Void();
27005 return resultobj;
27006fail:
27007 return NULL;
27008}
27009
27010
27011SWIGINTERN PyObject *_wrap_ListItem_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27012 PyObject *resultobj = 0;
27013 wxListItem *arg1 = (wxListItem *) 0 ;
27014 wxFont *arg2 = 0 ;
27015 void *argp1 = 0 ;
27016 int res1 = 0 ;
27017 void *argp2 = 0 ;
27018 int res2 = 0 ;
27019 PyObject * obj0 = 0 ;
27020 PyObject * obj1 = 0 ;
27021 char * kwnames[] = {
27022 (char *) "self",(char *) "font", NULL
27023 };
27024
27025 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
27026 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27027 if (!SWIG_IsOK(res1)) {
27028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetFont" "', expected argument " "1"" of type '" "wxListItem *""'");
27029 }
27030 arg1 = reinterpret_cast< wxListItem * >(argp1);
27031 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
27032 if (!SWIG_IsOK(res2)) {
27033 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
27034 }
27035 if (!argp2) {
27036 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
27037 }
27038 arg2 = reinterpret_cast< wxFont * >(argp2);
27039 {
27040 PyThreadState* __tstate = wxPyBeginAllowThreads();
27041 (arg1)->SetFont((wxFont const &)*arg2);
27042 wxPyEndAllowThreads(__tstate);
27043 if (PyErr_Occurred()) SWIG_fail;
27044 }
27045 resultobj = SWIG_Py_Void();
27046 return resultobj;
27047fail:
27048 return NULL;
d55e5bfc
RD
27049}
27050
27051
1bd55598
RD
27052SWIGINTERN PyObject *_wrap_ListItem_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27053 PyObject *resultobj = 0;
27054 wxListItem *arg1 = (wxListItem *) 0 ;
27055 long result;
27056 void *argp1 = 0 ;
27057 int res1 = 0 ;
27058 PyObject *swig_obj[1] ;
27059
27060 if (!args) SWIG_fail;
27061 swig_obj[0] = args;
27062 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27063 if (!SWIG_IsOK(res1)) {
27064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
27065 }
27066 arg1 = reinterpret_cast< wxListItem * >(argp1);
27067 {
27068 PyThreadState* __tstate = wxPyBeginAllowThreads();
27069 result = (long)(arg1)->GetMask();
27070 wxPyEndAllowThreads(__tstate);
27071 if (PyErr_Occurred()) SWIG_fail;
27072 }
27073 resultobj = SWIG_From_long(static_cast< long >(result));
27074 return resultobj;
27075fail:
27076 return NULL;
d55e5bfc
RD
27077}
27078
27079
1bd55598
RD
27080SWIGINTERN PyObject *_wrap_ListItem_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27081 PyObject *resultobj = 0;
27082 wxListItem *arg1 = (wxListItem *) 0 ;
27083 long result;
27084 void *argp1 = 0 ;
27085 int res1 = 0 ;
27086 PyObject *swig_obj[1] ;
27087
27088 if (!args) SWIG_fail;
27089 swig_obj[0] = args;
27090 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27091 if (!SWIG_IsOK(res1)) {
27092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetId" "', expected argument " "1"" of type '" "wxListItem *""'");
27093 }
27094 arg1 = reinterpret_cast< wxListItem * >(argp1);
27095 {
27096 PyThreadState* __tstate = wxPyBeginAllowThreads();
27097 result = (long)(arg1)->GetId();
27098 wxPyEndAllowThreads(__tstate);
27099 if (PyErr_Occurred()) SWIG_fail;
27100 }
27101 resultobj = SWIG_From_long(static_cast< long >(result));
27102 return resultobj;
27103fail:
27104 return NULL;
d55e5bfc
RD
27105}
27106
27107
1bd55598
RD
27108SWIGINTERN PyObject *_wrap_ListItem_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27109 PyObject *resultobj = 0;
27110 wxListItem *arg1 = (wxListItem *) 0 ;
27111 int result;
27112 void *argp1 = 0 ;
27113 int res1 = 0 ;
27114 PyObject *swig_obj[1] ;
27115
27116 if (!args) SWIG_fail;
27117 swig_obj[0] = args;
27118 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27119 if (!SWIG_IsOK(res1)) {
27120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
27121 }
27122 arg1 = reinterpret_cast< wxListItem * >(argp1);
27123 {
27124 PyThreadState* __tstate = wxPyBeginAllowThreads();
27125 result = (int)(arg1)->GetColumn();
27126 wxPyEndAllowThreads(__tstate);
27127 if (PyErr_Occurred()) SWIG_fail;
27128 }
27129 resultobj = SWIG_From_int(static_cast< int >(result));
27130 return resultobj;
27131fail:
27132 return NULL;
d55e5bfc
RD
27133}
27134
27135
1bd55598
RD
27136SWIGINTERN PyObject *_wrap_ListItem_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27137 PyObject *resultobj = 0;
27138 wxListItem *arg1 = (wxListItem *) 0 ;
27139 long result;
27140 void *argp1 = 0 ;
27141 int res1 = 0 ;
27142 PyObject *swig_obj[1] ;
27143
27144 if (!args) SWIG_fail;
27145 swig_obj[0] = args;
27146 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27147 if (!SWIG_IsOK(res1)) {
27148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetState" "', expected argument " "1"" of type '" "wxListItem *""'");
27149 }
27150 arg1 = reinterpret_cast< wxListItem * >(argp1);
27151 {
27152 PyThreadState* __tstate = wxPyBeginAllowThreads();
27153 result = (long)(arg1)->GetState();
27154 wxPyEndAllowThreads(__tstate);
27155 if (PyErr_Occurred()) SWIG_fail;
27156 }
27157 resultobj = SWIG_From_long(static_cast< long >(result));
27158 return resultobj;
27159fail:
27160 return NULL;
8fb0e70a
RD
27161}
27162
27163
1bd55598
RD
27164SWIGINTERN PyObject *_wrap_ListItem_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27165 PyObject *resultobj = 0;
27166 wxListItem *arg1 = (wxListItem *) 0 ;
27167 wxString *result = 0 ;
27168 void *argp1 = 0 ;
27169 int res1 = 0 ;
27170 PyObject *swig_obj[1] ;
27171
27172 if (!args) SWIG_fail;
27173 swig_obj[0] = args;
27174 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27175 if (!SWIG_IsOK(res1)) {
27176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetText" "', expected argument " "1"" of type '" "wxListItem *""'");
27177 }
27178 arg1 = reinterpret_cast< wxListItem * >(argp1);
27179 {
27180 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 27181 {
1bd55598
RD
27182 wxString const &_result_ref = (arg1)->GetText();
27183 result = (wxString *) &_result_ref;
36ed4f51 27184 }
1bd55598
RD
27185 wxPyEndAllowThreads(__tstate);
27186 if (PyErr_Occurred()) SWIG_fail;
27187 }
27188 {
27189#if wxUSE_UNICODE
27190 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27191#else
27192 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27193#endif
27194 }
27195 return resultobj;
27196fail:
27197 return NULL;
d55e5bfc
RD
27198}
27199
27200
1bd55598
RD
27201SWIGINTERN PyObject *_wrap_ListItem_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27202 PyObject *resultobj = 0;
27203 wxListItem *arg1 = (wxListItem *) 0 ;
27204 int result;
27205 void *argp1 = 0 ;
27206 int res1 = 0 ;
27207 PyObject *swig_obj[1] ;
27208
27209 if (!args) SWIG_fail;
27210 swig_obj[0] = args;
27211 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27212 if (!SWIG_IsOK(res1)) {
27213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
27214 }
27215 arg1 = reinterpret_cast< wxListItem * >(argp1);
27216 {
27217 PyThreadState* __tstate = wxPyBeginAllowThreads();
27218 result = (int)(arg1)->GetImage();
27219 wxPyEndAllowThreads(__tstate);
27220 if (PyErr_Occurred()) SWIG_fail;
27221 }
27222 resultobj = SWIG_From_int(static_cast< int >(result));
27223 return resultobj;
27224fail:
27225 return NULL;
d55e5bfc
RD
27226}
27227
27228
1bd55598
RD
27229SWIGINTERN PyObject *_wrap_ListItem_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27230 PyObject *resultobj = 0;
27231 wxListItem *arg1 = (wxListItem *) 0 ;
27232 long result;
27233 void *argp1 = 0 ;
27234 int res1 = 0 ;
27235 PyObject *swig_obj[1] ;
27236
27237 if (!args) SWIG_fail;
27238 swig_obj[0] = args;
27239 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27240 if (!SWIG_IsOK(res1)) {
27241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetData" "', expected argument " "1"" of type '" "wxListItem *""'");
27242 }
27243 arg1 = reinterpret_cast< wxListItem * >(argp1);
27244 {
27245 PyThreadState* __tstate = wxPyBeginAllowThreads();
27246 result = (long)(arg1)->GetData();
27247 wxPyEndAllowThreads(__tstate);
27248 if (PyErr_Occurred()) SWIG_fail;
27249 }
27250 resultobj = SWIG_From_long(static_cast< long >(result));
27251 return resultobj;
27252fail:
27253 return NULL;
d55e5bfc
RD
27254}
27255
27256
1bd55598
RD
27257SWIGINTERN PyObject *_wrap_ListItem_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27258 PyObject *resultobj = 0;
27259 wxListItem *arg1 = (wxListItem *) 0 ;
27260 int result;
27261 void *argp1 = 0 ;
27262 int res1 = 0 ;
27263 PyObject *swig_obj[1] ;
27264
27265 if (!args) SWIG_fail;
27266 swig_obj[0] = args;
27267 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27268 if (!SWIG_IsOK(res1)) {
27269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
27270 }
27271 arg1 = reinterpret_cast< wxListItem * >(argp1);
27272 {
27273 PyThreadState* __tstate = wxPyBeginAllowThreads();
27274 result = (int)(arg1)->GetWidth();
27275 wxPyEndAllowThreads(__tstate);
27276 if (PyErr_Occurred()) SWIG_fail;
27277 }
27278 resultobj = SWIG_From_int(static_cast< int >(result));
27279 return resultobj;
27280fail:
27281 return NULL;
d55e5bfc
RD
27282}
27283
27284
1bd55598
RD
27285SWIGINTERN PyObject *_wrap_ListItem_GetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27286 PyObject *resultobj = 0;
27287 wxListItem *arg1 = (wxListItem *) 0 ;
27288 wxListColumnFormat result;
27289 void *argp1 = 0 ;
27290 int res1 = 0 ;
27291 PyObject *swig_obj[1] ;
27292
27293 if (!args) SWIG_fail;
27294 swig_obj[0] = args;
27295 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27296 if (!SWIG_IsOK(res1)) {
27297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
27298 }
27299 arg1 = reinterpret_cast< wxListItem * >(argp1);
27300 {
27301 PyThreadState* __tstate = wxPyBeginAllowThreads();
27302 result = (wxListColumnFormat)(arg1)->GetAlign();
27303 wxPyEndAllowThreads(__tstate);
27304 if (PyErr_Occurred()) SWIG_fail;
27305 }
27306 resultobj = SWIG_From_int(static_cast< int >(result));
27307 return resultobj;
27308fail:
27309 return NULL;
d55e5bfc
RD
27310}
27311
27312
1bd55598
RD
27313SWIGINTERN PyObject *_wrap_ListItem_GetAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27314 PyObject *resultobj = 0;
27315 wxListItem *arg1 = (wxListItem *) 0 ;
27316 wxListItemAttr *result = 0 ;
27317 void *argp1 = 0 ;
27318 int res1 = 0 ;
27319 PyObject *swig_obj[1] ;
27320
27321 if (!args) SWIG_fail;
27322 swig_obj[0] = args;
27323 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27324 if (!SWIG_IsOK(res1)) {
27325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27326 }
27327 arg1 = reinterpret_cast< wxListItem * >(argp1);
27328 {
27329 PyThreadState* __tstate = wxPyBeginAllowThreads();
27330 result = (wxListItemAttr *)(arg1)->GetAttributes();
27331 wxPyEndAllowThreads(__tstate);
27332 if (PyErr_Occurred()) SWIG_fail;
27333 }
27334 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, 0 | 0 );
27335 return resultobj;
27336fail:
27337 return NULL;
d55e5bfc
RD
27338}
27339
27340
1bd55598
RD
27341SWIGINTERN PyObject *_wrap_ListItem_HasAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27342 PyObject *resultobj = 0;
27343 wxListItem *arg1 = (wxListItem *) 0 ;
27344 bool result;
27345 void *argp1 = 0 ;
27346 int res1 = 0 ;
27347 PyObject *swig_obj[1] ;
27348
27349 if (!args) SWIG_fail;
27350 swig_obj[0] = args;
27351 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27352 if (!SWIG_IsOK(res1)) {
27353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_HasAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27354 }
27355 arg1 = reinterpret_cast< wxListItem * >(argp1);
27356 {
27357 PyThreadState* __tstate = wxPyBeginAllowThreads();
27358 result = (bool)(arg1)->HasAttributes();
27359 wxPyEndAllowThreads(__tstate);
27360 if (PyErr_Occurred()) SWIG_fail;
27361 }
27362 {
27363 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27364 }
27365 return resultobj;
27366fail:
27367 return NULL;
d55e5bfc
RD
27368}
27369
27370
1bd55598
RD
27371SWIGINTERN PyObject *_wrap_ListItem_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27372 PyObject *resultobj = 0;
27373 wxListItem *arg1 = (wxListItem *) 0 ;
27374 wxColour result;
27375 void *argp1 = 0 ;
27376 int res1 = 0 ;
27377 PyObject *swig_obj[1] ;
27378
27379 if (!args) SWIG_fail;
27380 swig_obj[0] = args;
27381 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27382 if (!SWIG_IsOK(res1)) {
27383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetTextColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27384 }
27385 arg1 = reinterpret_cast< wxListItem * >(argp1);
27386 {
27387 PyThreadState* __tstate = wxPyBeginAllowThreads();
27388 result = ((wxListItem const *)arg1)->GetTextColour();
27389 wxPyEndAllowThreads(__tstate);
27390 if (PyErr_Occurred()) SWIG_fail;
27391 }
27392 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27393 return resultobj;
27394fail:
27395 return NULL;
d55e5bfc
RD
27396}
27397
27398
1bd55598
RD
27399SWIGINTERN PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27400 PyObject *resultobj = 0;
27401 wxListItem *arg1 = (wxListItem *) 0 ;
27402 wxColour result;
27403 void *argp1 = 0 ;
27404 int res1 = 0 ;
27405 PyObject *swig_obj[1] ;
27406
27407 if (!args) SWIG_fail;
27408 swig_obj[0] = args;
27409 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27410 if (!SWIG_IsOK(res1)) {
27411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27412 }
27413 arg1 = reinterpret_cast< wxListItem * >(argp1);
27414 {
27415 PyThreadState* __tstate = wxPyBeginAllowThreads();
27416 result = ((wxListItem const *)arg1)->GetBackgroundColour();
27417 wxPyEndAllowThreads(__tstate);
27418 if (PyErr_Occurred()) SWIG_fail;
27419 }
27420 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27421 return resultobj;
27422fail:
27423 return NULL;
d55e5bfc
RD
27424}
27425
27426
1bd55598
RD
27427SWIGINTERN PyObject *_wrap_ListItem_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27428 PyObject *resultobj = 0;
27429 wxListItem *arg1 = (wxListItem *) 0 ;
27430 wxFont result;
27431 void *argp1 = 0 ;
27432 int res1 = 0 ;
27433 PyObject *swig_obj[1] ;
27434
27435 if (!args) SWIG_fail;
27436 swig_obj[0] = args;
27437 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27438 if (!SWIG_IsOK(res1)) {
27439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetFont" "', expected argument " "1"" of type '" "wxListItem const *""'");
27440 }
27441 arg1 = reinterpret_cast< wxListItem * >(argp1);
27442 {
27443 PyThreadState* __tstate = wxPyBeginAllowThreads();
27444 result = ((wxListItem const *)arg1)->GetFont();
27445 wxPyEndAllowThreads(__tstate);
27446 if (PyErr_Occurred()) SWIG_fail;
27447 }
27448 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
27449 return resultobj;
27450fail:
27451 return NULL;
27452}
27453
27454
27455SWIGINTERN PyObject *_wrap_ListItem_m_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27456 PyObject *resultobj = 0;
27457 wxListItem *arg1 = (wxListItem *) 0 ;
27458 long arg2 ;
27459 void *argp1 = 0 ;
27460 int res1 = 0 ;
27461 long val2 ;
27462 int ecode2 = 0 ;
27463 PyObject *swig_obj[2] ;
27464
27465 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_mask_set",2,2,swig_obj)) SWIG_fail;
27466 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27467 if (!SWIG_IsOK(res1)) {
27468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27469 }
27470 arg1 = reinterpret_cast< wxListItem * >(argp1);
27471 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27472 if (!SWIG_IsOK(ecode2)) {
27473 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_mask_set" "', expected argument " "2"" of type '" "long""'");
27474 }
27475 arg2 = static_cast< long >(val2);
27476 if (arg1) (arg1)->m_mask = arg2;
27477
27478 resultobj = SWIG_Py_Void();
27479 return resultobj;
27480fail:
27481 return NULL;
d55e5bfc
RD
27482}
27483
27484
1bd55598
RD
27485SWIGINTERN PyObject *_wrap_ListItem_m_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27486 PyObject *resultobj = 0;
27487 wxListItem *arg1 = (wxListItem *) 0 ;
27488 long result;
27489 void *argp1 = 0 ;
27490 int res1 = 0 ;
27491 PyObject *swig_obj[1] ;
27492
27493 if (!args) SWIG_fail;
27494 swig_obj[0] = args;
27495 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27496 if (!SWIG_IsOK(res1)) {
27497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27498 }
27499 arg1 = reinterpret_cast< wxListItem * >(argp1);
27500 result = (long) ((arg1)->m_mask);
27501 resultobj = SWIG_From_long(static_cast< long >(result));
27502 return resultobj;
27503fail:
27504 return NULL;
27505}
27506
27507
27508SWIGINTERN PyObject *_wrap_ListItem_m_itemId_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27509 PyObject *resultobj = 0;
27510 wxListItem *arg1 = (wxListItem *) 0 ;
27511 long arg2 ;
27512 void *argp1 = 0 ;
27513 int res1 = 0 ;
27514 long val2 ;
27515 int ecode2 = 0 ;
27516 PyObject *swig_obj[2] ;
27517
27518 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_itemId_set",2,2,swig_obj)) SWIG_fail;
27519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27520 if (!SWIG_IsOK(res1)) {
27521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27522 }
27523 arg1 = reinterpret_cast< wxListItem * >(argp1);
27524 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27525 if (!SWIG_IsOK(ecode2)) {
27526 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_itemId_set" "', expected argument " "2"" of type '" "long""'");
27527 }
27528 arg2 = static_cast< long >(val2);
27529 if (arg1) (arg1)->m_itemId = arg2;
27530
27531 resultobj = SWIG_Py_Void();
27532 return resultobj;
27533fail:
27534 return NULL;
7e08d4ef
RD
27535}
27536
27537
1bd55598
RD
27538SWIGINTERN PyObject *_wrap_ListItem_m_itemId_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27539 PyObject *resultobj = 0;
27540 wxListItem *arg1 = (wxListItem *) 0 ;
27541 long result;
27542 void *argp1 = 0 ;
27543 int res1 = 0 ;
27544 PyObject *swig_obj[1] ;
27545
27546 if (!args) SWIG_fail;
27547 swig_obj[0] = args;
27548 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27549 if (!SWIG_IsOK(res1)) {
27550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27551 }
27552 arg1 = reinterpret_cast< wxListItem * >(argp1);
27553 result = (long) ((arg1)->m_itemId);
27554 resultobj = SWIG_From_long(static_cast< long >(result));
27555 return resultobj;
27556fail:
27557 return NULL;
27558}
27559
27560
27561SWIGINTERN PyObject *_wrap_ListItem_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27562 PyObject *resultobj = 0;
27563 wxListItem *arg1 = (wxListItem *) 0 ;
27564 int arg2 ;
27565 void *argp1 = 0 ;
27566 int res1 = 0 ;
27567 int val2 ;
27568 int ecode2 = 0 ;
27569 PyObject *swig_obj[2] ;
27570
27571 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_col_set",2,2,swig_obj)) SWIG_fail;
27572 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27573 if (!SWIG_IsOK(res1)) {
27574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27575 }
27576 arg1 = reinterpret_cast< wxListItem * >(argp1);
27577 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27578 if (!SWIG_IsOK(ecode2)) {
27579 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_col_set" "', expected argument " "2"" of type '" "int""'");
27580 }
27581 arg2 = static_cast< int >(val2);
27582 if (arg1) (arg1)->m_col = arg2;
27583
27584 resultobj = SWIG_Py_Void();
27585 return resultobj;
27586fail:
27587 return NULL;
7e08d4ef
RD
27588}
27589
27590
1bd55598
RD
27591SWIGINTERN PyObject *_wrap_ListItem_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27592 PyObject *resultobj = 0;
27593 wxListItem *arg1 = (wxListItem *) 0 ;
27594 int result;
27595 void *argp1 = 0 ;
27596 int res1 = 0 ;
27597 PyObject *swig_obj[1] ;
27598
27599 if (!args) SWIG_fail;
27600 swig_obj[0] = args;
27601 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27602 if (!SWIG_IsOK(res1)) {
27603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27604 }
27605 arg1 = reinterpret_cast< wxListItem * >(argp1);
27606 result = (int) ((arg1)->m_col);
27607 resultobj = SWIG_From_int(static_cast< int >(result));
27608 return resultobj;
27609fail:
27610 return NULL;
27611}
27612
27613
27614SWIGINTERN PyObject *_wrap_ListItem_m_state_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27615 PyObject *resultobj = 0;
27616 wxListItem *arg1 = (wxListItem *) 0 ;
27617 long arg2 ;
27618 void *argp1 = 0 ;
27619 int res1 = 0 ;
27620 long val2 ;
27621 int ecode2 = 0 ;
27622 PyObject *swig_obj[2] ;
27623
27624 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_state_set",2,2,swig_obj)) SWIG_fail;
27625 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27626 if (!SWIG_IsOK(res1)) {
27627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27628 }
27629 arg1 = reinterpret_cast< wxListItem * >(argp1);
27630 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27631 if (!SWIG_IsOK(ecode2)) {
27632 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_state_set" "', expected argument " "2"" of type '" "long""'");
27633 }
27634 arg2 = static_cast< long >(val2);
27635 if (arg1) (arg1)->m_state = arg2;
27636
27637 resultobj = SWIG_Py_Void();
27638 return resultobj;
27639fail:
27640 return NULL;
7e08d4ef
RD
27641}
27642
27643
1bd55598
RD
27644SWIGINTERN PyObject *_wrap_ListItem_m_state_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27645 PyObject *resultobj = 0;
27646 wxListItem *arg1 = (wxListItem *) 0 ;
27647 long result;
27648 void *argp1 = 0 ;
27649 int res1 = 0 ;
27650 PyObject *swig_obj[1] ;
27651
27652 if (!args) SWIG_fail;
27653 swig_obj[0] = args;
27654 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27655 if (!SWIG_IsOK(res1)) {
27656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27657 }
27658 arg1 = reinterpret_cast< wxListItem * >(argp1);
27659 result = (long) ((arg1)->m_state);
27660 resultobj = SWIG_From_long(static_cast< long >(result));
27661 return resultobj;
27662fail:
27663 return NULL;
27664}
27665
27666
27667SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27668 PyObject *resultobj = 0;
27669 wxListItem *arg1 = (wxListItem *) 0 ;
27670 long arg2 ;
27671 void *argp1 = 0 ;
27672 int res1 = 0 ;
27673 long val2 ;
27674 int ecode2 = 0 ;
27675 PyObject *swig_obj[2] ;
27676
27677 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_stateMask_set",2,2,swig_obj)) SWIG_fail;
27678 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27679 if (!SWIG_IsOK(res1)) {
27680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27681 }
27682 arg1 = reinterpret_cast< wxListItem * >(argp1);
27683 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27684 if (!SWIG_IsOK(ecode2)) {
27685 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_stateMask_set" "', expected argument " "2"" of type '" "long""'");
27686 }
27687 arg2 = static_cast< long >(val2);
27688 if (arg1) (arg1)->m_stateMask = arg2;
27689
27690 resultobj = SWIG_Py_Void();
27691 return resultobj;
27692fail:
27693 return NULL;
7e08d4ef
RD
27694}
27695
27696
1bd55598
RD
27697SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27698 PyObject *resultobj = 0;
27699 wxListItem *arg1 = (wxListItem *) 0 ;
27700 long result;
27701 void *argp1 = 0 ;
27702 int res1 = 0 ;
27703 PyObject *swig_obj[1] ;
27704
27705 if (!args) SWIG_fail;
27706 swig_obj[0] = args;
27707 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27708 if (!SWIG_IsOK(res1)) {
27709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27710 }
27711 arg1 = reinterpret_cast< wxListItem * >(argp1);
27712 result = (long) ((arg1)->m_stateMask);
27713 resultobj = SWIG_From_long(static_cast< long >(result));
27714 return resultobj;
27715fail:
27716 return NULL;
27717}
27718
27719
27720SWIGINTERN PyObject *_wrap_ListItem_m_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27721 PyObject *resultobj = 0;
27722 wxListItem *arg1 = (wxListItem *) 0 ;
27723 wxString *arg2 = (wxString *) 0 ;
27724 void *argp1 = 0 ;
27725 int res1 = 0 ;
27726 bool temp2 = false ;
27727 PyObject *swig_obj[2] ;
27728
27729 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_text_set",2,2,swig_obj)) SWIG_fail;
27730 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27731 if (!SWIG_IsOK(res1)) {
27732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27733 }
27734 arg1 = reinterpret_cast< wxListItem * >(argp1);
27735 {
27736 arg2 = wxString_in_helper(swig_obj[1]);
27737 if (arg2 == NULL) SWIG_fail;
27738 temp2 = true;
27739 }
27740 if (arg1) (arg1)->m_text = *arg2;
27741
27742 resultobj = SWIG_Py_Void();
27743 {
27744 if (temp2)
27745 delete arg2;
27746 }
27747 return resultobj;
27748fail:
27749 {
27750 if (temp2)
27751 delete arg2;
27752 }
27753 return NULL;
7e08d4ef
RD
27754}
27755
27756
1bd55598
RD
27757SWIGINTERN PyObject *_wrap_ListItem_m_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27758 PyObject *resultobj = 0;
27759 wxListItem *arg1 = (wxListItem *) 0 ;
27760 wxString *result = 0 ;
27761 void *argp1 = 0 ;
27762 int res1 = 0 ;
27763 PyObject *swig_obj[1] ;
27764
27765 if (!args) SWIG_fail;
27766 swig_obj[0] = args;
27767 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27768 if (!SWIG_IsOK(res1)) {
27769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27770 }
27771 arg1 = reinterpret_cast< wxListItem * >(argp1);
27772 result = (wxString *)& ((arg1)->m_text);
27773 {
27774#if wxUSE_UNICODE
27775 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27776#else
27777 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27778#endif
27779 }
27780 return resultobj;
27781fail:
27782 return NULL;
d55e5bfc
RD
27783}
27784
27785
1bd55598
RD
27786SWIGINTERN PyObject *_wrap_ListItem_m_image_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27787 PyObject *resultobj = 0;
27788 wxListItem *arg1 = (wxListItem *) 0 ;
27789 int arg2 ;
27790 void *argp1 = 0 ;
27791 int res1 = 0 ;
27792 int val2 ;
27793 int ecode2 = 0 ;
27794 PyObject *swig_obj[2] ;
27795
27796 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_image_set",2,2,swig_obj)) SWIG_fail;
27797 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27798 if (!SWIG_IsOK(res1)) {
27799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27800 }
27801 arg1 = reinterpret_cast< wxListItem * >(argp1);
27802 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27803 if (!SWIG_IsOK(ecode2)) {
27804 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_image_set" "', expected argument " "2"" of type '" "int""'");
27805 }
27806 arg2 = static_cast< int >(val2);
27807 if (arg1) (arg1)->m_image = arg2;
27808
27809 resultobj = SWIG_Py_Void();
27810 return resultobj;
27811fail:
27812 return NULL;
d55e5bfc
RD
27813}
27814
27815
1bd55598
RD
27816SWIGINTERN PyObject *_wrap_ListItem_m_image_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27817 PyObject *resultobj = 0;
27818 wxListItem *arg1 = (wxListItem *) 0 ;
27819 int result;
27820 void *argp1 = 0 ;
27821 int res1 = 0 ;
27822 PyObject *swig_obj[1] ;
27823
27824 if (!args) SWIG_fail;
27825 swig_obj[0] = args;
27826 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27827 if (!SWIG_IsOK(res1)) {
27828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27829 }
27830 arg1 = reinterpret_cast< wxListItem * >(argp1);
27831 result = (int) ((arg1)->m_image);
27832 resultobj = SWIG_From_int(static_cast< int >(result));
27833 return resultobj;
27834fail:
27835 return NULL;
27836}
27837
27838
27839SWIGINTERN PyObject *_wrap_ListItem_m_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27840 PyObject *resultobj = 0;
27841 wxListItem *arg1 = (wxListItem *) 0 ;
27842 long arg2 ;
27843 void *argp1 = 0 ;
27844 int res1 = 0 ;
27845 long val2 ;
27846 int ecode2 = 0 ;
27847 PyObject *swig_obj[2] ;
27848
27849 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_data_set",2,2,swig_obj)) SWIG_fail;
27850 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27851 if (!SWIG_IsOK(res1)) {
27852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27853 }
27854 arg1 = reinterpret_cast< wxListItem * >(argp1);
27855 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27856 if (!SWIG_IsOK(ecode2)) {
27857 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_data_set" "', expected argument " "2"" of type '" "long""'");
27858 }
27859 arg2 = static_cast< long >(val2);
27860 if (arg1) (arg1)->m_data = arg2;
27861
27862 resultobj = SWIG_Py_Void();
27863 return resultobj;
27864fail:
27865 return NULL;
d55e5bfc
RD
27866}
27867
27868
1bd55598
RD
27869SWIGINTERN PyObject *_wrap_ListItem_m_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27870 PyObject *resultobj = 0;
27871 wxListItem *arg1 = (wxListItem *) 0 ;
27872 long result;
27873 void *argp1 = 0 ;
27874 int res1 = 0 ;
27875 PyObject *swig_obj[1] ;
27876
27877 if (!args) SWIG_fail;
27878 swig_obj[0] = args;
27879 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27880 if (!SWIG_IsOK(res1)) {
27881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27882 }
27883 arg1 = reinterpret_cast< wxListItem * >(argp1);
27884 result = (long) ((arg1)->m_data);
27885 resultobj = SWIG_From_long(static_cast< long >(result));
27886 return resultobj;
27887fail:
27888 return NULL;
27889}
27890
27891
27892SWIGINTERN PyObject *_wrap_ListItem_m_format_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27893 PyObject *resultobj = 0;
27894 wxListItem *arg1 = (wxListItem *) 0 ;
27895 int arg2 ;
27896 void *argp1 = 0 ;
27897 int res1 = 0 ;
27898 int val2 ;
27899 int ecode2 = 0 ;
27900 PyObject *swig_obj[2] ;
27901
27902 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_format_set",2,2,swig_obj)) SWIG_fail;
27903 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27904 if (!SWIG_IsOK(res1)) {
27905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27906 }
27907 arg1 = reinterpret_cast< wxListItem * >(argp1);
27908 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27909 if (!SWIG_IsOK(ecode2)) {
27910 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_format_set" "', expected argument " "2"" of type '" "int""'");
27911 }
27912 arg2 = static_cast< int >(val2);
27913 if (arg1) (arg1)->m_format = arg2;
27914
27915 resultobj = SWIG_Py_Void();
27916 return resultobj;
27917fail:
27918 return NULL;
d55e5bfc
RD
27919}
27920
27921
1bd55598
RD
27922SWIGINTERN PyObject *_wrap_ListItem_m_format_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27923 PyObject *resultobj = 0;
27924 wxListItem *arg1 = (wxListItem *) 0 ;
27925 int result;
27926 void *argp1 = 0 ;
27927 int res1 = 0 ;
27928 PyObject *swig_obj[1] ;
27929
27930 if (!args) SWIG_fail;
27931 swig_obj[0] = args;
27932 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27933 if (!SWIG_IsOK(res1)) {
27934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27935 }
27936 arg1 = reinterpret_cast< wxListItem * >(argp1);
27937 result = (int) ((arg1)->m_format);
27938 resultobj = SWIG_From_int(static_cast< int >(result));
27939 return resultobj;
27940fail:
27941 return NULL;
27942}
27943
27944
27945SWIGINTERN PyObject *_wrap_ListItem_m_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27946 PyObject *resultobj = 0;
27947 wxListItem *arg1 = (wxListItem *) 0 ;
27948 int arg2 ;
27949 void *argp1 = 0 ;
27950 int res1 = 0 ;
27951 int val2 ;
27952 int ecode2 = 0 ;
27953 PyObject *swig_obj[2] ;
27954
27955 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_width_set",2,2,swig_obj)) SWIG_fail;
27956 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27957 if (!SWIG_IsOK(res1)) {
27958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27959 }
27960 arg1 = reinterpret_cast< wxListItem * >(argp1);
27961 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27962 if (!SWIG_IsOK(ecode2)) {
27963 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_width_set" "', expected argument " "2"" of type '" "int""'");
27964 }
27965 arg2 = static_cast< int >(val2);
27966 if (arg1) (arg1)->m_width = arg2;
27967
27968 resultobj = SWIG_Py_Void();
27969 return resultobj;
27970fail:
27971 return NULL;
d55e5bfc
RD
27972}
27973
27974
1bd55598
RD
27975SWIGINTERN PyObject *_wrap_ListItem_m_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27976 PyObject *resultobj = 0;
27977 wxListItem *arg1 = (wxListItem *) 0 ;
27978 int result;
27979 void *argp1 = 0 ;
27980 int res1 = 0 ;
27981 PyObject *swig_obj[1] ;
27982
27983 if (!args) SWIG_fail;
27984 swig_obj[0] = args;
27985 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27986 if (!SWIG_IsOK(res1)) {
27987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27988 }
27989 arg1 = reinterpret_cast< wxListItem * >(argp1);
27990 result = (int) ((arg1)->m_width);
27991 resultobj = SWIG_From_int(static_cast< int >(result));
27992 return resultobj;
27993fail:
27994 return NULL;
27995}
27996
27997
27998SWIGINTERN PyObject *ListItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27999 PyObject *obj;
28000 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28001 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItem, SWIG_NewClientData(obj));
28002 return SWIG_Py_Void();
28003}
28004
28005SWIGINTERN PyObject *ListItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28006 return SWIG_Python_InitShadowInstance(args);
28007}
28008
28009SWIGINTERN PyObject *_wrap_new_ListEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28010 PyObject *resultobj = 0;
28011 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
28012 int arg2 = (int) 0 ;
28013 wxListEvent *result = 0 ;
28014 int val1 ;
28015 int ecode1 = 0 ;
28016 int val2 ;
28017 int ecode2 = 0 ;
28018 PyObject * obj0 = 0 ;
28019 PyObject * obj1 = 0 ;
28020 char * kwnames[] = {
28021 (char *) "commandType",(char *) "id", NULL
28022 };
28023
28024 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) SWIG_fail;
28025 if (obj0) {
28026 ecode1 = SWIG_AsVal_int(obj0, &val1);
28027 if (!SWIG_IsOK(ecode1)) {
28028 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListEvent" "', expected argument " "1"" of type '" "wxEventType""'");
28029 }
28030 arg1 = static_cast< wxEventType >(val1);
28031 }
28032 if (obj1) {
28033 ecode2 = SWIG_AsVal_int(obj1, &val2);
28034 if (!SWIG_IsOK(ecode2)) {
28035 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListEvent" "', expected argument " "2"" of type '" "int""'");
28036 }
28037 arg2 = static_cast< int >(val2);
28038 }
28039 {
28040 PyThreadState* __tstate = wxPyBeginAllowThreads();
28041 result = (wxListEvent *)new wxListEvent(arg1,arg2);
28042 wxPyEndAllowThreads(__tstate);
28043 if (PyErr_Occurred()) SWIG_fail;
28044 }
28045 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListEvent, SWIG_POINTER_NEW | 0 );
28046 return resultobj;
28047fail:
28048 return NULL;
28049}
28050
28051
28052SWIGINTERN PyObject *_wrap_ListEvent_m_code_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28053 PyObject *resultobj = 0;
28054 wxListEvent *arg1 = (wxListEvent *) 0 ;
28055 int arg2 ;
28056 void *argp1 = 0 ;
28057 int res1 = 0 ;
28058 int val2 ;
28059 int ecode2 = 0 ;
28060 PyObject *swig_obj[2] ;
28061
28062 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_code_set",2,2,swig_obj)) SWIG_fail;
28063 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28064 if (!SWIG_IsOK(res1)) {
28065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28066 }
28067 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28068 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28069 if (!SWIG_IsOK(ecode2)) {
28070 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_code_set" "', expected argument " "2"" of type '" "int""'");
28071 }
28072 arg2 = static_cast< int >(val2);
28073 if (arg1) (arg1)->m_code = arg2;
28074
28075 resultobj = SWIG_Py_Void();
28076 return resultobj;
28077fail:
28078 return NULL;
d55e5bfc
RD
28079}
28080
28081
1bd55598
RD
28082SWIGINTERN PyObject *_wrap_ListEvent_m_code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28083 PyObject *resultobj = 0;
28084 wxListEvent *arg1 = (wxListEvent *) 0 ;
28085 int result;
28086 void *argp1 = 0 ;
28087 int res1 = 0 ;
28088 PyObject *swig_obj[1] ;
28089
28090 if (!args) SWIG_fail;
28091 swig_obj[0] = args;
28092 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28093 if (!SWIG_IsOK(res1)) {
28094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28095 }
28096 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28097 result = (int) ((arg1)->m_code);
28098 resultobj = SWIG_From_int(static_cast< int >(result));
28099 return resultobj;
28100fail:
28101 return NULL;
28102}
28103
28104
28105SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28106 PyObject *resultobj = 0;
28107 wxListEvent *arg1 = (wxListEvent *) 0 ;
28108 long arg2 ;
28109 void *argp1 = 0 ;
28110 int res1 = 0 ;
28111 long val2 ;
28112 int ecode2 = 0 ;
28113 PyObject *swig_obj[2] ;
28114
28115 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_oldItemIndex_set",2,2,swig_obj)) SWIG_fail;
28116 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28117 if (!SWIG_IsOK(res1)) {
28118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28119 }
28120 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28121 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28122 if (!SWIG_IsOK(ecode2)) {
28123 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "2"" of type '" "long""'");
28124 }
28125 arg2 = static_cast< long >(val2);
28126 if (arg1) (arg1)->m_oldItemIndex = arg2;
28127
28128 resultobj = SWIG_Py_Void();
28129 return resultobj;
28130fail:
28131 return NULL;
d55e5bfc
RD
28132}
28133
28134
1bd55598
RD
28135SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28136 PyObject *resultobj = 0;
28137 wxListEvent *arg1 = (wxListEvent *) 0 ;
28138 long result;
28139 void *argp1 = 0 ;
28140 int res1 = 0 ;
28141 PyObject *swig_obj[1] ;
28142
28143 if (!args) SWIG_fail;
28144 swig_obj[0] = args;
28145 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28146 if (!SWIG_IsOK(res1)) {
28147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28148 }
28149 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28150 result = (long) ((arg1)->m_oldItemIndex);
28151 resultobj = SWIG_From_long(static_cast< long >(result));
28152 return resultobj;
28153fail:
28154 return NULL;
28155}
28156
28157
28158SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28159 PyObject *resultobj = 0;
28160 wxListEvent *arg1 = (wxListEvent *) 0 ;
28161 long arg2 ;
28162 void *argp1 = 0 ;
28163 int res1 = 0 ;
28164 long val2 ;
28165 int ecode2 = 0 ;
28166 PyObject *swig_obj[2] ;
28167
28168 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_itemIndex_set",2,2,swig_obj)) SWIG_fail;
28169 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28170 if (!SWIG_IsOK(res1)) {
28171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28172 }
28173 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28174 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28175 if (!SWIG_IsOK(ecode2)) {
28176 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "2"" of type '" "long""'");
28177 }
28178 arg2 = static_cast< long >(val2);
28179 if (arg1) (arg1)->m_itemIndex = arg2;
28180
28181 resultobj = SWIG_Py_Void();
28182 return resultobj;
28183fail:
28184 return NULL;
f20a2e1f
RD
28185}
28186
28187
1bd55598
RD
28188SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28189 PyObject *resultobj = 0;
28190 wxListEvent *arg1 = (wxListEvent *) 0 ;
28191 long result;
28192 void *argp1 = 0 ;
28193 int res1 = 0 ;
28194 PyObject *swig_obj[1] ;
28195
28196 if (!args) SWIG_fail;
28197 swig_obj[0] = args;
28198 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28199 if (!SWIG_IsOK(res1)) {
28200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28201 }
28202 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28203 result = (long) ((arg1)->m_itemIndex);
28204 resultobj = SWIG_From_long(static_cast< long >(result));
28205 return resultobj;
28206fail:
28207 return NULL;
28208}
28209
28210
28211SWIGINTERN PyObject *_wrap_ListEvent_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28212 PyObject *resultobj = 0;
28213 wxListEvent *arg1 = (wxListEvent *) 0 ;
28214 int arg2 ;
28215 void *argp1 = 0 ;
28216 int res1 = 0 ;
28217 int val2 ;
28218 int ecode2 = 0 ;
28219 PyObject *swig_obj[2] ;
28220
28221 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_col_set",2,2,swig_obj)) SWIG_fail;
28222 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28223 if (!SWIG_IsOK(res1)) {
28224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28225 }
28226 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28227 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28228 if (!SWIG_IsOK(ecode2)) {
28229 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_col_set" "', expected argument " "2"" of type '" "int""'");
28230 }
28231 arg2 = static_cast< int >(val2);
28232 if (arg1) (arg1)->m_col = arg2;
28233
28234 resultobj = SWIG_Py_Void();
28235 return resultobj;
28236fail:
28237 return NULL;
d55e5bfc
RD
28238}
28239
28240
1bd55598
RD
28241SWIGINTERN PyObject *_wrap_ListEvent_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28242 PyObject *resultobj = 0;
28243 wxListEvent *arg1 = (wxListEvent *) 0 ;
28244 int result;
28245 void *argp1 = 0 ;
28246 int res1 = 0 ;
28247 PyObject *swig_obj[1] ;
28248
28249 if (!args) SWIG_fail;
28250 swig_obj[0] = args;
28251 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28252 if (!SWIG_IsOK(res1)) {
28253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28254 }
28255 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28256 result = (int) ((arg1)->m_col);
28257 resultobj = SWIG_From_int(static_cast< int >(result));
28258 return resultobj;
28259fail:
28260 return NULL;
28261}
28262
28263
28264SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28265 PyObject *resultobj = 0;
28266 wxListEvent *arg1 = (wxListEvent *) 0 ;
28267 wxPoint *arg2 = (wxPoint *) 0 ;
28268 void *argp1 = 0 ;
28269 int res1 = 0 ;
28270 void *argp2 = 0 ;
28271 int res2 = 0 ;
28272 PyObject *swig_obj[2] ;
28273
28274 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_pointDrag_set",2,2,swig_obj)) SWIG_fail;
28275 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28276 if (!SWIG_IsOK(res1)) {
28277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28278 }
28279 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28280 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPoint, 0 | 0 );
28281 if (!SWIG_IsOK(res2)) {
28282 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "2"" of type '" "wxPoint *""'");
28283 }
28284 arg2 = reinterpret_cast< wxPoint * >(argp2);
28285 if (arg1) (arg1)->m_pointDrag = *arg2;
28286
28287 resultobj = SWIG_Py_Void();
28288 return resultobj;
28289fail:
28290 return NULL;
d55e5bfc
RD
28291}
28292
28293
1bd55598
RD
28294SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28295 PyObject *resultobj = 0;
28296 wxListEvent *arg1 = (wxListEvent *) 0 ;
28297 wxPoint *result = 0 ;
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_m_pointDrag_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28307 }
28308 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28309 result = (wxPoint *)& ((arg1)->m_pointDrag);
28310 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, 0 | 0 );
28311 return resultobj;
28312fail:
28313 return NULL;
28314}
28315
28316
28317SWIGINTERN PyObject *_wrap_ListEvent_m_item_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28318 PyObject *resultobj = 0;
28319 wxListEvent *arg1 = (wxListEvent *) 0 ;
28320 wxListItem *result = 0 ;
28321 void *argp1 = 0 ;
28322 int res1 = 0 ;
28323 PyObject *swig_obj[1] ;
28324
28325 if (!args) SWIG_fail;
28326 swig_obj[0] = args;
28327 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28328 if (!SWIG_IsOK(res1)) {
28329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_item_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28330 }
28331 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28332 result = (wxListItem *)& ((arg1)->m_item);
28333 {
3ecece7e 28334 resultobj = wxPyMake_wxObject(result, 0);
1bd55598
RD
28335 }
28336 return resultobj;
28337fail:
28338 return NULL;
d55e5bfc
RD
28339}
28340
28341
1bd55598
RD
28342SWIGINTERN PyObject *_wrap_ListEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28343 PyObject *resultobj = 0;
28344 wxListEvent *arg1 = (wxListEvent *) 0 ;
28345 int result;
28346 void *argp1 = 0 ;
28347 int res1 = 0 ;
28348 PyObject *swig_obj[1] ;
28349
28350 if (!args) SWIG_fail;
28351 swig_obj[0] = args;
28352 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28353 if (!SWIG_IsOK(res1)) {
28354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxListEvent *""'");
28355 }
28356 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28357 {
28358 PyThreadState* __tstate = wxPyBeginAllowThreads();
28359 result = (int)(arg1)->GetKeyCode();
28360 wxPyEndAllowThreads(__tstate);
28361 if (PyErr_Occurred()) SWIG_fail;
28362 }
28363 resultobj = SWIG_From_int(static_cast< int >(result));
28364 return resultobj;
28365fail:
28366 return NULL;
d55e5bfc
RD
28367}
28368
28369
1bd55598
RD
28370SWIGINTERN PyObject *_wrap_ListEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28371 PyObject *resultobj = 0;
28372 wxListEvent *arg1 = (wxListEvent *) 0 ;
28373 long result;
28374 void *argp1 = 0 ;
28375 int res1 = 0 ;
28376 PyObject *swig_obj[1] ;
28377
28378 if (!args) SWIG_fail;
28379 swig_obj[0] = args;
28380 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28381 if (!SWIG_IsOK(res1)) {
28382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetIndex" "', expected argument " "1"" of type '" "wxListEvent *""'");
28383 }
28384 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28385 {
28386 PyThreadState* __tstate = wxPyBeginAllowThreads();
28387 result = (long)(arg1)->GetIndex();
28388 wxPyEndAllowThreads(__tstate);
28389 if (PyErr_Occurred()) SWIG_fail;
28390 }
28391 resultobj = SWIG_From_long(static_cast< long >(result));
28392 return resultobj;
28393fail:
28394 return NULL;
d55e5bfc
RD
28395}
28396
28397
1bd55598
RD
28398SWIGINTERN PyObject *_wrap_ListEvent_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28399 PyObject *resultobj = 0;
28400 wxListEvent *arg1 = (wxListEvent *) 0 ;
28401 int result;
28402 void *argp1 = 0 ;
28403 int res1 = 0 ;
28404 PyObject *swig_obj[1] ;
28405
28406 if (!args) SWIG_fail;
28407 swig_obj[0] = args;
28408 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28409 if (!SWIG_IsOK(res1)) {
28410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetColumn" "', expected argument " "1"" of type '" "wxListEvent *""'");
28411 }
28412 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28413 {
28414 PyThreadState* __tstate = wxPyBeginAllowThreads();
28415 result = (int)(arg1)->GetColumn();
28416 wxPyEndAllowThreads(__tstate);
28417 if (PyErr_Occurred()) SWIG_fail;
28418 }
28419 resultobj = SWIG_From_int(static_cast< int >(result));
28420 return resultobj;
28421fail:
28422 return NULL;
d55e5bfc
RD
28423}
28424
28425
1bd55598
RD
28426SWIGINTERN PyObject *_wrap_ListEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28427 PyObject *resultobj = 0;
28428 wxListEvent *arg1 = (wxListEvent *) 0 ;
28429 wxPoint result;
28430 void *argp1 = 0 ;
28431 int res1 = 0 ;
28432 PyObject *swig_obj[1] ;
28433
28434 if (!args) SWIG_fail;
28435 swig_obj[0] = args;
28436 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28437 if (!SWIG_IsOK(res1)) {
28438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetPoint" "', expected argument " "1"" of type '" "wxListEvent *""'");
28439 }
28440 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28441 {
28442 PyThreadState* __tstate = wxPyBeginAllowThreads();
28443 result = (arg1)->GetPoint();
28444 wxPyEndAllowThreads(__tstate);
28445 if (PyErr_Occurred()) SWIG_fail;
28446 }
28447 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
28448 return resultobj;
28449fail:
28450 return NULL;
d55e5bfc
RD
28451}
28452
28453
1bd55598
RD
28454SWIGINTERN PyObject *_wrap_ListEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28455 PyObject *resultobj = 0;
28456 wxListEvent *arg1 = (wxListEvent *) 0 ;
28457 wxString *result = 0 ;
28458 void *argp1 = 0 ;
28459 int res1 = 0 ;
28460 PyObject *swig_obj[1] ;
28461
28462 if (!args) SWIG_fail;
28463 swig_obj[0] = args;
28464 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28465 if (!SWIG_IsOK(res1)) {
28466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetLabel" "', expected argument " "1"" of type '" "wxListEvent *""'");
28467 }
28468 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28469 {
28470 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 28471 {
1bd55598
RD
28472 wxString const &_result_ref = (arg1)->GetLabel();
28473 result = (wxString *) &_result_ref;
d55e5bfc 28474 }
1bd55598
RD
28475 wxPyEndAllowThreads(__tstate);
28476 if (PyErr_Occurred()) SWIG_fail;
28477 }
28478 {
28479#if wxUSE_UNICODE
28480 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28481#else
28482 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28483#endif
28484 }
28485 return resultobj;
28486fail:
28487 return NULL;
d55e5bfc
RD
28488}
28489
28490
1bd55598
RD
28491SWIGINTERN PyObject *_wrap_ListEvent_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28492 PyObject *resultobj = 0;
28493 wxListEvent *arg1 = (wxListEvent *) 0 ;
28494 wxString *result = 0 ;
28495 void *argp1 = 0 ;
28496 int res1 = 0 ;
28497 PyObject *swig_obj[1] ;
28498
28499 if (!args) SWIG_fail;
28500 swig_obj[0] = args;
28501 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28502 if (!SWIG_IsOK(res1)) {
28503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetText" "', expected argument " "1"" of type '" "wxListEvent *""'");
28504 }
28505 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28506 {
28507 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 28508 {
1bd55598
RD
28509 wxString const &_result_ref = (arg1)->GetText();
28510 result = (wxString *) &_result_ref;
36ed4f51 28511 }
1bd55598
RD
28512 wxPyEndAllowThreads(__tstate);
28513 if (PyErr_Occurred()) SWIG_fail;
28514 }
28515 {
28516#if wxUSE_UNICODE
28517 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28518#else
28519 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28520#endif
28521 }
28522 return resultobj;
28523fail:
28524 return NULL;
d55e5bfc
RD
28525}
28526
28527
1bd55598
RD
28528SWIGINTERN PyObject *_wrap_ListEvent_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28529 PyObject *resultobj = 0;
28530 wxListEvent *arg1 = (wxListEvent *) 0 ;
28531 int result;
28532 void *argp1 = 0 ;
28533 int res1 = 0 ;
28534 PyObject *swig_obj[1] ;
28535
28536 if (!args) SWIG_fail;
28537 swig_obj[0] = args;
28538 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28539 if (!SWIG_IsOK(res1)) {
28540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetImage" "', expected argument " "1"" of type '" "wxListEvent *""'");
28541 }
28542 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28543 {
28544 PyThreadState* __tstate = wxPyBeginAllowThreads();
28545 result = (int)(arg1)->GetImage();
28546 wxPyEndAllowThreads(__tstate);
28547 if (PyErr_Occurred()) SWIG_fail;
28548 }
28549 resultobj = SWIG_From_int(static_cast< int >(result));
28550 return resultobj;
28551fail:
28552 return NULL;
d55e5bfc
RD
28553}
28554
28555
1bd55598
RD
28556SWIGINTERN PyObject *_wrap_ListEvent_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28557 PyObject *resultobj = 0;
28558 wxListEvent *arg1 = (wxListEvent *) 0 ;
28559 long result;
28560 void *argp1 = 0 ;
28561 int res1 = 0 ;
28562 PyObject *swig_obj[1] ;
28563
28564 if (!args) SWIG_fail;
28565 swig_obj[0] = args;
28566 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28567 if (!SWIG_IsOK(res1)) {
28568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetData" "', expected argument " "1"" of type '" "wxListEvent *""'");
28569 }
28570 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28571 {
28572 PyThreadState* __tstate = wxPyBeginAllowThreads();
28573 result = (long)(arg1)->GetData();
28574 wxPyEndAllowThreads(__tstate);
28575 if (PyErr_Occurred()) SWIG_fail;
28576 }
28577 resultobj = SWIG_From_long(static_cast< long >(result));
28578 return resultobj;
28579fail:
28580 return NULL;
d55e5bfc
RD
28581}
28582
28583
1bd55598
RD
28584SWIGINTERN PyObject *_wrap_ListEvent_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28585 PyObject *resultobj = 0;
28586 wxListEvent *arg1 = (wxListEvent *) 0 ;
28587 long result;
28588 void *argp1 = 0 ;
28589 int res1 = 0 ;
28590 PyObject *swig_obj[1] ;
28591
28592 if (!args) SWIG_fail;
28593 swig_obj[0] = args;
28594 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28595 if (!SWIG_IsOK(res1)) {
28596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetMask" "', expected argument " "1"" of type '" "wxListEvent *""'");
28597 }
28598 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28599 {
28600 PyThreadState* __tstate = wxPyBeginAllowThreads();
28601 result = (long)(arg1)->GetMask();
28602 wxPyEndAllowThreads(__tstate);
28603 if (PyErr_Occurred()) SWIG_fail;
28604 }
28605 resultobj = SWIG_From_long(static_cast< long >(result));
28606 return resultobj;
28607fail:
28608 return NULL;
d55e5bfc
RD
28609}
28610
28611
1bd55598
RD
28612SWIGINTERN PyObject *_wrap_ListEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28613 PyObject *resultobj = 0;
28614 wxListEvent *arg1 = (wxListEvent *) 0 ;
28615 wxListItem *result = 0 ;
28616 void *argp1 = 0 ;
28617 int res1 = 0 ;
28618 PyObject *swig_obj[1] ;
28619
28620 if (!args) SWIG_fail;
28621 swig_obj[0] = args;
28622 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28623 if (!SWIG_IsOK(res1)) {
28624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetItem" "', expected argument " "1"" of type '" "wxListEvent *""'");
28625 }
28626 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28627 {
28628 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 28629 {
1bd55598
RD
28630 wxListItem const &_result_ref = (arg1)->GetItem();
28631 result = (wxListItem *) &_result_ref;
d55e5bfc 28632 }
1bd55598
RD
28633 wxPyEndAllowThreads(__tstate);
28634 if (PyErr_Occurred()) SWIG_fail;
28635 }
28636 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, 0 | 0 );
28637 return resultobj;
28638fail:
28639 return NULL;
d55e5bfc
RD
28640}
28641
28642
1bd55598
RD
28643SWIGINTERN PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28644 PyObject *resultobj = 0;
28645 wxListEvent *arg1 = (wxListEvent *) 0 ;
28646 long result;
28647 void *argp1 = 0 ;
28648 int res1 = 0 ;
28649 PyObject *swig_obj[1] ;
28650
28651 if (!args) SWIG_fail;
28652 swig_obj[0] = args;
28653 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28654 if (!SWIG_IsOK(res1)) {
28655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheFrom" "', expected argument " "1"" of type '" "wxListEvent *""'");
28656 }
28657 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28658 {
28659 PyThreadState* __tstate = wxPyBeginAllowThreads();
28660 result = (long)(arg1)->GetCacheFrom();
28661 wxPyEndAllowThreads(__tstate);
28662 if (PyErr_Occurred()) SWIG_fail;
28663 }
28664 resultobj = SWIG_From_long(static_cast< long >(result));
28665 return resultobj;
28666fail:
28667 return NULL;
d55e5bfc
RD
28668}
28669
28670
1bd55598
RD
28671SWIGINTERN PyObject *_wrap_ListEvent_GetCacheTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28672 PyObject *resultobj = 0;
28673 wxListEvent *arg1 = (wxListEvent *) 0 ;
28674 long result;
28675 void *argp1 = 0 ;
28676 int res1 = 0 ;
28677 PyObject *swig_obj[1] ;
28678
28679 if (!args) SWIG_fail;
28680 swig_obj[0] = args;
28681 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28682 if (!SWIG_IsOK(res1)) {
28683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheTo" "', expected argument " "1"" of type '" "wxListEvent *""'");
28684 }
28685 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28686 {
28687 PyThreadState* __tstate = wxPyBeginAllowThreads();
28688 result = (long)(arg1)->GetCacheTo();
28689 wxPyEndAllowThreads(__tstate);
28690 if (PyErr_Occurred()) SWIG_fail;
28691 }
28692 resultobj = SWIG_From_long(static_cast< long >(result));
28693 return resultobj;
28694fail:
28695 return NULL;
7e08d4ef
RD
28696}
28697
28698
1bd55598
RD
28699SWIGINTERN PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28700 PyObject *resultobj = 0;
28701 wxListEvent *arg1 = (wxListEvent *) 0 ;
28702 bool result;
28703 void *argp1 = 0 ;
28704 int res1 = 0 ;
28705 PyObject *swig_obj[1] ;
28706
28707 if (!args) SWIG_fail;
28708 swig_obj[0] = args;
28709 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28710 if (!SWIG_IsOK(res1)) {
28711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxListEvent const *""'");
28712 }
28713 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28714 {
28715 PyThreadState* __tstate = wxPyBeginAllowThreads();
28716 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
28717 wxPyEndAllowThreads(__tstate);
28718 if (PyErr_Occurred()) SWIG_fail;
28719 }
28720 {
28721 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28722 }
28723 return resultobj;
28724fail:
28725 return NULL;
28726}
28727
28728
28729SWIGINTERN PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28730 PyObject *resultobj = 0;
28731 wxListEvent *arg1 = (wxListEvent *) 0 ;
28732 bool arg2 ;
28733 void *argp1 = 0 ;
28734 int res1 = 0 ;
28735 bool val2 ;
28736 int ecode2 = 0 ;
28737 PyObject * obj0 = 0 ;
28738 PyObject * obj1 = 0 ;
28739 char * kwnames[] = {
28740 (char *) "self",(char *) "editCancelled", NULL
28741 };
28742
28743 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
28744 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28745 if (!SWIG_IsOK(res1)) {
28746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxListEvent *""'");
28747 }
28748 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28749 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28750 if (!SWIG_IsOK(ecode2)) {
28751 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
28752 }
28753 arg2 = static_cast< bool >(val2);
28754 {
28755 PyThreadState* __tstate = wxPyBeginAllowThreads();
28756 (arg1)->SetEditCanceled(arg2);
28757 wxPyEndAllowThreads(__tstate);
28758 if (PyErr_Occurred()) SWIG_fail;
28759 }
28760 resultobj = SWIG_Py_Void();
28761 return resultobj;
28762fail:
28763 return NULL;
28764}
28765
28766
28767SWIGINTERN PyObject *ListEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28768 PyObject *obj;
28769 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28770 SWIG_TypeNewClientData(SWIGTYPE_p_wxListEvent, SWIG_NewClientData(obj));
28771 return SWIG_Py_Void();
28772}
28773
28774SWIGINTERN PyObject *ListEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28775 return SWIG_Python_InitShadowInstance(args);
28776}
28777
28778SWIGINTERN PyObject *_wrap_new_ListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28779 PyObject *resultobj = 0;
28780 wxWindow *arg1 = (wxWindow *) 0 ;
28781 int arg2 = (int) -1 ;
28782 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28783 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28784 wxSize const &arg4_defvalue = wxDefaultSize ;
28785 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28786 long arg5 = (long) wxLC_ICON ;
28787 wxValidator const &arg6_defvalue = wxDefaultValidator ;
28788 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
28789 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
28790 wxString *arg7 = (wxString *) &arg7_defvalue ;
28791 wxPyListCtrl *result = 0 ;
28792 void *argp1 = 0 ;
28793 int res1 = 0 ;
28794 int val2 ;
28795 int ecode2 = 0 ;
28796 wxPoint temp3 ;
28797 wxSize temp4 ;
28798 long val5 ;
28799 int ecode5 = 0 ;
28800 void *argp6 = 0 ;
28801 int res6 = 0 ;
28802 bool temp7 = false ;
28803 PyObject * obj0 = 0 ;
28804 PyObject * obj1 = 0 ;
28805 PyObject * obj2 = 0 ;
28806 PyObject * obj3 = 0 ;
28807 PyObject * obj4 = 0 ;
28808 PyObject * obj5 = 0 ;
28809 PyObject * obj6 = 0 ;
28810 char * kwnames[] = {
28811 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28812 };
28813
28814 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28815 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28816 if (!SWIG_IsOK(res1)) {
28817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
28818 }
28819 arg1 = reinterpret_cast< wxWindow * >(argp1);
28820 if (obj1) {
28821 ecode2 = SWIG_AsVal_int(obj1, &val2);
28822 if (!SWIG_IsOK(ecode2)) {
28823 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListCtrl" "', expected argument " "2"" of type '" "int""'");
28824 }
28825 arg2 = static_cast< int >(val2);
28826 }
28827 if (obj2) {
7e08d4ef 28828 {
1bd55598
RD
28829 arg3 = &temp3;
28830 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
7e08d4ef 28831 }
1bd55598
RD
28832 }
28833 if (obj3) {
7e08d4ef 28834 {
1bd55598
RD
28835 arg4 = &temp4;
28836 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
7e08d4ef 28837 }
1bd55598
RD
28838 }
28839 if (obj4) {
28840 ecode5 = SWIG_AsVal_long(obj4, &val5);
28841 if (!SWIG_IsOK(ecode5)) {
28842 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListCtrl" "', expected argument " "5"" of type '" "long""'");
28843 }
28844 arg5 = static_cast< long >(val5);
28845 }
28846 if (obj5) {
28847 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
28848 if (!SWIG_IsOK(res6)) {
28849 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
7e08d4ef 28850 }
1bd55598
RD
28851 if (!argp6) {
28852 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
7e08d4ef 28853 }
1bd55598
RD
28854 arg6 = reinterpret_cast< wxValidator * >(argp6);
28855 }
28856 if (obj6) {
7e08d4ef 28857 {
1bd55598
RD
28858 arg7 = wxString_in_helper(obj6);
28859 if (arg7 == NULL) SWIG_fail;
28860 temp7 = true;
7e08d4ef 28861 }
1bd55598
RD
28862 }
28863 {
28864 if (!wxPyCheckForApp()) SWIG_fail;
28865 PyThreadState* __tstate = wxPyBeginAllowThreads();
28866 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
28867 wxPyEndAllowThreads(__tstate);
28868 if (PyErr_Occurred()) SWIG_fail;
28869 }
28870 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_NEW | 0 );
28871 {
28872 if (temp7)
28873 delete arg7;
28874 }
28875 return resultobj;
28876fail:
28877 {
28878 if (temp7)
28879 delete arg7;
28880 }
28881 return NULL;
7e08d4ef
RD
28882}
28883
28884
1bd55598
RD
28885SWIGINTERN PyObject *_wrap_new_PreListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28886 PyObject *resultobj = 0;
28887 wxPyListCtrl *result = 0 ;
28888
28889 if (!SWIG_Python_UnpackTuple(args,"new_PreListCtrl",0,0,0)) SWIG_fail;
28890 {
28891 if (!wxPyCheckForApp()) SWIG_fail;
28892 PyThreadState* __tstate = wxPyBeginAllowThreads();
28893 result = (wxPyListCtrl *)new wxPyListCtrl();
28894 wxPyEndAllowThreads(__tstate);
28895 if (PyErr_Occurred()) SWIG_fail;
28896 }
28897 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_OWN | 0 );
28898 return resultobj;
28899fail:
28900 return NULL;
28901}
28902
28903
28904SWIGINTERN PyObject *_wrap_ListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28905 PyObject *resultobj = 0;
28906 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28907 wxWindow *arg2 = (wxWindow *) 0 ;
28908 int arg3 = (int) -1 ;
28909 wxPoint const &arg4_defvalue = wxDefaultPosition ;
28910 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
28911 wxSize const &arg5_defvalue = wxDefaultSize ;
28912 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
28913 long arg6 = (long) wxLC_ICON ;
28914 wxValidator const &arg7_defvalue = wxDefaultValidator ;
28915 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
28916 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
28917 wxString *arg8 = (wxString *) &arg8_defvalue ;
28918 bool result;
28919 void *argp1 = 0 ;
28920 int res1 = 0 ;
28921 void *argp2 = 0 ;
28922 int res2 = 0 ;
28923 int val3 ;
28924 int ecode3 = 0 ;
28925 wxPoint temp4 ;
28926 wxSize temp5 ;
28927 long val6 ;
28928 int ecode6 = 0 ;
28929 void *argp7 = 0 ;
28930 int res7 = 0 ;
28931 bool temp8 = false ;
28932 PyObject * obj0 = 0 ;
28933 PyObject * obj1 = 0 ;
28934 PyObject * obj2 = 0 ;
28935 PyObject * obj3 = 0 ;
28936 PyObject * obj4 = 0 ;
28937 PyObject * obj5 = 0 ;
28938 PyObject * obj6 = 0 ;
28939 PyObject * obj7 = 0 ;
28940 char * kwnames[] = {
28941 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28942 };
28943
28944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28946 if (!SWIG_IsOK(res1)) {
28947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Create" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28948 }
28949 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28950 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28951 if (!SWIG_IsOK(res2)) {
28952 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
28953 }
28954 arg2 = reinterpret_cast< wxWindow * >(argp2);
28955 if (obj2) {
28956 ecode3 = SWIG_AsVal_int(obj2, &val3);
28957 if (!SWIG_IsOK(ecode3)) {
28958 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
28959 }
28960 arg3 = static_cast< int >(val3);
28961 }
28962 if (obj3) {
7e08d4ef 28963 {
1bd55598
RD
28964 arg4 = &temp4;
28965 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7e08d4ef 28966 }
1bd55598
RD
28967 }
28968 if (obj4) {
7e08d4ef 28969 {
1bd55598
RD
28970 arg5 = &temp5;
28971 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7e08d4ef 28972 }
1bd55598
RD
28973 }
28974 if (obj5) {
28975 ecode6 = SWIG_AsVal_long(obj5, &val6);
28976 if (!SWIG_IsOK(ecode6)) {
28977 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
28978 }
28979 arg6 = static_cast< long >(val6);
28980 }
28981 if (obj6) {
28982 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
28983 if (!SWIG_IsOK(res7)) {
28984 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
7e08d4ef 28985 }
1bd55598
RD
28986 if (!argp7) {
28987 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
7e08d4ef 28988 }
1bd55598
RD
28989 arg7 = reinterpret_cast< wxValidator * >(argp7);
28990 }
28991 if (obj7) {
7e08d4ef 28992 {
1bd55598
RD
28993 arg8 = wxString_in_helper(obj7);
28994 if (arg8 == NULL) SWIG_fail;
28995 temp8 = true;
7e08d4ef 28996 }
1bd55598
RD
28997 }
28998 {
28999 PyThreadState* __tstate = wxPyBeginAllowThreads();
29000 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
29001 wxPyEndAllowThreads(__tstate);
29002 if (PyErr_Occurred()) SWIG_fail;
29003 }
29004 {
29005 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29006 }
29007 {
29008 if (temp8)
29009 delete arg8;
29010 }
29011 return resultobj;
29012fail:
29013 {
29014 if (temp8)
29015 delete arg8;
29016 }
29017 return NULL;
29018}
29019
29020
29021SWIGINTERN PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29022 PyObject *resultobj = 0;
29023 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29024 PyObject *arg2 = (PyObject *) 0 ;
29025 PyObject *arg3 = (PyObject *) 0 ;
29026 void *argp1 = 0 ;
29027 int res1 = 0 ;
29028 PyObject * obj0 = 0 ;
29029 PyObject * obj1 = 0 ;
29030 PyObject * obj2 = 0 ;
29031 char * kwnames[] = {
29032 (char *) "self",(char *) "self",(char *) "_class", NULL
29033 };
29034
29035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29036 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29037 if (!SWIG_IsOK(res1)) {
29038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29039 }
29040 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29041 arg2 = obj1;
29042 arg3 = obj2;
29043 {
29044 PyThreadState* __tstate = wxPyBeginAllowThreads();
29045 (arg1)->_setCallbackInfo(arg2,arg3);
29046 wxPyEndAllowThreads(__tstate);
29047 if (PyErr_Occurred()) SWIG_fail;
29048 }
29049 resultobj = SWIG_Py_Void();
29050 return resultobj;
29051fail:
29052 return NULL;
29053}
29054
29055
29056SWIGINTERN PyObject *_wrap_ListCtrl_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29057 PyObject *resultobj = 0;
29058 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29059 int arg2 ;
29060 wxListItem *result = 0 ;
29061 void *argp1 = 0 ;
29062 int res1 = 0 ;
29063 int val2 ;
29064 int ecode2 = 0 ;
29065 PyObject * obj0 = 0 ;
29066 PyObject * obj1 = 0 ;
29067 char * kwnames[] = {
29068 (char *) "self",(char *) "col", NULL
29069 };
29070
29071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
29072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29073 if (!SWIG_IsOK(res1)) {
29074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29075 }
29076 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29077 ecode2 = SWIG_AsVal_int(obj1, &val2);
29078 if (!SWIG_IsOK(ecode2)) {
29079 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumn" "', expected argument " "2"" of type '" "int""'");
29080 }
29081 arg2 = static_cast< int >(val2);
29082 {
29083 PyThreadState* __tstate = wxPyBeginAllowThreads();
29084 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
29085 wxPyEndAllowThreads(__tstate);
29086 if (PyErr_Occurred()) SWIG_fail;
29087 }
29088 {
3ecece7e 29089 resultobj = wxPyMake_wxObject(result, 0);
1bd55598
RD
29090 }
29091 return resultobj;
29092fail:
29093 return NULL;
29094}
29095
29096
29097SWIGINTERN PyObject *_wrap_ListCtrl_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29098 PyObject *resultobj = 0;
29099 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29100 int arg2 ;
29101 wxListItem *arg3 = 0 ;
29102 bool result;
29103 void *argp1 = 0 ;
29104 int res1 = 0 ;
29105 int val2 ;
29106 int ecode2 = 0 ;
29107 void *argp3 = 0 ;
29108 int res3 = 0 ;
29109 PyObject * obj0 = 0 ;
29110 PyObject * obj1 = 0 ;
29111 PyObject * obj2 = 0 ;
29112 char * kwnames[] = {
29113 (char *) "self",(char *) "col",(char *) "item", NULL
29114 };
29115
29116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29118 if (!SWIG_IsOK(res1)) {
29119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29120 }
29121 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29122 ecode2 = SWIG_AsVal_int(obj1, &val2);
29123 if (!SWIG_IsOK(ecode2)) {
29124 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumn" "', expected argument " "2"" of type '" "int""'");
29125 }
29126 arg2 = static_cast< int >(val2);
29127 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
29128 if (!SWIG_IsOK(res3)) {
29129 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
29130 }
29131 if (!argp3) {
29132 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
29133 }
29134 arg3 = reinterpret_cast< wxListItem * >(argp3);
29135 {
29136 PyThreadState* __tstate = wxPyBeginAllowThreads();
29137 result = (bool)(arg1)->SetColumn(arg2,*arg3);
29138 wxPyEndAllowThreads(__tstate);
29139 if (PyErr_Occurred()) SWIG_fail;
29140 }
29141 {
29142 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29143 }
29144 return resultobj;
29145fail:
29146 return NULL;
29147}
29148
29149
29150SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29151 PyObject *resultobj = 0;
29152 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29153 int arg2 ;
29154 int result;
29155 void *argp1 = 0 ;
29156 int res1 = 0 ;
29157 int val2 ;
29158 int ecode2 = 0 ;
29159 PyObject * obj0 = 0 ;
29160 PyObject * obj1 = 0 ;
29161 char * kwnames[] = {
29162 (char *) "self",(char *) "col", NULL
29163 };
29164
29165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) SWIG_fail;
29166 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29167 if (!SWIG_IsOK(res1)) {
29168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29169 }
29170 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29171 ecode2 = SWIG_AsVal_int(obj1, &val2);
29172 if (!SWIG_IsOK(ecode2)) {
29173 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "2"" of type '" "int""'");
29174 }
29175 arg2 = static_cast< int >(val2);
29176 {
29177 PyThreadState* __tstate = wxPyBeginAllowThreads();
29178 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
29179 wxPyEndAllowThreads(__tstate);
29180 if (PyErr_Occurred()) SWIG_fail;
29181 }
29182 resultobj = SWIG_From_int(static_cast< int >(result));
29183 return resultobj;
29184fail:
29185 return NULL;
29186}
29187
29188
29189SWIGINTERN PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29190 PyObject *resultobj = 0;
29191 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29192 int arg2 ;
29193 int arg3 ;
29194 bool result;
29195 void *argp1 = 0 ;
29196 int res1 = 0 ;
29197 int val2 ;
29198 int ecode2 = 0 ;
29199 int val3 ;
29200 int ecode3 = 0 ;
29201 PyObject * obj0 = 0 ;
29202 PyObject * obj1 = 0 ;
29203 PyObject * obj2 = 0 ;
29204 char * kwnames[] = {
29205 (char *) "self",(char *) "col",(char *) "width", NULL
29206 };
29207
29208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29210 if (!SWIG_IsOK(res1)) {
29211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29212 }
29213 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29214 ecode2 = SWIG_AsVal_int(obj1, &val2);
29215 if (!SWIG_IsOK(ecode2)) {
29216 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "2"" of type '" "int""'");
29217 }
29218 arg2 = static_cast< int >(val2);
29219 ecode3 = SWIG_AsVal_int(obj2, &val3);
29220 if (!SWIG_IsOK(ecode3)) {
29221 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "3"" of type '" "int""'");
29222 }
29223 arg3 = static_cast< int >(val3);
29224 {
29225 PyThreadState* __tstate = wxPyBeginAllowThreads();
29226 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
29227 wxPyEndAllowThreads(__tstate);
29228 if (PyErr_Occurred()) SWIG_fail;
29229 }
29230 {
29231 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29232 }
29233 return resultobj;
29234fail:
29235 return NULL;
7e08d4ef
RD
29236}
29237
29238
1bd55598
RD
29239SWIGINTERN PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29240 PyObject *resultobj = 0;
29241 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29242 int result;
29243 void *argp1 = 0 ;
29244 int res1 = 0 ;
29245 PyObject *swig_obj[1] ;
29246
29247 if (!args) SWIG_fail;
29248 swig_obj[0] = args;
29249 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29250 if (!SWIG_IsOK(res1)) {
29251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetCountPerPage" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29252 }
29253 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29254 {
29255 PyThreadState* __tstate = wxPyBeginAllowThreads();
29256 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
29257 wxPyEndAllowThreads(__tstate);
29258 if (PyErr_Occurred()) SWIG_fail;
29259 }
29260 resultobj = SWIG_From_int(static_cast< int >(result));
29261 return resultobj;
29262fail:
29263 return NULL;
7e08d4ef
RD
29264}
29265
29266
1bd55598
RD
29267SWIGINTERN PyObject *_wrap_ListCtrl_GetViewRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29268 PyObject *resultobj = 0;
29269 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29270 wxRect result;
29271 void *argp1 = 0 ;
29272 int res1 = 0 ;
29273 PyObject *swig_obj[1] ;
29274
29275 if (!args) SWIG_fail;
29276 swig_obj[0] = args;
29277 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29278 if (!SWIG_IsOK(res1)) {
29279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetViewRect" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29280 }
29281 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29282 {
29283 PyThreadState* __tstate = wxPyBeginAllowThreads();
29284 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
29285 wxPyEndAllowThreads(__tstate);
29286 if (PyErr_Occurred()) SWIG_fail;
29287 }
29288 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29289 return resultobj;
29290fail:
29291 return NULL;
7e08d4ef
RD
29292}
29293
29294
1bd55598
RD
29295SWIGINTERN PyObject *_wrap_ListCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29296 PyObject *resultobj = 0;
29297 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29298 wxTextCtrl *result = 0 ;
29299 void *argp1 = 0 ;
29300 int res1 = 0 ;
29301 PyObject *swig_obj[1] ;
29302
29303 if (!args) SWIG_fail;
29304 swig_obj[0] = args;
29305 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29306 if (!SWIG_IsOK(res1)) {
29307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29308 }
29309 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29310 {
29311 PyThreadState* __tstate = wxPyBeginAllowThreads();
29312 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
29313 wxPyEndAllowThreads(__tstate);
29314 if (PyErr_Occurred()) SWIG_fail;
29315 }
29316 {
29317 resultobj = wxPyMake_wxObject(result, 0);
29318 }
29319 return resultobj;
29320fail:
29321 return NULL;
29322}
29323
29324
29325SWIGINTERN PyObject *_wrap_ListCtrl_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29326 PyObject *resultobj = 0;
29327 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29328 long arg2 ;
29329 int arg3 = (int) 0 ;
29330 wxListItem *result = 0 ;
29331 void *argp1 = 0 ;
29332 int res1 = 0 ;
29333 long val2 ;
29334 int ecode2 = 0 ;
29335 int val3 ;
29336 int ecode3 = 0 ;
29337 PyObject * obj0 = 0 ;
29338 PyObject * obj1 = 0 ;
29339 PyObject * obj2 = 0 ;
29340 char * kwnames[] = {
29341 (char *) "self",(char *) "itemId",(char *) "col", NULL
29342 };
29343
29344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29346 if (!SWIG_IsOK(res1)) {
29347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29348 }
29349 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29350 ecode2 = SWIG_AsVal_long(obj1, &val2);
29351 if (!SWIG_IsOK(ecode2)) {
29352 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItem" "', expected argument " "2"" of type '" "long""'");
29353 }
29354 arg2 = static_cast< long >(val2);
29355 if (obj2) {
29356 ecode3 = SWIG_AsVal_int(obj2, &val3);
29357 if (!SWIG_IsOK(ecode3)) {
29358 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItem" "', expected argument " "3"" of type '" "int""'");
29359 }
29360 arg3 = static_cast< int >(val3);
29361 }
29362 {
29363 PyThreadState* __tstate = wxPyBeginAllowThreads();
29364 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
29365 wxPyEndAllowThreads(__tstate);
29366 if (PyErr_Occurred()) SWIG_fail;
29367 }
29368 {
3ecece7e 29369 resultobj = wxPyMake_wxObject(result, 0);
1bd55598
RD
29370 }
29371 return resultobj;
29372fail:
29373 return NULL;
29374}
29375
29376
29377SWIGINTERN PyObject *_wrap_ListCtrl_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29378 PyObject *resultobj = 0;
29379 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29380 wxListItem *arg2 = 0 ;
29381 bool result;
29382 void *argp1 = 0 ;
29383 int res1 = 0 ;
29384 void *argp2 = 0 ;
29385 int res2 = 0 ;
29386 PyObject * obj0 = 0 ;
29387 PyObject * obj1 = 0 ;
29388 char * kwnames[] = {
29389 (char *) "self",(char *) "info", NULL
29390 };
29391
29392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
29393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29394 if (!SWIG_IsOK(res1)) {
29395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29396 }
29397 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29398 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
29399 if (!SWIG_IsOK(res2)) {
29400 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29401 }
29402 if (!argp2) {
29403 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29404 }
29405 arg2 = reinterpret_cast< wxListItem * >(argp2);
29406 {
29407 PyThreadState* __tstate = wxPyBeginAllowThreads();
29408 result = (bool)(arg1)->SetItem(*arg2);
29409 wxPyEndAllowThreads(__tstate);
29410 if (PyErr_Occurred()) SWIG_fail;
29411 }
29412 {
29413 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29414 }
29415 return resultobj;
29416fail:
29417 return NULL;
29418}
29419
29420
29421SWIGINTERN PyObject *_wrap_ListCtrl_SetStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29422 PyObject *resultobj = 0;
29423 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29424 long arg2 ;
29425 int arg3 ;
29426 wxString *arg4 = 0 ;
29427 int arg5 = (int) -1 ;
29428 long result;
29429 void *argp1 = 0 ;
29430 int res1 = 0 ;
29431 long val2 ;
29432 int ecode2 = 0 ;
29433 int val3 ;
29434 int ecode3 = 0 ;
29435 bool temp4 = false ;
29436 int val5 ;
29437 int ecode5 = 0 ;
29438 PyObject * obj0 = 0 ;
29439 PyObject * obj1 = 0 ;
29440 PyObject * obj2 = 0 ;
29441 PyObject * obj3 = 0 ;
29442 PyObject * obj4 = 0 ;
29443 char * kwnames[] = {
29444 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
29445 };
29446
29447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29449 if (!SWIG_IsOK(res1)) {
29450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29451 }
29452 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29453 ecode2 = SWIG_AsVal_long(obj1, &val2);
29454 if (!SWIG_IsOK(ecode2)) {
29455 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetStringItem" "', expected argument " "2"" of type '" "long""'");
29456 }
29457 arg2 = static_cast< long >(val2);
29458 ecode3 = SWIG_AsVal_int(obj2, &val3);
29459 if (!SWIG_IsOK(ecode3)) {
29460 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetStringItem" "', expected argument " "3"" of type '" "int""'");
29461 }
29462 arg3 = static_cast< int >(val3);
29463 {
29464 arg4 = wxString_in_helper(obj3);
29465 if (arg4 == NULL) SWIG_fail;
29466 temp4 = true;
29467 }
29468 if (obj4) {
29469 ecode5 = SWIG_AsVal_int(obj4, &val5);
29470 if (!SWIG_IsOK(ecode5)) {
29471 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_SetStringItem" "', expected argument " "5"" of type '" "int""'");
29472 }
29473 arg5 = static_cast< int >(val5);
29474 }
29475 {
29476 PyThreadState* __tstate = wxPyBeginAllowThreads();
29477 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
29478 wxPyEndAllowThreads(__tstate);
29479 if (PyErr_Occurred()) SWIG_fail;
29480 }
29481 resultobj = SWIG_From_long(static_cast< long >(result));
29482 {
29483 if (temp4)
29484 delete arg4;
29485 }
29486 return resultobj;
29487fail:
29488 {
29489 if (temp4)
29490 delete arg4;
29491 }
29492 return NULL;
29493}
29494
29495
29496SWIGINTERN PyObject *_wrap_ListCtrl_GetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29497 PyObject *resultobj = 0;
29498 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29499 long arg2 ;
29500 long arg3 ;
29501 int result;
29502 void *argp1 = 0 ;
29503 int res1 = 0 ;
29504 long val2 ;
29505 int ecode2 = 0 ;
29506 long val3 ;
29507 int ecode3 = 0 ;
29508 PyObject * obj0 = 0 ;
29509 PyObject * obj1 = 0 ;
29510 PyObject * obj2 = 0 ;
29511 char * kwnames[] = {
29512 (char *) "self",(char *) "item",(char *) "stateMask", NULL
29513 };
29514
29515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29517 if (!SWIG_IsOK(res1)) {
29518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29519 }
29520 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29521 ecode2 = SWIG_AsVal_long(obj1, &val2);
29522 if (!SWIG_IsOK(ecode2)) {
29523 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemState" "', expected argument " "2"" of type '" "long""'");
29524 }
29525 arg2 = static_cast< long >(val2);
29526 ecode3 = SWIG_AsVal_long(obj2, &val3);
29527 if (!SWIG_IsOK(ecode3)) {
29528 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemState" "', expected argument " "3"" of type '" "long""'");
29529 }
29530 arg3 = static_cast< long >(val3);
29531 {
29532 PyThreadState* __tstate = wxPyBeginAllowThreads();
29533 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
29534 wxPyEndAllowThreads(__tstate);
29535 if (PyErr_Occurred()) SWIG_fail;
29536 }
29537 resultobj = SWIG_From_int(static_cast< int >(result));
29538 return resultobj;
29539fail:
29540 return NULL;
29541}
29542
29543
29544SWIGINTERN PyObject *_wrap_ListCtrl_SetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29545 PyObject *resultobj = 0;
29546 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29547 long arg2 ;
29548 long arg3 ;
29549 long arg4 ;
29550 bool result;
29551 void *argp1 = 0 ;
29552 int res1 = 0 ;
29553 long val2 ;
29554 int ecode2 = 0 ;
29555 long val3 ;
29556 int ecode3 = 0 ;
29557 long val4 ;
29558 int ecode4 = 0 ;
29559 PyObject * obj0 = 0 ;
29560 PyObject * obj1 = 0 ;
29561 PyObject * obj2 = 0 ;
29562 PyObject * obj3 = 0 ;
29563 char * kwnames[] = {
29564 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
29565 };
29566
29567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29568 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29569 if (!SWIG_IsOK(res1)) {
29570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29571 }
29572 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29573 ecode2 = SWIG_AsVal_long(obj1, &val2);
29574 if (!SWIG_IsOK(ecode2)) {
29575 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemState" "', expected argument " "2"" of type '" "long""'");
29576 }
29577 arg2 = static_cast< long >(val2);
29578 ecode3 = SWIG_AsVal_long(obj2, &val3);
29579 if (!SWIG_IsOK(ecode3)) {
29580 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemState" "', expected argument " "3"" of type '" "long""'");
29581 }
29582 arg3 = static_cast< long >(val3);
29583 ecode4 = SWIG_AsVal_long(obj3, &val4);
29584 if (!SWIG_IsOK(ecode4)) {
29585 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemState" "', expected argument " "4"" of type '" "long""'");
29586 }
29587 arg4 = static_cast< long >(val4);
29588 {
29589 PyThreadState* __tstate = wxPyBeginAllowThreads();
29590 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
29591 wxPyEndAllowThreads(__tstate);
29592 if (PyErr_Occurred()) SWIG_fail;
29593 }
29594 {
29595 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29596 }
29597 return resultobj;
29598fail:
29599 return NULL;
29600}
29601
29602
29603SWIGINTERN PyObject *_wrap_ListCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29604 PyObject *resultobj = 0;
29605 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29606 long arg2 ;
29607 int arg3 ;
29608 int arg4 = (int) -1 ;
29609 bool result;
29610 void *argp1 = 0 ;
29611 int res1 = 0 ;
29612 long val2 ;
29613 int ecode2 = 0 ;
29614 int val3 ;
29615 int ecode3 = 0 ;
29616 int val4 ;
29617 int ecode4 = 0 ;
29618 PyObject * obj0 = 0 ;
29619 PyObject * obj1 = 0 ;
29620 PyObject * obj2 = 0 ;
29621 PyObject * obj3 = 0 ;
29622 char * kwnames[] = {
29623 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
29624 };
29625
29626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29628 if (!SWIG_IsOK(res1)) {
29629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29630 }
29631 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29632 ecode2 = SWIG_AsVal_long(obj1, &val2);
29633 if (!SWIG_IsOK(ecode2)) {
29634 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemImage" "', expected argument " "2"" of type '" "long""'");
29635 }
29636 arg2 = static_cast< long >(val2);
29637 ecode3 = SWIG_AsVal_int(obj2, &val3);
29638 if (!SWIG_IsOK(ecode3)) {
29639 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
29640 }
29641 arg3 = static_cast< int >(val3);
29642 if (obj3) {
29643 ecode4 = SWIG_AsVal_int(obj3, &val4);
29644 if (!SWIG_IsOK(ecode4)) {
29645 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemImage" "', expected argument " "4"" of type '" "int""'");
29646 }
29647 arg4 = static_cast< int >(val4);
29648 }
29649 {
29650 PyThreadState* __tstate = wxPyBeginAllowThreads();
29651 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
29652 wxPyEndAllowThreads(__tstate);
29653 if (PyErr_Occurred()) SWIG_fail;
29654 }
29655 {
29656 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29657 }
29658 return resultobj;
29659fail:
29660 return NULL;
29661}
29662
29663
29664SWIGINTERN PyObject *_wrap_ListCtrl_SetItemColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29665 PyObject *resultobj = 0;
29666 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29667 long arg2 ;
29668 long arg3 ;
29669 int arg4 ;
29670 bool result;
29671 void *argp1 = 0 ;
29672 int res1 = 0 ;
29673 long val2 ;
29674 int ecode2 = 0 ;
29675 long val3 ;
29676 int ecode3 = 0 ;
29677 int val4 ;
29678 int ecode4 = 0 ;
29679 PyObject * obj0 = 0 ;
29680 PyObject * obj1 = 0 ;
29681 PyObject * obj2 = 0 ;
29682 PyObject * obj3 = 0 ;
29683 char * kwnames[] = {
29684 (char *) "self",(char *) "item",(char *) "column",(char *) "image", NULL
29685 };
29686
29687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemColumnImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29689 if (!SWIG_IsOK(res1)) {
29690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29691 }
29692 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29693 ecode2 = SWIG_AsVal_long(obj1, &val2);
29694 if (!SWIG_IsOK(ecode2)) {
29695 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "2"" of type '" "long""'");
29696 }
29697 arg2 = static_cast< long >(val2);
29698 ecode3 = SWIG_AsVal_long(obj2, &val3);
29699 if (!SWIG_IsOK(ecode3)) {
29700 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "3"" of type '" "long""'");
29701 }
29702 arg3 = static_cast< long >(val3);
29703 ecode4 = SWIG_AsVal_int(obj3, &val4);
29704 if (!SWIG_IsOK(ecode4)) {
29705 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "4"" of type '" "int""'");
29706 }
29707 arg4 = static_cast< int >(val4);
29708 {
29709 PyThreadState* __tstate = wxPyBeginAllowThreads();
29710 result = (bool)(arg1)->SetItemColumnImage(arg2,arg3,arg4);
29711 wxPyEndAllowThreads(__tstate);
29712 if (PyErr_Occurred()) SWIG_fail;
29713 }
29714 {
29715 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29716 }
29717 return resultobj;
29718fail:
29719 return NULL;
29720}
29721
29722
29723SWIGINTERN PyObject *_wrap_ListCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29724 PyObject *resultobj = 0;
29725 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29726 long arg2 ;
29727 wxString result;
29728 void *argp1 = 0 ;
29729 int res1 = 0 ;
29730 long val2 ;
29731 int ecode2 = 0 ;
29732 PyObject * obj0 = 0 ;
29733 PyObject * obj1 = 0 ;
29734 char * kwnames[] = {
29735 (char *) "self",(char *) "item", NULL
29736 };
29737
29738 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
29739 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29740 if (!SWIG_IsOK(res1)) {
29741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29742 }
29743 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29744 ecode2 = SWIG_AsVal_long(obj1, &val2);
29745 if (!SWIG_IsOK(ecode2)) {
29746 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemText" "', expected argument " "2"" of type '" "long""'");
29747 }
29748 arg2 = static_cast< long >(val2);
29749 {
29750 PyThreadState* __tstate = wxPyBeginAllowThreads();
29751 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
29752 wxPyEndAllowThreads(__tstate);
29753 if (PyErr_Occurred()) SWIG_fail;
29754 }
29755 {
29756#if wxUSE_UNICODE
29757 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29758#else
29759 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29760#endif
29761 }
29762 return resultobj;
29763fail:
29764 return NULL;
29765}
29766
29767
29768SWIGINTERN PyObject *_wrap_ListCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29769 PyObject *resultobj = 0;
29770 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29771 long arg2 ;
29772 wxString *arg3 = 0 ;
29773 void *argp1 = 0 ;
29774 int res1 = 0 ;
29775 long val2 ;
29776 int ecode2 = 0 ;
29777 bool temp3 = false ;
29778 PyObject * obj0 = 0 ;
29779 PyObject * obj1 = 0 ;
29780 PyObject * obj2 = 0 ;
29781 char * kwnames[] = {
29782 (char *) "self",(char *) "item",(char *) "str", NULL
29783 };
29784
29785 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29786 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29787 if (!SWIG_IsOK(res1)) {
29788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29789 }
29790 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29791 ecode2 = SWIG_AsVal_long(obj1, &val2);
29792 if (!SWIG_IsOK(ecode2)) {
29793 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemText" "', expected argument " "2"" of type '" "long""'");
29794 }
29795 arg2 = static_cast< long >(val2);
29796 {
29797 arg3 = wxString_in_helper(obj2);
29798 if (arg3 == NULL) SWIG_fail;
29799 temp3 = true;
29800 }
29801 {
29802 PyThreadState* __tstate = wxPyBeginAllowThreads();
29803 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
29804 wxPyEndAllowThreads(__tstate);
29805 if (PyErr_Occurred()) SWIG_fail;
29806 }
29807 resultobj = SWIG_Py_Void();
29808 {
29809 if (temp3)
29810 delete arg3;
29811 }
29812 return resultobj;
29813fail:
29814 {
29815 if (temp3)
29816 delete arg3;
29817 }
29818 return NULL;
29819}
29820
29821
29822SWIGINTERN PyObject *_wrap_ListCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29823 PyObject *resultobj = 0;
29824 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29825 long arg2 ;
29826 long result;
29827 void *argp1 = 0 ;
29828 int res1 = 0 ;
29829 long val2 ;
29830 int ecode2 = 0 ;
29831 PyObject * obj0 = 0 ;
29832 PyObject * obj1 = 0 ;
29833 char * kwnames[] = {
29834 (char *) "self",(char *) "item", NULL
29835 };
29836
29837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
29838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29839 if (!SWIG_IsOK(res1)) {
29840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29841 }
29842 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29843 ecode2 = SWIG_AsVal_long(obj1, &val2);
29844 if (!SWIG_IsOK(ecode2)) {
29845 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemData" "', expected argument " "2"" of type '" "long""'");
29846 }
29847 arg2 = static_cast< long >(val2);
29848 {
29849 PyThreadState* __tstate = wxPyBeginAllowThreads();
29850 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
29851 wxPyEndAllowThreads(__tstate);
29852 if (PyErr_Occurred()) SWIG_fail;
29853 }
29854 resultobj = SWIG_From_long(static_cast< long >(result));
29855 return resultobj;
29856fail:
29857 return NULL;
29858}
29859
29860
29861SWIGINTERN PyObject *_wrap_ListCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29862 PyObject *resultobj = 0;
29863 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29864 long arg2 ;
29865 long arg3 ;
29866 bool result;
29867 void *argp1 = 0 ;
29868 int res1 = 0 ;
29869 long val2 ;
29870 int ecode2 = 0 ;
29871 long val3 ;
29872 int ecode3 = 0 ;
29873 PyObject * obj0 = 0 ;
29874 PyObject * obj1 = 0 ;
29875 PyObject * obj2 = 0 ;
29876 char * kwnames[] = {
29877 (char *) "self",(char *) "item",(char *) "data", NULL
29878 };
29879
29880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29882 if (!SWIG_IsOK(res1)) {
29883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29884 }
29885 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29886 ecode2 = SWIG_AsVal_long(obj1, &val2);
29887 if (!SWIG_IsOK(ecode2)) {
29888 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemData" "', expected argument " "2"" of type '" "long""'");
29889 }
29890 arg2 = static_cast< long >(val2);
29891 ecode3 = SWIG_AsVal_long(obj2, &val3);
29892 if (!SWIG_IsOK(ecode3)) {
29893 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemData" "', expected argument " "3"" of type '" "long""'");
29894 }
29895 arg3 = static_cast< long >(val3);
29896 {
29897 PyThreadState* __tstate = wxPyBeginAllowThreads();
29898 result = (bool)(arg1)->SetItemData(arg2,arg3);
29899 wxPyEndAllowThreads(__tstate);
29900 if (PyErr_Occurred()) SWIG_fail;
29901 }
29902 {
29903 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29904 }
29905 return resultobj;
29906fail:
29907 return NULL;
29908}
29909
29910
29911SWIGINTERN PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29912 PyObject *resultobj = 0;
29913 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29914 long arg2 ;
29915 wxPoint result;
29916 void *argp1 = 0 ;
29917 int res1 = 0 ;
29918 long val2 ;
29919 int ecode2 = 0 ;
29920 PyObject * obj0 = 0 ;
29921 PyObject * obj1 = 0 ;
29922 char * kwnames[] = {
29923 (char *) "self",(char *) "item", NULL
29924 };
29925
29926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) SWIG_fail;
29927 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29928 if (!SWIG_IsOK(res1)) {
29929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29930 }
29931 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29932 ecode2 = SWIG_AsVal_long(obj1, &val2);
29933 if (!SWIG_IsOK(ecode2)) {
29934 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "2"" of type '" "long""'");
29935 }
29936 arg2 = static_cast< long >(val2);
29937 {
29938 PyThreadState* __tstate = wxPyBeginAllowThreads();
29939 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
29940 wxPyEndAllowThreads(__tstate);
29941 if (PyErr_Occurred()) SWIG_fail;
29942 }
29943 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
29944 return resultobj;
29945fail:
29946 return NULL;
29947}
29948
29949
29950SWIGINTERN PyObject *_wrap_ListCtrl_GetItemRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29951 PyObject *resultobj = 0;
29952 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29953 long arg2 ;
29954 int arg3 = (int) wxLIST_RECT_BOUNDS ;
29955 wxRect result;
29956 void *argp1 = 0 ;
29957 int res1 = 0 ;
29958 long val2 ;
29959 int ecode2 = 0 ;
29960 int val3 ;
29961 int ecode3 = 0 ;
29962 PyObject * obj0 = 0 ;
29963 PyObject * obj1 = 0 ;
29964 PyObject * obj2 = 0 ;
29965 char * kwnames[] = {
29966 (char *) "self",(char *) "item",(char *) "code", NULL
29967 };
29968
29969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29971 if (!SWIG_IsOK(res1)) {
29972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemRect" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29973 }
29974 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29975 ecode2 = SWIG_AsVal_long(obj1, &val2);
29976 if (!SWIG_IsOK(ecode2)) {
29977 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemRect" "', expected argument " "2"" of type '" "long""'");
29978 }
29979 arg2 = static_cast< long >(val2);
29980 if (obj2) {
29981 ecode3 = SWIG_AsVal_int(obj2, &val3);
29982 if (!SWIG_IsOK(ecode3)) {
29983 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemRect" "', expected argument " "3"" of type '" "int""'");
29984 }
29985 arg3 = static_cast< int >(val3);
29986 }
29987 {
29988 PyThreadState* __tstate = wxPyBeginAllowThreads();
29989 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
29990 wxPyEndAllowThreads(__tstate);
29991 if (PyErr_Occurred()) SWIG_fail;
29992 }
29993 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29994 return resultobj;
29995fail:
29996 return NULL;
29997}
29998
29999
30000SWIGINTERN PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30001 PyObject *resultobj = 0;
30002 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30003 long arg2 ;
30004 wxPoint *arg3 = 0 ;
30005 bool result;
30006 void *argp1 = 0 ;
30007 int res1 = 0 ;
30008 long val2 ;
30009 int ecode2 = 0 ;
30010 wxPoint temp3 ;
30011 PyObject * obj0 = 0 ;
30012 PyObject * obj1 = 0 ;
30013 PyObject * obj2 = 0 ;
30014 char * kwnames[] = {
30015 (char *) "self",(char *) "item",(char *) "pos", NULL
30016 };
30017
30018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30020 if (!SWIG_IsOK(res1)) {
30021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30022 }
30023 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30024 ecode2 = SWIG_AsVal_long(obj1, &val2);
30025 if (!SWIG_IsOK(ecode2)) {
30026 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "2"" of type '" "long""'");
30027 }
30028 arg2 = static_cast< long >(val2);
30029 {
30030 arg3 = &temp3;
30031 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30032 }
30033 {
30034 PyThreadState* __tstate = wxPyBeginAllowThreads();
30035 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
30036 wxPyEndAllowThreads(__tstate);
30037 if (PyErr_Occurred()) SWIG_fail;
30038 }
30039 {
30040 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30041 }
30042 return resultobj;
30043fail:
30044 return NULL;
7e08d4ef
RD
30045}
30046
30047
1bd55598
RD
30048SWIGINTERN PyObject *_wrap_ListCtrl_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30049 PyObject *resultobj = 0;
30050 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30051 int result;
30052 void *argp1 = 0 ;
30053 int res1 = 0 ;
30054 PyObject *swig_obj[1] ;
30055
30056 if (!args) SWIG_fail;
30057 swig_obj[0] = args;
30058 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30059 if (!SWIG_IsOK(res1)) {
30060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30061 }
30062 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30063 {
30064 PyThreadState* __tstate = wxPyBeginAllowThreads();
30065 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
30066 wxPyEndAllowThreads(__tstate);
30067 if (PyErr_Occurred()) SWIG_fail;
30068 }
30069 resultobj = SWIG_From_int(static_cast< int >(result));
30070 return resultobj;
30071fail:
30072 return NULL;
7e08d4ef
RD
30073}
30074
30075
1bd55598
RD
30076SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30077 PyObject *resultobj = 0;
30078 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30079 int result;
30080 void *argp1 = 0 ;
30081 int res1 = 0 ;
30082 PyObject *swig_obj[1] ;
30083
30084 if (!args) SWIG_fail;
30085 swig_obj[0] = args;
30086 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30087 if (!SWIG_IsOK(res1)) {
30088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30089 }
30090 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30091 {
30092 PyThreadState* __tstate = wxPyBeginAllowThreads();
30093 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
30094 wxPyEndAllowThreads(__tstate);
30095 if (PyErr_Occurred()) SWIG_fail;
30096 }
30097 resultobj = SWIG_From_int(static_cast< int >(result));
30098 return resultobj;
30099fail:
30100 return NULL;
7e08d4ef
RD
30101}
30102
30103
1bd55598
RD
30104SWIGINTERN PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30105 PyObject *resultobj = 0;
30106 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30107 wxSize result;
30108 void *argp1 = 0 ;
30109 int res1 = 0 ;
30110 PyObject *swig_obj[1] ;
30111
30112 if (!args) SWIG_fail;
30113 swig_obj[0] = args;
30114 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30115 if (!SWIG_IsOK(res1)) {
30116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30117 }
30118 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30119 {
30120 PyThreadState* __tstate = wxPyBeginAllowThreads();
30121 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
30122 wxPyEndAllowThreads(__tstate);
30123 if (PyErr_Occurred()) SWIG_fail;
30124 }
30125 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
30126 return resultobj;
30127fail:
30128 return NULL;
30129}
30130
30131
30132SWIGINTERN PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30133 PyObject *resultobj = 0;
30134 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30135 int arg2 ;
30136 bool arg3 = (bool) false ;
30137 void *argp1 = 0 ;
30138 int res1 = 0 ;
30139 int val2 ;
30140 int ecode2 = 0 ;
30141 bool val3 ;
30142 int ecode3 = 0 ;
30143 PyObject * obj0 = 0 ;
30144 PyObject * obj1 = 0 ;
30145 PyObject * obj2 = 0 ;
30146 char * kwnames[] = {
30147 (char *) "self",(char *) "spacing",(char *) "isSmall", NULL
30148 };
30149
30150 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30151 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30152 if (!SWIG_IsOK(res1)) {
30153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30154 }
30155 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30156 ecode2 = SWIG_AsVal_int(obj1, &val2);
30157 if (!SWIG_IsOK(ecode2)) {
30158 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "2"" of type '" "int""'");
30159 }
30160 arg2 = static_cast< int >(val2);
30161 if (obj2) {
30162 ecode3 = SWIG_AsVal_bool(obj2, &val3);
30163 if (!SWIG_IsOK(ecode3)) {
30164 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "3"" of type '" "bool""'");
30165 }
30166 arg3 = static_cast< bool >(val3);
30167 }
30168 {
30169 PyThreadState* __tstate = wxPyBeginAllowThreads();
30170 (arg1)->SetItemSpacing(arg2,arg3);
30171 wxPyEndAllowThreads(__tstate);
30172 if (PyErr_Occurred()) SWIG_fail;
30173 }
30174 resultobj = SWIG_Py_Void();
30175 return resultobj;
30176fail:
30177 return NULL;
7e08d4ef
RD
30178}
30179
30180
1bd55598
RD
30181SWIGINTERN PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30182 PyObject *resultobj = 0;
30183 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30184 int result;
30185 void *argp1 = 0 ;
30186 int res1 = 0 ;
30187 PyObject *swig_obj[1] ;
30188
30189 if (!args) SWIG_fail;
30190 swig_obj[0] = args;
30191 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30192 if (!SWIG_IsOK(res1)) {
30193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetSelectedItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30194 }
30195 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30196 {
30197 PyThreadState* __tstate = wxPyBeginAllowThreads();
30198 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
30199 wxPyEndAllowThreads(__tstate);
30200 if (PyErr_Occurred()) SWIG_fail;
30201 }
30202 resultobj = SWIG_From_int(static_cast< int >(result));
30203 return resultobj;
30204fail:
30205 return NULL;
7e08d4ef
RD
30206}
30207
30208
1bd55598
RD
30209SWIGINTERN PyObject *_wrap_ListCtrl_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30210 PyObject *resultobj = 0;
30211 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30212 wxColour result;
30213 void *argp1 = 0 ;
30214 int res1 = 0 ;
30215 PyObject *swig_obj[1] ;
30216
30217 if (!args) SWIG_fail;
30218 swig_obj[0] = args;
30219 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30220 if (!SWIG_IsOK(res1)) {
30221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30222 }
30223 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30224 {
30225 PyThreadState* __tstate = wxPyBeginAllowThreads();
30226 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
30227 wxPyEndAllowThreads(__tstate);
30228 if (PyErr_Occurred()) SWIG_fail;
30229 }
30230 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
30231 return resultobj;
30232fail:
30233 return NULL;
30234}
30235
30236
30237SWIGINTERN PyObject *_wrap_ListCtrl_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30238 PyObject *resultobj = 0;
30239 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30240 wxColour *arg2 = 0 ;
30241 void *argp1 = 0 ;
30242 int res1 = 0 ;
30243 wxColour temp2 ;
30244 PyObject * obj0 = 0 ;
30245 PyObject * obj1 = 0 ;
30246 char * kwnames[] = {
30247 (char *) "self",(char *) "col", NULL
30248 };
30249
30250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
30251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30252 if (!SWIG_IsOK(res1)) {
30253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30254 }
30255 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30256 {
30257 arg2 = &temp2;
30258 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30259 }
30260 {
30261 PyThreadState* __tstate = wxPyBeginAllowThreads();
30262 (arg1)->SetTextColour((wxColour const &)*arg2);
30263 wxPyEndAllowThreads(__tstate);
30264 if (PyErr_Occurred()) SWIG_fail;
30265 }
30266 resultobj = SWIG_Py_Void();
30267 return resultobj;
30268fail:
30269 return NULL;
7e08d4ef
RD
30270}
30271
30272
1bd55598
RD
30273SWIGINTERN PyObject *_wrap_ListCtrl_GetTopItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30274 PyObject *resultobj = 0;
30275 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30276 long result;
30277 void *argp1 = 0 ;
30278 int res1 = 0 ;
30279 PyObject *swig_obj[1] ;
30280
30281 if (!args) SWIG_fail;
30282 swig_obj[0] = args;
30283 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30284 if (!SWIG_IsOK(res1)) {
30285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTopItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30286 }
30287 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30288 {
30289 PyThreadState* __tstate = wxPyBeginAllowThreads();
30290 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
30291 wxPyEndAllowThreads(__tstate);
30292 if (PyErr_Occurred()) SWIG_fail;
30293 }
30294 resultobj = SWIG_From_long(static_cast< long >(result));
30295 return resultobj;
30296fail:
30297 return NULL;
30298}
30299
30300
30301SWIGINTERN PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30302 PyObject *resultobj = 0;
30303 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30304 long arg2 ;
30305 bool arg3 = (bool) true ;
30306 void *argp1 = 0 ;
30307 int res1 = 0 ;
30308 long val2 ;
30309 int ecode2 = 0 ;
30310 bool val3 ;
30311 int ecode3 = 0 ;
30312 PyObject * obj0 = 0 ;
30313 PyObject * obj1 = 0 ;
30314 PyObject * obj2 = 0 ;
30315 char * kwnames[] = {
30316 (char *) "self",(char *) "style",(char *) "add", NULL
30317 };
30318
30319 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30320 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30321 if (!SWIG_IsOK(res1)) {
30322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30323 }
30324 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30325 ecode2 = SWIG_AsVal_long(obj1, &val2);
30326 if (!SWIG_IsOK(ecode2)) {
30327 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "2"" of type '" "long""'");
30328 }
30329 arg2 = static_cast< long >(val2);
30330 if (obj2) {
30331 ecode3 = SWIG_AsVal_bool(obj2, &val3);
30332 if (!SWIG_IsOK(ecode3)) {
30333 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "3"" of type '" "bool""'");
30334 }
30335 arg3 = static_cast< bool >(val3);
30336 }
30337 {
30338 PyThreadState* __tstate = wxPyBeginAllowThreads();
30339 (arg1)->SetSingleStyle(arg2,arg3);
30340 wxPyEndAllowThreads(__tstate);
30341 if (PyErr_Occurred()) SWIG_fail;
30342 }
30343 resultobj = SWIG_Py_Void();
30344 return resultobj;
30345fail:
30346 return NULL;
30347}
30348
30349
30350SWIGINTERN PyObject *_wrap_ListCtrl_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30351 PyObject *resultobj = 0;
30352 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30353 long arg2 ;
30354 int arg3 = (int) wxLIST_NEXT_ALL ;
30355 int arg4 = (int) wxLIST_STATE_DONTCARE ;
30356 long result;
30357 void *argp1 = 0 ;
30358 int res1 = 0 ;
30359 long val2 ;
30360 int ecode2 = 0 ;
30361 int val3 ;
30362 int ecode3 = 0 ;
30363 int val4 ;
30364 int ecode4 = 0 ;
30365 PyObject * obj0 = 0 ;
30366 PyObject * obj1 = 0 ;
30367 PyObject * obj2 = 0 ;
30368 PyObject * obj3 = 0 ;
30369 char * kwnames[] = {
30370 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
30371 };
30372
30373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30375 if (!SWIG_IsOK(res1)) {
30376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetNextItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30377 }
30378 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30379 ecode2 = SWIG_AsVal_long(obj1, &val2);
30380 if (!SWIG_IsOK(ecode2)) {
30381 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetNextItem" "', expected argument " "2"" of type '" "long""'");
30382 }
30383 arg2 = static_cast< long >(val2);
30384 if (obj2) {
30385 ecode3 = SWIG_AsVal_int(obj2, &val3);
30386 if (!SWIG_IsOK(ecode3)) {
30387 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetNextItem" "', expected argument " "3"" of type '" "int""'");
30388 }
30389 arg3 = static_cast< int >(val3);
30390 }
30391 if (obj3) {
30392 ecode4 = SWIG_AsVal_int(obj3, &val4);
30393 if (!SWIG_IsOK(ecode4)) {
30394 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_GetNextItem" "', expected argument " "4"" of type '" "int""'");
30395 }
30396 arg4 = static_cast< int >(val4);
30397 }
30398 {
30399 PyThreadState* __tstate = wxPyBeginAllowThreads();
30400 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
30401 wxPyEndAllowThreads(__tstate);
30402 if (PyErr_Occurred()) SWIG_fail;
30403 }
30404 resultobj = SWIG_From_long(static_cast< long >(result));
30405 return resultobj;
30406fail:
30407 return NULL;
30408}
30409
30410
30411SWIGINTERN PyObject *_wrap_ListCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30412 PyObject *resultobj = 0;
30413 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30414 int arg2 ;
30415 wxImageList *result = 0 ;
30416 void *argp1 = 0 ;
30417 int res1 = 0 ;
30418 int val2 ;
30419 int ecode2 = 0 ;
30420 PyObject * obj0 = 0 ;
30421 PyObject * obj1 = 0 ;
30422 char * kwnames[] = {
30423 (char *) "self",(char *) "which", NULL
30424 };
30425
30426 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
30427 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30428 if (!SWIG_IsOK(res1)) {
30429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30430 }
30431 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30432 ecode2 = SWIG_AsVal_int(obj1, &val2);
30433 if (!SWIG_IsOK(ecode2)) {
30434 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetImageList" "', expected argument " "2"" of type '" "int""'");
30435 }
30436 arg2 = static_cast< int >(val2);
30437 {
30438 PyThreadState* __tstate = wxPyBeginAllowThreads();
30439 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
30440 wxPyEndAllowThreads(__tstate);
30441 if (PyErr_Occurred()) SWIG_fail;
30442 }
3ecece7e
RD
30443 {
30444 resultobj = wxPyMake_wxObject(result, (bool)0);
30445 }
1bd55598
RD
30446 return resultobj;
30447fail:
30448 return NULL;
30449}
30450
30451
30452SWIGINTERN PyObject *_wrap_ListCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30453 PyObject *resultobj = 0;
30454 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30455 wxImageList *arg2 = (wxImageList *) 0 ;
30456 int arg3 ;
30457 void *argp1 = 0 ;
30458 int res1 = 0 ;
30459 void *argp2 = 0 ;
30460 int res2 = 0 ;
30461 int val3 ;
30462 int ecode3 = 0 ;
30463 PyObject * obj0 = 0 ;
30464 PyObject * obj1 = 0 ;
30465 PyObject * obj2 = 0 ;
30466 char * kwnames[] = {
30467 (char *) "self",(char *) "imageList",(char *) "which", NULL
30468 };
30469
30470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30471 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30472 if (!SWIG_IsOK(res1)) {
30473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30474 }
30475 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30476 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
30477 if (!SWIG_IsOK(res2)) {
30478 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30479 }
30480 arg2 = reinterpret_cast< wxImageList * >(argp2);
30481 ecode3 = SWIG_AsVal_int(obj2, &val3);
30482 if (!SWIG_IsOK(ecode3)) {
30483 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetImageList" "', expected argument " "3"" of type '" "int""'");
30484 }
30485 arg3 = static_cast< int >(val3);
30486 {
30487 PyThreadState* __tstate = wxPyBeginAllowThreads();
30488 (arg1)->SetImageList(arg2,arg3);
30489 wxPyEndAllowThreads(__tstate);
30490 if (PyErr_Occurred()) SWIG_fail;
30491 }
30492 resultobj = SWIG_Py_Void();
30493 return resultobj;
30494fail:
30495 return NULL;
30496}
30497
30498
30499SWIGINTERN PyObject *_wrap_ListCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30500 PyObject *resultobj = 0;
30501 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30502 wxImageList *arg2 = (wxImageList *) 0 ;
30503 int arg3 ;
30504 void *argp1 = 0 ;
30505 int res1 = 0 ;
30506 int res2 = 0 ;
30507 int val3 ;
30508 int ecode3 = 0 ;
30509 PyObject * obj0 = 0 ;
30510 PyObject * obj1 = 0 ;
30511 PyObject * obj2 = 0 ;
30512 char * kwnames[] = {
30513 (char *) "self",(char *) "imageList",(char *) "which", NULL
30514 };
30515
30516 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30518 if (!SWIG_IsOK(res1)) {
30519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30520 }
30521 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30522 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
30523 if (!SWIG_IsOK(res2)) {
30524 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30525 }
30526 ecode3 = SWIG_AsVal_int(obj2, &val3);
30527 if (!SWIG_IsOK(ecode3)) {
30528 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_AssignImageList" "', expected argument " "3"" of type '" "int""'");
30529 }
30530 arg3 = static_cast< int >(val3);
30531 {
30532 PyThreadState* __tstate = wxPyBeginAllowThreads();
30533 (arg1)->AssignImageList(arg2,arg3);
30534 wxPyEndAllowThreads(__tstate);
30535 if (PyErr_Occurred()) SWIG_fail;
30536 }
30537 resultobj = SWIG_Py_Void();
30538 return resultobj;
30539fail:
30540 return NULL;
7e08d4ef
RD
30541}
30542
30543
1bd55598
RD
30544SWIGINTERN PyObject *_wrap_ListCtrl_InReportView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30545 PyObject *resultobj = 0;
30546 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30547 bool result;
30548 void *argp1 = 0 ;
30549 int res1 = 0 ;
30550 PyObject *swig_obj[1] ;
30551
30552 if (!args) SWIG_fail;
30553 swig_obj[0] = args;
30554 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30555 if (!SWIG_IsOK(res1)) {
30556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InReportView" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30557 }
30558 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30559 {
30560 PyThreadState* __tstate = wxPyBeginAllowThreads();
30561 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
30562 wxPyEndAllowThreads(__tstate);
30563 if (PyErr_Occurred()) SWIG_fail;
30564 }
30565 {
30566 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30567 }
30568 return resultobj;
30569fail:
30570 return NULL;
44bf767a
RD
30571}
30572
30573
1bd55598
RD
30574SWIGINTERN PyObject *_wrap_ListCtrl_IsVirtual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30575 PyObject *resultobj = 0;
30576 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30577 bool result;
30578 void *argp1 = 0 ;
30579 int res1 = 0 ;
30580 PyObject *swig_obj[1] ;
30581
30582 if (!args) SWIG_fail;
30583 swig_obj[0] = args;
30584 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30585 if (!SWIG_IsOK(res1)) {
30586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_IsVirtual" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30587 }
30588 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30589 {
30590 PyThreadState* __tstate = wxPyBeginAllowThreads();
30591 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
30592 wxPyEndAllowThreads(__tstate);
30593 if (PyErr_Occurred()) SWIG_fail;
30594 }
30595 {
30596 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30597 }
30598 return resultobj;
30599fail:
30600 return NULL;
30601}
30602
30603
30604SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30605 PyObject *resultobj = 0;
30606 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30607 long arg2 ;
30608 void *argp1 = 0 ;
30609 int res1 = 0 ;
30610 long val2 ;
30611 int ecode2 = 0 ;
30612 PyObject * obj0 = 0 ;
30613 PyObject * obj1 = 0 ;
30614 char * kwnames[] = {
30615 (char *) "self",(char *) "item", NULL
30616 };
30617
30618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) SWIG_fail;
30619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30620 if (!SWIG_IsOK(res1)) {
30621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30622 }
30623 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30624 ecode2 = SWIG_AsVal_long(obj1, &val2);
30625 if (!SWIG_IsOK(ecode2)) {
30626 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItem" "', expected argument " "2"" of type '" "long""'");
30627 }
30628 arg2 = static_cast< long >(val2);
30629 {
30630 PyThreadState* __tstate = wxPyBeginAllowThreads();
30631 (arg1)->RefreshItem(arg2);
30632 wxPyEndAllowThreads(__tstate);
30633 if (PyErr_Occurred()) SWIG_fail;
30634 }
30635 resultobj = SWIG_Py_Void();
30636 return resultobj;
30637fail:
30638 return NULL;
30639}
30640
30641
30642SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30643 PyObject *resultobj = 0;
30644 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30645 long arg2 ;
30646 long arg3 ;
30647 void *argp1 = 0 ;
30648 int res1 = 0 ;
30649 long val2 ;
30650 int ecode2 = 0 ;
30651 long val3 ;
30652 int ecode3 = 0 ;
30653 PyObject * obj0 = 0 ;
30654 PyObject * obj1 = 0 ;
30655 PyObject * obj2 = 0 ;
30656 char * kwnames[] = {
30657 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
30658 };
30659
30660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30662 if (!SWIG_IsOK(res1)) {
30663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30664 }
30665 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30666 ecode2 = SWIG_AsVal_long(obj1, &val2);
30667 if (!SWIG_IsOK(ecode2)) {
30668 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItems" "', expected argument " "2"" of type '" "long""'");
30669 }
30670 arg2 = static_cast< long >(val2);
30671 ecode3 = SWIG_AsVal_long(obj2, &val3);
30672 if (!SWIG_IsOK(ecode3)) {
30673 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_RefreshItems" "', expected argument " "3"" of type '" "long""'");
30674 }
30675 arg3 = static_cast< long >(val3);
30676 {
30677 PyThreadState* __tstate = wxPyBeginAllowThreads();
30678 (arg1)->RefreshItems(arg2,arg3);
30679 wxPyEndAllowThreads(__tstate);
30680 if (PyErr_Occurred()) SWIG_fail;
30681 }
30682 resultobj = SWIG_Py_Void();
30683 return resultobj;
30684fail:
30685 return NULL;
30686}
30687
30688
30689SWIGINTERN PyObject *_wrap_ListCtrl_Arrange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30690 PyObject *resultobj = 0;
30691 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30692 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
30693 bool result;
30694 void *argp1 = 0 ;
30695 int res1 = 0 ;
30696 int val2 ;
30697 int ecode2 = 0 ;
30698 PyObject * obj0 = 0 ;
30699 PyObject * obj1 = 0 ;
30700 char * kwnames[] = {
30701 (char *) "self",(char *) "flag", NULL
30702 };
30703
30704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) SWIG_fail;
30705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30706 if (!SWIG_IsOK(res1)) {
30707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Arrange" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30708 }
30709 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30710 if (obj1) {
30711 ecode2 = SWIG_AsVal_int(obj1, &val2);
30712 if (!SWIG_IsOK(ecode2)) {
30713 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_Arrange" "', expected argument " "2"" of type '" "int""'");
30714 }
30715 arg2 = static_cast< int >(val2);
30716 }
30717 {
30718 PyThreadState* __tstate = wxPyBeginAllowThreads();
30719 result = (bool)(arg1)->Arrange(arg2);
30720 wxPyEndAllowThreads(__tstate);
30721 if (PyErr_Occurred()) SWIG_fail;
30722 }
30723 {
30724 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30725 }
30726 return resultobj;
30727fail:
30728 return NULL;
30729}
30730
30731
30732SWIGINTERN PyObject *_wrap_ListCtrl_DeleteItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30733 PyObject *resultobj = 0;
30734 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30735 long arg2 ;
30736 bool result;
30737 void *argp1 = 0 ;
30738 int res1 = 0 ;
30739 long val2 ;
30740 int ecode2 = 0 ;
30741 PyObject * obj0 = 0 ;
30742 PyObject * obj1 = 0 ;
30743 char * kwnames[] = {
30744 (char *) "self",(char *) "item", NULL
30745 };
30746
30747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) SWIG_fail;
30748 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30749 if (!SWIG_IsOK(res1)) {
30750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30751 }
30752 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30753 ecode2 = SWIG_AsVal_long(obj1, &val2);
30754 if (!SWIG_IsOK(ecode2)) {
30755 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteItem" "', expected argument " "2"" of type '" "long""'");
30756 }
30757 arg2 = static_cast< long >(val2);
30758 {
30759 PyThreadState* __tstate = wxPyBeginAllowThreads();
30760 result = (bool)(arg1)->DeleteItem(arg2);
30761 wxPyEndAllowThreads(__tstate);
30762 if (PyErr_Occurred()) SWIG_fail;
30763 }
30764 {
30765 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30766 }
30767 return resultobj;
30768fail:
30769 return NULL;
d55e5bfc
RD
30770}
30771
30772
1bd55598
RD
30773SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30774 PyObject *resultobj = 0;
30775 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30776 bool result;
30777 void *argp1 = 0 ;
30778 int res1 = 0 ;
30779 PyObject *swig_obj[1] ;
30780
30781 if (!args) SWIG_fail;
30782 swig_obj[0] = args;
30783 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30784 if (!SWIG_IsOK(res1)) {
30785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30786 }
30787 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30788 {
30789 PyThreadState* __tstate = wxPyBeginAllowThreads();
30790 result = (bool)(arg1)->DeleteAllItems();
30791 wxPyEndAllowThreads(__tstate);
30792 if (PyErr_Occurred()) SWIG_fail;
30793 }
30794 {
30795 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30796 }
30797 return resultobj;
30798fail:
30799 return NULL;
30800}
30801
30802
30803SWIGINTERN PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30804 PyObject *resultobj = 0;
30805 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30806 int arg2 ;
30807 bool result;
30808 void *argp1 = 0 ;
30809 int res1 = 0 ;
30810 int val2 ;
30811 int ecode2 = 0 ;
30812 PyObject * obj0 = 0 ;
30813 PyObject * obj1 = 0 ;
30814 char * kwnames[] = {
30815 (char *) "self",(char *) "col", NULL
30816 };
30817
30818 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) SWIG_fail;
30819 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30820 if (!SWIG_IsOK(res1)) {
30821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30822 }
30823 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30824 ecode2 = SWIG_AsVal_int(obj1, &val2);
30825 if (!SWIG_IsOK(ecode2)) {
30826 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "2"" of type '" "int""'");
30827 }
30828 arg2 = static_cast< int >(val2);
30829 {
30830 PyThreadState* __tstate = wxPyBeginAllowThreads();
30831 result = (bool)(arg1)->DeleteColumn(arg2);
30832 wxPyEndAllowThreads(__tstate);
30833 if (PyErr_Occurred()) SWIG_fail;
30834 }
30835 {
30836 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30837 }
30838 return resultobj;
30839fail:
30840 return NULL;
b411df4a
RD
30841}
30842
30843
1bd55598
RD
30844SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30845 PyObject *resultobj = 0;
30846 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30847 bool result;
30848 void *argp1 = 0 ;
30849 int res1 = 0 ;
30850 PyObject *swig_obj[1] ;
30851
30852 if (!args) SWIG_fail;
30853 swig_obj[0] = args;
30854 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30855 if (!SWIG_IsOK(res1)) {
30856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllColumns" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30857 }
30858 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30859 {
30860 PyThreadState* __tstate = wxPyBeginAllowThreads();
30861 result = (bool)(arg1)->DeleteAllColumns();
30862 wxPyEndAllowThreads(__tstate);
30863 if (PyErr_Occurred()) SWIG_fail;
30864 }
30865 {
30866 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30867 }
30868 return resultobj;
30869fail:
30870 return NULL;
b411df4a
RD
30871}
30872
30873
1bd55598
RD
30874SWIGINTERN PyObject *_wrap_ListCtrl_ClearAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30875 PyObject *resultobj = 0;
30876 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30877 void *argp1 = 0 ;
30878 int res1 = 0 ;
30879 PyObject *swig_obj[1] ;
30880
30881 if (!args) SWIG_fail;
30882 swig_obj[0] = args;
30883 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30884 if (!SWIG_IsOK(res1)) {
30885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ClearAll" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30886 }
30887 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30888 {
30889 PyThreadState* __tstate = wxPyBeginAllowThreads();
30890 (arg1)->ClearAll();
30891 wxPyEndAllowThreads(__tstate);
30892 if (PyErr_Occurred()) SWIG_fail;
30893 }
30894 resultobj = SWIG_Py_Void();
30895 return resultobj;
30896fail:
30897 return NULL;
30898}
30899
30900
30901SWIGINTERN PyObject *_wrap_ListCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30902 PyObject *resultobj = 0;
30903 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30904 long arg2 ;
30905 void *argp1 = 0 ;
30906 int res1 = 0 ;
30907 long val2 ;
30908 int ecode2 = 0 ;
30909 PyObject * obj0 = 0 ;
30910 PyObject * obj1 = 0 ;
30911 char * kwnames[] = {
30912 (char *) "self",(char *) "item", NULL
30913 };
30914
30915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
30916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30917 if (!SWIG_IsOK(res1)) {
30918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30919 }
30920 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30921 ecode2 = SWIG_AsVal_long(obj1, &val2);
30922 if (!SWIG_IsOK(ecode2)) {
30923 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EditLabel" "', expected argument " "2"" of type '" "long""'");
30924 }
30925 arg2 = static_cast< long >(val2);
30926 {
30927 PyThreadState* __tstate = wxPyBeginAllowThreads();
30928 (arg1)->EditLabel(arg2);
30929 wxPyEndAllowThreads(__tstate);
30930 if (PyErr_Occurred()) SWIG_fail;
30931 }
30932 resultobj = SWIG_Py_Void();
30933 return resultobj;
30934fail:
30935 return NULL;
30936}
30937
30938
30939SWIGINTERN PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30940 PyObject *resultobj = 0;
30941 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30942 long arg2 ;
30943 bool result;
30944 void *argp1 = 0 ;
30945 int res1 = 0 ;
30946 long val2 ;
30947 int ecode2 = 0 ;
30948 PyObject * obj0 = 0 ;
30949 PyObject * obj1 = 0 ;
30950 char * kwnames[] = {
30951 (char *) "self",(char *) "item", NULL
30952 };
30953
30954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
30955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30956 if (!SWIG_IsOK(res1)) {
30957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30958 }
30959 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30960 ecode2 = SWIG_AsVal_long(obj1, &val2);
30961 if (!SWIG_IsOK(ecode2)) {
30962 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "2"" of type '" "long""'");
30963 }
30964 arg2 = static_cast< long >(val2);
30965 {
30966 PyThreadState* __tstate = wxPyBeginAllowThreads();
30967 result = (bool)(arg1)->EnsureVisible(arg2);
30968 wxPyEndAllowThreads(__tstate);
30969 if (PyErr_Occurred()) SWIG_fail;
30970 }
30971 {
30972 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30973 }
30974 return resultobj;
30975fail:
30976 return NULL;
30977}
30978
30979
30980SWIGINTERN PyObject *_wrap_ListCtrl_FindItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30981 PyObject *resultobj = 0;
30982 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30983 long arg2 ;
30984 wxString *arg3 = 0 ;
30985 bool arg4 = (bool) false ;
30986 long result;
30987 void *argp1 = 0 ;
30988 int res1 = 0 ;
30989 long val2 ;
30990 int ecode2 = 0 ;
30991 bool temp3 = false ;
30992 bool val4 ;
30993 int ecode4 = 0 ;
30994 PyObject * obj0 = 0 ;
30995 PyObject * obj1 = 0 ;
30996 PyObject * obj2 = 0 ;
30997 PyObject * obj3 = 0 ;
30998 char * kwnames[] = {
30999 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
31000 };
31001
31002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31003 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31004 if (!SWIG_IsOK(res1)) {
31005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31006 }
31007 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31008 ecode2 = SWIG_AsVal_long(obj1, &val2);
31009 if (!SWIG_IsOK(ecode2)) {
31010 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItem" "', expected argument " "2"" of type '" "long""'");
31011 }
31012 arg2 = static_cast< long >(val2);
31013 {
31014 arg3 = wxString_in_helper(obj2);
31015 if (arg3 == NULL) SWIG_fail;
31016 temp3 = true;
31017 }
31018 if (obj3) {
31019 ecode4 = SWIG_AsVal_bool(obj3, &val4);
31020 if (!SWIG_IsOK(ecode4)) {
31021 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItem" "', expected argument " "4"" of type '" "bool""'");
31022 }
31023 arg4 = static_cast< bool >(val4);
31024 }
31025 {
31026 PyThreadState* __tstate = wxPyBeginAllowThreads();
31027 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
31028 wxPyEndAllowThreads(__tstate);
31029 if (PyErr_Occurred()) SWIG_fail;
31030 }
31031 resultobj = SWIG_From_long(static_cast< long >(result));
31032 {
31033 if (temp3)
31034 delete arg3;
31035 }
31036 return resultobj;
31037fail:
31038 {
31039 if (temp3)
31040 delete arg3;
31041 }
31042 return NULL;
31043}
31044
31045
31046SWIGINTERN PyObject *_wrap_ListCtrl_FindItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31047 PyObject *resultobj = 0;
31048 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31049 long arg2 ;
31050 long arg3 ;
31051 long result;
31052 void *argp1 = 0 ;
31053 int res1 = 0 ;
31054 long val2 ;
31055 int ecode2 = 0 ;
31056 long val3 ;
31057 int ecode3 = 0 ;
31058 PyObject * obj0 = 0 ;
31059 PyObject * obj1 = 0 ;
31060 PyObject * obj2 = 0 ;
31061 char * kwnames[] = {
31062 (char *) "self",(char *) "start",(char *) "data", NULL
31063 };
31064
31065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31067 if (!SWIG_IsOK(res1)) {
31068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31069 }
31070 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31071 ecode2 = SWIG_AsVal_long(obj1, &val2);
31072 if (!SWIG_IsOK(ecode2)) {
31073 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemData" "', expected argument " "2"" of type '" "long""'");
31074 }
31075 arg2 = static_cast< long >(val2);
31076 ecode3 = SWIG_AsVal_long(obj2, &val3);
31077 if (!SWIG_IsOK(ecode3)) {
31078 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_FindItemData" "', expected argument " "3"" of type '" "long""'");
31079 }
31080 arg3 = static_cast< long >(val3);
31081 {
31082 PyThreadState* __tstate = wxPyBeginAllowThreads();
31083 result = (long)(arg1)->FindItem(arg2,arg3);
31084 wxPyEndAllowThreads(__tstate);
31085 if (PyErr_Occurred()) SWIG_fail;
31086 }
31087 resultobj = SWIG_From_long(static_cast< long >(result));
31088 return resultobj;
31089fail:
31090 return NULL;
31091}
31092
31093
31094SWIGINTERN PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31095 PyObject *resultobj = 0;
31096 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31097 long arg2 ;
31098 wxPoint *arg3 = 0 ;
31099 int arg4 ;
31100 long result;
31101 void *argp1 = 0 ;
31102 int res1 = 0 ;
31103 long val2 ;
31104 int ecode2 = 0 ;
31105 wxPoint temp3 ;
31106 int val4 ;
31107 int ecode4 = 0 ;
31108 PyObject * obj0 = 0 ;
31109 PyObject * obj1 = 0 ;
31110 PyObject * obj2 = 0 ;
31111 PyObject * obj3 = 0 ;
31112 char * kwnames[] = {
31113 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
31114 };
31115
31116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31118 if (!SWIG_IsOK(res1)) {
31119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31120 }
31121 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31122 ecode2 = SWIG_AsVal_long(obj1, &val2);
31123 if (!SWIG_IsOK(ecode2)) {
31124 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "2"" of type '" "long""'");
31125 }
31126 arg2 = static_cast< long >(val2);
31127 {
31128 arg3 = &temp3;
31129 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31130 }
31131 ecode4 = SWIG_AsVal_int(obj3, &val4);
31132 if (!SWIG_IsOK(ecode4)) {
31133 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "4"" of type '" "int""'");
31134 }
31135 arg4 = static_cast< int >(val4);
31136 {
31137 PyThreadState* __tstate = wxPyBeginAllowThreads();
31138 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
31139 wxPyEndAllowThreads(__tstate);
31140 if (PyErr_Occurred()) SWIG_fail;
31141 }
31142 resultobj = SWIG_From_long(static_cast< long >(result));
31143 return resultobj;
31144fail:
31145 return NULL;
31146}
31147
31148
31149SWIGINTERN PyObject *_wrap_ListCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31150 PyObject *resultobj = 0;
31151 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31152 wxPoint *arg2 = 0 ;
31153 int *arg3 = 0 ;
31154 long result;
31155 void *argp1 = 0 ;
31156 int res1 = 0 ;
31157 wxPoint temp2 ;
31158 int temp3 ;
31159 int res3 = SWIG_TMPOBJ ;
31160 PyObject * obj0 = 0 ;
31161 PyObject * obj1 = 0 ;
31162 char * kwnames[] = {
31163 (char *) "self",(char *) "point", NULL
31164 };
31165
31166 arg3 = &temp3;
31167 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
31168 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31169 if (!SWIG_IsOK(res1)) {
31170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31171 }
31172 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31173 {
31174 arg2 = &temp2;
31175 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31176 }
31177 {
31178 PyThreadState* __tstate = wxPyBeginAllowThreads();
31179 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
31180 wxPyEndAllowThreads(__tstate);
31181 if (PyErr_Occurred()) SWIG_fail;
31182 }
31183 resultobj = SWIG_From_long(static_cast< long >(result));
31184 if (SWIG_IsTmpObj(res3)) {
31185 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31186 } else {
31187 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31188 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31189 }
31190 return resultobj;
31191fail:
31192 return NULL;
31193}
31194
31195
704eda0c
RD
31196SWIGINTERN PyObject *_wrap_ListCtrl_HitTestSubItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31197 PyObject *resultobj = 0;
31198 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31199 wxPoint *arg2 = 0 ;
31200 int *arg3 = 0 ;
31201 long *arg4 = (long *) 0 ;
31202 long result;
31203 void *argp1 = 0 ;
31204 int res1 = 0 ;
31205 wxPoint temp2 ;
31206 int temp3 ;
31207 int res3 = SWIG_TMPOBJ ;
31208 long temp4 ;
31209 int res4 = SWIG_TMPOBJ ;
31210 PyObject * obj0 = 0 ;
31211 PyObject * obj1 = 0 ;
31212 char * kwnames[] = {
31213 (char *) "self",(char *) "point", NULL
31214 };
31215
31216 arg3 = &temp3;
31217 arg4 = &temp4;
31218 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTestSubItem",kwnames,&obj0,&obj1)) SWIG_fail;
31219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31220 if (!SWIG_IsOK(res1)) {
31221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTestSubItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31222 }
31223 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31224 {
31225 arg2 = &temp2;
31226 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31227 }
31228 {
31229 PyThreadState* __tstate = wxPyBeginAllowThreads();
31230 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3,arg4);
31231 wxPyEndAllowThreads(__tstate);
31232 if (PyErr_Occurred()) SWIG_fail;
31233 }
31234 resultobj = SWIG_From_long(static_cast< long >(result));
31235 if (SWIG_IsTmpObj(res3)) {
31236 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31237 } else {
31238 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31239 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31240 }
31241 if (SWIG_IsTmpObj(res4)) {
31242 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
31243 } else {
31244 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31245 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
31246 }
31247 return resultobj;
31248fail:
31249 return NULL;
31250}
31251
31252
1bd55598
RD
31253SWIGINTERN PyObject *_wrap_ListCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31254 PyObject *resultobj = 0;
31255 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31256 wxListItem *arg2 = 0 ;
31257 long result;
31258 void *argp1 = 0 ;
31259 int res1 = 0 ;
31260 void *argp2 = 0 ;
31261 int res2 = 0 ;
31262 PyObject * obj0 = 0 ;
31263 PyObject * obj1 = 0 ;
31264 char * kwnames[] = {
31265 (char *) "self",(char *) "info", NULL
31266 };
31267
31268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) SWIG_fail;
31269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31270 if (!SWIG_IsOK(res1)) {
31271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31272 }
31273 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31274 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
31275 if (!SWIG_IsOK(res2)) {
31276 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31277 }
31278 if (!argp2) {
31279 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31280 }
31281 arg2 = reinterpret_cast< wxListItem * >(argp2);
31282 {
31283 PyThreadState* __tstate = wxPyBeginAllowThreads();
31284 result = (long)(arg1)->InsertItem(*arg2);
31285 wxPyEndAllowThreads(__tstate);
31286 if (PyErr_Occurred()) SWIG_fail;
31287 }
31288 resultobj = SWIG_From_long(static_cast< long >(result));
31289 return resultobj;
31290fail:
31291 return NULL;
31292}
31293
31294
31295SWIGINTERN PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31296 PyObject *resultobj = 0;
31297 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31298 long arg2 ;
31299 wxString *arg3 = 0 ;
31300 int arg4 = (int) -1 ;
31301 long result;
31302 void *argp1 = 0 ;
31303 int res1 = 0 ;
31304 long val2 ;
31305 int ecode2 = 0 ;
31306 bool temp3 = false ;
31307 int val4 ;
31308 int ecode4 = 0 ;
31309 PyObject * obj0 = 0 ;
31310 PyObject * obj1 = 0 ;
31311 PyObject * obj2 = 0 ;
31312 PyObject * obj3 = 0 ;
31313 char * kwnames[] = {
31314 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31315 };
31316
31317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31319 if (!SWIG_IsOK(res1)) {
31320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31321 }
31322 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31323 ecode2 = SWIG_AsVal_long(obj1, &val2);
31324 if (!SWIG_IsOK(ecode2)) {
31325 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "2"" of type '" "long""'");
31326 }
31327 arg2 = static_cast< long >(val2);
31328 {
31329 arg3 = wxString_in_helper(obj2);
31330 if (arg3 == NULL) SWIG_fail;
31331 temp3 = true;
31332 }
31333 if (obj3) {
31334 ecode4 = SWIG_AsVal_int(obj3, &val4);
31335 if (!SWIG_IsOK(ecode4)) {
31336 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "4"" of type '" "int""'");
31337 }
31338 arg4 = static_cast< int >(val4);
31339 }
31340 {
31341 PyThreadState* __tstate = wxPyBeginAllowThreads();
31342 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31343 wxPyEndAllowThreads(__tstate);
31344 if (PyErr_Occurred()) SWIG_fail;
31345 }
31346 resultobj = SWIG_From_long(static_cast< long >(result));
31347 {
31348 if (temp3)
31349 delete arg3;
31350 }
31351 return resultobj;
31352fail:
31353 {
31354 if (temp3)
31355 delete arg3;
31356 }
31357 return NULL;
31358}
31359
31360
31361SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31362 PyObject *resultobj = 0;
31363 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31364 long arg2 ;
31365 int arg3 ;
31366 long result;
31367 void *argp1 = 0 ;
31368 int res1 = 0 ;
31369 long val2 ;
31370 int ecode2 = 0 ;
31371 int val3 ;
31372 int ecode3 = 0 ;
31373 PyObject * obj0 = 0 ;
31374 PyObject * obj1 = 0 ;
31375 PyObject * obj2 = 0 ;
31376 char * kwnames[] = {
31377 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
31378 };
31379
31380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31382 if (!SWIG_IsOK(res1)) {
31383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31384 }
31385 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31386 ecode2 = SWIG_AsVal_long(obj1, &val2);
31387 if (!SWIG_IsOK(ecode2)) {
31388 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "2"" of type '" "long""'");
31389 }
31390 arg2 = static_cast< long >(val2);
31391 ecode3 = SWIG_AsVal_int(obj2, &val3);
31392 if (!SWIG_IsOK(ecode3)) {
31393 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "3"" of type '" "int""'");
31394 }
31395 arg3 = static_cast< int >(val3);
31396 {
31397 PyThreadState* __tstate = wxPyBeginAllowThreads();
31398 result = (long)(arg1)->InsertItem(arg2,arg3);
31399 wxPyEndAllowThreads(__tstate);
31400 if (PyErr_Occurred()) SWIG_fail;
31401 }
31402 resultobj = SWIG_From_long(static_cast< long >(result));
31403 return resultobj;
31404fail:
31405 return NULL;
31406}
31407
31408
31409SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31410 PyObject *resultobj = 0;
31411 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31412 long arg2 ;
31413 wxString *arg3 = 0 ;
31414 int arg4 ;
31415 long result;
31416 void *argp1 = 0 ;
31417 int res1 = 0 ;
31418 long val2 ;
31419 int ecode2 = 0 ;
31420 bool temp3 = false ;
31421 int val4 ;
31422 int ecode4 = 0 ;
31423 PyObject * obj0 = 0 ;
31424 PyObject * obj1 = 0 ;
31425 PyObject * obj2 = 0 ;
31426 PyObject * obj3 = 0 ;
31427 char * kwnames[] = {
31428 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31429 };
31430
31431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31433 if (!SWIG_IsOK(res1)) {
31434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31435 }
31436 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31437 ecode2 = SWIG_AsVal_long(obj1, &val2);
31438 if (!SWIG_IsOK(ecode2)) {
31439 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "2"" of type '" "long""'");
31440 }
31441 arg2 = static_cast< long >(val2);
31442 {
31443 arg3 = wxString_in_helper(obj2);
31444 if (arg3 == NULL) SWIG_fail;
31445 temp3 = true;
31446 }
31447 ecode4 = SWIG_AsVal_int(obj3, &val4);
31448 if (!SWIG_IsOK(ecode4)) {
31449 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "4"" of type '" "int""'");
31450 }
31451 arg4 = static_cast< int >(val4);
31452 {
31453 PyThreadState* __tstate = wxPyBeginAllowThreads();
31454 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31455 wxPyEndAllowThreads(__tstate);
31456 if (PyErr_Occurred()) SWIG_fail;
31457 }
31458 resultobj = SWIG_From_long(static_cast< long >(result));
31459 {
31460 if (temp3)
31461 delete arg3;
31462 }
31463 return resultobj;
31464fail:
31465 {
31466 if (temp3)
31467 delete arg3;
31468 }
31469 return NULL;
31470}
31471
31472
31473SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31474 PyObject *resultobj = 0;
31475 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31476 long arg2 ;
31477 wxListItem *arg3 = 0 ;
31478 long result;
31479 void *argp1 = 0 ;
31480 int res1 = 0 ;
31481 long val2 ;
31482 int ecode2 = 0 ;
31483 void *argp3 = 0 ;
31484 int res3 = 0 ;
31485 PyObject * obj0 = 0 ;
31486 PyObject * obj1 = 0 ;
31487 PyObject * obj2 = 0 ;
31488 char * kwnames[] = {
31489 (char *) "self",(char *) "col",(char *) "info", NULL
31490 };
31491
31492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31493 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31494 if (!SWIG_IsOK(res1)) {
31495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31496 }
31497 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31498 ecode2 = SWIG_AsVal_long(obj1, &val2);
31499 if (!SWIG_IsOK(ecode2)) {
31500 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "2"" of type '" "long""'");
31501 }
31502 arg2 = static_cast< long >(val2);
31503 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
31504 if (!SWIG_IsOK(res3)) {
31505 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31506 }
31507 if (!argp3) {
31508 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31509 }
31510 arg3 = reinterpret_cast< wxListItem * >(argp3);
31511 {
31512 PyThreadState* __tstate = wxPyBeginAllowThreads();
31513 result = (long)(arg1)->InsertColumn(arg2,*arg3);
31514 wxPyEndAllowThreads(__tstate);
31515 if (PyErr_Occurred()) SWIG_fail;
31516 }
31517 resultobj = SWIG_From_long(static_cast< long >(result));
31518 return resultobj;
31519fail:
31520 return NULL;
31521}
31522
31523
31524SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31525 PyObject *resultobj = 0;
31526 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31527 long arg2 ;
31528 wxString *arg3 = 0 ;
31529 int arg4 = (int) wxLIST_FORMAT_LEFT ;
31530 int arg5 = (int) -1 ;
31531 long result;
31532 void *argp1 = 0 ;
31533 int res1 = 0 ;
31534 long val2 ;
31535 int ecode2 = 0 ;
31536 bool temp3 = false ;
31537 int val4 ;
31538 int ecode4 = 0 ;
31539 int val5 ;
31540 int ecode5 = 0 ;
31541 PyObject * obj0 = 0 ;
31542 PyObject * obj1 = 0 ;
31543 PyObject * obj2 = 0 ;
31544 PyObject * obj3 = 0 ;
31545 PyObject * obj4 = 0 ;
31546 char * kwnames[] = {
31547 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
31548 };
31549
31550 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31551 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31552 if (!SWIG_IsOK(res1)) {
31553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31554 }
31555 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31556 ecode2 = SWIG_AsVal_long(obj1, &val2);
31557 if (!SWIG_IsOK(ecode2)) {
31558 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumn" "', expected argument " "2"" of type '" "long""'");
31559 }
31560 arg2 = static_cast< long >(val2);
31561 {
31562 arg3 = wxString_in_helper(obj2);
31563 if (arg3 == NULL) SWIG_fail;
31564 temp3 = true;
31565 }
31566 if (obj3) {
31567 ecode4 = SWIG_AsVal_int(obj3, &val4);
31568 if (!SWIG_IsOK(ecode4)) {
31569 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertColumn" "', expected argument " "4"" of type '" "int""'");
31570 }
31571 arg4 = static_cast< int >(val4);
31572 }
31573 if (obj4) {
31574 ecode5 = SWIG_AsVal_int(obj4, &val5);
31575 if (!SWIG_IsOK(ecode5)) {
31576 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_InsertColumn" "', expected argument " "5"" of type '" "int""'");
31577 }
31578 arg5 = static_cast< int >(val5);
31579 }
31580 {
31581 PyThreadState* __tstate = wxPyBeginAllowThreads();
31582 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
31583 wxPyEndAllowThreads(__tstate);
31584 if (PyErr_Occurred()) SWIG_fail;
31585 }
31586 resultobj = SWIG_From_long(static_cast< long >(result));
31587 {
31588 if (temp3)
31589 delete arg3;
31590 }
31591 return resultobj;
31592fail:
31593 {
31594 if (temp3)
31595 delete arg3;
31596 }
31597 return NULL;
31598}
31599
31600
31601SWIGINTERN PyObject *_wrap_ListCtrl_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31602 PyObject *resultobj = 0;
31603 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31604 long arg2 ;
31605 void *argp1 = 0 ;
31606 int res1 = 0 ;
31607 long val2 ;
31608 int ecode2 = 0 ;
31609 PyObject * obj0 = 0 ;
31610 PyObject * obj1 = 0 ;
31611 char * kwnames[] = {
31612 (char *) "self",(char *) "count", NULL
31613 };
31614
31615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail;
31616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31617 if (!SWIG_IsOK(res1)) {
31618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31619 }
31620 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31621 ecode2 = SWIG_AsVal_long(obj1, &val2);
31622 if (!SWIG_IsOK(ecode2)) {
31623 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemCount" "', expected argument " "2"" of type '" "long""'");
31624 }
31625 arg2 = static_cast< long >(val2);
31626 {
31627 PyThreadState* __tstate = wxPyBeginAllowThreads();
31628 (arg1)->SetItemCount(arg2);
31629 wxPyEndAllowThreads(__tstate);
31630 if (PyErr_Occurred()) SWIG_fail;
31631 }
31632 resultobj = SWIG_Py_Void();
31633 return resultobj;
31634fail:
31635 return NULL;
31636}
31637
31638
31639SWIGINTERN PyObject *_wrap_ListCtrl_ScrollList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31640 PyObject *resultobj = 0;
31641 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31642 int arg2 ;
31643 int arg3 ;
31644 bool result;
31645 void *argp1 = 0 ;
31646 int res1 = 0 ;
31647 int val2 ;
31648 int ecode2 = 0 ;
31649 int val3 ;
31650 int ecode3 = 0 ;
31651 PyObject * obj0 = 0 ;
31652 PyObject * obj1 = 0 ;
31653 PyObject * obj2 = 0 ;
31654 char * kwnames[] = {
31655 (char *) "self",(char *) "dx",(char *) "dy", NULL
31656 };
31657
31658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31660 if (!SWIG_IsOK(res1)) {
31661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ScrollList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31662 }
31663 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31664 ecode2 = SWIG_AsVal_int(obj1, &val2);
31665 if (!SWIG_IsOK(ecode2)) {
31666 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_ScrollList" "', expected argument " "2"" of type '" "int""'");
31667 }
31668 arg2 = static_cast< int >(val2);
31669 ecode3 = SWIG_AsVal_int(obj2, &val3);
31670 if (!SWIG_IsOK(ecode3)) {
31671 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_ScrollList" "', expected argument " "3"" of type '" "int""'");
31672 }
31673 arg3 = static_cast< int >(val3);
31674 {
31675 PyThreadState* __tstate = wxPyBeginAllowThreads();
31676 result = (bool)(arg1)->ScrollList(arg2,arg3);
31677 wxPyEndAllowThreads(__tstate);
31678 if (PyErr_Occurred()) SWIG_fail;
31679 }
31680 {
31681 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31682 }
31683 return resultobj;
31684fail:
31685 return NULL;
31686}
31687
31688
31689SWIGINTERN PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31690 PyObject *resultobj = 0;
31691 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31692 long arg2 ;
31693 wxColour *arg3 = 0 ;
31694 void *argp1 = 0 ;
31695 int res1 = 0 ;
31696 long val2 ;
31697 int ecode2 = 0 ;
31698 wxColour temp3 ;
31699 PyObject * obj0 = 0 ;
31700 PyObject * obj1 = 0 ;
31701 PyObject * obj2 = 0 ;
31702 char * kwnames[] = {
31703 (char *) "self",(char *) "item",(char *) "col", NULL
31704 };
31705
31706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31708 if (!SWIG_IsOK(res1)) {
31709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31710 }
31711 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31712 ecode2 = SWIG_AsVal_long(obj1, &val2);
31713 if (!SWIG_IsOK(ecode2)) {
31714 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31715 }
31716 arg2 = static_cast< long >(val2);
31717 {
31718 arg3 = &temp3;
31719 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31720 }
31721 {
31722 PyThreadState* __tstate = wxPyBeginAllowThreads();
31723 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
31724 wxPyEndAllowThreads(__tstate);
31725 if (PyErr_Occurred()) SWIG_fail;
31726 }
31727 resultobj = SWIG_Py_Void();
31728 return resultobj;
31729fail:
31730 return NULL;
31731}
31732
31733
31734SWIGINTERN PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31735 PyObject *resultobj = 0;
31736 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31737 long arg2 ;
31738 wxColour result;
31739 void *argp1 = 0 ;
31740 int res1 = 0 ;
31741 long val2 ;
31742 int ecode2 = 0 ;
31743 PyObject * obj0 = 0 ;
31744 PyObject * obj1 = 0 ;
31745 char * kwnames[] = {
31746 (char *) "self",(char *) "item", NULL
31747 };
31748
31749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
31750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31751 if (!SWIG_IsOK(res1)) {
31752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31753 }
31754 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31755 ecode2 = SWIG_AsVal_long(obj1, &val2);
31756 if (!SWIG_IsOK(ecode2)) {
31757 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31758 }
31759 arg2 = static_cast< long >(val2);
31760 {
31761 PyThreadState* __tstate = wxPyBeginAllowThreads();
31762 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
31763 wxPyEndAllowThreads(__tstate);
31764 if (PyErr_Occurred()) SWIG_fail;
31765 }
31766 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31767 return resultobj;
31768fail:
31769 return NULL;
31770}
31771
31772
31773SWIGINTERN PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31774 PyObject *resultobj = 0;
31775 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31776 long arg2 ;
31777 wxColour *arg3 = 0 ;
31778 void *argp1 = 0 ;
31779 int res1 = 0 ;
31780 long val2 ;
31781 int ecode2 = 0 ;
31782 wxColour temp3 ;
31783 PyObject * obj0 = 0 ;
31784 PyObject * obj1 = 0 ;
31785 PyObject * obj2 = 0 ;
31786 char * kwnames[] = {
31787 (char *) "self",(char *) "item",(char *) "col", NULL
31788 };
31789
31790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31792 if (!SWIG_IsOK(res1)) {
31793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31794 }
31795 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31796 ecode2 = SWIG_AsVal_long(obj1, &val2);
31797 if (!SWIG_IsOK(ecode2)) {
31798 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31799 }
31800 arg2 = static_cast< long >(val2);
31801 {
31802 arg3 = &temp3;
31803 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31804 }
31805 {
31806 PyThreadState* __tstate = wxPyBeginAllowThreads();
31807 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
31808 wxPyEndAllowThreads(__tstate);
31809 if (PyErr_Occurred()) SWIG_fail;
31810 }
31811 resultobj = SWIG_Py_Void();
31812 return resultobj;
31813fail:
31814 return NULL;
31815}
31816
31817
31818SWIGINTERN PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31819 PyObject *resultobj = 0;
31820 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31821 long arg2 ;
31822 wxColour result;
31823 void *argp1 = 0 ;
31824 int res1 = 0 ;
31825 long val2 ;
31826 int ecode2 = 0 ;
31827 PyObject * obj0 = 0 ;
31828 PyObject * obj1 = 0 ;
31829 char * kwnames[] = {
31830 (char *) "self",(char *) "item", NULL
31831 };
31832
31833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
31834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31835 if (!SWIG_IsOK(res1)) {
31836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31837 }
31838 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31839 ecode2 = SWIG_AsVal_long(obj1, &val2);
31840 if (!SWIG_IsOK(ecode2)) {
31841 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31842 }
31843 arg2 = static_cast< long >(val2);
31844 {
31845 PyThreadState* __tstate = wxPyBeginAllowThreads();
31846 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
31847 wxPyEndAllowThreads(__tstate);
31848 if (PyErr_Occurred()) SWIG_fail;
31849 }
31850 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31851 return resultobj;
31852fail:
31853 return NULL;
31854}
31855
31856
31857SWIGINTERN PyObject *_wrap_ListCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31858 PyObject *resultobj = 0;
31859 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31860 long arg2 ;
31861 wxFont *arg3 = 0 ;
31862 void *argp1 = 0 ;
31863 int res1 = 0 ;
31864 long val2 ;
31865 int ecode2 = 0 ;
31866 void *argp3 = 0 ;
31867 int res3 = 0 ;
31868 PyObject * obj0 = 0 ;
31869 PyObject * obj1 = 0 ;
31870 PyObject * obj2 = 0 ;
31871 char * kwnames[] = {
31872 (char *) "self",(char *) "item",(char *) "f", NULL
31873 };
31874
31875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31877 if (!SWIG_IsOK(res1)) {
31878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31879 }
31880 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31881 ecode2 = SWIG_AsVal_long(obj1, &val2);
31882 if (!SWIG_IsOK(ecode2)) {
31883 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemFont" "', expected argument " "2"" of type '" "long""'");
31884 }
31885 arg2 = static_cast< long >(val2);
31886 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
31887 if (!SWIG_IsOK(res3)) {
31888 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31889 }
31890 if (!argp3) {
31891 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31892 }
31893 arg3 = reinterpret_cast< wxFont * >(argp3);
31894 {
31895 PyThreadState* __tstate = wxPyBeginAllowThreads();
31896 (arg1)->SetItemFont(arg2,(wxFont const &)*arg3);
31897 wxPyEndAllowThreads(__tstate);
31898 if (PyErr_Occurred()) SWIG_fail;
31899 }
31900 resultobj = SWIG_Py_Void();
31901 return resultobj;
31902fail:
31903 return NULL;
31904}
31905
31906
31907SWIGINTERN PyObject *_wrap_ListCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31908 PyObject *resultobj = 0;
31909 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31910 long arg2 ;
31911 wxFont result;
31912 void *argp1 = 0 ;
31913 int res1 = 0 ;
31914 long val2 ;
31915 int ecode2 = 0 ;
31916 PyObject * obj0 = 0 ;
31917 PyObject * obj1 = 0 ;
31918 char * kwnames[] = {
31919 (char *) "self",(char *) "item", NULL
31920 };
31921
31922 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
31923 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31924 if (!SWIG_IsOK(res1)) {
31925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31926 }
31927 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31928 ecode2 = SWIG_AsVal_long(obj1, &val2);
31929 if (!SWIG_IsOK(ecode2)) {
31930 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemFont" "', expected argument " "2"" of type '" "long""'");
31931 }
31932 arg2 = static_cast< long >(val2);
31933 {
31934 PyThreadState* __tstate = wxPyBeginAllowThreads();
31935 result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2);
31936 wxPyEndAllowThreads(__tstate);
31937 if (PyErr_Occurred()) SWIG_fail;
31938 }
31939 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
31940 return resultobj;
31941fail:
31942 return NULL;
31943}
31944
31945
31946SWIGINTERN PyObject *_wrap_ListCtrl_SortItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31947 PyObject *resultobj = 0;
31948 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31949 PyObject *arg2 = (PyObject *) 0 ;
31950 bool result;
31951 void *argp1 = 0 ;
31952 int res1 = 0 ;
31953 PyObject * obj0 = 0 ;
31954 PyObject * obj1 = 0 ;
31955 char * kwnames[] = {
31956 (char *) "self",(char *) "func", NULL
31957 };
31958
31959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) SWIG_fail;
31960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31961 if (!SWIG_IsOK(res1)) {
31962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SortItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31963 }
31964 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31965 arg2 = obj1;
31966 {
31967 PyThreadState* __tstate = wxPyBeginAllowThreads();
31968 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
31969 wxPyEndAllowThreads(__tstate);
31970 if (PyErr_Occurred()) SWIG_fail;
31971 }
31972 {
31973 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31974 }
31975 return resultobj;
31976fail:
31977 return NULL;
b411df4a
RD
31978}
31979
31980
1bd55598
RD
31981SWIGINTERN PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31982 PyObject *resultobj = 0;
31983 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31984 wxWindow *result = 0 ;
31985 void *argp1 = 0 ;
31986 int res1 = 0 ;
31987 PyObject *swig_obj[1] ;
31988
31989 if (!args) SWIG_fail;
31990 swig_obj[0] = args;
31991 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31992 if (!SWIG_IsOK(res1)) {
31993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetMainWindow" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31994 }
31995 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31996 {
31997 PyThreadState* __tstate = wxPyBeginAllowThreads();
31998 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
31999 wxPyEndAllowThreads(__tstate);
32000 if (PyErr_Occurred()) SWIG_fail;
32001 }
32002 {
32003 resultobj = wxPyMake_wxObject(result, 0);
32004 }
32005 return resultobj;
32006fail:
32007 return NULL;
7993762b
RD
32008}
32009
32010
1bd55598
RD
32011SWIGINTERN PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32012 PyObject *resultobj = 0;
32013 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
32014 SwigValueWrapper<wxVisualAttributes > result;
32015 int val1 ;
32016 int ecode1 = 0 ;
32017 PyObject * obj0 = 0 ;
32018 char * kwnames[] = {
32019 (char *) "variant", NULL
32020 };
32021
32022 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
32023 if (obj0) {
32024 ecode1 = SWIG_AsVal_int(obj0, &val1);
32025 if (!SWIG_IsOK(ecode1)) {
32026 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
32027 }
32028 arg1 = static_cast< wxWindowVariant >(val1);
32029 }
32030 {
32031 if (!wxPyCheckForApp()) SWIG_fail;
32032 PyThreadState* __tstate = wxPyBeginAllowThreads();
32033 result = wxPyListCtrl::GetClassDefaultAttributes(arg1);
32034 wxPyEndAllowThreads(__tstate);
32035 if (PyErr_Occurred()) SWIG_fail;
32036 }
32037 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
32038 return resultobj;
32039fail:
32040 return NULL;
32041}
32042
32043
32044SWIGINTERN PyObject *ListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32045 PyObject *obj;
32046 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32047 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyListCtrl, SWIG_NewClientData(obj));
32048 return SWIG_Py_Void();
32049}
32050
32051SWIGINTERN PyObject *ListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32052 return SWIG_Python_InitShadowInstance(args);
32053}
32054
32055SWIGINTERN PyObject *_wrap_new_ListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32056 PyObject *resultobj = 0;
32057 wxWindow *arg1 = (wxWindow *) 0 ;
32058 int arg2 = (int) -1 ;
32059 wxPoint const &arg3_defvalue = wxDefaultPosition ;
32060 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
32061 wxSize const &arg4_defvalue = wxDefaultSize ;
32062 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
32063 long arg5 = (long) wxLC_REPORT ;
32064 wxValidator const &arg6_defvalue = wxDefaultValidator ;
32065 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
32066 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
32067 wxString *arg7 = (wxString *) &arg7_defvalue ;
32068 wxListView *result = 0 ;
32069 void *argp1 = 0 ;
32070 int res1 = 0 ;
32071 int val2 ;
32072 int ecode2 = 0 ;
32073 wxPoint temp3 ;
32074 wxSize temp4 ;
32075 long val5 ;
32076 int ecode5 = 0 ;
32077 void *argp6 = 0 ;
32078 int res6 = 0 ;
32079 bool temp7 = false ;
32080 PyObject * obj0 = 0 ;
32081 PyObject * obj1 = 0 ;
32082 PyObject * obj2 = 0 ;
32083 PyObject * obj3 = 0 ;
32084 PyObject * obj4 = 0 ;
32085 PyObject * obj5 = 0 ;
32086 PyObject * obj6 = 0 ;
32087 char * kwnames[] = {
32088 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
32089 };
32090
32091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
32093 if (!SWIG_IsOK(res1)) {
32094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListView" "', expected argument " "1"" of type '" "wxWindow *""'");
32095 }
32096 arg1 = reinterpret_cast< wxWindow * >(argp1);
32097 if (obj1) {
32098 ecode2 = SWIG_AsVal_int(obj1, &val2);
32099 if (!SWIG_IsOK(ecode2)) {
32100 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListView" "', expected argument " "2"" of type '" "int""'");
32101 }
32102 arg2 = static_cast< int >(val2);
32103 }
32104 if (obj2) {
b411df4a 32105 {
1bd55598
RD
32106 arg3 = &temp3;
32107 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
b411df4a 32108 }
1bd55598
RD
32109 }
32110 if (obj3) {
32111 {
32112 arg4 = &temp4;
32113 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
b411df4a 32114 }
1bd55598
RD
32115 }
32116 if (obj4) {
32117 ecode5 = SWIG_AsVal_long(obj4, &val5);
32118 if (!SWIG_IsOK(ecode5)) {
32119 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListView" "', expected argument " "5"" of type '" "long""'");
32120 }
32121 arg5 = static_cast< long >(val5);
32122 }
32123 if (obj5) {
32124 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
32125 if (!SWIG_IsOK(res6)) {
32126 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
b411df4a 32127 }
1bd55598
RD
32128 if (!argp6) {
32129 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
b411df4a 32130 }
1bd55598
RD
32131 arg6 = reinterpret_cast< wxValidator * >(argp6);
32132 }
32133 if (obj6) {
b411df4a 32134 {
1bd55598
RD
32135 arg7 = wxString_in_helper(obj6);
32136 if (arg7 == NULL) SWIG_fail;
32137 temp7 = true;
b411df4a 32138 }
1bd55598
RD
32139 }
32140 {
32141 if (!wxPyCheckForApp()) SWIG_fail;
32142 PyThreadState* __tstate = wxPyBeginAllowThreads();
32143 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
32144 wxPyEndAllowThreads(__tstate);
32145 if (PyErr_Occurred()) SWIG_fail;
32146 }
32147 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_NEW | 0 );
32148 {
32149 if (temp7)
32150 delete arg7;
32151 }
32152 return resultobj;
32153fail:
32154 {
32155 if (temp7)
32156 delete arg7;
32157 }
32158 return NULL;
b411df4a
RD
32159}
32160
32161
1bd55598
RD
32162SWIGINTERN PyObject *_wrap_new_PreListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32163 PyObject *resultobj = 0;
32164 wxListView *result = 0 ;
32165
32166 if (!SWIG_Python_UnpackTuple(args,"new_PreListView",0,0,0)) SWIG_fail;
32167 {
32168 if (!wxPyCheckForApp()) SWIG_fail;
32169 PyThreadState* __tstate = wxPyBeginAllowThreads();
32170 result = (wxListView *)new wxListView();
32171 wxPyEndAllowThreads(__tstate);
32172 if (PyErr_Occurred()) SWIG_fail;
32173 }
32174 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_OWN | 0 );
32175 return resultobj;
32176fail:
32177 return NULL;
32178}
32179
32180
32181SWIGINTERN PyObject *_wrap_ListView_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32182 PyObject *resultobj = 0;
32183 wxListView *arg1 = (wxListView *) 0 ;
32184 wxWindow *arg2 = (wxWindow *) 0 ;
32185 int arg3 = (int) -1 ;
32186 wxPoint const &arg4_defvalue = wxDefaultPosition ;
32187 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
32188 wxSize const &arg5_defvalue = wxDefaultSize ;
32189 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
32190 long arg6 = (long) wxLC_REPORT ;
32191 wxValidator const &arg7_defvalue = wxDefaultValidator ;
32192 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
32193 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
32194 wxString *arg8 = (wxString *) &arg8_defvalue ;
32195 bool result;
32196 void *argp1 = 0 ;
32197 int res1 = 0 ;
32198 void *argp2 = 0 ;
32199 int res2 = 0 ;
32200 int val3 ;
32201 int ecode3 = 0 ;
32202 wxPoint temp4 ;
32203 wxSize temp5 ;
32204 long val6 ;
32205 int ecode6 = 0 ;
32206 void *argp7 = 0 ;
32207 int res7 = 0 ;
32208 bool temp8 = false ;
32209 PyObject * obj0 = 0 ;
32210 PyObject * obj1 = 0 ;
32211 PyObject * obj2 = 0 ;
32212 PyObject * obj3 = 0 ;
32213 PyObject * obj4 = 0 ;
32214 PyObject * obj5 = 0 ;
32215 PyObject * obj6 = 0 ;
32216 PyObject * obj7 = 0 ;
32217 char * kwnames[] = {
32218 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
32219 };
32220
32221 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
32222 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32223 if (!SWIG_IsOK(res1)) {
32224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Create" "', expected argument " "1"" of type '" "wxListView *""'");
32225 }
32226 arg1 = reinterpret_cast< wxListView * >(argp1);
32227 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
32228 if (!SWIG_IsOK(res2)) {
32229 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListView_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
32230 }
32231 arg2 = reinterpret_cast< wxWindow * >(argp2);
32232 if (obj2) {
32233 ecode3 = SWIG_AsVal_int(obj2, &val3);
32234 if (!SWIG_IsOK(ecode3)) {
32235 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Create" "', expected argument " "3"" of type '" "int""'");
32236 }
32237 arg3 = static_cast< int >(val3);
32238 }
32239 if (obj3) {
d55e5bfc 32240 {
1bd55598
RD
32241 arg4 = &temp4;
32242 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 32243 }
1bd55598
RD
32244 }
32245 if (obj4) {
36ed4f51 32246 {
1bd55598
RD
32247 arg5 = &temp5;
32248 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 32249 }
1bd55598
RD
32250 }
32251 if (obj5) {
32252 ecode6 = SWIG_AsVal_long(obj5, &val6);
32253 if (!SWIG_IsOK(ecode6)) {
32254 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListView_Create" "', expected argument " "6"" of type '" "long""'");
32255 }
32256 arg6 = static_cast< long >(val6);
32257 }
32258 if (obj6) {
32259 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
32260 if (!SWIG_IsOK(res7)) {
32261 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 32262 }
1bd55598
RD
32263 if (!argp7) {
32264 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
32265 }
32266 arg7 = reinterpret_cast< wxValidator * >(argp7);
32267 }
32268 if (obj7) {
d55e5bfc 32269 {
1bd55598
RD
32270 arg8 = wxString_in_helper(obj7);
32271 if (arg8 == NULL) SWIG_fail;
32272 temp8 = true;
d55e5bfc 32273 }
1bd55598
RD
32274 }
32275 {
32276 PyThreadState* __tstate = wxPyBeginAllowThreads();
32277 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
32278 wxPyEndAllowThreads(__tstate);
32279 if (PyErr_Occurred()) SWIG_fail;
32280 }
32281 {
32282 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32283 }
32284 {
32285 if (temp8)
32286 delete arg8;
32287 }
32288 return resultobj;
32289fail:
32290 {
32291 if (temp8)
32292 delete arg8;
32293 }
32294 return NULL;
32295}
32296
32297
32298SWIGINTERN PyObject *_wrap_ListView_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32299 PyObject *resultobj = 0;
32300 wxListView *arg1 = (wxListView *) 0 ;
32301 long arg2 ;
32302 bool arg3 = (bool) true ;
32303 void *argp1 = 0 ;
32304 int res1 = 0 ;
32305 long val2 ;
32306 int ecode2 = 0 ;
32307 bool val3 ;
32308 int ecode3 = 0 ;
32309 PyObject * obj0 = 0 ;
32310 PyObject * obj1 = 0 ;
32311 PyObject * obj2 = 0 ;
32312 char * kwnames[] = {
32313 (char *) "self",(char *) "n",(char *) "on", NULL
32314 };
32315
32316 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32317 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32318 if (!SWIG_IsOK(res1)) {
32319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Select" "', expected argument " "1"" of type '" "wxListView *""'");
32320 }
32321 arg1 = reinterpret_cast< wxListView * >(argp1);
32322 ecode2 = SWIG_AsVal_long(obj1, &val2);
32323 if (!SWIG_IsOK(ecode2)) {
32324 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Select" "', expected argument " "2"" of type '" "long""'");
32325 }
32326 arg2 = static_cast< long >(val2);
32327 if (obj2) {
32328 ecode3 = SWIG_AsVal_bool(obj2, &val3);
32329 if (!SWIG_IsOK(ecode3)) {
32330 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Select" "', expected argument " "3"" of type '" "bool""'");
32331 }
32332 arg3 = static_cast< bool >(val3);
32333 }
32334 {
32335 PyThreadState* __tstate = wxPyBeginAllowThreads();
32336 (arg1)->Select(arg2,arg3);
32337 wxPyEndAllowThreads(__tstate);
32338 if (PyErr_Occurred()) SWIG_fail;
32339 }
32340 resultobj = SWIG_Py_Void();
32341 return resultobj;
32342fail:
32343 return NULL;
32344}
32345
32346
32347SWIGINTERN PyObject *_wrap_ListView_Focus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32348 PyObject *resultobj = 0;
32349 wxListView *arg1 = (wxListView *) 0 ;
32350 long arg2 ;
32351 void *argp1 = 0 ;
32352 int res1 = 0 ;
32353 long val2 ;
32354 int ecode2 = 0 ;
32355 PyObject * obj0 = 0 ;
32356 PyObject * obj1 = 0 ;
32357 char * kwnames[] = {
32358 (char *) "self",(char *) "index", NULL
32359 };
32360
32361 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) SWIG_fail;
32362 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32363 if (!SWIG_IsOK(res1)) {
32364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Focus" "', expected argument " "1"" of type '" "wxListView *""'");
32365 }
32366 arg1 = reinterpret_cast< wxListView * >(argp1);
32367 ecode2 = SWIG_AsVal_long(obj1, &val2);
32368 if (!SWIG_IsOK(ecode2)) {
32369 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Focus" "', expected argument " "2"" of type '" "long""'");
32370 }
32371 arg2 = static_cast< long >(val2);
32372 {
32373 PyThreadState* __tstate = wxPyBeginAllowThreads();
32374 (arg1)->Focus(arg2);
32375 wxPyEndAllowThreads(__tstate);
32376 if (PyErr_Occurred()) SWIG_fail;
32377 }
32378 resultobj = SWIG_Py_Void();
32379 return resultobj;
32380fail:
32381 return NULL;
d55e5bfc
RD
32382}
32383
32384
1bd55598
RD
32385SWIGINTERN PyObject *_wrap_ListView_GetFocusedItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32386 PyObject *resultobj = 0;
32387 wxListView *arg1 = (wxListView *) 0 ;
32388 long result;
32389 void *argp1 = 0 ;
32390 int res1 = 0 ;
32391 PyObject *swig_obj[1] ;
32392
32393 if (!args) SWIG_fail;
32394 swig_obj[0] = args;
32395 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32396 if (!SWIG_IsOK(res1)) {
32397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFocusedItem" "', expected argument " "1"" of type '" "wxListView const *""'");
32398 }
32399 arg1 = reinterpret_cast< wxListView * >(argp1);
32400 {
32401 PyThreadState* __tstate = wxPyBeginAllowThreads();
32402 result = (long)((wxListView const *)arg1)->GetFocusedItem();
32403 wxPyEndAllowThreads(__tstate);
32404 if (PyErr_Occurred()) SWIG_fail;
32405 }
32406 resultobj = SWIG_From_long(static_cast< long >(result));
32407 return resultobj;
32408fail:
32409 return NULL;
32410}
32411
32412
32413SWIGINTERN PyObject *_wrap_ListView_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32414 PyObject *resultobj = 0;
32415 wxListView *arg1 = (wxListView *) 0 ;
32416 long arg2 ;
32417 long result;
32418 void *argp1 = 0 ;
32419 int res1 = 0 ;
32420 long val2 ;
32421 int ecode2 = 0 ;
32422 PyObject * obj0 = 0 ;
32423 PyObject * obj1 = 0 ;
32424 char * kwnames[] = {
32425 (char *) "self",(char *) "item", NULL
32426 };
32427
32428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32430 if (!SWIG_IsOK(res1)) {
32431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetNextSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32432 }
32433 arg1 = reinterpret_cast< wxListView * >(argp1);
32434 ecode2 = SWIG_AsVal_long(obj1, &val2);
32435 if (!SWIG_IsOK(ecode2)) {
32436 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_GetNextSelected" "', expected argument " "2"" of type '" "long""'");
32437 }
32438 arg2 = static_cast< long >(val2);
32439 {
32440 PyThreadState* __tstate = wxPyBeginAllowThreads();
32441 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
32442 wxPyEndAllowThreads(__tstate);
32443 if (PyErr_Occurred()) SWIG_fail;
32444 }
32445 resultobj = SWIG_From_long(static_cast< long >(result));
32446 return resultobj;
32447fail:
32448 return NULL;
d55e5bfc
RD
32449}
32450
32451
1bd55598
RD
32452SWIGINTERN PyObject *_wrap_ListView_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32453 PyObject *resultobj = 0;
32454 wxListView *arg1 = (wxListView *) 0 ;
32455 long result;
32456 void *argp1 = 0 ;
32457 int res1 = 0 ;
32458 PyObject *swig_obj[1] ;
32459
32460 if (!args) SWIG_fail;
32461 swig_obj[0] = args;
32462 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32463 if (!SWIG_IsOK(res1)) {
32464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFirstSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32465 }
32466 arg1 = reinterpret_cast< wxListView * >(argp1);
32467 {
32468 PyThreadState* __tstate = wxPyBeginAllowThreads();
32469 result = (long)((wxListView const *)arg1)->GetFirstSelected();
32470 wxPyEndAllowThreads(__tstate);
32471 if (PyErr_Occurred()) SWIG_fail;
32472 }
32473 resultobj = SWIG_From_long(static_cast< long >(result));
32474 return resultobj;
32475fail:
32476 return NULL;
32477}
32478
32479
32480SWIGINTERN PyObject *_wrap_ListView_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32481 PyObject *resultobj = 0;
32482 wxListView *arg1 = (wxListView *) 0 ;
32483 long arg2 ;
32484 bool result;
32485 void *argp1 = 0 ;
32486 int res1 = 0 ;
32487 long val2 ;
32488 int ecode2 = 0 ;
32489 PyObject * obj0 = 0 ;
32490 PyObject * obj1 = 0 ;
32491 char * kwnames[] = {
32492 (char *) "self",(char *) "index", NULL
32493 };
32494
32495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32497 if (!SWIG_IsOK(res1)) {
32498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_IsSelected" "', expected argument " "1"" of type '" "wxListView *""'");
32499 }
32500 arg1 = reinterpret_cast< wxListView * >(argp1);
32501 ecode2 = SWIG_AsVal_long(obj1, &val2);
32502 if (!SWIG_IsOK(ecode2)) {
32503 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_IsSelected" "', expected argument " "2"" of type '" "long""'");
32504 }
32505 arg2 = static_cast< long >(val2);
32506 {
32507 PyThreadState* __tstate = wxPyBeginAllowThreads();
32508 result = (bool)(arg1)->IsSelected(arg2);
32509 wxPyEndAllowThreads(__tstate);
32510 if (PyErr_Occurred()) SWIG_fail;
32511 }
32512 {
32513 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32514 }
32515 return resultobj;
32516fail:
32517 return NULL;
32518}
32519
32520
32521SWIGINTERN PyObject *_wrap_ListView_SetColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32522 PyObject *resultobj = 0;
32523 wxListView *arg1 = (wxListView *) 0 ;
32524 int arg2 ;
32525 int arg3 ;
32526 void *argp1 = 0 ;
32527 int res1 = 0 ;
32528 int val2 ;
32529 int ecode2 = 0 ;
32530 int val3 ;
32531 int ecode3 = 0 ;
32532 PyObject * obj0 = 0 ;
32533 PyObject * obj1 = 0 ;
32534 PyObject * obj2 = 0 ;
32535 char * kwnames[] = {
32536 (char *) "self",(char *) "col",(char *) "image", NULL
32537 };
32538
32539 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32540 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32541 if (!SWIG_IsOK(res1)) {
32542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_SetColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32543 }
32544 arg1 = reinterpret_cast< wxListView * >(argp1);
32545 ecode2 = SWIG_AsVal_int(obj1, &val2);
32546 if (!SWIG_IsOK(ecode2)) {
32547 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_SetColumnImage" "', expected argument " "2"" of type '" "int""'");
32548 }
32549 arg2 = static_cast< int >(val2);
32550 ecode3 = SWIG_AsVal_int(obj2, &val3);
32551 if (!SWIG_IsOK(ecode3)) {
32552 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_SetColumnImage" "', expected argument " "3"" of type '" "int""'");
32553 }
32554 arg3 = static_cast< int >(val3);
32555 {
32556 PyThreadState* __tstate = wxPyBeginAllowThreads();
32557 (arg1)->SetColumnImage(arg2,arg3);
32558 wxPyEndAllowThreads(__tstate);
32559 if (PyErr_Occurred()) SWIG_fail;
32560 }
32561 resultobj = SWIG_Py_Void();
32562 return resultobj;
32563fail:
32564 return NULL;
32565}
32566
32567
32568SWIGINTERN PyObject *_wrap_ListView_ClearColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32569 PyObject *resultobj = 0;
32570 wxListView *arg1 = (wxListView *) 0 ;
32571 int arg2 ;
32572 void *argp1 = 0 ;
32573 int res1 = 0 ;
32574 int val2 ;
32575 int ecode2 = 0 ;
32576 PyObject * obj0 = 0 ;
32577 PyObject * obj1 = 0 ;
32578 char * kwnames[] = {
32579 (char *) "self",(char *) "col", NULL
32580 };
32581
32582 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) SWIG_fail;
32583 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32584 if (!SWIG_IsOK(res1)) {
32585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_ClearColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32586 }
32587 arg1 = reinterpret_cast< wxListView * >(argp1);
32588 ecode2 = SWIG_AsVal_int(obj1, &val2);
32589 if (!SWIG_IsOK(ecode2)) {
32590 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_ClearColumnImage" "', expected argument " "2"" of type '" "int""'");
32591 }
32592 arg2 = static_cast< int >(val2);
32593 {
32594 PyThreadState* __tstate = wxPyBeginAllowThreads();
32595 (arg1)->ClearColumnImage(arg2);
32596 wxPyEndAllowThreads(__tstate);
32597 if (PyErr_Occurred()) SWIG_fail;
32598 }
32599 resultobj = SWIG_Py_Void();
32600 return resultobj;
32601fail:
32602 return NULL;
d55e5bfc
RD
32603}
32604
32605
1bd55598
RD
32606SWIGINTERN PyObject *ListView_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32607 PyObject *obj;
32608 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32609 SWIG_TypeNewClientData(SWIGTYPE_p_wxListView, SWIG_NewClientData(obj));
32610 return SWIG_Py_Void();
d55e5bfc
RD
32611}
32612
1bd55598
RD
32613SWIGINTERN PyObject *ListView_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32614 return SWIG_Python_InitShadowInstance(args);
32615}
d55e5bfc 32616
1bd55598
RD
32617SWIGINTERN int TreeCtrlNameStr_set(PyObject *) {
32618 SWIG_Error(SWIG_AttributeError,"Variable TreeCtrlNameStr is read-only.");
32619 return 1;
d55e5bfc
RD
32620}
32621
32622
1bd55598
RD
32623SWIGINTERN PyObject *TreeCtrlNameStr_get(void) {
32624 PyObject *pyobj = 0;
32625
32626 {
32627#if wxUSE_UNICODE
32628 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32629#else
32630 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32631#endif
32632 }
32633 return pyobj;
d55e5bfc
RD
32634}
32635
32636
1bd55598
RD
32637SWIGINTERN PyObject *_wrap_new_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32638 PyObject *resultobj = 0;
32639 wxTreeItemId *result = 0 ;
32640
32641 if (!SWIG_Python_UnpackTuple(args,"new_TreeItemId",0,0,0)) SWIG_fail;
32642 {
32643 PyThreadState* __tstate = wxPyBeginAllowThreads();
32644 result = (wxTreeItemId *)new wxTreeItemId();
32645 wxPyEndAllowThreads(__tstate);
32646 if (PyErr_Occurred()) SWIG_fail;
32647 }
32648 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_NEW | 0 );
32649 return resultobj;
32650fail:
32651 return NULL;
d55e5bfc
RD
32652}
32653
32654
1bd55598
RD
32655SWIGINTERN PyObject *_wrap_delete_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32656 PyObject *resultobj = 0;
32657 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32658 void *argp1 = 0 ;
32659 int res1 = 0 ;
32660 PyObject *swig_obj[1] ;
32661
32662 if (!args) SWIG_fail;
32663 swig_obj[0] = args;
32664 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_DISOWN | 0 );
32665 if (!SWIG_IsOK(res1)) {
32666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemId" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32667 }
32668 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32669 {
32670 PyThreadState* __tstate = wxPyBeginAllowThreads();
32671 delete arg1;
d55e5bfc 32672
1bd55598
RD
32673 wxPyEndAllowThreads(__tstate);
32674 if (PyErr_Occurred()) SWIG_fail;
32675 }
32676 resultobj = SWIG_Py_Void();
32677 return resultobj;
32678fail:
32679 return NULL;
d55e5bfc
RD
32680}
32681
32682
1bd55598
RD
32683SWIGINTERN PyObject *_wrap_TreeItemId_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32684 PyObject *resultobj = 0;
32685 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32686 bool result;
32687 void *argp1 = 0 ;
32688 int res1 = 0 ;
32689 PyObject *swig_obj[1] ;
32690
32691 if (!args) SWIG_fail;
32692 swig_obj[0] = args;
32693 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32694 if (!SWIG_IsOK(res1)) {
32695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_IsOk" "', expected argument " "1"" of type '" "wxTreeItemId const *""'");
32696 }
32697 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32698 {
32699 PyThreadState* __tstate = wxPyBeginAllowThreads();
32700 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
32701 wxPyEndAllowThreads(__tstate);
32702 if (PyErr_Occurred()) SWIG_fail;
32703 }
32704 {
32705 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32706 }
32707 return resultobj;
32708fail:
32709 return NULL;
32710}
32711
32712
32713SWIGINTERN PyObject *_wrap_TreeItemId___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32714 PyObject *resultobj = 0;
32715 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32716 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32717 bool result;
32718 void *argp1 = 0 ;
32719 int res1 = 0 ;
32720 void *argp2 = 0 ;
32721 int res2 = 0 ;
32722 PyObject * obj0 = 0 ;
32723 PyObject * obj1 = 0 ;
32724 char * kwnames[] = {
32725 (char *) "self",(char *) "other", NULL
32726 };
32727
32728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
32729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32730 if (!SWIG_IsOK(res1)) {
32731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___eq__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32732 }
32733 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32734 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32735 if (!SWIG_IsOK(res2)) {
32736 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___eq__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32737 }
32738 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32739 {
32740 PyThreadState* __tstate = wxPyBeginAllowThreads();
32741 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
32742 wxPyEndAllowThreads(__tstate);
32743 if (PyErr_Occurred()) SWIG_fail;
32744 }
32745 {
32746 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32747 }
32748 return resultobj;
32749fail:
32750 return NULL;
32751}
32752
32753
32754SWIGINTERN PyObject *_wrap_TreeItemId___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32755 PyObject *resultobj = 0;
32756 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32757 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32758 bool result;
32759 void *argp1 = 0 ;
32760 int res1 = 0 ;
32761 void *argp2 = 0 ;
32762 int res2 = 0 ;
32763 PyObject * obj0 = 0 ;
32764 PyObject * obj1 = 0 ;
32765 char * kwnames[] = {
32766 (char *) "self",(char *) "other", NULL
32767 };
32768
32769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
32770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32771 if (!SWIG_IsOK(res1)) {
32772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___ne__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32773 }
32774 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32775 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32776 if (!SWIG_IsOK(res2)) {
32777 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___ne__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32778 }
32779 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32780 {
32781 PyThreadState* __tstate = wxPyBeginAllowThreads();
32782 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
32783 wxPyEndAllowThreads(__tstate);
32784 if (PyErr_Occurred()) SWIG_fail;
32785 }
32786 {
32787 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32788 }
32789 return resultobj;
32790fail:
32791 return NULL;
d55e5bfc
RD
32792}
32793
32794
1bd55598
RD
32795SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32796 PyObject *resultobj = 0;
32797 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32798 void *arg2 = (void *) 0 ;
32799 void *argp1 = 0 ;
32800 int res1 = 0 ;
32801 int res2 ;
32802 PyObject *swig_obj[2] ;
32803
32804 if (!SWIG_Python_UnpackTuple(args,"TreeItemId_m_pItem_set",2,2,swig_obj)) SWIG_fail;
32805 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32806 if (!SWIG_IsOK(res1)) {
32807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32808 }
32809 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32810 res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
32811 if (!SWIG_IsOK(res2)) {
32812 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "2"" of type '" "void *""'");
32813 }
32814 if (arg1) (arg1)->m_pItem = arg2;
32815
32816 resultobj = SWIG_Py_Void();
32817 return resultobj;
32818fail:
32819 return NULL;
d55e5bfc
RD
32820}
32821
32822
1bd55598
RD
32823SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32824 PyObject *resultobj = 0;
32825 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32826 void *result = 0 ;
32827 void *argp1 = 0 ;
32828 int res1 = 0 ;
32829 PyObject *swig_obj[1] ;
32830
32831 if (!args) SWIG_fail;
32832 swig_obj[0] = args;
32833 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32834 if (!SWIG_IsOK(res1)) {
32835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_get" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32836 }
32837 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32838 result = (void *) ((arg1)->m_pItem);
32839 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
32840 return resultobj;
32841fail:
32842 return NULL;
d55e5bfc
RD
32843}
32844
32845
1bd55598
RD
32846SWIGINTERN PyObject *TreeItemId_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32847 PyObject *obj;
32848 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32849 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeItemId, SWIG_NewClientData(obj));
32850 return SWIG_Py_Void();
d55e5bfc
RD
32851}
32852
1bd55598
RD
32853SWIGINTERN PyObject *TreeItemId_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32854 return SWIG_Python_InitShadowInstance(args);
32855}
d55e5bfc 32856
1bd55598
RD
32857SWIGINTERN PyObject *_wrap_new_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32858 PyObject *resultobj = 0;
32859 PyObject *arg1 = (PyObject *) NULL ;
32860 wxPyTreeItemData *result = 0 ;
32861 PyObject * obj0 = 0 ;
32862 char * kwnames[] = {
32863 (char *) "obj", NULL
32864 };
32865
32866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) SWIG_fail;
32867 if (obj0) {
32868 arg1 = obj0;
32869 }
32870 {
32871 PyThreadState* __tstate = wxPyBeginAllowThreads();
32872 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
32873 wxPyEndAllowThreads(__tstate);
32874 if (PyErr_Occurred()) SWIG_fail;
32875 }
32876 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_NEW | 0 );
32877 return resultobj;
32878fail:
32879 return NULL;
d55e5bfc
RD
32880}
32881
32882
1bd55598
RD
32883SWIGINTERN PyObject *_wrap_delete_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32884 PyObject *resultobj = 0;
32885 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32886 void *argp1 = 0 ;
32887 int res1 = 0 ;
32888 PyObject *swig_obj[1] ;
32889
32890 if (!args) SWIG_fail;
32891 swig_obj[0] = args;
32892 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
32893 if (!SWIG_IsOK(res1)) {
32894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32895 }
32896 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32897 {
32898 PyThreadState* __tstate = wxPyBeginAllowThreads();
32899 delete arg1;
d55e5bfc 32900
1bd55598
RD
32901 wxPyEndAllowThreads(__tstate);
32902 if (PyErr_Occurred()) SWIG_fail;
32903 }
32904 resultobj = SWIG_Py_Void();
32905 return resultobj;
32906fail:
32907 return NULL;
d55e5bfc
RD
32908}
32909
32910
1bd55598
RD
32911SWIGINTERN PyObject *_wrap_TreeItemData_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32912 PyObject *resultobj = 0;
32913 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32914 PyObject *result = 0 ;
32915 void *argp1 = 0 ;
32916 int res1 = 0 ;
32917 PyObject *swig_obj[1] ;
32918
32919 if (!args) SWIG_fail;
32920 swig_obj[0] = args;
32921 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32922 if (!SWIG_IsOK(res1)) {
32923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32924 }
32925 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32926 {
32927 PyThreadState* __tstate = wxPyBeginAllowThreads();
32928 result = (PyObject *)(arg1)->GetData();
32929 wxPyEndAllowThreads(__tstate);
32930 if (PyErr_Occurred()) SWIG_fail;
32931 }
32932 resultobj = result;
32933 return resultobj;
32934fail:
32935 return NULL;
32936}
32937
32938
32939SWIGINTERN PyObject *_wrap_TreeItemData_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32940 PyObject *resultobj = 0;
32941 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32942 PyObject *arg2 = (PyObject *) 0 ;
32943 void *argp1 = 0 ;
32944 int res1 = 0 ;
32945 PyObject * obj0 = 0 ;
32946 PyObject * obj1 = 0 ;
32947 char * kwnames[] = {
32948 (char *) "self",(char *) "obj", NULL
32949 };
32950
32951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
32952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32953 if (!SWIG_IsOK(res1)) {
32954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32955 }
32956 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32957 arg2 = obj1;
32958 {
32959 PyThreadState* __tstate = wxPyBeginAllowThreads();
32960 (arg1)->SetData(arg2);
32961 wxPyEndAllowThreads(__tstate);
32962 if (PyErr_Occurred()) SWIG_fail;
32963 }
32964 resultobj = SWIG_Py_Void();
32965 return resultobj;
32966fail:
32967 return NULL;
d55e5bfc
RD
32968}
32969
32970
1bd55598
RD
32971SWIGINTERN PyObject *_wrap_TreeItemData_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32972 PyObject *resultobj = 0;
32973 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32974 wxTreeItemId *result = 0 ;
32975 void *argp1 = 0 ;
32976 int res1 = 0 ;
32977 PyObject *swig_obj[1] ;
32978
32979 if (!args) SWIG_fail;
32980 swig_obj[0] = args;
32981 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32982 if (!SWIG_IsOK(res1)) {
32983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32984 }
32985 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32986 {
32987 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 32988 {
1bd55598
RD
32989 wxTreeItemId const &_result_ref = (arg1)->GetId();
32990 result = (wxTreeItemId *) &_result_ref;
d55e5bfc 32991 }
1bd55598
RD
32992 wxPyEndAllowThreads(__tstate);
32993 if (PyErr_Occurred()) SWIG_fail;
32994 }
32995 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32996 return resultobj;
32997fail:
32998 return NULL;
32999}
33000
33001
33002SWIGINTERN PyObject *_wrap_TreeItemData_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33003 PyObject *resultobj = 0;
33004 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33005 wxTreeItemId *arg2 = 0 ;
33006 void *argp1 = 0 ;
33007 int res1 = 0 ;
33008 void *argp2 = 0 ;
33009 int res2 = 0 ;
33010 PyObject * obj0 = 0 ;
33011 PyObject * obj1 = 0 ;
33012 char * kwnames[] = {
33013 (char *) "self",(char *) "id", NULL
33014 };
33015
33016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
33017 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33018 if (!SWIG_IsOK(res1)) {
33019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33020 }
33021 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33022 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33023 if (!SWIG_IsOK(res2)) {
33024 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33025 }
33026 if (!argp2) {
33027 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33028 }
33029 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33030 {
33031 PyThreadState* __tstate = wxPyBeginAllowThreads();
33032 (arg1)->SetId((wxTreeItemId const &)*arg2);
33033 wxPyEndAllowThreads(__tstate);
33034 if (PyErr_Occurred()) SWIG_fail;
33035 }
33036 resultobj = SWIG_Py_Void();
33037 return resultobj;
33038fail:
33039 return NULL;
d55e5bfc
RD
33040}
33041
33042
1bd55598
RD
33043SWIGINTERN PyObject *_wrap_TreeItemData_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33044 PyObject *resultobj = 0;
33045 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33046 void *argp1 = 0 ;
33047 int res1 = 0 ;
33048 PyObject *swig_obj[1] ;
33049
33050 if (!args) SWIG_fail;
33051 swig_obj[0] = args;
33052 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33053 if (!SWIG_IsOK(res1)) {
33054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_Destroy" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33055 }
33056 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33057 {
33058 PyThreadState* __tstate = wxPyBeginAllowThreads();
33059 wxPyTreeItemData_Destroy(arg1);
33060 wxPyEndAllowThreads(__tstate);
33061 if (PyErr_Occurred()) SWIG_fail;
33062 }
33063 resultobj = SWIG_Py_Void();
33064 return resultobj;
33065fail:
33066 return NULL;
d55e5bfc
RD
33067}
33068
33069
1bd55598
RD
33070SWIGINTERN PyObject *TreeItemData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33071 PyObject *obj;
33072 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33073 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeItemData, SWIG_NewClientData(obj));
33074 return SWIG_Py_Void();
d55e5bfc
RD
33075}
33076
1bd55598
RD
33077SWIGINTERN PyObject *TreeItemData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33078 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
33079}
33080
b02396e8
RD
33081SWIGINTERN int NullTreeItemId_set(PyObject *_val) {
33082 {
33083 void *argp = 0;
33084 int res = SWIG_ConvertPtr(_val, &argp, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33085 if (!SWIG_IsOK(res)) {
33086 SWIG_exception_fail(SWIG_ArgError(res), "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
33087 }
33088 if (!argp) {
33089 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
33090 } else {
33091 wxTreeItemId * temp;
33092 temp = reinterpret_cast< wxTreeItemId * >(argp);
33093 wxNullTreeItemId = *temp;
33094 if (SWIG_IsNewObj(res)) delete temp;
33095 }
33096 }
33097 return 0;
33098fail:
33099 return 1;
33100}
33101
33102
33103SWIGINTERN PyObject *NullTreeItemId_get(void) {
33104 PyObject *pyobj = 0;
33105
33106 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullTreeItemId), SWIGTYPE_p_wxTreeItemId, 0 );
33107 return pyobj;
33108}
33109
33110
33111SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
1bd55598
RD
33112 PyObject *resultobj = 0;
33113 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
33114 int arg2 = (int) 0 ;
33115 wxTreeEvent *result = 0 ;
33116 int val1 ;
33117 int ecode1 = 0 ;
33118 int val2 ;
33119 int ecode2 = 0 ;
1bd55598 33120
b02396e8
RD
33121 if ((nobjs < 0) || (nobjs > 2)) SWIG_fail;
33122 if (swig_obj[0]) {
33123 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
1bd55598
RD
33124 if (!SWIG_IsOK(ecode1)) {
33125 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
33126 }
33127 arg1 = static_cast< wxEventType >(val1);
33128 }
b02396e8
RD
33129 if (swig_obj[1]) {
33130 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
1bd55598
RD
33131 if (!SWIG_IsOK(ecode2)) {
33132 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "int""'");
33133 }
33134 arg2 = static_cast< int >(val2);
33135 }
33136 {
33137 PyThreadState* __tstate = wxPyBeginAllowThreads();
33138 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
33139 wxPyEndAllowThreads(__tstate);
33140 if (PyErr_Occurred()) SWIG_fail;
33141 }
33142 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
33143 return resultobj;
33144fail:
33145 return NULL;
d55e5bfc
RD
33146}
33147
33148
b02396e8
RD
33149SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
33150 PyObject *resultobj = 0;
33151 wxEventType arg1 ;
33152 wxPyTreeCtrl *arg2 = (wxPyTreeCtrl *) 0 ;
33153 wxTreeItemId &arg3_defvalue = wxNullTreeItemId ;
33154 wxTreeItemId *arg3 = (wxTreeItemId *) &arg3_defvalue ;
33155 wxTreeEvent *result = 0 ;
33156 int val1 ;
33157 int ecode1 = 0 ;
33158 void *argp2 = 0 ;
33159 int res2 = 0 ;
33160 void *argp3 = 0 ;
33161 int res3 = 0 ;
33162
33163 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
33164 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
33165 if (!SWIG_IsOK(ecode1)) {
33166 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
33167 }
33168 arg1 = static_cast< wxEventType >(val1);
33169 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33170 if (!SWIG_IsOK(res2)) {
33171 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "wxPyTreeCtrl *""'");
33172 }
33173 arg2 = reinterpret_cast< wxPyTreeCtrl * >(argp2);
33174 if (swig_obj[2]) {
33175 res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_wxTreeItemId, 0 );
33176 if (!SWIG_IsOK(res3)) {
33177 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
33178 }
33179 if (!argp3) {
33180 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
33181 }
33182 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
33183 }
33184 {
33185 PyThreadState* __tstate = wxPyBeginAllowThreads();
33186 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2,*arg3);
33187 wxPyEndAllowThreads(__tstate);
33188 if (PyErr_Occurred()) SWIG_fail;
33189 }
33190 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
33191 return resultobj;
33192fail:
33193 return NULL;
33194}
33195
33196
33197SWIGINTERN PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args) {
33198 int argc;
33199 PyObject *argv[4];
33200
33201 if (!(argc = SWIG_Python_UnpackTuple(args,"new_TreeEvent",0,3,argv))) SWIG_fail;
33202 --argc;
33203 if ((argc >= 0) && (argc <= 2)) {
33204 int _v = 0;
33205 if (argc > 1) {
33206 {
33207 {
33208 int res = SWIG_AsVal_int(argv[1], NULL);
33209 _v = SWIG_CheckState(res);
33210 }
33211 }
33212 if (!_v) goto check_1;
33213 }
33214 return _wrap_new_TreeEvent__SWIG_0(self, argc, argv);
33215 }
33216check_1:
33217
33218 if ((argc >= 2) && (argc <= 3)) {
33219 return _wrap_new_TreeEvent__SWIG_1(self, argc, argv);
33220 }
33221
33222fail:
33223 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_TreeEvent'");
33224 return NULL;
33225}
33226
33227
1bd55598
RD
33228SWIGINTERN PyObject *_wrap_TreeEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33229 PyObject *resultobj = 0;
33230 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33231 wxTreeItemId result;
33232 void *argp1 = 0 ;
33233 int res1 = 0 ;
33234 PyObject *swig_obj[1] ;
33235
33236 if (!args) SWIG_fail;
33237 swig_obj[0] = args;
33238 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33239 if (!SWIG_IsOK(res1)) {
33240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33241 }
33242 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33243 {
33244 PyThreadState* __tstate = wxPyBeginAllowThreads();
33245 result = ((wxTreeEvent const *)arg1)->GetItem();
33246 wxPyEndAllowThreads(__tstate);
33247 if (PyErr_Occurred()) SWIG_fail;
33248 }
33249 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33250 return resultobj;
33251fail:
33252 return NULL;
33253}
33254
33255
33256SWIGINTERN PyObject *_wrap_TreeEvent_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33257 PyObject *resultobj = 0;
33258 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33259 wxTreeItemId *arg2 = 0 ;
33260 void *argp1 = 0 ;
33261 int res1 = 0 ;
33262 void *argp2 = 0 ;
33263 int res2 = 0 ;
33264 PyObject * obj0 = 0 ;
33265 PyObject * obj1 = 0 ;
33266 char * kwnames[] = {
33267 (char *) "self",(char *) "item", NULL
33268 };
33269
33270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
33271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33272 if (!SWIG_IsOK(res1)) {
33273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33274 }
33275 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33276 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33277 if (!SWIG_IsOK(res2)) {
33278 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33279 }
33280 if (!argp2) {
33281 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33282 }
33283 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33284 {
33285 PyThreadState* __tstate = wxPyBeginAllowThreads();
33286 (arg1)->SetItem((wxTreeItemId const &)*arg2);
33287 wxPyEndAllowThreads(__tstate);
33288 if (PyErr_Occurred()) SWIG_fail;
33289 }
33290 resultobj = SWIG_Py_Void();
33291 return resultobj;
33292fail:
33293 return NULL;
d55e5bfc
RD
33294}
33295
33296
1bd55598
RD
33297SWIGINTERN PyObject *_wrap_TreeEvent_GetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33298 PyObject *resultobj = 0;
33299 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33300 wxTreeItemId result;
33301 void *argp1 = 0 ;
33302 int res1 = 0 ;
33303 PyObject *swig_obj[1] ;
33304
33305 if (!args) SWIG_fail;
33306 swig_obj[0] = args;
33307 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33308 if (!SWIG_IsOK(res1)) {
33309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33310 }
33311 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33312 {
33313 PyThreadState* __tstate = wxPyBeginAllowThreads();
33314 result = ((wxTreeEvent const *)arg1)->GetOldItem();
33315 wxPyEndAllowThreads(__tstate);
33316 if (PyErr_Occurred()) SWIG_fail;
33317 }
33318 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33319 return resultobj;
33320fail:
33321 return NULL;
33322}
33323
33324
33325SWIGINTERN PyObject *_wrap_TreeEvent_SetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33326 PyObject *resultobj = 0;
33327 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33328 wxTreeItemId *arg2 = 0 ;
33329 void *argp1 = 0 ;
33330 int res1 = 0 ;
33331 void *argp2 = 0 ;
33332 int res2 = 0 ;
33333 PyObject * obj0 = 0 ;
33334 PyObject * obj1 = 0 ;
33335 char * kwnames[] = {
33336 (char *) "self",(char *) "item", NULL
33337 };
33338
33339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) SWIG_fail;
33340 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33341 if (!SWIG_IsOK(res1)) {
33342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33343 }
33344 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33345 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33346 if (!SWIG_IsOK(res2)) {
33347 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33348 }
33349 if (!argp2) {
33350 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33351 }
33352 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33353 {
33354 PyThreadState* __tstate = wxPyBeginAllowThreads();
33355 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
33356 wxPyEndAllowThreads(__tstate);
33357 if (PyErr_Occurred()) SWIG_fail;
33358 }
33359 resultobj = SWIG_Py_Void();
33360 return resultobj;
33361fail:
33362 return NULL;
d55e5bfc
RD
33363}
33364
33365
1bd55598
RD
33366SWIGINTERN PyObject *_wrap_TreeEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33367 PyObject *resultobj = 0;
33368 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33369 wxPoint result;
33370 void *argp1 = 0 ;
33371 int res1 = 0 ;
33372 PyObject *swig_obj[1] ;
33373
33374 if (!args) SWIG_fail;
33375 swig_obj[0] = args;
33376 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33377 if (!SWIG_IsOK(res1)) {
33378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetPoint" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33379 }
33380 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33381 {
33382 PyThreadState* __tstate = wxPyBeginAllowThreads();
33383 result = ((wxTreeEvent const *)arg1)->GetPoint();
33384 wxPyEndAllowThreads(__tstate);
33385 if (PyErr_Occurred()) SWIG_fail;
33386 }
33387 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
33388 return resultobj;
33389fail:
33390 return NULL;
33391}
33392
33393
33394SWIGINTERN PyObject *_wrap_TreeEvent_SetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33395 PyObject *resultobj = 0;
33396 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33397 wxPoint *arg2 = 0 ;
33398 void *argp1 = 0 ;
33399 int res1 = 0 ;
33400 wxPoint temp2 ;
33401 PyObject * obj0 = 0 ;
33402 PyObject * obj1 = 0 ;
33403 char * kwnames[] = {
33404 (char *) "self",(char *) "pt", NULL
33405 };
33406
33407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) SWIG_fail;
33408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33409 if (!SWIG_IsOK(res1)) {
33410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetPoint" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33411 }
33412 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33413 {
33414 arg2 = &temp2;
33415 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33416 }
33417 {
33418 PyThreadState* __tstate = wxPyBeginAllowThreads();
33419 (arg1)->SetPoint((wxPoint const &)*arg2);
33420 wxPyEndAllowThreads(__tstate);
33421 if (PyErr_Occurred()) SWIG_fail;
33422 }
33423 resultobj = SWIG_Py_Void();
33424 return resultobj;
33425fail:
33426 return NULL;
d55e5bfc
RD
33427}
33428
33429
1bd55598
RD
33430SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33431 PyObject *resultobj = 0;
33432 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33433 wxKeyEvent *result = 0 ;
33434 void *argp1 = 0 ;
33435 int res1 = 0 ;
33436 PyObject *swig_obj[1] ;
33437
33438 if (!args) SWIG_fail;
33439 swig_obj[0] = args;
33440 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33441 if (!SWIG_IsOK(res1)) {
33442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33443 }
33444 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33445 {
33446 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 33447 {
1bd55598
RD
33448 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
33449 result = (wxKeyEvent *) &_result_ref;
d55e5bfc 33450 }
1bd55598
RD
33451 wxPyEndAllowThreads(__tstate);
33452 if (PyErr_Occurred()) SWIG_fail;
33453 }
33454 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxKeyEvent, 0 | 0 );
33455 return resultobj;
33456fail:
33457 return NULL;
d55e5bfc
RD
33458}
33459
33460
1bd55598
RD
33461SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33462 PyObject *resultobj = 0;
33463 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33464 int result;
33465 void *argp1 = 0 ;
33466 int res1 = 0 ;
33467 PyObject *swig_obj[1] ;
33468
33469 if (!args) SWIG_fail;
33470 swig_obj[0] = args;
33471 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33472 if (!SWIG_IsOK(res1)) {
33473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33474 }
33475 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33476 {
33477 PyThreadState* __tstate = wxPyBeginAllowThreads();
33478 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
33479 wxPyEndAllowThreads(__tstate);
33480 if (PyErr_Occurred()) SWIG_fail;
33481 }
33482 resultobj = SWIG_From_int(static_cast< int >(result));
33483 return resultobj;
33484fail:
33485 return NULL;
33486}
33487
33488
33489SWIGINTERN PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33490 PyObject *resultobj = 0;
33491 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33492 wxKeyEvent *arg2 = 0 ;
33493 void *argp1 = 0 ;
33494 int res1 = 0 ;
33495 void *argp2 = 0 ;
33496 int res2 = 0 ;
33497 PyObject * obj0 = 0 ;
33498 PyObject * obj1 = 0 ;
33499 char * kwnames[] = {
33500 (char *) "self",(char *) "evt", NULL
33501 };
33502
33503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) SWIG_fail;
33504 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33505 if (!SWIG_IsOK(res1)) {
33506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33507 }
33508 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33509 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
33510 if (!SWIG_IsOK(res2)) {
33511 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33512 }
33513 if (!argp2) {
33514 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33515 }
33516 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
33517 {
33518 PyThreadState* __tstate = wxPyBeginAllowThreads();
33519 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
33520 wxPyEndAllowThreads(__tstate);
33521 if (PyErr_Occurred()) SWIG_fail;
33522 }
33523 resultobj = SWIG_Py_Void();
33524 return resultobj;
33525fail:
33526 return NULL;
d55e5bfc
RD
33527}
33528
33529
1bd55598
RD
33530SWIGINTERN PyObject *_wrap_TreeEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33531 PyObject *resultobj = 0;
33532 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33533 wxString *result = 0 ;
33534 void *argp1 = 0 ;
33535 int res1 = 0 ;
33536 PyObject *swig_obj[1] ;
33537
33538 if (!args) SWIG_fail;
33539 swig_obj[0] = args;
33540 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33541 if (!SWIG_IsOK(res1)) {
33542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetLabel" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33543 }
33544 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33545 {
33546 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 33547 {
1bd55598
RD
33548 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
33549 result = (wxString *) &_result_ref;
d55e5bfc 33550 }
1bd55598
RD
33551 wxPyEndAllowThreads(__tstate);
33552 if (PyErr_Occurred()) SWIG_fail;
33553 }
33554 {
33555#if wxUSE_UNICODE
33556 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33557#else
33558 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33559#endif
33560 }
33561 return resultobj;
33562fail:
33563 return NULL;
33564}
33565
33566
33567SWIGINTERN PyObject *_wrap_TreeEvent_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33568 PyObject *resultobj = 0;
33569 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33570 wxString *arg2 = 0 ;
33571 void *argp1 = 0 ;
33572 int res1 = 0 ;
33573 bool temp2 = false ;
33574 PyObject * obj0 = 0 ;
33575 PyObject * obj1 = 0 ;
33576 char * kwnames[] = {
33577 (char *) "self",(char *) "label", NULL
33578 };
33579
33580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
33581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33582 if (!SWIG_IsOK(res1)) {
33583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetLabel" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33584 }
33585 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33586 {
33587 arg2 = wxString_in_helper(obj1);
33588 if (arg2 == NULL) SWIG_fail;
33589 temp2 = true;
33590 }
33591 {
33592 PyThreadState* __tstate = wxPyBeginAllowThreads();
33593 (arg1)->SetLabel((wxString const &)*arg2);
33594 wxPyEndAllowThreads(__tstate);
33595 if (PyErr_Occurred()) SWIG_fail;
33596 }
33597 resultobj = SWIG_Py_Void();
33598 {
33599 if (temp2)
33600 delete arg2;
33601 }
33602 return resultobj;
33603fail:
33604 {
33605 if (temp2)
33606 delete arg2;
33607 }
33608 return NULL;
d55e5bfc
RD
33609}
33610
33611
1bd55598
RD
33612SWIGINTERN PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33613 PyObject *resultobj = 0;
33614 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33615 bool result;
33616 void *argp1 = 0 ;
33617 int res1 = 0 ;
33618 PyObject *swig_obj[1] ;
33619
33620 if (!args) SWIG_fail;
33621 swig_obj[0] = args;
33622 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33623 if (!SWIG_IsOK(res1)) {
33624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33625 }
33626 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33627 {
33628 PyThreadState* __tstate = wxPyBeginAllowThreads();
33629 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
33630 wxPyEndAllowThreads(__tstate);
33631 if (PyErr_Occurred()) SWIG_fail;
33632 }
33633 {
33634 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33635 }
33636 return resultobj;
33637fail:
33638 return NULL;
33639}
33640
33641
33642SWIGINTERN PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33643 PyObject *resultobj = 0;
33644 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33645 bool arg2 ;
33646 void *argp1 = 0 ;
33647 int res1 = 0 ;
33648 bool val2 ;
33649 int ecode2 = 0 ;
33650 PyObject * obj0 = 0 ;
33651 PyObject * obj1 = 0 ;
33652 char * kwnames[] = {
33653 (char *) "self",(char *) "editCancelled", NULL
33654 };
33655
33656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
33657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33658 if (!SWIG_IsOK(res1)) {
33659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33660 }
33661 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33662 ecode2 = SWIG_AsVal_bool(obj1, &val2);
33663 if (!SWIG_IsOK(ecode2)) {
33664 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
33665 }
33666 arg2 = static_cast< bool >(val2);
33667 {
33668 PyThreadState* __tstate = wxPyBeginAllowThreads();
33669 (arg1)->SetEditCanceled(arg2);
33670 wxPyEndAllowThreads(__tstate);
33671 if (PyErr_Occurred()) SWIG_fail;
33672 }
33673 resultobj = SWIG_Py_Void();
33674 return resultobj;
33675fail:
33676 return NULL;
33677}
33678
33679
33680SWIGINTERN PyObject *_wrap_TreeEvent_SetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33681 PyObject *resultobj = 0;
33682 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33683 wxString *arg2 = 0 ;
33684 void *argp1 = 0 ;
33685 int res1 = 0 ;
33686 bool temp2 = false ;
33687 PyObject * obj0 = 0 ;
33688 PyObject * obj1 = 0 ;
33689 char * kwnames[] = {
33690 (char *) "self",(char *) "toolTip", NULL
33691 };
33692
33693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
33694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33695 if (!SWIG_IsOK(res1)) {
33696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33697 }
33698 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33699 {
33700 arg2 = wxString_in_helper(obj1);
33701 if (arg2 == NULL) SWIG_fail;
33702 temp2 = true;
33703 }
33704 {
33705 PyThreadState* __tstate = wxPyBeginAllowThreads();
33706 (arg1)->SetToolTip((wxString const &)*arg2);
33707 wxPyEndAllowThreads(__tstate);
33708 if (PyErr_Occurred()) SWIG_fail;
33709 }
33710 resultobj = SWIG_Py_Void();
33711 {
33712 if (temp2)
33713 delete arg2;
33714 }
33715 return resultobj;
33716fail:
33717 {
33718 if (temp2)
33719 delete arg2;
33720 }
33721 return NULL;
d55e5bfc
RD
33722}
33723
33724
1bd55598
RD
33725SWIGINTERN PyObject *_wrap_TreeEvent_GetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33726 PyObject *resultobj = 0;
33727 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33728 wxString result;
33729 void *argp1 = 0 ;
33730 int res1 = 0 ;
33731 PyObject *swig_obj[1] ;
33732
33733 if (!args) SWIG_fail;
33734 swig_obj[0] = args;
33735 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33736 if (!SWIG_IsOK(res1)) {
33737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33738 }
33739 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33740 {
33741 PyThreadState* __tstate = wxPyBeginAllowThreads();
33742 result = (arg1)->GetToolTip();
33743 wxPyEndAllowThreads(__tstate);
33744 if (PyErr_Occurred()) SWIG_fail;
33745 }
33746 {
33747#if wxUSE_UNICODE
33748 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33749#else
33750 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33751#endif
33752 }
33753 return resultobj;
33754fail:
33755 return NULL;
33756}
33757
33758
33759SWIGINTERN PyObject *TreeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33760 PyObject *obj;
33761 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33762 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeEvent, SWIG_NewClientData(obj));
33763 return SWIG_Py_Void();
33764}
33765
33766SWIGINTERN PyObject *TreeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33767 return SWIG_Python_InitShadowInstance(args);
33768}
33769
33770SWIGINTERN PyObject *_wrap_new_TreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33771 PyObject *resultobj = 0;
33772 wxWindow *arg1 = (wxWindow *) 0 ;
33773 int arg2 = (int) -1 ;
33774 wxPoint const &arg3_defvalue = wxDefaultPosition ;
33775 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
33776 wxSize const &arg4_defvalue = wxDefaultSize ;
33777 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
33778 long arg5 = (long) wxTR_DEFAULT_STYLE ;
33779 wxValidator const &arg6_defvalue = wxDefaultValidator ;
33780 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
33781 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
33782 wxString *arg7 = (wxString *) &arg7_defvalue ;
33783 wxPyTreeCtrl *result = 0 ;
33784 void *argp1 = 0 ;
33785 int res1 = 0 ;
33786 int val2 ;
33787 int ecode2 = 0 ;
33788 wxPoint temp3 ;
33789 wxSize temp4 ;
33790 long val5 ;
33791 int ecode5 = 0 ;
33792 void *argp6 = 0 ;
33793 int res6 = 0 ;
33794 bool temp7 = false ;
33795 PyObject * obj0 = 0 ;
33796 PyObject * obj1 = 0 ;
33797 PyObject * obj2 = 0 ;
33798 PyObject * obj3 = 0 ;
33799 PyObject * obj4 = 0 ;
33800 PyObject * obj5 = 0 ;
33801 PyObject * obj6 = 0 ;
33802 char * kwnames[] = {
33803 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33804 };
33805
33806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33808 if (!SWIG_IsOK(res1)) {
33809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
33810 }
33811 arg1 = reinterpret_cast< wxWindow * >(argp1);
33812 if (obj1) {
33813 ecode2 = SWIG_AsVal_int(obj1, &val2);
33814 if (!SWIG_IsOK(ecode2)) {
33815 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCtrl" "', expected argument " "2"" of type '" "int""'");
33816 }
33817 arg2 = static_cast< int >(val2);
33818 }
33819 if (obj2) {
d55e5bfc 33820 {
1bd55598
RD
33821 arg3 = &temp3;
33822 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 33823 }
1bd55598
RD
33824 }
33825 if (obj3) {
36ed4f51 33826 {
1bd55598
RD
33827 arg4 = &temp4;
33828 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 33829 }
1bd55598
RD
33830 }
33831 if (obj4) {
33832 ecode5 = SWIG_AsVal_long(obj4, &val5);
33833 if (!SWIG_IsOK(ecode5)) {
33834 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TreeCtrl" "', expected argument " "5"" of type '" "long""'");
33835 }
33836 arg5 = static_cast< long >(val5);
33837 }
33838 if (obj5) {
33839 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
33840 if (!SWIG_IsOK(res6)) {
33841 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 33842 }
1bd55598
RD
33843 if (!argp6) {
33844 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 33845 }
1bd55598
RD
33846 arg6 = reinterpret_cast< wxValidator * >(argp6);
33847 }
33848 if (obj6) {
d55e5bfc 33849 {
1bd55598
RD
33850 arg7 = wxString_in_helper(obj6);
33851 if (arg7 == NULL) SWIG_fail;
33852 temp7 = true;
d55e5bfc 33853 }
1bd55598
RD
33854 }
33855 {
33856 if (!wxPyCheckForApp()) SWIG_fail;
33857 PyThreadState* __tstate = wxPyBeginAllowThreads();
33858 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
33859 wxPyEndAllowThreads(__tstate);
33860 if (PyErr_Occurred()) SWIG_fail;
33861 }
33862 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_NEW | 0 );
33863 {
33864 if (temp7)
33865 delete arg7;
33866 }
33867 return resultobj;
33868fail:
33869 {
33870 if (temp7)
33871 delete arg7;
33872 }
33873 return NULL;
33874}
33875
33876
33877SWIGINTERN PyObject *_wrap_new_PreTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33878 PyObject *resultobj = 0;
33879 wxPyTreeCtrl *result = 0 ;
33880
33881 if (!SWIG_Python_UnpackTuple(args,"new_PreTreeCtrl",0,0,0)) SWIG_fail;
33882 {
33883 if (!wxPyCheckForApp()) SWIG_fail;
33884 PyThreadState* __tstate = wxPyBeginAllowThreads();
33885 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
33886 wxPyEndAllowThreads(__tstate);
33887 if (PyErr_Occurred()) SWIG_fail;
33888 }
33889 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_OWN | 0 );
33890 return resultobj;
33891fail:
33892 return NULL;
33893}
33894
33895
33896SWIGINTERN PyObject *_wrap_TreeCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33897 PyObject *resultobj = 0;
33898 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33899 wxWindow *arg2 = (wxWindow *) 0 ;
33900 int arg3 = (int) -1 ;
33901 wxPoint const &arg4_defvalue = wxDefaultPosition ;
33902 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
33903 wxSize const &arg5_defvalue = wxDefaultSize ;
33904 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
33905 long arg6 = (long) wxTR_DEFAULT_STYLE ;
33906 wxValidator const &arg7_defvalue = wxDefaultValidator ;
33907 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
33908 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
33909 wxString *arg8 = (wxString *) &arg8_defvalue ;
33910 bool result;
33911 void *argp1 = 0 ;
33912 int res1 = 0 ;
33913 void *argp2 = 0 ;
33914 int res2 = 0 ;
33915 int val3 ;
33916 int ecode3 = 0 ;
33917 wxPoint temp4 ;
33918 wxSize temp5 ;
33919 long val6 ;
33920 int ecode6 = 0 ;
33921 void *argp7 = 0 ;
33922 int res7 = 0 ;
33923 bool temp8 = false ;
33924 PyObject * obj0 = 0 ;
33925 PyObject * obj1 = 0 ;
33926 PyObject * obj2 = 0 ;
33927 PyObject * obj3 = 0 ;
33928 PyObject * obj4 = 0 ;
33929 PyObject * obj5 = 0 ;
33930 PyObject * obj6 = 0 ;
33931 PyObject * obj7 = 0 ;
33932 char * kwnames[] = {
33933 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33934 };
33935
33936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
33937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33938 if (!SWIG_IsOK(res1)) {
33939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Create" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33940 }
33941 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33942 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33943 if (!SWIG_IsOK(res2)) {
33944 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
33945 }
33946 arg2 = reinterpret_cast< wxWindow * >(argp2);
33947 if (obj2) {
33948 ecode3 = SWIG_AsVal_int(obj2, &val3);
33949 if (!SWIG_IsOK(ecode3)) {
33950 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_Create" "', expected argument " "3"" of type '" "int""'");
33951 }
33952 arg3 = static_cast< int >(val3);
33953 }
33954 if (obj3) {
d55e5bfc 33955 {
1bd55598
RD
33956 arg4 = &temp4;
33957 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 33958 }
1bd55598
RD
33959 }
33960 if (obj4) {
d55e5bfc 33961 {
1bd55598
RD
33962 arg5 = &temp5;
33963 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 33964 }
1bd55598
RD
33965 }
33966 if (obj5) {
33967 ecode6 = SWIG_AsVal_long(obj5, &val6);
33968 if (!SWIG_IsOK(ecode6)) {
33969 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_Create" "', expected argument " "6"" of type '" "long""'");
33970 }
33971 arg6 = static_cast< long >(val6);
33972 }
33973 if (obj6) {
33974 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
33975 if (!SWIG_IsOK(res7)) {
33976 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 33977 }
1bd55598
RD
33978 if (!argp7) {
33979 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 33980 }
1bd55598
RD
33981 arg7 = reinterpret_cast< wxValidator * >(argp7);
33982 }
33983 if (obj7) {
d55e5bfc 33984 {
1bd55598
RD
33985 arg8 = wxString_in_helper(obj7);
33986 if (arg8 == NULL) SWIG_fail;
33987 temp8 = true;
d55e5bfc 33988 }
1bd55598
RD
33989 }
33990 {
33991 PyThreadState* __tstate = wxPyBeginAllowThreads();
33992 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
33993 wxPyEndAllowThreads(__tstate);
33994 if (PyErr_Occurred()) SWIG_fail;
33995 }
33996 {
33997 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33998 }
33999 {
34000 if (temp8)
34001 delete arg8;
34002 }
34003 return resultobj;
34004fail:
34005 {
34006 if (temp8)
34007 delete arg8;
34008 }
34009 return NULL;
34010}
34011
34012
34013SWIGINTERN PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34014 PyObject *resultobj = 0;
34015 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34016 PyObject *arg2 = (PyObject *) 0 ;
34017 PyObject *arg3 = (PyObject *) 0 ;
34018 void *argp1 = 0 ;
34019 int res1 = 0 ;
34020 PyObject * obj0 = 0 ;
34021 PyObject * obj1 = 0 ;
34022 PyObject * obj2 = 0 ;
34023 char * kwnames[] = {
34024 (char *) "self",(char *) "self",(char *) "_class", NULL
34025 };
34026
34027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34029 if (!SWIG_IsOK(res1)) {
34030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34031 }
34032 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34033 arg2 = obj1;
34034 arg3 = obj2;
34035 {
34036 PyThreadState* __tstate = wxPyBeginAllowThreads();
34037 (arg1)->_setCallbackInfo(arg2,arg3);
34038 wxPyEndAllowThreads(__tstate);
34039 if (PyErr_Occurred()) SWIG_fail;
34040 }
34041 resultobj = SWIG_Py_Void();
34042 return resultobj;
34043fail:
34044 return NULL;
d55e5bfc
RD
34045}
34046
34047
1bd55598
RD
34048SWIGINTERN PyObject *_wrap_TreeCtrl_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34049 PyObject *resultobj = 0;
34050 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
e9d6f3a4 34051 unsigned int result;
1bd55598
RD
34052 void *argp1 = 0 ;
34053 int res1 = 0 ;
34054 PyObject *swig_obj[1] ;
34055
34056 if (!args) SWIG_fail;
34057 swig_obj[0] = args;
34058 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34059 if (!SWIG_IsOK(res1)) {
34060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34061 }
34062 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34063 {
34064 PyThreadState* __tstate = wxPyBeginAllowThreads();
e9d6f3a4 34065 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetCount();
1bd55598
RD
34066 wxPyEndAllowThreads(__tstate);
34067 if (PyErr_Occurred()) SWIG_fail;
34068 }
e9d6f3a4 34069 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
1bd55598
RD
34070 return resultobj;
34071fail:
34072 return NULL;
d55e5bfc
RD
34073}
34074
34075
1bd55598
RD
34076SWIGINTERN PyObject *_wrap_TreeCtrl_GetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34077 PyObject *resultobj = 0;
34078 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34079 unsigned int result;
34080 void *argp1 = 0 ;
34081 int res1 = 0 ;
34082 PyObject *swig_obj[1] ;
34083
34084 if (!args) SWIG_fail;
34085 swig_obj[0] = args;
34086 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34087 if (!SWIG_IsOK(res1)) {
34088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34089 }
34090 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34091 {
34092 PyThreadState* __tstate = wxPyBeginAllowThreads();
34093 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
34094 wxPyEndAllowThreads(__tstate);
34095 if (PyErr_Occurred()) SWIG_fail;
34096 }
34097 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
34098 return resultobj;
34099fail:
34100 return NULL;
34101}
34102
34103
34104SWIGINTERN PyObject *_wrap_TreeCtrl_SetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34105 PyObject *resultobj = 0;
34106 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34107 unsigned int arg2 ;
34108 void *argp1 = 0 ;
34109 int res1 = 0 ;
34110 unsigned int val2 ;
34111 int ecode2 = 0 ;
34112 PyObject * obj0 = 0 ;
34113 PyObject * obj1 = 0 ;
34114 char * kwnames[] = {
34115 (char *) "self",(char *) "indent", NULL
34116 };
34117
34118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) SWIG_fail;
34119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34120 if (!SWIG_IsOK(res1)) {
34121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34122 }
34123 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34124 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
34125 if (!SWIG_IsOK(ecode2)) {
34126 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetIndent" "', expected argument " "2"" of type '" "unsigned int""'");
34127 }
34128 arg2 = static_cast< unsigned int >(val2);
34129 {
34130 PyThreadState* __tstate = wxPyBeginAllowThreads();
34131 (arg1)->SetIndent(arg2);
34132 wxPyEndAllowThreads(__tstate);
34133 if (PyErr_Occurred()) SWIG_fail;
34134 }
34135 resultobj = SWIG_Py_Void();
34136 return resultobj;
34137fail:
34138 return NULL;
d55e5bfc
RD
34139}
34140
34141
1bd55598
RD
34142SWIGINTERN PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34143 PyObject *resultobj = 0;
34144 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34145 unsigned int result;
34146 void *argp1 = 0 ;
34147 int res1 = 0 ;
34148 PyObject *swig_obj[1] ;
34149
34150 if (!args) SWIG_fail;
34151 swig_obj[0] = args;
34152 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34153 if (!SWIG_IsOK(res1)) {
34154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34155 }
34156 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34157 {
34158 PyThreadState* __tstate = wxPyBeginAllowThreads();
34159 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
34160 wxPyEndAllowThreads(__tstate);
34161 if (PyErr_Occurred()) SWIG_fail;
34162 }
34163 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
34164 return resultobj;
34165fail:
34166 return NULL;
34167}
34168
34169
34170SWIGINTERN PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34171 PyObject *resultobj = 0;
34172 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34173 unsigned int arg2 ;
34174 void *argp1 = 0 ;
34175 int res1 = 0 ;
34176 unsigned int val2 ;
34177 int ecode2 = 0 ;
34178 PyObject * obj0 = 0 ;
34179 PyObject * obj1 = 0 ;
34180 char * kwnames[] = {
34181 (char *) "self",(char *) "spacing", NULL
34182 };
34183
34184 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
34185 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34186 if (!SWIG_IsOK(res1)) {
34187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34188 }
34189 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34190 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
34191 if (!SWIG_IsOK(ecode2)) {
34192 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "2"" of type '" "unsigned int""'");
34193 }
34194 arg2 = static_cast< unsigned int >(val2);
34195 {
34196 PyThreadState* __tstate = wxPyBeginAllowThreads();
34197 (arg1)->SetSpacing(arg2);
34198 wxPyEndAllowThreads(__tstate);
34199 if (PyErr_Occurred()) SWIG_fail;
34200 }
34201 resultobj = SWIG_Py_Void();
34202 return resultobj;
34203fail:
34204 return NULL;
d55e5bfc
RD
34205}
34206
34207
1bd55598
RD
34208SWIGINTERN PyObject *_wrap_TreeCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34209 PyObject *resultobj = 0;
34210 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34211 wxImageList *result = 0 ;
34212 void *argp1 = 0 ;
34213 int res1 = 0 ;
34214 PyObject *swig_obj[1] ;
34215
34216 if (!args) SWIG_fail;
34217 swig_obj[0] = args;
34218 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34219 if (!SWIG_IsOK(res1)) {
34220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34221 }
34222 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34223 {
34224 PyThreadState* __tstate = wxPyBeginAllowThreads();
34225 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
34226 wxPyEndAllowThreads(__tstate);
34227 if (PyErr_Occurred()) SWIG_fail;
34228 }
3ecece7e
RD
34229 {
34230 resultobj = wxPyMake_wxObject(result, (bool)0);
34231 }
1bd55598
RD
34232 return resultobj;
34233fail:
34234 return NULL;
d55e5bfc
RD
34235}
34236
34237
1bd55598
RD
34238SWIGINTERN PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34239 PyObject *resultobj = 0;
34240 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34241 wxImageList *result = 0 ;
34242 void *argp1 = 0 ;
34243 int res1 = 0 ;
34244 PyObject *swig_obj[1] ;
34245
34246 if (!args) SWIG_fail;
34247 swig_obj[0] = args;
34248 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34249 if (!SWIG_IsOK(res1)) {
34250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34251 }
34252 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34253 {
34254 PyThreadState* __tstate = wxPyBeginAllowThreads();
34255 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
34256 wxPyEndAllowThreads(__tstate);
34257 if (PyErr_Occurred()) SWIG_fail;
34258 }
3ecece7e
RD
34259 {
34260 resultobj = wxPyMake_wxObject(result, (bool)0);
34261 }
1bd55598
RD
34262 return resultobj;
34263fail:
34264 return NULL;
34265}
34266
34267
34268SWIGINTERN PyObject *_wrap_TreeCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34269 PyObject *resultobj = 0;
34270 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34271 wxImageList *arg2 = (wxImageList *) 0 ;
34272 void *argp1 = 0 ;
34273 int res1 = 0 ;
34274 void *argp2 = 0 ;
34275 int res2 = 0 ;
34276 PyObject * obj0 = 0 ;
34277 PyObject * obj1 = 0 ;
34278 char * kwnames[] = {
34279 (char *) "self",(char *) "imageList", NULL
34280 };
34281
34282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34284 if (!SWIG_IsOK(res1)) {
34285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34286 }
34287 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34288 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34289 if (!SWIG_IsOK(res2)) {
34290 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34291 }
34292 arg2 = reinterpret_cast< wxImageList * >(argp2);
34293 {
34294 PyThreadState* __tstate = wxPyBeginAllowThreads();
34295 (arg1)->SetImageList(arg2);
34296 wxPyEndAllowThreads(__tstate);
34297 if (PyErr_Occurred()) SWIG_fail;
34298 }
34299 resultobj = SWIG_Py_Void();
34300 return resultobj;
34301fail:
34302 return NULL;
34303}
34304
34305
34306SWIGINTERN PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34307 PyObject *resultobj = 0;
34308 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34309 wxImageList *arg2 = (wxImageList *) 0 ;
34310 void *argp1 = 0 ;
34311 int res1 = 0 ;
34312 void *argp2 = 0 ;
34313 int res2 = 0 ;
34314 PyObject * obj0 = 0 ;
34315 PyObject * obj1 = 0 ;
34316 char * kwnames[] = {
34317 (char *) "self",(char *) "imageList", NULL
34318 };
34319
34320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34322 if (!SWIG_IsOK(res1)) {
34323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34324 }
34325 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34326 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34327 if (!SWIG_IsOK(res2)) {
34328 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34329 }
34330 arg2 = reinterpret_cast< wxImageList * >(argp2);
34331 {
34332 PyThreadState* __tstate = wxPyBeginAllowThreads();
34333 (arg1)->SetStateImageList(arg2);
34334 wxPyEndAllowThreads(__tstate);
34335 if (PyErr_Occurred()) SWIG_fail;
34336 }
34337 resultobj = SWIG_Py_Void();
34338 return resultobj;
34339fail:
34340 return NULL;
34341}
34342
34343
34344SWIGINTERN PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34345 PyObject *resultobj = 0;
34346 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34347 wxImageList *arg2 = (wxImageList *) 0 ;
34348 void *argp1 = 0 ;
34349 int res1 = 0 ;
34350 int res2 = 0 ;
34351 PyObject * obj0 = 0 ;
34352 PyObject * obj1 = 0 ;
34353 char * kwnames[] = {
34354 (char *) "self",(char *) "imageList", NULL
34355 };
34356
34357 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34358 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34359 if (!SWIG_IsOK(res1)) {
34360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34361 }
34362 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34363 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34364 if (!SWIG_IsOK(res2)) {
34365 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34366 }
34367 {
34368 PyThreadState* __tstate = wxPyBeginAllowThreads();
34369 (arg1)->AssignImageList(arg2);
34370 wxPyEndAllowThreads(__tstate);
34371 if (PyErr_Occurred()) SWIG_fail;
34372 }
34373 resultobj = SWIG_Py_Void();
34374 return resultobj;
34375fail:
34376 return NULL;
34377}
34378
34379
34380SWIGINTERN PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34381 PyObject *resultobj = 0;
34382 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34383 wxImageList *arg2 = (wxImageList *) 0 ;
34384 void *argp1 = 0 ;
34385 int res1 = 0 ;
34386 int res2 = 0 ;
34387 PyObject * obj0 = 0 ;
34388 PyObject * obj1 = 0 ;
34389 char * kwnames[] = {
34390 (char *) "self",(char *) "imageList", NULL
34391 };
34392
34393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34395 if (!SWIG_IsOK(res1)) {
34396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34397 }
34398 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34399 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34400 if (!SWIG_IsOK(res2)) {
34401 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34402 }
34403 {
34404 PyThreadState* __tstate = wxPyBeginAllowThreads();
34405 (arg1)->AssignStateImageList(arg2);
34406 wxPyEndAllowThreads(__tstate);
34407 if (PyErr_Occurred()) SWIG_fail;
34408 }
34409 resultobj = SWIG_Py_Void();
34410 return resultobj;
34411fail:
34412 return NULL;
34413}
34414
34415
34416SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34417 PyObject *resultobj = 0;
34418 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34419 wxTreeItemId *arg2 = 0 ;
34420 wxString result;
34421 void *argp1 = 0 ;
34422 int res1 = 0 ;
34423 void *argp2 = 0 ;
34424 int res2 = 0 ;
34425 PyObject * obj0 = 0 ;
34426 PyObject * obj1 = 0 ;
34427 char * kwnames[] = {
34428 (char *) "self",(char *) "item", NULL
34429 };
34430
34431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
34432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34433 if (!SWIG_IsOK(res1)) {
34434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34435 }
34436 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34437 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34438 if (!SWIG_IsOK(res2)) {
34439 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34440 }
34441 if (!argp2) {
34442 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34443 }
34444 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34445 {
34446 PyThreadState* __tstate = wxPyBeginAllowThreads();
34447 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
34448 wxPyEndAllowThreads(__tstate);
34449 if (PyErr_Occurred()) SWIG_fail;
34450 }
34451 {
34452#if wxUSE_UNICODE
34453 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
34454#else
34455 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
34456#endif
34457 }
34458 return resultobj;
34459fail:
34460 return NULL;
34461}
34462
34463
34464SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34465 PyObject *resultobj = 0;
34466 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34467 wxTreeItemId *arg2 = 0 ;
34468 wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34469 int result;
34470 void *argp1 = 0 ;
34471 int res1 = 0 ;
34472 void *argp2 = 0 ;
34473 int res2 = 0 ;
34474 int val3 ;
34475 int ecode3 = 0 ;
34476 PyObject * obj0 = 0 ;
34477 PyObject * obj1 = 0 ;
34478 PyObject * obj2 = 0 ;
34479 char * kwnames[] = {
34480 (char *) "self",(char *) "item",(char *) "which", NULL
34481 };
34482
34483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34484 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34485 if (!SWIG_IsOK(res1)) {
34486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34487 }
34488 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34489 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34490 if (!SWIG_IsOK(res2)) {
34491 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34492 }
34493 if (!argp2) {
34494 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34495 }
34496 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34497 if (obj2) {
34498 ecode3 = SWIG_AsVal_int(obj2, &val3);
34499 if (!SWIG_IsOK(ecode3)) {
34500 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "3"" of type '" "wxTreeItemIcon""'");
34501 }
34502 arg3 = static_cast< wxTreeItemIcon >(val3);
34503 }
34504 {
34505 PyThreadState* __tstate = wxPyBeginAllowThreads();
34506 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,arg3);
34507 wxPyEndAllowThreads(__tstate);
34508 if (PyErr_Occurred()) SWIG_fail;
34509 }
34510 resultobj = SWIG_From_int(static_cast< int >(result));
34511 return resultobj;
34512fail:
34513 return NULL;
34514}
34515
34516
34517SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34518 PyObject *resultobj = 0;
34519 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34520 wxTreeItemId *arg2 = 0 ;
34521 wxPyTreeItemData *result = 0 ;
34522 void *argp1 = 0 ;
34523 int res1 = 0 ;
34524 void *argp2 = 0 ;
34525 int res2 = 0 ;
34526 PyObject * obj0 = 0 ;
34527 PyObject * obj1 = 0 ;
34528 char * kwnames[] = {
34529 (char *) "self",(char *) "item", NULL
34530 };
34531
34532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
34533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34534 if (!SWIG_IsOK(res1)) {
34535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34536 }
34537 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34538 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34539 if (!SWIG_IsOK(res2)) {
34540 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34541 }
34542 if (!argp2) {
34543 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34544 }
34545 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34546 {
34547 PyThreadState* __tstate = wxPyBeginAllowThreads();
34548 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
34549 wxPyEndAllowThreads(__tstate);
34550 if (PyErr_Occurred()) SWIG_fail;
34551 }
34552 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
34553 return resultobj;
34554fail:
34555 return NULL;
34556}
34557
34558
34559SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34560 PyObject *resultobj = 0;
34561 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34562 wxTreeItemId *arg2 = 0 ;
34563 PyObject *result = 0 ;
34564 void *argp1 = 0 ;
34565 int res1 = 0 ;
34566 void *argp2 = 0 ;
34567 int res2 = 0 ;
34568 PyObject * obj0 = 0 ;
34569 PyObject * obj1 = 0 ;
34570 char * kwnames[] = {
34571 (char *) "self",(char *) "item", NULL
34572 };
34573
34574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) SWIG_fail;
34575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34576 if (!SWIG_IsOK(res1)) {
34577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34578 }
34579 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34580 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34581 if (!SWIG_IsOK(res2)) {
34582 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34583 }
34584 if (!argp2) {
34585 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34586 }
34587 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34588 {
34589 PyThreadState* __tstate = wxPyBeginAllowThreads();
34590 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
34591 wxPyEndAllowThreads(__tstate);
34592 if (PyErr_Occurred()) SWIG_fail;
34593 }
34594 resultobj = result;
34595 return resultobj;
34596fail:
34597 return NULL;
34598}
34599
34600
34601SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34602 PyObject *resultobj = 0;
34603 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34604 wxTreeItemId *arg2 = 0 ;
34605 wxColour result;
34606 void *argp1 = 0 ;
34607 int res1 = 0 ;
34608 void *argp2 = 0 ;
34609 int res2 = 0 ;
34610 PyObject * obj0 = 0 ;
34611 PyObject * obj1 = 0 ;
34612 char * kwnames[] = {
34613 (char *) "self",(char *) "item", NULL
34614 };
34615
34616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
34617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34618 if (!SWIG_IsOK(res1)) {
34619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34620 }
34621 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34622 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34623 if (!SWIG_IsOK(res2)) {
34624 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34625 }
34626 if (!argp2) {
34627 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34628 }
34629 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34630 {
34631 PyThreadState* __tstate = wxPyBeginAllowThreads();
34632 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
34633 wxPyEndAllowThreads(__tstate);
34634 if (PyErr_Occurred()) SWIG_fail;
34635 }
34636 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34637 return resultobj;
34638fail:
34639 return NULL;
34640}
34641
34642
34643SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34644 PyObject *resultobj = 0;
34645 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34646 wxTreeItemId *arg2 = 0 ;
34647 wxColour result;
34648 void *argp1 = 0 ;
34649 int res1 = 0 ;
34650 void *argp2 = 0 ;
34651 int res2 = 0 ;
34652 PyObject * obj0 = 0 ;
34653 PyObject * obj1 = 0 ;
34654 char * kwnames[] = {
34655 (char *) "self",(char *) "item", NULL
34656 };
34657
34658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
34659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34660 if (!SWIG_IsOK(res1)) {
34661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34662 }
34663 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34664 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34665 if (!SWIG_IsOK(res2)) {
34666 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34667 }
34668 if (!argp2) {
34669 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34670 }
34671 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34672 {
34673 PyThreadState* __tstate = wxPyBeginAllowThreads();
34674 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
34675 wxPyEndAllowThreads(__tstate);
34676 if (PyErr_Occurred()) SWIG_fail;
34677 }
34678 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34679 return resultobj;
34680fail:
34681 return NULL;
34682}
34683
34684
34685SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34686 PyObject *resultobj = 0;
34687 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34688 wxTreeItemId *arg2 = 0 ;
34689 wxFont result;
34690 void *argp1 = 0 ;
34691 int res1 = 0 ;
34692 void *argp2 = 0 ;
34693 int res2 = 0 ;
34694 PyObject * obj0 = 0 ;
34695 PyObject * obj1 = 0 ;
34696 char * kwnames[] = {
34697 (char *) "self",(char *) "item", NULL
34698 };
34699
34700 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
34701 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34702 if (!SWIG_IsOK(res1)) {
34703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34704 }
34705 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34706 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34707 if (!SWIG_IsOK(res2)) {
34708 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34709 }
34710 if (!argp2) {
34711 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34712 }
34713 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34714 {
34715 PyThreadState* __tstate = wxPyBeginAllowThreads();
34716 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
34717 wxPyEndAllowThreads(__tstate);
34718 if (PyErr_Occurred()) SWIG_fail;
34719 }
34720 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
34721 return resultobj;
34722fail:
34723 return NULL;
34724}
34725
34726
34727SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34728 PyObject *resultobj = 0;
34729 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34730 wxTreeItemId *arg2 = 0 ;
34731 wxString *arg3 = 0 ;
34732 void *argp1 = 0 ;
34733 int res1 = 0 ;
34734 void *argp2 = 0 ;
34735 int res2 = 0 ;
34736 bool temp3 = false ;
34737 PyObject * obj0 = 0 ;
34738 PyObject * obj1 = 0 ;
34739 PyObject * obj2 = 0 ;
34740 char * kwnames[] = {
34741 (char *) "self",(char *) "item",(char *) "text", NULL
34742 };
34743
34744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34745 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34746 if (!SWIG_IsOK(res1)) {
34747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34748 }
34749 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34750 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34751 if (!SWIG_IsOK(res2)) {
34752 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34753 }
34754 if (!argp2) {
34755 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34756 }
34757 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34758 {
34759 arg3 = wxString_in_helper(obj2);
34760 if (arg3 == NULL) SWIG_fail;
34761 temp3 = true;
34762 }
34763 {
34764 PyThreadState* __tstate = wxPyBeginAllowThreads();
34765 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
34766 wxPyEndAllowThreads(__tstate);
34767 if (PyErr_Occurred()) SWIG_fail;
34768 }
34769 resultobj = SWIG_Py_Void();
34770 {
34771 if (temp3)
34772 delete arg3;
34773 }
34774 return resultobj;
34775fail:
34776 {
34777 if (temp3)
34778 delete arg3;
34779 }
34780 return NULL;
34781}
34782
34783
34784SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34785 PyObject *resultobj = 0;
34786 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34787 wxTreeItemId *arg2 = 0 ;
34788 int arg3 ;
34789 wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34790 void *argp1 = 0 ;
34791 int res1 = 0 ;
34792 void *argp2 = 0 ;
34793 int res2 = 0 ;
34794 int val3 ;
34795 int ecode3 = 0 ;
34796 int val4 ;
34797 int ecode4 = 0 ;
34798 PyObject * obj0 = 0 ;
34799 PyObject * obj1 = 0 ;
34800 PyObject * obj2 = 0 ;
34801 PyObject * obj3 = 0 ;
34802 char * kwnames[] = {
34803 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
34804 };
34805
34806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34808 if (!SWIG_IsOK(res1)) {
34809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34810 }
34811 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34812 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34813 if (!SWIG_IsOK(res2)) {
34814 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34815 }
34816 if (!argp2) {
34817 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34818 }
34819 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34820 ecode3 = SWIG_AsVal_int(obj2, &val3);
34821 if (!SWIG_IsOK(ecode3)) {
34822 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
34823 }
34824 arg3 = static_cast< int >(val3);
34825 if (obj3) {
34826 ecode4 = SWIG_AsVal_int(obj3, &val4);
34827 if (!SWIG_IsOK(ecode4)) {
34828 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "4"" of type '" "wxTreeItemIcon""'");
34829 }
34830 arg4 = static_cast< wxTreeItemIcon >(val4);
34831 }
34832 {
34833 PyThreadState* __tstate = wxPyBeginAllowThreads();
34834 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,arg4);
34835 wxPyEndAllowThreads(__tstate);
34836 if (PyErr_Occurred()) SWIG_fail;
34837 }
34838 resultobj = SWIG_Py_Void();
34839 return resultobj;
34840fail:
34841 return NULL;
34842}
34843
34844
34845SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34846 PyObject *resultobj = 0;
34847 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34848 wxTreeItemId *arg2 = 0 ;
34849 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
34850 void *argp1 = 0 ;
34851 int res1 = 0 ;
34852 void *argp2 = 0 ;
34853 int res2 = 0 ;
34854 int res3 = 0 ;
34855 PyObject * obj0 = 0 ;
34856 PyObject * obj1 = 0 ;
34857 PyObject * obj2 = 0 ;
34858 char * kwnames[] = {
34859 (char *) "self",(char *) "item",(char *) "data", NULL
34860 };
34861
34862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34864 if (!SWIG_IsOK(res1)) {
34865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34866 }
34867 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34868 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34869 if (!SWIG_IsOK(res2)) {
34870 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34871 }
34872 if (!argp2) {
34873 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34874 }
34875 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34876 res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
34877 if (!SWIG_IsOK(res3)) {
34878 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemData" "', expected argument " "3"" of type '" "wxPyTreeItemData *""'");
34879 }
34880 {
34881 PyThreadState* __tstate = wxPyBeginAllowThreads();
34882 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
34883 wxPyEndAllowThreads(__tstate);
34884 if (PyErr_Occurred()) SWIG_fail;
34885 }
34886 resultobj = SWIG_Py_Void();
34887 return resultobj;
34888fail:
34889 return NULL;
34890}
34891
34892
34893SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34894 PyObject *resultobj = 0;
34895 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34896 wxTreeItemId *arg2 = 0 ;
34897 PyObject *arg3 = (PyObject *) 0 ;
34898 void *argp1 = 0 ;
34899 int res1 = 0 ;
34900 void *argp2 = 0 ;
34901 int res2 = 0 ;
34902 PyObject * obj0 = 0 ;
34903 PyObject * obj1 = 0 ;
34904 PyObject * obj2 = 0 ;
34905 char * kwnames[] = {
34906 (char *) "self",(char *) "item",(char *) "obj", NULL
34907 };
34908
34909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34911 if (!SWIG_IsOK(res1)) {
34912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34913 }
34914 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34915 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34916 if (!SWIG_IsOK(res2)) {
34917 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34918 }
34919 if (!argp2) {
34920 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34921 }
34922 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34923 arg3 = obj2;
34924 {
34925 PyThreadState* __tstate = wxPyBeginAllowThreads();
34926 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
34927 wxPyEndAllowThreads(__tstate);
34928 if (PyErr_Occurred()) SWIG_fail;
34929 }
34930 resultobj = SWIG_Py_Void();
34931 return resultobj;
34932fail:
34933 return NULL;
34934}
34935
34936
34937SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34938 PyObject *resultobj = 0;
34939 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34940 wxTreeItemId *arg2 = 0 ;
34941 bool arg3 = (bool) true ;
34942 void *argp1 = 0 ;
34943 int res1 = 0 ;
34944 void *argp2 = 0 ;
34945 int res2 = 0 ;
34946 bool val3 ;
34947 int ecode3 = 0 ;
34948 PyObject * obj0 = 0 ;
34949 PyObject * obj1 = 0 ;
34950 PyObject * obj2 = 0 ;
34951 char * kwnames[] = {
34952 (char *) "self",(char *) "item",(char *) "has", NULL
34953 };
34954
34955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34957 if (!SWIG_IsOK(res1)) {
34958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34959 }
34960 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34961 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34962 if (!SWIG_IsOK(res2)) {
34963 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34964 }
34965 if (!argp2) {
34966 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34967 }
34968 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34969 if (obj2) {
34970 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34971 if (!SWIG_IsOK(ecode3)) {
34972 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "3"" of type '" "bool""'");
34973 }
34974 arg3 = static_cast< bool >(val3);
34975 }
34976 {
34977 PyThreadState* __tstate = wxPyBeginAllowThreads();
34978 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
34979 wxPyEndAllowThreads(__tstate);
34980 if (PyErr_Occurred()) SWIG_fail;
34981 }
34982 resultobj = SWIG_Py_Void();
34983 return resultobj;
34984fail:
34985 return NULL;
34986}
34987
34988
34989SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34990 PyObject *resultobj = 0;
34991 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34992 wxTreeItemId *arg2 = 0 ;
34993 bool arg3 = (bool) true ;
34994 void *argp1 = 0 ;
34995 int res1 = 0 ;
34996 void *argp2 = 0 ;
34997 int res2 = 0 ;
34998 bool val3 ;
34999 int ecode3 = 0 ;
35000 PyObject * obj0 = 0 ;
35001 PyObject * obj1 = 0 ;
35002 PyObject * obj2 = 0 ;
35003 char * kwnames[] = {
35004 (char *) "self",(char *) "item",(char *) "bold", NULL
35005 };
35006
35007 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35008 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35009 if (!SWIG_IsOK(res1)) {
35010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35011 }
35012 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35013 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35014 if (!SWIG_IsOK(res2)) {
35015 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35016 }
35017 if (!argp2) {
35018 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35019 }
35020 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35021 if (obj2) {
35022 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35023 if (!SWIG_IsOK(ecode3)) {
35024 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "3"" of type '" "bool""'");
35025 }
35026 arg3 = static_cast< bool >(val3);
35027 }
35028 {
35029 PyThreadState* __tstate = wxPyBeginAllowThreads();
35030 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
35031 wxPyEndAllowThreads(__tstate);
35032 if (PyErr_Occurred()) SWIG_fail;
35033 }
35034 resultobj = SWIG_Py_Void();
35035 return resultobj;
35036fail:
35037 return NULL;
35038}
35039
35040
35041SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35042 PyObject *resultobj = 0;
35043 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35044 wxTreeItemId *arg2 = 0 ;
35045 bool arg3 = (bool) true ;
35046 void *argp1 = 0 ;
35047 int res1 = 0 ;
35048 void *argp2 = 0 ;
35049 int res2 = 0 ;
35050 bool val3 ;
35051 int ecode3 = 0 ;
35052 PyObject * obj0 = 0 ;
35053 PyObject * obj1 = 0 ;
35054 PyObject * obj2 = 0 ;
35055 char * kwnames[] = {
35056 (char *) "self",(char *) "item",(char *) "highlight", NULL
35057 };
35058
35059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35061 if (!SWIG_IsOK(res1)) {
35062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35063 }
35064 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35065 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35066 if (!SWIG_IsOK(res2)) {
35067 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35068 }
35069 if (!argp2) {
35070 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35071 }
35072 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35073 if (obj2) {
35074 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35075 if (!SWIG_IsOK(ecode3)) {
35076 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "3"" of type '" "bool""'");
35077 }
35078 arg3 = static_cast< bool >(val3);
35079 }
35080 {
35081 PyThreadState* __tstate = wxPyBeginAllowThreads();
35082 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
35083 wxPyEndAllowThreads(__tstate);
35084 if (PyErr_Occurred()) SWIG_fail;
35085 }
35086 resultobj = SWIG_Py_Void();
35087 return resultobj;
35088fail:
35089 return NULL;
35090}
35091
35092
35093SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35094 PyObject *resultobj = 0;
35095 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35096 wxTreeItemId *arg2 = 0 ;
35097 wxColour *arg3 = 0 ;
35098 void *argp1 = 0 ;
35099 int res1 = 0 ;
35100 void *argp2 = 0 ;
35101 int res2 = 0 ;
35102 wxColour temp3 ;
35103 PyObject * obj0 = 0 ;
35104 PyObject * obj1 = 0 ;
35105 PyObject * obj2 = 0 ;
35106 char * kwnames[] = {
35107 (char *) "self",(char *) "item",(char *) "col", NULL
35108 };
35109
35110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35111 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35112 if (!SWIG_IsOK(res1)) {
35113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35114 }
35115 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35116 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35117 if (!SWIG_IsOK(res2)) {
35118 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35119 }
35120 if (!argp2) {
35121 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35122 }
35123 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35124 {
35125 arg3 = &temp3;
35126 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35127 }
35128 {
35129 PyThreadState* __tstate = wxPyBeginAllowThreads();
35130 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
35131 wxPyEndAllowThreads(__tstate);
35132 if (PyErr_Occurred()) SWIG_fail;
35133 }
35134 resultobj = SWIG_Py_Void();
35135 return resultobj;
35136fail:
35137 return NULL;
35138}
35139
35140
35141SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35142 PyObject *resultobj = 0;
35143 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35144 wxTreeItemId *arg2 = 0 ;
35145 wxColour *arg3 = 0 ;
35146 void *argp1 = 0 ;
35147 int res1 = 0 ;
35148 void *argp2 = 0 ;
35149 int res2 = 0 ;
35150 wxColour temp3 ;
35151 PyObject * obj0 = 0 ;
35152 PyObject * obj1 = 0 ;
35153 PyObject * obj2 = 0 ;
35154 char * kwnames[] = {
35155 (char *) "self",(char *) "item",(char *) "col", NULL
35156 };
35157
35158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35160 if (!SWIG_IsOK(res1)) {
35161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35162 }
35163 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35164 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35165 if (!SWIG_IsOK(res2)) {
35166 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35167 }
35168 if (!argp2) {
35169 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35170 }
35171 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35172 {
35173 arg3 = &temp3;
35174 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35175 }
35176 {
35177 PyThreadState* __tstate = wxPyBeginAllowThreads();
35178 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
35179 wxPyEndAllowThreads(__tstate);
35180 if (PyErr_Occurred()) SWIG_fail;
35181 }
35182 resultobj = SWIG_Py_Void();
35183 return resultobj;
35184fail:
35185 return NULL;
35186}
35187
35188
35189SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35190 PyObject *resultobj = 0;
35191 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35192 wxTreeItemId *arg2 = 0 ;
35193 wxFont *arg3 = 0 ;
35194 void *argp1 = 0 ;
35195 int res1 = 0 ;
35196 void *argp2 = 0 ;
35197 int res2 = 0 ;
35198 void *argp3 = 0 ;
35199 int res3 = 0 ;
35200 PyObject * obj0 = 0 ;
35201 PyObject * obj1 = 0 ;
35202 PyObject * obj2 = 0 ;
35203 char * kwnames[] = {
35204 (char *) "self",(char *) "item",(char *) "font", NULL
35205 };
35206
35207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35208 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35209 if (!SWIG_IsOK(res1)) {
35210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35211 }
35212 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35213 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35214 if (!SWIG_IsOK(res2)) {
35215 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35216 }
35217 if (!argp2) {
35218 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35219 }
35220 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35221 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
35222 if (!SWIG_IsOK(res3)) {
35223 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35224 }
35225 if (!argp3) {
35226 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35227 }
35228 arg3 = reinterpret_cast< wxFont * >(argp3);
35229 {
35230 PyThreadState* __tstate = wxPyBeginAllowThreads();
35231 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
35232 wxPyEndAllowThreads(__tstate);
35233 if (PyErr_Occurred()) SWIG_fail;
35234 }
35235 resultobj = SWIG_Py_Void();
35236 return resultobj;
35237fail:
35238 return NULL;
35239}
35240
35241
35242SWIGINTERN PyObject *_wrap_TreeCtrl_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35243 PyObject *resultobj = 0;
35244 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35245 wxTreeItemId *arg2 = 0 ;
35246 bool result;
35247 void *argp1 = 0 ;
35248 int res1 = 0 ;
35249 void *argp2 = 0 ;
35250 int res2 = 0 ;
35251 PyObject * obj0 = 0 ;
35252 PyObject * obj1 = 0 ;
35253 char * kwnames[] = {
35254 (char *) "self",(char *) "item", NULL
35255 };
35256
35257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35259 if (!SWIG_IsOK(res1)) {
35260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35261 }
35262 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35263 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35264 if (!SWIG_IsOK(res2)) {
35265 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35266 }
35267 if (!argp2) {
35268 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35269 }
35270 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35271 {
35272 PyThreadState* __tstate = wxPyBeginAllowThreads();
35273 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
35274 wxPyEndAllowThreads(__tstate);
35275 if (PyErr_Occurred()) SWIG_fail;
35276 }
35277 {
35278 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35279 }
35280 return resultobj;
35281fail:
35282 return NULL;
35283}
35284
35285
35286SWIGINTERN PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35287 PyObject *resultobj = 0;
35288 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35289 wxTreeItemId *arg2 = 0 ;
35290 bool result;
35291 void *argp1 = 0 ;
35292 int res1 = 0 ;
35293 void *argp2 = 0 ;
35294 int res2 = 0 ;
35295 PyObject * obj0 = 0 ;
35296 PyObject * obj1 = 0 ;
35297 char * kwnames[] = {
35298 (char *) "self",(char *) "item", NULL
35299 };
35300
35301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) SWIG_fail;
35302 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35303 if (!SWIG_IsOK(res1)) {
35304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35305 }
35306 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35307 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35308 if (!SWIG_IsOK(res2)) {
35309 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35310 }
35311 if (!argp2) {
35312 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35313 }
35314 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35315 {
35316 PyThreadState* __tstate = wxPyBeginAllowThreads();
35317 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
35318 wxPyEndAllowThreads(__tstate);
35319 if (PyErr_Occurred()) SWIG_fail;
35320 }
35321 {
35322 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35323 }
35324 return resultobj;
35325fail:
35326 return NULL;
35327}
35328
35329
35330SWIGINTERN PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35331 PyObject *resultobj = 0;
35332 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35333 wxTreeItemId *arg2 = 0 ;
35334 bool result;
35335 void *argp1 = 0 ;
35336 int res1 = 0 ;
35337 void *argp2 = 0 ;
35338 int res2 = 0 ;
35339 PyObject * obj0 = 0 ;
35340 PyObject * obj1 = 0 ;
35341 char * kwnames[] = {
35342 (char *) "self",(char *) "item", NULL
35343 };
35344
35345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
35346 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35347 if (!SWIG_IsOK(res1)) {
35348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35349 }
35350 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35351 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35352 if (!SWIG_IsOK(res2)) {
35353 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35354 }
35355 if (!argp2) {
35356 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35357 }
35358 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35359 {
35360 PyThreadState* __tstate = wxPyBeginAllowThreads();
35361 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
35362 wxPyEndAllowThreads(__tstate);
35363 if (PyErr_Occurred()) SWIG_fail;
35364 }
35365 {
35366 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35367 }
35368 return resultobj;
35369fail:
35370 return NULL;
35371}
35372
35373
35374SWIGINTERN PyObject *_wrap_TreeCtrl_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35375 PyObject *resultobj = 0;
35376 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35377 wxTreeItemId *arg2 = 0 ;
35378 bool result;
35379 void *argp1 = 0 ;
35380 int res1 = 0 ;
35381 void *argp2 = 0 ;
35382 int res2 = 0 ;
35383 PyObject * obj0 = 0 ;
35384 PyObject * obj1 = 0 ;
35385 char * kwnames[] = {
35386 (char *) "self",(char *) "item", NULL
35387 };
35388
35389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
35390 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35391 if (!SWIG_IsOK(res1)) {
35392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsSelected" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35393 }
35394 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35395 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35396 if (!SWIG_IsOK(res2)) {
35397 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35398 }
35399 if (!argp2) {
35400 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35401 }
35402 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35403 {
35404 PyThreadState* __tstate = wxPyBeginAllowThreads();
35405 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
35406 wxPyEndAllowThreads(__tstate);
35407 if (PyErr_Occurred()) SWIG_fail;
35408 }
35409 {
35410 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35411 }
35412 return resultobj;
35413fail:
35414 return NULL;
35415}
35416
35417
35418SWIGINTERN PyObject *_wrap_TreeCtrl_IsBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35419 PyObject *resultobj = 0;
35420 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35421 wxTreeItemId *arg2 = 0 ;
35422 bool result;
35423 void *argp1 = 0 ;
35424 int res1 = 0 ;
35425 void *argp2 = 0 ;
35426 int res2 = 0 ;
35427 PyObject * obj0 = 0 ;
35428 PyObject * obj1 = 0 ;
35429 char * kwnames[] = {
35430 (char *) "self",(char *) "item", NULL
35431 };
35432
35433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) SWIG_fail;
35434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35435 if (!SWIG_IsOK(res1)) {
35436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35437 }
35438 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35439 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35440 if (!SWIG_IsOK(res2)) {
35441 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35442 }
35443 if (!argp2) {
35444 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35445 }
35446 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35447 {
35448 PyThreadState* __tstate = wxPyBeginAllowThreads();
35449 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
35450 wxPyEndAllowThreads(__tstate);
35451 if (PyErr_Occurred()) SWIG_fail;
35452 }
35453 {
35454 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35455 }
35456 return resultobj;
35457fail:
35458 return NULL;
35459}
35460
35461
35462SWIGINTERN PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35463 PyObject *resultobj = 0;
35464 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35465 wxTreeItemId *arg2 = 0 ;
35466 bool arg3 = (bool) true ;
35467 size_t result;
35468 void *argp1 = 0 ;
35469 int res1 = 0 ;
35470 void *argp2 = 0 ;
35471 int res2 = 0 ;
35472 bool val3 ;
35473 int ecode3 = 0 ;
35474 PyObject * obj0 = 0 ;
35475 PyObject * obj1 = 0 ;
35476 PyObject * obj2 = 0 ;
35477 char * kwnames[] = {
35478 (char *) "self",(char *) "item",(char *) "recursively", NULL
35479 };
35480
35481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35482 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35483 if (!SWIG_IsOK(res1)) {
35484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35485 }
35486 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35487 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35488 if (!SWIG_IsOK(res2)) {
35489 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35490 }
35491 if (!argp2) {
35492 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35493 }
35494 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35495 if (obj2) {
35496 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35497 if (!SWIG_IsOK(ecode3)) {
35498 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "3"" of type '" "bool""'");
35499 }
35500 arg3 = static_cast< bool >(val3);
35501 }
35502 {
35503 PyThreadState* __tstate = wxPyBeginAllowThreads();
35504 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
35505 wxPyEndAllowThreads(__tstate);
35506 if (PyErr_Occurred()) SWIG_fail;
35507 }
35508 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
35509 return resultobj;
35510fail:
35511 return NULL;
d55e5bfc
RD
35512}
35513
35514
1bd55598
RD
35515SWIGINTERN PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35516 PyObject *resultobj = 0;
35517 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35518 wxTreeItemId result;
35519 void *argp1 = 0 ;
35520 int res1 = 0 ;
35521 PyObject *swig_obj[1] ;
35522
35523 if (!args) SWIG_fail;
35524 swig_obj[0] = args;
35525 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35526 if (!SWIG_IsOK(res1)) {
35527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetRootItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35528 }
35529 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35530 {
35531 PyThreadState* __tstate = wxPyBeginAllowThreads();
35532 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
35533 wxPyEndAllowThreads(__tstate);
35534 if (PyErr_Occurred()) SWIG_fail;
35535 }
35536 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35537 return resultobj;
35538fail:
35539 return NULL;
d55e5bfc
RD
35540}
35541
35542
1bd55598
RD
35543SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35544 PyObject *resultobj = 0;
35545 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35546 wxTreeItemId result;
35547 void *argp1 = 0 ;
35548 int res1 = 0 ;
35549 PyObject *swig_obj[1] ;
35550
35551 if (!args) SWIG_fail;
35552 swig_obj[0] = args;
35553 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35554 if (!SWIG_IsOK(res1)) {
35555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35556 }
35557 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35558 {
35559 PyThreadState* __tstate = wxPyBeginAllowThreads();
35560 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
35561 wxPyEndAllowThreads(__tstate);
35562 if (PyErr_Occurred()) SWIG_fail;
35563 }
35564 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35565 return resultobj;
35566fail:
35567 return NULL;
d55e5bfc
RD
35568}
35569
35570
1bd55598
RD
35571SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35572 PyObject *resultobj = 0;
35573 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35574 PyObject *result = 0 ;
35575 void *argp1 = 0 ;
35576 int res1 = 0 ;
35577 PyObject *swig_obj[1] ;
35578
35579 if (!args) SWIG_fail;
35580 swig_obj[0] = args;
35581 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35582 if (!SWIG_IsOK(res1)) {
35583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelections" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35584 }
35585 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35586 {
35587 PyThreadState* __tstate = wxPyBeginAllowThreads();
35588 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
35589 wxPyEndAllowThreads(__tstate);
35590 if (PyErr_Occurred()) SWIG_fail;
35591 }
35592 resultobj = result;
35593 return resultobj;
35594fail:
35595 return NULL;
35596}
35597
35598
35599SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35600 PyObject *resultobj = 0;
35601 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35602 wxTreeItemId *arg2 = 0 ;
35603 wxTreeItemId result;
35604 void *argp1 = 0 ;
35605 int res1 = 0 ;
35606 void *argp2 = 0 ;
35607 int res2 = 0 ;
35608 PyObject * obj0 = 0 ;
35609 PyObject * obj1 = 0 ;
35610 char * kwnames[] = {
35611 (char *) "self",(char *) "item", NULL
35612 };
35613
35614 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) SWIG_fail;
35615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35616 if (!SWIG_IsOK(res1)) {
35617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35618 }
35619 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35620 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35621 if (!SWIG_IsOK(res2)) {
35622 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35623 }
35624 if (!argp2) {
35625 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35626 }
35627 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35628 {
35629 PyThreadState* __tstate = wxPyBeginAllowThreads();
35630 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
35631 wxPyEndAllowThreads(__tstate);
35632 if (PyErr_Occurred()) SWIG_fail;
35633 }
35634 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35635 return resultobj;
35636fail:
35637 return NULL;
35638}
35639
35640
35641SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35642 PyObject *resultobj = 0;
35643 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35644 wxTreeItemId *arg2 = 0 ;
35645 PyObject *result = 0 ;
35646 void *argp1 = 0 ;
35647 int res1 = 0 ;
35648 void *argp2 = 0 ;
35649 int res2 = 0 ;
35650 PyObject * obj0 = 0 ;
35651 PyObject * obj1 = 0 ;
35652 char * kwnames[] = {
35653 (char *) "self",(char *) "item", NULL
35654 };
35655
35656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) SWIG_fail;
35657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35658 if (!SWIG_IsOK(res1)) {
35659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35660 }
35661 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35662 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35663 if (!SWIG_IsOK(res2)) {
35664 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35665 }
35666 if (!argp2) {
35667 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35668 }
35669 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35670 {
35671 PyThreadState* __tstate = wxPyBeginAllowThreads();
35672 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
35673 wxPyEndAllowThreads(__tstate);
35674 if (PyErr_Occurred()) SWIG_fail;
35675 }
35676 resultobj = result;
35677 return resultobj;
35678fail:
35679 return NULL;
35680}
35681
35682
35683SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35684 PyObject *resultobj = 0;
35685 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35686 wxTreeItemId *arg2 = 0 ;
35687 void *arg3 = (void *) 0 ;
35688 PyObject *result = 0 ;
35689 void *argp1 = 0 ;
35690 int res1 = 0 ;
35691 void *argp2 = 0 ;
35692 int res2 = 0 ;
35693 int res3 ;
35694 PyObject * obj0 = 0 ;
35695 PyObject * obj1 = 0 ;
35696 PyObject * obj2 = 0 ;
35697 char * kwnames[] = {
35698 (char *) "self",(char *) "item",(char *) "cookie", NULL
35699 };
35700
35701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35703 if (!SWIG_IsOK(res1)) {
35704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35705 }
35706 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35707 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35708 if (!SWIG_IsOK(res2)) {
35709 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35710 }
35711 if (!argp2) {
35712 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35713 }
35714 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35715 res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
35716 if (!SWIG_IsOK(res3)) {
35717 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "3"" of type '" "void *""'");
35718 }
35719 {
35720 PyThreadState* __tstate = wxPyBeginAllowThreads();
35721 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
35722 wxPyEndAllowThreads(__tstate);
35723 if (PyErr_Occurred()) SWIG_fail;
35724 }
35725 resultobj = result;
35726 return resultobj;
35727fail:
35728 return NULL;
35729}
35730
35731
35732SWIGINTERN PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35733 PyObject *resultobj = 0;
35734 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35735 wxTreeItemId *arg2 = 0 ;
35736 wxTreeItemId result;
35737 void *argp1 = 0 ;
35738 int res1 = 0 ;
35739 void *argp2 = 0 ;
35740 int res2 = 0 ;
35741 PyObject * obj0 = 0 ;
35742 PyObject * obj1 = 0 ;
35743 char * kwnames[] = {
35744 (char *) "self",(char *) "item", NULL
35745 };
35746
35747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) SWIG_fail;
35748 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35749 if (!SWIG_IsOK(res1)) {
35750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35751 }
35752 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35753 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35754 if (!SWIG_IsOK(res2)) {
35755 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35756 }
35757 if (!argp2) {
35758 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35759 }
35760 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35761 {
35762 PyThreadState* __tstate = wxPyBeginAllowThreads();
35763 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
35764 wxPyEndAllowThreads(__tstate);
35765 if (PyErr_Occurred()) SWIG_fail;
35766 }
35767 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35768 return resultobj;
35769fail:
35770 return NULL;
35771}
35772
35773
35774SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35775 PyObject *resultobj = 0;
35776 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35777 wxTreeItemId *arg2 = 0 ;
35778 wxTreeItemId result;
35779 void *argp1 = 0 ;
35780 int res1 = 0 ;
35781 void *argp2 = 0 ;
35782 int res2 = 0 ;
35783 PyObject * obj0 = 0 ;
35784 PyObject * obj1 = 0 ;
35785 char * kwnames[] = {
35786 (char *) "self",(char *) "item", NULL
35787 };
35788
35789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35791 if (!SWIG_IsOK(res1)) {
35792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35793 }
35794 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35795 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35796 if (!SWIG_IsOK(res2)) {
35797 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35798 }
35799 if (!argp2) {
35800 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35801 }
35802 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35803 {
35804 PyThreadState* __tstate = wxPyBeginAllowThreads();
35805 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
35806 wxPyEndAllowThreads(__tstate);
35807 if (PyErr_Occurred()) SWIG_fail;
35808 }
35809 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35810 return resultobj;
35811fail:
35812 return NULL;
35813}
35814
35815
35816SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35817 PyObject *resultobj = 0;
35818 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35819 wxTreeItemId *arg2 = 0 ;
35820 wxTreeItemId result;
35821 void *argp1 = 0 ;
35822 int res1 = 0 ;
35823 void *argp2 = 0 ;
35824 int res2 = 0 ;
35825 PyObject * obj0 = 0 ;
35826 PyObject * obj1 = 0 ;
35827 char * kwnames[] = {
35828 (char *) "self",(char *) "item", NULL
35829 };
35830
35831 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35832 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35833 if (!SWIG_IsOK(res1)) {
35834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35835 }
35836 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35837 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35838 if (!SWIG_IsOK(res2)) {
35839 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35840 }
35841 if (!argp2) {
35842 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35843 }
35844 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35845 {
35846 PyThreadState* __tstate = wxPyBeginAllowThreads();
35847 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
35848 wxPyEndAllowThreads(__tstate);
35849 if (PyErr_Occurred()) SWIG_fail;
35850 }
35851 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35852 return resultobj;
35853fail:
35854 return NULL;
d55e5bfc
RD
35855}
35856
35857
1bd55598
RD
35858SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35859 PyObject *resultobj = 0;
35860 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35861 wxTreeItemId result;
35862 void *argp1 = 0 ;
35863 int res1 = 0 ;
35864 PyObject *swig_obj[1] ;
35865
35866 if (!args) SWIG_fail;
35867 swig_obj[0] = args;
35868 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35869 if (!SWIG_IsOK(res1)) {
35870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstVisibleItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35871 }
35872 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35873 {
35874 PyThreadState* __tstate = wxPyBeginAllowThreads();
35875 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
35876 wxPyEndAllowThreads(__tstate);
35877 if (PyErr_Occurred()) SWIG_fail;
35878 }
35879 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35880 return resultobj;
35881fail:
35882 return NULL;
35883}
35884
35885
35886SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35887 PyObject *resultobj = 0;
35888 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35889 wxTreeItemId *arg2 = 0 ;
35890 wxTreeItemId result;
35891 void *argp1 = 0 ;
35892 int res1 = 0 ;
35893 void *argp2 = 0 ;
35894 int res2 = 0 ;
35895 PyObject * obj0 = 0 ;
35896 PyObject * obj1 = 0 ;
35897 char * kwnames[] = {
35898 (char *) "self",(char *) "item", NULL
35899 };
35900
35901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35902 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35903 if (!SWIG_IsOK(res1)) {
35904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35905 }
35906 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35907 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35908 if (!SWIG_IsOK(res2)) {
35909 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35910 }
35911 if (!argp2) {
35912 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35913 }
35914 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35915 {
35916 PyThreadState* __tstate = wxPyBeginAllowThreads();
35917 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
35918 wxPyEndAllowThreads(__tstate);
35919 if (PyErr_Occurred()) SWIG_fail;
35920 }
35921 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35922 return resultobj;
35923fail:
35924 return NULL;
35925}
35926
35927
35928SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35929 PyObject *resultobj = 0;
35930 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35931 wxTreeItemId *arg2 = 0 ;
35932 wxTreeItemId result;
35933 void *argp1 = 0 ;
35934 int res1 = 0 ;
35935 void *argp2 = 0 ;
35936 int res2 = 0 ;
35937 PyObject * obj0 = 0 ;
35938 PyObject * obj1 = 0 ;
35939 char * kwnames[] = {
35940 (char *) "self",(char *) "item", NULL
35941 };
35942
35943 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35944 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35945 if (!SWIG_IsOK(res1)) {
35946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35947 }
35948 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35949 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35950 if (!SWIG_IsOK(res2)) {
35951 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35952 }
35953 if (!argp2) {
35954 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35955 }
35956 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35957 {
35958 PyThreadState* __tstate = wxPyBeginAllowThreads();
35959 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
35960 wxPyEndAllowThreads(__tstate);
35961 if (PyErr_Occurred()) SWIG_fail;
35962 }
35963 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35964 return resultobj;
35965fail:
35966 return NULL;
35967}
35968
35969
35970SWIGINTERN PyObject *_wrap_TreeCtrl_AddRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35971 PyObject *resultobj = 0;
35972 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35973 wxString *arg2 = 0 ;
35974 int arg3 = (int) -1 ;
35975 int arg4 = (int) -1 ;
35976 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
35977 wxTreeItemId result;
35978 void *argp1 = 0 ;
35979 int res1 = 0 ;
35980 bool temp2 = false ;
35981 int val3 ;
35982 int ecode3 = 0 ;
35983 int val4 ;
35984 int ecode4 = 0 ;
35985 int res5 = 0 ;
35986 PyObject * obj0 = 0 ;
35987 PyObject * obj1 = 0 ;
35988 PyObject * obj2 = 0 ;
35989 PyObject * obj3 = 0 ;
35990 PyObject * obj4 = 0 ;
35991 char * kwnames[] = {
35992 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35993 };
35994
35995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35997 if (!SWIG_IsOK(res1)) {
35998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AddRoot" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35999 }
36000 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36001 {
36002 arg2 = wxString_in_helper(obj1);
36003 if (arg2 == NULL) SWIG_fail;
36004 temp2 = true;
36005 }
36006 if (obj2) {
36007 ecode3 = SWIG_AsVal_int(obj2, &val3);
36008 if (!SWIG_IsOK(ecode3)) {
36009 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_AddRoot" "', expected argument " "3"" of type '" "int""'");
36010 }
36011 arg3 = static_cast< int >(val3);
36012 }
36013 if (obj3) {
36014 ecode4 = SWIG_AsVal_int(obj3, &val4);
36015 if (!SWIG_IsOK(ecode4)) {
36016 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AddRoot" "', expected argument " "4"" of type '" "int""'");
36017 }
36018 arg4 = static_cast< int >(val4);
36019 }
36020 if (obj4) {
36021 res5 = SWIG_ConvertPtr(obj4, SWIG_as_voidptrptr(&arg5), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36022 if (!SWIG_IsOK(res5)) {
36023 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "TreeCtrl_AddRoot" "', expected argument " "5"" of type '" "wxPyTreeItemData *""'");
36ed4f51 36024 }
1bd55598
RD
36025 }
36026 {
36027 PyThreadState* __tstate = wxPyBeginAllowThreads();
36028 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
36029 wxPyEndAllowThreads(__tstate);
36030 if (PyErr_Occurred()) SWIG_fail;
36031 }
36032 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36033 {
36034 if (temp2)
36035 delete arg2;
36036 }
36037 return resultobj;
36038fail:
36039 {
36040 if (temp2)
36041 delete arg2;
36042 }
36043 return NULL;
36044}
36045
36046
36047SWIGINTERN PyObject *_wrap_TreeCtrl_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36048 PyObject *resultobj = 0;
36049 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36050 wxTreeItemId *arg2 = 0 ;
36051 wxString *arg3 = 0 ;
36052 int arg4 = (int) -1 ;
36053 int arg5 = (int) -1 ;
36054 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
36055 wxTreeItemId result;
36056 void *argp1 = 0 ;
36057 int res1 = 0 ;
36058 void *argp2 = 0 ;
36059 int res2 = 0 ;
36060 bool temp3 = false ;
36061 int val4 ;
36062 int ecode4 = 0 ;
36063 int val5 ;
36064 int ecode5 = 0 ;
36065 int res6 = 0 ;
36066 PyObject * obj0 = 0 ;
36067 PyObject * obj1 = 0 ;
36068 PyObject * obj2 = 0 ;
36069 PyObject * obj3 = 0 ;
36070 PyObject * obj4 = 0 ;
36071 PyObject * obj5 = 0 ;
36072 char * kwnames[] = {
36073 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36074 };
36075
36076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36078 if (!SWIG_IsOK(res1)) {
36079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_PrependItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36080 }
36081 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36082 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36083 if (!SWIG_IsOK(res2)) {
36084 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36085 }
36086 if (!argp2) {
36087 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36088 }
36089 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36090 {
36091 arg3 = wxString_in_helper(obj2);
36092 if (arg3 == NULL) SWIG_fail;
36093 temp3 = true;
36094 }
36095 if (obj3) {
36096 ecode4 = SWIG_AsVal_int(obj3, &val4);
36097 if (!SWIG_IsOK(ecode4)) {
36098 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_PrependItem" "', expected argument " "4"" of type '" "int""'");
36099 }
36100 arg4 = static_cast< int >(val4);
36101 }
36102 if (obj4) {
36103 ecode5 = SWIG_AsVal_int(obj4, &val5);
36104 if (!SWIG_IsOK(ecode5)) {
36105 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_PrependItem" "', expected argument " "5"" of type '" "int""'");
36106 }
36107 arg5 = static_cast< int >(val5);
36108 }
36109 if (obj5) {
36110 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36111 if (!SWIG_IsOK(res6)) {
36112 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_PrependItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
d55e5bfc 36113 }
1bd55598
RD
36114 }
36115 {
36116 PyThreadState* __tstate = wxPyBeginAllowThreads();
36117 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
36118 wxPyEndAllowThreads(__tstate);
36119 if (PyErr_Occurred()) SWIG_fail;
36120 }
36121 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36122 {
36123 if (temp3)
36124 delete arg3;
36125 }
36126 return resultobj;
36127fail:
36128 {
36129 if (temp3)
36130 delete arg3;
36131 }
36132 return NULL;
36133}
36134
36135
36136SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36137 PyObject *resultobj = 0;
36138 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36139 wxTreeItemId *arg2 = 0 ;
36140 wxTreeItemId *arg3 = 0 ;
36141 wxString *arg4 = 0 ;
36142 int arg5 = (int) -1 ;
36143 int arg6 = (int) -1 ;
36144 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
36145 wxTreeItemId result;
36146 void *argp1 = 0 ;
36147 int res1 = 0 ;
36148 void *argp2 = 0 ;
36149 int res2 = 0 ;
36150 void *argp3 = 0 ;
36151 int res3 = 0 ;
36152 bool temp4 = false ;
36153 int val5 ;
36154 int ecode5 = 0 ;
36155 int val6 ;
36156 int ecode6 = 0 ;
36157 int res7 = 0 ;
36158 PyObject * obj0 = 0 ;
36159 PyObject * obj1 = 0 ;
36160 PyObject * obj2 = 0 ;
36161 PyObject * obj3 = 0 ;
36162 PyObject * obj4 = 0 ;
36163 PyObject * obj5 = 0 ;
36164 PyObject * obj6 = 0 ;
36165 char * kwnames[] = {
36166 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36167 };
36168
36169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36171 if (!SWIG_IsOK(res1)) {
36172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36173 }
36174 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36175 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36176 if (!SWIG_IsOK(res2)) {
36177 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36178 }
36179 if (!argp2) {
36180 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36181 }
36182 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36183 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36184 if (!SWIG_IsOK(res3)) {
36185 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
36186 }
36187 if (!argp3) {
36188 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
36189 }
36190 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
36191 {
36192 arg4 = wxString_in_helper(obj3);
36193 if (arg4 == NULL) SWIG_fail;
36194 temp4 = true;
36195 }
36196 if (obj4) {
36197 ecode5 = SWIG_AsVal_int(obj4, &val5);
36198 if (!SWIG_IsOK(ecode5)) {
36199 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItem" "', expected argument " "5"" of type '" "int""'");
36200 }
36201 arg5 = static_cast< int >(val5);
36202 }
36203 if (obj5) {
36204 ecode6 = SWIG_AsVal_int(obj5, &val6);
36205 if (!SWIG_IsOK(ecode6)) {
36206 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItem" "', expected argument " "6"" of type '" "int""'");
36207 }
36208 arg6 = static_cast< int >(val6);
36209 }
36210 if (obj6) {
36211 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36212 if (!SWIG_IsOK(res7)) {
36213 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItem" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
d55e5bfc 36214 }
1bd55598
RD
36215 }
36216 {
36217 PyThreadState* __tstate = wxPyBeginAllowThreads();
36218 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36219 wxPyEndAllowThreads(__tstate);
36220 if (PyErr_Occurred()) SWIG_fail;
36221 }
36222 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36223 {
36224 if (temp4)
36225 delete arg4;
36226 }
36227 return resultobj;
36228fail:
36229 {
36230 if (temp4)
36231 delete arg4;
36232 }
36233 return NULL;
36234}
36235
36236
36237SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36238 PyObject *resultobj = 0;
36239 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36240 wxTreeItemId *arg2 = 0 ;
36241 size_t arg3 ;
36242 wxString *arg4 = 0 ;
36243 int arg5 = (int) -1 ;
36244 int arg6 = (int) -1 ;
36245 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
36246 wxTreeItemId result;
36247 void *argp1 = 0 ;
36248 int res1 = 0 ;
36249 void *argp2 = 0 ;
36250 int res2 = 0 ;
36251 size_t val3 ;
36252 int ecode3 = 0 ;
36253 bool temp4 = false ;
36254 int val5 ;
36255 int ecode5 = 0 ;
36256 int val6 ;
36257 int ecode6 = 0 ;
36258 int res7 = 0 ;
36259 PyObject * obj0 = 0 ;
36260 PyObject * obj1 = 0 ;
36261 PyObject * obj2 = 0 ;
36262 PyObject * obj3 = 0 ;
36263 PyObject * obj4 = 0 ;
36264 PyObject * obj5 = 0 ;
36265 PyObject * obj6 = 0 ;
36266 char * kwnames[] = {
36267 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36268 };
36269
36270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36272 if (!SWIG_IsOK(res1)) {
36273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36274 }
36275 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36276 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36277 if (!SWIG_IsOK(res2)) {
36278 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36279 }
36280 if (!argp2) {
36281 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36282 }
36283 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36284 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
36285 if (!SWIG_IsOK(ecode3)) {
36286 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "3"" of type '" "size_t""'");
36287 }
36288 arg3 = static_cast< size_t >(val3);
36289 {
36290 arg4 = wxString_in_helper(obj3);
36291 if (arg4 == NULL) SWIG_fail;
36292 temp4 = true;
36293 }
36294 if (obj4) {
36295 ecode5 = SWIG_AsVal_int(obj4, &val5);
36296 if (!SWIG_IsOK(ecode5)) {
36297 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "5"" of type '" "int""'");
36298 }
36299 arg5 = static_cast< int >(val5);
36300 }
36301 if (obj5) {
36302 ecode6 = SWIG_AsVal_int(obj5, &val6);
36303 if (!SWIG_IsOK(ecode6)) {
36304 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "6"" of type '" "int""'");
36305 }
36306 arg6 = static_cast< int >(val6);
36307 }
36308 if (obj6) {
36309 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36310 if (!SWIG_IsOK(res7)) {
36311 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
d55e5bfc 36312 }
1bd55598
RD
36313 }
36314 {
36315 PyThreadState* __tstate = wxPyBeginAllowThreads();
36316 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36317 wxPyEndAllowThreads(__tstate);
36318 if (PyErr_Occurred()) SWIG_fail;
36319 }
36320 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36321 {
36322 if (temp4)
36323 delete arg4;
36324 }
36325 return resultobj;
36326fail:
36327 {
36328 if (temp4)
36329 delete arg4;
36330 }
36331 return NULL;
36332}
36333
36334
36335SWIGINTERN PyObject *_wrap_TreeCtrl_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36336 PyObject *resultobj = 0;
36337 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36338 wxTreeItemId *arg2 = 0 ;
36339 wxString *arg3 = 0 ;
36340 int arg4 = (int) -1 ;
36341 int arg5 = (int) -1 ;
36342 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
36343 wxTreeItemId result;
36344 void *argp1 = 0 ;
36345 int res1 = 0 ;
36346 void *argp2 = 0 ;
36347 int res2 = 0 ;
36348 bool temp3 = false ;
36349 int val4 ;
36350 int ecode4 = 0 ;
36351 int val5 ;
36352 int ecode5 = 0 ;
36353 int res6 = 0 ;
36354 PyObject * obj0 = 0 ;
36355 PyObject * obj1 = 0 ;
36356 PyObject * obj2 = 0 ;
36357 PyObject * obj3 = 0 ;
36358 PyObject * obj4 = 0 ;
36359 PyObject * obj5 = 0 ;
36360 char * kwnames[] = {
36361 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36362 };
36363
36364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36366 if (!SWIG_IsOK(res1)) {
36367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AppendItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36368 }
36369 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36370 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36371 if (!SWIG_IsOK(res2)) {
36372 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36373 }
36374 if (!argp2) {
36375 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36376 }
36377 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36378 {
36379 arg3 = wxString_in_helper(obj2);
36380 if (arg3 == NULL) SWIG_fail;
36381 temp3 = true;
36382 }
36383 if (obj3) {
36384 ecode4 = SWIG_AsVal_int(obj3, &val4);
36385 if (!SWIG_IsOK(ecode4)) {
36386 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AppendItem" "', expected argument " "4"" of type '" "int""'");
36387 }
36388 arg4 = static_cast< int >(val4);
36389 }
36390 if (obj4) {
36391 ecode5 = SWIG_AsVal_int(obj4, &val5);
36392 if (!SWIG_IsOK(ecode5)) {
36393 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_AppendItem" "', expected argument " "5"" of type '" "int""'");
36394 }
36395 arg5 = static_cast< int >(val5);
36396 }
36397 if (obj5) {
36398 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36399 if (!SWIG_IsOK(res6)) {
36400 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_AppendItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
d55e5bfc 36401 }
1bd55598
RD
36402 }
36403 {
36404 PyThreadState* __tstate = wxPyBeginAllowThreads();
36405 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
36406 wxPyEndAllowThreads(__tstate);
36407 if (PyErr_Occurred()) SWIG_fail;
36408 }
36409 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36410 {
36411 if (temp3)
36412 delete arg3;
36413 }
36414 return resultobj;
36415fail:
36416 {
36417 if (temp3)
36418 delete arg3;
36419 }
36420 return NULL;
36421}
36422
36423
36424SWIGINTERN PyObject *_wrap_TreeCtrl_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36425 PyObject *resultobj = 0;
36426 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36427 wxTreeItemId *arg2 = 0 ;
36428 void *argp1 = 0 ;
36429 int res1 = 0 ;
36430 void *argp2 = 0 ;
36431 int res2 = 0 ;
36432 PyObject * obj0 = 0 ;
36433 PyObject * obj1 = 0 ;
36434 char * kwnames[] = {
36435 (char *) "self",(char *) "item", NULL
36436 };
36437
36438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) SWIG_fail;
36439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36440 if (!SWIG_IsOK(res1)) {
36441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Delete" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36442 }
36443 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36444 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36445 if (!SWIG_IsOK(res2)) {
36446 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36447 }
36448 if (!argp2) {
36449 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36450 }
36451 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36452 {
36453 PyThreadState* __tstate = wxPyBeginAllowThreads();
36454 (arg1)->Delete((wxTreeItemId const &)*arg2);
36455 wxPyEndAllowThreads(__tstate);
36456 if (PyErr_Occurred()) SWIG_fail;
36457 }
36458 resultobj = SWIG_Py_Void();
36459 return resultobj;
36460fail:
36461 return NULL;
36462}
36463
36464
36465SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36466 PyObject *resultobj = 0;
36467 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36468 wxTreeItemId *arg2 = 0 ;
36469 void *argp1 = 0 ;
36470 int res1 = 0 ;
36471 void *argp2 = 0 ;
36472 int res2 = 0 ;
36473 PyObject * obj0 = 0 ;
36474 PyObject * obj1 = 0 ;
36475 char * kwnames[] = {
36476 (char *) "self",(char *) "item", NULL
36477 };
36478
36479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36481 if (!SWIG_IsOK(res1)) {
36482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36483 }
36484 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36485 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36486 if (!SWIG_IsOK(res2)) {
36487 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36488 }
36489 if (!argp2) {
36490 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36491 }
36492 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36493 {
36494 PyThreadState* __tstate = wxPyBeginAllowThreads();
36495 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
36496 wxPyEndAllowThreads(__tstate);
36497 if (PyErr_Occurred()) SWIG_fail;
36498 }
36499 resultobj = SWIG_Py_Void();
36500 return resultobj;
36501fail:
36502 return NULL;
d55e5bfc
RD
36503}
36504
36505
1bd55598
RD
36506SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36507 PyObject *resultobj = 0;
36508 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36509 void *argp1 = 0 ;
36510 int res1 = 0 ;
36511 PyObject *swig_obj[1] ;
36512
36513 if (!args) SWIG_fail;
36514 swig_obj[0] = args;
36515 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36516 if (!SWIG_IsOK(res1)) {
36517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36518 }
36519 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36520 {
36521 PyThreadState* __tstate = wxPyBeginAllowThreads();
36522 (arg1)->DeleteAllItems();
36523 wxPyEndAllowThreads(__tstate);
36524 if (PyErr_Occurred()) SWIG_fail;
36525 }
36526 resultobj = SWIG_Py_Void();
36527 return resultobj;
36528fail:
36529 return NULL;
36530}
36531
36532
36533SWIGINTERN PyObject *_wrap_TreeCtrl_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36534 PyObject *resultobj = 0;
36535 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36536 wxTreeItemId *arg2 = 0 ;
36537 void *argp1 = 0 ;
36538 int res1 = 0 ;
36539 void *argp2 = 0 ;
36540 int res2 = 0 ;
36541 PyObject * obj0 = 0 ;
36542 PyObject * obj1 = 0 ;
36543 char * kwnames[] = {
36544 (char *) "self",(char *) "item", NULL
36545 };
36546
36547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) SWIG_fail;
36548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36549 if (!SWIG_IsOK(res1)) {
36550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Expand" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36551 }
36552 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36553 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36554 if (!SWIG_IsOK(res2)) {
36555 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36556 }
36557 if (!argp2) {
36558 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36559 }
36560 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36561 {
36562 PyThreadState* __tstate = wxPyBeginAllowThreads();
36563 (arg1)->Expand((wxTreeItemId const &)*arg2);
36564 wxPyEndAllowThreads(__tstate);
36565 if (PyErr_Occurred()) SWIG_fail;
36566 }
36567 resultobj = SWIG_Py_Void();
36568 return resultobj;
36569fail:
36570 return NULL;
36571}
36572
36573
3d6c9062
RD
36574SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAllChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36575 PyObject *resultobj = 0;
36576 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36577 wxTreeItemId *arg2 = 0 ;
36578 void *argp1 = 0 ;
36579 int res1 = 0 ;
36580 void *argp2 = 0 ;
36581 int res2 = 0 ;
36582 PyObject * obj0 = 0 ;
36583 PyObject * obj1 = 0 ;
36584 char * kwnames[] = {
36585 (char *) "self",(char *) "item", NULL
36586 };
36587
36588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ExpandAllChildren",kwnames,&obj0,&obj1)) 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_ExpandAllChildren" "', 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_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36597 }
36598 if (!argp2) {
36599 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36600 }
36601 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36602 {
36603 PyThreadState* __tstate = wxPyBeginAllowThreads();
36604 (arg1)->ExpandAllChildren((wxTreeItemId const &)*arg2);
36605 wxPyEndAllowThreads(__tstate);
36606 if (PyErr_Occurred()) SWIG_fail;
36607 }
36608 resultobj = SWIG_Py_Void();
36609 return resultobj;
36610fail:
36611 return NULL;
36612}
36613
36614
36615SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36616 PyObject *resultobj = 0;
36617 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36618 void *argp1 = 0 ;
36619 int res1 = 0 ;
36620 PyObject *swig_obj[1] ;
36621
36622 if (!args) SWIG_fail;
36623 swig_obj[0] = args;
36624 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36625 if (!SWIG_IsOK(res1)) {
36626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36627 }
36628 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36629 {
36630 PyThreadState* __tstate = wxPyBeginAllowThreads();
36631 (arg1)->ExpandAll();
36632 wxPyEndAllowThreads(__tstate);
36633 if (PyErr_Occurred()) SWIG_fail;
36634 }
36635 resultobj = SWIG_Py_Void();
36636 return resultobj;
36637fail:
36638 return NULL;
36639}
36640
36641
1bd55598
RD
36642SWIGINTERN PyObject *_wrap_TreeCtrl_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36643 PyObject *resultobj = 0;
36644 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36645 wxTreeItemId *arg2 = 0 ;
36646 void *argp1 = 0 ;
36647 int res1 = 0 ;
36648 void *argp2 = 0 ;
36649 int res2 = 0 ;
36650 PyObject * obj0 = 0 ;
36651 PyObject * obj1 = 0 ;
36652 char * kwnames[] = {
36653 (char *) "self",(char *) "item", NULL
36654 };
36655
36656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
36657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36658 if (!SWIG_IsOK(res1)) {
36659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Collapse" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36660 }
36661 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36662 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36663 if (!SWIG_IsOK(res2)) {
36664 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36665 }
36666 if (!argp2) {
36667 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36668 }
36669 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36670 {
36671 PyThreadState* __tstate = wxPyBeginAllowThreads();
36672 (arg1)->Collapse((wxTreeItemId const &)*arg2);
36673 wxPyEndAllowThreads(__tstate);
36674 if (PyErr_Occurred()) SWIG_fail;
36675 }
36676 resultobj = SWIG_Py_Void();
36677 return resultobj;
36678fail:
36679 return NULL;
36680}
36681
36682
36683SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36684 PyObject *resultobj = 0;
36685 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36686 wxTreeItemId *arg2 = 0 ;
36687 void *argp1 = 0 ;
36688 int res1 = 0 ;
36689 void *argp2 = 0 ;
36690 int res2 = 0 ;
36691 PyObject * obj0 = 0 ;
36692 PyObject * obj1 = 0 ;
36693 char * kwnames[] = {
36694 (char *) "self",(char *) "item", NULL
36695 };
36696
36697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) SWIG_fail;
36698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36699 if (!SWIG_IsOK(res1)) {
36700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36701 }
36702 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36703 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36704 if (!SWIG_IsOK(res2)) {
36705 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36706 }
36707 if (!argp2) {
36708 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36709 }
36710 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36711 {
36712 PyThreadState* __tstate = wxPyBeginAllowThreads();
36713 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
36714 wxPyEndAllowThreads(__tstate);
36715 if (PyErr_Occurred()) SWIG_fail;
36716 }
36717 resultobj = SWIG_Py_Void();
36718 return resultobj;
36719fail:
36720 return NULL;
36721}
36722
36723
36724SWIGINTERN PyObject *_wrap_TreeCtrl_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36725 PyObject *resultobj = 0;
36726 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36727 wxTreeItemId *arg2 = 0 ;
36728 void *argp1 = 0 ;
36729 int res1 = 0 ;
36730 void *argp2 = 0 ;
36731 int res2 = 0 ;
36732 PyObject * obj0 = 0 ;
36733 PyObject * obj1 = 0 ;
36734 char * kwnames[] = {
36735 (char *) "self",(char *) "item", NULL
36736 };
36737
36738 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) SWIG_fail;
36739 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36740 if (!SWIG_IsOK(res1)) {
36741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Toggle" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36742 }
36743 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36744 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36745 if (!SWIG_IsOK(res2)) {
36746 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36747 }
36748 if (!argp2) {
36749 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36750 }
36751 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36752 {
36753 PyThreadState* __tstate = wxPyBeginAllowThreads();
36754 (arg1)->Toggle((wxTreeItemId const &)*arg2);
36755 wxPyEndAllowThreads(__tstate);
36756 if (PyErr_Occurred()) SWIG_fail;
36757 }
36758 resultobj = SWIG_Py_Void();
36759 return resultobj;
36760fail:
36761 return NULL;
d55e5bfc
RD
36762}
36763
36764
1bd55598
RD
36765SWIGINTERN PyObject *_wrap_TreeCtrl_Unselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36766 PyObject *resultobj = 0;
36767 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36768 void *argp1 = 0 ;
36769 int res1 = 0 ;
36770 PyObject *swig_obj[1] ;
36771
36772 if (!args) SWIG_fail;
36773 swig_obj[0] = args;
36774 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36775 if (!SWIG_IsOK(res1)) {
36776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Unselect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36777 }
36778 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36779 {
36780 PyThreadState* __tstate = wxPyBeginAllowThreads();
36781 (arg1)->Unselect();
36782 wxPyEndAllowThreads(__tstate);
36783 if (PyErr_Occurred()) SWIG_fail;
36784 }
36785 resultobj = SWIG_Py_Void();
36786 return resultobj;
36787fail:
36788 return NULL;
36789}
36790
36791
36792SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36793 PyObject *resultobj = 0;
36794 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36795 wxTreeItemId *arg2 = 0 ;
36796 void *argp1 = 0 ;
36797 int res1 = 0 ;
36798 void *argp2 = 0 ;
36799 int res2 = 0 ;
36800 PyObject * obj0 = 0 ;
36801 PyObject * obj1 = 0 ;
36802 char * kwnames[] = {
36803 (char *) "self",(char *) "item", NULL
36804 };
36805
36806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) SWIG_fail;
36807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36808 if (!SWIG_IsOK(res1)) {
36809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36810 }
36811 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36812 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36813 if (!SWIG_IsOK(res2)) {
36814 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36815 }
36816 if (!argp2) {
36817 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36818 }
36819 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36820 {
36821 PyThreadState* __tstate = wxPyBeginAllowThreads();
36822 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
36823 wxPyEndAllowThreads(__tstate);
36824 if (PyErr_Occurred()) SWIG_fail;
36825 }
36826 resultobj = SWIG_Py_Void();
36827 return resultobj;
36828fail:
36829 return NULL;
d55e5bfc
RD
36830}
36831
36832
1bd55598
RD
36833SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36834 PyObject *resultobj = 0;
36835 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36836 void *argp1 = 0 ;
36837 int res1 = 0 ;
36838 PyObject *swig_obj[1] ;
36839
36840 if (!args) SWIG_fail;
36841 swig_obj[0] = args;
36842 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36843 if (!SWIG_IsOK(res1)) {
36844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36845 }
36846 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36847 {
36848 PyThreadState* __tstate = wxPyBeginAllowThreads();
36849 (arg1)->UnselectAll();
36850 wxPyEndAllowThreads(__tstate);
36851 if (PyErr_Occurred()) SWIG_fail;
36852 }
36853 resultobj = SWIG_Py_Void();
36854 return resultobj;
36855fail:
36856 return NULL;
36857}
36858
36859
36860SWIGINTERN PyObject *_wrap_TreeCtrl_SelectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36861 PyObject *resultobj = 0;
36862 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36863 wxTreeItemId *arg2 = 0 ;
36864 bool arg3 = (bool) true ;
36865 void *argp1 = 0 ;
36866 int res1 = 0 ;
36867 void *argp2 = 0 ;
36868 int res2 = 0 ;
36869 bool val3 ;
36870 int ecode3 = 0 ;
36871 PyObject * obj0 = 0 ;
36872 PyObject * obj1 = 0 ;
36873 PyObject * obj2 = 0 ;
36874 char * kwnames[] = {
36875 (char *) "self",(char *) "item",(char *) "select", NULL
36876 };
36877
36878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36880 if (!SWIG_IsOK(res1)) {
36881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SelectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36882 }
36883 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36884 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36885 if (!SWIG_IsOK(res2)) {
36886 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36887 }
36888 if (!argp2) {
36889 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36890 }
36891 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36892 if (obj2) {
36893 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36894 if (!SWIG_IsOK(ecode3)) {
36895 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SelectItem" "', expected argument " "3"" of type '" "bool""'");
36896 }
36897 arg3 = static_cast< bool >(val3);
36898 }
36899 {
36900 PyThreadState* __tstate = wxPyBeginAllowThreads();
36901 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
36902 wxPyEndAllowThreads(__tstate);
36903 if (PyErr_Occurred()) SWIG_fail;
36904 }
36905 resultobj = SWIG_Py_Void();
36906 return resultobj;
36907fail:
36908 return NULL;
36909}
36910
36911
36912SWIGINTERN PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36913 PyObject *resultobj = 0;
36914 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36915 wxTreeItemId *arg2 = 0 ;
36916 void *argp1 = 0 ;
36917 int res1 = 0 ;
36918 void *argp2 = 0 ;
36919 int res2 = 0 ;
36920 PyObject * obj0 = 0 ;
36921 PyObject * obj1 = 0 ;
36922 char * kwnames[] = {
36923 (char *) "self",(char *) "item", NULL
36924 };
36925
36926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) SWIG_fail;
36927 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36928 if (!SWIG_IsOK(res1)) {
36929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36930 }
36931 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36932 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36933 if (!SWIG_IsOK(res2)) {
36934 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36935 }
36936 if (!argp2) {
36937 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36938 }
36939 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36940 {
36941 PyThreadState* __tstate = wxPyBeginAllowThreads();
36942 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
36943 wxPyEndAllowThreads(__tstate);
36944 if (PyErr_Occurred()) SWIG_fail;
36945 }
36946 resultobj = SWIG_Py_Void();
36947 return resultobj;
36948fail:
36949 return NULL;
36950}
36951
36952
36953SWIGINTERN PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36954 PyObject *resultobj = 0;
36955 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36956 wxTreeItemId *arg2 = 0 ;
36957 void *argp1 = 0 ;
36958 int res1 = 0 ;
36959 void *argp2 = 0 ;
36960 int res2 = 0 ;
36961 PyObject * obj0 = 0 ;
36962 PyObject * obj1 = 0 ;
36963 char * kwnames[] = {
36964 (char *) "self",(char *) "item", NULL
36965 };
36966
36967 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
36968 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36969 if (!SWIG_IsOK(res1)) {
36970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36971 }
36972 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36973 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36974 if (!SWIG_IsOK(res2)) {
36975 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36976 }
36977 if (!argp2) {
36978 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36979 }
36980 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36981 {
36982 PyThreadState* __tstate = wxPyBeginAllowThreads();
36983 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
36984 wxPyEndAllowThreads(__tstate);
36985 if (PyErr_Occurred()) SWIG_fail;
36986 }
36987 resultobj = SWIG_Py_Void();
36988 return resultobj;
36989fail:
36990 return NULL;
36991}
36992
36993
36994SWIGINTERN PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36995 PyObject *resultobj = 0;
36996 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36997 wxTreeItemId *arg2 = 0 ;
36998 void *argp1 = 0 ;
36999 int res1 = 0 ;
37000 void *argp2 = 0 ;
37001 int res2 = 0 ;
37002 PyObject * obj0 = 0 ;
37003 PyObject * obj1 = 0 ;
37004 char * kwnames[] = {
37005 (char *) "self",(char *) "item", NULL
37006 };
37007
37008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) SWIG_fail;
37009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37010 if (!SWIG_IsOK(res1)) {
37011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37012 }
37013 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37014 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37015 if (!SWIG_IsOK(res2)) {
37016 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37017 }
37018 if (!argp2) {
37019 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37020 }
37021 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37022 {
37023 PyThreadState* __tstate = wxPyBeginAllowThreads();
37024 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
37025 wxPyEndAllowThreads(__tstate);
37026 if (PyErr_Occurred()) SWIG_fail;
37027 }
37028 resultobj = SWIG_Py_Void();
37029 return resultobj;
37030fail:
37031 return NULL;
37032}
37033
37034
37035SWIGINTERN PyObject *_wrap_TreeCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37036 PyObject *resultobj = 0;
37037 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37038 wxTreeItemId *arg2 = 0 ;
37039 void *argp1 = 0 ;
37040 int res1 = 0 ;
37041 void *argp2 = 0 ;
37042 int res2 = 0 ;
37043 PyObject * obj0 = 0 ;
37044 PyObject * obj1 = 0 ;
37045 char * kwnames[] = {
37046 (char *) "self",(char *) "item", NULL
37047 };
37048
37049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
37050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37051 if (!SWIG_IsOK(res1)) {
37052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37053 }
37054 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37055 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37056 if (!SWIG_IsOK(res2)) {
37057 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37058 }
37059 if (!argp2) {
37060 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37061 }
37062 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37063 {
37064 PyThreadState* __tstate = wxPyBeginAllowThreads();
37065 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
37066 wxPyEndAllowThreads(__tstate);
37067 if (PyErr_Occurred()) SWIG_fail;
37068 }
37069 resultobj = SWIG_Py_Void();
37070 return resultobj;
37071fail:
37072 return NULL;
d55e5bfc
RD
37073}
37074
37075
1bd55598
RD
37076SWIGINTERN PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37077 PyObject *resultobj = 0;
37078 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37079 wxTextCtrl *result = 0 ;
37080 void *argp1 = 0 ;
37081 int res1 = 0 ;
37082 PyObject *swig_obj[1] ;
37083
37084 if (!args) SWIG_fail;
37085 swig_obj[0] = args;
37086 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37087 if (!SWIG_IsOK(res1)) {
37088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
37089 }
37090 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37091 {
37092 PyThreadState* __tstate = wxPyBeginAllowThreads();
37093 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
37094 wxPyEndAllowThreads(__tstate);
37095 if (PyErr_Occurred()) SWIG_fail;
37096 }
37097 {
37098 resultobj = wxPyMake_wxObject(result, 0);
37099 }
37100 return resultobj;
37101fail:
37102 return NULL;
37103}
37104
37105
37106SWIGINTERN PyObject *_wrap_TreeCtrl_SortChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37107 PyObject *resultobj = 0;
37108 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37109 wxTreeItemId *arg2 = 0 ;
37110 void *argp1 = 0 ;
37111 int res1 = 0 ;
37112 void *argp2 = 0 ;
37113 int res2 = 0 ;
37114 PyObject * obj0 = 0 ;
37115 PyObject * obj1 = 0 ;
37116 char * kwnames[] = {
37117 (char *) "self",(char *) "item", NULL
37118 };
37119
37120 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) SWIG_fail;
37121 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37122 if (!SWIG_IsOK(res1)) {
37123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SortChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37124 }
37125 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37126 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37127 if (!SWIG_IsOK(res2)) {
37128 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37129 }
37130 if (!argp2) {
37131 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37132 }
37133 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37134 {
37135 PyThreadState* __tstate = wxPyBeginAllowThreads();
37136 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
37137 wxPyEndAllowThreads(__tstate);
37138 if (PyErr_Occurred()) SWIG_fail;
37139 }
37140 resultobj = SWIG_Py_Void();
37141 return resultobj;
37142fail:
37143 return NULL;
37144}
37145
37146
37147SWIGINTERN PyObject *_wrap_TreeCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37148 PyObject *resultobj = 0;
37149 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37150 wxPoint *arg2 = 0 ;
37151 int *arg3 = 0 ;
37152 wxTreeItemId result;
37153 void *argp1 = 0 ;
37154 int res1 = 0 ;
37155 wxPoint temp2 ;
37156 int temp3 ;
37157 int res3 = SWIG_TMPOBJ ;
37158 PyObject * obj0 = 0 ;
37159 PyObject * obj1 = 0 ;
37160 char * kwnames[] = {
37161 (char *) "self",(char *) "point", NULL
37162 };
37163
37164 arg3 = &temp3;
37165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
37166 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37167 if (!SWIG_IsOK(res1)) {
37168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37169 }
37170 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37171 {
37172 arg2 = &temp2;
37173 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37174 }
37175 {
37176 PyThreadState* __tstate = wxPyBeginAllowThreads();
37177 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
37178 wxPyEndAllowThreads(__tstate);
37179 if (PyErr_Occurred()) SWIG_fail;
37180 }
37181 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37182 if (SWIG_IsTmpObj(res3)) {
37183 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
37184 } else {
37185 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
37186 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
37187 }
37188 return resultobj;
37189fail:
37190 return NULL;
37191}
37192
37193
37194SWIGINTERN PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37195 PyObject *resultobj = 0;
37196 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37197 wxTreeItemId *arg2 = 0 ;
37198 bool arg3 = (bool) false ;
37199 PyObject *result = 0 ;
37200 void *argp1 = 0 ;
37201 int res1 = 0 ;
37202 void *argp2 = 0 ;
37203 int res2 = 0 ;
37204 bool val3 ;
37205 int ecode3 = 0 ;
37206 PyObject * obj0 = 0 ;
37207 PyObject * obj1 = 0 ;
37208 PyObject * obj2 = 0 ;
37209 char * kwnames[] = {
37210 (char *) "self",(char *) "item",(char *) "textOnly", NULL
37211 };
37212
37213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37215 if (!SWIG_IsOK(res1)) {
37216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37217 }
37218 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37219 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37220 if (!SWIG_IsOK(res2)) {
37221 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37222 }
37223 if (!argp2) {
37224 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37225 }
37226 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37227 if (obj2) {
37228 ecode3 = SWIG_AsVal_bool(obj2, &val3);
37229 if (!SWIG_IsOK(ecode3)) {
37230 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "3"" of type '" "bool""'");
37231 }
37232 arg3 = static_cast< bool >(val3);
37233 }
37234 {
37235 PyThreadState* __tstate = wxPyBeginAllowThreads();
37236 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
37237 wxPyEndAllowThreads(__tstate);
37238 if (PyErr_Occurred()) SWIG_fail;
37239 }
37240 resultobj = result;
37241 return resultobj;
37242fail:
37243 return NULL;
37244}
37245
37246
37247SWIGINTERN PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37248 PyObject *resultobj = 0;
37249 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
37250 SwigValueWrapper<wxVisualAttributes > result;
37251 int val1 ;
37252 int ecode1 = 0 ;
37253 PyObject * obj0 = 0 ;
37254 char * kwnames[] = {
37255 (char *) "variant", NULL
37256 };
37257
37258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
37259 if (obj0) {
37260 ecode1 = SWIG_AsVal_int(obj0, &val1);
37261 if (!SWIG_IsOK(ecode1)) {
37262 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TreeCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
37263 }
37264 arg1 = static_cast< wxWindowVariant >(val1);
37265 }
37266 {
37267 if (!wxPyCheckForApp()) SWIG_fail;
37268 PyThreadState* __tstate = wxPyBeginAllowThreads();
37269 result = wxPyTreeCtrl::GetClassDefaultAttributes(arg1);
37270 wxPyEndAllowThreads(__tstate);
37271 if (PyErr_Occurred()) SWIG_fail;
37272 }
37273 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
37274 return resultobj;
37275fail:
37276 return NULL;
d55e5bfc
RD
37277}
37278
37279
2131d850
RD
37280SWIGINTERN PyObject *_wrap_TreeCtrl_SetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37281 PyObject *resultobj = 0;
37282 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37283 bool arg2 ;
37284 void *argp1 = 0 ;
37285 int res1 = 0 ;
37286 bool val2 ;
37287 int ecode2 = 0 ;
37288 PyObject * obj0 = 0 ;
37289 PyObject * obj1 = 0 ;
37290 char * kwnames[] = {
37291 (char *) "self",(char *) "q", NULL
37292 };
37293
37294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetQuickBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
37295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37296 if (!SWIG_IsOK(res1)) {
37297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37298 }
37299 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37300 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37301 if (!SWIG_IsOK(ecode2)) {
37302 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "2"" of type '" "bool""'");
37303 }
37304 arg2 = static_cast< bool >(val2);
37305 {
37306 PyThreadState* __tstate = wxPyBeginAllowThreads();
37307 (arg1)->SetQuickBestSize(arg2);
37308 wxPyEndAllowThreads(__tstate);
37309 if (PyErr_Occurred()) SWIG_fail;
37310 }
37311 resultobj = SWIG_Py_Void();
37312 return resultobj;
37313fail:
37314 return NULL;
37315}
37316
37317
37318SWIGINTERN PyObject *_wrap_TreeCtrl_GetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37319 PyObject *resultobj = 0;
37320 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37321 bool result;
37322 void *argp1 = 0 ;
37323 int res1 = 0 ;
37324 PyObject *swig_obj[1] ;
37325
37326 if (!args) SWIG_fail;
37327 swig_obj[0] = args;
37328 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37329 if (!SWIG_IsOK(res1)) {
37330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
37331 }
37332 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37333 {
37334 PyThreadState* __tstate = wxPyBeginAllowThreads();
37335 result = (bool)((wxPyTreeCtrl const *)arg1)->GetQuickBestSize();
37336 wxPyEndAllowThreads(__tstate);
37337 if (PyErr_Occurred()) SWIG_fail;
37338 }
37339 {
37340 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37341 }
37342 return resultobj;
37343fail:
37344 return NULL;
37345}
37346
37347
1bd55598
RD
37348SWIGINTERN PyObject *TreeCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37349 PyObject *obj;
37350 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37351 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeCtrl, SWIG_NewClientData(obj));
37352 return SWIG_Py_Void();
d55e5bfc
RD
37353}
37354
1bd55598
RD
37355SWIGINTERN PyObject *TreeCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37356 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
37357}
37358
1bd55598
RD
37359SWIGINTERN int DirDialogDefaultFolderStr_set(PyObject *) {
37360 SWIG_Error(SWIG_AttributeError,"Variable DirDialogDefaultFolderStr is read-only.");
37361 return 1;
d55e5bfc
RD
37362}
37363
37364
1bd55598
RD
37365SWIGINTERN PyObject *DirDialogDefaultFolderStr_get(void) {
37366 PyObject *pyobj = 0;
37367
37368 {
37369#if wxUSE_UNICODE
37370 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37371#else
37372 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37373#endif
37374 }
37375 return pyobj;
37376}
37377
37378
37379SWIGINTERN PyObject *_wrap_new_GenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37380 PyObject *resultobj = 0;
37381 wxWindow *arg1 = (wxWindow *) 0 ;
37382 int arg2 = (int) (int)-1 ;
37383 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
37384 wxString *arg3 = (wxString *) &arg3_defvalue ;
37385 wxPoint const &arg4_defvalue = wxDefaultPosition ;
37386 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
37387 wxSize const &arg5_defvalue = wxDefaultSize ;
37388 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
37389 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37390 wxString const &arg7_defvalue = wxPyEmptyString ;
37391 wxString *arg7 = (wxString *) &arg7_defvalue ;
37392 int arg8 = (int) 0 ;
37393 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
37394 wxString *arg9 = (wxString *) &arg9_defvalue ;
37395 wxGenericDirCtrl *result = 0 ;
37396 void *argp1 = 0 ;
37397 int res1 = 0 ;
37398 int val2 ;
37399 int ecode2 = 0 ;
37400 bool temp3 = false ;
37401 wxPoint temp4 ;
37402 wxSize temp5 ;
37403 long val6 ;
37404 int ecode6 = 0 ;
37405 bool temp7 = false ;
37406 int val8 ;
37407 int ecode8 = 0 ;
37408 bool temp9 = false ;
37409 PyObject * obj0 = 0 ;
37410 PyObject * obj1 = 0 ;
37411 PyObject * obj2 = 0 ;
37412 PyObject * obj3 = 0 ;
37413 PyObject * obj4 = 0 ;
37414 PyObject * obj5 = 0 ;
37415 PyObject * obj6 = 0 ;
37416 PyObject * obj7 = 0 ;
37417 PyObject * obj8 = 0 ;
37418 char * kwnames[] = {
37419 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37420 };
37421
37422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
37423 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37424 if (!SWIG_IsOK(res1)) {
37425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GenericDirCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
37426 }
37427 arg1 = reinterpret_cast< wxWindow * >(argp1);
37428 if (obj1) {
37429 ecode2 = SWIG_AsVal_int(obj1, &val2);
37430 if (!SWIG_IsOK(ecode2)) {
37431 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GenericDirCtrl" "', expected argument " "2"" of type '" "int""'");
37432 }
37433 arg2 = static_cast< int >(val2);
37434 }
37435 if (obj2) {
36ed4f51 37436 {
1bd55598
RD
37437 arg3 = wxString_in_helper(obj2);
37438 if (arg3 == NULL) SWIG_fail;
37439 temp3 = true;
36ed4f51 37440 }
1bd55598
RD
37441 }
37442 if (obj3) {
d55e5bfc 37443 {
1bd55598
RD
37444 arg4 = &temp4;
37445 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 37446 }
1bd55598
RD
37447 }
37448 if (obj4) {
36ed4f51 37449 {
1bd55598
RD
37450 arg5 = &temp5;
37451 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 37452 }
1bd55598
RD
37453 }
37454 if (obj5) {
37455 ecode6 = SWIG_AsVal_long(obj5, &val6);
37456 if (!SWIG_IsOK(ecode6)) {
37457 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GenericDirCtrl" "', expected argument " "6"" of type '" "long""'");
37458 }
37459 arg6 = static_cast< long >(val6);
37460 }
37461 if (obj6) {
36ed4f51 37462 {
1bd55598
RD
37463 arg7 = wxString_in_helper(obj6);
37464 if (arg7 == NULL) SWIG_fail;
37465 temp7 = true;
36ed4f51 37466 }
1bd55598
RD
37467 }
37468 if (obj7) {
37469 ecode8 = SWIG_AsVal_int(obj7, &val8);
37470 if (!SWIG_IsOK(ecode8)) {
37471 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GenericDirCtrl" "', expected argument " "8"" of type '" "int""'");
37472 }
37473 arg8 = static_cast< int >(val8);
37474 }
37475 if (obj8) {
d55e5bfc 37476 {
1bd55598
RD
37477 arg9 = wxString_in_helper(obj8);
37478 if (arg9 == NULL) SWIG_fail;
37479 temp9 = true;
d55e5bfc 37480 }
1bd55598
RD
37481 }
37482 {
37483 if (!wxPyCheckForApp()) SWIG_fail;
37484 PyThreadState* __tstate = wxPyBeginAllowThreads();
37485 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
37486 wxPyEndAllowThreads(__tstate);
37487 if (PyErr_Occurred()) SWIG_fail;
37488 }
37489 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_NEW | 0 );
37490 {
37491 if (temp3)
37492 delete arg3;
37493 }
37494 {
37495 if (temp7)
37496 delete arg7;
37497 }
37498 {
37499 if (temp9)
37500 delete arg9;
37501 }
37502 return resultobj;
37503fail:
37504 {
37505 if (temp3)
37506 delete arg3;
37507 }
37508 {
37509 if (temp7)
37510 delete arg7;
37511 }
37512 {
37513 if (temp9)
37514 delete arg9;
37515 }
37516 return NULL;
d55e5bfc
RD
37517}
37518
37519
1bd55598
RD
37520SWIGINTERN PyObject *_wrap_new_PreGenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37521 PyObject *resultobj = 0;
37522 wxGenericDirCtrl *result = 0 ;
37523
37524 if (!SWIG_Python_UnpackTuple(args,"new_PreGenericDirCtrl",0,0,0)) SWIG_fail;
37525 {
37526 if (!wxPyCheckForApp()) SWIG_fail;
37527 PyThreadState* __tstate = wxPyBeginAllowThreads();
37528 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
37529 wxPyEndAllowThreads(__tstate);
37530 if (PyErr_Occurred()) SWIG_fail;
37531 }
37532 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_OWN | 0 );
37533 return resultobj;
37534fail:
37535 return NULL;
37536}
37537
37538
37539SWIGINTERN PyObject *_wrap_GenericDirCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37540 PyObject *resultobj = 0;
37541 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37542 wxWindow *arg2 = (wxWindow *) 0 ;
37543 int arg3 = (int) (int)-1 ;
37544 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
37545 wxString *arg4 = (wxString *) &arg4_defvalue ;
37546 wxPoint const &arg5_defvalue = wxDefaultPosition ;
37547 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
37548 wxSize const &arg6_defvalue = wxDefaultSize ;
37549 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
37550 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37551 wxString const &arg8_defvalue = wxPyEmptyString ;
37552 wxString *arg8 = (wxString *) &arg8_defvalue ;
37553 int arg9 = (int) 0 ;
37554 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
37555 wxString *arg10 = (wxString *) &arg10_defvalue ;
37556 bool result;
37557 void *argp1 = 0 ;
37558 int res1 = 0 ;
37559 void *argp2 = 0 ;
37560 int res2 = 0 ;
37561 int val3 ;
37562 int ecode3 = 0 ;
37563 bool temp4 = false ;
37564 wxPoint temp5 ;
37565 wxSize temp6 ;
37566 long val7 ;
37567 int ecode7 = 0 ;
37568 bool temp8 = false ;
37569 int val9 ;
37570 int ecode9 = 0 ;
37571 bool temp10 = false ;
37572 PyObject * obj0 = 0 ;
37573 PyObject * obj1 = 0 ;
37574 PyObject * obj2 = 0 ;
37575 PyObject * obj3 = 0 ;
37576 PyObject * obj4 = 0 ;
37577 PyObject * obj5 = 0 ;
37578 PyObject * obj6 = 0 ;
37579 PyObject * obj7 = 0 ;
37580 PyObject * obj8 = 0 ;
37581 PyObject * obj9 = 0 ;
37582 char * kwnames[] = {
37583 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37584 };
37585
37586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
37587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37588 if (!SWIG_IsOK(res1)) {
37589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_Create" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37590 }
37591 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37592 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
37593 if (!SWIG_IsOK(res2)) {
37594 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
37595 }
37596 arg2 = reinterpret_cast< wxWindow * >(argp2);
37597 if (obj2) {
37598 ecode3 = SWIG_AsVal_int(obj2, &val3);
37599 if (!SWIG_IsOK(ecode3)) {
37600 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GenericDirCtrl_Create" "', expected argument " "3"" of type '" "int""'");
37601 }
37602 arg3 = static_cast< int >(val3);
37603 }
37604 if (obj3) {
36ed4f51 37605 {
1bd55598
RD
37606 arg4 = wxString_in_helper(obj3);
37607 if (arg4 == NULL) SWIG_fail;
37608 temp4 = true;
36ed4f51 37609 }
1bd55598
RD
37610 }
37611 if (obj4) {
36ed4f51 37612 {
1bd55598
RD
37613 arg5 = &temp5;
37614 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 37615 }
1bd55598
RD
37616 }
37617 if (obj5) {
d55e5bfc 37618 {
1bd55598
RD
37619 arg6 = &temp6;
37620 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 37621 }
1bd55598
RD
37622 }
37623 if (obj6) {
37624 ecode7 = SWIG_AsVal_long(obj6, &val7);
37625 if (!SWIG_IsOK(ecode7)) {
37626 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GenericDirCtrl_Create" "', expected argument " "7"" of type '" "long""'");
37627 }
37628 arg7 = static_cast< long >(val7);
37629 }
37630 if (obj7) {
d55e5bfc 37631 {
1bd55598
RD
37632 arg8 = wxString_in_helper(obj7);
37633 if (arg8 == NULL) SWIG_fail;
37634 temp8 = true;
d55e5bfc 37635 }
1bd55598
RD
37636 }
37637 if (obj8) {
37638 ecode9 = SWIG_AsVal_int(obj8, &val9);
37639 if (!SWIG_IsOK(ecode9)) {
37640 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GenericDirCtrl_Create" "', expected argument " "9"" of type '" "int""'");
37641 }
37642 arg9 = static_cast< int >(val9);
37643 }
37644 if (obj9) {
36ed4f51 37645 {
1bd55598
RD
37646 arg10 = wxString_in_helper(obj9);
37647 if (arg10 == NULL) SWIG_fail;
37648 temp10 = true;
36ed4f51 37649 }
1bd55598
RD
37650 }
37651 {
37652 PyThreadState* __tstate = wxPyBeginAllowThreads();
37653 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
37654 wxPyEndAllowThreads(__tstate);
37655 if (PyErr_Occurred()) SWIG_fail;
37656 }
37657 {
37658 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37659 }
37660 {
37661 if (temp4)
37662 delete arg4;
37663 }
37664 {
37665 if (temp8)
37666 delete arg8;
37667 }
37668 {
37669 if (temp10)
37670 delete arg10;
37671 }
37672 return resultobj;
37673fail:
37674 {
37675 if (temp4)
37676 delete arg4;
37677 }
37678 {
37679 if (temp8)
37680 delete arg8;
37681 }
37682 {
37683 if (temp10)
37684 delete arg10;
37685 }
37686 return NULL;
37687}
37688
37689
37690SWIGINTERN PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37691 PyObject *resultobj = 0;
37692 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37693 wxString *arg2 = 0 ;
37694 bool result;
37695 void *argp1 = 0 ;
37696 int res1 = 0 ;
37697 bool temp2 = false ;
37698 PyObject * obj0 = 0 ;
37699 PyObject * obj1 = 0 ;
37700 char * kwnames[] = {
37701 (char *) "self",(char *) "path", NULL
37702 };
37703
37704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) SWIG_fail;
37705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37706 if (!SWIG_IsOK(res1)) {
37707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ExpandPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37708 }
37709 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37710 {
37711 arg2 = wxString_in_helper(obj1);
37712 if (arg2 == NULL) SWIG_fail;
37713 temp2 = true;
37714 }
37715 {
37716 PyThreadState* __tstate = wxPyBeginAllowThreads();
37717 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
37718 wxPyEndAllowThreads(__tstate);
37719 if (PyErr_Occurred()) SWIG_fail;
37720 }
37721 {
37722 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37723 }
37724 {
37725 if (temp2)
37726 delete arg2;
37727 }
37728 return resultobj;
37729fail:
37730 {
37731 if (temp2)
37732 delete arg2;
37733 }
37734 return NULL;
d55e5bfc
RD
37735}
37736
37737
704eda0c
RD
37738SWIGINTERN PyObject *_wrap_GenericDirCtrl_CollapsePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37739 PyObject *resultobj = 0;
37740 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37741 wxString *arg2 = 0 ;
37742 bool result;
37743 void *argp1 = 0 ;
37744 int res1 = 0 ;
37745 bool temp2 = false ;
37746 PyObject * obj0 = 0 ;
37747 PyObject * obj1 = 0 ;
37748 char * kwnames[] = {
37749 (char *) "self",(char *) "path", NULL
37750 };
37751
37752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_CollapsePath",kwnames,&obj0,&obj1)) SWIG_fail;
37753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37754 if (!SWIG_IsOK(res1)) {
37755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_CollapsePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37756 }
37757 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37758 {
37759 arg2 = wxString_in_helper(obj1);
37760 if (arg2 == NULL) SWIG_fail;
37761 temp2 = true;
37762 }
37763 {
37764 PyThreadState* __tstate = wxPyBeginAllowThreads();
37765 result = (bool)(arg1)->CollapsePath((wxString const &)*arg2);
37766 wxPyEndAllowThreads(__tstate);
37767 if (PyErr_Occurred()) SWIG_fail;
37768 }
37769 {
37770 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37771 }
37772 {
37773 if (temp2)
37774 delete arg2;
37775 }
37776 return resultobj;
37777fail:
37778 {
37779 if (temp2)
37780 delete arg2;
37781 }
37782 return NULL;
37783}
37784
37785
1bd55598
RD
37786SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37787 PyObject *resultobj = 0;
37788 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37789 wxString result;
37790 void *argp1 = 0 ;
37791 int res1 = 0 ;
37792 PyObject *swig_obj[1] ;
37793
37794 if (!args) SWIG_fail;
37795 swig_obj[0] = args;
37796 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37797 if (!SWIG_IsOK(res1)) {
37798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37799 }
37800 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37801 {
37802 PyThreadState* __tstate = wxPyBeginAllowThreads();
37803 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
37804 wxPyEndAllowThreads(__tstate);
37805 if (PyErr_Occurred()) SWIG_fail;
37806 }
37807 {
37808#if wxUSE_UNICODE
37809 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37810#else
37811 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37812#endif
37813 }
37814 return resultobj;
37815fail:
37816 return NULL;
37817}
37818
37819
37820SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37821 PyObject *resultobj = 0;
37822 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37823 wxString *arg2 = 0 ;
37824 void *argp1 = 0 ;
37825 int res1 = 0 ;
37826 bool temp2 = false ;
37827 PyObject * obj0 = 0 ;
37828 PyObject * obj1 = 0 ;
37829 char * kwnames[] = {
37830 (char *) "self",(char *) "path", NULL
37831 };
37832
37833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) SWIG_fail;
37834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37835 if (!SWIG_IsOK(res1)) {
37836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37837 }
37838 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37839 {
37840 arg2 = wxString_in_helper(obj1);
37841 if (arg2 == NULL) SWIG_fail;
37842 temp2 = true;
37843 }
37844 {
37845 PyThreadState* __tstate = wxPyBeginAllowThreads();
37846 (arg1)->SetDefaultPath((wxString const &)*arg2);
37847 wxPyEndAllowThreads(__tstate);
37848 if (PyErr_Occurred()) SWIG_fail;
37849 }
37850 resultobj = SWIG_Py_Void();
37851 {
37852 if (temp2)
37853 delete arg2;
37854 }
37855 return resultobj;
37856fail:
37857 {
37858 if (temp2)
37859 delete arg2;
37860 }
37861 return NULL;
d55e5bfc
RD
37862}
37863
37864
1bd55598
RD
37865SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37866 PyObject *resultobj = 0;
37867 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37868 wxString result;
37869 void *argp1 = 0 ;
37870 int res1 = 0 ;
37871 PyObject *swig_obj[1] ;
37872
37873 if (!args) SWIG_fail;
37874 swig_obj[0] = args;
37875 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37876 if (!SWIG_IsOK(res1)) {
37877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37878 }
37879 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37880 {
37881 PyThreadState* __tstate = wxPyBeginAllowThreads();
37882 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
37883 wxPyEndAllowThreads(__tstate);
37884 if (PyErr_Occurred()) SWIG_fail;
37885 }
37886 {
37887#if wxUSE_UNICODE
37888 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37889#else
37890 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37891#endif
37892 }
37893 return resultobj;
37894fail:
37895 return NULL;
d55e5bfc
RD
37896}
37897
37898
1bd55598
RD
37899SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37900 PyObject *resultobj = 0;
37901 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37902 wxString result;
37903 void *argp1 = 0 ;
37904 int res1 = 0 ;
37905 PyObject *swig_obj[1] ;
37906
37907 if (!args) SWIG_fail;
37908 swig_obj[0] = args;
37909 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37910 if (!SWIG_IsOK(res1)) {
37911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37912 }
37913 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37914 {
37915 PyThreadState* __tstate = wxPyBeginAllowThreads();
37916 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
37917 wxPyEndAllowThreads(__tstate);
37918 if (PyErr_Occurred()) SWIG_fail;
37919 }
37920 {
37921#if wxUSE_UNICODE
37922 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37923#else
37924 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37925#endif
37926 }
37927 return resultobj;
37928fail:
37929 return NULL;
37930}
37931
37932
37933SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37934 PyObject *resultobj = 0;
37935 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37936 wxString *arg2 = 0 ;
37937 void *argp1 = 0 ;
37938 int res1 = 0 ;
37939 bool temp2 = false ;
37940 PyObject * obj0 = 0 ;
37941 PyObject * obj1 = 0 ;
37942 char * kwnames[] = {
37943 (char *) "self",(char *) "path", NULL
37944 };
37945
37946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
37947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37948 if (!SWIG_IsOK(res1)) {
37949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37950 }
37951 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37952 {
37953 arg2 = wxString_in_helper(obj1);
37954 if (arg2 == NULL) SWIG_fail;
37955 temp2 = true;
37956 }
37957 {
37958 PyThreadState* __tstate = wxPyBeginAllowThreads();
37959 (arg1)->SetPath((wxString const &)*arg2);
37960 wxPyEndAllowThreads(__tstate);
37961 if (PyErr_Occurred()) SWIG_fail;
37962 }
37963 resultobj = SWIG_Py_Void();
37964 {
37965 if (temp2)
37966 delete arg2;
37967 }
37968 return resultobj;
37969fail:
37970 {
37971 if (temp2)
37972 delete arg2;
37973 }
37974 return NULL;
37975}
37976
37977
37978SWIGINTERN PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37979 PyObject *resultobj = 0;
37980 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37981 bool arg2 ;
37982 void *argp1 = 0 ;
37983 int res1 = 0 ;
37984 bool val2 ;
37985 int ecode2 = 0 ;
37986 PyObject * obj0 = 0 ;
37987 PyObject * obj1 = 0 ;
37988 char * kwnames[] = {
37989 (char *) "self",(char *) "show", NULL
37990 };
37991
37992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) SWIG_fail;
37993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37994 if (!SWIG_IsOK(res1)) {
37995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37996 }
37997 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37998 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37999 if (!SWIG_IsOK(ecode2)) {
38000 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "2"" of type '" "bool""'");
38001 }
38002 arg2 = static_cast< bool >(val2);
38003 {
38004 PyThreadState* __tstate = wxPyBeginAllowThreads();
38005 (arg1)->ShowHidden(arg2);
38006 wxPyEndAllowThreads(__tstate);
38007 if (PyErr_Occurred()) SWIG_fail;
38008 }
38009 resultobj = SWIG_Py_Void();
38010 return resultobj;
38011fail:
38012 return NULL;
d55e5bfc
RD
38013}
38014
38015
1bd55598
RD
38016SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38017 PyObject *resultobj = 0;
38018 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38019 bool result;
38020 void *argp1 = 0 ;
38021 int res1 = 0 ;
38022 PyObject *swig_obj[1] ;
38023
38024 if (!args) SWIG_fail;
38025 swig_obj[0] = args;
38026 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38027 if (!SWIG_IsOK(res1)) {
38028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38029 }
38030 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38031 {
38032 PyThreadState* __tstate = wxPyBeginAllowThreads();
38033 result = (bool)(arg1)->GetShowHidden();
38034 wxPyEndAllowThreads(__tstate);
38035 if (PyErr_Occurred()) SWIG_fail;
38036 }
38037 {
38038 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38039 }
38040 return resultobj;
38041fail:
38042 return NULL;
d55e5bfc
RD
38043}
38044
38045
1bd55598
RD
38046SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38047 PyObject *resultobj = 0;
38048 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38049 wxString result;
38050 void *argp1 = 0 ;
38051 int res1 = 0 ;
38052 PyObject *swig_obj[1] ;
38053
38054 if (!args) SWIG_fail;
38055 swig_obj[0] = args;
38056 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38057 if (!SWIG_IsOK(res1)) {
38058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38059 }
38060 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38061 {
38062 PyThreadState* __tstate = wxPyBeginAllowThreads();
38063 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
38064 wxPyEndAllowThreads(__tstate);
38065 if (PyErr_Occurred()) SWIG_fail;
38066 }
38067 {
38068#if wxUSE_UNICODE
38069 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38070#else
38071 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38072#endif
38073 }
38074 return resultobj;
38075fail:
38076 return NULL;
38077}
38078
38079
38080SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38081 PyObject *resultobj = 0;
38082 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38083 wxString *arg2 = 0 ;
38084 void *argp1 = 0 ;
38085 int res1 = 0 ;
38086 bool temp2 = false ;
38087 PyObject * obj0 = 0 ;
38088 PyObject * obj1 = 0 ;
38089 char * kwnames[] = {
38090 (char *) "self",(char *) "filter", NULL
38091 };
38092
38093 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) SWIG_fail;
38094 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38095 if (!SWIG_IsOK(res1)) {
38096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38097 }
38098 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38099 {
38100 arg2 = wxString_in_helper(obj1);
38101 if (arg2 == NULL) SWIG_fail;
38102 temp2 = true;
38103 }
38104 {
38105 PyThreadState* __tstate = wxPyBeginAllowThreads();
38106 (arg1)->SetFilter((wxString const &)*arg2);
38107 wxPyEndAllowThreads(__tstate);
38108 if (PyErr_Occurred()) SWIG_fail;
38109 }
38110 resultobj = SWIG_Py_Void();
38111 {
38112 if (temp2)
38113 delete arg2;
38114 }
38115 return resultobj;
38116fail:
38117 {
38118 if (temp2)
38119 delete arg2;
38120 }
38121 return NULL;
d55e5bfc
RD
38122}
38123
38124
1bd55598
RD
38125SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38126 PyObject *resultobj = 0;
38127 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38128 int result;
38129 void *argp1 = 0 ;
38130 int res1 = 0 ;
38131 PyObject *swig_obj[1] ;
38132
38133 if (!args) SWIG_fail;
38134 swig_obj[0] = args;
38135 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38136 if (!SWIG_IsOK(res1)) {
38137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38138 }
38139 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38140 {
38141 PyThreadState* __tstate = wxPyBeginAllowThreads();
38142 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
38143 wxPyEndAllowThreads(__tstate);
38144 if (PyErr_Occurred()) SWIG_fail;
38145 }
38146 resultobj = SWIG_From_int(static_cast< int >(result));
38147 return resultobj;
38148fail:
38149 return NULL;
38150}
38151
38152
38153SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38154 PyObject *resultobj = 0;
38155 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38156 int arg2 ;
38157 void *argp1 = 0 ;
38158 int res1 = 0 ;
38159 int val2 ;
38160 int ecode2 = 0 ;
38161 PyObject * obj0 = 0 ;
38162 PyObject * obj1 = 0 ;
38163 char * kwnames[] = {
38164 (char *) "self",(char *) "n", NULL
38165 };
38166
38167 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail;
38168 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38169 if (!SWIG_IsOK(res1)) {
38170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38171 }
38172 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38173 ecode2 = SWIG_AsVal_int(obj1, &val2);
38174 if (!SWIG_IsOK(ecode2)) {
38175 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "2"" of type '" "int""'");
38176 }
38177 arg2 = static_cast< int >(val2);
38178 {
38179 PyThreadState* __tstate = wxPyBeginAllowThreads();
38180 (arg1)->SetFilterIndex(arg2);
38181 wxPyEndAllowThreads(__tstate);
38182 if (PyErr_Occurred()) SWIG_fail;
38183 }
38184 resultobj = SWIG_Py_Void();
38185 return resultobj;
38186fail:
38187 return NULL;
d55e5bfc
RD
38188}
38189
38190
1bd55598
RD
38191SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38192 PyObject *resultobj = 0;
38193 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38194 wxTreeItemId result;
38195 void *argp1 = 0 ;
38196 int res1 = 0 ;
38197 PyObject *swig_obj[1] ;
38198
38199 if (!args) SWIG_fail;
38200 swig_obj[0] = args;
38201 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38202 if (!SWIG_IsOK(res1)) {
38203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetRootId" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38204 }
38205 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38206 {
38207 PyThreadState* __tstate = wxPyBeginAllowThreads();
38208 result = (arg1)->GetRootId();
38209 wxPyEndAllowThreads(__tstate);
38210 if (PyErr_Occurred()) SWIG_fail;
38211 }
38212 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38213 return resultobj;
38214fail:
38215 return NULL;
d55e5bfc
RD
38216}
38217
38218
1bd55598
RD
38219SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38220 PyObject *resultobj = 0;
38221 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38222 wxPyTreeCtrl *result = 0 ;
38223 void *argp1 = 0 ;
38224 int res1 = 0 ;
38225 PyObject *swig_obj[1] ;
38226
38227 if (!args) SWIG_fail;
38228 swig_obj[0] = args;
38229 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38230 if (!SWIG_IsOK(res1)) {
38231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetTreeCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38232 }
38233 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38234 {
38235 PyThreadState* __tstate = wxPyBeginAllowThreads();
38236 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
38237 wxPyEndAllowThreads(__tstate);
38238 if (PyErr_Occurred()) SWIG_fail;
38239 }
38240 {
38241 resultobj = wxPyMake_wxObject(result, 0);
38242 }
38243 return resultobj;
38244fail:
38245 return NULL;
d55e5bfc
RD
38246}
38247
38248
1bd55598
RD
38249SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38250 PyObject *resultobj = 0;
38251 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38252 wxDirFilterListCtrl *result = 0 ;
38253 void *argp1 = 0 ;
38254 int res1 = 0 ;
38255 PyObject *swig_obj[1] ;
38256
38257 if (!args) SWIG_fail;
38258 swig_obj[0] = args;
38259 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38260 if (!SWIG_IsOK(res1)) {
38261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38262 }
38263 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38264 {
38265 PyThreadState* __tstate = wxPyBeginAllowThreads();
38266 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
38267 wxPyEndAllowThreads(__tstate);
38268 if (PyErr_Occurred()) SWIG_fail;
38269 }
38270 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38271 return resultobj;
38272fail:
38273 return NULL;
38274}
38275
38276
38277SWIGINTERN PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38278 PyObject *resultobj = 0;
38279 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38280 wxTreeItemId arg2 ;
38281 wxString *arg3 = 0 ;
38282 bool *arg4 = 0 ;
38283 wxTreeItemId result;
38284 void *argp1 = 0 ;
38285 int res1 = 0 ;
38286 void *argp2 ;
38287 int res2 = 0 ;
38288 bool temp3 = false ;
38289 bool temp4 ;
38290 int res4 = SWIG_TMPOBJ ;
38291 PyObject * obj0 = 0 ;
38292 PyObject * obj1 = 0 ;
38293 PyObject * obj2 = 0 ;
38294 char * kwnames[] = {
38295 (char *) "self",(char *) "parentId",(char *) "path", NULL
38296 };
38297
38298 arg4 = &temp4;
38299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38300 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38301 if (!SWIG_IsOK(res1)) {
38302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38303 }
38304 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38305 {
38306 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
38307 if (!SWIG_IsOK(res2)) {
38308 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38309 }
38310 if (!argp2) {
38311 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38312 } else {
38313 wxTreeItemId * temp = reinterpret_cast< wxTreeItemId * >(argp2);
38314 arg2 = *temp;
38315 if (SWIG_IsNewObj(res2)) delete temp;
d55e5bfc 38316 }
1bd55598
RD
38317 }
38318 {
38319 arg3 = wxString_in_helper(obj2);
38320 if (arg3 == NULL) SWIG_fail;
38321 temp3 = true;
38322 }
38323 {
38324 PyThreadState* __tstate = wxPyBeginAllowThreads();
38325 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
38326 wxPyEndAllowThreads(__tstate);
38327 if (PyErr_Occurred()) SWIG_fail;
38328 }
38329 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38330 if (SWIG_IsTmpObj(res4)) {
38331 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4)));
38332 } else {
38333 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38334 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags));
38335 }
38336 {
38337 if (temp3)
38338 delete arg3;
38339 }
38340 return resultobj;
38341fail:
38342 {
38343 if (temp3)
38344 delete arg3;
38345 }
38346 return NULL;
d55e5bfc
RD
38347}
38348
38349
1bd55598
RD
38350SWIGINTERN PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38351 PyObject *resultobj = 0;
38352 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38353 void *argp1 = 0 ;
38354 int res1 = 0 ;
38355 PyObject *swig_obj[1] ;
38356
38357 if (!args) SWIG_fail;
38358 swig_obj[0] = args;
38359 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38360 if (!SWIG_IsOK(res1)) {
38361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_DoResize" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38362 }
38363 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38364 {
38365 PyThreadState* __tstate = wxPyBeginAllowThreads();
38366 (arg1)->DoResize();
38367 wxPyEndAllowThreads(__tstate);
38368 if (PyErr_Occurred()) SWIG_fail;
38369 }
38370 resultobj = SWIG_Py_Void();
38371 return resultobj;
38372fail:
38373 return NULL;
38374}
38375
38376
38377SWIGINTERN PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38378 PyObject *resultobj = 0;
38379 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38380 void *argp1 = 0 ;
38381 int res1 = 0 ;
38382 PyObject *swig_obj[1] ;
38383
38384 if (!args) SWIG_fail;
38385 swig_obj[0] = args;
38386 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38387 if (!SWIG_IsOK(res1)) {
38388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ReCreateTree" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38389 }
38390 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38391 {
38392 PyThreadState* __tstate = wxPyBeginAllowThreads();
38393 (arg1)->ReCreateTree();
38394 wxPyEndAllowThreads(__tstate);
38395 if (PyErr_Occurred()) SWIG_fail;
38396 }
38397 resultobj = SWIG_Py_Void();
38398 return resultobj;
38399fail:
38400 return NULL;
38401}
38402
38403
38404SWIGINTERN PyObject *GenericDirCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38405 PyObject *obj;
38406 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38407 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDirCtrl, SWIG_NewClientData(obj));
38408 return SWIG_Py_Void();
38409}
38410
38411SWIGINTERN PyObject *GenericDirCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38412 return SWIG_Python_InitShadowInstance(args);
38413}
38414
38415SWIGINTERN PyObject *_wrap_new_DirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38416 PyObject *resultobj = 0;
38417 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38418 int arg2 = (int) (int)-1 ;
38419 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38420 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38421 wxSize const &arg4_defvalue = wxDefaultSize ;
38422 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38423 long arg5 = (long) 0 ;
38424 wxDirFilterListCtrl *result = 0 ;
38425 void *argp1 = 0 ;
38426 int res1 = 0 ;
38427 int val2 ;
38428 int ecode2 = 0 ;
38429 wxPoint temp3 ;
38430 wxSize temp4 ;
38431 long val5 ;
38432 int ecode5 = 0 ;
38433 PyObject * obj0 = 0 ;
38434 PyObject * obj1 = 0 ;
38435 PyObject * obj2 = 0 ;
38436 PyObject * obj3 = 0 ;
38437 PyObject * obj4 = 0 ;
38438 char * kwnames[] = {
38439 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38440 };
38441
38442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38444 if (!SWIG_IsOK(res1)) {
38445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38446 }
38447 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38448 if (obj1) {
38449 ecode2 = SWIG_AsVal_int(obj1, &val2);
38450 if (!SWIG_IsOK(ecode2)) {
38451 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirFilterListCtrl" "', expected argument " "2"" of type '" "int""'");
38452 }
38453 arg2 = static_cast< int >(val2);
38454 }
38455 if (obj2) {
d55e5bfc 38456 {
1bd55598
RD
38457 arg3 = &temp3;
38458 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 38459 }
1bd55598
RD
38460 }
38461 if (obj3) {
d55e5bfc 38462 {
1bd55598
RD
38463 arg4 = &temp4;
38464 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 38465 }
1bd55598
RD
38466 }
38467 if (obj4) {
38468 ecode5 = SWIG_AsVal_long(obj4, &val5);
38469 if (!SWIG_IsOK(ecode5)) {
38470 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DirFilterListCtrl" "', expected argument " "5"" of type '" "long""'");
38471 }
38472 arg5 = static_cast< long >(val5);
38473 }
38474 {
38475 if (!wxPyCheckForApp()) SWIG_fail;
38476 PyThreadState* __tstate = wxPyBeginAllowThreads();
38477 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
38478 wxPyEndAllowThreads(__tstate);
38479 if (PyErr_Occurred()) SWIG_fail;
38480 }
38481 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_NEW | 0 );
38482 return resultobj;
38483fail:
38484 return NULL;
d55e5bfc
RD
38485}
38486
38487
1bd55598
RD
38488SWIGINTERN PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38489 PyObject *resultobj = 0;
38490 wxDirFilterListCtrl *result = 0 ;
38491
38492 if (!SWIG_Python_UnpackTuple(args,"new_PreDirFilterListCtrl",0,0,0)) SWIG_fail;
38493 {
38494 if (!wxPyCheckForApp()) SWIG_fail;
38495 PyThreadState* __tstate = wxPyBeginAllowThreads();
38496 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
38497 wxPyEndAllowThreads(__tstate);
38498 if (PyErr_Occurred()) SWIG_fail;
38499 }
38500 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_OWN | 0 );
38501 return resultobj;
38502fail:
38503 return NULL;
38504}
38505
38506
38507SWIGINTERN PyObject *_wrap_DirFilterListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38508 PyObject *resultobj = 0;
38509 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38510 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
38511 int arg3 = (int) (int)-1 ;
38512 wxPoint const &arg4_defvalue = wxDefaultPosition ;
38513 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
38514 wxSize const &arg5_defvalue = wxDefaultSize ;
38515 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
38516 long arg6 = (long) 0 ;
38517 bool result;
38518 void *argp1 = 0 ;
38519 int res1 = 0 ;
38520 void *argp2 = 0 ;
38521 int res2 = 0 ;
38522 int val3 ;
38523 int ecode3 = 0 ;
38524 wxPoint temp4 ;
38525 wxSize temp5 ;
38526 long val6 ;
38527 int ecode6 = 0 ;
38528 PyObject * obj0 = 0 ;
38529 PyObject * obj1 = 0 ;
38530 PyObject * obj2 = 0 ;
38531 PyObject * obj3 = 0 ;
38532 PyObject * obj4 = 0 ;
38533 PyObject * obj5 = 0 ;
38534 char * kwnames[] = {
38535 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38536 };
38537
38538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38539 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38540 if (!SWIG_IsOK(res1)) {
38541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_Create" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38542 }
38543 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38544 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38545 if (!SWIG_IsOK(res2)) {
38546 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirFilterListCtrl_Create" "', expected argument " "2"" of type '" "wxGenericDirCtrl *""'");
38547 }
38548 arg2 = reinterpret_cast< wxGenericDirCtrl * >(argp2);
38549 if (obj2) {
38550 ecode3 = SWIG_AsVal_int(obj2, &val3);
38551 if (!SWIG_IsOK(ecode3)) {
38552 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
38553 }
38554 arg3 = static_cast< int >(val3);
38555 }
38556 if (obj3) {
36ed4f51 38557 {
1bd55598
RD
38558 arg4 = &temp4;
38559 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36ed4f51 38560 }
1bd55598
RD
38561 }
38562 if (obj4) {
36ed4f51 38563 {
1bd55598
RD
38564 arg5 = &temp5;
38565 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 38566 }
1bd55598
RD
38567 }
38568 if (obj5) {
38569 ecode6 = SWIG_AsVal_long(obj5, &val6);
38570 if (!SWIG_IsOK(ecode6)) {
38571 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DirFilterListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
38572 }
38573 arg6 = static_cast< long >(val6);
38574 }
38575 {
38576 PyThreadState* __tstate = wxPyBeginAllowThreads();
38577 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
38578 wxPyEndAllowThreads(__tstate);
38579 if (PyErr_Occurred()) SWIG_fail;
38580 }
38581 {
38582 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38583 }
38584 return resultobj;
38585fail:
38586 return NULL;
38587}
38588
38589
38590SWIGINTERN PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38591 PyObject *resultobj = 0;
38592 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38593 wxString *arg2 = 0 ;
38594 int arg3 ;
38595 void *argp1 = 0 ;
38596 int res1 = 0 ;
38597 bool temp2 = false ;
38598 int val3 ;
38599 int ecode3 = 0 ;
38600 PyObject * obj0 = 0 ;
38601 PyObject * obj1 = 0 ;
38602 PyObject * obj2 = 0 ;
38603 char * kwnames[] = {
38604 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
38605 };
38606
38607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38609 if (!SWIG_IsOK(res1)) {
38610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38611 }
38612 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38613 {
38614 arg2 = wxString_in_helper(obj1);
38615 if (arg2 == NULL) SWIG_fail;
38616 temp2 = true;
38617 }
38618 ecode3 = SWIG_AsVal_int(obj2, &val3);
38619 if (!SWIG_IsOK(ecode3)) {
38620 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "3"" of type '" "int""'");
38621 }
38622 arg3 = static_cast< int >(val3);
38623 {
38624 PyThreadState* __tstate = wxPyBeginAllowThreads();
38625 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
38626 wxPyEndAllowThreads(__tstate);
38627 if (PyErr_Occurred()) SWIG_fail;
38628 }
38629 resultobj = SWIG_Py_Void();
38630 {
38631 if (temp2)
38632 delete arg2;
38633 }
38634 return resultobj;
38635fail:
38636 {
38637 if (temp2)
38638 delete arg2;
38639 }
38640 return NULL;
38641}
38642
38643
38644SWIGINTERN PyObject *DirFilterListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38645 PyObject *obj;
38646 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38647 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirFilterListCtrl, SWIG_NewClientData(obj));
38648 return SWIG_Py_Void();
38649}
38650
38651SWIGINTERN PyObject *DirFilterListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38652 return SWIG_Python_InitShadowInstance(args);
38653}
38654
38655SWIGINTERN PyObject *_wrap_new_PyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38656 PyObject *resultobj = 0;
38657 wxWindow *arg1 = (wxWindow *) 0 ;
38658 int arg2 = (int) (int)-1 ;
38659 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38660 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38661 wxSize const &arg4_defvalue = wxDefaultSize ;
38662 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38663 long arg5 = (long) 0 ;
38664 wxValidator const &arg6_defvalue = wxDefaultValidator ;
38665 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
38666 wxString const &arg7_defvalue = wxPyControlNameStr ;
38667 wxString *arg7 = (wxString *) &arg7_defvalue ;
38668 wxPyControl *result = 0 ;
38669 void *argp1 = 0 ;
38670 int res1 = 0 ;
38671 int val2 ;
38672 int ecode2 = 0 ;
38673 wxPoint temp3 ;
38674 wxSize temp4 ;
38675 long val5 ;
38676 int ecode5 = 0 ;
38677 void *argp6 = 0 ;
38678 int res6 = 0 ;
38679 bool temp7 = false ;
38680 PyObject * obj0 = 0 ;
38681 PyObject * obj1 = 0 ;
38682 PyObject * obj2 = 0 ;
38683 PyObject * obj3 = 0 ;
38684 PyObject * obj4 = 0 ;
38685 PyObject * obj5 = 0 ;
38686 PyObject * obj6 = 0 ;
38687 char * kwnames[] = {
38688 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
38689 };
38690
38691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
38692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38693 if (!SWIG_IsOK(res1)) {
38694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyControl" "', expected argument " "1"" of type '" "wxWindow *""'");
38695 }
38696 arg1 = reinterpret_cast< wxWindow * >(argp1);
38697 if (obj1) {
38698 ecode2 = SWIG_AsVal_int(obj1, &val2);
38699 if (!SWIG_IsOK(ecode2)) {
38700 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyControl" "', expected argument " "2"" of type '" "int""'");
38701 }
38702 arg2 = static_cast< int >(val2);
38703 }
38704 if (obj2) {
d55e5bfc 38705 {
1bd55598
RD
38706 arg3 = &temp3;
38707 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 38708 }
1bd55598
RD
38709 }
38710 if (obj3) {
d55e5bfc 38711 {
1bd55598
RD
38712 arg4 = &temp4;
38713 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 38714 }
1bd55598
RD
38715 }
38716 if (obj4) {
38717 ecode5 = SWIG_AsVal_long(obj4, &val5);
38718 if (!SWIG_IsOK(ecode5)) {
38719 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyControl" "', expected argument " "5"" of type '" "long""'");
38720 }
38721 arg5 = static_cast< long >(val5);
38722 }
38723 if (obj5) {
38724 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
38725 if (!SWIG_IsOK(res6)) {
38726 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
f20a2e1f 38727 }
1bd55598
RD
38728 if (!argp6) {
38729 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
f20a2e1f 38730 }
1bd55598
RD
38731 arg6 = reinterpret_cast< wxValidator * >(argp6);
38732 }
38733 if (obj6) {
f20a2e1f 38734 {
1bd55598
RD
38735 arg7 = wxString_in_helper(obj6);
38736 if (arg7 == NULL) SWIG_fail;
38737 temp7 = true;
f20a2e1f 38738 }
1bd55598
RD
38739 }
38740 {
38741 if (!wxPyCheckForApp()) SWIG_fail;
38742 PyThreadState* __tstate = wxPyBeginAllowThreads();
38743 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
38744 wxPyEndAllowThreads(__tstate);
38745 if (PyErr_Occurred()) SWIG_fail;
38746 }
38747 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_NEW | 0 );
38748 {
38749 if (temp7)
38750 delete arg7;
38751 }
38752 return resultobj;
38753fail:
38754 {
38755 if (temp7)
38756 delete arg7;
38757 }
38758 return NULL;
d55e5bfc
RD
38759}
38760
38761
1bd55598
RD
38762SWIGINTERN PyObject *_wrap_new_PrePyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38763 PyObject *resultobj = 0;
38764 wxPyControl *result = 0 ;
38765
38766 if (!SWIG_Python_UnpackTuple(args,"new_PrePyControl",0,0,0)) SWIG_fail;
38767 {
38768 if (!wxPyCheckForApp()) SWIG_fail;
38769 PyThreadState* __tstate = wxPyBeginAllowThreads();
38770 result = (wxPyControl *)new wxPyControl();
38771 wxPyEndAllowThreads(__tstate);
38772 if (PyErr_Occurred()) SWIG_fail;
38773 }
38774 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_OWN | 0 );
38775 return resultobj;
38776fail:
38777 return NULL;
38778}
38779
38780
38781SWIGINTERN PyObject *_wrap_PyControl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38782 PyObject *resultobj = 0;
38783 wxPyControl *arg1 = (wxPyControl *) 0 ;
38784 PyObject *arg2 = (PyObject *) 0 ;
38785 PyObject *arg3 = (PyObject *) 0 ;
38786 void *argp1 = 0 ;
38787 int res1 = 0 ;
38788 PyObject * obj0 = 0 ;
38789 PyObject * obj1 = 0 ;
38790 PyObject * obj2 = 0 ;
38791 char * kwnames[] = {
38792 (char *) "self",(char *) "self",(char *) "_class", NULL
38793 };
38794
38795 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38796 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38797 if (!SWIG_IsOK(res1)) {
38798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyControl *""'");
38799 }
38800 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38801 arg2 = obj1;
38802 arg3 = obj2;
38803 {
38804 PyThreadState* __tstate = wxPyBeginAllowThreads();
38805 (arg1)->_setCallbackInfo(arg2,arg3);
38806 wxPyEndAllowThreads(__tstate);
38807 if (PyErr_Occurred()) SWIG_fail;
38808 }
38809 resultobj = SWIG_Py_Void();
38810 return resultobj;
38811fail:
38812 return NULL;
38813}
38814
38815
1bd55598
RD
38816SWIGINTERN PyObject *_wrap_PyControl_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38817 PyObject *resultobj = 0;
38818 wxPyControl *arg1 = (wxPyControl *) 0 ;
38819 wxDC *arg2 = (wxDC *) 0 ;
38820 bool result;
38821 void *argp1 = 0 ;
38822 int res1 = 0 ;
38823 void *argp2 = 0 ;
38824 int res2 = 0 ;
38825 PyObject * obj0 = 0 ;
38826 PyObject * obj1 = 0 ;
38827 char * kwnames[] = {
38828 (char *) "self",(char *) "dc", NULL
38829 };
38830
38831 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38832 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38833 if (!SWIG_IsOK(res1)) {
38834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyControl *""'");
38835 }
38836 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38837 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
38838 if (!SWIG_IsOK(res2)) {
38839 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyControl_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'");
38840 }
38841 arg2 = reinterpret_cast< wxDC * >(argp2);
38842 {
38843 PyThreadState* __tstate = wxPyBeginAllowThreads();
38844 result = (bool)(arg1)->DoEraseBackground(arg2);
38845 wxPyEndAllowThreads(__tstate);
38846 if (PyErr_Occurred()) SWIG_fail;
38847 }
38848 {
38849 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38850 }
38851 return resultobj;
38852fail:
38853 return NULL;
38854}
38855
38856
38857SWIGINTERN PyObject *_wrap_PyControl_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38858 PyObject *resultobj = 0;
38859 wxPyControl *arg1 = (wxPyControl *) 0 ;
38860 int arg2 ;
38861 int arg3 ;
38862 int arg4 ;
38863 int arg5 ;
38864 void *argp1 = 0 ;
38865 int res1 = 0 ;
38866 int val2 ;
38867 int ecode2 = 0 ;
38868 int val3 ;
38869 int ecode3 = 0 ;
38870 int val4 ;
38871 int ecode4 = 0 ;
38872 int val5 ;
38873 int ecode5 = 0 ;
38874 PyObject * obj0 = 0 ;
38875 PyObject * obj1 = 0 ;
38876 PyObject * obj2 = 0 ;
38877 PyObject * obj3 = 0 ;
38878 PyObject * obj4 = 0 ;
38879 char * kwnames[] = {
38880 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
38881 };
38882
38883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38885 if (!SWIG_IsOK(res1)) {
38886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyControl *""'");
38887 }
38888 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38889 ecode2 = SWIG_AsVal_int(obj1, &val2);
38890 if (!SWIG_IsOK(ecode2)) {
38891 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoMoveWindow" "', expected argument " "2"" of type '" "int""'");
38892 }
38893 arg2 = static_cast< int >(val2);
38894 ecode3 = SWIG_AsVal_int(obj2, &val3);
38895 if (!SWIG_IsOK(ecode3)) {
38896 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoMoveWindow" "', expected argument " "3"" of type '" "int""'");
38897 }
38898 arg3 = static_cast< int >(val3);
38899 ecode4 = SWIG_AsVal_int(obj3, &val4);
38900 if (!SWIG_IsOK(ecode4)) {
38901 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoMoveWindow" "', expected argument " "4"" of type '" "int""'");
38902 }
38903 arg4 = static_cast< int >(val4);
38904 ecode5 = SWIG_AsVal_int(obj4, &val5);
38905 if (!SWIG_IsOK(ecode5)) {
38906 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoMoveWindow" "', expected argument " "5"" of type '" "int""'");
38907 }
38908 arg5 = static_cast< int >(val5);
38909 {
38910 PyThreadState* __tstate = wxPyBeginAllowThreads();
38911 (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5);
38912 wxPyEndAllowThreads(__tstate);
38913 if (PyErr_Occurred()) SWIG_fail;
38914 }
38915 resultobj = SWIG_Py_Void();
38916 return resultobj;
38917fail:
38918 return NULL;
38919}
38920
38921
38922SWIGINTERN PyObject *_wrap_PyControl_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38923 PyObject *resultobj = 0;
38924 wxPyControl *arg1 = (wxPyControl *) 0 ;
38925 int arg2 ;
38926 int arg3 ;
38927 int arg4 ;
38928 int arg5 ;
38929 int arg6 = (int) wxSIZE_AUTO ;
38930 void *argp1 = 0 ;
38931 int res1 = 0 ;
38932 int val2 ;
38933 int ecode2 = 0 ;
38934 int val3 ;
38935 int ecode3 = 0 ;
38936 int val4 ;
38937 int ecode4 = 0 ;
38938 int val5 ;
38939 int ecode5 = 0 ;
38940 int val6 ;
38941 int ecode6 = 0 ;
38942 PyObject * obj0 = 0 ;
38943 PyObject * obj1 = 0 ;
38944 PyObject * obj2 = 0 ;
38945 PyObject * obj3 = 0 ;
38946 PyObject * obj4 = 0 ;
38947 PyObject * obj5 = 0 ;
38948 char * kwnames[] = {
38949 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
38950 };
38951
38952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38953 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38954 if (!SWIG_IsOK(res1)) {
38955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38956 }
38957 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38958 ecode2 = SWIG_AsVal_int(obj1, &val2);
38959 if (!SWIG_IsOK(ecode2)) {
38960 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetSize" "', expected argument " "2"" of type '" "int""'");
38961 }
38962 arg2 = static_cast< int >(val2);
38963 ecode3 = SWIG_AsVal_int(obj2, &val3);
38964 if (!SWIG_IsOK(ecode3)) {
38965 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetSize" "', expected argument " "3"" of type '" "int""'");
38966 }
38967 arg3 = static_cast< int >(val3);
38968 ecode4 = SWIG_AsVal_int(obj3, &val4);
38969 if (!SWIG_IsOK(ecode4)) {
38970 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoSetSize" "', expected argument " "4"" of type '" "int""'");
38971 }
38972 arg4 = static_cast< int >(val4);
38973 ecode5 = SWIG_AsVal_int(obj4, &val5);
38974 if (!SWIG_IsOK(ecode5)) {
38975 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoSetSize" "', expected argument " "5"" of type '" "int""'");
38976 }
38977 arg5 = static_cast< int >(val5);
38978 if (obj5) {
38979 ecode6 = SWIG_AsVal_int(obj5, &val6);
38980 if (!SWIG_IsOK(ecode6)) {
38981 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyControl_DoSetSize" "', expected argument " "6"" of type '" "int""'");
38982 }
38983 arg6 = static_cast< int >(val6);
38984 }
38985 {
38986 PyThreadState* __tstate = wxPyBeginAllowThreads();
38987 (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6);
38988 wxPyEndAllowThreads(__tstate);
38989 if (PyErr_Occurred()) SWIG_fail;
38990 }
38991 resultobj = SWIG_Py_Void();
38992 return resultobj;
38993fail:
38994 return NULL;
38995}
38996
38997
38998SWIGINTERN PyObject *_wrap_PyControl_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38999 PyObject *resultobj = 0;
39000 wxPyControl *arg1 = (wxPyControl *) 0 ;
39001 int arg2 ;
39002 int arg3 ;
39003 void *argp1 = 0 ;
39004 int res1 = 0 ;
39005 int val2 ;
39006 int ecode2 = 0 ;
39007 int val3 ;
39008 int ecode3 = 0 ;
39009 PyObject * obj0 = 0 ;
39010 PyObject * obj1 = 0 ;
39011 PyObject * obj2 = 0 ;
39012 char * kwnames[] = {
39013 (char *) "self",(char *) "width",(char *) "height", NULL
39014 };
39015
39016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39017 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39018 if (!SWIG_IsOK(res1)) {
39019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39020 }
39021 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39022 ecode2 = SWIG_AsVal_int(obj1, &val2);
39023 if (!SWIG_IsOK(ecode2)) {
39024 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetClientSize" "', expected argument " "2"" of type '" "int""'");
39025 }
39026 arg2 = static_cast< int >(val2);
39027 ecode3 = SWIG_AsVal_int(obj2, &val3);
39028 if (!SWIG_IsOK(ecode3)) {
39029 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetClientSize" "', expected argument " "3"" of type '" "int""'");
39030 }
39031 arg3 = static_cast< int >(val3);
39032 {
39033 PyThreadState* __tstate = wxPyBeginAllowThreads();
39034 (arg1)->DoSetClientSize(arg2,arg3);
39035 wxPyEndAllowThreads(__tstate);
39036 if (PyErr_Occurred()) SWIG_fail;
39037 }
39038 resultobj = SWIG_Py_Void();
39039 return resultobj;
39040fail:
39041 return NULL;
39042}
39043
39044
39045SWIGINTERN PyObject *_wrap_PyControl_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39046 PyObject *resultobj = 0;
39047 wxPyControl *arg1 = (wxPyControl *) 0 ;
39048 int arg2 ;
39049 int arg3 ;
39050 void *argp1 = 0 ;
39051 int res1 = 0 ;
39052 int val2 ;
39053 int ecode2 = 0 ;
39054 int val3 ;
39055 int ecode3 = 0 ;
39056 PyObject * obj0 = 0 ;
39057 PyObject * obj1 = 0 ;
39058 PyObject * obj2 = 0 ;
39059 char * kwnames[] = {
39060 (char *) "self",(char *) "x",(char *) "y", NULL
39061 };
39062
39063 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39064 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39065 if (!SWIG_IsOK(res1)) {
39066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39067 }
39068 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39069 ecode2 = SWIG_AsVal_int(obj1, &val2);
39070 if (!SWIG_IsOK(ecode2)) {
39071 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'");
39072 }
39073 arg2 = static_cast< int >(val2);
39074 ecode3 = SWIG_AsVal_int(obj2, &val3);
39075 if (!SWIG_IsOK(ecode3)) {
39076 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'");
39077 }
39078 arg3 = static_cast< int >(val3);
39079 {
39080 PyThreadState* __tstate = wxPyBeginAllowThreads();
39081 (arg1)->DoSetVirtualSize(arg2,arg3);
39082 wxPyEndAllowThreads(__tstate);
39083 if (PyErr_Occurred()) SWIG_fail;
39084 }
39085 resultobj = SWIG_Py_Void();
39086 return resultobj;
39087fail:
39088 return NULL;
39089}
39090
39091
39092SWIGINTERN PyObject *_wrap_PyControl_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39093 PyObject *resultobj = 0;
39094 wxPyControl *arg1 = (wxPyControl *) 0 ;
39095 int *arg2 = (int *) 0 ;
39096 int *arg3 = (int *) 0 ;
39097 void *argp1 = 0 ;
39098 int res1 = 0 ;
39099 int temp2 ;
39100 int res2 = SWIG_TMPOBJ ;
39101 int temp3 ;
39102 int res3 = SWIG_TMPOBJ ;
39103 PyObject *swig_obj[1] ;
39104
39105 arg2 = &temp2;
39106 arg3 = &temp3;
39107 if (!args) SWIG_fail;
39108 swig_obj[0] = args;
39109 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39110 if (!SWIG_IsOK(res1)) {
39111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39112 }
39113 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39114 {
39115 PyThreadState* __tstate = wxPyBeginAllowThreads();
39116 ((wxPyControl const *)arg1)->DoGetSize(arg2,arg3);
39117 wxPyEndAllowThreads(__tstate);
39118 if (PyErr_Occurred()) SWIG_fail;
39119 }
39120 resultobj = SWIG_Py_Void();
39121 if (SWIG_IsTmpObj(res2)) {
39122 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39123 } else {
39124 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39125 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39126 }
39127 if (SWIG_IsTmpObj(res3)) {
39128 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39129 } else {
39130 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39131 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39132 }
39133 return resultobj;
39134fail:
39135 return NULL;
39136}
39137
39138
39139SWIGINTERN PyObject *_wrap_PyControl_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39140 PyObject *resultobj = 0;
39141 wxPyControl *arg1 = (wxPyControl *) 0 ;
39142 int *arg2 = (int *) 0 ;
39143 int *arg3 = (int *) 0 ;
39144 void *argp1 = 0 ;
39145 int res1 = 0 ;
39146 int temp2 ;
39147 int res2 = SWIG_TMPOBJ ;
39148 int temp3 ;
39149 int res3 = SWIG_TMPOBJ ;
39150 PyObject *swig_obj[1] ;
39151
39152 arg2 = &temp2;
39153 arg3 = &temp3;
39154 if (!args) SWIG_fail;
39155 swig_obj[0] = args;
39156 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39157 if (!SWIG_IsOK(res1)) {
39158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39159 }
39160 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39161 {
39162 PyThreadState* __tstate = wxPyBeginAllowThreads();
39163 ((wxPyControl const *)arg1)->DoGetClientSize(arg2,arg3);
39164 wxPyEndAllowThreads(__tstate);
39165 if (PyErr_Occurred()) SWIG_fail;
39166 }
39167 resultobj = SWIG_Py_Void();
39168 if (SWIG_IsTmpObj(res2)) {
39169 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39170 } else {
39171 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39172 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39173 }
39174 if (SWIG_IsTmpObj(res3)) {
39175 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39176 } else {
39177 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39178 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39179 }
39180 return resultobj;
39181fail:
39182 return NULL;
39183}
39184
39185
39186SWIGINTERN PyObject *_wrap_PyControl_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39187 PyObject *resultobj = 0;
39188 wxPyControl *arg1 = (wxPyControl *) 0 ;
39189 int *arg2 = (int *) 0 ;
39190 int *arg3 = (int *) 0 ;
39191 void *argp1 = 0 ;
39192 int res1 = 0 ;
39193 int temp2 ;
39194 int res2 = SWIG_TMPOBJ ;
39195 int temp3 ;
39196 int res3 = SWIG_TMPOBJ ;
39197 PyObject *swig_obj[1] ;
39198
39199 arg2 = &temp2;
39200 arg3 = &temp3;
39201 if (!args) SWIG_fail;
39202 swig_obj[0] = args;
39203 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39204 if (!SWIG_IsOK(res1)) {
39205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetPosition" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39206 }
39207 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39208 {
39209 PyThreadState* __tstate = wxPyBeginAllowThreads();
39210 ((wxPyControl const *)arg1)->DoGetPosition(arg2,arg3);
39211 wxPyEndAllowThreads(__tstate);
39212 if (PyErr_Occurred()) SWIG_fail;
39213 }
39214 resultobj = SWIG_Py_Void();
39215 if (SWIG_IsTmpObj(res2)) {
39216 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39217 } else {
39218 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39219 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39220 }
39221 if (SWIG_IsTmpObj(res3)) {
39222 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39223 } else {
39224 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39225 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39226 }
39227 return resultobj;
39228fail:
39229 return NULL;
d55e5bfc
RD
39230}
39231
39232
1bd55598
RD
39233SWIGINTERN PyObject *_wrap_PyControl_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39234 PyObject *resultobj = 0;
39235 wxPyControl *arg1 = (wxPyControl *) 0 ;
39236 wxSize result;
39237 void *argp1 = 0 ;
39238 int res1 = 0 ;
39239 PyObject *swig_obj[1] ;
39240
39241 if (!args) SWIG_fail;
39242 swig_obj[0] = args;
39243 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39244 if (!SWIG_IsOK(res1)) {
39245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39246 }
39247 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39248 {
39249 PyThreadState* __tstate = wxPyBeginAllowThreads();
39250 result = ((wxPyControl const *)arg1)->DoGetVirtualSize();
39251 wxPyEndAllowThreads(__tstate);
39252 if (PyErr_Occurred()) SWIG_fail;
39253 }
39254 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39255 return resultobj;
39256fail:
39257 return NULL;
7e08d4ef
RD
39258}
39259
39260
1bd55598
RD
39261SWIGINTERN PyObject *_wrap_PyControl_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39262 PyObject *resultobj = 0;
39263 wxPyControl *arg1 = (wxPyControl *) 0 ;
39264 wxSize result;
39265 void *argp1 = 0 ;
39266 int res1 = 0 ;
39267 PyObject *swig_obj[1] ;
39268
39269 if (!args) SWIG_fail;
39270 swig_obj[0] = args;
39271 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39272 if (!SWIG_IsOK(res1)) {
39273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39274 }
39275 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39276 {
39277 PyThreadState* __tstate = wxPyBeginAllowThreads();
39278 result = ((wxPyControl const *)arg1)->DoGetBestSize();
39279 wxPyEndAllowThreads(__tstate);
39280 if (PyErr_Occurred()) SWIG_fail;
39281 }
39282 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39283 return resultobj;
39284fail:
39285 return NULL;
d55e5bfc
RD
39286}
39287
39288
1bd55598
RD
39289SWIGINTERN PyObject *_wrap_PyControl_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39290 PyObject *resultobj = 0;
39291 wxPyControl *arg1 = (wxPyControl *) 0 ;
39292 SwigValueWrapper<wxVisualAttributes > result;
39293 void *argp1 = 0 ;
39294 int res1 = 0 ;
39295 PyObject *swig_obj[1] ;
39296
39297 if (!args) SWIG_fail;
39298 swig_obj[0] = args;
39299 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39300 if (!SWIG_IsOK(res1)) {
39301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyControl *""'");
39302 }
39303 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39304 {
39305 PyThreadState* __tstate = wxPyBeginAllowThreads();
39306 result = (arg1)->GetDefaultAttributes();
39307 wxPyEndAllowThreads(__tstate);
39308 if (PyErr_Occurred()) SWIG_fail;
39309 }
39310 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
39311 return resultobj;
39312fail:
39313 return NULL;
d55e5bfc
RD
39314}
39315
39316
1bd55598
RD
39317SWIGINTERN PyObject *_wrap_PyControl_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39318 PyObject *resultobj = 0;
39319 wxPyControl *arg1 = (wxPyControl *) 0 ;
39320 void *argp1 = 0 ;
39321 int res1 = 0 ;
39322 PyObject *swig_obj[1] ;
39323
39324 if (!args) SWIG_fail;
39325 swig_obj[0] = args;
39326 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39327 if (!SWIG_IsOK(res1)) {
39328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyControl *""'");
39329 }
39330 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39331 {
39332 PyThreadState* __tstate = wxPyBeginAllowThreads();
39333 (arg1)->OnInternalIdle();
39334 wxPyEndAllowThreads(__tstate);
39335 if (PyErr_Occurred()) SWIG_fail;
39336 }
39337 resultobj = SWIG_Py_Void();
39338 return resultobj;
39339fail:
39340 return NULL;
39341}
39342
39343
39344SWIGINTERN PyObject *PyControl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39345 PyObject *obj;
39346 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39347 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyControl, SWIG_NewClientData(obj));
39348 return SWIG_Py_Void();
39349}
39350
39351SWIGINTERN PyObject *PyControl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39352 return SWIG_Python_InitShadowInstance(args);
39353}
39354
39355SWIGINTERN PyObject *_wrap_new_HelpEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39356 PyObject *resultobj = 0;
39357 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
39358 int arg2 = (int) 0 ;
39359 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39360 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
704eda0c 39361 wxHelpEvent::Origin arg4 = (wxHelpEvent::Origin) wxHelpEvent::Origin_Unknown ;
1bd55598
RD
39362 wxHelpEvent *result = 0 ;
39363 int val1 ;
39364 int ecode1 = 0 ;
39365 int val2 ;
39366 int ecode2 = 0 ;
39367 wxPoint temp3 ;
704eda0c
RD
39368 int val4 ;
39369 int ecode4 = 0 ;
1bd55598
RD
39370 PyObject * obj0 = 0 ;
39371 PyObject * obj1 = 0 ;
39372 PyObject * obj2 = 0 ;
704eda0c 39373 PyObject * obj3 = 0 ;
1bd55598 39374 char * kwnames[] = {
704eda0c 39375 (char *) "type",(char *) "winid",(char *) "pt",(char *) "origin", NULL
1bd55598
RD
39376 };
39377
704eda0c 39378 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
1bd55598
RD
39379 if (obj0) {
39380 ecode1 = SWIG_AsVal_int(obj0, &val1);
39381 if (!SWIG_IsOK(ecode1)) {
39382 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HelpEvent" "', expected argument " "1"" of type '" "wxEventType""'");
39383 }
39384 arg1 = static_cast< wxEventType >(val1);
39385 }
39386 if (obj1) {
39387 ecode2 = SWIG_AsVal_int(obj1, &val2);
39388 if (!SWIG_IsOK(ecode2)) {
39389 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HelpEvent" "', expected argument " "2"" of type '" "int""'");
39390 }
39391 arg2 = static_cast< int >(val2);
39392 }
39393 if (obj2) {
d55e5bfc 39394 {
1bd55598
RD
39395 arg3 = &temp3;
39396 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 39397 }
1bd55598 39398 }
704eda0c
RD
39399 if (obj3) {
39400 ecode4 = SWIG_AsVal_int(obj3, &val4);
39401 if (!SWIG_IsOK(ecode4)) {
39402 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_HelpEvent" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
39403 }
39404 arg4 = static_cast< wxHelpEvent::Origin >(val4);
39405 }
1bd55598
RD
39406 {
39407 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 39408 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3,arg4);
1bd55598
RD
39409 wxPyEndAllowThreads(__tstate);
39410 if (PyErr_Occurred()) SWIG_fail;
39411 }
39412 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_NEW | 0 );
39413 return resultobj;
39414fail:
39415 return NULL;
d55e5bfc
RD
39416}
39417
39418
1bd55598
RD
39419SWIGINTERN PyObject *_wrap_HelpEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39420 PyObject *resultobj = 0;
39421 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39422 wxPoint result;
39423 void *argp1 = 0 ;
39424 int res1 = 0 ;
39425 PyObject *swig_obj[1] ;
39426
39427 if (!args) SWIG_fail;
39428 swig_obj[0] = args;
39429 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39430 if (!SWIG_IsOK(res1)) {
39431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetPosition" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39432 }
39433 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39434 {
39435 PyThreadState* __tstate = wxPyBeginAllowThreads();
39436 result = ((wxHelpEvent const *)arg1)->GetPosition();
39437 wxPyEndAllowThreads(__tstate);
39438 if (PyErr_Occurred()) SWIG_fail;
39439 }
39440 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
39441 return resultobj;
39442fail:
39443 return NULL;
39444}
39445
39446
39447SWIGINTERN PyObject *_wrap_HelpEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39448 PyObject *resultobj = 0;
39449 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39450 wxPoint *arg2 = 0 ;
39451 void *argp1 = 0 ;
39452 int res1 = 0 ;
39453 wxPoint temp2 ;
39454 PyObject * obj0 = 0 ;
39455 PyObject * obj1 = 0 ;
39456 char * kwnames[] = {
39457 (char *) "self",(char *) "pos", NULL
39458 };
39459
39460 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
39461 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39462 if (!SWIG_IsOK(res1)) {
39463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetPosition" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39464 }
39465 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39466 {
39467 arg2 = &temp2;
39468 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39469 }
39470 {
39471 PyThreadState* __tstate = wxPyBeginAllowThreads();
39472 (arg1)->SetPosition((wxPoint const &)*arg2);
39473 wxPyEndAllowThreads(__tstate);
39474 if (PyErr_Occurred()) SWIG_fail;
39475 }
39476 resultobj = SWIG_Py_Void();
39477 return resultobj;
39478fail:
39479 return NULL;
d55e5bfc
RD
39480}
39481
39482
1bd55598
RD
39483SWIGINTERN PyObject *_wrap_HelpEvent_GetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39484 PyObject *resultobj = 0;
39485 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39486 wxString *result = 0 ;
39487 void *argp1 = 0 ;
39488 int res1 = 0 ;
39489 PyObject *swig_obj[1] ;
39490
39491 if (!args) SWIG_fail;
39492 swig_obj[0] = args;
39493 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39494 if (!SWIG_IsOK(res1)) {
39495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetLink" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39496 }
39497 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39498 {
39499 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 39500 {
1bd55598
RD
39501 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
39502 result = (wxString *) &_result_ref;
d55e5bfc 39503 }
1bd55598
RD
39504 wxPyEndAllowThreads(__tstate);
39505 if (PyErr_Occurred()) SWIG_fail;
39506 }
39507 {
39508#if wxUSE_UNICODE
39509 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39510#else
39511 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39512#endif
39513 }
39514 return resultobj;
39515fail:
39516 return NULL;
39517}
39518
39519
39520SWIGINTERN PyObject *_wrap_HelpEvent_SetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39521 PyObject *resultobj = 0;
39522 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39523 wxString *arg2 = 0 ;
39524 void *argp1 = 0 ;
39525 int res1 = 0 ;
39526 bool temp2 = false ;
39527 PyObject * obj0 = 0 ;
39528 PyObject * obj1 = 0 ;
39529 char * kwnames[] = {
39530 (char *) "self",(char *) "link", NULL
39531 };
39532
39533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) SWIG_fail;
39534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39535 if (!SWIG_IsOK(res1)) {
39536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetLink" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39537 }
39538 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39539 {
39540 arg2 = wxString_in_helper(obj1);
39541 if (arg2 == NULL) SWIG_fail;
39542 temp2 = true;
39543 }
39544 {
39545 PyThreadState* __tstate = wxPyBeginAllowThreads();
39546 (arg1)->SetLink((wxString const &)*arg2);
39547 wxPyEndAllowThreads(__tstate);
39548 if (PyErr_Occurred()) SWIG_fail;
39549 }
39550 resultobj = SWIG_Py_Void();
39551 {
39552 if (temp2)
39553 delete arg2;
39554 }
39555 return resultobj;
39556fail:
39557 {
39558 if (temp2)
39559 delete arg2;
39560 }
39561 return NULL;
d55e5bfc
RD
39562}
39563
39564
1bd55598
RD
39565SWIGINTERN PyObject *_wrap_HelpEvent_GetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39566 PyObject *resultobj = 0;
39567 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39568 wxString *result = 0 ;
39569 void *argp1 = 0 ;
39570 int res1 = 0 ;
39571 PyObject *swig_obj[1] ;
39572
39573 if (!args) SWIG_fail;
39574 swig_obj[0] = args;
39575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39576 if (!SWIG_IsOK(res1)) {
39577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetTarget" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39578 }
39579 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39580 {
39581 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 39582 {
1bd55598
RD
39583 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
39584 result = (wxString *) &_result_ref;
d55e5bfc 39585 }
1bd55598
RD
39586 wxPyEndAllowThreads(__tstate);
39587 if (PyErr_Occurred()) SWIG_fail;
39588 }
39589 {
39590#if wxUSE_UNICODE
39591 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39592#else
39593 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39594#endif
39595 }
39596 return resultobj;
39597fail:
39598 return NULL;
39599}
39600
39601
39602SWIGINTERN PyObject *_wrap_HelpEvent_SetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39603 PyObject *resultobj = 0;
39604 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39605 wxString *arg2 = 0 ;
39606 void *argp1 = 0 ;
39607 int res1 = 0 ;
39608 bool temp2 = false ;
39609 PyObject * obj0 = 0 ;
39610 PyObject * obj1 = 0 ;
39611 char * kwnames[] = {
39612 (char *) "self",(char *) "target", NULL
39613 };
39614
39615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) SWIG_fail;
39616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39617 if (!SWIG_IsOK(res1)) {
39618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetTarget" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39619 }
39620 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39621 {
39622 arg2 = wxString_in_helper(obj1);
39623 if (arg2 == NULL) SWIG_fail;
39624 temp2 = true;
39625 }
39626 {
39627 PyThreadState* __tstate = wxPyBeginAllowThreads();
39628 (arg1)->SetTarget((wxString const &)*arg2);
39629 wxPyEndAllowThreads(__tstate);
39630 if (PyErr_Occurred()) SWIG_fail;
39631 }
39632 resultobj = SWIG_Py_Void();
39633 {
39634 if (temp2)
39635 delete arg2;
39636 }
39637 return resultobj;
39638fail:
39639 {
39640 if (temp2)
39641 delete arg2;
39642 }
39643 return NULL;
d55e5bfc
RD
39644}
39645
39646
704eda0c
RD
39647SWIGINTERN PyObject *_wrap_HelpEvent_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39648 PyObject *resultobj = 0;
39649 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39650 wxHelpEvent::Origin result;
39651 void *argp1 = 0 ;
39652 int res1 = 0 ;
39653 PyObject *swig_obj[1] ;
39654
39655 if (!args) SWIG_fail;
39656 swig_obj[0] = args;
39657 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39658 if (!SWIG_IsOK(res1)) {
39659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39660 }
39661 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39662 {
39663 PyThreadState* __tstate = wxPyBeginAllowThreads();
39664 result = (wxHelpEvent::Origin)((wxHelpEvent const *)arg1)->GetOrigin();
39665 wxPyEndAllowThreads(__tstate);
39666 if (PyErr_Occurred()) SWIG_fail;
39667 }
39668 resultobj = SWIG_From_int(static_cast< int >(result));
39669 return resultobj;
39670fail:
39671 return NULL;
39672}
39673
39674
39675SWIGINTERN PyObject *_wrap_HelpEvent_SetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39676 PyObject *resultobj = 0;
39677 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39678 wxHelpEvent::Origin arg2 ;
39679 void *argp1 = 0 ;
39680 int res1 = 0 ;
39681 int val2 ;
39682 int ecode2 = 0 ;
39683 PyObject * obj0 = 0 ;
39684 PyObject * obj1 = 0 ;
39685 char * kwnames[] = {
39686 (char *) "self",(char *) "origin", NULL
39687 };
39688
39689 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetOrigin",kwnames,&obj0,&obj1)) SWIG_fail;
39690 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39691 if (!SWIG_IsOK(res1)) {
39692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39693 }
39694 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39695 ecode2 = SWIG_AsVal_int(obj1, &val2);
39696 if (!SWIG_IsOK(ecode2)) {
39697 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpEvent_SetOrigin" "', expected argument " "2"" of type '" "wxHelpEvent::Origin""'");
39698 }
39699 arg2 = static_cast< wxHelpEvent::Origin >(val2);
39700 {
39701 PyThreadState* __tstate = wxPyBeginAllowThreads();
39702 (arg1)->SetOrigin(arg2);
39703 wxPyEndAllowThreads(__tstate);
39704 if (PyErr_Occurred()) SWIG_fail;
39705 }
39706 resultobj = SWIG_Py_Void();
39707 return resultobj;
39708fail:
39709 return NULL;
39710}
39711
39712
1bd55598
RD
39713SWIGINTERN PyObject *HelpEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39714 PyObject *obj;
39715 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39716 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpEvent, SWIG_NewClientData(obj));
39717 return SWIG_Py_Void();
39718}
39719
39720SWIGINTERN PyObject *HelpEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39721 return SWIG_Python_InitShadowInstance(args);
39722}
39723
39724SWIGINTERN PyObject *_wrap_new_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39725 PyObject *resultobj = 0;
39726 wxWindow *arg1 = (wxWindow *) NULL ;
39727 bool arg2 = (bool) true ;
39728 wxContextHelp *result = 0 ;
39729 void *argp1 = 0 ;
39730 int res1 = 0 ;
39731 bool val2 ;
39732 int ecode2 = 0 ;
39733 PyObject * obj0 = 0 ;
39734 PyObject * obj1 = 0 ;
39735 char * kwnames[] = {
39736 (char *) "window",(char *) "doNow", NULL
39737 };
39738
39739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39740 if (obj0) {
39741 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39742 if (!SWIG_IsOK(res1)) {
39743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelp" "', expected argument " "1"" of type '" "wxWindow *""'");
d55e5bfc 39744 }
1bd55598
RD
39745 arg1 = reinterpret_cast< wxWindow * >(argp1);
39746 }
39747 if (obj1) {
39748 ecode2 = SWIG_AsVal_bool(obj1, &val2);
39749 if (!SWIG_IsOK(ecode2)) {
39750 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelp" "', expected argument " "2"" of type '" "bool""'");
39751 }
39752 arg2 = static_cast< bool >(val2);
39753 }
39754 {
39755 if (!wxPyCheckForApp()) SWIG_fail;
39756 PyThreadState* __tstate = wxPyBeginAllowThreads();
39757 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
39758 wxPyEndAllowThreads(__tstate);
39759 if (PyErr_Occurred()) SWIG_fail;
39760 }
39761 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelp, SWIG_POINTER_NEW | 0 );
39762 return resultobj;
39763fail:
39764 return NULL;
d55e5bfc
RD
39765}
39766
39767
1bd55598
RD
39768SWIGINTERN PyObject *_wrap_delete_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39769 PyObject *resultobj = 0;
39770 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39771 void *argp1 = 0 ;
39772 int res1 = 0 ;
39773 PyObject *swig_obj[1] ;
39774
39775 if (!args) SWIG_fail;
39776 swig_obj[0] = args;
39777 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, SWIG_POINTER_DISOWN | 0 );
39778 if (!SWIG_IsOK(res1)) {
39779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39780 }
39781 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39782 {
39783 PyThreadState* __tstate = wxPyBeginAllowThreads();
39784 delete arg1;
d55e5bfc 39785
1bd55598
RD
39786 wxPyEndAllowThreads(__tstate);
39787 if (PyErr_Occurred()) SWIG_fail;
39788 }
39789 resultobj = SWIG_Py_Void();
39790 return resultobj;
39791fail:
39792 return NULL;
39793}
39794
39795
39796SWIGINTERN PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39797 PyObject *resultobj = 0;
39798 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39799 wxWindow *arg2 = (wxWindow *) NULL ;
39800 bool result;
39801 void *argp1 = 0 ;
39802 int res1 = 0 ;
39803 void *argp2 = 0 ;
39804 int res2 = 0 ;
39805 PyObject * obj0 = 0 ;
39806 PyObject * obj1 = 0 ;
39807 char * kwnames[] = {
39808 (char *) "self",(char *) "window", NULL
39809 };
39810
39811 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39812 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39813 if (!SWIG_IsOK(res1)) {
39814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39815 }
39816 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39817 if (obj1) {
39818 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39819 if (!SWIG_IsOK(res2)) {
39820 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
d55e5bfc 39821 }
1bd55598
RD
39822 arg2 = reinterpret_cast< wxWindow * >(argp2);
39823 }
39824 {
39825 PyThreadState* __tstate = wxPyBeginAllowThreads();
39826 result = (bool)(arg1)->BeginContextHelp(arg2);
39827 wxPyEndAllowThreads(__tstate);
39828 if (PyErr_Occurred()) SWIG_fail;
39829 }
39830 {
39831 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39832 }
39833 return resultobj;
39834fail:
39835 return NULL;
d55e5bfc
RD
39836}
39837
39838
1bd55598
RD
39839SWIGINTERN PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39840 PyObject *resultobj = 0;
39841 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39842 bool result;
39843 void *argp1 = 0 ;
39844 int res1 = 0 ;
39845 PyObject *swig_obj[1] ;
39846
39847 if (!args) SWIG_fail;
39848 swig_obj[0] = args;
39849 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39850 if (!SWIG_IsOK(res1)) {
39851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_EndContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39852 }
39853 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39854 {
39855 PyThreadState* __tstate = wxPyBeginAllowThreads();
39856 result = (bool)(arg1)->EndContextHelp();
39857 wxPyEndAllowThreads(__tstate);
39858 if (PyErr_Occurred()) SWIG_fail;
39859 }
39860 {
39861 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39862 }
39863 return resultobj;
39864fail:
39865 return NULL;
39866}
39867
39868
39869SWIGINTERN PyObject *ContextHelp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39870 PyObject *obj;
39871 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39872 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelp, SWIG_NewClientData(obj));
39873 return SWIG_Py_Void();
39874}
39875
39876SWIGINTERN PyObject *ContextHelp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39877 return SWIG_Python_InitShadowInstance(args);
39878}
39879
39880SWIGINTERN PyObject *_wrap_new_ContextHelpButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39881 PyObject *resultobj = 0;
39882 wxWindow *arg1 = (wxWindow *) 0 ;
39883 int arg2 = (int) wxID_CONTEXT_HELP ;
39884 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39885 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39886 wxSize const &arg4_defvalue = wxDefaultSize ;
39887 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
39888 long arg5 = (long) wxBU_AUTODRAW ;
39889 wxContextHelpButton *result = 0 ;
39890 void *argp1 = 0 ;
39891 int res1 = 0 ;
39892 int val2 ;
39893 int ecode2 = 0 ;
39894 wxPoint temp3 ;
39895 wxSize temp4 ;
39896 long val5 ;
39897 int ecode5 = 0 ;
39898 PyObject * obj0 = 0 ;
39899 PyObject * obj1 = 0 ;
39900 PyObject * obj2 = 0 ;
39901 PyObject * obj3 = 0 ;
39902 PyObject * obj4 = 0 ;
39903 char * kwnames[] = {
39904 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
39905 };
39906
39907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39908 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39909 if (!SWIG_IsOK(res1)) {
39910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelpButton" "', expected argument " "1"" of type '" "wxWindow *""'");
39911 }
39912 arg1 = reinterpret_cast< wxWindow * >(argp1);
39913 if (obj1) {
39914 ecode2 = SWIG_AsVal_int(obj1, &val2);
39915 if (!SWIG_IsOK(ecode2)) {
39916 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelpButton" "', expected argument " "2"" of type '" "int""'");
39917 }
39918 arg2 = static_cast< int >(val2);
39919 }
39920 if (obj2) {
d55e5bfc 39921 {
1bd55598
RD
39922 arg3 = &temp3;
39923 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 39924 }
1bd55598
RD
39925 }
39926 if (obj3) {
d55e5bfc 39927 {
1bd55598
RD
39928 arg4 = &temp4;
39929 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 39930 }
1bd55598
RD
39931 }
39932 if (obj4) {
39933 ecode5 = SWIG_AsVal_long(obj4, &val5);
39934 if (!SWIG_IsOK(ecode5)) {
39935 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ContextHelpButton" "', expected argument " "5"" of type '" "long""'");
39936 }
39937 arg5 = static_cast< long >(val5);
39938 }
39939 {
39940 if (!wxPyCheckForApp()) SWIG_fail;
39941 PyThreadState* __tstate = wxPyBeginAllowThreads();
39942 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
39943 wxPyEndAllowThreads(__tstate);
39944 if (PyErr_Occurred()) SWIG_fail;
39945 }
39946 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelpButton, SWIG_POINTER_NEW | 0 );
39947 return resultobj;
39948fail:
39949 return NULL;
d55e5bfc
RD
39950}
39951
39952
1bd55598
RD
39953SWIGINTERN PyObject *ContextHelpButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39954 PyObject *obj;
39955 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39956 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelpButton, SWIG_NewClientData(obj));
39957 return SWIG_Py_Void();
d55e5bfc
RD
39958}
39959
1bd55598
RD
39960SWIGINTERN PyObject *ContextHelpButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39961 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
39962}
39963
f52cbe90
RD
39964SWIGINTERN PyObject *_wrap_delete_HelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39965 PyObject *resultobj = 0;
39966 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39967 void *argp1 = 0 ;
39968 int res1 = 0 ;
39969 PyObject *swig_obj[1] ;
39970
39971 if (!args) SWIG_fail;
39972 swig_obj[0] = args;
39973 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
39974 if (!SWIG_IsOK(res1)) {
39975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HelpProvider" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39976 }
39977 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39978 {
39979 PyThreadState* __tstate = wxPyBeginAllowThreads();
39980 delete arg1;
39981
39982 wxPyEndAllowThreads(__tstate);
39983 if (PyErr_Occurred()) SWIG_fail;
39984 }
39985 resultobj = SWIG_Py_Void();
39986 return resultobj;
39987fail:
39988 return NULL;
39989}
39990
39991
1bd55598
RD
39992SWIGINTERN PyObject *_wrap_HelpProvider_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39993 PyObject *resultobj = 0;
39994 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39995 wxHelpProvider *result = 0 ;
39996 int res1 = 0 ;
39997 PyObject * obj0 = 0 ;
39998 char * kwnames[] = {
39999 (char *) "helpProvider", NULL
40000 };
40001
40002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) SWIG_fail;
40003 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
40004 if (!SWIG_IsOK(res1)) {
40005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Set" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40006 }
40007 {
40008 PyThreadState* __tstate = wxPyBeginAllowThreads();
40009 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
40010 wxPyEndAllowThreads(__tstate);
40011 if (PyErr_Occurred()) SWIG_fail;
40012 }
40013 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_OWN | 0 );
40014 return resultobj;
40015fail:
40016 return NULL;
d55e5bfc
RD
40017}
40018
40019
1bd55598
RD
40020SWIGINTERN PyObject *_wrap_HelpProvider_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40021 PyObject *resultobj = 0;
40022 wxHelpProvider *result = 0 ;
40023
40024 if (!SWIG_Python_UnpackTuple(args,"HelpProvider_Get",0,0,0)) SWIG_fail;
40025 {
40026 PyThreadState* __tstate = wxPyBeginAllowThreads();
40027 result = (wxHelpProvider *)wxHelpProvider::Get();
40028 wxPyEndAllowThreads(__tstate);
40029 if (PyErr_Occurred()) SWIG_fail;
40030 }
40031 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40032 return resultobj;
40033fail:
40034 return NULL;
40035}
40036
40037
40038SWIGINTERN PyObject *_wrap_HelpProvider_GetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40039 PyObject *resultobj = 0;
40040 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40041 wxWindow *arg2 = (wxWindow *) 0 ;
40042 wxString result;
40043 void *argp1 = 0 ;
40044 int res1 = 0 ;
40045 void *argp2 = 0 ;
40046 int res2 = 0 ;
40047 PyObject * obj0 = 0 ;
40048 PyObject * obj1 = 0 ;
40049 char * kwnames[] = {
40050 (char *) "self",(char *) "window", NULL
40051 };
40052
40053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40055 if (!SWIG_IsOK(res1)) {
40056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_GetHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40057 }
40058 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40059 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40060 if (!SWIG_IsOK(res2)) {
40061 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_GetHelp" "', expected argument " "2"" of type '" "wxWindow const *""'");
40062 }
40063 arg2 = reinterpret_cast< wxWindow * >(argp2);
40064 {
40065 PyThreadState* __tstate = wxPyBeginAllowThreads();
40066 result = (arg1)->GetHelp((wxWindow const *)arg2);
40067 wxPyEndAllowThreads(__tstate);
40068 if (PyErr_Occurred()) SWIG_fail;
40069 }
40070 {
40071#if wxUSE_UNICODE
40072 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
40073#else
40074 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
40075#endif
40076 }
40077 return resultobj;
40078fail:
40079 return NULL;
40080}
40081
40082
40083SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40084 PyObject *resultobj = 0;
40085 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40086 wxWindow *arg2 = (wxWindow *) 0 ;
40087 bool result;
40088 void *argp1 = 0 ;
40089 int res1 = 0 ;
40090 void *argp2 = 0 ;
40091 int res2 = 0 ;
40092 PyObject * obj0 = 0 ;
40093 PyObject * obj1 = 0 ;
40094 char * kwnames[] = {
40095 (char *) "self",(char *) "window", NULL
40096 };
40097
40098 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40099 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40100 if (!SWIG_IsOK(res1)) {
40101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40102 }
40103 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40104 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40105 if (!SWIG_IsOK(res2)) {
40106 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40107 }
40108 arg2 = reinterpret_cast< wxWindow * >(argp2);
40109 {
40110 PyThreadState* __tstate = wxPyBeginAllowThreads();
40111 result = (bool)(arg1)->ShowHelp(arg2);
40112 wxPyEndAllowThreads(__tstate);
40113 if (PyErr_Occurred()) SWIG_fail;
40114 }
40115 {
40116 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40117 }
40118 return resultobj;
40119fail:
40120 return NULL;
40121}
40122
40123
b850e7f3
RD
40124SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelpAtPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40125 PyObject *resultobj = 0;
40126 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40127 wxWindowBase *arg2 = (wxWindowBase *) 0 ;
40128 wxPoint *arg3 = 0 ;
40129 wxHelpEvent::Origin arg4 ;
40130 bool result;
40131 void *argp1 = 0 ;
40132 int res1 = 0 ;
40133 void *argp2 = 0 ;
40134 int res2 = 0 ;
40135 wxPoint temp3 ;
40136 int val4 ;
40137 int ecode4 = 0 ;
40138 PyObject * obj0 = 0 ;
40139 PyObject * obj1 = 0 ;
40140 PyObject * obj2 = 0 ;
40141 PyObject * obj3 = 0 ;
40142 char * kwnames[] = {
40143 (char *) "self",(char *) "window",(char *) "pt",(char *) "origin", NULL
40144 };
40145
40146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:HelpProvider_ShowHelpAtPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40148 if (!SWIG_IsOK(res1)) {
40149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40150 }
40151 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40152 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindowBase, 0 | 0 );
40153 if (!SWIG_IsOK(res2)) {
40154 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "2"" of type '" "wxWindowBase *""'");
40155 }
40156 arg2 = reinterpret_cast< wxWindowBase * >(argp2);
40157 {
40158 arg3 = &temp3;
40159 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40160 }
40161 ecode4 = SWIG_AsVal_int(obj3, &val4);
40162 if (!SWIG_IsOK(ecode4)) {
40163 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
40164 }
40165 arg4 = static_cast< wxHelpEvent::Origin >(val4);
40166 {
40167 PyThreadState* __tstate = wxPyBeginAllowThreads();
40168 result = (bool)(arg1)->ShowHelpAtPoint(arg2,(wxPoint const &)*arg3,arg4);
40169 wxPyEndAllowThreads(__tstate);
40170 if (PyErr_Occurred()) SWIG_fail;
40171 }
40172 {
40173 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40174 }
40175 return resultobj;
40176fail:
40177 return NULL;
40178}
40179
40180
1bd55598
RD
40181SWIGINTERN PyObject *_wrap_HelpProvider_AddHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40182 PyObject *resultobj = 0;
40183 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40184 wxWindow *arg2 = (wxWindow *) 0 ;
40185 wxString *arg3 = 0 ;
40186 void *argp1 = 0 ;
40187 int res1 = 0 ;
40188 void *argp2 = 0 ;
40189 int res2 = 0 ;
40190 bool temp3 = false ;
40191 PyObject * obj0 = 0 ;
40192 PyObject * obj1 = 0 ;
40193 PyObject * obj2 = 0 ;
40194 char * kwnames[] = {
40195 (char *) "self",(char *) "window",(char *) "text", NULL
40196 };
40197
40198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40200 if (!SWIG_IsOK(res1)) {
40201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40202 }
40203 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40204 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40205 if (!SWIG_IsOK(res2)) {
40206 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_AddHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40207 }
40208 arg2 = reinterpret_cast< wxWindow * >(argp2);
40209 {
40210 arg3 = wxString_in_helper(obj2);
40211 if (arg3 == NULL) SWIG_fail;
40212 temp3 = true;
40213 }
40214 {
40215 PyThreadState* __tstate = wxPyBeginAllowThreads();
40216 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40217 wxPyEndAllowThreads(__tstate);
40218 if (PyErr_Occurred()) SWIG_fail;
40219 }
40220 resultobj = SWIG_Py_Void();
40221 {
40222 if (temp3)
40223 delete arg3;
40224 }
40225 return resultobj;
40226fail:
40227 {
40228 if (temp3)
40229 delete arg3;
40230 }
40231 return NULL;
40232}
40233
40234
40235SWIGINTERN PyObject *_wrap_HelpProvider_AddHelpById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40236 PyObject *resultobj = 0;
40237 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40238 int arg2 ;
40239 wxString *arg3 = 0 ;
40240 void *argp1 = 0 ;
40241 int res1 = 0 ;
40242 int val2 ;
40243 int ecode2 = 0 ;
40244 bool temp3 = false ;
40245 PyObject * obj0 = 0 ;
40246 PyObject * obj1 = 0 ;
40247 PyObject * obj2 = 0 ;
40248 char * kwnames[] = {
40249 (char *) "self",(char *) "id",(char *) "text", NULL
40250 };
40251
40252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40253 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40254 if (!SWIG_IsOK(res1)) {
40255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelpById" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40256 }
40257 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40258 ecode2 = SWIG_AsVal_int(obj1, &val2);
40259 if (!SWIG_IsOK(ecode2)) {
40260 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpProvider_AddHelpById" "', expected argument " "2"" of type '" "int""'");
40261 }
40262 arg2 = static_cast< int >(val2);
40263 {
40264 arg3 = wxString_in_helper(obj2);
40265 if (arg3 == NULL) SWIG_fail;
40266 temp3 = true;
40267 }
40268 {
40269 PyThreadState* __tstate = wxPyBeginAllowThreads();
40270 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40271 wxPyEndAllowThreads(__tstate);
40272 if (PyErr_Occurred()) SWIG_fail;
40273 }
40274 resultobj = SWIG_Py_Void();
40275 {
40276 if (temp3)
40277 delete arg3;
40278 }
40279 return resultobj;
40280fail:
40281 {
40282 if (temp3)
40283 delete arg3;
40284 }
40285 return NULL;
40286}
40287
40288
40289SWIGINTERN PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40290 PyObject *resultobj = 0;
40291 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40292 wxWindow *arg2 = (wxWindow *) 0 ;
40293 void *argp1 = 0 ;
40294 int res1 = 0 ;
40295 void *argp2 = 0 ;
40296 int res2 = 0 ;
40297 PyObject * obj0 = 0 ;
40298 PyObject * obj1 = 0 ;
40299 char * kwnames[] = {
40300 (char *) "self",(char *) "window", NULL
40301 };
40302
40303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40305 if (!SWIG_IsOK(res1)) {
40306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40307 }
40308 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40309 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40310 if (!SWIG_IsOK(res2)) {
40311 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40312 }
40313 arg2 = reinterpret_cast< wxWindow * >(argp2);
40314 {
40315 PyThreadState* __tstate = wxPyBeginAllowThreads();
40316 (arg1)->RemoveHelp(arg2);
40317 wxPyEndAllowThreads(__tstate);
40318 if (PyErr_Occurred()) SWIG_fail;
40319 }
40320 resultobj = SWIG_Py_Void();
40321 return resultobj;
40322fail:
40323 return NULL;
d55e5bfc
RD
40324}
40325
40326
1bd55598
RD
40327SWIGINTERN PyObject *_wrap_HelpProvider_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40328 PyObject *resultobj = 0;
40329 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40330 void *argp1 = 0 ;
40331 int res1 = 0 ;
40332 PyObject *swig_obj[1] ;
40333
40334 if (!args) SWIG_fail;
40335 swig_obj[0] = args;
40336 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40337 if (!SWIG_IsOK(res1)) {
40338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Destroy" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40339 }
40340 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40341 {
40342 PyThreadState* __tstate = wxPyBeginAllowThreads();
40343 wxHelpProvider_Destroy(arg1);
40344 wxPyEndAllowThreads(__tstate);
40345 if (PyErr_Occurred()) SWIG_fail;
40346 }
40347 resultobj = SWIG_Py_Void();
40348 return resultobj;
40349fail:
40350 return NULL;
d55e5bfc
RD
40351}
40352
40353
1bd55598
RD
40354SWIGINTERN PyObject *HelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40355 PyObject *obj;
40356 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40357 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpProvider, SWIG_NewClientData(obj));
40358 return SWIG_Py_Void();
d55e5bfc
RD
40359}
40360
1bd55598
RD
40361SWIGINTERN PyObject *_wrap_new_SimpleHelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40362 PyObject *resultobj = 0;
40363 wxSimpleHelpProvider *result = 0 ;
40364
40365 if (!SWIG_Python_UnpackTuple(args,"new_SimpleHelpProvider",0,0,0)) SWIG_fail;
40366 {
40367 PyThreadState* __tstate = wxPyBeginAllowThreads();
40368 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
40369 wxPyEndAllowThreads(__tstate);
40370 if (PyErr_Occurred()) SWIG_fail;
40371 }
40372 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSimpleHelpProvider, SWIG_POINTER_NEW | 0 );
40373 return resultobj;
40374fail:
40375 return NULL;
40376}
40377
40378
40379SWIGINTERN PyObject *SimpleHelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40380 PyObject *obj;
40381 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40382 SWIG_TypeNewClientData(SWIGTYPE_p_wxSimpleHelpProvider, SWIG_NewClientData(obj));
40383 return SWIG_Py_Void();
40384}
40385
40386SWIGINTERN PyObject *SimpleHelpProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40387 return SWIG_Python_InitShadowInstance(args);
40388}
40389
40390SWIGINTERN PyObject *_wrap_new_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40391 PyObject *resultobj = 0;
40392 wxBitmap *arg1 = 0 ;
40393 wxCursor const &arg2_defvalue = wxNullCursor ;
40394 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40395 wxGenericDragImage *result = 0 ;
40396 void *argp1 = 0 ;
40397 int res1 = 0 ;
40398 void *argp2 = 0 ;
40399 int res2 = 0 ;
40400 PyObject * obj0 = 0 ;
40401 PyObject * obj1 = 0 ;
40402 char * kwnames[] = {
40403 (char *) "image",(char *) "cursor", NULL
40404 };
40405
40406 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) SWIG_fail;
40407 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
40408 if (!SWIG_IsOK(res1)) {
40409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40410 }
40411 if (!argp1) {
40412 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40413 }
40414 arg1 = reinterpret_cast< wxBitmap * >(argp1);
40415 if (obj1) {
40416 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40417 if (!SWIG_IsOK(res2)) {
40418 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
36ed4f51 40419 }
1bd55598
RD
40420 if (!argp2) {
40421 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
d55e5bfc 40422 }
1bd55598
RD
40423 arg2 = reinterpret_cast< wxCursor * >(argp2);
40424 }
40425 {
40426 if (!wxPyCheckForApp()) SWIG_fail;
40427 PyThreadState* __tstate = wxPyBeginAllowThreads();
40428 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
40429 wxPyEndAllowThreads(__tstate);
40430 if (PyErr_Occurred()) SWIG_fail;
40431 }
40432 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_NEW | 0 );
40433 return resultobj;
40434fail:
40435 return NULL;
40436}
40437
40438
40439SWIGINTERN PyObject *_wrap_new_DragIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40440 PyObject *resultobj = 0;
40441 wxIcon *arg1 = 0 ;
40442 wxCursor const &arg2_defvalue = wxNullCursor ;
40443 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40444 wxGenericDragImage *result = 0 ;
40445 void *argp1 = 0 ;
40446 int res1 = 0 ;
40447 void *argp2 = 0 ;
40448 int res2 = 0 ;
40449 PyObject * obj0 = 0 ;
40450 PyObject * obj1 = 0 ;
40451 char * kwnames[] = {
40452 (char *) "image",(char *) "cursor", NULL
40453 };
40454
40455 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) SWIG_fail;
40456 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
40457 if (!SWIG_IsOK(res1)) {
40458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40459 }
40460 if (!argp1) {
40461 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40462 }
40463 arg1 = reinterpret_cast< wxIcon * >(argp1);
40464 if (obj1) {
40465 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40466 if (!SWIG_IsOK(res2)) {
40467 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
36ed4f51 40468 }
1bd55598
RD
40469 if (!argp2) {
40470 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
d55e5bfc 40471 }
1bd55598
RD
40472 arg2 = reinterpret_cast< wxCursor * >(argp2);
40473 }
40474 {
40475 if (!wxPyCheckForApp()) SWIG_fail;
40476 PyThreadState* __tstate = wxPyBeginAllowThreads();
40477 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
40478 wxPyEndAllowThreads(__tstate);
40479 if (PyErr_Occurred()) SWIG_fail;
40480 }
40481 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40482 return resultobj;
40483fail:
40484 return NULL;
40485}
40486
40487
40488SWIGINTERN PyObject *_wrap_new_DragString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40489 PyObject *resultobj = 0;
40490 wxString *arg1 = 0 ;
40491 wxCursor const &arg2_defvalue = wxNullCursor ;
40492 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40493 wxGenericDragImage *result = 0 ;
40494 bool temp1 = false ;
40495 void *argp2 = 0 ;
40496 int res2 = 0 ;
40497 PyObject * obj0 = 0 ;
40498 PyObject * obj1 = 0 ;
40499 char * kwnames[] = {
40500 (char *) "str",(char *) "cursor", NULL
40501 };
40502
40503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) SWIG_fail;
40504 {
40505 arg1 = wxString_in_helper(obj0);
40506 if (arg1 == NULL) SWIG_fail;
40507 temp1 = true;
40508 }
40509 if (obj1) {
40510 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40511 if (!SWIG_IsOK(res2)) {
40512 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
36ed4f51 40513 }
1bd55598
RD
40514 if (!argp2) {
40515 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
d55e5bfc 40516 }
1bd55598
RD
40517 arg2 = reinterpret_cast< wxCursor * >(argp2);
40518 }
40519 {
40520 if (!wxPyCheckForApp()) SWIG_fail;
40521 PyThreadState* __tstate = wxPyBeginAllowThreads();
40522 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
40523 wxPyEndAllowThreads(__tstate);
40524 if (PyErr_Occurred()) SWIG_fail;
40525 }
40526 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40527 {
40528 if (temp1)
40529 delete arg1;
40530 }
40531 return resultobj;
40532fail:
40533 {
40534 if (temp1)
40535 delete arg1;
40536 }
40537 return NULL;
40538}
40539
40540
40541SWIGINTERN PyObject *_wrap_new_DragTreeItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40542 PyObject *resultobj = 0;
40543 wxPyTreeCtrl *arg1 = 0 ;
40544 wxTreeItemId *arg2 = 0 ;
40545 wxGenericDragImage *result = 0 ;
40546 void *argp1 = 0 ;
40547 int res1 = 0 ;
40548 void *argp2 = 0 ;
40549 int res2 = 0 ;
40550 PyObject * obj0 = 0 ;
40551 PyObject * obj1 = 0 ;
40552 char * kwnames[] = {
40553 (char *) "treeCtrl",(char *) "id", NULL
40554 };
40555
40556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) SWIG_fail;
40557 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyTreeCtrl, 0 | 0);
40558 if (!SWIG_IsOK(res1)) {
40559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40560 }
40561 if (!argp1) {
40562 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40563 }
40564 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
40565 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 );
40566 if (!SWIG_IsOK(res2)) {
40567 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40568 }
40569 if (!argp2) {
40570 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40571 }
40572 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
40573 {
40574 if (!wxPyCheckForApp()) SWIG_fail;
40575 PyThreadState* __tstate = wxPyBeginAllowThreads();
40576 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
40577 wxPyEndAllowThreads(__tstate);
40578 if (PyErr_Occurred()) SWIG_fail;
40579 }
40580 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40581 return resultobj;
40582fail:
40583 return NULL;
40584}
40585
40586
40587SWIGINTERN PyObject *_wrap_new_DragListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40588 PyObject *resultobj = 0;
40589 wxPyListCtrl *arg1 = 0 ;
40590 long arg2 ;
40591 wxGenericDragImage *result = 0 ;
40592 void *argp1 = 0 ;
40593 int res1 = 0 ;
40594 long val2 ;
40595 int ecode2 = 0 ;
40596 PyObject * obj0 = 0 ;
40597 PyObject * obj1 = 0 ;
40598 char * kwnames[] = {
40599 (char *) "listCtrl",(char *) "id", NULL
40600 };
40601
40602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) SWIG_fail;
40603 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyListCtrl, 0 | 0);
40604 if (!SWIG_IsOK(res1)) {
40605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40606 }
40607 if (!argp1) {
40608 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40609 }
40610 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
40611 ecode2 = SWIG_AsVal_long(obj1, &val2);
40612 if (!SWIG_IsOK(ecode2)) {
40613 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DragListItem" "', expected argument " "2"" of type '" "long""'");
40614 }
40615 arg2 = static_cast< long >(val2);
40616 {
40617 if (!wxPyCheckForApp()) SWIG_fail;
40618 PyThreadState* __tstate = wxPyBeginAllowThreads();
40619 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
40620 wxPyEndAllowThreads(__tstate);
40621 if (PyErr_Occurred()) SWIG_fail;
40622 }
40623 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40624 return resultobj;
40625fail:
40626 return NULL;
d55e5bfc
RD
40627}
40628
40629
1bd55598
RD
40630SWIGINTERN PyObject *_wrap_delete_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40631 PyObject *resultobj = 0;
40632 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40633 void *argp1 = 0 ;
40634 int res1 = 0 ;
40635 PyObject *swig_obj[1] ;
40636
40637 if (!args) SWIG_fail;
40638 swig_obj[0] = args;
40639 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_DISOWN | 0 );
40640 if (!SWIG_IsOK(res1)) {
40641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DragImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40642 }
40643 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40644 {
40645 PyThreadState* __tstate = wxPyBeginAllowThreads();
40646 delete arg1;
d55e5bfc 40647
1bd55598
RD
40648 wxPyEndAllowThreads(__tstate);
40649 if (PyErr_Occurred()) SWIG_fail;
40650 }
40651 resultobj = SWIG_Py_Void();
40652 return resultobj;
40653fail:
40654 return NULL;
40655}
40656
40657
40658SWIGINTERN PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40659 PyObject *resultobj = 0;
40660 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40661 wxBitmap *arg2 = (wxBitmap *) 0 ;
40662 void *argp1 = 0 ;
40663 int res1 = 0 ;
40664 void *argp2 = 0 ;
40665 int res2 = 0 ;
40666 PyObject * obj0 = 0 ;
40667 PyObject * obj1 = 0 ;
40668 char * kwnames[] = {
40669 (char *) "self",(char *) "bitmap", NULL
40670 };
40671
40672 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
40673 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40674 if (!SWIG_IsOK(res1)) {
40675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40676 }
40677 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40678 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
40679 if (!SWIG_IsOK(res2)) {
40680 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "2"" of type '" "wxBitmap *""'");
40681 }
40682 arg2 = reinterpret_cast< wxBitmap * >(argp2);
40683 {
40684 PyThreadState* __tstate = wxPyBeginAllowThreads();
40685 (arg1)->SetBackingBitmap(arg2);
40686 wxPyEndAllowThreads(__tstate);
40687 if (PyErr_Occurred()) SWIG_fail;
40688 }
40689 resultobj = SWIG_Py_Void();
40690 return resultobj;
40691fail:
40692 return NULL;
40693}
40694
40695
40696SWIGINTERN PyObject *_wrap_DragImage_BeginDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40697 PyObject *resultobj = 0;
40698 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40699 wxPoint *arg2 = 0 ;
40700 wxWindow *arg3 = (wxWindow *) 0 ;
40701 bool arg4 = (bool) false ;
40702 wxRect *arg5 = (wxRect *) NULL ;
40703 bool result;
40704 void *argp1 = 0 ;
40705 int res1 = 0 ;
40706 wxPoint temp2 ;
40707 void *argp3 = 0 ;
40708 int res3 = 0 ;
40709 bool val4 ;
40710 int ecode4 = 0 ;
40711 void *argp5 = 0 ;
40712 int res5 = 0 ;
40713 PyObject * obj0 = 0 ;
40714 PyObject * obj1 = 0 ;
40715 PyObject * obj2 = 0 ;
40716 PyObject * obj3 = 0 ;
40717 PyObject * obj4 = 0 ;
40718 char * kwnames[] = {
40719 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
40720 };
40721
40722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40724 if (!SWIG_IsOK(res1)) {
40725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40726 }
40727 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40728 {
40729 arg2 = &temp2;
40730 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40731 }
40732 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40733 if (!SWIG_IsOK(res3)) {
40734 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDrag" "', expected argument " "3"" of type '" "wxWindow *""'");
40735 }
40736 arg3 = reinterpret_cast< wxWindow * >(argp3);
40737 if (obj3) {
40738 ecode4 = SWIG_AsVal_bool(obj3, &val4);
40739 if (!SWIG_IsOK(ecode4)) {
40740 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_BeginDrag" "', expected argument " "4"" of type '" "bool""'");
40741 }
40742 arg4 = static_cast< bool >(val4);
40743 }
40744 if (obj4) {
40745 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxRect, 0 | 0 );
40746 if (!SWIG_IsOK(res5)) {
40747 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DragImage_BeginDrag" "', expected argument " "5"" of type '" "wxRect *""'");
d55e5bfc 40748 }
1bd55598
RD
40749 arg5 = reinterpret_cast< wxRect * >(argp5);
40750 }
40751 {
40752 PyThreadState* __tstate = wxPyBeginAllowThreads();
40753 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
40754 wxPyEndAllowThreads(__tstate);
40755 if (PyErr_Occurred()) SWIG_fail;
40756 }
40757 {
40758 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40759 }
40760 return resultobj;
40761fail:
40762 return NULL;
40763}
40764
40765
40766SWIGINTERN PyObject *_wrap_DragImage_BeginDragBounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40767 PyObject *resultobj = 0;
40768 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40769 wxPoint *arg2 = 0 ;
40770 wxWindow *arg3 = (wxWindow *) 0 ;
40771 wxWindow *arg4 = (wxWindow *) 0 ;
40772 bool result;
40773 void *argp1 = 0 ;
40774 int res1 = 0 ;
40775 wxPoint temp2 ;
40776 void *argp3 = 0 ;
40777 int res3 = 0 ;
40778 void *argp4 = 0 ;
40779 int res4 = 0 ;
40780 PyObject * obj0 = 0 ;
40781 PyObject * obj1 = 0 ;
40782 PyObject * obj2 = 0 ;
40783 PyObject * obj3 = 0 ;
40784 char * kwnames[] = {
40785 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
40786 };
40787
40788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40789 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40790 if (!SWIG_IsOK(res1)) {
40791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDragBounded" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40792 }
40793 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40794 {
40795 arg2 = &temp2;
40796 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40797 }
40798 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40799 if (!SWIG_IsOK(res3)) {
40800 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDragBounded" "', expected argument " "3"" of type '" "wxWindow *""'");
40801 }
40802 arg3 = reinterpret_cast< wxWindow * >(argp3);
40803 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
40804 if (!SWIG_IsOK(res4)) {
40805 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DragImage_BeginDragBounded" "', expected argument " "4"" of type '" "wxWindow *""'");
40806 }
40807 arg4 = reinterpret_cast< wxWindow * >(argp4);
40808 {
40809 PyThreadState* __tstate = wxPyBeginAllowThreads();
40810 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
40811 wxPyEndAllowThreads(__tstate);
40812 if (PyErr_Occurred()) SWIG_fail;
40813 }
40814 {
40815 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40816 }
40817 return resultobj;
40818fail:
40819 return NULL;
d55e5bfc
RD
40820}
40821
40822
1bd55598
RD
40823SWIGINTERN PyObject *_wrap_DragImage_EndDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40824 PyObject *resultobj = 0;
40825 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40826 bool result;
40827 void *argp1 = 0 ;
40828 int res1 = 0 ;
40829 PyObject *swig_obj[1] ;
40830
40831 if (!args) SWIG_fail;
40832 swig_obj[0] = args;
40833 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40834 if (!SWIG_IsOK(res1)) {
40835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_EndDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40836 }
40837 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40838 {
40839 PyThreadState* __tstate = wxPyBeginAllowThreads();
40840 result = (bool)(arg1)->EndDrag();
40841 wxPyEndAllowThreads(__tstate);
40842 if (PyErr_Occurred()) SWIG_fail;
40843 }
40844 {
40845 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40846 }
40847 return resultobj;
40848fail:
40849 return NULL;
40850}
40851
40852
40853SWIGINTERN PyObject *_wrap_DragImage_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40854 PyObject *resultobj = 0;
40855 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40856 wxPoint *arg2 = 0 ;
40857 bool result;
40858 void *argp1 = 0 ;
40859 int res1 = 0 ;
40860 wxPoint temp2 ;
40861 PyObject * obj0 = 0 ;
40862 PyObject * obj1 = 0 ;
40863 char * kwnames[] = {
40864 (char *) "self",(char *) "pt", NULL
40865 };
40866
40867 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) SWIG_fail;
40868 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40869 if (!SWIG_IsOK(res1)) {
40870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Move" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40871 }
40872 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40873 {
40874 arg2 = &temp2;
40875 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40876 }
40877 {
40878 PyThreadState* __tstate = wxPyBeginAllowThreads();
40879 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
40880 wxPyEndAllowThreads(__tstate);
40881 if (PyErr_Occurred()) SWIG_fail;
40882 }
40883 {
40884 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40885 }
40886 return resultobj;
40887fail:
40888 return NULL;
d55e5bfc
RD
40889}
40890
40891
1bd55598
RD
40892SWIGINTERN PyObject *_wrap_DragImage_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40893 PyObject *resultobj = 0;
40894 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40895 bool result;
40896 void *argp1 = 0 ;
40897 int res1 = 0 ;
40898 PyObject *swig_obj[1] ;
40899
40900 if (!args) SWIG_fail;
40901 swig_obj[0] = args;
40902 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40903 if (!SWIG_IsOK(res1)) {
40904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Show" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40905 }
40906 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40907 {
40908 PyThreadState* __tstate = wxPyBeginAllowThreads();
40909 result = (bool)(arg1)->Show();
40910 wxPyEndAllowThreads(__tstate);
40911 if (PyErr_Occurred()) SWIG_fail;
40912 }
40913 {
40914 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40915 }
40916 return resultobj;
40917fail:
40918 return NULL;
d55e5bfc
RD
40919}
40920
40921
1bd55598
RD
40922SWIGINTERN PyObject *_wrap_DragImage_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40923 PyObject *resultobj = 0;
40924 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40925 bool result;
40926 void *argp1 = 0 ;
40927 int res1 = 0 ;
40928 PyObject *swig_obj[1] ;
40929
40930 if (!args) SWIG_fail;
40931 swig_obj[0] = args;
40932 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40933 if (!SWIG_IsOK(res1)) {
40934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Hide" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40935 }
40936 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40937 {
40938 PyThreadState* __tstate = wxPyBeginAllowThreads();
40939 result = (bool)(arg1)->Hide();
40940 wxPyEndAllowThreads(__tstate);
40941 if (PyErr_Occurred()) SWIG_fail;
40942 }
40943 {
40944 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40945 }
40946 return resultobj;
40947fail:
40948 return NULL;
40949}
40950
40951
40952SWIGINTERN PyObject *_wrap_DragImage_GetImageRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40953 PyObject *resultobj = 0;
40954 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40955 wxPoint *arg2 = 0 ;
40956 wxRect result;
40957 void *argp1 = 0 ;
40958 int res1 = 0 ;
40959 wxPoint temp2 ;
40960 PyObject * obj0 = 0 ;
40961 PyObject * obj1 = 0 ;
40962 char * kwnames[] = {
40963 (char *) "self",(char *) "pos", NULL
40964 };
40965
40966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) SWIG_fail;
40967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40968 if (!SWIG_IsOK(res1)) {
40969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_GetImageRect" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40970 }
40971 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40972 {
40973 arg2 = &temp2;
40974 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40975 }
40976 {
40977 PyThreadState* __tstate = wxPyBeginAllowThreads();
40978 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
40979 wxPyEndAllowThreads(__tstate);
40980 if (PyErr_Occurred()) SWIG_fail;
40981 }
40982 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
40983 return resultobj;
40984fail:
40985 return NULL;
40986}
40987
40988
40989SWIGINTERN PyObject *_wrap_DragImage_DoDrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40990 PyObject *resultobj = 0;
40991 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40992 wxDC *arg2 = 0 ;
40993 wxPoint *arg3 = 0 ;
40994 bool result;
40995 void *argp1 = 0 ;
40996 int res1 = 0 ;
40997 void *argp2 = 0 ;
40998 int res2 = 0 ;
40999 wxPoint temp3 ;
41000 PyObject * obj0 = 0 ;
41001 PyObject * obj1 = 0 ;
41002 PyObject * obj2 = 0 ;
41003 char * kwnames[] = {
41004 (char *) "self",(char *) "dc",(char *) "pos", NULL
41005 };
41006
41007 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41008 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41009 if (!SWIG_IsOK(res1)) {
41010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_DoDrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41011 }
41012 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41013 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
41014 if (!SWIG_IsOK(res2)) {
41015 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
41016 }
41017 if (!argp2) {
41018 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
41019 }
41020 arg2 = reinterpret_cast< wxDC * >(argp2);
41021 {
41022 arg3 = &temp3;
41023 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
41024 }
41025 {
41026 PyThreadState* __tstate = wxPyBeginAllowThreads();
41027 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
41028 wxPyEndAllowThreads(__tstate);
41029 if (PyErr_Occurred()) SWIG_fail;
41030 }
41031 {
41032 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41033 }
41034 return resultobj;
41035fail:
41036 return NULL;
41037}
41038
41039
41040SWIGINTERN PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41041 PyObject *resultobj = 0;
41042 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41043 wxDC *arg2 = 0 ;
41044 wxMemoryDC *arg3 = 0 ;
41045 wxRect *arg4 = 0 ;
41046 wxRect *arg5 = 0 ;
41047 bool result;
41048 void *argp1 = 0 ;
41049 int res1 = 0 ;
41050 void *argp2 = 0 ;
41051 int res2 = 0 ;
41052 void *argp3 = 0 ;
41053 int res3 = 0 ;
41054 wxRect temp4 ;
41055 wxRect temp5 ;
41056 PyObject * obj0 = 0 ;
41057 PyObject * obj1 = 0 ;
41058 PyObject * obj2 = 0 ;
41059 PyObject * obj3 = 0 ;
41060 PyObject * obj4 = 0 ;
41061 char * kwnames[] = {
41062 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
41063 };
41064
41065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41067 if (!SWIG_IsOK(res1)) {
41068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41069 }
41070 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41071 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
41072 if (!SWIG_IsOK(res2)) {
41073 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
41074 }
41075 if (!argp2) {
41076 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
41077 }
41078 arg2 = reinterpret_cast< wxDC * >(argp2);
41079 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxMemoryDC, 0 );
41080 if (!SWIG_IsOK(res3)) {
41081 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
41082 }
41083 if (!argp3) {
41084 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
41085 }
41086 arg3 = reinterpret_cast< wxMemoryDC * >(argp3);
41087 {
41088 arg4 = &temp4;
41089 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
41090 }
41091 {
41092 arg5 = &temp5;
41093 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
41094 }
41095 {
41096 PyThreadState* __tstate = wxPyBeginAllowThreads();
41097 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
41098 wxPyEndAllowThreads(__tstate);
41099 if (PyErr_Occurred()) SWIG_fail;
41100 }
41101 {
41102 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41103 }
41104 return resultobj;
41105fail:
41106 return NULL;
41107}
41108
41109
41110SWIGINTERN PyObject *_wrap_DragImage_RedrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41111 PyObject *resultobj = 0;
41112 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41113 wxPoint *arg2 = 0 ;
41114 wxPoint *arg3 = 0 ;
41115 bool arg4 ;
41116 bool arg5 ;
41117 bool result;
41118 void *argp1 = 0 ;
41119 int res1 = 0 ;
41120 wxPoint temp2 ;
41121 wxPoint temp3 ;
41122 bool val4 ;
41123 int ecode4 = 0 ;
41124 bool val5 ;
41125 int ecode5 = 0 ;
41126 PyObject * obj0 = 0 ;
41127 PyObject * obj1 = 0 ;
41128 PyObject * obj2 = 0 ;
41129 PyObject * obj3 = 0 ;
41130 PyObject * obj4 = 0 ;
41131 char * kwnames[] = {
41132 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
41133 };
41134
41135 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41136 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41137 if (!SWIG_IsOK(res1)) {
41138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_RedrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41139 }
41140 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41141 {
41142 arg2 = &temp2;
41143 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41144 }
41145 {
41146 arg3 = &temp3;
41147 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
41148 }
41149 ecode4 = SWIG_AsVal_bool(obj3, &val4);
41150 if (!SWIG_IsOK(ecode4)) {
41151 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_RedrawImage" "', expected argument " "4"" of type '" "bool""'");
41152 }
41153 arg4 = static_cast< bool >(val4);
41154 ecode5 = SWIG_AsVal_bool(obj4, &val5);
41155 if (!SWIG_IsOK(ecode5)) {
41156 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DragImage_RedrawImage" "', expected argument " "5"" of type '" "bool""'");
41157 }
41158 arg5 = static_cast< bool >(val5);
41159 {
41160 PyThreadState* __tstate = wxPyBeginAllowThreads();
41161 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
41162 wxPyEndAllowThreads(__tstate);
41163 if (PyErr_Occurred()) SWIG_fail;
41164 }
41165 {
41166 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41167 }
41168 return resultobj;
41169fail:
41170 return NULL;
d55e5bfc
RD
41171}
41172
41173
1bd55598
RD
41174SWIGINTERN PyObject *DragImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41175 PyObject *obj;
41176 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41177 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDragImage, SWIG_NewClientData(obj));
41178 return SWIG_Py_Void();
d55e5bfc
RD
41179}
41180
1bd55598
RD
41181SWIGINTERN PyObject *DragImage_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41182 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
41183}
41184
1bd55598
RD
41185SWIGINTERN int DatePickerCtrlNameStr_set(PyObject *) {
41186 SWIG_Error(SWIG_AttributeError,"Variable DatePickerCtrlNameStr is read-only.");
41187 return 1;
d55e5bfc
RD
41188}
41189
41190
1bd55598
RD
41191SWIGINTERN PyObject *DatePickerCtrlNameStr_get(void) {
41192 PyObject *pyobj = 0;
41193
41194 {
41195#if wxUSE_UNICODE
41196 pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
41197#else
41198 pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
41199#endif
41200 }
41201 return pyobj;
41202}
41203
41204
41205SWIGINTERN PyObject *_wrap_new_DatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41206 PyObject *resultobj = 0;
41207 wxWindow *arg1 = (wxWindow *) 0 ;
41208 int arg2 = (int) -1 ;
41209 wxDateTime const &arg3_defvalue = wxDefaultDateTime ;
41210 wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ;
41211 wxPoint const &arg4_defvalue = wxDefaultPosition ;
41212 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
41213 wxSize const &arg5_defvalue = wxDefaultSize ;
41214 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
41215 long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41216 wxValidator const &arg7_defvalue = wxDefaultValidator ;
41217 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
41218 wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ;
41219 wxString *arg8 = (wxString *) &arg8_defvalue ;
41220 wxDatePickerCtrl *result = 0 ;
41221 void *argp1 = 0 ;
41222 int res1 = 0 ;
41223 int val2 ;
41224 int ecode2 = 0 ;
41225 void *argp3 = 0 ;
41226 int res3 = 0 ;
41227 wxPoint temp4 ;
41228 wxSize temp5 ;
41229 long val6 ;
41230 int ecode6 = 0 ;
41231 void *argp7 = 0 ;
41232 int res7 = 0 ;
41233 bool temp8 = false ;
41234 PyObject * obj0 = 0 ;
41235 PyObject * obj1 = 0 ;
41236 PyObject * obj2 = 0 ;
41237 PyObject * obj3 = 0 ;
41238 PyObject * obj4 = 0 ;
41239 PyObject * obj5 = 0 ;
41240 PyObject * obj6 = 0 ;
41241 PyObject * obj7 = 0 ;
41242 char * kwnames[] = {
41243 (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41244 };
41245
41246 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41247 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41248 if (!SWIG_IsOK(res1)) {
41249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41250 }
41251 arg1 = reinterpret_cast< wxWindow * >(argp1);
41252 if (obj1) {
41253 ecode2 = SWIG_AsVal_int(obj1, &val2);
41254 if (!SWIG_IsOK(ecode2)) {
41255 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatePickerCtrl" "', expected argument " "2"" of type '" "int""'");
41256 }
41257 arg2 = static_cast< int >(val2);
41258 }
41259 if (obj2) {
41260 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41261 if (!SWIG_IsOK(res3)) {
41262 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
d55e5bfc 41263 }
1bd55598
RD
41264 if (!argp3) {
41265 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
d55e5bfc 41266 }
1bd55598
RD
41267 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41268 }
41269 if (obj3) {
36ed4f51 41270 {
1bd55598
RD
41271 arg4 = &temp4;
41272 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36ed4f51 41273 }
1bd55598
RD
41274 }
41275 if (obj4) {
d55e5bfc 41276 {
1bd55598
RD
41277 arg5 = &temp5;
41278 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 41279 }
1bd55598
RD
41280 }
41281 if (obj5) {
41282 ecode6 = SWIG_AsVal_long(obj5, &val6);
41283 if (!SWIG_IsOK(ecode6)) {
41284 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DatePickerCtrl" "', expected argument " "6"" of type '" "long""'");
41285 }
41286 arg6 = static_cast< long >(val6);
41287 }
41288 if (obj6) {
41289 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
41290 if (!SWIG_IsOK(res7)) {
41291 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
36ed4f51 41292 }
1bd55598
RD
41293 if (!argp7) {
41294 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 41295 }
1bd55598
RD
41296 arg7 = reinterpret_cast< wxValidator * >(argp7);
41297 }
41298 if (obj7) {
36ed4f51 41299 {
1bd55598
RD
41300 arg8 = wxString_in_helper(obj7);
41301 if (arg8 == NULL) SWIG_fail;
41302 temp8 = true;
36ed4f51 41303 }
1bd55598
RD
41304 }
41305 {
41306 if (!wxPyCheckForApp()) SWIG_fail;
41307 PyThreadState* __tstate = wxPyBeginAllowThreads();
41308 result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
41309 wxPyEndAllowThreads(__tstate);
41310 if (PyErr_Occurred()) SWIG_fail;
41311 }
41312 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_NEW | 0 );
41313 {
41314 if (temp8)
41315 delete arg8;
41316 }
41317 return resultobj;
41318fail:
41319 {
41320 if (temp8)
41321 delete arg8;
41322 }
41323 return NULL;
d55e5bfc
RD
41324}
41325
41326
1bd55598
RD
41327SWIGINTERN PyObject *_wrap_new_PreDatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41328 PyObject *resultobj = 0;
41329 wxDatePickerCtrl *result = 0 ;
41330
41331 if (!SWIG_Python_UnpackTuple(args,"new_PreDatePickerCtrl",0,0,0)) SWIG_fail;
41332 {
41333 if (!wxPyCheckForApp()) SWIG_fail;
41334 PyThreadState* __tstate = wxPyBeginAllowThreads();
41335 result = (wxDatePickerCtrl *)new wxDatePickerCtrl();
41336 wxPyEndAllowThreads(__tstate);
41337 if (PyErr_Occurred()) SWIG_fail;
41338 }
41339 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_OWN | 0 );
41340 return resultobj;
41341fail:
41342 return NULL;
41343}
41344
41345
41346SWIGINTERN PyObject *_wrap_DatePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41347 PyObject *resultobj = 0;
41348 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41349 wxWindow *arg2 = (wxWindow *) 0 ;
41350 int arg3 = (int) -1 ;
41351 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
41352 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
41353 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41354 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41355 wxSize const &arg6_defvalue = wxDefaultSize ;
41356 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41357 long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41358 wxValidator const &arg8_defvalue = wxDefaultValidator ;
41359 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
41360 wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ;
41361 wxString *arg9 = (wxString *) &arg9_defvalue ;
41362 bool result;
41363 void *argp1 = 0 ;
41364 int res1 = 0 ;
41365 void *argp2 = 0 ;
41366 int res2 = 0 ;
41367 int val3 ;
41368 int ecode3 = 0 ;
41369 void *argp4 = 0 ;
41370 int res4 = 0 ;
41371 wxPoint temp5 ;
41372 wxSize temp6 ;
41373 long val7 ;
41374 int ecode7 = 0 ;
41375 void *argp8 = 0 ;
41376 int res8 = 0 ;
41377 bool temp9 = false ;
41378 PyObject * obj0 = 0 ;
41379 PyObject * obj1 = 0 ;
41380 PyObject * obj2 = 0 ;
41381 PyObject * obj3 = 0 ;
41382 PyObject * obj4 = 0 ;
41383 PyObject * obj5 = 0 ;
41384 PyObject * obj6 = 0 ;
41385 PyObject * obj7 = 0 ;
41386 PyObject * obj8 = 0 ;
41387 char * kwnames[] = {
41388 (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41389 };
41390
41391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41393 if (!SWIG_IsOK(res1)) {
41394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_Create" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41395 }
41396 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41397 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41398 if (!SWIG_IsOK(res2)) {
41399 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41400 }
41401 arg2 = reinterpret_cast< wxWindow * >(argp2);
41402 if (obj2) {
41403 ecode3 = SWIG_AsVal_int(obj2, &val3);
41404 if (!SWIG_IsOK(ecode3)) {
41405 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DatePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41406 }
41407 arg3 = static_cast< int >(val3);
41408 }
41409 if (obj3) {
41410 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDateTime, 0 | 0);
41411 if (!SWIG_IsOK(res4)) {
41412 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
36ed4f51 41413 }
1bd55598
RD
41414 if (!argp4) {
41415 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
d55e5bfc 41416 }
1bd55598
RD
41417 arg4 = reinterpret_cast< wxDateTime * >(argp4);
41418 }
41419 if (obj4) {
d55e5bfc 41420 {
1bd55598
RD
41421 arg5 = &temp5;
41422 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 41423 }
1bd55598
RD
41424 }
41425 if (obj5) {
d55e5bfc 41426 {
1bd55598
RD
41427 arg6 = &temp6;
41428 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 41429 }
1bd55598
RD
41430 }
41431 if (obj6) {
41432 ecode7 = SWIG_AsVal_long(obj6, &val7);
41433 if (!SWIG_IsOK(ecode7)) {
41434 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DatePickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
41435 }
41436 arg7 = static_cast< long >(val7);
41437 }
41438 if (obj7) {
41439 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
41440 if (!SWIG_IsOK(res8)) {
41441 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
36ed4f51 41442 }
1bd55598
RD
41443 if (!argp8) {
41444 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 41445 }
1bd55598
RD
41446 arg8 = reinterpret_cast< wxValidator * >(argp8);
41447 }
41448 if (obj8) {
36ed4f51 41449 {
1bd55598
RD
41450 arg9 = wxString_in_helper(obj8);
41451 if (arg9 == NULL) SWIG_fail;
41452 temp9 = true;
36ed4f51 41453 }
1bd55598
RD
41454 }
41455 {
41456 PyThreadState* __tstate = wxPyBeginAllowThreads();
41457 result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
41458 wxPyEndAllowThreads(__tstate);
41459 if (PyErr_Occurred()) SWIG_fail;
41460 }
41461 {
41462 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41463 }
41464 {
41465 if (temp9)
41466 delete arg9;
41467 }
41468 return resultobj;
41469fail:
41470 {
41471 if (temp9)
41472 delete arg9;
41473 }
41474 return NULL;
41475}
41476
41477
41478SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41479 PyObject *resultobj = 0;
41480 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41481 wxDateTime *arg2 = 0 ;
41482 void *argp1 = 0 ;
41483 int res1 = 0 ;
41484 void *argp2 = 0 ;
41485 int res2 = 0 ;
41486 PyObject * obj0 = 0 ;
41487 PyObject * obj1 = 0 ;
41488 char * kwnames[] = {
41489 (char *) "self",(char *) "dt", NULL
41490 };
41491
41492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
41493 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41494 if (!SWIG_IsOK(res1)) {
41495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41496 }
41497 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41498 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41499 if (!SWIG_IsOK(res2)) {
41500 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41501 }
41502 if (!argp2) {
41503 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41504 }
41505 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41506 {
41507 PyThreadState* __tstate = wxPyBeginAllowThreads();
41508 (arg1)->SetValue((wxDateTime const &)*arg2);
41509 wxPyEndAllowThreads(__tstate);
41510 if (PyErr_Occurred()) SWIG_fail;
41511 }
41512 resultobj = SWIG_Py_Void();
41513 return resultobj;
41514fail:
41515 return NULL;
d55e5bfc
RD
41516}
41517
41518
1bd55598
RD
41519SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41520 PyObject *resultobj = 0;
41521 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41522 wxDateTime result;
41523 void *argp1 = 0 ;
41524 int res1 = 0 ;
41525 PyObject *swig_obj[1] ;
41526
41527 if (!args) SWIG_fail;
41528 swig_obj[0] = args;
41529 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41530 if (!SWIG_IsOK(res1)) {
41531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl const *""'");
41532 }
41533 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41534 {
41535 PyThreadState* __tstate = wxPyBeginAllowThreads();
41536 result = ((wxDatePickerCtrl const *)arg1)->GetValue();
41537 wxPyEndAllowThreads(__tstate);
41538 if (PyErr_Occurred()) SWIG_fail;
41539 }
41540 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41541 return resultobj;
41542fail:
41543 return NULL;
41544}
41545
41546
41547SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41548 PyObject *resultobj = 0;
41549 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41550 wxDateTime *arg2 = 0 ;
41551 wxDateTime *arg3 = 0 ;
41552 void *argp1 = 0 ;
41553 int res1 = 0 ;
41554 void *argp2 = 0 ;
41555 int res2 = 0 ;
41556 void *argp3 = 0 ;
41557 int res3 = 0 ;
41558 PyObject * obj0 = 0 ;
41559 PyObject * obj1 = 0 ;
41560 PyObject * obj2 = 0 ;
41561 char * kwnames[] = {
41562 (char *) "self",(char *) "dt1",(char *) "dt2", NULL
41563 };
41564
41565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41567 if (!SWIG_IsOK(res1)) {
41568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41569 }
41570 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41571 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41572 if (!SWIG_IsOK(res2)) {
41573 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41574 }
41575 if (!argp2) {
41576 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41577 }
41578 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41579 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41580 if (!SWIG_IsOK(res3)) {
41581 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41582 }
41583 if (!argp3) {
41584 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41585 }
41586 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41587 {
41588 PyThreadState* __tstate = wxPyBeginAllowThreads();
41589 (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
41590 wxPyEndAllowThreads(__tstate);
41591 if (PyErr_Occurred()) SWIG_fail;
41592 }
41593 resultobj = SWIG_Py_Void();
41594 return resultobj;
41595fail:
41596 return NULL;
d55e5bfc
RD
41597}
41598
41599
1bd55598
RD
41600SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41601 PyObject *resultobj = 0;
41602 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41603 wxDateTime result;
41604 void *argp1 = 0 ;
41605 int res1 = 0 ;
41606 PyObject *swig_obj[1] ;
41607
41608 if (!args) SWIG_fail;
41609 swig_obj[0] = args;
41610 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41611 if (!SWIG_IsOK(res1)) {
41612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetLowerLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41613 }
41614 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41615 {
41616 PyThreadState* __tstate = wxPyBeginAllowThreads();
41617 result = wxDatePickerCtrl_GetLowerLimit(arg1);
41618 wxPyEndAllowThreads(__tstate);
41619 if (PyErr_Occurred()) SWIG_fail;
41620 }
41621 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41622 return resultobj;
41623fail:
41624 return NULL;
d55e5bfc
RD
41625}
41626
41627
1bd55598
RD
41628SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41629 PyObject *resultobj = 0;
41630 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41631 wxDateTime result;
41632 void *argp1 = 0 ;
41633 int res1 = 0 ;
41634 PyObject *swig_obj[1] ;
41635
41636 if (!args) SWIG_fail;
41637 swig_obj[0] = args;
41638 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41639 if (!SWIG_IsOK(res1)) {
41640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetUpperLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41641 }
41642 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41643 {
41644 PyThreadState* __tstate = wxPyBeginAllowThreads();
41645 result = wxDatePickerCtrl_GetUpperLimit(arg1);
41646 wxPyEndAllowThreads(__tstate);
41647 if (PyErr_Occurred()) SWIG_fail;
41648 }
41649 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41650 return resultobj;
41651fail:
41652 return NULL;
d55e5bfc
RD
41653}
41654
41655
1bd55598
RD
41656SWIGINTERN PyObject *DatePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41657 PyObject *obj;
41658 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41659 SWIG_TypeNewClientData(SWIGTYPE_p_wxDatePickerCtrl, SWIG_NewClientData(obj));
41660 return SWIG_Py_Void();
d55e5bfc
RD
41661}
41662
1bd55598
RD
41663SWIGINTERN PyObject *DatePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41664 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
41665}
41666
704eda0c
RD
41667SWIGINTERN int HyperlinkCtrlNameStr_set(PyObject *) {
41668 SWIG_Error(SWIG_AttributeError,"Variable HyperlinkCtrlNameStr is read-only.");
41669 return 1;
41670}
41671
41672
41673SWIGINTERN PyObject *HyperlinkCtrlNameStr_get(void) {
41674 PyObject *pyobj = 0;
41675
41676 {
41677#if wxUSE_UNICODE
41678 pyobj = PyUnicode_FromWideChar((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41679#else
41680 pyobj = PyString_FromStringAndSize((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41681#endif
41682 }
41683 return pyobj;
41684}
41685
41686
41687SWIGINTERN PyObject *_wrap_new_HyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41688 PyObject *resultobj = 0;
41689 wxWindow *arg1 = (wxWindow *) 0 ;
41690 int arg2 ;
41691 wxString *arg3 = 0 ;
41692 wxString *arg4 = 0 ;
41693 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41694 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41695 wxSize const &arg6_defvalue = wxDefaultSize ;
41696 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41697 long arg7 = (long) wxHL_DEFAULT_STYLE ;
41698 wxString const &arg8_defvalue = wxPyHyperlinkCtrlNameStr ;
41699 wxString *arg8 = (wxString *) &arg8_defvalue ;
41700 wxHyperlinkCtrl *result = 0 ;
41701 void *argp1 = 0 ;
41702 int res1 = 0 ;
41703 int val2 ;
41704 int ecode2 = 0 ;
41705 bool temp3 = false ;
41706 bool temp4 = false ;
41707 wxPoint temp5 ;
41708 wxSize temp6 ;
41709 long val7 ;
41710 int ecode7 = 0 ;
41711 bool temp8 = false ;
41712 PyObject * obj0 = 0 ;
41713 PyObject * obj1 = 0 ;
41714 PyObject * obj2 = 0 ;
41715 PyObject * obj3 = 0 ;
41716 PyObject * obj4 = 0 ;
41717 PyObject * obj5 = 0 ;
41718 PyObject * obj6 = 0 ;
41719 PyObject * obj7 = 0 ;
41720 char * kwnames[] = {
41721 (char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41722 };
41723
41724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:new_HyperlinkCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41725 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41726 if (!SWIG_IsOK(res1)) {
41727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41728 }
41729 arg1 = reinterpret_cast< wxWindow * >(argp1);
41730 ecode2 = SWIG_AsVal_int(obj1, &val2);
41731 if (!SWIG_IsOK(ecode2)) {
41732 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkCtrl" "', expected argument " "2"" of type '" "int""'");
41733 }
41734 arg2 = static_cast< int >(val2);
41735 {
41736 arg3 = wxString_in_helper(obj2);
41737 if (arg3 == NULL) SWIG_fail;
41738 temp3 = true;
41739 }
41740 {
41741 arg4 = wxString_in_helper(obj3);
41742 if (arg4 == NULL) SWIG_fail;
41743 temp4 = true;
41744 }
41745 if (obj4) {
41746 {
41747 arg5 = &temp5;
41748 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
41749 }
41750 }
41751 if (obj5) {
41752 {
41753 arg6 = &temp6;
41754 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
41755 }
41756 }
41757 if (obj6) {
41758 ecode7 = SWIG_AsVal_long(obj6, &val7);
41759 if (!SWIG_IsOK(ecode7)) {
41760 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_HyperlinkCtrl" "', expected argument " "7"" of type '" "long""'");
41761 }
41762 arg7 = static_cast< long >(val7);
41763 }
41764 if (obj7) {
41765 {
41766 arg8 = wxString_in_helper(obj7);
41767 if (arg8 == NULL) SWIG_fail;
41768 temp8 = true;
41769 }
41770 }
41771 {
41772 if (!wxPyCheckForApp()) SWIG_fail;
41773 PyThreadState* __tstate = wxPyBeginAllowThreads();
41774 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
41775 wxPyEndAllowThreads(__tstate);
41776 if (PyErr_Occurred()) SWIG_fail;
41777 }
41778 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_NEW | 0 );
41779 {
41780 if (temp3)
41781 delete arg3;
41782 }
41783 {
41784 if (temp4)
41785 delete arg4;
41786 }
41787 {
41788 if (temp8)
41789 delete arg8;
41790 }
41791 return resultobj;
41792fail:
41793 {
41794 if (temp3)
41795 delete arg3;
41796 }
41797 {
41798 if (temp4)
41799 delete arg4;
41800 }
41801 {
41802 if (temp8)
41803 delete arg8;
41804 }
41805 return NULL;
41806}
41807
41808
41809SWIGINTERN PyObject *_wrap_new_PreHyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41810 PyObject *resultobj = 0;
41811 wxHyperlinkCtrl *result = 0 ;
41812
41813 if (!SWIG_Python_UnpackTuple(args,"new_PreHyperlinkCtrl",0,0,0)) SWIG_fail;
41814 {
41815 if (!wxPyCheckForApp()) SWIG_fail;
41816 PyThreadState* __tstate = wxPyBeginAllowThreads();
41817 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl();
41818 wxPyEndAllowThreads(__tstate);
41819 if (PyErr_Occurred()) SWIG_fail;
41820 }
41821 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_OWN | 0 );
41822 return resultobj;
41823fail:
41824 return NULL;
41825}
41826
41827
41828SWIGINTERN PyObject *_wrap_HyperlinkCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41829 PyObject *resultobj = 0;
41830 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41831 wxWindow *arg2 = (wxWindow *) 0 ;
41832 int arg3 ;
41833 wxString *arg4 = 0 ;
41834 wxString *arg5 = 0 ;
41835 wxPoint const &arg6_defvalue = wxDefaultPosition ;
41836 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
41837 wxSize const &arg7_defvalue = wxDefaultSize ;
41838 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
41839 long arg8 = (long) wxHL_DEFAULT_STYLE ;
41840 wxString const &arg9_defvalue = wxPyHyperlinkCtrlNameStr ;
41841 wxString *arg9 = (wxString *) &arg9_defvalue ;
41842 bool result;
41843 void *argp1 = 0 ;
41844 int res1 = 0 ;
41845 void *argp2 = 0 ;
41846 int res2 = 0 ;
41847 int val3 ;
41848 int ecode3 = 0 ;
41849 bool temp4 = false ;
41850 bool temp5 = false ;
41851 wxPoint temp6 ;
41852 wxSize temp7 ;
41853 long val8 ;
41854 int ecode8 = 0 ;
41855 bool temp9 = false ;
41856 PyObject * obj0 = 0 ;
41857 PyObject * obj1 = 0 ;
41858 PyObject * obj2 = 0 ;
41859 PyObject * obj3 = 0 ;
41860 PyObject * obj4 = 0 ;
41861 PyObject * obj5 = 0 ;
41862 PyObject * obj6 = 0 ;
41863 PyObject * obj7 = 0 ;
41864 PyObject * obj8 = 0 ;
41865 char * kwnames[] = {
41866 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41867 };
41868
41869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOO:HyperlinkCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41871 if (!SWIG_IsOK(res1)) {
41872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_Create" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41873 }
41874 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41875 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41876 if (!SWIG_IsOK(res2)) {
41877 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HyperlinkCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41878 }
41879 arg2 = reinterpret_cast< wxWindow * >(argp2);
41880 ecode3 = SWIG_AsVal_int(obj2, &val3);
41881 if (!SWIG_IsOK(ecode3)) {
41882 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HyperlinkCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41883 }
41884 arg3 = static_cast< int >(val3);
41885 {
41886 arg4 = wxString_in_helper(obj3);
41887 if (arg4 == NULL) SWIG_fail;
41888 temp4 = true;
41889 }
41890 {
41891 arg5 = wxString_in_helper(obj4);
41892 if (arg5 == NULL) SWIG_fail;
41893 temp5 = true;
41894 }
41895 if (obj5) {
41896 {
41897 arg6 = &temp6;
41898 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
41899 }
41900 }
41901 if (obj6) {
41902 {
41903 arg7 = &temp7;
41904 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
41905 }
41906 }
41907 if (obj7) {
41908 ecode8 = SWIG_AsVal_long(obj7, &val8);
41909 if (!SWIG_IsOK(ecode8)) {
41910 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "HyperlinkCtrl_Create" "', expected argument " "8"" of type '" "long""'");
41911 }
41912 arg8 = static_cast< long >(val8);
41913 }
41914 if (obj8) {
41915 {
41916 arg9 = wxString_in_helper(obj8);
41917 if (arg9 == NULL) SWIG_fail;
41918 temp9 = true;
41919 }
41920 }
41921 {
41922 PyThreadState* __tstate = wxPyBeginAllowThreads();
41923 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxString const &)*arg9);
41924 wxPyEndAllowThreads(__tstate);
41925 if (PyErr_Occurred()) SWIG_fail;
41926 }
41927 {
41928 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41929 }
41930 {
41931 if (temp4)
41932 delete arg4;
41933 }
41934 {
41935 if (temp5)
41936 delete arg5;
41937 }
41938 {
41939 if (temp9)
41940 delete arg9;
41941 }
41942 return resultobj;
41943fail:
41944 {
41945 if (temp4)
41946 delete arg4;
41947 }
41948 {
41949 if (temp5)
41950 delete arg5;
41951 }
41952 {
41953 if (temp9)
41954 delete arg9;
41955 }
41956 return NULL;
41957}
41958
41959
41960SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41961 PyObject *resultobj = 0;
41962 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41963 wxColour result;
41964 void *argp1 = 0 ;
41965 int res1 = 0 ;
41966 PyObject *swig_obj[1] ;
41967
41968 if (!args) SWIG_fail;
41969 swig_obj[0] = args;
41970 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41971 if (!SWIG_IsOK(res1)) {
41972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41973 }
41974 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41975 {
41976 PyThreadState* __tstate = wxPyBeginAllowThreads();
41977 result = ((wxHyperlinkCtrl const *)arg1)->GetHoverColour();
41978 wxPyEndAllowThreads(__tstate);
41979 if (PyErr_Occurred()) SWIG_fail;
41980 }
41981 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
41982 return resultobj;
41983fail:
41984 return NULL;
41985}
41986
41987
41988SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41989 PyObject *resultobj = 0;
41990 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41991 wxColour *arg2 = 0 ;
41992 void *argp1 = 0 ;
41993 int res1 = 0 ;
41994 wxColour temp2 ;
41995 PyObject * obj0 = 0 ;
41996 PyObject * obj1 = 0 ;
41997 char * kwnames[] = {
41998 (char *) "self",(char *) "colour", NULL
41999 };
42000
42001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetHoverColour",kwnames,&obj0,&obj1)) SWIG_fail;
42002 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42003 if (!SWIG_IsOK(res1)) {
42004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42005 }
42006 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42007 {
42008 arg2 = &temp2;
42009 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42010 }
42011 {
42012 PyThreadState* __tstate = wxPyBeginAllowThreads();
42013 (arg1)->SetHoverColour((wxColour const &)*arg2);
42014 wxPyEndAllowThreads(__tstate);
42015 if (PyErr_Occurred()) SWIG_fail;
42016 }
42017 resultobj = SWIG_Py_Void();
42018 return resultobj;
42019fail:
42020 return NULL;
42021}
42022
42023
42024SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42025 PyObject *resultobj = 0;
42026 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42027 wxColour result;
42028 void *argp1 = 0 ;
42029 int res1 = 0 ;
42030 PyObject *swig_obj[1] ;
42031
42032 if (!args) SWIG_fail;
42033 swig_obj[0] = args;
42034 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42035 if (!SWIG_IsOK(res1)) {
42036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42037 }
42038 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42039 {
42040 PyThreadState* __tstate = wxPyBeginAllowThreads();
42041 result = ((wxHyperlinkCtrl const *)arg1)->GetNormalColour();
42042 wxPyEndAllowThreads(__tstate);
42043 if (PyErr_Occurred()) SWIG_fail;
42044 }
42045 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42046 return resultobj;
42047fail:
42048 return NULL;
42049}
42050
42051
42052SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42053 PyObject *resultobj = 0;
42054 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42055 wxColour *arg2 = 0 ;
42056 void *argp1 = 0 ;
42057 int res1 = 0 ;
42058 wxColour temp2 ;
42059 PyObject * obj0 = 0 ;
42060 PyObject * obj1 = 0 ;
42061 char * kwnames[] = {
42062 (char *) "self",(char *) "colour", NULL
42063 };
42064
42065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetNormalColour",kwnames,&obj0,&obj1)) SWIG_fail;
42066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42067 if (!SWIG_IsOK(res1)) {
42068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42069 }
42070 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42071 {
42072 arg2 = &temp2;
42073 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42074 }
42075 {
42076 PyThreadState* __tstate = wxPyBeginAllowThreads();
42077 (arg1)->SetNormalColour((wxColour const &)*arg2);
42078 wxPyEndAllowThreads(__tstate);
42079 if (PyErr_Occurred()) SWIG_fail;
42080 }
42081 resultobj = SWIG_Py_Void();
42082 return resultobj;
42083fail:
42084 return NULL;
42085}
42086
42087
42088SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42089 PyObject *resultobj = 0;
42090 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42091 wxColour result;
42092 void *argp1 = 0 ;
42093 int res1 = 0 ;
42094 PyObject *swig_obj[1] ;
42095
42096 if (!args) SWIG_fail;
42097 swig_obj[0] = args;
42098 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42099 if (!SWIG_IsOK(res1)) {
42100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42101 }
42102 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42103 {
42104 PyThreadState* __tstate = wxPyBeginAllowThreads();
42105 result = ((wxHyperlinkCtrl const *)arg1)->GetVisitedColour();
42106 wxPyEndAllowThreads(__tstate);
42107 if (PyErr_Occurred()) SWIG_fail;
42108 }
42109 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42110 return resultobj;
42111fail:
42112 return NULL;
42113}
42114
42115
42116SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42117 PyObject *resultobj = 0;
42118 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42119 wxColour *arg2 = 0 ;
42120 void *argp1 = 0 ;
42121 int res1 = 0 ;
42122 wxColour temp2 ;
42123 PyObject * obj0 = 0 ;
42124 PyObject * obj1 = 0 ;
42125 char * kwnames[] = {
42126 (char *) "self",(char *) "colour", NULL
42127 };
42128
42129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetVisitedColour",kwnames,&obj0,&obj1)) SWIG_fail;
42130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42131 if (!SWIG_IsOK(res1)) {
42132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42133 }
42134 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42135 {
42136 arg2 = &temp2;
42137 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42138 }
42139 {
42140 PyThreadState* __tstate = wxPyBeginAllowThreads();
42141 (arg1)->SetVisitedColour((wxColour const &)*arg2);
42142 wxPyEndAllowThreads(__tstate);
42143 if (PyErr_Occurred()) SWIG_fail;
42144 }
42145 resultobj = SWIG_Py_Void();
42146 return resultobj;
42147fail:
42148 return NULL;
42149}
42150
42151
42152SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42153 PyObject *resultobj = 0;
42154 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42155 wxString result;
42156 void *argp1 = 0 ;
42157 int res1 = 0 ;
42158 PyObject *swig_obj[1] ;
42159
42160 if (!args) SWIG_fail;
42161 swig_obj[0] = args;
42162 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42163 if (!SWIG_IsOK(res1)) {
42164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42165 }
42166 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42167 {
42168 PyThreadState* __tstate = wxPyBeginAllowThreads();
42169 result = ((wxHyperlinkCtrl const *)arg1)->GetURL();
42170 wxPyEndAllowThreads(__tstate);
42171 if (PyErr_Occurred()) SWIG_fail;
42172 }
42173 {
42174#if wxUSE_UNICODE
42175 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42176#else
42177 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42178#endif
42179 }
42180 return resultobj;
42181fail:
42182 return NULL;
42183}
42184
42185
42186SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42187 PyObject *resultobj = 0;
42188 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42189 wxString *arg2 = 0 ;
42190 void *argp1 = 0 ;
42191 int res1 = 0 ;
42192 bool temp2 = false ;
42193 PyObject * obj0 = 0 ;
42194 PyObject * obj1 = 0 ;
42195 char * kwnames[] = {
42196 (char *) "self",(char *) "url", NULL
42197 };
42198
42199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42200 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42201 if (!SWIG_IsOK(res1)) {
42202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42203 }
42204 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42205 {
42206 arg2 = wxString_in_helper(obj1);
42207 if (arg2 == NULL) SWIG_fail;
42208 temp2 = true;
42209 }
42210 {
42211 PyThreadState* __tstate = wxPyBeginAllowThreads();
42212 (arg1)->SetURL((wxString const &)*arg2);
42213 wxPyEndAllowThreads(__tstate);
42214 if (PyErr_Occurred()) SWIG_fail;
42215 }
42216 resultobj = SWIG_Py_Void();
42217 {
42218 if (temp2)
42219 delete arg2;
42220 }
42221 return resultobj;
42222fail:
42223 {
42224 if (temp2)
42225 delete arg2;
42226 }
42227 return NULL;
42228}
42229
42230
42231SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42232 PyObject *resultobj = 0;
42233 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42234 bool arg2 = (bool) true ;
42235 void *argp1 = 0 ;
42236 int res1 = 0 ;
42237 bool val2 ;
42238 int ecode2 = 0 ;
42239 PyObject * obj0 = 0 ;
42240 PyObject * obj1 = 0 ;
42241 char * kwnames[] = {
42242 (char *) "self",(char *) "visited", NULL
42243 };
42244
42245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:HyperlinkCtrl_SetVisited",kwnames,&obj0,&obj1)) SWIG_fail;
42246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42247 if (!SWIG_IsOK(res1)) {
42248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42249 }
42250 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42251 if (obj1) {
42252 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42253 if (!SWIG_IsOK(ecode2)) {
42254 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "2"" of type '" "bool""'");
42255 }
42256 arg2 = static_cast< bool >(val2);
42257 }
42258 {
42259 PyThreadState* __tstate = wxPyBeginAllowThreads();
42260 (arg1)->SetVisited(arg2);
42261 wxPyEndAllowThreads(__tstate);
42262 if (PyErr_Occurred()) SWIG_fail;
42263 }
42264 resultobj = SWIG_Py_Void();
42265 return resultobj;
42266fail:
42267 return NULL;
42268}
42269
42270
42271SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42272 PyObject *resultobj = 0;
42273 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42274 bool result;
42275 void *argp1 = 0 ;
42276 int res1 = 0 ;
42277 PyObject *swig_obj[1] ;
42278
42279 if (!args) SWIG_fail;
42280 swig_obj[0] = args;
42281 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42282 if (!SWIG_IsOK(res1)) {
42283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42284 }
42285 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42286 {
42287 PyThreadState* __tstate = wxPyBeginAllowThreads();
42288 result = (bool)((wxHyperlinkCtrl const *)arg1)->GetVisited();
42289 wxPyEndAllowThreads(__tstate);
42290 if (PyErr_Occurred()) SWIG_fail;
42291 }
42292 {
42293 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42294 }
42295 return resultobj;
42296fail:
42297 return NULL;
42298}
42299
42300
42301SWIGINTERN PyObject *HyperlinkCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42302 PyObject *obj;
42303 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42304 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkCtrl, SWIG_NewClientData(obj));
42305 return SWIG_Py_Void();
42306}
42307
42308SWIGINTERN PyObject *HyperlinkCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42309 return SWIG_Python_InitShadowInstance(args);
42310}
42311
42312SWIGINTERN PyObject *_wrap_new_HyperlinkEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42313 PyObject *resultobj = 0;
42314 wxObject *arg1 = (wxObject *) 0 ;
42315 int arg2 ;
42316 wxString *arg3 = 0 ;
42317 wxHyperlinkEvent *result = 0 ;
42318 void *argp1 = 0 ;
42319 int res1 = 0 ;
42320 int val2 ;
42321 int ecode2 = 0 ;
42322 bool temp3 = false ;
42323 PyObject * obj0 = 0 ;
42324 PyObject * obj1 = 0 ;
42325 PyObject * obj2 = 0 ;
42326 char * kwnames[] = {
42327 (char *) "generator",(char *) "id",(char *) "url", NULL
42328 };
42329
42330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_HyperlinkEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
42331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
42332 if (!SWIG_IsOK(res1)) {
42333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkEvent" "', expected argument " "1"" of type '" "wxObject *""'");
42334 }
42335 arg1 = reinterpret_cast< wxObject * >(argp1);
42336 ecode2 = SWIG_AsVal_int(obj1, &val2);
42337 if (!SWIG_IsOK(ecode2)) {
42338 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkEvent" "', expected argument " "2"" of type '" "int""'");
42339 }
42340 arg2 = static_cast< int >(val2);
42341 {
42342 arg3 = wxString_in_helper(obj2);
42343 if (arg3 == NULL) SWIG_fail;
42344 temp3 = true;
42345 }
42346 {
42347 PyThreadState* __tstate = wxPyBeginAllowThreads();
42348 result = (wxHyperlinkEvent *)new wxHyperlinkEvent(arg1,arg2,(wxString const &)*arg3);
42349 wxPyEndAllowThreads(__tstate);
42350 if (PyErr_Occurred()) SWIG_fail;
42351 }
42352 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkEvent, SWIG_POINTER_NEW | 0 );
42353 {
42354 if (temp3)
42355 delete arg3;
42356 }
42357 return resultobj;
42358fail:
42359 {
42360 if (temp3)
42361 delete arg3;
42362 }
42363 return NULL;
42364}
42365
42366
42367SWIGINTERN PyObject *_wrap_HyperlinkEvent_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42368 PyObject *resultobj = 0;
42369 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42370 wxString result;
42371 void *argp1 = 0 ;
42372 int res1 = 0 ;
42373 PyObject *swig_obj[1] ;
42374
42375 if (!args) SWIG_fail;
42376 swig_obj[0] = args;
42377 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42378 if (!SWIG_IsOK(res1)) {
42379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent const *""'");
42380 }
42381 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42382 {
42383 PyThreadState* __tstate = wxPyBeginAllowThreads();
42384 result = ((wxHyperlinkEvent const *)arg1)->GetURL();
42385 wxPyEndAllowThreads(__tstate);
42386 if (PyErr_Occurred()) SWIG_fail;
42387 }
42388 {
42389#if wxUSE_UNICODE
42390 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42391#else
42392 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42393#endif
42394 }
42395 return resultobj;
42396fail:
42397 return NULL;
42398}
42399
42400
42401SWIGINTERN PyObject *_wrap_HyperlinkEvent_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42402 PyObject *resultobj = 0;
42403 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42404 wxString *arg2 = 0 ;
42405 void *argp1 = 0 ;
42406 int res1 = 0 ;
42407 bool temp2 = false ;
42408 PyObject * obj0 = 0 ;
42409 PyObject * obj1 = 0 ;
42410 char * kwnames[] = {
42411 (char *) "self",(char *) "url", NULL
42412 };
42413
42414 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkEvent_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42415 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42416 if (!SWIG_IsOK(res1)) {
42417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent *""'");
42418 }
42419 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42420 {
42421 arg2 = wxString_in_helper(obj1);
42422 if (arg2 == NULL) SWIG_fail;
42423 temp2 = true;
42424 }
42425 {
42426 PyThreadState* __tstate = wxPyBeginAllowThreads();
42427 (arg1)->SetURL((wxString const &)*arg2);
42428 wxPyEndAllowThreads(__tstate);
42429 if (PyErr_Occurred()) SWIG_fail;
42430 }
42431 resultobj = SWIG_Py_Void();
42432 {
42433 if (temp2)
42434 delete arg2;
42435 }
42436 return resultobj;
42437fail:
42438 {
42439 if (temp2)
42440 delete arg2;
42441 }
42442 return NULL;
42443}
42444
42445
42446SWIGINTERN PyObject *HyperlinkEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42447 PyObject *obj;
42448 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42449 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkEvent, SWIG_NewClientData(obj));
42450 return SWIG_Py_Void();
42451}
42452
42453SWIGINTERN PyObject *HyperlinkEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42454 return SWIG_Python_InitShadowInstance(args);
42455}
42456
b850e7f3
RD
42457SWIGINTERN PyObject *_wrap_PickerBase_CreateBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42458 PyObject *resultobj = 0;
42459 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42460 wxWindow *arg2 = (wxWindow *) 0 ;
42461 int arg3 ;
42462 wxString const &arg4_defvalue = wxEmptyString ;
42463 wxString *arg4 = (wxString *) &arg4_defvalue ;
42464 wxPoint const &arg5_defvalue = wxDefaultPosition ;
42465 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
42466 wxSize const &arg6_defvalue = wxDefaultSize ;
42467 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
42468 long arg7 = (long) 0 ;
42469 wxValidator const &arg8_defvalue = wxDefaultValidator ;
42470 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
42471 wxString const &arg9_defvalue = wxButtonNameStr ;
42472 wxString *arg9 = (wxString *) &arg9_defvalue ;
42473 bool result;
42474 void *argp1 = 0 ;
42475 int res1 = 0 ;
42476 void *argp2 = 0 ;
42477 int res2 = 0 ;
42478 int val3 ;
42479 int ecode3 = 0 ;
42480 bool temp4 = false ;
42481 wxPoint temp5 ;
42482 wxSize temp6 ;
42483 long val7 ;
42484 int ecode7 = 0 ;
42485 void *argp8 = 0 ;
42486 int res8 = 0 ;
42487 bool temp9 = false ;
42488 PyObject * obj0 = 0 ;
42489 PyObject * obj1 = 0 ;
42490 PyObject * obj2 = 0 ;
42491 PyObject * obj3 = 0 ;
42492 PyObject * obj4 = 0 ;
42493 PyObject * obj5 = 0 ;
42494 PyObject * obj6 = 0 ;
42495 PyObject * obj7 = 0 ;
42496 PyObject * obj8 = 0 ;
42497 char * kwnames[] = {
42498 (char *) "self",(char *) "parent",(char *) "id",(char *) "text",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
42499 };
42500
42501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:PickerBase_CreateBase",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
42502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42503 if (!SWIG_IsOK(res1)) {
42504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_CreateBase" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42505 }
42506 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42507 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
42508 if (!SWIG_IsOK(res2)) {
42509 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PickerBase_CreateBase" "', expected argument " "2"" of type '" "wxWindow *""'");
42510 }
42511 arg2 = reinterpret_cast< wxWindow * >(argp2);
42512 ecode3 = SWIG_AsVal_int(obj2, &val3);
42513 if (!SWIG_IsOK(ecode3)) {
42514 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PickerBase_CreateBase" "', expected argument " "3"" of type '" "int""'");
42515 }
42516 arg3 = static_cast< int >(val3);
42517 if (obj3) {
42518 {
42519 arg4 = wxString_in_helper(obj3);
42520 if (arg4 == NULL) SWIG_fail;
42521 temp4 = true;
42522 }
42523 }
42524 if (obj4) {
42525 {
42526 arg5 = &temp5;
42527 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
42528 }
42529 }
42530 if (obj5) {
42531 {
42532 arg6 = &temp6;
42533 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
42534 }
42535 }
42536 if (obj6) {
42537 ecode7 = SWIG_AsVal_long(obj6, &val7);
42538 if (!SWIG_IsOK(ecode7)) {
42539 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PickerBase_CreateBase" "', expected argument " "7"" of type '" "long""'");
42540 }
42541 arg7 = static_cast< long >(val7);
42542 }
42543 if (obj7) {
42544 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
42545 if (!SWIG_IsOK(res8)) {
42546 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42547 }
42548 if (!argp8) {
42549 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42550 }
42551 arg8 = reinterpret_cast< wxValidator * >(argp8);
42552 }
42553 if (obj8) {
42554 {
42555 arg9 = wxString_in_helper(obj8);
42556 if (arg9 == NULL) SWIG_fail;
42557 temp9 = true;
42558 }
42559 }
42560 {
42561 PyThreadState* __tstate = wxPyBeginAllowThreads();
42562 result = (bool)(arg1)->CreateBase(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
42563 wxPyEndAllowThreads(__tstate);
42564 if (PyErr_Occurred()) SWIG_fail;
42565 }
42566 {
42567 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42568 }
42569 {
42570 if (temp4)
42571 delete arg4;
42572 }
42573 {
42574 if (temp9)
42575 delete arg9;
42576 }
42577 return resultobj;
42578fail:
42579 {
42580 if (temp4)
42581 delete arg4;
42582 }
42583 {
42584 if (temp9)
42585 delete arg9;
42586 }
42587 return NULL;
42588}
42589
42590
42591SWIGINTERN PyObject *_wrap_PickerBase_SetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42592 PyObject *resultobj = 0;
42593 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42594 int arg2 ;
42595 void *argp1 = 0 ;
42596 int res1 = 0 ;
42597 int val2 ;
42598 int ecode2 = 0 ;
42599 PyObject * obj0 = 0 ;
42600 PyObject * obj1 = 0 ;
42601 char * kwnames[] = {
42602 (char *) "self",(char *) "newmargin", NULL
42603 };
42604
42605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetInternalMargin",kwnames,&obj0,&obj1)) SWIG_fail;
42606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42607 if (!SWIG_IsOK(res1)) {
42608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42609 }
42610 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42611 ecode2 = SWIG_AsVal_int(obj1, &val2);
42612 if (!SWIG_IsOK(ecode2)) {
42613 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "2"" of type '" "int""'");
42614 }
42615 arg2 = static_cast< int >(val2);
42616 {
42617 PyThreadState* __tstate = wxPyBeginAllowThreads();
42618 (arg1)->SetInternalMargin(arg2);
42619 wxPyEndAllowThreads(__tstate);
42620 if (PyErr_Occurred()) SWIG_fail;
42621 }
42622 resultobj = SWIG_Py_Void();
42623 return resultobj;
42624fail:
42625 return NULL;
42626}
42627
42628
42629SWIGINTERN PyObject *_wrap_PickerBase_GetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42630 PyObject *resultobj = 0;
42631 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42632 int result;
42633 void *argp1 = 0 ;
42634 int res1 = 0 ;
42635 PyObject *swig_obj[1] ;
42636
42637 if (!args) SWIG_fail;
42638 swig_obj[0] = args;
42639 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42640 if (!SWIG_IsOK(res1)) {
42641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42642 }
42643 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42644 {
42645 PyThreadState* __tstate = wxPyBeginAllowThreads();
42646 result = (int)((wxPickerBase const *)arg1)->GetInternalMargin();
42647 wxPyEndAllowThreads(__tstate);
42648 if (PyErr_Occurred()) SWIG_fail;
42649 }
42650 resultobj = SWIG_From_int(static_cast< int >(result));
42651 return resultobj;
42652fail:
42653 return NULL;
42654}
42655
42656
42657SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42658 PyObject *resultobj = 0;
42659 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42660 int arg2 ;
42661 void *argp1 = 0 ;
42662 int res1 = 0 ;
42663 int val2 ;
42664 int ecode2 = 0 ;
42665 PyObject * obj0 = 0 ;
42666 PyObject * obj1 = 0 ;
42667 char * kwnames[] = {
42668 (char *) "self",(char *) "prop", NULL
42669 };
42670
42671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetTextCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
42672 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42673 if (!SWIG_IsOK(res1)) {
42674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42675 }
42676 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42677 ecode2 = SWIG_AsVal_int(obj1, &val2);
42678 if (!SWIG_IsOK(ecode2)) {
42679 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "2"" of type '" "int""'");
42680 }
42681 arg2 = static_cast< int >(val2);
42682 {
42683 PyThreadState* __tstate = wxPyBeginAllowThreads();
42684 (arg1)->SetTextCtrlProportion(arg2);
42685 wxPyEndAllowThreads(__tstate);
42686 if (PyErr_Occurred()) SWIG_fail;
42687 }
42688 resultobj = SWIG_Py_Void();
42689 return resultobj;
42690fail:
42691 return NULL;
42692}
42693
42694
42695SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42696 PyObject *resultobj = 0;
42697 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42698 int result;
42699 void *argp1 = 0 ;
42700 int res1 = 0 ;
42701 PyObject *swig_obj[1] ;
42702
42703 if (!args) SWIG_fail;
42704 swig_obj[0] = args;
42705 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42706 if (!SWIG_IsOK(res1)) {
42707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42708 }
42709 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42710 {
42711 PyThreadState* __tstate = wxPyBeginAllowThreads();
42712 result = (int)((wxPickerBase const *)arg1)->GetTextCtrlProportion();
42713 wxPyEndAllowThreads(__tstate);
42714 if (PyErr_Occurred()) SWIG_fail;
42715 }
42716 resultobj = SWIG_From_int(static_cast< int >(result));
42717 return resultobj;
42718fail:
42719 return NULL;
42720}
42721
42722
1eeb270e
RD
42723SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42724 PyObject *resultobj = 0;
42725 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42726 int arg2 ;
42727 void *argp1 = 0 ;
42728 int res1 = 0 ;
42729 int val2 ;
42730 int ecode2 = 0 ;
42731 PyObject * obj0 = 0 ;
42732 PyObject * obj1 = 0 ;
42733 char * kwnames[] = {
42734 (char *) "self",(char *) "prop", NULL
42735 };
42736
42737 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetPickerCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
42738 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42739 if (!SWIG_IsOK(res1)) {
42740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42741 }
42742 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42743 ecode2 = SWIG_AsVal_int(obj1, &val2);
42744 if (!SWIG_IsOK(ecode2)) {
42745 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "2"" of type '" "int""'");
42746 }
42747 arg2 = static_cast< int >(val2);
42748 {
42749 PyThreadState* __tstate = wxPyBeginAllowThreads();
42750 (arg1)->SetPickerCtrlProportion(arg2);
42751 wxPyEndAllowThreads(__tstate);
42752 if (PyErr_Occurred()) SWIG_fail;
42753 }
42754 resultobj = SWIG_Py_Void();
42755 return resultobj;
42756fail:
42757 return NULL;
42758}
42759
42760
42761SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42762 PyObject *resultobj = 0;
42763 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42764 int result;
42765 void *argp1 = 0 ;
42766 int res1 = 0 ;
42767 PyObject *swig_obj[1] ;
42768
42769 if (!args) SWIG_fail;
42770 swig_obj[0] = args;
42771 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42772 if (!SWIG_IsOK(res1)) {
42773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42774 }
42775 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42776 {
42777 PyThreadState* __tstate = wxPyBeginAllowThreads();
42778 result = (int)((wxPickerBase const *)arg1)->GetPickerCtrlProportion();
42779 wxPyEndAllowThreads(__tstate);
42780 if (PyErr_Occurred()) SWIG_fail;
42781 }
42782 resultobj = SWIG_From_int(static_cast< int >(result));
42783 return resultobj;
42784fail:
42785 return NULL;
42786}
42787
42788
b02396e8
RD
42789SWIGINTERN PyObject *_wrap_PickerBase_IsTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42790 PyObject *resultobj = 0;
42791 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42792 bool result;
42793 void *argp1 = 0 ;
42794 int res1 = 0 ;
42795 PyObject *swig_obj[1] ;
42796
42797 if (!args) SWIG_fail;
42798 swig_obj[0] = args;
42799 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42800 if (!SWIG_IsOK(res1)) {
42801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42802 }
42803 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42804 {
42805 PyThreadState* __tstate = wxPyBeginAllowThreads();
42806 result = (bool)((wxPickerBase const *)arg1)->IsTextCtrlGrowable();
42807 wxPyEndAllowThreads(__tstate);
42808 if (PyErr_Occurred()) SWIG_fail;
42809 }
42810 {
42811 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42812 }
42813 return resultobj;
42814fail:
42815 return NULL;
42816}
42817
42818
42819SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42820 PyObject *resultobj = 0;
42821 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42822 bool arg2 = (bool) true ;
42823 void *argp1 = 0 ;
42824 int res1 = 0 ;
42825 bool val2 ;
42826 int ecode2 = 0 ;
42827 PyObject * obj0 = 0 ;
42828 PyObject * obj1 = 0 ;
42829 char * kwnames[] = {
42830 (char *) "self",(char *) "grow", NULL
42831 };
42832
42833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetTextCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
42834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42835 if (!SWIG_IsOK(res1)) {
42836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42837 }
42838 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42839 if (obj1) {
42840 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42841 if (!SWIG_IsOK(ecode2)) {
42842 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
42843 }
42844 arg2 = static_cast< bool >(val2);
42845 }
42846 {
42847 PyThreadState* __tstate = wxPyBeginAllowThreads();
42848 (arg1)->SetTextCtrlGrowable(arg2);
42849 wxPyEndAllowThreads(__tstate);
42850 if (PyErr_Occurred()) SWIG_fail;
42851 }
42852 resultobj = SWIG_Py_Void();
42853 return resultobj;
42854fail:
42855 return NULL;
42856}
42857
42858
42859SWIGINTERN PyObject *_wrap_PickerBase_IsPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42860 PyObject *resultobj = 0;
42861 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42862 bool result;
42863 void *argp1 = 0 ;
42864 int res1 = 0 ;
42865 PyObject *swig_obj[1] ;
42866
42867 if (!args) SWIG_fail;
42868 swig_obj[0] = args;
42869 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42870 if (!SWIG_IsOK(res1)) {
42871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42872 }
42873 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42874 {
42875 PyThreadState* __tstate = wxPyBeginAllowThreads();
42876 result = (bool)((wxPickerBase const *)arg1)->IsPickerCtrlGrowable();
42877 wxPyEndAllowThreads(__tstate);
42878 if (PyErr_Occurred()) SWIG_fail;
42879 }
42880 {
42881 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42882 }
42883 return resultobj;
42884fail:
42885 return NULL;
42886}
42887
42888
42889SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42890 PyObject *resultobj = 0;
42891 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42892 bool arg2 = (bool) true ;
42893 void *argp1 = 0 ;
42894 int res1 = 0 ;
42895 bool val2 ;
42896 int ecode2 = 0 ;
42897 PyObject * obj0 = 0 ;
42898 PyObject * obj1 = 0 ;
42899 char * kwnames[] = {
42900 (char *) "self",(char *) "grow", NULL
42901 };
42902
42903 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetPickerCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
42904 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42905 if (!SWIG_IsOK(res1)) {
42906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42907 }
42908 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42909 if (obj1) {
42910 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42911 if (!SWIG_IsOK(ecode2)) {
42912 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
42913 }
42914 arg2 = static_cast< bool >(val2);
42915 }
42916 {
42917 PyThreadState* __tstate = wxPyBeginAllowThreads();
42918 (arg1)->SetPickerCtrlGrowable(arg2);
42919 wxPyEndAllowThreads(__tstate);
42920 if (PyErr_Occurred()) SWIG_fail;
42921 }
42922 resultobj = SWIG_Py_Void();
42923 return resultobj;
42924fail:
42925 return NULL;
42926}
42927
42928
b850e7f3
RD
42929SWIGINTERN PyObject *_wrap_PickerBase_HasTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42930 PyObject *resultobj = 0;
42931 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42932 bool result;
42933 void *argp1 = 0 ;
42934 int res1 = 0 ;
42935 PyObject *swig_obj[1] ;
42936
42937 if (!args) SWIG_fail;
42938 swig_obj[0] = args;
42939 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42940 if (!SWIG_IsOK(res1)) {
42941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_HasTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42942 }
42943 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42944 {
42945 PyThreadState* __tstate = wxPyBeginAllowThreads();
42946 result = (bool)((wxPickerBase const *)arg1)->HasTextCtrl();
42947 wxPyEndAllowThreads(__tstate);
42948 if (PyErr_Occurred()) SWIG_fail;
42949 }
42950 {
42951 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42952 }
42953 return resultobj;
42954fail:
42955 return NULL;
42956}
42957
42958
42959SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42960 PyObject *resultobj = 0;
42961 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42962 wxTextCtrl *result = 0 ;
42963 void *argp1 = 0 ;
42964 int res1 = 0 ;
42965 PyObject *swig_obj[1] ;
42966
42967 if (!args) SWIG_fail;
42968 swig_obj[0] = args;
42969 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42970 if (!SWIG_IsOK(res1)) {
42971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42972 }
42973 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42974 {
42975 PyThreadState* __tstate = wxPyBeginAllowThreads();
42976 result = (wxTextCtrl *)(arg1)->GetTextCtrl();
42977 wxPyEndAllowThreads(__tstate);
42978 if (PyErr_Occurred()) SWIG_fail;
42979 }
42980 {
42981 resultobj = wxPyMake_wxObject(result, 0);
42982 }
42983 return resultobj;
42984fail:
42985 return NULL;
42986}
42987
42988
42989SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42990 PyObject *resultobj = 0;
42991 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42992 wxControl *result = 0 ;
42993 void *argp1 = 0 ;
42994 int res1 = 0 ;
42995 PyObject *swig_obj[1] ;
42996
42997 if (!args) SWIG_fail;
42998 swig_obj[0] = args;
42999 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43000 if (!SWIG_IsOK(res1)) {
43001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43002 }
43003 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43004 {
43005 PyThreadState* __tstate = wxPyBeginAllowThreads();
43006 result = (wxControl *)(arg1)->GetPickerCtrl();
43007 wxPyEndAllowThreads(__tstate);
43008 if (PyErr_Occurred()) SWIG_fail;
43009 }
43010 {
43011 resultobj = wxPyMake_wxObject(result, 0);
43012 }
43013 return resultobj;
43014fail:
43015 return NULL;
43016}
43017
43018
43019SWIGINTERN PyObject *PickerBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43020 PyObject *obj;
43021 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43022 SWIG_TypeNewClientData(SWIGTYPE_p_wxPickerBase, SWIG_NewClientData(obj));
43023 return SWIG_Py_Void();
43024}
43025
43026SWIGINTERN int ColourPickerCtrlNameStr_set(PyObject *) {
43027 SWIG_Error(SWIG_AttributeError,"Variable ColourPickerCtrlNameStr is read-only.");
43028 return 1;
43029}
43030
43031
43032SWIGINTERN PyObject *ColourPickerCtrlNameStr_get(void) {
43033 PyObject *pyobj = 0;
43034
43035 {
43036#if wxUSE_UNICODE
43037 pyobj = PyUnicode_FromWideChar((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
43038#else
43039 pyobj = PyString_FromStringAndSize((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
43040#endif
43041 }
43042 return pyobj;
43043}
43044
43045
43046SWIGINTERN PyObject *_wrap_new_ColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43047 PyObject *resultobj = 0;
43048 wxWindow *arg1 = (wxWindow *) 0 ;
43049 int arg2 = (int) -1 ;
43050 wxColour const &arg3_defvalue = *wxBLACK ;
43051 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
43052 wxPoint const &arg4_defvalue = wxDefaultPosition ;
43053 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
43054 wxSize const &arg5_defvalue = wxDefaultSize ;
43055 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
43056 long arg6 = (long) wxCLRP_DEFAULT_STYLE ;
43057 wxValidator const &arg7_defvalue = wxDefaultValidator ;
43058 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
43059 wxString const &arg8_defvalue = wxPyColourPickerCtrlNameStr ;
43060 wxString *arg8 = (wxString *) &arg8_defvalue ;
43061 wxColourPickerCtrl *result = 0 ;
43062 void *argp1 = 0 ;
43063 int res1 = 0 ;
43064 int val2 ;
43065 int ecode2 = 0 ;
43066 wxColour temp3 ;
43067 wxPoint temp4 ;
43068 wxSize temp5 ;
43069 long val6 ;
43070 int ecode6 = 0 ;
43071 void *argp7 = 0 ;
43072 int res7 = 0 ;
43073 bool temp8 = false ;
43074 PyObject * obj0 = 0 ;
43075 PyObject * obj1 = 0 ;
43076 PyObject * obj2 = 0 ;
43077 PyObject * obj3 = 0 ;
43078 PyObject * obj4 = 0 ;
43079 PyObject * obj5 = 0 ;
43080 PyObject * obj6 = 0 ;
43081 PyObject * obj7 = 0 ;
43082 char * kwnames[] = {
43083 (char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43084 };
43085
43086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ColourPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
43087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43088 if (!SWIG_IsOK(res1)) {
43089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43090 }
43091 arg1 = reinterpret_cast< wxWindow * >(argp1);
43092 if (obj1) {
43093 ecode2 = SWIG_AsVal_int(obj1, &val2);
43094 if (!SWIG_IsOK(ecode2)) {
43095 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerCtrl" "', expected argument " "2"" of type '" "int""'");
43096 }
43097 arg2 = static_cast< int >(val2);
43098 }
43099 if (obj2) {
43100 {
43101 arg3 = &temp3;
43102 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
43103 }
43104 }
43105 if (obj3) {
43106 {
43107 arg4 = &temp4;
43108 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
43109 }
43110 }
43111 if (obj4) {
43112 {
43113 arg5 = &temp5;
43114 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
43115 }
43116 }
43117 if (obj5) {
43118 ecode6 = SWIG_AsVal_long(obj5, &val6);
43119 if (!SWIG_IsOK(ecode6)) {
43120 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ColourPickerCtrl" "', expected argument " "6"" of type '" "long""'");
43121 }
43122 arg6 = static_cast< long >(val6);
43123 }
43124 if (obj6) {
43125 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
43126 if (!SWIG_IsOK(res7)) {
43127 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
43128 }
43129 if (!argp7) {
43130 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
43131 }
43132 arg7 = reinterpret_cast< wxValidator * >(argp7);
43133 }
43134 if (obj7) {
43135 {
43136 arg8 = wxString_in_helper(obj7);
43137 if (arg8 == NULL) SWIG_fail;
43138 temp8 = true;
43139 }
43140 }
43141 {
43142 if (!wxPyCheckForApp()) SWIG_fail;
43143 PyThreadState* __tstate = wxPyBeginAllowThreads();
43144 result = (wxColourPickerCtrl *)new wxColourPickerCtrl(arg1,arg2,(wxColour const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
43145 wxPyEndAllowThreads(__tstate);
43146 if (PyErr_Occurred()) SWIG_fail;
43147 }
43148 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_NEW | 0 );
43149 {
43150 if (temp8)
43151 delete arg8;
43152 }
43153 return resultobj;
43154fail:
43155 {
43156 if (temp8)
43157 delete arg8;
43158 }
43159 return NULL;
43160}
43161
43162
43163SWIGINTERN PyObject *_wrap_new_PreColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43164 PyObject *resultobj = 0;
43165 wxColourPickerCtrl *result = 0 ;
43166
43167 if (!SWIG_Python_UnpackTuple(args,"new_PreColourPickerCtrl",0,0,0)) SWIG_fail;
43168 {
43169 if (!wxPyCheckForApp()) SWIG_fail;
43170 PyThreadState* __tstate = wxPyBeginAllowThreads();
43171 result = (wxColourPickerCtrl *)new wxColourPickerCtrl();
43172 wxPyEndAllowThreads(__tstate);
43173 if (PyErr_Occurred()) SWIG_fail;
43174 }
43175 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_OWN | 0 );
43176 return resultobj;
43177fail:
43178 return NULL;
43179}
43180
43181
43182SWIGINTERN PyObject *_wrap_ColourPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43183 PyObject *resultobj = 0;
43184 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43185 wxWindow *arg2 = (wxWindow *) 0 ;
43186 int arg3 ;
43187 wxColour const &arg4_defvalue = *wxBLACK ;
43188 wxColour *arg4 = (wxColour *) &arg4_defvalue ;
43189 wxPoint const &arg5_defvalue = wxDefaultPosition ;
43190 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
43191 wxSize const &arg6_defvalue = wxDefaultSize ;
43192 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
43193 long arg7 = (long) wxCLRP_DEFAULT_STYLE ;
43194 wxValidator const &arg8_defvalue = wxDefaultValidator ;
43195 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
43196 wxString const &arg9_defvalue = wxPyColourPickerCtrlNameStr ;
43197 wxString *arg9 = (wxString *) &arg9_defvalue ;
43198 bool result;
43199 void *argp1 = 0 ;
43200 int res1 = 0 ;
43201 void *argp2 = 0 ;
43202 int res2 = 0 ;
43203 int val3 ;
43204 int ecode3 = 0 ;
43205 wxColour temp4 ;
43206 wxPoint temp5 ;
43207 wxSize temp6 ;
43208 long val7 ;
43209 int ecode7 = 0 ;
43210 void *argp8 = 0 ;
43211 int res8 = 0 ;
43212 bool temp9 = false ;
43213 PyObject * obj0 = 0 ;
43214 PyObject * obj1 = 0 ;
43215 PyObject * obj2 = 0 ;
43216 PyObject * obj3 = 0 ;
43217 PyObject * obj4 = 0 ;
43218 PyObject * obj5 = 0 ;
43219 PyObject * obj6 = 0 ;
43220 PyObject * obj7 = 0 ;
43221 PyObject * obj8 = 0 ;
43222 char * kwnames[] = {
43223 (char *) "self",(char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43224 };
43225
43226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ColourPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
43227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43228 if (!SWIG_IsOK(res1)) {
43229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_Create" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43230 }
43231 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43232 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
43233 if (!SWIG_IsOK(res2)) {
43234 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ColourPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
43235 }
43236 arg2 = reinterpret_cast< wxWindow * >(argp2);
43237 ecode3 = SWIG_AsVal_int(obj2, &val3);
43238 if (!SWIG_IsOK(ecode3)) {
43239 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
43240 }
43241 arg3 = static_cast< int >(val3);
43242 if (obj3) {
43243 {
43244 arg4 = &temp4;
43245 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
43246 }
43247 }
43248 if (obj4) {
43249 {
43250 arg5 = &temp5;
43251 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
43252 }
43253 }
43254 if (obj5) {
43255 {
43256 arg6 = &temp6;
43257 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
43258 }
43259 }
43260 if (obj6) {
43261 ecode7 = SWIG_AsVal_long(obj6, &val7);
43262 if (!SWIG_IsOK(ecode7)) {
43263 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ColourPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
43264 }
43265 arg7 = static_cast< long >(val7);
43266 }
43267 if (obj7) {
43268 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
43269 if (!SWIG_IsOK(res8)) {
43270 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43271 }
43272 if (!argp8) {
43273 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43274 }
43275 arg8 = reinterpret_cast< wxValidator * >(argp8);
43276 }
43277 if (obj8) {
43278 {
43279 arg9 = wxString_in_helper(obj8);
43280 if (arg9 == NULL) SWIG_fail;
43281 temp9 = true;
43282 }
43283 }
43284 {
43285 PyThreadState* __tstate = wxPyBeginAllowThreads();
43286 result = (bool)(arg1)->Create(arg2,arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
43287 wxPyEndAllowThreads(__tstate);
43288 if (PyErr_Occurred()) SWIG_fail;
43289 }
43290 {
43291 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43292 }
43293 {
43294 if (temp9)
43295 delete arg9;
43296 }
43297 return resultobj;
43298fail:
43299 {
43300 if (temp9)
43301 delete arg9;
43302 }
43303 return NULL;
43304}
43305
43306
43307SWIGINTERN PyObject *_wrap_ColourPickerCtrl_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43308 PyObject *resultobj = 0;
43309 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43310 wxColour result;
43311 void *argp1 = 0 ;
43312 int res1 = 0 ;
43313 PyObject *swig_obj[1] ;
43314
43315 if (!args) SWIG_fail;
43316 swig_obj[0] = args;
43317 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43318 if (!SWIG_IsOK(res1)) {
43319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_GetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl const *""'");
43320 }
43321 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43322 {
43323 PyThreadState* __tstate = wxPyBeginAllowThreads();
43324 result = ((wxColourPickerCtrl const *)arg1)->GetColour();
43325 wxPyEndAllowThreads(__tstate);
43326 if (PyErr_Occurred()) SWIG_fail;
43327 }
43328 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43329 return resultobj;
43330fail:
43331 return NULL;
43332}
43333
43334
43335SWIGINTERN PyObject *_wrap_ColourPickerCtrl_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43336 PyObject *resultobj = 0;
43337 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43338 wxColour *arg2 = 0 ;
43339 void *argp1 = 0 ;
43340 int res1 = 0 ;
43341 wxColour temp2 ;
43342 PyObject * obj0 = 0 ;
43343 PyObject * obj1 = 0 ;
43344 char * kwnames[] = {
43345 (char *) "self",(char *) "col", NULL
43346 };
43347
43348 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerCtrl_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43349 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43350 if (!SWIG_IsOK(res1)) {
43351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_SetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43352 }
43353 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43354 {
43355 arg2 = &temp2;
43356 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43357 }
43358 {
43359 PyThreadState* __tstate = wxPyBeginAllowThreads();
43360 (arg1)->SetColour((wxColour const &)*arg2);
43361 wxPyEndAllowThreads(__tstate);
43362 if (PyErr_Occurred()) SWIG_fail;
43363 }
43364 resultobj = SWIG_Py_Void();
43365 return resultobj;
43366fail:
43367 return NULL;
43368}
43369
43370
43371SWIGINTERN PyObject *ColourPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43372 PyObject *obj;
43373 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43374 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerCtrl, SWIG_NewClientData(obj));
43375 return SWIG_Py_Void();
43376}
43377
43378SWIGINTERN PyObject *ColourPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43379 return SWIG_Python_InitShadowInstance(args);
43380}
43381
43382SWIGINTERN PyObject *_wrap_new_ColourPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43383 PyObject *resultobj = 0;
43384 wxObject *arg1 = (wxObject *) 0 ;
43385 int arg2 ;
43386 wxColour *arg3 = 0 ;
43387 wxColourPickerEvent *result = 0 ;
43388 void *argp1 = 0 ;
43389 int res1 = 0 ;
43390 int val2 ;
43391 int ecode2 = 0 ;
43392 wxColour temp3 ;
43393 PyObject * obj0 = 0 ;
43394 PyObject * obj1 = 0 ;
43395 PyObject * obj2 = 0 ;
43396 char * kwnames[] = {
43397 (char *) "generator",(char *) "id",(char *) "col", NULL
43398 };
43399
43400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ColourPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
43401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
43402 if (!SWIG_IsOK(res1)) {
43403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
43404 }
43405 arg1 = reinterpret_cast< wxObject * >(argp1);
43406 ecode2 = SWIG_AsVal_int(obj1, &val2);
43407 if (!SWIG_IsOK(ecode2)) {
43408 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerEvent" "', expected argument " "2"" of type '" "int""'");
43409 }
43410 arg2 = static_cast< int >(val2);
43411 {
43412 arg3 = &temp3;
43413 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
43414 }
43415 {
43416 PyThreadState* __tstate = wxPyBeginAllowThreads();
43417 result = (wxColourPickerEvent *)new wxColourPickerEvent(arg1,arg2,(wxColour const &)*arg3);
43418 wxPyEndAllowThreads(__tstate);
43419 if (PyErr_Occurred()) SWIG_fail;
43420 }
43421 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerEvent, SWIG_POINTER_NEW | 0 );
43422 return resultobj;
43423fail:
43424 return NULL;
43425}
43426
43427
43428SWIGINTERN PyObject *_wrap_ColourPickerEvent_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43429 PyObject *resultobj = 0;
43430 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43431 wxColour result;
43432 void *argp1 = 0 ;
43433 int res1 = 0 ;
43434 PyObject *swig_obj[1] ;
43435
43436 if (!args) SWIG_fail;
43437 swig_obj[0] = args;
43438 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43439 if (!SWIG_IsOK(res1)) {
43440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_GetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent const *""'");
43441 }
43442 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43443 {
43444 PyThreadState* __tstate = wxPyBeginAllowThreads();
43445 result = ((wxColourPickerEvent const *)arg1)->GetColour();
43446 wxPyEndAllowThreads(__tstate);
43447 if (PyErr_Occurred()) SWIG_fail;
43448 }
43449 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43450 return resultobj;
43451fail:
43452 return NULL;
43453}
43454
43455
43456SWIGINTERN PyObject *_wrap_ColourPickerEvent_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43457 PyObject *resultobj = 0;
43458 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43459 wxColour *arg2 = 0 ;
43460 void *argp1 = 0 ;
43461 int res1 = 0 ;
43462 wxColour temp2 ;
43463 PyObject * obj0 = 0 ;
43464 PyObject * obj1 = 0 ;
43465 char * kwnames[] = {
43466 (char *) "self",(char *) "c", NULL
43467 };
43468
43469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerEvent_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43471 if (!SWIG_IsOK(res1)) {
43472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_SetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent *""'");
43473 }
43474 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43475 {
43476 arg2 = &temp2;
43477 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43478 }
43479 {
43480 PyThreadState* __tstate = wxPyBeginAllowThreads();
43481 (arg1)->SetColour((wxColour const &)*arg2);
43482 wxPyEndAllowThreads(__tstate);
43483 if (PyErr_Occurred()) SWIG_fail;
43484 }
43485 resultobj = SWIG_Py_Void();
43486 return resultobj;
43487fail:
43488 return NULL;
43489}
43490
43491
43492SWIGINTERN PyObject *ColourPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43493 PyObject *obj;
43494 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43495 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerEvent, SWIG_NewClientData(obj));
43496 return SWIG_Py_Void();
43497}
43498
43499SWIGINTERN PyObject *ColourPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43500 return SWIG_Python_InitShadowInstance(args);
43501}
43502
43503SWIGINTERN int FilePickerCtrlNameStr_set(PyObject *) {
43504 SWIG_Error(SWIG_AttributeError,"Variable FilePickerCtrlNameStr is read-only.");
43505 return 1;
43506}
43507
43508
43509SWIGINTERN PyObject *FilePickerCtrlNameStr_get(void) {
43510 PyObject *pyobj = 0;
43511
43512 {
43513#if wxUSE_UNICODE
43514 pyobj = PyUnicode_FromWideChar((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43515#else
43516 pyobj = PyString_FromStringAndSize((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43517#endif
43518 }
43519 return pyobj;
43520}
43521
43522
43523SWIGINTERN int FileSelectorPromptStr_set(PyObject *) {
43524 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorPromptStr is read-only.");
43525 return 1;
43526}
43527
43528
43529SWIGINTERN PyObject *FileSelectorPromptStr_get(void) {
43530 PyObject *pyobj = 0;
43531
43532 {
43533#if wxUSE_UNICODE
43534 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43535#else
43536 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43537#endif
43538 }
43539 return pyobj;
43540}
43541
43542
43543SWIGINTERN int DirPickerCtrlNameStr_set(PyObject *) {
43544 SWIG_Error(SWIG_AttributeError,"Variable DirPickerCtrlNameStr is read-only.");
43545 return 1;
43546}
43547
43548
43549SWIGINTERN PyObject *DirPickerCtrlNameStr_get(void) {
43550 PyObject *pyobj = 0;
43551
43552 {
43553#if wxUSE_UNICODE
43554 pyobj = PyUnicode_FromWideChar((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43555#else
43556 pyobj = PyString_FromStringAndSize((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43557#endif
43558 }
43559 return pyobj;
43560}
43561
43562
43563SWIGINTERN int DirSelectorPromptStr_set(PyObject *) {
43564 SWIG_Error(SWIG_AttributeError,"Variable DirSelectorPromptStr is read-only.");
43565 return 1;
43566}
43567
43568
43569SWIGINTERN PyObject *DirSelectorPromptStr_get(void) {
43570 PyObject *pyobj = 0;
43571
43572 {
43573#if wxUSE_UNICODE
43574 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43575#else
43576 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43577#endif
43578 }
43579 return pyobj;
43580}
43581
43582
43583SWIGINTERN int FileSelectorDefaultWildcardStr_set(PyObject *) {
43584 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
43585 return 1;
43586}
43587
43588
43589SWIGINTERN PyObject *FileSelectorDefaultWildcardStr_get(void) {
43590 PyObject *pyobj = 0;
43591
43592 {
43593#if wxUSE_UNICODE
43594 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43595#else
43596 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43597#endif
43598 }
43599 return pyobj;
43600}
43601
43602
43603SWIGINTERN PyObject *_wrap_new_FilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43604 PyObject *resultobj = 0;
43605 wxWindow *arg1 = (wxWindow *) 0 ;
43606 int arg2 = (int) -1 ;
43607 wxString const &arg3_defvalue = wxPyEmptyString ;
43608 wxString *arg3 = (wxString *) &arg3_defvalue ;
43609 wxString const &arg4_defvalue = wxPyFileSelectorPromptStr ;
43610 wxString *arg4 = (wxString *) &arg4_defvalue ;
43611 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
43612 wxString *arg5 = (wxString *) &arg5_defvalue ;
43613 wxPoint const &arg6_defvalue = wxDefaultPosition ;
43614 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
43615 wxSize const &arg7_defvalue = wxDefaultSize ;
43616 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
43617 long arg8 = (long) wxFLP_DEFAULT_STYLE ;
43618 wxValidator const &arg9_defvalue = wxDefaultValidator ;
43619 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
43620 wxString const &arg10_defvalue = wxPyFilePickerCtrlNameStr ;
43621 wxString *arg10 = (wxString *) &arg10_defvalue ;
43622 wxFilePickerCtrl *result = 0 ;
43623 void *argp1 = 0 ;
43624 int res1 = 0 ;
43625 int val2 ;
43626 int ecode2 = 0 ;
43627 bool temp3 = false ;
43628 bool temp4 = false ;
43629 bool temp5 = false ;
43630 wxPoint temp6 ;
43631 wxSize temp7 ;
43632 long val8 ;
43633 int ecode8 = 0 ;
43634 void *argp9 = 0 ;
43635 int res9 = 0 ;
43636 bool temp10 = false ;
43637 PyObject * obj0 = 0 ;
43638 PyObject * obj1 = 0 ;
43639 PyObject * obj2 = 0 ;
43640 PyObject * obj3 = 0 ;
43641 PyObject * obj4 = 0 ;
43642 PyObject * obj5 = 0 ;
43643 PyObject * obj6 = 0 ;
43644 PyObject * obj7 = 0 ;
43645 PyObject * obj8 = 0 ;
43646 PyObject * obj9 = 0 ;
43647 char * kwnames[] = {
43648 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43649 };
43650
43651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_FilePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
43652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43653 if (!SWIG_IsOK(res1)) {
43654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FilePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43655 }
43656 arg1 = reinterpret_cast< wxWindow * >(argp1);
43657 if (obj1) {
43658 ecode2 = SWIG_AsVal_int(obj1, &val2);
43659 if (!SWIG_IsOK(ecode2)) {
43660 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FilePickerCtrl" "', expected argument " "2"" of type '" "int""'");
43661 }
43662 arg2 = static_cast< int >(val2);
43663 }
43664 if (obj2) {
43665 {
43666 arg3 = wxString_in_helper(obj2);
43667 if (arg3 == NULL) SWIG_fail;
43668 temp3 = true;
43669 }
43670 }
43671 if (obj3) {
43672 {
43673 arg4 = wxString_in_helper(obj3);
43674 if (arg4 == NULL) SWIG_fail;
43675 temp4 = true;
43676 }
43677 }
43678 if (obj4) {
43679 {
43680 arg5 = wxString_in_helper(obj4);
43681 if (arg5 == NULL) SWIG_fail;
43682 temp5 = true;
43683 }
43684 }
43685 if (obj5) {
43686 {
43687 arg6 = &temp6;
43688 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
43689 }
43690 }
43691 if (obj6) {
43692 {
43693 arg7 = &temp7;
43694 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
43695 }
43696 }
43697 if (obj7) {
43698 ecode8 = SWIG_AsVal_long(obj7, &val8);
43699 if (!SWIG_IsOK(ecode8)) {
43700 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_FilePickerCtrl" "', expected argument " "8"" of type '" "long""'");
43701 }
43702 arg8 = static_cast< long >(val8);
43703 }
43704 if (obj8) {
43705 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
43706 if (!SWIG_IsOK(res9)) {
43707 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
43708 }
43709 if (!argp9) {
43710 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
43711 }
43712 arg9 = reinterpret_cast< wxValidator * >(argp9);
43713 }
43714 if (obj9) {
43715 {
43716 arg10 = wxString_in_helper(obj9);
43717 if (arg10 == NULL) SWIG_fail;
43718 temp10 = true;
43719 }
43720 }
43721 {
43722 if (!wxPyCheckForApp()) SWIG_fail;
43723 PyThreadState* __tstate = wxPyBeginAllowThreads();
43724 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);
43725 wxPyEndAllowThreads(__tstate);
43726 if (PyErr_Occurred()) SWIG_fail;
43727 }
43728 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_NEW | 0 );
43729 {
43730 if (temp3)
43731 delete arg3;
43732 }
43733 {
43734 if (temp4)
43735 delete arg4;
43736 }
43737 {
43738 if (temp5)
43739 delete arg5;
43740 }
43741 {
43742 if (temp10)
43743 delete arg10;
43744 }
43745 return resultobj;
43746fail:
43747 {
43748 if (temp3)
43749 delete arg3;
43750 }
43751 {
43752 if (temp4)
43753 delete arg4;
43754 }
43755 {
43756 if (temp5)
43757 delete arg5;
43758 }
43759 {
43760 if (temp10)
43761 delete arg10;
43762 }
43763 return NULL;
43764}
43765
43766
43767SWIGINTERN PyObject *_wrap_new_PreFilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43768 PyObject *resultobj = 0;
43769 wxFilePickerCtrl *result = 0 ;
43770
43771 if (!SWIG_Python_UnpackTuple(args,"new_PreFilePickerCtrl",0,0,0)) SWIG_fail;
43772 {
43773 if (!wxPyCheckForApp()) SWIG_fail;
43774 PyThreadState* __tstate = wxPyBeginAllowThreads();
43775 result = (wxFilePickerCtrl *)new wxFilePickerCtrl();
43776 wxPyEndAllowThreads(__tstate);
43777 if (PyErr_Occurred()) SWIG_fail;
43778 }
43779 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_OWN | 0 );
43780 return resultobj;
43781fail:
43782 return NULL;
43783}
43784
43785
43786SWIGINTERN PyObject *_wrap_FilePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43787 PyObject *resultobj = 0;
43788 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43789 wxWindow *arg2 = (wxWindow *) 0 ;
43790 int arg3 = (int) -1 ;
43791 wxString const &arg4_defvalue = wxPyEmptyString ;
43792 wxString *arg4 = (wxString *) &arg4_defvalue ;
43793 wxString const &arg5_defvalue = wxPyFileSelectorPromptStr ;
43794 wxString *arg5 = (wxString *) &arg5_defvalue ;
43795 wxString const &arg6_defvalue = wxPyFileSelectorDefaultWildcardStr ;
43796 wxString *arg6 = (wxString *) &arg6_defvalue ;
43797 wxPoint const &arg7_defvalue = wxDefaultPosition ;
43798 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
43799 wxSize const &arg8_defvalue = wxDefaultSize ;
43800 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
43801 long arg9 = (long) wxFLP_DEFAULT_STYLE ;
43802 wxValidator const &arg10_defvalue = wxDefaultValidator ;
43803 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
43804 wxString const &arg11_defvalue = wxPyFilePickerCtrlNameStr ;
43805 wxString *arg11 = (wxString *) &arg11_defvalue ;
43806 bool result;
43807 void *argp1 = 0 ;
43808 int res1 = 0 ;
43809 void *argp2 = 0 ;
43810 int res2 = 0 ;
43811 int val3 ;
43812 int ecode3 = 0 ;
43813 bool temp4 = false ;
43814 bool temp5 = false ;
43815 bool temp6 = false ;
43816 wxPoint temp7 ;
43817 wxSize temp8 ;
43818 long val9 ;
43819 int ecode9 = 0 ;
43820 void *argp10 = 0 ;
43821 int res10 = 0 ;
43822 bool temp11 = false ;
43823 PyObject * obj0 = 0 ;
43824 PyObject * obj1 = 0 ;
43825 PyObject * obj2 = 0 ;
43826 PyObject * obj3 = 0 ;
43827 PyObject * obj4 = 0 ;
43828 PyObject * obj5 = 0 ;
43829 PyObject * obj6 = 0 ;
43830 PyObject * obj7 = 0 ;
43831 PyObject * obj8 = 0 ;
43832 PyObject * obj9 = 0 ;
43833 PyObject * obj10 = 0 ;
43834 char * kwnames[] = {
43835 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43836 };
43837
43838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:FilePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
43839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43840 if (!SWIG_IsOK(res1)) {
43841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_Create" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
43842 }
43843 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43844 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
43845 if (!SWIG_IsOK(res2)) {
43846 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FilePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
43847 }
43848 arg2 = reinterpret_cast< wxWindow * >(argp2);
43849 if (obj2) {
43850 ecode3 = SWIG_AsVal_int(obj2, &val3);
43851 if (!SWIG_IsOK(ecode3)) {
43852 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FilePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
43853 }
43854 arg3 = static_cast< int >(val3);
43855 }
43856 if (obj3) {
43857 {
43858 arg4 = wxString_in_helper(obj3);
43859 if (arg4 == NULL) SWIG_fail;
43860 temp4 = true;
43861 }
43862 }
43863 if (obj4) {
43864 {
43865 arg5 = wxString_in_helper(obj4);
43866 if (arg5 == NULL) SWIG_fail;
43867 temp5 = true;
43868 }
43869 }
43870 if (obj5) {
43871 {
43872 arg6 = wxString_in_helper(obj5);
43873 if (arg6 == NULL) SWIG_fail;
43874 temp6 = true;
43875 }
43876 }
43877 if (obj6) {
43878 {
43879 arg7 = &temp7;
43880 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
43881 }
43882 }
43883 if (obj7) {
43884 {
43885 arg8 = &temp8;
43886 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
43887 }
43888 }
43889 if (obj8) {
43890 ecode9 = SWIG_AsVal_long(obj8, &val9);
43891 if (!SWIG_IsOK(ecode9)) {
43892 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "FilePickerCtrl_Create" "', expected argument " "9"" of type '" "long""'");
43893 }
43894 arg9 = static_cast< long >(val9);
43895 }
43896 if (obj9) {
43897 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
43898 if (!SWIG_IsOK(res10)) {
43899 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
43900 }
43901 if (!argp10) {
43902 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
43903 }
43904 arg10 = reinterpret_cast< wxValidator * >(argp10);
43905 }
43906 if (obj10) {
43907 {
43908 arg11 = wxString_in_helper(obj10);
43909 if (arg11 == NULL) SWIG_fail;
43910 temp11 = true;
43911 }
43912 }
43913 {
43914 PyThreadState* __tstate = wxPyBeginAllowThreads();
43915 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);
43916 wxPyEndAllowThreads(__tstate);
43917 if (PyErr_Occurred()) SWIG_fail;
43918 }
43919 {
43920 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43921 }
43922 {
43923 if (temp4)
43924 delete arg4;
43925 }
43926 {
43927 if (temp5)
43928 delete arg5;
43929 }
43930 {
43931 if (temp6)
43932 delete arg6;
43933 }
43934 {
43935 if (temp11)
43936 delete arg11;
43937 }
43938 return resultobj;
43939fail:
43940 {
43941 if (temp4)
43942 delete arg4;
43943 }
43944 {
43945 if (temp5)
43946 delete arg5;
43947 }
43948 {
43949 if (temp6)
43950 delete arg6;
43951 }
43952 {
43953 if (temp11)
43954 delete arg11;
43955 }
43956 return NULL;
43957}
43958
43959
43960SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43961 PyObject *resultobj = 0;
43962 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43963 wxString result;
43964 void *argp1 = 0 ;
43965 int res1 = 0 ;
43966 PyObject *swig_obj[1] ;
43967
43968 if (!args) SWIG_fail;
43969 swig_obj[0] = args;
43970 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43971 if (!SWIG_IsOK(res1)) {
43972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
43973 }
43974 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43975 {
43976 PyThreadState* __tstate = wxPyBeginAllowThreads();
43977 result = ((wxFilePickerCtrl const *)arg1)->GetPath();
43978 wxPyEndAllowThreads(__tstate);
43979 if (PyErr_Occurred()) SWIG_fail;
43980 }
43981 {
43982#if wxUSE_UNICODE
43983 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
43984#else
43985 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
43986#endif
43987 }
43988 return resultobj;
43989fail:
43990 return NULL;
43991}
43992
43993
43994SWIGINTERN PyObject *_wrap_FilePickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43995 PyObject *resultobj = 0;
43996 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43997 wxString *arg2 = 0 ;
43998 void *argp1 = 0 ;
43999 int res1 = 0 ;
44000 bool temp2 = false ;
44001 PyObject * obj0 = 0 ;
44002 PyObject * obj1 = 0 ;
44003 char * kwnames[] = {
44004 (char *) "self",(char *) "str", NULL
44005 };
44006
44007 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44008 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44009 if (!SWIG_IsOK(res1)) {
44010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
44011 }
44012 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44013 {
44014 arg2 = wxString_in_helper(obj1);
44015 if (arg2 == NULL) SWIG_fail;
44016 temp2 = true;
44017 }
44018 {
44019 PyThreadState* __tstate = wxPyBeginAllowThreads();
44020 (arg1)->SetPath((wxString const &)*arg2);
44021 wxPyEndAllowThreads(__tstate);
44022 if (PyErr_Occurred()) SWIG_fail;
44023 }
44024 resultobj = SWIG_Py_Void();
44025 {
44026 if (temp2)
44027 delete arg2;
44028 }
44029 return resultobj;
44030fail:
44031 {
44032 if (temp2)
44033 delete arg2;
44034 }
44035 return NULL;
44036}
44037
44038
b02396e8
RD
44039SWIGINTERN PyObject *_wrap_FilePickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44040 PyObject *resultobj = 0;
44041 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44042 wxString *arg2 = 0 ;
44043 bool result;
44044 void *argp1 = 0 ;
44045 int res1 = 0 ;
44046 bool temp2 = false ;
44047 PyObject * obj0 = 0 ;
44048 PyObject * obj1 = 0 ;
44049 char * kwnames[] = {
44050 (char *) "self",(char *) "path", NULL
44051 };
44052
44053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
44054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44055 if (!SWIG_IsOK(res1)) {
44056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44057 }
44058 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44059 {
44060 arg2 = wxString_in_helper(obj1);
44061 if (arg2 == NULL) SWIG_fail;
44062 temp2 = true;
44063 }
44064 {
44065 PyThreadState* __tstate = wxPyBeginAllowThreads();
44066 result = (bool)((wxFilePickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
44067 wxPyEndAllowThreads(__tstate);
44068 if (PyErr_Occurred()) SWIG_fail;
44069 }
44070 {
44071 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44072 }
44073 {
44074 if (temp2)
44075 delete arg2;
44076 }
44077 return resultobj;
44078fail:
44079 {
44080 if (temp2)
44081 delete arg2;
44082 }
44083 return NULL;
44084}
44085
44086
44087SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44088 PyObject *resultobj = 0;
44089 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44090 wxString result;
44091 void *argp1 = 0 ;
44092 int res1 = 0 ;
44093 PyObject *swig_obj[1] ;
44094
44095 if (!args) SWIG_fail;
44096 swig_obj[0] = args;
44097 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44098 if (!SWIG_IsOK(res1)) {
44099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44100 }
44101 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44102 {
44103 PyThreadState* __tstate = wxPyBeginAllowThreads();
44104 result = ((wxFilePickerCtrl const *)arg1)->GetTextCtrlValue();
44105 wxPyEndAllowThreads(__tstate);
44106 if (PyErr_Occurred()) SWIG_fail;
44107 }
44108 {
44109#if wxUSE_UNICODE
44110 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44111#else
44112 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44113#endif
44114 }
44115 return resultobj;
44116fail:
44117 return NULL;
44118}
44119
44120
b850e7f3
RD
44121SWIGINTERN PyObject *FilePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44122 PyObject *obj;
44123 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44124 SWIG_TypeNewClientData(SWIGTYPE_p_wxFilePickerCtrl, SWIG_NewClientData(obj));
44125 return SWIG_Py_Void();
44126}
44127
44128SWIGINTERN PyObject *FilePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44129 return SWIG_Python_InitShadowInstance(args);
44130}
44131
44132SWIGINTERN PyObject *_wrap_new_DirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44133 PyObject *resultobj = 0;
44134 wxWindow *arg1 = (wxWindow *) 0 ;
44135 int arg2 = (int) -1 ;
44136 wxString const &arg3_defvalue = wxPyEmptyString ;
44137 wxString *arg3 = (wxString *) &arg3_defvalue ;
44138 wxString const &arg4_defvalue = wxPyDirSelectorPromptStr ;
44139 wxString *arg4 = (wxString *) &arg4_defvalue ;
44140 wxPoint const &arg5_defvalue = wxDefaultPosition ;
44141 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
44142 wxSize const &arg6_defvalue = wxDefaultSize ;
44143 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
44144 long arg7 = (long) wxDIRP_DEFAULT_STYLE ;
44145 wxValidator const &arg8_defvalue = wxDefaultValidator ;
44146 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
44147 wxString const &arg9_defvalue = wxPyDirPickerCtrlNameStr ;
44148 wxString *arg9 = (wxString *) &arg9_defvalue ;
44149 wxDirPickerCtrl *result = 0 ;
44150 void *argp1 = 0 ;
44151 int res1 = 0 ;
44152 int val2 ;
44153 int ecode2 = 0 ;
44154 bool temp3 = false ;
44155 bool temp4 = false ;
44156 wxPoint temp5 ;
44157 wxSize temp6 ;
44158 long val7 ;
44159 int ecode7 = 0 ;
44160 void *argp8 = 0 ;
44161 int res8 = 0 ;
44162 bool temp9 = false ;
44163 PyObject * obj0 = 0 ;
44164 PyObject * obj1 = 0 ;
44165 PyObject * obj2 = 0 ;
44166 PyObject * obj3 = 0 ;
44167 PyObject * obj4 = 0 ;
44168 PyObject * obj5 = 0 ;
44169 PyObject * obj6 = 0 ;
44170 PyObject * obj7 = 0 ;
44171 PyObject * obj8 = 0 ;
44172 char * kwnames[] = {
44173 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44174 };
44175
44176 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_DirPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
44177 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44178 if (!SWIG_IsOK(res1)) {
44179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44180 }
44181 arg1 = reinterpret_cast< wxWindow * >(argp1);
44182 if (obj1) {
44183 ecode2 = SWIG_AsVal_int(obj1, &val2);
44184 if (!SWIG_IsOK(ecode2)) {
44185 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirPickerCtrl" "', expected argument " "2"" of type '" "int""'");
44186 }
44187 arg2 = static_cast< int >(val2);
44188 }
44189 if (obj2) {
44190 {
44191 arg3 = wxString_in_helper(obj2);
44192 if (arg3 == NULL) SWIG_fail;
44193 temp3 = true;
44194 }
44195 }
44196 if (obj3) {
44197 {
44198 arg4 = wxString_in_helper(obj3);
44199 if (arg4 == NULL) SWIG_fail;
44200 temp4 = true;
44201 }
44202 }
44203 if (obj4) {
44204 {
44205 arg5 = &temp5;
44206 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
44207 }
44208 }
44209 if (obj5) {
44210 {
44211 arg6 = &temp6;
44212 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
44213 }
44214 }
44215 if (obj6) {
44216 ecode7 = SWIG_AsVal_long(obj6, &val7);
44217 if (!SWIG_IsOK(ecode7)) {
44218 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_DirPickerCtrl" "', expected argument " "7"" of type '" "long""'");
44219 }
44220 arg7 = static_cast< long >(val7);
44221 }
44222 if (obj7) {
44223 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
44224 if (!SWIG_IsOK(res8)) {
44225 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44226 }
44227 if (!argp8) {
44228 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44229 }
44230 arg8 = reinterpret_cast< wxValidator * >(argp8);
44231 }
44232 if (obj8) {
44233 {
44234 arg9 = wxString_in_helper(obj8);
44235 if (arg9 == NULL) SWIG_fail;
44236 temp9 = true;
44237 }
44238 }
44239 {
44240 if (!wxPyCheckForApp()) SWIG_fail;
44241 PyThreadState* __tstate = wxPyBeginAllowThreads();
44242 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);
44243 wxPyEndAllowThreads(__tstate);
44244 if (PyErr_Occurred()) SWIG_fail;
44245 }
44246 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_NEW | 0 );
44247 {
44248 if (temp3)
44249 delete arg3;
44250 }
44251 {
44252 if (temp4)
44253 delete arg4;
44254 }
44255 {
44256 if (temp9)
44257 delete arg9;
44258 }
44259 return resultobj;
44260fail:
44261 {
44262 if (temp3)
44263 delete arg3;
44264 }
44265 {
44266 if (temp4)
44267 delete arg4;
44268 }
44269 {
44270 if (temp9)
44271 delete arg9;
44272 }
44273 return NULL;
44274}
44275
44276
44277SWIGINTERN PyObject *_wrap_new_PreDirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44278 PyObject *resultobj = 0;
44279 wxDirPickerCtrl *result = 0 ;
44280
44281 if (!SWIG_Python_UnpackTuple(args,"new_PreDirPickerCtrl",0,0,0)) SWIG_fail;
44282 {
44283 if (!wxPyCheckForApp()) SWIG_fail;
44284 PyThreadState* __tstate = wxPyBeginAllowThreads();
44285 result = (wxDirPickerCtrl *)new wxDirPickerCtrl();
44286 wxPyEndAllowThreads(__tstate);
44287 if (PyErr_Occurred()) SWIG_fail;
44288 }
44289 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_OWN | 0 );
44290 return resultobj;
44291fail:
44292 return NULL;
44293}
44294
44295
44296SWIGINTERN PyObject *_wrap_DirPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44297 PyObject *resultobj = 0;
44298 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44299 wxWindow *arg2 = (wxWindow *) 0 ;
44300 int arg3 = (int) -1 ;
44301 wxString const &arg4_defvalue = wxPyEmptyString ;
44302 wxString *arg4 = (wxString *) &arg4_defvalue ;
44303 wxString const &arg5_defvalue = wxPyDirSelectorPromptStr ;
44304 wxString *arg5 = (wxString *) &arg5_defvalue ;
44305 wxPoint const &arg6_defvalue = wxDefaultPosition ;
44306 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
44307 wxSize const &arg7_defvalue = wxDefaultSize ;
44308 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
44309 long arg8 = (long) wxDIRP_DEFAULT_STYLE ;
44310 wxValidator const &arg9_defvalue = wxDefaultValidator ;
44311 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
44312 wxString const &arg10_defvalue = wxPyDirPickerCtrlNameStr ;
44313 wxString *arg10 = (wxString *) &arg10_defvalue ;
44314 bool result;
44315 void *argp1 = 0 ;
44316 int res1 = 0 ;
44317 void *argp2 = 0 ;
44318 int res2 = 0 ;
44319 int val3 ;
44320 int ecode3 = 0 ;
44321 bool temp4 = false ;
44322 bool temp5 = false ;
44323 wxPoint temp6 ;
44324 wxSize temp7 ;
44325 long val8 ;
44326 int ecode8 = 0 ;
44327 void *argp9 = 0 ;
44328 int res9 = 0 ;
44329 bool temp10 = false ;
44330 PyObject * obj0 = 0 ;
44331 PyObject * obj1 = 0 ;
44332 PyObject * obj2 = 0 ;
44333 PyObject * obj3 = 0 ;
44334 PyObject * obj4 = 0 ;
44335 PyObject * obj5 = 0 ;
44336 PyObject * obj6 = 0 ;
44337 PyObject * obj7 = 0 ;
44338 PyObject * obj8 = 0 ;
44339 PyObject * obj9 = 0 ;
44340 char * kwnames[] = {
44341 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44342 };
44343
44344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:DirPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
44345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44346 if (!SWIG_IsOK(res1)) {
44347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_Create" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44348 }
44349 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44350 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44351 if (!SWIG_IsOK(res2)) {
44352 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44353 }
44354 arg2 = reinterpret_cast< wxWindow * >(argp2);
44355 if (obj2) {
44356 ecode3 = SWIG_AsVal_int(obj2, &val3);
44357 if (!SWIG_IsOK(ecode3)) {
44358 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44359 }
44360 arg3 = static_cast< int >(val3);
44361 }
44362 if (obj3) {
44363 {
44364 arg4 = wxString_in_helper(obj3);
44365 if (arg4 == NULL) SWIG_fail;
44366 temp4 = true;
44367 }
44368 }
44369 if (obj4) {
44370 {
44371 arg5 = wxString_in_helper(obj4);
44372 if (arg5 == NULL) SWIG_fail;
44373 temp5 = true;
44374 }
44375 }
44376 if (obj5) {
44377 {
44378 arg6 = &temp6;
44379 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
44380 }
44381 }
44382 if (obj6) {
44383 {
44384 arg7 = &temp7;
44385 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
44386 }
44387 }
44388 if (obj7) {
44389 ecode8 = SWIG_AsVal_long(obj7, &val8);
44390 if (!SWIG_IsOK(ecode8)) {
44391 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DirPickerCtrl_Create" "', expected argument " "8"" of type '" "long""'");
44392 }
44393 arg8 = static_cast< long >(val8);
44394 }
44395 if (obj8) {
44396 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
44397 if (!SWIG_IsOK(res9)) {
44398 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44399 }
44400 if (!argp9) {
44401 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44402 }
44403 arg9 = reinterpret_cast< wxValidator * >(argp9);
44404 }
44405 if (obj9) {
44406 {
44407 arg10 = wxString_in_helper(obj9);
44408 if (arg10 == NULL) SWIG_fail;
44409 temp10 = true;
44410 }
44411 }
44412 {
44413 PyThreadState* __tstate = wxPyBeginAllowThreads();
44414 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);
44415 wxPyEndAllowThreads(__tstate);
44416 if (PyErr_Occurred()) SWIG_fail;
44417 }
44418 {
44419 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44420 }
44421 {
44422 if (temp4)
44423 delete arg4;
44424 }
44425 {
44426 if (temp5)
44427 delete arg5;
44428 }
44429 {
44430 if (temp10)
44431 delete arg10;
44432 }
44433 return resultobj;
44434fail:
44435 {
44436 if (temp4)
44437 delete arg4;
44438 }
44439 {
44440 if (temp5)
44441 delete arg5;
44442 }
44443 {
44444 if (temp10)
44445 delete arg10;
44446 }
44447 return NULL;
44448}
44449
44450
44451SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44452 PyObject *resultobj = 0;
44453 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44454 wxString result;
44455 void *argp1 = 0 ;
44456 int res1 = 0 ;
44457 PyObject *swig_obj[1] ;
44458
44459 if (!args) SWIG_fail;
44460 swig_obj[0] = args;
44461 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44462 if (!SWIG_IsOK(res1)) {
44463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44464 }
44465 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44466 {
44467 PyThreadState* __tstate = wxPyBeginAllowThreads();
44468 result = ((wxDirPickerCtrl const *)arg1)->GetPath();
44469 wxPyEndAllowThreads(__tstate);
44470 if (PyErr_Occurred()) SWIG_fail;
44471 }
44472 {
44473#if wxUSE_UNICODE
44474 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44475#else
44476 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44477#endif
44478 }
44479 return resultobj;
44480fail:
44481 return NULL;
44482}
44483
44484
44485SWIGINTERN PyObject *_wrap_DirPickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44486 PyObject *resultobj = 0;
44487 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44488 wxString *arg2 = 0 ;
44489 void *argp1 = 0 ;
44490 int res1 = 0 ;
44491 bool temp2 = false ;
44492 PyObject * obj0 = 0 ;
44493 PyObject * obj1 = 0 ;
44494 char * kwnames[] = {
44495 (char *) "self",(char *) "str", NULL
44496 };
44497
44498 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44499 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44500 if (!SWIG_IsOK(res1)) {
44501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44502 }
44503 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44504 {
44505 arg2 = wxString_in_helper(obj1);
44506 if (arg2 == NULL) SWIG_fail;
44507 temp2 = true;
44508 }
44509 {
44510 PyThreadState* __tstate = wxPyBeginAllowThreads();
44511 (arg1)->SetPath((wxString const &)*arg2);
44512 wxPyEndAllowThreads(__tstate);
44513 if (PyErr_Occurred()) SWIG_fail;
44514 }
44515 resultobj = SWIG_Py_Void();
44516 {
44517 if (temp2)
44518 delete arg2;
44519 }
44520 return resultobj;
44521fail:
44522 {
44523 if (temp2)
44524 delete arg2;
44525 }
44526 return NULL;
44527}
44528
44529
b02396e8
RD
44530SWIGINTERN PyObject *_wrap_DirPickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44531 PyObject *resultobj = 0;
44532 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44533 wxString *arg2 = 0 ;
44534 bool result;
44535 void *argp1 = 0 ;
44536 int res1 = 0 ;
44537 bool temp2 = false ;
44538 PyObject * obj0 = 0 ;
44539 PyObject * obj1 = 0 ;
44540 char * kwnames[] = {
44541 (char *) "self",(char *) "path", NULL
44542 };
44543
44544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
44545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44546 if (!SWIG_IsOK(res1)) {
44547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44548 }
44549 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44550 {
44551 arg2 = wxString_in_helper(obj1);
44552 if (arg2 == NULL) SWIG_fail;
44553 temp2 = true;
44554 }
44555 {
44556 PyThreadState* __tstate = wxPyBeginAllowThreads();
44557 result = (bool)((wxDirPickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
44558 wxPyEndAllowThreads(__tstate);
44559 if (PyErr_Occurred()) SWIG_fail;
44560 }
44561 {
44562 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44563 }
44564 {
44565 if (temp2)
44566 delete arg2;
44567 }
44568 return resultobj;
44569fail:
44570 {
44571 if (temp2)
44572 delete arg2;
44573 }
44574 return NULL;
44575}
44576
44577
44578SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44579 PyObject *resultobj = 0;
44580 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44581 wxString result;
44582 void *argp1 = 0 ;
44583 int res1 = 0 ;
44584 PyObject *swig_obj[1] ;
44585
44586 if (!args) SWIG_fail;
44587 swig_obj[0] = args;
44588 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44589 if (!SWIG_IsOK(res1)) {
44590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44591 }
44592 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44593 {
44594 PyThreadState* __tstate = wxPyBeginAllowThreads();
44595 result = ((wxDirPickerCtrl const *)arg1)->GetTextCtrlValue();
44596 wxPyEndAllowThreads(__tstate);
44597 if (PyErr_Occurred()) SWIG_fail;
44598 }
44599 {
44600#if wxUSE_UNICODE
44601 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44602#else
44603 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44604#endif
44605 }
44606 return resultobj;
44607fail:
44608 return NULL;
44609}
44610
44611
b850e7f3
RD
44612SWIGINTERN PyObject *DirPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44613 PyObject *obj;
44614 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44615 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirPickerCtrl, SWIG_NewClientData(obj));
44616 return SWIG_Py_Void();
44617}
44618
44619SWIGINTERN PyObject *DirPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44620 return SWIG_Python_InitShadowInstance(args);
44621}
44622
44623SWIGINTERN PyObject *_wrap_new_FileDirPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44624 PyObject *resultobj = 0;
44625 wxEventType arg1 ;
44626 wxObject *arg2 = (wxObject *) 0 ;
44627 int arg3 ;
44628 wxString *arg4 = 0 ;
44629 wxFileDirPickerEvent *result = 0 ;
44630 int val1 ;
44631 int ecode1 = 0 ;
44632 void *argp2 = 0 ;
44633 int res2 = 0 ;
44634 int val3 ;
44635 int ecode3 = 0 ;
44636 bool temp4 = false ;
44637 PyObject * obj0 = 0 ;
44638 PyObject * obj1 = 0 ;
44639 PyObject * obj2 = 0 ;
44640 PyObject * obj3 = 0 ;
44641 char * kwnames[] = {
44642 (char *) "type",(char *) "generator",(char *) "id",(char *) "path", NULL
44643 };
44644
44645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileDirPickerEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
44646 ecode1 = SWIG_AsVal_int(obj0, &val1);
44647 if (!SWIG_IsOK(ecode1)) {
44648 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FileDirPickerEvent" "', expected argument " "1"" of type '" "wxEventType""'");
44649 }
44650 arg1 = static_cast< wxEventType >(val1);
44651 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxObject, 0 | 0 );
44652 if (!SWIG_IsOK(res2)) {
44653 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FileDirPickerEvent" "', expected argument " "2"" of type '" "wxObject *""'");
44654 }
44655 arg2 = reinterpret_cast< wxObject * >(argp2);
44656 ecode3 = SWIG_AsVal_int(obj2, &val3);
44657 if (!SWIG_IsOK(ecode3)) {
44658 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FileDirPickerEvent" "', expected argument " "3"" of type '" "int""'");
44659 }
44660 arg3 = static_cast< int >(val3);
44661 {
44662 arg4 = wxString_in_helper(obj3);
44663 if (arg4 == NULL) SWIG_fail;
44664 temp4 = true;
44665 }
44666 {
44667 PyThreadState* __tstate = wxPyBeginAllowThreads();
44668 result = (wxFileDirPickerEvent *)new wxFileDirPickerEvent(arg1,arg2,arg3,(wxString const &)*arg4);
44669 wxPyEndAllowThreads(__tstate);
44670 if (PyErr_Occurred()) SWIG_fail;
44671 }
44672 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileDirPickerEvent, SWIG_POINTER_NEW | 0 );
44673 {
44674 if (temp4)
44675 delete arg4;
44676 }
44677 return resultobj;
44678fail:
44679 {
44680 if (temp4)
44681 delete arg4;
44682 }
44683 return NULL;
44684}
44685
44686
44687SWIGINTERN PyObject *_wrap_FileDirPickerEvent_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44688 PyObject *resultobj = 0;
44689 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
44690 wxString result;
44691 void *argp1 = 0 ;
44692 int res1 = 0 ;
44693 PyObject *swig_obj[1] ;
44694
44695 if (!args) SWIG_fail;
44696 swig_obj[0] = args;
44697 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
44698 if (!SWIG_IsOK(res1)) {
44699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_GetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent const *""'");
44700 }
44701 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
44702 {
44703 PyThreadState* __tstate = wxPyBeginAllowThreads();
44704 result = ((wxFileDirPickerEvent const *)arg1)->GetPath();
44705 wxPyEndAllowThreads(__tstate);
44706 if (PyErr_Occurred()) SWIG_fail;
44707 }
44708 {
44709#if wxUSE_UNICODE
44710 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44711#else
44712 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44713#endif
44714 }
44715 return resultobj;
44716fail:
44717 return NULL;
44718}
44719
44720
44721SWIGINTERN PyObject *_wrap_FileDirPickerEvent_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44722 PyObject *resultobj = 0;
44723 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
44724 wxString *arg2 = 0 ;
44725 void *argp1 = 0 ;
44726 int res1 = 0 ;
44727 bool temp2 = false ;
44728 PyObject * obj0 = 0 ;
44729 PyObject * obj1 = 0 ;
44730 char * kwnames[] = {
44731 (char *) "self",(char *) "p", NULL
44732 };
44733
44734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDirPickerEvent_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
44736 if (!SWIG_IsOK(res1)) {
44737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_SetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent *""'");
44738 }
44739 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
44740 {
44741 arg2 = wxString_in_helper(obj1);
44742 if (arg2 == NULL) SWIG_fail;
44743 temp2 = true;
44744 }
44745 {
44746 PyThreadState* __tstate = wxPyBeginAllowThreads();
44747 (arg1)->SetPath((wxString const &)*arg2);
44748 wxPyEndAllowThreads(__tstate);
44749 if (PyErr_Occurred()) SWIG_fail;
44750 }
44751 resultobj = SWIG_Py_Void();
44752 {
44753 if (temp2)
44754 delete arg2;
44755 }
44756 return resultobj;
44757fail:
44758 {
44759 if (temp2)
44760 delete arg2;
44761 }
44762 return NULL;
44763}
44764
44765
44766SWIGINTERN PyObject *FileDirPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44767 PyObject *obj;
44768 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44769 SWIG_TypeNewClientData(SWIGTYPE_p_wxFileDirPickerEvent, SWIG_NewClientData(obj));
44770 return SWIG_Py_Void();
44771}
44772
44773SWIGINTERN PyObject *FileDirPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44774 return SWIG_Python_InitShadowInstance(args);
44775}
44776
44777SWIGINTERN int FontPickerCtrlNameStr_set(PyObject *) {
44778 SWIG_Error(SWIG_AttributeError,"Variable FontPickerCtrlNameStr is read-only.");
44779 return 1;
44780}
44781
44782
44783SWIGINTERN PyObject *FontPickerCtrlNameStr_get(void) {
44784 PyObject *pyobj = 0;
44785
44786 {
44787#if wxUSE_UNICODE
44788 pyobj = PyUnicode_FromWideChar((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
44789#else
44790 pyobj = PyString_FromStringAndSize((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
44791#endif
44792 }
44793 return pyobj;
44794}
44795
44796
44797SWIGINTERN PyObject *_wrap_new_FontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44798 PyObject *resultobj = 0;
44799 wxWindow *arg1 = (wxWindow *) 0 ;
44800 int arg2 = (int) -1 ;
f89238b9 44801 wxFont const &arg3_defvalue = wxNullFont ;
b850e7f3
RD
44802 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
44803 wxPoint const &arg4_defvalue = wxDefaultPosition ;
44804 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
44805 wxSize const &arg5_defvalue = wxDefaultSize ;
44806 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
44807 long arg6 = (long) wxFNTP_DEFAULT_STYLE ;
44808 wxValidator const &arg7_defvalue = wxDefaultValidator ;
44809 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
44810 wxString const &arg8_defvalue = wxPyFontPickerCtrlNameStr ;
44811 wxString *arg8 = (wxString *) &arg8_defvalue ;
44812 wxFontPickerCtrl *result = 0 ;
44813 void *argp1 = 0 ;
44814 int res1 = 0 ;
44815 int val2 ;
44816 int ecode2 = 0 ;
44817 void *argp3 = 0 ;
44818 int res3 = 0 ;
44819 wxPoint temp4 ;
44820 wxSize temp5 ;
44821 long val6 ;
44822 int ecode6 = 0 ;
44823 void *argp7 = 0 ;
44824 int res7 = 0 ;
44825 bool temp8 = false ;
44826 PyObject * obj0 = 0 ;
44827 PyObject * obj1 = 0 ;
44828 PyObject * obj2 = 0 ;
44829 PyObject * obj3 = 0 ;
44830 PyObject * obj4 = 0 ;
44831 PyObject * obj5 = 0 ;
44832 PyObject * obj6 = 0 ;
44833 PyObject * obj7 = 0 ;
44834 char * kwnames[] = {
44835 (char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44836 };
44837
44838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_FontPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
44839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44840 if (!SWIG_IsOK(res1)) {
44841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44842 }
44843 arg1 = reinterpret_cast< wxWindow * >(argp1);
44844 if (obj1) {
44845 ecode2 = SWIG_AsVal_int(obj1, &val2);
44846 if (!SWIG_IsOK(ecode2)) {
44847 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerCtrl" "', expected argument " "2"" of type '" "int""'");
44848 }
44849 arg2 = static_cast< int >(val2);
44850 }
44851 if (obj2) {
44852 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
44853 if (!SWIG_IsOK(res3)) {
44854 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
44855 }
44856 if (!argp3) {
44857 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
44858 }
44859 arg3 = reinterpret_cast< wxFont * >(argp3);
44860 }
44861 if (obj3) {
44862 {
44863 arg4 = &temp4;
44864 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
44865 }
44866 }
44867 if (obj4) {
44868 {
44869 arg5 = &temp5;
44870 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
44871 }
44872 }
44873 if (obj5) {
44874 ecode6 = SWIG_AsVal_long(obj5, &val6);
44875 if (!SWIG_IsOK(ecode6)) {
44876 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FontPickerCtrl" "', expected argument " "6"" of type '" "long""'");
44877 }
44878 arg6 = static_cast< long >(val6);
44879 }
44880 if (obj6) {
44881 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
44882 if (!SWIG_IsOK(res7)) {
44883 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
44884 }
44885 if (!argp7) {
44886 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
44887 }
44888 arg7 = reinterpret_cast< wxValidator * >(argp7);
44889 }
44890 if (obj7) {
44891 {
44892 arg8 = wxString_in_helper(obj7);
44893 if (arg8 == NULL) SWIG_fail;
44894 temp8 = true;
44895 }
44896 }
44897 {
44898 if (!wxPyCheckForApp()) SWIG_fail;
44899 PyThreadState* __tstate = wxPyBeginAllowThreads();
44900 result = (wxFontPickerCtrl *)new wxFontPickerCtrl(arg1,arg2,(wxFont const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
44901 wxPyEndAllowThreads(__tstate);
44902 if (PyErr_Occurred()) SWIG_fail;
44903 }
44904 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_NEW | 0 );
44905 {
44906 if (temp8)
44907 delete arg8;
44908 }
44909 return resultobj;
44910fail:
44911 {
44912 if (temp8)
44913 delete arg8;
44914 }
44915 return NULL;
44916}
44917
44918
44919SWIGINTERN PyObject *_wrap_new_PreFontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44920 PyObject *resultobj = 0;
44921 wxFontPickerCtrl *result = 0 ;
44922
44923 if (!SWIG_Python_UnpackTuple(args,"new_PreFontPickerCtrl",0,0,0)) SWIG_fail;
44924 {
44925 if (!wxPyCheckForApp()) SWIG_fail;
44926 PyThreadState* __tstate = wxPyBeginAllowThreads();
44927 result = (wxFontPickerCtrl *)new wxFontPickerCtrl();
44928 wxPyEndAllowThreads(__tstate);
44929 if (PyErr_Occurred()) SWIG_fail;
44930 }
44931 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_OWN | 0 );
44932 return resultobj;
44933fail:
44934 return NULL;
44935}
44936
44937
44938SWIGINTERN PyObject *_wrap_FontPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44939 PyObject *resultobj = 0;
44940 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44941 wxWindow *arg2 = (wxWindow *) 0 ;
44942 int arg3 = (int) -1 ;
f89238b9 44943 wxFont const &arg4_defvalue = wxNullFont ;
b850e7f3
RD
44944 wxFont *arg4 = (wxFont *) &arg4_defvalue ;
44945 wxPoint const &arg5_defvalue = wxDefaultPosition ;
44946 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
44947 wxSize const &arg6_defvalue = wxDefaultSize ;
44948 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
44949 long arg7 = (long) wxFNTP_DEFAULT_STYLE ;
44950 wxValidator const &arg8_defvalue = wxDefaultValidator ;
44951 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
44952 wxString const &arg9_defvalue = wxPyFontPickerCtrlNameStr ;
44953 wxString *arg9 = (wxString *) &arg9_defvalue ;
44954 bool result;
44955 void *argp1 = 0 ;
44956 int res1 = 0 ;
44957 void *argp2 = 0 ;
44958 int res2 = 0 ;
44959 int val3 ;
44960 int ecode3 = 0 ;
44961 void *argp4 = 0 ;
44962 int res4 = 0 ;
44963 wxPoint temp5 ;
44964 wxSize temp6 ;
44965 long val7 ;
44966 int ecode7 = 0 ;
44967 void *argp8 = 0 ;
44968 int res8 = 0 ;
44969 bool temp9 = false ;
44970 PyObject * obj0 = 0 ;
44971 PyObject * obj1 = 0 ;
44972 PyObject * obj2 = 0 ;
44973 PyObject * obj3 = 0 ;
44974 PyObject * obj4 = 0 ;
44975 PyObject * obj5 = 0 ;
44976 PyObject * obj6 = 0 ;
44977 PyObject * obj7 = 0 ;
44978 PyObject * obj8 = 0 ;
44979 char * kwnames[] = {
44980 (char *) "self",(char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44981 };
44982
44983 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:FontPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
44984 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
44985 if (!SWIG_IsOK(res1)) {
44986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_Create" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
44987 }
44988 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
44989 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44990 if (!SWIG_IsOK(res2)) {
44991 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44992 }
44993 arg2 = reinterpret_cast< wxWindow * >(argp2);
44994 if (obj2) {
44995 ecode3 = SWIG_AsVal_int(obj2, &val3);
44996 if (!SWIG_IsOK(ecode3)) {
44997 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44998 }
44999 arg3 = static_cast< int >(val3);
45000 }
45001 if (obj3) {
45002 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxFont, 0 | 0);
45003 if (!SWIG_IsOK(res4)) {
45004 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
45005 }
45006 if (!argp4) {
45007 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
45008 }
45009 arg4 = reinterpret_cast< wxFont * >(argp4);
45010 }
45011 if (obj4) {
45012 {
45013 arg5 = &temp5;
45014 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
45015 }
45016 }
45017 if (obj5) {
45018 {
45019 arg6 = &temp6;
45020 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
45021 }
45022 }
45023 if (obj6) {
45024 ecode7 = SWIG_AsVal_long(obj6, &val7);
45025 if (!SWIG_IsOK(ecode7)) {
45026 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "FontPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
45027 }
45028 arg7 = static_cast< long >(val7);
45029 }
45030 if (obj7) {
45031 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
45032 if (!SWIG_IsOK(res8)) {
45033 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45034 }
45035 if (!argp8) {
45036 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45037 }
45038 arg8 = reinterpret_cast< wxValidator * >(argp8);
45039 }
45040 if (obj8) {
45041 {
45042 arg9 = wxString_in_helper(obj8);
45043 if (arg9 == NULL) SWIG_fail;
45044 temp9 = true;
45045 }
45046 }
45047 {
45048 PyThreadState* __tstate = wxPyBeginAllowThreads();
45049 result = (bool)(arg1)->Create(arg2,arg3,(wxFont const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
45050 wxPyEndAllowThreads(__tstate);
45051 if (PyErr_Occurred()) SWIG_fail;
45052 }
45053 {
45054 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45055 }
45056 {
45057 if (temp9)
45058 delete arg9;
45059 }
45060 return resultobj;
45061fail:
45062 {
45063 if (temp9)
45064 delete arg9;
45065 }
45066 return NULL;
45067}
45068
45069
45070SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45071 PyObject *resultobj = 0;
45072 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45073 wxFont result;
45074 void *argp1 = 0 ;
45075 int res1 = 0 ;
45076 PyObject *swig_obj[1] ;
45077
45078 if (!args) SWIG_fail;
45079 swig_obj[0] = args;
45080 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45081 if (!SWIG_IsOK(res1)) {
45082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
45083 }
45084 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45085 {
45086 PyThreadState* __tstate = wxPyBeginAllowThreads();
45087 result = ((wxFontPickerCtrl const *)arg1)->GetSelectedFont();
45088 wxPyEndAllowThreads(__tstate);
45089 if (PyErr_Occurred()) SWIG_fail;
45090 }
45091 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
45092 return resultobj;
45093fail:
45094 return NULL;
45095}
45096
45097
45098SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45099 PyObject *resultobj = 0;
45100 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45101 wxFont *arg2 = 0 ;
45102 void *argp1 = 0 ;
45103 int res1 = 0 ;
45104 void *argp2 = 0 ;
45105 int res2 = 0 ;
45106 PyObject * obj0 = 0 ;
45107 PyObject * obj1 = 0 ;
45108 char * kwnames[] = {
45109 (char *) "self",(char *) "f", NULL
45110 };
45111
45112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetSelectedFont",kwnames,&obj0,&obj1)) SWIG_fail;
45113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45114 if (!SWIG_IsOK(res1)) {
45115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45116 }
45117 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45118 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
45119 if (!SWIG_IsOK(res2)) {
45120 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45121 }
45122 if (!argp2) {
45123 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45124 }
45125 arg2 = reinterpret_cast< wxFont * >(argp2);
45126 {
45127 PyThreadState* __tstate = wxPyBeginAllowThreads();
45128 (arg1)->SetSelectedFont((wxFont const &)*arg2);
45129 wxPyEndAllowThreads(__tstate);
45130 if (PyErr_Occurred()) SWIG_fail;
45131 }
45132 resultobj = SWIG_Py_Void();
45133 return resultobj;
45134fail:
45135 return NULL;
45136}
45137
45138
45139SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45140 PyObject *resultobj = 0;
45141 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45142 unsigned int arg2 ;
45143 void *argp1 = 0 ;
45144 int res1 = 0 ;
45145 unsigned int val2 ;
45146 int ecode2 = 0 ;
45147 PyObject * obj0 = 0 ;
45148 PyObject * obj1 = 0 ;
45149 char * kwnames[] = {
45150 (char *) "self",(char *) "max", NULL
45151 };
45152
45153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetMaxPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
45154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45155 if (!SWIG_IsOK(res1)) {
45156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45157 }
45158 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45159 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
45160 if (!SWIG_IsOK(ecode2)) {
45161 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "2"" of type '" "unsigned int""'");
45162 }
45163 arg2 = static_cast< unsigned int >(val2);
45164 {
45165 PyThreadState* __tstate = wxPyBeginAllowThreads();
45166 (arg1)->SetMaxPointSize(arg2);
45167 wxPyEndAllowThreads(__tstate);
45168 if (PyErr_Occurred()) SWIG_fail;
45169 }
45170 resultobj = SWIG_Py_Void();
45171 return resultobj;
45172fail:
45173 return NULL;
45174}
45175
45176
45177SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45178 PyObject *resultobj = 0;
45179 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45180 unsigned int result;
45181 void *argp1 = 0 ;
45182 int res1 = 0 ;
45183 PyObject *swig_obj[1] ;
45184
45185 if (!args) SWIG_fail;
45186 swig_obj[0] = args;
45187 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45188 if (!SWIG_IsOK(res1)) {
45189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
45190 }
45191 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45192 {
45193 PyThreadState* __tstate = wxPyBeginAllowThreads();
45194 result = (unsigned int)((wxFontPickerCtrl const *)arg1)->GetMaxPointSize();
45195 wxPyEndAllowThreads(__tstate);
45196 if (PyErr_Occurred()) SWIG_fail;
45197 }
45198 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
45199 return resultobj;
45200fail:
45201 return NULL;
45202}
45203
45204
45205SWIGINTERN PyObject *FontPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45206 PyObject *obj;
45207 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45208 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerCtrl, SWIG_NewClientData(obj));
45209 return SWIG_Py_Void();
45210}
45211
45212SWIGINTERN PyObject *FontPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45213 return SWIG_Python_InitShadowInstance(args);
45214}
45215
45216SWIGINTERN PyObject *_wrap_new_FontPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45217 PyObject *resultobj = 0;
45218 wxObject *arg1 = (wxObject *) 0 ;
45219 int arg2 ;
45220 wxFont *arg3 = 0 ;
45221 wxFontPickerEvent *result = 0 ;
45222 void *argp1 = 0 ;
45223 int res1 = 0 ;
45224 int val2 ;
45225 int ecode2 = 0 ;
45226 void *argp3 = 0 ;
45227 int res3 = 0 ;
45228 PyObject * obj0 = 0 ;
45229 PyObject * obj1 = 0 ;
45230 PyObject * obj2 = 0 ;
45231 char * kwnames[] = {
45232 (char *) "generator",(char *) "id",(char *) "f", NULL
45233 };
45234
45235 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_FontPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
45236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
45237 if (!SWIG_IsOK(res1)) {
45238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
45239 }
45240 arg1 = reinterpret_cast< wxObject * >(argp1);
45241 ecode2 = SWIG_AsVal_int(obj1, &val2);
45242 if (!SWIG_IsOK(ecode2)) {
45243 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerEvent" "', expected argument " "2"" of type '" "int""'");
45244 }
45245 arg2 = static_cast< int >(val2);
45246 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
45247 if (!SWIG_IsOK(res3)) {
45248 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45249 }
45250 if (!argp3) {
45251 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45252 }
45253 arg3 = reinterpret_cast< wxFont * >(argp3);
45254 {
45255 PyThreadState* __tstate = wxPyBeginAllowThreads();
45256 result = (wxFontPickerEvent *)new wxFontPickerEvent(arg1,arg2,(wxFont const &)*arg3);
45257 wxPyEndAllowThreads(__tstate);
45258 if (PyErr_Occurred()) SWIG_fail;
45259 }
45260 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerEvent, SWIG_POINTER_NEW | 0 );
45261 return resultobj;
45262fail:
45263 return NULL;
45264}
45265
45266
45267SWIGINTERN PyObject *_wrap_FontPickerEvent_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45268 PyObject *resultobj = 0;
45269 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45270 wxFont result;
45271 void *argp1 = 0 ;
45272 int res1 = 0 ;
45273 PyObject *swig_obj[1] ;
45274
45275 if (!args) SWIG_fail;
45276 swig_obj[0] = args;
45277 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45278 if (!SWIG_IsOK(res1)) {
45279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_GetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent const *""'");
45280 }
45281 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45282 {
45283 PyThreadState* __tstate = wxPyBeginAllowThreads();
45284 result = ((wxFontPickerEvent const *)arg1)->GetFont();
45285 wxPyEndAllowThreads(__tstate);
45286 if (PyErr_Occurred()) SWIG_fail;
45287 }
45288 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
45289 return resultobj;
45290fail:
45291 return NULL;
45292}
45293
45294
45295SWIGINTERN PyObject *_wrap_FontPickerEvent_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45296 PyObject *resultobj = 0;
45297 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45298 wxFont *arg2 = 0 ;
45299 void *argp1 = 0 ;
45300 int res1 = 0 ;
45301 void *argp2 = 0 ;
45302 int res2 = 0 ;
45303 PyObject * obj0 = 0 ;
45304 PyObject * obj1 = 0 ;
45305 char * kwnames[] = {
45306 (char *) "self",(char *) "c", NULL
45307 };
45308
45309 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerEvent_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
45310 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45311 if (!SWIG_IsOK(res1)) {
45312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_SetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent *""'");
45313 }
45314 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45315 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
45316 if (!SWIG_IsOK(res2)) {
45317 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45318 }
45319 if (!argp2) {
45320 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45321 }
45322 arg2 = reinterpret_cast< wxFont * >(argp2);
45323 {
45324 PyThreadState* __tstate = wxPyBeginAllowThreads();
45325 (arg1)->SetFont((wxFont const &)*arg2);
45326 wxPyEndAllowThreads(__tstate);
45327 if (PyErr_Occurred()) SWIG_fail;
45328 }
45329 resultobj = SWIG_Py_Void();
45330 return resultobj;
45331fail:
45332 return NULL;
45333}
45334
45335
45336SWIGINTERN PyObject *FontPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45337 PyObject *obj;
45338 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45339 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerEvent, SWIG_NewClientData(obj));
45340 return SWIG_Py_Void();
45341}
45342
45343SWIGINTERN PyObject *FontPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45344 return SWIG_Python_InitShadowInstance(args);
45345}
45346
5172800e
RD
45347SWIGINTERN int CollapsiblePaneNameStr_set(PyObject *) {
45348 SWIG_Error(SWIG_AttributeError,"Variable CollapsiblePaneNameStr is read-only.");
45349 return 1;
45350}
45351
45352
45353SWIGINTERN PyObject *CollapsiblePaneNameStr_get(void) {
45354 PyObject *pyobj = 0;
45355
45356 {
45357#if wxUSE_UNICODE
45358 pyobj = PyUnicode_FromWideChar((&wxPyCollapsiblePaneNameStr)->c_str(), (&wxPyCollapsiblePaneNameStr)->Len());
45359#else
45360 pyobj = PyString_FromStringAndSize((&wxPyCollapsiblePaneNameStr)->c_str(), (&wxPyCollapsiblePaneNameStr)->Len());
45361#endif
45362 }
45363 return pyobj;
45364}
45365
45366
45367SWIGINTERN PyObject *_wrap_new_CollapsiblePane(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45368 PyObject *resultobj = 0;
45369 wxWindow *arg1 = (wxWindow *) 0 ;
45370 int arg2 = (int) -1 ;
45371 wxString const &arg3_defvalue = wxPyEmptyString ;
45372 wxString *arg3 = (wxString *) &arg3_defvalue ;
45373 wxPoint const &arg4_defvalue = wxDefaultPosition ;
45374 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
45375 wxSize const &arg5_defvalue = wxDefaultSize ;
45376 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
45377 long arg6 = (long) wxCP_DEFAULT_STYLE ;
45378 wxValidator const &arg7_defvalue = wxDefaultValidator ;
45379 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
45380 wxString const &arg8_defvalue = wxPyCollapsiblePaneNameStr ;
45381 wxString *arg8 = (wxString *) &arg8_defvalue ;
45382 wxCollapsiblePane *result = 0 ;
45383 void *argp1 = 0 ;
45384 int res1 = 0 ;
45385 int val2 ;
45386 int ecode2 = 0 ;
45387 bool temp3 = false ;
45388 wxPoint temp4 ;
45389 wxSize temp5 ;
45390 long val6 ;
45391 int ecode6 = 0 ;
45392 void *argp7 = 0 ;
45393 int res7 = 0 ;
45394 bool temp8 = false ;
45395 PyObject * obj0 = 0 ;
45396 PyObject * obj1 = 0 ;
45397 PyObject * obj2 = 0 ;
45398 PyObject * obj3 = 0 ;
45399 PyObject * obj4 = 0 ;
45400 PyObject * obj5 = 0 ;
45401 PyObject * obj6 = 0 ;
45402 PyObject * obj7 = 0 ;
45403 char * kwnames[] = {
45404 (char *) "parent",(char *) "winid",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "val",(char *) "name", NULL
45405 };
45406
45407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CollapsiblePane",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
45408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
45409 if (!SWIG_IsOK(res1)) {
45410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CollapsiblePane" "', expected argument " "1"" of type '" "wxWindow *""'");
45411 }
45412 arg1 = reinterpret_cast< wxWindow * >(argp1);
45413 if (obj1) {
45414 ecode2 = SWIG_AsVal_int(obj1, &val2);
45415 if (!SWIG_IsOK(ecode2)) {
45416 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CollapsiblePane" "', expected argument " "2"" of type '" "int""'");
45417 }
45418 arg2 = static_cast< int >(val2);
45419 }
45420 if (obj2) {
45421 {
45422 arg3 = wxString_in_helper(obj2);
45423 if (arg3 == NULL) SWIG_fail;
45424 temp3 = true;
45425 }
45426 }
45427 if (obj3) {
45428 {
45429 arg4 = &temp4;
45430 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
45431 }
45432 }
45433 if (obj4) {
45434 {
45435 arg5 = &temp5;
45436 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
45437 }
45438 }
45439 if (obj5) {
45440 ecode6 = SWIG_AsVal_long(obj5, &val6);
45441 if (!SWIG_IsOK(ecode6)) {
45442 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CollapsiblePane" "', expected argument " "6"" of type '" "long""'");
45443 }
45444 arg6 = static_cast< long >(val6);
45445 }
45446 if (obj6) {
45447 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
45448 if (!SWIG_IsOK(res7)) {
45449 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CollapsiblePane" "', expected argument " "7"" of type '" "wxValidator const &""'");
45450 }
45451 if (!argp7) {
45452 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CollapsiblePane" "', expected argument " "7"" of type '" "wxValidator const &""'");
45453 }
45454 arg7 = reinterpret_cast< wxValidator * >(argp7);
45455 }
45456 if (obj7) {
45457 {
45458 arg8 = wxString_in_helper(obj7);
45459 if (arg8 == NULL) SWIG_fail;
45460 temp8 = true;
45461 }
45462 }
45463 {
45464 if (!wxPyCheckForApp()) SWIG_fail;
45465 PyThreadState* __tstate = wxPyBeginAllowThreads();
45466 result = (wxCollapsiblePane *)new wxCollapsiblePane(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
45467 wxPyEndAllowThreads(__tstate);
45468 if (PyErr_Occurred()) SWIG_fail;
45469 }
45470 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePane, SWIG_POINTER_NEW | 0 );
45471 {
45472 if (temp3)
45473 delete arg3;
45474 }
45475 {
45476 if (temp8)
45477 delete arg8;
45478 }
45479 return resultobj;
45480fail:
45481 {
45482 if (temp3)
45483 delete arg3;
45484 }
45485 {
45486 if (temp8)
45487 delete arg8;
45488 }
45489 return NULL;
45490}
45491
45492
45493SWIGINTERN PyObject *_wrap_new_PreCollapsiblePane(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45494 PyObject *resultobj = 0;
45495 wxCollapsiblePane *result = 0 ;
45496
45497 if (!SWIG_Python_UnpackTuple(args,"new_PreCollapsiblePane",0,0,0)) SWIG_fail;
45498 {
45499 if (!wxPyCheckForApp()) SWIG_fail;
45500 PyThreadState* __tstate = wxPyBeginAllowThreads();
45501 result = (wxCollapsiblePane *)new wxCollapsiblePane();
45502 wxPyEndAllowThreads(__tstate);
45503 if (PyErr_Occurred()) SWIG_fail;
45504 }
45505 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePane, SWIG_POINTER_OWN | 0 );
45506 return resultobj;
45507fail:
45508 return NULL;
45509}
45510
45511
45512SWIGINTERN PyObject *_wrap_CollapsiblePane_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45513 PyObject *resultobj = 0;
45514 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45515 wxWindow *arg2 = (wxWindow *) 0 ;
45516 int arg3 = (int) -1 ;
45517 wxString const &arg4_defvalue = wxPyEmptyString ;
45518 wxString *arg4 = (wxString *) &arg4_defvalue ;
45519 wxPoint const &arg5_defvalue = wxDefaultPosition ;
45520 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
45521 wxSize const &arg6_defvalue = wxDefaultSize ;
45522 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
45523 long arg7 = (long) wxCP_DEFAULT_STYLE ;
45524 wxValidator const &arg8_defvalue = wxDefaultValidator ;
45525 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
45526 wxString const &arg9_defvalue = wxPyCollapsiblePaneNameStr ;
45527 wxString *arg9 = (wxString *) &arg9_defvalue ;
45528 bool result;
45529 void *argp1 = 0 ;
45530 int res1 = 0 ;
45531 void *argp2 = 0 ;
45532 int res2 = 0 ;
45533 int val3 ;
45534 int ecode3 = 0 ;
45535 bool temp4 = false ;
45536 wxPoint temp5 ;
45537 wxSize temp6 ;
45538 long val7 ;
45539 int ecode7 = 0 ;
45540 void *argp8 = 0 ;
45541 int res8 = 0 ;
45542 bool temp9 = false ;
45543 PyObject * obj0 = 0 ;
45544 PyObject * obj1 = 0 ;
45545 PyObject * obj2 = 0 ;
45546 PyObject * obj3 = 0 ;
45547 PyObject * obj4 = 0 ;
45548 PyObject * obj5 = 0 ;
45549 PyObject * obj6 = 0 ;
45550 PyObject * obj7 = 0 ;
45551 PyObject * obj8 = 0 ;
45552 char * kwnames[] = {
45553 (char *) "self",(char *) "parent",(char *) "winid",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "val",(char *) "name", NULL
45554 };
45555
45556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CollapsiblePane_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
45557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45558 if (!SWIG_IsOK(res1)) {
45559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Create" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'");
45560 }
45561 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45562 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
45563 if (!SWIG_IsOK(res2)) {
45564 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CollapsiblePane_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
45565 }
45566 arg2 = reinterpret_cast< wxWindow * >(argp2);
45567 if (obj2) {
45568 ecode3 = SWIG_AsVal_int(obj2, &val3);
45569 if (!SWIG_IsOK(ecode3)) {
45570 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CollapsiblePane_Create" "', expected argument " "3"" of type '" "int""'");
45571 }
45572 arg3 = static_cast< int >(val3);
45573 }
45574 if (obj3) {
45575 {
45576 arg4 = wxString_in_helper(obj3);
45577 if (arg4 == NULL) SWIG_fail;
45578 temp4 = true;
45579 }
45580 }
45581 if (obj4) {
45582 {
45583 arg5 = &temp5;
45584 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
45585 }
45586 }
45587 if (obj5) {
45588 {
45589 arg6 = &temp6;
45590 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
45591 }
45592 }
45593 if (obj6) {
45594 ecode7 = SWIG_AsVal_long(obj6, &val7);
45595 if (!SWIG_IsOK(ecode7)) {
45596 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CollapsiblePane_Create" "', expected argument " "7"" of type '" "long""'");
45597 }
45598 arg7 = static_cast< long >(val7);
45599 }
45600 if (obj7) {
45601 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
45602 if (!SWIG_IsOK(res8)) {
45603 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CollapsiblePane_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45604 }
45605 if (!argp8) {
45606 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CollapsiblePane_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45607 }
45608 arg8 = reinterpret_cast< wxValidator * >(argp8);
45609 }
45610 if (obj8) {
45611 {
45612 arg9 = wxString_in_helper(obj8);
45613 if (arg9 == NULL) SWIG_fail;
45614 temp9 = true;
45615 }
45616 }
45617 {
45618 PyThreadState* __tstate = wxPyBeginAllowThreads();
45619 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
45620 wxPyEndAllowThreads(__tstate);
45621 if (PyErr_Occurred()) SWIG_fail;
45622 }
45623 {
45624 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45625 }
45626 {
45627 if (temp4)
45628 delete arg4;
45629 }
45630 {
45631 if (temp9)
45632 delete arg9;
45633 }
45634 return resultobj;
45635fail:
45636 {
45637 if (temp4)
45638 delete arg4;
45639 }
45640 {
45641 if (temp9)
45642 delete arg9;
45643 }
45644 return NULL;
45645}
45646
45647
45648SWIGINTERN PyObject *_wrap_CollapsiblePane_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45649 PyObject *resultobj = 0;
45650 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45651 bool arg2 = (bool) true ;
45652 void *argp1 = 0 ;
45653 int res1 = 0 ;
45654 bool val2 ;
45655 int ecode2 = 0 ;
45656 PyObject * obj0 = 0 ;
45657 PyObject * obj1 = 0 ;
45658 char * kwnames[] = {
45659 (char *) "self",(char *) "collapse", NULL
45660 };
45661
45662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CollapsiblePane_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
45663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45664 if (!SWIG_IsOK(res1)) {
45665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Collapse" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'");
45666 }
45667 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45668 if (obj1) {
45669 ecode2 = SWIG_AsVal_bool(obj1, &val2);
45670 if (!SWIG_IsOK(ecode2)) {
45671 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CollapsiblePane_Collapse" "', expected argument " "2"" of type '" "bool""'");
45672 }
45673 arg2 = static_cast< bool >(val2);
45674 }
45675 {
45676 PyThreadState* __tstate = wxPyBeginAllowThreads();
45677 (arg1)->Collapse(arg2);
45678 wxPyEndAllowThreads(__tstate);
45679 if (PyErr_Occurred()) SWIG_fail;
45680 }
45681 resultobj = SWIG_Py_Void();
45682 return resultobj;
45683fail:
45684 return NULL;
45685}
45686
45687
45688SWIGINTERN PyObject *_wrap_CollapsiblePane_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45689 PyObject *resultobj = 0;
45690 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45691 void *argp1 = 0 ;
45692 int res1 = 0 ;
45693 PyObject *swig_obj[1] ;
45694
45695 if (!args) SWIG_fail;
45696 swig_obj[0] = args;
45697 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45698 if (!SWIG_IsOK(res1)) {
45699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Expand" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'");
45700 }
45701 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45702 {
45703 PyThreadState* __tstate = wxPyBeginAllowThreads();
45704 (arg1)->Expand();
45705 wxPyEndAllowThreads(__tstate);
45706 if (PyErr_Occurred()) SWIG_fail;
45707 }
45708 resultobj = SWIG_Py_Void();
45709 return resultobj;
45710fail:
45711 return NULL;
45712}
45713
45714
45715SWIGINTERN PyObject *_wrap_CollapsiblePane_IsCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45716 PyObject *resultobj = 0;
45717 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45718 bool result;
45719 void *argp1 = 0 ;
45720 int res1 = 0 ;
45721 PyObject *swig_obj[1] ;
45722
45723 if (!args) SWIG_fail;
45724 swig_obj[0] = args;
45725 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45726 if (!SWIG_IsOK(res1)) {
45727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_IsCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'");
45728 }
45729 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45730 {
45731 PyThreadState* __tstate = wxPyBeginAllowThreads();
45732 result = (bool)((wxCollapsiblePane const *)arg1)->IsCollapsed();
45733 wxPyEndAllowThreads(__tstate);
45734 if (PyErr_Occurred()) SWIG_fail;
45735 }
45736 {
45737 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45738 }
45739 return resultobj;
45740fail:
45741 return NULL;
45742}
45743
45744
45745SWIGINTERN PyObject *_wrap_CollapsiblePane_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45746 PyObject *resultobj = 0;
45747 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45748 bool result;
45749 void *argp1 = 0 ;
45750 int res1 = 0 ;
45751 PyObject *swig_obj[1] ;
45752
45753 if (!args) SWIG_fail;
45754 swig_obj[0] = args;
45755 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45756 if (!SWIG_IsOK(res1)) {
45757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_IsExpanded" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'");
45758 }
45759 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45760 {
45761 PyThreadState* __tstate = wxPyBeginAllowThreads();
45762 result = (bool)((wxCollapsiblePane const *)arg1)->IsExpanded();
45763 wxPyEndAllowThreads(__tstate);
45764 if (PyErr_Occurred()) SWIG_fail;
45765 }
45766 {
45767 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45768 }
45769 return resultobj;
45770fail:
45771 return NULL;
45772}
45773
45774
45775SWIGINTERN PyObject *_wrap_CollapsiblePane_GetPane(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45776 PyObject *resultobj = 0;
45777 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45778 wxWindow *result = 0 ;
45779 void *argp1 = 0 ;
45780 int res1 = 0 ;
45781 PyObject *swig_obj[1] ;
45782
45783 if (!args) SWIG_fail;
45784 swig_obj[0] = args;
45785 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45786 if (!SWIG_IsOK(res1)) {
45787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_GetPane" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'");
45788 }
45789 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45790 {
45791 PyThreadState* __tstate = wxPyBeginAllowThreads();
45792 result = (wxWindow *)((wxCollapsiblePane const *)arg1)->GetPane();
45793 wxPyEndAllowThreads(__tstate);
45794 if (PyErr_Occurred()) SWIG_fail;
45795 }
45796 {
45797 resultobj = wxPyMake_wxObject(result, 0);
45798 }
45799 return resultobj;
45800fail:
45801 return NULL;
45802}
45803
45804
45805SWIGINTERN PyObject *CollapsiblePane_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45806 PyObject *obj;
45807 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45808 SWIG_TypeNewClientData(SWIGTYPE_p_wxCollapsiblePane, SWIG_NewClientData(obj));
45809 return SWIG_Py_Void();
45810}
45811
45812SWIGINTERN PyObject *CollapsiblePane_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45813 return SWIG_Python_InitShadowInstance(args);
45814}
45815
45816SWIGINTERN PyObject *_wrap_new_CollapsiblePaneEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45817 PyObject *resultobj = 0;
45818 wxObject *arg1 = (wxObject *) 0 ;
45819 int arg2 ;
45820 bool arg3 ;
45821 wxCollapsiblePaneEvent *result = 0 ;
45822 void *argp1 = 0 ;
45823 int res1 = 0 ;
45824 int val2 ;
45825 int ecode2 = 0 ;
45826 bool val3 ;
45827 int ecode3 = 0 ;
45828 PyObject * obj0 = 0 ;
45829 PyObject * obj1 = 0 ;
45830 PyObject * obj2 = 0 ;
45831 char * kwnames[] = {
45832 (char *) "generator",(char *) "id",(char *) "collapsed", NULL
45833 };
45834
45835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_CollapsiblePaneEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
45836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
45837 if (!SWIG_IsOK(res1)) {
45838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "1"" of type '" "wxObject *""'");
45839 }
45840 arg1 = reinterpret_cast< wxObject * >(argp1);
45841 ecode2 = SWIG_AsVal_int(obj1, &val2);
45842 if (!SWIG_IsOK(ecode2)) {
45843 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "2"" of type '" "int""'");
45844 }
45845 arg2 = static_cast< int >(val2);
45846 ecode3 = SWIG_AsVal_bool(obj2, &val3);
45847 if (!SWIG_IsOK(ecode3)) {
45848 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "3"" of type '" "bool""'");
45849 }
45850 arg3 = static_cast< bool >(val3);
45851 {
45852 PyThreadState* __tstate = wxPyBeginAllowThreads();
45853 result = (wxCollapsiblePaneEvent *)new wxCollapsiblePaneEvent(arg1,arg2,arg3);
45854 wxPyEndAllowThreads(__tstate);
45855 if (PyErr_Occurred()) SWIG_fail;
45856 }
45857 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePaneEvent, SWIG_POINTER_NEW | 0 );
45858 return resultobj;
45859fail:
45860 return NULL;
45861}
45862
45863
45864SWIGINTERN PyObject *_wrap_CollapsiblePaneEvent_GetCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45865 PyObject *resultobj = 0;
45866 wxCollapsiblePaneEvent *arg1 = (wxCollapsiblePaneEvent *) 0 ;
45867 bool result;
45868 void *argp1 = 0 ;
45869 int res1 = 0 ;
45870 PyObject *swig_obj[1] ;
45871
45872 if (!args) SWIG_fail;
45873 swig_obj[0] = args;
45874 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePaneEvent, 0 | 0 );
45875 if (!SWIG_IsOK(res1)) {
45876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePaneEvent_GetCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePaneEvent const *""'");
45877 }
45878 arg1 = reinterpret_cast< wxCollapsiblePaneEvent * >(argp1);
45879 {
45880 PyThreadState* __tstate = wxPyBeginAllowThreads();
45881 result = (bool)((wxCollapsiblePaneEvent const *)arg1)->GetCollapsed();
45882 wxPyEndAllowThreads(__tstate);
45883 if (PyErr_Occurred()) SWIG_fail;
45884 }
45885 {
45886 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45887 }
45888 return resultobj;
45889fail:
45890 return NULL;
45891}
45892
45893
45894SWIGINTERN PyObject *_wrap_CollapsiblePaneEvent_SetCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45895 PyObject *resultobj = 0;
45896 wxCollapsiblePaneEvent *arg1 = (wxCollapsiblePaneEvent *) 0 ;
45897 bool arg2 ;
45898 void *argp1 = 0 ;
45899 int res1 = 0 ;
45900 bool val2 ;
45901 int ecode2 = 0 ;
45902 PyObject * obj0 = 0 ;
45903 PyObject * obj1 = 0 ;
45904 char * kwnames[] = {
45905 (char *) "self",(char *) "c", NULL
45906 };
45907
45908 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CollapsiblePaneEvent_SetCollapsed",kwnames,&obj0,&obj1)) SWIG_fail;
45909 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePaneEvent, 0 | 0 );
45910 if (!SWIG_IsOK(res1)) {
45911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePaneEvent_SetCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePaneEvent *""'");
45912 }
45913 arg1 = reinterpret_cast< wxCollapsiblePaneEvent * >(argp1);
45914 ecode2 = SWIG_AsVal_bool(obj1, &val2);
45915 if (!SWIG_IsOK(ecode2)) {
45916 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CollapsiblePaneEvent_SetCollapsed" "', expected argument " "2"" of type '" "bool""'");
45917 }
45918 arg2 = static_cast< bool >(val2);
45919 {
45920 PyThreadState* __tstate = wxPyBeginAllowThreads();
45921 (arg1)->SetCollapsed(arg2);
45922 wxPyEndAllowThreads(__tstate);
45923 if (PyErr_Occurred()) SWIG_fail;
45924 }
45925 resultobj = SWIG_Py_Void();
45926 return resultobj;
45927fail:
45928 return NULL;
45929}
45930
45931
45932SWIGINTERN PyObject *CollapsiblePaneEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45933 PyObject *obj;
45934 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45935 SWIG_TypeNewClientData(SWIGTYPE_p_wxCollapsiblePaneEvent, SWIG_NewClientData(obj));
45936 return SWIG_Py_Void();
45937}
45938
45939SWIGINTERN PyObject *CollapsiblePaneEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45940 return SWIG_Python_InitShadowInstance(args);
45941}
45942
3f7f284d
RD
45943SWIGINTERN int SearchCtrlNameStr_set(PyObject *) {
45944 SWIG_Error(SWIG_AttributeError,"Variable SearchCtrlNameStr is read-only.");
45945 return 1;
45946}
45947
45948
45949SWIGINTERN PyObject *SearchCtrlNameStr_get(void) {
45950 PyObject *pyobj = 0;
45951
45952 {
45953#if wxUSE_UNICODE
45954 pyobj = PyUnicode_FromWideChar((&wxPySearchCtrlNameStr)->c_str(), (&wxPySearchCtrlNameStr)->Len());
45955#else
45956 pyobj = PyString_FromStringAndSize((&wxPySearchCtrlNameStr)->c_str(), (&wxPySearchCtrlNameStr)->Len());
45957#endif
45958 }
45959 return pyobj;
45960}
45961
45962
45963SWIGINTERN PyObject *_wrap_new_SearchCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45964 PyObject *resultobj = 0;
45965 wxWindow *arg1 = (wxWindow *) 0 ;
45966 int arg2 = (int) -1 ;
45967 wxString const &arg3_defvalue = wxEmptyString ;
45968 wxString *arg3 = (wxString *) &arg3_defvalue ;
45969 wxPoint const &arg4_defvalue = wxDefaultPosition ;
45970 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
45971 wxSize const &arg5_defvalue = wxDefaultSize ;
45972 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
45973 long arg6 = (long) 0 ;
45974 wxValidator const &arg7_defvalue = wxDefaultValidator ;
45975 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
45976 wxString const &arg8_defvalue = wxPySearchCtrlNameStr ;
45977 wxString *arg8 = (wxString *) &arg8_defvalue ;
45978 wxSearchCtrl *result = 0 ;
45979 void *argp1 = 0 ;
45980 int res1 = 0 ;
45981 int val2 ;
45982 int ecode2 = 0 ;
45983 bool temp3 = false ;
45984 wxPoint temp4 ;
45985 wxSize temp5 ;
45986 long val6 ;
45987 int ecode6 = 0 ;
45988 void *argp7 = 0 ;
45989 int res7 = 0 ;
45990 bool temp8 = false ;
45991 PyObject * obj0 = 0 ;
45992 PyObject * obj1 = 0 ;
45993 PyObject * obj2 = 0 ;
45994 PyObject * obj3 = 0 ;
45995 PyObject * obj4 = 0 ;
45996 PyObject * obj5 = 0 ;
45997 PyObject * obj6 = 0 ;
45998 PyObject * obj7 = 0 ;
45999 char * kwnames[] = {
46000 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
46001 };
46002
46003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_SearchCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
46004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
46005 if (!SWIG_IsOK(res1)) {
46006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SearchCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
46007 }
46008 arg1 = reinterpret_cast< wxWindow * >(argp1);
46009 if (obj1) {
46010 ecode2 = SWIG_AsVal_int(obj1, &val2);
46011 if (!SWIG_IsOK(ecode2)) {
46012 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SearchCtrl" "', expected argument " "2"" of type '" "int""'");
46013 }
46014 arg2 = static_cast< int >(val2);
46015 }
46016 if (obj2) {
46017 {
46018 arg3 = wxString_in_helper(obj2);
46019 if (arg3 == NULL) SWIG_fail;
46020 temp3 = true;
46021 }
46022 }
46023 if (obj3) {
46024 {
46025 arg4 = &temp4;
46026 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
46027 }
46028 }
46029 if (obj4) {
46030 {
46031 arg5 = &temp5;
46032 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
46033 }
46034 }
46035 if (obj5) {
46036 ecode6 = SWIG_AsVal_long(obj5, &val6);
46037 if (!SWIG_IsOK(ecode6)) {
46038 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SearchCtrl" "', expected argument " "6"" of type '" "long""'");
46039 }
46040 arg6 = static_cast< long >(val6);
46041 }
46042 if (obj6) {
46043 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
46044 if (!SWIG_IsOK(res7)) {
46045 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_SearchCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
46046 }
46047 if (!argp7) {
46048 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SearchCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
46049 }
46050 arg7 = reinterpret_cast< wxValidator * >(argp7);
46051 }
46052 if (obj7) {
46053 {
46054 arg8 = wxString_in_helper(obj7);
46055 if (arg8 == NULL) SWIG_fail;
46056 temp8 = true;
46057 }
46058 }
46059 {
46060 if (!wxPyCheckForApp()) SWIG_fail;
46061 PyThreadState* __tstate = wxPyBeginAllowThreads();
46062 result = (wxSearchCtrl *)new wxSearchCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
46063 wxPyEndAllowThreads(__tstate);
46064 if (PyErr_Occurred()) SWIG_fail;
46065 }
46066 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSearchCtrl, SWIG_POINTER_NEW | 0 );
46067 {
46068 if (temp3)
46069 delete arg3;
46070 }
46071 {
46072 if (temp8)
46073 delete arg8;
46074 }
46075 return resultobj;
46076fail:
46077 {
46078 if (temp3)
46079 delete arg3;
46080 }
46081 {
46082 if (temp8)
46083 delete arg8;
46084 }
46085 return NULL;
46086}
46087
46088
46089SWIGINTERN PyObject *_wrap_new_PreSearchCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46090 PyObject *resultobj = 0;
46091 wxSearchCtrl *result = 0 ;
46092
46093 if (!SWIG_Python_UnpackTuple(args,"new_PreSearchCtrl",0,0,0)) SWIG_fail;
46094 {
46095 if (!wxPyCheckForApp()) SWIG_fail;
46096 PyThreadState* __tstate = wxPyBeginAllowThreads();
46097 result = (wxSearchCtrl *)new wxSearchCtrl();
46098 wxPyEndAllowThreads(__tstate);
46099 if (PyErr_Occurred()) SWIG_fail;
46100 }
46101 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSearchCtrl, SWIG_POINTER_OWN | 0 );
46102 return resultobj;
46103fail:
46104 return NULL;
46105}
46106
46107
46108SWIGINTERN PyObject *_wrap_SearchCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46109 PyObject *resultobj = 0;
46110 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46111 wxWindow *arg2 = (wxWindow *) 0 ;
46112 int arg3 = (int) -1 ;
46113 wxString const &arg4_defvalue = wxEmptyString ;
46114 wxString *arg4 = (wxString *) &arg4_defvalue ;
46115 wxPoint const &arg5_defvalue = wxDefaultPosition ;
46116 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
46117 wxSize const &arg6_defvalue = wxDefaultSize ;
46118 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
46119 long arg7 = (long) 0 ;
46120 wxValidator const &arg8_defvalue = wxDefaultValidator ;
46121 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
46122 wxString const &arg9_defvalue = wxPySearchCtrlNameStr ;
46123 wxString *arg9 = (wxString *) &arg9_defvalue ;
46124 bool result;
46125 void *argp1 = 0 ;
46126 int res1 = 0 ;
46127 void *argp2 = 0 ;
46128 int res2 = 0 ;
46129 int val3 ;
46130 int ecode3 = 0 ;
46131 bool temp4 = false ;
46132 wxPoint temp5 ;
46133 wxSize temp6 ;
46134 long val7 ;
46135 int ecode7 = 0 ;
46136 void *argp8 = 0 ;
46137 int res8 = 0 ;
46138 bool temp9 = false ;
46139 PyObject * obj0 = 0 ;
46140 PyObject * obj1 = 0 ;
46141 PyObject * obj2 = 0 ;
46142 PyObject * obj3 = 0 ;
46143 PyObject * obj4 = 0 ;
46144 PyObject * obj5 = 0 ;
46145 PyObject * obj6 = 0 ;
46146 PyObject * obj7 = 0 ;
46147 PyObject * obj8 = 0 ;
46148 char * kwnames[] = {
46149 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
46150 };
46151
46152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:SearchCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
46153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46154 if (!SWIG_IsOK(res1)) {
46155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_Create" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46156 }
46157 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46158 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
46159 if (!SWIG_IsOK(res2)) {
46160 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
46161 }
46162 arg2 = reinterpret_cast< wxWindow * >(argp2);
46163 if (obj2) {
46164 ecode3 = SWIG_AsVal_int(obj2, &val3);
46165 if (!SWIG_IsOK(ecode3)) {
46166 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SearchCtrl_Create" "', expected argument " "3"" of type '" "int""'");
46167 }
46168 arg3 = static_cast< int >(val3);
46169 }
46170 if (obj3) {
46171 {
46172 arg4 = wxString_in_helper(obj3);
46173 if (arg4 == NULL) SWIG_fail;
46174 temp4 = true;
46175 }
46176 }
46177 if (obj4) {
46178 {
46179 arg5 = &temp5;
46180 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
46181 }
46182 }
46183 if (obj5) {
46184 {
46185 arg6 = &temp6;
46186 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
46187 }
46188 }
46189 if (obj6) {
46190 ecode7 = SWIG_AsVal_long(obj6, &val7);
46191 if (!SWIG_IsOK(ecode7)) {
46192 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SearchCtrl_Create" "', expected argument " "7"" of type '" "long""'");
46193 }
46194 arg7 = static_cast< long >(val7);
46195 }
46196 if (obj7) {
46197 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
46198 if (!SWIG_IsOK(res8)) {
46199 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "SearchCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
46200 }
46201 if (!argp8) {
46202 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SearchCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
46203 }
46204 arg8 = reinterpret_cast< wxValidator * >(argp8);
46205 }
46206 if (obj8) {
46207 {
46208 arg9 = wxString_in_helper(obj8);
46209 if (arg9 == NULL) SWIG_fail;
46210 temp9 = true;
46211 }
46212 }
46213 {
46214 PyThreadState* __tstate = wxPyBeginAllowThreads();
46215 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
46216 wxPyEndAllowThreads(__tstate);
46217 if (PyErr_Occurred()) SWIG_fail;
46218 }
46219 {
46220 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46221 }
46222 {
46223 if (temp4)
46224 delete arg4;
46225 }
46226 {
46227 if (temp9)
46228 delete arg9;
46229 }
46230 return resultobj;
46231fail:
46232 {
46233 if (temp4)
46234 delete arg4;
46235 }
46236 {
46237 if (temp9)
46238 delete arg9;
46239 }
46240 return NULL;
46241}
46242
46243
46244SWIGINTERN PyObject *_wrap_SearchCtrl_SetMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46245 PyObject *resultobj = 0;
46246 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46247 wxMenu *arg2 = (wxMenu *) 0 ;
46248 void *argp1 = 0 ;
46249 int res1 = 0 ;
46250 void *argp2 = 0 ;
46251 int res2 = 0 ;
46252 PyObject * obj0 = 0 ;
46253 PyObject * obj1 = 0 ;
46254 char * kwnames[] = {
46255 (char *) "self",(char *) "menu", NULL
46256 };
46257
46258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetMenu",kwnames,&obj0,&obj1)) SWIG_fail;
46259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46260 if (!SWIG_IsOK(res1)) {
46261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetMenu" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46262 }
46263 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46264 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenu, 0 | 0 );
46265 if (!SWIG_IsOK(res2)) {
46266 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_SetMenu" "', expected argument " "2"" of type '" "wxMenu *""'");
46267 }
46268 arg2 = reinterpret_cast< wxMenu * >(argp2);
46269 {
46270 PyThreadState* __tstate = wxPyBeginAllowThreads();
46271 (arg1)->SetMenu(arg2);
46272 wxPyEndAllowThreads(__tstate);
46273 if (PyErr_Occurred()) SWIG_fail;
46274 }
46275 resultobj = SWIG_Py_Void();
46276 return resultobj;
46277fail:
46278 return NULL;
46279}
46280
46281
46282SWIGINTERN PyObject *_wrap_SearchCtrl_GetMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46283 PyObject *resultobj = 0;
46284 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46285 wxMenu *result = 0 ;
46286 void *argp1 = 0 ;
46287 int res1 = 0 ;
46288 PyObject *swig_obj[1] ;
46289
46290 if (!args) SWIG_fail;
46291 swig_obj[0] = args;
46292 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46293 if (!SWIG_IsOK(res1)) {
46294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_GetMenu" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46295 }
46296 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46297 {
46298 PyThreadState* __tstate = wxPyBeginAllowThreads();
46299 result = (wxMenu *)(arg1)->GetMenu();
46300 wxPyEndAllowThreads(__tstate);
46301 if (PyErr_Occurred()) SWIG_fail;
46302 }
46303 {
46304 resultobj = wxPyMake_wxObject(result, 0);
46305 }
46306 return resultobj;
46307fail:
46308 return NULL;
46309}
46310
46311
46312SWIGINTERN PyObject *_wrap_SearchCtrl_SetSearchButtonVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46313 PyObject *resultobj = 0;
46314 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46315 bool arg2 ;
46316 void *argp1 = 0 ;
46317 int res1 = 0 ;
46318 bool val2 ;
46319 int ecode2 = 0 ;
46320 PyObject * obj0 = 0 ;
46321 PyObject * obj1 = 0 ;
46322 char * kwnames[] = {
46323 (char *) "self",(char *) "show", NULL
46324 };
46325
46326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetSearchButtonVisible",kwnames,&obj0,&obj1)) SWIG_fail;
46327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46328 if (!SWIG_IsOK(res1)) {
46329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetSearchButtonVisible" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46330 }
46331 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46332 ecode2 = SWIG_AsVal_bool(obj1, &val2);
46333 if (!SWIG_IsOK(ecode2)) {
46334 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SearchCtrl_SetSearchButtonVisible" "', expected argument " "2"" of type '" "bool""'");
46335 }
46336 arg2 = static_cast< bool >(val2);
46337 {
46338 PyThreadState* __tstate = wxPyBeginAllowThreads();
46339 (arg1)->SetSearchButtonVisible(arg2);
46340 wxPyEndAllowThreads(__tstate);
46341 if (PyErr_Occurred()) SWIG_fail;
46342 }
46343 resultobj = SWIG_Py_Void();
46344 return resultobj;
46345fail:
46346 return NULL;
46347}
46348
46349
46350SWIGINTERN PyObject *_wrap_SearchCtrl_GetSearchButtonVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46351 PyObject *resultobj = 0;
46352 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46353 bool result;
46354 void *argp1 = 0 ;
46355 int res1 = 0 ;
46356 PyObject *swig_obj[1] ;
46357
46358 if (!args) SWIG_fail;
46359 swig_obj[0] = args;
46360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46361 if (!SWIG_IsOK(res1)) {
46362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_GetSearchButtonVisible" "', expected argument " "1"" of type '" "wxSearchCtrl const *""'");
46363 }
46364 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46365 {
46366 PyThreadState* __tstate = wxPyBeginAllowThreads();
46367 result = (bool)((wxSearchCtrl const *)arg1)->GetSearchButtonVisible();
46368 wxPyEndAllowThreads(__tstate);
46369 if (PyErr_Occurred()) SWIG_fail;
46370 }
46371 {
46372 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46373 }
46374 return resultobj;
46375fail:
46376 return NULL;
46377}
46378
46379
46380SWIGINTERN PyObject *_wrap_SearchCtrl_SetCancelButtonVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46381 PyObject *resultobj = 0;
46382 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46383 bool arg2 ;
46384 void *argp1 = 0 ;
46385 int res1 = 0 ;
46386 bool val2 ;
46387 int ecode2 = 0 ;
46388 PyObject * obj0 = 0 ;
46389 PyObject * obj1 = 0 ;
46390 char * kwnames[] = {
46391 (char *) "self",(char *) "show", NULL
46392 };
46393
46394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetCancelButtonVisible",kwnames,&obj0,&obj1)) SWIG_fail;
46395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46396 if (!SWIG_IsOK(res1)) {
46397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetCancelButtonVisible" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46398 }
46399 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46400 ecode2 = SWIG_AsVal_bool(obj1, &val2);
46401 if (!SWIG_IsOK(ecode2)) {
46402 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SearchCtrl_SetCancelButtonVisible" "', expected argument " "2"" of type '" "bool""'");
46403 }
46404 arg2 = static_cast< bool >(val2);
46405 {
46406 PyThreadState* __tstate = wxPyBeginAllowThreads();
46407 (arg1)->SetCancelButtonVisible(arg2);
46408 wxPyEndAllowThreads(__tstate);
46409 if (PyErr_Occurred()) SWIG_fail;
46410 }
46411 resultobj = SWIG_Py_Void();
46412 return resultobj;
46413fail:
46414 return NULL;
46415}
46416
46417
46418SWIGINTERN PyObject *_wrap_SearchCtrl_GetCancelButtonVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46419 PyObject *resultobj = 0;
46420 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46421 bool result;
46422 void *argp1 = 0 ;
46423 int res1 = 0 ;
46424 PyObject *swig_obj[1] ;
46425
46426 if (!args) SWIG_fail;
46427 swig_obj[0] = args;
46428 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46429 if (!SWIG_IsOK(res1)) {
46430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_GetCancelButtonVisible" "', expected argument " "1"" of type '" "wxSearchCtrl const *""'");
46431 }
46432 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46433 {
46434 PyThreadState* __tstate = wxPyBeginAllowThreads();
46435 result = (bool)((wxSearchCtrl const *)arg1)->GetCancelButtonVisible();
46436 wxPyEndAllowThreads(__tstate);
46437 if (PyErr_Occurred()) SWIG_fail;
46438 }
46439 {
46440 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46441 }
46442 return resultobj;
46443fail:
46444 return NULL;
46445}
46446
46447
46448SWIGINTERN PyObject *_wrap_SearchCtrl_SetSearchBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46449 PyObject *resultobj = 0;
46450 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46451 wxBitmap *arg2 = 0 ;
46452 void *argp1 = 0 ;
46453 int res1 = 0 ;
46454 void *argp2 = 0 ;
46455 int res2 = 0 ;
46456 PyObject * obj0 = 0 ;
46457 PyObject * obj1 = 0 ;
46458 char * kwnames[] = {
46459 (char *) "self",(char *)"arg2", NULL
46460 };
46461
46462 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetSearchBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
46463 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46464 if (!SWIG_IsOK(res1)) {
46465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetSearchBitmap" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46466 }
46467 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46468 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
46469 if (!SWIG_IsOK(res2)) {
46470 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_SetSearchBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
46471 }
46472 if (!argp2) {
46473 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SearchCtrl_SetSearchBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
46474 }
46475 arg2 = reinterpret_cast< wxBitmap * >(argp2);
46476 {
46477 PyThreadState* __tstate = wxPyBeginAllowThreads();
46478 wxSearchCtrl_SetSearchBitmap(arg1,(wxBitmap const &)*arg2);
46479 wxPyEndAllowThreads(__tstate);
46480 if (PyErr_Occurred()) SWIG_fail;
46481 }
46482 resultobj = SWIG_Py_Void();
46483 return resultobj;
46484fail:
46485 return NULL;
46486}
46487
46488
46489SWIGINTERN PyObject *_wrap_SearchCtrl_SetSearchMenuBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46490 PyObject *resultobj = 0;
46491 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46492 wxBitmap *arg2 = 0 ;
46493 void *argp1 = 0 ;
46494 int res1 = 0 ;
46495 void *argp2 = 0 ;
46496 int res2 = 0 ;
46497 PyObject * obj0 = 0 ;
46498 PyObject * obj1 = 0 ;
46499 char * kwnames[] = {
46500 (char *) "self",(char *)"arg2", NULL
46501 };
46502
46503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetSearchMenuBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
46504 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46505 if (!SWIG_IsOK(res1)) {
46506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetSearchMenuBitmap" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46507 }
46508 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46509 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
46510 if (!SWIG_IsOK(res2)) {
46511 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_SetSearchMenuBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
46512 }
46513 if (!argp2) {
46514 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SearchCtrl_SetSearchMenuBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
46515 }
46516 arg2 = reinterpret_cast< wxBitmap * >(argp2);
46517 {
46518 PyThreadState* __tstate = wxPyBeginAllowThreads();
46519 wxSearchCtrl_SetSearchMenuBitmap(arg1,(wxBitmap const &)*arg2);
46520 wxPyEndAllowThreads(__tstate);
46521 if (PyErr_Occurred()) SWIG_fail;
46522 }
46523 resultobj = SWIG_Py_Void();
46524 return resultobj;
46525fail:
46526 return NULL;
46527}
46528
46529
46530SWIGINTERN PyObject *_wrap_SearchCtrl_SetCancelBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46531 PyObject *resultobj = 0;
46532 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46533 wxBitmap *arg2 = 0 ;
46534 void *argp1 = 0 ;
46535 int res1 = 0 ;
46536 void *argp2 = 0 ;
46537 int res2 = 0 ;
46538 PyObject * obj0 = 0 ;
46539 PyObject * obj1 = 0 ;
46540 char * kwnames[] = {
46541 (char *) "self",(char *)"arg2", NULL
46542 };
46543
46544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetCancelBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
46545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46546 if (!SWIG_IsOK(res1)) {
46547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetCancelBitmap" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46548 }
46549 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46550 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
46551 if (!SWIG_IsOK(res2)) {
46552 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_SetCancelBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
46553 }
46554 if (!argp2) {
46555 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SearchCtrl_SetCancelBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
46556 }
46557 arg2 = reinterpret_cast< wxBitmap * >(argp2);
46558 {
46559 PyThreadState* __tstate = wxPyBeginAllowThreads();
46560 wxSearchCtrl_SetCancelBitmap(arg1,(wxBitmap const &)*arg2);
46561 wxPyEndAllowThreads(__tstate);
46562 if (PyErr_Occurred()) SWIG_fail;
46563 }
46564 resultobj = SWIG_Py_Void();
46565 return resultobj;
46566fail:
46567 return NULL;
46568}
46569
46570
46571SWIGINTERN PyObject *SearchCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46572 PyObject *obj;
46573 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
46574 SWIG_TypeNewClientData(SWIGTYPE_p_wxSearchCtrl, SWIG_NewClientData(obj));
46575 return SWIG_Py_Void();
46576}
46577
46578SWIGINTERN PyObject *SearchCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46579 return SWIG_Python_InitShadowInstance(args);
46580}
46581
b850e7f3
RD
46582static PyMethodDef SwigMethods[] = {
46583 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL},
46584 { (char *)"new_PreButton", (PyCFunction)_wrap_new_PreButton, METH_NOARGS, NULL},
46585 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46586 { (char *)"Button_SetDefault", (PyCFunction)_wrap_Button_SetDefault, METH_O, NULL},
46587 { (char *)"Button_GetDefaultSize", (PyCFunction)_wrap_Button_GetDefaultSize, METH_NOARGS, NULL},
46588 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46589 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL},
46590 { (char *)"Button_swiginit", Button_swiginit, METH_VARARGS, NULL},
46591 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL},
46592 { (char *)"new_PreBitmapButton", (PyCFunction)_wrap_new_PreBitmapButton, METH_NOARGS, NULL},
46593 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46594 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction)_wrap_BitmapButton_GetBitmapLabel, METH_O, NULL},
46595 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction)_wrap_BitmapButton_GetBitmapDisabled, METH_O, NULL},
46596 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction)_wrap_BitmapButton_GetBitmapFocus, METH_O, NULL},
46597 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction)_wrap_BitmapButton_GetBitmapSelected, METH_O, NULL},
46598 { (char *)"BitmapButton_GetBitmapHover", (PyCFunction)_wrap_BitmapButton_GetBitmapHover, METH_O, NULL},
46599 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL},
46600 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL},
46601 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL},
46602 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46603 { (char *)"BitmapButton_SetBitmapHover", (PyCFunction) _wrap_BitmapButton_SetBitmapHover, METH_VARARGS | METH_KEYWORDS, NULL},
46604 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
46605 { (char *)"BitmapButton_GetMarginX", (PyCFunction)_wrap_BitmapButton_GetMarginX, METH_O, NULL},
46606 { (char *)"BitmapButton_GetMarginY", (PyCFunction)_wrap_BitmapButton_GetMarginY, METH_O, NULL},
46607 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL},
46608 { (char *)"BitmapButton_swiginit", BitmapButton_swiginit, METH_VARARGS, NULL},
46609 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
46610 { (char *)"new_PreCheckBox", (PyCFunction)_wrap_new_PreCheckBox, METH_NOARGS, NULL},
46611 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46612 { (char *)"CheckBox_GetValue", (PyCFunction)_wrap_CheckBox_GetValue, METH_O, NULL},
46613 { (char *)"CheckBox_IsChecked", (PyCFunction)_wrap_CheckBox_IsChecked, METH_O, NULL},
46614 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46615 { (char *)"CheckBox_Get3StateValue", (PyCFunction)_wrap_CheckBox_Get3StateValue, METH_O, NULL},
46616 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL},
46617 { (char *)"CheckBox_Is3State", (PyCFunction)_wrap_CheckBox_Is3State, METH_O, NULL},
46618 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction)_wrap_CheckBox_Is3rdStateAllowedForUser, METH_O, NULL},
46619 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46620 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL},
46621 { (char *)"CheckBox_swiginit", CheckBox_swiginit, METH_VARARGS, NULL},
46622 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL},
46623 { (char *)"new_PreChoice", (PyCFunction)_wrap_new_PreChoice, METH_NOARGS, NULL},
46624 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46625 { (char *)"Choice_GetCurrentSelection", (PyCFunction)_wrap_Choice_GetCurrentSelection, METH_O, NULL},
46626 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46627 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL},
46628 { (char *)"Choice_swiginit", Choice_swiginit, METH_VARARGS, NULL},
46629 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL},
46630 { (char *)"new_PreComboBox", (PyCFunction)_wrap_new_PreComboBox, METH_NOARGS, NULL},
46631 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46632 { (char *)"ComboBox_GetValue", (PyCFunction)_wrap_ComboBox_GetValue, METH_O, NULL},
46633 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46634 { (char *)"ComboBox_Copy", (PyCFunction)_wrap_ComboBox_Copy, METH_O, NULL},
46635 { (char *)"ComboBox_Cut", (PyCFunction)_wrap_ComboBox_Cut, METH_O, NULL},
46636 { (char *)"ComboBox_Paste", (PyCFunction)_wrap_ComboBox_Paste, METH_O, NULL},
46637 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
46638 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction)_wrap_ComboBox_GetInsertionPoint, METH_O, NULL},
46639 { (char *)"ComboBox_GetLastPosition", (PyCFunction)_wrap_ComboBox_GetLastPosition, METH_O, NULL},
46640 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
46641 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL},
46642 { (char *)"ComboBox_GetCurrentSelection", (PyCFunction)_wrap_ComboBox_GetCurrentSelection, METH_O, NULL},
46643 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3
RD
46644 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
46645 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction)_wrap_ComboBox_SetInsertionPointEnd, METH_O, NULL},
46646 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
46647 { (char *)"ComboBox_IsEditable", (PyCFunction)_wrap_ComboBox_IsEditable, METH_O, NULL},
46648 { (char *)"ComboBox_Undo", (PyCFunction)_wrap_ComboBox_Undo, METH_O, NULL},
46649 { (char *)"ComboBox_Redo", (PyCFunction)_wrap_ComboBox_Redo, METH_O, NULL},
46650 { (char *)"ComboBox_SelectAll", (PyCFunction)_wrap_ComboBox_SelectAll, METH_O, NULL},
46651 { (char *)"ComboBox_CanCopy", (PyCFunction)_wrap_ComboBox_CanCopy, METH_O, NULL},
46652 { (char *)"ComboBox_CanCut", (PyCFunction)_wrap_ComboBox_CanCut, METH_O, NULL},
46653 { (char *)"ComboBox_CanPaste", (PyCFunction)_wrap_ComboBox_CanPaste, METH_O, NULL},
46654 { (char *)"ComboBox_CanUndo", (PyCFunction)_wrap_ComboBox_CanUndo, METH_O, NULL},
46655 { (char *)"ComboBox_CanRedo", (PyCFunction)_wrap_ComboBox_CanRedo, METH_O, NULL},
46656 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46657 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL},
46658 { (char *)"ComboBox_swiginit", ComboBox_swiginit, METH_VARARGS, NULL},
46659 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL},
46660 { (char *)"new_PreGauge", (PyCFunction)_wrap_new_PreGauge, METH_NOARGS, NULL},
46661 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46662 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46663 { (char *)"Gauge_GetRange", (PyCFunction)_wrap_Gauge_GetRange, METH_O, NULL},
46664 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46665 { (char *)"Gauge_GetValue", (PyCFunction)_wrap_Gauge_GetValue, METH_O, NULL},
0d2c9713 46666 { (char *)"Gauge_Pulse", (PyCFunction)_wrap_Gauge_Pulse, METH_O, NULL},
b850e7f3
RD
46667 { (char *)"Gauge_IsVertical", (PyCFunction)_wrap_Gauge_IsVertical, METH_O, NULL},
46668 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL},
46669 { (char *)"Gauge_GetShadowWidth", (PyCFunction)_wrap_Gauge_GetShadowWidth, METH_O, NULL},
46670 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL},
46671 { (char *)"Gauge_GetBezelFace", (PyCFunction)_wrap_Gauge_GetBezelFace, METH_O, NULL},
46672 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46673 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL},
46674 { (char *)"Gauge_swiginit", Gauge_swiginit, METH_VARARGS, NULL},
46675 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL},
46676 { (char *)"new_PreStaticBox", (PyCFunction)_wrap_new_PreStaticBox, METH_NOARGS, NULL},
46677 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46678 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46679 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL},
46680 { (char *)"StaticBox_swiginit", StaticBox_swiginit, METH_VARARGS, NULL},
46681 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL},
46682 { (char *)"new_PreStaticLine", (PyCFunction)_wrap_new_PreStaticLine, METH_NOARGS, NULL},
46683 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46684 { (char *)"StaticLine_IsVertical", (PyCFunction)_wrap_StaticLine_IsVertical, METH_O, NULL},
46685 { (char *)"StaticLine_GetDefaultSize", (PyCFunction)_wrap_StaticLine_GetDefaultSize, METH_NOARGS, NULL},
46686 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46687 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL},
46688 { (char *)"StaticLine_swiginit", StaticLine_swiginit, METH_VARARGS, NULL},
46689 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL},
46690 { (char *)"new_PreStaticText", (PyCFunction)_wrap_new_PreStaticText, METH_NOARGS, NULL},
46691 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46692 { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL},
46693 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46694 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL},
46695 { (char *)"StaticText_swiginit", StaticText_swiginit, METH_VARARGS, NULL},
46696 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
46697 { (char *)"new_PreStaticBitmap", (PyCFunction)_wrap_new_PreStaticBitmap, METH_NOARGS, NULL},
46698 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46699 { (char *)"StaticBitmap_GetBitmap", (PyCFunction)_wrap_StaticBitmap_GetBitmap, METH_O, NULL},
46700 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
46701 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
46702 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46703 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL},
46704 { (char *)"StaticBitmap_swiginit", StaticBitmap_swiginit, METH_VARARGS, NULL},
46705 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL},
46706 { (char *)"new_PreListBox", (PyCFunction)_wrap_new_PreListBox, METH_NOARGS, NULL},
46707 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46708 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
46709 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL},
46710 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL},
46711 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
46712 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46713 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL},
46714 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL},
46715 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL},
46716 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46717 { (char *)"ListBox_GetSelections", (PyCFunction)_wrap_ListBox_GetSelections, METH_O, NULL},
46718 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL},
46719 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL},
46720 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46721 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46722 { (char *)"ListBox_IsSorted", (PyCFunction)_wrap_ListBox_IsSorted, METH_O, NULL},
46723 { (char *)"ListBox_HitTest", (PyCFunction) _wrap_ListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
46724 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46725 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46726 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46727 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46728 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL},
46729 { (char *)"ListBox_swiginit", ListBox_swiginit, METH_VARARGS, NULL},
46730 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL},
46731 { (char *)"new_PreCheckListBox", (PyCFunction)_wrap_new_PreCheckListBox, METH_NOARGS, NULL},
46732 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46733 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
46734 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL},
46735 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL},
46736 { (char *)"CheckListBox_swiginit", CheckListBox_swiginit, METH_VARARGS, NULL},
46737 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL},
46738 { (char *)"delete_TextAttr", (PyCFunction)_wrap_delete_TextAttr, METH_O, NULL},
46739 { (char *)"TextAttr_Init", (PyCFunction)_wrap_TextAttr_Init, METH_O, NULL},
46740 { (char *)"TextAttr_Merge", (PyCFunction) _wrap_TextAttr_Merge, METH_VARARGS | METH_KEYWORDS, NULL},
46741 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46742 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46743 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
46744 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
46745 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL},
46746 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
46747 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
46748 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
46749 { (char *)"TextAttr_HasTextColour", (PyCFunction)_wrap_TextAttr_HasTextColour, METH_O, NULL},
46750 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction)_wrap_TextAttr_HasBackgroundColour, METH_O, NULL},
46751 { (char *)"TextAttr_HasFont", (PyCFunction)_wrap_TextAttr_HasFont, METH_O, NULL},
46752 { (char *)"TextAttr_HasAlignment", (PyCFunction)_wrap_TextAttr_HasAlignment, METH_O, NULL},
46753 { (char *)"TextAttr_HasTabs", (PyCFunction)_wrap_TextAttr_HasTabs, METH_O, NULL},
46754 { (char *)"TextAttr_HasLeftIndent", (PyCFunction)_wrap_TextAttr_HasLeftIndent, METH_O, NULL},
46755 { (char *)"TextAttr_HasRightIndent", (PyCFunction)_wrap_TextAttr_HasRightIndent, METH_O, NULL},
46756 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL},
46757 { (char *)"TextAttr_GetTextColour", (PyCFunction)_wrap_TextAttr_GetTextColour, METH_O, NULL},
46758 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction)_wrap_TextAttr_GetBackgroundColour, METH_O, NULL},
46759 { (char *)"TextAttr_GetFont", (PyCFunction)_wrap_TextAttr_GetFont, METH_O, NULL},
46760 { (char *)"TextAttr_GetAlignment", (PyCFunction)_wrap_TextAttr_GetAlignment, METH_O, NULL},
46761 { (char *)"TextAttr_GetTabs", (PyCFunction)_wrap_TextAttr_GetTabs, METH_O, NULL},
46762 { (char *)"TextAttr_GetLeftIndent", (PyCFunction)_wrap_TextAttr_GetLeftIndent, METH_O, NULL},
46763 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction)_wrap_TextAttr_GetLeftSubIndent, METH_O, NULL},
46764 { (char *)"TextAttr_GetRightIndent", (PyCFunction)_wrap_TextAttr_GetRightIndent, METH_O, NULL},
46765 { (char *)"TextAttr_GetFlags", (PyCFunction)_wrap_TextAttr_GetFlags, METH_O, NULL},
46766 { (char *)"TextAttr_IsDefault", (PyCFunction)_wrap_TextAttr_IsDefault, METH_O, NULL},
46767 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL},
46768 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL},
46769 { (char *)"TextAttr_swiginit", TextAttr_swiginit, METH_VARARGS, NULL},
46770 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46771 { (char *)"new_PreTextCtrl", (PyCFunction)_wrap_new_PreTextCtrl, METH_NOARGS, NULL},
46772 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46773 { (char *)"TextCtrl_GetValue", (PyCFunction)_wrap_TextCtrl_GetValue, METH_O, NULL},
46774 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951
RD
46775 { (char *)"TextCtrl_IsEmpty", (PyCFunction)_wrap_TextCtrl_IsEmpty, METH_O, NULL},
46776 { (char *)"TextCtrl_ChangeValue", (PyCFunction) _wrap_TextCtrl_ChangeValue, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3
RD
46777 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46778 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL},
46779 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL},
46780 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction)_wrap_TextCtrl_GetNumberOfLines, METH_O, NULL},
46781 { (char *)"TextCtrl_IsModified", (PyCFunction)_wrap_TextCtrl_IsModified, METH_O, NULL},
46782 { (char *)"TextCtrl_IsEditable", (PyCFunction)_wrap_TextCtrl_IsEditable, METH_O, NULL},
46783 { (char *)"TextCtrl_IsSingleLine", (PyCFunction)_wrap_TextCtrl_IsSingleLine, METH_O, NULL},
46784 { (char *)"TextCtrl_IsMultiLine", (PyCFunction)_wrap_TextCtrl_IsMultiLine, METH_O, NULL},
46785 { (char *)"TextCtrl_GetSelection", (PyCFunction)_wrap_TextCtrl_GetSelection, METH_O, NULL},
46786 { (char *)"TextCtrl_GetStringSelection", (PyCFunction)_wrap_TextCtrl_GetStringSelection, METH_O, NULL},
46787 { (char *)"TextCtrl_Clear", (PyCFunction)_wrap_TextCtrl_Clear, METH_O, NULL},
46788 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
46789 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
46790 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
46791 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
46792 { (char *)"TextCtrl_MarkDirty", (PyCFunction)_wrap_TextCtrl_MarkDirty, METH_O, NULL},
46793 { (char *)"TextCtrl_DiscardEdits", (PyCFunction)_wrap_TextCtrl_DiscardEdits, METH_O, NULL},
b02396e8 46794 { (char *)"TextCtrl_SetModified", (PyCFunction) _wrap_TextCtrl_SetModified, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3
RD
46795 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL},
46796 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL},
46797 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL},
46798 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL},
46799 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
46800 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
46801 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL},
46802 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction)_wrap_TextCtrl_GetDefaultStyle, METH_O, NULL},
46803 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46804 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL},
46805 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46806 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
46807 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL},
46808 { (char *)"TextCtrl_Copy", (PyCFunction)_wrap_TextCtrl_Copy, METH_O, NULL},
46809 { (char *)"TextCtrl_Cut", (PyCFunction)_wrap_TextCtrl_Cut, METH_O, NULL},
46810 { (char *)"TextCtrl_Paste", (PyCFunction)_wrap_TextCtrl_Paste, METH_O, NULL},
46811 { (char *)"TextCtrl_CanCopy", (PyCFunction)_wrap_TextCtrl_CanCopy, METH_O, NULL},
46812 { (char *)"TextCtrl_CanCut", (PyCFunction)_wrap_TextCtrl_CanCut, METH_O, NULL},
46813 { (char *)"TextCtrl_CanPaste", (PyCFunction)_wrap_TextCtrl_CanPaste, METH_O, NULL},
46814 { (char *)"TextCtrl_Undo", (PyCFunction)_wrap_TextCtrl_Undo, METH_O, NULL},
46815 { (char *)"TextCtrl_Redo", (PyCFunction)_wrap_TextCtrl_Redo, METH_O, NULL},
46816 { (char *)"TextCtrl_CanUndo", (PyCFunction)_wrap_TextCtrl_CanUndo, METH_O, NULL},
46817 { (char *)"TextCtrl_CanRedo", (PyCFunction)_wrap_TextCtrl_CanRedo, METH_O, NULL},
46818 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
46819 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_TextCtrl_SetInsertionPointEnd, METH_O, NULL},
46820 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction)_wrap_TextCtrl_GetInsertionPoint, METH_O, NULL},
46821 { (char *)"TextCtrl_GetLastPosition", (PyCFunction)_wrap_TextCtrl_GetLastPosition, METH_O, NULL},
46822 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46823 { (char *)"TextCtrl_SelectAll", (PyCFunction)_wrap_TextCtrl_SelectAll, METH_O, NULL},
46824 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
d7645bfd 46825 { (char *)"TextCtrl_MacCheckSpelling", (PyCFunction) _wrap_TextCtrl_MacCheckSpelling, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 46826 { (char *)"TextCtrl_SendTextUpdatedEvent", (PyCFunction)_wrap_TextCtrl_SendTextUpdatedEvent, METH_O, NULL},
b850e7f3
RD
46827 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL},
46828 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
46829 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46830 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL},
46831 { (char *)"TextCtrl_swiginit", TextCtrl_swiginit, METH_VARARGS, NULL},
46832 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46833 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction)_wrap_TextUrlEvent_GetMouseEvent, METH_O, NULL},
46834 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction)_wrap_TextUrlEvent_GetURLStart, METH_O, NULL},
46835 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction)_wrap_TextUrlEvent_GetURLEnd, METH_O, NULL},
46836 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL},
46837 { (char *)"TextUrlEvent_swiginit", TextUrlEvent_swiginit, METH_VARARGS, NULL},
46838 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL},
46839 { (char *)"new_PreScrollBar", (PyCFunction)_wrap_new_PreScrollBar, METH_NOARGS, NULL},
46840 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46841 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction)_wrap_ScrollBar_GetThumbPosition, METH_O, NULL},
46842 { (char *)"ScrollBar_GetThumbSize", (PyCFunction)_wrap_ScrollBar_GetThumbSize, METH_O, NULL},
46843 { (char *)"ScrollBar_GetPageSize", (PyCFunction)_wrap_ScrollBar_GetPageSize, METH_O, NULL},
46844 { (char *)"ScrollBar_GetRange", (PyCFunction)_wrap_ScrollBar_GetRange, METH_O, NULL},
46845 { (char *)"ScrollBar_IsVertical", (PyCFunction)_wrap_ScrollBar_IsVertical, METH_O, NULL},
46846 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46847 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46848 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL},
46849 { (char *)"ScrollBar_swiginit", ScrollBar_swiginit, METH_VARARGS, NULL},
46850 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL},
46851 { (char *)"new_PreSpinButton", (PyCFunction)_wrap_new_PreSpinButton, METH_NOARGS, NULL},
46852 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46853 { (char *)"SpinButton_GetValue", (PyCFunction)_wrap_SpinButton_GetValue, METH_O, NULL},
46854 { (char *)"SpinButton_GetMin", (PyCFunction)_wrap_SpinButton_GetMin, METH_O, NULL},
46855 { (char *)"SpinButton_GetMax", (PyCFunction)_wrap_SpinButton_GetMax, METH_O, NULL},
46856 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46857 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
46858 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
46859 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46860 { (char *)"SpinButton_IsVertical", (PyCFunction)_wrap_SpinButton_IsVertical, METH_O, NULL},
46861 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46862 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL},
46863 { (char *)"SpinButton_swiginit", SpinButton_swiginit, METH_VARARGS, NULL},
46864 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46865 { (char *)"new_PreSpinCtrl", (PyCFunction)_wrap_new_PreSpinCtrl, METH_NOARGS, NULL},
46866 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46867 { (char *)"SpinCtrl_GetValue", (PyCFunction)_wrap_SpinCtrl_GetValue, METH_O, NULL},
46868 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46869 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL},
46870 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46871 { (char *)"SpinCtrl_GetMin", (PyCFunction)_wrap_SpinCtrl_GetMin, METH_O, NULL},
46872 { (char *)"SpinCtrl_GetMax", (PyCFunction)_wrap_SpinCtrl_GetMax, METH_O, NULL},
46873 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46874 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46875 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL},
46876 { (char *)"SpinCtrl_swiginit", SpinCtrl_swiginit, METH_VARARGS, NULL},
46877 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46878 { (char *)"SpinEvent_GetPosition", (PyCFunction)_wrap_SpinEvent_GetPosition, METH_O, NULL},
46879 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46880 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL},
46881 { (char *)"SpinEvent_swiginit", SpinEvent_swiginit, METH_VARARGS, NULL},
46882 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL},
46883 { (char *)"new_PreRadioBox", (PyCFunction)_wrap_new_PreRadioBox, METH_NOARGS, NULL},
46884 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46885 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46886 { (char *)"RadioBox_GetSelection", (PyCFunction)_wrap_RadioBox_GetSelection, METH_O, NULL},
46887 { (char *)"RadioBox_GetStringSelection", (PyCFunction)_wrap_RadioBox_GetStringSelection, METH_O, NULL},
46888 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46889 { (char *)"RadioBox_GetCount", (PyCFunction)_wrap_RadioBox_GetCount, METH_O, NULL},
46890 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL},
46891 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
46892 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
46893 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL},
46894 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL},
46895 { (char *)"RadioBox_IsItemEnabled", (PyCFunction) _wrap_RadioBox_IsItemEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
46896 { (char *)"RadioBox_IsItemShown", (PyCFunction) _wrap_RadioBox_IsItemShown, METH_VARARGS | METH_KEYWORDS, NULL},
46897 { (char *)"RadioBox_GetColumnCount", (PyCFunction)_wrap_RadioBox_GetColumnCount, METH_O, NULL},
46898 { (char *)"RadioBox_GetRowCount", (PyCFunction)_wrap_RadioBox_GetRowCount, METH_O, NULL},
46899 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
46900 { (char *)"RadioBox_SetItemToolTip", (PyCFunction) _wrap_RadioBox_SetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
46901 { (char *)"RadioBox_GetItemToolTip", (PyCFunction) _wrap_RadioBox_GetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
46902 { (char *)"RadioBox_SetItemHelpText", (PyCFunction) _wrap_RadioBox_SetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
46903 { (char *)"RadioBox_GetItemHelpText", (PyCFunction) _wrap_RadioBox_GetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
46904 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46905 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL},
46906 { (char *)"RadioBox_swiginit", RadioBox_swiginit, METH_VARARGS, NULL},
46907 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL},
46908 { (char *)"new_PreRadioButton", (PyCFunction)_wrap_new_PreRadioButton, METH_NOARGS, NULL},
46909 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46910 { (char *)"RadioButton_GetValue", (PyCFunction)_wrap_RadioButton_GetValue, METH_O, NULL},
46911 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46912 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46913 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL},
46914 { (char *)"RadioButton_swiginit", RadioButton_swiginit, METH_VARARGS, NULL},
46915 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL},
46916 { (char *)"new_PreSlider", (PyCFunction)_wrap_new_PreSlider, METH_NOARGS, NULL},
46917 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46918 { (char *)"Slider_GetValue", (PyCFunction)_wrap_Slider_GetValue, METH_O, NULL},
46919 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46920 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46921 { (char *)"Slider_GetMin", (PyCFunction)_wrap_Slider_GetMin, METH_O, NULL},
46922 { (char *)"Slider_GetMax", (PyCFunction)_wrap_Slider_GetMax, METH_O, NULL},
46923 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
46924 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
46925 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL},
46926 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
46927 { (char *)"Slider_GetLineSize", (PyCFunction)_wrap_Slider_GetLineSize, METH_O, NULL},
46928 { (char *)"Slider_GetPageSize", (PyCFunction)_wrap_Slider_GetPageSize, METH_O, NULL},
46929 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL},
46930 { (char *)"Slider_GetThumbLength", (PyCFunction)_wrap_Slider_GetThumbLength, METH_O, NULL},
46931 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL},
46932 { (char *)"Slider_GetTickFreq", (PyCFunction)_wrap_Slider_GetTickFreq, METH_O, NULL},
46933 { (char *)"Slider_ClearTicks", (PyCFunction)_wrap_Slider_ClearTicks, METH_O, NULL},
46934 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL},
46935 { (char *)"Slider_ClearSel", (PyCFunction)_wrap_Slider_ClearSel, METH_O, NULL},
46936 { (char *)"Slider_GetSelEnd", (PyCFunction)_wrap_Slider_GetSelEnd, METH_O, NULL},
46937 { (char *)"Slider_GetSelStart", (PyCFunction)_wrap_Slider_GetSelStart, METH_O, NULL},
46938 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46939 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46940 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL},
46941 { (char *)"Slider_swiginit", Slider_swiginit, METH_VARARGS, NULL},
46942 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL},
46943 { (char *)"new_PreToggleButton", (PyCFunction)_wrap_new_PreToggleButton, METH_NOARGS, NULL},
46944 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46945 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46946 { (char *)"ToggleButton_GetValue", (PyCFunction)_wrap_ToggleButton_GetValue, METH_O, NULL},
46947 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46948 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL},
46949 { (char *)"ToggleButton_swiginit", ToggleButton_swiginit, METH_VARARGS, NULL},
46950 { (char *)"BookCtrlBase_GetPageCount", (PyCFunction)_wrap_BookCtrlBase_GetPageCount, METH_O, NULL},
46951 { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL},
46952 { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetCurrentPage, METH_O, NULL},
46953 { (char *)"BookCtrlBase_GetSelection", (PyCFunction)_wrap_BookCtrlBase_GetSelection, METH_O, NULL},
46954 { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
46955 { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
46956 { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46957 { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46958 { (char *)"BookCtrlBase_GetImageList", (PyCFunction)_wrap_BookCtrlBase_GetImageList, METH_O, NULL},
46959 { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
46960 { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
46961 { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
46962 { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL},
46963 { (char *)"BookCtrlBase_GetInternalBorder", (PyCFunction)_wrap_BookCtrlBase_GetInternalBorder, METH_O, NULL},
46964 { (char *)"BookCtrlBase_SetInternalBorder", (PyCFunction) _wrap_BookCtrlBase_SetInternalBorder, METH_VARARGS | METH_KEYWORDS, NULL},
46965 { (char *)"BookCtrlBase_IsVertical", (PyCFunction)_wrap_BookCtrlBase_IsVertical, METH_O, NULL},
46966 { (char *)"BookCtrlBase_SetControlMargin", (PyCFunction) _wrap_BookCtrlBase_SetControlMargin, METH_VARARGS | METH_KEYWORDS, NULL},
e9d6f3a4 46967 { (char *)"BookCtrlBase_GetControlMargin", (PyCFunction)_wrap_BookCtrlBase_GetControlMargin, METH_O, NULL},
1bd55598
RD
46968 { (char *)"BookCtrlBase_SetFitToCurrentPage", (PyCFunction) _wrap_BookCtrlBase_SetFitToCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL},
46969 { (char *)"BookCtrlBase_GetFitToCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetFitToCurrentPage, METH_O, NULL},
e9d6f3a4 46970 { (char *)"BookCtrlBase_GetControlSizer", (PyCFunction)_wrap_BookCtrlBase_GetControlSizer, METH_O, NULL},
1bd55598
RD
46971 { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL},
46972 { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL},
46973 { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction)_wrap_BookCtrlBase_DeleteAllPages, METH_O, NULL},
46974 { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL},
46975 { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL},
46976 { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 46977 { (char *)"BookCtrlBase_ChangeSelection", (PyCFunction) _wrap_BookCtrlBase_ChangeSelection, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 46978 { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c 46979 { (char *)"BookCtrlBase_HitTest", (PyCFunction) _wrap_BookCtrlBase_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
46980 { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46981 { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL},
46982 { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46983 { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetSelection, METH_O, NULL},
46984 { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46985 { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetOldSelection, METH_O, NULL},
46986 { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46987 { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL},
46988 { (char *)"BookCtrlBaseEvent_swiginit", BookCtrlBaseEvent_swiginit, METH_VARARGS, NULL},
46989 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL},
46990 { (char *)"new_PreNotebook", (PyCFunction)_wrap_new_PreNotebook, METH_NOARGS, NULL},
46991 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46992 { (char *)"Notebook_GetRowCount", (PyCFunction)_wrap_Notebook_GetRowCount, METH_O, NULL},
46993 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL},
46994 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
46995 { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction)_wrap_Notebook_GetThemeBackgroundColour, METH_O, NULL},
46996 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951
RD
46997 { (char *)"Notebook_SendPageChangingEvent", (PyCFunction) _wrap_Notebook_SendPageChangingEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46998 { (char *)"Notebook_SendPageChangedEvent", (PyCFunction) _wrap_Notebook_SendPageChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
46999 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL},
47000 { (char *)"Notebook_swiginit", Notebook_swiginit, METH_VARARGS, NULL},
47001 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47002 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL},
47003 { (char *)"NotebookEvent_swiginit", NotebookEvent_swiginit, METH_VARARGS, NULL},
47004 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL},
47005 { (char *)"new_PreListbook", (PyCFunction)_wrap_new_PreListbook, METH_NOARGS, NULL},
47006 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47007 { (char *)"Listbook_GetListView", (PyCFunction)_wrap_Listbook_GetListView, METH_O, NULL},
47008 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL},
47009 { (char *)"Listbook_swiginit", Listbook_swiginit, METH_VARARGS, NULL},
47010 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47011 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL},
47012 { (char *)"ListbookEvent_swiginit", ListbookEvent_swiginit, METH_VARARGS, NULL},
47013 { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL},
47014 { (char *)"new_PreChoicebook", (PyCFunction)_wrap_new_PreChoicebook, METH_NOARGS, NULL},
47015 { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47016 { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction)_wrap_Choicebook_GetChoiceCtrl, METH_O, NULL},
47017 { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL},
47018 { (char *)"Choicebook_swiginit", Choicebook_swiginit, METH_VARARGS, NULL},
47019 { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47020 { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL},
47021 { (char *)"ChoicebookEvent_swiginit", ChoicebookEvent_swiginit, METH_VARARGS, NULL},
47022 { (char *)"new_Treebook", (PyCFunction) _wrap_new_Treebook, METH_VARARGS | METH_KEYWORDS, NULL},
47023 { (char *)"new_PreTreebook", (PyCFunction)_wrap_new_PreTreebook, METH_NOARGS, NULL},
47024 { (char *)"Treebook_Create", (PyCFunction) _wrap_Treebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47025 { (char *)"Treebook_InsertSubPage", (PyCFunction) _wrap_Treebook_InsertSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
47026 { (char *)"Treebook_AddSubPage", (PyCFunction) _wrap_Treebook_AddSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
47027 { (char *)"Treebook_IsNodeExpanded", (PyCFunction) _wrap_Treebook_IsNodeExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
47028 { (char *)"Treebook_ExpandNode", (PyCFunction) _wrap_Treebook_ExpandNode, METH_VARARGS | METH_KEYWORDS, NULL},
47029 { (char *)"Treebook_CollapseNode", (PyCFunction) _wrap_Treebook_CollapseNode, METH_VARARGS | METH_KEYWORDS, NULL},
47030 { (char *)"Treebook_GetPageParent", (PyCFunction) _wrap_Treebook_GetPageParent, METH_VARARGS | METH_KEYWORDS, NULL},
47031 { (char *)"Treebook_GetTreeCtrl", (PyCFunction)_wrap_Treebook_GetTreeCtrl, METH_O, NULL},
47032 { (char *)"Treebook_swigregister", Treebook_swigregister, METH_VARARGS, NULL},
47033 { (char *)"Treebook_swiginit", Treebook_swiginit, METH_VARARGS, NULL},
47034 { (char *)"new_TreebookEvent", (PyCFunction) _wrap_new_TreebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47035 { (char *)"TreebookEvent_swigregister", TreebookEvent_swigregister, METH_VARARGS, NULL},
47036 { (char *)"TreebookEvent_swiginit", TreebookEvent_swiginit, METH_VARARGS, NULL},
47037 { (char *)"new_Toolbook", (PyCFunction) _wrap_new_Toolbook, METH_VARARGS | METH_KEYWORDS, NULL},
47038 { (char *)"new_PreToolbook", (PyCFunction)_wrap_new_PreToolbook, METH_NOARGS, NULL},
47039 { (char *)"Toolbook_Create", (PyCFunction) _wrap_Toolbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47040 { (char *)"Toolbook_GetToolBar", (PyCFunction)_wrap_Toolbook_GetToolBar, METH_O, NULL},
47041 { (char *)"Toolbook_Realize", (PyCFunction)_wrap_Toolbook_Realize, METH_O, NULL},
47042 { (char *)"Toolbook_swigregister", Toolbook_swigregister, METH_VARARGS, NULL},
47043 { (char *)"Toolbook_swiginit", Toolbook_swiginit, METH_VARARGS, NULL},
47044 { (char *)"new_ToolbookEvent", (PyCFunction) _wrap_new_ToolbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47045 { (char *)"ToolbookEvent_swigregister", ToolbookEvent_swigregister, METH_VARARGS, NULL},
47046 { (char *)"ToolbookEvent_swiginit", ToolbookEvent_swiginit, METH_VARARGS, NULL},
47047 { (char *)"ToolBarToolBase_GetId", (PyCFunction)_wrap_ToolBarToolBase_GetId, METH_O, NULL},
47048 { (char *)"ToolBarToolBase_GetControl", (PyCFunction)_wrap_ToolBarToolBase_GetControl, METH_O, NULL},
47049 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction)_wrap_ToolBarToolBase_GetToolBar, METH_O, NULL},
47050 { (char *)"ToolBarToolBase_IsButton", (PyCFunction)_wrap_ToolBarToolBase_IsButton, METH_O, NULL},
47051 { (char *)"ToolBarToolBase_IsControl", (PyCFunction)_wrap_ToolBarToolBase_IsControl, METH_O, NULL},
47052 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction)_wrap_ToolBarToolBase_IsSeparator, METH_O, NULL},
47053 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction)_wrap_ToolBarToolBase_GetStyle, METH_O, NULL},
47054 { (char *)"ToolBarToolBase_GetKind", (PyCFunction)_wrap_ToolBarToolBase_GetKind, METH_O, NULL},
47055 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction)_wrap_ToolBarToolBase_IsEnabled, METH_O, NULL},
47056 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction)_wrap_ToolBarToolBase_IsToggled, METH_O, NULL},
47057 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction)_wrap_ToolBarToolBase_CanBeToggled, METH_O, NULL},
47058 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetNormalBitmap, METH_O, NULL},
47059 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetDisabledBitmap, METH_O, NULL},
47060 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetBitmap, METH_O, NULL},
47061 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction)_wrap_ToolBarToolBase_GetLabel, METH_O, NULL},
47062 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction)_wrap_ToolBarToolBase_GetShortHelp, METH_O, NULL},
47063 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction)_wrap_ToolBarToolBase_GetLongHelp, METH_O, NULL},
47064 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
47065 { (char *)"ToolBarToolBase_Toggle", (PyCFunction)_wrap_ToolBarToolBase_Toggle, METH_O, NULL},
47066 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
47067 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47068 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47069 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47070 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47071 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47072 { (char *)"ToolBarToolBase_Detach", (PyCFunction)_wrap_ToolBarToolBase_Detach, METH_O, NULL},
47073 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL},
47074 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction)_wrap_ToolBarToolBase_GetClientData, METH_O, NULL},
47075 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
47076 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL},
47077 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL},
47078 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL},
47079 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
47080 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
47081 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL},
47082 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL},
47083 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL},
47084 { (char *)"ToolBarBase_AddSeparator", (PyCFunction)_wrap_ToolBarBase_AddSeparator, METH_O, NULL},
47085 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL},
47086 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL},
47087 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL},
47088 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL},
47089 { (char *)"ToolBarBase_ClearTools", (PyCFunction)_wrap_ToolBarBase_ClearTools, METH_O, NULL},
47090 { (char *)"ToolBarBase_Realize", (PyCFunction)_wrap_ToolBarBase_Realize, METH_O, NULL},
47091 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL},
47092 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL},
47093 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
47094 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
47095 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
47096 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL},
47097 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL},
47098 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
47099 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47100 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47101 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47102 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47103 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL},
47104 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
47105 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL},
47106 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL},
47107 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction)_wrap_ToolBarBase_GetToolMargins, METH_O, NULL},
47108 { (char *)"ToolBarBase_GetMargins", (PyCFunction)_wrap_ToolBarBase_GetMargins, METH_O, NULL},
47109 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction)_wrap_ToolBarBase_GetToolPacking, METH_O, NULL},
47110 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction)_wrap_ToolBarBase_GetToolSeparation, METH_O, NULL},
47111 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL},
47112 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL},
47113 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction)_wrap_ToolBarBase_GetMaxRows, METH_O, NULL},
47114 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction)_wrap_ToolBarBase_GetMaxCols, METH_O, NULL},
47115 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL},
47116 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction)_wrap_ToolBarBase_GetToolBitmapSize, METH_O, NULL},
47117 { (char *)"ToolBarBase_GetToolSize", (PyCFunction)_wrap_ToolBarBase_GetToolSize, METH_O, NULL},
47118 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47119 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL},
47120 { (char *)"ToolBarBase_IsVertical", (PyCFunction)_wrap_ToolBarBase_IsVertical, METH_O, NULL},
47121 { (char *)"ToolBarBase_GetToolsCount", (PyCFunction)_wrap_ToolBarBase_GetToolsCount, METH_O, NULL},
47122 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL},
47123 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL},
47124 { (char *)"new_PreToolBar", (PyCFunction)_wrap_new_PreToolBar, METH_NOARGS, NULL},
47125 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
47126 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47127 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL},
47128 { (char *)"ToolBar_swiginit", ToolBar_swiginit, METH_VARARGS, NULL},
47129 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL},
47130 { (char *)"delete_ListItemAttr", (PyCFunction)_wrap_delete_ListItemAttr, METH_O, NULL},
47131 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47132 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47133 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
47134 { (char *)"ListItemAttr_HasTextColour", (PyCFunction)_wrap_ListItemAttr_HasTextColour, METH_O, NULL},
47135 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction)_wrap_ListItemAttr_HasBackgroundColour, METH_O, NULL},
47136 { (char *)"ListItemAttr_HasFont", (PyCFunction)_wrap_ListItemAttr_HasFont, METH_O, NULL},
47137 { (char *)"ListItemAttr_GetTextColour", (PyCFunction)_wrap_ListItemAttr_GetTextColour, METH_O, NULL},
47138 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction)_wrap_ListItemAttr_GetBackgroundColour, METH_O, NULL},
47139 { (char *)"ListItemAttr_GetFont", (PyCFunction)_wrap_ListItemAttr_GetFont, METH_O, NULL},
47140 { (char *)"ListItemAttr_AssignFrom", (PyCFunction) _wrap_ListItemAttr_AssignFrom, METH_VARARGS | METH_KEYWORDS, NULL},
47141 { (char *)"ListItemAttr_Destroy", (PyCFunction)_wrap_ListItemAttr_Destroy, METH_O, NULL},
47142 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL},
47143 { (char *)"ListItemAttr_swiginit", ListItemAttr_swiginit, METH_VARARGS, NULL},
47144 { (char *)"new_ListItem", (PyCFunction)_wrap_new_ListItem, METH_NOARGS, NULL},
47145 { (char *)"delete_ListItem", (PyCFunction)_wrap_delete_ListItem, METH_O, NULL},
47146 { (char *)"ListItem_Clear", (PyCFunction)_wrap_ListItem_Clear, METH_O, NULL},
47147 { (char *)"ListItem_ClearAttributes", (PyCFunction)_wrap_ListItem_ClearAttributes, METH_O, NULL},
47148 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
47149 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
47150 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
47151 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
47152 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL},
47153 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
47154 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL},
47155 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
47156 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
47157 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL},
47158 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47159 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47160 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
47161 { (char *)"ListItem_GetMask", (PyCFunction)_wrap_ListItem_GetMask, METH_O, NULL},
47162 { (char *)"ListItem_GetId", (PyCFunction)_wrap_ListItem_GetId, METH_O, NULL},
47163 { (char *)"ListItem_GetColumn", (PyCFunction)_wrap_ListItem_GetColumn, METH_O, NULL},
47164 { (char *)"ListItem_GetState", (PyCFunction)_wrap_ListItem_GetState, METH_O, NULL},
47165 { (char *)"ListItem_GetText", (PyCFunction)_wrap_ListItem_GetText, METH_O, NULL},
47166 { (char *)"ListItem_GetImage", (PyCFunction)_wrap_ListItem_GetImage, METH_O, NULL},
47167 { (char *)"ListItem_GetData", (PyCFunction)_wrap_ListItem_GetData, METH_O, NULL},
47168 { (char *)"ListItem_GetWidth", (PyCFunction)_wrap_ListItem_GetWidth, METH_O, NULL},
47169 { (char *)"ListItem_GetAlign", (PyCFunction)_wrap_ListItem_GetAlign, METH_O, NULL},
47170 { (char *)"ListItem_GetAttributes", (PyCFunction)_wrap_ListItem_GetAttributes, METH_O, NULL},
47171 { (char *)"ListItem_HasAttributes", (PyCFunction)_wrap_ListItem_HasAttributes, METH_O, NULL},
47172 { (char *)"ListItem_GetTextColour", (PyCFunction)_wrap_ListItem_GetTextColour, METH_O, NULL},
47173 { (char *)"ListItem_GetBackgroundColour", (PyCFunction)_wrap_ListItem_GetBackgroundColour, METH_O, NULL},
47174 { (char *)"ListItem_GetFont", (PyCFunction)_wrap_ListItem_GetFont, METH_O, NULL},
47175 { (char *)"ListItem_m_mask_set", _wrap_ListItem_m_mask_set, METH_VARARGS, NULL},
47176 { (char *)"ListItem_m_mask_get", (PyCFunction)_wrap_ListItem_m_mask_get, METH_O, NULL},
47177 { (char *)"ListItem_m_itemId_set", _wrap_ListItem_m_itemId_set, METH_VARARGS, NULL},
47178 { (char *)"ListItem_m_itemId_get", (PyCFunction)_wrap_ListItem_m_itemId_get, METH_O, NULL},
47179 { (char *)"ListItem_m_col_set", _wrap_ListItem_m_col_set, METH_VARARGS, NULL},
47180 { (char *)"ListItem_m_col_get", (PyCFunction)_wrap_ListItem_m_col_get, METH_O, NULL},
47181 { (char *)"ListItem_m_state_set", _wrap_ListItem_m_state_set, METH_VARARGS, NULL},
47182 { (char *)"ListItem_m_state_get", (PyCFunction)_wrap_ListItem_m_state_get, METH_O, NULL},
47183 { (char *)"ListItem_m_stateMask_set", _wrap_ListItem_m_stateMask_set, METH_VARARGS, NULL},
47184 { (char *)"ListItem_m_stateMask_get", (PyCFunction)_wrap_ListItem_m_stateMask_get, METH_O, NULL},
47185 { (char *)"ListItem_m_text_set", _wrap_ListItem_m_text_set, METH_VARARGS, NULL},
47186 { (char *)"ListItem_m_text_get", (PyCFunction)_wrap_ListItem_m_text_get, METH_O, NULL},
47187 { (char *)"ListItem_m_image_set", _wrap_ListItem_m_image_set, METH_VARARGS, NULL},
47188 { (char *)"ListItem_m_image_get", (PyCFunction)_wrap_ListItem_m_image_get, METH_O, NULL},
47189 { (char *)"ListItem_m_data_set", _wrap_ListItem_m_data_set, METH_VARARGS, NULL},
47190 { (char *)"ListItem_m_data_get", (PyCFunction)_wrap_ListItem_m_data_get, METH_O, NULL},
47191 { (char *)"ListItem_m_format_set", _wrap_ListItem_m_format_set, METH_VARARGS, NULL},
47192 { (char *)"ListItem_m_format_get", (PyCFunction)_wrap_ListItem_m_format_get, METH_O, NULL},
47193 { (char *)"ListItem_m_width_set", _wrap_ListItem_m_width_set, METH_VARARGS, NULL},
47194 { (char *)"ListItem_m_width_get", (PyCFunction)_wrap_ListItem_m_width_get, METH_O, NULL},
47195 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL},
47196 { (char *)"ListItem_swiginit", ListItem_swiginit, METH_VARARGS, NULL},
47197 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47198 { (char *)"ListEvent_m_code_set", _wrap_ListEvent_m_code_set, METH_VARARGS, NULL},
47199 { (char *)"ListEvent_m_code_get", (PyCFunction)_wrap_ListEvent_m_code_get, METH_O, NULL},
47200 { (char *)"ListEvent_m_oldItemIndex_set", _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS, NULL},
47201 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction)_wrap_ListEvent_m_oldItemIndex_get, METH_O, NULL},
47202 { (char *)"ListEvent_m_itemIndex_set", _wrap_ListEvent_m_itemIndex_set, METH_VARARGS, NULL},
47203 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction)_wrap_ListEvent_m_itemIndex_get, METH_O, NULL},
47204 { (char *)"ListEvent_m_col_set", _wrap_ListEvent_m_col_set, METH_VARARGS, NULL},
47205 { (char *)"ListEvent_m_col_get", (PyCFunction)_wrap_ListEvent_m_col_get, METH_O, NULL},
47206 { (char *)"ListEvent_m_pointDrag_set", _wrap_ListEvent_m_pointDrag_set, METH_VARARGS, NULL},
47207 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction)_wrap_ListEvent_m_pointDrag_get, METH_O, NULL},
47208 { (char *)"ListEvent_m_item_get", (PyCFunction)_wrap_ListEvent_m_item_get, METH_O, NULL},
47209 { (char *)"ListEvent_GetKeyCode", (PyCFunction)_wrap_ListEvent_GetKeyCode, METH_O, NULL},
47210 { (char *)"ListEvent_GetIndex", (PyCFunction)_wrap_ListEvent_GetIndex, METH_O, NULL},
47211 { (char *)"ListEvent_GetColumn", (PyCFunction)_wrap_ListEvent_GetColumn, METH_O, NULL},
47212 { (char *)"ListEvent_GetPoint", (PyCFunction)_wrap_ListEvent_GetPoint, METH_O, NULL},
47213 { (char *)"ListEvent_GetLabel", (PyCFunction)_wrap_ListEvent_GetLabel, METH_O, NULL},
47214 { (char *)"ListEvent_GetText", (PyCFunction)_wrap_ListEvent_GetText, METH_O, NULL},
47215 { (char *)"ListEvent_GetImage", (PyCFunction)_wrap_ListEvent_GetImage, METH_O, NULL},
47216 { (char *)"ListEvent_GetData", (PyCFunction)_wrap_ListEvent_GetData, METH_O, NULL},
47217 { (char *)"ListEvent_GetMask", (PyCFunction)_wrap_ListEvent_GetMask, METH_O, NULL},
47218 { (char *)"ListEvent_GetItem", (PyCFunction)_wrap_ListEvent_GetItem, METH_O, NULL},
47219 { (char *)"ListEvent_GetCacheFrom", (PyCFunction)_wrap_ListEvent_GetCacheFrom, METH_O, NULL},
47220 { (char *)"ListEvent_GetCacheTo", (PyCFunction)_wrap_ListEvent_GetCacheTo, METH_O, NULL},
47221 { (char *)"ListEvent_IsEditCancelled", (PyCFunction)_wrap_ListEvent_IsEditCancelled, METH_O, NULL},
47222 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
47223 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL},
47224 { (char *)"ListEvent_swiginit", ListEvent_swiginit, METH_VARARGS, NULL},
47225 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47226 { (char *)"new_PreListCtrl", (PyCFunction)_wrap_new_PreListCtrl, METH_NOARGS, NULL},
47227 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47228 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
47229 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
47230 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
47231 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
47232 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
47233 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction)_wrap_ListCtrl_GetCountPerPage, METH_O, NULL},
47234 { (char *)"ListCtrl_GetViewRect", (PyCFunction)_wrap_ListCtrl_GetViewRect, METH_O, NULL},
47235 { (char *)"ListCtrl_GetEditControl", (PyCFunction)_wrap_ListCtrl_GetEditControl, METH_O, NULL},
47236 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL},
47237 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
47238 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
47239 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
47240 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
47241 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
47242 { (char *)"ListCtrl_SetItemColumnImage", (PyCFunction) _wrap_ListCtrl_SetItemColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
47243 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
47244 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
47245 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47246 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47247 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47248 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL},
47249 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47250 { (char *)"ListCtrl_GetItemCount", (PyCFunction)_wrap_ListCtrl_GetItemCount, METH_O, NULL},
47251 { (char *)"ListCtrl_GetColumnCount", (PyCFunction)_wrap_ListCtrl_GetColumnCount, METH_O, NULL},
47252 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction)_wrap_ListCtrl_GetItemSpacing, METH_O, NULL},
47253 { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
47254 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction)_wrap_ListCtrl_GetSelectedItemCount, METH_O, NULL},
47255 { (char *)"ListCtrl_GetTextColour", (PyCFunction)_wrap_ListCtrl_GetTextColour, METH_O, NULL},
47256 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47257 { (char *)"ListCtrl_GetTopItem", (PyCFunction)_wrap_ListCtrl_GetTopItem, METH_O, NULL},
47258 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL},
47259 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
47260 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47261 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47262 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47263 { (char *)"ListCtrl_InReportView", (PyCFunction)_wrap_ListCtrl_InReportView, METH_O, NULL},
47264 { (char *)"ListCtrl_IsVirtual", (PyCFunction)_wrap_ListCtrl_IsVirtual, METH_O, NULL},
47265 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL},
47266 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL},
47267 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL},
47268 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL},
47269 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction)_wrap_ListCtrl_DeleteAllItems, METH_O, NULL},
47270 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL},
47271 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction)_wrap_ListCtrl_DeleteAllColumns, METH_O, NULL},
47272 { (char *)"ListCtrl_ClearAll", (PyCFunction)_wrap_ListCtrl_ClearAll, METH_O, NULL},
47273 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47274 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47275 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL},
47276 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47277 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL},
47278 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c 47279 { (char *)"ListCtrl_HitTestSubItem", (PyCFunction) _wrap_ListCtrl_HitTestSubItem, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
47280 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
47281 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
47282 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL},
47283 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
47284 { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL},
47285 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL},
47286 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL},
47287 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL},
47288 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47289 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47290 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47291 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47292 { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
47293 { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
47294 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL},
47295 { (char *)"ListCtrl_GetMainWindow", (PyCFunction)_wrap_ListCtrl_GetMainWindow, METH_O, NULL},
47296 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47297 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL},
47298 { (char *)"ListCtrl_swiginit", ListCtrl_swiginit, METH_VARARGS, NULL},
47299 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL},
47300 { (char *)"new_PreListView", (PyCFunction)_wrap_new_PreListView, METH_NOARGS, NULL},
47301 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47302 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL},
47303 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL},
47304 { (char *)"ListView_GetFocusedItem", (PyCFunction)_wrap_ListView_GetFocusedItem, METH_O, NULL},
47305 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL},
47306 { (char *)"ListView_GetFirstSelected", (PyCFunction)_wrap_ListView_GetFirstSelected, METH_O, NULL},
47307 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
47308 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
47309 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
47310 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL},
47311 { (char *)"ListView_swiginit", ListView_swiginit, METH_VARARGS, NULL},
47312 { (char *)"new_TreeItemId", (PyCFunction)_wrap_new_TreeItemId, METH_NOARGS, NULL},
47313 { (char *)"delete_TreeItemId", (PyCFunction)_wrap_delete_TreeItemId, METH_O, NULL},
47314 { (char *)"TreeItemId_IsOk", (PyCFunction)_wrap_TreeItemId_IsOk, METH_O, NULL},
47315 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
47316 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
47317 { (char *)"TreeItemId_m_pItem_set", _wrap_TreeItemId_m_pItem_set, METH_VARARGS, NULL},
47318 { (char *)"TreeItemId_m_pItem_get", (PyCFunction)_wrap_TreeItemId_m_pItem_get, METH_O, NULL},
47319 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL},
47320 { (char *)"TreeItemId_swiginit", TreeItemId_swiginit, METH_VARARGS, NULL},
47321 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47322 { (char *)"delete_TreeItemData", (PyCFunction)_wrap_delete_TreeItemData, METH_O, NULL},
47323 { (char *)"TreeItemData_GetData", (PyCFunction)_wrap_TreeItemData_GetData, METH_O, NULL},
47324 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
47325 { (char *)"TreeItemData_GetId", (PyCFunction)_wrap_TreeItemData_GetId, METH_O, NULL},
47326 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
47327 { (char *)"TreeItemData_Destroy", (PyCFunction)_wrap_TreeItemData_Destroy, METH_O, NULL},
47328 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL},
47329 { (char *)"TreeItemData_swiginit", TreeItemData_swiginit, METH_VARARGS, NULL},
b02396e8 47330 { (char *)"new_TreeEvent", _wrap_new_TreeEvent, METH_VARARGS, NULL},
1bd55598
RD
47331 { (char *)"TreeEvent_GetItem", (PyCFunction)_wrap_TreeEvent_GetItem, METH_O, NULL},
47332 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
47333 { (char *)"TreeEvent_GetOldItem", (PyCFunction)_wrap_TreeEvent_GetOldItem, METH_O, NULL},
47334 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL},
47335 { (char *)"TreeEvent_GetPoint", (PyCFunction)_wrap_TreeEvent_GetPoint, METH_O, NULL},
47336 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL},
47337 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction)_wrap_TreeEvent_GetKeyEvent, METH_O, NULL},
47338 { (char *)"TreeEvent_GetKeyCode", (PyCFunction)_wrap_TreeEvent_GetKeyCode, METH_O, NULL},
47339 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47340 { (char *)"TreeEvent_GetLabel", (PyCFunction)_wrap_TreeEvent_GetLabel, METH_O, NULL},
47341 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47342 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction)_wrap_TreeEvent_IsEditCancelled, METH_O, NULL},
47343 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
47344 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
47345 { (char *)"TreeEvent_GetToolTip", (PyCFunction)_wrap_TreeEvent_GetToolTip, METH_O, NULL},
47346 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL},
47347 { (char *)"TreeEvent_swiginit", TreeEvent_swiginit, METH_VARARGS, NULL},
47348 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47349 { (char *)"new_PreTreeCtrl", (PyCFunction)_wrap_new_PreTreeCtrl, METH_NOARGS, NULL},
47350 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47351 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
47352 { (char *)"TreeCtrl_GetCount", (PyCFunction)_wrap_TreeCtrl_GetCount, METH_O, NULL},
47353 { (char *)"TreeCtrl_GetIndent", (PyCFunction)_wrap_TreeCtrl_GetIndent, METH_O, NULL},
47354 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL},
47355 { (char *)"TreeCtrl_GetSpacing", (PyCFunction)_wrap_TreeCtrl_GetSpacing, METH_O, NULL},
47356 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
47357 { (char *)"TreeCtrl_GetImageList", (PyCFunction)_wrap_TreeCtrl_GetImageList, METH_O, NULL},
47358 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction)_wrap_TreeCtrl_GetStateImageList, METH_O, NULL},
47359 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47360 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47361 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47362 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47363 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
47364 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
47365 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47366 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
47367 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47368 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47369 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
47370 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
47371 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
47372 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47373 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
47374 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47375 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL},
47376 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL},
47377 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47378 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47379 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
47380 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47381 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47382 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
47383 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
47384 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL},
47385 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL},
47386 { (char *)"TreeCtrl_GetRootItem", (PyCFunction)_wrap_TreeCtrl_GetRootItem, METH_O, NULL},
47387 { (char *)"TreeCtrl_GetSelection", (PyCFunction)_wrap_TreeCtrl_GetSelection, METH_O, NULL},
47388 { (char *)"TreeCtrl_GetSelections", (PyCFunction)_wrap_TreeCtrl_GetSelections, METH_O, NULL},
47389 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL},
47390 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL},
47391 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL},
47392 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL},
47393 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL},
47394 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL},
47395 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction)_wrap_TreeCtrl_GetFirstVisibleItem, METH_O, NULL},
47396 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47397 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47398 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL},
47399 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},
47400 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
47401 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL},
47402 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL},
47403 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
47404 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47405 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction)_wrap_TreeCtrl_DeleteAllItems, METH_O, NULL},
47406 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL},
3d6c9062
RD
47407 { (char *)"TreeCtrl_ExpandAllChildren", (PyCFunction) _wrap_TreeCtrl_ExpandAllChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47408 { (char *)"TreeCtrl_ExpandAll", (PyCFunction)_wrap_TreeCtrl_ExpandAll, METH_O, NULL},
1bd55598
RD
47409 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
47410 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL},
47411 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL},
47412 { (char *)"TreeCtrl_Unselect", (PyCFunction)_wrap_TreeCtrl_Unselect, METH_O, NULL},
47413 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL},
47414 { (char *)"TreeCtrl_UnselectAll", (PyCFunction)_wrap_TreeCtrl_UnselectAll, METH_O, NULL},
47415 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL},
47416 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47417 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47418 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL},
47419 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47420 { (char *)"TreeCtrl_GetEditControl", (PyCFunction)_wrap_TreeCtrl_GetEditControl, METH_O, NULL},
47421 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47422 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
47423 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL},
47424 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
2131d850
RD
47425 { (char *)"TreeCtrl_SetQuickBestSize", (PyCFunction) _wrap_TreeCtrl_SetQuickBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
47426 { (char *)"TreeCtrl_GetQuickBestSize", (PyCFunction)_wrap_TreeCtrl_GetQuickBestSize, METH_O, NULL},
1bd55598
RD
47427 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL},
47428 { (char *)"TreeCtrl_swiginit", TreeCtrl_swiginit, METH_VARARGS, NULL},
47429 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47430 { (char *)"new_PreGenericDirCtrl", (PyCFunction)_wrap_new_PreGenericDirCtrl, METH_NOARGS, NULL},
47431 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47432 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c 47433 { (char *)"GenericDirCtrl_CollapsePath", (PyCFunction) _wrap_GenericDirCtrl_CollapsePath, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
47434 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction)_wrap_GenericDirCtrl_GetDefaultPath, METH_O, NULL},
47435 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL},
47436 { (char *)"GenericDirCtrl_GetPath", (PyCFunction)_wrap_GenericDirCtrl_GetPath, METH_O, NULL},
47437 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction)_wrap_GenericDirCtrl_GetFilePath, METH_O, NULL},
47438 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
47439 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL},
47440 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction)_wrap_GenericDirCtrl_GetShowHidden, METH_O, NULL},
47441 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction)_wrap_GenericDirCtrl_GetFilter, METH_O, NULL},
47442 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL},
47443 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction)_wrap_GenericDirCtrl_GetFilterIndex, METH_O, NULL},
47444 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL},
47445 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction)_wrap_GenericDirCtrl_GetRootId, METH_O, NULL},
47446 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetTreeCtrl, METH_O, NULL},
47447 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetFilterListCtrl, METH_O, NULL},
47448 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL},
47449 { (char *)"GenericDirCtrl_DoResize", (PyCFunction)_wrap_GenericDirCtrl_DoResize, METH_O, NULL},
47450 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction)_wrap_GenericDirCtrl_ReCreateTree, METH_O, NULL},
47451 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL},
47452 { (char *)"GenericDirCtrl_swiginit", GenericDirCtrl_swiginit, METH_VARARGS, NULL},
47453 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47454 { (char *)"new_PreDirFilterListCtrl", (PyCFunction)_wrap_new_PreDirFilterListCtrl, METH_NOARGS, NULL},
47455 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47456 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL},
47457 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL},
47458 { (char *)"DirFilterListCtrl_swiginit", DirFilterListCtrl_swiginit, METH_VARARGS, NULL},
47459 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL},
47460 { (char *)"new_PrePyControl", (PyCFunction)_wrap_new_PrePyControl, METH_NOARGS, NULL},
47461 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
47462 { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL},
47463 { (char *)"PyControl_DoMoveWindow", (PyCFunction) _wrap_PyControl_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL},
47464 { (char *)"PyControl_DoSetSize", (PyCFunction) _wrap_PyControl_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL},
47465 { (char *)"PyControl_DoSetClientSize", (PyCFunction) _wrap_PyControl_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL},
47466 { (char *)"PyControl_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL},
47467 { (char *)"PyControl_DoGetSize", (PyCFunction)_wrap_PyControl_DoGetSize, METH_O, NULL},
47468 { (char *)"PyControl_DoGetClientSize", (PyCFunction)_wrap_PyControl_DoGetClientSize, METH_O, NULL},
47469 { (char *)"PyControl_DoGetPosition", (PyCFunction)_wrap_PyControl_DoGetPosition, METH_O, NULL},
47470 { (char *)"PyControl_DoGetVirtualSize", (PyCFunction)_wrap_PyControl_DoGetVirtualSize, METH_O, NULL},
47471 { (char *)"PyControl_DoGetBestSize", (PyCFunction)_wrap_PyControl_DoGetBestSize, METH_O, NULL},
47472 { (char *)"PyControl_GetDefaultAttributes", (PyCFunction)_wrap_PyControl_GetDefaultAttributes, METH_O, NULL},
47473 { (char *)"PyControl_OnInternalIdle", (PyCFunction)_wrap_PyControl_OnInternalIdle, METH_O, NULL},
47474 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL},
47475 { (char *)"PyControl_swiginit", PyControl_swiginit, METH_VARARGS, NULL},
47476 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47477 { (char *)"HelpEvent_GetPosition", (PyCFunction)_wrap_HelpEvent_GetPosition, METH_O, NULL},
47478 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47479 { (char *)"HelpEvent_GetLink", (PyCFunction)_wrap_HelpEvent_GetLink, METH_O, NULL},
47480 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL},
47481 { (char *)"HelpEvent_GetTarget", (PyCFunction)_wrap_HelpEvent_GetTarget, METH_O, NULL},
47482 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c
RD
47483 { (char *)"HelpEvent_GetOrigin", (PyCFunction)_wrap_HelpEvent_GetOrigin, METH_O, NULL},
47484 { (char *)"HelpEvent_SetOrigin", (PyCFunction) _wrap_HelpEvent_SetOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
47485 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL},
47486 { (char *)"HelpEvent_swiginit", HelpEvent_swiginit, METH_VARARGS, NULL},
47487 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47488 { (char *)"delete_ContextHelp", (PyCFunction)_wrap_delete_ContextHelp, METH_O, NULL},
47489 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47490 { (char *)"ContextHelp_EndContextHelp", (PyCFunction)_wrap_ContextHelp_EndContextHelp, METH_O, NULL},
47491 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL},
47492 { (char *)"ContextHelp_swiginit", ContextHelp_swiginit, METH_VARARGS, NULL},
47493 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL},
47494 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL},
47495 { (char *)"ContextHelpButton_swiginit", ContextHelpButton_swiginit, METH_VARARGS, NULL},
f52cbe90 47496 { (char *)"delete_HelpProvider", (PyCFunction)_wrap_delete_HelpProvider, METH_O, NULL},
1bd55598
RD
47497 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL},
47498 { (char *)"HelpProvider_Get", (PyCFunction)_wrap_HelpProvider_Get, METH_NOARGS, NULL},
47499 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47500 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3 47501 { (char *)"HelpProvider_ShowHelpAtPoint", (PyCFunction) _wrap_HelpProvider_ShowHelpAtPoint, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
47502 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47503 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL},
47504 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47505 { (char *)"HelpProvider_Destroy", (PyCFunction)_wrap_HelpProvider_Destroy, METH_O, NULL},
47506 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL},
47507 { (char *)"new_SimpleHelpProvider", (PyCFunction)_wrap_new_SimpleHelpProvider, METH_NOARGS, NULL},
47508 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL},
47509 { (char *)"SimpleHelpProvider_swiginit", SimpleHelpProvider_swiginit, METH_VARARGS, NULL},
47510 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL},
47511 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL},
47512 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL},
47513 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL},
47514 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL},
47515 { (char *)"delete_DragImage", (PyCFunction)_wrap_delete_DragImage, METH_O, NULL},
47516 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47517 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL},
47518 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL},
47519 { (char *)"DragImage_EndDrag", (PyCFunction)_wrap_DragImage_EndDrag, METH_O, NULL},
47520 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL},
47521 { (char *)"DragImage_Show", (PyCFunction)_wrap_DragImage_Show, METH_O, NULL},
47522 { (char *)"DragImage_Hide", (PyCFunction)_wrap_DragImage_Hide, METH_O, NULL},
47523 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL},
47524 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
47525 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL},
47526 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
47527 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL},
47528 { (char *)"DragImage_swiginit", DragImage_swiginit, METH_VARARGS, NULL},
47529 { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47530 { (char *)"new_PreDatePickerCtrl", (PyCFunction)_wrap_new_PreDatePickerCtrl, METH_NOARGS, NULL},
47531 { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47532 { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47533 { (char *)"DatePickerCtrl_GetValue", (PyCFunction)_wrap_DatePickerCtrl_GetValue, METH_O, NULL},
47534 { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
47535 { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction)_wrap_DatePickerCtrl_GetLowerLimit, METH_O, NULL},
47536 { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction)_wrap_DatePickerCtrl_GetUpperLimit, METH_O, NULL},
47537 { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL},
47538 { (char *)"DatePickerCtrl_swiginit", DatePickerCtrl_swiginit, METH_VARARGS, NULL},
704eda0c
RD
47539 { (char *)"new_HyperlinkCtrl", (PyCFunction) _wrap_new_HyperlinkCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47540 { (char *)"new_PreHyperlinkCtrl", (PyCFunction)_wrap_new_PreHyperlinkCtrl, METH_NOARGS, NULL},
47541 { (char *)"HyperlinkCtrl_Create", (PyCFunction) _wrap_HyperlinkCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47542 { (char *)"HyperlinkCtrl_GetHoverColour", (PyCFunction)_wrap_HyperlinkCtrl_GetHoverColour, METH_O, NULL},
47543 { (char *)"HyperlinkCtrl_SetHoverColour", (PyCFunction) _wrap_HyperlinkCtrl_SetHoverColour, METH_VARARGS | METH_KEYWORDS, NULL},
47544 { (char *)"HyperlinkCtrl_GetNormalColour", (PyCFunction)_wrap_HyperlinkCtrl_GetNormalColour, METH_O, NULL},
47545 { (char *)"HyperlinkCtrl_SetNormalColour", (PyCFunction) _wrap_HyperlinkCtrl_SetNormalColour, METH_VARARGS | METH_KEYWORDS, NULL},
47546 { (char *)"HyperlinkCtrl_GetVisitedColour", (PyCFunction)_wrap_HyperlinkCtrl_GetVisitedColour, METH_O, NULL},
47547 { (char *)"HyperlinkCtrl_SetVisitedColour", (PyCFunction) _wrap_HyperlinkCtrl_SetVisitedColour, METH_VARARGS | METH_KEYWORDS, NULL},
47548 { (char *)"HyperlinkCtrl_GetURL", (PyCFunction)_wrap_HyperlinkCtrl_GetURL, METH_O, NULL},
47549 { (char *)"HyperlinkCtrl_SetURL", (PyCFunction) _wrap_HyperlinkCtrl_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
47550 { (char *)"HyperlinkCtrl_SetVisited", (PyCFunction) _wrap_HyperlinkCtrl_SetVisited, METH_VARARGS | METH_KEYWORDS, NULL},
47551 { (char *)"HyperlinkCtrl_GetVisited", (PyCFunction)_wrap_HyperlinkCtrl_GetVisited, METH_O, NULL},
47552 { (char *)"HyperlinkCtrl_swigregister", HyperlinkCtrl_swigregister, METH_VARARGS, NULL},
47553 { (char *)"HyperlinkCtrl_swiginit", HyperlinkCtrl_swiginit, METH_VARARGS, NULL},
47554 { (char *)"new_HyperlinkEvent", (PyCFunction) _wrap_new_HyperlinkEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47555 { (char *)"HyperlinkEvent_GetURL", (PyCFunction)_wrap_HyperlinkEvent_GetURL, METH_O, NULL},
47556 { (char *)"HyperlinkEvent_SetURL", (PyCFunction) _wrap_HyperlinkEvent_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
47557 { (char *)"HyperlinkEvent_swigregister", HyperlinkEvent_swigregister, METH_VARARGS, NULL},
47558 { (char *)"HyperlinkEvent_swiginit", HyperlinkEvent_swiginit, METH_VARARGS, NULL},
b850e7f3
RD
47559 { (char *)"PickerBase_CreateBase", (PyCFunction) _wrap_PickerBase_CreateBase, METH_VARARGS | METH_KEYWORDS, NULL},
47560 { (char *)"PickerBase_SetInternalMargin", (PyCFunction) _wrap_PickerBase_SetInternalMargin, METH_VARARGS | METH_KEYWORDS, NULL},
47561 { (char *)"PickerBase_GetInternalMargin", (PyCFunction)_wrap_PickerBase_GetInternalMargin, METH_O, NULL},
47562 { (char *)"PickerBase_SetTextCtrlProportion", (PyCFunction) _wrap_PickerBase_SetTextCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
47563 { (char *)"PickerBase_GetTextCtrlProportion", (PyCFunction)_wrap_PickerBase_GetTextCtrlProportion, METH_O, NULL},
1eeb270e
RD
47564 { (char *)"PickerBase_SetPickerCtrlProportion", (PyCFunction) _wrap_PickerBase_SetPickerCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
47565 { (char *)"PickerBase_GetPickerCtrlProportion", (PyCFunction)_wrap_PickerBase_GetPickerCtrlProportion, METH_O, NULL},
b02396e8
RD
47566 { (char *)"PickerBase_IsTextCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsTextCtrlGrowable, METH_O, NULL},
47567 { (char *)"PickerBase_SetTextCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetTextCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
47568 { (char *)"PickerBase_IsPickerCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsPickerCtrlGrowable, METH_O, NULL},
47569 { (char *)"PickerBase_SetPickerCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetPickerCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3
RD
47570 { (char *)"PickerBase_HasTextCtrl", (PyCFunction)_wrap_PickerBase_HasTextCtrl, METH_O, NULL},
47571 { (char *)"PickerBase_GetTextCtrl", (PyCFunction)_wrap_PickerBase_GetTextCtrl, METH_O, NULL},
47572 { (char *)"PickerBase_GetPickerCtrl", (PyCFunction)_wrap_PickerBase_GetPickerCtrl, METH_O, NULL},
47573 { (char *)"PickerBase_swigregister", PickerBase_swigregister, METH_VARARGS, NULL},
47574 { (char *)"new_ColourPickerCtrl", (PyCFunction) _wrap_new_ColourPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47575 { (char *)"new_PreColourPickerCtrl", (PyCFunction)_wrap_new_PreColourPickerCtrl, METH_NOARGS, NULL},
47576 { (char *)"ColourPickerCtrl_Create", (PyCFunction) _wrap_ColourPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47577 { (char *)"ColourPickerCtrl_GetColour", (PyCFunction)_wrap_ColourPickerCtrl_GetColour, METH_O, NULL},
47578 { (char *)"ColourPickerCtrl_SetColour", (PyCFunction) _wrap_ColourPickerCtrl_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
47579 { (char *)"ColourPickerCtrl_swigregister", ColourPickerCtrl_swigregister, METH_VARARGS, NULL},
47580 { (char *)"ColourPickerCtrl_swiginit", ColourPickerCtrl_swiginit, METH_VARARGS, NULL},
47581 { (char *)"new_ColourPickerEvent", (PyCFunction) _wrap_new_ColourPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47582 { (char *)"ColourPickerEvent_GetColour", (PyCFunction)_wrap_ColourPickerEvent_GetColour, METH_O, NULL},
47583 { (char *)"ColourPickerEvent_SetColour", (PyCFunction) _wrap_ColourPickerEvent_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
47584 { (char *)"ColourPickerEvent_swigregister", ColourPickerEvent_swigregister, METH_VARARGS, NULL},
47585 { (char *)"ColourPickerEvent_swiginit", ColourPickerEvent_swiginit, METH_VARARGS, NULL},
47586 { (char *)"new_FilePickerCtrl", (PyCFunction) _wrap_new_FilePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47587 { (char *)"new_PreFilePickerCtrl", (PyCFunction)_wrap_new_PreFilePickerCtrl, METH_NOARGS, NULL},
47588 { (char *)"FilePickerCtrl_Create", (PyCFunction) _wrap_FilePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47589 { (char *)"FilePickerCtrl_GetPath", (PyCFunction)_wrap_FilePickerCtrl_GetPath, METH_O, NULL},
47590 { (char *)"FilePickerCtrl_SetPath", (PyCFunction) _wrap_FilePickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
b02396e8
RD
47591 { (char *)"FilePickerCtrl_CheckPath", (PyCFunction) _wrap_FilePickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
47592 { (char *)"FilePickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_FilePickerCtrl_GetTextCtrlValue, METH_O, NULL},
b850e7f3
RD
47593 { (char *)"FilePickerCtrl_swigregister", FilePickerCtrl_swigregister, METH_VARARGS, NULL},
47594 { (char *)"FilePickerCtrl_swiginit", FilePickerCtrl_swiginit, METH_VARARGS, NULL},
47595 { (char *)"new_DirPickerCtrl", (PyCFunction) _wrap_new_DirPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47596 { (char *)"new_PreDirPickerCtrl", (PyCFunction)_wrap_new_PreDirPickerCtrl, METH_NOARGS, NULL},
47597 { (char *)"DirPickerCtrl_Create", (PyCFunction) _wrap_DirPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47598 { (char *)"DirPickerCtrl_GetPath", (PyCFunction)_wrap_DirPickerCtrl_GetPath, METH_O, NULL},
47599 { (char *)"DirPickerCtrl_SetPath", (PyCFunction) _wrap_DirPickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
b02396e8
RD
47600 { (char *)"DirPickerCtrl_CheckPath", (PyCFunction) _wrap_DirPickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
47601 { (char *)"DirPickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_DirPickerCtrl_GetTextCtrlValue, METH_O, NULL},
b850e7f3
RD
47602 { (char *)"DirPickerCtrl_swigregister", DirPickerCtrl_swigregister, METH_VARARGS, NULL},
47603 { (char *)"DirPickerCtrl_swiginit", DirPickerCtrl_swiginit, METH_VARARGS, NULL},
47604 { (char *)"new_FileDirPickerEvent", (PyCFunction) _wrap_new_FileDirPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47605 { (char *)"FileDirPickerEvent_GetPath", (PyCFunction)_wrap_FileDirPickerEvent_GetPath, METH_O, NULL},
47606 { (char *)"FileDirPickerEvent_SetPath", (PyCFunction) _wrap_FileDirPickerEvent_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
47607 { (char *)"FileDirPickerEvent_swigregister", FileDirPickerEvent_swigregister, METH_VARARGS, NULL},
47608 { (char *)"FileDirPickerEvent_swiginit", FileDirPickerEvent_swiginit, METH_VARARGS, NULL},
47609 { (char *)"new_FontPickerCtrl", (PyCFunction) _wrap_new_FontPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47610 { (char *)"new_PreFontPickerCtrl", (PyCFunction)_wrap_new_PreFontPickerCtrl, METH_NOARGS, NULL},
47611 { (char *)"FontPickerCtrl_Create", (PyCFunction) _wrap_FontPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47612 { (char *)"FontPickerCtrl_GetSelectedFont", (PyCFunction)_wrap_FontPickerCtrl_GetSelectedFont, METH_O, NULL},
47613 { (char *)"FontPickerCtrl_SetSelectedFont", (PyCFunction) _wrap_FontPickerCtrl_SetSelectedFont, METH_VARARGS | METH_KEYWORDS, NULL},
47614 { (char *)"FontPickerCtrl_SetMaxPointSize", (PyCFunction) _wrap_FontPickerCtrl_SetMaxPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
47615 { (char *)"FontPickerCtrl_GetMaxPointSize", (PyCFunction)_wrap_FontPickerCtrl_GetMaxPointSize, METH_O, NULL},
47616 { (char *)"FontPickerCtrl_swigregister", FontPickerCtrl_swigregister, METH_VARARGS, NULL},
47617 { (char *)"FontPickerCtrl_swiginit", FontPickerCtrl_swiginit, METH_VARARGS, NULL},
47618 { (char *)"new_FontPickerEvent", (PyCFunction) _wrap_new_FontPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47619 { (char *)"FontPickerEvent_GetFont", (PyCFunction)_wrap_FontPickerEvent_GetFont, METH_O, NULL},
47620 { (char *)"FontPickerEvent_SetFont", (PyCFunction) _wrap_FontPickerEvent_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
47621 { (char *)"FontPickerEvent_swigregister", FontPickerEvent_swigregister, METH_VARARGS, NULL},
47622 { (char *)"FontPickerEvent_swiginit", FontPickerEvent_swiginit, METH_VARARGS, NULL},
5172800e
RD
47623 { (char *)"new_CollapsiblePane", (PyCFunction) _wrap_new_CollapsiblePane, METH_VARARGS | METH_KEYWORDS, NULL},
47624 { (char *)"new_PreCollapsiblePane", (PyCFunction)_wrap_new_PreCollapsiblePane, METH_NOARGS, NULL},
47625 { (char *)"CollapsiblePane_Create", (PyCFunction) _wrap_CollapsiblePane_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47626 { (char *)"CollapsiblePane_Collapse", (PyCFunction) _wrap_CollapsiblePane_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
47627 { (char *)"CollapsiblePane_Expand", (PyCFunction)_wrap_CollapsiblePane_Expand, METH_O, NULL},
47628 { (char *)"CollapsiblePane_IsCollapsed", (PyCFunction)_wrap_CollapsiblePane_IsCollapsed, METH_O, NULL},
47629 { (char *)"CollapsiblePane_IsExpanded", (PyCFunction)_wrap_CollapsiblePane_IsExpanded, METH_O, NULL},
47630 { (char *)"CollapsiblePane_GetPane", (PyCFunction)_wrap_CollapsiblePane_GetPane, METH_O, NULL},
47631 { (char *)"CollapsiblePane_swigregister", CollapsiblePane_swigregister, METH_VARARGS, NULL},
47632 { (char *)"CollapsiblePane_swiginit", CollapsiblePane_swiginit, METH_VARARGS, NULL},
47633 { (char *)"new_CollapsiblePaneEvent", (PyCFunction) _wrap_new_CollapsiblePaneEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47634 { (char *)"CollapsiblePaneEvent_GetCollapsed", (PyCFunction)_wrap_CollapsiblePaneEvent_GetCollapsed, METH_O, NULL},
47635 { (char *)"CollapsiblePaneEvent_SetCollapsed", (PyCFunction) _wrap_CollapsiblePaneEvent_SetCollapsed, METH_VARARGS | METH_KEYWORDS, NULL},
47636 { (char *)"CollapsiblePaneEvent_swigregister", CollapsiblePaneEvent_swigregister, METH_VARARGS, NULL},
47637 { (char *)"CollapsiblePaneEvent_swiginit", CollapsiblePaneEvent_swiginit, METH_VARARGS, NULL},
3f7f284d
RD
47638 { (char *)"new_SearchCtrl", (PyCFunction) _wrap_new_SearchCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47639 { (char *)"new_PreSearchCtrl", (PyCFunction)_wrap_new_PreSearchCtrl, METH_NOARGS, NULL},
47640 { (char *)"SearchCtrl_Create", (PyCFunction) _wrap_SearchCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47641 { (char *)"SearchCtrl_SetMenu", (PyCFunction) _wrap_SearchCtrl_SetMenu, METH_VARARGS | METH_KEYWORDS, NULL},
47642 { (char *)"SearchCtrl_GetMenu", (PyCFunction)_wrap_SearchCtrl_GetMenu, METH_O, NULL},
47643 { (char *)"SearchCtrl_SetSearchButtonVisible", (PyCFunction) _wrap_SearchCtrl_SetSearchButtonVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47644 { (char *)"SearchCtrl_GetSearchButtonVisible", (PyCFunction)_wrap_SearchCtrl_GetSearchButtonVisible, METH_O, NULL},
47645 { (char *)"SearchCtrl_SetCancelButtonVisible", (PyCFunction) _wrap_SearchCtrl_SetCancelButtonVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47646 { (char *)"SearchCtrl_GetCancelButtonVisible", (PyCFunction)_wrap_SearchCtrl_GetCancelButtonVisible, METH_O, NULL},
47647 { (char *)"SearchCtrl_SetSearchBitmap", (PyCFunction) _wrap_SearchCtrl_SetSearchBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47648 { (char *)"SearchCtrl_SetSearchMenuBitmap", (PyCFunction) _wrap_SearchCtrl_SetSearchMenuBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47649 { (char *)"SearchCtrl_SetCancelBitmap", (PyCFunction) _wrap_SearchCtrl_SetCancelBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47650 { (char *)"SearchCtrl_swigregister", SearchCtrl_swigregister, METH_VARARGS, NULL},
47651 { (char *)"SearchCtrl_swiginit", SearchCtrl_swiginit, METH_VARARGS, NULL},
1bd55598
RD
47652 { NULL, NULL, 0, NULL }
47653};
47654
47655
47656/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
47657
47658static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
47659 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
47660}
47661static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
47662 return (void *)((wxEvent *) ((wxMenuEvent *) x));
47663}
47664static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
47665 return (void *)((wxEvent *) ((wxCloseEvent *) x));
47666}
47667static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
47668 return (void *)((wxEvent *) ((wxMouseEvent *) x));
47669}
47670static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
47671 return (void *)((wxEvent *) ((wxEraseEvent *) x));
47672}
47673static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) {
47674 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
47675}
47676static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
47677 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
47678}
47679static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
47680 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
47681}
b850e7f3
RD
47682static void *_p_wxColourPickerEventTo_p_wxEvent(void *x) {
47683 return (void *)((wxEvent *) (wxCommandEvent *) ((wxColourPickerEvent *) x));
47684}
47685static void *_p_wxFileDirPickerEventTo_p_wxEvent(void *x) {
47686 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFileDirPickerEvent *) x));
47687}
47688static void *_p_wxFontPickerEventTo_p_wxEvent(void *x) {
47689 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFontPickerEvent *) x));
47690}
1bd55598
RD
47691static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
47692 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
47693}
47694static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
47695 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
47696}
47697static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
47698 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
47699}
1bd55598
RD
47700static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
47701 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
47702}
34e0a3bb
RD
47703static void *_p_wxMouseCaptureLostEventTo_p_wxEvent(void *x) {
47704 return (void *)((wxEvent *) ((wxMouseCaptureLostEvent *) x));
47705}
2131d850
RD
47706static void *_p_wxPyEventTo_p_wxEvent(void *x) {
47707 return (void *)((wxEvent *) ((wxPyEvent *) x));
47708}
1bd55598
RD
47709static void *_p_wxListEventTo_p_wxEvent(void *x) {
47710 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
47711}
47712static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
47713 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47714}
47715static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
47716 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47717}
47718static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) {
47719 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47720}
47721static void *_p_wxTreebookEventTo_p_wxEvent(void *x) {
47722 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47723}
47724static void *_p_wxToolbookEventTo_p_wxEvent(void *x) {
47725 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47726}
47727static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
47728 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
47729}
47730static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
47731 return (void *)((wxEvent *) ((wxIdleEvent *) x));
47732}
47733static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
47734 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
47735}
47736static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
47737 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
47738}
47739static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
47740 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
47741}
47742static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
47743 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
47744}
47745static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
47746 return (void *)((wxEvent *) ((wxActivateEvent *) x));
47747}
47748static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
47749 return (void *)((wxEvent *) ((wxSizeEvent *) x));
47750}
47751static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
47752 return (void *)((wxEvent *) ((wxMoveEvent *) x));
47753}
47754static void *_p_wxDateEventTo_p_wxEvent(void *x) {
47755 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
47756}
5172800e
RD
47757static void *_p_wxCollapsiblePaneEventTo_p_wxEvent(void *x) {
47758 return (void *)((wxEvent *) (wxCommandEvent *) ((wxCollapsiblePaneEvent *) x));
47759}
1bd55598
RD
47760static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
47761 return (void *)((wxEvent *) ((wxPaintEvent *) x));
47762}
47763static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
47764 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
47765}
34e0a3bb
RD
47766static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) {
47767 return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x));
47768}
1bd55598
RD
47769static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
47770 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
47771}
47772static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
47773 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
47774}
47775static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
47776 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
47777}
47778static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
47779 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
47780}
47781static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
47782 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
47783}
704eda0c
RD
47784static void *_p_wxHyperlinkEventTo_p_wxEvent(void *x) {
47785 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHyperlinkEvent *) x));
47786}
1bd55598
RD
47787static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
47788 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
47789}
47790static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
47791 return (void *)((wxEvent *) ((wxFocusEvent *) x));
47792}
47793static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
47794 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
47795}
47796static void *_p_wxShowEventTo_p_wxEvent(void *x) {
47797 return (void *)((wxEvent *) ((wxShowEvent *) x));
47798}
47799static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
47800 return (void *)((wxEvent *) ((wxCommandEvent *) x));
47801}
47802static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
47803 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
47804}
47805static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
47806 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
47807}
47808static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
47809 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
47810}
47811static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
47812 return (void *)((wxEvent *) ((wxKeyEvent *) x));
47813}
47814static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
47815 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
47816}
47817static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
47818 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
47819}
b850e7f3
RD
47820static void *_p_wxColourPickerCtrlTo_p_wxPickerBase(void *x) {
47821 return (void *)((wxPickerBase *) ((wxColourPickerCtrl *) x));
47822}
47823static void *_p_wxFilePickerCtrlTo_p_wxPickerBase(void *x) {
47824 return (void *)((wxPickerBase *) ((wxFilePickerCtrl *) x));
47825}
47826static void *_p_wxDirPickerCtrlTo_p_wxPickerBase(void *x) {
47827 return (void *)((wxPickerBase *) ((wxDirPickerCtrl *) x));
47828}
47829static void *_p_wxFontPickerCtrlTo_p_wxPickerBase(void *x) {
47830 return (void *)((wxPickerBase *) ((wxFontPickerCtrl *) x));
47831}
1bd55598
RD
47832static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
47833 return (void *)((wxItemContainer *) ((wxComboBox *) x));
47834}
47835static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
47836 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
47837}
47838static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
47839 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
47840}
47841static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
47842 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
47843}
47844static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
47845 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
47846}
47847static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
47848 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
47849}
47850static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
47851 return (void *)((wxPyListCtrl *) ((wxListView *) x));
47852}
5172800e
RD
47853static void *_p_wxCollapsiblePaneTo_p_wxControl(void *x) {
47854 return (void *)((wxControl *) ((wxCollapsiblePane *) x));
47855}
1bd55598
RD
47856static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) {
47857 return (void *)((wxControl *) ((wxBookCtrlBase *) x));
47858}
47859static void *_p_wxToolBarTo_p_wxControl(void *x) {
47860 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
47861}
b850e7f3
RD
47862static void *_p_wxPickerBaseTo_p_wxControl(void *x) {
47863 return (void *)((wxControl *) ((wxPickerBase *) x));
47864}
1bd55598
RD
47865static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
47866 return (void *)((wxControl *) ((wxToggleButton *) x));
47867}
47868static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
47869 return (void *)((wxControl *) ((wxRadioButton *) x));
47870}
3f7f284d
RD
47871static void *_p_wxSearchCtrlTo_p_wxControl(void *x) {
47872 return (void *)((wxControl *) (wxTextCtrl *) ((wxSearchCtrl *) x));
47873}
1bd55598
RD
47874static void *_p_wxToolbookTo_p_wxControl(void *x) {
47875 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxToolbook *) x));
47876}
47877static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
47878 return (void *)((wxControl *) ((wxToolBarBase *) x));
47879}
47880static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
47881 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
47882}
47883static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
47884 return (void *)((wxControl *) ((wxPyListCtrl *) x));
47885}
47886static void *_p_wxComboBoxTo_p_wxControl(void *x) {
47887 return (void *)((wxControl *) ((wxComboBox *) x));
47888}
47889static void *_p_wxPyControlTo_p_wxControl(void *x) {
47890 return (void *)((wxControl *) ((wxPyControl *) x));
47891}
47892static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
47893 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
47894}
47895static void *_p_wxScrollBarTo_p_wxControl(void *x) {
47896 return (void *)((wxControl *) ((wxScrollBar *) x));
47897}
47898static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
47899 return (void *)((wxControl *) ((wxControlWithItems *) x));
47900}
47901static void *_p_wxGaugeTo_p_wxControl(void *x) {
47902 return (void *)((wxControl *) ((wxGauge *) x));
47903}
47904static void *_p_wxStaticLineTo_p_wxControl(void *x) {
47905 return (void *)((wxControl *) ((wxStaticLine *) x));
47906}
47907static void *_p_wxChoicebookTo_p_wxControl(void *x) {
47908 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x));
47909}
47910static void *_p_wxListbookTo_p_wxControl(void *x) {
47911 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x));
47912}
704eda0c
RD
47913static void *_p_wxHyperlinkCtrlTo_p_wxControl(void *x) {
47914 return (void *)((wxControl *) ((wxHyperlinkCtrl *) x));
47915}
1bd55598
RD
47916static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
47917 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
47918}
47919static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
47920 return (void *)((wxControl *) ((wxCheckBox *) x));
47921}
47922static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
47923 return (void *)((wxControl *) ((wxRadioBox *) x));
47924}
47925static void *_p_wxChoiceTo_p_wxControl(void *x) {
47926 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
47927}
47928static void *_p_wxListBoxTo_p_wxControl(void *x) {
47929 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
47930}
47931static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
47932 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
47933}
47934static void *_p_wxListViewTo_p_wxControl(void *x) {
47935 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
47936}
47937static void *_p_wxNotebookTo_p_wxControl(void *x) {
47938 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x));
47939}
47940static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
47941 return (void *)((wxControl *) ((wxStaticBitmap *) x));
47942}
47943static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
47944 return (void *)((wxControl *) ((wxSpinCtrl *) x));
47945}
47946static void *_p_wxStaticTextTo_p_wxControl(void *x) {
47947 return (void *)((wxControl *) ((wxStaticText *) x));
47948}
47949static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
47950 return (void *)((wxControl *) ((wxStaticBox *) x));
47951}
47952static void *_p_wxSliderTo_p_wxControl(void *x) {
47953 return (void *)((wxControl *) ((wxSlider *) x));
47954}
47955static void *_p_wxTreebookTo_p_wxControl(void *x) {
47956 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxTreebook *) x));
47957}
47958static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
47959 return (void *)((wxControl *) ((wxSpinButton *) x));
47960}
47961static void *_p_wxButtonTo_p_wxControl(void *x) {
47962 return (void *)((wxControl *) ((wxButton *) x));
47963}
47964static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
47965 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
47966}
47967static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
47968 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
47969}
47970static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) {
47971 return (void *)((wxControl *) ((wxDatePickerCtrl *) x));
47972}
b850e7f3
RD
47973static void *_p_wxColourPickerCtrlTo_p_wxControl(void *x) {
47974 return (void *)((wxControl *) (wxPickerBase *) ((wxColourPickerCtrl *) x));
47975}
47976static void *_p_wxFilePickerCtrlTo_p_wxControl(void *x) {
47977 return (void *)((wxControl *) (wxPickerBase *) ((wxFilePickerCtrl *) x));
47978}
47979static void *_p_wxDirPickerCtrlTo_p_wxControl(void *x) {
47980 return (void *)((wxControl *) (wxPickerBase *) ((wxDirPickerCtrl *) x));
47981}
47982static void *_p_wxFontPickerCtrlTo_p_wxControl(void *x) {
47983 return (void *)((wxControl *) (wxPickerBase *) ((wxFontPickerCtrl *) x));
47984}
1bd55598
RD
47985static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
47986 return (void *)((wxControl *) ((wxTextCtrl *) x));
47987}
47988static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
47989 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
47990}
47991static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
47992 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
47993}
3f7f284d
RD
47994static void *_p_wxSearchCtrlTo_p_wxTextCtrl(void *x) {
47995 return (void *)((wxTextCtrl *) ((wxSearchCtrl *) x));
47996}
1bd55598
RD
47997static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) {
47998 return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
47999}
48000static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
48001 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
48002}
48003static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
48004 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
48005}
48006static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
48007 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
48008}
48009static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
48010 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
48011}
48012static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
48013 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
48014}
48015static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) {
48016 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
48017}
48018static void *_p_wxTreebookEventTo_p_wxNotifyEvent(void *x) {
48019 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
48020}
48021static void *_p_wxToolbookEventTo_p_wxNotifyEvent(void *x) {
48022 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
48023}
48024static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) {
48025 return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x));
48026}
48027static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) {
48028 return (void *)((wxBookCtrlBase *) ((wxListbook *) x));
48029}
48030static void *_p_wxToolbookTo_p_wxBookCtrlBase(void *x) {
48031 return (void *)((wxBookCtrlBase *) ((wxToolbook *) x));
48032}
48033static void *_p_wxTreebookTo_p_wxBookCtrlBase(void *x) {
48034 return (void *)((wxBookCtrlBase *) ((wxTreebook *) x));
48035}
48036static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) {
48037 return (void *)((wxBookCtrlBase *) ((wxNotebook *) x));
48038}
5172800e
RD
48039static void *_p_wxCollapsiblePaneTo_p_wxEvtHandler(void *x) {
48040 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCollapsiblePane *) x));
48041}
1bd55598
RD
48042static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
48043 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
48044}
48045static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) {
48046 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
48047}
48048static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
48049 return (void *)((wxEvtHandler *) ((wxValidator *) x));
48050}
48051static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
48052 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
48053}
48054static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
48055 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
48056}
b850e7f3
RD
48057static void *_p_wxPickerBaseTo_p_wxEvtHandler(void *x) {
48058 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPickerBase *) x));
48059}
1bd55598
RD
48060static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
48061 return (void *)((wxEvtHandler *) ((wxMenu *) x));
48062}
48063static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
48064 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
48065}
48066static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
48067 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
48068}
3f7f284d
RD
48069static void *_p_wxSearchCtrlTo_p_wxEvtHandler(void *x) {
48070 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxTextCtrl *) ((wxSearchCtrl *) x));
48071}
1bd55598
RD
48072static void *_p_wxToolbookTo_p_wxEvtHandler(void *x) {
48073 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
48074}
48075static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
48076 return (void *)((wxEvtHandler *) ((wxWindow *) x));
48077}
48078static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
48079 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
48080}
48081static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
48082 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x));
48083}
48084static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
48085 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
48086}
48087static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
48088 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
48089}
48090static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
48091 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
48092}
48093static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
48094 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
48095}
48096static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
48097 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
48098}
48099static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
48100 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
48101}
48102static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
48103 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
48104}
48105static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
48106 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
48107}
48108static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
48109 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
48110}
48111static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
48112 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
48113}
48114static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) {
48115 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
48116}
48117static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
48118 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
48119}
704eda0c
RD
48120static void *_p_wxHyperlinkCtrlTo_p_wxEvtHandler(void *x) {
48121 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
48122}
1bd55598
RD
48123static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
48124 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
48125}
48126static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
48127 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
48128}
48129static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
48130 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
48131}
48132static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
48133 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
48134}
48135static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
48136 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
48137}
48138static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
48139 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
48140}
48141static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
48142 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
48143}
48144static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
48145 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
48146}
48147static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
48148 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
48149}
48150static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
48151 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
48152}
48153static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
48154 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
48155}
48156static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
48157 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
48158}
48159static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
48160 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
48161}
48162static void *_p_wxTreebookTo_p_wxEvtHandler(void *x) {
48163 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
48164}
48165static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
48166 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
48167}
48168static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
48169 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
48170}
48171static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
48172 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
48173}
48174static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
48175 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
48176}
48177static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) {
48178 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
48179}
b850e7f3
RD
48180static void *_p_wxColourPickerCtrlTo_p_wxEvtHandler(void *x) {
48181 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
48182}
48183static void *_p_wxFilePickerCtrlTo_p_wxEvtHandler(void *x) {
48184 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
48185}
48186static void *_p_wxDirPickerCtrlTo_p_wxEvtHandler(void *x) {
48187 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
48188}
48189static void *_p_wxFontPickerCtrlTo_p_wxEvtHandler(void *x) {
48190 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
48191}
1bd55598
RD
48192static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
48193 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
48194}
48195static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
48196 return (void *)((wxListBox *) ((wxCheckListBox *) x));
48197}
48198static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
48199 return (void *)((wxButton *) ((wxBitmapButton *) x));
48200}
48201static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
48202 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
48203}
48204static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
48205 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
48206}
48207static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
48208 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
48209}
48210static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
48211 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
48212}
48213static void *_p_wxToolbookTo_p_wxObject(void *x) {
48214 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
48215}
1bd55598
RD
48216static void *_p_wxSizerItemTo_p_wxObject(void *x) {
48217 return (void *)((wxObject *) ((wxSizerItem *) x));
48218}
34e0a3bb
RD
48219static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
48220 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
48221}
1bd55598
RD
48222static void *_p_wxScrollEventTo_p_wxObject(void *x) {
48223 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
48224}
48225static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
48226 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
48227}
48228static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
48229 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
48230}
48231static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
48232 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
48233}
48234static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
48235 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
48236}
48237static void *_p_wxSizerTo_p_wxObject(void *x) {
48238 return (void *)((wxObject *) ((wxSizer *) x));
48239}
48240static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
48241 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
48242}
48243static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
48244 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
48245}
48246static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
48247 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
48248}
48249static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
48250 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
48251}
48252static void *_p_wxEventTo_p_wxObject(void *x) {
48253 return (void *)((wxObject *) ((wxEvent *) x));
48254}
48255static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
48256 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
48257}
48258static void *_p_wxGridSizerTo_p_wxObject(void *x) {
48259 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
48260}
3f7f284d
RD
48261static void *_p_wxSearchCtrlTo_p_wxObject(void *x) {
48262 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxTextCtrl *) ((wxSearchCtrl *) x));
48263}
1bd55598
RD
48264static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
48265 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
48266}
48267static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
48268 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
48269}
b850e7f3
RD
48270static void *_p_wxPickerBaseTo_p_wxObject(void *x) {
48271 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPickerBase *) x));
48272}
1bd55598
RD
48273static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
48274 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
48275}
48276static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
48277 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
48278}
2131d850
RD
48279static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
48280 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
48281}
1bd55598
RD
48282static void *_p_wxPaintEventTo_p_wxObject(void *x) {
48283 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
48284}
48285static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
48286 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
48287}
48288static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
48289 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
48290}
48291static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
48292 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
48293}
48294static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
48295 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
48296}
48297static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
48298 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
48299}
48300static void *_p_wxStaticLineTo_p_wxObject(void *x) {
48301 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
48302}
48303static void *_p_wxControlTo_p_wxObject(void *x) {
48304 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
48305}
48306static void *_p_wxPyControlTo_p_wxObject(void *x) {
48307 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
48308}
48309static void *_p_wxGaugeTo_p_wxObject(void *x) {
48310 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
48311}
48312static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
48313 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
48314}
48315static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
48316 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
48317}
48318static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
48319 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
48320}
48321static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
48322 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
48323}
b850e7f3
RD
48324static void *_p_wxColourPickerEventTo_p_wxObject(void *x) {
48325 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxColourPickerEvent *) x));
48326}
48327static void *_p_wxFileDirPickerEventTo_p_wxObject(void *x) {
48328 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFileDirPickerEvent *) x));
48329}
48330static void *_p_wxFontPickerEventTo_p_wxObject(void *x) {
48331 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFontPickerEvent *) x));
48332}
1bd55598
RD
48333static void *_p_wxChoiceTo_p_wxObject(void *x) {
48334 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
48335}
48336static void *_p_wxFSFileTo_p_wxObject(void *x) {
48337 return (void *)((wxObject *) ((wxFSFile *) x));
48338}
48339static void *_p_wxPySizerTo_p_wxObject(void *x) {
48340 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
48341}
48342static void *_p_wxTreebookTo_p_wxObject(void *x) {
48343 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
48344}
48345static void *_p_wxListViewTo_p_wxObject(void *x) {
48346 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
48347}
704eda0c
RD
48348static void *_p_wxHyperlinkEventTo_p_wxObject(void *x) {
48349 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHyperlinkEvent *) x));
48350}
1bd55598
RD
48351static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
48352 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
48353}
48354static void *_p_wxNotebookTo_p_wxObject(void *x) {
48355 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
48356}
48357static void *_p_wxPyEventTo_p_wxObject(void *x) {
48358 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
48359}
48360static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
48361 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
48362}
48363static void *_p_wxChoicebookTo_p_wxObject(void *x) {
48364 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
48365}
48366static void *_p_wxListbookTo_p_wxObject(void *x) {
48367 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
48368}
48369static void *_p_wxShowEventTo_p_wxObject(void *x) {
48370 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
48371}
48372static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
48373 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
48374}
48375static void *_p_wxSliderTo_p_wxObject(void *x) {
48376 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
48377}
48378static void *_p_wxMenuItemTo_p_wxObject(void *x) {
48379 return (void *)((wxObject *) ((wxMenuItem *) x));
48380}
48381static void *_p_wxDateEventTo_p_wxObject(void *x) {
48382 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
48383}
48384static void *_p_wxIdleEventTo_p_wxObject(void *x) {
48385 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
48386}
48387static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
48388 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
48389}
48390static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
48391 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
48392}
48393static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
48394 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
48395}
48396static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
48397 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
48398}
48399static void *_p_wxSizeEventTo_p_wxObject(void *x) {
48400 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
48401}
48402static void *_p_wxMoveEventTo_p_wxObject(void *x) {
48403 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
48404}
48405static void *_p_wxActivateEventTo_p_wxObject(void *x) {
48406 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
48407}
48408static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
48409 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
48410}
48411static void *_p_wxContextHelpTo_p_wxObject(void *x) {
48412 return (void *)((wxObject *) ((wxContextHelp *) x));
48413}
5172800e
RD
48414static void *_p_wxCollapsiblePaneEventTo_p_wxObject(void *x) {
48415 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxCollapsiblePaneEvent *) x));
48416}
1bd55598
RD
48417static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) {
48418 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
48419}
48420static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
48421 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
48422}
48423static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
48424 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
48425}
48426static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
48427 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
48428}
48429static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
48430 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
48431}
48432static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
48433 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
48434}
48435static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
48436 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
48437}
48438static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
48439 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
48440}
48441static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
48442 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
48443}
48444static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
48445 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
48446}
48447static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
48448 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
48449}
48450static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
48451 return (void *)((wxObject *) ((wxImageHandler *) x));
48452}
48453static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
48454 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
48455}
48456static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
48457 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
48458}
580080c5
RD
48459static void *_p_wxTGAHandlerTo_p_wxObject(void *x) {
48460 return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x));
48461}
1bd55598
RD
48462static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
48463 return (void *)((wxObject *) ((wxEvtHandler *) x));
48464}
34e0a3bb
RD
48465static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
48466 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
48467}
1bd55598
RD
48468static void *_p_wxListEventTo_p_wxObject(void *x) {
48469 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
48470}
48471static void *_p_wxListBoxTo_p_wxObject(void *x) {
48472 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
48473}
48474static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
48475 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
48476}
48477static void *_p_wxButtonTo_p_wxObject(void *x) {
48478 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
48479}
48480static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
48481 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
48482}
48483static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
48484 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
48485}
48486static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
48487 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
48488}
1bd55598
RD
48489static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
48490 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
48491}
580080c5
RD
48492static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
48493 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
48494}
1bd55598
RD
48495static void *_p_wxScrollBarTo_p_wxObject(void *x) {
48496 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
48497}
48498static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
48499 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
48500}
48501static void *_p_wxComboBoxTo_p_wxObject(void *x) {
48502 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x));
48503}
48504static void *_p_wxHelpEventTo_p_wxObject(void *x) {
48505 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
48506}
48507static void *_p_wxListItemTo_p_wxObject(void *x) {
48508 return (void *)((wxObject *) ((wxListItem *) x));
48509}
48510static void *_p_wxImageTo_p_wxObject(void *x) {
48511 return (void *)((wxObject *) ((wxImage *) x));
48512}
48513static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
48514 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
48515}
48516static void *_p_wxSpinEventTo_p_wxObject(void *x) {
48517 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
48518}
48519static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
48520 return (void *)((wxObject *) ((wxGenericDragImage *) x));
48521}
48522static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
48523 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
48524}
48525static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
48526 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
48527}
48528static void *_p_wxListbookEventTo_p_wxObject(void *x) {
48529 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
48530}
48531static void *_p_wxChoicebookEventTo_p_wxObject(void *x) {
48532 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
48533}
48534static void *_p_wxTreebookEventTo_p_wxObject(void *x) {
48535 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
48536}
48537static void *_p_wxToolbookEventTo_p_wxObject(void *x) {
48538 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
48539}
48540static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
48541 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
48542}
48543static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
48544 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
48545}
48546static void *_p_wxKeyEventTo_p_wxObject(void *x) {
48547 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
48548}
48549static void *_p_wxWindowTo_p_wxObject(void *x) {
48550 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
48551}
48552static void *_p_wxMenuTo_p_wxObject(void *x) {
48553 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
48554}
48555static void *_p_wxMenuBarTo_p_wxObject(void *x) {
48556 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
48557}
48558static void *_p_wxFileSystemTo_p_wxObject(void *x) {
48559 return (void *)((wxObject *) ((wxFileSystem *) x));
48560}
5172800e
RD
48561static void *_p_wxCollapsiblePaneTo_p_wxObject(void *x) {
48562 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCollapsiblePane *) x));
48563}
1bd55598
RD
48564static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
48565 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
48566}
48567static void *_p_wxMenuEventTo_p_wxObject(void *x) {
48568 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
48569}
48570static void *_p_wxPyAppTo_p_wxObject(void *x) {
48571 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
48572}
48573static void *_p_wxCloseEventTo_p_wxObject(void *x) {
48574 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
48575}
48576static void *_p_wxMouseEventTo_p_wxObject(void *x) {
48577 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
48578}
48579static void *_p_wxEraseEventTo_p_wxObject(void *x) {
48580 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
48581}
48582static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) {
48583 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
48584}
48585static void *_p_wxTreeEventTo_p_wxObject(void *x) {
48586 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
48587}
48588static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
48589 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
48590}
48591static void *_p_wxCommandEventTo_p_wxObject(void *x) {
48592 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
48593}
48594static void *_p_wxStaticTextTo_p_wxObject(void *x) {
48595 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
48596}
48597static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
48598 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
48599}
48600static void *_p_wxFocusEventTo_p_wxObject(void *x) {
48601 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
48602}
48603static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
48604 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
48605}
48606static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) {
48607 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
48608}
b850e7f3
RD
48609static void *_p_wxColourPickerCtrlTo_p_wxObject(void *x) {
48610 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
48611}
48612static void *_p_wxFilePickerCtrlTo_p_wxObject(void *x) {
48613 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
48614}
48615static void *_p_wxDirPickerCtrlTo_p_wxObject(void *x) {
48616 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
48617}
48618static void *_p_wxFontPickerCtrlTo_p_wxObject(void *x) {
48619 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
48620}
1bd55598
RD
48621static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
48622 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
48623}
704eda0c
RD
48624static void *_p_wxHyperlinkCtrlTo_p_wxObject(void *x) {
48625 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
48626}
1bd55598
RD
48627static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
48628 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
48629}
48630static void *_p_wxToolBarTo_p_wxObject(void *x) {
48631 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
48632}
48633static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
48634 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
48635}
48636static void *_p_wxValidatorTo_p_wxObject(void *x) {
48637 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
48638}
5172800e
RD
48639static void *_p_wxCollapsiblePaneTo_p_wxWindow(void *x) {
48640 return (void *)((wxWindow *) (wxControl *) ((wxCollapsiblePane *) x));
48641}
1bd55598
RD
48642static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
48643 return (void *)((wxWindow *) ((wxMenuBar *) x));
48644}
48645static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) {
48646 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x));
48647}
48648static void *_p_wxToolBarTo_p_wxWindow(void *x) {
48649 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
48650}
b850e7f3
RD
48651static void *_p_wxPickerBaseTo_p_wxWindow(void *x) {
48652 return (void *)((wxWindow *) (wxControl *) ((wxPickerBase *) x));
48653}
1bd55598
RD
48654static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
48655 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
48656}
48657static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
48658 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
48659}
3f7f284d
RD
48660static void *_p_wxSearchCtrlTo_p_wxWindow(void *x) {
48661 return (void *)((wxWindow *) (wxControl *)(wxTextCtrl *) ((wxSearchCtrl *) x));
48662}
1bd55598
RD
48663static void *_p_wxToolbookTo_p_wxWindow(void *x) {
48664 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
48665}
48666static void *_p_wxControlTo_p_wxWindow(void *x) {
48667 return (void *)((wxWindow *) ((wxControl *) x));
48668}
48669static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
48670 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
48671}
48672static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
48673 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
48674}
48675static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
48676 return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x));
48677}
48678static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
48679 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
48680}
48681static void *_p_wxPyControlTo_p_wxWindow(void *x) {
48682 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
48683}
48684static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
48685 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
48686}
48687static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
48688 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
48689}
48690static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
48691 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
48692}
48693static void *_p_wxGaugeTo_p_wxWindow(void *x) {
48694 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
48695}
48696static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
48697 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
48698}
48699static void *_p_wxChoicebookTo_p_wxWindow(void *x) {
48700 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
48701}
48702static void *_p_wxListbookTo_p_wxWindow(void *x) {
48703 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
48704}
704eda0c
RD
48705static void *_p_wxHyperlinkCtrlTo_p_wxWindow(void *x) {
48706 return (void *)((wxWindow *) (wxControl *) ((wxHyperlinkCtrl *) x));
48707}
1bd55598
RD
48708static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
48709 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
48710}
48711static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
48712 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
48713}
48714static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
48715 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
48716}
48717static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
48718 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
48719}
48720static void *_p_wxChoiceTo_p_wxWindow(void *x) {
48721 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
48722}
48723static void *_p_wxListBoxTo_p_wxWindow(void *x) {
48724 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
48725}
48726static void *_p_wxListViewTo_p_wxWindow(void *x) {
48727 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
48728}
48729static void *_p_wxNotebookTo_p_wxWindow(void *x) {
48730 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
48731}
48732static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
48733 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
48734}
48735static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
48736 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
48737}
48738static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
48739 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
48740}
48741static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
48742 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
48743}
48744static void *_p_wxSliderTo_p_wxWindow(void *x) {
48745 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
48746}
48747static void *_p_wxTreebookTo_p_wxWindow(void *x) {
48748 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
48749}
48750static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
48751 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
48752}
48753static void *_p_wxButtonTo_p_wxWindow(void *x) {
48754 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
48755}
48756static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
48757 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
48758}
48759static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
48760 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
48761}
48762static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) {
48763 return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x));
48764}
b850e7f3
RD
48765static void *_p_wxColourPickerCtrlTo_p_wxWindow(void *x) {
48766 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
48767}
48768static void *_p_wxFilePickerCtrlTo_p_wxWindow(void *x) {
48769 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
48770}
48771static void *_p_wxDirPickerCtrlTo_p_wxWindow(void *x) {
48772 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
48773}
48774static void *_p_wxFontPickerCtrlTo_p_wxWindow(void *x) {
48775 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
48776}
1bd55598
RD
48777static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
48778 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
48779}
48780static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
48781 return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
48782}
48783static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
48784 return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
48785}
48786static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
48787 return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
48788}
48789static void *_p_wxTreebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
48790 return (void *)((wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
48791}
48792static void *_p_wxToolbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
48793 return (void *)((wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
48794}
48795static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
48796 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
48797}
704eda0c
RD
48798static void *_p_wxHyperlinkEventTo_p_wxCommandEvent(void *x) {
48799 return (void *)((wxCommandEvent *) ((wxHyperlinkEvent *) x));
48800}
2131d850
RD
48801static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) {
48802 return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x));
48803}
b850e7f3
RD
48804static void *_p_wxColourPickerEventTo_p_wxCommandEvent(void *x) {
48805 return (void *)((wxCommandEvent *) ((wxColourPickerEvent *) x));
48806}
48807static void *_p_wxFileDirPickerEventTo_p_wxCommandEvent(void *x) {
48808 return (void *)((wxCommandEvent *) ((wxFileDirPickerEvent *) x));
48809}
48810static void *_p_wxFontPickerEventTo_p_wxCommandEvent(void *x) {
48811 return (void *)((wxCommandEvent *) ((wxFontPickerEvent *) x));
48812}
1bd55598
RD
48813static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
48814 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
48815}
48816static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
48817 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
48818}
48819static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
48820 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
48821}
48822static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
48823 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
48824}
48825static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
48826 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
48827}
1bd55598
RD
48828static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
48829 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
48830}
2131d850
RD
48831static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
48832 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
48833}
1bd55598
RD
48834static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) {
48835 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
48836}
48837static void *_p_wxTreebookEventTo_p_wxCommandEvent(void *x) {
48838 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
48839}
48840static void *_p_wxToolbookEventTo_p_wxCommandEvent(void *x) {
48841 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
48842}
48843static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
48844 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
48845}
48846static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
48847 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
48848}
48849static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
48850 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
48851}
5172800e
RD
48852static void *_p_wxCollapsiblePaneEventTo_p_wxCommandEvent(void *x) {
48853 return (void *)((wxCommandEvent *) ((wxCollapsiblePaneEvent *) x));
48854}
1bd55598
RD
48855static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) {
48856 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
48857}
48858static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
48859 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
48860}
48861static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
48862 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
48863}
48864static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
48865 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
48866}
48867static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
48868 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
48869}
48870static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
48871 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
48872}
48873static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
48874 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
48875}
48876static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
48877 return (void *)((wxControlWithItems *) ((wxChoice *) x));
48878}
48879static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
48880 return (void *)((wxControlWithItems *) ((wxListBox *) x));
48881}
48882static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
48883 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
48884}
48885static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
48886 return (void *)((wxValidator *) ((wxPyValidator *) x));
48887}
48888static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0};
48889static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
48890static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
48891static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
48892static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
48893static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
48894static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
48895static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
48896static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
48897static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0};
48898static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0};
48899static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
48900static swig_type_info _swigt__p_wxBitmapButton = {"_p_wxBitmapButton", "wxBitmapButton *", 0, 0, (void*)0, 0};
48901static swig_type_info _swigt__p_wxBookCtrlBase = {"_p_wxBookCtrlBase", "wxBookCtrlBase *", 0, 0, (void*)0, 0};
48902static swig_type_info _swigt__p_wxBookCtrlBaseEvent = {"_p_wxBookCtrlBaseEvent", "wxBookCtrlBaseEvent *", 0, 0, (void*)0, 0};
48903static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, (void*)0, 0};
48904static swig_type_info _swigt__p_wxCheckBox = {"_p_wxCheckBox", "wxCheckBox *", 0, 0, (void*)0, 0};
48905static swig_type_info _swigt__p_wxCheckListBox = {"_p_wxCheckListBox", "wxCheckListBox *", 0, 0, (void*)0, 0};
48906static swig_type_info _swigt__p_wxChoice = {"_p_wxChoice", "wxChoice *", 0, 0, (void*)0, 0};
48907static swig_type_info _swigt__p_wxChoicebook = {"_p_wxChoicebook", "wxChoicebook *", 0, 0, (void*)0, 0};
48908static swig_type_info _swigt__p_wxChoicebookEvent = {"_p_wxChoicebookEvent", "wxChoicebookEvent *", 0, 0, (void*)0, 0};
5172800e
RD
48909static swig_type_info _swigt__p_wxCollapsiblePane = {"_p_wxCollapsiblePane", "wxCollapsiblePane *", 0, 0, (void*)0, 0};
48910static swig_type_info _swigt__p_wxCollapsiblePaneEvent = {"_p_wxCollapsiblePaneEvent", "wxCollapsiblePaneEvent *", 0, 0, (void*)0, 0};
1bd55598 48911static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
b850e7f3
RD
48912static swig_type_info _swigt__p_wxColourPickerCtrl = {"_p_wxColourPickerCtrl", "wxColourPickerCtrl *", 0, 0, (void*)0, 0};
48913static swig_type_info _swigt__p_wxColourPickerEvent = {"_p_wxColourPickerEvent", "wxColourPickerEvent *", 0, 0, (void*)0, 0};
1bd55598
RD
48914static swig_type_info _swigt__p_wxComboBox = {"_p_wxComboBox", "wxComboBox *", 0, 0, (void*)0, 0};
48915static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0};
48916static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
2131d850 48917static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
1bd55598
RD
48918static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
48919static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
48920static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
48921static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
48922static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
48923static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
48924static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
48925static swig_type_info _swigt__p_wxContextHelp = {"_p_wxContextHelp", "wxContextHelp *", 0, 0, (void*)0, 0};
48926static swig_type_info _swigt__p_wxContextHelpButton = {"_p_wxContextHelpButton", "wxContextHelpButton *", 0, 0, (void*)0, 0};
48927static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, (void*)0, 0};
48928static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, (void*)0, 0};
48929static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
48930static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
48931static swig_type_info _swigt__p_wxDatePickerCtrl = {"_p_wxDatePickerCtrl", "wxDatePickerCtrl *", 0, 0, (void*)0, 0};
48932static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0};
48933static swig_type_info _swigt__p_wxDirFilterListCtrl = {"_p_wxDirFilterListCtrl", "wxDirFilterListCtrl *", 0, 0, (void*)0, 0};
b850e7f3 48934static swig_type_info _swigt__p_wxDirPickerCtrl = {"_p_wxDirPickerCtrl", "wxDirPickerCtrl *", 0, 0, (void*)0, 0};
1bd55598
RD
48935static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
48936static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
48937static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
48938static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
48939static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
48940static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
48941static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
48942static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
34e0a3bb 48943static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
1bd55598
RD
48944static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
48945static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
48946static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
48947static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
48948static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
48949static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
34e0a3bb 48950static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
1bd55598
RD
48951static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
48952static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
48953static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
48954static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
48955static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
48956static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
48957static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
48958static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
48959static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
48960static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
48961static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
48962static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
48963static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
48964static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
48965static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
b850e7f3
RD
48966static swig_type_info _swigt__p_wxFileDirPickerEvent = {"_p_wxFileDirPickerEvent", "wxFileDirPickerEvent *", 0, 0, (void*)0, 0};
48967static swig_type_info _swigt__p_wxFilePickerCtrl = {"_p_wxFilePickerCtrl", "wxFilePickerCtrl *", 0, 0, (void*)0, 0};
1bd55598 48968static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
b850e7f3
RD
48969static swig_type_info _swigt__p_wxFontPickerCtrl = {"_p_wxFontPickerCtrl", "wxFontPickerCtrl *", 0, 0, (void*)0, 0};
48970static swig_type_info _swigt__p_wxFontPickerEvent = {"_p_wxFontPickerEvent", "wxFontPickerEvent *", 0, 0, (void*)0, 0};
1bd55598
RD
48971static swig_type_info _swigt__p_wxGauge = {"_p_wxGauge", "wxGauge *", 0, 0, (void*)0, 0};
48972static swig_type_info _swigt__p_wxGenericDirCtrl = {"_p_wxGenericDirCtrl", "wxGenericDirCtrl *", 0, 0, (void*)0, 0};
48973static swig_type_info _swigt__p_wxGenericDragImage = {"_p_wxGenericDragImage", "wxGenericDragImage *", 0, 0, (void*)0, 0};
48974static swig_type_info _swigt__p_wxHelpEvent = {"_p_wxHelpEvent", "wxHelpEvent *", 0, 0, (void*)0, 0};
48975static swig_type_info _swigt__p_wxHelpProvider = {"_p_wxHelpProvider", "wxHelpProvider *", 0, 0, (void*)0, 0};
704eda0c
RD
48976static swig_type_info _swigt__p_wxHyperlinkCtrl = {"_p_wxHyperlinkCtrl", "wxHyperlinkCtrl *", 0, 0, (void*)0, 0};
48977static swig_type_info _swigt__p_wxHyperlinkEvent = {"_p_wxHyperlinkEvent", "wxHyperlinkEvent *", 0, 0, (void*)0, 0};
1bd55598
RD
48978static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
48979static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
48980static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0};
48981static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, (void*)0, 0};
48982static swig_type_info _swigt__p_wxListBox = {"_p_wxListBox", "wxListBox *", 0, 0, (void*)0, 0};
48983static swig_type_info _swigt__p_wxListEvent = {"_p_wxListEvent", "wxListEvent *", 0, 0, (void*)0, 0};
48984static swig_type_info _swigt__p_wxListItem = {"_p_wxListItem", "wxListItem *", 0, 0, (void*)0, 0};
48985static swig_type_info _swigt__p_wxListItemAttr = {"_p_wxListItemAttr", "wxListItemAttr *", 0, 0, (void*)0, 0};
48986static swig_type_info _swigt__p_wxListView = {"_p_wxListView", "wxListView *", 0, 0, (void*)0, 0};
48987static swig_type_info _swigt__p_wxListbook = {"_p_wxListbook", "wxListbook *", 0, 0, (void*)0, 0};
48988static swig_type_info _swigt__p_wxListbookEvent = {"_p_wxListbookEvent", "wxListbookEvent *", 0, 0, (void*)0, 0};
48989static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
3f7f284d 48990static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", "wxMenu *", 0, 0, (void*)0, 0};
1bd55598
RD
48991static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, (void*)0, 0};
48992static swig_type_info _swigt__p_wxNotebook = {"_p_wxNotebook", "wxNotebook *", 0, 0, (void*)0, 0};
48993static swig_type_info _swigt__p_wxNotebookEvent = {"_p_wxNotebookEvent", "wxNotebookEvent *", 0, 0, (void*)0, 0};
48994static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0};
48995static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
48996static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
1bd55598 48997static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
34e0a3bb 48998static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
1bd55598
RD
48999static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
49000static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
49001static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
49002static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
49003static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
49004static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
49005static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
49006static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
49007static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
49008static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
1bd55598
RD
49009static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
49010static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
49011static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
3f7f284d 49012static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
5172800e 49013static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
b850e7f3
RD
49014static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
49015static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
49016static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
49017static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
704eda0c 49018static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
2131d850 49019static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
1bd55598
RD
49020static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
49021static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
580080c5 49022static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0};
1bd55598 49023static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
580080c5 49024static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
1bd55598
RD
49025static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0};
49026static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
49027static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
b850e7f3 49028static swig_type_info _swigt__p_wxPickerBase = {"_p_wxPickerBase", "wxPickerBase *", 0, 0, (void*)0, 0};
1bd55598
RD
49029static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
49030static swig_type_info _swigt__p_wxPyControl = {"_p_wxPyControl", "wxPyControl *", 0, 0, (void*)0, 0};
49031static swig_type_info _swigt__p_wxPyListCtrl = {"_p_wxPyListCtrl", "wxPyListCtrl *", 0, 0, (void*)0, 0};
49032static swig_type_info _swigt__p_wxPyTreeCtrl = {"_p_wxPyTreeCtrl", "wxPyTreeCtrl *", 0, 0, (void*)0, 0};
49033static swig_type_info _swigt__p_wxPyTreeItemData = {"_p_wxPyTreeItemData", "wxPyTreeItemData *", 0, 0, (void*)0, 0};
49034static swig_type_info _swigt__p_wxRadioBox = {"_p_wxRadioBox", "wxRadioBox *", 0, 0, (void*)0, 0};
49035static swig_type_info _swigt__p_wxRadioButton = {"_p_wxRadioButton", "wxRadioButton *", 0, 0, (void*)0, 0};
49036static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
49037static swig_type_info _swigt__p_wxScrollBar = {"_p_wxScrollBar", "wxScrollBar *", 0, 0, (void*)0, 0};
3f7f284d 49038static swig_type_info _swigt__p_wxSearchCtrl = {"_p_wxSearchCtrl", "wxSearchCtrl *", 0, 0, (void*)0, 0};
1bd55598
RD
49039static swig_type_info _swigt__p_wxSimpleHelpProvider = {"_p_wxSimpleHelpProvider", "wxSimpleHelpProvider *", 0, 0, (void*)0, 0};
49040static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
49041static swig_type_info _swigt__p_wxSlider = {"_p_wxSlider", "wxSlider *", 0, 0, (void*)0, 0};
49042static swig_type_info _swigt__p_wxSpinButton = {"_p_wxSpinButton", "wxSpinButton *", 0, 0, (void*)0, 0};
49043static swig_type_info _swigt__p_wxSpinCtrl = {"_p_wxSpinCtrl", "wxSpinCtrl *", 0, 0, (void*)0, 0};
49044static swig_type_info _swigt__p_wxSpinEvent = {"_p_wxSpinEvent", "wxSpinEvent *", 0, 0, (void*)0, 0};
49045static swig_type_info _swigt__p_wxStaticBitmap = {"_p_wxStaticBitmap", "wxStaticBitmap *", 0, 0, (void*)0, 0};
49046static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, (void*)0, 0};
49047static swig_type_info _swigt__p_wxStaticLine = {"_p_wxStaticLine", "wxStaticLine *", 0, 0, (void*)0, 0};
49048static swig_type_info _swigt__p_wxStaticText = {"_p_wxStaticText", "wxStaticText *", 0, 0, (void*)0, 0};
49049static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
49050static swig_type_info _swigt__p_wxTextAttr = {"_p_wxTextAttr", "wxTextAttr *", 0, 0, (void*)0, 0};
49051static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, (void*)0, 0};
49052static swig_type_info _swigt__p_wxTextUrlEvent = {"_p_wxTextUrlEvent", "wxTextUrlEvent *", 0, 0, (void*)0, 0};
49053static swig_type_info _swigt__p_wxToggleButton = {"_p_wxToggleButton", "wxToggleButton *", 0, 0, (void*)0, 0};
49054static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0};
49055static swig_type_info _swigt__p_wxToolBarBase = {"_p_wxToolBarBase", "wxToolBarBase *", 0, 0, (void*)0, 0};
49056static swig_type_info _swigt__p_wxToolBarToolBase = {"_p_wxToolBarToolBase", "wxToolBarToolBase *", 0, 0, (void*)0, 0};
49057static swig_type_info _swigt__p_wxToolbook = {"_p_wxToolbook", "wxToolbook *", 0, 0, (void*)0, 0};
49058static swig_type_info _swigt__p_wxToolbookEvent = {"_p_wxToolbookEvent", "wxToolbookEvent *", 0, 0, (void*)0, 0};
1bd55598
RD
49059static swig_type_info _swigt__p_wxTreeEvent = {"_p_wxTreeEvent", "wxTreeEvent *", 0, 0, (void*)0, 0};
49060static swig_type_info _swigt__p_wxTreeItemId = {"_p_wxTreeItemId", "wxTreeItemId *", 0, 0, (void*)0, 0};
49061static swig_type_info _swigt__p_wxTreebook = {"_p_wxTreebook", "wxTreebook *", 0, 0, (void*)0, 0};
49062static swig_type_info _swigt__p_wxTreebookEvent = {"_p_wxTreebookEvent", "wxTreebookEvent *", 0, 0, (void*)0, 0};
49063static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0};
49064static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0};
49065static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
b850e7f3 49066static swig_type_info _swigt__p_wxWindowBase = {"_p_wxWindowBase", "wxWindowBase *", 0, 0, (void*)0, 0};
1bd55598
RD
49067
49068static swig_type_info *swig_type_initial[] = {
49069 &_swigt__p_bool,
49070 &_swigt__p_char,
49071 &_swigt__p_form_ops_t,
49072 &_swigt__p_int,
49073 &_swigt__p_long,
49074 &_swigt__p_unsigned_char,
49075 &_swigt__p_unsigned_int,
49076 &_swigt__p_unsigned_long,
49077 &_swigt__p_void,
49078 &_swigt__p_wxANIHandler,
49079 &_swigt__p_wxAcceleratorTable,
49080 &_swigt__p_wxActivateEvent,
49081 &_swigt__p_wxArrayInt,
49082 &_swigt__p_wxArrayString,
49083 &_swigt__p_wxBMPHandler,
49084 &_swigt__p_wxBitmap,
49085 &_swigt__p_wxBitmapButton,
49086 &_swigt__p_wxBookCtrlBase,
49087 &_swigt__p_wxBookCtrlBaseEvent,
49088 &_swigt__p_wxBoxSizer,
49089 &_swigt__p_wxButton,
49090 &_swigt__p_wxCURHandler,
49091 &_swigt__p_wxCheckBox,
49092 &_swigt__p_wxCheckListBox,
49093 &_swigt__p_wxChildFocusEvent,
49094 &_swigt__p_wxChoice,
49095 &_swigt__p_wxChoicebook,
49096 &_swigt__p_wxChoicebookEvent,
2131d850 49097 &_swigt__p_wxClipboardTextEvent,
1bd55598 49098 &_swigt__p_wxCloseEvent,
5172800e
RD
49099 &_swigt__p_wxCollapsiblePane,
49100 &_swigt__p_wxCollapsiblePaneEvent,
1bd55598 49101 &_swigt__p_wxColour,
b850e7f3
RD
49102 &_swigt__p_wxColourPickerCtrl,
49103 &_swigt__p_wxColourPickerEvent,
1bd55598
RD
49104 &_swigt__p_wxComboBox,
49105 &_swigt__p_wxCommandEvent,
49106 &_swigt__p_wxContextHelp,
49107 &_swigt__p_wxContextHelpButton,
49108 &_swigt__p_wxContextMenuEvent,
49109 &_swigt__p_wxControl,
49110 &_swigt__p_wxControlWithItems,
49111 &_swigt__p_wxCursor,
49112 &_swigt__p_wxDC,
49113 &_swigt__p_wxDateEvent,
49114 &_swigt__p_wxDatePickerCtrl,
49115 &_swigt__p_wxDateTime,
49116 &_swigt__p_wxDirFilterListCtrl,
b850e7f3 49117 &_swigt__p_wxDirPickerCtrl,
1bd55598
RD
49118 &_swigt__p_wxDisplayChangedEvent,
49119 &_swigt__p_wxDropFilesEvent,
49120 &_swigt__p_wxDuplexMode,
49121 &_swigt__p_wxEraseEvent,
49122 &_swigt__p_wxEvent,
49123 &_swigt__p_wxEvtHandler,
49124 &_swigt__p_wxFSFile,
b850e7f3
RD
49125 &_swigt__p_wxFileDirPickerEvent,
49126 &_swigt__p_wxFilePickerCtrl,
1bd55598
RD
49127 &_swigt__p_wxFileSystem,
49128 &_swigt__p_wxFlexGridSizer,
49129 &_swigt__p_wxFocusEvent,
49130 &_swigt__p_wxFont,
b850e7f3
RD
49131 &_swigt__p_wxFontPickerCtrl,
49132 &_swigt__p_wxFontPickerEvent,
1bd55598
RD
49133 &_swigt__p_wxGBSizerItem,
49134 &_swigt__p_wxGIFHandler,
49135 &_swigt__p_wxGauge,
49136 &_swigt__p_wxGenericDirCtrl,
49137 &_swigt__p_wxGenericDragImage,
49138 &_swigt__p_wxGridBagSizer,
49139 &_swigt__p_wxGridSizer,
49140 &_swigt__p_wxHelpEvent,
49141 &_swigt__p_wxHelpProvider,
704eda0c
RD
49142 &_swigt__p_wxHyperlinkCtrl,
49143 &_swigt__p_wxHyperlinkEvent,
1bd55598
RD
49144 &_swigt__p_wxICOHandler,
49145 &_swigt__p_wxIcon,
49146 &_swigt__p_wxIconizeEvent,
49147 &_swigt__p_wxIdleEvent,
49148 &_swigt__p_wxImage,
49149 &_swigt__p_wxImageHandler,
49150 &_swigt__p_wxImageList,
49151 &_swigt__p_wxIndividualLayoutConstraint,
49152 &_swigt__p_wxInitDialogEvent,
49153 &_swigt__p_wxItemContainer,
49154 &_swigt__p_wxJPEGHandler,
49155 &_swigt__p_wxKeyEvent,
49156 &_swigt__p_wxLayoutConstraints,
49157 &_swigt__p_wxListBox,
49158 &_swigt__p_wxListEvent,
49159 &_swigt__p_wxListItem,
49160 &_swigt__p_wxListItemAttr,
49161 &_swigt__p_wxListView,
49162 &_swigt__p_wxListbook,
49163 &_swigt__p_wxListbookEvent,
49164 &_swigt__p_wxMaximizeEvent,
49165 &_swigt__p_wxMemoryDC,
49166 &_swigt__p_wxMenu,
49167 &_swigt__p_wxMenuBar,
49168 &_swigt__p_wxMenuEvent,
49169 &_swigt__p_wxMenuItem,
49170 &_swigt__p_wxMouseCaptureChangedEvent,
34e0a3bb 49171 &_swigt__p_wxMouseCaptureLostEvent,
1bd55598
RD
49172 &_swigt__p_wxMouseEvent,
49173 &_swigt__p_wxMoveEvent,
49174 &_swigt__p_wxNavigationKeyEvent,
49175 &_swigt__p_wxNcPaintEvent,
49176 &_swigt__p_wxNotebook,
49177 &_swigt__p_wxNotebookEvent,
49178 &_swigt__p_wxNotifyEvent,
49179 &_swigt__p_wxObject,
49180 &_swigt__p_wxPCXHandler,
49181 &_swigt__p_wxPNGHandler,
49182 &_swigt__p_wxPNMHandler,
49183 &_swigt__p_wxPaintEvent,
49184 &_swigt__p_wxPaletteChangedEvent,
49185 &_swigt__p_wxPaperSize,
b850e7f3 49186 &_swigt__p_wxPickerBase,
1bd55598
RD
49187 &_swigt__p_wxPoint,
49188 &_swigt__p_wxPyApp,
49189 &_swigt__p_wxPyCommandEvent,
49190 &_swigt__p_wxPyControl,
49191 &_swigt__p_wxPyEvent,
49192 &_swigt__p_wxPyImageHandler,
49193 &_swigt__p_wxPyListCtrl,
49194 &_swigt__p_wxPySizer,
49195 &_swigt__p_wxPyTreeCtrl,
49196 &_swigt__p_wxPyTreeItemData,
49197 &_swigt__p_wxPyValidator,
49198 &_swigt__p_wxQueryNewPaletteEvent,
49199 &_swigt__p_wxRadioBox,
49200 &_swigt__p_wxRadioButton,
49201 &_swigt__p_wxRect,
49202 &_swigt__p_wxScrollBar,
49203 &_swigt__p_wxScrollEvent,
49204 &_swigt__p_wxScrollWinEvent,
3f7f284d 49205 &_swigt__p_wxSearchCtrl,
1bd55598
RD
49206 &_swigt__p_wxSetCursorEvent,
49207 &_swigt__p_wxShowEvent,
49208 &_swigt__p_wxSimpleHelpProvider,
49209 &_swigt__p_wxSize,
49210 &_swigt__p_wxSizeEvent,
49211 &_swigt__p_wxSizer,
49212 &_swigt__p_wxSizerItem,
49213 &_swigt__p_wxSlider,
49214 &_swigt__p_wxSpinButton,
49215 &_swigt__p_wxSpinCtrl,
49216 &_swigt__p_wxSpinEvent,
49217 &_swigt__p_wxStaticBitmap,
49218 &_swigt__p_wxStaticBox,
49219 &_swigt__p_wxStaticBoxSizer,
49220 &_swigt__p_wxStaticLine,
49221 &_swigt__p_wxStaticText,
49222 &_swigt__p_wxStdDialogButtonSizer,
49223 &_swigt__p_wxString,
49224 &_swigt__p_wxSysColourChangedEvent,
580080c5 49225 &_swigt__p_wxTGAHandler,
1bd55598
RD
49226 &_swigt__p_wxTIFFHandler,
49227 &_swigt__p_wxTextAttr,
49228 &_swigt__p_wxTextCtrl,
49229 &_swigt__p_wxTextUrlEvent,
49230 &_swigt__p_wxToggleButton,
49231 &_swigt__p_wxToolBar,
49232 &_swigt__p_wxToolBarBase,
49233 &_swigt__p_wxToolBarToolBase,
49234 &_swigt__p_wxToolbook,
49235 &_swigt__p_wxToolbookEvent,
1bd55598
RD
49236 &_swigt__p_wxTreeEvent,
49237 &_swigt__p_wxTreeItemId,
49238 &_swigt__p_wxTreebook,
49239 &_swigt__p_wxTreebookEvent,
49240 &_swigt__p_wxUpdateUIEvent,
49241 &_swigt__p_wxValidator,
49242 &_swigt__p_wxVisualAttributes,
49243 &_swigt__p_wxWindow,
b850e7f3 49244 &_swigt__p_wxWindowBase,
1bd55598
RD
49245 &_swigt__p_wxWindowCreateEvent,
49246 &_swigt__p_wxWindowDestroyEvent,
49247 &_swigt__p_wxXPMHandler,
49248};
49249
49250static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}};
49251static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
49252static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
49253static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
49254static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
49255static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
49256static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
49257static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
49258static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
49259static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}};
49260static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}};
49261static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
49262static 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}};
49263static 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}};
49264static 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}};
49265static 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}};
49266static swig_cast_info _swigc__p_wxCheckBox[] = { {&_swigt__p_wxCheckBox, 0, 0, 0},{0, 0, 0, 0}};
49267static swig_cast_info _swigc__p_wxCheckListBox[] = { {&_swigt__p_wxCheckListBox, 0, 0, 0},{0, 0, 0, 0}};
49268static 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}};
49269static swig_cast_info _swigc__p_wxChoicebook[] = { {&_swigt__p_wxChoicebook, 0, 0, 0},{0, 0, 0, 0}};
49270static swig_cast_info _swigc__p_wxChoicebookEvent[] = { {&_swigt__p_wxChoicebookEvent, 0, 0, 0},{0, 0, 0, 0}};
5172800e
RD
49271static swig_cast_info _swigc__p_wxCollapsiblePane[] = { {&_swigt__p_wxCollapsiblePane, 0, 0, 0},{0, 0, 0, 0}};
49272static swig_cast_info _swigc__p_wxCollapsiblePaneEvent[] = { {&_swigt__p_wxCollapsiblePaneEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 49273static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
49274static swig_cast_info _swigc__p_wxColourPickerCtrl[] = { {&_swigt__p_wxColourPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
49275static swig_cast_info _swigc__p_wxColourPickerEvent[] = { {&_swigt__p_wxColourPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
49276static swig_cast_info _swigc__p_wxComboBox[] = { {&_swigt__p_wxComboBox, 0, 0, 0},{0, 0, 0, 0}};
49277static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
2131d850 49278static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
49279static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
49280static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
49281static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
49282static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
49283static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
49284static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
49285static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
5172800e 49286static swig_cast_info _swigc__p_wxCommandEvent[] = { {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxCommandEvent, 0, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxCollapsiblePaneEvent, _p_wxCollapsiblePaneEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
49287static swig_cast_info _swigc__p_wxContextHelp[] = { {&_swigt__p_wxContextHelp, 0, 0, 0},{0, 0, 0, 0}};
49288static swig_cast_info _swigc__p_wxContextHelpButton[] = { {&_swigt__p_wxContextHelpButton, 0, 0, 0},{0, 0, 0, 0}};
3f7f284d 49289static swig_cast_info _swigc__p_wxControl[] = { {&_swigt__p_wxCollapsiblePane, _p_wxCollapsiblePaneTo_p_wxControl, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxControl, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxSearchCtrl, _p_wxSearchCtrlTo_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
49290static 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}};
49291static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
49292static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}};
49293static swig_cast_info _swigc__p_wxDatePickerCtrl[] = { {&_swigt__p_wxDatePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
49294static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}};
49295static swig_cast_info _swigc__p_wxDirFilterListCtrl[] = { {&_swigt__p_wxDirFilterListCtrl, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 49296static swig_cast_info _swigc__p_wxDirPickerCtrl[] = { {&_swigt__p_wxDirPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
49297static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
49298static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
49299static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
49300static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
49301static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
49302static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
49303static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 49304static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
49305static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
49306static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
49307static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
49308static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
49309static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
49310static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 49311static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
49312static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
49313static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
49314static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
49315static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
49316static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
49317static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
49318static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
49319static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
49320static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
49321static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
49322static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
5172800e 49323static swig_cast_info _swigc__p_wxEvent[] = { {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEvent, 0, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCollapsiblePaneEvent, _p_wxCollapsiblePaneEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxEvent, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
49324static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
49325static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
49326static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
3f7f284d 49327static swig_cast_info _swigc__p_wxEvtHandler[] = { {&_swigt__p_wxCollapsiblePane, _p_wxCollapsiblePaneTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSearchCtrl, _p_wxSearchCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxEvtHandler, 0, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxEvtHandler, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
49328static swig_cast_info _swigc__p_wxFileDirPickerEvent[] = { {&_swigt__p_wxFileDirPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
49329static swig_cast_info _swigc__p_wxFilePickerCtrl[] = { {&_swigt__p_wxFilePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 49330static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
49331static swig_cast_info _swigc__p_wxFontPickerCtrl[] = { {&_swigt__p_wxFontPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
49332static swig_cast_info _swigc__p_wxFontPickerEvent[] = { {&_swigt__p_wxFontPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
49333static swig_cast_info _swigc__p_wxGauge[] = { {&_swigt__p_wxGauge, 0, 0, 0},{0, 0, 0, 0}};
49334static swig_cast_info _swigc__p_wxGenericDirCtrl[] = { {&_swigt__p_wxGenericDirCtrl, 0, 0, 0},{0, 0, 0, 0}};
49335static swig_cast_info _swigc__p_wxGenericDragImage[] = { {&_swigt__p_wxGenericDragImage, 0, 0, 0},{0, 0, 0, 0}};
49336static swig_cast_info _swigc__p_wxHelpEvent[] = { {&_swigt__p_wxHelpEvent, 0, 0, 0},{0, 0, 0, 0}};
49337static 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
49338static swig_cast_info _swigc__p_wxHyperlinkCtrl[] = { {&_swigt__p_wxHyperlinkCtrl, 0, 0, 0},{0, 0, 0, 0}};
49339static swig_cast_info _swigc__p_wxHyperlinkEvent[] = { {&_swigt__p_wxHyperlinkEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
49340static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
49341static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
49342static 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}};
49343static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
49344static 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}};
49345static swig_cast_info _swigc__p_wxListEvent[] = { {&_swigt__p_wxListEvent, 0, 0, 0},{0, 0, 0, 0}};
49346static swig_cast_info _swigc__p_wxListItem[] = { {&_swigt__p_wxListItem, 0, 0, 0},{0, 0, 0, 0}};
49347static swig_cast_info _swigc__p_wxListItemAttr[] = { {&_swigt__p_wxListItemAttr, 0, 0, 0},{0, 0, 0, 0}};
49348static swig_cast_info _swigc__p_wxListView[] = { {&_swigt__p_wxListView, 0, 0, 0},{0, 0, 0, 0}};
49349static swig_cast_info _swigc__p_wxListbook[] = { {&_swigt__p_wxListbook, 0, 0, 0},{0, 0, 0, 0}};
49350static swig_cast_info _swigc__p_wxListbookEvent[] = { {&_swigt__p_wxListbookEvent, 0, 0, 0},{0, 0, 0, 0}};
49351static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}};
3f7f284d 49352static swig_cast_info _swigc__p_wxMenu[] = { {&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
49353static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
49354static swig_cast_info _swigc__p_wxNotebook[] = { {&_swigt__p_wxNotebook, 0, 0, 0},{0, 0, 0, 0}};
49355static swig_cast_info _swigc__p_wxNotebookEvent[] = { {&_swigt__p_wxNotebookEvent, 0, 0, 0},{0, 0, 0, 0}};
49356static 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}};
49357static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 49358static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 49359static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
49360static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
49361static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
49362static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
49363static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
49364static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
49365static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
49366static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
49367static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
49368static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
49369static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
49370static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
49371static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
49372static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
3f7f284d 49373static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
5172800e 49374static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
49375static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
49376static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
49377static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
49378static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
704eda0c 49379static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
2131d850 49380static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
49381static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
49382static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
580080c5 49383static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 49384static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
580080c5 49385static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
49386static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
49387static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
3f7f284d 49388static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSearchCtrl, _p_wxSearchCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxObject, 0, 0}, {&_swigt__p_wxCollapsiblePaneEvent, _p_wxCollapsiblePaneEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelp, _p_wxContextHelpTo_p_wxObject, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxObject, 0, 0}, {&_swigt__p_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_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTGAHandler, _p_wxTGAHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxListItem, _p_wxListItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGenericDragImage, _p_wxGenericDragImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxCollapsiblePane, _p_wxCollapsiblePaneTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarToolBase, _p_wxToolBarToolBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
1bd55598 49389static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 49390static 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
49391static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
49392static swig_cast_info _swigc__p_wxPyControl[] = { {&_swigt__p_wxPyControl, 0, 0, 0},{0, 0, 0, 0}};
49393static 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}};
49394static swig_cast_info _swigc__p_wxPyTreeCtrl[] = { {&_swigt__p_wxPyTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
49395static swig_cast_info _swigc__p_wxPyTreeItemData[] = { {&_swigt__p_wxPyTreeItemData, 0, 0, 0},{0, 0, 0, 0}};
49396static swig_cast_info _swigc__p_wxRadioBox[] = { {&_swigt__p_wxRadioBox, 0, 0, 0},{0, 0, 0, 0}};
49397static swig_cast_info _swigc__p_wxRadioButton[] = { {&_swigt__p_wxRadioButton, 0, 0, 0},{0, 0, 0, 0}};
49398static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
49399static swig_cast_info _swigc__p_wxScrollBar[] = { {&_swigt__p_wxScrollBar, 0, 0, 0},{0, 0, 0, 0}};
3f7f284d 49400static swig_cast_info _swigc__p_wxSearchCtrl[] = { {&_swigt__p_wxSearchCtrl, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
49401static swig_cast_info _swigc__p_wxSimpleHelpProvider[] = { {&_swigt__p_wxSimpleHelpProvider, 0, 0, 0},{0, 0, 0, 0}};
49402static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
49403static swig_cast_info _swigc__p_wxSlider[] = { {&_swigt__p_wxSlider, 0, 0, 0},{0, 0, 0, 0}};
49404static swig_cast_info _swigc__p_wxSpinButton[] = { {&_swigt__p_wxSpinButton, 0, 0, 0},{0, 0, 0, 0}};
49405static swig_cast_info _swigc__p_wxSpinCtrl[] = { {&_swigt__p_wxSpinCtrl, 0, 0, 0},{0, 0, 0, 0}};
49406static swig_cast_info _swigc__p_wxSpinEvent[] = { {&_swigt__p_wxSpinEvent, 0, 0, 0},{0, 0, 0, 0}};
49407static swig_cast_info _swigc__p_wxStaticBitmap[] = { {&_swigt__p_wxStaticBitmap, 0, 0, 0},{0, 0, 0, 0}};
49408static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}};
49409static swig_cast_info _swigc__p_wxStaticLine[] = { {&_swigt__p_wxStaticLine, 0, 0, 0},{0, 0, 0, 0}};
49410static swig_cast_info _swigc__p_wxStaticText[] = { {&_swigt__p_wxStaticText, 0, 0, 0},{0, 0, 0, 0}};
49411static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
49412static swig_cast_info _swigc__p_wxTextAttr[] = { {&_swigt__p_wxTextAttr, 0, 0, 0},{0, 0, 0, 0}};
3f7f284d 49413static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0}, {&_swigt__p_wxSearchCtrl, _p_wxSearchCtrlTo_p_wxTextCtrl, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
49414static swig_cast_info _swigc__p_wxTextUrlEvent[] = { {&_swigt__p_wxTextUrlEvent, 0, 0, 0},{0, 0, 0, 0}};
49415static swig_cast_info _swigc__p_wxToggleButton[] = { {&_swigt__p_wxToggleButton, 0, 0, 0},{0, 0, 0, 0}};
49416static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}};
49417static 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}};
49418static swig_cast_info _swigc__p_wxToolBarToolBase[] = { {&_swigt__p_wxToolBarToolBase, 0, 0, 0},{0, 0, 0, 0}};
49419static swig_cast_info _swigc__p_wxToolbook[] = { {&_swigt__p_wxToolbook, 0, 0, 0},{0, 0, 0, 0}};
49420static swig_cast_info _swigc__p_wxToolbookEvent[] = { {&_swigt__p_wxToolbookEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
49421static swig_cast_info _swigc__p_wxTreeEvent[] = { {&_swigt__p_wxTreeEvent, 0, 0, 0},{0, 0, 0, 0}};
49422static swig_cast_info _swigc__p_wxTreeItemId[] = { {&_swigt__p_wxTreeItemId, 0, 0, 0},{0, 0, 0, 0}};
49423static swig_cast_info _swigc__p_wxTreebook[] = { {&_swigt__p_wxTreebook, 0, 0, 0},{0, 0, 0, 0}};
49424static swig_cast_info _swigc__p_wxTreebookEvent[] = { {&_swigt__p_wxTreebookEvent, 0, 0, 0},{0, 0, 0, 0}};
49425static 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}};
49426static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}};
3f7f284d 49427static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxCollapsiblePane, _p_wxCollapsiblePaneTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSearchCtrl, _p_wxSearchCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxWindow, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxWindow, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxWindow, 0, 0},{0, 0, 0, 0}};
b850e7f3 49428static swig_cast_info _swigc__p_wxWindowBase[] = { {&_swigt__p_wxWindowBase, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
49429
49430static swig_cast_info *swig_cast_initial[] = {
49431 _swigc__p_bool,
49432 _swigc__p_char,
49433 _swigc__p_form_ops_t,
49434 _swigc__p_int,
49435 _swigc__p_long,
49436 _swigc__p_unsigned_char,
49437 _swigc__p_unsigned_int,
49438 _swigc__p_unsigned_long,
49439 _swigc__p_void,
49440 _swigc__p_wxANIHandler,
49441 _swigc__p_wxAcceleratorTable,
49442 _swigc__p_wxActivateEvent,
49443 _swigc__p_wxArrayInt,
49444 _swigc__p_wxArrayString,
49445 _swigc__p_wxBMPHandler,
49446 _swigc__p_wxBitmap,
49447 _swigc__p_wxBitmapButton,
49448 _swigc__p_wxBookCtrlBase,
49449 _swigc__p_wxBookCtrlBaseEvent,
49450 _swigc__p_wxBoxSizer,
49451 _swigc__p_wxButton,
49452 _swigc__p_wxCURHandler,
49453 _swigc__p_wxCheckBox,
49454 _swigc__p_wxCheckListBox,
49455 _swigc__p_wxChildFocusEvent,
49456 _swigc__p_wxChoice,
49457 _swigc__p_wxChoicebook,
49458 _swigc__p_wxChoicebookEvent,
2131d850 49459 _swigc__p_wxClipboardTextEvent,
1bd55598 49460 _swigc__p_wxCloseEvent,
5172800e
RD
49461 _swigc__p_wxCollapsiblePane,
49462 _swigc__p_wxCollapsiblePaneEvent,
1bd55598 49463 _swigc__p_wxColour,
b850e7f3
RD
49464 _swigc__p_wxColourPickerCtrl,
49465 _swigc__p_wxColourPickerEvent,
1bd55598
RD
49466 _swigc__p_wxComboBox,
49467 _swigc__p_wxCommandEvent,
49468 _swigc__p_wxContextHelp,
49469 _swigc__p_wxContextHelpButton,
49470 _swigc__p_wxContextMenuEvent,
49471 _swigc__p_wxControl,
49472 _swigc__p_wxControlWithItems,
49473 _swigc__p_wxCursor,
49474 _swigc__p_wxDC,
49475 _swigc__p_wxDateEvent,
49476 _swigc__p_wxDatePickerCtrl,
49477 _swigc__p_wxDateTime,
49478 _swigc__p_wxDirFilterListCtrl,
b850e7f3 49479 _swigc__p_wxDirPickerCtrl,
1bd55598
RD
49480 _swigc__p_wxDisplayChangedEvent,
49481 _swigc__p_wxDropFilesEvent,
49482 _swigc__p_wxDuplexMode,
49483 _swigc__p_wxEraseEvent,
49484 _swigc__p_wxEvent,
49485 _swigc__p_wxEvtHandler,
49486 _swigc__p_wxFSFile,
b850e7f3
RD
49487 _swigc__p_wxFileDirPickerEvent,
49488 _swigc__p_wxFilePickerCtrl,
1bd55598
RD
49489 _swigc__p_wxFileSystem,
49490 _swigc__p_wxFlexGridSizer,
49491 _swigc__p_wxFocusEvent,
49492 _swigc__p_wxFont,
b850e7f3
RD
49493 _swigc__p_wxFontPickerCtrl,
49494 _swigc__p_wxFontPickerEvent,
1bd55598
RD
49495 _swigc__p_wxGBSizerItem,
49496 _swigc__p_wxGIFHandler,
49497 _swigc__p_wxGauge,
49498 _swigc__p_wxGenericDirCtrl,
49499 _swigc__p_wxGenericDragImage,
49500 _swigc__p_wxGridBagSizer,
49501 _swigc__p_wxGridSizer,
49502 _swigc__p_wxHelpEvent,
49503 _swigc__p_wxHelpProvider,
704eda0c
RD
49504 _swigc__p_wxHyperlinkCtrl,
49505 _swigc__p_wxHyperlinkEvent,
1bd55598
RD
49506 _swigc__p_wxICOHandler,
49507 _swigc__p_wxIcon,
49508 _swigc__p_wxIconizeEvent,
49509 _swigc__p_wxIdleEvent,
49510 _swigc__p_wxImage,
49511 _swigc__p_wxImageHandler,
49512 _swigc__p_wxImageList,
49513 _swigc__p_wxIndividualLayoutConstraint,
49514 _swigc__p_wxInitDialogEvent,
49515 _swigc__p_wxItemContainer,
49516 _swigc__p_wxJPEGHandler,
49517 _swigc__p_wxKeyEvent,
49518 _swigc__p_wxLayoutConstraints,
49519 _swigc__p_wxListBox,
49520 _swigc__p_wxListEvent,
49521 _swigc__p_wxListItem,
49522 _swigc__p_wxListItemAttr,
49523 _swigc__p_wxListView,
49524 _swigc__p_wxListbook,
49525 _swigc__p_wxListbookEvent,
49526 _swigc__p_wxMaximizeEvent,
49527 _swigc__p_wxMemoryDC,
49528 _swigc__p_wxMenu,
49529 _swigc__p_wxMenuBar,
49530 _swigc__p_wxMenuEvent,
49531 _swigc__p_wxMenuItem,
49532 _swigc__p_wxMouseCaptureChangedEvent,
34e0a3bb 49533 _swigc__p_wxMouseCaptureLostEvent,
1bd55598
RD
49534 _swigc__p_wxMouseEvent,
49535 _swigc__p_wxMoveEvent,
49536 _swigc__p_wxNavigationKeyEvent,
49537 _swigc__p_wxNcPaintEvent,
49538 _swigc__p_wxNotebook,
49539 _swigc__p_wxNotebookEvent,
49540 _swigc__p_wxNotifyEvent,
49541 _swigc__p_wxObject,
49542 _swigc__p_wxPCXHandler,
49543 _swigc__p_wxPNGHandler,
49544 _swigc__p_wxPNMHandler,
49545 _swigc__p_wxPaintEvent,
49546 _swigc__p_wxPaletteChangedEvent,
49547 _swigc__p_wxPaperSize,
b850e7f3 49548 _swigc__p_wxPickerBase,
1bd55598
RD
49549 _swigc__p_wxPoint,
49550 _swigc__p_wxPyApp,
49551 _swigc__p_wxPyCommandEvent,
49552 _swigc__p_wxPyControl,
49553 _swigc__p_wxPyEvent,
49554 _swigc__p_wxPyImageHandler,
49555 _swigc__p_wxPyListCtrl,
49556 _swigc__p_wxPySizer,
49557 _swigc__p_wxPyTreeCtrl,
49558 _swigc__p_wxPyTreeItemData,
49559 _swigc__p_wxPyValidator,
49560 _swigc__p_wxQueryNewPaletteEvent,
49561 _swigc__p_wxRadioBox,
49562 _swigc__p_wxRadioButton,
49563 _swigc__p_wxRect,
49564 _swigc__p_wxScrollBar,
49565 _swigc__p_wxScrollEvent,
49566 _swigc__p_wxScrollWinEvent,
3f7f284d 49567 _swigc__p_wxSearchCtrl,
1bd55598
RD
49568 _swigc__p_wxSetCursorEvent,
49569 _swigc__p_wxShowEvent,
49570 _swigc__p_wxSimpleHelpProvider,
49571 _swigc__p_wxSize,
49572 _swigc__p_wxSizeEvent,
49573 _swigc__p_wxSizer,
49574 _swigc__p_wxSizerItem,
49575 _swigc__p_wxSlider,
49576 _swigc__p_wxSpinButton,
49577 _swigc__p_wxSpinCtrl,
49578 _swigc__p_wxSpinEvent,
49579 _swigc__p_wxStaticBitmap,
49580 _swigc__p_wxStaticBox,
49581 _swigc__p_wxStaticBoxSizer,
49582 _swigc__p_wxStaticLine,
49583 _swigc__p_wxStaticText,
49584 _swigc__p_wxStdDialogButtonSizer,
49585 _swigc__p_wxString,
49586 _swigc__p_wxSysColourChangedEvent,
580080c5 49587 _swigc__p_wxTGAHandler,
1bd55598
RD
49588 _swigc__p_wxTIFFHandler,
49589 _swigc__p_wxTextAttr,
49590 _swigc__p_wxTextCtrl,
49591 _swigc__p_wxTextUrlEvent,
49592 _swigc__p_wxToggleButton,
49593 _swigc__p_wxToolBar,
49594 _swigc__p_wxToolBarBase,
49595 _swigc__p_wxToolBarToolBase,
49596 _swigc__p_wxToolbook,
49597 _swigc__p_wxToolbookEvent,
1bd55598
RD
49598 _swigc__p_wxTreeEvent,
49599 _swigc__p_wxTreeItemId,
49600 _swigc__p_wxTreebook,
49601 _swigc__p_wxTreebookEvent,
49602 _swigc__p_wxUpdateUIEvent,
49603 _swigc__p_wxValidator,
49604 _swigc__p_wxVisualAttributes,
49605 _swigc__p_wxWindow,
b850e7f3 49606 _swigc__p_wxWindowBase,
1bd55598
RD
49607 _swigc__p_wxWindowCreateEvent,
49608 _swigc__p_wxWindowDestroyEvent,
49609 _swigc__p_wxXPMHandler,
49610};
49611
49612
49613/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
49614
49615static swig_const_info swig_const_table[] = {
49616{0, 0, 0, 0.0, 0, 0}};
49617
49618#ifdef __cplusplus
49619}
49620#endif
49621/* -----------------------------------------------------------------------------
49622 * Type initialization:
49623 * This problem is tough by the requirement that no dynamic
49624 * memory is used. Also, since swig_type_info structures store pointers to
49625 * swig_cast_info structures and swig_cast_info structures store pointers back
49626 * to swig_type_info structures, we need some lookup code at initialization.
49627 * The idea is that swig generates all the structures that are needed.
49628 * The runtime then collects these partially filled structures.
49629 * The SWIG_InitializeModule function takes these initial arrays out of
49630 * swig_module, and does all the lookup, filling in the swig_module.types
49631 * array with the correct data and linking the correct swig_cast_info
49632 * structures together.
49633 *
49634 * The generated swig_type_info structures are assigned staticly to an initial
49635 * array. We just loop though that array, and handle each type individually.
49636 * First we lookup if this type has been already loaded, and if so, use the
49637 * loaded structure instead of the generated one. Then we have to fill in the
49638 * cast linked list. The cast data is initially stored in something like a
49639 * two-dimensional array. Each row corresponds to a type (there are the same
49640 * number of rows as there are in the swig_type_initial array). Each entry in
49641 * a column is one of the swig_cast_info structures for that type.
49642 * The cast_initial array is actually an array of arrays, because each row has
49643 * a variable number of columns. So to actually build the cast linked list,
49644 * we find the array of casts associated with the type, and loop through it
49645 * adding the casts to the list. The one last trick we need to do is making
49646 * sure the type pointer in the swig_cast_info struct is correct.
49647 *
49648 * First off, we lookup the cast->type name to see if it is already loaded.
49649 * There are three cases to handle:
49650 * 1) If the cast->type has already been loaded AND the type we are adding
49651 * casting info to has not been loaded (it is in this module), THEN we
49652 * replace the cast->type pointer with the type pointer that has already
49653 * been loaded.
49654 * 2) If BOTH types (the one we are adding casting info to, and the
49655 * cast->type) are loaded, THEN the cast info has already been loaded by
49656 * the previous module so we just ignore it.
49657 * 3) Finally, if cast->type has not already been loaded, then we add that
49658 * swig_cast_info to the linked list (because the cast->type) pointer will
49659 * be correct.
49660 * ----------------------------------------------------------------------------- */
49661
49662#ifdef __cplusplus
49663extern "C" {
49664#if 0
49665} /* c-mode */
49666#endif
49667#endif
49668
49669#if 0
49670#define SWIGRUNTIME_DEBUG
49671#endif
49672
49673SWIGRUNTIME void
49674SWIG_InitializeModule(void *clientdata) {
49675 size_t i;
49676 swig_module_info *module_head;
49677 static int init_run = 0;
49678
49679 clientdata = clientdata;
49680
49681 if (init_run) return;
49682 init_run = 1;
49683
49684 /* Initialize the swig_module */
49685 swig_module.type_initial = swig_type_initial;
49686 swig_module.cast_initial = swig_cast_initial;
49687
49688 /* Try and load any already created modules */
49689 module_head = SWIG_GetModule(clientdata);
49690 if (module_head) {
49691 swig_module.next = module_head->next;
49692 module_head->next = &swig_module;
49693 } else {
49694 /* This is the first module loaded */
49695 swig_module.next = &swig_module;
49696 SWIG_SetModule(clientdata, &swig_module);
49697 }
49698
49699 /* Now work on filling in swig_module.types */
49700#ifdef SWIGRUNTIME_DEBUG
49701 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
49702#endif
49703 for (i = 0; i < swig_module.size; ++i) {
49704 swig_type_info *type = 0;
49705 swig_type_info *ret;
49706 swig_cast_info *cast;
d55e5bfc 49707
1bd55598
RD
49708#ifdef SWIGRUNTIME_DEBUG
49709 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
49710#endif
d55e5bfc 49711
1bd55598
RD
49712 /* if there is another module already loaded */
49713 if (swig_module.next != &swig_module) {
49714 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
36ed4f51 49715 }
1bd55598
RD
49716 if (type) {
49717 /* Overwrite clientdata field */
49718#ifdef SWIGRUNTIME_DEBUG
49719 printf("SWIG_InitializeModule: found type %s\n", type->name);
49720#endif
49721 if (swig_module.type_initial[i]->clientdata) {
49722 type->clientdata = swig_module.type_initial[i]->clientdata;
49723#ifdef SWIGRUNTIME_DEBUG
49724 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
49725#endif
49726 }
49727 } else {
49728 type = swig_module.type_initial[i];
36ed4f51 49729 }
d55e5bfc 49730
1bd55598
RD
49731 /* Insert casting types */
49732 cast = swig_module.cast_initial[i];
49733 while (cast->type) {
49734 /* Don't need to add information already in the list */
49735 ret = 0;
49736#ifdef SWIGRUNTIME_DEBUG
49737 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
49738#endif
49739 if (swig_module.next != &swig_module) {
49740 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
49741#ifdef SWIGRUNTIME_DEBUG
49742 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
49743#endif
49744 }
49745 if (ret) {
49746 if (type == swig_module.type_initial[i]) {
49747#ifdef SWIGRUNTIME_DEBUG
49748 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
49749#endif
49750 cast->type = ret;
49751 ret = 0;
49752 } else {
49753 /* Check for casting already in the list */
49754 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
49755#ifdef SWIGRUNTIME_DEBUG
49756 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
49757#endif
49758 if (!ocast) ret = 0;
49759 }
49760 }
49761
49762 if (!ret) {
49763#ifdef SWIGRUNTIME_DEBUG
49764 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
49765#endif
49766 if (type->cast) {
49767 type->cast->prev = cast;
49768 cast->next = type->cast;
49769 }
49770 type->cast = cast;
49771 }
49772 cast++;
36ed4f51 49773 }
1bd55598
RD
49774 /* Set entry in modules->types array equal to the type */
49775 swig_module.types[i] = type;
49776 }
49777 swig_module.types[i] = 0;
49778
49779#ifdef SWIGRUNTIME_DEBUG
49780 printf("**** SWIG_InitializeModule: Cast List ******\n");
49781 for (i = 0; i < swig_module.size; ++i) {
49782 int j = 0;
49783 swig_cast_info *cast = swig_module.cast_initial[i];
49784 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
49785 while (cast->type) {
49786 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
49787 cast++;
49788 ++j;
49789 }
49790 printf("---- Total casts: %d\n",j);
49791 }
49792 printf("**** SWIG_InitializeModule: Cast List ******\n");
49793#endif
49794}
49795
49796/* This function will propagate the clientdata field of type to
49797* any new swig_type_info structures that have been added into the list
49798* of equivalent types. It is like calling
49799* SWIG_TypeClientData(type, clientdata) a second time.
49800*/
49801SWIGRUNTIME void
49802SWIG_PropagateClientData(void) {
49803 size_t i;
49804 swig_cast_info *equiv;
49805 static int init_run = 0;
49806
49807 if (init_run) return;
49808 init_run = 1;
49809
49810 for (i = 0; i < swig_module.size; i++) {
49811 if (swig_module.types[i]->clientdata) {
49812 equiv = swig_module.types[i]->cast;
49813 while (equiv) {
49814 if (!equiv->converter) {
49815 if (equiv->type && !equiv->type->clientdata)
49816 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
49817 }
49818 equiv = equiv->next;
49819 }
36ed4f51 49820 }
1bd55598
RD
49821 }
49822}
49823
49824#ifdef __cplusplus
49825#if 0
49826{
49827 /* c-mode */
49828#endif
49829}
49830#endif
49831
49832
49833
49834#ifdef __cplusplus
49835extern "C" {
49836#endif
49837
49838 /* Python-specific SWIG API */
49839#define SWIG_newvarlink() SWIG_Python_newvarlink()
49840#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
49841#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
49842
49843 /* -----------------------------------------------------------------------------
49844 * global variable support code.
49845 * ----------------------------------------------------------------------------- */
49846
49847 typedef struct swig_globalvar {
49848 char *name; /* Name of global variable */
49849 PyObject *(*get_attr)(void); /* Return the current value */
49850 int (*set_attr)(PyObject *); /* Set the value */
49851 struct swig_globalvar *next;
49852 } swig_globalvar;
49853
49854 typedef struct swig_varlinkobject {
49855 PyObject_HEAD
49856 swig_globalvar *vars;
49857 } swig_varlinkobject;
49858
49859 SWIGINTERN PyObject *
49860 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
49861 return PyString_FromString("<Swig global variables>");
49862 }
49863
49864 SWIGINTERN PyObject *
49865 swig_varlink_str(swig_varlinkobject *v) {
49866 PyObject *str = PyString_FromString("(");
49867 swig_globalvar *var;
49868 for (var = v->vars; var; var=var->next) {
49869 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
49870 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
49871 }
49872 PyString_ConcatAndDel(&str,PyString_FromString(")"));
49873 return str;
49874 }
49875
49876 SWIGINTERN int
49877 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
49878 PyObject *str = swig_varlink_str(v);
49879 fprintf(fp,"Swig global variables ");
49880 fprintf(fp,"%s\n", PyString_AsString(str));
49881 Py_DECREF(str);
49882 return 0;
49883 }
49884
49885 SWIGINTERN void
49886 swig_varlink_dealloc(swig_varlinkobject *v) {
49887 swig_globalvar *var = v->vars;
49888 while (var) {
49889 swig_globalvar *n = var->next;
49890 free(var->name);
49891 free(var);
49892 var = n;
36ed4f51 49893 }
1bd55598
RD
49894 }
49895
49896 SWIGINTERN PyObject *
49897 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
49898 PyObject *res = NULL;
49899 swig_globalvar *var = v->vars;
49900 while (var) {
49901 if (strcmp(var->name,n) == 0) {
49902 res = (*var->get_attr)();
49903 break;
49904 }
49905 var = var->next;
36ed4f51 49906 }
1bd55598
RD
49907 if (res == NULL && !PyErr_Occurred()) {
49908 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
36ed4f51 49909 }
1bd55598
RD
49910 return res;
49911 }
49912
49913 SWIGINTERN int
49914 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
49915 int res = 1;
49916 swig_globalvar *var = v->vars;
49917 while (var) {
49918 if (strcmp(var->name,n) == 0) {
49919 res = (*var->set_attr)(p);
49920 break;
49921 }
49922 var = var->next;
36ed4f51 49923 }
1bd55598
RD
49924 if (res == 1 && !PyErr_Occurred()) {
49925 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
53aa7709 49926 }
1bd55598
RD
49927 return res;
49928 }
49929
49930 SWIGINTERN PyTypeObject*
49931 swig_varlink_type(void) {
49932 static char varlink__doc__[] = "Swig var link object";
49933 static PyTypeObject varlink_type;
49934 static int type_init = 0;
49935 if (!type_init) {
49936 const PyTypeObject tmp
49937 = {
49938 PyObject_HEAD_INIT(NULL)
49939 0, /* Number of items in variable part (ob_size) */
49940 (char *)"swigvarlink", /* Type name (tp_name) */
49941 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
49942 0, /* Itemsize (tp_itemsize) */
49943 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
49944 (printfunc) swig_varlink_print, /* Print (tp_print) */
49945 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
49946 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
49947 0, /* tp_compare */
49948 (reprfunc) swig_varlink_repr, /* tp_repr */
49949 0, /* tp_as_number */
49950 0, /* tp_as_sequence */
49951 0, /* tp_as_mapping */
49952 0, /* tp_hash */
49953 0, /* tp_call */
49954 (reprfunc)swig_varlink_str, /* tp_str */
49955 0, /* tp_getattro */
49956 0, /* tp_setattro */
49957 0, /* tp_as_buffer */
49958 0, /* tp_flags */
49959 varlink__doc__, /* tp_doc */
49960 0, /* tp_traverse */
49961 0, /* tp_clear */
49962 0, /* tp_richcompare */
49963 0, /* tp_weaklistoffset */
49964#if PY_VERSION_HEX >= 0x02020000
49965 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
49966#endif
49967#if PY_VERSION_HEX >= 0x02030000
49968 0, /* tp_del */
49969#endif
49970#ifdef COUNT_ALLOCS
49971 0,0,0,0 /* tp_alloc -> tp_next */
49972#endif
49973 };
49974 varlink_type = tmp;
49975 varlink_type.ob_type = &PyType_Type;
49976 type_init = 1;
53aa7709 49977 }
1bd55598
RD
49978 return &varlink_type;
49979 }
49980
49981 /* Create a variable linking object for use later */
49982 SWIGINTERN PyObject *
49983 SWIG_Python_newvarlink(void) {
49984 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
49985 if (result) {
49986 result->vars = 0;
49987 }
49988 return ((PyObject*) result);
49989 }
49990
49991 SWIGINTERN void
49992 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
49993 swig_varlinkobject *v = (swig_varlinkobject *) p;
49994 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
49995 if (gv) {
49996 size_t size = strlen(name)+1;
49997 gv->name = (char *)malloc(size);
49998 if (gv->name) {
49999 strncpy(gv->name,name,size);
50000 gv->get_attr = get_attr;
50001 gv->set_attr = set_attr;
50002 gv->next = v->vars;
50003 }
53aa7709 50004 }
1bd55598
RD
50005 v->vars = gv;
50006 }
50007
50008 SWIGINTERN PyObject *
50009 SWIG_globals() {
50010 static PyObject *_SWIG_globals = 0;
50011 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
50012 return _SWIG_globals;
50013 }
50014
50015 /* -----------------------------------------------------------------------------
50016 * constants/methods manipulation
50017 * ----------------------------------------------------------------------------- */
50018
50019 /* Install Constants */
50020 SWIGINTERN void
50021 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
50022 PyObject *obj = 0;
50023 size_t i;
50024 for (i = 0; constants[i].type; ++i) {
50025 switch(constants[i].type) {
50026 case SWIG_PY_POINTER:
50027 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
50028 break;
50029 case SWIG_PY_BINARY:
50030 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
50031 break;
50032 default:
50033 obj = 0;
50034 break;
50035 }
50036 if (obj) {
50037 PyDict_SetItemString(d, constants[i].name, obj);
50038 Py_DECREF(obj);
50039 }
53aa7709 50040 }
1bd55598
RD
50041 }
50042
50043 /* -----------------------------------------------------------------------------*/
50044 /* Fix SwigMethods to carry the callback ptrs when needed */
50045 /* -----------------------------------------------------------------------------*/
50046
50047 SWIGINTERN void
50048 SWIG_Python_FixMethods(PyMethodDef *methods,
50049 swig_const_info *const_table,
50050 swig_type_info **types,
50051 swig_type_info **types_initial) {
50052 size_t i;
50053 for (i = 0; methods[i].ml_name; ++i) {
3d6c9062 50054 const char *c = methods[i].ml_doc;
1bd55598
RD
50055 if (c && (c = strstr(c, "swig_ptr: "))) {
50056 int j;
50057 swig_const_info *ci = 0;
3d6c9062 50058 const char *name = c + 10;
1bd55598
RD
50059 for (j = 0; const_table[j].type; ++j) {
50060 if (strncmp(const_table[j].name, name,
50061 strlen(const_table[j].name)) == 0) {
50062 ci = &(const_table[j]);
50063 break;
50064 }
50065 }
50066 if (ci) {
50067 size_t shift = (ci->ptype) - types;
50068 swig_type_info *ty = types_initial[shift];
50069 size_t ldoc = (c - methods[i].ml_doc);
50070 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
50071 char *ndoc = (char*)malloc(ldoc + lptr + 10);
50072 if (ndoc) {
50073 char *buff = ndoc;
50074 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
50075 if (ptr) {
50076 strncpy(buff, methods[i].ml_doc, ldoc);
50077 buff += ldoc;
50078 strncpy(buff, "swig_ptr: ", 10);
50079 buff += 10;
50080 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
50081 methods[i].ml_doc = ndoc;
50082 }
50083 }
50084 }
50085 }
53aa7709 50086 }
1bd55598
RD
50087 }
50088
50089#ifdef __cplusplus
50090}
50091#endif
50092
50093/* -----------------------------------------------------------------------------*
50094 * Partial Init method
50095 * -----------------------------------------------------------------------------*/
50096
50097#ifdef __cplusplus
50098extern "C"
50099#endif
50100SWIGEXPORT void SWIG_init(void) {
50101 PyObject *m, *d;
50102
50103 /* Fix SwigMethods to carry the callback ptrs when needed */
50104 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
50105
50106 m = Py_InitModule((char *) SWIG_name, SwigMethods);
50107 d = PyModule_GetDict(m);
50108
50109 SWIG_InitializeModule(0);
50110 SWIG_InstallConstants(d,swig_const_table);
50111
50112
50113 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
50114 SWIG_addvarlink(SWIG_globals(),(char*)"ButtonNameStr",ButtonNameStr_get, ButtonNameStr_set);
50115 SWIG_Python_SetConstant(d, "BU_LEFT",SWIG_From_int(static_cast< int >(wxBU_LEFT)));
50116 SWIG_Python_SetConstant(d, "BU_TOP",SWIG_From_int(static_cast< int >(wxBU_TOP)));
50117 SWIG_Python_SetConstant(d, "BU_RIGHT",SWIG_From_int(static_cast< int >(wxBU_RIGHT)));
50118 SWIG_Python_SetConstant(d, "BU_BOTTOM",SWIG_From_int(static_cast< int >(wxBU_BOTTOM)));
50119 SWIG_Python_SetConstant(d, "BU_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBU_ALIGN_MASK)));
50120 SWIG_Python_SetConstant(d, "BU_EXACTFIT",SWIG_From_int(static_cast< int >(wxBU_EXACTFIT)));
50121 SWIG_Python_SetConstant(d, "BU_AUTODRAW",SWIG_From_int(static_cast< int >(wxBU_AUTODRAW)));
50122 SWIG_addvarlink(SWIG_globals(),(char*)"CheckBoxNameStr",CheckBoxNameStr_get, CheckBoxNameStr_set);
50123 SWIG_Python_SetConstant(d, "CHK_2STATE",SWIG_From_int(static_cast< int >(wxCHK_2STATE)));
50124 SWIG_Python_SetConstant(d, "CHK_3STATE",SWIG_From_int(static_cast< int >(wxCHK_3STATE)));
50125 SWIG_Python_SetConstant(d, "CHK_ALLOW_3RD_STATE_FOR_USER",SWIG_From_int(static_cast< int >(wxCHK_ALLOW_3RD_STATE_FOR_USER)));
50126 SWIG_Python_SetConstant(d, "CHK_UNCHECKED",SWIG_From_int(static_cast< int >(wxCHK_UNCHECKED)));
50127 SWIG_Python_SetConstant(d, "CHK_CHECKED",SWIG_From_int(static_cast< int >(wxCHK_CHECKED)));
50128 SWIG_Python_SetConstant(d, "CHK_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCHK_UNDETERMINED)));
50129 SWIG_addvarlink(SWIG_globals(),(char*)"ChoiceNameStr",ChoiceNameStr_get, ChoiceNameStr_set);
50130 SWIG_addvarlink(SWIG_globals(),(char*)"ComboBoxNameStr",ComboBoxNameStr_get, ComboBoxNameStr_set);
50131 SWIG_addvarlink(SWIG_globals(),(char*)"GaugeNameStr",GaugeNameStr_get, GaugeNameStr_set);
50132 SWIG_Python_SetConstant(d, "GA_HORIZONTAL",SWIG_From_int(static_cast< int >(wxGA_HORIZONTAL)));
50133 SWIG_Python_SetConstant(d, "GA_VERTICAL",SWIG_From_int(static_cast< int >(wxGA_VERTICAL)));
50134 SWIG_Python_SetConstant(d, "GA_SMOOTH",SWIG_From_int(static_cast< int >(wxGA_SMOOTH)));
1bd55598
RD
50135 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBitmapNameStr",StaticBitmapNameStr_get, StaticBitmapNameStr_set);
50136 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBoxNameStr",StaticBoxNameStr_get, StaticBoxNameStr_set);
50137 SWIG_addvarlink(SWIG_globals(),(char*)"StaticTextNameStr",StaticTextNameStr_get, StaticTextNameStr_set);
3f7f284d 50138 SWIG_addvarlink(SWIG_globals(),(char*)"StaticLineNameStr",StaticLineNameStr_get, StaticLineNameStr_set);
1bd55598
RD
50139 SWIG_addvarlink(SWIG_globals(),(char*)"ListBoxNameStr",ListBoxNameStr_get, ListBoxNameStr_set);
50140 SWIG_addvarlink(SWIG_globals(),(char*)"TextCtrlNameStr",TextCtrlNameStr_get, TextCtrlNameStr_set);
50141 SWIG_Python_SetConstant(d, "TE_NO_VSCROLL",SWIG_From_int(static_cast< int >(wxTE_NO_VSCROLL)));
50142 SWIG_Python_SetConstant(d, "TE_AUTO_SCROLL",SWIG_From_int(static_cast< int >(wxTE_AUTO_SCROLL)));
50143 SWIG_Python_SetConstant(d, "TE_READONLY",SWIG_From_int(static_cast< int >(wxTE_READONLY)));
50144 SWIG_Python_SetConstant(d, "TE_MULTILINE",SWIG_From_int(static_cast< int >(wxTE_MULTILINE)));
50145 SWIG_Python_SetConstant(d, "TE_PROCESS_TAB",SWIG_From_int(static_cast< int >(wxTE_PROCESS_TAB)));
50146 SWIG_Python_SetConstant(d, "TE_LEFT",SWIG_From_int(static_cast< int >(wxTE_LEFT)));
50147 SWIG_Python_SetConstant(d, "TE_CENTER",SWIG_From_int(static_cast< int >(wxTE_CENTER)));
50148 SWIG_Python_SetConstant(d, "TE_RIGHT",SWIG_From_int(static_cast< int >(wxTE_RIGHT)));
50149 SWIG_Python_SetConstant(d, "TE_CENTRE",SWIG_From_int(static_cast< int >(wxTE_CENTRE)));
50150 SWIG_Python_SetConstant(d, "TE_RICH",SWIG_From_int(static_cast< int >(wxTE_RICH)));
50151 SWIG_Python_SetConstant(d, "TE_PROCESS_ENTER",SWIG_From_int(static_cast< int >(wxTE_PROCESS_ENTER)));
50152 SWIG_Python_SetConstant(d, "TE_PASSWORD",SWIG_From_int(static_cast< int >(wxTE_PASSWORD)));
50153 SWIG_Python_SetConstant(d, "TE_AUTO_URL",SWIG_From_int(static_cast< int >(wxTE_AUTO_URL)));
50154 SWIG_Python_SetConstant(d, "TE_NOHIDESEL",SWIG_From_int(static_cast< int >(wxTE_NOHIDESEL)));
50155 SWIG_Python_SetConstant(d, "TE_DONTWRAP",SWIG_From_int(static_cast< int >(wxTE_DONTWRAP)));
50156 SWIG_Python_SetConstant(d, "TE_CHARWRAP",SWIG_From_int(static_cast< int >(wxTE_CHARWRAP)));
50157 SWIG_Python_SetConstant(d, "TE_WORDWRAP",SWIG_From_int(static_cast< int >(wxTE_WORDWRAP)));
50158 SWIG_Python_SetConstant(d, "TE_BESTWRAP",SWIG_From_int(static_cast< int >(wxTE_BESTWRAP)));
1bd55598
RD
50159 SWIG_Python_SetConstant(d, "TE_RICH2",SWIG_From_int(static_cast< int >(wxTE_RICH2)));
50160 SWIG_Python_SetConstant(d, "TE_CAPITALIZE",SWIG_From_int(static_cast< int >(wxTE_CAPITALIZE)));
50161 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT)));
50162 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT)));
50163 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE)));
50164 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER)));
50165 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT)));
50166 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED)));
50167 SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR)));
50168 SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR)));
50169 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE)));
50170 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE)));
50171 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT)));
50172 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC)));
50173 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE)));
50174 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT)));
50175 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT)));
50176 SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT)));
50177 SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT)));
50178 SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS)));
50179 SWIG_Python_SetConstant(d, "TE_HT_UNKNOWN",SWIG_From_int(static_cast< int >(wxTE_HT_UNKNOWN)));
50180 SWIG_Python_SetConstant(d, "TE_HT_BEFORE",SWIG_From_int(static_cast< int >(wxTE_HT_BEFORE)));
50181 SWIG_Python_SetConstant(d, "TE_HT_ON_TEXT",SWIG_From_int(static_cast< int >(wxTE_HT_ON_TEXT)));
50182 SWIG_Python_SetConstant(d, "TE_HT_BELOW",SWIG_From_int(static_cast< int >(wxTE_HT_BELOW)));
50183 SWIG_Python_SetConstant(d, "TE_HT_BEYOND",SWIG_From_int(static_cast< int >(wxTE_HT_BEYOND)));
50184 SWIG_Python_SetConstant(d, "OutOfRangeTextCoord",SWIG_From_int(static_cast< int >(wxOutOfRangeTextCoord)));
50185 SWIG_Python_SetConstant(d, "InvalidTextCoord",SWIG_From_int(static_cast< int >(wxInvalidTextCoord)));
f5263701 50186 SWIG_Python_SetConstant(d, "TEXT_TYPE_ANY",SWIG_From_int(static_cast< int >(wxTEXT_TYPE_ANY)));
1bd55598
RD
50187 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
50188 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
50189 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
50190 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
50191 SWIG_addvarlink(SWIG_globals(),(char*)"ScrollBarNameStr",ScrollBarNameStr_get, ScrollBarNameStr_set);
50192 SWIG_addvarlink(SWIG_globals(),(char*)"SPIN_BUTTON_NAME",SPIN_BUTTON_NAME_get, SPIN_BUTTON_NAME_set);
50193 SWIG_addvarlink(SWIG_globals(),(char*)"SpinCtrlNameStr",SpinCtrlNameStr_get, SpinCtrlNameStr_set);
50194 SWIG_Python_SetConstant(d, "SP_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSP_HORIZONTAL)));
50195 SWIG_Python_SetConstant(d, "SP_VERTICAL",SWIG_From_int(static_cast< int >(wxSP_VERTICAL)));
50196 SWIG_Python_SetConstant(d, "SP_ARROW_KEYS",SWIG_From_int(static_cast< int >(wxSP_ARROW_KEYS)));
50197 SWIG_Python_SetConstant(d, "SP_WRAP",SWIG_From_int(static_cast< int >(wxSP_WRAP)));
50198 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
50199 SWIG_addvarlink(SWIG_globals(),(char*)"RadioBoxNameStr",RadioBoxNameStr_get, RadioBoxNameStr_set);
50200 SWIG_addvarlink(SWIG_globals(),(char*)"RadioButtonNameStr",RadioButtonNameStr_get, RadioButtonNameStr_set);
50201 SWIG_addvarlink(SWIG_globals(),(char*)"SliderNameStr",SliderNameStr_get, SliderNameStr_set);
50202 SWIG_Python_SetConstant(d, "SL_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSL_HORIZONTAL)));
50203 SWIG_Python_SetConstant(d, "SL_VERTICAL",SWIG_From_int(static_cast< int >(wxSL_VERTICAL)));
50204 SWIG_Python_SetConstant(d, "SL_TICKS",SWIG_From_int(static_cast< int >(wxSL_TICKS)));
50205 SWIG_Python_SetConstant(d, "SL_AUTOTICKS",SWIG_From_int(static_cast< int >(wxSL_AUTOTICKS)));
50206 SWIG_Python_SetConstant(d, "SL_LABELS",SWIG_From_int(static_cast< int >(wxSL_LABELS)));
50207 SWIG_Python_SetConstant(d, "SL_LEFT",SWIG_From_int(static_cast< int >(wxSL_LEFT)));
50208 SWIG_Python_SetConstant(d, "SL_TOP",SWIG_From_int(static_cast< int >(wxSL_TOP)));
50209 SWIG_Python_SetConstant(d, "SL_RIGHT",SWIG_From_int(static_cast< int >(wxSL_RIGHT)));
50210 SWIG_Python_SetConstant(d, "SL_BOTTOM",SWIG_From_int(static_cast< int >(wxSL_BOTTOM)));
50211 SWIG_Python_SetConstant(d, "SL_BOTH",SWIG_From_int(static_cast< int >(wxSL_BOTH)));
50212 SWIG_Python_SetConstant(d, "SL_SELRANGE",SWIG_From_int(static_cast< int >(wxSL_SELRANGE)));
50213 SWIG_Python_SetConstant(d, "SL_INVERSE",SWIG_From_int(static_cast< int >(wxSL_INVERSE)));
50214 SWIG_addvarlink(SWIG_globals(),(char*)"ToggleButtonNameStr",ToggleButtonNameStr_get, ToggleButtonNameStr_set);
50215 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
50216 SWIG_addvarlink(SWIG_globals(),(char*)"NotebookNameStr",NotebookNameStr_get, NotebookNameStr_set);
50217 SWIG_Python_SetConstant(d, "BK_DEFAULT",SWIG_From_int(static_cast< int >(wxBK_DEFAULT)));
50218 SWIG_Python_SetConstant(d, "BK_TOP",SWIG_From_int(static_cast< int >(wxBK_TOP)));
50219 SWIG_Python_SetConstant(d, "BK_BOTTOM",SWIG_From_int(static_cast< int >(wxBK_BOTTOM)));
50220 SWIG_Python_SetConstant(d, "BK_LEFT",SWIG_From_int(static_cast< int >(wxBK_LEFT)));
50221 SWIG_Python_SetConstant(d, "BK_RIGHT",SWIG_From_int(static_cast< int >(wxBK_RIGHT)));
50222 SWIG_Python_SetConstant(d, "BK_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBK_ALIGN_MASK)));
e9d6f3a4 50223 SWIG_Python_SetConstant(d, "BK_BUTTONBAR",SWIG_From_int(static_cast< int >(wxBK_BUTTONBAR)));
110fa173
RD
50224 SWIG_Python_SetConstant(d, "BK_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_NOWHERE)));
50225 SWIG_Python_SetConstant(d, "BK_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONICON)));
50226 SWIG_Python_SetConstant(d, "BK_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONLABEL)));
50227 SWIG_Python_SetConstant(d, "BK_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONITEM)));
50228 SWIG_Python_SetConstant(d, "BK_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONPAGE)));
1bd55598
RD
50229 SWIG_Python_SetConstant(d, "NB_FIXEDWIDTH",SWIG_From_int(static_cast< int >(wxNB_FIXEDWIDTH)));
50230 SWIG_Python_SetConstant(d, "NB_TOP",SWIG_From_int(static_cast< int >(wxNB_TOP)));
50231 SWIG_Python_SetConstant(d, "NB_LEFT",SWIG_From_int(static_cast< int >(wxNB_LEFT)));
50232 SWIG_Python_SetConstant(d, "NB_RIGHT",SWIG_From_int(static_cast< int >(wxNB_RIGHT)));
50233 SWIG_Python_SetConstant(d, "NB_BOTTOM",SWIG_From_int(static_cast< int >(wxNB_BOTTOM)));
50234 SWIG_Python_SetConstant(d, "NB_MULTILINE",SWIG_From_int(static_cast< int >(wxNB_MULTILINE)));
50235 SWIG_Python_SetConstant(d, "NB_NOPAGETHEME",SWIG_From_int(static_cast< int >(wxNB_NOPAGETHEME)));
50236 SWIG_Python_SetConstant(d, "NB_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_NOWHERE)));
50237 SWIG_Python_SetConstant(d, "NB_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONICON)));
50238 SWIG_Python_SetConstant(d, "NB_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONLABEL)));
50239 SWIG_Python_SetConstant(d, "NB_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONITEM)));
b02396e8 50240 SWIG_Python_SetConstant(d, "NB_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONPAGE)));
1bd55598
RD
50241 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
50242 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
50243 SWIG_Python_SetConstant(d, "LB_DEFAULT",SWIG_From_int(static_cast< int >(wxLB_DEFAULT)));
50244 SWIG_Python_SetConstant(d, "LB_TOP",SWIG_From_int(static_cast< int >(wxLB_TOP)));
50245 SWIG_Python_SetConstant(d, "LB_BOTTOM",SWIG_From_int(static_cast< int >(wxLB_BOTTOM)));
50246 SWIG_Python_SetConstant(d, "LB_LEFT",SWIG_From_int(static_cast< int >(wxLB_LEFT)));
50247 SWIG_Python_SetConstant(d, "LB_RIGHT",SWIG_From_int(static_cast< int >(wxLB_RIGHT)));
50248 SWIG_Python_SetConstant(d, "LB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxLB_ALIGN_MASK)));
50249 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
50250 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
50251 SWIG_Python_SetConstant(d, "CHB_DEFAULT",SWIG_From_int(static_cast< int >(wxCHB_DEFAULT)));
50252 SWIG_Python_SetConstant(d, "CHB_TOP",SWIG_From_int(static_cast< int >(wxCHB_TOP)));
50253 SWIG_Python_SetConstant(d, "CHB_BOTTOM",SWIG_From_int(static_cast< int >(wxCHB_BOTTOM)));
50254 SWIG_Python_SetConstant(d, "CHB_LEFT",SWIG_From_int(static_cast< int >(wxCHB_LEFT)));
50255 SWIG_Python_SetConstant(d, "CHB_RIGHT",SWIG_From_int(static_cast< int >(wxCHB_RIGHT)));
50256 SWIG_Python_SetConstant(d, "CHB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxCHB_ALIGN_MASK)));
50257 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED));
50258 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING));
50259 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED));
50260 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING));
50261 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED));
50262 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED));
50263 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED));
50264 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING));
50265 SWIG_Python_SetConstant(d, "TOOL_STYLE_BUTTON",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_BUTTON)));
50266 SWIG_Python_SetConstant(d, "TOOL_STYLE_SEPARATOR",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_SEPARATOR)));
50267 SWIG_Python_SetConstant(d, "TOOL_STYLE_CONTROL",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_CONTROL)));
50268 SWIG_Python_SetConstant(d, "TB_HORIZONTAL",SWIG_From_int(static_cast< int >(wxTB_HORIZONTAL)));
50269 SWIG_Python_SetConstant(d, "TB_VERTICAL",SWIG_From_int(static_cast< int >(wxTB_VERTICAL)));
8f514ab4
RD
50270 SWIG_Python_SetConstant(d, "TB_TOP",SWIG_From_int(static_cast< int >(wxTB_TOP)));
50271 SWIG_Python_SetConstant(d, "TB_LEFT",SWIG_From_int(static_cast< int >(wxTB_LEFT)));
50272 SWIG_Python_SetConstant(d, "TB_BOTTOM",SWIG_From_int(static_cast< int >(wxTB_BOTTOM)));
50273 SWIG_Python_SetConstant(d, "TB_RIGHT",SWIG_From_int(static_cast< int >(wxTB_RIGHT)));
1bd55598
RD
50274 SWIG_Python_SetConstant(d, "TB_3DBUTTONS",SWIG_From_int(static_cast< int >(wxTB_3DBUTTONS)));
50275 SWIG_Python_SetConstant(d, "TB_FLAT",SWIG_From_int(static_cast< int >(wxTB_FLAT)));
50276 SWIG_Python_SetConstant(d, "TB_DOCKABLE",SWIG_From_int(static_cast< int >(wxTB_DOCKABLE)));
50277 SWIG_Python_SetConstant(d, "TB_NOICONS",SWIG_From_int(static_cast< int >(wxTB_NOICONS)));
50278 SWIG_Python_SetConstant(d, "TB_TEXT",SWIG_From_int(static_cast< int >(wxTB_TEXT)));
50279 SWIG_Python_SetConstant(d, "TB_NODIVIDER",SWIG_From_int(static_cast< int >(wxTB_NODIVIDER)));
50280 SWIG_Python_SetConstant(d, "TB_NOALIGN",SWIG_From_int(static_cast< int >(wxTB_NOALIGN)));
50281 SWIG_Python_SetConstant(d, "TB_HORZ_LAYOUT",SWIG_From_int(static_cast< int >(wxTB_HORZ_LAYOUT)));
50282 SWIG_Python_SetConstant(d, "TB_HORZ_TEXT",SWIG_From_int(static_cast< int >(wxTB_HORZ_TEXT)));
704eda0c 50283 SWIG_Python_SetConstant(d, "TB_NO_TOOLTIPS",SWIG_From_int(static_cast< int >(wxTB_NO_TOOLTIPS)));
1bd55598
RD
50284 SWIG_addvarlink(SWIG_globals(),(char*)"ListCtrlNameStr",ListCtrlNameStr_get, ListCtrlNameStr_set);
50285 SWIG_Python_SetConstant(d, "LC_VRULES",SWIG_From_int(static_cast< int >(wxLC_VRULES)));
50286 SWIG_Python_SetConstant(d, "LC_HRULES",SWIG_From_int(static_cast< int >(wxLC_HRULES)));
50287 SWIG_Python_SetConstant(d, "LC_ICON",SWIG_From_int(static_cast< int >(wxLC_ICON)));
50288 SWIG_Python_SetConstant(d, "LC_SMALL_ICON",SWIG_From_int(static_cast< int >(wxLC_SMALL_ICON)));
50289 SWIG_Python_SetConstant(d, "LC_LIST",SWIG_From_int(static_cast< int >(wxLC_LIST)));
50290 SWIG_Python_SetConstant(d, "LC_REPORT",SWIG_From_int(static_cast< int >(wxLC_REPORT)));
50291 SWIG_Python_SetConstant(d, "LC_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLC_ALIGN_TOP)));
50292 SWIG_Python_SetConstant(d, "LC_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLC_ALIGN_LEFT)));
50293 SWIG_Python_SetConstant(d, "LC_AUTOARRANGE",SWIG_From_int(static_cast< int >(wxLC_AUTOARRANGE)));
50294 SWIG_Python_SetConstant(d, "LC_VIRTUAL",SWIG_From_int(static_cast< int >(wxLC_VIRTUAL)));
50295 SWIG_Python_SetConstant(d, "LC_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxLC_EDIT_LABELS)));
50296 SWIG_Python_SetConstant(d, "LC_NO_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_HEADER)));
50297 SWIG_Python_SetConstant(d, "LC_NO_SORT_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_SORT_HEADER)));
50298 SWIG_Python_SetConstant(d, "LC_SINGLE_SEL",SWIG_From_int(static_cast< int >(wxLC_SINGLE_SEL)));
50299 SWIG_Python_SetConstant(d, "LC_SORT_ASCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_ASCENDING)));
50300 SWIG_Python_SetConstant(d, "LC_SORT_DESCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_DESCENDING)));
50301 SWIG_Python_SetConstant(d, "LC_MASK_TYPE",SWIG_From_int(static_cast< int >(wxLC_MASK_TYPE)));
50302 SWIG_Python_SetConstant(d, "LC_MASK_ALIGN",SWIG_From_int(static_cast< int >(wxLC_MASK_ALIGN)));
50303 SWIG_Python_SetConstant(d, "LC_MASK_SORT",SWIG_From_int(static_cast< int >(wxLC_MASK_SORT)));
50304 SWIG_Python_SetConstant(d, "LIST_MASK_STATE",SWIG_From_int(static_cast< int >(wxLIST_MASK_STATE)));
50305 SWIG_Python_SetConstant(d, "LIST_MASK_TEXT",SWIG_From_int(static_cast< int >(wxLIST_MASK_TEXT)));
50306 SWIG_Python_SetConstant(d, "LIST_MASK_IMAGE",SWIG_From_int(static_cast< int >(wxLIST_MASK_IMAGE)));
50307 SWIG_Python_SetConstant(d, "LIST_MASK_DATA",SWIG_From_int(static_cast< int >(wxLIST_MASK_DATA)));
50308 SWIG_Python_SetConstant(d, "LIST_SET_ITEM",SWIG_From_int(static_cast< int >(wxLIST_SET_ITEM)));
50309 SWIG_Python_SetConstant(d, "LIST_MASK_WIDTH",SWIG_From_int(static_cast< int >(wxLIST_MASK_WIDTH)));
50310 SWIG_Python_SetConstant(d, "LIST_MASK_FORMAT",SWIG_From_int(static_cast< int >(wxLIST_MASK_FORMAT)));
50311 SWIG_Python_SetConstant(d, "LIST_STATE_DONTCARE",SWIG_From_int(static_cast< int >(wxLIST_STATE_DONTCARE)));
50312 SWIG_Python_SetConstant(d, "LIST_STATE_DROPHILITED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DROPHILITED)));
50313 SWIG_Python_SetConstant(d, "LIST_STATE_FOCUSED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FOCUSED)));
50314 SWIG_Python_SetConstant(d, "LIST_STATE_SELECTED",SWIG_From_int(static_cast< int >(wxLIST_STATE_SELECTED)));
50315 SWIG_Python_SetConstant(d, "LIST_STATE_CUT",SWIG_From_int(static_cast< int >(wxLIST_STATE_CUT)));
50316 SWIG_Python_SetConstant(d, "LIST_STATE_DISABLED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DISABLED)));
50317 SWIG_Python_SetConstant(d, "LIST_STATE_FILTERED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FILTERED)));
50318 SWIG_Python_SetConstant(d, "LIST_STATE_INUSE",SWIG_From_int(static_cast< int >(wxLIST_STATE_INUSE)));
50319 SWIG_Python_SetConstant(d, "LIST_STATE_PICKED",SWIG_From_int(static_cast< int >(wxLIST_STATE_PICKED)));
50320 SWIG_Python_SetConstant(d, "LIST_STATE_SOURCE",SWIG_From_int(static_cast< int >(wxLIST_STATE_SOURCE)));
50321 SWIG_Python_SetConstant(d, "LIST_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ABOVE)));
50322 SWIG_Python_SetConstant(d, "LIST_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_BELOW)));
50323 SWIG_Python_SetConstant(d, "LIST_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_NOWHERE)));
50324 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMICON)));
50325 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMLABEL)));
50326 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMRIGHT)));
50327 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMSTATEICON)));
50328 SWIG_Python_SetConstant(d, "LIST_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TOLEFT)));
50329 SWIG_Python_SetConstant(d, "LIST_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TORIGHT)));
50330 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEM)));
704eda0c 50331 SWIG_Python_SetConstant(d, "LIST_GETSUBITEMRECT_WHOLEITEM",SWIG_From_int(static_cast< int >(wxLIST_GETSUBITEMRECT_WHOLEITEM)));
1bd55598
RD
50332 SWIG_Python_SetConstant(d, "LIST_NEXT_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ABOVE)));
50333 SWIG_Python_SetConstant(d, "LIST_NEXT_ALL",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ALL)));
50334 SWIG_Python_SetConstant(d, "LIST_NEXT_BELOW",SWIG_From_int(static_cast< int >(wxLIST_NEXT_BELOW)));
50335 SWIG_Python_SetConstant(d, "LIST_NEXT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_LEFT)));
50336 SWIG_Python_SetConstant(d, "LIST_NEXT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_RIGHT)));
50337 SWIG_Python_SetConstant(d, "LIST_ALIGN_DEFAULT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_DEFAULT)));
50338 SWIG_Python_SetConstant(d, "LIST_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_LEFT)));
50339 SWIG_Python_SetConstant(d, "LIST_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_TOP)));
50340 SWIG_Python_SetConstant(d, "LIST_ALIGN_SNAP_TO_GRID",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_SNAP_TO_GRID)));
50341 SWIG_Python_SetConstant(d, "LIST_FORMAT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_LEFT)));
50342 SWIG_Python_SetConstant(d, "LIST_FORMAT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_RIGHT)));
50343 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTRE",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTRE)));
50344 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTER",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTER)));
50345 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE)));
50346 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE_USEHEADER",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE_USEHEADER)));
50347 SWIG_Python_SetConstant(d, "LIST_RECT_BOUNDS",SWIG_From_int(static_cast< int >(wxLIST_RECT_BOUNDS)));
50348 SWIG_Python_SetConstant(d, "LIST_RECT_ICON",SWIG_From_int(static_cast< int >(wxLIST_RECT_ICON)));
50349 SWIG_Python_SetConstant(d, "LIST_RECT_LABEL",SWIG_From_int(static_cast< int >(wxLIST_RECT_LABEL)));
50350 SWIG_Python_SetConstant(d, "LIST_FIND_UP",SWIG_From_int(static_cast< int >(wxLIST_FIND_UP)));
50351 SWIG_Python_SetConstant(d, "LIST_FIND_DOWN",SWIG_From_int(static_cast< int >(wxLIST_FIND_DOWN)));
50352 SWIG_Python_SetConstant(d, "LIST_FIND_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FIND_LEFT)));
50353 SWIG_Python_SetConstant(d, "LIST_FIND_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FIND_RIGHT)));
50354 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
50355 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
50356 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
50357 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
50358 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
50359 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
50360 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
50361 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
50362 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
50363 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
50364 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
50365 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
50366 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
50367 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
50368 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
50369 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
50370 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
50371 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
50372 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
50373 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
50374
50375 // Map renamed classes back to their common name for OOR
50376 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
50377
50378 SWIG_addvarlink(SWIG_globals(),(char*)"TreeCtrlNameStr",TreeCtrlNameStr_get, TreeCtrlNameStr_set);
50379 SWIG_Python_SetConstant(d, "TR_NO_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_NO_BUTTONS)));
50380 SWIG_Python_SetConstant(d, "TR_HAS_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_HAS_BUTTONS)));
50381 SWIG_Python_SetConstant(d, "TR_NO_LINES",SWIG_From_int(static_cast< int >(wxTR_NO_LINES)));
50382 SWIG_Python_SetConstant(d, "TR_LINES_AT_ROOT",SWIG_From_int(static_cast< int >(wxTR_LINES_AT_ROOT)));
50383 SWIG_Python_SetConstant(d, "TR_SINGLE",SWIG_From_int(static_cast< int >(wxTR_SINGLE)));
50384 SWIG_Python_SetConstant(d, "TR_MULTIPLE",SWIG_From_int(static_cast< int >(wxTR_MULTIPLE)));
50385 SWIG_Python_SetConstant(d, "TR_EXTENDED",SWIG_From_int(static_cast< int >(wxTR_EXTENDED)));
50386 SWIG_Python_SetConstant(d, "TR_HAS_VARIABLE_ROW_HEIGHT",SWIG_From_int(static_cast< int >(wxTR_HAS_VARIABLE_ROW_HEIGHT)));
50387 SWIG_Python_SetConstant(d, "TR_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxTR_EDIT_LABELS)));
50388 SWIG_Python_SetConstant(d, "TR_HIDE_ROOT",SWIG_From_int(static_cast< int >(wxTR_HIDE_ROOT)));
50389 SWIG_Python_SetConstant(d, "TR_ROW_LINES",SWIG_From_int(static_cast< int >(wxTR_ROW_LINES)));
50390 SWIG_Python_SetConstant(d, "TR_FULL_ROW_HIGHLIGHT",SWIG_From_int(static_cast< int >(wxTR_FULL_ROW_HIGHLIGHT)));
50391 SWIG_Python_SetConstant(d, "TR_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxTR_DEFAULT_STYLE)));
50392 SWIG_Python_SetConstant(d, "TR_TWIST_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_TWIST_BUTTONS)));
1bd55598
RD
50393 SWIG_Python_SetConstant(d, "TreeItemIcon_Normal",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Normal)));
50394 SWIG_Python_SetConstant(d, "TreeItemIcon_Selected",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Selected)));
50395 SWIG_Python_SetConstant(d, "TreeItemIcon_Expanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Expanded)));
50396 SWIG_Python_SetConstant(d, "TreeItemIcon_SelectedExpanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_SelectedExpanded)));
50397 SWIG_Python_SetConstant(d, "TreeItemIcon_Max",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Max)));
50398 SWIG_Python_SetConstant(d, "TREE_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ABOVE)));
50399 SWIG_Python_SetConstant(d, "TREE_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_BELOW)));
50400 SWIG_Python_SetConstant(d, "TREE_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_NOWHERE)));
50401 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMBUTTON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMBUTTON)));
50402 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMICON)));
50403 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMINDENT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMINDENT)));
50404 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLABEL)));
50405 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMRIGHT)));
50406 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMSTATEICON)));
50407 SWIG_Python_SetConstant(d, "TREE_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TOLEFT)));
50408 SWIG_Python_SetConstant(d, "TREE_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TORIGHT)));
50409 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMUPPERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMUPPERPART)));
50410 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLOWERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLOWERPART)));
50411 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEM)));
50412 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
50413 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
50414 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
50415 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
50416 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
50417 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
50418 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
50419 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
50420 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
50421 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
50422 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
50423 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
50424 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
50425 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
50426 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
50427 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
50428 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
50429 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
50430 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
50431 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
50432 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU));
b02396e8 50433 SWIG_addvarlink(SWIG_globals(),(char*)"NullTreeItemId",NullTreeItemId_get, NullTreeItemId_set);
1bd55598
RD
50434
50435 // Map renamed classes back to their common name for OOR
50436 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
50437 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
50438
50439 SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogDefaultFolderStr",DirDialogDefaultFolderStr_get, DirDialogDefaultFolderStr_set);
50440 SWIG_Python_SetConstant(d, "DIRCTRL_DIR_ONLY",SWIG_From_int(static_cast< int >(wxDIRCTRL_DIR_ONLY)));
50441 SWIG_Python_SetConstant(d, "DIRCTRL_SELECT_FIRST",SWIG_From_int(static_cast< int >(wxDIRCTRL_SELECT_FIRST)));
50442 SWIG_Python_SetConstant(d, "DIRCTRL_SHOW_FILTERS",SWIG_From_int(static_cast< int >(wxDIRCTRL_SHOW_FILTERS)));
50443 SWIG_Python_SetConstant(d, "DIRCTRL_3D_INTERNAL",SWIG_From_int(static_cast< int >(wxDIRCTRL_3D_INTERNAL)));
50444 SWIG_Python_SetConstant(d, "DIRCTRL_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxDIRCTRL_EDIT_LABELS)));
1bd55598
RD
50445 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
50446 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
704eda0c
RD
50447 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Unknown",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Unknown)));
50448 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Keyboard",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Keyboard)));
50449 SWIG_Python_SetConstant(d, "HelpEvent_Origin_HelpButton",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_HelpButton)));
1bd55598
RD
50450
50451 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
50452
50453 SWIG_addvarlink(SWIG_globals(),(char*)"DatePickerCtrlNameStr",DatePickerCtrlNameStr_get, DatePickerCtrlNameStr_set);
50454 SWIG_Python_SetConstant(d, "DP_DEFAULT",SWIG_From_int(static_cast< int >(wxDP_DEFAULT)));
50455 SWIG_Python_SetConstant(d, "DP_SPIN",SWIG_From_int(static_cast< int >(wxDP_SPIN)));
50456 SWIG_Python_SetConstant(d, "DP_DROPDOWN",SWIG_From_int(static_cast< int >(wxDP_DROPDOWN)));
50457 SWIG_Python_SetConstant(d, "DP_SHOWCENTURY",SWIG_From_int(static_cast< int >(wxDP_SHOWCENTURY)));
50458 SWIG_Python_SetConstant(d, "DP_ALLOWNONE",SWIG_From_int(static_cast< int >(wxDP_ALLOWNONE)));
704eda0c
RD
50459 SWIG_addvarlink(SWIG_globals(),(char*)"HyperlinkCtrlNameStr",HyperlinkCtrlNameStr_get, HyperlinkCtrlNameStr_set);
50460 SWIG_Python_SetConstant(d, "HL_CONTEXTMENU",SWIG_From_int(static_cast< int >(wxHL_CONTEXTMENU)));
33d6fd3b
RD
50461 SWIG_Python_SetConstant(d, "HL_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxHL_ALIGN_LEFT)));
50462 SWIG_Python_SetConstant(d, "HL_ALIGN_RIGHT",SWIG_From_int(static_cast< int >(wxHL_ALIGN_RIGHT)));
50463 SWIG_Python_SetConstant(d, "HL_ALIGN_CENTRE",SWIG_From_int(static_cast< int >(wxHL_ALIGN_CENTRE)));
704eda0c
RD
50464 SWIG_Python_SetConstant(d, "HL_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxHL_DEFAULT_STYLE)));
50465 PyDict_SetItemString(d, "wxEVT_COMMAND_HYPERLINK", PyInt_FromLong(wxEVT_COMMAND_HYPERLINK));
b850e7f3
RD
50466 SWIG_Python_SetConstant(d, "PB_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxPB_USE_TEXTCTRL)));
50467 SWIG_addvarlink(SWIG_globals(),(char*)"ColourPickerCtrlNameStr",ColourPickerCtrlNameStr_get, ColourPickerCtrlNameStr_set);
50468 SWIG_Python_SetConstant(d, "CLRP_SHOW_LABEL",SWIG_From_int(static_cast< int >(wxCLRP_SHOW_LABEL)));
50469 SWIG_Python_SetConstant(d, "CLRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxCLRP_USE_TEXTCTRL)));
50470 SWIG_Python_SetConstant(d, "CLRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCLRP_DEFAULT_STYLE)));
50471 PyDict_SetItemString(d, "wxEVT_COMMAND_COLOURPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLOURPICKER_CHANGED));
50472 SWIG_addvarlink(SWIG_globals(),(char*)"FilePickerCtrlNameStr",FilePickerCtrlNameStr_get, FilePickerCtrlNameStr_set);
50473 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorPromptStr",FileSelectorPromptStr_get, FileSelectorPromptStr_set);
50474 SWIG_addvarlink(SWIG_globals(),(char*)"DirPickerCtrlNameStr",DirPickerCtrlNameStr_get, DirPickerCtrlNameStr_set);
50475 SWIG_addvarlink(SWIG_globals(),(char*)"DirSelectorPromptStr",DirSelectorPromptStr_get, DirSelectorPromptStr_set);
50476 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorDefaultWildcardStr",FileSelectorDefaultWildcardStr_get, FileSelectorDefaultWildcardStr_set);
50477 SWIG_Python_SetConstant(d, "FLP_OPEN",SWIG_From_int(static_cast< int >(wxFLP_OPEN)));
50478 SWIG_Python_SetConstant(d, "FLP_SAVE",SWIG_From_int(static_cast< int >(wxFLP_SAVE)));
50479 SWIG_Python_SetConstant(d, "FLP_OVERWRITE_PROMPT",SWIG_From_int(static_cast< int >(wxFLP_OVERWRITE_PROMPT)));
50480 SWIG_Python_SetConstant(d, "FLP_FILE_MUST_EXIST",SWIG_From_int(static_cast< int >(wxFLP_FILE_MUST_EXIST)));
50481 SWIG_Python_SetConstant(d, "FLP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxFLP_CHANGE_DIR)));
50482 SWIG_Python_SetConstant(d, "DIRP_DIR_MUST_EXIST",SWIG_From_int(static_cast< int >(wxDIRP_DIR_MUST_EXIST)));
50483 SWIG_Python_SetConstant(d, "DIRP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxDIRP_CHANGE_DIR)));
50484 SWIG_Python_SetConstant(d, "FLP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFLP_USE_TEXTCTRL)));
50485 SWIG_Python_SetConstant(d, "FLP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFLP_DEFAULT_STYLE)));
50486 SWIG_Python_SetConstant(d, "DIRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxDIRP_USE_TEXTCTRL)));
50487 SWIG_Python_SetConstant(d, "DIRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxDIRP_DEFAULT_STYLE)));
50488 PyDict_SetItemString(d, "wxEVT_COMMAND_FILEPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FILEPICKER_CHANGED));
50489 PyDict_SetItemString(d, "wxEVT_COMMAND_DIRPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_DIRPICKER_CHANGED));
50490 SWIG_addvarlink(SWIG_globals(),(char*)"FontPickerCtrlNameStr",FontPickerCtrlNameStr_get, FontPickerCtrlNameStr_set);
50491 SWIG_Python_SetConstant(d, "FNTP_FONTDESC_AS_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_FONTDESC_AS_LABEL)));
50492 SWIG_Python_SetConstant(d, "FNTP_USEFONT_FOR_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_USEFONT_FOR_LABEL)));
50493 SWIG_Python_SetConstant(d, "FNTP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFNTP_USE_TEXTCTRL)));
50494 SWIG_Python_SetConstant(d, "FNTP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFNTP_DEFAULT_STYLE)));
50495 PyDict_SetItemString(d, "wxEVT_COMMAND_FONTPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FONTPICKER_CHANGED));
5172800e
RD
50496 SWIG_addvarlink(SWIG_globals(),(char*)"CollapsiblePaneNameStr",CollapsiblePaneNameStr_get, CollapsiblePaneNameStr_set);
50497 SWIG_Python_SetConstant(d, "CP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCP_DEFAULT_STYLE)));
50498 SWIG_Python_SetConstant(d, "CP_NO_TLW_RESIZE",SWIG_From_int(static_cast< int >(wxCP_NO_TLW_RESIZE)));
50499 PyDict_SetItemString(d, "wxEVT_COMMAND_COLLPANE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLLPANE_CHANGED));
3f7f284d
RD
50500 SWIG_addvarlink(SWIG_globals(),(char*)"SearchCtrlNameStr",SearchCtrlNameStr_get, SearchCtrlNameStr_set);
50501 PyDict_SetItemString(d, "wxEVT_COMMAND_SEARCHCTRL_CANCEL", PyInt_FromLong(wxEVT_COMMAND_SEARCHCTRL_CANCEL));
50502 PyDict_SetItemString(d, "wxEVT_COMMAND_SEARCHCTRL_SEARCH", PyInt_FromLong(wxEVT_COMMAND_SEARCHCTRL_SEARCH));
d55e5bfc
RD
50503}
50504