]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/mac/_controls_wrap.cpp
Changes needed for building with Python 2.5
[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
1bd55598
RD
988/* for raw pointers */
989#define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
990#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
991#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
992#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
993#define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
994#define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
995#define swig_owntype int
d55e5bfc 996
1bd55598
RD
997/* for raw packed data */
998#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
999#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
d55e5bfc 1000
1bd55598
RD
1001/* for class or struct pointers */
1002#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1003#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
d55e5bfc 1004
1bd55598
RD
1005/* for C or C++ function pointers */
1006#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1007#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
d55e5bfc 1008
1bd55598
RD
1009/* for C++ member pointers, ie, member methods */
1010#define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1011#define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
32fe5131 1012
d55e5bfc 1013
1bd55598 1014/* Runtime API */
d55e5bfc 1015
1bd55598
RD
1016#define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1017#define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1018#define SWIG_NewClientData(obj) PySwigClientData_New(obj)
32fe5131 1019
1bd55598
RD
1020#define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1021#define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1022#define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1023#define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1024#define SWIG_fail goto fail
32fe5131 1025
d55e5bfc 1026
1bd55598 1027/* Runtime API implementation */
36ed4f51 1028
1bd55598 1029/* Error manipulation */
36ed4f51 1030
1bd55598
RD
1031SWIGINTERN void
1032SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1033 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1034 PyErr_SetObject(errtype, obj);
1035 Py_DECREF(obj);
1036 SWIG_PYTHON_THREAD_END_BLOCK;
d55e5bfc
RD
1037}
1038
1bd55598
RD
1039SWIGINTERN void
1040SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1041 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1042 PyErr_SetString(errtype, (char *) msg);
1043 SWIG_PYTHON_THREAD_END_BLOCK;
36ed4f51 1044}
d55e5bfc 1045
1bd55598 1046#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
32fe5131 1047
1bd55598 1048/* Set a constant value */
36ed4f51 1049
1bd55598
RD
1050SWIGINTERN void
1051SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1052 PyDict_SetItemString(d, (char*) name, obj);
1053 Py_DECREF(obj);
d55e5bfc
RD
1054}
1055
1bd55598 1056/* Append a value to the result obj */
d55e5bfc 1057
1bd55598
RD
1058SWIGINTERN PyObject*
1059SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1060#if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1061 if (!result) {
1062 result = obj;
1063 } else if (result == Py_None) {
1064 Py_DECREF(result);
1065 result = obj;
1066 } else {
1067 if (!PyList_Check(result)) {
1068 PyObject *o2 = result;
1069 result = PyList_New(1);
1070 PyList_SetItem(result, 0, o2);
1071 }
1072 PyList_Append(result,obj);
1073 Py_DECREF(obj);
1074 }
1075 return result;
1076#else
1077 PyObject* o2;
1078 PyObject* o3;
1079 if (!result) {
1080 result = obj;
1081 } else if (result == Py_None) {
1082 Py_DECREF(result);
1083 result = obj;
c370783e 1084 } else {
1bd55598
RD
1085 if (!PyTuple_Check(result)) {
1086 o2 = result;
1087 result = PyTuple_New(1);
1088 PyTuple_SET_ITEM(result, 0, o2);
1089 }
1090 o3 = PyTuple_New(1);
1091 PyTuple_SET_ITEM(o3, 0, obj);
1092 o2 = result;
1093 result = PySequence_Concat(o2, o3);
1094 Py_DECREF(o2);
1095 Py_DECREF(o3);
c370783e 1096 }
1bd55598
RD
1097 return result;
1098#endif
d55e5bfc 1099}
36ed4f51 1100
1bd55598 1101/* Unpack the argument tuple */
36ed4f51 1102
1bd55598
RD
1103SWIGINTERN int
1104SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1105{
1106 if (!args) {
1107 if (!min && !max) {
1108 return 1;
1109 } else {
1110 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1111 name, (min == max ? "" : "at least "), min);
1112 return 0;
1113 }
1114 }
1115 if (!PyTuple_Check(args)) {
1116 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1117 return 0;
1118 } else {
1119 register int l = PyTuple_GET_SIZE(args);
1120 if (l < min) {
1121 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1122 name, (min == max ? "" : "at least "), min, l);
1123 return 0;
1124 } else if (l > max) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at most "), max, l);
1127 return 0;
1128 } else {
1129 register int i;
1130 for (i = 0; i < l; ++i) {
1131 objs[i] = PyTuple_GET_ITEM(args, i);
1132 }
1133 for (; l < max; ++l) {
1134 objs[l] = 0;
1135 }
1136 return i + 1;
1137 }
1138 }
1139}
1140
1141/* A functor is a function object with one single object argument */
1142#if PY_VERSION_HEX >= 0x02020000
1143#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1144#else
1145#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1146#endif
1147
1148/*
1149 Helper for static pointer initialization for both C and C++ code, for example
1150 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1151*/
1152#ifdef __cplusplus
1153#define SWIG_STATIC_POINTER(var) var
1154#else
1155#define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1156#endif
1157
1158/* -----------------------------------------------------------------------------
1159 * Pointer declarations
1160 * ----------------------------------------------------------------------------- */
1161
1162/* Flags for new pointer objects */
1163#define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1164#define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1165
1166#define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1167
1168#ifdef __cplusplus
1169extern "C" {
1170#if 0
1171} /* cc-mode */
1172#endif
1173#endif
1174
1175/* How to access Py_None */
1176#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1177# ifndef SWIG_PYTHON_NO_BUILD_NONE
1178# ifndef SWIG_PYTHON_BUILD_NONE
1179# define SWIG_PYTHON_BUILD_NONE
1180# endif
1181# endif
1182#endif
1183
1184#ifdef SWIG_PYTHON_BUILD_NONE
1185# ifdef Py_None
1186# undef Py_None
1187# define Py_None SWIG_Py_None()
1188# endif
1189SWIGRUNTIMEINLINE PyObject *
1190_SWIG_Py_None(void)
1191{
1192 PyObject *none = Py_BuildValue("");
1193 Py_DECREF(none);
1194 return none;
1195}
1196SWIGRUNTIME PyObject *
1197SWIG_Py_None(void)
1198{
1199 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1200 return none;
1201}
1202#endif
1203
1204/* The python void return value */
1205
1206SWIGRUNTIMEINLINE PyObject *
1207SWIG_Py_Void(void)
1208{
1209 PyObject *none = Py_None;
1210 Py_INCREF(none);
1211 return none;
1212}
1213
1214/* PySwigClientData */
1215
1216typedef struct {
1217 PyObject *klass;
1218 PyObject *newraw;
1219 PyObject *newargs;
1220 PyObject *destroy;
1221 int delargs;
1222 int implicitconv;
1223} PySwigClientData;
1224
1225SWIGRUNTIMEINLINE int
1226SWIG_Python_CheckImplicit(swig_type_info *ty)
1227{
1228 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1229 return data ? data->implicitconv : 0;
1230}
1231
1232SWIGRUNTIMEINLINE PyObject *
1233SWIG_Python_ExceptionType(swig_type_info *desc) {
1234 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1235 PyObject *klass = data ? data->klass : 0;
1236 return (klass ? klass : PyExc_RuntimeError);
1237}
1238
1239
1240SWIGRUNTIME PySwigClientData *
1241PySwigClientData_New(PyObject* obj)
1242{
1243 if (!obj) {
1244 return 0;
1245 } else {
1246 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1247 /* the klass element */
1248 data->klass = obj;
1249 Py_INCREF(data->klass);
1250 /* the newraw method and newargs arguments used to create a new raw instance */
1251 if (PyClass_Check(obj)) {
1252 data->newraw = 0;
1253 data->newargs = obj;
1254 Py_INCREF(obj);
1255 } else {
1256#if (PY_VERSION_HEX < 0x02020000)
1257 data->newraw = 0;
1258#else
1259 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1260#endif
1261 if (data->newraw) {
1262 Py_INCREF(data->newraw);
1263 data->newargs = PyTuple_New(1);
1264 PyTuple_SetItem(data->newargs, 0, obj);
1265 } else {
1266 data->newargs = obj;
1267 }
1268 Py_INCREF(data->newargs);
1269 }
1270 /* the destroy method, aka as the C++ delete method */
1271 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1272 if (PyErr_Occurred()) {
1273 PyErr_Clear();
1274 data->destroy = 0;
1275 }
1276 if (data->destroy) {
1277 int flags;
1278 Py_INCREF(data->destroy);
1279 flags = PyCFunction_GET_FLAGS(data->destroy);
1280#ifdef METH_O
1281 data->delargs = !(flags & (METH_O));
1282#else
1283 data->delargs = 0;
1284#endif
1285 } else {
1286 data->delargs = 0;
1287 }
1288 data->implicitconv = 0;
1289 return data;
1290 }
1291}
1292
1293SWIGRUNTIME void
1294PySwigClientData_Del(PySwigClientData* data)
1295{
1296 Py_XDECREF(data->newraw);
1297 Py_XDECREF(data->newargs);
1298 Py_XDECREF(data->destroy);
1299}
1300
1301/* =============== PySwigObject =====================*/
1302
1303typedef struct {
1304 PyObject_HEAD
1305 void *ptr;
1306 swig_type_info *ty;
1307 int own;
1308 PyObject *next;
1309} PySwigObject;
1310
1311SWIGRUNTIME PyObject *
1312PySwigObject_long(PySwigObject *v)
1313{
1314 return PyLong_FromVoidPtr(v->ptr);
1315}
1316
1317SWIGRUNTIME PyObject *
1318PySwigObject_format(const char* fmt, PySwigObject *v)
1319{
1320 PyObject *res = NULL;
1321 PyObject *args = PyTuple_New(1);
1322 if (args) {
1323 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1324 PyObject *ofmt = PyString_FromString(fmt);
1325 if (ofmt) {
1326 res = PyString_Format(ofmt,args);
1327 Py_DECREF(ofmt);
1328 }
1329 Py_DECREF(args);
1330 }
1331 }
1332 return res;
1333}
1334
1335SWIGRUNTIME PyObject *
1336PySwigObject_oct(PySwigObject *v)
1337{
1338 return PySwigObject_format("%o",v);
1339}
1340
1341SWIGRUNTIME PyObject *
1342PySwigObject_hex(PySwigObject *v)
1343{
1344 return PySwigObject_format("%x",v);
1345}
1346
1347SWIGRUNTIME PyObject *
1348#ifdef METH_NOARGS
1349PySwigObject_repr(PySwigObject *v)
1350#else
1351PySwigObject_repr(PySwigObject *v, PyObject *args)
1352#endif
1353{
1354 const char *name = SWIG_TypePrettyName(v->ty);
1355 PyObject *hex = PySwigObject_hex(v);
1356 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1357 Py_DECREF(hex);
1358 if (v->next) {
1359#ifdef METH_NOARGS
1360 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1361#else
1362 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1363#endif
1364 PyString_ConcatAndDel(&repr,nrep);
1365 }
1366 return repr;
1367}
1368
1369SWIGRUNTIME int
1370PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1371{
1372#ifdef METH_NOARGS
1373 PyObject *repr = PySwigObject_repr(v);
1374#else
1375 PyObject *repr = PySwigObject_repr(v, NULL);
1376#endif
1377 if (repr) {
1378 fputs(PyString_AsString(repr), fp);
1379 Py_DECREF(repr);
1380 return 0;
1381 } else {
1382 return 1;
1383 }
1384}
1385
1386SWIGRUNTIME PyObject *
1387PySwigObject_str(PySwigObject *v)
1388{
1389 char result[SWIG_BUFFER_SIZE];
1390 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1391 PyString_FromString(result) : 0;
1392}
1393
1394SWIGRUNTIME int
1395PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1396{
1397 void *i = v->ptr;
1398 void *j = w->ptr;
1399 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1400}
1401
1402SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1403
1404SWIGRUNTIME PyTypeObject*
1405PySwigObject_type(void) {
1406 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1407 return type;
1408}
1409
1410SWIGRUNTIMEINLINE int
1411PySwigObject_Check(PyObject *op) {
1412 return ((op)->ob_type == PySwigObject_type())
1413 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1414}
1415
1416SWIGRUNTIME PyObject *
1417PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1418
1419SWIGRUNTIME void
1420PySwigObject_dealloc(PyObject *v)
1421{
1422 PySwigObject *sobj = (PySwigObject *) v;
1423 PyObject *next = sobj->next;
1424 if (sobj->own) {
1425 swig_type_info *ty = sobj->ty;
1426 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1427 PyObject *destroy = data ? data->destroy : 0;
1428 if (destroy) {
1429 /* destroy is always a VARARGS method */
1430 PyObject *res;
1431 if (data->delargs) {
1432 /* we need to create a temporal object to carry the destroy operation */
1433 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1434 res = SWIG_Python_CallFunctor(destroy, tmp);
1435 Py_DECREF(tmp);
1436 } else {
1437 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1438 PyObject *mself = PyCFunction_GET_SELF(destroy);
1439 res = ((*meth)(mself, v));
1440 }
1441 Py_XDECREF(res);
1442 } else {
1443 const char *name = SWIG_TypePrettyName(ty);
1444#if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1445 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1446#endif
1447 }
1448 }
1449 Py_XDECREF(next);
1450 PyObject_DEL(v);
1451}
1452
1453SWIGRUNTIME PyObject*
1454PySwigObject_append(PyObject* v, PyObject* next)
1455{
1456 PySwigObject *sobj = (PySwigObject *) v;
1457#ifndef METH_O
1458 PyObject *tmp = 0;
1459 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1460 next = tmp;
1461#endif
1462 if (!PySwigObject_Check(next)) {
1463 return NULL;
1464 }
1465 sobj->next = next;
1466 Py_INCREF(next);
1467 return SWIG_Py_Void();
1468}
1469
1470SWIGRUNTIME PyObject*
1471#ifdef METH_NOARGS
1472PySwigObject_next(PyObject* v)
1473#else
1474PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1475#endif
1476{
1477 PySwigObject *sobj = (PySwigObject *) v;
1478 if (sobj->next) {
1479 Py_INCREF(sobj->next);
1480 return sobj->next;
1481 } else {
1482 return SWIG_Py_Void();
1483 }
1484}
1485
1486SWIGINTERN PyObject*
1487#ifdef METH_NOARGS
1488PySwigObject_disown(PyObject *v)
1489#else
1490PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1491#endif
1492{
1493 PySwigObject *sobj = (PySwigObject *)v;
1494 sobj->own = 0;
1495 return SWIG_Py_Void();
1496}
1497
1498SWIGINTERN PyObject*
1499#ifdef METH_NOARGS
1500PySwigObject_acquire(PyObject *v)
1501#else
1502PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1503#endif
1504{
1505 PySwigObject *sobj = (PySwigObject *)v;
1506 sobj->own = SWIG_POINTER_OWN;
1507 return SWIG_Py_Void();
1508}
1509
1510SWIGINTERN PyObject*
1511PySwigObject_own(PyObject *v, PyObject *args)
1512{
1513 PyObject *val = 0;
1514#if (PY_VERSION_HEX < 0x02020000)
1515 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1516#else
1517 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1518#endif
1519 {
1520 return NULL;
1521 }
1522 else
1523 {
1524 PySwigObject *sobj = (PySwigObject *)v;
1525 PyObject *obj = PyBool_FromLong(sobj->own);
1526 if (val) {
1527#ifdef METH_NOARGS
1528 if (PyObject_IsTrue(val)) {
1529 PySwigObject_acquire(v);
1530 } else {
1531 PySwigObject_disown(v);
1532 }
1533#else
1534 if (PyObject_IsTrue(val)) {
1535 PySwigObject_acquire(v,args);
1536 } else {
1537 PySwigObject_disown(v,args);
1538 }
1539#endif
1540 }
1541 return obj;
1542 }
1543}
1544
1545#ifdef METH_O
1546static PyMethodDef
1547swigobject_methods[] = {
1548 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1549 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1550 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1551 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1552 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1553 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1554 {0, 0, 0, 0}
1555};
1556#else
1557static PyMethodDef
1558swigobject_methods[] = {
1559 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1560 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1561 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1562 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1563 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1564 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1565 {0, 0, 0, 0}
1566};
1567#endif
1568
1569#if PY_VERSION_HEX < 0x02020000
1570SWIGINTERN PyObject *
1571PySwigObject_getattr(PySwigObject *sobj,char *name)
1572{
1573 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1574}
1575#endif
1576
1577SWIGRUNTIME PyTypeObject*
1578_PySwigObject_type(void) {
1579 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1580
1581 static PyNumberMethods PySwigObject_as_number = {
1582 (binaryfunc)0, /*nb_add*/
1583 (binaryfunc)0, /*nb_subtract*/
1584 (binaryfunc)0, /*nb_multiply*/
1585 (binaryfunc)0, /*nb_divide*/
1586 (binaryfunc)0, /*nb_remainder*/
36ed4f51
RD
1587 (binaryfunc)0, /*nb_divmod*/
1588 (ternaryfunc)0,/*nb_power*/
1589 (unaryfunc)0, /*nb_negative*/
1590 (unaryfunc)0, /*nb_positive*/
1591 (unaryfunc)0, /*nb_absolute*/
1592 (inquiry)0, /*nb_nonzero*/
1593 0, /*nb_invert*/
1594 0, /*nb_lshift*/
1595 0, /*nb_rshift*/
1596 0, /*nb_and*/
1597 0, /*nb_xor*/
1598 0, /*nb_or*/
1599 (coercion)0, /*nb_coerce*/
1600 (unaryfunc)PySwigObject_long, /*nb_int*/
1601 (unaryfunc)PySwigObject_long, /*nb_long*/
1602 (unaryfunc)0, /*nb_float*/
1603 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1604 (unaryfunc)PySwigObject_hex, /*nb_hex*/
32fe5131 1605#if PY_VERSION_HEX >= 0x02020000
36ed4f51 1606 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
32fe5131
RD
1607#elif PY_VERSION_HEX >= 0x02000000
1608 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
36ed4f51
RD
1609#endif
1610 };
1611
1bd55598 1612 static PyTypeObject pyswigobject_type;
32fe5131 1613 static int type_init = 0;
36ed4f51 1614 if (!type_init) {
1bd55598
RD
1615 const PyTypeObject tmp
1616 = {
1617 PyObject_HEAD_INIT(NULL)
1618 0, /* ob_size */
1619 (char *)"PySwigObject", /* tp_name */
1620 sizeof(PySwigObject), /* tp_basicsize */
1621 0, /* tp_itemsize */
1622 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1623 (printfunc)PySwigObject_print, /* tp_print */
1624#if PY_VERSION_HEX < 0x02020000
1625 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1626#else
1627 (getattrfunc)0, /* tp_getattr */
36ed4f51 1628#endif
1bd55598
RD
1629 (setattrfunc)0, /* tp_setattr */
1630 (cmpfunc)PySwigObject_compare, /* tp_compare */
1631 (reprfunc)PySwigObject_repr, /* tp_repr */
1632 &PySwigObject_as_number, /* tp_as_number */
1633 0, /* tp_as_sequence */
1634 0, /* tp_as_mapping */
1635 (hashfunc)0, /* tp_hash */
1636 (ternaryfunc)0, /* tp_call */
1637 (reprfunc)PySwigObject_str, /* tp_str */
1638 PyObject_GenericGetAttr, /* tp_getattro */
1639 0, /* tp_setattro */
1640 0, /* tp_as_buffer */
1641 Py_TPFLAGS_DEFAULT, /* tp_flags */
1642 swigobject_doc, /* tp_doc */
1643 0, /* tp_traverse */
1644 0, /* tp_clear */
1645 0, /* tp_richcompare */
1646 0, /* tp_weaklistoffset */
36ed4f51 1647#if PY_VERSION_HEX >= 0x02020000
1bd55598
RD
1648 0, /* tp_iter */
1649 0, /* tp_iternext */
1650 swigobject_methods, /* tp_methods */
1651 0, /* tp_members */
1652 0, /* tp_getset */
1653 0, /* tp_base */
1654 0, /* tp_dict */
1655 0, /* tp_descr_get */
1656 0, /* tp_descr_set */
1657 0, /* tp_dictoffset */
1658 0, /* tp_init */
1659 0, /* tp_alloc */
1660 0, /* tp_new */
1661 0, /* tp_free */
1662 0, /* tp_is_gc */
1663 0, /* tp_bases */
1664 0, /* tp_mro */
1665 0, /* tp_cache */
1666 0, /* tp_subclasses */
1667 0, /* tp_weaklist */
d55e5bfc 1668#endif
36ed4f51 1669#if PY_VERSION_HEX >= 0x02030000
1bd55598 1670 0, /* tp_del */
36ed4f51
RD
1671#endif
1672#ifdef COUNT_ALLOCS
1bd55598 1673 0,0,0,0 /* tp_alloc -> tp_next */
36ed4f51 1674#endif
1bd55598 1675 };
32fe5131 1676 pyswigobject_type = tmp;
1bd55598 1677 pyswigobject_type.ob_type = &PyType_Type;
36ed4f51
RD
1678 type_init = 1;
1679 }
32fe5131 1680 return &pyswigobject_type;
36ed4f51
RD
1681}
1682
1683SWIGRUNTIME PyObject *
1bd55598 1684PySwigObject_New(void *ptr, swig_type_info *ty, int own)
36ed4f51 1685{
1bd55598
RD
1686 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1687 if (sobj) {
1688 sobj->ptr = ptr;
1689 sobj->ty = ty;
1690 sobj->own = own;
1691 sobj->next = 0;
32fe5131 1692 }
1bd55598 1693 return (PyObject *)sobj;
36ed4f51
RD
1694}
1695
1696/* -----------------------------------------------------------------------------
1697 * Implements a simple Swig Packed type, and use it instead of string
1698 * ----------------------------------------------------------------------------- */
1699
1700typedef struct {
1701 PyObject_HEAD
1702 void *pack;
1bd55598 1703 swig_type_info *ty;
36ed4f51
RD
1704 size_t size;
1705} PySwigPacked;
1706
1707SWIGRUNTIME int
1bd55598 1708PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
36ed4f51
RD
1709{
1710 char result[SWIG_BUFFER_SIZE];
1711 fputs("<Swig Packed ", fp);
1712 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1713 fputs("at ", fp);
1714 fputs(result, fp);
1715 }
1bd55598 1716 fputs(v->ty->name,fp);
36ed4f51
RD
1717 fputs(">", fp);
1718 return 0;
1719}
1720
1721SWIGRUNTIME PyObject *
1722PySwigPacked_repr(PySwigPacked *v)
1723{
1724 char result[SWIG_BUFFER_SIZE];
1725 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1bd55598 1726 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
36ed4f51 1727 } else {
1bd55598 1728 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
36ed4f51
RD
1729 }
1730}
1731
1732SWIGRUNTIME PyObject *
1733PySwigPacked_str(PySwigPacked *v)
1734{
1735 char result[SWIG_BUFFER_SIZE];
1736 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1bd55598 1737 return PyString_FromFormat("%s%s", result, v->ty->name);
36ed4f51 1738 } else {
1bd55598 1739 return PyString_FromString(v->ty->name);
36ed4f51
RD
1740 }
1741}
1742
1743SWIGRUNTIME int
1744PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1745{
1bd55598
RD
1746 size_t i = v->size;
1747 size_t j = w->size;
1748 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1749 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
36ed4f51
RD
1750}
1751
1bd55598 1752SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
36ed4f51
RD
1753
1754SWIGRUNTIME PyTypeObject*
32fe5131 1755PySwigPacked_type(void) {
1bd55598
RD
1756 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1757 return type;
1758}
1759
1760SWIGRUNTIMEINLINE int
1761PySwigPacked_Check(PyObject *op) {
1762 return ((op)->ob_type == _PySwigPacked_type())
1763 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1764}
1765
1766SWIGRUNTIME void
1767PySwigPacked_dealloc(PyObject *v)
1768{
1769 if (PySwigPacked_Check(v)) {
1770 PySwigPacked *sobj = (PySwigPacked *) v;
1771 free(sobj->pack);
1772 }
1773 PyObject_DEL(v);
1774}
1775
1776SWIGRUNTIME PyTypeObject*
1777_PySwigPacked_type(void) {
1778 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1779 static PyTypeObject pyswigpacked_type;
1780 static int type_init = 0;
1781 if (!type_init) {
1782 const PyTypeObject tmp
1783 = {
1784 PyObject_HEAD_INIT(NULL)
1785 0, /* ob_size */
1786 (char *)"PySwigPacked", /* tp_name */
1787 sizeof(PySwigPacked), /* tp_basicsize */
1788 0, /* tp_itemsize */
1789 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1790 (printfunc)PySwigPacked_print, /* tp_print */
1791 (getattrfunc)0, /* tp_getattr */
1792 (setattrfunc)0, /* tp_setattr */
1793 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1794 (reprfunc)PySwigPacked_repr, /* tp_repr */
1795 0, /* tp_as_number */
1796 0, /* tp_as_sequence */
1797 0, /* tp_as_mapping */
1798 (hashfunc)0, /* tp_hash */
1799 (ternaryfunc)0, /* tp_call */
1800 (reprfunc)PySwigPacked_str, /* tp_str */
1801 PyObject_GenericGetAttr, /* tp_getattro */
1802 0, /* tp_setattro */
1803 0, /* tp_as_buffer */
1804 Py_TPFLAGS_DEFAULT, /* tp_flags */
1805 swigpacked_doc, /* tp_doc */
1806 0, /* tp_traverse */
1807 0, /* tp_clear */
1808 0, /* tp_richcompare */
1809 0, /* tp_weaklistoffset */
1810#if PY_VERSION_HEX >= 0x02020000
1811 0, /* tp_iter */
1812 0, /* tp_iternext */
1813 0, /* tp_methods */
1814 0, /* tp_members */
1815 0, /* tp_getset */
1816 0, /* tp_base */
1817 0, /* tp_dict */
1818 0, /* tp_descr_get */
1819 0, /* tp_descr_set */
1820 0, /* tp_dictoffset */
1821 0, /* tp_init */
1822 0, /* tp_alloc */
1823 0, /* tp_new */
1824 0, /* tp_free */
1825 0, /* tp_is_gc */
1826 0, /* tp_bases */
1827 0, /* tp_mro */
1828 0, /* tp_cache */
1829 0, /* tp_subclasses */
1830 0, /* tp_weaklist */
36ed4f51
RD
1831#endif
1832#if PY_VERSION_HEX >= 0x02030000
1bd55598 1833 0, /* tp_del */
36ed4f51
RD
1834#endif
1835#ifdef COUNT_ALLOCS
1bd55598 1836 0,0,0,0 /* tp_alloc -> tp_next */
36ed4f51 1837#endif
1bd55598 1838 };
32fe5131 1839 pyswigpacked_type = tmp;
1bd55598 1840 pyswigpacked_type.ob_type = &PyType_Type;
36ed4f51
RD
1841 type_init = 1;
1842 }
32fe5131 1843 return &pyswigpacked_type;
36ed4f51
RD
1844}
1845
1846SWIGRUNTIME PyObject *
1bd55598 1847PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
36ed4f51 1848{
1bd55598
RD
1849 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1850 if (sobj) {
36ed4f51 1851 void *pack = malloc(size);
32fe5131
RD
1852 if (pack) {
1853 memcpy(pack, ptr, size);
1bd55598
RD
1854 sobj->pack = pack;
1855 sobj->ty = ty;
1856 sobj->size = size;
1857 } else {
1858 PyObject_DEL((PyObject *) sobj);
1859 sobj = 0;
32fe5131 1860 }
36ed4f51 1861 }
1bd55598 1862 return (PyObject *) sobj;
36ed4f51
RD
1863}
1864
1bd55598 1865SWIGRUNTIME swig_type_info *
36ed4f51
RD
1866PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1867{
1bd55598
RD
1868 if (PySwigPacked_Check(obj)) {
1869 PySwigPacked *sobj = (PySwigPacked *)obj;
1870 if (sobj->size != size) return 0;
1871 memcpy(ptr, sobj->pack, size);
1872 return sobj->ty;
1873 } else {
1874 return 0;
1875 }
36ed4f51
RD
1876}
1877
36ed4f51 1878/* -----------------------------------------------------------------------------
1bd55598 1879 * pointers/data manipulation
36ed4f51
RD
1880 * ----------------------------------------------------------------------------- */
1881
1bd55598
RD
1882SWIGRUNTIMEINLINE PyObject *
1883_SWIG_This(void)
1884{
1885 return PyString_FromString("this");
1886}
36ed4f51 1887
1bd55598
RD
1888SWIGRUNTIME PyObject *
1889SWIG_This(void)
1890{
1891 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1892 return swig_this;
1893}
36ed4f51 1894
1bd55598 1895/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
36ed4f51 1896
1bd55598
RD
1897SWIGRUNTIME PySwigObject *
1898SWIG_Python_GetSwigThis(PyObject *pyobj)
36ed4f51 1899{
1bd55598
RD
1900 if (PySwigObject_Check(pyobj)) {
1901 return (PySwigObject *) pyobj;
1902 } else {
1903 PyObject *obj = 0;
1904#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1905 if (PyInstance_Check(pyobj)) {
1906 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1907 } else {
1908 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1909 if (dictptr != NULL) {
1910 PyObject *dict = *dictptr;
1911 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1912 } else {
1913#ifdef PyWeakref_CheckProxy
1914 if (PyWeakref_CheckProxy(pyobj)) {
1915 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1916 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1917 }
1918#endif
1919 obj = PyObject_GetAttr(pyobj,SWIG_This());
1920 if (obj) {
1921 Py_DECREF(obj);
36ed4f51 1922 } else {
1bd55598
RD
1923 if (PyErr_Occurred()) PyErr_Clear();
1924 return 0;
36ed4f51 1925 }
36ed4f51 1926 }
1bd55598
RD
1927 }
1928#else
1929 obj = PyObject_GetAttr(pyobj,SWIG_This());
1930 if (obj) {
1931 Py_DECREF(obj);
1932 } else {
1933 if (PyErr_Occurred()) PyErr_Clear();
1934 return 0;
1935 }
1936#endif
1937 if (obj && !PySwigObject_Check(obj)) {
1938 /* a PyObject is called 'this', try to get the 'real this'
1939 PySwigObject from it */
1940 return SWIG_Python_GetSwigThis(obj);
1941 }
1942 return (PySwigObject *)obj;
36ed4f51
RD
1943 }
1944}
1945
1bd55598
RD
1946/* Acquire a pointer value */
1947
1948SWIGRUNTIME int
1949SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1950 if (own) {
1951 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1952 if (sobj) {
1953 int oldown = sobj->own;
1954 sobj->own = own;
1955 return oldown;
1956 }
36ed4f51 1957 }
1bd55598 1958 return 0;
36ed4f51
RD
1959}
1960
1bd55598
RD
1961/* Convert a pointer value */
1962
36ed4f51 1963SWIGRUNTIME int
1bd55598
RD
1964SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1965 if (!obj) return SWIG_ERROR;
1966 if (obj == Py_None) {
1967 if (ptr) *ptr = 0;
1968 return SWIG_OK;
1969 } else {
1970 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1971 while (sobj) {
1972 void *vptr = sobj->ptr;
1973 if (ty) {
1974 swig_type_info *to = sobj->ty;
1975 if (to == ty) {
1976 /* no type cast needed */
1977 if (ptr) *ptr = vptr;
1978 break;
1979 } else {
1980 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1981 if (!tc) {
1982 sobj = (PySwigObject *)sobj->next;
1983 } else {
1984 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1985 break;
1986 }
1987 }
36ed4f51 1988 } else {
1bd55598
RD
1989 if (ptr) *ptr = vptr;
1990 break;
36ed4f51 1991 }
36ed4f51 1992 }
1bd55598
RD
1993 if (sobj) {
1994 if (own) *own = sobj->own;
1995 if (flags & SWIG_POINTER_DISOWN) {
1996 sobj->own = 0;
1997 }
1998 return SWIG_OK;
1999 } else {
2000 int res = SWIG_ERROR;
2001 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2002 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2003 if (data && !data->implicitconv) {
2004 PyObject *klass = data->klass;
2005 if (klass) {
2006 PyObject *impconv;
2007 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2008 impconv = SWIG_Python_CallFunctor(klass, obj);
2009 data->implicitconv = 0;
2010 if (PyErr_Occurred()) {
2011 PyErr_Clear();
2012 impconv = 0;
2013 }
2014 if (impconv) {
2015 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2016 if (iobj) {
2017 void *vptr;
2018 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2019 if (SWIG_IsOK(res)) {
2020 if (ptr) {
2021 *ptr = vptr;
2022 /* transfer the ownership to 'ptr' */
2023 iobj->own = 0;
2024 res = SWIG_AddCast(res);
2025 res = SWIG_AddNewMask(res);
2026 } else {
2027 res = SWIG_AddCast(res);
2028 }
2029 }
2030 }
2031 Py_DECREF(impconv);
2032 }
2033 }
2034 }
2035 }
2036 return res;
2037 }
36ed4f51
RD
2038 }
2039}
2040
1bd55598
RD
2041/* Convert a function ptr value */
2042
36ed4f51 2043SWIGRUNTIME int
1bd55598
RD
2044SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2045 if (!PyCFunction_Check(obj)) {
2046 return SWIG_ConvertPtr(obj, ptr, ty, 0);
36ed4f51 2047 } else {
1bd55598
RD
2048 void *vptr = 0;
2049
2050 /* here we get the method pointer for callbacks */
2051 char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2052 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2053 if (desc) {
2054 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2055 if (!desc) return SWIG_ERROR;
2056 }
2057 if (ty) {
2058 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2059 if (!tc) return SWIG_ERROR;
2060 *ptr = SWIG_TypeCast(tc,vptr);
2061 } else {
2062 *ptr = vptr;
2063 }
2064 return SWIG_OK;
36ed4f51
RD
2065 }
2066}
2067
1bd55598 2068/* Convert a packed value value */
36ed4f51 2069
36ed4f51 2070SWIGRUNTIME int
1bd55598
RD
2071SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2072 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2073 if (!to) return SWIG_ERROR;
2074 if (ty) {
2075 if (to != ty) {
2076 /* check type cast? */
2077 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2078 if (!tc) return SWIG_ERROR;
2079 }
36ed4f51 2080 }
1bd55598
RD
2081 return SWIG_OK;
2082}
36ed4f51 2083
1bd55598
RD
2084/* -----------------------------------------------------------------------------
2085 * Create a new pointer object
2086 * ----------------------------------------------------------------------------- */
36ed4f51 2087
1bd55598
RD
2088/*
2089 Create a new instance object, whitout calling __init__, and set the
2090 'this' attribute.
2091*/
36ed4f51 2092
1bd55598
RD
2093SWIGRUNTIME PyObject*
2094SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2095{
2096#if (PY_VERSION_HEX >= 0x02020000)
2097 PyObject *inst = 0;
2098 PyObject *newraw = data->newraw;
2099 if (newraw) {
2100 inst = PyObject_Call(newraw, data->newargs, NULL);
2101 if (inst) {
2102#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2103 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2104 if (dictptr != NULL) {
2105 PyObject *dict = *dictptr;
2106 if (dict == NULL) {
2107 dict = PyDict_New();
2108 *dictptr = dict;
2109 PyDict_SetItem(dict, SWIG_This(), swig_this);
2110 }
36ed4f51 2111 }
1bd55598
RD
2112#else
2113 PyObject *key = SWIG_This();
2114 PyObject_SetAttr(inst, key, swig_this);
2115#endif
36ed4f51 2116 }
1bd55598
RD
2117 } else {
2118 PyObject *dict = PyDict_New();
2119 PyDict_SetItem(dict, SWIG_This(), swig_this);
2120 inst = PyInstance_NewRaw(data->newargs, dict);
2121 Py_DECREF(dict);
36ed4f51 2122 }
1bd55598
RD
2123 return inst;
2124#else
2125#if (PY_VERSION_HEX >= 0x02010000)
2126 PyObject *inst;
2127 PyObject *dict = PyDict_New();
2128 PyDict_SetItem(dict, SWIG_This(), swig_this);
2129 inst = PyInstance_NewRaw(data->newargs, dict);
2130 Py_DECREF(dict);
2131 return (PyObject *) inst;
2132#else
2133 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2134 if (inst == NULL) {
2135 return NULL;
36ed4f51 2136 }
1bd55598
RD
2137 inst->in_class = (PyClassObject *)data->newargs;
2138 Py_INCREF(inst->in_class);
2139 inst->in_dict = PyDict_New();
2140 if (inst->in_dict == NULL) {
2141 Py_DECREF(inst);
2142 return NULL;
36ed4f51 2143 }
1bd55598
RD
2144#ifdef Py_TPFLAGS_HAVE_WEAKREFS
2145 inst->in_weakreflist = NULL;
2146#endif
2147#ifdef Py_TPFLAGS_GC
2148 PyObject_GC_Init(inst);
2149#endif
2150 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2151 return (PyObject *) inst;
2152#endif
2153#endif
36ed4f51
RD
2154}
2155
1bd55598
RD
2156SWIGRUNTIME void
2157SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2158{
2159 PyObject *dict;
2160#if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2161 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2162 if (dictptr != NULL) {
2163 dict = *dictptr;
2164 if (dict == NULL) {
2165 dict = PyDict_New();
2166 *dictptr = dict;
2167 }
2168 PyDict_SetItem(dict, SWIG_This(), swig_this);
2169 return;
2170 }
36ed4f51 2171#endif
1bd55598
RD
2172 dict = PyObject_GetAttrString(inst, "__dict__");
2173 PyDict_SetItem(dict, SWIG_This(), swig_this);
2174 Py_DECREF(dict);
2175}
36ed4f51 2176
1bd55598
RD
2177
2178SWIGINTERN PyObject *
2179SWIG_Python_InitShadowInstance(PyObject *args) {
2180 PyObject *obj[2];
2181 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2182 return NULL;
2183 } else {
2184 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2185 if (sthis) {
2186 PySwigObject_append((PyObject*) sthis, obj[1]);
36ed4f51 2187 } else {
1bd55598 2188 SWIG_Python_SetSwigThis(obj[0], obj[1]);
36ed4f51 2189 }
1bd55598 2190 return SWIG_Py_Void();
36ed4f51 2191 }
1bd55598
RD
2192}
2193
2194/* Create a new pointer object */
36ed4f51 2195
36ed4f51 2196SWIGRUNTIME PyObject *
1bd55598 2197SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
36ed4f51 2198 if (!ptr) {
1bd55598
RD
2199 return SWIG_Py_Void();
2200 } else {
2201 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2202 PyObject *robj = PySwigObject_New(ptr, type, own);
2203 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2204 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2205 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2206 if (inst) {
2207 Py_DECREF(robj);
2208 robj = inst;
36ed4f51 2209 }
36ed4f51 2210 }
1bd55598 2211 return robj;
36ed4f51 2212 }
36ed4f51
RD
2213}
2214
1bd55598
RD
2215/* Create a new packed object */
2216
2217SWIGRUNTIMEINLINE PyObject *
36ed4f51 2218SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
1bd55598 2219 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
36ed4f51
RD
2220}
2221
2222/* -----------------------------------------------------------------------------*
2223 * Get type list
2224 * -----------------------------------------------------------------------------*/
2225
2226#ifdef SWIG_LINK_RUNTIME
2227void *SWIG_ReturnGlobalTypeList(void *);
2228#endif
2229
32fe5131
RD
2230SWIGRUNTIME swig_module_info *
2231SWIG_Python_GetModule(void) {
36ed4f51
RD
2232 static void *type_pointer = (void *)0;
2233 /* first check if module already created */
2234 if (!type_pointer) {
2235#ifdef SWIG_LINK_RUNTIME
2236 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2237#else
2238 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2239 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2240 if (PyErr_Occurred()) {
2241 PyErr_Clear();
2242 type_pointer = (void *)0;
2243 }
36ed4f51 2244#endif
32fe5131
RD
2245 }
2246 return (swig_module_info *) type_pointer;
36ed4f51
RD
2247}
2248
32fe5131
RD
2249#if PY_MAJOR_VERSION < 2
2250/* PyModule_AddObject function was introduced in Python 2.0. The following function
1bd55598 2251 is copied out of Python/modsupport.c in python version 2.3.4 */
32fe5131
RD
2252SWIGINTERN int
2253PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2254{
2255 PyObject *dict;
2256 if (!PyModule_Check(m)) {
2257 PyErr_SetString(PyExc_TypeError,
2258 "PyModule_AddObject() needs module as first arg");
1bd55598 2259 return SWIG_ERROR;
32fe5131
RD
2260 }
2261 if (!o) {
2262 PyErr_SetString(PyExc_TypeError,
2263 "PyModule_AddObject() needs non-NULL value");
1bd55598 2264 return SWIG_ERROR;
32fe5131
RD
2265 }
2266
2267 dict = PyModule_GetDict(m);
2268 if (dict == NULL) {
2269 /* Internal error -- modules must have a dict! */
2270 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2271 PyModule_GetName(m));
1bd55598 2272 return SWIG_ERROR;
32fe5131
RD
2273 }
2274 if (PyDict_SetItemString(dict, name, o))
1bd55598 2275 return SWIG_ERROR;
32fe5131 2276 Py_DECREF(o);
1bd55598 2277 return SWIG_OK;
36ed4f51 2278}
32fe5131 2279#endif
36ed4f51 2280
1bd55598
RD
2281SWIGRUNTIME void
2282SWIG_Python_DestroyModule(void *vptr)
2283{
2284 swig_module_info *swig_module = (swig_module_info *) vptr;
2285 swig_type_info **types = swig_module->types;
2286 size_t i;
2287 for (i =0; i < swig_module->size; ++i) {
2288 swig_type_info *ty = types[i];
2289 if (ty->owndata) {
2290 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2291 if (data) PySwigClientData_Del(data);
2292 }
2293 }
2294 Py_DECREF(SWIG_This());
2295}
2296
32fe5131
RD
2297SWIGRUNTIME void
2298SWIG_Python_SetModule(swig_module_info *swig_module) {
2299 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2300
2301 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2302 swig_empty_runtime_method_table);
1bd55598 2303 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
32fe5131
RD
2304 if (pointer && module) {
2305 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
1bd55598
RD
2306 } else {
2307 Py_XDECREF(pointer);
32fe5131
RD
2308 }
2309}
36ed4f51 2310
1bd55598
RD
2311/* The python cached type query */
2312SWIGRUNTIME PyObject *
2313SWIG_Python_TypeCache() {
2314 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2315 return cache;
36ed4f51 2316}
36ed4f51 2317
1bd55598
RD
2318SWIGRUNTIME swig_type_info *
2319SWIG_Python_TypeQuery(const char *type)
2320{
2321 PyObject *cache = SWIG_Python_TypeCache();
2322 PyObject *key = PyString_FromString(type);
2323 PyObject *obj = PyDict_GetItem(cache, key);
2324 swig_type_info *descriptor;
2325 if (obj) {
2326 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2327 } else {
2328 swig_module_info *swig_module = SWIG_Python_GetModule();
2329 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2330 if (descriptor) {
2331 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2332 PyDict_SetItem(cache, key, obj);
2333 Py_DECREF(obj);
2334 }
2335 }
2336 Py_DECREF(key);
2337 return descriptor;
2338}
2339
2340/*
2341 For backward compatibility only
2342*/
2343#define SWIG_POINTER_EXCEPTION 0
2344#define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2345#define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2346
2347SWIGRUNTIME int
2348SWIG_Python_AddErrMesg(const char* mesg, int infront)
2349{
2350 if (PyErr_Occurred()) {
2351 PyObject *type = 0;
2352 PyObject *value = 0;
2353 PyObject *traceback = 0;
2354 PyErr_Fetch(&type, &value, &traceback);
2355 if (value) {
2356 PyObject *old_str = PyObject_Str(value);
2357 Py_XINCREF(type);
2358 PyErr_Clear();
2359 if (infront) {
2360 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2361 } else {
2362 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2363 }
2364 Py_DECREF(old_str);
2365 }
2366 return 1;
2367 } else {
2368 return 0;
2369 }
2370}
2371
2372SWIGRUNTIME int
2373SWIG_Python_ArgFail(int argnum)
2374{
2375 if (PyErr_Occurred()) {
2376 /* add information about failing argument */
2377 char mesg[256];
2378 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2379 return SWIG_Python_AddErrMesg(mesg, 1);
2380 } else {
2381 return 0;
2382 }
2383}
2384
2385SWIGRUNTIMEINLINE const char *
2386PySwigObject_GetDesc(PyObject *self)
2387{
2388 PySwigObject *v = (PySwigObject *)self;
2389 swig_type_info *ty = v ? v->ty : 0;
2390 return ty ? ty->str : (char*)"";
2391}
2392
2393SWIGRUNTIME void
2394SWIG_Python_TypeError(const char *type, PyObject *obj)
2395{
2396 if (type) {
2397#if defined(SWIG_COBJECT_TYPES)
2398 if (obj && PySwigObject_Check(obj)) {
2399 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2400 if (otype) {
2401 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2402 type, otype);
2403 return;
2404 }
2405 } else
2406#endif
2407 {
2408 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2409 if (otype) {
2410 PyObject *str = PyObject_Str(obj);
2411 const char *cstr = str ? PyString_AsString(str) : 0;
2412 if (cstr) {
2413 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2414 type, otype, cstr);
2415 } else {
2416 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2417 type, otype);
2418 }
2419 Py_XDECREF(str);
2420 return;
2421 }
2422 }
2423 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2424 } else {
2425 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2426 }
2427}
2428
2429
2430/* Convert a pointer value, signal an exception on a type mismatch */
2431SWIGRUNTIME void *
2432SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2433 void *result;
2434 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2435 PyErr_Clear();
2436 if (flags & SWIG_POINTER_EXCEPTION) {
2437 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2438 SWIG_Python_ArgFail(argnum);
2439 }
2440 }
2441 return result;
2442}
2443
2444
2445#ifdef __cplusplus
2446#if 0
2447{ /* cc-mode */
2448#endif
2449}
2450#endif
2451
2452
2453
2454#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2455
2456#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2457
2458
2459
2460/* -------- TYPES TABLE (BEGIN) -------- */
2461
2462#define SWIGTYPE_p_bool swig_types[0]
2463#define SWIGTYPE_p_char swig_types[1]
32fe5131
RD
2464#define SWIGTYPE_p_form_ops_t swig_types[2]
2465#define SWIGTYPE_p_int swig_types[3]
2466#define SWIGTYPE_p_long swig_types[4]
2467#define SWIGTYPE_p_unsigned_char swig_types[5]
2468#define SWIGTYPE_p_unsigned_int swig_types[6]
2469#define SWIGTYPE_p_unsigned_long swig_types[7]
2470#define SWIGTYPE_p_void swig_types[8]
2471#define SWIGTYPE_p_wxANIHandler swig_types[9]
2472#define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2473#define SWIGTYPE_p_wxActivateEvent swig_types[11]
2474#define SWIGTYPE_p_wxArrayInt swig_types[12]
2475#define SWIGTYPE_p_wxArrayString swig_types[13]
2476#define SWIGTYPE_p_wxBMPHandler swig_types[14]
2477#define SWIGTYPE_p_wxBitmap swig_types[15]
2478#define SWIGTYPE_p_wxBitmapButton swig_types[16]
2479#define SWIGTYPE_p_wxBookCtrlBase swig_types[17]
2480#define SWIGTYPE_p_wxBookCtrlBaseEvent swig_types[18]
2481#define SWIGTYPE_p_wxBoxSizer swig_types[19]
2482#define SWIGTYPE_p_wxButton swig_types[20]
2483#define SWIGTYPE_p_wxCURHandler swig_types[21]
2484#define SWIGTYPE_p_wxCheckBox swig_types[22]
2485#define SWIGTYPE_p_wxCheckListBox swig_types[23]
2486#define SWIGTYPE_p_wxChildFocusEvent swig_types[24]
2487#define SWIGTYPE_p_wxChoice swig_types[25]
2488#define SWIGTYPE_p_wxChoicebook swig_types[26]
2489#define SWIGTYPE_p_wxChoicebookEvent swig_types[27]
2131d850
RD
2490#define SWIGTYPE_p_wxClipboardTextEvent swig_types[28]
2491#define SWIGTYPE_p_wxCloseEvent swig_types[29]
2492#define SWIGTYPE_p_wxColour swig_types[30]
b850e7f3
RD
2493#define SWIGTYPE_p_wxColourPickerCtrl swig_types[31]
2494#define SWIGTYPE_p_wxColourPickerEvent swig_types[32]
2495#define SWIGTYPE_p_wxComboBox swig_types[33]
2496#define SWIGTYPE_p_wxCommandEvent swig_types[34]
2497#define SWIGTYPE_p_wxContextHelp swig_types[35]
2498#define SWIGTYPE_p_wxContextHelpButton swig_types[36]
2499#define SWIGTYPE_p_wxContextMenuEvent swig_types[37]
2500#define SWIGTYPE_p_wxControl swig_types[38]
2501#define SWIGTYPE_p_wxControlWithItems swig_types[39]
2502#define SWIGTYPE_p_wxCursor swig_types[40]
2503#define SWIGTYPE_p_wxDC swig_types[41]
2504#define SWIGTYPE_p_wxDateEvent swig_types[42]
2505#define SWIGTYPE_p_wxDatePickerCtrl swig_types[43]
2506#define SWIGTYPE_p_wxDateTime swig_types[44]
2507#define SWIGTYPE_p_wxDirFilterListCtrl swig_types[45]
2508#define SWIGTYPE_p_wxDirPickerCtrl swig_types[46]
2509#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[47]
2510#define SWIGTYPE_p_wxDropFilesEvent swig_types[48]
2511#define SWIGTYPE_p_wxDuplexMode swig_types[49]
2512#define SWIGTYPE_p_wxEraseEvent swig_types[50]
2513#define SWIGTYPE_p_wxEvent swig_types[51]
2514#define SWIGTYPE_p_wxEvtHandler swig_types[52]
2515#define SWIGTYPE_p_wxFSFile swig_types[53]
2516#define SWIGTYPE_p_wxFileDirPickerEvent swig_types[54]
2517#define SWIGTYPE_p_wxFilePickerCtrl swig_types[55]
2518#define SWIGTYPE_p_wxFileSystem swig_types[56]
2519#define SWIGTYPE_p_wxFlexGridSizer swig_types[57]
2520#define SWIGTYPE_p_wxFocusEvent swig_types[58]
2521#define SWIGTYPE_p_wxFont swig_types[59]
2522#define SWIGTYPE_p_wxFontPickerCtrl swig_types[60]
2523#define SWIGTYPE_p_wxFontPickerEvent swig_types[61]
2524#define SWIGTYPE_p_wxGBSizerItem swig_types[62]
2525#define SWIGTYPE_p_wxGIFHandler swig_types[63]
2526#define SWIGTYPE_p_wxGauge swig_types[64]
2527#define SWIGTYPE_p_wxGenericDirCtrl swig_types[65]
2528#define SWIGTYPE_p_wxGenericDragImage swig_types[66]
2529#define SWIGTYPE_p_wxGridBagSizer swig_types[67]
2530#define SWIGTYPE_p_wxGridSizer swig_types[68]
2531#define SWIGTYPE_p_wxHelpEvent swig_types[69]
2532#define SWIGTYPE_p_wxHelpProvider swig_types[70]
2533#define SWIGTYPE_p_wxHyperlinkCtrl swig_types[71]
2534#define SWIGTYPE_p_wxHyperlinkEvent swig_types[72]
2535#define SWIGTYPE_p_wxICOHandler swig_types[73]
2536#define SWIGTYPE_p_wxIcon swig_types[74]
2537#define SWIGTYPE_p_wxIconizeEvent swig_types[75]
2538#define SWIGTYPE_p_wxIdleEvent swig_types[76]
2539#define SWIGTYPE_p_wxImage swig_types[77]
2540#define SWIGTYPE_p_wxImageHandler swig_types[78]
2541#define SWIGTYPE_p_wxImageList swig_types[79]
2542#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[80]
2543#define SWIGTYPE_p_wxInitDialogEvent swig_types[81]
2544#define SWIGTYPE_p_wxItemContainer swig_types[82]
2545#define SWIGTYPE_p_wxJPEGHandler swig_types[83]
2546#define SWIGTYPE_p_wxKeyEvent swig_types[84]
2547#define SWIGTYPE_p_wxLayoutConstraints swig_types[85]
2548#define SWIGTYPE_p_wxListBox swig_types[86]
2549#define SWIGTYPE_p_wxListEvent swig_types[87]
2550#define SWIGTYPE_p_wxListItem swig_types[88]
2551#define SWIGTYPE_p_wxListItemAttr swig_types[89]
2552#define SWIGTYPE_p_wxListView swig_types[90]
2553#define SWIGTYPE_p_wxListbook swig_types[91]
2554#define SWIGTYPE_p_wxListbookEvent swig_types[92]
2555#define SWIGTYPE_p_wxMaximizeEvent swig_types[93]
2556#define SWIGTYPE_p_wxMemoryDC swig_types[94]
2557#define SWIGTYPE_p_wxMenu swig_types[95]
2558#define SWIGTYPE_p_wxMenuBar swig_types[96]
2559#define SWIGTYPE_p_wxMenuEvent swig_types[97]
2560#define SWIGTYPE_p_wxMenuItem swig_types[98]
2561#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[99]
2562#define SWIGTYPE_p_wxMouseEvent swig_types[100]
2563#define SWIGTYPE_p_wxMoveEvent swig_types[101]
2564#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[102]
2565#define SWIGTYPE_p_wxNcPaintEvent swig_types[103]
2566#define SWIGTYPE_p_wxNotebook swig_types[104]
2567#define SWIGTYPE_p_wxNotebookEvent swig_types[105]
2568#define SWIGTYPE_p_wxNotifyEvent swig_types[106]
2569#define SWIGTYPE_p_wxObject swig_types[107]
2570#define SWIGTYPE_p_wxPCXHandler swig_types[108]
2571#define SWIGTYPE_p_wxPNGHandler swig_types[109]
2572#define SWIGTYPE_p_wxPNMHandler swig_types[110]
2573#define SWIGTYPE_p_wxPaintEvent swig_types[111]
2574#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[112]
2575#define SWIGTYPE_p_wxPaperSize swig_types[113]
2576#define SWIGTYPE_p_wxPickerBase swig_types[114]
2577#define SWIGTYPE_p_wxPoint swig_types[115]
2578#define SWIGTYPE_p_wxPyApp swig_types[116]
2579#define SWIGTYPE_p_wxPyCommandEvent swig_types[117]
2580#define SWIGTYPE_p_wxPyControl swig_types[118]
2581#define SWIGTYPE_p_wxPyEvent swig_types[119]
2582#define SWIGTYPE_p_wxPyImageHandler swig_types[120]
2583#define SWIGTYPE_p_wxPyListCtrl swig_types[121]
2584#define SWIGTYPE_p_wxPySizer swig_types[122]
2585#define SWIGTYPE_p_wxPyTreeCtrl swig_types[123]
2586#define SWIGTYPE_p_wxPyTreeItemData swig_types[124]
2587#define SWIGTYPE_p_wxPyValidator swig_types[125]
2588#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[126]
2589#define SWIGTYPE_p_wxRadioBox swig_types[127]
2590#define SWIGTYPE_p_wxRadioButton swig_types[128]
2591#define SWIGTYPE_p_wxRect swig_types[129]
2592#define SWIGTYPE_p_wxScrollBar swig_types[130]
2593#define SWIGTYPE_p_wxScrollEvent swig_types[131]
2594#define SWIGTYPE_p_wxScrollWinEvent swig_types[132]
2595#define SWIGTYPE_p_wxSetCursorEvent swig_types[133]
2596#define SWIGTYPE_p_wxShowEvent swig_types[134]
2597#define SWIGTYPE_p_wxSimpleHelpProvider swig_types[135]
2598#define SWIGTYPE_p_wxSize swig_types[136]
2599#define SWIGTYPE_p_wxSizeEvent swig_types[137]
2600#define SWIGTYPE_p_wxSizer swig_types[138]
2601#define SWIGTYPE_p_wxSizerItem swig_types[139]
2602#define SWIGTYPE_p_wxSlider swig_types[140]
2603#define SWIGTYPE_p_wxSpinButton swig_types[141]
2604#define SWIGTYPE_p_wxSpinCtrl swig_types[142]
2605#define SWIGTYPE_p_wxSpinEvent swig_types[143]
2606#define SWIGTYPE_p_wxStaticBitmap swig_types[144]
2607#define SWIGTYPE_p_wxStaticBox swig_types[145]
2608#define SWIGTYPE_p_wxStaticBoxSizer swig_types[146]
2609#define SWIGTYPE_p_wxStaticLine swig_types[147]
2610#define SWIGTYPE_p_wxStaticText swig_types[148]
2611#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[149]
2612#define SWIGTYPE_p_wxString swig_types[150]
2613#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[151]
2614#define SWIGTYPE_p_wxTIFFHandler swig_types[152]
2615#define SWIGTYPE_p_wxTextAttr swig_types[153]
2616#define SWIGTYPE_p_wxTextCtrl swig_types[154]
2617#define SWIGTYPE_p_wxTextUrlEvent swig_types[155]
2618#define SWIGTYPE_p_wxToggleButton swig_types[156]
2619#define SWIGTYPE_p_wxToolBar swig_types[157]
2620#define SWIGTYPE_p_wxToolBarBase swig_types[158]
2621#define SWIGTYPE_p_wxToolBarToolBase swig_types[159]
2622#define SWIGTYPE_p_wxToolbook swig_types[160]
2623#define SWIGTYPE_p_wxToolbookEvent swig_types[161]
2624#define SWIGTYPE_p_wxTreeCtrl swig_types[162]
2625#define SWIGTYPE_p_wxTreeEvent swig_types[163]
2626#define SWIGTYPE_p_wxTreeItemId swig_types[164]
2627#define SWIGTYPE_p_wxTreebook swig_types[165]
2628#define SWIGTYPE_p_wxTreebookEvent swig_types[166]
2629#define SWIGTYPE_p_wxUpdateUIEvent swig_types[167]
2630#define SWIGTYPE_p_wxValidator swig_types[168]
2631#define SWIGTYPE_p_wxVisualAttributes swig_types[169]
2632#define SWIGTYPE_p_wxWindow swig_types[170]
2633#define SWIGTYPE_p_wxWindowBase swig_types[171]
2634#define SWIGTYPE_p_wxWindowCreateEvent swig_types[172]
2635#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[173]
2636#define SWIGTYPE_p_wxXPMHandler swig_types[174]
2637static swig_type_info *swig_types[176];
2638static swig_module_info swig_module = {swig_types, 175, 0, 0, 0, 0};
32fe5131
RD
2639#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2640#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
36ed4f51
RD
2641
2642/* -------- TYPES TABLE (END) -------- */
2643
1bd55598
RD
2644#if (PY_VERSION_HEX <= 0x02000000)
2645# if !defined(SWIG_PYTHON_CLASSIC)
2646# error "This python version requires to use swig with the '-classic' option"
2647# endif
2648#endif
2649#if (PY_VERSION_HEX <= 0x02020000)
2650# error "This python version requires to use swig with the '-nomodern' option"
2651#endif
2652#if (PY_VERSION_HEX <= 0x02020000)
2653# error "This python version requires to use swig with the '-nomodernargs' option"
2654#endif
2655#ifndef METH_O
2656# error "This python version requires to use swig with the '-nofastunpack' option"
2657#endif
36ed4f51
RD
2658
2659/*-----------------------------------------------
2660 @(target):= _controls_.so
2661 ------------------------------------------------*/
2662#define SWIG_init init_controls_
2663
2664#define SWIG_name "_controls_"
2665
1bd55598
RD
2666#define SWIGVERSION 0x010329
2667
2668
2669#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2670#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2671
2672
2673#include <stdexcept>
2674
2675
2676namespace swig {
2677 class PyObject_ptr {
2678 protected:
2679 PyObject *_obj;
2680
2681 public:
2682 PyObject_ptr() :_obj(0)
2683 {
2684 }
2685
2686 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2687 {
2688 Py_XINCREF(_obj);
2689 }
2690
2691 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2692 {
2693 if (initial_ref) Py_XINCREF(_obj);
2694 }
2695
2696 PyObject_ptr & operator=(const PyObject_ptr& item)
2697 {
2698 Py_XINCREF(item._obj);
2699 Py_XDECREF(_obj);
2700 _obj = item._obj;
2701 return *this;
2702 }
2703
2704 ~PyObject_ptr()
2705 {
2706 Py_XDECREF(_obj);
2707 }
2708
2709 operator PyObject *() const
2710 {
2711 return _obj;
2712 }
2713
2714 PyObject *operator->() const
2715 {
2716 return _obj;
2717 }
2718 };
2719}
2720
2721
2722namespace swig {
2723 struct PyObject_var : PyObject_ptr {
2724 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2725
2726 PyObject_var & operator = (PyObject* obj)
2727 {
2728 Py_XDECREF(_obj);
2729 _obj = obj;
2730 return *this;
2731 }
2732 };
2733}
2734
2735
36ed4f51
RD
2736#include "wx/wxPython/wxPython.h"
2737#include "wx/wxPython/pyclasses.h"
2738
2739 static const wxString wxPyPanelNameStr(wxPanelNameStr);
2740 static const wxString wxPyEmptyString(wxEmptyString);
2741 static const wxString wxPyControlNameStr(wxControlNameStr);
2742
2743 const wxArrayString wxPyEmptyStringArray;
2744
2745 static const wxString wxPyButtonNameStr(wxButtonNameStr);
2746
1bd55598 2747 #define SWIG_From_long PyInt_FromLong
36ed4f51
RD
2748
2749
1bd55598
RD
2750SWIGINTERNINLINE PyObject *
2751SWIG_From_int (int value)
2752{
2753 return SWIG_From_long (value);
2754}
36ed4f51
RD
2755
2756
1bd55598
RD
2757#include <limits.h>
2758#ifndef LLONG_MIN
2759# define LLONG_MIN LONG_LONG_MIN
2760#endif
2761#ifndef LLONG_MAX
2762# define LLONG_MAX LONG_LONG_MAX
2763#endif
2764#ifndef ULLONG_MAX
2765# define ULLONG_MAX ULONG_LONG_MAX
2766#endif
36ed4f51
RD
2767
2768
2769SWIGINTERN int
1bd55598 2770SWIG_AsVal_long (PyObject* obj, long* val)
36ed4f51
RD
2771{
2772 if (PyNumber_Check(obj)) {
2773 if (val) *val = PyInt_AsLong(obj);
1bd55598 2774 return SWIG_OK;
36ed4f51 2775 }
1bd55598 2776 return SWIG_TypeError;
36ed4f51
RD
2777}
2778
2779
36ed4f51 2780SWIGINTERN int
1bd55598
RD
2781SWIG_AsVal_int (PyObject * obj, int *val)
2782{
36ed4f51 2783 long v;
1bd55598
RD
2784 int res = SWIG_AsVal_long (obj, &v);
2785 if (SWIG_IsOK(res)) {
2786 if ((v < INT_MIN || v > INT_MAX)) {
2787 return SWIG_OverflowError;
36ed4f51 2788 } else {
1bd55598 2789 if (val) *val = static_cast< int >(v);
36ed4f51 2790 }
1bd55598
RD
2791 }
2792 return res;
d55e5bfc
RD
2793}
2794
c370783e 2795 static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr);
d55e5bfc 2796
36ed4f51 2797SWIGINTERN int
1bd55598 2798SWIG_AsVal_bool (PyObject *obj, bool *val)
d55e5bfc 2799{
c370783e
RD
2800 if (obj == Py_True) {
2801 if (val) *val = true;
1bd55598
RD
2802 return SWIG_OK;
2803 } else if (obj == Py_False) {
c370783e 2804 if (val) *val = false;
1bd55598 2805 return SWIG_OK;
36ed4f51 2806 } else {
1bd55598
RD
2807 long v = 0;
2808 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2809 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2810 return res;
c370783e 2811 }
d55e5bfc
RD
2812}
2813
2814 static const wxString wxPyChoiceNameStr(wxChoiceNameStr);
2815 static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr);
2816 static const wxString wxPyGaugeNameStr(wxGaugeNameStr);
2817 static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr);
2818 static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr);
2819 static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr);
2820
2821#include <wx/checklst.h>
d55e5bfc
RD
2822
2823 static const wxString wxPyListBoxNameStr(wxListBoxNameStr);
1bd55598 2824SWIGINTERN void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData=NULL){
e9d6f3a4
RD
2825 if (clientData)
2826 {
d55e5bfc
RD
2827 wxPyClientData* data = new wxPyClientData(clientData);
2828 self->Insert(item, pos, data);
e9d6f3a4
RD
2829 }
2830 else
d55e5bfc
RD
2831 self->Insert(item, pos);
2832 }
50f151d7
RD
2833
2834SWIGINTERN int
2835SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2836{
2837 long v = 0;
2838 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2839 return SWIG_TypeError;
2840 }
2841 else if (val)
2842 *val = (unsigned long)v;
2843 return SWIG_OK;
2844}
2845
2846
2847SWIGINTERN int
2848SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
2849{
2850 unsigned long v;
2851 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2852 if (SWIG_IsOK(res)) {
2853 if ((v > UINT_MAX)) {
2854 return SWIG_OverflowError;
2855 } else {
2856 if (val) *val = static_cast< unsigned int >(v);
2857 }
2858 }
2859 return res;
2860}
2861
1bd55598 2862SWIGINTERN PyObject *wxListBox_GetSelections(wxListBox *self){
e9d6f3a4 2863 wxPyBlock_t blocked = wxPyBeginBlockThreads();
7e08d4ef
RD
2864 wxArrayInt lst;
2865 self->GetSelections(lst);
2866 PyObject *tup = PyTuple_New(lst.GetCount());
e9d6f3a4
RD
2867 for (size_t i=0; i<lst.GetCount(); i++)
2868 {
7e08d4ef
RD
2869 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
2870 }
e9d6f3a4 2871 wxPyEndBlockThreads(blocked);
7e08d4ef
RD
2872 return tup;
2873 }
1bd55598 2874SWIGINTERN void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){
d55e5bfc
RD
2875 #ifdef __WXMSW__
2876 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2877 self->GetItem(item)->SetTextColour(c);
2878 #endif
2879 }
1bd55598 2880SWIGINTERN void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){
d55e5bfc
RD
2881 #ifdef __WXMSW__
2882 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2883 self->GetItem(item)->SetBackgroundColour(c);
2884 #endif
2885 }
1bd55598 2886SWIGINTERN void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){
d55e5bfc
RD
2887 #ifdef __WXMSW__
2888 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2889 self->GetItem(item)->SetFont(f);
2890 #endif
2891 }
2892 static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr);
1bd55598 2893SWIGINTERN void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
d55e5bfc
RD
2894 self->AppendText(text);
2895 }
1bd55598 2896SWIGINTERN wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
d55e5bfc
RD
2897 return self->GetValue().Mid(from, to - from);
2898 }
2899 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
2900 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
2901 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
2902 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
2903 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
2904
1c71765a
RD
2905SWIGINTERNINLINE PyObject*
2906SWIG_From_unsigned_SS_long (unsigned long value)
2907{
2908 return (value > LONG_MAX) ?
2909 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2910}
2911
2912
2913SWIGINTERNINLINE PyObject *
2914SWIG_From_size_t (size_t value)
2915{
2916 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
2917}
2918
2919
50f151d7
RD
2920SWIGINTERNINLINE PyObject *
2921SWIG_From_unsigned_SS_int (unsigned int value)
2922{
2923 return SWIG_From_unsigned_SS_long (value);
2924}
2925
2926
d55e5bfc
RD
2927#include <wx/slider.h>
2928
2929
2930 static const wxString wxPySliderNameStr(wxSliderNameStr);
2931 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
2932
2933#if !wxUSE_TOGGLEBTN
2934// implement dummy items for platforms that don't have this class
2935
2936#define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
2937
2938class wxToggleButton : public wxControl
2939{
2940public:
2941 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
2942 const wxPoint&, const wxSize&, long,
2943 const wxValidator&, const wxString&)
2944 { wxPyRaiseNotImplemented(); }
2945
2946 wxToggleButton()
2947 { wxPyRaiseNotImplemented(); }
2948};
2949#endif
2950
51b83b37 2951 static const wxString wxPyNotebookNameStr(wxNotebookNameStr);
d55e5bfc 2952
7e08d4ef 2953SWIGINTERNINLINE int
1bd55598 2954SWIG_AsVal_size_t (PyObject * obj, size_t *val)
7e08d4ef 2955{
7e08d4ef 2956 unsigned long v;
1bd55598
RD
2957 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
2958 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
2959 return res;
7e08d4ef 2960}
7e08d4ef 2961
d55e5bfc 2962 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
1bd55598 2963SWIGINTERN PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
d55e5bfc
RD
2964 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
2965 if (udata) {
2966 Py_INCREF(udata->m_obj);
2967 return udata->m_obj;
2968 } else {
2969 Py_INCREF(Py_None);
2970 return Py_None;
2971 }
2972 }
1bd55598 2973SWIGINTERN void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
d55e5bfc
RD
2974 self->SetClientData(new wxPyUserData(clientData));
2975 }
1bd55598 2976SWIGINTERN 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
2977 wxPyUserData* udata = NULL;
2978 if (clientData && clientData != Py_None)
2979 udata = new wxPyUserData(clientData);
2980 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
2981 shortHelp, longHelp, udata);
2982 }
1bd55598 2983SWIGINTERN 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
2984 wxPyUserData* udata = NULL;
2985 if (clientData && clientData != Py_None)
2986 udata = new wxPyUserData(clientData);
2987 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
2988 shortHelp, longHelp, udata);
2989 }
1bd55598 2990SWIGINTERN PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
d55e5bfc
RD
2991 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
2992 if (udata) {
2993 Py_INCREF(udata->m_obj);
2994 return udata->m_obj;
2995 } else {
2996 Py_INCREF(Py_None);
2997 return Py_None;
2998 }
2999 }
1bd55598 3000SWIGINTERN void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
d55e5bfc
RD
3001 self->SetToolClientData(id, new wxPyUserData(clientData));
3002 }
3003
3004#include <wx/listctrl.h>
3005
fef4c27a 3006 static const wxString wxPyListCtrlNameStr(wxListCtrlNameStr);
1bd55598 3007SWIGINTERN void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
d55e5bfc
RD
3008 // Python aware sorting function for wxPyListCtrl
3009 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
3010 int retval = 0;
3011 PyObject* func = (PyObject*)funcPtr;
5a446332 3012 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc
RD
3013
3014 PyObject* args = Py_BuildValue("(ii)", item1, item2);
3015 PyObject* result = PyEval_CallObject(func, args);
3016 Py_DECREF(args);
3017 if (result) {
3018 retval = PyInt_AsLong(result);
3019 Py_DECREF(result);
3020 }
3021
3022 wxPyEndBlockThreads(blocked);
3023 return retval;
3024 }
3025
3026 // C++ Version of a Python aware class
3027class wxPyListCtrl : public wxListCtrl {
32fe5131 3028 DECLARE_ABSTRACT_CLASS(wxPyListCtrl)
d55e5bfc
RD
3029public:
3030 wxPyListCtrl() : wxListCtrl() {}
3031 wxPyListCtrl(wxWindow* parent, wxWindowID id,
3032 const wxPoint& pos,
3033 const wxSize& size,
3034 long style,
3035 const wxValidator& validator,
3036 const wxString& name) :
3037 wxListCtrl(parent, id, pos, size, style, validator, name) {}
3038
3039 bool Create(wxWindow* parent, wxWindowID id,
3040 const wxPoint& pos,
3041 const wxSize& size,
3042 long style,
3043 const wxValidator& validator,
3044 const wxString& name) {
3045 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
3046 }
3047
3048 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
d55e5bfc
RD
3049 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
3050
84f85550
RD
3051 // use the virtual version to avoid a confusing assert in the base class
3052 DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage);
7e08d4ef 3053 DEC_PYCALLBACK_INT_LONGLONG(OnGetItemColumnImage);
84f85550 3054
d55e5bfc
RD
3055 PYPRIVATE;
3056};
3057
3058IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
3059
3060IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
d55e5bfc 3061IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
84f85550 3062IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage);
7e08d4ef
RD
3063IMP_PYCALLBACK_INT_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemColumnImage);
3064
d55e5bfc 3065
1bd55598 3066SWIGINTERN wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
d55e5bfc
RD
3067 wxListItem item;
3068 item.SetMask( wxLIST_MASK_STATE |
3069 wxLIST_MASK_TEXT |
3070 wxLIST_MASK_IMAGE |
3071 wxLIST_MASK_DATA |
3072 wxLIST_SET_ITEM |
3073 wxLIST_MASK_WIDTH |
3074 wxLIST_MASK_FORMAT
3075 );
3076 if (self->GetColumn(col, item))
3077 return new wxListItem(item);
3078 else
3079 return NULL;
3080 }
1bd55598 3081SWIGINTERN wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col=0){
d55e5bfc
RD
3082 wxListItem* info = new wxListItem;
3083 info->m_itemId = itemId;
3084 info->m_col = col;
3085 info->m_mask = 0xFFFF;
3086 self->GetItem(*info);
3087 return info;
3088 }
1bd55598 3089SWIGINTERN wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
d55e5bfc
RD
3090 wxPoint pos;
3091 self->GetItemPosition(item, pos);
3092 return pos;
3093 }
1bd55598 3094SWIGINTERN wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code=wxLIST_RECT_BOUNDS){
d55e5bfc
RD
3095 wxRect rect;
3096 self->GetItemRect(item, rect, code);
3097 return rect;
3098 }
1bd55598 3099SWIGINTERN bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
d55e5bfc 3100 if (!PyCallable_Check(func))
b411df4a 3101 return false;
d55e5bfc
RD
3102 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
3103 }
1bd55598 3104SWIGINTERN wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
d55e5bfc
RD
3105
3106
3107
3108 return (wxWindow*)self->m_mainWin;
3109
3110 }
3111
3112#include <wx/treectrl.h>
3113#include "wx/wxPython/pytree.h"
3114
3115 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
1bd55598
RD
3116SWIGINTERN bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; }
3117SWIGINTERN bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; }
3118SWIGINTERN void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
b02396e8
RD
3119
3120 static wxTreeItemId wxNullTreeItemId;
3121
d55e5bfc
RD
3122 // C++ version of Python aware wxTreeCtrl
3123class wxPyTreeCtrl : public wxTreeCtrl {
32fe5131 3124 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl)
d55e5bfc
RD
3125public:
3126 wxPyTreeCtrl() : wxTreeCtrl() {}
3127 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
3128 const wxPoint& pos,
3129 const wxSize& size,
3130 long style,
3131 const wxValidator& validator,
3132 const wxString& name) :
3133 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
3134
3135 bool Create(wxWindow *parent, wxWindowID id,
3136 const wxPoint& pos,
3137 const wxSize& size,
3138 long style,
3139 const wxValidator& validator,
3140 const wxString& name) {
3141 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
3142 }
3143
3144
3145 int OnCompareItems(const wxTreeItemId& item1,
3146 const wxTreeItemId& item2) {
3147 int rval = 0;
3148 bool found;
5a446332 3149 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc 3150 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
b411df4a
RD
3151 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false);
3152 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false);
d55e5bfc
RD
3153 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
3154 Py_DECREF(o1);
3155 Py_DECREF(o2);
3156 }
3157 wxPyEndBlockThreads(blocked);
3158 if (! found)
3159 rval = wxTreeCtrl::OnCompareItems(item1, item2);
3160 return rval;
3161 }
3162 PYPRIVATE;
3163};
3164
3165IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
3166
3167
1bd55598 3168SWIGINTERN wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
d55e5bfc
RD
3169 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3170 if (data == NULL) {
3171 data = new wxPyTreeItemData();
3172 data->SetId(item); // set the id
3173 self->SetItemData(item, data);
3174 }
3175 return data;
3176 }
1bd55598 3177SWIGINTERN PyObject *wxPyTreeCtrl_GetItemPyData(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->GetData();
3185 }
1bd55598 3186SWIGINTERN void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
d55e5bfc
RD
3187 data->SetId(item); // set the id
3188 self->SetItemData(item, data);
3189 }
1bd55598 3190SWIGINTERN void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
d55e5bfc
RD
3191 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3192 if (data == NULL) {
3193 data = new wxPyTreeItemData(obj);
3194 data->SetId(item); // set the id
3195 self->SetItemData(item, data);
3196 } else
3197 data->SetData(obj);
3198 }
1bd55598 3199SWIGINTERN PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
5a446332 3200 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc
RD
3201 PyObject* rval = PyList_New(0);
3202 wxArrayTreeItemIds array;
3203 size_t num, x;
3204 num = self->GetSelections(array);
3205 for (x=0; x < num; x++) {
3206 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
b411df4a 3207 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true);
d55e5bfc 3208 PyList_Append(rval, item);
68e533f8 3209 Py_DECREF(item);
d55e5bfc
RD
3210 }
3211 wxPyEndBlockThreads(blocked);
3212 return rval;
3213 }
1bd55598 3214SWIGINTERN PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
d55e5bfc
RD
3215 void* cookie = 0;
3216 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
5a446332 3217 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc 3218 PyObject* tup = PyTuple_New(2);
b411df4a 3219 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
d55e5bfc
RD
3220 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3221 wxPyEndBlockThreads(blocked);
3222 return tup;
3223 }
1bd55598 3224SWIGINTERN PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
d55e5bfc 3225 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(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_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly=false){
d55e5bfc
RD
3234 wxRect rect;
3235 if (self->GetBoundingRect(item, rect, textOnly)) {
5a446332 3236 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc 3237 wxRect* r = new wxRect(rect);
b411df4a 3238 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true);
d55e5bfc
RD
3239 wxPyEndBlockThreads(blocked);
3240 return val;
3241 }
3242 else
3243 RETURN_NONE();
3244 }
3245 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
c370783e 3246
32fe5131 3247SWIGINTERNINLINE PyObject*
1bd55598 3248 SWIG_From_bool (bool value)
c370783e 3249{
1bd55598 3250 return PyBool_FromLong(value ? 1 : 0);
c370783e
RD
3251}
3252
d55e5bfc
RD
3253 // C++ version of Python aware wxControl
3254class wxPyControl : public wxControl
3255{
3256 DECLARE_DYNAMIC_CLASS(wxPyControl)
3257public:
3258 wxPyControl() : wxControl() {}
3259 wxPyControl(wxWindow* parent, const wxWindowID id,
3260 const wxPoint& pos = wxDefaultPosition,
3261 const wxSize& size = wxDefaultSize,
3262 long style = 0,
3263 const wxValidator& validator=wxDefaultValidator,
3264 const wxString& name = wxPyControlNameStr)
3265 : wxControl(parent, id, pos, size, style, validator, name) {}
3266
a5ee0656 3267 void SetBestSize(const wxSize& size) { wxControl::SetBestSize(size); }
d55e5bfc 3268
976dbff5
RD
3269 bool DoEraseBackground(wxDC* dc) {
3270#ifdef __WXMSW__
3271 return wxWindow::DoEraseBackground(dc->GetHDC());
3272#else
3273 dc->SetBackground(wxBrush(GetBackgroundColour()));
3274 dc->Clear();
3275 return true;
3276#endif
3277 }
3278
d55e5bfc
RD
3279 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
3280 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
3281 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
3282 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
3283
3284 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
3285 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
3286 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
3287
3288 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
3289 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
3290
3291 DEC_PYCALLBACK__(InitDialog);
3292 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
3293 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
3294 DEC_PYCALLBACK_BOOL_(Validate);
3295
3296 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
3297 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
3298 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
3299
3300 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
3301 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
3302
a5ee0656 3303 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
a5ee0656 3304 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
d55e5bfc 3305
51b83b37
RD
3306 DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
3307
8d38bd1d
RD
3308 DEC_PYCALLBACK_VOID_(OnInternalIdle);
3309
d55e5bfc
RD
3310 PYPRIVATE;
3311};
3312
3313IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
3314
3315IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
3316IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
3317IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
3318IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
3319
3320IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
3321IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
3322IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
3323
3324IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
3325IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
3326
3327IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
3328IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
3329IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
3330IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
3331
3332IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
3333IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
3334IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
3335
3336IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
3337IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
3338
a5ee0656 3339IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
a5ee0656 3340IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
d55e5bfc 3341
51b83b37 3342IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground);
8d38bd1d
RD
3343
3344IMP_PYCALLBACK_VOID_(wxPyControl, wxControl, OnInternalIdle);
3345
d55e5bfc
RD
3346
3347
1bd55598 3348SWIGINTERN void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
d55e5bfc
RD
3349
3350#include <wx/generic/dragimgg.h>
3351
53aa7709 3352 static const wxString wxPyDatePickerCtrlNameStr(wxDatePickerCtrlNameStr);
1bd55598 3353SWIGINTERN wxDateTime wxDatePickerCtrl_GetLowerLimit(wxDatePickerCtrl *self){
53aa7709
RD
3354 wxDateTime rv;
3355 self->GetRange(&rv, NULL);
3356 return rv;
3357 }
1bd55598 3358SWIGINTERN wxDateTime wxDatePickerCtrl_GetUpperLimit(wxDatePickerCtrl *self){
53aa7709
RD
3359 wxDateTime rv;
3360 self->GetRange(NULL, &rv);
3361 return rv;
3362 }
704eda0c 3363 static const wxString wxPyHyperlinkCtrlNameStr(wxHyperlinkCtrlNameStr);
b850e7f3
RD
3364 static const wxString wxPyColourPickerCtrlNameStr(wxColourPickerCtrlNameStr);
3365 static const wxString wxPyFilePickerCtrlNameStr(wxFilePickerCtrlNameStr);
3366 static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
3367 static const wxString wxPyDirPickerCtrlNameStr(wxDirPickerCtrlNameStr);
3368 static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
3369 static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr);
3370 static const wxString wxPyFontPickerCtrlNameStr(wxFontPickerCtrlNameStr);
d55e5bfc
RD
3371#ifdef __cplusplus
3372extern "C" {
3373#endif
1bd55598
RD
3374SWIGINTERN int ButtonNameStr_set(PyObject *) {
3375 SWIG_Error(SWIG_AttributeError,"Variable ButtonNameStr is read-only.");
3376 return 1;
d55e5bfc
RD
3377}
3378
3379
1bd55598
RD
3380SWIGINTERN PyObject *ButtonNameStr_get(void) {
3381 PyObject *pyobj = 0;
3382
3383 {
d55e5bfc 3384#if wxUSE_UNICODE
1bd55598 3385 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
d55e5bfc 3386#else
1bd55598 3387 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
d55e5bfc 3388#endif
1bd55598
RD
3389 }
3390 return pyobj;
3391}
3392
3393
3394SWIGINTERN PyObject *_wrap_new_Button(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3395 PyObject *resultobj = 0;
3396 wxWindow *arg1 = (wxWindow *) 0 ;
3397 int arg2 = (int) -1 ;
3398 wxString const &arg3_defvalue = wxPyEmptyString ;
3399 wxString *arg3 = (wxString *) &arg3_defvalue ;
3400 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3401 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3402 wxSize const &arg5_defvalue = wxDefaultSize ;
3403 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3404 long arg6 = (long) 0 ;
3405 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3406 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3407 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3408 wxString *arg8 = (wxString *) &arg8_defvalue ;
3409 wxButton *result = 0 ;
3410 void *argp1 = 0 ;
3411 int res1 = 0 ;
3412 int val2 ;
3413 int ecode2 = 0 ;
3414 bool temp3 = false ;
3415 wxPoint temp4 ;
3416 wxSize temp5 ;
3417 long val6 ;
3418 int ecode6 = 0 ;
3419 void *argp7 = 0 ;
3420 int res7 = 0 ;
3421 bool temp8 = false ;
3422 PyObject * obj0 = 0 ;
3423 PyObject * obj1 = 0 ;
3424 PyObject * obj2 = 0 ;
3425 PyObject * obj3 = 0 ;
3426 PyObject * obj4 = 0 ;
3427 PyObject * obj5 = 0 ;
3428 PyObject * obj6 = 0 ;
3429 PyObject * obj7 = 0 ;
3430 char * kwnames[] = {
3431 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3432 };
3433
3434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3436 if (!SWIG_IsOK(res1)) {
3437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Button" "', expected argument " "1"" of type '" "wxWindow *""'");
3438 }
3439 arg1 = reinterpret_cast< wxWindow * >(argp1);
3440 if (obj1) {
3441 ecode2 = SWIG_AsVal_int(obj1, &val2);
3442 if (!SWIG_IsOK(ecode2)) {
3443 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Button" "', expected argument " "2"" of type '" "int""'");
3444 }
3445 arg2 = static_cast< int >(val2);
3446 }
3447 if (obj2) {
d55e5bfc 3448 {
1bd55598
RD
3449 arg3 = wxString_in_helper(obj2);
3450 if (arg3 == NULL) SWIG_fail;
3451 temp3 = true;
d55e5bfc 3452 }
1bd55598
RD
3453 }
3454 if (obj3) {
d55e5bfc 3455 {
1bd55598
RD
3456 arg4 = &temp4;
3457 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 3458 }
1bd55598
RD
3459 }
3460 if (obj4) {
d55e5bfc 3461 {
1bd55598
RD
3462 arg5 = &temp5;
3463 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 3464 }
1bd55598
RD
3465 }
3466 if (obj5) {
3467 ecode6 = SWIG_AsVal_long(obj5, &val6);
3468 if (!SWIG_IsOK(ecode6)) {
3469 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Button" "', expected argument " "6"" of type '" "long""'");
3470 }
3471 arg6 = static_cast< long >(val6);
3472 }
3473 if (obj6) {
3474 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3475 if (!SWIG_IsOK(res7)) {
3476 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 3477 }
1bd55598
RD
3478 if (!argp7) {
3479 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 3480 }
1bd55598
RD
3481 arg7 = reinterpret_cast< wxValidator * >(argp7);
3482 }
3483 if (obj7) {
d55e5bfc 3484 {
1bd55598
RD
3485 arg8 = wxString_in_helper(obj7);
3486 if (arg8 == NULL) SWIG_fail;
3487 temp8 = true;
d55e5bfc 3488 }
1bd55598
RD
3489 }
3490 {
3491 if (!wxPyCheckForApp()) SWIG_fail;
3492 PyThreadState* __tstate = wxPyBeginAllowThreads();
3493 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3494 wxPyEndAllowThreads(__tstate);
3495 if (PyErr_Occurred()) SWIG_fail;
3496 }
3497 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_NEW | 0 );
3498 {
3499 if (temp3)
3500 delete arg3;
3501 }
3502 {
3503 if (temp8)
3504 delete arg8;
3505 }
3506 return resultobj;
3507fail:
3508 {
3509 if (temp3)
3510 delete arg3;
3511 }
3512 {
3513 if (temp8)
3514 delete arg8;
3515 }
3516 return NULL;
d55e5bfc
RD
3517}
3518
3519
1bd55598
RD
3520SWIGINTERN PyObject *_wrap_new_PreButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3521 PyObject *resultobj = 0;
3522 wxButton *result = 0 ;
3523
3524 if (!SWIG_Python_UnpackTuple(args,"new_PreButton",0,0,0)) SWIG_fail;
3525 {
3526 if (!wxPyCheckForApp()) SWIG_fail;
3527 PyThreadState* __tstate = wxPyBeginAllowThreads();
3528 result = (wxButton *)new wxButton();
3529 wxPyEndAllowThreads(__tstate);
3530 if (PyErr_Occurred()) SWIG_fail;
3531 }
3532 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_OWN | 0 );
3533 return resultobj;
3534fail:
3535 return NULL;
3536}
3537
3538
3539SWIGINTERN PyObject *_wrap_Button_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3540 PyObject *resultobj = 0;
3541 wxButton *arg1 = (wxButton *) 0 ;
3542 wxWindow *arg2 = (wxWindow *) 0 ;
3543 int arg3 = (int) -1 ;
3544 wxString const &arg4_defvalue = wxPyEmptyString ;
3545 wxString *arg4 = (wxString *) &arg4_defvalue ;
3546 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3547 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3548 wxSize const &arg6_defvalue = wxDefaultSize ;
3549 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3550 long arg7 = (long) 0 ;
3551 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3552 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3553 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3554 wxString *arg9 = (wxString *) &arg9_defvalue ;
3555 bool result;
3556 void *argp1 = 0 ;
3557 int res1 = 0 ;
3558 void *argp2 = 0 ;
3559 int res2 = 0 ;
3560 int val3 ;
3561 int ecode3 = 0 ;
3562 bool temp4 = false ;
3563 wxPoint temp5 ;
3564 wxSize temp6 ;
3565 long val7 ;
3566 int ecode7 = 0 ;
3567 void *argp8 = 0 ;
3568 int res8 = 0 ;
3569 bool temp9 = false ;
3570 PyObject * obj0 = 0 ;
3571 PyObject * obj1 = 0 ;
3572 PyObject * obj2 = 0 ;
3573 PyObject * obj3 = 0 ;
3574 PyObject * obj4 = 0 ;
3575 PyObject * obj5 = 0 ;
3576 PyObject * obj6 = 0 ;
3577 PyObject * obj7 = 0 ;
3578 PyObject * obj8 = 0 ;
3579 char * kwnames[] = {
3580 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3581 };
3582
3583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3585 if (!SWIG_IsOK(res1)) {
3586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_Create" "', expected argument " "1"" of type '" "wxButton *""'");
3587 }
3588 arg1 = reinterpret_cast< wxButton * >(argp1);
3589 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3590 if (!SWIG_IsOK(res2)) {
3591 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Button_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3592 }
3593 arg2 = reinterpret_cast< wxWindow * >(argp2);
3594 if (obj2) {
3595 ecode3 = SWIG_AsVal_int(obj2, &val3);
3596 if (!SWIG_IsOK(ecode3)) {
3597 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Button_Create" "', expected argument " "3"" of type '" "int""'");
3598 }
3599 arg3 = static_cast< int >(val3);
3600 }
3601 if (obj3) {
d55e5bfc 3602 {
1bd55598
RD
3603 arg4 = wxString_in_helper(obj3);
3604 if (arg4 == NULL) SWIG_fail;
3605 temp4 = true;
d55e5bfc 3606 }
1bd55598
RD
3607 }
3608 if (obj4) {
d55e5bfc 3609 {
1bd55598
RD
3610 arg5 = &temp5;
3611 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 3612 }
1bd55598
RD
3613 }
3614 if (obj5) {
d55e5bfc 3615 {
1bd55598
RD
3616 arg6 = &temp6;
3617 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 3618 }
1bd55598
RD
3619 }
3620 if (obj6) {
3621 ecode7 = SWIG_AsVal_long(obj6, &val7);
3622 if (!SWIG_IsOK(ecode7)) {
3623 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Button_Create" "', expected argument " "7"" of type '" "long""'");
3624 }
3625 arg7 = static_cast< long >(val7);
3626 }
3627 if (obj7) {
3628 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3629 if (!SWIG_IsOK(res8)) {
3630 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 3631 }
1bd55598
RD
3632 if (!argp8) {
3633 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 3634 }
1bd55598
RD
3635 arg8 = reinterpret_cast< wxValidator * >(argp8);
3636 }
3637 if (obj8) {
d55e5bfc 3638 {
1bd55598
RD
3639 arg9 = wxString_in_helper(obj8);
3640 if (arg9 == NULL) SWIG_fail;
3641 temp9 = true;
d55e5bfc 3642 }
1bd55598
RD
3643 }
3644 {
3645 PyThreadState* __tstate = wxPyBeginAllowThreads();
3646 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3647 wxPyEndAllowThreads(__tstate);
3648 if (PyErr_Occurred()) SWIG_fail;
3649 }
3650 {
3651 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3652 }
3653 {
3654 if (temp4)
3655 delete arg4;
3656 }
3657 {
3658 if (temp9)
3659 delete arg9;
3660 }
3661 return resultobj;
3662fail:
3663 {
3664 if (temp4)
3665 delete arg4;
3666 }
3667 {
3668 if (temp9)
3669 delete arg9;
3670 }
3671 return NULL;
d55e5bfc
RD
3672}
3673
3674
1bd55598
RD
3675SWIGINTERN PyObject *_wrap_Button_SetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3676 PyObject *resultobj = 0;
3677 wxButton *arg1 = (wxButton *) 0 ;
3678 void *argp1 = 0 ;
3679 int res1 = 0 ;
3680 PyObject *swig_obj[1] ;
3681
3682 if (!args) SWIG_fail;
3683 swig_obj[0] = args;
3684 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3685 if (!SWIG_IsOK(res1)) {
3686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_SetDefault" "', expected argument " "1"" of type '" "wxButton *""'");
3687 }
3688 arg1 = reinterpret_cast< wxButton * >(argp1);
3689 {
3690 PyThreadState* __tstate = wxPyBeginAllowThreads();
3691 (arg1)->SetDefault();
3692 wxPyEndAllowThreads(__tstate);
3693 if (PyErr_Occurred()) SWIG_fail;
3694 }
3695 resultobj = SWIG_Py_Void();
3696 return resultobj;
3697fail:
3698 return NULL;
d55e5bfc
RD
3699}
3700
3701
1bd55598
RD
3702SWIGINTERN PyObject *_wrap_Button_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3703 PyObject *resultobj = 0;
3704 wxSize result;
3705
3706 if (!SWIG_Python_UnpackTuple(args,"Button_GetDefaultSize",0,0,0)) SWIG_fail;
3707 {
3708 PyThreadState* __tstate = wxPyBeginAllowThreads();
3709 result = wxButton::GetDefaultSize();
3710 wxPyEndAllowThreads(__tstate);
3711 if (PyErr_Occurred()) SWIG_fail;
3712 }
3713 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
3714 return resultobj;
3715fail:
3716 return NULL;
3717}
3718
3719
3720SWIGINTERN PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3721 PyObject *resultobj = 0;
3722 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
3723 SwigValueWrapper<wxVisualAttributes > result;
3724 int val1 ;
3725 int ecode1 = 0 ;
3726 PyObject * obj0 = 0 ;
3727 char * kwnames[] = {
3728 (char *) "variant", NULL
3729 };
3730
3731 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
3732 if (obj0) {
3733 ecode1 = SWIG_AsVal_int(obj0, &val1);
3734 if (!SWIG_IsOK(ecode1)) {
3735 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Button_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
3736 }
3737 arg1 = static_cast< wxWindowVariant >(val1);
3738 }
3739 {
3740 if (!wxPyCheckForApp()) SWIG_fail;
3741 PyThreadState* __tstate = wxPyBeginAllowThreads();
3742 result = wxButton::GetClassDefaultAttributes(arg1);
3743 wxPyEndAllowThreads(__tstate);
3744 if (PyErr_Occurred()) SWIG_fail;
3745 }
3746 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
3747 return resultobj;
3748fail:
3749 return NULL;
3750}
3751
3752
3753SWIGINTERN PyObject *Button_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3754 PyObject *obj;
3755 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3756 SWIG_TypeNewClientData(SWIGTYPE_p_wxButton, SWIG_NewClientData(obj));
3757 return SWIG_Py_Void();
3758}
3759
3760SWIGINTERN PyObject *Button_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3761 return SWIG_Python_InitShadowInstance(args);
3762}
3763
3764SWIGINTERN PyObject *_wrap_new_BitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3765 PyObject *resultobj = 0;
3766 wxWindow *arg1 = (wxWindow *) 0 ;
3767 int arg2 = (int) -1 ;
3768 wxBitmap const &arg3_defvalue = wxNullBitmap ;
3769 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
3770 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3771 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3772 wxSize const &arg5_defvalue = wxDefaultSize ;
3773 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3774 long arg6 = (long) wxBU_AUTODRAW ;
3775 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3776 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3777 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3778 wxString *arg8 = (wxString *) &arg8_defvalue ;
3779 wxBitmapButton *result = 0 ;
3780 void *argp1 = 0 ;
3781 int res1 = 0 ;
3782 int val2 ;
3783 int ecode2 = 0 ;
3784 void *argp3 = 0 ;
3785 int res3 = 0 ;
3786 wxPoint temp4 ;
3787 wxSize temp5 ;
3788 long val6 ;
3789 int ecode6 = 0 ;
3790 void *argp7 = 0 ;
3791 int res7 = 0 ;
3792 bool temp8 = false ;
3793 PyObject * obj0 = 0 ;
3794 PyObject * obj1 = 0 ;
3795 PyObject * obj2 = 0 ;
3796 PyObject * obj3 = 0 ;
3797 PyObject * obj4 = 0 ;
3798 PyObject * obj5 = 0 ;
3799 PyObject * obj6 = 0 ;
3800 PyObject * obj7 = 0 ;
3801 char * kwnames[] = {
3802 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3803 };
3804
3805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3807 if (!SWIG_IsOK(res1)) {
3808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapButton" "', expected argument " "1"" of type '" "wxWindow *""'");
3809 }
3810 arg1 = reinterpret_cast< wxWindow * >(argp1);
3811 if (obj1) {
3812 ecode2 = SWIG_AsVal_int(obj1, &val2);
3813 if (!SWIG_IsOK(ecode2)) {
3814 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapButton" "', expected argument " "2"" of type '" "int""'");
3815 }
3816 arg2 = static_cast< int >(val2);
3817 }
3818 if (obj2) {
3819 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
3820 if (!SWIG_IsOK(res3)) {
3821 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3822 }
3823 if (!argp3) {
3824 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3825 }
3826 arg3 = reinterpret_cast< wxBitmap * >(argp3);
3827 }
3828 if (obj3) {
d55e5bfc 3829 {
1bd55598
RD
3830 arg4 = &temp4;
3831 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 3832 }
1bd55598
RD
3833 }
3834 if (obj4) {
d55e5bfc 3835 {
1bd55598
RD
3836 arg5 = &temp5;
3837 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 3838 }
1bd55598
RD
3839 }
3840 if (obj5) {
3841 ecode6 = SWIG_AsVal_long(obj5, &val6);
3842 if (!SWIG_IsOK(ecode6)) {
3843 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_BitmapButton" "', expected argument " "6"" of type '" "long""'");
3844 }
3845 arg6 = static_cast< long >(val6);
3846 }
3847 if (obj6) {
3848 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3849 if (!SWIG_IsOK(res7)) {
3850 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
f20a2e1f 3851 }
1bd55598
RD
3852 if (!argp7) {
3853 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
f20a2e1f 3854 }
1bd55598
RD
3855 arg7 = reinterpret_cast< wxValidator * >(argp7);
3856 }
3857 if (obj7) {
f20a2e1f 3858 {
1bd55598
RD
3859 arg8 = wxString_in_helper(obj7);
3860 if (arg8 == NULL) SWIG_fail;
3861 temp8 = true;
f20a2e1f 3862 }
1bd55598
RD
3863 }
3864 {
3865 if (!wxPyCheckForApp()) SWIG_fail;
3866 PyThreadState* __tstate = wxPyBeginAllowThreads();
3867 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3868 wxPyEndAllowThreads(__tstate);
3869 if (PyErr_Occurred()) SWIG_fail;
3870 }
3871 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_NEW | 0 );
3872 {
3873 if (temp8)
3874 delete arg8;
3875 }
3876 return resultobj;
3877fail:
3878 {
3879 if (temp8)
3880 delete arg8;
3881 }
3882 return NULL;
f20a2e1f
RD
3883}
3884
3885
1bd55598
RD
3886SWIGINTERN PyObject *_wrap_new_PreBitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3887 PyObject *resultobj = 0;
3888 wxBitmapButton *result = 0 ;
3889
3890 if (!SWIG_Python_UnpackTuple(args,"new_PreBitmapButton",0,0,0)) SWIG_fail;
3891 {
3892 if (!wxPyCheckForApp()) SWIG_fail;
3893 PyThreadState* __tstate = wxPyBeginAllowThreads();
3894 result = (wxBitmapButton *)new wxBitmapButton();
3895 wxPyEndAllowThreads(__tstate);
3896 if (PyErr_Occurred()) SWIG_fail;
3897 }
3898 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_OWN | 0 );
3899 return resultobj;
3900fail:
3901 return NULL;
3902}
3903
3904
3905SWIGINTERN PyObject *_wrap_BitmapButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3906 PyObject *resultobj = 0;
3907 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
3908 wxWindow *arg2 = (wxWindow *) 0 ;
3909 int arg3 = (int) -1 ;
3910 wxBitmap const &arg4_defvalue = wxNullBitmap ;
3911 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
3912 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3913 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3914 wxSize const &arg6_defvalue = wxDefaultSize ;
3915 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3916 long arg7 = (long) wxBU_AUTODRAW ;
3917 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3918 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3919 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3920 wxString *arg9 = (wxString *) &arg9_defvalue ;
3921 bool result;
3922 void *argp1 = 0 ;
3923 int res1 = 0 ;
3924 void *argp2 = 0 ;
3925 int res2 = 0 ;
3926 int val3 ;
3927 int ecode3 = 0 ;
3928 void *argp4 = 0 ;
3929 int res4 = 0 ;
3930 wxPoint temp5 ;
3931 wxSize temp6 ;
3932 long val7 ;
3933 int ecode7 = 0 ;
3934 void *argp8 = 0 ;
3935 int res8 = 0 ;
3936 bool temp9 = false ;
3937 PyObject * obj0 = 0 ;
3938 PyObject * obj1 = 0 ;
3939 PyObject * obj2 = 0 ;
3940 PyObject * obj3 = 0 ;
3941 PyObject * obj4 = 0 ;
3942 PyObject * obj5 = 0 ;
3943 PyObject * obj6 = 0 ;
3944 PyObject * obj7 = 0 ;
3945 PyObject * obj8 = 0 ;
3946 char * kwnames[] = {
3947 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3948 };
3949
3950 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3951 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
3952 if (!SWIG_IsOK(res1)) {
3953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_Create" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
3954 }
3955 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
3956 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3957 if (!SWIG_IsOK(res2)) {
3958 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3959 }
3960 arg2 = reinterpret_cast< wxWindow * >(argp2);
3961 if (obj2) {
3962 ecode3 = SWIG_AsVal_int(obj2, &val3);
3963 if (!SWIG_IsOK(ecode3)) {
3964 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_Create" "', expected argument " "3"" of type '" "int""'");
3965 }
3966 arg3 = static_cast< int >(val3);
3967 }
3968 if (obj3) {
3969 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
3970 if (!SWIG_IsOK(res4)) {
3971 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
d55e5bfc 3972 }
1bd55598
RD
3973 if (!argp4) {
3974 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
d55e5bfc 3975 }
1bd55598
RD
3976 arg4 = reinterpret_cast< wxBitmap * >(argp4);
3977 }
3978 if (obj4) {
d55e5bfc 3979 {
1bd55598
RD
3980 arg5 = &temp5;
3981 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 3982 }
1bd55598
RD
3983 }
3984 if (obj5) {
d55e5bfc 3985 {
1bd55598
RD
3986 arg6 = &temp6;
3987 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3988 }
3989 }
3990 if (obj6) {
3991 ecode7 = SWIG_AsVal_long(obj6, &val7);
3992 if (!SWIG_IsOK(ecode7)) {
3993 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "BitmapButton_Create" "', expected argument " "7"" of type '" "long""'");
3994 }
3995 arg7 = static_cast< long >(val7);
3996 }
3997 if (obj7) {
3998 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3999 if (!SWIG_IsOK(res8)) {
4000 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4001 }
4002 if (!argp8) {
4003 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 4004 }
1bd55598
RD
4005 arg8 = reinterpret_cast< wxValidator * >(argp8);
4006 }
4007 if (obj8) {
d55e5bfc 4008 {
1bd55598
RD
4009 arg9 = wxString_in_helper(obj8);
4010 if (arg9 == NULL) SWIG_fail;
4011 temp9 = true;
d55e5bfc 4012 }
1bd55598
RD
4013 }
4014 {
4015 PyThreadState* __tstate = wxPyBeginAllowThreads();
4016 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4017 wxPyEndAllowThreads(__tstate);
4018 if (PyErr_Occurred()) SWIG_fail;
4019 }
4020 {
4021 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4022 }
4023 {
4024 if (temp9)
4025 delete arg9;
4026 }
4027 return resultobj;
4028fail:
4029 {
4030 if (temp9)
4031 delete arg9;
4032 }
4033 return NULL;
d55e5bfc
RD
4034}
4035
4036
1bd55598
RD
4037SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4038 PyObject *resultobj = 0;
4039 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4040 wxBitmap result;
4041 void *argp1 = 0 ;
4042 int res1 = 0 ;
4043 PyObject *swig_obj[1] ;
4044
4045 if (!args) SWIG_fail;
4046 swig_obj[0] = args;
4047 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4048 if (!SWIG_IsOK(res1)) {
4049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4050 }
4051 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4052 {
4053 PyThreadState* __tstate = wxPyBeginAllowThreads();
4054 result = (arg1)->GetBitmapLabel();
4055 wxPyEndAllowThreads(__tstate);
4056 if (PyErr_Occurred()) SWIG_fail;
4057 }
4058 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4059 return resultobj;
4060fail:
4061 return NULL;
d55e5bfc
RD
4062}
4063
4064
1bd55598
RD
4065SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4066 PyObject *resultobj = 0;
4067 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4068 wxBitmap result;
4069 void *argp1 = 0 ;
4070 int res1 = 0 ;
4071 PyObject *swig_obj[1] ;
4072
4073 if (!args) SWIG_fail;
4074 swig_obj[0] = args;
4075 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4076 if (!SWIG_IsOK(res1)) {
4077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4078 }
4079 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4080 {
4081 PyThreadState* __tstate = wxPyBeginAllowThreads();
4082 result = (arg1)->GetBitmapDisabled();
4083 wxPyEndAllowThreads(__tstate);
4084 if (PyErr_Occurred()) SWIG_fail;
4085 }
4086 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4087 return resultobj;
4088fail:
4089 return NULL;
d55e5bfc
RD
4090}
4091
4092
1bd55598
RD
4093SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4094 PyObject *resultobj = 0;
4095 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4096 wxBitmap result;
4097 void *argp1 = 0 ;
4098 int res1 = 0 ;
4099 PyObject *swig_obj[1] ;
4100
4101 if (!args) SWIG_fail;
4102 swig_obj[0] = args;
4103 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4104 if (!SWIG_IsOK(res1)) {
4105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4106 }
4107 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4108 {
4109 PyThreadState* __tstate = wxPyBeginAllowThreads();
4110 result = (arg1)->GetBitmapFocus();
4111 wxPyEndAllowThreads(__tstate);
4112 if (PyErr_Occurred()) SWIG_fail;
4113 }
4114 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4115 return resultobj;
4116fail:
4117 return NULL;
d55e5bfc
RD
4118}
4119
4120
1bd55598
RD
4121SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4122 PyObject *resultobj = 0;
4123 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4124 wxBitmap result;
4125 void *argp1 = 0 ;
4126 int res1 = 0 ;
4127 PyObject *swig_obj[1] ;
4128
4129 if (!args) SWIG_fail;
4130 swig_obj[0] = args;
4131 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4132 if (!SWIG_IsOK(res1)) {
4133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4134 }
4135 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4136 {
4137 PyThreadState* __tstate = wxPyBeginAllowThreads();
4138 result = (arg1)->GetBitmapSelected();
4139 wxPyEndAllowThreads(__tstate);
4140 if (PyErr_Occurred()) SWIG_fail;
4141 }
4142 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4143 return resultobj;
4144fail:
4145 return NULL;
d55e5bfc
RD
4146}
4147
4148
1bd55598
RD
4149SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4150 PyObject *resultobj = 0;
4151 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4152 wxBitmap result;
4153 void *argp1 = 0 ;
4154 int res1 = 0 ;
4155 PyObject *swig_obj[1] ;
4156
4157 if (!args) SWIG_fail;
4158 swig_obj[0] = args;
4159 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4160 if (!SWIG_IsOK(res1)) {
4161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4162 }
4163 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4164 {
4165 PyThreadState* __tstate = wxPyBeginAllowThreads();
4166 result = (arg1)->GetBitmapHover();
4167 wxPyEndAllowThreads(__tstate);
4168 if (PyErr_Occurred()) SWIG_fail;
4169 }
4170 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4171 return resultobj;
4172fail:
4173 return NULL;
4174}
4175
4176
4177SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4178 PyObject *resultobj = 0;
4179 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4180 wxBitmap *arg2 = 0 ;
4181 void *argp1 = 0 ;
4182 int res1 = 0 ;
4183 void *argp2 = 0 ;
4184 int res2 = 0 ;
4185 PyObject * obj0 = 0 ;
4186 PyObject * obj1 = 0 ;
4187 char * kwnames[] = {
4188 (char *) "self",(char *) "bitmap", NULL
4189 };
4190
4191 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) SWIG_fail;
4192 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4193 if (!SWIG_IsOK(res1)) {
4194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4195 }
4196 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4197 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4198 if (!SWIG_IsOK(res2)) {
4199 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4200 }
4201 if (!argp2) {
4202 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4203 }
4204 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4205 {
4206 PyThreadState* __tstate = wxPyBeginAllowThreads();
4207 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
4208 wxPyEndAllowThreads(__tstate);
4209 if (PyErr_Occurred()) SWIG_fail;
4210 }
4211 resultobj = SWIG_Py_Void();
4212 return resultobj;
4213fail:
4214 return NULL;
4215}
4216
4217
4218SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4219 PyObject *resultobj = 0;
4220 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4221 wxBitmap *arg2 = 0 ;
4222 void *argp1 = 0 ;
4223 int res1 = 0 ;
4224 void *argp2 = 0 ;
4225 int res2 = 0 ;
4226 PyObject * obj0 = 0 ;
4227 PyObject * obj1 = 0 ;
4228 char * kwnames[] = {
4229 (char *) "self",(char *) "bitmap", NULL
4230 };
4231
4232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) SWIG_fail;
4233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4234 if (!SWIG_IsOK(res1)) {
4235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4236 }
4237 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4238 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4239 if (!SWIG_IsOK(res2)) {
4240 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4241 }
4242 if (!argp2) {
4243 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4244 }
4245 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4246 {
4247 PyThreadState* __tstate = wxPyBeginAllowThreads();
4248 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
4249 wxPyEndAllowThreads(__tstate);
4250 if (PyErr_Occurred()) SWIG_fail;
4251 }
4252 resultobj = SWIG_Py_Void();
4253 return resultobj;
4254fail:
4255 return NULL;
4256}
4257
4258
4259SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4260 PyObject *resultobj = 0;
4261 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4262 wxBitmap *arg2 = 0 ;
4263 void *argp1 = 0 ;
4264 int res1 = 0 ;
4265 void *argp2 = 0 ;
4266 int res2 = 0 ;
4267 PyObject * obj0 = 0 ;
4268 PyObject * obj1 = 0 ;
4269 char * kwnames[] = {
4270 (char *) "self",(char *) "bitmap", NULL
4271 };
4272
4273 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) SWIG_fail;
4274 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4275 if (!SWIG_IsOK(res1)) {
4276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4277 }
4278 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4279 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4280 if (!SWIG_IsOK(res2)) {
4281 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4282 }
4283 if (!argp2) {
4284 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4285 }
4286 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4287 {
4288 PyThreadState* __tstate = wxPyBeginAllowThreads();
4289 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
4290 wxPyEndAllowThreads(__tstate);
4291 if (PyErr_Occurred()) SWIG_fail;
4292 }
4293 resultobj = SWIG_Py_Void();
4294 return resultobj;
4295fail:
4296 return NULL;
4297}
4298
4299
4300SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4301 PyObject *resultobj = 0;
4302 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4303 wxBitmap *arg2 = 0 ;
4304 void *argp1 = 0 ;
4305 int res1 = 0 ;
4306 void *argp2 = 0 ;
4307 int res2 = 0 ;
4308 PyObject * obj0 = 0 ;
4309 PyObject * obj1 = 0 ;
4310 char * kwnames[] = {
4311 (char *) "self",(char *) "bitmap", NULL
4312 };
4313
4314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) SWIG_fail;
4315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4316 if (!SWIG_IsOK(res1)) {
4317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4318 }
4319 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4320 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4321 if (!SWIG_IsOK(res2)) {
4322 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4323 }
4324 if (!argp2) {
4325 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4326 }
4327 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4328 {
4329 PyThreadState* __tstate = wxPyBeginAllowThreads();
4330 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
4331 wxPyEndAllowThreads(__tstate);
4332 if (PyErr_Occurred()) SWIG_fail;
4333 }
4334 resultobj = SWIG_Py_Void();
4335 return resultobj;
4336fail:
4337 return NULL;
4338}
4339
4340
4341SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4342 PyObject *resultobj = 0;
4343 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4344 wxBitmap *arg2 = 0 ;
4345 void *argp1 = 0 ;
4346 int res1 = 0 ;
4347 void *argp2 = 0 ;
4348 int res2 = 0 ;
4349 PyObject * obj0 = 0 ;
4350 PyObject * obj1 = 0 ;
4351 char * kwnames[] = {
4352 (char *) "self",(char *) "hover", NULL
4353 };
4354
4355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapHover",kwnames,&obj0,&obj1)) SWIG_fail;
4356 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4357 if (!SWIG_IsOK(res1)) {
4358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4359 }
4360 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4361 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4362 if (!SWIG_IsOK(res2)) {
4363 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4364 }
4365 if (!argp2) {
4366 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4367 }
4368 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4369 {
4370 PyThreadState* __tstate = wxPyBeginAllowThreads();
4371 (arg1)->SetBitmapHover((wxBitmap const &)*arg2);
4372 wxPyEndAllowThreads(__tstate);
4373 if (PyErr_Occurred()) SWIG_fail;
4374 }
4375 resultobj = SWIG_Py_Void();
4376 return resultobj;
4377fail:
4378 return NULL;
4379}
4380
4381
4382SWIGINTERN PyObject *_wrap_BitmapButton_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4383 PyObject *resultobj = 0;
4384 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4385 int arg2 ;
4386 int arg3 ;
4387 void *argp1 = 0 ;
4388 int res1 = 0 ;
4389 int val2 ;
4390 int ecode2 = 0 ;
4391 int val3 ;
4392 int ecode3 = 0 ;
4393 PyObject * obj0 = 0 ;
4394 PyObject * obj1 = 0 ;
4395 PyObject * obj2 = 0 ;
4396 char * kwnames[] = {
4397 (char *) "self",(char *) "x",(char *) "y", NULL
4398 };
4399
4400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4402 if (!SWIG_IsOK(res1)) {
4403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetMargins" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4404 }
4405 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4406 ecode2 = SWIG_AsVal_int(obj1, &val2);
4407 if (!SWIG_IsOK(ecode2)) {
4408 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BitmapButton_SetMargins" "', expected argument " "2"" of type '" "int""'");
4409 }
4410 arg2 = static_cast< int >(val2);
4411 ecode3 = SWIG_AsVal_int(obj2, &val3);
4412 if (!SWIG_IsOK(ecode3)) {
4413 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_SetMargins" "', expected argument " "3"" of type '" "int""'");
4414 }
4415 arg3 = static_cast< int >(val3);
4416 {
4417 PyThreadState* __tstate = wxPyBeginAllowThreads();
4418 (arg1)->SetMargins(arg2,arg3);
4419 wxPyEndAllowThreads(__tstate);
4420 if (PyErr_Occurred()) SWIG_fail;
4421 }
4422 resultobj = SWIG_Py_Void();
4423 return resultobj;
4424fail:
4425 return NULL;
d55e5bfc
RD
4426}
4427
4428
1bd55598
RD
4429SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4430 PyObject *resultobj = 0;
4431 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4432 int result;
4433 void *argp1 = 0 ;
4434 int res1 = 0 ;
4435 PyObject *swig_obj[1] ;
4436
4437 if (!args) SWIG_fail;
4438 swig_obj[0] = args;
4439 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4440 if (!SWIG_IsOK(res1)) {
4441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginX" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4442 }
4443 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4444 {
4445 PyThreadState* __tstate = wxPyBeginAllowThreads();
4446 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
4447 wxPyEndAllowThreads(__tstate);
4448 if (PyErr_Occurred()) SWIG_fail;
4449 }
4450 resultobj = SWIG_From_int(static_cast< int >(result));
4451 return resultobj;
4452fail:
4453 return NULL;
d55e5bfc
RD
4454}
4455
4456
1bd55598
RD
4457SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4458 PyObject *resultobj = 0;
4459 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4460 int result;
4461 void *argp1 = 0 ;
4462 int res1 = 0 ;
4463 PyObject *swig_obj[1] ;
4464
4465 if (!args) SWIG_fail;
4466 swig_obj[0] = args;
4467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4468 if (!SWIG_IsOK(res1)) {
4469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginY" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4470 }
4471 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4472 {
4473 PyThreadState* __tstate = wxPyBeginAllowThreads();
4474 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
4475 wxPyEndAllowThreads(__tstate);
4476 if (PyErr_Occurred()) SWIG_fail;
4477 }
4478 resultobj = SWIG_From_int(static_cast< int >(result));
4479 return resultobj;
4480fail:
4481 return NULL;
b1fcee84
RD
4482}
4483
4484
1bd55598
RD
4485SWIGINTERN PyObject *BitmapButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4486 PyObject *obj;
4487 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4488 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmapButton, SWIG_NewClientData(obj));
4489 return SWIG_Py_Void();
d55e5bfc
RD
4490}
4491
1bd55598
RD
4492SWIGINTERN PyObject *BitmapButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4493 return SWIG_Python_InitShadowInstance(args);
4494}
d55e5bfc 4495
1bd55598
RD
4496SWIGINTERN int CheckBoxNameStr_set(PyObject *) {
4497 SWIG_Error(SWIG_AttributeError,"Variable CheckBoxNameStr is read-only.");
4498 return 1;
d55e5bfc
RD
4499}
4500
4501
1bd55598
RD
4502SWIGINTERN PyObject *CheckBoxNameStr_get(void) {
4503 PyObject *pyobj = 0;
4504
4505 {
4506#if wxUSE_UNICODE
4507 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4508#else
4509 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4510#endif
4511 }
4512 return pyobj;
4513}
4514
4515
4516SWIGINTERN PyObject *_wrap_new_CheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4517 PyObject *resultobj = 0;
4518 wxWindow *arg1 = (wxWindow *) 0 ;
4519 int arg2 = (int) -1 ;
4520 wxString const &arg3_defvalue = wxPyEmptyString ;
4521 wxString *arg3 = (wxString *) &arg3_defvalue ;
4522 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4523 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4524 wxSize const &arg5_defvalue = wxDefaultSize ;
4525 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4526 long arg6 = (long) 0 ;
4527 wxValidator const &arg7_defvalue = wxDefaultValidator ;
4528 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
4529 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
4530 wxString *arg8 = (wxString *) &arg8_defvalue ;
4531 wxCheckBox *result = 0 ;
4532 void *argp1 = 0 ;
4533 int res1 = 0 ;
4534 int val2 ;
4535 int ecode2 = 0 ;
4536 bool temp3 = false ;
4537 wxPoint temp4 ;
4538 wxSize temp5 ;
4539 long val6 ;
4540 int ecode6 = 0 ;
4541 void *argp7 = 0 ;
4542 int res7 = 0 ;
4543 bool temp8 = false ;
4544 PyObject * obj0 = 0 ;
4545 PyObject * obj1 = 0 ;
4546 PyObject * obj2 = 0 ;
4547 PyObject * obj3 = 0 ;
4548 PyObject * obj4 = 0 ;
4549 PyObject * obj5 = 0 ;
4550 PyObject * obj6 = 0 ;
4551 PyObject * obj7 = 0 ;
4552 char * kwnames[] = {
4553 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4554 };
4555
4556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
4557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
4558 if (!SWIG_IsOK(res1)) {
4559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckBox" "', expected argument " "1"" of type '" "wxWindow *""'");
4560 }
4561 arg1 = reinterpret_cast< wxWindow * >(argp1);
4562 if (obj1) {
4563 ecode2 = SWIG_AsVal_int(obj1, &val2);
4564 if (!SWIG_IsOK(ecode2)) {
4565 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckBox" "', expected argument " "2"" of type '" "int""'");
4566 }
4567 arg2 = static_cast< int >(val2);
4568 }
4569 if (obj2) {
d55e5bfc 4570 {
1bd55598
RD
4571 arg3 = wxString_in_helper(obj2);
4572 if (arg3 == NULL) SWIG_fail;
4573 temp3 = true;
d55e5bfc 4574 }
1bd55598
RD
4575 }
4576 if (obj3) {
4577 {
4578 arg4 = &temp4;
4579 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 4580 }
1bd55598
RD
4581 }
4582 if (obj4) {
d55e5bfc 4583 {
1bd55598
RD
4584 arg5 = &temp5;
4585 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 4586 }
1bd55598
RD
4587 }
4588 if (obj5) {
4589 ecode6 = SWIG_AsVal_long(obj5, &val6);
4590 if (!SWIG_IsOK(ecode6)) {
4591 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckBox" "', expected argument " "6"" of type '" "long""'");
4592 }
4593 arg6 = static_cast< long >(val6);
4594 }
4595 if (obj6) {
4596 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
4597 if (!SWIG_IsOK(res7)) {
4598 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
b1fcee84 4599 }
1bd55598
RD
4600 if (!argp7) {
4601 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4602 }
4603 arg7 = reinterpret_cast< wxValidator * >(argp7);
4604 }
4605 if (obj7) {
b1fcee84 4606 {
1bd55598
RD
4607 arg8 = wxString_in_helper(obj7);
4608 if (arg8 == NULL) SWIG_fail;
4609 temp8 = true;
b1fcee84 4610 }
1bd55598
RD
4611 }
4612 {
4613 if (!wxPyCheckForApp()) SWIG_fail;
4614 PyThreadState* __tstate = wxPyBeginAllowThreads();
4615 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
4616 wxPyEndAllowThreads(__tstate);
4617 if (PyErr_Occurred()) SWIG_fail;
4618 }
4619 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_NEW | 0 );
4620 {
4621 if (temp3)
4622 delete arg3;
4623 }
4624 {
4625 if (temp8)
4626 delete arg8;
4627 }
4628 return resultobj;
4629fail:
4630 {
4631 if (temp3)
4632 delete arg3;
4633 }
4634 {
4635 if (temp8)
4636 delete arg8;
4637 }
4638 return NULL;
b1fcee84
RD
4639}
4640
4641
1bd55598
RD
4642SWIGINTERN PyObject *_wrap_new_PreCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4643 PyObject *resultobj = 0;
4644 wxCheckBox *result = 0 ;
4645
4646 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckBox",0,0,0)) SWIG_fail;
4647 {
4648 if (!wxPyCheckForApp()) SWIG_fail;
4649 PyThreadState* __tstate = wxPyBeginAllowThreads();
4650 result = (wxCheckBox *)new wxCheckBox();
4651 wxPyEndAllowThreads(__tstate);
4652 if (PyErr_Occurred()) SWIG_fail;
4653 }
4654 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_OWN | 0 );
4655 return resultobj;
4656fail:
4657 return NULL;
4658}
4659
4660
4661SWIGINTERN PyObject *_wrap_CheckBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4662 PyObject *resultobj = 0;
4663 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4664 wxWindow *arg2 = (wxWindow *) 0 ;
4665 int arg3 = (int) -1 ;
4666 wxString const &arg4_defvalue = wxPyEmptyString ;
4667 wxString *arg4 = (wxString *) &arg4_defvalue ;
4668 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4669 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4670 wxSize const &arg6_defvalue = wxDefaultSize ;
4671 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4672 long arg7 = (long) 0 ;
4673 wxValidator const &arg8_defvalue = wxDefaultValidator ;
4674 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
4675 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
4676 wxString *arg9 = (wxString *) &arg9_defvalue ;
4677 bool result;
4678 void *argp1 = 0 ;
4679 int res1 = 0 ;
4680 void *argp2 = 0 ;
4681 int res2 = 0 ;
4682 int val3 ;
4683 int ecode3 = 0 ;
4684 bool temp4 = false ;
4685 wxPoint temp5 ;
4686 wxSize temp6 ;
4687 long val7 ;
4688 int ecode7 = 0 ;
4689 void *argp8 = 0 ;
4690 int res8 = 0 ;
4691 bool temp9 = false ;
4692 PyObject * obj0 = 0 ;
4693 PyObject * obj1 = 0 ;
4694 PyObject * obj2 = 0 ;
4695 PyObject * obj3 = 0 ;
4696 PyObject * obj4 = 0 ;
4697 PyObject * obj5 = 0 ;
4698 PyObject * obj6 = 0 ;
4699 PyObject * obj7 = 0 ;
4700 PyObject * obj8 = 0 ;
4701 char * kwnames[] = {
4702 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4703 };
4704
4705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
4706 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4707 if (!SWIG_IsOK(res1)) {
4708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Create" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4709 }
4710 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4711 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
4712 if (!SWIG_IsOK(res2)) {
4713 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
4714 }
4715 arg2 = reinterpret_cast< wxWindow * >(argp2);
4716 if (obj2) {
4717 ecode3 = SWIG_AsVal_int(obj2, &val3);
4718 if (!SWIG_IsOK(ecode3)) {
4719 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckBox_Create" "', expected argument " "3"" of type '" "int""'");
4720 }
4721 arg3 = static_cast< int >(val3);
4722 }
4723 if (obj3) {
36ed4f51 4724 {
1bd55598
RD
4725 arg4 = wxString_in_helper(obj3);
4726 if (arg4 == NULL) SWIG_fail;
4727 temp4 = true;
36ed4f51 4728 }
1bd55598
RD
4729 }
4730 if (obj4) {
36ed4f51 4731 {
1bd55598
RD
4732 arg5 = &temp5;
4733 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 4734 }
1bd55598
RD
4735 }
4736 if (obj5) {
d55e5bfc 4737 {
1bd55598
RD
4738 arg6 = &temp6;
4739 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 4740 }
1bd55598
RD
4741 }
4742 if (obj6) {
4743 ecode7 = SWIG_AsVal_long(obj6, &val7);
4744 if (!SWIG_IsOK(ecode7)) {
4745 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckBox_Create" "', expected argument " "7"" of type '" "long""'");
4746 }
4747 arg7 = static_cast< long >(val7);
4748 }
4749 if (obj7) {
4750 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4751 if (!SWIG_IsOK(res8)) {
4752 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 4753 }
1bd55598
RD
4754 if (!argp8) {
4755 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4756 }
4757 arg8 = reinterpret_cast< wxValidator * >(argp8);
4758 }
4759 if (obj8) {
36ed4f51 4760 {
1bd55598
RD
4761 arg9 = wxString_in_helper(obj8);
4762 if (arg9 == NULL) SWIG_fail;
4763 temp9 = true;
36ed4f51 4764 }
1bd55598
RD
4765 }
4766 {
4767 PyThreadState* __tstate = wxPyBeginAllowThreads();
4768 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4769 wxPyEndAllowThreads(__tstate);
4770 if (PyErr_Occurred()) SWIG_fail;
4771 }
4772 {
4773 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4774 }
4775 {
4776 if (temp4)
4777 delete arg4;
4778 }
4779 {
4780 if (temp9)
4781 delete arg9;
4782 }
4783 return resultobj;
4784fail:
4785 {
4786 if (temp4)
4787 delete arg4;
4788 }
4789 {
4790 if (temp9)
4791 delete arg9;
4792 }
4793 return NULL;
d55e5bfc
RD
4794}
4795
4796
1bd55598
RD
4797SWIGINTERN PyObject *_wrap_CheckBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4798 PyObject *resultobj = 0;
4799 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4800 bool result;
4801 void *argp1 = 0 ;
4802 int res1 = 0 ;
4803 PyObject *swig_obj[1] ;
4804
4805 if (!args) SWIG_fail;
4806 swig_obj[0] = args;
4807 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4808 if (!SWIG_IsOK(res1)) {
4809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_GetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4810 }
4811 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4812 {
4813 PyThreadState* __tstate = wxPyBeginAllowThreads();
4814 result = (bool)(arg1)->GetValue();
4815 wxPyEndAllowThreads(__tstate);
4816 if (PyErr_Occurred()) SWIG_fail;
4817 }
4818 {
4819 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4820 }
4821 return resultobj;
4822fail:
4823 return NULL;
d55e5bfc
RD
4824}
4825
4826
1bd55598
RD
4827SWIGINTERN PyObject *_wrap_CheckBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4828 PyObject *resultobj = 0;
4829 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4830 bool result;
4831 void *argp1 = 0 ;
4832 int res1 = 0 ;
4833 PyObject *swig_obj[1] ;
4834
4835 if (!args) SWIG_fail;
4836 swig_obj[0] = args;
4837 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4838 if (!SWIG_IsOK(res1)) {
4839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4840 }
4841 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4842 {
4843 PyThreadState* __tstate = wxPyBeginAllowThreads();
4844 result = (bool)(arg1)->IsChecked();
4845 wxPyEndAllowThreads(__tstate);
4846 if (PyErr_Occurred()) SWIG_fail;
4847 }
4848 {
4849 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4850 }
4851 return resultobj;
4852fail:
4853 return NULL;
4854}
4855
4856
4857SWIGINTERN PyObject *_wrap_CheckBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4858 PyObject *resultobj = 0;
4859 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4860 bool arg2 ;
4861 void *argp1 = 0 ;
4862 int res1 = 0 ;
4863 bool val2 ;
4864 int ecode2 = 0 ;
4865 PyObject * obj0 = 0 ;
4866 PyObject * obj1 = 0 ;
4867 char * kwnames[] = {
4868 (char *) "self",(char *) "state", NULL
4869 };
4870
4871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
4872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4873 if (!SWIG_IsOK(res1)) {
4874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_SetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4875 }
4876 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4877 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4878 if (!SWIG_IsOK(ecode2)) {
4879 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_SetValue" "', expected argument " "2"" of type '" "bool""'");
4880 }
4881 arg2 = static_cast< bool >(val2);
4882 {
4883 PyThreadState* __tstate = wxPyBeginAllowThreads();
4884 (arg1)->SetValue(arg2);
4885 wxPyEndAllowThreads(__tstate);
4886 if (PyErr_Occurred()) SWIG_fail;
4887 }
4888 resultobj = SWIG_Py_Void();
4889 return resultobj;
4890fail:
4891 return NULL;
d55e5bfc 4892}
1bd55598
RD
4893
4894
4895SWIGINTERN PyObject *_wrap_CheckBox_Get3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4896 PyObject *resultobj = 0;
4897 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4898 wxCheckBoxState result;
4899 void *argp1 = 0 ;
4900 int res1 = 0 ;
4901 PyObject *swig_obj[1] ;
4902
4903 if (!args) SWIG_fail;
4904 swig_obj[0] = args;
4905 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4906 if (!SWIG_IsOK(res1)) {
4907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Get3StateValue" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4908 }
4909 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4910 {
4911 PyThreadState* __tstate = wxPyBeginAllowThreads();
4912 result = (wxCheckBoxState)((wxCheckBox const *)arg1)->Get3StateValue();
4913 wxPyEndAllowThreads(__tstate);
4914 if (PyErr_Occurred()) SWIG_fail;
4915 }
4916 resultobj = SWIG_From_int(static_cast< int >(result));
4917 return resultobj;
4918fail:
4919 return NULL;
4920}
4921
4922
4923SWIGINTERN PyObject *_wrap_CheckBox_Set3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4924 PyObject *resultobj = 0;
4925 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4926 wxCheckBoxState arg2 ;
4927 void *argp1 = 0 ;
4928 int res1 = 0 ;
4929 int val2 ;
4930 int ecode2 = 0 ;
4931 PyObject * obj0 = 0 ;
4932 PyObject * obj1 = 0 ;
4933 char * kwnames[] = {
4934 (char *) "self",(char *) "state", NULL
4935 };
4936
4937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) SWIG_fail;
4938 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4939 if (!SWIG_IsOK(res1)) {
4940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Set3StateValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4941 }
4942 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4943 ecode2 = SWIG_AsVal_int(obj1, &val2);
4944 if (!SWIG_IsOK(ecode2)) {
4945 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_Set3StateValue" "', expected argument " "2"" of type '" "wxCheckBoxState""'");
4946 }
4947 arg2 = static_cast< wxCheckBoxState >(val2);
4948 {
4949 PyThreadState* __tstate = wxPyBeginAllowThreads();
4950 (arg1)->Set3StateValue(arg2);
4951 wxPyEndAllowThreads(__tstate);
4952 if (PyErr_Occurred()) SWIG_fail;
4953 }
4954 resultobj = SWIG_Py_Void();
4955 return resultobj;
4956fail:
4957 return NULL;
d55e5bfc
RD
4958}
4959
4960
1bd55598
RD
4961SWIGINTERN PyObject *_wrap_CheckBox_Is3State(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4962 PyObject *resultobj = 0;
4963 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4964 bool result;
4965 void *argp1 = 0 ;
4966 int res1 = 0 ;
4967 PyObject *swig_obj[1] ;
4968
4969 if (!args) SWIG_fail;
4970 swig_obj[0] = args;
4971 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4972 if (!SWIG_IsOK(res1)) {
4973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3State" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4974 }
4975 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4976 {
4977 PyThreadState* __tstate = wxPyBeginAllowThreads();
4978 result = (bool)((wxCheckBox const *)arg1)->Is3State();
4979 wxPyEndAllowThreads(__tstate);
4980 if (PyErr_Occurred()) SWIG_fail;
4981 }
4982 {
4983 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4984 }
4985 return resultobj;
4986fail:
4987 return NULL;
d55e5bfc
RD
4988}
4989
4990
1bd55598
RD
4991SWIGINTERN PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4992 PyObject *resultobj = 0;
4993 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4994 bool result;
4995 void *argp1 = 0 ;
4996 int res1 = 0 ;
4997 PyObject *swig_obj[1] ;
4998
4999 if (!args) SWIG_fail;
5000 swig_obj[0] = args;
5001 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
5002 if (!SWIG_IsOK(res1)) {
5003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3rdStateAllowedForUser" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
5004 }
5005 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
5006 {
5007 PyThreadState* __tstate = wxPyBeginAllowThreads();
5008 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
5009 wxPyEndAllowThreads(__tstate);
5010 if (PyErr_Occurred()) SWIG_fail;
5011 }
5012 {
5013 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5014 }
5015 return resultobj;
5016fail:
5017 return NULL;
d55e5bfc
RD
5018}
5019
5020
1bd55598
RD
5021SWIGINTERN PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5022 PyObject *resultobj = 0;
5023 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5024 SwigValueWrapper<wxVisualAttributes > result;
5025 int val1 ;
5026 int ecode1 = 0 ;
5027 PyObject * obj0 = 0 ;
5028 char * kwnames[] = {
5029 (char *) "variant", NULL
5030 };
5031
5032 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5033 if (obj0) {
5034 ecode1 = SWIG_AsVal_int(obj0, &val1);
5035 if (!SWIG_IsOK(ecode1)) {
5036 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CheckBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5037 }
5038 arg1 = static_cast< wxWindowVariant >(val1);
5039 }
5040 {
5041 if (!wxPyCheckForApp()) SWIG_fail;
5042 PyThreadState* __tstate = wxPyBeginAllowThreads();
5043 result = wxCheckBox::GetClassDefaultAttributes(arg1);
5044 wxPyEndAllowThreads(__tstate);
5045 if (PyErr_Occurred()) SWIG_fail;
5046 }
5047 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5048 return resultobj;
5049fail:
5050 return NULL;
d55e5bfc
RD
5051}
5052
5053
1bd55598
RD
5054SWIGINTERN PyObject *CheckBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5055 PyObject *obj;
5056 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5057 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckBox, SWIG_NewClientData(obj));
5058 return SWIG_Py_Void();
d55e5bfc
RD
5059}
5060
1bd55598
RD
5061SWIGINTERN PyObject *CheckBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5062 return SWIG_Python_InitShadowInstance(args);
5063}
d55e5bfc 5064
1bd55598
RD
5065SWIGINTERN int ChoiceNameStr_set(PyObject *) {
5066 SWIG_Error(SWIG_AttributeError,"Variable ChoiceNameStr is read-only.");
5067 return 1;
d55e5bfc
RD
5068}
5069
5070
1bd55598
RD
5071SWIGINTERN PyObject *ChoiceNameStr_get(void) {
5072 PyObject *pyobj = 0;
5073
5074 {
5075#if wxUSE_UNICODE
5076 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5077#else
5078 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5079#endif
5080 }
5081 return pyobj;
5082}
5083
5084
5085SWIGINTERN PyObject *_wrap_new_Choice(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5086 PyObject *resultobj = 0;
5087 wxWindow *arg1 = (wxWindow *) 0 ;
5088 int arg2 = (int) -1 ;
5089 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5090 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5091 wxSize const &arg4_defvalue = wxDefaultSize ;
5092 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5093 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5094 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5095 long arg6 = (long) 0 ;
5096 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5097 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5098 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
5099 wxString *arg8 = (wxString *) &arg8_defvalue ;
5100 wxChoice *result = 0 ;
5101 void *argp1 = 0 ;
5102 int res1 = 0 ;
5103 int val2 ;
5104 int ecode2 = 0 ;
5105 wxPoint temp3 ;
5106 wxSize temp4 ;
5107 bool temp5 = false ;
5108 long val6 ;
5109 int ecode6 = 0 ;
5110 void *argp7 = 0 ;
5111 int res7 = 0 ;
5112 bool temp8 = false ;
5113 PyObject * obj0 = 0 ;
5114 PyObject * obj1 = 0 ;
5115 PyObject * obj2 = 0 ;
5116 PyObject * obj3 = 0 ;
5117 PyObject * obj4 = 0 ;
5118 PyObject * obj5 = 0 ;
5119 PyObject * obj6 = 0 ;
5120 PyObject * obj7 = 0 ;
5121 char * kwnames[] = {
5122 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5123 };
5124
5125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
5126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5127 if (!SWIG_IsOK(res1)) {
5128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choice" "', expected argument " "1"" of type '" "wxWindow *""'");
5129 }
5130 arg1 = reinterpret_cast< wxWindow * >(argp1);
5131 if (obj1) {
5132 ecode2 = SWIG_AsVal_int(obj1, &val2);
5133 if (!SWIG_IsOK(ecode2)) {
5134 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choice" "', expected argument " "2"" of type '" "int""'");
5135 }
5136 arg2 = static_cast< int >(val2);
5137 }
5138 if (obj2) {
36ed4f51 5139 {
1bd55598
RD
5140 arg3 = &temp3;
5141 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36ed4f51 5142 }
1bd55598
RD
5143 }
5144 if (obj3) {
d55e5bfc 5145 {
1bd55598
RD
5146 arg4 = &temp4;
5147 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 5148 }
1bd55598
RD
5149 }
5150 if (obj4) {
d55e5bfc 5151 {
1bd55598
RD
5152 if (! PySequence_Check(obj4)) {
5153 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5154 SWIG_fail;
5155 }
5156 arg5 = new wxArrayString;
5157 temp5 = true;
5158 int i, len=PySequence_Length(obj4);
5159 for (i=0; i<len; i++) {
5160 PyObject* item = PySequence_GetItem(obj4, i);
5161 wxString* s = wxString_in_helper(item);
5162 if (PyErr_Occurred()) SWIG_fail;
5163 arg5->Add(*s);
5164 delete s;
5165 Py_DECREF(item);
5166 }
d55e5bfc 5167 }
1bd55598
RD
5168 }
5169 if (obj5) {
5170 ecode6 = SWIG_AsVal_long(obj5, &val6);
5171 if (!SWIG_IsOK(ecode6)) {
5172 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Choice" "', expected argument " "6"" of type '" "long""'");
5173 }
5174 arg6 = static_cast< long >(val6);
5175 }
5176 if (obj6) {
5177 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
5178 if (!SWIG_IsOK(res7)) {
5179 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
36ed4f51 5180 }
1bd55598
RD
5181 if (!argp7) {
5182 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5183 }
5184 arg7 = reinterpret_cast< wxValidator * >(argp7);
5185 }
5186 if (obj7) {
d55e5bfc 5187 {
1bd55598
RD
5188 arg8 = wxString_in_helper(obj7);
5189 if (arg8 == NULL) SWIG_fail;
5190 temp8 = true;
d55e5bfc 5191 }
1bd55598
RD
5192 }
5193 {
5194 if (!wxPyCheckForApp()) SWIG_fail;
5195 PyThreadState* __tstate = wxPyBeginAllowThreads();
5196 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5197 wxPyEndAllowThreads(__tstate);
5198 if (PyErr_Occurred()) SWIG_fail;
5199 }
5200 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_NEW | 0 );
5201 {
5202 if (temp5) delete arg5;
5203 }
5204 {
5205 if (temp8)
5206 delete arg8;
5207 }
5208 return resultobj;
5209fail:
5210 {
5211 if (temp5) delete arg5;
5212 }
5213 {
5214 if (temp8)
5215 delete arg8;
5216 }
5217 return NULL;
d55e5bfc
RD
5218}
5219
5220
1bd55598
RD
5221SWIGINTERN PyObject *_wrap_new_PreChoice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5222 PyObject *resultobj = 0;
5223 wxChoice *result = 0 ;
5224
5225 if (!SWIG_Python_UnpackTuple(args,"new_PreChoice",0,0,0)) SWIG_fail;
5226 {
5227 if (!wxPyCheckForApp()) SWIG_fail;
5228 PyThreadState* __tstate = wxPyBeginAllowThreads();
5229 result = (wxChoice *)new wxChoice();
5230 wxPyEndAllowThreads(__tstate);
5231 if (PyErr_Occurred()) SWIG_fail;
5232 }
5233 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_OWN | 0 );
5234 return resultobj;
5235fail:
5236 return NULL;
5237}
5238
5239
5240SWIGINTERN PyObject *_wrap_Choice_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5241 PyObject *resultobj = 0;
5242 wxChoice *arg1 = (wxChoice *) 0 ;
5243 wxWindow *arg2 = (wxWindow *) 0 ;
5244 int arg3 = (int) -1 ;
5245 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5246 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5247 wxSize const &arg5_defvalue = wxDefaultSize ;
5248 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5249 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5250 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5251 long arg7 = (long) 0 ;
5252 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5253 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5254 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
5255 wxString *arg9 = (wxString *) &arg9_defvalue ;
5256 bool result;
5257 void *argp1 = 0 ;
5258 int res1 = 0 ;
5259 void *argp2 = 0 ;
5260 int res2 = 0 ;
5261 int val3 ;
5262 int ecode3 = 0 ;
5263 wxPoint temp4 ;
5264 wxSize temp5 ;
5265 bool temp6 = false ;
5266 long val7 ;
5267 int ecode7 = 0 ;
5268 void *argp8 = 0 ;
5269 int res8 = 0 ;
5270 bool temp9 = false ;
5271 PyObject * obj0 = 0 ;
5272 PyObject * obj1 = 0 ;
5273 PyObject * obj2 = 0 ;
5274 PyObject * obj3 = 0 ;
5275 PyObject * obj4 = 0 ;
5276 PyObject * obj5 = 0 ;
5277 PyObject * obj6 = 0 ;
5278 PyObject * obj7 = 0 ;
5279 PyObject * obj8 = 0 ;
5280 char * kwnames[] = {
5281 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5282 };
5283
5284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5286 if (!SWIG_IsOK(res1)) {
5287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_Create" "', expected argument " "1"" of type '" "wxChoice *""'");
5288 }
5289 arg1 = reinterpret_cast< wxChoice * >(argp1);
5290 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5291 if (!SWIG_IsOK(res2)) {
5292 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choice_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5293 }
5294 arg2 = reinterpret_cast< wxWindow * >(argp2);
5295 if (obj2) {
5296 ecode3 = SWIG_AsVal_int(obj2, &val3);
5297 if (!SWIG_IsOK(ecode3)) {
5298 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choice_Create" "', expected argument " "3"" of type '" "int""'");
5299 }
5300 arg3 = static_cast< int >(val3);
5301 }
5302 if (obj3) {
d55e5bfc 5303 {
1bd55598
RD
5304 arg4 = &temp4;
5305 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 5306 }
1bd55598
RD
5307 }
5308 if (obj4) {
d55e5bfc 5309 {
1bd55598
RD
5310 arg5 = &temp5;
5311 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 5312 }
1bd55598
RD
5313 }
5314 if (obj5) {
d55e5bfc 5315 {
1bd55598
RD
5316 if (! PySequence_Check(obj5)) {
5317 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5318 SWIG_fail;
5319 }
5320 arg6 = new wxArrayString;
5321 temp6 = true;
5322 int i, len=PySequence_Length(obj5);
5323 for (i=0; i<len; i++) {
5324 PyObject* item = PySequence_GetItem(obj5, i);
5325 wxString* s = wxString_in_helper(item);
5326 if (PyErr_Occurred()) SWIG_fail;
5327 arg6->Add(*s);
5328 delete s;
5329 Py_DECREF(item);
5330 }
5331 }
5332 }
5333 if (obj6) {
5334 ecode7 = SWIG_AsVal_long(obj6, &val7);
5335 if (!SWIG_IsOK(ecode7)) {
5336 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Choice_Create" "', expected argument " "7"" of type '" "long""'");
5337 }
5338 arg7 = static_cast< long >(val7);
5339 }
5340 if (obj7) {
5341 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5342 if (!SWIG_IsOK(res8)) {
5343 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 5344 }
1bd55598
RD
5345 if (!argp8) {
5346 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5347 }
5348 arg8 = reinterpret_cast< wxValidator * >(argp8);
5349 }
5350 if (obj8) {
d55e5bfc 5351 {
1bd55598
RD
5352 arg9 = wxString_in_helper(obj8);
5353 if (arg9 == NULL) SWIG_fail;
5354 temp9 = true;
d55e5bfc 5355 }
1bd55598
RD
5356 }
5357 {
5358 PyThreadState* __tstate = wxPyBeginAllowThreads();
5359 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5360 wxPyEndAllowThreads(__tstate);
5361 if (PyErr_Occurred()) SWIG_fail;
5362 }
5363 {
5364 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5365 }
5366 {
5367 if (temp6) delete arg6;
5368 }
5369 {
5370 if (temp9)
5371 delete arg9;
5372 }
5373 return resultobj;
5374fail:
5375 {
5376 if (temp6) delete arg6;
5377 }
5378 {
5379 if (temp9)
5380 delete arg9;
5381 }
5382 return NULL;
d55e5bfc
RD
5383}
5384
5385
1bd55598
RD
5386SWIGINTERN PyObject *_wrap_Choice_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5387 PyObject *resultobj = 0;
5388 wxChoice *arg1 = (wxChoice *) 0 ;
5389 int result;
5390 void *argp1 = 0 ;
5391 int res1 = 0 ;
5392 PyObject *swig_obj[1] ;
5393
5394 if (!args) SWIG_fail;
5395 swig_obj[0] = args;
5396 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5397 if (!SWIG_IsOK(res1)) {
5398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_GetCurrentSelection" "', expected argument " "1"" of type '" "wxChoice const *""'");
5399 }
5400 arg1 = reinterpret_cast< wxChoice * >(argp1);
5401 {
5402 PyThreadState* __tstate = wxPyBeginAllowThreads();
5403 result = (int)((wxChoice const *)arg1)->GetCurrentSelection();
5404 wxPyEndAllowThreads(__tstate);
5405 if (PyErr_Occurred()) SWIG_fail;
5406 }
5407 resultobj = SWIG_From_int(static_cast< int >(result));
5408 return resultobj;
5409fail:
5410 return NULL;
5411}
5412
5413
5414SWIGINTERN PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5415 PyObject *resultobj = 0;
5416 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5417 SwigValueWrapper<wxVisualAttributes > result;
5418 int val1 ;
5419 int ecode1 = 0 ;
5420 PyObject * obj0 = 0 ;
5421 char * kwnames[] = {
5422 (char *) "variant", NULL
5423 };
5424
5425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5426 if (obj0) {
5427 ecode1 = SWIG_AsVal_int(obj0, &val1);
5428 if (!SWIG_IsOK(ecode1)) {
5429 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Choice_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5430 }
5431 arg1 = static_cast< wxWindowVariant >(val1);
5432 }
5433 {
5434 if (!wxPyCheckForApp()) SWIG_fail;
5435 PyThreadState* __tstate = wxPyBeginAllowThreads();
5436 result = wxChoice::GetClassDefaultAttributes(arg1);
5437 wxPyEndAllowThreads(__tstate);
5438 if (PyErr_Occurred()) SWIG_fail;
5439 }
5440 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5441 return resultobj;
5442fail:
5443 return NULL;
f20a2e1f
RD
5444}
5445
5446
1bd55598
RD
5447SWIGINTERN PyObject *Choice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5448 PyObject *obj;
5449 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5450 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoice, SWIG_NewClientData(obj));
5451 return SWIG_Py_Void();
d55e5bfc 5452}
1bd55598
RD
5453
5454SWIGINTERN PyObject *Choice_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5455 return SWIG_Python_InitShadowInstance(args);
5456}
5457
5458SWIGINTERN int ComboBoxNameStr_set(PyObject *) {
5459 SWIG_Error(SWIG_AttributeError,"Variable ComboBoxNameStr is read-only.");
5460 return 1;
d55e5bfc
RD
5461}
5462
5463
1bd55598
RD
5464SWIGINTERN PyObject *ComboBoxNameStr_get(void) {
5465 PyObject *pyobj = 0;
5466
5467 {
d55e5bfc 5468#if wxUSE_UNICODE
1bd55598 5469 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
d55e5bfc 5470#else
1bd55598 5471 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
d55e5bfc 5472#endif
1bd55598
RD
5473 }
5474 return pyobj;
5475}
5476
5477
5478SWIGINTERN PyObject *_wrap_new_ComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5479 PyObject *resultobj = 0;
5480 wxWindow *arg1 = (wxWindow *) 0 ;
5481 int arg2 = (int) -1 ;
5482 wxString const &arg3_defvalue = wxPyEmptyString ;
5483 wxString *arg3 = (wxString *) &arg3_defvalue ;
5484 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5485 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5486 wxSize const &arg5_defvalue = wxDefaultSize ;
5487 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5488 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5489 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5490 long arg7 = (long) 0 ;
5491 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5492 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5493 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
5494 wxString *arg9 = (wxString *) &arg9_defvalue ;
5495 wxComboBox *result = 0 ;
5496 void *argp1 = 0 ;
5497 int res1 = 0 ;
5498 int val2 ;
5499 int ecode2 = 0 ;
5500 bool temp3 = false ;
5501 wxPoint temp4 ;
5502 wxSize temp5 ;
5503 bool temp6 = false ;
5504 long val7 ;
5505 int ecode7 = 0 ;
5506 void *argp8 = 0 ;
5507 int res8 = 0 ;
5508 bool temp9 = false ;
5509 PyObject * obj0 = 0 ;
5510 PyObject * obj1 = 0 ;
5511 PyObject * obj2 = 0 ;
5512 PyObject * obj3 = 0 ;
5513 PyObject * obj4 = 0 ;
5514 PyObject * obj5 = 0 ;
5515 PyObject * obj6 = 0 ;
5516 PyObject * obj7 = 0 ;
5517 PyObject * obj8 = 0 ;
5518 char * kwnames[] = {
5519 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5520 };
5521
5522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5523 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5524 if (!SWIG_IsOK(res1)) {
5525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ComboBox" "', expected argument " "1"" of type '" "wxWindow *""'");
5526 }
5527 arg1 = reinterpret_cast< wxWindow * >(argp1);
5528 if (obj1) {
5529 ecode2 = SWIG_AsVal_int(obj1, &val2);
5530 if (!SWIG_IsOK(ecode2)) {
5531 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ComboBox" "', expected argument " "2"" of type '" "int""'");
5532 }
5533 arg2 = static_cast< int >(val2);
5534 }
5535 if (obj2) {
d55e5bfc 5536 {
1bd55598
RD
5537 arg3 = wxString_in_helper(obj2);
5538 if (arg3 == NULL) SWIG_fail;
5539 temp3 = true;
d55e5bfc 5540 }
1bd55598
RD
5541 }
5542 if (obj3) {
d55e5bfc 5543 {
1bd55598
RD
5544 arg4 = &temp4;
5545 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 5546 }
1bd55598
RD
5547 }
5548 if (obj4) {
d55e5bfc 5549 {
1bd55598
RD
5550 arg5 = &temp5;
5551 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 5552 }
1bd55598
RD
5553 }
5554 if (obj5) {
d55e5bfc 5555 {
1bd55598
RD
5556 if (! PySequence_Check(obj5)) {
5557 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5558 SWIG_fail;
5559 }
5560 arg6 = new wxArrayString;
5561 temp6 = true;
5562 int i, len=PySequence_Length(obj5);
5563 for (i=0; i<len; i++) {
5564 PyObject* item = PySequence_GetItem(obj5, i);
5565 wxString* s = wxString_in_helper(item);
5566 if (PyErr_Occurred()) SWIG_fail;
5567 arg6->Add(*s);
5568 delete s;
5569 Py_DECREF(item);
5570 }
d55e5bfc 5571 }
1bd55598
RD
5572 }
5573 if (obj6) {
5574 ecode7 = SWIG_AsVal_long(obj6, &val7);
5575 if (!SWIG_IsOK(ecode7)) {
5576 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ComboBox" "', expected argument " "7"" of type '" "long""'");
5577 }
5578 arg7 = static_cast< long >(val7);
5579 }
5580 if (obj7) {
5581 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5582 if (!SWIG_IsOK(res8)) {
5583 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5584 }
5585 if (!argp8) {
5586 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5587 }
5588 arg8 = reinterpret_cast< wxValidator * >(argp8);
5589 }
5590 if (obj8) {
d55e5bfc 5591 {
1bd55598
RD
5592 arg9 = wxString_in_helper(obj8);
5593 if (arg9 == NULL) SWIG_fail;
5594 temp9 = true;
d55e5bfc 5595 }
1bd55598
RD
5596 }
5597 {
5598 if (!wxPyCheckForApp()) SWIG_fail;
5599 PyThreadState* __tstate = wxPyBeginAllowThreads();
5600 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);
5601 wxPyEndAllowThreads(__tstate);
5602 if (PyErr_Occurred()) SWIG_fail;
5603 }
5604 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_NEW | 0 );
5605 {
5606 if (temp3)
5607 delete arg3;
5608 }
5609 {
5610 if (temp6) delete arg6;
5611 }
5612 {
5613 if (temp9)
5614 delete arg9;
5615 }
5616 return resultobj;
5617fail:
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 NULL;
d55e5bfc
RD
5630}
5631
5632
1bd55598
RD
5633SWIGINTERN PyObject *_wrap_new_PreComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5634 PyObject *resultobj = 0;
5635 wxComboBox *result = 0 ;
5636
5637 if (!SWIG_Python_UnpackTuple(args,"new_PreComboBox",0,0,0)) SWIG_fail;
5638 {
5639 if (!wxPyCheckForApp()) SWIG_fail;
5640 PyThreadState* __tstate = wxPyBeginAllowThreads();
5641 result = (wxComboBox *)new wxComboBox();
5642 wxPyEndAllowThreads(__tstate);
5643 if (PyErr_Occurred()) SWIG_fail;
5644 }
5645 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_OWN | 0 );
5646 return resultobj;
5647fail:
5648 return NULL;
5649}
5650
5651
5652SWIGINTERN PyObject *_wrap_ComboBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5653 PyObject *resultobj = 0;
5654 wxComboBox *arg1 = (wxComboBox *) 0 ;
5655 wxWindow *arg2 = (wxWindow *) 0 ;
5656 int arg3 = (int) -1 ;
5657 wxString const &arg4_defvalue = wxPyEmptyString ;
5658 wxString *arg4 = (wxString *) &arg4_defvalue ;
5659 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5660 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5661 wxSize const &arg6_defvalue = wxDefaultSize ;
5662 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5663 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
5664 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
5665 long arg8 = (long) 0 ;
5666 wxValidator const &arg9_defvalue = wxDefaultValidator ;
5667 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
5668 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
5669 wxString *arg10 = (wxString *) &arg10_defvalue ;
5670 bool result;
5671 void *argp1 = 0 ;
5672 int res1 = 0 ;
5673 void *argp2 = 0 ;
5674 int res2 = 0 ;
5675 int val3 ;
5676 int ecode3 = 0 ;
5677 bool temp4 = false ;
5678 wxPoint temp5 ;
5679 wxSize temp6 ;
5680 bool temp7 = false ;
5681 long val8 ;
5682 int ecode8 = 0 ;
5683 void *argp9 = 0 ;
5684 int res9 = 0 ;
5685 bool temp10 = false ;
5686 PyObject * obj0 = 0 ;
5687 PyObject * obj1 = 0 ;
5688 PyObject * obj2 = 0 ;
5689 PyObject * obj3 = 0 ;
5690 PyObject * obj4 = 0 ;
5691 PyObject * obj5 = 0 ;
5692 PyObject * obj6 = 0 ;
5693 PyObject * obj7 = 0 ;
5694 PyObject * obj8 = 0 ;
5695 PyObject * obj9 = 0 ;
5696 char * kwnames[] = {
5697 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5698 };
5699
5700 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
5701 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5702 if (!SWIG_IsOK(res1)) {
5703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Create" "', expected argument " "1"" of type '" "wxComboBox *""'");
5704 }
5705 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5706 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5707 if (!SWIG_IsOK(res2)) {
5708 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ComboBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5709 }
5710 arg2 = reinterpret_cast< wxWindow * >(argp2);
5711 if (obj2) {
5712 ecode3 = SWIG_AsVal_int(obj2, &val3);
5713 if (!SWIG_IsOK(ecode3)) {
5714 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Create" "', expected argument " "3"" of type '" "int""'");
5715 }
5716 arg3 = static_cast< int >(val3);
5717 }
5718 if (obj3) {
d55e5bfc 5719 {
1bd55598
RD
5720 arg4 = wxString_in_helper(obj3);
5721 if (arg4 == NULL) SWIG_fail;
5722 temp4 = true;
d55e5bfc 5723 }
1bd55598
RD
5724 }
5725 if (obj4) {
d55e5bfc 5726 {
1bd55598
RD
5727 arg5 = &temp5;
5728 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 5729 }
1bd55598
RD
5730 }
5731 if (obj5) {
d55e5bfc 5732 {
1bd55598
RD
5733 arg6 = &temp6;
5734 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 5735 }
1bd55598
RD
5736 }
5737 if (obj6) {
d55e5bfc 5738 {
1bd55598
RD
5739 if (! PySequence_Check(obj6)) {
5740 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5741 SWIG_fail;
5742 }
5743 arg7 = new wxArrayString;
5744 temp7 = true;
5745 int i, len=PySequence_Length(obj6);
5746 for (i=0; i<len; i++) {
5747 PyObject* item = PySequence_GetItem(obj6, i);
5748 wxString* s = wxString_in_helper(item);
5749 if (PyErr_Occurred()) SWIG_fail;
5750 arg7->Add(*s);
5751 delete s;
5752 Py_DECREF(item);
5753 }
d55e5bfc 5754 }
1bd55598
RD
5755 }
5756 if (obj7) {
5757 ecode8 = SWIG_AsVal_long(obj7, &val8);
5758 if (!SWIG_IsOK(ecode8)) {
5759 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ComboBox_Create" "', expected argument " "8"" of type '" "long""'");
5760 }
5761 arg8 = static_cast< long >(val8);
5762 }
5763 if (obj8) {
5764 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
5765 if (!SWIG_IsOK(res9)) {
5766 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
d55e5bfc 5767 }
1bd55598
RD
5768 if (!argp9) {
5769 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
d55e5bfc 5770 }
1bd55598
RD
5771 arg9 = reinterpret_cast< wxValidator * >(argp9);
5772 }
5773 if (obj9) {
d55e5bfc 5774 {
1bd55598
RD
5775 arg10 = wxString_in_helper(obj9);
5776 if (arg10 == NULL) SWIG_fail;
5777 temp10 = true;
d55e5bfc 5778 }
1bd55598
RD
5779 }
5780 {
5781 PyThreadState* __tstate = wxPyBeginAllowThreads();
5782 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);
5783 wxPyEndAllowThreads(__tstate);
5784 if (PyErr_Occurred()) SWIG_fail;
5785 }
5786 {
5787 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5788 }
5789 {
5790 if (temp4)
5791 delete arg4;
5792 }
5793 {
5794 if (temp7) delete arg7;
5795 }
5796 {
5797 if (temp10)
5798 delete arg10;
5799 }
5800 return resultobj;
5801fail:
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 NULL;
d55e5bfc
RD
5814}
5815
5816
1bd55598
RD
5817SWIGINTERN PyObject *_wrap_ComboBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5818 PyObject *resultobj = 0;
5819 wxComboBox *arg1 = (wxComboBox *) 0 ;
5820 wxString result;
5821 void *argp1 = 0 ;
5822 int res1 = 0 ;
5823 PyObject *swig_obj[1] ;
5824
5825 if (!args) SWIG_fail;
5826 swig_obj[0] = args;
5827 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5828 if (!SWIG_IsOK(res1)) {
5829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetValue" "', expected argument " "1"" of type '" "wxComboBox const *""'");
5830 }
5831 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5832 {
5833 PyThreadState* __tstate = wxPyBeginAllowThreads();
5834 result = ((wxComboBox const *)arg1)->GetValue();
5835 wxPyEndAllowThreads(__tstate);
5836 if (PyErr_Occurred()) SWIG_fail;
5837 }
5838 {
d55e5bfc 5839#if wxUSE_UNICODE
1bd55598 5840 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 5841#else
1bd55598 5842 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 5843#endif
1bd55598
RD
5844 }
5845 return resultobj;
5846fail:
5847 return NULL;
5848}
5849
5850
5851SWIGINTERN PyObject *_wrap_ComboBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5852 PyObject *resultobj = 0;
5853 wxComboBox *arg1 = (wxComboBox *) 0 ;
5854 wxString *arg2 = 0 ;
5855 void *argp1 = 0 ;
5856 int res1 = 0 ;
5857 bool temp2 = false ;
5858 PyObject * obj0 = 0 ;
5859 PyObject * obj1 = 0 ;
5860 char * kwnames[] = {
5861 (char *) "self",(char *) "value", NULL
5862 };
5863
5864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
5865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5866 if (!SWIG_IsOK(res1)) {
5867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetValue" "', expected argument " "1"" of type '" "wxComboBox *""'");
5868 }
5869 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5870 {
5871 arg2 = wxString_in_helper(obj1);
5872 if (arg2 == NULL) SWIG_fail;
5873 temp2 = true;
5874 }
5875 {
5876 PyThreadState* __tstate = wxPyBeginAllowThreads();
5877 (arg1)->SetValue((wxString const &)*arg2);
5878 wxPyEndAllowThreads(__tstate);
5879 if (PyErr_Occurred()) SWIG_fail;
5880 }
5881 resultobj = SWIG_Py_Void();
5882 {
5883 if (temp2)
5884 delete arg2;
5885 }
5886 return resultobj;
5887fail:
5888 {
5889 if (temp2)
5890 delete arg2;
5891 }
5892 return NULL;
d55e5bfc
RD
5893}
5894
5895
1bd55598
RD
5896SWIGINTERN PyObject *_wrap_ComboBox_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5897 PyObject *resultobj = 0;
5898 wxComboBox *arg1 = (wxComboBox *) 0 ;
5899 void *argp1 = 0 ;
5900 int res1 = 0 ;
5901 PyObject *swig_obj[1] ;
5902
5903 if (!args) SWIG_fail;
5904 swig_obj[0] = args;
5905 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5906 if (!SWIG_IsOK(res1)) {
5907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Copy" "', expected argument " "1"" of type '" "wxComboBox *""'");
5908 }
5909 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5910 {
5911 PyThreadState* __tstate = wxPyBeginAllowThreads();
5912 (arg1)->Copy();
5913 wxPyEndAllowThreads(__tstate);
5914 if (PyErr_Occurred()) SWIG_fail;
5915 }
5916 resultobj = SWIG_Py_Void();
5917 return resultobj;
5918fail:
5919 return NULL;
d55e5bfc
RD
5920}
5921
5922
1bd55598
RD
5923SWIGINTERN PyObject *_wrap_ComboBox_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5924 PyObject *resultobj = 0;
5925 wxComboBox *arg1 = (wxComboBox *) 0 ;
5926 void *argp1 = 0 ;
5927 int res1 = 0 ;
5928 PyObject *swig_obj[1] ;
5929
5930 if (!args) SWIG_fail;
5931 swig_obj[0] = args;
5932 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5933 if (!SWIG_IsOK(res1)) {
5934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Cut" "', expected argument " "1"" of type '" "wxComboBox *""'");
5935 }
5936 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5937 {
5938 PyThreadState* __tstate = wxPyBeginAllowThreads();
5939 (arg1)->Cut();
5940 wxPyEndAllowThreads(__tstate);
5941 if (PyErr_Occurred()) SWIG_fail;
5942 }
5943 resultobj = SWIG_Py_Void();
5944 return resultobj;
5945fail:
5946 return NULL;
d55e5bfc
RD
5947}
5948
5949
1bd55598
RD
5950SWIGINTERN PyObject *_wrap_ComboBox_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5951 PyObject *resultobj = 0;
5952 wxComboBox *arg1 = (wxComboBox *) 0 ;
5953 void *argp1 = 0 ;
5954 int res1 = 0 ;
5955 PyObject *swig_obj[1] ;
5956
5957 if (!args) SWIG_fail;
5958 swig_obj[0] = args;
5959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5960 if (!SWIG_IsOK(res1)) {
5961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Paste" "', expected argument " "1"" of type '" "wxComboBox *""'");
5962 }
5963 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5964 {
5965 PyThreadState* __tstate = wxPyBeginAllowThreads();
5966 (arg1)->Paste();
5967 wxPyEndAllowThreads(__tstate);
5968 if (PyErr_Occurred()) SWIG_fail;
5969 }
5970 resultobj = SWIG_Py_Void();
5971 return resultobj;
5972fail:
5973 return NULL;
5974}
5975
5976
5977SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5978 PyObject *resultobj = 0;
5979 wxComboBox *arg1 = (wxComboBox *) 0 ;
5980 long arg2 ;
5981 void *argp1 = 0 ;
5982 int res1 = 0 ;
5983 long val2 ;
5984 int ecode2 = 0 ;
5985 PyObject * obj0 = 0 ;
5986 PyObject * obj1 = 0 ;
5987 char * kwnames[] = {
5988 (char *) "self",(char *) "pos", NULL
5989 };
5990
5991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
5992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5993 if (!SWIG_IsOK(res1)) {
5994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox *""'");
5995 }
5996 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5997 ecode2 = SWIG_AsVal_long(obj1, &val2);
5998 if (!SWIG_IsOK(ecode2)) {
5999 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
6000 }
6001 arg2 = static_cast< long >(val2);
6002 {
6003 PyThreadState* __tstate = wxPyBeginAllowThreads();
6004 (arg1)->SetInsertionPoint(arg2);
6005 wxPyEndAllowThreads(__tstate);
6006 if (PyErr_Occurred()) SWIG_fail;
6007 }
6008 resultobj = SWIG_Py_Void();
6009 return resultobj;
6010fail:
6011 return NULL;
d55e5bfc
RD
6012}
6013
6014
1bd55598
RD
6015SWIGINTERN PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6016 PyObject *resultobj = 0;
6017 wxComboBox *arg1 = (wxComboBox *) 0 ;
6018 long result;
6019 void *argp1 = 0 ;
6020 int res1 = 0 ;
6021 PyObject *swig_obj[1] ;
6022
6023 if (!args) SWIG_fail;
6024 swig_obj[0] = args;
6025 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6026 if (!SWIG_IsOK(res1)) {
6027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6028 }
6029 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6030 {
6031 PyThreadState* __tstate = wxPyBeginAllowThreads();
6032 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
6033 wxPyEndAllowThreads(__tstate);
6034 if (PyErr_Occurred()) SWIG_fail;
6035 }
6036 resultobj = SWIG_From_long(static_cast< long >(result));
6037 return resultobj;
6038fail:
6039 return NULL;
d55e5bfc
RD
6040}
6041
6042
1bd55598
RD
6043SWIGINTERN PyObject *_wrap_ComboBox_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6044 PyObject *resultobj = 0;
6045 wxComboBox *arg1 = (wxComboBox *) 0 ;
6046 long result;
6047 void *argp1 = 0 ;
6048 int res1 = 0 ;
6049 PyObject *swig_obj[1] ;
6050
6051 if (!args) SWIG_fail;
6052 swig_obj[0] = args;
6053 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6054 if (!SWIG_IsOK(res1)) {
6055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetLastPosition" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6056 }
6057 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6058 {
6059 PyThreadState* __tstate = wxPyBeginAllowThreads();
6060 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
6061 wxPyEndAllowThreads(__tstate);
6062 if (PyErr_Occurred()) SWIG_fail;
6063 }
6064 resultobj = SWIG_From_long(static_cast< long >(result));
6065 return resultobj;
6066fail:
6067 return NULL;
6068}
6069
6070
6071SWIGINTERN PyObject *_wrap_ComboBox_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6072 PyObject *resultobj = 0;
6073 wxComboBox *arg1 = (wxComboBox *) 0 ;
6074 long arg2 ;
6075 long arg3 ;
6076 wxString *arg4 = 0 ;
6077 void *argp1 = 0 ;
6078 int res1 = 0 ;
6079 long val2 ;
6080 int ecode2 = 0 ;
6081 long val3 ;
6082 int ecode3 = 0 ;
6083 bool temp4 = false ;
6084 PyObject * obj0 = 0 ;
6085 PyObject * obj1 = 0 ;
6086 PyObject * obj2 = 0 ;
6087 PyObject * obj3 = 0 ;
6088 char * kwnames[] = {
2131d850 6089 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
1bd55598
RD
6090 };
6091
6092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6094 if (!SWIG_IsOK(res1)) {
6095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Replace" "', expected argument " "1"" of type '" "wxComboBox *""'");
6096 }
6097 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6098 ecode2 = SWIG_AsVal_long(obj1, &val2);
6099 if (!SWIG_IsOK(ecode2)) {
6100 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Replace" "', expected argument " "2"" of type '" "long""'");
6101 }
6102 arg2 = static_cast< long >(val2);
6103 ecode3 = SWIG_AsVal_long(obj2, &val3);
6104 if (!SWIG_IsOK(ecode3)) {
6105 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Replace" "', expected argument " "3"" of type '" "long""'");
6106 }
6107 arg3 = static_cast< long >(val3);
6108 {
6109 arg4 = wxString_in_helper(obj3);
6110 if (arg4 == NULL) SWIG_fail;
6111 temp4 = true;
6112 }
6113 {
6114 PyThreadState* __tstate = wxPyBeginAllowThreads();
6115 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
6116 wxPyEndAllowThreads(__tstate);
6117 if (PyErr_Occurred()) SWIG_fail;
6118 }
6119 resultobj = SWIG_Py_Void();
6120 {
6121 if (temp4)
6122 delete arg4;
6123 }
6124 return resultobj;
6125fail:
6126 {
6127 if (temp4)
6128 delete arg4;
6129 }
6130 return NULL;
6131}
6132
6133
6134SWIGINTERN PyObject *_wrap_ComboBox_SetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6135 PyObject *resultobj = 0;
6136 wxComboBox *arg1 = (wxComboBox *) 0 ;
6137 long arg2 ;
6138 long arg3 ;
6139 void *argp1 = 0 ;
6140 int res1 = 0 ;
6141 long val2 ;
6142 int ecode2 = 0 ;
6143 long val3 ;
6144 int ecode3 = 0 ;
6145 PyObject * obj0 = 0 ;
6146 PyObject * obj1 = 0 ;
6147 PyObject * obj2 = 0 ;
6148 char * kwnames[] = {
2131d850 6149 (char *) "self",(char *) "from",(char *) "to", NULL
1bd55598
RD
6150 };
6151
6152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6154 if (!SWIG_IsOK(res1)) {
6155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6156 }
6157 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6158 ecode2 = SWIG_AsVal_long(obj1, &val2);
6159 if (!SWIG_IsOK(ecode2)) {
6160 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetMark" "', expected argument " "2"" of type '" "long""'");
6161 }
6162 arg2 = static_cast< long >(val2);
6163 ecode3 = SWIG_AsVal_long(obj2, &val3);
6164 if (!SWIG_IsOK(ecode3)) {
6165 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_SetMark" "', expected argument " "3"" of type '" "long""'");
6166 }
6167 arg3 = static_cast< long >(val3);
6168 {
6169 PyThreadState* __tstate = wxPyBeginAllowThreads();
6170 (arg1)->SetSelection(arg2,arg3);
6171 wxPyEndAllowThreads(__tstate);
6172 if (PyErr_Occurred()) SWIG_fail;
6173 }
6174 resultobj = SWIG_Py_Void();
6175 return resultobj;
6176fail:
6177 return NULL;
d55e5bfc
RD
6178}
6179
6180
1bd55598
RD
6181SWIGINTERN PyObject *_wrap_ComboBox_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6182 PyObject *resultobj = 0;
6183 wxComboBox *arg1 = (wxComboBox *) 0 ;
6184 int result;
6185 void *argp1 = 0 ;
6186 int res1 = 0 ;
6187 PyObject *swig_obj[1] ;
6188
6189 if (!args) SWIG_fail;
6190 swig_obj[0] = args;
6191 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6192 if (!SWIG_IsOK(res1)) {
6193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetCurrentSelection" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6194 }
6195 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6196 {
6197 PyThreadState* __tstate = wxPyBeginAllowThreads();
6198 result = (int)((wxComboBox const *)arg1)->GetCurrentSelection();
6199 wxPyEndAllowThreads(__tstate);
6200 if (PyErr_Occurred()) SWIG_fail;
6201 }
6202 resultobj = SWIG_From_int(static_cast< int >(result));
6203 return resultobj;
6204fail:
6205 return NULL;
6206}
6207
6208
6209SWIGINTERN PyObject *_wrap_ComboBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6210 PyObject *resultobj = 0;
6211 wxComboBox *arg1 = (wxComboBox *) 0 ;
6212 wxString *arg2 = 0 ;
6213 bool result;
6214 void *argp1 = 0 ;
6215 int res1 = 0 ;
6216 bool temp2 = false ;
6217 PyObject * obj0 = 0 ;
6218 PyObject * obj1 = 0 ;
6219 char * kwnames[] = {
6220 (char *) "self",(char *) "string", NULL
6221 };
6222
6223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
6224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6225 if (!SWIG_IsOK(res1)) {
6226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetStringSelection" "', expected argument " "1"" of type '" "wxComboBox *""'");
6227 }
6228 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6229 {
6230 arg2 = wxString_in_helper(obj1);
6231 if (arg2 == NULL) SWIG_fail;
6232 temp2 = true;
6233 }
6234 {
6235 PyThreadState* __tstate = wxPyBeginAllowThreads();
6236 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
6237 wxPyEndAllowThreads(__tstate);
6238 if (PyErr_Occurred()) SWIG_fail;
6239 }
6240 {
6241 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6242 }
6243 {
6244 if (temp2)
6245 delete arg2;
6246 }
6247 return resultobj;
6248fail:
6249 {
6250 if (temp2)
6251 delete arg2;
6252 }
6253 return NULL;
6254}
6255
6256
50f151d7
RD
6257SWIGINTERN PyObject *_wrap_ComboBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6258 PyObject *resultobj = 0;
6259 wxComboBox *arg1 = (wxComboBox *) 0 ;
6260 int arg2 ;
6261 wxString *arg3 = 0 ;
6262 void *argp1 = 0 ;
6263 int res1 = 0 ;
6264 int val2 ;
6265 int ecode2 = 0 ;
6266 bool temp3 = false ;
6267 PyObject * obj0 = 0 ;
6268 PyObject * obj1 = 0 ;
6269 PyObject * obj2 = 0 ;
6270 char * kwnames[] = {
6271 (char *) "self",(char *) "n",(char *) "string", NULL
6272 };
6273
6274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6276 if (!SWIG_IsOK(res1)) {
6277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetString" "', expected argument " "1"" of type '" "wxComboBox *""'");
6278 }
6279 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6280 ecode2 = SWIG_AsVal_int(obj1, &val2);
6281 if (!SWIG_IsOK(ecode2)) {
6282 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetString" "', expected argument " "2"" of type '" "int""'");
6283 }
6284 arg2 = static_cast< int >(val2);
6285 {
6286 arg3 = wxString_in_helper(obj2);
6287 if (arg3 == NULL) SWIG_fail;
6288 temp3 = true;
6289 }
6290 {
6291 PyThreadState* __tstate = wxPyBeginAllowThreads();
6292 (arg1)->SetString(arg2,(wxString const &)*arg3);
6293 wxPyEndAllowThreads(__tstate);
6294 if (PyErr_Occurred()) SWIG_fail;
6295 }
6296 resultobj = SWIG_Py_Void();
6297 {
6298 if (temp3)
6299 delete arg3;
6300 }
6301 return resultobj;
6302fail:
6303 {
6304 if (temp3)
6305 delete arg3;
6306 }
6307 return NULL;
6308}
6309
6310
1bd55598
RD
6311SWIGINTERN PyObject *_wrap_ComboBox_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6312 PyObject *resultobj = 0;
6313 wxComboBox *arg1 = (wxComboBox *) 0 ;
6314 bool arg2 ;
6315 void *argp1 = 0 ;
6316 int res1 = 0 ;
6317 bool val2 ;
6318 int ecode2 = 0 ;
6319 PyObject * obj0 = 0 ;
6320 PyObject * obj1 = 0 ;
6321 char * kwnames[] = {
6322 (char *) "self",(char *) "editable", NULL
6323 };
6324
6325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
6326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6327 if (!SWIG_IsOK(res1)) {
6328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetEditable" "', expected argument " "1"" of type '" "wxComboBox *""'");
6329 }
6330 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6331 ecode2 = SWIG_AsVal_bool(obj1, &val2);
6332 if (!SWIG_IsOK(ecode2)) {
6333 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetEditable" "', expected argument " "2"" of type '" "bool""'");
6334 }
6335 arg2 = static_cast< bool >(val2);
6336 {
6337 PyThreadState* __tstate = wxPyBeginAllowThreads();
6338 (arg1)->SetEditable(arg2);
6339 wxPyEndAllowThreads(__tstate);
6340 if (PyErr_Occurred()) SWIG_fail;
6341 }
6342 resultobj = SWIG_Py_Void();
6343 return resultobj;
6344fail:
6345 return NULL;
d55e5bfc
RD
6346}
6347
6348
1bd55598
RD
6349SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6350 PyObject *resultobj = 0;
6351 wxComboBox *arg1 = (wxComboBox *) 0 ;
6352 void *argp1 = 0 ;
6353 int res1 = 0 ;
6354 PyObject *swig_obj[1] ;
6355
6356 if (!args) SWIG_fail;
6357 swig_obj[0] = args;
6358 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6359 if (!SWIG_IsOK(res1)) {
6360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxComboBox *""'");
6361 }
6362 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6363 {
6364 PyThreadState* __tstate = wxPyBeginAllowThreads();
6365 (arg1)->SetInsertionPointEnd();
6366 wxPyEndAllowThreads(__tstate);
6367 if (PyErr_Occurred()) SWIG_fail;
6368 }
6369 resultobj = SWIG_Py_Void();
6370 return resultobj;
6371fail:
6372 return NULL;
6373}
6374
6375
6376SWIGINTERN PyObject *_wrap_ComboBox_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6377 PyObject *resultobj = 0;
6378 wxComboBox *arg1 = (wxComboBox *) 0 ;
6379 long arg2 ;
6380 long arg3 ;
6381 void *argp1 = 0 ;
6382 int res1 = 0 ;
6383 long val2 ;
6384 int ecode2 = 0 ;
6385 long val3 ;
6386 int ecode3 = 0 ;
6387 PyObject * obj0 = 0 ;
6388 PyObject * obj1 = 0 ;
6389 PyObject * obj2 = 0 ;
6390 char * kwnames[] = {
2131d850 6391 (char *) "self",(char *) "from",(char *) "to", NULL
1bd55598
RD
6392 };
6393
6394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6396 if (!SWIG_IsOK(res1)) {
6397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Remove" "', expected argument " "1"" of type '" "wxComboBox *""'");
6398 }
6399 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6400 ecode2 = SWIG_AsVal_long(obj1, &val2);
6401 if (!SWIG_IsOK(ecode2)) {
6402 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Remove" "', expected argument " "2"" of type '" "long""'");
6403 }
6404 arg2 = static_cast< long >(val2);
6405 ecode3 = SWIG_AsVal_long(obj2, &val3);
6406 if (!SWIG_IsOK(ecode3)) {
6407 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Remove" "', expected argument " "3"" of type '" "long""'");
6408 }
6409 arg3 = static_cast< long >(val3);
6410 {
6411 PyThreadState* __tstate = wxPyBeginAllowThreads();
6412 (arg1)->Remove(arg2,arg3);
6413 wxPyEndAllowThreads(__tstate);
6414 if (PyErr_Occurred()) SWIG_fail;
6415 }
6416 resultobj = SWIG_Py_Void();
6417 return resultobj;
6418fail:
6419 return NULL;
d55e5bfc
RD
6420}
6421
6422
1bd55598
RD
6423SWIGINTERN PyObject *_wrap_ComboBox_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6424 PyObject *resultobj = 0;
6425 wxComboBox *arg1 = (wxComboBox *) 0 ;
6426 bool result;
6427 void *argp1 = 0 ;
6428 int res1 = 0 ;
6429 PyObject *swig_obj[1] ;
6430
6431 if (!args) SWIG_fail;
6432 swig_obj[0] = args;
6433 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6434 if (!SWIG_IsOK(res1)) {
6435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_IsEditable" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6436 }
6437 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6438 {
6439 PyThreadState* __tstate = wxPyBeginAllowThreads();
6440 result = (bool)((wxComboBox const *)arg1)->IsEditable();
6441 wxPyEndAllowThreads(__tstate);
6442 if (PyErr_Occurred()) SWIG_fail;
6443 }
6444 {
6445 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6446 }
6447 return resultobj;
6448fail:
6449 return NULL;
d55e5bfc
RD
6450}
6451
6452
1bd55598
RD
6453SWIGINTERN PyObject *_wrap_ComboBox_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6454 PyObject *resultobj = 0;
6455 wxComboBox *arg1 = (wxComboBox *) 0 ;
6456 void *argp1 = 0 ;
6457 int res1 = 0 ;
6458 PyObject *swig_obj[1] ;
6459
6460 if (!args) SWIG_fail;
6461 swig_obj[0] = args;
6462 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6463 if (!SWIG_IsOK(res1)) {
6464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Undo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6465 }
6466 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6467 {
6468 PyThreadState* __tstate = wxPyBeginAllowThreads();
6469 (arg1)->Undo();
6470 wxPyEndAllowThreads(__tstate);
6471 if (PyErr_Occurred()) SWIG_fail;
6472 }
6473 resultobj = SWIG_Py_Void();
6474 return resultobj;
6475fail:
6476 return NULL;
d55e5bfc
RD
6477}
6478
6479
1bd55598
RD
6480SWIGINTERN PyObject *_wrap_ComboBox_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6481 PyObject *resultobj = 0;
6482 wxComboBox *arg1 = (wxComboBox *) 0 ;
6483 void *argp1 = 0 ;
6484 int res1 = 0 ;
6485 PyObject *swig_obj[1] ;
6486
6487 if (!args) SWIG_fail;
6488 swig_obj[0] = args;
6489 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6490 if (!SWIG_IsOK(res1)) {
6491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Redo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6492 }
6493 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6494 {
6495 PyThreadState* __tstate = wxPyBeginAllowThreads();
6496 (arg1)->Redo();
6497 wxPyEndAllowThreads(__tstate);
6498 if (PyErr_Occurred()) SWIG_fail;
6499 }
6500 resultobj = SWIG_Py_Void();
6501 return resultobj;
6502fail:
6503 return NULL;
d55e5bfc
RD
6504}
6505
6506
1bd55598
RD
6507SWIGINTERN PyObject *_wrap_ComboBox_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6508 PyObject *resultobj = 0;
6509 wxComboBox *arg1 = (wxComboBox *) 0 ;
6510 void *argp1 = 0 ;
6511 int res1 = 0 ;
6512 PyObject *swig_obj[1] ;
6513
6514 if (!args) SWIG_fail;
6515 swig_obj[0] = args;
6516 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6517 if (!SWIG_IsOK(res1)) {
6518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SelectAll" "', expected argument " "1"" of type '" "wxComboBox *""'");
6519 }
6520 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6521 {
6522 PyThreadState* __tstate = wxPyBeginAllowThreads();
6523 (arg1)->SelectAll();
6524 wxPyEndAllowThreads(__tstate);
6525 if (PyErr_Occurred()) SWIG_fail;
6526 }
6527 resultobj = SWIG_Py_Void();
6528 return resultobj;
6529fail:
6530 return NULL;
943e8dfd
RD
6531}
6532
6533
1bd55598
RD
6534SWIGINTERN PyObject *_wrap_ComboBox_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6535 PyObject *resultobj = 0;
6536 wxComboBox *arg1 = (wxComboBox *) 0 ;
6537 bool result;
6538 void *argp1 = 0 ;
6539 int res1 = 0 ;
6540 PyObject *swig_obj[1] ;
6541
6542 if (!args) SWIG_fail;
6543 swig_obj[0] = args;
6544 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6545 if (!SWIG_IsOK(res1)) {
6546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCopy" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6547 }
6548 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6549 {
6550 PyThreadState* __tstate = wxPyBeginAllowThreads();
6551 result = (bool)((wxComboBox const *)arg1)->CanCopy();
6552 wxPyEndAllowThreads(__tstate);
6553 if (PyErr_Occurred()) SWIG_fail;
6554 }
6555 {
6556 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6557 }
6558 return resultobj;
6559fail:
6560 return NULL;
121b9a67
RD
6561}
6562
6563
1bd55598
RD
6564SWIGINTERN PyObject *_wrap_ComboBox_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6565 PyObject *resultobj = 0;
6566 wxComboBox *arg1 = (wxComboBox *) 0 ;
6567 bool result;
6568 void *argp1 = 0 ;
6569 int res1 = 0 ;
6570 PyObject *swig_obj[1] ;
6571
6572 if (!args) SWIG_fail;
6573 swig_obj[0] = args;
6574 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6575 if (!SWIG_IsOK(res1)) {
6576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCut" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6577 }
6578 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6579 {
6580 PyThreadState* __tstate = wxPyBeginAllowThreads();
6581 result = (bool)((wxComboBox const *)arg1)->CanCut();
6582 wxPyEndAllowThreads(__tstate);
6583 if (PyErr_Occurred()) SWIG_fail;
6584 }
6585 {
6586 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6587 }
6588 return resultobj;
6589fail:
6590 return NULL;
121b9a67
RD
6591}
6592
6593
1bd55598
RD
6594SWIGINTERN PyObject *_wrap_ComboBox_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6595 PyObject *resultobj = 0;
6596 wxComboBox *arg1 = (wxComboBox *) 0 ;
6597 bool result;
6598 void *argp1 = 0 ;
6599 int res1 = 0 ;
6600 PyObject *swig_obj[1] ;
6601
6602 if (!args) SWIG_fail;
6603 swig_obj[0] = args;
6604 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6605 if (!SWIG_IsOK(res1)) {
6606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanPaste" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6607 }
6608 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6609 {
6610 PyThreadState* __tstate = wxPyBeginAllowThreads();
6611 result = (bool)((wxComboBox const *)arg1)->CanPaste();
6612 wxPyEndAllowThreads(__tstate);
6613 if (PyErr_Occurred()) SWIG_fail;
6614 }
6615 {
6616 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6617 }
6618 return resultobj;
6619fail:
6620 return NULL;
d55e5bfc
RD
6621}
6622
6623
1bd55598
RD
6624SWIGINTERN PyObject *_wrap_ComboBox_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6625 PyObject *resultobj = 0;
6626 wxComboBox *arg1 = (wxComboBox *) 0 ;
6627 bool result;
6628 void *argp1 = 0 ;
6629 int res1 = 0 ;
6630 PyObject *swig_obj[1] ;
6631
6632 if (!args) SWIG_fail;
6633 swig_obj[0] = args;
6634 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6635 if (!SWIG_IsOK(res1)) {
6636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanUndo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6637 }
6638 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6639 {
6640 PyThreadState* __tstate = wxPyBeginAllowThreads();
6641 result = (bool)((wxComboBox const *)arg1)->CanUndo();
6642 wxPyEndAllowThreads(__tstate);
6643 if (PyErr_Occurred()) SWIG_fail;
6644 }
6645 {
6646 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6647 }
6648 return resultobj;
6649fail:
6650 return NULL;
d55e5bfc
RD
6651}
6652
6653
1bd55598
RD
6654SWIGINTERN PyObject *_wrap_ComboBox_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6655 PyObject *resultobj = 0;
6656 wxComboBox *arg1 = (wxComboBox *) 0 ;
6657 bool result;
6658 void *argp1 = 0 ;
6659 int res1 = 0 ;
6660 PyObject *swig_obj[1] ;
6661
6662 if (!args) SWIG_fail;
6663 swig_obj[0] = args;
6664 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6665 if (!SWIG_IsOK(res1)) {
6666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanRedo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6667 }
6668 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6669 {
6670 PyThreadState* __tstate = wxPyBeginAllowThreads();
6671 result = (bool)((wxComboBox const *)arg1)->CanRedo();
6672 wxPyEndAllowThreads(__tstate);
6673 if (PyErr_Occurred()) SWIG_fail;
6674 }
6675 {
6676 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6677 }
6678 return resultobj;
6679fail:
6680 return NULL;
d55e5bfc
RD
6681}
6682
6683
1bd55598
RD
6684SWIGINTERN PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6685 PyObject *resultobj = 0;
6686 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
6687 SwigValueWrapper<wxVisualAttributes > result;
6688 int val1 ;
6689 int ecode1 = 0 ;
6690 PyObject * obj0 = 0 ;
6691 char * kwnames[] = {
6692 (char *) "variant", NULL
6693 };
6694
6695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
6696 if (obj0) {
6697 ecode1 = SWIG_AsVal_int(obj0, &val1);
6698 if (!SWIG_IsOK(ecode1)) {
6699 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ComboBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
6700 }
6701 arg1 = static_cast< wxWindowVariant >(val1);
6702 }
6703 {
6704 if (!wxPyCheckForApp()) SWIG_fail;
6705 PyThreadState* __tstate = wxPyBeginAllowThreads();
6706 result = wxComboBox::GetClassDefaultAttributes(arg1);
6707 wxPyEndAllowThreads(__tstate);
6708 if (PyErr_Occurred()) SWIG_fail;
6709 }
6710 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
6711 return resultobj;
6712fail:
6713 return NULL;
5cbf236d
RD
6714}
6715
6716
1bd55598
RD
6717SWIGINTERN PyObject *ComboBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6718 PyObject *obj;
6719 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6720 SWIG_TypeNewClientData(SWIGTYPE_p_wxComboBox, SWIG_NewClientData(obj));
6721 return SWIG_Py_Void();
5cbf236d
RD
6722}
6723
1bd55598
RD
6724SWIGINTERN PyObject *ComboBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6725 return SWIG_Python_InitShadowInstance(args);
5cbf236d
RD
6726}
6727
1bd55598
RD
6728SWIGINTERN int GaugeNameStr_set(PyObject *) {
6729 SWIG_Error(SWIG_AttributeError,"Variable GaugeNameStr is read-only.");
6730 return 1;
5cbf236d
RD
6731}
6732
6733
1bd55598
RD
6734SWIGINTERN PyObject *GaugeNameStr_get(void) {
6735 PyObject *pyobj = 0;
6736
6737 {
6738#if wxUSE_UNICODE
6739 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6740#else
6741 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6742#endif
6743 }
6744 return pyobj;
6745}
6746
6747
6748SWIGINTERN PyObject *_wrap_new_Gauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6749 PyObject *resultobj = 0;
6750 wxWindow *arg1 = (wxWindow *) 0 ;
6751 int arg2 = (int) -1 ;
6752 int arg3 = (int) 100 ;
6753 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6754 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6755 wxSize const &arg5_defvalue = wxDefaultSize ;
6756 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6757 long arg6 = (long) wxGA_HORIZONTAL ;
6758 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6759 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6760 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
6761 wxString *arg8 = (wxString *) &arg8_defvalue ;
6762 wxGauge *result = 0 ;
6763 void *argp1 = 0 ;
6764 int res1 = 0 ;
6765 int val2 ;
6766 int ecode2 = 0 ;
6767 int val3 ;
6768 int ecode3 = 0 ;
6769 wxPoint temp4 ;
6770 wxSize temp5 ;
6771 long val6 ;
6772 int ecode6 = 0 ;
6773 void *argp7 = 0 ;
6774 int res7 = 0 ;
6775 bool temp8 = false ;
6776 PyObject * obj0 = 0 ;
6777 PyObject * obj1 = 0 ;
6778 PyObject * obj2 = 0 ;
6779 PyObject * obj3 = 0 ;
6780 PyObject * obj4 = 0 ;
6781 PyObject * obj5 = 0 ;
6782 PyObject * obj6 = 0 ;
6783 PyObject * obj7 = 0 ;
6784 char * kwnames[] = {
6785 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6786 };
6787
6788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
6789 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
6790 if (!SWIG_IsOK(res1)) {
6791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gauge" "', expected argument " "1"" of type '" "wxWindow *""'");
6792 }
6793 arg1 = reinterpret_cast< wxWindow * >(argp1);
6794 if (obj1) {
6795 ecode2 = SWIG_AsVal_int(obj1, &val2);
6796 if (!SWIG_IsOK(ecode2)) {
6797 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gauge" "', expected argument " "2"" of type '" "int""'");
6798 }
6799 arg2 = static_cast< int >(val2);
6800 }
6801 if (obj2) {
6802 ecode3 = SWIG_AsVal_int(obj2, &val3);
6803 if (!SWIG_IsOK(ecode3)) {
6804 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gauge" "', expected argument " "3"" of type '" "int""'");
6805 }
6806 arg3 = static_cast< int >(val3);
6807 }
6808 if (obj3) {
5cbf236d 6809 {
1bd55598
RD
6810 arg4 = &temp4;
6811 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5cbf236d 6812 }
1bd55598
RD
6813 }
6814 if (obj4) {
5cbf236d 6815 {
1bd55598
RD
6816 arg5 = &temp5;
6817 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5cbf236d 6818 }
1bd55598
RD
6819 }
6820 if (obj5) {
6821 ecode6 = SWIG_AsVal_long(obj5, &val6);
6822 if (!SWIG_IsOK(ecode6)) {
6823 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Gauge" "', expected argument " "6"" of type '" "long""'");
6824 }
6825 arg6 = static_cast< long >(val6);
6826 }
6827 if (obj6) {
6828 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
6829 if (!SWIG_IsOK(res7)) {
6830 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6831 }
6832 if (!argp7) {
6833 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
5cbf236d 6834 }
1bd55598
RD
6835 arg7 = reinterpret_cast< wxValidator * >(argp7);
6836 }
6837 if (obj7) {
5cbf236d 6838 {
1bd55598
RD
6839 arg8 = wxString_in_helper(obj7);
6840 if (arg8 == NULL) SWIG_fail;
6841 temp8 = true;
5cbf236d 6842 }
1bd55598
RD
6843 }
6844 {
6845 if (!wxPyCheckForApp()) SWIG_fail;
6846 PyThreadState* __tstate = wxPyBeginAllowThreads();
6847 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6848 wxPyEndAllowThreads(__tstate);
6849 if (PyErr_Occurred()) SWIG_fail;
6850 }
6851 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_NEW | 0 );
6852 {
6853 if (temp8)
6854 delete arg8;
6855 }
6856 return resultobj;
6857fail:
6858 {
6859 if (temp8)
6860 delete arg8;
6861 }
6862 return NULL;
5cbf236d
RD
6863}
6864
6865
1bd55598
RD
6866SWIGINTERN PyObject *_wrap_new_PreGauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6867 PyObject *resultobj = 0;
6868 wxGauge *result = 0 ;
6869
6870 if (!SWIG_Python_UnpackTuple(args,"new_PreGauge",0,0,0)) SWIG_fail;
6871 {
6872 if (!wxPyCheckForApp()) SWIG_fail;
6873 PyThreadState* __tstate = wxPyBeginAllowThreads();
6874 result = (wxGauge *)new wxGauge();
6875 wxPyEndAllowThreads(__tstate);
6876 if (PyErr_Occurred()) SWIG_fail;
6877 }
6878 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_OWN | 0 );
6879 return resultobj;
6880fail:
6881 return NULL;
6882}
6883
6884
6885SWIGINTERN PyObject *_wrap_Gauge_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6886 PyObject *resultobj = 0;
6887 wxGauge *arg1 = (wxGauge *) 0 ;
6888 wxWindow *arg2 = (wxWindow *) 0 ;
6889 int arg3 = (int) -1 ;
6890 int arg4 = (int) 100 ;
6891 wxPoint const &arg5_defvalue = wxDefaultPosition ;
6892 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
6893 wxSize const &arg6_defvalue = wxDefaultSize ;
6894 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
6895 long arg7 = (long) wxGA_HORIZONTAL ;
6896 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6897 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6898 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
6899 wxString *arg9 = (wxString *) &arg9_defvalue ;
6900 bool result;
6901 void *argp1 = 0 ;
6902 int res1 = 0 ;
6903 void *argp2 = 0 ;
6904 int res2 = 0 ;
6905 int val3 ;
6906 int ecode3 = 0 ;
6907 int val4 ;
6908 int ecode4 = 0 ;
6909 wxPoint temp5 ;
6910 wxSize temp6 ;
6911 long val7 ;
6912 int ecode7 = 0 ;
6913 void *argp8 = 0 ;
6914 int res8 = 0 ;
6915 bool temp9 = false ;
6916 PyObject * obj0 = 0 ;
6917 PyObject * obj1 = 0 ;
6918 PyObject * obj2 = 0 ;
6919 PyObject * obj3 = 0 ;
6920 PyObject * obj4 = 0 ;
6921 PyObject * obj5 = 0 ;
6922 PyObject * obj6 = 0 ;
6923 PyObject * obj7 = 0 ;
6924 PyObject * obj8 = 0 ;
6925 char * kwnames[] = {
6926 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6927 };
6928
6929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
6930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
6931 if (!SWIG_IsOK(res1)) {
6932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Create" "', expected argument " "1"" of type '" "wxGauge *""'");
6933 }
6934 arg1 = reinterpret_cast< wxGauge * >(argp1);
6935 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
6936 if (!SWIG_IsOK(res2)) {
6937 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gauge_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
6938 }
6939 arg2 = reinterpret_cast< wxWindow * >(argp2);
6940 if (obj2) {
6941 ecode3 = SWIG_AsVal_int(obj2, &val3);
6942 if (!SWIG_IsOK(ecode3)) {
6943 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Gauge_Create" "', expected argument " "3"" of type '" "int""'");
6944 }
6945 arg3 = static_cast< int >(val3);
6946 }
6947 if (obj3) {
6948 ecode4 = SWIG_AsVal_int(obj3, &val4);
6949 if (!SWIG_IsOK(ecode4)) {
6950 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Gauge_Create" "', expected argument " "4"" of type '" "int""'");
6951 }
6952 arg4 = static_cast< int >(val4);
6953 }
6954 if (obj4) {
5cbf236d 6955 {
1bd55598
RD
6956 arg5 = &temp5;
6957 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5cbf236d 6958 }
1bd55598
RD
6959 }
6960 if (obj5) {
5cbf236d 6961 {
1bd55598
RD
6962 arg6 = &temp6;
6963 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5cbf236d 6964 }
1bd55598
RD
6965 }
6966 if (obj6) {
6967 ecode7 = SWIG_AsVal_long(obj6, &val7);
6968 if (!SWIG_IsOK(ecode7)) {
6969 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Gauge_Create" "', expected argument " "7"" of type '" "long""'");
6970 }
6971 arg7 = static_cast< long >(val7);
6972 }
6973 if (obj7) {
6974 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
6975 if (!SWIG_IsOK(res8)) {
6976 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5cbf236d 6977 }
1bd55598
RD
6978 if (!argp8) {
6979 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
6980 }
6981 arg8 = reinterpret_cast< wxValidator * >(argp8);
6982 }
6983 if (obj8) {
5cbf236d 6984 {
1bd55598
RD
6985 arg9 = wxString_in_helper(obj8);
6986 if (arg9 == NULL) SWIG_fail;
6987 temp9 = true;
5cbf236d 6988 }
1bd55598
RD
6989 }
6990 {
6991 PyThreadState* __tstate = wxPyBeginAllowThreads();
6992 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
6993 wxPyEndAllowThreads(__tstate);
6994 if (PyErr_Occurred()) SWIG_fail;
6995 }
6996 {
6997 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6998 }
6999 {
7000 if (temp9)
7001 delete arg9;
7002 }
7003 return resultobj;
7004fail:
7005 {
7006 if (temp9)
7007 delete arg9;
7008 }
7009 return NULL;
7010}
7011
7012
7013SWIGINTERN PyObject *_wrap_Gauge_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7014 PyObject *resultobj = 0;
7015 wxGauge *arg1 = (wxGauge *) 0 ;
7016 int arg2 ;
7017 void *argp1 = 0 ;
7018 int res1 = 0 ;
7019 int val2 ;
7020 int ecode2 = 0 ;
7021 PyObject * obj0 = 0 ;
7022 PyObject * obj1 = 0 ;
7023 char * kwnames[] = {
7024 (char *) "self",(char *) "range", NULL
7025 };
7026
7027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) SWIG_fail;
7028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7029 if (!SWIG_IsOK(res1)) {
7030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetRange" "', expected argument " "1"" of type '" "wxGauge *""'");
7031 }
7032 arg1 = reinterpret_cast< wxGauge * >(argp1);
7033 ecode2 = SWIG_AsVal_int(obj1, &val2);
7034 if (!SWIG_IsOK(ecode2)) {
7035 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetRange" "', expected argument " "2"" of type '" "int""'");
7036 }
7037 arg2 = static_cast< int >(val2);
7038 {
7039 PyThreadState* __tstate = wxPyBeginAllowThreads();
7040 (arg1)->SetRange(arg2);
7041 wxPyEndAllowThreads(__tstate);
7042 if (PyErr_Occurred()) SWIG_fail;
7043 }
7044 resultobj = SWIG_Py_Void();
7045 return resultobj;
7046fail:
7047 return NULL;
5cbf236d
RD
7048}
7049
7050
1bd55598
RD
7051SWIGINTERN PyObject *_wrap_Gauge_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7052 PyObject *resultobj = 0;
7053 wxGauge *arg1 = (wxGauge *) 0 ;
7054 int result;
7055 void *argp1 = 0 ;
7056 int res1 = 0 ;
7057 PyObject *swig_obj[1] ;
7058
7059 if (!args) SWIG_fail;
7060 swig_obj[0] = args;
7061 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7062 if (!SWIG_IsOK(res1)) {
7063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetRange" "', expected argument " "1"" of type '" "wxGauge const *""'");
7064 }
7065 arg1 = reinterpret_cast< wxGauge * >(argp1);
7066 {
7067 PyThreadState* __tstate = wxPyBeginAllowThreads();
7068 result = (int)((wxGauge const *)arg1)->GetRange();
7069 wxPyEndAllowThreads(__tstate);
7070 if (PyErr_Occurred()) SWIG_fail;
7071 }
7072 resultobj = SWIG_From_int(static_cast< int >(result));
7073 return resultobj;
7074fail:
7075 return NULL;
7076}
7077
7078
7079SWIGINTERN PyObject *_wrap_Gauge_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7080 PyObject *resultobj = 0;
7081 wxGauge *arg1 = (wxGauge *) 0 ;
7082 int arg2 ;
7083 void *argp1 = 0 ;
7084 int res1 = 0 ;
7085 int val2 ;
7086 int ecode2 = 0 ;
7087 PyObject * obj0 = 0 ;
7088 PyObject * obj1 = 0 ;
7089 char * kwnames[] = {
7090 (char *) "self",(char *) "pos", NULL
7091 };
7092
7093 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
7094 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7095 if (!SWIG_IsOK(res1)) {
7096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetValue" "', expected argument " "1"" of type '" "wxGauge *""'");
7097 }
7098 arg1 = reinterpret_cast< wxGauge * >(argp1);
7099 ecode2 = SWIG_AsVal_int(obj1, &val2);
7100 if (!SWIG_IsOK(ecode2)) {
7101 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetValue" "', expected argument " "2"" of type '" "int""'");
7102 }
7103 arg2 = static_cast< int >(val2);
7104 {
7105 PyThreadState* __tstate = wxPyBeginAllowThreads();
7106 (arg1)->SetValue(arg2);
7107 wxPyEndAllowThreads(__tstate);
7108 if (PyErr_Occurred()) SWIG_fail;
7109 }
7110 resultobj = SWIG_Py_Void();
7111 return resultobj;
7112fail:
7113 return NULL;
5cbf236d
RD
7114}
7115
7116
1bd55598
RD
7117SWIGINTERN PyObject *_wrap_Gauge_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7118 PyObject *resultobj = 0;
7119 wxGauge *arg1 = (wxGauge *) 0 ;
7120 int result;
7121 void *argp1 = 0 ;
7122 int res1 = 0 ;
7123 PyObject *swig_obj[1] ;
7124
7125 if (!args) SWIG_fail;
7126 swig_obj[0] = args;
7127 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7128 if (!SWIG_IsOK(res1)) {
7129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetValue" "', expected argument " "1"" of type '" "wxGauge const *""'");
7130 }
7131 arg1 = reinterpret_cast< wxGauge * >(argp1);
7132 {
7133 PyThreadState* __tstate = wxPyBeginAllowThreads();
7134 result = (int)((wxGauge const *)arg1)->GetValue();
7135 wxPyEndAllowThreads(__tstate);
7136 if (PyErr_Occurred()) SWIG_fail;
7137 }
7138 resultobj = SWIG_From_int(static_cast< int >(result));
7139 return resultobj;
7140fail:
7141 return NULL;
f20a2e1f
RD
7142}
7143
7144
1bd55598
RD
7145SWIGINTERN PyObject *_wrap_Gauge_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7146 PyObject *resultobj = 0;
7147 wxGauge *arg1 = (wxGauge *) 0 ;
7148 bool result;
7149 void *argp1 = 0 ;
7150 int res1 = 0 ;
7151 PyObject *swig_obj[1] ;
7152
7153 if (!args) SWIG_fail;
7154 swig_obj[0] = args;
7155 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7156 if (!SWIG_IsOK(res1)) {
7157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_IsVertical" "', expected argument " "1"" of type '" "wxGauge const *""'");
7158 }
7159 arg1 = reinterpret_cast< wxGauge * >(argp1);
7160 {
7161 PyThreadState* __tstate = wxPyBeginAllowThreads();
7162 result = (bool)((wxGauge const *)arg1)->IsVertical();
7163 wxPyEndAllowThreads(__tstate);
7164 if (PyErr_Occurred()) SWIG_fail;
7165 }
7166 {
7167 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7168 }
7169 return resultobj;
7170fail:
7171 return NULL;
7172}
7173
7174
7175SWIGINTERN PyObject *_wrap_Gauge_SetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7176 PyObject *resultobj = 0;
7177 wxGauge *arg1 = (wxGauge *) 0 ;
7178 int arg2 ;
7179 void *argp1 = 0 ;
7180 int res1 = 0 ;
7181 int val2 ;
7182 int ecode2 = 0 ;
7183 PyObject * obj0 = 0 ;
7184 PyObject * obj1 = 0 ;
7185 char * kwnames[] = {
7186 (char *) "self",(char *) "w", NULL
7187 };
7188
7189 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7190 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7191 if (!SWIG_IsOK(res1)) {
7192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetShadowWidth" "', expected argument " "1"" of type '" "wxGauge *""'");
7193 }
7194 arg1 = reinterpret_cast< wxGauge * >(argp1);
7195 ecode2 = SWIG_AsVal_int(obj1, &val2);
7196 if (!SWIG_IsOK(ecode2)) {
7197 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetShadowWidth" "', expected argument " "2"" of type '" "int""'");
7198 }
7199 arg2 = static_cast< int >(val2);
7200 {
7201 PyThreadState* __tstate = wxPyBeginAllowThreads();
7202 (arg1)->SetShadowWidth(arg2);
7203 wxPyEndAllowThreads(__tstate);
7204 if (PyErr_Occurred()) SWIG_fail;
7205 }
7206 resultobj = SWIG_Py_Void();
7207 return resultobj;
7208fail:
7209 return NULL;
d55e5bfc
RD
7210}
7211
7212
1bd55598
RD
7213SWIGINTERN PyObject *_wrap_Gauge_GetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7214 PyObject *resultobj = 0;
7215 wxGauge *arg1 = (wxGauge *) 0 ;
7216 int result;
7217 void *argp1 = 0 ;
7218 int res1 = 0 ;
7219 PyObject *swig_obj[1] ;
7220
7221 if (!args) SWIG_fail;
7222 swig_obj[0] = args;
7223 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7224 if (!SWIG_IsOK(res1)) {
7225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetShadowWidth" "', expected argument " "1"" of type '" "wxGauge const *""'");
7226 }
7227 arg1 = reinterpret_cast< wxGauge * >(argp1);
7228 {
7229 PyThreadState* __tstate = wxPyBeginAllowThreads();
7230 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
7231 wxPyEndAllowThreads(__tstate);
7232 if (PyErr_Occurred()) SWIG_fail;
7233 }
7234 resultobj = SWIG_From_int(static_cast< int >(result));
7235 return resultobj;
7236fail:
7237 return NULL;
7238}
7239
7240
7241SWIGINTERN PyObject *_wrap_Gauge_SetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7242 PyObject *resultobj = 0;
7243 wxGauge *arg1 = (wxGauge *) 0 ;
7244 int arg2 ;
7245 void *argp1 = 0 ;
7246 int res1 = 0 ;
7247 int val2 ;
7248 int ecode2 = 0 ;
7249 PyObject * obj0 = 0 ;
7250 PyObject * obj1 = 0 ;
7251 char * kwnames[] = {
7252 (char *) "self",(char *) "w", NULL
7253 };
7254
7255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) SWIG_fail;
7256 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7257 if (!SWIG_IsOK(res1)) {
7258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetBezelFace" "', expected argument " "1"" of type '" "wxGauge *""'");
7259 }
7260 arg1 = reinterpret_cast< wxGauge * >(argp1);
7261 ecode2 = SWIG_AsVal_int(obj1, &val2);
7262 if (!SWIG_IsOK(ecode2)) {
7263 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetBezelFace" "', expected argument " "2"" of type '" "int""'");
7264 }
7265 arg2 = static_cast< int >(val2);
7266 {
7267 PyThreadState* __tstate = wxPyBeginAllowThreads();
7268 (arg1)->SetBezelFace(arg2);
7269 wxPyEndAllowThreads(__tstate);
7270 if (PyErr_Occurred()) SWIG_fail;
7271 }
7272 resultobj = SWIG_Py_Void();
7273 return resultobj;
7274fail:
7275 return NULL;
d55e5bfc
RD
7276}
7277
7278
1bd55598
RD
7279SWIGINTERN PyObject *_wrap_Gauge_GetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7280 PyObject *resultobj = 0;
7281 wxGauge *arg1 = (wxGauge *) 0 ;
7282 int result;
7283 void *argp1 = 0 ;
7284 int res1 = 0 ;
7285 PyObject *swig_obj[1] ;
7286
7287 if (!args) SWIG_fail;
7288 swig_obj[0] = args;
7289 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7290 if (!SWIG_IsOK(res1)) {
7291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetBezelFace" "', expected argument " "1"" of type '" "wxGauge const *""'");
7292 }
7293 arg1 = reinterpret_cast< wxGauge * >(argp1);
7294 {
7295 PyThreadState* __tstate = wxPyBeginAllowThreads();
7296 result = (int)((wxGauge const *)arg1)->GetBezelFace();
7297 wxPyEndAllowThreads(__tstate);
7298 if (PyErr_Occurred()) SWIG_fail;
7299 }
7300 resultobj = SWIG_From_int(static_cast< int >(result));
7301 return resultobj;
7302fail:
7303 return NULL;
7304}
7305
7306
7307SWIGINTERN PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7308 PyObject *resultobj = 0;
7309 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7310 SwigValueWrapper<wxVisualAttributes > result;
7311 int val1 ;
7312 int ecode1 = 0 ;
7313 PyObject * obj0 = 0 ;
7314 char * kwnames[] = {
7315 (char *) "variant", NULL
7316 };
7317
7318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7319 if (obj0) {
7320 ecode1 = SWIG_AsVal_int(obj0, &val1);
7321 if (!SWIG_IsOK(ecode1)) {
7322 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Gauge_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7323 }
7324 arg1 = static_cast< wxWindowVariant >(val1);
7325 }
7326 {
7327 if (!wxPyCheckForApp()) SWIG_fail;
7328 PyThreadState* __tstate = wxPyBeginAllowThreads();
7329 result = wxGauge::GetClassDefaultAttributes(arg1);
7330 wxPyEndAllowThreads(__tstate);
7331 if (PyErr_Occurred()) SWIG_fail;
7332 }
7333 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7334 return resultobj;
7335fail:
7336 return NULL;
d55e5bfc
RD
7337}
7338
7339
1bd55598
RD
7340SWIGINTERN PyObject *Gauge_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7341 PyObject *obj;
7342 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7343 SWIG_TypeNewClientData(SWIGTYPE_p_wxGauge, SWIG_NewClientData(obj));
7344 return SWIG_Py_Void();
d55e5bfc
RD
7345}
7346
1bd55598
RD
7347SWIGINTERN PyObject *Gauge_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7348 return SWIG_Python_InitShadowInstance(args);
7349}
d55e5bfc 7350
1bd55598
RD
7351SWIGINTERN int StaticBitmapNameStr_set(PyObject *) {
7352 SWIG_Error(SWIG_AttributeError,"Variable StaticBitmapNameStr is read-only.");
7353 return 1;
d55e5bfc
RD
7354}
7355
7356
1bd55598
RD
7357SWIGINTERN PyObject *StaticBitmapNameStr_get(void) {
7358 PyObject *pyobj = 0;
7359
7360 {
7361#if wxUSE_UNICODE
7362 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7363#else
7364 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7365#endif
7366 }
7367 return pyobj;
d55e5bfc
RD
7368}
7369
7370
1bd55598
RD
7371SWIGINTERN int StaticBoxNameStr_set(PyObject *) {
7372 SWIG_Error(SWIG_AttributeError,"Variable StaticBoxNameStr is read-only.");
7373 return 1;
d55e5bfc
RD
7374}
7375
7376
1bd55598
RD
7377SWIGINTERN PyObject *StaticBoxNameStr_get(void) {
7378 PyObject *pyobj = 0;
7379
7380 {
7381#if wxUSE_UNICODE
7382 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7383#else
7384 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7385#endif
7386 }
7387 return pyobj;
d55e5bfc
RD
7388}
7389
7390
1bd55598
RD
7391SWIGINTERN int StaticTextNameStr_set(PyObject *) {
7392 SWIG_Error(SWIG_AttributeError,"Variable StaticTextNameStr is read-only.");
7393 return 1;
d55e5bfc
RD
7394}
7395
7396
1bd55598
RD
7397SWIGINTERN PyObject *StaticTextNameStr_get(void) {
7398 PyObject *pyobj = 0;
7399
7400 {
7401#if wxUSE_UNICODE
7402 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7403#else
7404 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7405#endif
7406 }
7407 return pyobj;
7408}
7409
7410
7411SWIGINTERN PyObject *_wrap_new_StaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7412 PyObject *resultobj = 0;
7413 wxWindow *arg1 = (wxWindow *) 0 ;
7414 int arg2 = (int) -1 ;
7415 wxString const &arg3_defvalue = wxPyEmptyString ;
7416 wxString *arg3 = (wxString *) &arg3_defvalue ;
7417 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7418 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7419 wxSize const &arg5_defvalue = wxDefaultSize ;
7420 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7421 long arg6 = (long) 0 ;
7422 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
7423 wxString *arg7 = (wxString *) &arg7_defvalue ;
7424 wxStaticBox *result = 0 ;
7425 void *argp1 = 0 ;
7426 int res1 = 0 ;
7427 int val2 ;
7428 int ecode2 = 0 ;
7429 bool temp3 = false ;
7430 wxPoint temp4 ;
7431 wxSize temp5 ;
7432 long val6 ;
7433 int ecode6 = 0 ;
7434 bool temp7 = false ;
7435 PyObject * obj0 = 0 ;
7436 PyObject * obj1 = 0 ;
7437 PyObject * obj2 = 0 ;
7438 PyObject * obj3 = 0 ;
7439 PyObject * obj4 = 0 ;
7440 PyObject * obj5 = 0 ;
7441 PyObject * obj6 = 0 ;
7442 char * kwnames[] = {
7443 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7444 };
7445
7446 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7447 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7448 if (!SWIG_IsOK(res1)) {
7449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBox" "', expected argument " "1"" of type '" "wxWindow *""'");
7450 }
7451 arg1 = reinterpret_cast< wxWindow * >(argp1);
7452 if (obj1) {
7453 ecode2 = SWIG_AsVal_int(obj1, &val2);
7454 if (!SWIG_IsOK(ecode2)) {
7455 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBox" "', expected argument " "2"" of type '" "int""'");
7456 }
7457 arg2 = static_cast< int >(val2);
7458 }
7459 if (obj2) {
36ed4f51 7460 {
1bd55598
RD
7461 arg3 = wxString_in_helper(obj2);
7462 if (arg3 == NULL) SWIG_fail;
7463 temp3 = true;
36ed4f51 7464 }
1bd55598
RD
7465 }
7466 if (obj3) {
d55e5bfc 7467 {
1bd55598
RD
7468 arg4 = &temp4;
7469 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 7470 }
1bd55598
RD
7471 }
7472 if (obj4) {
d55e5bfc 7473 {
1bd55598
RD
7474 arg5 = &temp5;
7475 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 7476 }
1bd55598
RD
7477 }
7478 if (obj5) {
7479 ecode6 = SWIG_AsVal_long(obj5, &val6);
7480 if (!SWIG_IsOK(ecode6)) {
7481 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBox" "', expected argument " "6"" of type '" "long""'");
7482 }
7483 arg6 = static_cast< long >(val6);
7484 }
7485 if (obj6) {
36ed4f51 7486 {
1bd55598
RD
7487 arg7 = wxString_in_helper(obj6);
7488 if (arg7 == NULL) SWIG_fail;
7489 temp7 = true;
36ed4f51 7490 }
1bd55598
RD
7491 }
7492 {
7493 if (!wxPyCheckForApp()) SWIG_fail;
7494 PyThreadState* __tstate = wxPyBeginAllowThreads();
7495 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7496 wxPyEndAllowThreads(__tstate);
7497 if (PyErr_Occurred()) SWIG_fail;
7498 }
7499 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_NEW | 0 );
7500 {
7501 if (temp3)
7502 delete arg3;
7503 }
7504 {
7505 if (temp7)
7506 delete arg7;
7507 }
7508 return resultobj;
7509fail:
7510 {
7511 if (temp3)
7512 delete arg3;
7513 }
7514 {
7515 if (temp7)
7516 delete arg7;
7517 }
7518 return NULL;
7519}
d55e5bfc 7520
1bd55598
RD
7521
7522SWIGINTERN PyObject *_wrap_new_PreStaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7523 PyObject *resultobj = 0;
7524 wxStaticBox *result = 0 ;
7525
7526 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBox",0,0,0)) SWIG_fail;
7527 {
7528 if (!wxPyCheckForApp()) SWIG_fail;
7529 PyThreadState* __tstate = wxPyBeginAllowThreads();
7530 result = (wxStaticBox *)new wxStaticBox();
7531 wxPyEndAllowThreads(__tstate);
7532 if (PyErr_Occurred()) SWIG_fail;
7533 }
7534 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_OWN | 0 );
7535 return resultobj;
7536fail:
7537 return NULL;
7538}
7539
7540
7541SWIGINTERN PyObject *_wrap_StaticBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7542 PyObject *resultobj = 0;
7543 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
7544 wxWindow *arg2 = (wxWindow *) 0 ;
7545 int arg3 = (int) -1 ;
7546 wxString const &arg4_defvalue = wxPyEmptyString ;
7547 wxString *arg4 = (wxString *) &arg4_defvalue ;
7548 wxPoint const &arg5_defvalue = wxDefaultPosition ;
7549 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
7550 wxSize const &arg6_defvalue = wxDefaultSize ;
7551 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
7552 long arg7 = (long) 0 ;
7553 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
7554 wxString *arg8 = (wxString *) &arg8_defvalue ;
7555 bool result;
7556 void *argp1 = 0 ;
7557 int res1 = 0 ;
7558 void *argp2 = 0 ;
7559 int res2 = 0 ;
7560 int val3 ;
7561 int ecode3 = 0 ;
7562 bool temp4 = false ;
7563 wxPoint temp5 ;
7564 wxSize temp6 ;
7565 long val7 ;
7566 int ecode7 = 0 ;
7567 bool temp8 = false ;
7568 PyObject * obj0 = 0 ;
7569 PyObject * obj1 = 0 ;
7570 PyObject * obj2 = 0 ;
7571 PyObject * obj3 = 0 ;
7572 PyObject * obj4 = 0 ;
7573 PyObject * obj5 = 0 ;
7574 PyObject * obj6 = 0 ;
7575 PyObject * obj7 = 0 ;
7576 char * kwnames[] = {
7577 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7578 };
7579
7580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
7581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBox, 0 | 0 );
7582 if (!SWIG_IsOK(res1)) {
7583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBox_Create" "', expected argument " "1"" of type '" "wxStaticBox *""'");
7584 }
7585 arg1 = reinterpret_cast< wxStaticBox * >(argp1);
7586 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7587 if (!SWIG_IsOK(res2)) {
7588 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7589 }
7590 arg2 = reinterpret_cast< wxWindow * >(argp2);
7591 if (obj2) {
7592 ecode3 = SWIG_AsVal_int(obj2, &val3);
7593 if (!SWIG_IsOK(ecode3)) {
7594 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBox_Create" "', expected argument " "3"" of type '" "int""'");
7595 }
7596 arg3 = static_cast< int >(val3);
7597 }
7598 if (obj3) {
36ed4f51 7599 {
1bd55598
RD
7600 arg4 = wxString_in_helper(obj3);
7601 if (arg4 == NULL) SWIG_fail;
7602 temp4 = true;
36ed4f51 7603 }
1bd55598
RD
7604 }
7605 if (obj4) {
d55e5bfc 7606 {
1bd55598
RD
7607 arg5 = &temp5;
7608 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 7609 }
1bd55598
RD
7610 }
7611 if (obj5) {
d55e5bfc 7612 {
1bd55598
RD
7613 arg6 = &temp6;
7614 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 7615 }
1bd55598
RD
7616 }
7617 if (obj6) {
7618 ecode7 = SWIG_AsVal_long(obj6, &val7);
7619 if (!SWIG_IsOK(ecode7)) {
7620 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBox_Create" "', expected argument " "7"" of type '" "long""'");
7621 }
7622 arg7 = static_cast< long >(val7);
7623 }
7624 if (obj7) {
36ed4f51 7625 {
1bd55598
RD
7626 arg8 = wxString_in_helper(obj7);
7627 if (arg8 == NULL) SWIG_fail;
7628 temp8 = true;
36ed4f51 7629 }
1bd55598
RD
7630 }
7631 {
7632 PyThreadState* __tstate = wxPyBeginAllowThreads();
7633 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
7634 wxPyEndAllowThreads(__tstate);
7635 if (PyErr_Occurred()) SWIG_fail;
7636 }
7637 {
7638 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7639 }
7640 {
7641 if (temp4)
7642 delete arg4;
7643 }
7644 {
7645 if (temp8)
7646 delete arg8;
7647 }
7648 return resultobj;
7649fail:
7650 {
7651 if (temp4)
7652 delete arg4;
7653 }
7654 {
7655 if (temp8)
7656 delete arg8;
7657 }
7658 return NULL;
d55e5bfc
RD
7659}
7660
7661
1bd55598
RD
7662SWIGINTERN PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7663 PyObject *resultobj = 0;
7664 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7665 SwigValueWrapper<wxVisualAttributes > result;
7666 int val1 ;
7667 int ecode1 = 0 ;
7668 PyObject * obj0 = 0 ;
7669 char * kwnames[] = {
7670 (char *) "variant", NULL
7671 };
7672
7673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7674 if (obj0) {
7675 ecode1 = SWIG_AsVal_int(obj0, &val1);
7676 if (!SWIG_IsOK(ecode1)) {
7677 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7678 }
7679 arg1 = static_cast< wxWindowVariant >(val1);
7680 }
7681 {
7682 if (!wxPyCheckForApp()) SWIG_fail;
7683 PyThreadState* __tstate = wxPyBeginAllowThreads();
7684 result = wxStaticBox::GetClassDefaultAttributes(arg1);
7685 wxPyEndAllowThreads(__tstate);
7686 if (PyErr_Occurred()) SWIG_fail;
7687 }
7688 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7689 return resultobj;
7690fail:
7691 return NULL;
7692}
7693
7694
7695SWIGINTERN PyObject *StaticBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7696 PyObject *obj;
7697 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7698 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBox, SWIG_NewClientData(obj));
7699 return SWIG_Py_Void();
7700}
7701
7702SWIGINTERN PyObject *StaticBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7703 return SWIG_Python_InitShadowInstance(args);
7704}
7705
7706SWIGINTERN PyObject *_wrap_new_StaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7707 PyObject *resultobj = 0;
7708 wxWindow *arg1 = (wxWindow *) 0 ;
7709 int arg2 = (int) -1 ;
7710 wxPoint const &arg3_defvalue = wxDefaultPosition ;
7711 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
7712 wxSize const &arg4_defvalue = wxDefaultSize ;
7713 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
7714 long arg5 = (long) wxLI_HORIZONTAL ;
7715 wxString const &arg6_defvalue = wxPyStaticTextNameStr ;
7716 wxString *arg6 = (wxString *) &arg6_defvalue ;
7717 wxStaticLine *result = 0 ;
7718 void *argp1 = 0 ;
7719 int res1 = 0 ;
7720 int val2 ;
7721 int ecode2 = 0 ;
7722 wxPoint temp3 ;
7723 wxSize temp4 ;
7724 long val5 ;
7725 int ecode5 = 0 ;
7726 bool temp6 = false ;
7727 PyObject * obj0 = 0 ;
7728 PyObject * obj1 = 0 ;
7729 PyObject * obj2 = 0 ;
7730 PyObject * obj3 = 0 ;
7731 PyObject * obj4 = 0 ;
7732 PyObject * obj5 = 0 ;
7733 char * kwnames[] = {
7734 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7735 };
7736
7737 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
7738 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7739 if (!SWIG_IsOK(res1)) {
7740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticLine" "', expected argument " "1"" of type '" "wxWindow *""'");
7741 }
7742 arg1 = reinterpret_cast< wxWindow * >(argp1);
7743 if (obj1) {
7744 ecode2 = SWIG_AsVal_int(obj1, &val2);
7745 if (!SWIG_IsOK(ecode2)) {
7746 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticLine" "', expected argument " "2"" of type '" "int""'");
7747 }
7748 arg2 = static_cast< int >(val2);
7749 }
7750 if (obj2) {
7751 {
7752 arg3 = &temp3;
7753 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
f20a2e1f 7754 }
1bd55598
RD
7755 }
7756 if (obj3) {
f20a2e1f 7757 {
1bd55598
RD
7758 arg4 = &temp4;
7759 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
f20a2e1f 7760 }
1bd55598
RD
7761 }
7762 if (obj4) {
7763 ecode5 = SWIG_AsVal_long(obj4, &val5);
7764 if (!SWIG_IsOK(ecode5)) {
7765 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_StaticLine" "', expected argument " "5"" of type '" "long""'");
7766 }
7767 arg5 = static_cast< long >(val5);
7768 }
7769 if (obj5) {
f20a2e1f 7770 {
1bd55598
RD
7771 arg6 = wxString_in_helper(obj5);
7772 if (arg6 == NULL) SWIG_fail;
7773 temp6 = true;
f20a2e1f 7774 }
1bd55598
RD
7775 }
7776 {
7777 if (!wxPyCheckForApp()) SWIG_fail;
7778 PyThreadState* __tstate = wxPyBeginAllowThreads();
7779 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
7780 wxPyEndAllowThreads(__tstate);
7781 if (PyErr_Occurred()) SWIG_fail;
7782 }
7783 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_NEW | 0 );
7784 {
7785 if (temp6)
7786 delete arg6;
7787 }
7788 return resultobj;
7789fail:
7790 {
7791 if (temp6)
7792 delete arg6;
7793 }
7794 return NULL;
d55e5bfc
RD
7795}
7796
7797
1bd55598
RD
7798SWIGINTERN PyObject *_wrap_new_PreStaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7799 PyObject *resultobj = 0;
7800 wxStaticLine *result = 0 ;
7801
7802 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticLine",0,0,0)) SWIG_fail;
7803 {
7804 if (!wxPyCheckForApp()) SWIG_fail;
7805 PyThreadState* __tstate = wxPyBeginAllowThreads();
7806 result = (wxStaticLine *)new wxStaticLine();
7807 wxPyEndAllowThreads(__tstate);
7808 if (PyErr_Occurred()) SWIG_fail;
7809 }
7810 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_OWN | 0 );
7811 return resultobj;
7812fail:
7813 return NULL;
7814}
7815
7816
7817SWIGINTERN PyObject *_wrap_StaticLine_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7818 PyObject *resultobj = 0;
7819 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7820 wxWindow *arg2 = (wxWindow *) 0 ;
7821 int arg3 = (int) -1 ;
7822 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7823 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7824 wxSize const &arg5_defvalue = wxDefaultSize ;
7825 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7826 long arg6 = (long) wxLI_HORIZONTAL ;
7827 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
7828 wxString *arg7 = (wxString *) &arg7_defvalue ;
7829 bool result;
7830 void *argp1 = 0 ;
7831 int res1 = 0 ;
7832 void *argp2 = 0 ;
7833 int res2 = 0 ;
7834 int val3 ;
7835 int ecode3 = 0 ;
7836 wxPoint temp4 ;
7837 wxSize temp5 ;
7838 long val6 ;
7839 int ecode6 = 0 ;
7840 bool temp7 = false ;
7841 PyObject * obj0 = 0 ;
7842 PyObject * obj1 = 0 ;
7843 PyObject * obj2 = 0 ;
7844 PyObject * obj3 = 0 ;
7845 PyObject * obj4 = 0 ;
7846 PyObject * obj5 = 0 ;
7847 PyObject * obj6 = 0 ;
7848 char * kwnames[] = {
7849 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7850 };
7851
7852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7853 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7854 if (!SWIG_IsOK(res1)) {
7855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_Create" "', expected argument " "1"" of type '" "wxStaticLine *""'");
7856 }
7857 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7858 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7859 if (!SWIG_IsOK(res2)) {
7860 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticLine_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7861 }
7862 arg2 = reinterpret_cast< wxWindow * >(argp2);
7863 if (obj2) {
7864 ecode3 = SWIG_AsVal_int(obj2, &val3);
7865 if (!SWIG_IsOK(ecode3)) {
7866 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticLine_Create" "', expected argument " "3"" of type '" "int""'");
7867 }
7868 arg3 = static_cast< int >(val3);
7869 }
7870 if (obj3) {
d55e5bfc 7871 {
1bd55598
RD
7872 arg4 = &temp4;
7873 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 7874 }
1bd55598
RD
7875 }
7876 if (obj4) {
d55e5bfc 7877 {
1bd55598
RD
7878 arg5 = &temp5;
7879 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7880 }
7881 }
7882 if (obj5) {
7883 ecode6 = SWIG_AsVal_long(obj5, &val6);
7884 if (!SWIG_IsOK(ecode6)) {
7885 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "StaticLine_Create" "', expected argument " "6"" of type '" "long""'");
7886 }
7887 arg6 = static_cast< long >(val6);
7888 }
7889 if (obj6) {
7890 {
7891 arg7 = wxString_in_helper(obj6);
7892 if (arg7 == NULL) SWIG_fail;
7893 temp7 = true;
d55e5bfc 7894 }
1bd55598
RD
7895 }
7896 {
7897 PyThreadState* __tstate = wxPyBeginAllowThreads();
7898 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7899 wxPyEndAllowThreads(__tstate);
7900 if (PyErr_Occurred()) SWIG_fail;
7901 }
7902 {
7903 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7904 }
7905 {
7906 if (temp7)
7907 delete arg7;
7908 }
7909 return resultobj;
7910fail:
7911 {
7912 if (temp7)
7913 delete arg7;
7914 }
7915 return NULL;
d55e5bfc
RD
7916}
7917
7918
1bd55598
RD
7919SWIGINTERN PyObject *_wrap_StaticLine_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7920 PyObject *resultobj = 0;
7921 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7922 bool result;
7923 void *argp1 = 0 ;
7924 int res1 = 0 ;
7925 PyObject *swig_obj[1] ;
7926
7927 if (!args) SWIG_fail;
7928 swig_obj[0] = args;
7929 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7930 if (!SWIG_IsOK(res1)) {
7931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_IsVertical" "', expected argument " "1"" of type '" "wxStaticLine const *""'");
7932 }
7933 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7934 {
7935 PyThreadState* __tstate = wxPyBeginAllowThreads();
7936 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
7937 wxPyEndAllowThreads(__tstate);
7938 if (PyErr_Occurred()) SWIG_fail;
7939 }
7940 {
7941 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7942 }
7943 return resultobj;
7944fail:
7945 return NULL;
d55e5bfc
RD
7946}
7947
7948
1bd55598
RD
7949SWIGINTERN PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7950 PyObject *resultobj = 0;
7951 int result;
7952
7953 if (!SWIG_Python_UnpackTuple(args,"StaticLine_GetDefaultSize",0,0,0)) SWIG_fail;
7954 {
7955 PyThreadState* __tstate = wxPyBeginAllowThreads();
7956 result = (int)wxStaticLine::GetDefaultSize();
7957 wxPyEndAllowThreads(__tstate);
7958 if (PyErr_Occurred()) SWIG_fail;
7959 }
7960 resultobj = SWIG_From_int(static_cast< int >(result));
7961 return resultobj;
7962fail:
7963 return NULL;
7964}
7965
7966
7967SWIGINTERN PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7968 PyObject *resultobj = 0;
7969 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7970 SwigValueWrapper<wxVisualAttributes > result;
7971 int val1 ;
7972 int ecode1 = 0 ;
7973 PyObject * obj0 = 0 ;
7974 char * kwnames[] = {
7975 (char *) "variant", NULL
7976 };
7977
7978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7979 if (obj0) {
7980 ecode1 = SWIG_AsVal_int(obj0, &val1);
7981 if (!SWIG_IsOK(ecode1)) {
7982 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticLine_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7983 }
7984 arg1 = static_cast< wxWindowVariant >(val1);
7985 }
7986 {
7987 if (!wxPyCheckForApp()) SWIG_fail;
7988 PyThreadState* __tstate = wxPyBeginAllowThreads();
7989 result = wxStaticLine::GetClassDefaultAttributes(arg1);
7990 wxPyEndAllowThreads(__tstate);
7991 if (PyErr_Occurred()) SWIG_fail;
7992 }
7993 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7994 return resultobj;
7995fail:
7996 return NULL;
7997}
7998
7999
8000SWIGINTERN PyObject *StaticLine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8001 PyObject *obj;
8002 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8003 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticLine, SWIG_NewClientData(obj));
8004 return SWIG_Py_Void();
8005}
8006
8007SWIGINTERN PyObject *StaticLine_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8008 return SWIG_Python_InitShadowInstance(args);
8009}
8010
8011SWIGINTERN PyObject *_wrap_new_StaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8012 PyObject *resultobj = 0;
8013 wxWindow *arg1 = (wxWindow *) 0 ;
8014 int arg2 = (int) -1 ;
8015 wxString const &arg3_defvalue = wxPyEmptyString ;
8016 wxString *arg3 = (wxString *) &arg3_defvalue ;
8017 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8018 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8019 wxSize const &arg5_defvalue = wxDefaultSize ;
8020 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8021 long arg6 = (long) 0 ;
8022 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
8023 wxString *arg7 = (wxString *) &arg7_defvalue ;
8024 wxStaticText *result = 0 ;
8025 void *argp1 = 0 ;
8026 int res1 = 0 ;
8027 int val2 ;
8028 int ecode2 = 0 ;
8029 bool temp3 = false ;
8030 wxPoint temp4 ;
8031 wxSize temp5 ;
8032 long val6 ;
8033 int ecode6 = 0 ;
8034 bool temp7 = false ;
8035 PyObject * obj0 = 0 ;
8036 PyObject * obj1 = 0 ;
8037 PyObject * obj2 = 0 ;
8038 PyObject * obj3 = 0 ;
8039 PyObject * obj4 = 0 ;
8040 PyObject * obj5 = 0 ;
8041 PyObject * obj6 = 0 ;
8042 char * kwnames[] = {
8043 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8044 };
8045
8046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8048 if (!SWIG_IsOK(res1)) {
8049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticText" "', expected argument " "1"" of type '" "wxWindow *""'");
8050 }
8051 arg1 = reinterpret_cast< wxWindow * >(argp1);
8052 if (obj1) {
8053 ecode2 = SWIG_AsVal_int(obj1, &val2);
8054 if (!SWIG_IsOK(ecode2)) {
8055 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticText" "', expected argument " "2"" of type '" "int""'");
8056 }
8057 arg2 = static_cast< int >(val2);
8058 }
8059 if (obj2) {
d55e5bfc 8060 {
1bd55598
RD
8061 arg3 = wxString_in_helper(obj2);
8062 if (arg3 == NULL) SWIG_fail;
8063 temp3 = true;
d55e5bfc 8064 }
1bd55598
RD
8065 }
8066 if (obj3) {
d55e5bfc 8067 {
1bd55598
RD
8068 arg4 = &temp4;
8069 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 8070 }
1bd55598
RD
8071 }
8072 if (obj4) {
d55e5bfc 8073 {
1bd55598
RD
8074 arg5 = &temp5;
8075 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 8076 }
1bd55598
RD
8077 }
8078 if (obj5) {
8079 ecode6 = SWIG_AsVal_long(obj5, &val6);
8080 if (!SWIG_IsOK(ecode6)) {
8081 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticText" "', expected argument " "6"" of type '" "long""'");
8082 }
8083 arg6 = static_cast< long >(val6);
8084 }
8085 if (obj6) {
d55e5bfc 8086 {
1bd55598
RD
8087 arg7 = wxString_in_helper(obj6);
8088 if (arg7 == NULL) SWIG_fail;
8089 temp7 = true;
d55e5bfc 8090 }
1bd55598
RD
8091 }
8092 {
8093 if (!wxPyCheckForApp()) SWIG_fail;
8094 PyThreadState* __tstate = wxPyBeginAllowThreads();
8095 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8096 wxPyEndAllowThreads(__tstate);
8097 if (PyErr_Occurred()) SWIG_fail;
8098 }
8099 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_NEW | 0 );
8100 {
8101 if (temp3)
8102 delete arg3;
8103 }
8104 {
8105 if (temp7)
8106 delete arg7;
8107 }
8108 return resultobj;
8109fail:
8110 {
8111 if (temp3)
8112 delete arg3;
8113 }
8114 {
8115 if (temp7)
8116 delete arg7;
8117 }
8118 return NULL;
d55e5bfc
RD
8119}
8120
8121
1bd55598
RD
8122SWIGINTERN PyObject *_wrap_new_PreStaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8123 PyObject *resultobj = 0;
8124 wxStaticText *result = 0 ;
8125
8126 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticText",0,0,0)) SWIG_fail;
8127 {
8128 if (!wxPyCheckForApp()) SWIG_fail;
8129 PyThreadState* __tstate = wxPyBeginAllowThreads();
8130 result = (wxStaticText *)new wxStaticText();
8131 wxPyEndAllowThreads(__tstate);
8132 if (PyErr_Occurred()) SWIG_fail;
8133 }
8134 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_OWN | 0 );
8135 return resultobj;
8136fail:
8137 return NULL;
8138}
8139
8140
8141SWIGINTERN PyObject *_wrap_StaticText_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8142 PyObject *resultobj = 0;
8143 wxStaticText *arg1 = (wxStaticText *) 0 ;
8144 wxWindow *arg2 = (wxWindow *) 0 ;
8145 int arg3 = (int) -1 ;
8146 wxString const &arg4_defvalue = wxPyEmptyString ;
8147 wxString *arg4 = (wxString *) &arg4_defvalue ;
8148 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8149 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8150 wxSize const &arg6_defvalue = wxDefaultSize ;
8151 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8152 long arg7 = (long) 0 ;
8153 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
8154 wxString *arg8 = (wxString *) &arg8_defvalue ;
8155 bool result;
8156 void *argp1 = 0 ;
8157 int res1 = 0 ;
8158 void *argp2 = 0 ;
8159 int res2 = 0 ;
8160 int val3 ;
8161 int ecode3 = 0 ;
8162 bool temp4 = false ;
8163 wxPoint temp5 ;
8164 wxSize temp6 ;
8165 long val7 ;
8166 int ecode7 = 0 ;
8167 bool temp8 = false ;
8168 PyObject * obj0 = 0 ;
8169 PyObject * obj1 = 0 ;
8170 PyObject * obj2 = 0 ;
8171 PyObject * obj3 = 0 ;
8172 PyObject * obj4 = 0 ;
8173 PyObject * obj5 = 0 ;
8174 PyObject * obj6 = 0 ;
8175 PyObject * obj7 = 0 ;
8176 char * kwnames[] = {
8177 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8178 };
8179
8180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8182 if (!SWIG_IsOK(res1)) {
8183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Create" "', expected argument " "1"" of type '" "wxStaticText *""'");
8184 }
8185 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8186 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8187 if (!SWIG_IsOK(res2)) {
8188 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticText_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8189 }
8190 arg2 = reinterpret_cast< wxWindow * >(argp2);
8191 if (obj2) {
8192 ecode3 = SWIG_AsVal_int(obj2, &val3);
8193 if (!SWIG_IsOK(ecode3)) {
8194 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticText_Create" "', expected argument " "3"" of type '" "int""'");
8195 }
8196 arg3 = static_cast< int >(val3);
8197 }
8198 if (obj3) {
d55e5bfc 8199 {
1bd55598
RD
8200 arg4 = wxString_in_helper(obj3);
8201 if (arg4 == NULL) SWIG_fail;
8202 temp4 = true;
d55e5bfc 8203 }
1bd55598
RD
8204 }
8205 if (obj4) {
d55e5bfc 8206 {
1bd55598
RD
8207 arg5 = &temp5;
8208 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 8209 }
1bd55598
RD
8210 }
8211 if (obj5) {
d55e5bfc 8212 {
1bd55598
RD
8213 arg6 = &temp6;
8214 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 8215 }
1bd55598
RD
8216 }
8217 if (obj6) {
8218 ecode7 = SWIG_AsVal_long(obj6, &val7);
8219 if (!SWIG_IsOK(ecode7)) {
8220 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticText_Create" "', expected argument " "7"" of type '" "long""'");
8221 }
8222 arg7 = static_cast< long >(val7);
8223 }
8224 if (obj7) {
d55e5bfc 8225 {
1bd55598
RD
8226 arg8 = wxString_in_helper(obj7);
8227 if (arg8 == NULL) SWIG_fail;
8228 temp8 = true;
d55e5bfc 8229 }
1bd55598
RD
8230 }
8231 {
8232 PyThreadState* __tstate = wxPyBeginAllowThreads();
8233 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8234 wxPyEndAllowThreads(__tstate);
8235 if (PyErr_Occurred()) SWIG_fail;
8236 }
8237 {
8238 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8239 }
8240 {
8241 if (temp4)
8242 delete arg4;
8243 }
8244 {
8245 if (temp8)
8246 delete arg8;
8247 }
8248 return resultobj;
8249fail:
8250 {
8251 if (temp4)
8252 delete arg4;
8253 }
8254 {
8255 if (temp8)
8256 delete arg8;
8257 }
8258 return NULL;
8259}
8260
8261
8262SWIGINTERN PyObject *_wrap_StaticText_Wrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8263 PyObject *resultobj = 0;
8264 wxStaticText *arg1 = (wxStaticText *) 0 ;
8265 int arg2 ;
8266 void *argp1 = 0 ;
8267 int res1 = 0 ;
8268 int val2 ;
8269 int ecode2 = 0 ;
8270 PyObject * obj0 = 0 ;
8271 PyObject * obj1 = 0 ;
8272 char * kwnames[] = {
8273 (char *) "self",(char *) "width", NULL
8274 };
8275
8276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticText_Wrap",kwnames,&obj0,&obj1)) SWIG_fail;
8277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8278 if (!SWIG_IsOK(res1)) {
8279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Wrap" "', expected argument " "1"" of type '" "wxStaticText *""'");
8280 }
8281 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8282 ecode2 = SWIG_AsVal_int(obj1, &val2);
8283 if (!SWIG_IsOK(ecode2)) {
8284 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StaticText_Wrap" "', expected argument " "2"" of type '" "int""'");
8285 }
8286 arg2 = static_cast< int >(val2);
8287 {
8288 PyThreadState* __tstate = wxPyBeginAllowThreads();
8289 (arg1)->Wrap(arg2);
8290 wxPyEndAllowThreads(__tstate);
8291 if (PyErr_Occurred()) SWIG_fail;
8292 }
8293 resultobj = SWIG_Py_Void();
8294 return resultobj;
8295fail:
8296 return NULL;
8297}
8298
8299
8300SWIGINTERN PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8301 PyObject *resultobj = 0;
8302 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8303 SwigValueWrapper<wxVisualAttributes > result;
8304 int val1 ;
8305 int ecode1 = 0 ;
8306 PyObject * obj0 = 0 ;
8307 char * kwnames[] = {
8308 (char *) "variant", NULL
8309 };
8310
8311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8312 if (obj0) {
8313 ecode1 = SWIG_AsVal_int(obj0, &val1);
8314 if (!SWIG_IsOK(ecode1)) {
8315 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticText_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8316 }
8317 arg1 = static_cast< wxWindowVariant >(val1);
8318 }
8319 {
8320 if (!wxPyCheckForApp()) SWIG_fail;
8321 PyThreadState* __tstate = wxPyBeginAllowThreads();
8322 result = wxStaticText::GetClassDefaultAttributes(arg1);
8323 wxPyEndAllowThreads(__tstate);
8324 if (PyErr_Occurred()) SWIG_fail;
8325 }
8326 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8327 return resultobj;
8328fail:
8329 return NULL;
8330}
8331
8332
8333SWIGINTERN PyObject *StaticText_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8334 PyObject *obj;
8335 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8336 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticText, SWIG_NewClientData(obj));
8337 return SWIG_Py_Void();
8338}
8339
8340SWIGINTERN PyObject *StaticText_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8341 return SWIG_Python_InitShadowInstance(args);
8342}
8343
8344SWIGINTERN PyObject *_wrap_new_StaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8345 PyObject *resultobj = 0;
8346 wxWindow *arg1 = (wxWindow *) 0 ;
8347 int arg2 = (int) -1 ;
8348 wxBitmap const &arg3_defvalue = wxNullBitmap ;
8349 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
8350 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8351 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8352 wxSize const &arg5_defvalue = wxDefaultSize ;
8353 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8354 long arg6 = (long) 0 ;
8355 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
8356 wxString *arg7 = (wxString *) &arg7_defvalue ;
8357 wxStaticBitmap *result = 0 ;
8358 void *argp1 = 0 ;
8359 int res1 = 0 ;
8360 int val2 ;
8361 int ecode2 = 0 ;
8362 void *argp3 = 0 ;
8363 int res3 = 0 ;
8364 wxPoint temp4 ;
8365 wxSize temp5 ;
8366 long val6 ;
8367 int ecode6 = 0 ;
8368 bool temp7 = false ;
8369 PyObject * obj0 = 0 ;
8370 PyObject * obj1 = 0 ;
8371 PyObject * obj2 = 0 ;
8372 PyObject * obj3 = 0 ;
8373 PyObject * obj4 = 0 ;
8374 PyObject * obj5 = 0 ;
8375 PyObject * obj6 = 0 ;
8376 char * kwnames[] = {
8377 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8378 };
8379
8380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8382 if (!SWIG_IsOK(res1)) {
8383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBitmap" "', expected argument " "1"" of type '" "wxWindow *""'");
8384 }
8385 arg1 = reinterpret_cast< wxWindow * >(argp1);
8386 if (obj1) {
8387 ecode2 = SWIG_AsVal_int(obj1, &val2);
8388 if (!SWIG_IsOK(ecode2)) {
8389 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBitmap" "', expected argument " "2"" of type '" "int""'");
8390 }
8391 arg2 = static_cast< int >(val2);
8392 }
8393 if (obj2) {
8394 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
8395 if (!SWIG_IsOK(res3)) {
8396 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
d55e5bfc 8397 }
1bd55598
RD
8398 if (!argp3) {
8399 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
d55e5bfc 8400 }
1bd55598
RD
8401 arg3 = reinterpret_cast< wxBitmap * >(argp3);
8402 }
8403 if (obj3) {
d55e5bfc 8404 {
1bd55598
RD
8405 arg4 = &temp4;
8406 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
f20a2e1f 8407 }
1bd55598
RD
8408 }
8409 if (obj4) {
f20a2e1f 8410 {
1bd55598
RD
8411 arg5 = &temp5;
8412 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
f20a2e1f 8413 }
1bd55598
RD
8414 }
8415 if (obj5) {
8416 ecode6 = SWIG_AsVal_long(obj5, &val6);
8417 if (!SWIG_IsOK(ecode6)) {
8418 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBitmap" "', expected argument " "6"" of type '" "long""'");
8419 }
8420 arg6 = static_cast< long >(val6);
8421 }
8422 if (obj6) {
f20a2e1f 8423 {
1bd55598
RD
8424 arg7 = wxString_in_helper(obj6);
8425 if (arg7 == NULL) SWIG_fail;
8426 temp7 = true;
f20a2e1f 8427 }
1bd55598
RD
8428 }
8429 {
8430 if (!wxPyCheckForApp()) SWIG_fail;
8431 PyThreadState* __tstate = wxPyBeginAllowThreads();
8432 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8433 wxPyEndAllowThreads(__tstate);
8434 if (PyErr_Occurred()) SWIG_fail;
8435 }
8436 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_NEW | 0 );
8437 {
8438 if (temp7)
8439 delete arg7;
8440 }
8441 return resultobj;
8442fail:
8443 {
8444 if (temp7)
8445 delete arg7;
8446 }
8447 return NULL;
f20a2e1f
RD
8448}
8449
8450
1bd55598
RD
8451SWIGINTERN PyObject *_wrap_new_PreStaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8452 PyObject *resultobj = 0;
8453 wxStaticBitmap *result = 0 ;
8454
8455 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBitmap",0,0,0)) SWIG_fail;
8456 {
8457 if (!wxPyCheckForApp()) SWIG_fail;
8458 PyThreadState* __tstate = wxPyBeginAllowThreads();
8459 result = (wxStaticBitmap *)new wxStaticBitmap();
8460 wxPyEndAllowThreads(__tstate);
8461 if (PyErr_Occurred()) SWIG_fail;
8462 }
8463 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_OWN | 0 );
8464 return resultobj;
8465fail:
8466 return NULL;
8467}
8468
8469
8470SWIGINTERN PyObject *_wrap_StaticBitmap_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8471 PyObject *resultobj = 0;
8472 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8473 wxWindow *arg2 = (wxWindow *) 0 ;
8474 int arg3 = (int) -1 ;
8475 wxBitmap const &arg4_defvalue = wxNullBitmap ;
8476 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
8477 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8478 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8479 wxSize const &arg6_defvalue = wxDefaultSize ;
8480 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8481 long arg7 = (long) 0 ;
8482 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
8483 wxString *arg8 = (wxString *) &arg8_defvalue ;
8484 bool result;
8485 void *argp1 = 0 ;
8486 int res1 = 0 ;
8487 void *argp2 = 0 ;
8488 int res2 = 0 ;
8489 int val3 ;
8490 int ecode3 = 0 ;
8491 void *argp4 = 0 ;
8492 int res4 = 0 ;
8493 wxPoint temp5 ;
8494 wxSize temp6 ;
8495 long val7 ;
8496 int ecode7 = 0 ;
8497 bool temp8 = false ;
8498 PyObject * obj0 = 0 ;
8499 PyObject * obj1 = 0 ;
8500 PyObject * obj2 = 0 ;
8501 PyObject * obj3 = 0 ;
8502 PyObject * obj4 = 0 ;
8503 PyObject * obj5 = 0 ;
8504 PyObject * obj6 = 0 ;
8505 PyObject * obj7 = 0 ;
8506 char * kwnames[] = {
8507 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8508 };
8509
8510 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8511 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8512 if (!SWIG_IsOK(res1)) {
8513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_Create" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8514 }
8515 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8516 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8517 if (!SWIG_IsOK(res2)) {
8518 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8519 }
8520 arg2 = reinterpret_cast< wxWindow * >(argp2);
8521 if (obj2) {
8522 ecode3 = SWIG_AsVal_int(obj2, &val3);
8523 if (!SWIG_IsOK(ecode3)) {
8524 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBitmap_Create" "', expected argument " "3"" of type '" "int""'");
8525 }
8526 arg3 = static_cast< int >(val3);
8527 }
8528 if (obj3) {
8529 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
8530 if (!SWIG_IsOK(res4)) {
8531 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
d55e5bfc 8532 }
1bd55598
RD
8533 if (!argp4) {
8534 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
d55e5bfc 8535 }
1bd55598
RD
8536 arg4 = reinterpret_cast< wxBitmap * >(argp4);
8537 }
8538 if (obj4) {
d55e5bfc 8539 {
1bd55598
RD
8540 arg5 = &temp5;
8541 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 8542 }
1bd55598
RD
8543 }
8544 if (obj5) {
d55e5bfc 8545 {
1bd55598
RD
8546 arg6 = &temp6;
8547 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 8548 }
1bd55598
RD
8549 }
8550 if (obj6) {
8551 ecode7 = SWIG_AsVal_long(obj6, &val7);
8552 if (!SWIG_IsOK(ecode7)) {
8553 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBitmap_Create" "', expected argument " "7"" of type '" "long""'");
8554 }
8555 arg7 = static_cast< long >(val7);
8556 }
8557 if (obj7) {
d55e5bfc 8558 {
1bd55598
RD
8559 arg8 = wxString_in_helper(obj7);
8560 if (arg8 == NULL) SWIG_fail;
8561 temp8 = true;
d55e5bfc 8562 }
1bd55598
RD
8563 }
8564 {
8565 PyThreadState* __tstate = wxPyBeginAllowThreads();
8566 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8567 wxPyEndAllowThreads(__tstate);
8568 if (PyErr_Occurred()) SWIG_fail;
8569 }
8570 {
8571 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8572 }
8573 {
8574 if (temp8)
8575 delete arg8;
8576 }
8577 return resultobj;
8578fail:
8579 {
8580 if (temp8)
8581 delete arg8;
8582 }
8583 return NULL;
d55e5bfc
RD
8584}
8585
8586
1bd55598
RD
8587SWIGINTERN PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8588 PyObject *resultobj = 0;
8589 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8590 wxBitmap result;
8591 void *argp1 = 0 ;
8592 int res1 = 0 ;
8593 PyObject *swig_obj[1] ;
8594
8595 if (!args) SWIG_fail;
8596 swig_obj[0] = args;
8597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8598 if (!SWIG_IsOK(res1)) {
8599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_GetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8600 }
8601 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8602 {
8603 PyThreadState* __tstate = wxPyBeginAllowThreads();
8604 result = (arg1)->GetBitmap();
8605 wxPyEndAllowThreads(__tstate);
8606 if (PyErr_Occurred()) SWIG_fail;
8607 }
8608 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8609 return resultobj;
8610fail:
8611 return NULL;
8612}
8613
8614
8615SWIGINTERN PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8616 PyObject *resultobj = 0;
8617 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8618 wxBitmap *arg2 = 0 ;
8619 void *argp1 = 0 ;
8620 int res1 = 0 ;
8621 void *argp2 = 0 ;
8622 int res2 = 0 ;
8623 PyObject * obj0 = 0 ;
8624 PyObject * obj1 = 0 ;
8625 char * kwnames[] = {
8626 (char *) "self",(char *) "bitmap", NULL
8627 };
8628
8629 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
8630 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8631 if (!SWIG_IsOK(res1)) {
8632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8633 }
8634 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8635 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8636 if (!SWIG_IsOK(res2)) {
8637 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8638 }
8639 if (!argp2) {
8640 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8641 }
8642 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8643 {
8644 PyThreadState* __tstate = wxPyBeginAllowThreads();
8645 (arg1)->SetBitmap((wxBitmap const &)*arg2);
8646 wxPyEndAllowThreads(__tstate);
8647 if (PyErr_Occurred()) SWIG_fail;
8648 }
8649 resultobj = SWIG_Py_Void();
8650 return resultobj;
8651fail:
8652 return NULL;
8653}
8654
8655
8656SWIGINTERN PyObject *_wrap_StaticBitmap_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8657 PyObject *resultobj = 0;
8658 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8659 wxIcon *arg2 = 0 ;
8660 void *argp1 = 0 ;
8661 int res1 = 0 ;
8662 void *argp2 = 0 ;
8663 int res2 = 0 ;
8664 PyObject * obj0 = 0 ;
8665 PyObject * obj1 = 0 ;
8666 char * kwnames[] = {
8667 (char *) "self",(char *) "icon", NULL
8668 };
8669
8670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
8671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8672 if (!SWIG_IsOK(res1)) {
8673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetIcon" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8674 }
8675 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8676 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
8677 if (!SWIG_IsOK(res2)) {
8678 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8679 }
8680 if (!argp2) {
8681 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8682 }
8683 arg2 = reinterpret_cast< wxIcon * >(argp2);
8684 {
8685 PyThreadState* __tstate = wxPyBeginAllowThreads();
8686 (arg1)->SetIcon((wxIcon const &)*arg2);
8687 wxPyEndAllowThreads(__tstate);
8688 if (PyErr_Occurred()) SWIG_fail;
8689 }
8690 resultobj = SWIG_Py_Void();
8691 return resultobj;
8692fail:
8693 return NULL;
8694}
8695
8696
8697SWIGINTERN PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8698 PyObject *resultobj = 0;
8699 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8700 SwigValueWrapper<wxVisualAttributes > result;
8701 int val1 ;
8702 int ecode1 = 0 ;
8703 PyObject * obj0 = 0 ;
8704 char * kwnames[] = {
8705 (char *) "variant", NULL
8706 };
8707
8708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8709 if (obj0) {
8710 ecode1 = SWIG_AsVal_int(obj0, &val1);
8711 if (!SWIG_IsOK(ecode1)) {
8712 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBitmap_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8713 }
8714 arg1 = static_cast< wxWindowVariant >(val1);
8715 }
8716 {
8717 if (!wxPyCheckForApp()) SWIG_fail;
8718 PyThreadState* __tstate = wxPyBeginAllowThreads();
8719 result = wxStaticBitmap::GetClassDefaultAttributes(arg1);
8720 wxPyEndAllowThreads(__tstate);
8721 if (PyErr_Occurred()) SWIG_fail;
8722 }
8723 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8724 return resultobj;
8725fail:
8726 return NULL;
d55e5bfc
RD
8727}
8728
8729
1bd55598
RD
8730SWIGINTERN PyObject *StaticBitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8731 PyObject *obj;
8732 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8733 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBitmap, SWIG_NewClientData(obj));
8734 return SWIG_Py_Void();
d55e5bfc
RD
8735}
8736
1bd55598
RD
8737SWIGINTERN PyObject *StaticBitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8738 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
8739}
8740
1bd55598
RD
8741SWIGINTERN int ListBoxNameStr_set(PyObject *) {
8742 SWIG_Error(SWIG_AttributeError,"Variable ListBoxNameStr is read-only.");
8743 return 1;
f20a2e1f
RD
8744}
8745
8746
1bd55598
RD
8747SWIGINTERN PyObject *ListBoxNameStr_get(void) {
8748 PyObject *pyobj = 0;
8749
8750 {
8751#if wxUSE_UNICODE
8752 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8753#else
8754 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8755#endif
8756 }
8757 return pyobj;
8758}
8759
8760
8761SWIGINTERN PyObject *_wrap_new_ListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8762 PyObject *resultobj = 0;
8763 wxWindow *arg1 = (wxWindow *) 0 ;
8764 int arg2 = (int) -1 ;
8765 wxPoint const &arg3_defvalue = wxDefaultPosition ;
8766 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
8767 wxSize const &arg4_defvalue = wxDefaultSize ;
8768 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
8769 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
8770 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
8771 long arg6 = (long) 0 ;
8772 wxValidator const &arg7_defvalue = wxDefaultValidator ;
8773 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
8774 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
8775 wxString *arg8 = (wxString *) &arg8_defvalue ;
8776 wxListBox *result = 0 ;
8777 void *argp1 = 0 ;
8778 int res1 = 0 ;
8779 int val2 ;
8780 int ecode2 = 0 ;
8781 wxPoint temp3 ;
8782 wxSize temp4 ;
8783 bool temp5 = false ;
8784 long val6 ;
8785 int ecode6 = 0 ;
8786 void *argp7 = 0 ;
8787 int res7 = 0 ;
8788 bool temp8 = false ;
8789 PyObject * obj0 = 0 ;
8790 PyObject * obj1 = 0 ;
8791 PyObject * obj2 = 0 ;
8792 PyObject * obj3 = 0 ;
8793 PyObject * obj4 = 0 ;
8794 PyObject * obj5 = 0 ;
8795 PyObject * obj6 = 0 ;
8796 PyObject * obj7 = 0 ;
8797 char * kwnames[] = {
8798 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8799 };
8800
8801 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8802 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8803 if (!SWIG_IsOK(res1)) {
8804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
8805 }
8806 arg1 = reinterpret_cast< wxWindow * >(argp1);
8807 if (obj1) {
8808 ecode2 = SWIG_AsVal_int(obj1, &val2);
8809 if (!SWIG_IsOK(ecode2)) {
8810 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListBox" "', expected argument " "2"" of type '" "int""'");
8811 }
8812 arg2 = static_cast< int >(val2);
8813 }
8814 if (obj2) {
d55e5bfc 8815 {
1bd55598
RD
8816 arg3 = &temp3;
8817 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 8818 }
1bd55598
RD
8819 }
8820 if (obj3) {
d55e5bfc 8821 {
1bd55598
RD
8822 arg4 = &temp4;
8823 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 8824 }
1bd55598
RD
8825 }
8826 if (obj4) {
d55e5bfc 8827 {
1bd55598
RD
8828 if (! PySequence_Check(obj4)) {
8829 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8830 SWIG_fail;
8831 }
8832 arg5 = new wxArrayString;
8833 temp5 = true;
8834 int i, len=PySequence_Length(obj4);
8835 for (i=0; i<len; i++) {
8836 PyObject* item = PySequence_GetItem(obj4, i);
8837 wxString* s = wxString_in_helper(item);
8838 if (PyErr_Occurred()) SWIG_fail;
8839 arg5->Add(*s);
8840 delete s;
8841 Py_DECREF(item);
8842 }
d55e5bfc 8843 }
1bd55598
RD
8844 }
8845 if (obj5) {
8846 ecode6 = SWIG_AsVal_long(obj5, &val6);
8847 if (!SWIG_IsOK(ecode6)) {
8848 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ListBox" "', expected argument " "6"" of type '" "long""'");
8849 }
8850 arg6 = static_cast< long >(val6);
8851 }
8852 if (obj6) {
8853 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
8854 if (!SWIG_IsOK(res7)) {
8855 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 8856 }
1bd55598
RD
8857 if (!argp7) {
8858 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 8859 }
1bd55598
RD
8860 arg7 = reinterpret_cast< wxValidator * >(argp7);
8861 }
8862 if (obj7) {
d55e5bfc 8863 {
1bd55598
RD
8864 arg8 = wxString_in_helper(obj7);
8865 if (arg8 == NULL) SWIG_fail;
8866 temp8 = true;
d55e5bfc 8867 }
1bd55598
RD
8868 }
8869 {
8870 if (!wxPyCheckForApp()) SWIG_fail;
8871 PyThreadState* __tstate = wxPyBeginAllowThreads();
8872 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
8873 wxPyEndAllowThreads(__tstate);
8874 if (PyErr_Occurred()) SWIG_fail;
8875 }
8876 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_NEW | 0 );
8877 {
8878 if (temp5) delete arg5;
8879 }
8880 {
8881 if (temp8)
8882 delete arg8;
8883 }
8884 return resultobj;
8885fail:
8886 {
8887 if (temp5) delete arg5;
8888 }
8889 {
8890 if (temp8)
8891 delete arg8;
8892 }
8893 return NULL;
d55e5bfc
RD
8894}
8895
8896
1bd55598
RD
8897SWIGINTERN PyObject *_wrap_new_PreListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8898 PyObject *resultobj = 0;
8899 wxListBox *result = 0 ;
8900
8901 if (!SWIG_Python_UnpackTuple(args,"new_PreListBox",0,0,0)) SWIG_fail;
8902 {
8903 if (!wxPyCheckForApp()) SWIG_fail;
8904 PyThreadState* __tstate = wxPyBeginAllowThreads();
8905 result = (wxListBox *)new wxListBox();
8906 wxPyEndAllowThreads(__tstate);
8907 if (PyErr_Occurred()) SWIG_fail;
8908 }
8909 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_OWN | 0 );
8910 return resultobj;
8911fail:
8912 return NULL;
8913}
8914
8915
8916SWIGINTERN PyObject *_wrap_ListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8917 PyObject *resultobj = 0;
8918 wxListBox *arg1 = (wxListBox *) 0 ;
8919 wxWindow *arg2 = (wxWindow *) 0 ;
8920 int arg3 = (int) -1 ;
8921 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8922 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8923 wxSize const &arg5_defvalue = wxDefaultSize ;
8924 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8925 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
8926 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
8927 long arg7 = (long) 0 ;
8928 wxValidator const &arg8_defvalue = wxDefaultValidator ;
8929 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
8930 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
8931 wxString *arg9 = (wxString *) &arg9_defvalue ;
8932 bool result;
8933 void *argp1 = 0 ;
8934 int res1 = 0 ;
8935 void *argp2 = 0 ;
8936 int res2 = 0 ;
8937 int val3 ;
8938 int ecode3 = 0 ;
8939 wxPoint temp4 ;
8940 wxSize temp5 ;
8941 bool temp6 = false ;
8942 long val7 ;
8943 int ecode7 = 0 ;
8944 void *argp8 = 0 ;
8945 int res8 = 0 ;
8946 bool temp9 = false ;
8947 PyObject * obj0 = 0 ;
8948 PyObject * obj1 = 0 ;
8949 PyObject * obj2 = 0 ;
8950 PyObject * obj3 = 0 ;
8951 PyObject * obj4 = 0 ;
8952 PyObject * obj5 = 0 ;
8953 PyObject * obj6 = 0 ;
8954 PyObject * obj7 = 0 ;
8955 PyObject * obj8 = 0 ;
8956 char * kwnames[] = {
8957 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8958 };
8959
8960 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
8961 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
8962 if (!SWIG_IsOK(res1)) {
8963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Create" "', expected argument " "1"" of type '" "wxListBox *""'");
8964 }
8965 arg1 = reinterpret_cast< wxListBox * >(argp1);
8966 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8967 if (!SWIG_IsOK(res2)) {
8968 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8969 }
8970 arg2 = reinterpret_cast< wxWindow * >(argp2);
8971 if (obj2) {
8972 ecode3 = SWIG_AsVal_int(obj2, &val3);
8973 if (!SWIG_IsOK(ecode3)) {
8974 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Create" "', expected argument " "3"" of type '" "int""'");
8975 }
8976 arg3 = static_cast< int >(val3);
8977 }
8978 if (obj3) {
d55e5bfc 8979 {
1bd55598
RD
8980 arg4 = &temp4;
8981 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 8982 }
1bd55598
RD
8983 }
8984 if (obj4) {
d55e5bfc 8985 {
1bd55598
RD
8986 arg5 = &temp5;
8987 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 8988 }
1bd55598
RD
8989 }
8990 if (obj5) {
943e8dfd 8991 {
1bd55598
RD
8992 if (! PySequence_Check(obj5)) {
8993 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8994 SWIG_fail;
8995 }
8996 arg6 = new wxArrayString;
8997 temp6 = true;
8998 int i, len=PySequence_Length(obj5);
8999 for (i=0; i<len; i++) {
9000 PyObject* item = PySequence_GetItem(obj5, i);
9001 wxString* s = wxString_in_helper(item);
9002 if (PyErr_Occurred()) SWIG_fail;
9003 arg6->Add(*s);
9004 delete s;
9005 Py_DECREF(item);
9006 }
943e8dfd 9007 }
1bd55598
RD
9008 }
9009 if (obj6) {
9010 ecode7 = SWIG_AsVal_long(obj6, &val7);
9011 if (!SWIG_IsOK(ecode7)) {
9012 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ListBox_Create" "', expected argument " "7"" of type '" "long""'");
9013 }
9014 arg7 = static_cast< long >(val7);
9015 }
9016 if (obj7) {
9017 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
9018 if (!SWIG_IsOK(res8)) {
9019 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
943e8dfd 9020 }
1bd55598
RD
9021 if (!argp8) {
9022 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
f20a2e1f 9023 }
1bd55598
RD
9024 arg8 = reinterpret_cast< wxValidator * >(argp8);
9025 }
9026 if (obj8) {
f20a2e1f 9027 {
1bd55598
RD
9028 arg9 = wxString_in_helper(obj8);
9029 if (arg9 == NULL) SWIG_fail;
9030 temp9 = true;
f20a2e1f 9031 }
1bd55598
RD
9032 }
9033 {
9034 PyThreadState* __tstate = wxPyBeginAllowThreads();
9035 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
9036 wxPyEndAllowThreads(__tstate);
9037 if (PyErr_Occurred()) SWIG_fail;
9038 }
9039 {
9040 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9041 }
9042 {
9043 if (temp6) delete arg6;
9044 }
9045 {
9046 if (temp9)
9047 delete arg9;
9048 }
9049 return resultobj;
9050fail:
9051 {
9052 if (temp6) delete arg6;
9053 }
9054 {
9055 if (temp9)
9056 delete arg9;
9057 }
9058 return NULL;
9059}
9060
9061
9062SWIGINTERN PyObject *_wrap_ListBox_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9063 PyObject *resultobj = 0;
9064 wxListBox *arg1 = (wxListBox *) 0 ;
9065 wxString *arg2 = 0 ;
9066 int arg3 ;
9067 PyObject *arg4 = (PyObject *) NULL ;
9068 void *argp1 = 0 ;
9069 int res1 = 0 ;
9070 bool temp2 = false ;
9071 int val3 ;
9072 int ecode3 = 0 ;
9073 PyObject * obj0 = 0 ;
9074 PyObject * obj1 = 0 ;
9075 PyObject * obj2 = 0 ;
9076 PyObject * obj3 = 0 ;
9077 char * kwnames[] = {
9078 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
9079 };
9080
9081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9083 if (!SWIG_IsOK(res1)) {
9084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Insert" "', expected argument " "1"" of type '" "wxListBox *""'");
9085 }
9086 arg1 = reinterpret_cast< wxListBox * >(argp1);
9087 {
9088 arg2 = wxString_in_helper(obj1);
9089 if (arg2 == NULL) SWIG_fail;
9090 temp2 = true;
9091 }
9092 ecode3 = SWIG_AsVal_int(obj2, &val3);
9093 if (!SWIG_IsOK(ecode3)) {
9094 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Insert" "', expected argument " "3"" of type '" "int""'");
9095 }
9096 arg3 = static_cast< int >(val3);
9097 if (obj3) {
9098 arg4 = obj3;
9099 }
9100 {
9101 PyThreadState* __tstate = wxPyBeginAllowThreads();
9102 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
9103 wxPyEndAllowThreads(__tstate);
9104 if (PyErr_Occurred()) SWIG_fail;
9105 }
9106 resultobj = SWIG_Py_Void();
9107 {
9108 if (temp2)
9109 delete arg2;
9110 }
9111 return resultobj;
9112fail:
9113 {
9114 if (temp2)
9115 delete arg2;
9116 }
9117 return NULL;
9118}
9119
9120
9121SWIGINTERN PyObject *_wrap_ListBox_InsertItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9122 PyObject *resultobj = 0;
9123 wxListBox *arg1 = (wxListBox *) 0 ;
9124 wxArrayString *arg2 = 0 ;
50f151d7 9125 unsigned int arg3 ;
1bd55598
RD
9126 void *argp1 = 0 ;
9127 int res1 = 0 ;
9128 bool temp2 = false ;
50f151d7 9129 unsigned int val3 ;
1bd55598
RD
9130 int ecode3 = 0 ;
9131 PyObject * obj0 = 0 ;
9132 PyObject * obj1 = 0 ;
9133 PyObject * obj2 = 0 ;
9134 char * kwnames[] = {
9135 (char *) "self",(char *) "items",(char *) "pos", NULL
9136 };
9137
9138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9140 if (!SWIG_IsOK(res1)) {
9141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_InsertItems" "', expected argument " "1"" of type '" "wxListBox *""'");
9142 }
9143 arg1 = reinterpret_cast< wxListBox * >(argp1);
9144 {
9145 if (! PySequence_Check(obj1)) {
9146 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9147 SWIG_fail;
9148 }
9149 arg2 = new wxArrayString;
9150 temp2 = true;
9151 int i, len=PySequence_Length(obj1);
9152 for (i=0; i<len; i++) {
9153 PyObject* item = PySequence_GetItem(obj1, i);
9154 wxString* s = wxString_in_helper(item);
9155 if (PyErr_Occurred()) SWIG_fail;
9156 arg2->Add(*s);
9157 delete s;
9158 Py_DECREF(item);
f20a2e1f 9159 }
1bd55598 9160 }
50f151d7 9161 ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
1bd55598 9162 if (!SWIG_IsOK(ecode3)) {
50f151d7 9163 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_InsertItems" "', expected argument " "3"" of type '" "unsigned int""'");
1bd55598 9164 }
50f151d7 9165 arg3 = static_cast< unsigned int >(val3);
1bd55598
RD
9166 {
9167 PyThreadState* __tstate = wxPyBeginAllowThreads();
9168 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
9169 wxPyEndAllowThreads(__tstate);
9170 if (PyErr_Occurred()) SWIG_fail;
9171 }
9172 resultobj = SWIG_Py_Void();
9173 {
9174 if (temp2) delete arg2;
9175 }
9176 return resultobj;
9177fail:
9178 {
9179 if (temp2) delete arg2;
9180 }
9181 return NULL;
f20a2e1f
RD
9182}
9183
9184
1bd55598
RD
9185SWIGINTERN PyObject *_wrap_ListBox_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9186 PyObject *resultobj = 0;
9187 wxListBox *arg1 = (wxListBox *) 0 ;
9188 wxArrayString *arg2 = 0 ;
9189 void *argp1 = 0 ;
9190 int res1 = 0 ;
9191 bool temp2 = false ;
9192 PyObject * obj0 = 0 ;
9193 PyObject * obj1 = 0 ;
9194 char * kwnames[] = {
9195 (char *) "self",(char *) "items", NULL
9196 };
9197
9198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) SWIG_fail;
9199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9200 if (!SWIG_IsOK(res1)) {
9201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Set" "', expected argument " "1"" of type '" "wxListBox *""'");
9202 }
9203 arg1 = reinterpret_cast< wxListBox * >(argp1);
9204 {
9205 if (! PySequence_Check(obj1)) {
9206 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9207 SWIG_fail;
9208 }
9209 arg2 = new wxArrayString;
9210 temp2 = true;
9211 int i, len=PySequence_Length(obj1);
9212 for (i=0; i<len; i++) {
9213 PyObject* item = PySequence_GetItem(obj1, i);
9214 wxString* s = wxString_in_helper(item);
9215 if (PyErr_Occurred()) SWIG_fail;
9216 arg2->Add(*s);
9217 delete s;
9218 Py_DECREF(item);
bfddbb17 9219 }
1bd55598
RD
9220 }
9221 {
9222 PyThreadState* __tstate = wxPyBeginAllowThreads();
9223 (arg1)->Set((wxArrayString const &)*arg2);
9224 wxPyEndAllowThreads(__tstate);
9225 if (PyErr_Occurred()) SWIG_fail;
9226 }
9227 resultobj = SWIG_Py_Void();
9228 {
9229 if (temp2) delete arg2;
9230 }
9231 return resultobj;
9232fail:
9233 {
9234 if (temp2) delete arg2;
9235 }
9236 return NULL;
9237}
9238
9239
9240SWIGINTERN PyObject *_wrap_ListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9241 PyObject *resultobj = 0;
9242 wxListBox *arg1 = (wxListBox *) 0 ;
9243 int arg2 ;
9244 bool result;
9245 void *argp1 = 0 ;
9246 int res1 = 0 ;
9247 int val2 ;
9248 int ecode2 = 0 ;
9249 PyObject * obj0 = 0 ;
9250 PyObject * obj1 = 0 ;
9251 char * kwnames[] = {
9252 (char *) "self",(char *) "n", NULL
9253 };
9254
9255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
9256 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9257 if (!SWIG_IsOK(res1)) {
9258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSelected" "', expected argument " "1"" of type '" "wxListBox const *""'");
9259 }
9260 arg1 = reinterpret_cast< wxListBox * >(argp1);
9261 ecode2 = SWIG_AsVal_int(obj1, &val2);
9262 if (!SWIG_IsOK(ecode2)) {
9263 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_IsSelected" "', expected argument " "2"" of type '" "int""'");
9264 }
9265 arg2 = static_cast< int >(val2);
9266 {
9267 PyThreadState* __tstate = wxPyBeginAllowThreads();
9268 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
9269 wxPyEndAllowThreads(__tstate);
9270 if (PyErr_Occurred()) SWIG_fail;
9271 }
9272 {
9273 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9274 }
9275 return resultobj;
9276fail:
9277 return NULL;
9278}
9279
9280
9281SWIGINTERN PyObject *_wrap_ListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9282 PyObject *resultobj = 0;
9283 wxListBox *arg1 = (wxListBox *) 0 ;
9284 int arg2 ;
9285 bool arg3 = (bool) true ;
9286 void *argp1 = 0 ;
9287 int res1 = 0 ;
9288 int val2 ;
9289 int ecode2 = 0 ;
9290 bool val3 ;
9291 int ecode3 = 0 ;
9292 PyObject * obj0 = 0 ;
9293 PyObject * obj1 = 0 ;
9294 PyObject * obj2 = 0 ;
9295 char * kwnames[] = {
9296 (char *) "self",(char *) "n",(char *) "select", NULL
9297 };
9298
9299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9300 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9301 if (!SWIG_IsOK(res1)) {
9302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9303 }
9304 arg1 = reinterpret_cast< wxListBox * >(argp1);
9305 ecode2 = SWIG_AsVal_int(obj1, &val2);
9306 if (!SWIG_IsOK(ecode2)) {
9307 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
9308 }
9309 arg2 = static_cast< int >(val2);
9310 if (obj2) {
9311 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9312 if (!SWIG_IsOK(ecode3)) {
9313 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetSelection" "', expected argument " "3"" of type '" "bool""'");
9314 }
9315 arg3 = static_cast< bool >(val3);
9316 }
9317 {
9318 PyThreadState* __tstate = wxPyBeginAllowThreads();
9319 (arg1)->SetSelection(arg2,arg3);
9320 wxPyEndAllowThreads(__tstate);
9321 if (PyErr_Occurred()) SWIG_fail;
9322 }
9323 resultobj = SWIG_Py_Void();
9324 return resultobj;
9325fail:
9326 return NULL;
9327}
9328
9329
9330SWIGINTERN PyObject *_wrap_ListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9331 PyObject *resultobj = 0;
9332 wxListBox *arg1 = (wxListBox *) 0 ;
9333 int arg2 ;
9334 void *argp1 = 0 ;
9335 int res1 = 0 ;
9336 int val2 ;
9337 int ecode2 = 0 ;
9338 PyObject * obj0 = 0 ;
9339 PyObject * obj1 = 0 ;
9340 char * kwnames[] = {
9341 (char *) "self",(char *) "n", NULL
9342 };
9343
9344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) SWIG_fail;
9345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9346 if (!SWIG_IsOK(res1)) {
9347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Select" "', expected argument " "1"" of type '" "wxListBox *""'");
9348 }
9349 arg1 = reinterpret_cast< wxListBox * >(argp1);
9350 ecode2 = SWIG_AsVal_int(obj1, &val2);
9351 if (!SWIG_IsOK(ecode2)) {
9352 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Select" "', expected argument " "2"" of type '" "int""'");
9353 }
9354 arg2 = static_cast< int >(val2);
9355 {
9356 PyThreadState* __tstate = wxPyBeginAllowThreads();
9357 (arg1)->Select(arg2);
9358 wxPyEndAllowThreads(__tstate);
9359 if (PyErr_Occurred()) SWIG_fail;
9360 }
9361 resultobj = SWIG_Py_Void();
9362 return resultobj;
9363fail:
9364 return NULL;
9365}
9366
9367
9368SWIGINTERN PyObject *_wrap_ListBox_Deselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9369 PyObject *resultobj = 0;
9370 wxListBox *arg1 = (wxListBox *) 0 ;
9371 int arg2 ;
9372 void *argp1 = 0 ;
9373 int res1 = 0 ;
9374 int val2 ;
9375 int ecode2 = 0 ;
9376 PyObject * obj0 = 0 ;
9377 PyObject * obj1 = 0 ;
9378 char * kwnames[] = {
9379 (char *) "self",(char *) "n", NULL
9380 };
9381
9382 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) SWIG_fail;
9383 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9384 if (!SWIG_IsOK(res1)) {
9385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Deselect" "', expected argument " "1"" of type '" "wxListBox *""'");
9386 }
9387 arg1 = reinterpret_cast< wxListBox * >(argp1);
9388 ecode2 = SWIG_AsVal_int(obj1, &val2);
9389 if (!SWIG_IsOK(ecode2)) {
9390 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Deselect" "', expected argument " "2"" of type '" "int""'");
9391 }
9392 arg2 = static_cast< int >(val2);
9393 {
9394 PyThreadState* __tstate = wxPyBeginAllowThreads();
9395 (arg1)->Deselect(arg2);
9396 wxPyEndAllowThreads(__tstate);
9397 if (PyErr_Occurred()) SWIG_fail;
9398 }
9399 resultobj = SWIG_Py_Void();
9400 return resultobj;
9401fail:
9402 return NULL;
9403}
9404
9405
9406SWIGINTERN PyObject *_wrap_ListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9407 PyObject *resultobj = 0;
9408 wxListBox *arg1 = (wxListBox *) 0 ;
9409 int arg2 = (int) -1 ;
9410 void *argp1 = 0 ;
9411 int res1 = 0 ;
9412 int val2 ;
9413 int ecode2 = 0 ;
9414 PyObject * obj0 = 0 ;
9415 PyObject * obj1 = 0 ;
9416 char * kwnames[] = {
9417 (char *) "self",(char *) "itemToLeaveSelected", NULL
9418 };
9419
9420 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) SWIG_fail;
9421 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9422 if (!SWIG_IsOK(res1)) {
9423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_DeselectAll" "', expected argument " "1"" of type '" "wxListBox *""'");
9424 }
9425 arg1 = reinterpret_cast< wxListBox * >(argp1);
9426 if (obj1) {
9427 ecode2 = SWIG_AsVal_int(obj1, &val2);
9428 if (!SWIG_IsOK(ecode2)) {
9429 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_DeselectAll" "', expected argument " "2"" of type '" "int""'");
9430 }
9431 arg2 = static_cast< int >(val2);
9432 }
9433 {
9434 PyThreadState* __tstate = wxPyBeginAllowThreads();
9435 (arg1)->DeselectAll(arg2);
9436 wxPyEndAllowThreads(__tstate);
9437 if (PyErr_Occurred()) SWIG_fail;
9438 }
9439 resultobj = SWIG_Py_Void();
9440 return resultobj;
9441fail:
9442 return NULL;
9443}
9444
9445
9446SWIGINTERN PyObject *_wrap_ListBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9447 PyObject *resultobj = 0;
9448 wxListBox *arg1 = (wxListBox *) 0 ;
9449 wxString *arg2 = 0 ;
9450 bool arg3 = (bool) true ;
9451 bool result;
9452 void *argp1 = 0 ;
9453 int res1 = 0 ;
9454 bool temp2 = false ;
9455 bool val3 ;
9456 int ecode3 = 0 ;
9457 PyObject * obj0 = 0 ;
9458 PyObject * obj1 = 0 ;
9459 PyObject * obj2 = 0 ;
9460 char * kwnames[] = {
9461 (char *) "self",(char *) "s",(char *) "select", NULL
9462 };
9463
9464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9466 if (!SWIG_IsOK(res1)) {
9467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetStringSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9468 }
9469 arg1 = reinterpret_cast< wxListBox * >(argp1);
9470 {
9471 arg2 = wxString_in_helper(obj1);
9472 if (arg2 == NULL) SWIG_fail;
9473 temp2 = true;
9474 }
9475 if (obj2) {
9476 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9477 if (!SWIG_IsOK(ecode3)) {
9478 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetStringSelection" "', expected argument " "3"" of type '" "bool""'");
9479 }
9480 arg3 = static_cast< bool >(val3);
9481 }
9482 {
9483 PyThreadState* __tstate = wxPyBeginAllowThreads();
9484 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
9485 wxPyEndAllowThreads(__tstate);
9486 if (PyErr_Occurred()) SWIG_fail;
9487 }
9488 {
9489 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9490 }
9491 {
9492 if (temp2)
9493 delete arg2;
9494 }
9495 return resultobj;
9496fail:
9497 {
9498 if (temp2)
9499 delete arg2;
9500 }
9501 return NULL;
d55e5bfc
RD
9502}
9503
9504
1bd55598
RD
9505SWIGINTERN PyObject *_wrap_ListBox_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9506 PyObject *resultobj = 0;
9507 wxListBox *arg1 = (wxListBox *) 0 ;
9508 PyObject *result = 0 ;
9509 void *argp1 = 0 ;
9510 int res1 = 0 ;
9511 PyObject *swig_obj[1] ;
9512
9513 if (!args) SWIG_fail;
9514 swig_obj[0] = args;
9515 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9516 if (!SWIG_IsOK(res1)) {
9517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_GetSelections" "', expected argument " "1"" of type '" "wxListBox *""'");
9518 }
9519 arg1 = reinterpret_cast< wxListBox * >(argp1);
9520 {
9521 PyThreadState* __tstate = wxPyBeginAllowThreads();
9522 result = (PyObject *)wxListBox_GetSelections(arg1);
9523 wxPyEndAllowThreads(__tstate);
9524 if (PyErr_Occurred()) SWIG_fail;
9525 }
9526 resultobj = result;
9527 return resultobj;
9528fail:
9529 return NULL;
9530}
9531
9532
9533SWIGINTERN PyObject *_wrap_ListBox_SetFirstItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9534 PyObject *resultobj = 0;
9535 wxListBox *arg1 = (wxListBox *) 0 ;
9536 int arg2 ;
9537 void *argp1 = 0 ;
9538 int res1 = 0 ;
9539 int val2 ;
9540 int ecode2 = 0 ;
9541 PyObject * obj0 = 0 ;
9542 PyObject * obj1 = 0 ;
9543 char * kwnames[] = {
9544 (char *) "self",(char *) "n", NULL
9545 };
9546
9547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) SWIG_fail;
9548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9549 if (!SWIG_IsOK(res1)) {
9550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItem" "', expected argument " "1"" of type '" "wxListBox *""'");
9551 }
9552 arg1 = reinterpret_cast< wxListBox * >(argp1);
9553 ecode2 = SWIG_AsVal_int(obj1, &val2);
9554 if (!SWIG_IsOK(ecode2)) {
9555 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetFirstItem" "', expected argument " "2"" of type '" "int""'");
9556 }
9557 arg2 = static_cast< int >(val2);
9558 {
9559 PyThreadState* __tstate = wxPyBeginAllowThreads();
9560 (arg1)->SetFirstItem(arg2);
9561 wxPyEndAllowThreads(__tstate);
9562 if (PyErr_Occurred()) SWIG_fail;
9563 }
9564 resultobj = SWIG_Py_Void();
9565 return resultobj;
9566fail:
9567 return NULL;
9568}
9569
9570
9571SWIGINTERN PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9572 PyObject *resultobj = 0;
9573 wxListBox *arg1 = (wxListBox *) 0 ;
9574 wxString *arg2 = 0 ;
9575 void *argp1 = 0 ;
9576 int res1 = 0 ;
9577 bool temp2 = false ;
9578 PyObject * obj0 = 0 ;
9579 PyObject * obj1 = 0 ;
9580 char * kwnames[] = {
9581 (char *) "self",(char *) "s", NULL
9582 };
9583
9584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) SWIG_fail;
9585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9586 if (!SWIG_IsOK(res1)) {
9587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItemStr" "', expected argument " "1"" of type '" "wxListBox *""'");
9588 }
9589 arg1 = reinterpret_cast< wxListBox * >(argp1);
9590 {
9591 arg2 = wxString_in_helper(obj1);
9592 if (arg2 == NULL) SWIG_fail;
9593 temp2 = true;
9594 }
9595 {
9596 PyThreadState* __tstate = wxPyBeginAllowThreads();
9597 (arg1)->SetFirstItem((wxString const &)*arg2);
9598 wxPyEndAllowThreads(__tstate);
9599 if (PyErr_Occurred()) SWIG_fail;
9600 }
9601 resultobj = SWIG_Py_Void();
9602 {
9603 if (temp2)
9604 delete arg2;
9605 }
9606 return resultobj;
9607fail:
9608 {
9609 if (temp2)
9610 delete arg2;
9611 }
9612 return NULL;
9613}
9614
9615
9616SWIGINTERN PyObject *_wrap_ListBox_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9617 PyObject *resultobj = 0;
9618 wxListBox *arg1 = (wxListBox *) 0 ;
9619 int arg2 ;
9620 void *argp1 = 0 ;
9621 int res1 = 0 ;
9622 int val2 ;
9623 int ecode2 = 0 ;
9624 PyObject * obj0 = 0 ;
9625 PyObject * obj1 = 0 ;
9626 char * kwnames[] = {
9627 (char *) "self",(char *) "n", NULL
9628 };
9629
9630 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9631 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9632 if (!SWIG_IsOK(res1)) {
9633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_EnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9634 }
9635 arg1 = reinterpret_cast< wxListBox * >(argp1);
9636 ecode2 = SWIG_AsVal_int(obj1, &val2);
9637 if (!SWIG_IsOK(ecode2)) {
9638 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_EnsureVisible" "', expected argument " "2"" of type '" "int""'");
9639 }
9640 arg2 = static_cast< int >(val2);
9641 {
9642 PyThreadState* __tstate = wxPyBeginAllowThreads();
9643 (arg1)->EnsureVisible(arg2);
9644 wxPyEndAllowThreads(__tstate);
9645 if (PyErr_Occurred()) SWIG_fail;
9646 }
9647 resultobj = SWIG_Py_Void();
9648 return resultobj;
9649fail:
9650 return NULL;
9651}
9652
9653
9654SWIGINTERN PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9655 PyObject *resultobj = 0;
9656 wxListBox *arg1 = (wxListBox *) 0 ;
9657 wxString *arg2 = 0 ;
9658 void *argp1 = 0 ;
9659 int res1 = 0 ;
9660 bool temp2 = false ;
9661 PyObject * obj0 = 0 ;
9662 PyObject * obj1 = 0 ;
9663 char * kwnames[] = {
9664 (char *) "self",(char *) "s", NULL
9665 };
9666
9667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9668 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9669 if (!SWIG_IsOK(res1)) {
9670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_AppendAndEnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9671 }
9672 arg1 = reinterpret_cast< wxListBox * >(argp1);
9673 {
9674 arg2 = wxString_in_helper(obj1);
9675 if (arg2 == NULL) SWIG_fail;
9676 temp2 = true;
9677 }
9678 {
9679 PyThreadState* __tstate = wxPyBeginAllowThreads();
9680 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
9681 wxPyEndAllowThreads(__tstate);
9682 if (PyErr_Occurred()) SWIG_fail;
9683 }
9684 resultobj = SWIG_Py_Void();
9685 {
9686 if (temp2)
9687 delete arg2;
9688 }
9689 return resultobj;
9690fail:
9691 {
9692 if (temp2)
9693 delete arg2;
9694 }
9695 return NULL;
d55e5bfc
RD
9696}
9697
9698
1bd55598
RD
9699SWIGINTERN PyObject *_wrap_ListBox_IsSorted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9700 PyObject *resultobj = 0;
9701 wxListBox *arg1 = (wxListBox *) 0 ;
9702 bool result;
9703 void *argp1 = 0 ;
9704 int res1 = 0 ;
9705 PyObject *swig_obj[1] ;
9706
9707 if (!args) SWIG_fail;
9708 swig_obj[0] = args;
9709 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9710 if (!SWIG_IsOK(res1)) {
9711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSorted" "', expected argument " "1"" of type '" "wxListBox const *""'");
9712 }
9713 arg1 = reinterpret_cast< wxListBox * >(argp1);
9714 {
9715 PyThreadState* __tstate = wxPyBeginAllowThreads();
9716 result = (bool)((wxListBox const *)arg1)->IsSorted();
9717 wxPyEndAllowThreads(__tstate);
9718 if (PyErr_Occurred()) SWIG_fail;
9719 }
9720 {
9721 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9722 }
9723 return resultobj;
9724fail:
9725 return NULL;
9726}
9727
9728
9729SWIGINTERN PyObject *_wrap_ListBox_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9730 PyObject *resultobj = 0;
9731 wxListBox *arg1 = (wxListBox *) 0 ;
9732 wxPoint *arg2 = 0 ;
9733 int result;
9734 void *argp1 = 0 ;
9735 int res1 = 0 ;
9736 wxPoint temp2 ;
9737 PyObject * obj0 = 0 ;
9738 PyObject * obj1 = 0 ;
9739 char * kwnames[] = {
9740 (char *) "self",(char *) "pt", NULL
9741 };
9742
9743 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
9744 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9745 if (!SWIG_IsOK(res1)) {
9746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_HitTest" "', expected argument " "1"" of type '" "wxListBox const *""'");
9747 }
9748 arg1 = reinterpret_cast< wxListBox * >(argp1);
9749 {
9750 arg2 = &temp2;
9751 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9752 }
9753 {
9754 PyThreadState* __tstate = wxPyBeginAllowThreads();
9755 result = (int)((wxListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
9756 wxPyEndAllowThreads(__tstate);
9757 if (PyErr_Occurred()) SWIG_fail;
9758 }
9759 resultobj = SWIG_From_int(static_cast< int >(result));
9760 return resultobj;
9761fail:
9762 return NULL;
9763}
9764
9765
9766SWIGINTERN PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9767 PyObject *resultobj = 0;
9768 wxListBox *arg1 = (wxListBox *) 0 ;
9769 int arg2 ;
9770 wxColour *arg3 = 0 ;
9771 void *argp1 = 0 ;
9772 int res1 = 0 ;
9773 int val2 ;
9774 int ecode2 = 0 ;
9775 wxColour temp3 ;
9776 PyObject * obj0 = 0 ;
9777 PyObject * obj1 = 0 ;
9778 PyObject * obj2 = 0 ;
9779 char * kwnames[] = {
9780 (char *) "self",(char *) "item",(char *) "c", NULL
9781 };
9782
9783 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9784 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9785 if (!SWIG_IsOK(res1)) {
9786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9787 }
9788 arg1 = reinterpret_cast< wxListBox * >(argp1);
9789 ecode2 = SWIG_AsVal_int(obj1, &val2);
9790 if (!SWIG_IsOK(ecode2)) {
9791 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "2"" of type '" "int""'");
9792 }
9793 arg2 = static_cast< int >(val2);
9794 {
9795 arg3 = &temp3;
9796 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9797 }
9798 {
9799 PyThreadState* __tstate = wxPyBeginAllowThreads();
9800 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
9801 wxPyEndAllowThreads(__tstate);
9802 if (PyErr_Occurred()) SWIG_fail;
9803 }
9804 resultobj = SWIG_Py_Void();
9805 return resultobj;
9806fail:
9807 return NULL;
9808}
9809
9810
9811SWIGINTERN PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9812 PyObject *resultobj = 0;
9813 wxListBox *arg1 = (wxListBox *) 0 ;
9814 int arg2 ;
9815 wxColour *arg3 = 0 ;
9816 void *argp1 = 0 ;
9817 int res1 = 0 ;
9818 int val2 ;
9819 int ecode2 = 0 ;
9820 wxColour temp3 ;
9821 PyObject * obj0 = 0 ;
9822 PyObject * obj1 = 0 ;
9823 PyObject * obj2 = 0 ;
9824 char * kwnames[] = {
9825 (char *) "self",(char *) "item",(char *) "c", NULL
9826 };
9827
9828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9830 if (!SWIG_IsOK(res1)) {
9831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9832 }
9833 arg1 = reinterpret_cast< wxListBox * >(argp1);
9834 ecode2 = SWIG_AsVal_int(obj1, &val2);
9835 if (!SWIG_IsOK(ecode2)) {
9836 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "2"" of type '" "int""'");
9837 }
9838 arg2 = static_cast< int >(val2);
9839 {
9840 arg3 = &temp3;
9841 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9842 }
9843 {
9844 PyThreadState* __tstate = wxPyBeginAllowThreads();
9845 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
9846 wxPyEndAllowThreads(__tstate);
9847 if (PyErr_Occurred()) SWIG_fail;
9848 }
9849 resultobj = SWIG_Py_Void();
9850 return resultobj;
9851fail:
9852 return NULL;
9853}
9854
9855
9856SWIGINTERN PyObject *_wrap_ListBox_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9857 PyObject *resultobj = 0;
9858 wxListBox *arg1 = (wxListBox *) 0 ;
9859 int arg2 ;
9860 wxFont *arg3 = 0 ;
9861 void *argp1 = 0 ;
9862 int res1 = 0 ;
9863 int val2 ;
9864 int ecode2 = 0 ;
9865 void *argp3 = 0 ;
9866 int res3 = 0 ;
9867 PyObject * obj0 = 0 ;
9868 PyObject * obj1 = 0 ;
9869 PyObject * obj2 = 0 ;
9870 char * kwnames[] = {
9871 (char *) "self",(char *) "item",(char *) "f", NULL
9872 };
9873
9874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9876 if (!SWIG_IsOK(res1)) {
9877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemFont" "', expected argument " "1"" of type '" "wxListBox *""'");
9878 }
9879 arg1 = reinterpret_cast< wxListBox * >(argp1);
9880 ecode2 = SWIG_AsVal_int(obj1, &val2);
9881 if (!SWIG_IsOK(ecode2)) {
9882 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemFont" "', expected argument " "2"" of type '" "int""'");
9883 }
9884 arg2 = static_cast< int >(val2);
9885 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
9886 if (!SWIG_IsOK(res3)) {
9887 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9888 }
9889 if (!argp3) {
9890 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9891 }
9892 arg3 = reinterpret_cast< wxFont * >(argp3);
9893 {
9894 PyThreadState* __tstate = wxPyBeginAllowThreads();
9895 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
9896 wxPyEndAllowThreads(__tstate);
9897 if (PyErr_Occurred()) SWIG_fail;
9898 }
9899 resultobj = SWIG_Py_Void();
9900 return resultobj;
9901fail:
9902 return NULL;
9903}
9904
9905
9906SWIGINTERN PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9907 PyObject *resultobj = 0;
9908 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
9909 SwigValueWrapper<wxVisualAttributes > result;
9910 int val1 ;
9911 int ecode1 = 0 ;
9912 PyObject * obj0 = 0 ;
9913 char * kwnames[] = {
9914 (char *) "variant", NULL
9915 };
9916
9917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
9918 if (obj0) {
9919 ecode1 = SWIG_AsVal_int(obj0, &val1);
9920 if (!SWIG_IsOK(ecode1)) {
9921 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
9922 }
9923 arg1 = static_cast< wxWindowVariant >(val1);
9924 }
9925 {
9926 if (!wxPyCheckForApp()) SWIG_fail;
9927 PyThreadState* __tstate = wxPyBeginAllowThreads();
9928 result = wxListBox::GetClassDefaultAttributes(arg1);
9929 wxPyEndAllowThreads(__tstate);
9930 if (PyErr_Occurred()) SWIG_fail;
9931 }
9932 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
9933 return resultobj;
9934fail:
9935 return NULL;
9936}
9937
9938
9939SWIGINTERN PyObject *ListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9940 PyObject *obj;
9941 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9942 SWIG_TypeNewClientData(SWIGTYPE_p_wxListBox, SWIG_NewClientData(obj));
9943 return SWIG_Py_Void();
9944}
9945
9946SWIGINTERN PyObject *ListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9947 return SWIG_Python_InitShadowInstance(args);
9948}
9949
9950SWIGINTERN PyObject *_wrap_new_CheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9951 PyObject *resultobj = 0;
9952 wxWindow *arg1 = (wxWindow *) 0 ;
9953 int arg2 = (int) -1 ;
9954 wxPoint const &arg3_defvalue = wxDefaultPosition ;
9955 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
9956 wxSize const &arg4_defvalue = wxDefaultSize ;
9957 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
9958 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
9959 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
9960 long arg6 = (long) 0 ;
9961 wxValidator const &arg7_defvalue = wxDefaultValidator ;
9962 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
9963 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
9964 wxString *arg8 = (wxString *) &arg8_defvalue ;
9965 wxCheckListBox *result = 0 ;
9966 void *argp1 = 0 ;
9967 int res1 = 0 ;
9968 int val2 ;
9969 int ecode2 = 0 ;
9970 wxPoint temp3 ;
9971 wxSize temp4 ;
9972 bool temp5 = false ;
9973 long val6 ;
9974 int ecode6 = 0 ;
9975 void *argp7 = 0 ;
9976 int res7 = 0 ;
9977 bool temp8 = false ;
9978 PyObject * obj0 = 0 ;
9979 PyObject * obj1 = 0 ;
9980 PyObject * obj2 = 0 ;
9981 PyObject * obj3 = 0 ;
9982 PyObject * obj4 = 0 ;
9983 PyObject * obj5 = 0 ;
9984 PyObject * obj6 = 0 ;
9985 PyObject * obj7 = 0 ;
9986 char * kwnames[] = {
9987 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
9988 };
9989
9990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
9991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
9992 if (!SWIG_IsOK(res1)) {
9993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
9994 }
9995 arg1 = reinterpret_cast< wxWindow * >(argp1);
9996 if (obj1) {
9997 ecode2 = SWIG_AsVal_int(obj1, &val2);
9998 if (!SWIG_IsOK(ecode2)) {
9999 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckListBox" "', expected argument " "2"" of type '" "int""'");
10000 }
10001 arg2 = static_cast< int >(val2);
10002 }
10003 if (obj2) {
10004 {
10005 arg3 = &temp3;
10006 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
bfddbb17 10007 }
1bd55598
RD
10008 }
10009 if (obj3) {
10010 {
10011 arg4 = &temp4;
10012 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 10013 }
1bd55598
RD
10014 }
10015 if (obj4) {
10016 {
10017 if (! PySequence_Check(obj4)) {
10018 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10019 SWIG_fail;
10020 }
10021 arg5 = new wxArrayString;
10022 temp5 = true;
10023 int i, len=PySequence_Length(obj4);
10024 for (i=0; i<len; i++) {
10025 PyObject* item = PySequence_GetItem(obj4, i);
10026 wxString* s = wxString_in_helper(item);
10027 if (PyErr_Occurred()) SWIG_fail;
10028 arg5->Add(*s);
10029 delete s;
10030 Py_DECREF(item);
10031 }
d55e5bfc 10032 }
1bd55598
RD
10033 }
10034 if (obj5) {
10035 ecode6 = SWIG_AsVal_long(obj5, &val6);
10036 if (!SWIG_IsOK(ecode6)) {
10037 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckListBox" "', expected argument " "6"" of type '" "long""'");
10038 }
10039 arg6 = static_cast< long >(val6);
10040 }
10041 if (obj6) {
10042 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
10043 if (!SWIG_IsOK(res7)) {
10044 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 10045 }
1bd55598
RD
10046 if (!argp7) {
10047 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 10048 }
1bd55598
RD
10049 arg7 = reinterpret_cast< wxValidator * >(argp7);
10050 }
10051 if (obj7) {
10052 {
10053 arg8 = wxString_in_helper(obj7);
10054 if (arg8 == NULL) SWIG_fail;
10055 temp8 = true;
d55e5bfc 10056 }
1bd55598
RD
10057 }
10058 {
10059 if (!wxPyCheckForApp()) SWIG_fail;
10060 PyThreadState* __tstate = wxPyBeginAllowThreads();
10061 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10062 wxPyEndAllowThreads(__tstate);
10063 if (PyErr_Occurred()) SWIG_fail;
10064 }
10065 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_NEW | 0 );
10066 {
10067 if (temp5) delete arg5;
10068 }
10069 {
10070 if (temp8)
10071 delete arg8;
10072 }
10073 return resultobj;
10074fail:
10075 {
10076 if (temp5) delete arg5;
10077 }
10078 {
10079 if (temp8)
10080 delete arg8;
10081 }
10082 return NULL;
10083}
10084
10085
10086SWIGINTERN PyObject *_wrap_new_PreCheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10087 PyObject *resultobj = 0;
10088 wxCheckListBox *result = 0 ;
10089
10090 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckListBox",0,0,0)) SWIG_fail;
10091 {
10092 if (!wxPyCheckForApp()) SWIG_fail;
10093 PyThreadState* __tstate = wxPyBeginAllowThreads();
10094 result = (wxCheckListBox *)new wxCheckListBox();
10095 wxPyEndAllowThreads(__tstate);
10096 if (PyErr_Occurred()) SWIG_fail;
10097 }
10098 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_OWN | 0 );
10099 return resultobj;
10100fail:
10101 return NULL;
10102}
10103
10104
10105SWIGINTERN PyObject *_wrap_CheckListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10106 PyObject *resultobj = 0;
10107 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10108 wxWindow *arg2 = (wxWindow *) 0 ;
10109 int arg3 = (int) -1 ;
10110 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10111 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10112 wxSize const &arg5_defvalue = wxDefaultSize ;
10113 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10114 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
10115 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
10116 long arg7 = (long) 0 ;
10117 wxValidator const &arg8_defvalue = wxDefaultValidator ;
10118 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
10119 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
10120 wxString *arg9 = (wxString *) &arg9_defvalue ;
10121 bool result;
10122 void *argp1 = 0 ;
10123 int res1 = 0 ;
10124 void *argp2 = 0 ;
10125 int res2 = 0 ;
10126 int val3 ;
10127 int ecode3 = 0 ;
10128 wxPoint temp4 ;
10129 wxSize temp5 ;
10130 bool temp6 = false ;
10131 long val7 ;
10132 int ecode7 = 0 ;
10133 void *argp8 = 0 ;
10134 int res8 = 0 ;
10135 bool temp9 = false ;
10136 PyObject * obj0 = 0 ;
10137 PyObject * obj1 = 0 ;
10138 PyObject * obj2 = 0 ;
10139 PyObject * obj3 = 0 ;
10140 PyObject * obj4 = 0 ;
10141 PyObject * obj5 = 0 ;
10142 PyObject * obj6 = 0 ;
10143 PyObject * obj7 = 0 ;
10144 PyObject * obj8 = 0 ;
10145 char * kwnames[] = {
10146 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10147 };
10148
10149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
10150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10151 if (!SWIG_IsOK(res1)) {
10152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Create" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10153 }
10154 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10155 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
10156 if (!SWIG_IsOK(res2)) {
10157 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
10158 }
10159 arg2 = reinterpret_cast< wxWindow * >(argp2);
10160 if (obj2) {
10161 ecode3 = SWIG_AsVal_int(obj2, &val3);
10162 if (!SWIG_IsOK(ecode3)) {
10163 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Create" "', expected argument " "3"" of type '" "int""'");
10164 }
10165 arg3 = static_cast< int >(val3);
10166 }
10167 if (obj3) {
d55e5bfc 10168 {
1bd55598
RD
10169 arg4 = &temp4;
10170 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 10171 }
1bd55598
RD
10172 }
10173 if (obj4) {
d55e5bfc 10174 {
1bd55598
RD
10175 arg5 = &temp5;
10176 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 10177 }
1bd55598
RD
10178 }
10179 if (obj5) {
d55e5bfc 10180 {
1bd55598
RD
10181 if (! PySequence_Check(obj5)) {
10182 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10183 SWIG_fail;
10184 }
10185 arg6 = new wxArrayString;
10186 temp6 = true;
10187 int i, len=PySequence_Length(obj5);
10188 for (i=0; i<len; i++) {
10189 PyObject* item = PySequence_GetItem(obj5, i);
10190 wxString* s = wxString_in_helper(item);
10191 if (PyErr_Occurred()) SWIG_fail;
10192 arg6->Add(*s);
10193 delete s;
10194 Py_DECREF(item);
10195 }
10196 }
10197 }
10198 if (obj6) {
10199 ecode7 = SWIG_AsVal_long(obj6, &val7);
10200 if (!SWIG_IsOK(ecode7)) {
10201 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckListBox_Create" "', expected argument " "7"" of type '" "long""'");
10202 }
10203 arg7 = static_cast< long >(val7);
10204 }
10205 if (obj7) {
10206 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
10207 if (!SWIG_IsOK(res8)) {
10208 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10209 }
10210 if (!argp8) {
10211 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 10212 }
1bd55598
RD
10213 arg8 = reinterpret_cast< wxValidator * >(argp8);
10214 }
10215 if (obj8) {
d55e5bfc 10216 {
1bd55598
RD
10217 arg9 = wxString_in_helper(obj8);
10218 if (arg9 == NULL) SWIG_fail;
10219 temp9 = true;
d55e5bfc 10220 }
1bd55598
RD
10221 }
10222 {
10223 PyThreadState* __tstate = wxPyBeginAllowThreads();
10224 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
10225 wxPyEndAllowThreads(__tstate);
10226 if (PyErr_Occurred()) SWIG_fail;
10227 }
10228 {
10229 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10230 }
10231 {
10232 if (temp6) delete arg6;
10233 }
10234 {
10235 if (temp9)
10236 delete arg9;
10237 }
10238 return resultobj;
10239fail:
10240 {
10241 if (temp6) delete arg6;
10242 }
10243 {
10244 if (temp9)
10245 delete arg9;
10246 }
10247 return NULL;
10248}
10249
10250
10251SWIGINTERN PyObject *_wrap_CheckListBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10252 PyObject *resultobj = 0;
10253 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
50f151d7 10254 unsigned int arg2 ;
1bd55598
RD
10255 bool result;
10256 void *argp1 = 0 ;
10257 int res1 = 0 ;
50f151d7 10258 unsigned int val2 ;
1bd55598
RD
10259 int ecode2 = 0 ;
10260 PyObject * obj0 = 0 ;
10261 PyObject * obj1 = 0 ;
10262 char * kwnames[] = {
10263 (char *) "self",(char *) "index", NULL
10264 };
10265
10266 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail;
10267 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10268 if (!SWIG_IsOK(res1)) {
10269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10270 }
10271 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
50f151d7 10272 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
1bd55598 10273 if (!SWIG_IsOK(ecode2)) {
50f151d7 10274 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_IsChecked" "', expected argument " "2"" of type '" "unsigned int""'");
1bd55598 10275 }
50f151d7 10276 arg2 = static_cast< unsigned int >(val2);
1bd55598
RD
10277 {
10278 PyThreadState* __tstate = wxPyBeginAllowThreads();
10279 result = (bool)(arg1)->IsChecked(arg2);
10280 wxPyEndAllowThreads(__tstate);
10281 if (PyErr_Occurred()) SWIG_fail;
10282 }
10283 {
10284 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10285 }
10286 return resultobj;
10287fail:
10288 return NULL;
10289}
10290
10291
10292SWIGINTERN PyObject *_wrap_CheckListBox_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10293 PyObject *resultobj = 0;
10294 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
50f151d7 10295 unsigned int arg2 ;
1bd55598
RD
10296 int arg3 = (int) true ;
10297 void *argp1 = 0 ;
10298 int res1 = 0 ;
50f151d7 10299 unsigned int val2 ;
1bd55598
RD
10300 int ecode2 = 0 ;
10301 int val3 ;
10302 int ecode3 = 0 ;
10303 PyObject * obj0 = 0 ;
10304 PyObject * obj1 = 0 ;
10305 PyObject * obj2 = 0 ;
10306 char * kwnames[] = {
10307 (char *) "self",(char *) "index",(char *) "check", NULL
10308 };
10309
10310 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10311 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10312 if (!SWIG_IsOK(res1)) {
10313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Check" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10314 }
10315 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
50f151d7 10316 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
1bd55598 10317 if (!SWIG_IsOK(ecode2)) {
50f151d7 10318 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_Check" "', expected argument " "2"" of type '" "unsigned int""'");
1bd55598 10319 }
50f151d7 10320 arg2 = static_cast< unsigned int >(val2);
1bd55598
RD
10321 if (obj2) {
10322 ecode3 = SWIG_AsVal_int(obj2, &val3);
10323 if (!SWIG_IsOK(ecode3)) {
10324 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Check" "', expected argument " "3"" of type '" "int""'");
10325 }
10326 arg3 = static_cast< int >(val3);
10327 }
10328 {
10329 PyThreadState* __tstate = wxPyBeginAllowThreads();
10330 (arg1)->Check(arg2,arg3);
10331 wxPyEndAllowThreads(__tstate);
10332 if (PyErr_Occurred()) SWIG_fail;
10333 }
10334 resultobj = SWIG_Py_Void();
10335 return resultobj;
10336fail:
10337 return NULL;
d55e5bfc
RD
10338}
10339
10340
1bd55598
RD
10341SWIGINTERN PyObject *CheckListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10342 PyObject *obj;
10343 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10344 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckListBox, SWIG_NewClientData(obj));
10345 return SWIG_Py_Void();
d55e5bfc
RD
10346}
10347
1bd55598
RD
10348SWIGINTERN PyObject *CheckListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10349 return SWIG_Python_InitShadowInstance(args);
10350}
d55e5bfc 10351
1bd55598
RD
10352SWIGINTERN int TextCtrlNameStr_set(PyObject *) {
10353 SWIG_Error(SWIG_AttributeError,"Variable TextCtrlNameStr is read-only.");
10354 return 1;
d55e5bfc
RD
10355}
10356
10357
1bd55598
RD
10358SWIGINTERN PyObject *TextCtrlNameStr_get(void) {
10359 PyObject *pyobj = 0;
10360
10361 {
d55e5bfc 10362#if wxUSE_UNICODE
1bd55598 10363 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
d55e5bfc 10364#else
1bd55598 10365 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
d55e5bfc 10366#endif
1bd55598
RD
10367 }
10368 return pyobj;
10369}
10370
10371
10372SWIGINTERN PyObject *_wrap_new_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10373 PyObject *resultobj = 0;
10374 wxColour const &arg1_defvalue = wxNullColour ;
10375 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
10376 wxColour const &arg2_defvalue = wxNullColour ;
10377 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
10378 wxFont const &arg3_defvalue = wxNullFont ;
10379 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
10380 wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ;
10381 wxTextAttr *result = 0 ;
10382 wxColour temp1 ;
10383 wxColour temp2 ;
10384 void *argp3 = 0 ;
10385 int res3 = 0 ;
10386 int val4 ;
10387 int ecode4 = 0 ;
10388 PyObject * obj0 = 0 ;
10389 PyObject * obj1 = 0 ;
10390 PyObject * obj2 = 0 ;
10391 PyObject * obj3 = 0 ;
10392 char * kwnames[] = {
10393 (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL
10394 };
10395
10396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10397 if (obj0) {
d55e5bfc 10398 {
1bd55598
RD
10399 arg1 = &temp1;
10400 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
d55e5bfc 10401 }
1bd55598
RD
10402 }
10403 if (obj1) {
d55e5bfc 10404 {
1bd55598
RD
10405 arg2 = &temp2;
10406 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 10407 }
1bd55598
RD
10408 }
10409 if (obj2) {
10410 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
10411 if (!SWIG_IsOK(res3)) {
10412 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
d55e5bfc 10413 }
1bd55598
RD
10414 if (!argp3) {
10415 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
d55e5bfc 10416 }
1bd55598
RD
10417 arg3 = reinterpret_cast< wxFont * >(argp3);
10418 }
10419 if (obj3) {
10420 ecode4 = SWIG_AsVal_int(obj3, &val4);
10421 if (!SWIG_IsOK(ecode4)) {
10422 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextAttr" "', expected argument " "4"" of type '" "wxTextAttrAlignment""'");
10423 }
10424 arg4 = static_cast< wxTextAttrAlignment >(val4);
10425 }
10426 {
10427 PyThreadState* __tstate = wxPyBeginAllowThreads();
10428 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,arg4);
10429 wxPyEndAllowThreads(__tstate);
10430 if (PyErr_Occurred()) SWIG_fail;
10431 }
10432 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_NEW | 0 );
10433 return resultobj;
10434fail:
10435 return NULL;
d55e5bfc
RD
10436}
10437
10438
1bd55598
RD
10439SWIGINTERN PyObject *_wrap_delete_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10440 PyObject *resultobj = 0;
10441 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10442 void *argp1 = 0 ;
10443 int res1 = 0 ;
10444 PyObject *swig_obj[1] ;
10445
10446 if (!args) SWIG_fail;
10447 swig_obj[0] = args;
10448 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, SWIG_POINTER_DISOWN | 0 );
10449 if (!SWIG_IsOK(res1)) {
10450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TextAttr" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10451 }
10452 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10453 {
10454 PyThreadState* __tstate = wxPyBeginAllowThreads();
10455 delete arg1;
d55e5bfc 10456
1bd55598
RD
10457 wxPyEndAllowThreads(__tstate);
10458 if (PyErr_Occurred()) SWIG_fail;
10459 }
10460 resultobj = SWIG_Py_Void();
10461 return resultobj;
10462fail:
10463 return NULL;
d55e5bfc
RD
10464}
10465
10466
1bd55598
RD
10467SWIGINTERN PyObject *_wrap_TextAttr_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10468 PyObject *resultobj = 0;
10469 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10470 void *argp1 = 0 ;
10471 int res1 = 0 ;
10472 PyObject *swig_obj[1] ;
10473
10474 if (!args) SWIG_fail;
10475 swig_obj[0] = args;
10476 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10477 if (!SWIG_IsOK(res1)) {
10478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Init" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10479 }
10480 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10481 {
10482 PyThreadState* __tstate = wxPyBeginAllowThreads();
10483 (arg1)->Init();
10484 wxPyEndAllowThreads(__tstate);
10485 if (PyErr_Occurred()) SWIG_fail;
10486 }
10487 resultobj = SWIG_Py_Void();
10488 return resultobj;
10489fail:
10490 return NULL;
10491}
10492
10493
2131d850
RD
10494SWIGINTERN PyObject *_wrap_TextAttr_Merge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10495 PyObject *resultobj = 0;
10496 wxTextAttr *arg1 = 0 ;
10497 wxTextAttr *arg2 = 0 ;
10498 wxTextAttr result;
10499 void *argp1 = 0 ;
10500 int res1 = 0 ;
10501 void *argp2 = 0 ;
10502 int res2 = 0 ;
10503 PyObject * obj0 = 0 ;
10504 PyObject * obj1 = 0 ;
10505 char * kwnames[] = {
10506 (char *) "base",(char *) "overlay", NULL
10507 };
10508
10509 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_Merge",kwnames,&obj0,&obj1)) SWIG_fail;
10510 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
10511 if (!SWIG_IsOK(res1)) {
10512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10513 }
10514 if (!argp1) {
10515 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10516 }
10517 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10518 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
10519 if (!SWIG_IsOK(res2)) {
10520 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10521 }
10522 if (!argp2) {
10523 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10524 }
10525 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
10526 {
10527 PyThreadState* __tstate = wxPyBeginAllowThreads();
10528 result = wxTextAttr::Merge((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2);
10529 wxPyEndAllowThreads(__tstate);
10530 if (PyErr_Occurred()) SWIG_fail;
10531 }
10532 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
10533 return resultobj;
10534fail:
10535 return NULL;
10536}
10537
10538
1bd55598
RD
10539SWIGINTERN PyObject *_wrap_TextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10540 PyObject *resultobj = 0;
10541 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10542 wxColour *arg2 = 0 ;
10543 void *argp1 = 0 ;
10544 int res1 = 0 ;
10545 wxColour temp2 ;
10546 PyObject * obj0 = 0 ;
10547 PyObject * obj1 = 0 ;
10548 char * kwnames[] = {
10549 (char *) "self",(char *) "colText", NULL
10550 };
10551
10552 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
10553 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10554 if (!SWIG_IsOK(res1)) {
10555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10556 }
10557 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10558 {
10559 arg2 = &temp2;
10560 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10561 }
10562 {
10563 PyThreadState* __tstate = wxPyBeginAllowThreads();
10564 (arg1)->SetTextColour((wxColour const &)*arg2);
10565 wxPyEndAllowThreads(__tstate);
10566 if (PyErr_Occurred()) SWIG_fail;
10567 }
10568 resultobj = SWIG_Py_Void();
10569 return resultobj;
10570fail:
10571 return NULL;
10572}
10573
10574
10575SWIGINTERN PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10576 PyObject *resultobj = 0;
10577 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10578 wxColour *arg2 = 0 ;
10579 void *argp1 = 0 ;
10580 int res1 = 0 ;
10581 wxColour temp2 ;
10582 PyObject * obj0 = 0 ;
10583 PyObject * obj1 = 0 ;
10584 char * kwnames[] = {
10585 (char *) "self",(char *) "colBack", NULL
10586 };
10587
10588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
10589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10590 if (!SWIG_IsOK(res1)) {
10591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10592 }
10593 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10594 {
10595 arg2 = &temp2;
10596 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10597 }
10598 {
10599 PyThreadState* __tstate = wxPyBeginAllowThreads();
10600 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
10601 wxPyEndAllowThreads(__tstate);
10602 if (PyErr_Occurred()) SWIG_fail;
10603 }
10604 resultobj = SWIG_Py_Void();
10605 return resultobj;
10606fail:
10607 return NULL;
10608}
10609
10610
10611SWIGINTERN PyObject *_wrap_TextAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10612 PyObject *resultobj = 0;
10613 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10614 wxFont *arg2 = 0 ;
10615 long arg3 = (long) wxTEXT_ATTR_FONT ;
10616 void *argp1 = 0 ;
10617 int res1 = 0 ;
10618 void *argp2 = 0 ;
10619 int res2 = 0 ;
10620 long val3 ;
10621 int ecode3 = 0 ;
10622 PyObject * obj0 = 0 ;
10623 PyObject * obj1 = 0 ;
10624 PyObject * obj2 = 0 ;
10625 char * kwnames[] = {
10626 (char *) "self",(char *) "font",(char *) "flags", NULL
10627 };
10628
10629 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10630 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10631 if (!SWIG_IsOK(res1)) {
10632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFont" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10633 }
10634 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10635 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
10636 if (!SWIG_IsOK(res2)) {
10637 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10638 }
10639 if (!argp2) {
10640 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10641 }
10642 arg2 = reinterpret_cast< wxFont * >(argp2);
10643 if (obj2) {
10644 ecode3 = SWIG_AsVal_long(obj2, &val3);
10645 if (!SWIG_IsOK(ecode3)) {
10646 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetFont" "', expected argument " "3"" of type '" "long""'");
10647 }
10648 arg3 = static_cast< long >(val3);
10649 }
10650 {
10651 PyThreadState* __tstate = wxPyBeginAllowThreads();
10652 (arg1)->SetFont((wxFont const &)*arg2,arg3);
10653 wxPyEndAllowThreads(__tstate);
10654 if (PyErr_Occurred()) SWIG_fail;
10655 }
10656 resultobj = SWIG_Py_Void();
10657 return resultobj;
10658fail:
10659 return NULL;
10660}
10661
10662
10663SWIGINTERN PyObject *_wrap_TextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10664 PyObject *resultobj = 0;
10665 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10666 wxTextAttrAlignment arg2 ;
10667 void *argp1 = 0 ;
10668 int res1 = 0 ;
10669 int val2 ;
10670 int ecode2 = 0 ;
10671 PyObject * obj0 = 0 ;
10672 PyObject * obj1 = 0 ;
10673 char * kwnames[] = {
10674 (char *) "self",(char *) "alignment", NULL
10675 };
10676
10677 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail;
10678 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10679 if (!SWIG_IsOK(res1)) {
10680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10681 }
10682 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10683 ecode2 = SWIG_AsVal_int(obj1, &val2);
10684 if (!SWIG_IsOK(ecode2)) {
10685 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
10686 }
10687 arg2 = static_cast< wxTextAttrAlignment >(val2);
10688 {
10689 PyThreadState* __tstate = wxPyBeginAllowThreads();
10690 (arg1)->SetAlignment(arg2);
10691 wxPyEndAllowThreads(__tstate);
10692 if (PyErr_Occurred()) SWIG_fail;
10693 }
10694 resultobj = SWIG_Py_Void();
10695 return resultobj;
10696fail:
10697 return NULL;
10698}
10699
10700
10701SWIGINTERN PyObject *_wrap_TextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10702 PyObject *resultobj = 0;
10703 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10704 wxArrayInt *arg2 = 0 ;
10705 void *argp1 = 0 ;
10706 int res1 = 0 ;
10707 bool temp2 = false ;
10708 PyObject * obj0 = 0 ;
10709 PyObject * obj1 = 0 ;
10710 char * kwnames[] = {
10711 (char *) "self",(char *) "tabs", NULL
10712 };
10713
10714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail;
10715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10716 if (!SWIG_IsOK(res1)) {
10717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTabs" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10718 }
10719 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10720 {
10721 if (! PySequence_Check(obj1)) {
10722 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10723 SWIG_fail;
10724 }
10725 arg2 = new wxArrayInt;
10726 temp2 = true;
10727 int i, len=PySequence_Length(obj1);
10728 for (i=0; i<len; i++) {
10729 PyObject* item = PySequence_GetItem(obj1, i);
10730 PyObject* number = PyNumber_Int(item);
10731 arg2->Add(PyInt_AS_LONG(number));
10732 Py_DECREF(item);
10733 Py_DECREF(number);
d55e5bfc 10734 }
1bd55598
RD
10735 }
10736 {
10737 PyThreadState* __tstate = wxPyBeginAllowThreads();
10738 (arg1)->SetTabs((wxArrayInt const &)*arg2);
10739 wxPyEndAllowThreads(__tstate);
10740 if (PyErr_Occurred()) SWIG_fail;
10741 }
10742 resultobj = SWIG_Py_Void();
10743 {
10744 if (temp2) delete arg2;
10745 }
10746 return resultobj;
10747fail:
10748 {
10749 if (temp2) delete arg2;
10750 }
10751 return NULL;
10752}
10753
10754
10755SWIGINTERN PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10756 PyObject *resultobj = 0;
10757 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10758 int arg2 ;
10759 int arg3 = (int) 0 ;
10760 void *argp1 = 0 ;
10761 int res1 = 0 ;
10762 int val2 ;
10763 int ecode2 = 0 ;
10764 int val3 ;
10765 int ecode3 = 0 ;
10766 PyObject * obj0 = 0 ;
10767 PyObject * obj1 = 0 ;
10768 PyObject * obj2 = 0 ;
10769 char * kwnames[] = {
10770 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
10771 };
10772
10773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10774 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10775 if (!SWIG_IsOK(res1)) {
10776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10777 }
10778 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10779 ecode2 = SWIG_AsVal_int(obj1, &val2);
10780 if (!SWIG_IsOK(ecode2)) {
10781 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'");
10782 }
10783 arg2 = static_cast< int >(val2);
10784 if (obj2) {
10785 ecode3 = SWIG_AsVal_int(obj2, &val3);
10786 if (!SWIG_IsOK(ecode3)) {
10787 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'");
10788 }
10789 arg3 = static_cast< int >(val3);
10790 }
10791 {
10792 PyThreadState* __tstate = wxPyBeginAllowThreads();
10793 (arg1)->SetLeftIndent(arg2,arg3);
10794 wxPyEndAllowThreads(__tstate);
10795 if (PyErr_Occurred()) SWIG_fail;
10796 }
10797 resultobj = SWIG_Py_Void();
10798 return resultobj;
10799fail:
10800 return NULL;
10801}
10802
10803
10804SWIGINTERN PyObject *_wrap_TextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10805 PyObject *resultobj = 0;
10806 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10807 int arg2 ;
10808 void *argp1 = 0 ;
10809 int res1 = 0 ;
10810 int val2 ;
10811 int ecode2 = 0 ;
10812 PyObject * obj0 = 0 ;
10813 PyObject * obj1 = 0 ;
10814 char * kwnames[] = {
10815 (char *) "self",(char *) "indent", NULL
10816 };
10817
10818 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail;
10819 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10820 if (!SWIG_IsOK(res1)) {
10821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10822 }
10823 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10824 ecode2 = SWIG_AsVal_int(obj1, &val2);
10825 if (!SWIG_IsOK(ecode2)) {
10826 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'");
10827 }
10828 arg2 = static_cast< int >(val2);
10829 {
10830 PyThreadState* __tstate = wxPyBeginAllowThreads();
10831 (arg1)->SetRightIndent(arg2);
10832 wxPyEndAllowThreads(__tstate);
10833 if (PyErr_Occurred()) SWIG_fail;
10834 }
10835 resultobj = SWIG_Py_Void();
10836 return resultobj;
10837fail:
10838 return NULL;
10839}
10840
10841
10842SWIGINTERN PyObject *_wrap_TextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10843 PyObject *resultobj = 0;
10844 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10845 long arg2 ;
10846 void *argp1 = 0 ;
10847 int res1 = 0 ;
10848 long val2 ;
10849 int ecode2 = 0 ;
10850 PyObject * obj0 = 0 ;
10851 PyObject * obj1 = 0 ;
10852 char * kwnames[] = {
10853 (char *) "self",(char *) "flags", NULL
10854 };
10855
10856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
10857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10858 if (!SWIG_IsOK(res1)) {
10859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFlags" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10860 }
10861 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10862 ecode2 = SWIG_AsVal_long(obj1, &val2);
10863 if (!SWIG_IsOK(ecode2)) {
10864 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'");
10865 }
10866 arg2 = static_cast< long >(val2);
10867 {
10868 PyThreadState* __tstate = wxPyBeginAllowThreads();
10869 (arg1)->SetFlags(arg2);
10870 wxPyEndAllowThreads(__tstate);
10871 if (PyErr_Occurred()) SWIG_fail;
10872 }
10873 resultobj = SWIG_Py_Void();
10874 return resultobj;
10875fail:
10876 return NULL;
d55e5bfc
RD
10877}
10878
10879
1bd55598
RD
10880SWIGINTERN PyObject *_wrap_TextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10881 PyObject *resultobj = 0;
10882 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10883 bool result;
10884 void *argp1 = 0 ;
10885 int res1 = 0 ;
10886 PyObject *swig_obj[1] ;
10887
10888 if (!args) SWIG_fail;
10889 swig_obj[0] = args;
10890 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10891 if (!SWIG_IsOK(res1)) {
10892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10893 }
10894 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10895 {
10896 PyThreadState* __tstate = wxPyBeginAllowThreads();
10897 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
10898 wxPyEndAllowThreads(__tstate);
10899 if (PyErr_Occurred()) SWIG_fail;
10900 }
10901 {
10902 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10903 }
10904 return resultobj;
10905fail:
10906 return NULL;
d55e5bfc
RD
10907}
10908
10909
1bd55598
RD
10910SWIGINTERN PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10911 PyObject *resultobj = 0;
10912 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10913 bool result;
10914 void *argp1 = 0 ;
10915 int res1 = 0 ;
10916 PyObject *swig_obj[1] ;
10917
10918 if (!args) SWIG_fail;
10919 swig_obj[0] = args;
10920 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10921 if (!SWIG_IsOK(res1)) {
10922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10923 }
10924 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10925 {
10926 PyThreadState* __tstate = wxPyBeginAllowThreads();
10927 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
10928 wxPyEndAllowThreads(__tstate);
10929 if (PyErr_Occurred()) SWIG_fail;
10930 }
10931 {
10932 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10933 }
10934 return resultobj;
10935fail:
10936 return NULL;
d55e5bfc
RD
10937}
10938
10939
1bd55598
RD
10940SWIGINTERN PyObject *_wrap_TextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10941 PyObject *resultobj = 0;
10942 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10943 bool result;
10944 void *argp1 = 0 ;
10945 int res1 = 0 ;
10946 PyObject *swig_obj[1] ;
10947
10948 if (!args) SWIG_fail;
10949 swig_obj[0] = args;
10950 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10951 if (!SWIG_IsOK(res1)) {
10952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10953 }
10954 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10955 {
10956 PyThreadState* __tstate = wxPyBeginAllowThreads();
10957 result = (bool)((wxTextAttr const *)arg1)->HasFont();
10958 wxPyEndAllowThreads(__tstate);
10959 if (PyErr_Occurred()) SWIG_fail;
10960 }
10961 {
10962 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10963 }
10964 return resultobj;
10965fail:
10966 return NULL;
d55e5bfc
RD
10967}
10968
10969
1bd55598
RD
10970SWIGINTERN PyObject *_wrap_TextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10971 PyObject *resultobj = 0;
10972 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10973 bool result;
10974 void *argp1 = 0 ;
10975 int res1 = 0 ;
10976 PyObject *swig_obj[1] ;
10977
10978 if (!args) SWIG_fail;
10979 swig_obj[0] = args;
10980 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10981 if (!SWIG_IsOK(res1)) {
10982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10983 }
10984 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10985 {
10986 PyThreadState* __tstate = wxPyBeginAllowThreads();
10987 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
10988 wxPyEndAllowThreads(__tstate);
10989 if (PyErr_Occurred()) SWIG_fail;
10990 }
10991 {
10992 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10993 }
10994 return resultobj;
10995fail:
10996 return NULL;
d55e5bfc
RD
10997}
10998
10999
1bd55598
RD
11000SWIGINTERN PyObject *_wrap_TextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11001 PyObject *resultobj = 0;
11002 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11003 bool result;
11004 void *argp1 = 0 ;
11005 int res1 = 0 ;
11006 PyObject *swig_obj[1] ;
11007
11008 if (!args) SWIG_fail;
11009 swig_obj[0] = args;
11010 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11011 if (!SWIG_IsOK(res1)) {
11012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11013 }
11014 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11015 {
11016 PyThreadState* __tstate = wxPyBeginAllowThreads();
11017 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
11018 wxPyEndAllowThreads(__tstate);
11019 if (PyErr_Occurred()) SWIG_fail;
11020 }
11021 {
11022 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11023 }
11024 return resultobj;
11025fail:
11026 return NULL;
d55e5bfc
RD
11027}
11028
11029
1bd55598
RD
11030SWIGINTERN PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11031 PyObject *resultobj = 0;
11032 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11033 bool result;
11034 void *argp1 = 0 ;
11035 int res1 = 0 ;
11036 PyObject *swig_obj[1] ;
11037
11038 if (!args) SWIG_fail;
11039 swig_obj[0] = args;
11040 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11041 if (!SWIG_IsOK(res1)) {
11042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11043 }
11044 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11045 {
11046 PyThreadState* __tstate = wxPyBeginAllowThreads();
11047 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
11048 wxPyEndAllowThreads(__tstate);
11049 if (PyErr_Occurred()) SWIG_fail;
11050 }
11051 {
11052 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11053 }
11054 return resultobj;
11055fail:
11056 return NULL;
d55e5bfc
RD
11057}
11058
11059
1bd55598
RD
11060SWIGINTERN PyObject *_wrap_TextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11061 PyObject *resultobj = 0;
11062 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11063 bool result;
11064 void *argp1 = 0 ;
11065 int res1 = 0 ;
11066 PyObject *swig_obj[1] ;
11067
11068 if (!args) SWIG_fail;
11069 swig_obj[0] = args;
11070 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11071 if (!SWIG_IsOK(res1)) {
11072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11073 }
11074 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11075 {
11076 PyThreadState* __tstate = wxPyBeginAllowThreads();
11077 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
11078 wxPyEndAllowThreads(__tstate);
11079 if (PyErr_Occurred()) SWIG_fail;
11080 }
11081 {
11082 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11083 }
11084 return resultobj;
11085fail:
11086 return NULL;
11087}
11088
11089
11090SWIGINTERN PyObject *_wrap_TextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11091 PyObject *resultobj = 0;
11092 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11093 long arg2 ;
11094 bool result;
11095 void *argp1 = 0 ;
11096 int res1 = 0 ;
11097 long val2 ;
11098 int ecode2 = 0 ;
11099 PyObject * obj0 = 0 ;
11100 PyObject * obj1 = 0 ;
11101 char * kwnames[] = {
11102 (char *) "self",(char *) "flag", NULL
11103 };
11104
11105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail;
11106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11107 if (!SWIG_IsOK(res1)) {
11108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFlag" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11109 }
11110 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11111 ecode2 = SWIG_AsVal_long(obj1, &val2);
11112 if (!SWIG_IsOK(ecode2)) {
11113 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'");
11114 }
11115 arg2 = static_cast< long >(val2);
11116 {
11117 PyThreadState* __tstate = wxPyBeginAllowThreads();
11118 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
11119 wxPyEndAllowThreads(__tstate);
11120 if (PyErr_Occurred()) SWIG_fail;
11121 }
11122 {
11123 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11124 }
11125 return resultobj;
11126fail:
11127 return NULL;
d55e5bfc
RD
11128}
11129
11130
1bd55598
RD
11131SWIGINTERN PyObject *_wrap_TextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11132 PyObject *resultobj = 0;
11133 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11134 wxColour *result = 0 ;
11135 void *argp1 = 0 ;
11136 int res1 = 0 ;
11137 PyObject *swig_obj[1] ;
11138
11139 if (!args) SWIG_fail;
11140 swig_obj[0] = args;
11141 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11142 if (!SWIG_IsOK(res1)) {
11143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11144 }
11145 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11146 {
11147 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 11148 {
1bd55598
RD
11149 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
11150 result = (wxColour *) &_result_ref;
d55e5bfc 11151 }
1bd55598
RD
11152 wxPyEndAllowThreads(__tstate);
11153 if (PyErr_Occurred()) SWIG_fail;
11154 }
11155 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11156 return resultobj;
11157fail:
11158 return NULL;
d55e5bfc
RD
11159}
11160
11161
1bd55598
RD
11162SWIGINTERN PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11163 PyObject *resultobj = 0;
11164 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11165 wxColour *result = 0 ;
11166 void *argp1 = 0 ;
11167 int res1 = 0 ;
11168 PyObject *swig_obj[1] ;
11169
11170 if (!args) SWIG_fail;
11171 swig_obj[0] = args;
11172 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11173 if (!SWIG_IsOK(res1)) {
11174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11175 }
11176 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11177 {
11178 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 11179 {
1bd55598
RD
11180 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
11181 result = (wxColour *) &_result_ref;
d55e5bfc 11182 }
1bd55598
RD
11183 wxPyEndAllowThreads(__tstate);
11184 if (PyErr_Occurred()) SWIG_fail;
11185 }
11186 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11187 return resultobj;
11188fail:
11189 return NULL;
d55e5bfc
RD
11190}
11191
11192
1bd55598
RD
11193SWIGINTERN PyObject *_wrap_TextAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11194 PyObject *resultobj = 0;
11195 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11196 wxFont *result = 0 ;
11197 void *argp1 = 0 ;
11198 int res1 = 0 ;
11199 PyObject *swig_obj[1] ;
11200
11201 if (!args) SWIG_fail;
11202 swig_obj[0] = args;
11203 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11204 if (!SWIG_IsOK(res1)) {
11205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11206 }
11207 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11208 {
11209 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 11210 {
1bd55598
RD
11211 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
11212 result = (wxFont *) &_result_ref;
d55e5bfc 11213 }
1bd55598
RD
11214 wxPyEndAllowThreads(__tstate);
11215 if (PyErr_Occurred()) SWIG_fail;
11216 }
11217 {
11218 wxFont* resultptr = new wxFont(*result);
11219 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
11220 }
11221 return resultobj;
11222fail:
11223 return NULL;
d55e5bfc
RD
11224}
11225
11226
1bd55598
RD
11227SWIGINTERN PyObject *_wrap_TextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11228 PyObject *resultobj = 0;
11229 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11230 wxTextAttrAlignment result;
11231 void *argp1 = 0 ;
11232 int res1 = 0 ;
11233 PyObject *swig_obj[1] ;
11234
11235 if (!args) SWIG_fail;
11236 swig_obj[0] = args;
11237 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11238 if (!SWIG_IsOK(res1)) {
11239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11240 }
11241 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11242 {
11243 PyThreadState* __tstate = wxPyBeginAllowThreads();
11244 result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment();
11245 wxPyEndAllowThreads(__tstate);
11246 if (PyErr_Occurred()) SWIG_fail;
11247 }
11248 resultobj = SWIG_From_int(static_cast< int >(result));
11249 return resultobj;
11250fail:
11251 return NULL;
d55e5bfc
RD
11252}
11253
11254
1bd55598
RD
11255SWIGINTERN PyObject *_wrap_TextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11256 PyObject *resultobj = 0;
11257 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11258 wxArrayInt *result = 0 ;
11259 void *argp1 = 0 ;
11260 int res1 = 0 ;
11261 PyObject *swig_obj[1] ;
11262
11263 if (!args) SWIG_fail;
11264 swig_obj[0] = args;
11265 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11266 if (!SWIG_IsOK(res1)) {
11267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11268 }
11269 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11270 {
11271 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 11272 {
1bd55598
RD
11273 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
11274 result = (wxArrayInt *) &_result_ref;
36ed4f51 11275 }
1bd55598
RD
11276 wxPyEndAllowThreads(__tstate);
11277 if (PyErr_Occurred()) SWIG_fail;
11278 }
11279 {
11280 resultobj = PyList_New(0);
11281 size_t idx;
11282 for (idx = 0; idx < result->GetCount(); idx += 1) {
11283 PyObject* val = PyInt_FromLong( result->Item(idx) );
11284 PyList_Append(resultobj, val);
11285 Py_DECREF(val);
d55e5bfc 11286 }
1bd55598
RD
11287 }
11288 return resultobj;
11289fail:
11290 return NULL;
d55e5bfc
RD
11291}
11292
11293
1bd55598
RD
11294SWIGINTERN PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11295 PyObject *resultobj = 0;
11296 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11297 long result;
11298 void *argp1 = 0 ;
11299 int res1 = 0 ;
11300 PyObject *swig_obj[1] ;
11301
11302 if (!args) SWIG_fail;
11303 swig_obj[0] = args;
11304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11305 if (!SWIG_IsOK(res1)) {
11306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11307 }
11308 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11309 {
11310 PyThreadState* __tstate = wxPyBeginAllowThreads();
11311 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
11312 wxPyEndAllowThreads(__tstate);
11313 if (PyErr_Occurred()) SWIG_fail;
11314 }
11315 resultobj = SWIG_From_long(static_cast< long >(result));
11316 return resultobj;
11317fail:
11318 return NULL;
d55e5bfc
RD
11319}
11320
11321
1bd55598
RD
11322SWIGINTERN PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11323 PyObject *resultobj = 0;
11324 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11325 long result;
11326 void *argp1 = 0 ;
11327 int res1 = 0 ;
11328 PyObject *swig_obj[1] ;
11329
11330 if (!args) SWIG_fail;
11331 swig_obj[0] = args;
11332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11333 if (!SWIG_IsOK(res1)) {
11334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11335 }
11336 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11337 {
11338 PyThreadState* __tstate = wxPyBeginAllowThreads();
11339 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
11340 wxPyEndAllowThreads(__tstate);
11341 if (PyErr_Occurred()) SWIG_fail;
11342 }
11343 resultobj = SWIG_From_long(static_cast< long >(result));
11344 return resultobj;
11345fail:
11346 return NULL;
d55e5bfc
RD
11347}
11348
11349
1bd55598
RD
11350SWIGINTERN PyObject *_wrap_TextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11351 PyObject *resultobj = 0;
11352 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11353 long result;
11354 void *argp1 = 0 ;
11355 int res1 = 0 ;
11356 PyObject *swig_obj[1] ;
11357
11358 if (!args) SWIG_fail;
11359 swig_obj[0] = args;
11360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11361 if (!SWIG_IsOK(res1)) {
11362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11363 }
11364 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11365 {
11366 PyThreadState* __tstate = wxPyBeginAllowThreads();
11367 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
11368 wxPyEndAllowThreads(__tstate);
11369 if (PyErr_Occurred()) SWIG_fail;
11370 }
11371 resultobj = SWIG_From_long(static_cast< long >(result));
11372 return resultobj;
11373fail:
11374 return NULL;
d55e5bfc
RD
11375}
11376
11377
1bd55598
RD
11378SWIGINTERN PyObject *_wrap_TextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11379 PyObject *resultobj = 0;
11380 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11381 long result;
11382 void *argp1 = 0 ;
11383 int res1 = 0 ;
11384 PyObject *swig_obj[1] ;
11385
11386 if (!args) SWIG_fail;
11387 swig_obj[0] = args;
11388 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11389 if (!SWIG_IsOK(res1)) {
11390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFlags" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11391 }
11392 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11393 {
11394 PyThreadState* __tstate = wxPyBeginAllowThreads();
11395 result = (long)((wxTextAttr const *)arg1)->GetFlags();
11396 wxPyEndAllowThreads(__tstate);
11397 if (PyErr_Occurred()) SWIG_fail;
11398 }
11399 resultobj = SWIG_From_long(static_cast< long >(result));
11400 return resultobj;
11401fail:
11402 return NULL;
d55e5bfc
RD
11403}
11404
11405
1bd55598
RD
11406SWIGINTERN PyObject *_wrap_TextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11407 PyObject *resultobj = 0;
11408 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11409 bool result;
11410 void *argp1 = 0 ;
11411 int res1 = 0 ;
11412 PyObject *swig_obj[1] ;
11413
11414 if (!args) SWIG_fail;
11415 swig_obj[0] = args;
11416 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11417 if (!SWIG_IsOK(res1)) {
11418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_IsDefault" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11419 }
11420 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11421 {
11422 PyThreadState* __tstate = wxPyBeginAllowThreads();
11423 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
11424 wxPyEndAllowThreads(__tstate);
11425 if (PyErr_Occurred()) SWIG_fail;
11426 }
11427 {
11428 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11429 }
11430 return resultobj;
11431fail:
11432 return NULL;
11433}
11434
11435
11436SWIGINTERN PyObject *_wrap_TextAttr_Combine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11437 PyObject *resultobj = 0;
11438 wxTextAttr *arg1 = 0 ;
11439 wxTextAttr *arg2 = 0 ;
11440 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
11441 wxTextAttr result;
11442 void *argp1 = 0 ;
11443 int res1 = 0 ;
11444 void *argp2 = 0 ;
11445 int res2 = 0 ;
11446 void *argp3 = 0 ;
11447 int res3 = 0 ;
11448 PyObject * obj0 = 0 ;
11449 PyObject * obj1 = 0 ;
11450 PyObject * obj2 = 0 ;
11451 char * kwnames[] = {
11452 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
11453 };
11454
11455 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11456 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
11457 if (!SWIG_IsOK(res1)) {
11458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11459 }
11460 if (!argp1) {
11461 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11462 }
11463 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11464 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
11465 if (!SWIG_IsOK(res2)) {
11466 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11467 }
11468 if (!argp2) {
11469 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11470 }
11471 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
11472 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11473 if (!SWIG_IsOK(res3)) {
11474 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextAttr_Combine" "', expected argument " "3"" of type '" "wxTextCtrl const *""'");
11475 }
11476 arg3 = reinterpret_cast< wxTextCtrl * >(argp3);
11477 {
11478 PyThreadState* __tstate = wxPyBeginAllowThreads();
11479 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
11480 wxPyEndAllowThreads(__tstate);
11481 if (PyErr_Occurred()) SWIG_fail;
11482 }
11483 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
11484 return resultobj;
11485fail:
11486 return NULL;
11487}
11488
11489
11490SWIGINTERN PyObject *TextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11491 PyObject *obj;
11492 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11493 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextAttr, SWIG_NewClientData(obj));
11494 return SWIG_Py_Void();
11495}
11496
11497SWIGINTERN PyObject *TextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11498 return SWIG_Python_InitShadowInstance(args);
11499}
11500
11501SWIGINTERN PyObject *_wrap_new_TextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11502 PyObject *resultobj = 0;
11503 wxWindow *arg1 = (wxWindow *) 0 ;
11504 int arg2 = (int) -1 ;
11505 wxString const &arg3_defvalue = wxPyEmptyString ;
11506 wxString *arg3 = (wxString *) &arg3_defvalue ;
11507 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11508 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11509 wxSize const &arg5_defvalue = wxDefaultSize ;
11510 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11511 long arg6 = (long) 0 ;
11512 wxValidator const &arg7_defvalue = wxDefaultValidator ;
11513 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
11514 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
11515 wxString *arg8 = (wxString *) &arg8_defvalue ;
11516 wxTextCtrl *result = 0 ;
11517 void *argp1 = 0 ;
11518 int res1 = 0 ;
11519 int val2 ;
11520 int ecode2 = 0 ;
11521 bool temp3 = false ;
11522 wxPoint temp4 ;
11523 wxSize temp5 ;
11524 long val6 ;
11525 int ecode6 = 0 ;
11526 void *argp7 = 0 ;
11527 int res7 = 0 ;
11528 bool temp8 = false ;
11529 PyObject * obj0 = 0 ;
11530 PyObject * obj1 = 0 ;
11531 PyObject * obj2 = 0 ;
11532 PyObject * obj3 = 0 ;
11533 PyObject * obj4 = 0 ;
11534 PyObject * obj5 = 0 ;
11535 PyObject * obj6 = 0 ;
11536 PyObject * obj7 = 0 ;
11537 char * kwnames[] = {
11538 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11539 };
11540
11541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
11542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
11543 if (!SWIG_IsOK(res1)) {
11544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
11545 }
11546 arg1 = reinterpret_cast< wxWindow * >(argp1);
11547 if (obj1) {
11548 ecode2 = SWIG_AsVal_int(obj1, &val2);
11549 if (!SWIG_IsOK(ecode2)) {
11550 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TextCtrl" "', expected argument " "2"" of type '" "int""'");
11551 }
11552 arg2 = static_cast< int >(val2);
11553 }
11554 if (obj2) {
36ed4f51 11555 {
1bd55598
RD
11556 arg3 = wxString_in_helper(obj2);
11557 if (arg3 == NULL) SWIG_fail;
11558 temp3 = true;
36ed4f51 11559 }
1bd55598
RD
11560 }
11561 if (obj3) {
36ed4f51 11562 {
1bd55598
RD
11563 arg4 = &temp4;
11564 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 11565 }
1bd55598
RD
11566 }
11567 if (obj4) {
d55e5bfc 11568 {
1bd55598
RD
11569 arg5 = &temp5;
11570 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 11571 }
1bd55598
RD
11572 }
11573 if (obj5) {
11574 ecode6 = SWIG_AsVal_long(obj5, &val6);
11575 if (!SWIG_IsOK(ecode6)) {
11576 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_TextCtrl" "', expected argument " "6"" of type '" "long""'");
11577 }
11578 arg6 = static_cast< long >(val6);
11579 }
11580 if (obj6) {
11581 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
11582 if (!SWIG_IsOK(res7)) {
11583 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 11584 }
1bd55598
RD
11585 if (!argp7) {
11586 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 11587 }
1bd55598
RD
11588 arg7 = reinterpret_cast< wxValidator * >(argp7);
11589 }
11590 if (obj7) {
d55e5bfc 11591 {
1bd55598
RD
11592 arg8 = wxString_in_helper(obj7);
11593 if (arg8 == NULL) SWIG_fail;
11594 temp8 = true;
d55e5bfc 11595 }
1bd55598
RD
11596 }
11597 {
11598 if (!wxPyCheckForApp()) SWIG_fail;
11599 PyThreadState* __tstate = wxPyBeginAllowThreads();
11600 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
11601 wxPyEndAllowThreads(__tstate);
11602 if (PyErr_Occurred()) SWIG_fail;
11603 }
11604 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_NEW | 0 );
11605 {
11606 if (temp3)
11607 delete arg3;
11608 }
11609 {
11610 if (temp8)
11611 delete arg8;
11612 }
11613 return resultobj;
11614fail:
11615 {
11616 if (temp3)
11617 delete arg3;
11618 }
11619 {
11620 if (temp8)
11621 delete arg8;
11622 }
11623 return NULL;
d55e5bfc
RD
11624}
11625
11626
1bd55598
RD
11627SWIGINTERN PyObject *_wrap_new_PreTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11628 PyObject *resultobj = 0;
11629 wxTextCtrl *result = 0 ;
11630
11631 if (!SWIG_Python_UnpackTuple(args,"new_PreTextCtrl",0,0,0)) SWIG_fail;
11632 {
11633 if (!wxPyCheckForApp()) SWIG_fail;
11634 PyThreadState* __tstate = wxPyBeginAllowThreads();
11635 result = (wxTextCtrl *)new wxTextCtrl();
11636 wxPyEndAllowThreads(__tstate);
11637 if (PyErr_Occurred()) SWIG_fail;
11638 }
11639 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_OWN | 0 );
11640 return resultobj;
11641fail:
11642 return NULL;
11643}
11644
11645
11646SWIGINTERN PyObject *_wrap_TextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11647 PyObject *resultobj = 0;
11648 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11649 wxWindow *arg2 = (wxWindow *) 0 ;
11650 int arg3 = (int) -1 ;
11651 wxString const &arg4_defvalue = wxPyEmptyString ;
11652 wxString *arg4 = (wxString *) &arg4_defvalue ;
11653 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11654 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11655 wxSize const &arg6_defvalue = wxDefaultSize ;
11656 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11657 long arg7 = (long) 0 ;
11658 wxValidator const &arg8_defvalue = wxDefaultValidator ;
11659 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
11660 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
11661 wxString *arg9 = (wxString *) &arg9_defvalue ;
11662 bool result;
11663 void *argp1 = 0 ;
11664 int res1 = 0 ;
11665 void *argp2 = 0 ;
11666 int res2 = 0 ;
11667 int val3 ;
11668 int ecode3 = 0 ;
11669 bool temp4 = false ;
11670 wxPoint temp5 ;
11671 wxSize temp6 ;
11672 long val7 ;
11673 int ecode7 = 0 ;
11674 void *argp8 = 0 ;
11675 int res8 = 0 ;
11676 bool temp9 = false ;
11677 PyObject * obj0 = 0 ;
11678 PyObject * obj1 = 0 ;
11679 PyObject * obj2 = 0 ;
11680 PyObject * obj3 = 0 ;
11681 PyObject * obj4 = 0 ;
11682 PyObject * obj5 = 0 ;
11683 PyObject * obj6 = 0 ;
11684 PyObject * obj7 = 0 ;
11685 PyObject * obj8 = 0 ;
11686 char * kwnames[] = {
11687 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11688 };
11689
11690 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
11691 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11692 if (!SWIG_IsOK(res1)) {
11693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Create" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11694 }
11695 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11696 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11697 if (!SWIG_IsOK(res2)) {
11698 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
11699 }
11700 arg2 = reinterpret_cast< wxWindow * >(argp2);
11701 if (obj2) {
11702 ecode3 = SWIG_AsVal_int(obj2, &val3);
11703 if (!SWIG_IsOK(ecode3)) {
11704 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Create" "', expected argument " "3"" of type '" "int""'");
11705 }
11706 arg3 = static_cast< int >(val3);
11707 }
11708 if (obj3) {
d55e5bfc 11709 {
1bd55598
RD
11710 arg4 = wxString_in_helper(obj3);
11711 if (arg4 == NULL) SWIG_fail;
11712 temp4 = true;
d55e5bfc 11713 }
1bd55598
RD
11714 }
11715 if (obj4) {
d55e5bfc 11716 {
1bd55598
RD
11717 arg5 = &temp5;
11718 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 11719 }
1bd55598
RD
11720 }
11721 if (obj5) {
d55e5bfc 11722 {
1bd55598
RD
11723 arg6 = &temp6;
11724 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 11725 }
1bd55598
RD
11726 }
11727 if (obj6) {
11728 ecode7 = SWIG_AsVal_long(obj6, &val7);
11729 if (!SWIG_IsOK(ecode7)) {
11730 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "TextCtrl_Create" "', expected argument " "7"" of type '" "long""'");
11731 }
11732 arg7 = static_cast< long >(val7);
11733 }
11734 if (obj7) {
11735 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
11736 if (!SWIG_IsOK(res8)) {
11737 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 11738 }
1bd55598
RD
11739 if (!argp8) {
11740 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11741 }
11742 arg8 = reinterpret_cast< wxValidator * >(argp8);
11743 }
11744 if (obj8) {
d55e5bfc 11745 {
1bd55598
RD
11746 arg9 = wxString_in_helper(obj8);
11747 if (arg9 == NULL) SWIG_fail;
11748 temp9 = true;
d55e5bfc 11749 }
1bd55598
RD
11750 }
11751 {
11752 PyThreadState* __tstate = wxPyBeginAllowThreads();
11753 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
11754 wxPyEndAllowThreads(__tstate);
11755 if (PyErr_Occurred()) SWIG_fail;
11756 }
11757 {
11758 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11759 }
11760 {
11761 if (temp4)
11762 delete arg4;
11763 }
11764 {
11765 if (temp9)
11766 delete arg9;
11767 }
11768 return resultobj;
11769fail:
11770 {
11771 if (temp4)
11772 delete arg4;
11773 }
11774 {
11775 if (temp9)
11776 delete arg9;
11777 }
11778 return NULL;
d55e5bfc
RD
11779}
11780
11781
1bd55598
RD
11782SWIGINTERN PyObject *_wrap_TextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11783 PyObject *resultobj = 0;
11784 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11785 wxString result;
11786 void *argp1 = 0 ;
11787 int res1 = 0 ;
11788 PyObject *swig_obj[1] ;
11789
11790 if (!args) SWIG_fail;
11791 swig_obj[0] = args;
11792 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11793 if (!SWIG_IsOK(res1)) {
11794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetValue" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11795 }
11796 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11797 {
11798 PyThreadState* __tstate = wxPyBeginAllowThreads();
11799 result = ((wxTextCtrl const *)arg1)->GetValue();
11800 wxPyEndAllowThreads(__tstate);
11801 if (PyErr_Occurred()) SWIG_fail;
11802 }
11803 {
11804#if wxUSE_UNICODE
11805 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11806#else
11807 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11808#endif
11809 }
11810 return resultobj;
11811fail:
11812 return NULL;
11813}
11814
11815
11816SWIGINTERN PyObject *_wrap_TextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11817 PyObject *resultobj = 0;
11818 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11819 wxString *arg2 = 0 ;
11820 void *argp1 = 0 ;
11821 int res1 = 0 ;
11822 bool temp2 = false ;
11823 PyObject * obj0 = 0 ;
11824 PyObject * obj1 = 0 ;
11825 char * kwnames[] = {
11826 (char *) "self",(char *) "value", NULL
11827 };
11828
11829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
11830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11831 if (!SWIG_IsOK(res1)) {
11832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11833 }
11834 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11835 {
11836 arg2 = wxString_in_helper(obj1);
11837 if (arg2 == NULL) SWIG_fail;
11838 temp2 = true;
11839 }
11840 {
11841 PyThreadState* __tstate = wxPyBeginAllowThreads();
11842 (arg1)->SetValue((wxString const &)*arg2);
11843 wxPyEndAllowThreads(__tstate);
11844 if (PyErr_Occurred()) SWIG_fail;
11845 }
11846 resultobj = SWIG_Py_Void();
11847 {
11848 if (temp2)
11849 delete arg2;
11850 }
11851 return resultobj;
11852fail:
11853 {
11854 if (temp2)
11855 delete arg2;
11856 }
11857 return NULL;
11858}
11859
11860
11861SWIGINTERN PyObject *_wrap_TextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11862 PyObject *resultobj = 0;
11863 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11864 long arg2 ;
11865 long arg3 ;
11866 wxString result;
11867 void *argp1 = 0 ;
11868 int res1 = 0 ;
11869 long val2 ;
11870 int ecode2 = 0 ;
11871 long val3 ;
11872 int ecode3 = 0 ;
11873 PyObject * obj0 = 0 ;
11874 PyObject * obj1 = 0 ;
11875 PyObject * obj2 = 0 ;
11876 char * kwnames[] = {
2131d850 11877 (char *) "self",(char *) "from",(char *) "to", NULL
1bd55598
RD
11878 };
11879
11880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11882 if (!SWIG_IsOK(res1)) {
11883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetRange" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11884 }
11885 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11886 ecode2 = SWIG_AsVal_long(obj1, &val2);
11887 if (!SWIG_IsOK(ecode2)) {
11888 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'");
11889 }
11890 arg2 = static_cast< long >(val2);
11891 ecode3 = SWIG_AsVal_long(obj2, &val3);
11892 if (!SWIG_IsOK(ecode3)) {
11893 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'");
11894 }
11895 arg3 = static_cast< long >(val3);
11896 {
11897 PyThreadState* __tstate = wxPyBeginAllowThreads();
11898 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
11899 wxPyEndAllowThreads(__tstate);
11900 if (PyErr_Occurred()) SWIG_fail;
11901 }
11902 {
11903#if wxUSE_UNICODE
11904 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11905#else
11906 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11907#endif
11908 }
11909 return resultobj;
11910fail:
11911 return NULL;
11912}
11913
11914
11915SWIGINTERN PyObject *_wrap_TextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11916 PyObject *resultobj = 0;
11917 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11918 long arg2 ;
11919 int result;
11920 void *argp1 = 0 ;
11921 int res1 = 0 ;
11922 long val2 ;
11923 int ecode2 = 0 ;
11924 PyObject * obj0 = 0 ;
11925 PyObject * obj1 = 0 ;
11926 char * kwnames[] = {
11927 (char *) "self",(char *) "lineNo", NULL
11928 };
11929
11930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail;
11931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11932 if (!SWIG_IsOK(res1)) {
11933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11934 }
11935 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11936 ecode2 = SWIG_AsVal_long(obj1, &val2);
11937 if (!SWIG_IsOK(ecode2)) {
11938 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'");
11939 }
11940 arg2 = static_cast< long >(val2);
11941 {
11942 PyThreadState* __tstate = wxPyBeginAllowThreads();
11943 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
11944 wxPyEndAllowThreads(__tstate);
11945 if (PyErr_Occurred()) SWIG_fail;
11946 }
11947 resultobj = SWIG_From_int(static_cast< int >(result));
11948 return resultobj;
11949fail:
11950 return NULL;
11951}
11952
11953
11954SWIGINTERN PyObject *_wrap_TextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11955 PyObject *resultobj = 0;
11956 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11957 long arg2 ;
11958 wxString result;
11959 void *argp1 = 0 ;
11960 int res1 = 0 ;
11961 long val2 ;
11962 int ecode2 = 0 ;
11963 PyObject * obj0 = 0 ;
11964 PyObject * obj1 = 0 ;
11965 char * kwnames[] = {
11966 (char *) "self",(char *) "lineNo", NULL
11967 };
11968
11969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail;
11970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11971 if (!SWIG_IsOK(res1)) {
11972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11973 }
11974 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11975 ecode2 = SWIG_AsVal_long(obj1, &val2);
11976 if (!SWIG_IsOK(ecode2)) {
11977 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'");
11978 }
11979 arg2 = static_cast< long >(val2);
11980 {
11981 PyThreadState* __tstate = wxPyBeginAllowThreads();
11982 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
11983 wxPyEndAllowThreads(__tstate);
11984 if (PyErr_Occurred()) SWIG_fail;
11985 }
11986 {
11987#if wxUSE_UNICODE
11988 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11989#else
11990 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11991#endif
11992 }
11993 return resultobj;
11994fail:
11995 return NULL;
d55e5bfc
RD
11996}
11997
11998
1bd55598
RD
11999SWIGINTERN PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12000 PyObject *resultobj = 0;
12001 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12002 int result;
12003 void *argp1 = 0 ;
12004 int res1 = 0 ;
12005 PyObject *swig_obj[1] ;
12006
12007 if (!args) SWIG_fail;
12008 swig_obj[0] = args;
12009 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12010 if (!SWIG_IsOK(res1)) {
12011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12012 }
12013 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12014 {
12015 PyThreadState* __tstate = wxPyBeginAllowThreads();
12016 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
12017 wxPyEndAllowThreads(__tstate);
12018 if (PyErr_Occurred()) SWIG_fail;
12019 }
12020 resultobj = SWIG_From_int(static_cast< int >(result));
12021 return resultobj;
12022fail:
12023 return NULL;
d55e5bfc
RD
12024}
12025
12026
1bd55598
RD
12027SWIGINTERN PyObject *_wrap_TextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12028 PyObject *resultobj = 0;
12029 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12030 bool result;
12031 void *argp1 = 0 ;
12032 int res1 = 0 ;
12033 PyObject *swig_obj[1] ;
12034
12035 if (!args) SWIG_fail;
12036 swig_obj[0] = args;
12037 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12038 if (!SWIG_IsOK(res1)) {
12039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsModified" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12040 }
12041 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12042 {
12043 PyThreadState* __tstate = wxPyBeginAllowThreads();
12044 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
12045 wxPyEndAllowThreads(__tstate);
12046 if (PyErr_Occurred()) SWIG_fail;
12047 }
12048 {
12049 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12050 }
12051 return resultobj;
12052fail:
12053 return NULL;
d55e5bfc
RD
12054}
12055
12056
1bd55598
RD
12057SWIGINTERN PyObject *_wrap_TextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12058 PyObject *resultobj = 0;
12059 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12060 bool result;
12061 void *argp1 = 0 ;
12062 int res1 = 0 ;
12063 PyObject *swig_obj[1] ;
12064
12065 if (!args) SWIG_fail;
12066 swig_obj[0] = args;
12067 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12068 if (!SWIG_IsOK(res1)) {
12069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12070 }
12071 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12072 {
12073 PyThreadState* __tstate = wxPyBeginAllowThreads();
12074 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
12075 wxPyEndAllowThreads(__tstate);
12076 if (PyErr_Occurred()) SWIG_fail;
12077 }
12078 {
12079 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12080 }
12081 return resultobj;
12082fail:
12083 return NULL;
d55e5bfc
RD
12084}
12085
12086
1bd55598
RD
12087SWIGINTERN PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12088 PyObject *resultobj = 0;
12089 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12090 bool result;
12091 void *argp1 = 0 ;
12092 int res1 = 0 ;
12093 PyObject *swig_obj[1] ;
12094
12095 if (!args) SWIG_fail;
12096 swig_obj[0] = args;
12097 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12098 if (!SWIG_IsOK(res1)) {
12099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12100 }
12101 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12102 {
12103 PyThreadState* __tstate = wxPyBeginAllowThreads();
12104 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
12105 wxPyEndAllowThreads(__tstate);
12106 if (PyErr_Occurred()) SWIG_fail;
12107 }
12108 {
12109 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12110 }
12111 return resultobj;
12112fail:
12113 return NULL;
d55e5bfc
RD
12114}
12115
12116
1bd55598
RD
12117SWIGINTERN PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12118 PyObject *resultobj = 0;
12119 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12120 bool result;
12121 void *argp1 = 0 ;
12122 int res1 = 0 ;
12123 PyObject *swig_obj[1] ;
12124
12125 if (!args) SWIG_fail;
12126 swig_obj[0] = args;
12127 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12128 if (!SWIG_IsOK(res1)) {
12129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12130 }
12131 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12132 {
12133 PyThreadState* __tstate = wxPyBeginAllowThreads();
12134 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
12135 wxPyEndAllowThreads(__tstate);
12136 if (PyErr_Occurred()) SWIG_fail;
12137 }
12138 {
12139 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12140 }
12141 return resultobj;
12142fail:
12143 return NULL;
12144}
12145
12146
12147SWIGINTERN PyObject *_wrap_TextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12148 PyObject *resultobj = 0;
12149 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12150 long *arg2 = (long *) 0 ;
12151 long *arg3 = (long *) 0 ;
12152 void *argp1 = 0 ;
12153 int res1 = 0 ;
12154 long temp2 ;
12155 int res2 = SWIG_TMPOBJ ;
12156 long temp3 ;
12157 int res3 = SWIG_TMPOBJ ;
12158 PyObject *swig_obj[1] ;
12159
12160 arg2 = &temp2;
12161 arg3 = &temp3;
12162 if (!args) SWIG_fail;
12163 swig_obj[0] = args;
12164 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12165 if (!SWIG_IsOK(res1)) {
12166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12167 }
12168 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12169 {
12170 PyThreadState* __tstate = wxPyBeginAllowThreads();
12171 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
12172 wxPyEndAllowThreads(__tstate);
12173 if (PyErr_Occurred()) SWIG_fail;
12174 }
12175 resultobj = SWIG_Py_Void();
12176 if (SWIG_IsTmpObj(res2)) {
12177 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
12178 } else {
12179 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12180 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
12181 }
12182 if (SWIG_IsTmpObj(res3)) {
12183 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12184 } else {
12185 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12186 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
12187 }
12188 return resultobj;
12189fail:
12190 return NULL;
d55e5bfc
RD
12191}
12192
12193
1bd55598
RD
12194SWIGINTERN PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12195 PyObject *resultobj = 0;
12196 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12197 wxString result;
12198 void *argp1 = 0 ;
12199 int res1 = 0 ;
12200 PyObject *swig_obj[1] ;
12201
12202 if (!args) SWIG_fail;
12203 swig_obj[0] = args;
12204 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12205 if (!SWIG_IsOK(res1)) {
12206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12207 }
12208 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12209 {
12210 PyThreadState* __tstate = wxPyBeginAllowThreads();
12211 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
12212 wxPyEndAllowThreads(__tstate);
12213 if (PyErr_Occurred()) SWIG_fail;
12214 }
12215 {
d55e5bfc 12216#if wxUSE_UNICODE
1bd55598 12217 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 12218#else
1bd55598 12219 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 12220#endif
1bd55598
RD
12221 }
12222 return resultobj;
12223fail:
12224 return NULL;
d55e5bfc
RD
12225}
12226
12227
1bd55598
RD
12228SWIGINTERN PyObject *_wrap_TextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12229 PyObject *resultobj = 0;
12230 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12231 void *argp1 = 0 ;
12232 int res1 = 0 ;
12233 PyObject *swig_obj[1] ;
12234
12235 if (!args) SWIG_fail;
12236 swig_obj[0] = args;
12237 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12238 if (!SWIG_IsOK(res1)) {
12239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Clear" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12240 }
12241 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12242 {
12243 PyThreadState* __tstate = wxPyBeginAllowThreads();
12244 (arg1)->Clear();
12245 wxPyEndAllowThreads(__tstate);
12246 if (PyErr_Occurred()) SWIG_fail;
12247 }
12248 resultobj = SWIG_Py_Void();
12249 return resultobj;
12250fail:
12251 return NULL;
12252}
12253
12254
12255SWIGINTERN PyObject *_wrap_TextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12256 PyObject *resultobj = 0;
12257 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12258 long arg2 ;
12259 long arg3 ;
12260 wxString *arg4 = 0 ;
12261 void *argp1 = 0 ;
12262 int res1 = 0 ;
12263 long val2 ;
12264 int ecode2 = 0 ;
12265 long val3 ;
12266 int ecode3 = 0 ;
12267 bool temp4 = false ;
12268 PyObject * obj0 = 0 ;
12269 PyObject * obj1 = 0 ;
12270 PyObject * obj2 = 0 ;
12271 PyObject * obj3 = 0 ;
12272 char * kwnames[] = {
2131d850 12273 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
1bd55598
RD
12274 };
12275
12276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12278 if (!SWIG_IsOK(res1)) {
12279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Replace" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12280 }
12281 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12282 ecode2 = SWIG_AsVal_long(obj1, &val2);
12283 if (!SWIG_IsOK(ecode2)) {
12284 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Replace" "', expected argument " "2"" of type '" "long""'");
12285 }
12286 arg2 = static_cast< long >(val2);
12287 ecode3 = SWIG_AsVal_long(obj2, &val3);
12288 if (!SWIG_IsOK(ecode3)) {
12289 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Replace" "', expected argument " "3"" of type '" "long""'");
12290 }
12291 arg3 = static_cast< long >(val3);
12292 {
12293 arg4 = wxString_in_helper(obj3);
12294 if (arg4 == NULL) SWIG_fail;
12295 temp4 = true;
12296 }
12297 {
12298 PyThreadState* __tstate = wxPyBeginAllowThreads();
12299 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
12300 wxPyEndAllowThreads(__tstate);
12301 if (PyErr_Occurred()) SWIG_fail;
12302 }
12303 resultobj = SWIG_Py_Void();
12304 {
12305 if (temp4)
12306 delete arg4;
12307 }
12308 return resultobj;
12309fail:
12310 {
12311 if (temp4)
12312 delete arg4;
12313 }
12314 return NULL;
12315}
12316
12317
12318SWIGINTERN PyObject *_wrap_TextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12319 PyObject *resultobj = 0;
12320 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12321 long arg2 ;
12322 long arg3 ;
12323 void *argp1 = 0 ;
12324 int res1 = 0 ;
12325 long val2 ;
12326 int ecode2 = 0 ;
12327 long val3 ;
12328 int ecode3 = 0 ;
12329 PyObject * obj0 = 0 ;
12330 PyObject * obj1 = 0 ;
12331 PyObject * obj2 = 0 ;
12332 char * kwnames[] = {
2131d850 12333 (char *) "self",(char *) "from",(char *) "to", NULL
1bd55598
RD
12334 };
12335
12336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12338 if (!SWIG_IsOK(res1)) {
12339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Remove" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12340 }
12341 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12342 ecode2 = SWIG_AsVal_long(obj1, &val2);
12343 if (!SWIG_IsOK(ecode2)) {
12344 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Remove" "', expected argument " "2"" of type '" "long""'");
12345 }
12346 arg2 = static_cast< long >(val2);
12347 ecode3 = SWIG_AsVal_long(obj2, &val3);
12348 if (!SWIG_IsOK(ecode3)) {
12349 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Remove" "', expected argument " "3"" of type '" "long""'");
12350 }
12351 arg3 = static_cast< long >(val3);
12352 {
12353 PyThreadState* __tstate = wxPyBeginAllowThreads();
12354 (arg1)->Remove(arg2,arg3);
12355 wxPyEndAllowThreads(__tstate);
12356 if (PyErr_Occurred()) SWIG_fail;
12357 }
12358 resultobj = SWIG_Py_Void();
12359 return resultobj;
12360fail:
12361 return NULL;
12362}
12363
12364
12365SWIGINTERN PyObject *_wrap_TextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12366 PyObject *resultobj = 0;
12367 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12368 wxString *arg2 = 0 ;
12369 bool result;
12370 void *argp1 = 0 ;
12371 int res1 = 0 ;
12372 bool temp2 = false ;
12373 PyObject * obj0 = 0 ;
12374 PyObject * obj1 = 0 ;
12375 char * kwnames[] = {
12376 (char *) "self",(char *) "file", NULL
12377 };
12378
12379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) SWIG_fail;
12380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12381 if (!SWIG_IsOK(res1)) {
12382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12383 }
12384 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12385 {
12386 arg2 = wxString_in_helper(obj1);
12387 if (arg2 == NULL) SWIG_fail;
12388 temp2 = true;
12389 }
12390 {
12391 PyThreadState* __tstate = wxPyBeginAllowThreads();
12392 result = (bool)(arg1)->LoadFile((wxString const &)*arg2);
12393 wxPyEndAllowThreads(__tstate);
12394 if (PyErr_Occurred()) SWIG_fail;
12395 }
12396 {
12397 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12398 }
12399 {
12400 if (temp2)
12401 delete arg2;
12402 }
12403 return resultobj;
12404fail:
12405 {
12406 if (temp2)
12407 delete arg2;
12408 }
12409 return NULL;
12410}
12411
12412
12413SWIGINTERN PyObject *_wrap_TextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12414 PyObject *resultobj = 0;
12415 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12416 wxString const &arg2_defvalue = wxPyEmptyString ;
12417 wxString *arg2 = (wxString *) &arg2_defvalue ;
12418 bool result;
12419 void *argp1 = 0 ;
12420 int res1 = 0 ;
12421 bool temp2 = false ;
12422 PyObject * obj0 = 0 ;
12423 PyObject * obj1 = 0 ;
12424 char * kwnames[] = {
12425 (char *) "self",(char *) "file", NULL
12426 };
12427
12428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) SWIG_fail;
12429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12430 if (!SWIG_IsOK(res1)) {
12431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12432 }
12433 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12434 if (obj1) {
d55e5bfc 12435 {
1bd55598
RD
12436 arg2 = wxString_in_helper(obj1);
12437 if (arg2 == NULL) SWIG_fail;
12438 temp2 = true;
d55e5bfc 12439 }
1bd55598
RD
12440 }
12441 {
12442 PyThreadState* __tstate = wxPyBeginAllowThreads();
12443 result = (bool)(arg1)->SaveFile((wxString const &)*arg2);
12444 wxPyEndAllowThreads(__tstate);
12445 if (PyErr_Occurred()) SWIG_fail;
12446 }
12447 {
12448 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12449 }
12450 {
12451 if (temp2)
12452 delete arg2;
12453 }
12454 return resultobj;
12455fail:
12456 {
12457 if (temp2)
12458 delete arg2;
12459 }
12460 return NULL;
d55e5bfc
RD
12461}
12462
12463
1bd55598
RD
12464SWIGINTERN PyObject *_wrap_TextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12465 PyObject *resultobj = 0;
12466 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12467 void *argp1 = 0 ;
12468 int res1 = 0 ;
12469 PyObject *swig_obj[1] ;
12470
12471 if (!args) SWIG_fail;
12472 swig_obj[0] = args;
12473 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12474 if (!SWIG_IsOK(res1)) {
12475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12476 }
12477 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12478 {
12479 PyThreadState* __tstate = wxPyBeginAllowThreads();
12480 (arg1)->MarkDirty();
12481 wxPyEndAllowThreads(__tstate);
12482 if (PyErr_Occurred()) SWIG_fail;
12483 }
12484 resultobj = SWIG_Py_Void();
12485 return resultobj;
12486fail:
12487 return NULL;
d55e5bfc
RD
12488}
12489
12490
1bd55598
RD
12491SWIGINTERN PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12492 PyObject *resultobj = 0;
12493 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12494 void *argp1 = 0 ;
12495 int res1 = 0 ;
12496 PyObject *swig_obj[1] ;
12497
12498 if (!args) SWIG_fail;
12499 swig_obj[0] = args;
12500 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12501 if (!SWIG_IsOK(res1)) {
12502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12503 }
12504 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12505 {
12506 PyThreadState* __tstate = wxPyBeginAllowThreads();
12507 (arg1)->DiscardEdits();
12508 wxPyEndAllowThreads(__tstate);
12509 if (PyErr_Occurred()) SWIG_fail;
12510 }
12511 resultobj = SWIG_Py_Void();
12512 return resultobj;
12513fail:
12514 return NULL;
12515}
12516
12517
b02396e8
RD
12518SWIGINTERN PyObject *_wrap_TextCtrl_SetModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12519 PyObject *resultobj = 0;
12520 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12521 bool arg2 ;
12522 void *argp1 = 0 ;
12523 int res1 = 0 ;
12524 bool val2 ;
12525 int ecode2 = 0 ;
12526 PyObject * obj0 = 0 ;
12527 PyObject * obj1 = 0 ;
12528 char * kwnames[] = {
12529 (char *) "self",(char *) "modified", NULL
12530 };
12531
12532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetModified",kwnames,&obj0,&obj1)) SWIG_fail;
12533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12534 if (!SWIG_IsOK(res1)) {
12535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetModified" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12536 }
12537 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12538 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12539 if (!SWIG_IsOK(ecode2)) {
12540 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetModified" "', expected argument " "2"" of type '" "bool""'");
12541 }
12542 arg2 = static_cast< bool >(val2);
12543 {
12544 PyThreadState* __tstate = wxPyBeginAllowThreads();
12545 (arg1)->SetModified(arg2);
12546 wxPyEndAllowThreads(__tstate);
12547 if (PyErr_Occurred()) SWIG_fail;
12548 }
12549 resultobj = SWIG_Py_Void();
12550 return resultobj;
12551fail:
12552 return NULL;
12553}
12554
12555
1bd55598
RD
12556SWIGINTERN PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12557 PyObject *resultobj = 0;
12558 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12559 unsigned long arg2 ;
12560 void *argp1 = 0 ;
12561 int res1 = 0 ;
12562 unsigned long val2 ;
12563 int ecode2 = 0 ;
12564 PyObject * obj0 = 0 ;
12565 PyObject * obj1 = 0 ;
12566 char * kwnames[] = {
12567 (char *) "self",(char *) "len", NULL
12568 };
12569
12570 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail;
12571 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12572 if (!SWIG_IsOK(res1)) {
12573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12574 }
12575 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12576 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
12577 if (!SWIG_IsOK(ecode2)) {
12578 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'");
12579 }
12580 arg2 = static_cast< unsigned long >(val2);
12581 {
12582 PyThreadState* __tstate = wxPyBeginAllowThreads();
12583 (arg1)->SetMaxLength(arg2);
12584 wxPyEndAllowThreads(__tstate);
12585 if (PyErr_Occurred()) SWIG_fail;
12586 }
12587 resultobj = SWIG_Py_Void();
12588 return resultobj;
12589fail:
12590 return NULL;
12591}
12592
12593
12594SWIGINTERN PyObject *_wrap_TextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12595 PyObject *resultobj = 0;
12596 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12597 wxString *arg2 = 0 ;
12598 void *argp1 = 0 ;
12599 int res1 = 0 ;
12600 bool temp2 = false ;
12601 PyObject * obj0 = 0 ;
12602 PyObject * obj1 = 0 ;
12603 char * kwnames[] = {
12604 (char *) "self",(char *) "text", NULL
12605 };
12606
12607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail;
12608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12609 if (!SWIG_IsOK(res1)) {
12610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_WriteText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12611 }
12612 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12613 {
12614 arg2 = wxString_in_helper(obj1);
12615 if (arg2 == NULL) SWIG_fail;
12616 temp2 = true;
12617 }
12618 {
12619 PyThreadState* __tstate = wxPyBeginAllowThreads();
12620 (arg1)->WriteText((wxString const &)*arg2);
12621 wxPyEndAllowThreads(__tstate);
12622 if (PyErr_Occurred()) SWIG_fail;
12623 }
12624 resultobj = SWIG_Py_Void();
12625 {
12626 if (temp2)
12627 delete arg2;
12628 }
12629 return resultobj;
12630fail:
12631 {
12632 if (temp2)
12633 delete arg2;
12634 }
12635 return NULL;
d55e5bfc
RD
12636}
12637
12638
1bd55598
RD
12639SWIGINTERN PyObject *_wrap_TextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12640 PyObject *resultobj = 0;
12641 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12642 wxString *arg2 = 0 ;
12643 void *argp1 = 0 ;
12644 int res1 = 0 ;
12645 bool temp2 = false ;
12646 PyObject * obj0 = 0 ;
12647 PyObject * obj1 = 0 ;
12648 char * kwnames[] = {
12649 (char *) "self",(char *) "text", NULL
12650 };
12651
12652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail;
12653 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12654 if (!SWIG_IsOK(res1)) {
12655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_AppendText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12656 }
12657 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12658 {
12659 arg2 = wxString_in_helper(obj1);
12660 if (arg2 == NULL) SWIG_fail;
12661 temp2 = true;
12662 }
12663 {
12664 PyThreadState* __tstate = wxPyBeginAllowThreads();
12665 (arg1)->AppendText((wxString const &)*arg2);
12666 wxPyEndAllowThreads(__tstate);
12667 if (PyErr_Occurred()) SWIG_fail;
12668 }
12669 resultobj = SWIG_Py_Void();
12670 {
12671 if (temp2)
12672 delete arg2;
12673 }
12674 return resultobj;
12675fail:
12676 {
12677 if (temp2)
12678 delete arg2;
12679 }
12680 return NULL;
12681}
12682
12683
12684SWIGINTERN PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12685 PyObject *resultobj = 0;
12686 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12687 wxKeyEvent *arg2 = 0 ;
12688 bool result;
12689 void *argp1 = 0 ;
12690 int res1 = 0 ;
12691 void *argp2 = 0 ;
12692 int res2 = 0 ;
12693 PyObject * obj0 = 0 ;
12694 PyObject * obj1 = 0 ;
12695 char * kwnames[] = {
12696 (char *) "self",(char *) "event", NULL
12697 };
12698
12699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) SWIG_fail;
12700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12701 if (!SWIG_IsOK(res1)) {
12702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12703 }
12704 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12705 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
12706 if (!SWIG_IsOK(res2)) {
12707 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12708 }
12709 if (!argp2) {
12710 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12711 }
12712 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
12713 {
12714 PyThreadState* __tstate = wxPyBeginAllowThreads();
12715 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
12716 wxPyEndAllowThreads(__tstate);
12717 if (PyErr_Occurred()) SWIG_fail;
12718 }
12719 {
12720 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12721 }
12722 return resultobj;
12723fail:
12724 return NULL;
12725}
12726
12727
12728SWIGINTERN PyObject *_wrap_TextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12729 PyObject *resultobj = 0;
12730 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12731 long arg2 ;
12732 long arg3 ;
12733 wxTextAttr *arg4 = 0 ;
12734 bool result;
12735 void *argp1 = 0 ;
12736 int res1 = 0 ;
12737 long val2 ;
12738 int ecode2 = 0 ;
12739 long val3 ;
12740 int ecode3 = 0 ;
12741 void *argp4 = 0 ;
12742 int res4 = 0 ;
12743 PyObject * obj0 = 0 ;
12744 PyObject * obj1 = 0 ;
12745 PyObject * obj2 = 0 ;
12746 PyObject * obj3 = 0 ;
12747 char * kwnames[] = {
12748 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
12749 };
12750
12751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12753 if (!SWIG_IsOK(res1)) {
12754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12755 }
12756 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12757 ecode2 = SWIG_AsVal_long(obj1, &val2);
12758 if (!SWIG_IsOK(ecode2)) {
12759 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetStyle" "', expected argument " "2"" of type '" "long""'");
12760 }
12761 arg2 = static_cast< long >(val2);
12762 ecode3 = SWIG_AsVal_long(obj2, &val3);
12763 if (!SWIG_IsOK(ecode3)) {
12764 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetStyle" "', expected argument " "3"" of type '" "long""'");
12765 }
12766 arg3 = static_cast< long >(val3);
12767 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxTextAttr, 0 | 0);
12768 if (!SWIG_IsOK(res4)) {
12769 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12770 }
12771 if (!argp4) {
12772 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12773 }
12774 arg4 = reinterpret_cast< wxTextAttr * >(argp4);
12775 {
12776 PyThreadState* __tstate = wxPyBeginAllowThreads();
12777 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
12778 wxPyEndAllowThreads(__tstate);
12779 if (PyErr_Occurred()) SWIG_fail;
12780 }
12781 {
12782 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12783 }
12784 return resultobj;
12785fail:
12786 return NULL;
12787}
12788
12789
12790SWIGINTERN PyObject *_wrap_TextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12791 PyObject *resultobj = 0;
12792 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12793 long arg2 ;
12794 wxTextAttr *arg3 = 0 ;
12795 bool result;
12796 void *argp1 = 0 ;
12797 int res1 = 0 ;
12798 long val2 ;
12799 int ecode2 = 0 ;
12800 void *argp3 = 0 ;
12801 int res3 = 0 ;
12802 PyObject * obj0 = 0 ;
12803 PyObject * obj1 = 0 ;
12804 PyObject * obj2 = 0 ;
12805 char * kwnames[] = {
12806 (char *) "self",(char *) "position",(char *) "style", NULL
12807 };
12808
12809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12811 if (!SWIG_IsOK(res1)) {
12812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12813 }
12814 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12815 ecode2 = SWIG_AsVal_long(obj1, &val2);
12816 if (!SWIG_IsOK(ecode2)) {
12817 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'");
12818 }
12819 arg2 = static_cast< long >(val2);
12820 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTextAttr, 0 );
12821 if (!SWIG_IsOK(res3)) {
12822 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12823 }
12824 if (!argp3) {
12825 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12826 }
12827 arg3 = reinterpret_cast< wxTextAttr * >(argp3);
12828 {
12829 PyThreadState* __tstate = wxPyBeginAllowThreads();
12830 result = (bool)(arg1)->GetStyle(arg2,*arg3);
12831 wxPyEndAllowThreads(__tstate);
12832 if (PyErr_Occurred()) SWIG_fail;
12833 }
12834 {
12835 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12836 }
12837 return resultobj;
12838fail:
12839 return NULL;
12840}
12841
12842
12843SWIGINTERN PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12844 PyObject *resultobj = 0;
12845 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12846 wxTextAttr *arg2 = 0 ;
12847 bool result;
12848 void *argp1 = 0 ;
12849 int res1 = 0 ;
12850 void *argp2 = 0 ;
12851 int res2 = 0 ;
12852 PyObject * obj0 = 0 ;
12853 PyObject * obj1 = 0 ;
12854 char * kwnames[] = {
12855 (char *) "self",(char *) "style", NULL
12856 };
12857
12858 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12859 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12860 if (!SWIG_IsOK(res1)) {
12861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12862 }
12863 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12864 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
12865 if (!SWIG_IsOK(res2)) {
12866 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12867 }
12868 if (!argp2) {
12869 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12870 }
12871 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
12872 {
12873 PyThreadState* __tstate = wxPyBeginAllowThreads();
12874 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
12875 wxPyEndAllowThreads(__tstate);
12876 if (PyErr_Occurred()) SWIG_fail;
12877 }
12878 {
12879 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12880 }
12881 return resultobj;
12882fail:
12883 return NULL;
d55e5bfc
RD
12884}
12885
12886
1bd55598
RD
12887SWIGINTERN PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12888 PyObject *resultobj = 0;
12889 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12890 wxTextAttr *result = 0 ;
12891 void *argp1 = 0 ;
12892 int res1 = 0 ;
12893 PyObject *swig_obj[1] ;
12894
12895 if (!args) SWIG_fail;
12896 swig_obj[0] = args;
12897 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12898 if (!SWIG_IsOK(res1)) {
12899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12900 }
12901 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12902 {
12903 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 12904 {
1bd55598
RD
12905 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
12906 result = (wxTextAttr *) &_result_ref;
d55e5bfc 12907 }
1bd55598
RD
12908 wxPyEndAllowThreads(__tstate);
12909 if (PyErr_Occurred()) SWIG_fail;
12910 }
12911 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, 0 | 0 );
12912 return resultobj;
12913fail:
12914 return NULL;
12915}
12916
12917
12918SWIGINTERN PyObject *_wrap_TextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12919 PyObject *resultobj = 0;
12920 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12921 long arg2 ;
12922 long arg3 ;
12923 long result;
12924 void *argp1 = 0 ;
12925 int res1 = 0 ;
12926 long val2 ;
12927 int ecode2 = 0 ;
12928 long val3 ;
12929 int ecode3 = 0 ;
12930 PyObject * obj0 = 0 ;
12931 PyObject * obj1 = 0 ;
12932 PyObject * obj2 = 0 ;
12933 char * kwnames[] = {
12934 (char *) "self",(char *) "x",(char *) "y", NULL
12935 };
12936
12937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12938 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12939 if (!SWIG_IsOK(res1)) {
12940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12941 }
12942 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12943 ecode2 = SWIG_AsVal_long(obj1, &val2);
12944 if (!SWIG_IsOK(ecode2)) {
12945 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'");
12946 }
12947 arg2 = static_cast< long >(val2);
12948 ecode3 = SWIG_AsVal_long(obj2, &val3);
12949 if (!SWIG_IsOK(ecode3)) {
12950 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'");
12951 }
12952 arg3 = static_cast< long >(val3);
12953 {
12954 PyThreadState* __tstate = wxPyBeginAllowThreads();
12955 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
12956 wxPyEndAllowThreads(__tstate);
12957 if (PyErr_Occurred()) SWIG_fail;
12958 }
12959 resultobj = SWIG_From_long(static_cast< long >(result));
12960 return resultobj;
12961fail:
12962 return NULL;
12963}
12964
12965
12966SWIGINTERN PyObject *_wrap_TextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12967 PyObject *resultobj = 0;
12968 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12969 long arg2 ;
12970 long *arg3 = (long *) 0 ;
12971 long *arg4 = (long *) 0 ;
12972 void *argp1 = 0 ;
12973 int res1 = 0 ;
12974 long val2 ;
12975 int ecode2 = 0 ;
12976 long temp3 ;
12977 int res3 = SWIG_TMPOBJ ;
12978 long temp4 ;
12979 int res4 = SWIG_TMPOBJ ;
12980 PyObject * obj0 = 0 ;
12981 PyObject * obj1 = 0 ;
12982 char * kwnames[] = {
12983 (char *) "self",(char *) "pos", NULL
12984 };
12985
12986 arg3 = &temp3;
12987 arg4 = &temp4;
12988 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail;
12989 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12990 if (!SWIG_IsOK(res1)) {
12991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12992 }
12993 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12994 ecode2 = SWIG_AsVal_long(obj1, &val2);
12995 if (!SWIG_IsOK(ecode2)) {
12996 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'");
12997 }
12998 arg2 = static_cast< long >(val2);
12999 {
13000 PyThreadState* __tstate = wxPyBeginAllowThreads();
13001 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
13002 wxPyEndAllowThreads(__tstate);
13003 if (PyErr_Occurred()) SWIG_fail;
13004 }
13005 resultobj = SWIG_Py_Void();
13006 if (SWIG_IsTmpObj(res3)) {
13007 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13008 } else {
13009 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13010 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13011 }
13012 if (SWIG_IsTmpObj(res4)) {
13013 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13014 } else {
13015 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13016 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13017 }
13018 return resultobj;
13019fail:
13020 return NULL;
13021}
13022
13023
13024SWIGINTERN PyObject *_wrap_TextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13025 PyObject *resultobj = 0;
13026 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13027 long arg2 ;
13028 void *argp1 = 0 ;
13029 int res1 = 0 ;
13030 long val2 ;
13031 int ecode2 = 0 ;
13032 PyObject * obj0 = 0 ;
13033 PyObject * obj1 = 0 ;
13034 char * kwnames[] = {
13035 (char *) "self",(char *) "pos", NULL
13036 };
13037
13038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) 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_ShowPosition" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
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_ShowPosition" "', expected argument " "2"" of type '" "long""'");
13047 }
13048 arg2 = static_cast< long >(val2);
13049 {
13050 PyThreadState* __tstate = wxPyBeginAllowThreads();
13051 (arg1)->ShowPosition(arg2);
13052 wxPyEndAllowThreads(__tstate);
13053 if (PyErr_Occurred()) SWIG_fail;
13054 }
13055 resultobj = SWIG_Py_Void();
13056 return resultobj;
13057fail:
13058 return NULL;
13059}
13060
13061
13062SWIGINTERN PyObject *_wrap_TextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13063 PyObject *resultobj = 0;
13064 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13065 wxPoint *arg2 = 0 ;
13066 long *arg3 = (long *) 0 ;
13067 long *arg4 = (long *) 0 ;
13068 wxTextCtrlHitTestResult result;
13069 void *argp1 = 0 ;
13070 int res1 = 0 ;
13071 wxPoint temp2 ;
13072 long temp3 ;
13073 int res3 = SWIG_TMPOBJ ;
13074 long temp4 ;
13075 int res4 = SWIG_TMPOBJ ;
13076 PyObject * obj0 = 0 ;
13077 PyObject * obj1 = 0 ;
13078 char * kwnames[] = {
13079 (char *) "self",(char *) "pt", NULL
13080 };
13081
13082 arg3 = &temp3;
13083 arg4 = &temp4;
13084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
13085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13086 if (!SWIG_IsOK(res1)) {
13087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTest" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13088 }
13089 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13090 {
13091 arg2 = &temp2;
13092 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13093 }
13094 {
13095 PyThreadState* __tstate = wxPyBeginAllowThreads();
13096 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
13097 wxPyEndAllowThreads(__tstate);
13098 if (PyErr_Occurred()) SWIG_fail;
13099 }
13100 resultobj = SWIG_From_int(static_cast< int >(result));
13101 if (SWIG_IsTmpObj(res3)) {
13102 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13103 } else {
13104 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13105 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13106 }
13107 if (SWIG_IsTmpObj(res4)) {
13108 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13109 } else {
13110 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13111 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13112 }
13113 return resultobj;
13114fail:
13115 return NULL;
13116}
13117
13118
13119SWIGINTERN PyObject *_wrap_TextCtrl_HitTestPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13120 PyObject *resultobj = 0;
13121 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13122 wxPoint *arg2 = 0 ;
13123 long *arg3 = (long *) 0 ;
13124 wxTextCtrlHitTestResult result;
13125 void *argp1 = 0 ;
13126 int res1 = 0 ;
13127 wxPoint temp2 ;
13128 long temp3 ;
13129 int res3 = SWIG_TMPOBJ ;
13130 PyObject * obj0 = 0 ;
13131 PyObject * obj1 = 0 ;
13132 char * kwnames[] = {
13133 (char *) "self",(char *) "pt", NULL
13134 };
13135
13136 arg3 = &temp3;
13137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) SWIG_fail;
13138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13139 if (!SWIG_IsOK(res1)) {
13140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTestPos" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13141 }
13142 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13143 {
13144 arg2 = &temp2;
13145 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13146 }
13147 {
13148 PyThreadState* __tstate = wxPyBeginAllowThreads();
13149 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
13150 wxPyEndAllowThreads(__tstate);
13151 if (PyErr_Occurred()) SWIG_fail;
13152 }
13153 resultobj = SWIG_From_int(static_cast< int >(result));
13154 if (SWIG_IsTmpObj(res3)) {
13155 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13156 } else {
13157 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13158 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13159 }
13160 return resultobj;
13161fail:
13162 return NULL;
d55e5bfc
RD
13163}
13164
13165
1bd55598
RD
13166SWIGINTERN PyObject *_wrap_TextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13167 PyObject *resultobj = 0;
13168 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13169 void *argp1 = 0 ;
13170 int res1 = 0 ;
13171 PyObject *swig_obj[1] ;
13172
13173 if (!args) SWIG_fail;
13174 swig_obj[0] = args;
13175 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13176 if (!SWIG_IsOK(res1)) {
13177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Copy" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13178 }
13179 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13180 {
13181 PyThreadState* __tstate = wxPyBeginAllowThreads();
13182 (arg1)->Copy();
13183 wxPyEndAllowThreads(__tstate);
13184 if (PyErr_Occurred()) SWIG_fail;
13185 }
13186 resultobj = SWIG_Py_Void();
13187 return resultobj;
13188fail:
13189 return NULL;
d55e5bfc
RD
13190}
13191
13192
1bd55598
RD
13193SWIGINTERN PyObject *_wrap_TextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13194 PyObject *resultobj = 0;
13195 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13196 void *argp1 = 0 ;
13197 int res1 = 0 ;
13198 PyObject *swig_obj[1] ;
13199
13200 if (!args) SWIG_fail;
13201 swig_obj[0] = args;
13202 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13203 if (!SWIG_IsOK(res1)) {
13204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Cut" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13205 }
13206 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13207 {
13208 PyThreadState* __tstate = wxPyBeginAllowThreads();
13209 (arg1)->Cut();
13210 wxPyEndAllowThreads(__tstate);
13211 if (PyErr_Occurred()) SWIG_fail;
13212 }
13213 resultobj = SWIG_Py_Void();
13214 return resultobj;
13215fail:
13216 return NULL;
d55e5bfc
RD
13217}
13218
13219
1bd55598
RD
13220SWIGINTERN PyObject *_wrap_TextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13221 PyObject *resultobj = 0;
13222 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13223 void *argp1 = 0 ;
13224 int res1 = 0 ;
13225 PyObject *swig_obj[1] ;
13226
13227 if (!args) SWIG_fail;
13228 swig_obj[0] = args;
13229 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13230 if (!SWIG_IsOK(res1)) {
13231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Paste" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13232 }
13233 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13234 {
13235 PyThreadState* __tstate = wxPyBeginAllowThreads();
13236 (arg1)->Paste();
13237 wxPyEndAllowThreads(__tstate);
13238 if (PyErr_Occurred()) SWIG_fail;
13239 }
13240 resultobj = SWIG_Py_Void();
13241 return resultobj;
13242fail:
13243 return NULL;
d55e5bfc
RD
13244}
13245
13246
1bd55598
RD
13247SWIGINTERN PyObject *_wrap_TextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13248 PyObject *resultobj = 0;
13249 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13250 bool result;
13251 void *argp1 = 0 ;
13252 int res1 = 0 ;
13253 PyObject *swig_obj[1] ;
13254
13255 if (!args) SWIG_fail;
13256 swig_obj[0] = args;
13257 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13258 if (!SWIG_IsOK(res1)) {
13259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13260 }
13261 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13262 {
13263 PyThreadState* __tstate = wxPyBeginAllowThreads();
13264 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
13265 wxPyEndAllowThreads(__tstate);
13266 if (PyErr_Occurred()) SWIG_fail;
13267 }
13268 {
13269 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13270 }
13271 return resultobj;
13272fail:
13273 return NULL;
d55e5bfc
RD
13274}
13275
13276
1bd55598
RD
13277SWIGINTERN PyObject *_wrap_TextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13278 PyObject *resultobj = 0;
13279 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13280 bool result;
13281 void *argp1 = 0 ;
13282 int res1 = 0 ;
13283 PyObject *swig_obj[1] ;
13284
13285 if (!args) SWIG_fail;
13286 swig_obj[0] = args;
13287 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13288 if (!SWIG_IsOK(res1)) {
13289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCut" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13290 }
13291 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13292 {
13293 PyThreadState* __tstate = wxPyBeginAllowThreads();
13294 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
13295 wxPyEndAllowThreads(__tstate);
13296 if (PyErr_Occurred()) SWIG_fail;
13297 }
13298 {
13299 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13300 }
13301 return resultobj;
13302fail:
13303 return NULL;
d55e5bfc
RD
13304}
13305
13306
1bd55598
RD
13307SWIGINTERN PyObject *_wrap_TextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13308 PyObject *resultobj = 0;
13309 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13310 bool result;
13311 void *argp1 = 0 ;
13312 int res1 = 0 ;
13313 PyObject *swig_obj[1] ;
13314
13315 if (!args) SWIG_fail;
13316 swig_obj[0] = args;
13317 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13318 if (!SWIG_IsOK(res1)) {
13319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13320 }
13321 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13322 {
13323 PyThreadState* __tstate = wxPyBeginAllowThreads();
13324 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
13325 wxPyEndAllowThreads(__tstate);
13326 if (PyErr_Occurred()) SWIG_fail;
13327 }
13328 {
13329 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13330 }
13331 return resultobj;
13332fail:
13333 return NULL;
d55e5bfc
RD
13334}
13335
13336
1bd55598
RD
13337SWIGINTERN PyObject *_wrap_TextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13338 PyObject *resultobj = 0;
13339 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13340 void *argp1 = 0 ;
13341 int res1 = 0 ;
13342 PyObject *swig_obj[1] ;
13343
13344 if (!args) SWIG_fail;
13345 swig_obj[0] = args;
13346 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13347 if (!SWIG_IsOK(res1)) {
13348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Undo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13349 }
13350 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13351 {
13352 PyThreadState* __tstate = wxPyBeginAllowThreads();
13353 (arg1)->Undo();
13354 wxPyEndAllowThreads(__tstate);
13355 if (PyErr_Occurred()) SWIG_fail;
13356 }
13357 resultobj = SWIG_Py_Void();
13358 return resultobj;
13359fail:
13360 return NULL;
d55e5bfc
RD
13361}
13362
13363
1bd55598
RD
13364SWIGINTERN PyObject *_wrap_TextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13365 PyObject *resultobj = 0;
13366 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13367 void *argp1 = 0 ;
13368 int res1 = 0 ;
13369 PyObject *swig_obj[1] ;
13370
13371 if (!args) SWIG_fail;
13372 swig_obj[0] = args;
13373 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13374 if (!SWIG_IsOK(res1)) {
13375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Redo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13376 }
13377 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13378 {
13379 PyThreadState* __tstate = wxPyBeginAllowThreads();
13380 (arg1)->Redo();
13381 wxPyEndAllowThreads(__tstate);
13382 if (PyErr_Occurred()) SWIG_fail;
13383 }
13384 resultobj = SWIG_Py_Void();
13385 return resultobj;
13386fail:
13387 return NULL;
d55e5bfc
RD
13388}
13389
13390
1bd55598
RD
13391SWIGINTERN PyObject *_wrap_TextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13392 PyObject *resultobj = 0;
13393 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13394 bool result;
13395 void *argp1 = 0 ;
13396 int res1 = 0 ;
13397 PyObject *swig_obj[1] ;
13398
13399 if (!args) SWIG_fail;
13400 swig_obj[0] = args;
13401 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13402 if (!SWIG_IsOK(res1)) {
13403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13404 }
13405 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13406 {
13407 PyThreadState* __tstate = wxPyBeginAllowThreads();
13408 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
13409 wxPyEndAllowThreads(__tstate);
13410 if (PyErr_Occurred()) SWIG_fail;
13411 }
13412 {
13413 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13414 }
13415 return resultobj;
13416fail:
13417 return NULL;
d55e5bfc
RD
13418}
13419
13420
1bd55598
RD
13421SWIGINTERN PyObject *_wrap_TextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13422 PyObject *resultobj = 0;
13423 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13424 bool result;
13425 void *argp1 = 0 ;
13426 int res1 = 0 ;
13427 PyObject *swig_obj[1] ;
13428
13429 if (!args) SWIG_fail;
13430 swig_obj[0] = args;
13431 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13432 if (!SWIG_IsOK(res1)) {
13433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13434 }
13435 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13436 {
13437 PyThreadState* __tstate = wxPyBeginAllowThreads();
13438 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
13439 wxPyEndAllowThreads(__tstate);
13440 if (PyErr_Occurred()) SWIG_fail;
13441 }
13442 {
13443 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13444 }
13445 return resultobj;
13446fail:
13447 return NULL;
13448}
13449
13450
13451SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13452 PyObject *resultobj = 0;
13453 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13454 long arg2 ;
13455 void *argp1 = 0 ;
13456 int res1 = 0 ;
13457 long val2 ;
13458 int ecode2 = 0 ;
13459 PyObject * obj0 = 0 ;
13460 PyObject * obj1 = 0 ;
13461 char * kwnames[] = {
13462 (char *) "self",(char *) "pos", NULL
13463 };
13464
13465 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
13466 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13467 if (!SWIG_IsOK(res1)) {
13468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13469 }
13470 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13471 ecode2 = SWIG_AsVal_long(obj1, &val2);
13472 if (!SWIG_IsOK(ecode2)) {
13473 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
13474 }
13475 arg2 = static_cast< long >(val2);
13476 {
13477 PyThreadState* __tstate = wxPyBeginAllowThreads();
13478 (arg1)->SetInsertionPoint(arg2);
13479 wxPyEndAllowThreads(__tstate);
13480 if (PyErr_Occurred()) SWIG_fail;
13481 }
13482 resultobj = SWIG_Py_Void();
13483 return resultobj;
13484fail:
13485 return NULL;
d55e5bfc
RD
13486}
13487
13488
1bd55598
RD
13489SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13490 PyObject *resultobj = 0;
13491 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13492 void *argp1 = 0 ;
13493 int res1 = 0 ;
13494 PyObject *swig_obj[1] ;
13495
13496 if (!args) SWIG_fail;
13497 swig_obj[0] = args;
13498 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13499 if (!SWIG_IsOK(res1)) {
13500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13501 }
13502 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13503 {
13504 PyThreadState* __tstate = wxPyBeginAllowThreads();
13505 (arg1)->SetInsertionPointEnd();
13506 wxPyEndAllowThreads(__tstate);
13507 if (PyErr_Occurred()) SWIG_fail;
13508 }
13509 resultobj = SWIG_Py_Void();
13510 return resultobj;
13511fail:
13512 return NULL;
d55e5bfc
RD
13513}
13514
13515
1bd55598
RD
13516SWIGINTERN PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13517 PyObject *resultobj = 0;
13518 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13519 long result;
13520 void *argp1 = 0 ;
13521 int res1 = 0 ;
13522 PyObject *swig_obj[1] ;
13523
13524 if (!args) SWIG_fail;
13525 swig_obj[0] = args;
13526 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13527 if (!SWIG_IsOK(res1)) {
13528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13529 }
13530 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13531 {
13532 PyThreadState* __tstate = wxPyBeginAllowThreads();
13533 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
13534 wxPyEndAllowThreads(__tstate);
13535 if (PyErr_Occurred()) SWIG_fail;
13536 }
13537 resultobj = SWIG_From_long(static_cast< long >(result));
13538 return resultobj;
13539fail:
13540 return NULL;
d55e5bfc
RD
13541}
13542
13543
1bd55598
RD
13544SWIGINTERN PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13545 PyObject *resultobj = 0;
13546 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13547 long result;
13548 void *argp1 = 0 ;
13549 int res1 = 0 ;
13550 PyObject *swig_obj[1] ;
13551
13552 if (!args) SWIG_fail;
13553 swig_obj[0] = args;
13554 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13555 if (!SWIG_IsOK(res1)) {
13556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13557 }
13558 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13559 {
13560 PyThreadState* __tstate = wxPyBeginAllowThreads();
13561 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
13562 wxPyEndAllowThreads(__tstate);
13563 if (PyErr_Occurred()) SWIG_fail;
13564 }
13565 resultobj = SWIG_From_long(static_cast< long >(result));
13566 return resultobj;
13567fail:
13568 return NULL;
13569}
13570
13571
13572SWIGINTERN PyObject *_wrap_TextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13573 PyObject *resultobj = 0;
13574 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13575 long arg2 ;
13576 long arg3 ;
13577 void *argp1 = 0 ;
13578 int res1 = 0 ;
13579 long val2 ;
13580 int ecode2 = 0 ;
13581 long val3 ;
13582 int ecode3 = 0 ;
13583 PyObject * obj0 = 0 ;
13584 PyObject * obj1 = 0 ;
13585 PyObject * obj2 = 0 ;
13586 char * kwnames[] = {
2131d850 13587 (char *) "self",(char *) "from",(char *) "to", NULL
1bd55598
RD
13588 };
13589
13590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13592 if (!SWIG_IsOK(res1)) {
13593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13594 }
13595 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13596 ecode2 = SWIG_AsVal_long(obj1, &val2);
13597 if (!SWIG_IsOK(ecode2)) {
13598 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
13599 }
13600 arg2 = static_cast< long >(val2);
13601 ecode3 = SWIG_AsVal_long(obj2, &val3);
13602 if (!SWIG_IsOK(ecode3)) {
13603 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
13604 }
13605 arg3 = static_cast< long >(val3);
13606 {
13607 PyThreadState* __tstate = wxPyBeginAllowThreads();
13608 (arg1)->SetSelection(arg2,arg3);
13609 wxPyEndAllowThreads(__tstate);
13610 if (PyErr_Occurred()) SWIG_fail;
13611 }
13612 resultobj = SWIG_Py_Void();
13613 return resultobj;
13614fail:
13615 return NULL;
d55e5bfc
RD
13616}
13617
13618
1bd55598
RD
13619SWIGINTERN PyObject *_wrap_TextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13620 PyObject *resultobj = 0;
13621 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13622 void *argp1 = 0 ;
13623 int res1 = 0 ;
13624 PyObject *swig_obj[1] ;
13625
13626 if (!args) SWIG_fail;
13627 swig_obj[0] = args;
13628 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13629 if (!SWIG_IsOK(res1)) {
13630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13631 }
13632 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13633 {
13634 PyThreadState* __tstate = wxPyBeginAllowThreads();
13635 (arg1)->SelectAll();
13636 wxPyEndAllowThreads(__tstate);
13637 if (PyErr_Occurred()) SWIG_fail;
13638 }
13639 resultobj = SWIG_Py_Void();
13640 return resultobj;
13641fail:
13642 return NULL;
13643}
13644
13645
13646SWIGINTERN PyObject *_wrap_TextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13647 PyObject *resultobj = 0;
13648 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13649 bool arg2 ;
13650 void *argp1 = 0 ;
13651 int res1 = 0 ;
13652 bool val2 ;
13653 int ecode2 = 0 ;
13654 PyObject * obj0 = 0 ;
13655 PyObject * obj1 = 0 ;
13656 char * kwnames[] = {
13657 (char *) "self",(char *) "editable", NULL
13658 };
13659
13660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
13661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13662 if (!SWIG_IsOK(res1)) {
13663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13664 }
13665 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13666 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13667 if (!SWIG_IsOK(ecode2)) {
13668 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'");
13669 }
13670 arg2 = static_cast< bool >(val2);
13671 {
13672 PyThreadState* __tstate = wxPyBeginAllowThreads();
13673 (arg1)->SetEditable(arg2);
13674 wxPyEndAllowThreads(__tstate);
13675 if (PyErr_Occurred()) SWIG_fail;
13676 }
13677 resultobj = SWIG_Py_Void();
13678 return resultobj;
13679fail:
13680 return NULL;
13681}
13682
13683
13684SWIGINTERN PyObject *_wrap_TextCtrl_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13685 PyObject *resultobj = 0;
13686 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13687 wxString *arg2 = 0 ;
13688 void *argp1 = 0 ;
13689 int res1 = 0 ;
13690 bool temp2 = false ;
13691 PyObject * obj0 = 0 ;
13692 PyObject * obj1 = 0 ;
13693 char * kwnames[] = {
13694 (char *) "self",(char *) "text", NULL
13695 };
13696
13697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) SWIG_fail;
13698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13699 if (!SWIG_IsOK(res1)) {
13700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_write" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13701 }
13702 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13703 {
13704 arg2 = wxString_in_helper(obj1);
13705 if (arg2 == NULL) SWIG_fail;
13706 temp2 = true;
13707 }
13708 {
13709 PyThreadState* __tstate = wxPyBeginAllowThreads();
13710 wxTextCtrl_write(arg1,(wxString const &)*arg2);
13711 wxPyEndAllowThreads(__tstate);
13712 if (PyErr_Occurred()) SWIG_fail;
13713 }
13714 resultobj = SWIG_Py_Void();
13715 {
13716 if (temp2)
13717 delete arg2;
13718 }
13719 return resultobj;
13720fail:
13721 {
13722 if (temp2)
13723 delete arg2;
13724 }
13725 return NULL;
13726}
13727
13728
13729SWIGINTERN PyObject *_wrap_TextCtrl_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13730 PyObject *resultobj = 0;
13731 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13732 long arg2 ;
13733 long arg3 ;
13734 wxString result;
13735 void *argp1 = 0 ;
13736 int res1 = 0 ;
13737 long val2 ;
13738 int ecode2 = 0 ;
13739 long val3 ;
13740 int ecode3 = 0 ;
13741 PyObject * obj0 = 0 ;
13742 PyObject * obj1 = 0 ;
13743 PyObject * obj2 = 0 ;
13744 char * kwnames[] = {
2131d850 13745 (char *) "self",(char *) "from",(char *) "to", NULL
1bd55598
RD
13746 };
13747
13748 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13749 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13750 if (!SWIG_IsOK(res1)) {
13751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetString" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13752 }
13753 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13754 ecode2 = SWIG_AsVal_long(obj1, &val2);
13755 if (!SWIG_IsOK(ecode2)) {
13756 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetString" "', expected argument " "2"" of type '" "long""'");
13757 }
13758 arg2 = static_cast< long >(val2);
13759 ecode3 = SWIG_AsVal_long(obj2, &val3);
13760 if (!SWIG_IsOK(ecode3)) {
13761 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetString" "', expected argument " "3"" of type '" "long""'");
13762 }
13763 arg3 = static_cast< long >(val3);
13764 {
13765 PyThreadState* __tstate = wxPyBeginAllowThreads();
13766 result = wxTextCtrl_GetString(arg1,arg2,arg3);
13767 wxPyEndAllowThreads(__tstate);
13768 if (PyErr_Occurred()) SWIG_fail;
13769 }
13770 {
13771#if wxUSE_UNICODE
13772 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13773#else
13774 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13775#endif
13776 }
13777 return resultobj;
13778fail:
13779 return NULL;
d55e5bfc
RD
13780}
13781
13782
1bd55598
RD
13783SWIGINTERN PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13784 PyObject *resultobj = 0;
13785 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
13786 SwigValueWrapper<wxVisualAttributes > result;
13787 int val1 ;
13788 int ecode1 = 0 ;
13789 PyObject * obj0 = 0 ;
13790 char * kwnames[] = {
13791 (char *) "variant", NULL
13792 };
13793
13794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
13795 if (obj0) {
13796 ecode1 = SWIG_AsVal_int(obj0, &val1);
13797 if (!SWIG_IsOK(ecode1)) {
13798 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TextCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
13799 }
13800 arg1 = static_cast< wxWindowVariant >(val1);
13801 }
13802 {
13803 if (!wxPyCheckForApp()) SWIG_fail;
13804 PyThreadState* __tstate = wxPyBeginAllowThreads();
13805 result = wxTextCtrl::GetClassDefaultAttributes(arg1);
13806 wxPyEndAllowThreads(__tstate);
13807 if (PyErr_Occurred()) SWIG_fail;
13808 }
13809 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
13810 return resultobj;
13811fail:
13812 return NULL;
13813}
13814
13815
13816SWIGINTERN PyObject *TextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13817 PyObject *obj;
13818 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13819 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextCtrl, SWIG_NewClientData(obj));
13820 return SWIG_Py_Void();
13821}
13822
13823SWIGINTERN PyObject *TextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13824 return SWIG_Python_InitShadowInstance(args);
13825}
13826
13827SWIGINTERN PyObject *_wrap_new_TextUrlEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13828 PyObject *resultobj = 0;
13829 int arg1 ;
13830 wxMouseEvent *arg2 = 0 ;
13831 long arg3 ;
13832 long arg4 ;
13833 wxTextUrlEvent *result = 0 ;
13834 int val1 ;
13835 int ecode1 = 0 ;
13836 void *argp2 = 0 ;
13837 int res2 = 0 ;
13838 long val3 ;
13839 int ecode3 = 0 ;
13840 long val4 ;
13841 int ecode4 = 0 ;
13842 PyObject * obj0 = 0 ;
13843 PyObject * obj1 = 0 ;
13844 PyObject * obj2 = 0 ;
13845 PyObject * obj3 = 0 ;
13846 char * kwnames[] = {
13847 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
13848 };
13849
13850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13851 ecode1 = SWIG_AsVal_int(obj0, &val1);
13852 if (!SWIG_IsOK(ecode1)) {
13853 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TextUrlEvent" "', expected argument " "1"" of type '" "int""'");
13854 }
13855 arg1 = static_cast< int >(val1);
13856 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxMouseEvent, 0 | 0);
13857 if (!SWIG_IsOK(res2)) {
13858 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
13859 }
13860 if (!argp2) {
13861 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
13862 }
13863 arg2 = reinterpret_cast< wxMouseEvent * >(argp2);
13864 ecode3 = SWIG_AsVal_long(obj2, &val3);
13865 if (!SWIG_IsOK(ecode3)) {
13866 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TextUrlEvent" "', expected argument " "3"" of type '" "long""'");
13867 }
13868 arg3 = static_cast< long >(val3);
13869 ecode4 = SWIG_AsVal_long(obj3, &val4);
13870 if (!SWIG_IsOK(ecode4)) {
13871 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextUrlEvent" "', expected argument " "4"" of type '" "long""'");
13872 }
13873 arg4 = static_cast< long >(val4);
13874 {
13875 PyThreadState* __tstate = wxPyBeginAllowThreads();
13876 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
13877 wxPyEndAllowThreads(__tstate);
13878 if (PyErr_Occurred()) SWIG_fail;
13879 }
13880 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_NEW | 0 );
13881 return resultobj;
13882fail:
13883 return NULL;
d55e5bfc
RD
13884}
13885
13886
1bd55598
RD
13887SWIGINTERN PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13888 PyObject *resultobj = 0;
13889 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13890 wxMouseEvent *result = 0 ;
13891 void *argp1 = 0 ;
13892 int res1 = 0 ;
13893 PyObject *swig_obj[1] ;
13894
13895 if (!args) SWIG_fail;
13896 swig_obj[0] = args;
13897 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
13898 if (!SWIG_IsOK(res1)) {
13899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetMouseEvent" "', expected argument " "1"" of type '" "wxTextUrlEvent *""'");
13900 }
13901 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
13902 {
13903 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 13904 {
1bd55598
RD
13905 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
13906 result = (wxMouseEvent *) &_result_ref;
d55e5bfc 13907 }
1bd55598
RD
13908 wxPyEndAllowThreads(__tstate);
13909 if (PyErr_Occurred()) SWIG_fail;
13910 }
13911 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseEvent, 0 | 0 );
13912 return resultobj;
13913fail:
13914 return NULL;
d55e5bfc
RD
13915}
13916
13917
1bd55598
RD
13918SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13919 PyObject *resultobj = 0;
13920 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13921 long result;
13922 void *argp1 = 0 ;
13923 int res1 = 0 ;
13924 PyObject *swig_obj[1] ;
13925
13926 if (!args) SWIG_fail;
13927 swig_obj[0] = args;
13928 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
13929 if (!SWIG_IsOK(res1)) {
13930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLStart" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
13931 }
13932 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
13933 {
13934 PyThreadState* __tstate = wxPyBeginAllowThreads();
13935 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
13936 wxPyEndAllowThreads(__tstate);
13937 if (PyErr_Occurred()) SWIG_fail;
13938 }
13939 resultobj = SWIG_From_long(static_cast< long >(result));
13940 return resultobj;
13941fail:
13942 return NULL;
d55e5bfc
RD
13943}
13944
13945
1bd55598
RD
13946SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13947 PyObject *resultobj = 0;
13948 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13949 long result;
13950 void *argp1 = 0 ;
13951 int res1 = 0 ;
13952 PyObject *swig_obj[1] ;
13953
13954 if (!args) SWIG_fail;
13955 swig_obj[0] = args;
13956 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
13957 if (!SWIG_IsOK(res1)) {
13958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLEnd" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
13959 }
13960 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
13961 {
13962 PyThreadState* __tstate = wxPyBeginAllowThreads();
13963 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
13964 wxPyEndAllowThreads(__tstate);
13965 if (PyErr_Occurred()) SWIG_fail;
13966 }
13967 resultobj = SWIG_From_long(static_cast< long >(result));
13968 return resultobj;
13969fail:
13970 return NULL;
d55e5bfc
RD
13971}
13972
13973
1bd55598
RD
13974SWIGINTERN PyObject *TextUrlEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13975 PyObject *obj;
13976 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13977 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextUrlEvent, SWIG_NewClientData(obj));
13978 return SWIG_Py_Void();
68e533f8
RD
13979}
13980
1bd55598
RD
13981SWIGINTERN PyObject *TextUrlEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13982 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
13983}
13984
1bd55598
RD
13985SWIGINTERN int ScrollBarNameStr_set(PyObject *) {
13986 SWIG_Error(SWIG_AttributeError,"Variable ScrollBarNameStr is read-only.");
13987 return 1;
d55e5bfc
RD
13988}
13989
13990
1bd55598
RD
13991SWIGINTERN PyObject *ScrollBarNameStr_get(void) {
13992 PyObject *pyobj = 0;
13993
13994 {
13995#if wxUSE_UNICODE
13996 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
13997#else
13998 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
13999#endif
14000 }
14001 return pyobj;
14002}
14003
14004
14005SWIGINTERN PyObject *_wrap_new_ScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14006 PyObject *resultobj = 0;
14007 wxWindow *arg1 = (wxWindow *) 0 ;
14008 int arg2 = (int) -1 ;
14009 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14010 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14011 wxSize const &arg4_defvalue = wxDefaultSize ;
14012 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14013 long arg5 = (long) wxSB_HORIZONTAL ;
14014 wxValidator const &arg6_defvalue = wxDefaultValidator ;
14015 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
14016 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
14017 wxString *arg7 = (wxString *) &arg7_defvalue ;
14018 wxScrollBar *result = 0 ;
14019 void *argp1 = 0 ;
14020 int res1 = 0 ;
14021 int val2 ;
14022 int ecode2 = 0 ;
14023 wxPoint temp3 ;
14024 wxSize temp4 ;
14025 long val5 ;
14026 int ecode5 = 0 ;
14027 void *argp6 = 0 ;
14028 int res6 = 0 ;
14029 bool temp7 = false ;
14030 PyObject * obj0 = 0 ;
14031 PyObject * obj1 = 0 ;
14032 PyObject * obj2 = 0 ;
14033 PyObject * obj3 = 0 ;
14034 PyObject * obj4 = 0 ;
14035 PyObject * obj5 = 0 ;
14036 PyObject * obj6 = 0 ;
14037 char * kwnames[] = {
14038 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14039 };
14040
14041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14043 if (!SWIG_IsOK(res1)) {
14044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrollBar" "', expected argument " "1"" of type '" "wxWindow *""'");
14045 }
14046 arg1 = reinterpret_cast< wxWindow * >(argp1);
14047 if (obj1) {
14048 ecode2 = SWIG_AsVal_int(obj1, &val2);
14049 if (!SWIG_IsOK(ecode2)) {
14050 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollBar" "', expected argument " "2"" of type '" "int""'");
14051 }
14052 arg2 = static_cast< int >(val2);
14053 }
14054 if (obj2) {
d55e5bfc 14055 {
1bd55598
RD
14056 arg3 = &temp3;
14057 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 14058 }
1bd55598
RD
14059 }
14060 if (obj3) {
36ed4f51 14061 {
1bd55598
RD
14062 arg4 = &temp4;
14063 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 14064 }
1bd55598
RD
14065 }
14066 if (obj4) {
14067 ecode5 = SWIG_AsVal_long(obj4, &val5);
14068 if (!SWIG_IsOK(ecode5)) {
14069 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrollBar" "', expected argument " "5"" of type '" "long""'");
14070 }
14071 arg5 = static_cast< long >(val5);
14072 }
14073 if (obj5) {
14074 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
14075 if (!SWIG_IsOK(res6)) {
14076 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 14077 }
1bd55598
RD
14078 if (!argp6) {
14079 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 14080 }
1bd55598
RD
14081 arg6 = reinterpret_cast< wxValidator * >(argp6);
14082 }
14083 if (obj6) {
d55e5bfc 14084 {
1bd55598
RD
14085 arg7 = wxString_in_helper(obj6);
14086 if (arg7 == NULL) SWIG_fail;
14087 temp7 = true;
d55e5bfc 14088 }
1bd55598
RD
14089 }
14090 {
14091 if (!wxPyCheckForApp()) SWIG_fail;
14092 PyThreadState* __tstate = wxPyBeginAllowThreads();
14093 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
14094 wxPyEndAllowThreads(__tstate);
14095 if (PyErr_Occurred()) SWIG_fail;
14096 }
14097 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_NEW | 0 );
14098 {
14099 if (temp7)
14100 delete arg7;
14101 }
14102 return resultobj;
14103fail:
14104 {
14105 if (temp7)
14106 delete arg7;
14107 }
14108 return NULL;
d55e5bfc
RD
14109}
14110
14111
1bd55598
RD
14112SWIGINTERN PyObject *_wrap_new_PreScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14113 PyObject *resultobj = 0;
14114 wxScrollBar *result = 0 ;
14115
14116 if (!SWIG_Python_UnpackTuple(args,"new_PreScrollBar",0,0,0)) SWIG_fail;
14117 {
14118 if (!wxPyCheckForApp()) SWIG_fail;
14119 PyThreadState* __tstate = wxPyBeginAllowThreads();
14120 result = (wxScrollBar *)new wxScrollBar();
14121 wxPyEndAllowThreads(__tstate);
14122 if (PyErr_Occurred()) SWIG_fail;
14123 }
14124 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_OWN | 0 );
14125 return resultobj;
14126fail:
14127 return NULL;
14128}
14129
14130
14131SWIGINTERN PyObject *_wrap_ScrollBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14132 PyObject *resultobj = 0;
14133 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14134 wxWindow *arg2 = (wxWindow *) 0 ;
14135 int arg3 = (int) -1 ;
14136 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14137 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14138 wxSize const &arg5_defvalue = wxDefaultSize ;
14139 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14140 long arg6 = (long) wxSB_HORIZONTAL ;
14141 wxValidator const &arg7_defvalue = wxDefaultValidator ;
14142 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
14143 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
14144 wxString *arg8 = (wxString *) &arg8_defvalue ;
14145 bool result;
14146 void *argp1 = 0 ;
14147 int res1 = 0 ;
14148 void *argp2 = 0 ;
14149 int res2 = 0 ;
14150 int val3 ;
14151 int ecode3 = 0 ;
14152 wxPoint temp4 ;
14153 wxSize temp5 ;
14154 long val6 ;
14155 int ecode6 = 0 ;
14156 void *argp7 = 0 ;
14157 int res7 = 0 ;
14158 bool temp8 = false ;
14159 PyObject * obj0 = 0 ;
14160 PyObject * obj1 = 0 ;
14161 PyObject * obj2 = 0 ;
14162 PyObject * obj3 = 0 ;
14163 PyObject * obj4 = 0 ;
14164 PyObject * obj5 = 0 ;
14165 PyObject * obj6 = 0 ;
14166 PyObject * obj7 = 0 ;
14167 char * kwnames[] = {
14168 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14169 };
14170
14171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
14172 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14173 if (!SWIG_IsOK(res1)) {
14174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_Create" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14175 }
14176 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14177 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14178 if (!SWIG_IsOK(res2)) {
14179 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrollBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14180 }
14181 arg2 = reinterpret_cast< wxWindow * >(argp2);
14182 if (obj2) {
14183 ecode3 = SWIG_AsVal_int(obj2, &val3);
14184 if (!SWIG_IsOK(ecode3)) {
14185 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrollBar_Create" "', expected argument " "3"" of type '" "int""'");
14186 }
14187 arg3 = static_cast< int >(val3);
14188 }
14189 if (obj3) {
d55e5bfc 14190 {
1bd55598
RD
14191 arg4 = &temp4;
14192 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 14193 }
1bd55598
RD
14194 }
14195 if (obj4) {
d55e5bfc 14196 {
1bd55598
RD
14197 arg5 = &temp5;
14198 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 14199 }
1bd55598
RD
14200 }
14201 if (obj5) {
14202 ecode6 = SWIG_AsVal_long(obj5, &val6);
14203 if (!SWIG_IsOK(ecode6)) {
14204 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrollBar_Create" "', expected argument " "6"" of type '" "long""'");
14205 }
14206 arg6 = static_cast< long >(val6);
14207 }
14208 if (obj6) {
14209 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
14210 if (!SWIG_IsOK(res7)) {
14211 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 14212 }
1bd55598
RD
14213 if (!argp7) {
14214 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 14215 }
1bd55598
RD
14216 arg7 = reinterpret_cast< wxValidator * >(argp7);
14217 }
14218 if (obj7) {
d55e5bfc 14219 {
1bd55598
RD
14220 arg8 = wxString_in_helper(obj7);
14221 if (arg8 == NULL) SWIG_fail;
14222 temp8 = true;
d55e5bfc 14223 }
1bd55598
RD
14224 }
14225 {
14226 PyThreadState* __tstate = wxPyBeginAllowThreads();
14227 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
14228 wxPyEndAllowThreads(__tstate);
14229 if (PyErr_Occurred()) SWIG_fail;
14230 }
14231 {
14232 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14233 }
14234 {
14235 if (temp8)
14236 delete arg8;
14237 }
14238 return resultobj;
14239fail:
14240 {
14241 if (temp8)
14242 delete arg8;
14243 }
14244 return NULL;
d55e5bfc
RD
14245}
14246
14247
1bd55598
RD
14248SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14249 PyObject *resultobj = 0;
14250 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14251 int result;
14252 void *argp1 = 0 ;
14253 int res1 = 0 ;
14254 PyObject *swig_obj[1] ;
14255
14256 if (!args) SWIG_fail;
14257 swig_obj[0] = args;
14258 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14259 if (!SWIG_IsOK(res1)) {
14260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14261 }
14262 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14263 {
14264 PyThreadState* __tstate = wxPyBeginAllowThreads();
14265 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
14266 wxPyEndAllowThreads(__tstate);
14267 if (PyErr_Occurred()) SWIG_fail;
14268 }
14269 resultobj = SWIG_From_int(static_cast< int >(result));
14270 return resultobj;
14271fail:
14272 return NULL;
d55e5bfc
RD
14273}
14274
14275
1bd55598
RD
14276SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14277 PyObject *resultobj = 0;
14278 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14279 int result;
14280 void *argp1 = 0 ;
14281 int res1 = 0 ;
14282 PyObject *swig_obj[1] ;
14283
14284 if (!args) SWIG_fail;
14285 swig_obj[0] = args;
14286 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14287 if (!SWIG_IsOK(res1)) {
14288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14289 }
14290 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14291 {
14292 PyThreadState* __tstate = wxPyBeginAllowThreads();
14293 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
14294 wxPyEndAllowThreads(__tstate);
14295 if (PyErr_Occurred()) SWIG_fail;
14296 }
14297 resultobj = SWIG_From_int(static_cast< int >(result));
14298 return resultobj;
14299fail:
14300 return NULL;
d55e5bfc
RD
14301}
14302
14303
1bd55598
RD
14304SWIGINTERN PyObject *_wrap_ScrollBar_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14305 PyObject *resultobj = 0;
14306 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14307 int result;
14308 void *argp1 = 0 ;
14309 int res1 = 0 ;
14310 PyObject *swig_obj[1] ;
14311
14312 if (!args) SWIG_fail;
14313 swig_obj[0] = args;
14314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14315 if (!SWIG_IsOK(res1)) {
14316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetPageSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14317 }
14318 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14319 {
14320 PyThreadState* __tstate = wxPyBeginAllowThreads();
14321 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
14322 wxPyEndAllowThreads(__tstate);
14323 if (PyErr_Occurred()) SWIG_fail;
14324 }
14325 resultobj = SWIG_From_int(static_cast< int >(result));
14326 return resultobj;
14327fail:
14328 return NULL;
d55e5bfc
RD
14329}
14330
14331
1bd55598
RD
14332SWIGINTERN PyObject *_wrap_ScrollBar_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14333 PyObject *resultobj = 0;
14334 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14335 int result;
14336 void *argp1 = 0 ;
14337 int res1 = 0 ;
14338 PyObject *swig_obj[1] ;
14339
14340 if (!args) SWIG_fail;
14341 swig_obj[0] = args;
14342 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14343 if (!SWIG_IsOK(res1)) {
14344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetRange" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14345 }
14346 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14347 {
14348 PyThreadState* __tstate = wxPyBeginAllowThreads();
14349 result = (int)((wxScrollBar const *)arg1)->GetRange();
14350 wxPyEndAllowThreads(__tstate);
14351 if (PyErr_Occurred()) SWIG_fail;
14352 }
14353 resultobj = SWIG_From_int(static_cast< int >(result));
14354 return resultobj;
14355fail:
14356 return NULL;
d55e5bfc
RD
14357}
14358
14359
1bd55598
RD
14360SWIGINTERN PyObject *_wrap_ScrollBar_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14361 PyObject *resultobj = 0;
14362 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14363 bool result;
14364 void *argp1 = 0 ;
14365 int res1 = 0 ;
14366 PyObject *swig_obj[1] ;
14367
14368 if (!args) SWIG_fail;
14369 swig_obj[0] = args;
14370 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14371 if (!SWIG_IsOK(res1)) {
14372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_IsVertical" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14373 }
14374 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14375 {
14376 PyThreadState* __tstate = wxPyBeginAllowThreads();
14377 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
14378 wxPyEndAllowThreads(__tstate);
14379 if (PyErr_Occurred()) SWIG_fail;
14380 }
14381 {
14382 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14383 }
14384 return resultobj;
14385fail:
14386 return NULL;
14387}
14388
14389
14390SWIGINTERN PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14391 PyObject *resultobj = 0;
14392 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14393 int arg2 ;
14394 void *argp1 = 0 ;
14395 int res1 = 0 ;
14396 int val2 ;
14397 int ecode2 = 0 ;
14398 PyObject * obj0 = 0 ;
14399 PyObject * obj1 = 0 ;
14400 char * kwnames[] = {
14401 (char *) "self",(char *) "viewStart", NULL
14402 };
14403
14404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) SWIG_fail;
14405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14406 if (!SWIG_IsOK(res1)) {
14407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14408 }
14409 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14410 ecode2 = SWIG_AsVal_int(obj1, &val2);
14411 if (!SWIG_IsOK(ecode2)) {
14412 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "2"" of type '" "int""'");
14413 }
14414 arg2 = static_cast< int >(val2);
14415 {
14416 PyThreadState* __tstate = wxPyBeginAllowThreads();
14417 (arg1)->SetThumbPosition(arg2);
14418 wxPyEndAllowThreads(__tstate);
14419 if (PyErr_Occurred()) SWIG_fail;
14420 }
14421 resultobj = SWIG_Py_Void();
14422 return resultobj;
14423fail:
14424 return NULL;
14425}
14426
14427
14428SWIGINTERN PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14429 PyObject *resultobj = 0;
14430 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14431 SwigValueWrapper<wxVisualAttributes > result;
14432 int val1 ;
14433 int ecode1 = 0 ;
14434 PyObject * obj0 = 0 ;
14435 char * kwnames[] = {
14436 (char *) "variant", NULL
14437 };
14438
14439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14440 if (obj0) {
14441 ecode1 = SWIG_AsVal_int(obj0, &val1);
14442 if (!SWIG_IsOK(ecode1)) {
14443 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrollBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14444 }
14445 arg1 = static_cast< wxWindowVariant >(val1);
14446 }
14447 {
14448 if (!wxPyCheckForApp()) SWIG_fail;
14449 PyThreadState* __tstate = wxPyBeginAllowThreads();
14450 result = wxScrollBar::GetClassDefaultAttributes(arg1);
14451 wxPyEndAllowThreads(__tstate);
14452 if (PyErr_Occurred()) SWIG_fail;
14453 }
14454 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14455 return resultobj;
14456fail:
14457 return NULL;
d55e5bfc
RD
14458}
14459
14460
1bd55598
RD
14461SWIGINTERN PyObject *ScrollBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14462 PyObject *obj;
14463 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14464 SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollBar, SWIG_NewClientData(obj));
14465 return SWIG_Py_Void();
d55e5bfc
RD
14466}
14467
1bd55598
RD
14468SWIGINTERN PyObject *ScrollBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14469 return SWIG_Python_InitShadowInstance(args);
14470}
d55e5bfc 14471
1bd55598
RD
14472SWIGINTERN int SPIN_BUTTON_NAME_set(PyObject *) {
14473 SWIG_Error(SWIG_AttributeError,"Variable SPIN_BUTTON_NAME is read-only.");
14474 return 1;
14475}
14476
14477
14478SWIGINTERN PyObject *SPIN_BUTTON_NAME_get(void) {
14479 PyObject *pyobj = 0;
14480
14481 {
d55e5bfc 14482#if wxUSE_UNICODE
1bd55598 14483 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
d55e5bfc 14484#else
1bd55598 14485 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
d55e5bfc 14486#endif
1bd55598
RD
14487 }
14488 return pyobj;
d55e5bfc
RD
14489}
14490
14491
1bd55598
RD
14492SWIGINTERN int SpinCtrlNameStr_set(PyObject *) {
14493 SWIG_Error(SWIG_AttributeError,"Variable SpinCtrlNameStr is read-only.");
14494 return 1;
d55e5bfc
RD
14495}
14496
14497
1bd55598
RD
14498SWIGINTERN PyObject *SpinCtrlNameStr_get(void) {
14499 PyObject *pyobj = 0;
14500
14501 {
14502#if wxUSE_UNICODE
14503 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14504#else
14505 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14506#endif
14507 }
14508 return pyobj;
14509}
14510
14511
14512SWIGINTERN PyObject *_wrap_new_SpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14513 PyObject *resultobj = 0;
14514 wxWindow *arg1 = (wxWindow *) 0 ;
14515 int arg2 = (int) -1 ;
14516 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14517 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14518 wxSize const &arg4_defvalue = wxDefaultSize ;
14519 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14520 long arg5 = (long) wxSP_HORIZONTAL ;
14521 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
14522 wxString *arg6 = (wxString *) &arg6_defvalue ;
14523 wxSpinButton *result = 0 ;
14524 void *argp1 = 0 ;
14525 int res1 = 0 ;
14526 int val2 ;
14527 int ecode2 = 0 ;
14528 wxPoint temp3 ;
14529 wxSize temp4 ;
14530 long val5 ;
14531 int ecode5 = 0 ;
14532 bool temp6 = false ;
14533 PyObject * obj0 = 0 ;
14534 PyObject * obj1 = 0 ;
14535 PyObject * obj2 = 0 ;
14536 PyObject * obj3 = 0 ;
14537 PyObject * obj4 = 0 ;
14538 PyObject * obj5 = 0 ;
14539 char * kwnames[] = {
14540 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14541 };
14542
14543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
14544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14545 if (!SWIG_IsOK(res1)) {
14546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinButton" "', expected argument " "1"" of type '" "wxWindow *""'");
14547 }
14548 arg1 = reinterpret_cast< wxWindow * >(argp1);
14549 if (obj1) {
14550 ecode2 = SWIG_AsVal_int(obj1, &val2);
14551 if (!SWIG_IsOK(ecode2)) {
14552 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinButton" "', expected argument " "2"" of type '" "int""'");
14553 }
14554 arg2 = static_cast< int >(val2);
14555 }
14556 if (obj2) {
d55e5bfc 14557 {
1bd55598
RD
14558 arg3 = &temp3;
14559 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 14560 }
1bd55598
RD
14561 }
14562 if (obj3) {
d55e5bfc 14563 {
1bd55598
RD
14564 arg4 = &temp4;
14565 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 14566 }
1bd55598
RD
14567 }
14568 if (obj4) {
14569 ecode5 = SWIG_AsVal_long(obj4, &val5);
14570 if (!SWIG_IsOK(ecode5)) {
14571 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpinButton" "', expected argument " "5"" of type '" "long""'");
14572 }
14573 arg5 = static_cast< long >(val5);
14574 }
14575 if (obj5) {
d55e5bfc 14576 {
1bd55598
RD
14577 arg6 = wxString_in_helper(obj5);
14578 if (arg6 == NULL) SWIG_fail;
14579 temp6 = true;
d55e5bfc 14580 }
1bd55598
RD
14581 }
14582 {
14583 if (!wxPyCheckForApp()) SWIG_fail;
14584 PyThreadState* __tstate = wxPyBeginAllowThreads();
14585 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14586 wxPyEndAllowThreads(__tstate);
14587 if (PyErr_Occurred()) SWIG_fail;
14588 }
14589 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_NEW | 0 );
14590 {
14591 if (temp6)
14592 delete arg6;
14593 }
14594 return resultobj;
14595fail:
14596 {
14597 if (temp6)
14598 delete arg6;
14599 }
14600 return NULL;
d55e5bfc
RD
14601}
14602
14603
1bd55598
RD
14604SWIGINTERN PyObject *_wrap_new_PreSpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14605 PyObject *resultobj = 0;
14606 wxSpinButton *result = 0 ;
14607
14608 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinButton",0,0,0)) SWIG_fail;
14609 {
14610 if (!wxPyCheckForApp()) SWIG_fail;
14611 PyThreadState* __tstate = wxPyBeginAllowThreads();
14612 result = (wxSpinButton *)new wxSpinButton();
14613 wxPyEndAllowThreads(__tstate);
14614 if (PyErr_Occurred()) SWIG_fail;
14615 }
14616 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_OWN | 0 );
14617 return resultobj;
14618fail:
14619 return NULL;
14620}
14621
14622
14623SWIGINTERN PyObject *_wrap_SpinButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14624 PyObject *resultobj = 0;
14625 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14626 wxWindow *arg2 = (wxWindow *) 0 ;
14627 int arg3 = (int) -1 ;
14628 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14629 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14630 wxSize const &arg5_defvalue = wxDefaultSize ;
14631 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14632 long arg6 = (long) wxSP_HORIZONTAL ;
14633 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
14634 wxString *arg7 = (wxString *) &arg7_defvalue ;
14635 bool result;
14636 void *argp1 = 0 ;
14637 int res1 = 0 ;
14638 void *argp2 = 0 ;
14639 int res2 = 0 ;
14640 int val3 ;
14641 int ecode3 = 0 ;
14642 wxPoint temp4 ;
14643 wxSize temp5 ;
14644 long val6 ;
14645 int ecode6 = 0 ;
14646 bool temp7 = false ;
14647 PyObject * obj0 = 0 ;
14648 PyObject * obj1 = 0 ;
14649 PyObject * obj2 = 0 ;
14650 PyObject * obj3 = 0 ;
14651 PyObject * obj4 = 0 ;
14652 PyObject * obj5 = 0 ;
14653 PyObject * obj6 = 0 ;
14654 char * kwnames[] = {
14655 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14656 };
14657
14658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14660 if (!SWIG_IsOK(res1)) {
14661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_Create" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14662 }
14663 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14664 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14665 if (!SWIG_IsOK(res2)) {
14666 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14667 }
14668 arg2 = reinterpret_cast< wxWindow * >(argp2);
14669 if (obj2) {
14670 ecode3 = SWIG_AsVal_int(obj2, &val3);
14671 if (!SWIG_IsOK(ecode3)) {
14672 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_Create" "', expected argument " "3"" of type '" "int""'");
14673 }
14674 arg3 = static_cast< int >(val3);
14675 }
14676 if (obj3) {
d55e5bfc 14677 {
1bd55598
RD
14678 arg4 = &temp4;
14679 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 14680 }
1bd55598
RD
14681 }
14682 if (obj4) {
d55e5bfc 14683 {
1bd55598
RD
14684 arg5 = &temp5;
14685 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 14686 }
1bd55598
RD
14687 }
14688 if (obj5) {
14689 ecode6 = SWIG_AsVal_long(obj5, &val6);
14690 if (!SWIG_IsOK(ecode6)) {
14691 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SpinButton_Create" "', expected argument " "6"" of type '" "long""'");
14692 }
14693 arg6 = static_cast< long >(val6);
14694 }
14695 if (obj6) {
14696 {
14697 arg7 = wxString_in_helper(obj6);
14698 if (arg7 == NULL) SWIG_fail;
14699 temp7 = true;
14700 }
14701 }
14702 {
14703 PyThreadState* __tstate = wxPyBeginAllowThreads();
14704 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
14705 wxPyEndAllowThreads(__tstate);
14706 if (PyErr_Occurred()) SWIG_fail;
14707 }
14708 {
14709 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14710 }
14711 {
14712 if (temp7)
14713 delete arg7;
14714 }
14715 return resultobj;
14716fail:
14717 {
14718 if (temp7)
14719 delete arg7;
14720 }
14721 return NULL;
d55e5bfc
RD
14722}
14723
14724
1bd55598
RD
14725SWIGINTERN PyObject *_wrap_SpinButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14726 PyObject *resultobj = 0;
14727 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14728 int result;
14729 void *argp1 = 0 ;
14730 int res1 = 0 ;
14731 PyObject *swig_obj[1] ;
14732
14733 if (!args) SWIG_fail;
14734 swig_obj[0] = args;
14735 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14736 if (!SWIG_IsOK(res1)) {
14737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetValue" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14738 }
14739 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14740 {
14741 PyThreadState* __tstate = wxPyBeginAllowThreads();
14742 result = (int)((wxSpinButton const *)arg1)->GetValue();
14743 wxPyEndAllowThreads(__tstate);
14744 if (PyErr_Occurred()) SWIG_fail;
14745 }
14746 resultobj = SWIG_From_int(static_cast< int >(result));
14747 return resultobj;
14748fail:
14749 return NULL;
d55e5bfc
RD
14750}
14751
14752
1bd55598
RD
14753SWIGINTERN PyObject *_wrap_SpinButton_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14754 PyObject *resultobj = 0;
14755 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14756 int result;
14757 void *argp1 = 0 ;
14758 int res1 = 0 ;
14759 PyObject *swig_obj[1] ;
14760
14761 if (!args) SWIG_fail;
14762 swig_obj[0] = args;
14763 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14764 if (!SWIG_IsOK(res1)) {
14765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMin" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14766 }
14767 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14768 {
14769 PyThreadState* __tstate = wxPyBeginAllowThreads();
14770 result = (int)((wxSpinButton const *)arg1)->GetMin();
14771 wxPyEndAllowThreads(__tstate);
14772 if (PyErr_Occurred()) SWIG_fail;
14773 }
14774 resultobj = SWIG_From_int(static_cast< int >(result));
14775 return resultobj;
14776fail:
14777 return NULL;
d55e5bfc
RD
14778}
14779
14780
1bd55598
RD
14781SWIGINTERN PyObject *_wrap_SpinButton_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14782 PyObject *resultobj = 0;
14783 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14784 int result;
14785 void *argp1 = 0 ;
14786 int res1 = 0 ;
14787 PyObject *swig_obj[1] ;
14788
14789 if (!args) SWIG_fail;
14790 swig_obj[0] = args;
14791 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14792 if (!SWIG_IsOK(res1)) {
14793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMax" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14794 }
14795 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14796 {
14797 PyThreadState* __tstate = wxPyBeginAllowThreads();
14798 result = (int)((wxSpinButton const *)arg1)->GetMax();
14799 wxPyEndAllowThreads(__tstate);
14800 if (PyErr_Occurred()) SWIG_fail;
14801 }
14802 resultobj = SWIG_From_int(static_cast< int >(result));
14803 return resultobj;
14804fail:
14805 return NULL;
14806}
14807
14808
14809SWIGINTERN PyObject *_wrap_SpinButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14810 PyObject *resultobj = 0;
14811 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14812 int arg2 ;
14813 void *argp1 = 0 ;
14814 int res1 = 0 ;
14815 int val2 ;
14816 int ecode2 = 0 ;
14817 PyObject * obj0 = 0 ;
14818 PyObject * obj1 = 0 ;
14819 char * kwnames[] = {
14820 (char *) "self",(char *) "val", NULL
14821 };
14822
14823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
14824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14825 if (!SWIG_IsOK(res1)) {
14826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetValue" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14827 }
14828 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14829 ecode2 = SWIG_AsVal_int(obj1, &val2);
14830 if (!SWIG_IsOK(ecode2)) {
14831 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetValue" "', expected argument " "2"" of type '" "int""'");
14832 }
14833 arg2 = static_cast< int >(val2);
14834 {
14835 PyThreadState* __tstate = wxPyBeginAllowThreads();
14836 (arg1)->SetValue(arg2);
14837 wxPyEndAllowThreads(__tstate);
14838 if (PyErr_Occurred()) SWIG_fail;
14839 }
14840 resultobj = SWIG_Py_Void();
14841 return resultobj;
14842fail:
14843 return NULL;
14844}
14845
14846
14847SWIGINTERN PyObject *_wrap_SpinButton_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14848 PyObject *resultobj = 0;
14849 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14850 int arg2 ;
14851 void *argp1 = 0 ;
14852 int res1 = 0 ;
14853 int val2 ;
14854 int ecode2 = 0 ;
14855 PyObject * obj0 = 0 ;
14856 PyObject * obj1 = 0 ;
14857 char * kwnames[] = {
14858 (char *) "self",(char *) "minVal", NULL
14859 };
14860
14861 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
14862 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14863 if (!SWIG_IsOK(res1)) {
14864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMin" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14865 }
14866 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14867 ecode2 = SWIG_AsVal_int(obj1, &val2);
14868 if (!SWIG_IsOK(ecode2)) {
14869 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMin" "', expected argument " "2"" of type '" "int""'");
14870 }
14871 arg2 = static_cast< int >(val2);
14872 {
14873 PyThreadState* __tstate = wxPyBeginAllowThreads();
14874 (arg1)->SetMin(arg2);
14875 wxPyEndAllowThreads(__tstate);
14876 if (PyErr_Occurred()) SWIG_fail;
14877 }
14878 resultobj = SWIG_Py_Void();
14879 return resultobj;
14880fail:
14881 return NULL;
14882}
14883
14884
14885SWIGINTERN PyObject *_wrap_SpinButton_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14886 PyObject *resultobj = 0;
14887 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14888 int arg2 ;
14889 void *argp1 = 0 ;
14890 int res1 = 0 ;
14891 int val2 ;
14892 int ecode2 = 0 ;
14893 PyObject * obj0 = 0 ;
14894 PyObject * obj1 = 0 ;
14895 char * kwnames[] = {
14896 (char *) "self",(char *) "maxVal", NULL
14897 };
14898
14899 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
14900 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14901 if (!SWIG_IsOK(res1)) {
14902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMax" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14903 }
14904 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14905 ecode2 = SWIG_AsVal_int(obj1, &val2);
14906 if (!SWIG_IsOK(ecode2)) {
14907 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMax" "', expected argument " "2"" of type '" "int""'");
14908 }
14909 arg2 = static_cast< int >(val2);
14910 {
14911 PyThreadState* __tstate = wxPyBeginAllowThreads();
14912 (arg1)->SetMax(arg2);
14913 wxPyEndAllowThreads(__tstate);
14914 if (PyErr_Occurred()) SWIG_fail;
14915 }
14916 resultobj = SWIG_Py_Void();
14917 return resultobj;
14918fail:
14919 return NULL;
14920}
14921
14922
14923SWIGINTERN PyObject *_wrap_SpinButton_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14924 PyObject *resultobj = 0;
14925 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14926 int arg2 ;
14927 int arg3 ;
14928 void *argp1 = 0 ;
14929 int res1 = 0 ;
14930 int val2 ;
14931 int ecode2 = 0 ;
14932 int val3 ;
14933 int ecode3 = 0 ;
14934 PyObject * obj0 = 0 ;
14935 PyObject * obj1 = 0 ;
14936 PyObject * obj2 = 0 ;
14937 char * kwnames[] = {
14938 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
14939 };
14940
14941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14943 if (!SWIG_IsOK(res1)) {
14944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetRange" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14945 }
14946 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14947 ecode2 = SWIG_AsVal_int(obj1, &val2);
14948 if (!SWIG_IsOK(ecode2)) {
14949 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetRange" "', expected argument " "2"" of type '" "int""'");
14950 }
14951 arg2 = static_cast< int >(val2);
14952 ecode3 = SWIG_AsVal_int(obj2, &val3);
14953 if (!SWIG_IsOK(ecode3)) {
14954 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_SetRange" "', expected argument " "3"" of type '" "int""'");
14955 }
14956 arg3 = static_cast< int >(val3);
14957 {
14958 PyThreadState* __tstate = wxPyBeginAllowThreads();
14959 (arg1)->SetRange(arg2,arg3);
14960 wxPyEndAllowThreads(__tstate);
14961 if (PyErr_Occurred()) SWIG_fail;
14962 }
14963 resultobj = SWIG_Py_Void();
14964 return resultobj;
14965fail:
14966 return NULL;
d55e5bfc
RD
14967}
14968
14969
1bd55598
RD
14970SWIGINTERN PyObject *_wrap_SpinButton_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14971 PyObject *resultobj = 0;
14972 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14973 bool result;
14974 void *argp1 = 0 ;
14975 int res1 = 0 ;
14976 PyObject *swig_obj[1] ;
14977
14978 if (!args) SWIG_fail;
14979 swig_obj[0] = args;
14980 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14981 if (!SWIG_IsOK(res1)) {
14982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_IsVertical" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14983 }
14984 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14985 {
14986 PyThreadState* __tstate = wxPyBeginAllowThreads();
14987 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
14988 wxPyEndAllowThreads(__tstate);
14989 if (PyErr_Occurred()) SWIG_fail;
14990 }
14991 {
14992 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14993 }
14994 return resultobj;
14995fail:
14996 return NULL;
d55e5bfc
RD
14997}
14998
14999
1bd55598
RD
15000SWIGINTERN PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15001 PyObject *resultobj = 0;
15002 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15003 SwigValueWrapper<wxVisualAttributes > result;
15004 int val1 ;
15005 int ecode1 = 0 ;
15006 PyObject * obj0 = 0 ;
15007 char * kwnames[] = {
15008 (char *) "variant", NULL
15009 };
15010
15011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15012 if (obj0) {
15013 ecode1 = SWIG_AsVal_int(obj0, &val1);
15014 if (!SWIG_IsOK(ecode1)) {
15015 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15016 }
15017 arg1 = static_cast< wxWindowVariant >(val1);
15018 }
15019 {
15020 if (!wxPyCheckForApp()) SWIG_fail;
15021 PyThreadState* __tstate = wxPyBeginAllowThreads();
15022 result = wxSpinButton::GetClassDefaultAttributes(arg1);
15023 wxPyEndAllowThreads(__tstate);
15024 if (PyErr_Occurred()) SWIG_fail;
15025 }
15026 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15027 return resultobj;
15028fail:
15029 return NULL;
15030}
15031
15032
15033SWIGINTERN PyObject *SpinButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15034 PyObject *obj;
15035 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15036 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinButton, SWIG_NewClientData(obj));
15037 return SWIG_Py_Void();
15038}
15039
15040SWIGINTERN PyObject *SpinButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15041 return SWIG_Python_InitShadowInstance(args);
15042}
15043
15044SWIGINTERN PyObject *_wrap_new_SpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15045 PyObject *resultobj = 0;
15046 wxWindow *arg1 = (wxWindow *) 0 ;
15047 int arg2 = (int) -1 ;
15048 wxString const &arg3_defvalue = wxPyEmptyString ;
15049 wxString *arg3 = (wxString *) &arg3_defvalue ;
15050 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15051 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15052 wxSize const &arg5_defvalue = wxDefaultSize ;
15053 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15054 long arg6 = (long) wxSP_ARROW_KEYS ;
15055 int arg7 = (int) 0 ;
15056 int arg8 = (int) 100 ;
15057 int arg9 = (int) 0 ;
15058 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
15059 wxString *arg10 = (wxString *) &arg10_defvalue ;
15060 wxSpinCtrl *result = 0 ;
15061 void *argp1 = 0 ;
15062 int res1 = 0 ;
15063 int val2 ;
15064 int ecode2 = 0 ;
15065 bool temp3 = false ;
15066 wxPoint temp4 ;
15067 wxSize temp5 ;
15068 long val6 ;
15069 int ecode6 = 0 ;
15070 int val7 ;
15071 int ecode7 = 0 ;
15072 int val8 ;
15073 int ecode8 = 0 ;
15074 int val9 ;
15075 int ecode9 = 0 ;
15076 bool temp10 = false ;
15077 PyObject * obj0 = 0 ;
15078 PyObject * obj1 = 0 ;
15079 PyObject * obj2 = 0 ;
15080 PyObject * obj3 = 0 ;
15081 PyObject * obj4 = 0 ;
15082 PyObject * obj5 = 0 ;
15083 PyObject * obj6 = 0 ;
15084 PyObject * obj7 = 0 ;
15085 PyObject * obj8 = 0 ;
15086 PyObject * obj9 = 0 ;
15087 char * kwnames[] = {
15088 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15089 };
15090
15091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15093 if (!SWIG_IsOK(res1)) {
15094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
15095 }
15096 arg1 = reinterpret_cast< wxWindow * >(argp1);
15097 if (obj1) {
15098 ecode2 = SWIG_AsVal_int(obj1, &val2);
15099 if (!SWIG_IsOK(ecode2)) {
15100 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinCtrl" "', expected argument " "2"" of type '" "int""'");
15101 }
15102 arg2 = static_cast< int >(val2);
15103 }
15104 if (obj2) {
d55e5bfc 15105 {
1bd55598
RD
15106 arg3 = wxString_in_helper(obj2);
15107 if (arg3 == NULL) SWIG_fail;
15108 temp3 = true;
d55e5bfc 15109 }
1bd55598
RD
15110 }
15111 if (obj3) {
d55e5bfc 15112 {
1bd55598
RD
15113 arg4 = &temp4;
15114 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 15115 }
1bd55598
RD
15116 }
15117 if (obj4) {
d55e5bfc 15118 {
1bd55598
RD
15119 arg5 = &temp5;
15120 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 15121 }
1bd55598
RD
15122 }
15123 if (obj5) {
15124 ecode6 = SWIG_AsVal_long(obj5, &val6);
15125 if (!SWIG_IsOK(ecode6)) {
15126 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpinCtrl" "', expected argument " "6"" of type '" "long""'");
15127 }
15128 arg6 = static_cast< long >(val6);
15129 }
15130 if (obj6) {
15131 ecode7 = SWIG_AsVal_int(obj6, &val7);
15132 if (!SWIG_IsOK(ecode7)) {
15133 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpinCtrl" "', expected argument " "7"" of type '" "int""'");
15134 }
15135 arg7 = static_cast< int >(val7);
15136 }
15137 if (obj7) {
15138 ecode8 = SWIG_AsVal_int(obj7, &val8);
15139 if (!SWIG_IsOK(ecode8)) {
15140 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SpinCtrl" "', expected argument " "8"" of type '" "int""'");
15141 }
15142 arg8 = static_cast< int >(val8);
15143 }
15144 if (obj8) {
15145 ecode9 = SWIG_AsVal_int(obj8, &val9);
15146 if (!SWIG_IsOK(ecode9)) {
15147 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpinCtrl" "', expected argument " "9"" of type '" "int""'");
15148 }
15149 arg9 = static_cast< int >(val9);
15150 }
15151 if (obj9) {
d55e5bfc 15152 {
1bd55598
RD
15153 arg10 = wxString_in_helper(obj9);
15154 if (arg10 == NULL) SWIG_fail;
15155 temp10 = true;
d55e5bfc 15156 }
1bd55598
RD
15157 }
15158 {
15159 if (!wxPyCheckForApp()) SWIG_fail;
15160 PyThreadState* __tstate = wxPyBeginAllowThreads();
15161 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
15162 wxPyEndAllowThreads(__tstate);
15163 if (PyErr_Occurred()) SWIG_fail;
15164 }
15165 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_NEW | 0 );
15166 {
15167 if (temp3)
15168 delete arg3;
15169 }
15170 {
15171 if (temp10)
15172 delete arg10;
15173 }
15174 return resultobj;
15175fail:
15176 {
15177 if (temp3)
15178 delete arg3;
15179 }
15180 {
15181 if (temp10)
15182 delete arg10;
15183 }
15184 return NULL;
d55e5bfc
RD
15185}
15186
15187
1bd55598
RD
15188SWIGINTERN PyObject *_wrap_new_PreSpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15189 PyObject *resultobj = 0;
15190 wxSpinCtrl *result = 0 ;
15191
15192 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinCtrl",0,0,0)) SWIG_fail;
15193 {
15194 if (!wxPyCheckForApp()) SWIG_fail;
15195 PyThreadState* __tstate = wxPyBeginAllowThreads();
15196 result = (wxSpinCtrl *)new wxSpinCtrl();
15197 wxPyEndAllowThreads(__tstate);
15198 if (PyErr_Occurred()) SWIG_fail;
15199 }
15200 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_OWN | 0 );
15201 return resultobj;
15202fail:
15203 return NULL;
15204}
15205
15206
15207SWIGINTERN PyObject *_wrap_SpinCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15208 PyObject *resultobj = 0;
15209 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15210 wxWindow *arg2 = (wxWindow *) 0 ;
15211 int arg3 = (int) -1 ;
15212 wxString const &arg4_defvalue = wxPyEmptyString ;
15213 wxString *arg4 = (wxString *) &arg4_defvalue ;
15214 wxPoint const &arg5_defvalue = wxDefaultPosition ;
15215 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
15216 wxSize const &arg6_defvalue = wxDefaultSize ;
15217 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
15218 long arg7 = (long) wxSP_ARROW_KEYS ;
15219 int arg8 = (int) 0 ;
15220 int arg9 = (int) 100 ;
15221 int arg10 = (int) 0 ;
15222 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
15223 wxString *arg11 = (wxString *) &arg11_defvalue ;
15224 bool result;
15225 void *argp1 = 0 ;
15226 int res1 = 0 ;
15227 void *argp2 = 0 ;
15228 int res2 = 0 ;
15229 int val3 ;
15230 int ecode3 = 0 ;
15231 bool temp4 = false ;
15232 wxPoint temp5 ;
15233 wxSize temp6 ;
15234 long val7 ;
15235 int ecode7 = 0 ;
15236 int val8 ;
15237 int ecode8 = 0 ;
15238 int val9 ;
15239 int ecode9 = 0 ;
15240 int val10 ;
15241 int ecode10 = 0 ;
15242 bool temp11 = 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 PyObject * obj10 = 0 ;
15254 char * kwnames[] = {
15255 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15256 };
15257
15258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
15259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15260 if (!SWIG_IsOK(res1)) {
15261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_Create" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15262 }
15263 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15264 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
15265 if (!SWIG_IsOK(res2)) {
15266 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
15267 }
15268 arg2 = reinterpret_cast< wxWindow * >(argp2);
15269 if (obj2) {
15270 ecode3 = SWIG_AsVal_int(obj2, &val3);
15271 if (!SWIG_IsOK(ecode3)) {
15272 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_Create" "', expected argument " "3"" of type '" "int""'");
15273 }
15274 arg3 = static_cast< int >(val3);
15275 }
15276 if (obj3) {
36ed4f51 15277 {
1bd55598
RD
15278 arg4 = wxString_in_helper(obj3);
15279 if (arg4 == NULL) SWIG_fail;
15280 temp4 = true;
36ed4f51 15281 }
1bd55598
RD
15282 }
15283 if (obj4) {
36ed4f51 15284 {
1bd55598
RD
15285 arg5 = &temp5;
15286 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 15287 }
1bd55598
RD
15288 }
15289 if (obj5) {
d55e5bfc 15290 {
1bd55598
RD
15291 arg6 = &temp6;
15292 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 15293 }
1bd55598
RD
15294 }
15295 if (obj6) {
15296 ecode7 = SWIG_AsVal_long(obj6, &val7);
15297 if (!SWIG_IsOK(ecode7)) {
15298 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SpinCtrl_Create" "', expected argument " "7"" of type '" "long""'");
15299 }
15300 arg7 = static_cast< long >(val7);
15301 }
15302 if (obj7) {
15303 ecode8 = SWIG_AsVal_int(obj7, &val8);
15304 if (!SWIG_IsOK(ecode8)) {
15305 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "SpinCtrl_Create" "', expected argument " "8"" of type '" "int""'");
15306 }
15307 arg8 = static_cast< int >(val8);
15308 }
15309 if (obj8) {
15310 ecode9 = SWIG_AsVal_int(obj8, &val9);
15311 if (!SWIG_IsOK(ecode9)) {
15312 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "SpinCtrl_Create" "', expected argument " "9"" of type '" "int""'");
15313 }
15314 arg9 = static_cast< int >(val9);
15315 }
15316 if (obj9) {
15317 ecode10 = SWIG_AsVal_int(obj9, &val10);
15318 if (!SWIG_IsOK(ecode10)) {
15319 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "SpinCtrl_Create" "', expected argument " "10"" of type '" "int""'");
15320 }
15321 arg10 = static_cast< int >(val10);
15322 }
15323 if (obj10) {
15324 {
15325 arg11 = wxString_in_helper(obj10);
15326 if (arg11 == NULL) SWIG_fail;
15327 temp11 = true;
15328 }
15329 }
15330 {
15331 PyThreadState* __tstate = wxPyBeginAllowThreads();
15332 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
15333 wxPyEndAllowThreads(__tstate);
15334 if (PyErr_Occurred()) SWIG_fail;
15335 }
15336 {
15337 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15338 }
15339 {
15340 if (temp4)
15341 delete arg4;
15342 }
15343 {
15344 if (temp11)
15345 delete arg11;
15346 }
15347 return resultobj;
15348fail:
15349 {
15350 if (temp4)
15351 delete arg4;
15352 }
15353 {
15354 if (temp11)
15355 delete arg11;
15356 }
15357 return NULL;
d55e5bfc
RD
15358}
15359
15360
1bd55598
RD
15361SWIGINTERN PyObject *_wrap_SpinCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15362 PyObject *resultobj = 0;
15363 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15364 int result;
15365 void *argp1 = 0 ;
15366 int res1 = 0 ;
15367 PyObject *swig_obj[1] ;
15368
15369 if (!args) SWIG_fail;
15370 swig_obj[0] = args;
15371 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15372 if (!SWIG_IsOK(res1)) {
15373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetValue" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15374 }
15375 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15376 {
15377 PyThreadState* __tstate = wxPyBeginAllowThreads();
15378 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
15379 wxPyEndAllowThreads(__tstate);
15380 if (PyErr_Occurred()) SWIG_fail;
15381 }
15382 resultobj = SWIG_From_int(static_cast< int >(result));
15383 return resultobj;
15384fail:
15385 return NULL;
15386}
15387
15388
15389SWIGINTERN PyObject *_wrap_SpinCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15390 PyObject *resultobj = 0;
15391 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15392 int arg2 ;
15393 void *argp1 = 0 ;
15394 int res1 = 0 ;
15395 int val2 ;
15396 int ecode2 = 0 ;
15397 PyObject * obj0 = 0 ;
15398 PyObject * obj1 = 0 ;
15399 char * kwnames[] = {
15400 (char *) "self",(char *) "value", NULL
15401 };
15402
15403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15404 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15405 if (!SWIG_IsOK(res1)) {
15406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValue" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15407 }
15408 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15409 ecode2 = SWIG_AsVal_int(obj1, &val2);
15410 if (!SWIG_IsOK(ecode2)) {
15411 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetValue" "', expected argument " "2"" of type '" "int""'");
15412 }
15413 arg2 = static_cast< int >(val2);
15414 {
15415 PyThreadState* __tstate = wxPyBeginAllowThreads();
15416 (arg1)->SetValue(arg2);
15417 wxPyEndAllowThreads(__tstate);
15418 if (PyErr_Occurred()) SWIG_fail;
15419 }
15420 resultobj = SWIG_Py_Void();
15421 return resultobj;
15422fail:
15423 return NULL;
15424}
15425
15426
15427SWIGINTERN PyObject *_wrap_SpinCtrl_SetValueString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15428 PyObject *resultobj = 0;
15429 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15430 wxString *arg2 = 0 ;
15431 void *argp1 = 0 ;
15432 int res1 = 0 ;
15433 bool temp2 = false ;
15434 PyObject * obj0 = 0 ;
15435 PyObject * obj1 = 0 ;
15436 char * kwnames[] = {
15437 (char *) "self",(char *) "text", NULL
15438 };
15439
15440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) SWIG_fail;
15441 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15442 if (!SWIG_IsOK(res1)) {
15443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValueString" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15444 }
15445 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15446 {
15447 arg2 = wxString_in_helper(obj1);
15448 if (arg2 == NULL) SWIG_fail;
15449 temp2 = true;
15450 }
15451 {
15452 PyThreadState* __tstate = wxPyBeginAllowThreads();
15453 (arg1)->SetValue((wxString const &)*arg2);
15454 wxPyEndAllowThreads(__tstate);
15455 if (PyErr_Occurred()) SWIG_fail;
15456 }
15457 resultobj = SWIG_Py_Void();
15458 {
15459 if (temp2)
15460 delete arg2;
15461 }
15462 return resultobj;
15463fail:
15464 {
15465 if (temp2)
15466 delete arg2;
15467 }
15468 return NULL;
15469}
15470
15471
15472SWIGINTERN PyObject *_wrap_SpinCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15473 PyObject *resultobj = 0;
15474 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15475 int arg2 ;
15476 int arg3 ;
15477 void *argp1 = 0 ;
15478 int res1 = 0 ;
15479 int val2 ;
15480 int ecode2 = 0 ;
15481 int val3 ;
15482 int ecode3 = 0 ;
15483 PyObject * obj0 = 0 ;
15484 PyObject * obj1 = 0 ;
15485 PyObject * obj2 = 0 ;
15486 char * kwnames[] = {
15487 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15488 };
15489
15490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15492 if (!SWIG_IsOK(res1)) {
15493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetRange" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15494 }
15495 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15496 ecode2 = SWIG_AsVal_int(obj1, &val2);
15497 if (!SWIG_IsOK(ecode2)) {
15498 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetRange" "', expected argument " "2"" of type '" "int""'");
15499 }
15500 arg2 = static_cast< int >(val2);
15501 ecode3 = SWIG_AsVal_int(obj2, &val3);
15502 if (!SWIG_IsOK(ecode3)) {
15503 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetRange" "', expected argument " "3"" of type '" "int""'");
15504 }
15505 arg3 = static_cast< int >(val3);
15506 {
15507 PyThreadState* __tstate = wxPyBeginAllowThreads();
15508 (arg1)->SetRange(arg2,arg3);
15509 wxPyEndAllowThreads(__tstate);
15510 if (PyErr_Occurred()) SWIG_fail;
15511 }
15512 resultobj = SWIG_Py_Void();
15513 return resultobj;
15514fail:
15515 return NULL;
d55e5bfc
RD
15516}
15517
15518
1bd55598
RD
15519SWIGINTERN PyObject *_wrap_SpinCtrl_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15520 PyObject *resultobj = 0;
15521 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15522 int result;
15523 void *argp1 = 0 ;
15524 int res1 = 0 ;
15525 PyObject *swig_obj[1] ;
15526
15527 if (!args) SWIG_fail;
15528 swig_obj[0] = args;
15529 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15530 if (!SWIG_IsOK(res1)) {
15531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMin" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15532 }
15533 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15534 {
15535 PyThreadState* __tstate = wxPyBeginAllowThreads();
15536 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
15537 wxPyEndAllowThreads(__tstate);
15538 if (PyErr_Occurred()) SWIG_fail;
15539 }
15540 resultobj = SWIG_From_int(static_cast< int >(result));
15541 return resultobj;
15542fail:
15543 return NULL;
d55e5bfc
RD
15544}
15545
15546
1bd55598
RD
15547SWIGINTERN PyObject *_wrap_SpinCtrl_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15548 PyObject *resultobj = 0;
15549 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15550 int result;
15551 void *argp1 = 0 ;
15552 int res1 = 0 ;
15553 PyObject *swig_obj[1] ;
15554
15555 if (!args) SWIG_fail;
15556 swig_obj[0] = args;
15557 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15558 if (!SWIG_IsOK(res1)) {
15559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMax" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15560 }
15561 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15562 {
15563 PyThreadState* __tstate = wxPyBeginAllowThreads();
15564 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
15565 wxPyEndAllowThreads(__tstate);
15566 if (PyErr_Occurred()) SWIG_fail;
15567 }
15568 resultobj = SWIG_From_int(static_cast< int >(result));
15569 return resultobj;
15570fail:
15571 return NULL;
15572}
15573
15574
15575SWIGINTERN PyObject *_wrap_SpinCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15576 PyObject *resultobj = 0;
15577 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15578 long arg2 ;
15579 long arg3 ;
15580 void *argp1 = 0 ;
15581 int res1 = 0 ;
15582 long val2 ;
15583 int ecode2 = 0 ;
15584 long val3 ;
15585 int ecode3 = 0 ;
15586 PyObject * obj0 = 0 ;
15587 PyObject * obj1 = 0 ;
15588 PyObject * obj2 = 0 ;
15589 char * kwnames[] = {
2131d850 15590 (char *) "self",(char *) "from",(char *) "to", NULL
1bd55598
RD
15591 };
15592
15593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15595 if (!SWIG_IsOK(res1)) {
15596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetSelection" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15597 }
15598 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15599 ecode2 = SWIG_AsVal_long(obj1, &val2);
15600 if (!SWIG_IsOK(ecode2)) {
15601 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
15602 }
15603 arg2 = static_cast< long >(val2);
15604 ecode3 = SWIG_AsVal_long(obj2, &val3);
15605 if (!SWIG_IsOK(ecode3)) {
15606 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
15607 }
15608 arg3 = static_cast< long >(val3);
15609 {
15610 PyThreadState* __tstate = wxPyBeginAllowThreads();
15611 (arg1)->SetSelection(arg2,arg3);
15612 wxPyEndAllowThreads(__tstate);
15613 if (PyErr_Occurred()) SWIG_fail;
15614 }
15615 resultobj = SWIG_Py_Void();
15616 return resultobj;
15617fail:
15618 return NULL;
15619}
15620
15621
15622SWIGINTERN PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15623 PyObject *resultobj = 0;
15624 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15625 SwigValueWrapper<wxVisualAttributes > result;
15626 int val1 ;
15627 int ecode1 = 0 ;
15628 PyObject * obj0 = 0 ;
15629 char * kwnames[] = {
15630 (char *) "variant", NULL
15631 };
15632
15633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15634 if (obj0) {
15635 ecode1 = SWIG_AsVal_int(obj0, &val1);
15636 if (!SWIG_IsOK(ecode1)) {
15637 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15638 }
15639 arg1 = static_cast< wxWindowVariant >(val1);
15640 }
15641 {
15642 if (!wxPyCheckForApp()) SWIG_fail;
15643 PyThreadState* __tstate = wxPyBeginAllowThreads();
15644 result = wxSpinCtrl::GetClassDefaultAttributes(arg1);
15645 wxPyEndAllowThreads(__tstate);
15646 if (PyErr_Occurred()) SWIG_fail;
15647 }
15648 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15649 return resultobj;
15650fail:
15651 return NULL;
d55e5bfc
RD
15652}
15653
15654
1bd55598
RD
15655SWIGINTERN PyObject *SpinCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15656 PyObject *obj;
15657 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15658 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinCtrl, SWIG_NewClientData(obj));
15659 return SWIG_Py_Void();
d55e5bfc
RD
15660}
15661
1bd55598
RD
15662SWIGINTERN PyObject *SpinCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15663 return SWIG_Python_InitShadowInstance(args);
15664}
d55e5bfc 15665
1bd55598
RD
15666SWIGINTERN PyObject *_wrap_new_SpinEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15667 PyObject *resultobj = 0;
15668 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15669 int arg2 = (int) 0 ;
15670 wxSpinEvent *result = 0 ;
15671 int val1 ;
15672 int ecode1 = 0 ;
15673 int val2 ;
15674 int ecode2 = 0 ;
15675 PyObject * obj0 = 0 ;
15676 PyObject * obj1 = 0 ;
15677 char * kwnames[] = {
15678 (char *) "commandType",(char *) "winid", NULL
15679 };
15680
15681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) SWIG_fail;
15682 if (obj0) {
15683 ecode1 = SWIG_AsVal_int(obj0, &val1);
15684 if (!SWIG_IsOK(ecode1)) {
15685 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SpinEvent" "', expected argument " "1"" of type '" "wxEventType""'");
15686 }
15687 arg1 = static_cast< wxEventType >(val1);
15688 }
15689 if (obj1) {
15690 ecode2 = SWIG_AsVal_int(obj1, &val2);
15691 if (!SWIG_IsOK(ecode2)) {
15692 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinEvent" "', expected argument " "2"" of type '" "int""'");
15693 }
15694 arg2 = static_cast< int >(val2);
15695 }
15696 {
15697 PyThreadState* __tstate = wxPyBeginAllowThreads();
15698 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
15699 wxPyEndAllowThreads(__tstate);
15700 if (PyErr_Occurred()) SWIG_fail;
15701 }
15702 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_NEW | 0 );
15703 return resultobj;
15704fail:
15705 return NULL;
d55e5bfc
RD
15706}
15707
15708
1bd55598
RD
15709SWIGINTERN PyObject *_wrap_SpinEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15710 PyObject *resultobj = 0;
15711 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15712 int result;
15713 void *argp1 = 0 ;
15714 int res1 = 0 ;
15715 PyObject *swig_obj[1] ;
15716
15717 if (!args) SWIG_fail;
15718 swig_obj[0] = args;
15719 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15720 if (!SWIG_IsOK(res1)) {
15721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_GetPosition" "', expected argument " "1"" of type '" "wxSpinEvent const *""'");
15722 }
15723 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15724 {
15725 PyThreadState* __tstate = wxPyBeginAllowThreads();
15726 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
15727 wxPyEndAllowThreads(__tstate);
15728 if (PyErr_Occurred()) SWIG_fail;
15729 }
15730 resultobj = SWIG_From_int(static_cast< int >(result));
15731 return resultobj;
15732fail:
15733 return NULL;
15734}
15735
15736
15737SWIGINTERN PyObject *_wrap_SpinEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15738 PyObject *resultobj = 0;
15739 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15740 int arg2 ;
15741 void *argp1 = 0 ;
15742 int res1 = 0 ;
15743 int val2 ;
15744 int ecode2 = 0 ;
15745 PyObject * obj0 = 0 ;
15746 PyObject * obj1 = 0 ;
15747 char * kwnames[] = {
15748 (char *) "self",(char *) "pos", NULL
15749 };
15750
15751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
15752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15753 if (!SWIG_IsOK(res1)) {
15754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_SetPosition" "', expected argument " "1"" of type '" "wxSpinEvent *""'");
15755 }
15756 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15757 ecode2 = SWIG_AsVal_int(obj1, &val2);
15758 if (!SWIG_IsOK(ecode2)) {
15759 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinEvent_SetPosition" "', expected argument " "2"" of type '" "int""'");
15760 }
15761 arg2 = static_cast< int >(val2);
15762 {
15763 PyThreadState* __tstate = wxPyBeginAllowThreads();
15764 (arg1)->SetPosition(arg2);
15765 wxPyEndAllowThreads(__tstate);
15766 if (PyErr_Occurred()) SWIG_fail;
15767 }
15768 resultobj = SWIG_Py_Void();
15769 return resultobj;
15770fail:
15771 return NULL;
d55e5bfc
RD
15772}
15773
15774
1bd55598
RD
15775SWIGINTERN PyObject *SpinEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15776 PyObject *obj;
15777 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15778 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinEvent, SWIG_NewClientData(obj));
15779 return SWIG_Py_Void();
d55e5bfc
RD
15780}
15781
1bd55598
RD
15782SWIGINTERN PyObject *SpinEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15783 return SWIG_Python_InitShadowInstance(args);
15784}
d55e5bfc 15785
1bd55598
RD
15786SWIGINTERN int RadioBoxNameStr_set(PyObject *) {
15787 SWIG_Error(SWIG_AttributeError,"Variable RadioBoxNameStr is read-only.");
15788 return 1;
d55e5bfc
RD
15789}
15790
15791
1bd55598
RD
15792SWIGINTERN PyObject *RadioBoxNameStr_get(void) {
15793 PyObject *pyobj = 0;
15794
15795 {
15796#if wxUSE_UNICODE
15797 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15798#else
15799 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15800#endif
15801 }
15802 return pyobj;
d55e5bfc
RD
15803}
15804
15805
1bd55598
RD
15806SWIGINTERN int RadioButtonNameStr_set(PyObject *) {
15807 SWIG_Error(SWIG_AttributeError,"Variable RadioButtonNameStr is read-only.");
15808 return 1;
15809}
15810
15811
15812SWIGINTERN PyObject *RadioButtonNameStr_get(void) {
15813 PyObject *pyobj = 0;
15814
15815 {
15816#if wxUSE_UNICODE
15817 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15818#else
15819 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15820#endif
15821 }
15822 return pyobj;
15823}
15824
15825
15826SWIGINTERN PyObject *_wrap_new_RadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15827 PyObject *resultobj = 0;
15828 wxWindow *arg1 = (wxWindow *) 0 ;
15829 int arg2 = (int) -1 ;
15830 wxString const &arg3_defvalue = wxPyEmptyString ;
15831 wxString *arg3 = (wxString *) &arg3_defvalue ;
15832 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15833 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15834 wxSize const &arg5_defvalue = wxDefaultSize ;
15835 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15836 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
15837 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
15838 int arg7 = (int) 0 ;
15839 long arg8 = (long) wxRA_HORIZONTAL ;
15840 wxValidator const &arg9_defvalue = wxDefaultValidator ;
15841 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
15842 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
15843 wxString *arg10 = (wxString *) &arg10_defvalue ;
15844 wxRadioBox *result = 0 ;
15845 void *argp1 = 0 ;
15846 int res1 = 0 ;
15847 int val2 ;
15848 int ecode2 = 0 ;
15849 bool temp3 = false ;
15850 wxPoint temp4 ;
15851 wxSize temp5 ;
15852 bool temp6 = false ;
15853 int val7 ;
15854 int ecode7 = 0 ;
15855 long val8 ;
15856 int ecode8 = 0 ;
15857 void *argp9 = 0 ;
15858 int res9 = 0 ;
15859 bool temp10 = false ;
15860 PyObject * obj0 = 0 ;
15861 PyObject * obj1 = 0 ;
15862 PyObject * obj2 = 0 ;
15863 PyObject * obj3 = 0 ;
15864 PyObject * obj4 = 0 ;
15865 PyObject * obj5 = 0 ;
15866 PyObject * obj6 = 0 ;
15867 PyObject * obj7 = 0 ;
15868 PyObject * obj8 = 0 ;
15869 PyObject * obj9 = 0 ;
15870 char * kwnames[] = {
15871 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
15872 };
15873
15874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15876 if (!SWIG_IsOK(res1)) {
15877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioBox" "', expected argument " "1"" of type '" "wxWindow *""'");
15878 }
15879 arg1 = reinterpret_cast< wxWindow * >(argp1);
15880 if (obj1) {
15881 ecode2 = SWIG_AsVal_int(obj1, &val2);
15882 if (!SWIG_IsOK(ecode2)) {
15883 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioBox" "', expected argument " "2"" of type '" "int""'");
15884 }
15885 arg2 = static_cast< int >(val2);
15886 }
15887 if (obj2) {
36ed4f51 15888 {
1bd55598
RD
15889 arg3 = wxString_in_helper(obj2);
15890 if (arg3 == NULL) SWIG_fail;
15891 temp3 = true;
36ed4f51 15892 }
1bd55598
RD
15893 }
15894 if (obj3) {
36ed4f51 15895 {
1bd55598
RD
15896 arg4 = &temp4;
15897 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 15898 }
1bd55598
RD
15899 }
15900 if (obj4) {
d55e5bfc 15901 {
1bd55598
RD
15902 arg5 = &temp5;
15903 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 15904 }
1bd55598
RD
15905 }
15906 if (obj5) {
d55e5bfc 15907 {
1bd55598
RD
15908 if (! PySequence_Check(obj5)) {
15909 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
15910 SWIG_fail;
15911 }
15912 arg6 = new wxArrayString;
15913 temp6 = true;
15914 int i, len=PySequence_Length(obj5);
15915 for (i=0; i<len; i++) {
15916 PyObject* item = PySequence_GetItem(obj5, i);
15917 wxString* s = wxString_in_helper(item);
15918 if (PyErr_Occurred()) SWIG_fail;
15919 arg6->Add(*s);
15920 delete s;
15921 Py_DECREF(item);
15922 }
d55e5bfc 15923 }
1bd55598
RD
15924 }
15925 if (obj6) {
15926 ecode7 = SWIG_AsVal_int(obj6, &val7);
15927 if (!SWIG_IsOK(ecode7)) {
15928 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_RadioBox" "', expected argument " "7"" of type '" "int""'");
15929 }
15930 arg7 = static_cast< int >(val7);
15931 }
15932 if (obj7) {
15933 ecode8 = SWIG_AsVal_long(obj7, &val8);
15934 if (!SWIG_IsOK(ecode8)) {
15935 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_RadioBox" "', expected argument " "8"" of type '" "long""'");
15936 }
15937 arg8 = static_cast< long >(val8);
15938 }
15939 if (obj8) {
15940 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
15941 if (!SWIG_IsOK(res9)) {
15942 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
d55e5bfc 15943 }
1bd55598
RD
15944 if (!argp9) {
15945 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
d55e5bfc 15946 }
1bd55598
RD
15947 arg9 = reinterpret_cast< wxValidator * >(argp9);
15948 }
15949 if (obj9) {
d55e5bfc 15950 {
1bd55598
RD
15951 arg10 = wxString_in_helper(obj9);
15952 if (arg10 == NULL) SWIG_fail;
15953 temp10 = true;
d55e5bfc 15954 }
1bd55598
RD
15955 }
15956 {
15957 if (!wxPyCheckForApp()) SWIG_fail;
15958 PyThreadState* __tstate = wxPyBeginAllowThreads();
15959 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);
15960 wxPyEndAllowThreads(__tstate);
15961 if (PyErr_Occurred()) SWIG_fail;
15962 }
15963 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_NEW | 0 );
15964 {
15965 if (temp3)
15966 delete arg3;
15967 }
15968 {
15969 if (temp6) delete arg6;
15970 }
15971 {
15972 if (temp10)
15973 delete arg10;
15974 }
15975 return resultobj;
15976fail:
15977 {
15978 if (temp3)
15979 delete arg3;
15980 }
15981 {
15982 if (temp6) delete arg6;
15983 }
15984 {
15985 if (temp10)
15986 delete arg10;
15987 }
15988 return NULL;
d55e5bfc
RD
15989}
15990
15991
1bd55598
RD
15992SWIGINTERN PyObject *_wrap_new_PreRadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15993 PyObject *resultobj = 0;
15994 wxRadioBox *result = 0 ;
15995
15996 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioBox",0,0,0)) SWIG_fail;
15997 {
15998 if (!wxPyCheckForApp()) SWIG_fail;
15999 PyThreadState* __tstate = wxPyBeginAllowThreads();
16000 result = (wxRadioBox *)new wxRadioBox();
16001 wxPyEndAllowThreads(__tstate);
16002 if (PyErr_Occurred()) SWIG_fail;
16003 }
16004 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_OWN | 0 );
16005 return resultobj;
16006fail:
16007 return NULL;
16008}
16009
16010
16011SWIGINTERN PyObject *_wrap_RadioBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16012 PyObject *resultobj = 0;
16013 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16014 wxWindow *arg2 = (wxWindow *) 0 ;
16015 int arg3 = (int) -1 ;
16016 wxString const &arg4_defvalue = wxPyEmptyString ;
16017 wxString *arg4 = (wxString *) &arg4_defvalue ;
16018 wxPoint const &arg5_defvalue = wxDefaultPosition ;
16019 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
16020 wxSize const &arg6_defvalue = wxDefaultSize ;
16021 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
16022 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
16023 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
16024 int arg8 = (int) 0 ;
16025 long arg9 = (long) wxRA_HORIZONTAL ;
16026 wxValidator const &arg10_defvalue = wxDefaultValidator ;
16027 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
16028 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
16029 wxString *arg11 = (wxString *) &arg11_defvalue ;
16030 bool result;
16031 void *argp1 = 0 ;
16032 int res1 = 0 ;
16033 void *argp2 = 0 ;
16034 int res2 = 0 ;
16035 int val3 ;
16036 int ecode3 = 0 ;
16037 bool temp4 = false ;
16038 wxPoint temp5 ;
16039 wxSize temp6 ;
16040 bool temp7 = false ;
16041 int val8 ;
16042 int ecode8 = 0 ;
16043 long val9 ;
16044 int ecode9 = 0 ;
16045 void *argp10 = 0 ;
16046 int res10 = 0 ;
16047 bool temp11 = false ;
16048 PyObject * obj0 = 0 ;
16049 PyObject * obj1 = 0 ;
16050 PyObject * obj2 = 0 ;
16051 PyObject * obj3 = 0 ;
16052 PyObject * obj4 = 0 ;
16053 PyObject * obj5 = 0 ;
16054 PyObject * obj6 = 0 ;
16055 PyObject * obj7 = 0 ;
16056 PyObject * obj8 = 0 ;
16057 PyObject * obj9 = 0 ;
16058 PyObject * obj10 = 0 ;
16059 char * kwnames[] = {
16060 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16061 };
16062
16063 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
16064 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16065 if (!SWIG_IsOK(res1)) {
16066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_Create" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16067 }
16068 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16069 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
16070 if (!SWIG_IsOK(res2)) {
16071 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
16072 }
16073 arg2 = reinterpret_cast< wxWindow * >(argp2);
16074 if (obj2) {
16075 ecode3 = SWIG_AsVal_int(obj2, &val3);
16076 if (!SWIG_IsOK(ecode3)) {
16077 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_Create" "', expected argument " "3"" of type '" "int""'");
16078 }
16079 arg3 = static_cast< int >(val3);
16080 }
16081 if (obj3) {
36ed4f51 16082 {
1bd55598
RD
16083 arg4 = wxString_in_helper(obj3);
16084 if (arg4 == NULL) SWIG_fail;
16085 temp4 = true;
36ed4f51 16086 }
1bd55598
RD
16087 }
16088 if (obj4) {
36ed4f51 16089 {
1bd55598
RD
16090 arg5 = &temp5;
16091 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 16092 }
1bd55598
RD
16093 }
16094 if (obj5) {
d55e5bfc 16095 {
1bd55598
RD
16096 arg6 = &temp6;
16097 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 16098 }
1bd55598
RD
16099 }
16100 if (obj6) {
36ed4f51 16101 {
1bd55598
RD
16102 if (! PySequence_Check(obj6)) {
16103 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16104 SWIG_fail;
16105 }
16106 arg7 = new wxArrayString;
16107 temp7 = true;
16108 int i, len=PySequence_Length(obj6);
16109 for (i=0; i<len; i++) {
16110 PyObject* item = PySequence_GetItem(obj6, i);
16111 wxString* s = wxString_in_helper(item);
16112 if (PyErr_Occurred()) SWIG_fail;
16113 arg7->Add(*s);
16114 delete s;
16115 Py_DECREF(item);
16116 }
36ed4f51 16117 }
1bd55598
RD
16118 }
16119 if (obj7) {
16120 ecode8 = SWIG_AsVal_int(obj7, &val8);
16121 if (!SWIG_IsOK(ecode8)) {
16122 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "RadioBox_Create" "', expected argument " "8"" of type '" "int""'");
16123 }
16124 arg8 = static_cast< int >(val8);
16125 }
16126 if (obj8) {
16127 ecode9 = SWIG_AsVal_long(obj8, &val9);
16128 if (!SWIG_IsOK(ecode9)) {
16129 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "RadioBox_Create" "', expected argument " "9"" of type '" "long""'");
16130 }
16131 arg9 = static_cast< long >(val9);
16132 }
16133 if (obj9) {
16134 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
16135 if (!SWIG_IsOK(res10)) {
16136 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
36ed4f51 16137 }
1bd55598
RD
16138 if (!argp10) {
16139 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
36ed4f51 16140 }
1bd55598
RD
16141 arg10 = reinterpret_cast< wxValidator * >(argp10);
16142 }
16143 if (obj10) {
d55e5bfc 16144 {
1bd55598
RD
16145 arg11 = wxString_in_helper(obj10);
16146 if (arg11 == NULL) SWIG_fail;
16147 temp11 = true;
d55e5bfc 16148 }
1bd55598
RD
16149 }
16150 {
16151 PyThreadState* __tstate = wxPyBeginAllowThreads();
16152 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);
16153 wxPyEndAllowThreads(__tstate);
16154 if (PyErr_Occurred()) SWIG_fail;
16155 }
16156 {
16157 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16158 }
16159 {
16160 if (temp4)
16161 delete arg4;
16162 }
16163 {
16164 if (temp7) delete arg7;
16165 }
16166 {
16167 if (temp11)
16168 delete arg11;
16169 }
16170 return resultobj;
16171fail:
16172 {
16173 if (temp4)
16174 delete arg4;
16175 }
16176 {
16177 if (temp7) delete arg7;
16178 }
16179 {
16180 if (temp11)
16181 delete arg11;
16182 }
16183 return NULL;
16184}
16185
16186
16187SWIGINTERN PyObject *_wrap_RadioBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16188 PyObject *resultobj = 0;
16189 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16190 int arg2 ;
16191 void *argp1 = 0 ;
16192 int res1 = 0 ;
16193 int val2 ;
16194 int ecode2 = 0 ;
16195 PyObject * obj0 = 0 ;
16196 PyObject * obj1 = 0 ;
16197 char * kwnames[] = {
16198 (char *) "self",(char *) "n", NULL
16199 };
16200
16201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16203 if (!SWIG_IsOK(res1)) {
16204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16205 }
16206 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16207 ecode2 = SWIG_AsVal_int(obj1, &val2);
16208 if (!SWIG_IsOK(ecode2)) {
16209 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
16210 }
16211 arg2 = static_cast< int >(val2);
16212 {
16213 PyThreadState* __tstate = wxPyBeginAllowThreads();
16214 (arg1)->SetSelection(arg2);
16215 wxPyEndAllowThreads(__tstate);
16216 if (PyErr_Occurred()) SWIG_fail;
16217 }
16218 resultobj = SWIG_Py_Void();
16219 return resultobj;
16220fail:
16221 return NULL;
d55e5bfc
RD
16222}
16223
16224
1bd55598
RD
16225SWIGINTERN PyObject *_wrap_RadioBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16226 PyObject *resultobj = 0;
16227 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16228 int result;
16229 void *argp1 = 0 ;
16230 int res1 = 0 ;
16231 PyObject *swig_obj[1] ;
16232
16233 if (!args) SWIG_fail;
16234 swig_obj[0] = args;
16235 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16236 if (!SWIG_IsOK(res1)) {
16237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16238 }
16239 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16240 {
16241 PyThreadState* __tstate = wxPyBeginAllowThreads();
16242 result = (int)((wxRadioBox const *)arg1)->GetSelection();
16243 wxPyEndAllowThreads(__tstate);
16244 if (PyErr_Occurred()) SWIG_fail;
16245 }
16246 resultobj = SWIG_From_int(static_cast< int >(result));
16247 return resultobj;
16248fail:
16249 return NULL;
d55e5bfc
RD
16250}
16251
16252
1bd55598
RD
16253SWIGINTERN PyObject *_wrap_RadioBox_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16254 PyObject *resultobj = 0;
16255 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16256 wxString result;
16257 void *argp1 = 0 ;
16258 int res1 = 0 ;
16259 PyObject *swig_obj[1] ;
16260
16261 if (!args) SWIG_fail;
16262 swig_obj[0] = args;
16263 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16264 if (!SWIG_IsOK(res1)) {
16265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16266 }
16267 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16268 {
16269 PyThreadState* __tstate = wxPyBeginAllowThreads();
16270 result = ((wxRadioBox const *)arg1)->GetStringSelection();
16271 wxPyEndAllowThreads(__tstate);
16272 if (PyErr_Occurred()) SWIG_fail;
16273 }
16274 {
16275#if wxUSE_UNICODE
16276 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16277#else
16278 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16279#endif
16280 }
16281 return resultobj;
16282fail:
16283 return NULL;
16284}
16285
16286
16287SWIGINTERN PyObject *_wrap_RadioBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16288 PyObject *resultobj = 0;
16289 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16290 wxString *arg2 = 0 ;
16291 bool result;
16292 void *argp1 = 0 ;
16293 int res1 = 0 ;
16294 bool temp2 = false ;
16295 PyObject * obj0 = 0 ;
16296 PyObject * obj1 = 0 ;
16297 char * kwnames[] = {
16298 (char *) "self",(char *) "s", NULL
16299 };
16300
16301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16302 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16303 if (!SWIG_IsOK(res1)) {
16304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16305 }
16306 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16307 {
16308 arg2 = wxString_in_helper(obj1);
16309 if (arg2 == NULL) SWIG_fail;
16310 temp2 = true;
16311 }
16312 {
16313 PyThreadState* __tstate = wxPyBeginAllowThreads();
16314 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
16315 wxPyEndAllowThreads(__tstate);
16316 if (PyErr_Occurred()) SWIG_fail;
16317 }
16318 {
16319 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16320 }
16321 {
16322 if (temp2)
16323 delete arg2;
16324 }
16325 return resultobj;
16326fail:
16327 {
16328 if (temp2)
16329 delete arg2;
16330 }
16331 return NULL;
4896ac9e
RD
16332}
16333
16334
1bd55598
RD
16335SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16336 PyObject *resultobj = 0;
16337 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
1c71765a 16338 size_t result;
1bd55598
RD
16339 void *argp1 = 0 ;
16340 int res1 = 0 ;
16341 PyObject *swig_obj[1] ;
16342
16343 if (!args) SWIG_fail;
16344 swig_obj[0] = args;
16345 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16346 if (!SWIG_IsOK(res1)) {
16347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16348 }
16349 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16350 {
16351 PyThreadState* __tstate = wxPyBeginAllowThreads();
1c71765a 16352 result = (size_t)((wxRadioBox const *)arg1)->GetCount();
1bd55598
RD
16353 wxPyEndAllowThreads(__tstate);
16354 if (PyErr_Occurred()) SWIG_fail;
16355 }
1c71765a 16356 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
1bd55598
RD
16357 return resultobj;
16358fail:
16359 return NULL;
16360}
16361
16362
16363SWIGINTERN PyObject *_wrap_RadioBox_FindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16364 PyObject *resultobj = 0;
16365 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16366 wxString *arg2 = 0 ;
16367 int result;
16368 void *argp1 = 0 ;
16369 int res1 = 0 ;
16370 bool temp2 = false ;
16371 PyObject * obj0 = 0 ;
16372 PyObject * obj1 = 0 ;
16373 char * kwnames[] = {
16374 (char *) "self",(char *) "s", NULL
16375 };
16376
16377 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) SWIG_fail;
16378 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16379 if (!SWIG_IsOK(res1)) {
16380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_FindString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16381 }
16382 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16383 {
16384 arg2 = wxString_in_helper(obj1);
16385 if (arg2 == NULL) SWIG_fail;
16386 temp2 = true;
16387 }
16388 {
16389 PyThreadState* __tstate = wxPyBeginAllowThreads();
16390 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
16391 wxPyEndAllowThreads(__tstate);
16392 if (PyErr_Occurred()) SWIG_fail;
16393 }
16394 resultobj = SWIG_From_int(static_cast< int >(result));
16395 {
16396 if (temp2)
16397 delete arg2;
16398 }
16399 return resultobj;
16400fail:
16401 {
16402 if (temp2)
16403 delete arg2;
16404 }
16405 return NULL;
16406}
16407
16408
16409SWIGINTERN PyObject *_wrap_RadioBox_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16410 PyObject *resultobj = 0;
16411 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16412 int arg2 ;
16413 wxString result;
16414 void *argp1 = 0 ;
16415 int res1 = 0 ;
16416 int val2 ;
16417 int ecode2 = 0 ;
16418 PyObject * obj0 = 0 ;
16419 PyObject * obj1 = 0 ;
16420 char * kwnames[] = {
16421 (char *) "self",(char *) "n", NULL
16422 };
16423
16424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) SWIG_fail;
16425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16426 if (!SWIG_IsOK(res1)) {
16427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16428 }
16429 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16430 ecode2 = SWIG_AsVal_int(obj1, &val2);
16431 if (!SWIG_IsOK(ecode2)) {
16432 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetString" "', expected argument " "2"" of type '" "int""'");
16433 }
16434 arg2 = static_cast< int >(val2);
16435 {
16436 PyThreadState* __tstate = wxPyBeginAllowThreads();
16437 result = ((wxRadioBox const *)arg1)->GetString(arg2);
16438 wxPyEndAllowThreads(__tstate);
16439 if (PyErr_Occurred()) SWIG_fail;
16440 }
16441 {
16442#if wxUSE_UNICODE
16443 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16444#else
16445 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16446#endif
16447 }
16448 return resultobj;
16449fail:
16450 return NULL;
16451}
16452
16453
16454SWIGINTERN PyObject *_wrap_RadioBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16455 PyObject *resultobj = 0;
16456 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16457 int arg2 ;
16458 wxString *arg3 = 0 ;
16459 void *argp1 = 0 ;
16460 int res1 = 0 ;
16461 int val2 ;
16462 int ecode2 = 0 ;
16463 bool temp3 = false ;
16464 PyObject * obj0 = 0 ;
16465 PyObject * obj1 = 0 ;
16466 PyObject * obj2 = 0 ;
16467 char * kwnames[] = {
16468 (char *) "self",(char *) "n",(char *) "label", NULL
16469 };
16470
16471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16473 if (!SWIG_IsOK(res1)) {
16474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetString" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16475 }
16476 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16477 ecode2 = SWIG_AsVal_int(obj1, &val2);
16478 if (!SWIG_IsOK(ecode2)) {
16479 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetString" "', expected argument " "2"" of type '" "int""'");
16480 }
16481 arg2 = static_cast< int >(val2);
16482 {
16483 arg3 = wxString_in_helper(obj2);
16484 if (arg3 == NULL) SWIG_fail;
16485 temp3 = true;
16486 }
16487 {
16488 PyThreadState* __tstate = wxPyBeginAllowThreads();
16489 (arg1)->SetString(arg2,(wxString const &)*arg3);
16490 wxPyEndAllowThreads(__tstate);
16491 if (PyErr_Occurred()) SWIG_fail;
16492 }
16493 resultobj = SWIG_Py_Void();
16494 {
16495 if (temp3)
16496 delete arg3;
16497 }
16498 return resultobj;
16499fail:
16500 {
16501 if (temp3)
16502 delete arg3;
16503 }
16504 return NULL;
16505}
16506
16507
16508SWIGINTERN PyObject *_wrap_RadioBox_EnableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16509 PyObject *resultobj = 0;
16510 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16511 unsigned int arg2 ;
1bd55598
RD
16512 bool arg3 = (bool) true ;
16513 void *argp1 = 0 ;
16514 int res1 = 0 ;
50f151d7 16515 unsigned int val2 ;
1bd55598
RD
16516 int ecode2 = 0 ;
16517 bool val3 ;
16518 int ecode3 = 0 ;
16519 PyObject * obj0 = 0 ;
16520 PyObject * obj1 = 0 ;
16521 PyObject * obj2 = 0 ;
16522 char * kwnames[] = {
16523 (char *) "self",(char *) "n",(char *) "enable", NULL
16524 };
16525
16526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16528 if (!SWIG_IsOK(res1)) {
16529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_EnableItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16530 }
16531 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
50f151d7 16532 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
1bd55598 16533 if (!SWIG_IsOK(ecode2)) {
50f151d7 16534 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_EnableItem" "', expected argument " "2"" of type '" "unsigned int""'");
1bd55598 16535 }
50f151d7 16536 arg2 = static_cast< unsigned int >(val2);
1bd55598
RD
16537 if (obj2) {
16538 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16539 if (!SWIG_IsOK(ecode3)) {
16540 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_EnableItem" "', expected argument " "3"" of type '" "bool""'");
16541 }
16542 arg3 = static_cast< bool >(val3);
16543 }
16544 {
16545 PyThreadState* __tstate = wxPyBeginAllowThreads();
16546 (arg1)->Enable(arg2,arg3);
16547 wxPyEndAllowThreads(__tstate);
16548 if (PyErr_Occurred()) SWIG_fail;
16549 }
16550 resultobj = SWIG_Py_Void();
16551 return resultobj;
16552fail:
16553 return NULL;
16554}
16555
16556
16557SWIGINTERN PyObject *_wrap_RadioBox_ShowItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16558 PyObject *resultobj = 0;
16559 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16560 unsigned int arg2 ;
1bd55598
RD
16561 bool arg3 = (bool) true ;
16562 void *argp1 = 0 ;
16563 int res1 = 0 ;
50f151d7 16564 unsigned int val2 ;
1bd55598
RD
16565 int ecode2 = 0 ;
16566 bool val3 ;
16567 int ecode3 = 0 ;
16568 PyObject * obj0 = 0 ;
16569 PyObject * obj1 = 0 ;
16570 PyObject * obj2 = 0 ;
16571 char * kwnames[] = {
16572 (char *) "self",(char *) "n",(char *) "show", NULL
16573 };
16574
16575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16577 if (!SWIG_IsOK(res1)) {
16578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_ShowItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16579 }
16580 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
50f151d7 16581 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
1bd55598 16582 if (!SWIG_IsOK(ecode2)) {
50f151d7 16583 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_ShowItem" "', expected argument " "2"" of type '" "unsigned int""'");
1bd55598 16584 }
50f151d7 16585 arg2 = static_cast< unsigned int >(val2);
1bd55598
RD
16586 if (obj2) {
16587 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16588 if (!SWIG_IsOK(ecode3)) {
16589 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_ShowItem" "', expected argument " "3"" of type '" "bool""'");
16590 }
16591 arg3 = static_cast< bool >(val3);
16592 }
16593 {
16594 PyThreadState* __tstate = wxPyBeginAllowThreads();
16595 (arg1)->Show(arg2,arg3);
16596 wxPyEndAllowThreads(__tstate);
16597 if (PyErr_Occurred()) SWIG_fail;
16598 }
16599 resultobj = SWIG_Py_Void();
16600 return resultobj;
16601fail:
16602 return NULL;
d55e5bfc
RD
16603}
16604
16605
50f151d7
RD
16606SWIGINTERN PyObject *_wrap_RadioBox_IsItemEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16607 PyObject *resultobj = 0;
16608 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16609 unsigned int arg2 ;
16610 bool result;
16611 void *argp1 = 0 ;
16612 int res1 = 0 ;
16613 unsigned int val2 ;
16614 int ecode2 = 0 ;
16615 PyObject * obj0 = 0 ;
16616 PyObject * obj1 = 0 ;
16617 char * kwnames[] = {
16618 (char *) "self",(char *) "n", NULL
16619 };
16620
16621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
16622 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16623 if (!SWIG_IsOK(res1)) {
16624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16625 }
16626 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16627 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16628 if (!SWIG_IsOK(ecode2)) {
16629 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "2"" of type '" "unsigned int""'");
16630 }
16631 arg2 = static_cast< unsigned int >(val2);
16632 {
16633 PyThreadState* __tstate = wxPyBeginAllowThreads();
16634 result = (bool)((wxRadioBox const *)arg1)->IsItemEnabled(arg2);
16635 wxPyEndAllowThreads(__tstate);
16636 if (PyErr_Occurred()) SWIG_fail;
16637 }
16638 {
16639 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16640 }
16641 return resultobj;
16642fail:
16643 return NULL;
16644}
16645
16646
16647SWIGINTERN PyObject *_wrap_RadioBox_IsItemShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16648 PyObject *resultobj = 0;
16649 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16650 unsigned int arg2 ;
16651 bool result;
16652 void *argp1 = 0 ;
16653 int res1 = 0 ;
16654 unsigned int val2 ;
16655 int ecode2 = 0 ;
16656 PyObject * obj0 = 0 ;
16657 PyObject * obj1 = 0 ;
16658 char * kwnames[] = {
16659 (char *) "self",(char *) "n", NULL
16660 };
16661
16662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemShown",kwnames,&obj0,&obj1)) SWIG_fail;
16663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16664 if (!SWIG_IsOK(res1)) {
16665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemShown" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16666 }
16667 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16668 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16669 if (!SWIG_IsOK(ecode2)) {
16670 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemShown" "', expected argument " "2"" of type '" "unsigned int""'");
16671 }
16672 arg2 = static_cast< unsigned int >(val2);
16673 {
16674 PyThreadState* __tstate = wxPyBeginAllowThreads();
16675 result = (bool)((wxRadioBox const *)arg1)->IsItemShown(arg2);
16676 wxPyEndAllowThreads(__tstate);
16677 if (PyErr_Occurred()) SWIG_fail;
16678 }
16679 {
16680 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16681 }
16682 return resultobj;
16683fail:
16684 return NULL;
16685}
16686
16687
1bd55598
RD
16688SWIGINTERN PyObject *_wrap_RadioBox_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16689 PyObject *resultobj = 0;
16690 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16691 unsigned int result;
1bd55598
RD
16692 void *argp1 = 0 ;
16693 int res1 = 0 ;
16694 PyObject *swig_obj[1] ;
16695
16696 if (!args) SWIG_fail;
16697 swig_obj[0] = args;
16698 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16699 if (!SWIG_IsOK(res1)) {
16700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetColumnCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16701 }
16702 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16703 {
16704 PyThreadState* __tstate = wxPyBeginAllowThreads();
50f151d7 16705 result = (unsigned int)((wxRadioBox const *)arg1)->GetColumnCount();
1bd55598
RD
16706 wxPyEndAllowThreads(__tstate);
16707 if (PyErr_Occurred()) SWIG_fail;
16708 }
50f151d7 16709 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
1bd55598
RD
16710 return resultobj;
16711fail:
16712 return NULL;
d55e5bfc
RD
16713}
16714
16715
1bd55598
RD
16716SWIGINTERN PyObject *_wrap_RadioBox_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16717 PyObject *resultobj = 0;
16718 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16719 unsigned int result;
1bd55598
RD
16720 void *argp1 = 0 ;
16721 int res1 = 0 ;
16722 PyObject *swig_obj[1] ;
16723
16724 if (!args) SWIG_fail;
16725 swig_obj[0] = args;
16726 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16727 if (!SWIG_IsOK(res1)) {
16728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetRowCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16729 }
16730 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16731 {
16732 PyThreadState* __tstate = wxPyBeginAllowThreads();
50f151d7 16733 result = (unsigned int)((wxRadioBox const *)arg1)->GetRowCount();
1bd55598
RD
16734 wxPyEndAllowThreads(__tstate);
16735 if (PyErr_Occurred()) SWIG_fail;
16736 }
50f151d7 16737 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
1bd55598
RD
16738 return resultobj;
16739fail:
16740 return NULL;
16741}
16742
16743
16744SWIGINTERN PyObject *_wrap_RadioBox_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16745 PyObject *resultobj = 0;
16746 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16747 int arg2 ;
16748 wxDirection arg3 ;
16749 long arg4 ;
16750 int result;
16751 void *argp1 = 0 ;
16752 int res1 = 0 ;
16753 int val2 ;
16754 int ecode2 = 0 ;
16755 int val3 ;
16756 int ecode3 = 0 ;
16757 long val4 ;
16758 int ecode4 = 0 ;
16759 PyObject * obj0 = 0 ;
16760 PyObject * obj1 = 0 ;
16761 PyObject * obj2 = 0 ;
16762 PyObject * obj3 = 0 ;
16763 char * kwnames[] = {
16764 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
16765 };
16766
16767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16769 if (!SWIG_IsOK(res1)) {
16770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetNextItem" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16771 }
16772 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16773 ecode2 = SWIG_AsVal_int(obj1, &val2);
16774 if (!SWIG_IsOK(ecode2)) {
16775 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetNextItem" "', expected argument " "2"" of type '" "int""'");
16776 }
16777 arg2 = static_cast< int >(val2);
16778 ecode3 = SWIG_AsVal_int(obj2, &val3);
16779 if (!SWIG_IsOK(ecode3)) {
16780 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_GetNextItem" "', expected argument " "3"" of type '" "wxDirection""'");
16781 }
16782 arg3 = static_cast< wxDirection >(val3);
16783 ecode4 = SWIG_AsVal_long(obj3, &val4);
16784 if (!SWIG_IsOK(ecode4)) {
16785 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RadioBox_GetNextItem" "', expected argument " "4"" of type '" "long""'");
16786 }
16787 arg4 = static_cast< long >(val4);
16788 {
16789 PyThreadState* __tstate = wxPyBeginAllowThreads();
16790 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,arg3,arg4);
16791 wxPyEndAllowThreads(__tstate);
16792 if (PyErr_Occurred()) SWIG_fail;
16793 }
16794 resultobj = SWIG_From_int(static_cast< int >(result));
16795 return resultobj;
16796fail:
16797 return NULL;
16798}
16799
16800
2131d850
RD
16801SWIGINTERN PyObject *_wrap_RadioBox_SetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16802 PyObject *resultobj = 0;
16803 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16804 unsigned int arg2 ;
16805 wxString *arg3 = 0 ;
16806 void *argp1 = 0 ;
16807 int res1 = 0 ;
16808 unsigned int val2 ;
16809 int ecode2 = 0 ;
16810 bool temp3 = false ;
16811 PyObject * obj0 = 0 ;
16812 PyObject * obj1 = 0 ;
16813 PyObject * obj2 = 0 ;
16814 char * kwnames[] = {
16815 (char *) "self",(char *) "item",(char *) "text", NULL
16816 };
16817
16818 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemToolTip",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16819 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16820 if (!SWIG_IsOK(res1)) {
16821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16822 }
16823 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16824 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16825 if (!SWIG_IsOK(ecode2)) {
16826 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
16827 }
16828 arg2 = static_cast< unsigned int >(val2);
16829 {
16830 arg3 = wxString_in_helper(obj2);
16831 if (arg3 == NULL) SWIG_fail;
16832 temp3 = true;
16833 }
16834 {
16835 PyThreadState* __tstate = wxPyBeginAllowThreads();
16836 (arg1)->SetItemToolTip(arg2,(wxString const &)*arg3);
16837 wxPyEndAllowThreads(__tstate);
16838 if (PyErr_Occurred()) SWIG_fail;
16839 }
16840 resultobj = SWIG_Py_Void();
16841 {
16842 if (temp3)
16843 delete arg3;
16844 }
16845 return resultobj;
16846fail:
16847 {
16848 if (temp3)
16849 delete arg3;
16850 }
16851 return NULL;
16852}
16853
16854
16855SWIGINTERN PyObject *_wrap_RadioBox_GetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16856 PyObject *resultobj = 0;
16857 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16858 unsigned int arg2 ;
16859 wxToolTip *result = 0 ;
16860 void *argp1 = 0 ;
16861 int res1 = 0 ;
16862 unsigned int val2 ;
16863 int ecode2 = 0 ;
16864 PyObject * obj0 = 0 ;
16865 PyObject * obj1 = 0 ;
16866 char * kwnames[] = {
16867 (char *) "self",(char *) "item", NULL
16868 };
16869
16870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
16871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16872 if (!SWIG_IsOK(res1)) {
16873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16874 }
16875 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16876 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16877 if (!SWIG_IsOK(ecode2)) {
16878 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
16879 }
16880 arg2 = static_cast< unsigned int >(val2);
16881 {
16882 PyThreadState* __tstate = wxPyBeginAllowThreads();
16883 result = (wxToolTip *)((wxRadioBox const *)arg1)->GetItemToolTip(arg2);
16884 wxPyEndAllowThreads(__tstate);
16885 if (PyErr_Occurred()) SWIG_fail;
16886 }
16887 {
16888 resultobj = wxPyMake_wxObject(result, (bool)0);
16889 }
16890 return resultobj;
16891fail:
16892 return NULL;
16893}
16894
16895
b850e7f3
RD
16896SWIGINTERN PyObject *_wrap_RadioBox_SetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16897 PyObject *resultobj = 0;
16898 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16899 unsigned int arg2 ;
16900 wxString *arg3 = 0 ;
16901 void *argp1 = 0 ;
16902 int res1 = 0 ;
16903 unsigned int val2 ;
16904 int ecode2 = 0 ;
16905 bool temp3 = false ;
16906 PyObject * obj0 = 0 ;
16907 PyObject * obj1 = 0 ;
16908 PyObject * obj2 = 0 ;
16909 char * kwnames[] = {
16910 (char *) "self",(char *) "n",(char *) "helpText", NULL
16911 };
16912
16913 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemHelpText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16914 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16915 if (!SWIG_IsOK(res1)) {
16916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16917 }
16918 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16919 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16920 if (!SWIG_IsOK(ecode2)) {
16921 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
16922 }
16923 arg2 = static_cast< unsigned int >(val2);
16924 {
16925 arg3 = wxString_in_helper(obj2);
16926 if (arg3 == NULL) SWIG_fail;
16927 temp3 = true;
16928 }
16929 {
16930 PyThreadState* __tstate = wxPyBeginAllowThreads();
16931 (arg1)->SetItemHelpText(arg2,(wxString const &)*arg3);
16932 wxPyEndAllowThreads(__tstate);
16933 if (PyErr_Occurred()) SWIG_fail;
16934 }
16935 resultobj = SWIG_Py_Void();
16936 {
16937 if (temp3)
16938 delete arg3;
16939 }
16940 return resultobj;
16941fail:
16942 {
16943 if (temp3)
16944 delete arg3;
16945 }
16946 return NULL;
16947}
16948
16949
16950SWIGINTERN PyObject *_wrap_RadioBox_GetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16951 PyObject *resultobj = 0;
16952 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16953 unsigned int arg2 ;
16954 wxString result;
16955 void *argp1 = 0 ;
16956 int res1 = 0 ;
16957 unsigned int val2 ;
16958 int ecode2 = 0 ;
16959 PyObject * obj0 = 0 ;
16960 PyObject * obj1 = 0 ;
16961 char * kwnames[] = {
16962 (char *) "self",(char *) "n", NULL
16963 };
16964
16965 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemHelpText",kwnames,&obj0,&obj1)) SWIG_fail;
16966 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16967 if (!SWIG_IsOK(res1)) {
16968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16969 }
16970 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16971 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16972 if (!SWIG_IsOK(ecode2)) {
16973 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
16974 }
16975 arg2 = static_cast< unsigned int >(val2);
16976 {
16977 PyThreadState* __tstate = wxPyBeginAllowThreads();
16978 result = ((wxRadioBox const *)arg1)->GetItemHelpText(arg2);
16979 wxPyEndAllowThreads(__tstate);
16980 if (PyErr_Occurred()) SWIG_fail;
16981 }
16982 {
16983#if wxUSE_UNICODE
16984 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16985#else
16986 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16987#endif
16988 }
16989 return resultobj;
16990fail:
16991 return NULL;
16992}
16993
16994
1bd55598
RD
16995SWIGINTERN PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16996 PyObject *resultobj = 0;
16997 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
16998 SwigValueWrapper<wxVisualAttributes > result;
16999 int val1 ;
17000 int ecode1 = 0 ;
17001 PyObject * obj0 = 0 ;
17002 char * kwnames[] = {
17003 (char *) "variant", NULL
17004 };
17005
17006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17007 if (obj0) {
17008 ecode1 = SWIG_AsVal_int(obj0, &val1);
17009 if (!SWIG_IsOK(ecode1)) {
17010 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17011 }
17012 arg1 = static_cast< wxWindowVariant >(val1);
17013 }
17014 {
17015 if (!wxPyCheckForApp()) SWIG_fail;
17016 PyThreadState* __tstate = wxPyBeginAllowThreads();
17017 result = wxRadioBox::GetClassDefaultAttributes(arg1);
17018 wxPyEndAllowThreads(__tstate);
17019 if (PyErr_Occurred()) SWIG_fail;
17020 }
17021 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17022 return resultobj;
17023fail:
17024 return NULL;
17025}
17026
17027
17028SWIGINTERN PyObject *RadioBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17029 PyObject *obj;
17030 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17031 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioBox, SWIG_NewClientData(obj));
17032 return SWIG_Py_Void();
17033}
17034
17035SWIGINTERN PyObject *RadioBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17036 return SWIG_Python_InitShadowInstance(args);
17037}
17038
17039SWIGINTERN PyObject *_wrap_new_RadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17040 PyObject *resultobj = 0;
17041 wxWindow *arg1 = (wxWindow *) 0 ;
17042 int arg2 = (int) -1 ;
17043 wxString const &arg3_defvalue = wxPyEmptyString ;
17044 wxString *arg3 = (wxString *) &arg3_defvalue ;
17045 wxPoint const &arg4_defvalue = wxDefaultPosition ;
17046 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
17047 wxSize const &arg5_defvalue = wxDefaultSize ;
17048 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
17049 long arg6 = (long) 0 ;
17050 wxValidator const &arg7_defvalue = wxDefaultValidator ;
17051 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
17052 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
17053 wxString *arg8 = (wxString *) &arg8_defvalue ;
17054 wxRadioButton *result = 0 ;
17055 void *argp1 = 0 ;
17056 int res1 = 0 ;
17057 int val2 ;
17058 int ecode2 = 0 ;
17059 bool temp3 = false ;
17060 wxPoint temp4 ;
17061 wxSize temp5 ;
17062 long val6 ;
17063 int ecode6 = 0 ;
17064 void *argp7 = 0 ;
17065 int res7 = 0 ;
17066 bool temp8 = false ;
17067 PyObject * obj0 = 0 ;
17068 PyObject * obj1 = 0 ;
17069 PyObject * obj2 = 0 ;
17070 PyObject * obj3 = 0 ;
17071 PyObject * obj4 = 0 ;
17072 PyObject * obj5 = 0 ;
17073 PyObject * obj6 = 0 ;
17074 PyObject * obj7 = 0 ;
17075 char * kwnames[] = {
17076 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17077 };
17078
17079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
17080 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17081 if (!SWIG_IsOK(res1)) {
17082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioButton" "', expected argument " "1"" of type '" "wxWindow *""'");
17083 }
17084 arg1 = reinterpret_cast< wxWindow * >(argp1);
17085 if (obj1) {
17086 ecode2 = SWIG_AsVal_int(obj1, &val2);
17087 if (!SWIG_IsOK(ecode2)) {
17088 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioButton" "', expected argument " "2"" of type '" "int""'");
17089 }
17090 arg2 = static_cast< int >(val2);
17091 }
17092 if (obj2) {
d55e5bfc 17093 {
1bd55598
RD
17094 arg3 = wxString_in_helper(obj2);
17095 if (arg3 == NULL) SWIG_fail;
17096 temp3 = true;
d55e5bfc 17097 }
1bd55598
RD
17098 }
17099 if (obj3) {
d55e5bfc 17100 {
1bd55598
RD
17101 arg4 = &temp4;
17102 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 17103 }
1bd55598
RD
17104 }
17105 if (obj4) {
d55e5bfc 17106 {
1bd55598
RD
17107 arg5 = &temp5;
17108 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 17109 }
1bd55598
RD
17110 }
17111 if (obj5) {
17112 ecode6 = SWIG_AsVal_long(obj5, &val6);
17113 if (!SWIG_IsOK(ecode6)) {
17114 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RadioButton" "', expected argument " "6"" of type '" "long""'");
17115 }
17116 arg6 = static_cast< long >(val6);
17117 }
17118 if (obj6) {
17119 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
17120 if (!SWIG_IsOK(res7)) {
17121 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 17122 }
1bd55598
RD
17123 if (!argp7) {
17124 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17125 }
17126 arg7 = reinterpret_cast< wxValidator * >(argp7);
17127 }
17128 if (obj7) {
d55e5bfc 17129 {
1bd55598
RD
17130 arg8 = wxString_in_helper(obj7);
17131 if (arg8 == NULL) SWIG_fail;
17132 temp8 = true;
d55e5bfc 17133 }
1bd55598
RD
17134 }
17135 {
17136 if (!wxPyCheckForApp()) SWIG_fail;
17137 PyThreadState* __tstate = wxPyBeginAllowThreads();
17138 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
17139 wxPyEndAllowThreads(__tstate);
17140 if (PyErr_Occurred()) SWIG_fail;
17141 }
17142 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_NEW | 0 );
17143 {
17144 if (temp3)
17145 delete arg3;
17146 }
17147 {
17148 if (temp8)
17149 delete arg8;
17150 }
17151 return resultobj;
17152fail:
17153 {
17154 if (temp3)
17155 delete arg3;
17156 }
17157 {
17158 if (temp8)
17159 delete arg8;
17160 }
17161 return NULL;
d55e5bfc
RD
17162}
17163
17164
1bd55598
RD
17165SWIGINTERN PyObject *_wrap_new_PreRadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17166 PyObject *resultobj = 0;
17167 wxRadioButton *result = 0 ;
17168
17169 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioButton",0,0,0)) SWIG_fail;
17170 {
17171 if (!wxPyCheckForApp()) SWIG_fail;
17172 PyThreadState* __tstate = wxPyBeginAllowThreads();
17173 result = (wxRadioButton *)new wxRadioButton();
17174 wxPyEndAllowThreads(__tstate);
17175 if (PyErr_Occurred()) SWIG_fail;
17176 }
17177 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_OWN | 0 );
17178 return resultobj;
17179fail:
17180 return NULL;
17181}
17182
17183
17184SWIGINTERN PyObject *_wrap_RadioButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17185 PyObject *resultobj = 0;
17186 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17187 wxWindow *arg2 = (wxWindow *) 0 ;
17188 int arg3 = (int) -1 ;
17189 wxString const &arg4_defvalue = wxPyEmptyString ;
17190 wxString *arg4 = (wxString *) &arg4_defvalue ;
17191 wxPoint const &arg5_defvalue = wxDefaultPosition ;
17192 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
17193 wxSize const &arg6_defvalue = wxDefaultSize ;
17194 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
17195 long arg7 = (long) 0 ;
17196 wxValidator const &arg8_defvalue = wxDefaultValidator ;
17197 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
17198 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
17199 wxString *arg9 = (wxString *) &arg9_defvalue ;
17200 bool result;
17201 void *argp1 = 0 ;
17202 int res1 = 0 ;
17203 void *argp2 = 0 ;
17204 int res2 = 0 ;
17205 int val3 ;
17206 int ecode3 = 0 ;
17207 bool temp4 = false ;
17208 wxPoint temp5 ;
17209 wxSize temp6 ;
17210 long val7 ;
17211 int ecode7 = 0 ;
17212 void *argp8 = 0 ;
17213 int res8 = 0 ;
17214 bool temp9 = false ;
17215 PyObject * obj0 = 0 ;
17216 PyObject * obj1 = 0 ;
17217 PyObject * obj2 = 0 ;
17218 PyObject * obj3 = 0 ;
17219 PyObject * obj4 = 0 ;
17220 PyObject * obj5 = 0 ;
17221 PyObject * obj6 = 0 ;
17222 PyObject * obj7 = 0 ;
17223 PyObject * obj8 = 0 ;
17224 char * kwnames[] = {
17225 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17226 };
17227
17228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
17229 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17230 if (!SWIG_IsOK(res1)) {
17231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_Create" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17232 }
17233 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17234 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17235 if (!SWIG_IsOK(res2)) {
17236 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17237 }
17238 arg2 = reinterpret_cast< wxWindow * >(argp2);
17239 if (obj2) {
17240 ecode3 = SWIG_AsVal_int(obj2, &val3);
17241 if (!SWIG_IsOK(ecode3)) {
17242 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioButton_Create" "', expected argument " "3"" of type '" "int""'");
17243 }
17244 arg3 = static_cast< int >(val3);
17245 }
17246 if (obj3) {
d55e5bfc 17247 {
1bd55598
RD
17248 arg4 = wxString_in_helper(obj3);
17249 if (arg4 == NULL) SWIG_fail;
17250 temp4 = true;
d55e5bfc 17251 }
1bd55598
RD
17252 }
17253 if (obj4) {
d55e5bfc 17254 {
1bd55598
RD
17255 arg5 = &temp5;
17256 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 17257 }
1bd55598
RD
17258 }
17259 if (obj5) {
d55e5bfc 17260 {
1bd55598
RD
17261 arg6 = &temp6;
17262 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 17263 }
1bd55598
RD
17264 }
17265 if (obj6) {
17266 ecode7 = SWIG_AsVal_long(obj6, &val7);
17267 if (!SWIG_IsOK(ecode7)) {
17268 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RadioButton_Create" "', expected argument " "7"" of type '" "long""'");
17269 }
17270 arg7 = static_cast< long >(val7);
17271 }
17272 if (obj7) {
17273 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
17274 if (!SWIG_IsOK(res8)) {
17275 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 17276 }
1bd55598
RD
17277 if (!argp8) {
17278 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 17279 }
1bd55598
RD
17280 arg8 = reinterpret_cast< wxValidator * >(argp8);
17281 }
17282 if (obj8) {
d55e5bfc 17283 {
1bd55598
RD
17284 arg9 = wxString_in_helper(obj8);
17285 if (arg9 == NULL) SWIG_fail;
17286 temp9 = true;
d55e5bfc 17287 }
1bd55598
RD
17288 }
17289 {
17290 PyThreadState* __tstate = wxPyBeginAllowThreads();
17291 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
17292 wxPyEndAllowThreads(__tstate);
17293 if (PyErr_Occurred()) SWIG_fail;
17294 }
17295 {
17296 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17297 }
17298 {
17299 if (temp4)
17300 delete arg4;
17301 }
17302 {
17303 if (temp9)
17304 delete arg9;
17305 }
17306 return resultobj;
17307fail:
17308 {
17309 if (temp4)
17310 delete arg4;
17311 }
17312 {
17313 if (temp9)
17314 delete arg9;
17315 }
17316 return NULL;
d55e5bfc
RD
17317}
17318
17319
1bd55598
RD
17320SWIGINTERN PyObject *_wrap_RadioButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17321 PyObject *resultobj = 0;
17322 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17323 bool result;
17324 void *argp1 = 0 ;
17325 int res1 = 0 ;
17326 PyObject *swig_obj[1] ;
17327
17328 if (!args) SWIG_fail;
17329 swig_obj[0] = args;
17330 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17331 if (!SWIG_IsOK(res1)) {
17332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_GetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17333 }
17334 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17335 {
17336 PyThreadState* __tstate = wxPyBeginAllowThreads();
17337 result = (bool)(arg1)->GetValue();
17338 wxPyEndAllowThreads(__tstate);
17339 if (PyErr_Occurred()) SWIG_fail;
17340 }
17341 {
17342 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17343 }
17344 return resultobj;
17345fail:
17346 return NULL;
17347}
17348
17349
17350SWIGINTERN PyObject *_wrap_RadioButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17351 PyObject *resultobj = 0;
17352 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17353 bool arg2 ;
17354 void *argp1 = 0 ;
17355 int res1 = 0 ;
17356 bool val2 ;
17357 int ecode2 = 0 ;
17358 PyObject * obj0 = 0 ;
17359 PyObject * obj1 = 0 ;
17360 char * kwnames[] = {
17361 (char *) "self",(char *) "value", NULL
17362 };
17363
17364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17366 if (!SWIG_IsOK(res1)) {
17367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_SetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17368 }
17369 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17370 ecode2 = SWIG_AsVal_bool(obj1, &val2);
17371 if (!SWIG_IsOK(ecode2)) {
17372 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
17373 }
17374 arg2 = static_cast< bool >(val2);
17375 {
17376 PyThreadState* __tstate = wxPyBeginAllowThreads();
17377 (arg1)->SetValue(arg2);
17378 wxPyEndAllowThreads(__tstate);
17379 if (PyErr_Occurred()) SWIG_fail;
17380 }
17381 resultobj = SWIG_Py_Void();
17382 return resultobj;
17383fail:
17384 return NULL;
17385}
17386
17387
17388SWIGINTERN PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17389 PyObject *resultobj = 0;
17390 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17391 SwigValueWrapper<wxVisualAttributes > result;
17392 int val1 ;
17393 int ecode1 = 0 ;
17394 PyObject * obj0 = 0 ;
17395 char * kwnames[] = {
17396 (char *) "variant", NULL
17397 };
17398
17399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17400 if (obj0) {
17401 ecode1 = SWIG_AsVal_int(obj0, &val1);
17402 if (!SWIG_IsOK(ecode1)) {
17403 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17404 }
17405 arg1 = static_cast< wxWindowVariant >(val1);
17406 }
17407 {
17408 if (!wxPyCheckForApp()) SWIG_fail;
17409 PyThreadState* __tstate = wxPyBeginAllowThreads();
17410 result = wxRadioButton::GetClassDefaultAttributes(arg1);
17411 wxPyEndAllowThreads(__tstate);
17412 if (PyErr_Occurred()) SWIG_fail;
17413 }
17414 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17415 return resultobj;
17416fail:
17417 return NULL;
d55e5bfc
RD
17418}
17419
17420
1bd55598
RD
17421SWIGINTERN PyObject *RadioButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17422 PyObject *obj;
17423 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17424 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioButton, SWIG_NewClientData(obj));
17425 return SWIG_Py_Void();
d55e5bfc
RD
17426}
17427
1bd55598
RD
17428SWIGINTERN PyObject *RadioButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17429 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
17430}
17431
1bd55598
RD
17432SWIGINTERN int SliderNameStr_set(PyObject *) {
17433 SWIG_Error(SWIG_AttributeError,"Variable SliderNameStr is read-only.");
17434 return 1;
d55e5bfc
RD
17435}
17436
17437
1bd55598
RD
17438SWIGINTERN PyObject *SliderNameStr_get(void) {
17439 PyObject *pyobj = 0;
17440
17441 {
17442#if wxUSE_UNICODE
17443 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17444#else
17445 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17446#endif
17447 }
17448 return pyobj;
17449}
17450
17451
17452SWIGINTERN PyObject *_wrap_new_Slider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17453 PyObject *resultobj = 0;
17454 wxWindow *arg1 = (wxWindow *) 0 ;
17455 int arg2 = (int) -1 ;
17456 int arg3 = (int) 0 ;
17457 int arg4 = (int) 0 ;
17458 int arg5 = (int) 100 ;
17459 wxPoint const &arg6_defvalue = wxDefaultPosition ;
17460 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
17461 wxSize const &arg7_defvalue = wxDefaultSize ;
17462 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
17463 long arg8 = (long) wxSL_HORIZONTAL ;
17464 wxValidator const &arg9_defvalue = wxDefaultValidator ;
17465 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
17466 wxString const &arg10_defvalue = wxPySliderNameStr ;
17467 wxString *arg10 = (wxString *) &arg10_defvalue ;
17468 wxSlider *result = 0 ;
17469 void *argp1 = 0 ;
17470 int res1 = 0 ;
17471 int val2 ;
17472 int ecode2 = 0 ;
17473 int val3 ;
17474 int ecode3 = 0 ;
17475 int val4 ;
17476 int ecode4 = 0 ;
17477 int val5 ;
17478 int ecode5 = 0 ;
17479 wxPoint temp6 ;
17480 wxSize temp7 ;
17481 long val8 ;
17482 int ecode8 = 0 ;
17483 void *argp9 = 0 ;
17484 int res9 = 0 ;
17485 bool temp10 = false ;
17486 PyObject * obj0 = 0 ;
17487 PyObject * obj1 = 0 ;
17488 PyObject * obj2 = 0 ;
17489 PyObject * obj3 = 0 ;
17490 PyObject * obj4 = 0 ;
17491 PyObject * obj5 = 0 ;
17492 PyObject * obj6 = 0 ;
17493 PyObject * obj7 = 0 ;
17494 PyObject * obj8 = 0 ;
17495 PyObject * obj9 = 0 ;
17496 char * kwnames[] = {
17497 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17498 };
17499
17500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
17501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17502 if (!SWIG_IsOK(res1)) {
17503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Slider" "', expected argument " "1"" of type '" "wxWindow *""'");
17504 }
17505 arg1 = reinterpret_cast< wxWindow * >(argp1);
17506 if (obj1) {
17507 ecode2 = SWIG_AsVal_int(obj1, &val2);
17508 if (!SWIG_IsOK(ecode2)) {
17509 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Slider" "', expected argument " "2"" of type '" "int""'");
17510 }
17511 arg2 = static_cast< int >(val2);
17512 }
17513 if (obj2) {
17514 ecode3 = SWIG_AsVal_int(obj2, &val3);
17515 if (!SWIG_IsOK(ecode3)) {
17516 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Slider" "', expected argument " "3"" of type '" "int""'");
17517 }
17518 arg3 = static_cast< int >(val3);
17519 }
17520 if (obj3) {
17521 ecode4 = SWIG_AsVal_int(obj3, &val4);
17522 if (!SWIG_IsOK(ecode4)) {
17523 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Slider" "', expected argument " "4"" of type '" "int""'");
17524 }
17525 arg4 = static_cast< int >(val4);
17526 }
17527 if (obj4) {
17528 ecode5 = SWIG_AsVal_int(obj4, &val5);
17529 if (!SWIG_IsOK(ecode5)) {
17530 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Slider" "', expected argument " "5"" of type '" "int""'");
17531 }
17532 arg5 = static_cast< int >(val5);
17533 }
17534 if (obj5) {
36ed4f51 17535 {
1bd55598
RD
17536 arg6 = &temp6;
17537 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
36ed4f51 17538 }
1bd55598
RD
17539 }
17540 if (obj6) {
36ed4f51 17541 {
1bd55598
RD
17542 arg7 = &temp7;
17543 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
36ed4f51 17544 }
1bd55598
RD
17545 }
17546 if (obj7) {
17547 ecode8 = SWIG_AsVal_long(obj7, &val8);
17548 if (!SWIG_IsOK(ecode8)) {
17549 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Slider" "', expected argument " "8"" of type '" "long""'");
17550 }
17551 arg8 = static_cast< long >(val8);
17552 }
17553 if (obj8) {
17554 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
17555 if (!SWIG_IsOK(res9)) {
17556 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
36ed4f51 17557 }
1bd55598
RD
17558 if (!argp9) {
17559 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
d55e5bfc 17560 }
1bd55598
RD
17561 arg9 = reinterpret_cast< wxValidator * >(argp9);
17562 }
17563 if (obj9) {
d55e5bfc 17564 {
1bd55598
RD
17565 arg10 = wxString_in_helper(obj9);
17566 if (arg10 == NULL) SWIG_fail;
17567 temp10 = true;
d55e5bfc 17568 }
1bd55598
RD
17569 }
17570 {
17571 if (!wxPyCheckForApp()) SWIG_fail;
17572 PyThreadState* __tstate = wxPyBeginAllowThreads();
17573 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
17574 wxPyEndAllowThreads(__tstate);
17575 if (PyErr_Occurred()) SWIG_fail;
17576 }
17577 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_NEW | 0 );
17578 {
17579 if (temp10)
17580 delete arg10;
17581 }
17582 return resultobj;
17583fail:
17584 {
17585 if (temp10)
17586 delete arg10;
17587 }
17588 return NULL;
d55e5bfc
RD
17589}
17590
17591
1bd55598
RD
17592SWIGINTERN PyObject *_wrap_new_PreSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17593 PyObject *resultobj = 0;
17594 wxSlider *result = 0 ;
17595
17596 if (!SWIG_Python_UnpackTuple(args,"new_PreSlider",0,0,0)) SWIG_fail;
17597 {
17598 if (!wxPyCheckForApp()) SWIG_fail;
17599 PyThreadState* __tstate = wxPyBeginAllowThreads();
17600 result = (wxSlider *)new wxSlider();
17601 wxPyEndAllowThreads(__tstate);
17602 if (PyErr_Occurred()) SWIG_fail;
17603 }
17604 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_OWN | 0 );
17605 return resultobj;
17606fail:
17607 return NULL;
17608}
17609
17610
17611SWIGINTERN PyObject *_wrap_Slider_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17612 PyObject *resultobj = 0;
17613 wxSlider *arg1 = (wxSlider *) 0 ;
17614 wxWindow *arg2 = (wxWindow *) 0 ;
17615 int arg3 = (int) -1 ;
17616 int arg4 = (int) 0 ;
17617 int arg5 = (int) 0 ;
17618 int arg6 = (int) 100 ;
17619 wxPoint const &arg7_defvalue = wxDefaultPosition ;
17620 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
17621 wxSize const &arg8_defvalue = wxDefaultSize ;
17622 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
17623 long arg9 = (long) wxSL_HORIZONTAL ;
17624 wxValidator const &arg10_defvalue = wxDefaultValidator ;
17625 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
17626 wxString const &arg11_defvalue = wxPySliderNameStr ;
17627 wxString *arg11 = (wxString *) &arg11_defvalue ;
17628 bool result;
17629 void *argp1 = 0 ;
17630 int res1 = 0 ;
17631 void *argp2 = 0 ;
17632 int res2 = 0 ;
17633 int val3 ;
17634 int ecode3 = 0 ;
17635 int val4 ;
17636 int ecode4 = 0 ;
17637 int val5 ;
17638 int ecode5 = 0 ;
17639 int val6 ;
17640 int ecode6 = 0 ;
17641 wxPoint temp7 ;
17642 wxSize temp8 ;
17643 long val9 ;
17644 int ecode9 = 0 ;
17645 void *argp10 = 0 ;
17646 int res10 = 0 ;
17647 bool temp11 = false ;
17648 PyObject * obj0 = 0 ;
17649 PyObject * obj1 = 0 ;
17650 PyObject * obj2 = 0 ;
17651 PyObject * obj3 = 0 ;
17652 PyObject * obj4 = 0 ;
17653 PyObject * obj5 = 0 ;
17654 PyObject * obj6 = 0 ;
17655 PyObject * obj7 = 0 ;
17656 PyObject * obj8 = 0 ;
17657 PyObject * obj9 = 0 ;
17658 PyObject * obj10 = 0 ;
17659 char * kwnames[] = {
17660 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17661 };
17662
17663 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
17664 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17665 if (!SWIG_IsOK(res1)) {
17666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_Create" "', expected argument " "1"" of type '" "wxSlider *""'");
17667 }
17668 arg1 = reinterpret_cast< wxSlider * >(argp1);
17669 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17670 if (!SWIG_IsOK(res2)) {
17671 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Slider_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17672 }
17673 arg2 = reinterpret_cast< wxWindow * >(argp2);
17674 if (obj2) {
17675 ecode3 = SWIG_AsVal_int(obj2, &val3);
17676 if (!SWIG_IsOK(ecode3)) {
17677 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_Create" "', expected argument " "3"" of type '" "int""'");
17678 }
17679 arg3 = static_cast< int >(val3);
17680 }
17681 if (obj3) {
17682 ecode4 = SWIG_AsVal_int(obj3, &val4);
17683 if (!SWIG_IsOK(ecode4)) {
17684 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Slider_Create" "', expected argument " "4"" of type '" "int""'");
17685 }
17686 arg4 = static_cast< int >(val4);
17687 }
17688 if (obj4) {
17689 ecode5 = SWIG_AsVal_int(obj4, &val5);
17690 if (!SWIG_IsOK(ecode5)) {
17691 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Slider_Create" "', expected argument " "5"" of type '" "int""'");
17692 }
17693 arg5 = static_cast< int >(val5);
17694 }
17695 if (obj5) {
17696 ecode6 = SWIG_AsVal_int(obj5, &val6);
17697 if (!SWIG_IsOK(ecode6)) {
17698 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Slider_Create" "', expected argument " "6"" of type '" "int""'");
17699 }
17700 arg6 = static_cast< int >(val6);
17701 }
17702 if (obj6) {
d55e5bfc 17703 {
1bd55598
RD
17704 arg7 = &temp7;
17705 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
d55e5bfc 17706 }
1bd55598
RD
17707 }
17708 if (obj7) {
d55e5bfc 17709 {
1bd55598
RD
17710 arg8 = &temp8;
17711 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
d55e5bfc 17712 }
1bd55598
RD
17713 }
17714 if (obj8) {
17715 ecode9 = SWIG_AsVal_long(obj8, &val9);
17716 if (!SWIG_IsOK(ecode9)) {
17717 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "Slider_Create" "', expected argument " "9"" of type '" "long""'");
17718 }
17719 arg9 = static_cast< long >(val9);
17720 }
17721 if (obj9) {
17722 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
17723 if (!SWIG_IsOK(res10)) {
17724 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
d55e5bfc 17725 }
1bd55598
RD
17726 if (!argp10) {
17727 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
d55e5bfc 17728 }
1bd55598
RD
17729 arg10 = reinterpret_cast< wxValidator * >(argp10);
17730 }
17731 if (obj10) {
d55e5bfc 17732 {
1bd55598
RD
17733 arg11 = wxString_in_helper(obj10);
17734 if (arg11 == NULL) SWIG_fail;
17735 temp11 = true;
d55e5bfc 17736 }
1bd55598
RD
17737 }
17738 {
17739 PyThreadState* __tstate = wxPyBeginAllowThreads();
17740 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
17741 wxPyEndAllowThreads(__tstate);
17742 if (PyErr_Occurred()) SWIG_fail;
17743 }
17744 {
17745 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17746 }
17747 {
17748 if (temp11)
17749 delete arg11;
17750 }
17751 return resultobj;
17752fail:
17753 {
17754 if (temp11)
17755 delete arg11;
17756 }
17757 return NULL;
d55e5bfc
RD
17758}
17759
17760
1bd55598
RD
17761SWIGINTERN PyObject *_wrap_Slider_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17762 PyObject *resultobj = 0;
17763 wxSlider *arg1 = (wxSlider *) 0 ;
17764 int result;
17765 void *argp1 = 0 ;
17766 int res1 = 0 ;
17767 PyObject *swig_obj[1] ;
17768
17769 if (!args) SWIG_fail;
17770 swig_obj[0] = args;
17771 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17772 if (!SWIG_IsOK(res1)) {
17773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetValue" "', expected argument " "1"" of type '" "wxSlider const *""'");
17774 }
17775 arg1 = reinterpret_cast< wxSlider * >(argp1);
17776 {
17777 PyThreadState* __tstate = wxPyBeginAllowThreads();
17778 result = (int)((wxSlider const *)arg1)->GetValue();
17779 wxPyEndAllowThreads(__tstate);
17780 if (PyErr_Occurred()) SWIG_fail;
17781 }
17782 resultobj = SWIG_From_int(static_cast< int >(result));
17783 return resultobj;
17784fail:
17785 return NULL;
17786}
17787
17788
17789SWIGINTERN PyObject *_wrap_Slider_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17790 PyObject *resultobj = 0;
17791 wxSlider *arg1 = (wxSlider *) 0 ;
17792 int arg2 ;
17793 void *argp1 = 0 ;
17794 int res1 = 0 ;
17795 int val2 ;
17796 int ecode2 = 0 ;
17797 PyObject * obj0 = 0 ;
17798 PyObject * obj1 = 0 ;
17799 char * kwnames[] = {
17800 (char *) "self",(char *) "value", NULL
17801 };
17802
17803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17805 if (!SWIG_IsOK(res1)) {
17806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetValue" "', expected argument " "1"" of type '" "wxSlider *""'");
17807 }
17808 arg1 = reinterpret_cast< wxSlider * >(argp1);
17809 ecode2 = SWIG_AsVal_int(obj1, &val2);
17810 if (!SWIG_IsOK(ecode2)) {
17811 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetValue" "', expected argument " "2"" of type '" "int""'");
17812 }
17813 arg2 = static_cast< int >(val2);
17814 {
17815 PyThreadState* __tstate = wxPyBeginAllowThreads();
17816 (arg1)->SetValue(arg2);
17817 wxPyEndAllowThreads(__tstate);
17818 if (PyErr_Occurred()) SWIG_fail;
17819 }
17820 resultobj = SWIG_Py_Void();
17821 return resultobj;
17822fail:
17823 return NULL;
17824}
17825
17826
17827SWIGINTERN PyObject *_wrap_Slider_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17828 PyObject *resultobj = 0;
17829 wxSlider *arg1 = (wxSlider *) 0 ;
17830 int arg2 ;
17831 int arg3 ;
17832 void *argp1 = 0 ;
17833 int res1 = 0 ;
17834 int val2 ;
17835 int ecode2 = 0 ;
17836 int val3 ;
17837 int ecode3 = 0 ;
17838 PyObject * obj0 = 0 ;
17839 PyObject * obj1 = 0 ;
17840 PyObject * obj2 = 0 ;
17841 char * kwnames[] = {
17842 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
17843 };
17844
17845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17847 if (!SWIG_IsOK(res1)) {
17848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetRange" "', expected argument " "1"" of type '" "wxSlider *""'");
17849 }
17850 arg1 = reinterpret_cast< wxSlider * >(argp1);
17851 ecode2 = SWIG_AsVal_int(obj1, &val2);
17852 if (!SWIG_IsOK(ecode2)) {
17853 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetRange" "', expected argument " "2"" of type '" "int""'");
17854 }
17855 arg2 = static_cast< int >(val2);
17856 ecode3 = SWIG_AsVal_int(obj2, &val3);
17857 if (!SWIG_IsOK(ecode3)) {
17858 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetRange" "', expected argument " "3"" of type '" "int""'");
17859 }
17860 arg3 = static_cast< int >(val3);
17861 {
17862 PyThreadState* __tstate = wxPyBeginAllowThreads();
17863 (arg1)->SetRange(arg2,arg3);
17864 wxPyEndAllowThreads(__tstate);
17865 if (PyErr_Occurred()) SWIG_fail;
17866 }
17867 resultobj = SWIG_Py_Void();
17868 return resultobj;
17869fail:
17870 return NULL;
d55e5bfc
RD
17871}
17872
17873
1bd55598
RD
17874SWIGINTERN PyObject *_wrap_Slider_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17875 PyObject *resultobj = 0;
17876 wxSlider *arg1 = (wxSlider *) 0 ;
17877 int result;
17878 void *argp1 = 0 ;
17879 int res1 = 0 ;
17880 PyObject *swig_obj[1] ;
17881
17882 if (!args) SWIG_fail;
17883 swig_obj[0] = args;
17884 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17885 if (!SWIG_IsOK(res1)) {
17886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMin" "', expected argument " "1"" of type '" "wxSlider const *""'");
17887 }
17888 arg1 = reinterpret_cast< wxSlider * >(argp1);
17889 {
17890 PyThreadState* __tstate = wxPyBeginAllowThreads();
17891 result = (int)((wxSlider const *)arg1)->GetMin();
17892 wxPyEndAllowThreads(__tstate);
17893 if (PyErr_Occurred()) SWIG_fail;
17894 }
17895 resultobj = SWIG_From_int(static_cast< int >(result));
17896 return resultobj;
17897fail:
17898 return NULL;
f20a2e1f
RD
17899}
17900
17901
1bd55598
RD
17902SWIGINTERN PyObject *_wrap_Slider_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17903 PyObject *resultobj = 0;
17904 wxSlider *arg1 = (wxSlider *) 0 ;
17905 int result;
17906 void *argp1 = 0 ;
17907 int res1 = 0 ;
17908 PyObject *swig_obj[1] ;
17909
17910 if (!args) SWIG_fail;
17911 swig_obj[0] = args;
17912 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17913 if (!SWIG_IsOK(res1)) {
17914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMax" "', expected argument " "1"" of type '" "wxSlider const *""'");
17915 }
17916 arg1 = reinterpret_cast< wxSlider * >(argp1);
17917 {
17918 PyThreadState* __tstate = wxPyBeginAllowThreads();
17919 result = (int)((wxSlider const *)arg1)->GetMax();
17920 wxPyEndAllowThreads(__tstate);
17921 if (PyErr_Occurred()) SWIG_fail;
17922 }
17923 resultobj = SWIG_From_int(static_cast< int >(result));
17924 return resultobj;
17925fail:
17926 return NULL;
17927}
17928
17929
17930SWIGINTERN PyObject *_wrap_Slider_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17931 PyObject *resultobj = 0;
17932 wxSlider *arg1 = (wxSlider *) 0 ;
17933 int arg2 ;
17934 void *argp1 = 0 ;
17935 int res1 = 0 ;
17936 int val2 ;
17937 int ecode2 = 0 ;
17938 PyObject * obj0 = 0 ;
17939 PyObject * obj1 = 0 ;
17940 char * kwnames[] = {
17941 (char *) "self",(char *) "minValue", NULL
17942 };
17943
17944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
17945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17946 if (!SWIG_IsOK(res1)) {
17947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMin" "', expected argument " "1"" of type '" "wxSlider *""'");
17948 }
17949 arg1 = reinterpret_cast< wxSlider * >(argp1);
17950 ecode2 = SWIG_AsVal_int(obj1, &val2);
17951 if (!SWIG_IsOK(ecode2)) {
17952 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMin" "', expected argument " "2"" of type '" "int""'");
17953 }
17954 arg2 = static_cast< int >(val2);
17955 {
17956 PyThreadState* __tstate = wxPyBeginAllowThreads();
17957 (arg1)->SetMin(arg2);
17958 wxPyEndAllowThreads(__tstate);
17959 if (PyErr_Occurred()) SWIG_fail;
17960 }
17961 resultobj = SWIG_Py_Void();
17962 return resultobj;
17963fail:
17964 return NULL;
17965}
17966
17967
17968SWIGINTERN PyObject *_wrap_Slider_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17969 PyObject *resultobj = 0;
17970 wxSlider *arg1 = (wxSlider *) 0 ;
17971 int arg2 ;
17972 void *argp1 = 0 ;
17973 int res1 = 0 ;
17974 int val2 ;
17975 int ecode2 = 0 ;
17976 PyObject * obj0 = 0 ;
17977 PyObject * obj1 = 0 ;
17978 char * kwnames[] = {
17979 (char *) "self",(char *) "maxValue", NULL
17980 };
17981
17982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
17983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17984 if (!SWIG_IsOK(res1)) {
17985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMax" "', expected argument " "1"" of type '" "wxSlider *""'");
17986 }
17987 arg1 = reinterpret_cast< wxSlider * >(argp1);
17988 ecode2 = SWIG_AsVal_int(obj1, &val2);
17989 if (!SWIG_IsOK(ecode2)) {
17990 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMax" "', expected argument " "2"" of type '" "int""'");
17991 }
17992 arg2 = static_cast< int >(val2);
17993 {
17994 PyThreadState* __tstate = wxPyBeginAllowThreads();
17995 (arg1)->SetMax(arg2);
17996 wxPyEndAllowThreads(__tstate);
17997 if (PyErr_Occurred()) SWIG_fail;
17998 }
17999 resultobj = SWIG_Py_Void();
18000 return resultobj;
18001fail:
18002 return NULL;
18003}
18004
18005
18006SWIGINTERN PyObject *_wrap_Slider_SetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18007 PyObject *resultobj = 0;
18008 wxSlider *arg1 = (wxSlider *) 0 ;
18009 int arg2 ;
18010 void *argp1 = 0 ;
18011 int res1 = 0 ;
18012 int val2 ;
18013 int ecode2 = 0 ;
18014 PyObject * obj0 = 0 ;
18015 PyObject * obj1 = 0 ;
18016 char * kwnames[] = {
18017 (char *) "self",(char *) "lineSize", NULL
18018 };
18019
18020 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) SWIG_fail;
18021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18022 if (!SWIG_IsOK(res1)) {
18023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetLineSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18024 }
18025 arg1 = reinterpret_cast< wxSlider * >(argp1);
18026 ecode2 = SWIG_AsVal_int(obj1, &val2);
18027 if (!SWIG_IsOK(ecode2)) {
18028 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetLineSize" "', expected argument " "2"" of type '" "int""'");
18029 }
18030 arg2 = static_cast< int >(val2);
18031 {
18032 PyThreadState* __tstate = wxPyBeginAllowThreads();
18033 (arg1)->SetLineSize(arg2);
18034 wxPyEndAllowThreads(__tstate);
18035 if (PyErr_Occurred()) SWIG_fail;
18036 }
18037 resultobj = SWIG_Py_Void();
18038 return resultobj;
18039fail:
18040 return NULL;
18041}
18042
18043
18044SWIGINTERN PyObject *_wrap_Slider_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18045 PyObject *resultobj = 0;
18046 wxSlider *arg1 = (wxSlider *) 0 ;
18047 int arg2 ;
18048 void *argp1 = 0 ;
18049 int res1 = 0 ;
18050 int val2 ;
18051 int ecode2 = 0 ;
18052 PyObject * obj0 = 0 ;
18053 PyObject * obj1 = 0 ;
18054 char * kwnames[] = {
18055 (char *) "self",(char *) "pageSize", NULL
18056 };
18057
18058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
18059 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18060 if (!SWIG_IsOK(res1)) {
18061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetPageSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18062 }
18063 arg1 = reinterpret_cast< wxSlider * >(argp1);
18064 ecode2 = SWIG_AsVal_int(obj1, &val2);
18065 if (!SWIG_IsOK(ecode2)) {
18066 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetPageSize" "', expected argument " "2"" of type '" "int""'");
18067 }
18068 arg2 = static_cast< int >(val2);
18069 {
18070 PyThreadState* __tstate = wxPyBeginAllowThreads();
18071 (arg1)->SetPageSize(arg2);
18072 wxPyEndAllowThreads(__tstate);
18073 if (PyErr_Occurred()) SWIG_fail;
18074 }
18075 resultobj = SWIG_Py_Void();
18076 return resultobj;
18077fail:
18078 return NULL;
d55e5bfc
RD
18079}
18080
18081
1bd55598
RD
18082SWIGINTERN PyObject *_wrap_Slider_GetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18083 PyObject *resultobj = 0;
18084 wxSlider *arg1 = (wxSlider *) 0 ;
18085 int result;
18086 void *argp1 = 0 ;
18087 int res1 = 0 ;
18088 PyObject *swig_obj[1] ;
18089
18090 if (!args) SWIG_fail;
18091 swig_obj[0] = args;
18092 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18093 if (!SWIG_IsOK(res1)) {
18094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetLineSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18095 }
18096 arg1 = reinterpret_cast< wxSlider * >(argp1);
18097 {
18098 PyThreadState* __tstate = wxPyBeginAllowThreads();
18099 result = (int)((wxSlider const *)arg1)->GetLineSize();
18100 wxPyEndAllowThreads(__tstate);
18101 if (PyErr_Occurred()) SWIG_fail;
18102 }
18103 resultobj = SWIG_From_int(static_cast< int >(result));
18104 return resultobj;
18105fail:
18106 return NULL;
d55e5bfc
RD
18107}
18108
18109
1bd55598
RD
18110SWIGINTERN PyObject *_wrap_Slider_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18111 PyObject *resultobj = 0;
18112 wxSlider *arg1 = (wxSlider *) 0 ;
18113 int result;
18114 void *argp1 = 0 ;
18115 int res1 = 0 ;
18116 PyObject *swig_obj[1] ;
18117
18118 if (!args) SWIG_fail;
18119 swig_obj[0] = args;
18120 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18121 if (!SWIG_IsOK(res1)) {
18122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetPageSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18123 }
18124 arg1 = reinterpret_cast< wxSlider * >(argp1);
18125 {
18126 PyThreadState* __tstate = wxPyBeginAllowThreads();
18127 result = (int)((wxSlider const *)arg1)->GetPageSize();
18128 wxPyEndAllowThreads(__tstate);
18129 if (PyErr_Occurred()) SWIG_fail;
18130 }
18131 resultobj = SWIG_From_int(static_cast< int >(result));
18132 return resultobj;
18133fail:
18134 return NULL;
18135}
18136
18137
18138SWIGINTERN PyObject *_wrap_Slider_SetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18139 PyObject *resultobj = 0;
18140 wxSlider *arg1 = (wxSlider *) 0 ;
18141 int arg2 ;
18142 void *argp1 = 0 ;
18143 int res1 = 0 ;
18144 int val2 ;
18145 int ecode2 = 0 ;
18146 PyObject * obj0 = 0 ;
18147 PyObject * obj1 = 0 ;
18148 char * kwnames[] = {
18149 (char *) "self",(char *) "lenPixels", NULL
18150 };
18151
18152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) SWIG_fail;
18153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18154 if (!SWIG_IsOK(res1)) {
18155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetThumbLength" "', expected argument " "1"" of type '" "wxSlider *""'");
18156 }
18157 arg1 = reinterpret_cast< wxSlider * >(argp1);
18158 ecode2 = SWIG_AsVal_int(obj1, &val2);
18159 if (!SWIG_IsOK(ecode2)) {
18160 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetThumbLength" "', expected argument " "2"" of type '" "int""'");
18161 }
18162 arg2 = static_cast< int >(val2);
18163 {
18164 PyThreadState* __tstate = wxPyBeginAllowThreads();
18165 (arg1)->SetThumbLength(arg2);
18166 wxPyEndAllowThreads(__tstate);
18167 if (PyErr_Occurred()) SWIG_fail;
18168 }
18169 resultobj = SWIG_Py_Void();
18170 return resultobj;
18171fail:
18172 return NULL;
d55e5bfc
RD
18173}
18174
18175
1bd55598
RD
18176SWIGINTERN PyObject *_wrap_Slider_GetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18177 PyObject *resultobj = 0;
18178 wxSlider *arg1 = (wxSlider *) 0 ;
18179 int result;
18180 void *argp1 = 0 ;
18181 int res1 = 0 ;
18182 PyObject *swig_obj[1] ;
18183
18184 if (!args) SWIG_fail;
18185 swig_obj[0] = args;
18186 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18187 if (!SWIG_IsOK(res1)) {
18188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetThumbLength" "', expected argument " "1"" of type '" "wxSlider const *""'");
18189 }
18190 arg1 = reinterpret_cast< wxSlider * >(argp1);
18191 {
18192 PyThreadState* __tstate = wxPyBeginAllowThreads();
18193 result = (int)((wxSlider const *)arg1)->GetThumbLength();
18194 wxPyEndAllowThreads(__tstate);
18195 if (PyErr_Occurred()) SWIG_fail;
18196 }
18197 resultobj = SWIG_From_int(static_cast< int >(result));
18198 return resultobj;
18199fail:
18200 return NULL;
18201}
18202
18203
18204SWIGINTERN PyObject *_wrap_Slider_SetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18205 PyObject *resultobj = 0;
18206 wxSlider *arg1 = (wxSlider *) 0 ;
18207 int arg2 ;
18208 int arg3 = (int) 1 ;
18209 void *argp1 = 0 ;
18210 int res1 = 0 ;
18211 int val2 ;
18212 int ecode2 = 0 ;
18213 int val3 ;
18214 int ecode3 = 0 ;
18215 PyObject * obj0 = 0 ;
18216 PyObject * obj1 = 0 ;
18217 PyObject * obj2 = 0 ;
18218 char * kwnames[] = {
18219 (char *) "self",(char *) "n",(char *) "pos", NULL
18220 };
18221
18222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18223 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18224 if (!SWIG_IsOK(res1)) {
18225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTickFreq" "', expected argument " "1"" of type '" "wxSlider *""'");
18226 }
18227 arg1 = reinterpret_cast< wxSlider * >(argp1);
18228 ecode2 = SWIG_AsVal_int(obj1, &val2);
18229 if (!SWIG_IsOK(ecode2)) {
18230 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTickFreq" "', expected argument " "2"" of type '" "int""'");
18231 }
18232 arg2 = static_cast< int >(val2);
18233 if (obj2) {
18234 ecode3 = SWIG_AsVal_int(obj2, &val3);
18235 if (!SWIG_IsOK(ecode3)) {
18236 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetTickFreq" "', expected argument " "3"" of type '" "int""'");
18237 }
18238 arg3 = static_cast< int >(val3);
18239 }
18240 {
18241 PyThreadState* __tstate = wxPyBeginAllowThreads();
18242 (arg1)->SetTickFreq(arg2,arg3);
18243 wxPyEndAllowThreads(__tstate);
18244 if (PyErr_Occurred()) SWIG_fail;
18245 }
18246 resultobj = SWIG_Py_Void();
18247 return resultobj;
18248fail:
18249 return NULL;
d55e5bfc
RD
18250}
18251
18252
1bd55598
RD
18253SWIGINTERN PyObject *_wrap_Slider_GetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18254 PyObject *resultobj = 0;
18255 wxSlider *arg1 = (wxSlider *) 0 ;
18256 int result;
18257 void *argp1 = 0 ;
18258 int res1 = 0 ;
18259 PyObject *swig_obj[1] ;
18260
18261 if (!args) SWIG_fail;
18262 swig_obj[0] = args;
18263 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18264 if (!SWIG_IsOK(res1)) {
18265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetTickFreq" "', expected argument " "1"" of type '" "wxSlider const *""'");
18266 }
18267 arg1 = reinterpret_cast< wxSlider * >(argp1);
18268 {
18269 PyThreadState* __tstate = wxPyBeginAllowThreads();
18270 result = (int)((wxSlider const *)arg1)->GetTickFreq();
18271 wxPyEndAllowThreads(__tstate);
18272 if (PyErr_Occurred()) SWIG_fail;
18273 }
18274 resultobj = SWIG_From_int(static_cast< int >(result));
18275 return resultobj;
18276fail:
18277 return NULL;
d55e5bfc
RD
18278}
18279
18280
1bd55598
RD
18281SWIGINTERN PyObject *_wrap_Slider_ClearTicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18282 PyObject *resultobj = 0;
18283 wxSlider *arg1 = (wxSlider *) 0 ;
18284 void *argp1 = 0 ;
18285 int res1 = 0 ;
18286 PyObject *swig_obj[1] ;
18287
18288 if (!args) SWIG_fail;
18289 swig_obj[0] = args;
18290 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18291 if (!SWIG_IsOK(res1)) {
18292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearTicks" "', expected argument " "1"" of type '" "wxSlider *""'");
18293 }
18294 arg1 = reinterpret_cast< wxSlider * >(argp1);
18295 {
18296 PyThreadState* __tstate = wxPyBeginAllowThreads();
18297 (arg1)->ClearTicks();
18298 wxPyEndAllowThreads(__tstate);
18299 if (PyErr_Occurred()) SWIG_fail;
18300 }
18301 resultobj = SWIG_Py_Void();
18302 return resultobj;
18303fail:
18304 return NULL;
18305}
18306
18307
18308SWIGINTERN PyObject *_wrap_Slider_SetTick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18309 PyObject *resultobj = 0;
18310 wxSlider *arg1 = (wxSlider *) 0 ;
18311 int arg2 ;
18312 void *argp1 = 0 ;
18313 int res1 = 0 ;
18314 int val2 ;
18315 int ecode2 = 0 ;
18316 PyObject * obj0 = 0 ;
18317 PyObject * obj1 = 0 ;
18318 char * kwnames[] = {
18319 (char *) "self",(char *) "tickPos", NULL
18320 };
18321
18322 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) SWIG_fail;
18323 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18324 if (!SWIG_IsOK(res1)) {
18325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTick" "', expected argument " "1"" of type '" "wxSlider *""'");
18326 }
18327 arg1 = reinterpret_cast< wxSlider * >(argp1);
18328 ecode2 = SWIG_AsVal_int(obj1, &val2);
18329 if (!SWIG_IsOK(ecode2)) {
18330 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTick" "', expected argument " "2"" of type '" "int""'");
18331 }
18332 arg2 = static_cast< int >(val2);
18333 {
18334 PyThreadState* __tstate = wxPyBeginAllowThreads();
18335 (arg1)->SetTick(arg2);
18336 wxPyEndAllowThreads(__tstate);
18337 if (PyErr_Occurred()) SWIG_fail;
18338 }
18339 resultobj = SWIG_Py_Void();
18340 return resultobj;
18341fail:
18342 return NULL;
d55e5bfc
RD
18343}
18344
18345
1bd55598
RD
18346SWIGINTERN PyObject *_wrap_Slider_ClearSel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18347 PyObject *resultobj = 0;
18348 wxSlider *arg1 = (wxSlider *) 0 ;
18349 void *argp1 = 0 ;
18350 int res1 = 0 ;
18351 PyObject *swig_obj[1] ;
18352
18353 if (!args) SWIG_fail;
18354 swig_obj[0] = args;
18355 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18356 if (!SWIG_IsOK(res1)) {
18357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearSel" "', expected argument " "1"" of type '" "wxSlider *""'");
18358 }
18359 arg1 = reinterpret_cast< wxSlider * >(argp1);
18360 {
18361 PyThreadState* __tstate = wxPyBeginAllowThreads();
18362 (arg1)->ClearSel();
18363 wxPyEndAllowThreads(__tstate);
18364 if (PyErr_Occurred()) SWIG_fail;
18365 }
18366 resultobj = SWIG_Py_Void();
18367 return resultobj;
18368fail:
18369 return NULL;
d55e5bfc
RD
18370}
18371
18372
1bd55598
RD
18373SWIGINTERN PyObject *_wrap_Slider_GetSelEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18374 PyObject *resultobj = 0;
18375 wxSlider *arg1 = (wxSlider *) 0 ;
18376 int result;
18377 void *argp1 = 0 ;
18378 int res1 = 0 ;
18379 PyObject *swig_obj[1] ;
18380
18381 if (!args) SWIG_fail;
18382 swig_obj[0] = args;
18383 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18384 if (!SWIG_IsOK(res1)) {
18385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelEnd" "', expected argument " "1"" of type '" "wxSlider const *""'");
18386 }
18387 arg1 = reinterpret_cast< wxSlider * >(argp1);
18388 {
18389 PyThreadState* __tstate = wxPyBeginAllowThreads();
18390 result = (int)((wxSlider const *)arg1)->GetSelEnd();
18391 wxPyEndAllowThreads(__tstate);
18392 if (PyErr_Occurred()) SWIG_fail;
18393 }
18394 resultobj = SWIG_From_int(static_cast< int >(result));
18395 return resultobj;
18396fail:
18397 return NULL;
d55e5bfc
RD
18398}
18399
18400
1bd55598
RD
18401SWIGINTERN PyObject *_wrap_Slider_GetSelStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18402 PyObject *resultobj = 0;
18403 wxSlider *arg1 = (wxSlider *) 0 ;
18404 int result;
18405 void *argp1 = 0 ;
18406 int res1 = 0 ;
18407 PyObject *swig_obj[1] ;
18408
18409 if (!args) SWIG_fail;
18410 swig_obj[0] = args;
18411 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18412 if (!SWIG_IsOK(res1)) {
18413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelStart" "', expected argument " "1"" of type '" "wxSlider const *""'");
18414 }
18415 arg1 = reinterpret_cast< wxSlider * >(argp1);
18416 {
18417 PyThreadState* __tstate = wxPyBeginAllowThreads();
18418 result = (int)((wxSlider const *)arg1)->GetSelStart();
18419 wxPyEndAllowThreads(__tstate);
18420 if (PyErr_Occurred()) SWIG_fail;
18421 }
18422 resultobj = SWIG_From_int(static_cast< int >(result));
18423 return resultobj;
18424fail:
18425 return NULL;
18426}
18427
18428
18429SWIGINTERN PyObject *_wrap_Slider_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18430 PyObject *resultobj = 0;
18431 wxSlider *arg1 = (wxSlider *) 0 ;
18432 int arg2 ;
18433 int arg3 ;
18434 void *argp1 = 0 ;
18435 int res1 = 0 ;
18436 int val2 ;
18437 int ecode2 = 0 ;
18438 int val3 ;
18439 int ecode3 = 0 ;
18440 PyObject * obj0 = 0 ;
18441 PyObject * obj1 = 0 ;
18442 PyObject * obj2 = 0 ;
18443 char * kwnames[] = {
18444 (char *) "self",(char *) "min",(char *) "max", NULL
18445 };
18446
18447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18449 if (!SWIG_IsOK(res1)) {
18450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetSelection" "', expected argument " "1"" of type '" "wxSlider *""'");
18451 }
18452 arg1 = reinterpret_cast< wxSlider * >(argp1);
18453 ecode2 = SWIG_AsVal_int(obj1, &val2);
18454 if (!SWIG_IsOK(ecode2)) {
18455 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetSelection" "', expected argument " "2"" of type '" "int""'");
18456 }
18457 arg2 = static_cast< int >(val2);
18458 ecode3 = SWIG_AsVal_int(obj2, &val3);
18459 if (!SWIG_IsOK(ecode3)) {
18460 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetSelection" "', expected argument " "3"" of type '" "int""'");
18461 }
18462 arg3 = static_cast< int >(val3);
18463 {
18464 PyThreadState* __tstate = wxPyBeginAllowThreads();
18465 (arg1)->SetSelection(arg2,arg3);
18466 wxPyEndAllowThreads(__tstate);
18467 if (PyErr_Occurred()) SWIG_fail;
18468 }
18469 resultobj = SWIG_Py_Void();
18470 return resultobj;
18471fail:
18472 return NULL;
18473}
18474
18475
18476SWIGINTERN PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18477 PyObject *resultobj = 0;
18478 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18479 SwigValueWrapper<wxVisualAttributes > result;
18480 int val1 ;
18481 int ecode1 = 0 ;
18482 PyObject * obj0 = 0 ;
18483 char * kwnames[] = {
18484 (char *) "variant", NULL
18485 };
18486
18487 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18488 if (obj0) {
18489 ecode1 = SWIG_AsVal_int(obj0, &val1);
18490 if (!SWIG_IsOK(ecode1)) {
18491 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Slider_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18492 }
18493 arg1 = static_cast< wxWindowVariant >(val1);
18494 }
18495 {
18496 if (!wxPyCheckForApp()) SWIG_fail;
18497 PyThreadState* __tstate = wxPyBeginAllowThreads();
18498 result = wxSlider::GetClassDefaultAttributes(arg1);
18499 wxPyEndAllowThreads(__tstate);
18500 if (PyErr_Occurred()) SWIG_fail;
18501 }
18502 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18503 return resultobj;
18504fail:
18505 return NULL;
d55e5bfc
RD
18506}
18507
18508
1bd55598
RD
18509SWIGINTERN PyObject *Slider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18510 PyObject *obj;
18511 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18512 SWIG_TypeNewClientData(SWIGTYPE_p_wxSlider, SWIG_NewClientData(obj));
18513 return SWIG_Py_Void();
d55e5bfc
RD
18514}
18515
1bd55598
RD
18516SWIGINTERN PyObject *Slider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18517 return SWIG_Python_InitShadowInstance(args);
18518}
d55e5bfc 18519
1bd55598
RD
18520SWIGINTERN int ToggleButtonNameStr_set(PyObject *) {
18521 SWIG_Error(SWIG_AttributeError,"Variable ToggleButtonNameStr is read-only.");
18522 return 1;
d55e5bfc
RD
18523}
18524
18525
1bd55598
RD
18526SWIGINTERN PyObject *ToggleButtonNameStr_get(void) {
18527 PyObject *pyobj = 0;
18528
18529 {
18530#if wxUSE_UNICODE
18531 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18532#else
18533 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18534#endif
18535 }
18536 return pyobj;
18537}
18538
18539
18540SWIGINTERN PyObject *_wrap_new_ToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18541 PyObject *resultobj = 0;
18542 wxWindow *arg1 = (wxWindow *) 0 ;
18543 int arg2 = (int) -1 ;
18544 wxString const &arg3_defvalue = wxPyEmptyString ;
18545 wxString *arg3 = (wxString *) &arg3_defvalue ;
18546 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18547 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18548 wxSize const &arg5_defvalue = wxDefaultSize ;
18549 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18550 long arg6 = (long) 0 ;
18551 wxValidator const &arg7_defvalue = wxDefaultValidator ;
18552 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
18553 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
18554 wxString *arg8 = (wxString *) &arg8_defvalue ;
18555 wxToggleButton *result = 0 ;
18556 void *argp1 = 0 ;
18557 int res1 = 0 ;
18558 int val2 ;
18559 int ecode2 = 0 ;
18560 bool temp3 = false ;
18561 wxPoint temp4 ;
18562 wxSize temp5 ;
18563 long val6 ;
18564 int ecode6 = 0 ;
18565 void *argp7 = 0 ;
18566 int res7 = 0 ;
18567 bool temp8 = false ;
18568 PyObject * obj0 = 0 ;
18569 PyObject * obj1 = 0 ;
18570 PyObject * obj2 = 0 ;
18571 PyObject * obj3 = 0 ;
18572 PyObject * obj4 = 0 ;
18573 PyObject * obj5 = 0 ;
18574 PyObject * obj6 = 0 ;
18575 PyObject * obj7 = 0 ;
18576 char * kwnames[] = {
18577 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18578 };
18579
18580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
18581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
18582 if (!SWIG_IsOK(res1)) {
18583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToggleButton" "', expected argument " "1"" of type '" "wxWindow *""'");
18584 }
18585 arg1 = reinterpret_cast< wxWindow * >(argp1);
18586 if (obj1) {
18587 ecode2 = SWIG_AsVal_int(obj1, &val2);
18588 if (!SWIG_IsOK(ecode2)) {
18589 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToggleButton" "', expected argument " "2"" of type '" "int""'");
18590 }
18591 arg2 = static_cast< int >(val2);
18592 }
18593 if (obj2) {
d55e5bfc 18594 {
1bd55598
RD
18595 arg3 = wxString_in_helper(obj2);
18596 if (arg3 == NULL) SWIG_fail;
18597 temp3 = true;
d55e5bfc 18598 }
1bd55598
RD
18599 }
18600 if (obj3) {
36ed4f51 18601 {
1bd55598
RD
18602 arg4 = &temp4;
18603 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36ed4f51 18604 }
1bd55598
RD
18605 }
18606 if (obj4) {
d55e5bfc 18607 {
1bd55598
RD
18608 arg5 = &temp5;
18609 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 18610 }
1bd55598
RD
18611 }
18612 if (obj5) {
18613 ecode6 = SWIG_AsVal_long(obj5, &val6);
18614 if (!SWIG_IsOK(ecode6)) {
18615 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ToggleButton" "', expected argument " "6"" of type '" "long""'");
18616 }
18617 arg6 = static_cast< long >(val6);
18618 }
18619 if (obj6) {
18620 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
18621 if (!SWIG_IsOK(res7)) {
18622 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 18623 }
1bd55598
RD
18624 if (!argp7) {
18625 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
36ed4f51 18626 }
1bd55598
RD
18627 arg7 = reinterpret_cast< wxValidator * >(argp7);
18628 }
18629 if (obj7) {
d55e5bfc 18630 {
1bd55598
RD
18631 arg8 = wxString_in_helper(obj7);
18632 if (arg8 == NULL) SWIG_fail;
18633 temp8 = true;
d55e5bfc 18634 }
1bd55598
RD
18635 }
18636 {
18637 if (!wxPyCheckForApp()) SWIG_fail;
18638 PyThreadState* __tstate = wxPyBeginAllowThreads();
18639 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
18640 wxPyEndAllowThreads(__tstate);
18641 if (PyErr_Occurred()) SWIG_fail;
18642 }
18643 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_NEW | 0 );
18644 {
18645 if (temp3)
18646 delete arg3;
18647 }
18648 {
18649 if (temp8)
18650 delete arg8;
18651 }
18652 return resultobj;
18653fail:
18654 {
18655 if (temp3)
18656 delete arg3;
18657 }
18658 {
18659 if (temp8)
18660 delete arg8;
18661 }
18662 return NULL;
d55e5bfc
RD
18663}
18664
18665
1bd55598
RD
18666SWIGINTERN PyObject *_wrap_new_PreToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18667 PyObject *resultobj = 0;
18668 wxToggleButton *result = 0 ;
18669
18670 if (!SWIG_Python_UnpackTuple(args,"new_PreToggleButton",0,0,0)) SWIG_fail;
18671 {
18672 if (!wxPyCheckForApp()) SWIG_fail;
18673 PyThreadState* __tstate = wxPyBeginAllowThreads();
18674 result = (wxToggleButton *)new wxToggleButton();
18675 wxPyEndAllowThreads(__tstate);
18676 if (PyErr_Occurred()) SWIG_fail;
18677 }
18678 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_OWN | 0 );
18679 return resultobj;
18680fail:
18681 return NULL;
18682}
18683
18684
18685SWIGINTERN PyObject *_wrap_ToggleButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18686 PyObject *resultobj = 0;
18687 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18688 wxWindow *arg2 = (wxWindow *) 0 ;
18689 int arg3 = (int) -1 ;
18690 wxString const &arg4_defvalue = wxPyEmptyString ;
18691 wxString *arg4 = (wxString *) &arg4_defvalue ;
18692 wxPoint const &arg5_defvalue = wxDefaultPosition ;
18693 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
18694 wxSize const &arg6_defvalue = wxDefaultSize ;
18695 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
18696 long arg7 = (long) 0 ;
18697 wxValidator const &arg8_defvalue = wxDefaultValidator ;
18698 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
18699 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
18700 wxString *arg9 = (wxString *) &arg9_defvalue ;
18701 bool result;
18702 void *argp1 = 0 ;
18703 int res1 = 0 ;
18704 void *argp2 = 0 ;
18705 int res2 = 0 ;
18706 int val3 ;
18707 int ecode3 = 0 ;
18708 bool temp4 = false ;
18709 wxPoint temp5 ;
18710 wxSize temp6 ;
18711 long val7 ;
18712 int ecode7 = 0 ;
18713 void *argp8 = 0 ;
18714 int res8 = 0 ;
18715 bool temp9 = false ;
18716 PyObject * obj0 = 0 ;
18717 PyObject * obj1 = 0 ;
18718 PyObject * obj2 = 0 ;
18719 PyObject * obj3 = 0 ;
18720 PyObject * obj4 = 0 ;
18721 PyObject * obj5 = 0 ;
18722 PyObject * obj6 = 0 ;
18723 PyObject * obj7 = 0 ;
18724 PyObject * obj8 = 0 ;
18725 char * kwnames[] = {
18726 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18727 };
18728
18729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
18730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18731 if (!SWIG_IsOK(res1)) {
18732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_Create" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18733 }
18734 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18735 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
18736 if (!SWIG_IsOK(res2)) {
18737 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToggleButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
18738 }
18739 arg2 = reinterpret_cast< wxWindow * >(argp2);
18740 if (obj2) {
18741 ecode3 = SWIG_AsVal_int(obj2, &val3);
18742 if (!SWIG_IsOK(ecode3)) {
18743 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToggleButton_Create" "', expected argument " "3"" of type '" "int""'");
18744 }
18745 arg3 = static_cast< int >(val3);
18746 }
18747 if (obj3) {
36ed4f51 18748 {
1bd55598
RD
18749 arg4 = wxString_in_helper(obj3);
18750 if (arg4 == NULL) SWIG_fail;
18751 temp4 = true;
36ed4f51 18752 }
1bd55598
RD
18753 }
18754 if (obj4) {
36ed4f51 18755 {
1bd55598
RD
18756 arg5 = &temp5;
18757 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 18758 }
1bd55598
RD
18759 }
18760 if (obj5) {
36ed4f51 18761 {
1bd55598
RD
18762 arg6 = &temp6;
18763 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
36ed4f51 18764 }
1bd55598
RD
18765 }
18766 if (obj6) {
18767 ecode7 = SWIG_AsVal_long(obj6, &val7);
18768 if (!SWIG_IsOK(ecode7)) {
18769 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToggleButton_Create" "', expected argument " "7"" of type '" "long""'");
18770 }
18771 arg7 = static_cast< long >(val7);
18772 }
18773 if (obj7) {
18774 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
18775 if (!SWIG_IsOK(res8)) {
18776 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
36ed4f51 18777 }
1bd55598
RD
18778 if (!argp8) {
18779 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 18780 }
1bd55598
RD
18781 arg8 = reinterpret_cast< wxValidator * >(argp8);
18782 }
18783 if (obj8) {
d55e5bfc 18784 {
1bd55598
RD
18785 arg9 = wxString_in_helper(obj8);
18786 if (arg9 == NULL) SWIG_fail;
18787 temp9 = true;
d55e5bfc 18788 }
1bd55598
RD
18789 }
18790 {
18791 PyThreadState* __tstate = wxPyBeginAllowThreads();
18792 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
18793 wxPyEndAllowThreads(__tstate);
18794 if (PyErr_Occurred()) SWIG_fail;
18795 }
18796 {
18797 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18798 }
18799 {
18800 if (temp4)
18801 delete arg4;
18802 }
18803 {
18804 if (temp9)
18805 delete arg9;
18806 }
18807 return resultobj;
18808fail:
18809 {
18810 if (temp4)
18811 delete arg4;
18812 }
18813 {
18814 if (temp9)
18815 delete arg9;
18816 }
18817 return NULL;
18818}
18819
18820
18821SWIGINTERN PyObject *_wrap_ToggleButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18822 PyObject *resultobj = 0;
18823 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18824 bool arg2 ;
18825 void *argp1 = 0 ;
18826 int res1 = 0 ;
18827 bool val2 ;
18828 int ecode2 = 0 ;
18829 PyObject * obj0 = 0 ;
18830 PyObject * obj1 = 0 ;
18831 char * kwnames[] = {
18832 (char *) "self",(char *) "value", NULL
18833 };
18834
18835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
18836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18837 if (!SWIG_IsOK(res1)) {
18838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_SetValue" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18839 }
18840 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18841 ecode2 = SWIG_AsVal_bool(obj1, &val2);
18842 if (!SWIG_IsOK(ecode2)) {
18843 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToggleButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
18844 }
18845 arg2 = static_cast< bool >(val2);
18846 {
18847 PyThreadState* __tstate = wxPyBeginAllowThreads();
18848 (arg1)->SetValue(arg2);
18849 wxPyEndAllowThreads(__tstate);
18850 if (PyErr_Occurred()) SWIG_fail;
18851 }
18852 resultobj = SWIG_Py_Void();
18853 return resultobj;
18854fail:
18855 return NULL;
d55e5bfc
RD
18856}
18857
18858
1bd55598
RD
18859SWIGINTERN PyObject *_wrap_ToggleButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18860 PyObject *resultobj = 0;
18861 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18862 bool result;
18863 void *argp1 = 0 ;
18864 int res1 = 0 ;
18865 PyObject *swig_obj[1] ;
18866
18867 if (!args) SWIG_fail;
18868 swig_obj[0] = args;
18869 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18870 if (!SWIG_IsOK(res1)) {
18871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_GetValue" "', expected argument " "1"" of type '" "wxToggleButton const *""'");
18872 }
18873 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18874 {
18875 PyThreadState* __tstate = wxPyBeginAllowThreads();
18876 result = (bool)((wxToggleButton const *)arg1)->GetValue();
18877 wxPyEndAllowThreads(__tstate);
18878 if (PyErr_Occurred()) SWIG_fail;
18879 }
18880 {
18881 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18882 }
18883 return resultobj;
18884fail:
18885 return NULL;
f20a2e1f
RD
18886}
18887
18888
1bd55598
RD
18889SWIGINTERN PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18890 PyObject *resultobj = 0;
18891 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18892 SwigValueWrapper<wxVisualAttributes > result;
18893 int val1 ;
18894 int ecode1 = 0 ;
18895 PyObject * obj0 = 0 ;
18896 char * kwnames[] = {
18897 (char *) "variant", NULL
18898 };
18899
18900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18901 if (obj0) {
18902 ecode1 = SWIG_AsVal_int(obj0, &val1);
18903 if (!SWIG_IsOK(ecode1)) {
18904 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToggleButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18905 }
18906 arg1 = static_cast< wxWindowVariant >(val1);
18907 }
18908 {
18909 if (!wxPyCheckForApp()) SWIG_fail;
18910 PyThreadState* __tstate = wxPyBeginAllowThreads();
18911 result = wxToggleButton::GetClassDefaultAttributes(arg1);
18912 wxPyEndAllowThreads(__tstate);
18913 if (PyErr_Occurred()) SWIG_fail;
18914 }
18915 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18916 return resultobj;
18917fail:
18918 return NULL;
d55e5bfc
RD
18919}
18920
18921
1bd55598
RD
18922SWIGINTERN PyObject *ToggleButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18923 PyObject *obj;
18924 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18925 SWIG_TypeNewClientData(SWIGTYPE_p_wxToggleButton, SWIG_NewClientData(obj));
18926 return SWIG_Py_Void();
d55e5bfc
RD
18927}
18928
1bd55598
RD
18929SWIGINTERN PyObject *ToggleButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18930 return SWIG_Python_InitShadowInstance(args);
18931}
d55e5bfc 18932
1bd55598
RD
18933SWIGINTERN int NotebookNameStr_set(PyObject *) {
18934 SWIG_Error(SWIG_AttributeError,"Variable NotebookNameStr is read-only.");
18935 return 1;
d55e5bfc
RD
18936}
18937
18938
1bd55598
RD
18939SWIGINTERN PyObject *NotebookNameStr_get(void) {
18940 PyObject *pyobj = 0;
18941
18942 {
d55e5bfc 18943#if wxUSE_UNICODE
1bd55598 18944 pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
d55e5bfc 18945#else
1bd55598 18946 pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
d55e5bfc 18947#endif
1bd55598
RD
18948 }
18949 return pyobj;
d55e5bfc
RD
18950}
18951
18952
1bd55598
RD
18953SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18954 PyObject *resultobj = 0;
18955 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18956 size_t result;
18957 void *argp1 = 0 ;
18958 int res1 = 0 ;
18959 PyObject *swig_obj[1] ;
18960
18961 if (!args) SWIG_fail;
18962 swig_obj[0] = args;
18963 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18964 if (!SWIG_IsOK(res1)) {
18965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageCount" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
18966 }
18967 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18968 {
18969 PyThreadState* __tstate = wxPyBeginAllowThreads();
18970 result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount();
18971 wxPyEndAllowThreads(__tstate);
18972 if (PyErr_Occurred()) SWIG_fail;
18973 }
18974 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
18975 return resultobj;
18976fail:
18977 return NULL;
18978}
18979
18980
18981SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18982 PyObject *resultobj = 0;
18983 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18984 size_t arg2 ;
18985 wxWindow *result = 0 ;
18986 void *argp1 = 0 ;
18987 int res1 = 0 ;
18988 size_t val2 ;
18989 int ecode2 = 0 ;
18990 PyObject * obj0 = 0 ;
18991 PyObject * obj1 = 0 ;
18992 char * kwnames[] = {
18993 (char *) "self",(char *) "n", NULL
18994 };
18995
18996 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) SWIG_fail;
18997 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18998 if (!SWIG_IsOK(res1)) {
18999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19000 }
19001 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19002 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19003 if (!SWIG_IsOK(ecode2)) {
19004 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPage" "', expected argument " "2"" of type '" "size_t""'");
19005 }
19006 arg2 = static_cast< size_t >(val2);
19007 {
19008 PyThreadState* __tstate = wxPyBeginAllowThreads();
19009 result = (wxWindow *)(arg1)->GetPage(arg2);
19010 wxPyEndAllowThreads(__tstate);
19011 if (PyErr_Occurred()) SWIG_fail;
19012 }
19013 {
19014 resultobj = wxPyMake_wxObject(result, 0);
19015 }
19016 return resultobj;
19017fail:
19018 return NULL;
d55e5bfc
RD
19019}
19020
19021
1bd55598
RD
19022SWIGINTERN PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19023 PyObject *resultobj = 0;
19024 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19025 wxWindow *result = 0 ;
19026 void *argp1 = 0 ;
19027 int res1 = 0 ;
19028 PyObject *swig_obj[1] ;
19029
19030 if (!args) SWIG_fail;
19031 swig_obj[0] = args;
19032 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19033 if (!SWIG_IsOK(res1)) {
19034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19035 }
19036 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19037 {
19038 PyThreadState* __tstate = wxPyBeginAllowThreads();
19039 result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage();
19040 wxPyEndAllowThreads(__tstate);
19041 if (PyErr_Occurred()) SWIG_fail;
19042 }
19043 {
19044 resultobj = wxPyMake_wxObject(result, 0);
19045 }
19046 return resultobj;
19047fail:
19048 return NULL;
d55e5bfc
RD
19049}
19050
19051
1bd55598
RD
19052SWIGINTERN PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19053 PyObject *resultobj = 0;
19054 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19055 int result;
19056 void *argp1 = 0 ;
19057 int res1 = 0 ;
19058 PyObject *swig_obj[1] ;
19059
19060 if (!args) SWIG_fail;
19061 swig_obj[0] = args;
19062 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19063 if (!SWIG_IsOK(res1)) {
19064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19065 }
19066 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19067 {
19068 PyThreadState* __tstate = wxPyBeginAllowThreads();
19069 result = (int)((wxBookCtrlBase const *)arg1)->GetSelection();
19070 wxPyEndAllowThreads(__tstate);
19071 if (PyErr_Occurred()) SWIG_fail;
19072 }
19073 resultobj = SWIG_From_int(static_cast< int >(result));
19074 return resultobj;
19075fail:
19076 return NULL;
19077}
19078
19079
19080SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19081 PyObject *resultobj = 0;
19082 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19083 size_t arg2 ;
19084 wxString *arg3 = 0 ;
19085 bool result;
19086 void *argp1 = 0 ;
19087 int res1 = 0 ;
19088 size_t val2 ;
19089 int ecode2 = 0 ;
19090 bool temp3 = false ;
19091 PyObject * obj0 = 0 ;
19092 PyObject * obj1 = 0 ;
19093 PyObject * obj2 = 0 ;
19094 char * kwnames[] = {
19095 (char *) "self",(char *) "n",(char *) "strText", NULL
19096 };
19097
19098 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19099 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19100 if (!SWIG_IsOK(res1)) {
19101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19102 }
19103 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19104 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19105 if (!SWIG_IsOK(ecode2)) {
19106 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "2"" of type '" "size_t""'");
19107 }
19108 arg2 = static_cast< size_t >(val2);
19109 {
19110 arg3 = wxString_in_helper(obj2);
19111 if (arg3 == NULL) SWIG_fail;
19112 temp3 = true;
19113 }
19114 {
19115 PyThreadState* __tstate = wxPyBeginAllowThreads();
19116 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
19117 wxPyEndAllowThreads(__tstate);
19118 if (PyErr_Occurred()) SWIG_fail;
19119 }
19120 {
19121 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19122 }
19123 {
19124 if (temp3)
19125 delete arg3;
19126 }
19127 return resultobj;
19128fail:
19129 {
19130 if (temp3)
19131 delete arg3;
19132 }
19133 return NULL;
19134}
19135
19136
19137SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19138 PyObject *resultobj = 0;
19139 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19140 size_t arg2 ;
19141 wxString result;
19142 void *argp1 = 0 ;
19143 int res1 = 0 ;
19144 size_t val2 ;
19145 int ecode2 = 0 ;
19146 PyObject * obj0 = 0 ;
19147 PyObject * obj1 = 0 ;
19148 char * kwnames[] = {
19149 (char *) "self",(char *) "n", NULL
19150 };
19151
19152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) SWIG_fail;
19153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19154 if (!SWIG_IsOK(res1)) {
19155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19156 }
19157 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19158 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19159 if (!SWIG_IsOK(ecode2)) {
19160 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "2"" of type '" "size_t""'");
19161 }
19162 arg2 = static_cast< size_t >(val2);
19163 {
19164 PyThreadState* __tstate = wxPyBeginAllowThreads();
19165 result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2);
19166 wxPyEndAllowThreads(__tstate);
19167 if (PyErr_Occurred()) SWIG_fail;
19168 }
19169 {
19170#if wxUSE_UNICODE
19171 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19172#else
19173 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19174#endif
19175 }
19176 return resultobj;
19177fail:
19178 return NULL;
19179}
19180
19181
19182SWIGINTERN PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19183 PyObject *resultobj = 0;
19184 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19185 wxImageList *arg2 = (wxImageList *) 0 ;
19186 void *argp1 = 0 ;
19187 int res1 = 0 ;
19188 void *argp2 = 0 ;
19189 int res2 = 0 ;
19190 PyObject * obj0 = 0 ;
19191 PyObject * obj1 = 0 ;
19192 char * kwnames[] = {
19193 (char *) "self",(char *) "imageList", NULL
19194 };
19195
19196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19198 if (!SWIG_IsOK(res1)) {
19199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19200 }
19201 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19202 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
19203 if (!SWIG_IsOK(res2)) {
19204 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19205 }
19206 arg2 = reinterpret_cast< wxImageList * >(argp2);
19207 {
19208 PyThreadState* __tstate = wxPyBeginAllowThreads();
19209 (arg1)->SetImageList(arg2);
19210 wxPyEndAllowThreads(__tstate);
19211 if (PyErr_Occurred()) SWIG_fail;
19212 }
19213 resultobj = SWIG_Py_Void();
19214 return resultobj;
19215fail:
19216 return NULL;
19217}
19218
19219
19220SWIGINTERN PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19221 PyObject *resultobj = 0;
19222 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19223 wxImageList *arg2 = (wxImageList *) 0 ;
19224 void *argp1 = 0 ;
19225 int res1 = 0 ;
19226 int res2 = 0 ;
19227 PyObject * obj0 = 0 ;
19228 PyObject * obj1 = 0 ;
19229 char * kwnames[] = {
19230 (char *) "self",(char *) "imageList", NULL
19231 };
19232
19233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19235 if (!SWIG_IsOK(res1)) {
19236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19237 }
19238 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19239 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
19240 if (!SWIG_IsOK(res2)) {
19241 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19242 }
19243 {
19244 PyThreadState* __tstate = wxPyBeginAllowThreads();
19245 (arg1)->AssignImageList(arg2);
19246 wxPyEndAllowThreads(__tstate);
19247 if (PyErr_Occurred()) SWIG_fail;
19248 }
19249 resultobj = SWIG_Py_Void();
19250 return resultobj;
19251fail:
19252 return NULL;
d55e5bfc
RD
19253}
19254
19255
1bd55598
RD
19256SWIGINTERN PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19257 PyObject *resultobj = 0;
19258 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19259 wxImageList *result = 0 ;
19260 void *argp1 = 0 ;
19261 int res1 = 0 ;
19262 PyObject *swig_obj[1] ;
19263
19264 if (!args) SWIG_fail;
19265 swig_obj[0] = args;
19266 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19267 if (!SWIG_IsOK(res1)) {
19268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19269 }
19270 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19271 {
19272 PyThreadState* __tstate = wxPyBeginAllowThreads();
19273 result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList();
19274 wxPyEndAllowThreads(__tstate);
19275 if (PyErr_Occurred()) SWIG_fail;
19276 }
19277 {
19278 resultobj = wxPyMake_wxObject(result, (bool)0);
19279 }
19280 return resultobj;
19281fail:
19282 return NULL;
19283}
19284
19285
19286SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19287 PyObject *resultobj = 0;
19288 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19289 size_t arg2 ;
19290 int result;
19291 void *argp1 = 0 ;
19292 int res1 = 0 ;
19293 size_t val2 ;
19294 int ecode2 = 0 ;
19295 PyObject * obj0 = 0 ;
19296 PyObject * obj1 = 0 ;
19297 char * kwnames[] = {
19298 (char *) "self",(char *) "n", NULL
19299 };
19300
19301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) SWIG_fail;
19302 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19303 if (!SWIG_IsOK(res1)) {
19304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19305 }
19306 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19307 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19308 if (!SWIG_IsOK(ecode2)) {
19309 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19310 }
19311 arg2 = static_cast< size_t >(val2);
19312 {
19313 PyThreadState* __tstate = wxPyBeginAllowThreads();
19314 result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2);
19315 wxPyEndAllowThreads(__tstate);
19316 if (PyErr_Occurred()) SWIG_fail;
19317 }
19318 resultobj = SWIG_From_int(static_cast< int >(result));
19319 return resultobj;
19320fail:
19321 return NULL;
19322}
19323
19324
19325SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19326 PyObject *resultobj = 0;
19327 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19328 size_t arg2 ;
19329 int arg3 ;
19330 bool result;
19331 void *argp1 = 0 ;
19332 int res1 = 0 ;
19333 size_t val2 ;
19334 int ecode2 = 0 ;
19335 int val3 ;
19336 int ecode3 = 0 ;
19337 PyObject * obj0 = 0 ;
19338 PyObject * obj1 = 0 ;
19339 PyObject * obj2 = 0 ;
19340 char * kwnames[] = {
19341 (char *) "self",(char *) "n",(char *) "imageId", NULL
19342 };
19343
19344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19346 if (!SWIG_IsOK(res1)) {
19347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19348 }
19349 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19350 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19351 if (!SWIG_IsOK(ecode2)) {
19352 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19353 }
19354 arg2 = static_cast< size_t >(val2);
19355 ecode3 = SWIG_AsVal_int(obj2, &val3);
19356 if (!SWIG_IsOK(ecode3)) {
19357 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "3"" of type '" "int""'");
19358 }
19359 arg3 = static_cast< int >(val3);
19360 {
19361 PyThreadState* __tstate = wxPyBeginAllowThreads();
19362 result = (bool)(arg1)->SetPageImage(arg2,arg3);
19363 wxPyEndAllowThreads(__tstate);
19364 if (PyErr_Occurred()) SWIG_fail;
19365 }
19366 {
19367 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19368 }
19369 return resultobj;
19370fail:
19371 return NULL;
19372}
19373
19374
19375SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19376 PyObject *resultobj = 0;
19377 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19378 wxSize *arg2 = 0 ;
19379 void *argp1 = 0 ;
19380 int res1 = 0 ;
19381 wxSize temp2 ;
19382 PyObject * obj0 = 0 ;
19383 PyObject * obj1 = 0 ;
19384 char * kwnames[] = {
19385 (char *) "self",(char *) "size", NULL
19386 };
19387
19388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
19389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19390 if (!SWIG_IsOK(res1)) {
19391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageSize" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19392 }
19393 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19394 {
19395 arg2 = &temp2;
19396 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19397 }
19398 {
19399 PyThreadState* __tstate = wxPyBeginAllowThreads();
19400 (arg1)->SetPageSize((wxSize const &)*arg2);
19401 wxPyEndAllowThreads(__tstate);
19402 if (PyErr_Occurred()) SWIG_fail;
19403 }
19404 resultobj = SWIG_Py_Void();
19405 return resultobj;
19406fail:
19407 return NULL;
19408}
19409
19410
19411SWIGINTERN PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19412 PyObject *resultobj = 0;
19413 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19414 wxSize *arg2 = 0 ;
19415 wxSize result;
19416 void *argp1 = 0 ;
19417 int res1 = 0 ;
19418 wxSize temp2 ;
19419 PyObject * obj0 = 0 ;
19420 PyObject * obj1 = 0 ;
19421 char * kwnames[] = {
19422 (char *) "self",(char *) "sizePage", NULL
19423 };
19424
19425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) SWIG_fail;
19426 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19427 if (!SWIG_IsOK(res1)) {
19428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_CalcSizeFromPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19429 }
19430 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19431 {
19432 arg2 = &temp2;
19433 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19434 }
19435 {
19436 PyThreadState* __tstate = wxPyBeginAllowThreads();
19437 result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
19438 wxPyEndAllowThreads(__tstate);
19439 if (PyErr_Occurred()) SWIG_fail;
19440 }
19441 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
19442 return resultobj;
19443fail:
19444 return NULL;
d55e5bfc
RD
19445}
19446
19447
1bd55598
RD
19448SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19449 PyObject *resultobj = 0;
19450 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
e9d6f3a4 19451 unsigned int result;
1bd55598
RD
19452 void *argp1 = 0 ;
19453 int res1 = 0 ;
19454 PyObject *swig_obj[1] ;
19455
19456 if (!args) SWIG_fail;
19457 swig_obj[0] = args;
19458 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19459 if (!SWIG_IsOK(res1)) {
19460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19461 }
19462 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19463 {
19464 PyThreadState* __tstate = wxPyBeginAllowThreads();
e9d6f3a4 19465 result = (unsigned int)((wxBookCtrlBase const *)arg1)->GetInternalBorder();
1bd55598
RD
19466 wxPyEndAllowThreads(__tstate);
19467 if (PyErr_Occurred()) SWIG_fail;
19468 }
e9d6f3a4 19469 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
1bd55598
RD
19470 return resultobj;
19471fail:
19472 return NULL;
19473}
19474
19475
19476SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19477 PyObject *resultobj = 0;
19478 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
e9d6f3a4 19479 unsigned int arg2 ;
1bd55598
RD
19480 void *argp1 = 0 ;
19481 int res1 = 0 ;
e9d6f3a4 19482 unsigned int val2 ;
1bd55598
RD
19483 int ecode2 = 0 ;
19484 PyObject * obj0 = 0 ;
19485 PyObject * obj1 = 0 ;
19486 char * kwnames[] = {
19487 (char *) "self",(char *) "internalBorder", NULL
19488 };
19489
19490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetInternalBorder",kwnames,&obj0,&obj1)) SWIG_fail;
19491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19492 if (!SWIG_IsOK(res1)) {
19493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19494 }
19495 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
e9d6f3a4 19496 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
1bd55598 19497 if (!SWIG_IsOK(ecode2)) {
e9d6f3a4 19498 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "unsigned int""'");
1bd55598 19499 }
e9d6f3a4 19500 arg2 = static_cast< unsigned int >(val2);
1bd55598
RD
19501 {
19502 PyThreadState* __tstate = wxPyBeginAllowThreads();
19503 (arg1)->SetInternalBorder(arg2);
19504 wxPyEndAllowThreads(__tstate);
19505 if (PyErr_Occurred()) SWIG_fail;
19506 }
19507 resultobj = SWIG_Py_Void();
19508 return resultobj;
19509fail:
19510 return NULL;
d55e5bfc
RD
19511}
19512
19513
1bd55598
RD
19514SWIGINTERN PyObject *_wrap_BookCtrlBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19515 PyObject *resultobj = 0;
19516 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19517 bool result;
19518 void *argp1 = 0 ;
19519 int res1 = 0 ;
19520 PyObject *swig_obj[1] ;
19521
19522 if (!args) SWIG_fail;
19523 swig_obj[0] = args;
19524 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19525 if (!SWIG_IsOK(res1)) {
19526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_IsVertical" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19527 }
19528 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19529 {
19530 PyThreadState* __tstate = wxPyBeginAllowThreads();
19531 result = (bool)((wxBookCtrlBase const *)arg1)->IsVertical();
19532 wxPyEndAllowThreads(__tstate);
19533 if (PyErr_Occurred()) SWIG_fail;
19534 }
19535 {
19536 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19537 }
19538 return resultobj;
19539fail:
19540 return NULL;
19541}
19542
19543
e9d6f3a4
RD
19544SWIGINTERN PyObject *_wrap_BookCtrlBase_SetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19545 PyObject *resultobj = 0;
19546 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19547 int arg2 ;
19548 void *argp1 = 0 ;
19549 int res1 = 0 ;
19550 int val2 ;
19551 int ecode2 = 0 ;
19552 PyObject * obj0 = 0 ;
19553 PyObject * obj1 = 0 ;
19554 char * kwnames[] = {
19555 (char *) "self",(char *) "margin", NULL
19556 };
19557
19558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetControlMargin",kwnames,&obj0,&obj1)) SWIG_fail;
19559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19560 if (!SWIG_IsOK(res1)) {
19561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19562 }
19563 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19564 ecode2 = SWIG_AsVal_int(obj1, &val2);
19565 if (!SWIG_IsOK(ecode2)) {
19566 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "2"" of type '" "int""'");
19567 }
19568 arg2 = static_cast< int >(val2);
19569 {
19570 PyThreadState* __tstate = wxPyBeginAllowThreads();
19571 (arg1)->SetControlMargin(arg2);
19572 wxPyEndAllowThreads(__tstate);
19573 if (PyErr_Occurred()) SWIG_fail;
19574 }
19575 resultobj = SWIG_Py_Void();
19576 return resultobj;
19577fail:
19578 return NULL;
19579}
19580
19581
19582SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19583 PyObject *resultobj = 0;
19584 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19585 int result;
19586 void *argp1 = 0 ;
19587 int res1 = 0 ;
19588 PyObject *swig_obj[1] ;
19589
19590 if (!args) SWIG_fail;
19591 swig_obj[0] = args;
19592 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19593 if (!SWIG_IsOK(res1)) {
19594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19595 }
19596 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19597 {
19598 PyThreadState* __tstate = wxPyBeginAllowThreads();
19599 result = (int)((wxBookCtrlBase const *)arg1)->GetControlMargin();
19600 wxPyEndAllowThreads(__tstate);
19601 if (PyErr_Occurred()) SWIG_fail;
19602 }
19603 resultobj = SWIG_From_int(static_cast< int >(result));
19604 return resultobj;
19605fail:
19606 return NULL;
19607}
19608
19609
1bd55598
RD
19610SWIGINTERN PyObject *_wrap_BookCtrlBase_SetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19611 PyObject *resultobj = 0;
19612 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19613 bool arg2 ;
19614 void *argp1 = 0 ;
19615 int res1 = 0 ;
19616 bool val2 ;
19617 int ecode2 = 0 ;
19618 PyObject * obj0 = 0 ;
19619 PyObject * obj1 = 0 ;
19620 char * kwnames[] = {
19621 (char *) "self",(char *) "fit", NULL
19622 };
19623
19624 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetFitToCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail;
19625 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19626 if (!SWIG_IsOK(res1)) {
19627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19628 }
19629 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19630 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19631 if (!SWIG_IsOK(ecode2)) {
19632 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "2"" of type '" "bool""'");
19633 }
19634 arg2 = static_cast< bool >(val2);
19635 {
19636 PyThreadState* __tstate = wxPyBeginAllowThreads();
19637 (arg1)->SetFitToCurrentPage(arg2);
19638 wxPyEndAllowThreads(__tstate);
19639 if (PyErr_Occurred()) SWIG_fail;
19640 }
19641 resultobj = SWIG_Py_Void();
19642 return resultobj;
19643fail:
19644 return NULL;
d55e5bfc
RD
19645}
19646
19647
1bd55598
RD
19648SWIGINTERN PyObject *_wrap_BookCtrlBase_GetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19649 PyObject *resultobj = 0;
19650 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19651 bool result;
19652 void *argp1 = 0 ;
19653 int res1 = 0 ;
19654 PyObject *swig_obj[1] ;
19655
19656 if (!args) SWIG_fail;
19657 swig_obj[0] = args;
19658 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19659 if (!SWIG_IsOK(res1)) {
19660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19661 }
19662 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19663 {
19664 PyThreadState* __tstate = wxPyBeginAllowThreads();
19665 result = (bool)((wxBookCtrlBase const *)arg1)->GetFitToCurrentPage();
19666 wxPyEndAllowThreads(__tstate);
19667 if (PyErr_Occurred()) SWIG_fail;
19668 }
19669 {
19670 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19671 }
19672 return resultobj;
19673fail:
19674 return NULL;
19675}
19676
19677
e9d6f3a4
RD
19678SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19679 PyObject *resultobj = 0;
19680 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19681 wxSizer *result = 0 ;
19682 void *argp1 = 0 ;
19683 int res1 = 0 ;
19684 PyObject *swig_obj[1] ;
19685
19686 if (!args) SWIG_fail;
19687 swig_obj[0] = args;
19688 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19689 if (!SWIG_IsOK(res1)) {
19690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlSizer" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19691 }
19692 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19693 {
19694 PyThreadState* __tstate = wxPyBeginAllowThreads();
19695 result = (wxSizer *)((wxBookCtrlBase const *)arg1)->GetControlSizer();
19696 wxPyEndAllowThreads(__tstate);
19697 if (PyErr_Occurred()) SWIG_fail;
19698 }
19699 {
19700 resultobj = wxPyMake_wxObject(result, (bool)0);
19701 }
19702 return resultobj;
19703fail:
19704 return NULL;
19705}
19706
19707
1bd55598
RD
19708SWIGINTERN PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19709 PyObject *resultobj = 0;
19710 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19711 size_t arg2 ;
19712 bool result;
19713 void *argp1 = 0 ;
19714 int res1 = 0 ;
19715 size_t val2 ;
19716 int ecode2 = 0 ;
19717 PyObject * obj0 = 0 ;
19718 PyObject * obj1 = 0 ;
19719 char * kwnames[] = {
19720 (char *) "self",(char *) "n", NULL
19721 };
19722
19723 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) SWIG_fail;
19724 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19725 if (!SWIG_IsOK(res1)) {
19726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19727 }
19728 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19729 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19730 if (!SWIG_IsOK(ecode2)) {
19731 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "2"" of type '" "size_t""'");
19732 }
19733 arg2 = static_cast< size_t >(val2);
19734 {
19735 PyThreadState* __tstate = wxPyBeginAllowThreads();
19736 result = (bool)(arg1)->DeletePage(arg2);
19737 wxPyEndAllowThreads(__tstate);
19738 if (PyErr_Occurred()) SWIG_fail;
19739 }
19740 {
19741 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19742 }
19743 return resultobj;
19744fail:
19745 return NULL;
19746}
19747
19748
19749SWIGINTERN PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19750 PyObject *resultobj = 0;
19751 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19752 size_t arg2 ;
19753 bool result;
19754 void *argp1 = 0 ;
19755 int res1 = 0 ;
19756 size_t val2 ;
19757 int ecode2 = 0 ;
19758 PyObject * obj0 = 0 ;
19759 PyObject * obj1 = 0 ;
19760 char * kwnames[] = {
19761 (char *) "self",(char *) "n", NULL
19762 };
19763
19764 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) SWIG_fail;
19765 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19766 if (!SWIG_IsOK(res1)) {
19767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19768 }
19769 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19770 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19771 if (!SWIG_IsOK(ecode2)) {
19772 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "2"" of type '" "size_t""'");
19773 }
19774 arg2 = static_cast< size_t >(val2);
19775 {
19776 PyThreadState* __tstate = wxPyBeginAllowThreads();
19777 result = (bool)(arg1)->RemovePage(arg2);
19778 wxPyEndAllowThreads(__tstate);
19779 if (PyErr_Occurred()) SWIG_fail;
19780 }
19781 {
19782 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19783 }
19784 return resultobj;
19785fail:
19786 return NULL;
f20a2e1f
RD
19787}
19788
19789
1bd55598
RD
19790SWIGINTERN PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19791 PyObject *resultobj = 0;
19792 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19793 bool result;
19794 void *argp1 = 0 ;
19795 int res1 = 0 ;
19796 PyObject *swig_obj[1] ;
19797
19798 if (!args) SWIG_fail;
19799 swig_obj[0] = args;
19800 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19801 if (!SWIG_IsOK(res1)) {
19802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeleteAllPages" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19803 }
19804 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19805 {
19806 PyThreadState* __tstate = wxPyBeginAllowThreads();
19807 result = (bool)(arg1)->DeleteAllPages();
19808 wxPyEndAllowThreads(__tstate);
19809 if (PyErr_Occurred()) SWIG_fail;
19810 }
19811 {
19812 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19813 }
19814 return resultobj;
19815fail:
19816 return NULL;
19817}
19818
19819
19820SWIGINTERN PyObject *_wrap_BookCtrlBase_AddPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19821 PyObject *resultobj = 0;
19822 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19823 wxWindow *arg2 = (wxWindow *) 0 ;
19824 wxString *arg3 = 0 ;
19825 bool arg4 = (bool) false ;
19826 int arg5 = (int) -1 ;
19827 bool result;
19828 void *argp1 = 0 ;
19829 int res1 = 0 ;
19830 void *argp2 = 0 ;
19831 int res2 = 0 ;
19832 bool temp3 = false ;
19833 bool val4 ;
19834 int ecode4 = 0 ;
19835 int val5 ;
19836 int ecode5 = 0 ;
19837 PyObject * obj0 = 0 ;
19838 PyObject * obj1 = 0 ;
19839 PyObject * obj2 = 0 ;
19840 PyObject * obj3 = 0 ;
19841 PyObject * obj4 = 0 ;
19842 char * kwnames[] = {
19843 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
19844 };
19845
19846 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19847 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19848 if (!SWIG_IsOK(res1)) {
19849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AddPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19850 }
19851 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19852 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
19853 if (!SWIG_IsOK(res2)) {
19854 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AddPage" "', expected argument " "2"" of type '" "wxWindow *""'");
19855 }
19856 arg2 = reinterpret_cast< wxWindow * >(argp2);
19857 {
19858 arg3 = wxString_in_helper(obj2);
19859 if (arg3 == NULL) SWIG_fail;
19860 temp3 = true;
19861 }
19862 if (obj3) {
19863 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19864 if (!SWIG_IsOK(ecode4)) {
19865 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BookCtrlBase_AddPage" "', expected argument " "4"" of type '" "bool""'");
19866 }
19867 arg4 = static_cast< bool >(val4);
19868 }
19869 if (obj4) {
19870 ecode5 = SWIG_AsVal_int(obj4, &val5);
19871 if (!SWIG_IsOK(ecode5)) {
19872 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_AddPage" "', expected argument " "5"" of type '" "int""'");
19873 }
19874 arg5 = static_cast< int >(val5);
19875 }
19876 {
19877 PyThreadState* __tstate = wxPyBeginAllowThreads();
19878 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
19879 wxPyEndAllowThreads(__tstate);
19880 if (PyErr_Occurred()) SWIG_fail;
19881 }
19882 {
19883 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19884 }
19885 {
19886 if (temp3)
19887 delete arg3;
19888 }
19889 return resultobj;
19890fail:
19891 {
19892 if (temp3)
19893 delete arg3;
19894 }
19895 return NULL;
19896}
19897
19898
19899SWIGINTERN PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19900 PyObject *resultobj = 0;
19901 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19902 size_t arg2 ;
19903 wxWindow *arg3 = (wxWindow *) 0 ;
19904 wxString *arg4 = 0 ;
19905 bool arg5 = (bool) false ;
19906 int arg6 = (int) -1 ;
19907 bool result;
19908 void *argp1 = 0 ;
19909 int res1 = 0 ;
19910 size_t val2 ;
19911 int ecode2 = 0 ;
19912 void *argp3 = 0 ;
19913 int res3 = 0 ;
19914 bool temp4 = false ;
19915 bool val5 ;
19916 int ecode5 = 0 ;
19917 int val6 ;
19918 int ecode6 = 0 ;
19919 PyObject * obj0 = 0 ;
19920 PyObject * obj1 = 0 ;
19921 PyObject * obj2 = 0 ;
19922 PyObject * obj3 = 0 ;
19923 PyObject * obj4 = 0 ;
19924 PyObject * obj5 = 0 ;
19925 char * kwnames[] = {
19926 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
19927 };
19928
19929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19931 if (!SWIG_IsOK(res1)) {
19932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19933 }
19934 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19935 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19936 if (!SWIG_IsOK(ecode2)) {
19937 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "2"" of type '" "size_t""'");
19938 }
19939 arg2 = static_cast< size_t >(val2);
19940 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
19941 if (!SWIG_IsOK(res3)) {
19942 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "3"" of type '" "wxWindow *""'");
19943 }
19944 arg3 = reinterpret_cast< wxWindow * >(argp3);
19945 {
19946 arg4 = wxString_in_helper(obj3);
19947 if (arg4 == NULL) SWIG_fail;
19948 temp4 = true;
19949 }
19950 if (obj4) {
19951 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19952 if (!SWIG_IsOK(ecode5)) {
19953 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "5"" of type '" "bool""'");
19954 }
19955 arg5 = static_cast< bool >(val5);
19956 }
19957 if (obj5) {
19958 ecode6 = SWIG_AsVal_int(obj5, &val6);
19959 if (!SWIG_IsOK(ecode6)) {
19960 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "6"" of type '" "int""'");
19961 }
19962 arg6 = static_cast< int >(val6);
19963 }
19964 {
19965 PyThreadState* __tstate = wxPyBeginAllowThreads();
19966 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
19967 wxPyEndAllowThreads(__tstate);
19968 if (PyErr_Occurred()) SWIG_fail;
19969 }
19970 {
19971 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19972 }
19973 {
19974 if (temp4)
19975 delete arg4;
19976 }
19977 return resultobj;
19978fail:
19979 {
19980 if (temp4)
19981 delete arg4;
19982 }
19983 return NULL;
19984}
19985
19986
19987SWIGINTERN PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19988 PyObject *resultobj = 0;
19989 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19990 size_t arg2 ;
19991 int result;
19992 void *argp1 = 0 ;
19993 int res1 = 0 ;
19994 size_t val2 ;
19995 int ecode2 = 0 ;
19996 PyObject * obj0 = 0 ;
19997 PyObject * obj1 = 0 ;
19998 char * kwnames[] = {
19999 (char *) "self",(char *) "n", NULL
20000 };
20001
20002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20003 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20004 if (!SWIG_IsOK(res1)) {
20005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20006 }
20007 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20008 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20009 if (!SWIG_IsOK(ecode2)) {
20010 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "2"" of type '" "size_t""'");
20011 }
20012 arg2 = static_cast< size_t >(val2);
20013 {
20014 PyThreadState* __tstate = wxPyBeginAllowThreads();
20015 result = (int)(arg1)->SetSelection(arg2);
20016 wxPyEndAllowThreads(__tstate);
20017 if (PyErr_Occurred()) SWIG_fail;
20018 }
20019 resultobj = SWIG_From_int(static_cast< int >(result));
20020 return resultobj;
20021fail:
20022 return NULL;
20023}
20024
20025
20026SWIGINTERN PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20027 PyObject *resultobj = 0;
20028 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20029 bool arg2 = (bool) true ;
20030 void *argp1 = 0 ;
20031 int res1 = 0 ;
20032 bool val2 ;
20033 int ecode2 = 0 ;
20034 PyObject * obj0 = 0 ;
20035 PyObject * obj1 = 0 ;
20036 char * kwnames[] = {
20037 (char *) "self",(char *) "forward", NULL
20038 };
20039
20040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20042 if (!SWIG_IsOK(res1)) {
20043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20044 }
20045 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20046 if (obj1) {
20047 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20048 if (!SWIG_IsOK(ecode2)) {
20049 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "2"" of type '" "bool""'");
20050 }
20051 arg2 = static_cast< bool >(val2);
20052 }
20053 {
20054 PyThreadState* __tstate = wxPyBeginAllowThreads();
20055 (arg1)->AdvanceSelection(arg2);
20056 wxPyEndAllowThreads(__tstate);
20057 if (PyErr_Occurred()) SWIG_fail;
20058 }
20059 resultobj = SWIG_Py_Void();
20060 return resultobj;
20061fail:
20062 return NULL;
20063}
20064
20065
704eda0c
RD
20066SWIGINTERN PyObject *_wrap_BookCtrlBase_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20067 PyObject *resultobj = 0;
20068 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20069 wxPoint *arg2 = 0 ;
20070 long *arg3 = (long *) 0 ;
20071 int result;
20072 void *argp1 = 0 ;
20073 int res1 = 0 ;
20074 wxPoint temp2 ;
20075 long temp3 ;
20076 int res3 = SWIG_TMPOBJ ;
20077 PyObject * obj0 = 0 ;
20078 PyObject * obj1 = 0 ;
20079 char * kwnames[] = {
20080 (char *) "self",(char *) "pt", NULL
20081 };
20082
20083 arg3 = &temp3;
20084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
20085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20086 if (!SWIG_IsOK(res1)) {
20087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_HitTest" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
20088 }
20089 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20090 {
20091 arg2 = &temp2;
20092 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20093 }
20094 {
20095 PyThreadState* __tstate = wxPyBeginAllowThreads();
20096 result = (int)((wxBookCtrlBase const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
20097 wxPyEndAllowThreads(__tstate);
20098 if (PyErr_Occurred()) SWIG_fail;
20099 }
20100 resultobj = SWIG_From_int(static_cast< int >(result));
20101 if (SWIG_IsTmpObj(res3)) {
20102 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
20103 } else {
20104 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20105 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
20106 }
20107 return resultobj;
20108fail:
20109 return NULL;
20110}
20111
20112
1bd55598
RD
20113SWIGINTERN PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20114 PyObject *resultobj = 0;
20115 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20116 SwigValueWrapper<wxVisualAttributes > result;
20117 int val1 ;
20118 int ecode1 = 0 ;
20119 PyObject * obj0 = 0 ;
20120 char * kwnames[] = {
20121 (char *) "variant", NULL
20122 };
20123
20124 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20125 if (obj0) {
20126 ecode1 = SWIG_AsVal_int(obj0, &val1);
20127 if (!SWIG_IsOK(ecode1)) {
20128 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BookCtrlBase_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20129 }
20130 arg1 = static_cast< wxWindowVariant >(val1);
20131 }
20132 {
20133 if (!wxPyCheckForApp()) SWIG_fail;
20134 PyThreadState* __tstate = wxPyBeginAllowThreads();
20135 result = wxBookCtrlBase::GetClassDefaultAttributes(arg1);
20136 wxPyEndAllowThreads(__tstate);
20137 if (PyErr_Occurred()) SWIG_fail;
20138 }
20139 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20140 return resultobj;
20141fail:
20142 return NULL;
20143}
20144
20145
20146SWIGINTERN PyObject *BookCtrlBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20147 PyObject *obj;
20148 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20149 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBase, SWIG_NewClientData(obj));
20150 return SWIG_Py_Void();
20151}
20152
20153SWIGINTERN PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20154 PyObject *resultobj = 0;
20155 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20156 int arg2 = (int) 0 ;
20157 int arg3 = (int) -1 ;
20158 int arg4 = (int) -1 ;
20159 wxBookCtrlBaseEvent *result = 0 ;
20160 int val1 ;
20161 int ecode1 = 0 ;
20162 int val2 ;
20163 int ecode2 = 0 ;
20164 int val3 ;
20165 int ecode3 = 0 ;
20166 int val4 ;
20167 int ecode4 = 0 ;
20168 PyObject * obj0 = 0 ;
20169 PyObject * obj1 = 0 ;
20170 PyObject * obj2 = 0 ;
20171 PyObject * obj3 = 0 ;
20172 char * kwnames[] = {
20173 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20174 };
20175
20176 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20177 if (obj0) {
20178 ecode1 = SWIG_AsVal_int(obj0, &val1);
20179 if (!SWIG_IsOK(ecode1)) {
20180 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20181 }
20182 arg1 = static_cast< wxEventType >(val1);
20183 }
20184 if (obj1) {
20185 ecode2 = SWIG_AsVal_int(obj1, &val2);
20186 if (!SWIG_IsOK(ecode2)) {
20187 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "2"" of type '" "int""'");
20188 }
20189 arg2 = static_cast< int >(val2);
20190 }
20191 if (obj2) {
20192 ecode3 = SWIG_AsVal_int(obj2, &val3);
20193 if (!SWIG_IsOK(ecode3)) {
20194 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "3"" of type '" "int""'");
20195 }
20196 arg3 = static_cast< int >(val3);
20197 }
20198 if (obj3) {
20199 ecode4 = SWIG_AsVal_int(obj3, &val4);
20200 if (!SWIG_IsOK(ecode4)) {
20201 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "4"" of type '" "int""'");
20202 }
20203 arg4 = static_cast< int >(val4);
20204 }
20205 {
20206 PyThreadState* __tstate = wxPyBeginAllowThreads();
20207 result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4);
20208 wxPyEndAllowThreads(__tstate);
20209 if (PyErr_Occurred()) SWIG_fail;
20210 }
20211 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_NEW | 0 );
20212 return resultobj;
20213fail:
20214 return NULL;
d55e5bfc
RD
20215}
20216
20217
1bd55598
RD
20218SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20219 PyObject *resultobj = 0;
20220 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20221 int result;
20222 void *argp1 = 0 ;
20223 int res1 = 0 ;
20224 PyObject *swig_obj[1] ;
20225
20226 if (!args) SWIG_fail;
20227 swig_obj[0] = args;
20228 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20229 if (!SWIG_IsOK(res1)) {
20230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20231 }
20232 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20233 {
20234 PyThreadState* __tstate = wxPyBeginAllowThreads();
20235 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection();
20236 wxPyEndAllowThreads(__tstate);
20237 if (PyErr_Occurred()) SWIG_fail;
20238 }
20239 resultobj = SWIG_From_int(static_cast< int >(result));
20240 return resultobj;
20241fail:
20242 return NULL;
20243}
20244
20245
20246SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20247 PyObject *resultobj = 0;
20248 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20249 int arg2 ;
20250 void *argp1 = 0 ;
20251 int res1 = 0 ;
20252 int val2 ;
20253 int ecode2 = 0 ;
20254 PyObject * obj0 = 0 ;
20255 PyObject * obj1 = 0 ;
20256 char * kwnames[] = {
20257 (char *) "self",(char *) "nSel", NULL
20258 };
20259
20260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20262 if (!SWIG_IsOK(res1)) {
20263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20264 }
20265 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20266 ecode2 = SWIG_AsVal_int(obj1, &val2);
20267 if (!SWIG_IsOK(ecode2)) {
20268 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "2"" of type '" "int""'");
20269 }
20270 arg2 = static_cast< int >(val2);
20271 {
20272 PyThreadState* __tstate = wxPyBeginAllowThreads();
20273 (arg1)->SetSelection(arg2);
20274 wxPyEndAllowThreads(__tstate);
20275 if (PyErr_Occurred()) SWIG_fail;
20276 }
20277 resultobj = SWIG_Py_Void();
20278 return resultobj;
20279fail:
20280 return NULL;
d55e5bfc
RD
20281}
20282
20283
1bd55598
RD
20284SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20285 PyObject *resultobj = 0;
20286 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20287 int result;
20288 void *argp1 = 0 ;
20289 int res1 = 0 ;
20290 PyObject *swig_obj[1] ;
20291
20292 if (!args) SWIG_fail;
20293 swig_obj[0] = args;
20294 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20295 if (!SWIG_IsOK(res1)) {
20296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20297 }
20298 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20299 {
20300 PyThreadState* __tstate = wxPyBeginAllowThreads();
20301 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection();
20302 wxPyEndAllowThreads(__tstate);
20303 if (PyErr_Occurred()) SWIG_fail;
20304 }
20305 resultobj = SWIG_From_int(static_cast< int >(result));
20306 return resultobj;
20307fail:
20308 return NULL;
20309}
20310
20311
20312SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20313 PyObject *resultobj = 0;
20314 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20315 int arg2 ;
20316 void *argp1 = 0 ;
20317 int res1 = 0 ;
20318 int val2 ;
20319 int ecode2 = 0 ;
20320 PyObject * obj0 = 0 ;
20321 PyObject * obj1 = 0 ;
20322 char * kwnames[] = {
20323 (char *) "self",(char *) "nOldSel", NULL
20324 };
20325
20326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20328 if (!SWIG_IsOK(res1)) {
20329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20330 }
20331 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20332 ecode2 = SWIG_AsVal_int(obj1, &val2);
20333 if (!SWIG_IsOK(ecode2)) {
20334 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "2"" of type '" "int""'");
20335 }
20336 arg2 = static_cast< int >(val2);
20337 {
20338 PyThreadState* __tstate = wxPyBeginAllowThreads();
20339 (arg1)->SetOldSelection(arg2);
20340 wxPyEndAllowThreads(__tstate);
20341 if (PyErr_Occurred()) SWIG_fail;
20342 }
20343 resultobj = SWIG_Py_Void();
20344 return resultobj;
20345fail:
20346 return NULL;
20347}
20348
20349
20350SWIGINTERN PyObject *BookCtrlBaseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20351 PyObject *obj;
20352 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20353 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_NewClientData(obj));
20354 return SWIG_Py_Void();
20355}
20356
20357SWIGINTERN PyObject *BookCtrlBaseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20358 return SWIG_Python_InitShadowInstance(args);
20359}
20360
20361SWIGINTERN PyObject *_wrap_new_Notebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20362 PyObject *resultobj = 0;
20363 wxWindow *arg1 = (wxWindow *) 0 ;
20364 int arg2 = (int) -1 ;
20365 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20366 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20367 wxSize const &arg4_defvalue = wxDefaultSize ;
20368 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20369 long arg5 = (long) 0 ;
20370 wxString const &arg6_defvalue = wxPyNotebookNameStr ;
20371 wxString *arg6 = (wxString *) &arg6_defvalue ;
20372 wxNotebook *result = 0 ;
20373 void *argp1 = 0 ;
20374 int res1 = 0 ;
20375 int val2 ;
20376 int ecode2 = 0 ;
20377 wxPoint temp3 ;
20378 wxSize temp4 ;
20379 long val5 ;
20380 int ecode5 = 0 ;
20381 bool temp6 = false ;
20382 PyObject * obj0 = 0 ;
20383 PyObject * obj1 = 0 ;
20384 PyObject * obj2 = 0 ;
20385 PyObject * obj3 = 0 ;
20386 PyObject * obj4 = 0 ;
20387 PyObject * obj5 = 0 ;
20388 char * kwnames[] = {
20389 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20390 };
20391
20392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20394 if (!SWIG_IsOK(res1)) {
20395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Notebook" "', expected argument " "1"" of type '" "wxWindow *""'");
20396 }
20397 arg1 = reinterpret_cast< wxWindow * >(argp1);
20398 if (obj1) {
20399 ecode2 = SWIG_AsVal_int(obj1, &val2);
20400 if (!SWIG_IsOK(ecode2)) {
20401 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Notebook" "', expected argument " "2"" of type '" "int""'");
20402 }
20403 arg2 = static_cast< int >(val2);
20404 }
20405 if (obj2) {
20406 {
20407 arg3 = &temp3;
20408 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 20409 }
1bd55598
RD
20410 }
20411 if (obj3) {
d55e5bfc 20412 {
1bd55598
RD
20413 arg4 = &temp4;
20414 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 20415 }
1bd55598
RD
20416 }
20417 if (obj4) {
20418 ecode5 = SWIG_AsVal_long(obj4, &val5);
20419 if (!SWIG_IsOK(ecode5)) {
20420 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Notebook" "', expected argument " "5"" of type '" "long""'");
20421 }
20422 arg5 = static_cast< long >(val5);
20423 }
20424 if (obj5) {
d55e5bfc 20425 {
1bd55598
RD
20426 arg6 = wxString_in_helper(obj5);
20427 if (arg6 == NULL) SWIG_fail;
20428 temp6 = true;
d55e5bfc 20429 }
1bd55598
RD
20430 }
20431 {
20432 if (!wxPyCheckForApp()) SWIG_fail;
20433 PyThreadState* __tstate = wxPyBeginAllowThreads();
20434 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20435 wxPyEndAllowThreads(__tstate);
20436 if (PyErr_Occurred()) SWIG_fail;
20437 }
20438 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_NEW | 0 );
20439 {
20440 if (temp6)
20441 delete arg6;
20442 }
20443 return resultobj;
20444fail:
20445 {
20446 if (temp6)
20447 delete arg6;
20448 }
20449 return NULL;
20450}
20451
20452
20453SWIGINTERN PyObject *_wrap_new_PreNotebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20454 PyObject *resultobj = 0;
20455 wxNotebook *result = 0 ;
20456
20457 if (!SWIG_Python_UnpackTuple(args,"new_PreNotebook",0,0,0)) SWIG_fail;
20458 {
20459 if (!wxPyCheckForApp()) SWIG_fail;
20460 PyThreadState* __tstate = wxPyBeginAllowThreads();
20461 result = (wxNotebook *)new wxNotebook();
20462 wxPyEndAllowThreads(__tstate);
20463 if (PyErr_Occurred()) SWIG_fail;
20464 }
20465 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_OWN | 0 );
20466 return resultobj;
20467fail:
20468 return NULL;
20469}
20470
20471
20472SWIGINTERN PyObject *_wrap_Notebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20473 PyObject *resultobj = 0;
20474 wxNotebook *arg1 = (wxNotebook *) 0 ;
20475 wxWindow *arg2 = (wxWindow *) 0 ;
20476 int arg3 = (int) -1 ;
20477 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20478 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20479 wxSize const &arg5_defvalue = wxDefaultSize ;
20480 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20481 long arg6 = (long) 0 ;
20482 wxString const &arg7_defvalue = wxPyNotebookNameStr ;
20483 wxString *arg7 = (wxString *) &arg7_defvalue ;
20484 bool result;
20485 void *argp1 = 0 ;
20486 int res1 = 0 ;
20487 void *argp2 = 0 ;
20488 int res2 = 0 ;
20489 int val3 ;
20490 int ecode3 = 0 ;
20491 wxPoint temp4 ;
20492 wxSize temp5 ;
20493 long val6 ;
20494 int ecode6 = 0 ;
20495 bool temp7 = false ;
20496 PyObject * obj0 = 0 ;
20497 PyObject * obj1 = 0 ;
20498 PyObject * obj2 = 0 ;
20499 PyObject * obj3 = 0 ;
20500 PyObject * obj4 = 0 ;
20501 PyObject * obj5 = 0 ;
20502 PyObject * obj6 = 0 ;
20503 char * kwnames[] = {
20504 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20505 };
20506
20507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20509 if (!SWIG_IsOK(res1)) {
20510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_Create" "', expected argument " "1"" of type '" "wxNotebook *""'");
20511 }
20512 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20513 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20514 if (!SWIG_IsOK(res2)) {
20515 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Notebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20516 }
20517 arg2 = reinterpret_cast< wxWindow * >(argp2);
20518 if (obj2) {
20519 ecode3 = SWIG_AsVal_int(obj2, &val3);
20520 if (!SWIG_IsOK(ecode3)) {
20521 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_Create" "', expected argument " "3"" of type '" "int""'");
20522 }
20523 arg3 = static_cast< int >(val3);
20524 }
20525 if (obj3) {
d55e5bfc 20526 {
1bd55598
RD
20527 arg4 = &temp4;
20528 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 20529 }
1bd55598
RD
20530 }
20531 if (obj4) {
d55e5bfc 20532 {
1bd55598
RD
20533 arg5 = &temp5;
20534 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 20535 }
1bd55598
RD
20536 }
20537 if (obj5) {
20538 ecode6 = SWIG_AsVal_long(obj5, &val6);
20539 if (!SWIG_IsOK(ecode6)) {
20540 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Notebook_Create" "', expected argument " "6"" of type '" "long""'");
20541 }
20542 arg6 = static_cast< long >(val6);
20543 }
20544 if (obj6) {
d55e5bfc 20545 {
1bd55598
RD
20546 arg7 = wxString_in_helper(obj6);
20547 if (arg7 == NULL) SWIG_fail;
20548 temp7 = true;
d55e5bfc 20549 }
1bd55598
RD
20550 }
20551 {
20552 PyThreadState* __tstate = wxPyBeginAllowThreads();
20553 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20554 wxPyEndAllowThreads(__tstate);
20555 if (PyErr_Occurred()) SWIG_fail;
20556 }
20557 {
20558 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20559 }
20560 {
20561 if (temp7)
20562 delete arg7;
20563 }
20564 return resultobj;
20565fail:
20566 {
20567 if (temp7)
20568 delete arg7;
20569 }
20570 return NULL;
d55e5bfc
RD
20571}
20572
20573
1bd55598
RD
20574SWIGINTERN PyObject *_wrap_Notebook_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20575 PyObject *resultobj = 0;
20576 wxNotebook *arg1 = (wxNotebook *) 0 ;
20577 int result;
20578 void *argp1 = 0 ;
20579 int res1 = 0 ;
20580 PyObject *swig_obj[1] ;
20581
20582 if (!args) SWIG_fail;
20583 swig_obj[0] = args;
20584 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20585 if (!SWIG_IsOK(res1)) {
20586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetRowCount" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20587 }
20588 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20589 {
20590 PyThreadState* __tstate = wxPyBeginAllowThreads();
20591 result = (int)((wxNotebook const *)arg1)->GetRowCount();
20592 wxPyEndAllowThreads(__tstate);
20593 if (PyErr_Occurred()) SWIG_fail;
20594 }
20595 resultobj = SWIG_From_int(static_cast< int >(result));
20596 return resultobj;
20597fail:
20598 return NULL;
20599}
20600
20601
20602SWIGINTERN PyObject *_wrap_Notebook_SetPadding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20603 PyObject *resultobj = 0;
20604 wxNotebook *arg1 = (wxNotebook *) 0 ;
20605 wxSize *arg2 = 0 ;
20606 void *argp1 = 0 ;
20607 int res1 = 0 ;
20608 wxSize temp2 ;
20609 PyObject * obj0 = 0 ;
20610 PyObject * obj1 = 0 ;
20611 char * kwnames[] = {
20612 (char *) "self",(char *) "padding", NULL
20613 };
20614
20615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) SWIG_fail;
20616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20617 if (!SWIG_IsOK(res1)) {
20618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetPadding" "', expected argument " "1"" of type '" "wxNotebook *""'");
20619 }
20620 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20621 {
20622 arg2 = &temp2;
20623 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20624 }
20625 {
20626 PyThreadState* __tstate = wxPyBeginAllowThreads();
20627 (arg1)->SetPadding((wxSize const &)*arg2);
20628 wxPyEndAllowThreads(__tstate);
20629 if (PyErr_Occurred()) SWIG_fail;
20630 }
20631 resultobj = SWIG_Py_Void();
20632 return resultobj;
20633fail:
20634 return NULL;
20635}
20636
20637
20638SWIGINTERN PyObject *_wrap_Notebook_SetTabSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20639 PyObject *resultobj = 0;
20640 wxNotebook *arg1 = (wxNotebook *) 0 ;
20641 wxSize *arg2 = 0 ;
20642 void *argp1 = 0 ;
20643 int res1 = 0 ;
20644 wxSize temp2 ;
20645 PyObject * obj0 = 0 ;
20646 PyObject * obj1 = 0 ;
20647 char * kwnames[] = {
20648 (char *) "self",(char *) "sz", NULL
20649 };
20650
20651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) SWIG_fail;
20652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20653 if (!SWIG_IsOK(res1)) {
20654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetTabSize" "', expected argument " "1"" of type '" "wxNotebook *""'");
20655 }
20656 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20657 {
20658 arg2 = &temp2;
20659 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20660 }
20661 {
20662 PyThreadState* __tstate = wxPyBeginAllowThreads();
20663 (arg1)->SetTabSize((wxSize const &)*arg2);
20664 wxPyEndAllowThreads(__tstate);
20665 if (PyErr_Occurred()) SWIG_fail;
20666 }
20667 resultobj = SWIG_Py_Void();
20668 return resultobj;
20669fail:
20670 return NULL;
20671}
20672
20673
1bd55598
RD
20674SWIGINTERN PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20675 PyObject *resultobj = 0;
20676 wxNotebook *arg1 = (wxNotebook *) 0 ;
20677 wxColour result;
20678 void *argp1 = 0 ;
20679 int res1 = 0 ;
20680 PyObject *swig_obj[1] ;
20681
20682 if (!args) SWIG_fail;
20683 swig_obj[0] = args;
20684 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20685 if (!SWIG_IsOK(res1)) {
20686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetThemeBackgroundColour" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20687 }
20688 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20689 {
20690 PyThreadState* __tstate = wxPyBeginAllowThreads();
20691 result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour();
20692 wxPyEndAllowThreads(__tstate);
20693 if (PyErr_Occurred()) SWIG_fail;
20694 }
20695 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
20696 return resultobj;
20697fail:
20698 return NULL;
20699}
20700
20701
20702SWIGINTERN PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20703 PyObject *resultobj = 0;
20704 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20705 SwigValueWrapper<wxVisualAttributes > result;
20706 int val1 ;
20707 int ecode1 = 0 ;
20708 PyObject * obj0 = 0 ;
20709 char * kwnames[] = {
20710 (char *) "variant", NULL
20711 };
20712
20713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20714 if (obj0) {
20715 ecode1 = SWIG_AsVal_int(obj0, &val1);
20716 if (!SWIG_IsOK(ecode1)) {
20717 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Notebook_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20718 }
20719 arg1 = static_cast< wxWindowVariant >(val1);
20720 }
20721 {
20722 if (!wxPyCheckForApp()) SWIG_fail;
20723 PyThreadState* __tstate = wxPyBeginAllowThreads();
20724 result = wxNotebook::GetClassDefaultAttributes(arg1);
20725 wxPyEndAllowThreads(__tstate);
20726 if (PyErr_Occurred()) SWIG_fail;
20727 }
20728 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20729 return resultobj;
20730fail:
20731 return NULL;
20732}
20733
20734
20735SWIGINTERN PyObject *Notebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20736 PyObject *obj;
20737 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20738 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebook, SWIG_NewClientData(obj));
20739 return SWIG_Py_Void();
20740}
20741
20742SWIGINTERN PyObject *Notebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20743 return SWIG_Python_InitShadowInstance(args);
20744}
20745
20746SWIGINTERN PyObject *_wrap_new_NotebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20747 PyObject *resultobj = 0;
20748 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20749 int arg2 = (int) 0 ;
20750 int arg3 = (int) -1 ;
20751 int arg4 = (int) -1 ;
20752 wxNotebookEvent *result = 0 ;
20753 int val1 ;
20754 int ecode1 = 0 ;
20755 int val2 ;
20756 int ecode2 = 0 ;
20757 int val3 ;
20758 int ecode3 = 0 ;
20759 int val4 ;
20760 int ecode4 = 0 ;
20761 PyObject * obj0 = 0 ;
20762 PyObject * obj1 = 0 ;
20763 PyObject * obj2 = 0 ;
20764 PyObject * obj3 = 0 ;
20765 char * kwnames[] = {
20766 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20767 };
20768
20769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20770 if (obj0) {
20771 ecode1 = SWIG_AsVal_int(obj0, &val1);
20772 if (!SWIG_IsOK(ecode1)) {
20773 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NotebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20774 }
20775 arg1 = static_cast< wxEventType >(val1);
20776 }
20777 if (obj1) {
20778 ecode2 = SWIG_AsVal_int(obj1, &val2);
20779 if (!SWIG_IsOK(ecode2)) {
20780 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NotebookEvent" "', expected argument " "2"" of type '" "int""'");
20781 }
20782 arg2 = static_cast< int >(val2);
20783 }
20784 if (obj2) {
20785 ecode3 = SWIG_AsVal_int(obj2, &val3);
20786 if (!SWIG_IsOK(ecode3)) {
20787 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NotebookEvent" "', expected argument " "3"" of type '" "int""'");
20788 }
20789 arg3 = static_cast< int >(val3);
20790 }
20791 if (obj3) {
20792 ecode4 = SWIG_AsVal_int(obj3, &val4);
20793 if (!SWIG_IsOK(ecode4)) {
20794 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NotebookEvent" "', expected argument " "4"" of type '" "int""'");
20795 }
20796 arg4 = static_cast< int >(val4);
20797 }
20798 {
20799 PyThreadState* __tstate = wxPyBeginAllowThreads();
20800 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
20801 wxPyEndAllowThreads(__tstate);
20802 if (PyErr_Occurred()) SWIG_fail;
20803 }
20804 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebookEvent, SWIG_POINTER_NEW | 0 );
20805 return resultobj;
20806fail:
20807 return NULL;
20808}
20809
20810
20811SWIGINTERN PyObject *NotebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20812 PyObject *obj;
20813 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20814 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebookEvent, SWIG_NewClientData(obj));
20815 return SWIG_Py_Void();
20816}
20817
20818SWIGINTERN PyObject *NotebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20819 return SWIG_Python_InitShadowInstance(args);
20820}
20821
20822SWIGINTERN PyObject *_wrap_new_Listbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20823 PyObject *resultobj = 0;
20824 wxWindow *arg1 = (wxWindow *) 0 ;
20825 int arg2 = (int) -1 ;
20826 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20827 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20828 wxSize const &arg4_defvalue = wxDefaultSize ;
20829 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20830 long arg5 = (long) 0 ;
20831 wxString const &arg6_defvalue = wxPyEmptyString ;
20832 wxString *arg6 = (wxString *) &arg6_defvalue ;
20833 wxListbook *result = 0 ;
20834 void *argp1 = 0 ;
20835 int res1 = 0 ;
20836 int val2 ;
20837 int ecode2 = 0 ;
20838 wxPoint temp3 ;
20839 wxSize temp4 ;
20840 long val5 ;
20841 int ecode5 = 0 ;
20842 bool temp6 = false ;
20843 PyObject * obj0 = 0 ;
20844 PyObject * obj1 = 0 ;
20845 PyObject * obj2 = 0 ;
20846 PyObject * obj3 = 0 ;
20847 PyObject * obj4 = 0 ;
20848 PyObject * obj5 = 0 ;
20849 char * kwnames[] = {
20850 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20851 };
20852
20853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20854 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20855 if (!SWIG_IsOK(res1)) {
20856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Listbook" "', expected argument " "1"" of type '" "wxWindow *""'");
20857 }
20858 arg1 = reinterpret_cast< wxWindow * >(argp1);
20859 if (obj1) {
20860 ecode2 = SWIG_AsVal_int(obj1, &val2);
20861 if (!SWIG_IsOK(ecode2)) {
20862 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Listbook" "', expected argument " "2"" of type '" "int""'");
20863 }
20864 arg2 = static_cast< int >(val2);
20865 }
20866 if (obj2) {
d55e5bfc 20867 {
1bd55598
RD
20868 arg3 = &temp3;
20869 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 20870 }
1bd55598
RD
20871 }
20872 if (obj3) {
d55e5bfc 20873 {
1bd55598
RD
20874 arg4 = &temp4;
20875 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 20876 }
1bd55598
RD
20877 }
20878 if (obj4) {
20879 ecode5 = SWIG_AsVal_long(obj4, &val5);
20880 if (!SWIG_IsOK(ecode5)) {
20881 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Listbook" "', expected argument " "5"" of type '" "long""'");
20882 }
20883 arg5 = static_cast< long >(val5);
20884 }
20885 if (obj5) {
d55e5bfc 20886 {
1bd55598
RD
20887 arg6 = wxString_in_helper(obj5);
20888 if (arg6 == NULL) SWIG_fail;
20889 temp6 = true;
d55e5bfc 20890 }
1bd55598
RD
20891 }
20892 {
20893 if (!wxPyCheckForApp()) SWIG_fail;
20894 PyThreadState* __tstate = wxPyBeginAllowThreads();
20895 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20896 wxPyEndAllowThreads(__tstate);
20897 if (PyErr_Occurred()) SWIG_fail;
20898 }
20899 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_NEW | 0 );
20900 {
20901 if (temp6)
20902 delete arg6;
20903 }
20904 return resultobj;
20905fail:
20906 {
20907 if (temp6)
20908 delete arg6;
20909 }
20910 return NULL;
20911}
20912
20913
20914SWIGINTERN PyObject *_wrap_new_PreListbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20915 PyObject *resultobj = 0;
20916 wxListbook *result = 0 ;
20917
20918 if (!SWIG_Python_UnpackTuple(args,"new_PreListbook",0,0,0)) SWIG_fail;
20919 {
20920 if (!wxPyCheckForApp()) SWIG_fail;
20921 PyThreadState* __tstate = wxPyBeginAllowThreads();
20922 result = (wxListbook *)new wxListbook();
20923 wxPyEndAllowThreads(__tstate);
20924 if (PyErr_Occurred()) SWIG_fail;
20925 }
20926 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_OWN | 0 );
20927 return resultobj;
20928fail:
20929 return NULL;
20930}
20931
20932
20933SWIGINTERN PyObject *_wrap_Listbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20934 PyObject *resultobj = 0;
20935 wxListbook *arg1 = (wxListbook *) 0 ;
20936 wxWindow *arg2 = (wxWindow *) 0 ;
20937 int arg3 = (int) -1 ;
20938 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20939 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20940 wxSize const &arg5_defvalue = wxDefaultSize ;
20941 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20942 long arg6 = (long) 0 ;
20943 wxString const &arg7_defvalue = wxPyEmptyString ;
20944 wxString *arg7 = (wxString *) &arg7_defvalue ;
20945 bool result;
20946 void *argp1 = 0 ;
20947 int res1 = 0 ;
20948 void *argp2 = 0 ;
20949 int res2 = 0 ;
20950 int val3 ;
20951 int ecode3 = 0 ;
20952 wxPoint temp4 ;
20953 wxSize temp5 ;
20954 long val6 ;
20955 int ecode6 = 0 ;
20956 bool temp7 = false ;
20957 PyObject * obj0 = 0 ;
20958 PyObject * obj1 = 0 ;
20959 PyObject * obj2 = 0 ;
20960 PyObject * obj3 = 0 ;
20961 PyObject * obj4 = 0 ;
20962 PyObject * obj5 = 0 ;
20963 PyObject * obj6 = 0 ;
20964 char * kwnames[] = {
20965 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20966 };
20967
20968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
20970 if (!SWIG_IsOK(res1)) {
20971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_Create" "', expected argument " "1"" of type '" "wxListbook *""'");
20972 }
20973 arg1 = reinterpret_cast< wxListbook * >(argp1);
20974 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20975 if (!SWIG_IsOK(res2)) {
20976 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Listbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20977 }
20978 arg2 = reinterpret_cast< wxWindow * >(argp2);
20979 if (obj2) {
20980 ecode3 = SWIG_AsVal_int(obj2, &val3);
20981 if (!SWIG_IsOK(ecode3)) {
20982 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Listbook_Create" "', expected argument " "3"" of type '" "int""'");
20983 }
20984 arg3 = static_cast< int >(val3);
20985 }
20986 if (obj3) {
d55e5bfc 20987 {
1bd55598
RD
20988 arg4 = &temp4;
20989 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 20990 }
1bd55598
RD
20991 }
20992 if (obj4) {
d55e5bfc 20993 {
1bd55598
RD
20994 arg5 = &temp5;
20995 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 20996 }
1bd55598
RD
20997 }
20998 if (obj5) {
20999 ecode6 = SWIG_AsVal_long(obj5, &val6);
21000 if (!SWIG_IsOK(ecode6)) {
21001 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Listbook_Create" "', expected argument " "6"" of type '" "long""'");
21002 }
21003 arg6 = static_cast< long >(val6);
21004 }
21005 if (obj6) {
d55e5bfc 21006 {
1bd55598
RD
21007 arg7 = wxString_in_helper(obj6);
21008 if (arg7 == NULL) SWIG_fail;
21009 temp7 = true;
d55e5bfc 21010 }
1bd55598
RD
21011 }
21012 {
21013 PyThreadState* __tstate = wxPyBeginAllowThreads();
21014 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21015 wxPyEndAllowThreads(__tstate);
21016 if (PyErr_Occurred()) SWIG_fail;
21017 }
21018 {
21019 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21020 }
21021 {
21022 if (temp7)
21023 delete arg7;
21024 }
21025 return resultobj;
21026fail:
21027 {
21028 if (temp7)
21029 delete arg7;
21030 }
21031 return NULL;
d55e5bfc
RD
21032}
21033
21034
1bd55598
RD
21035SWIGINTERN PyObject *_wrap_Listbook_GetListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21036 PyObject *resultobj = 0;
21037 wxListbook *arg1 = (wxListbook *) 0 ;
21038 wxListView *result = 0 ;
21039 void *argp1 = 0 ;
21040 int res1 = 0 ;
21041 PyObject *swig_obj[1] ;
21042
21043 if (!args) SWIG_fail;
21044 swig_obj[0] = args;
21045 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21046 if (!SWIG_IsOK(res1)) {
21047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_GetListView" "', expected argument " "1"" of type '" "wxListbook *""'");
21048 }
21049 arg1 = reinterpret_cast< wxListbook * >(argp1);
21050 {
21051 PyThreadState* __tstate = wxPyBeginAllowThreads();
21052 result = (wxListView *)(arg1)->GetListView();
21053 wxPyEndAllowThreads(__tstate);
21054 if (PyErr_Occurred()) SWIG_fail;
21055 }
21056 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, 0 | 0 );
21057 return resultobj;
21058fail:
21059 return NULL;
21060}
21061
21062
21063SWIGINTERN PyObject *Listbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21064 PyObject *obj;
21065 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21066 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbook, SWIG_NewClientData(obj));
21067 return SWIG_Py_Void();
21068}
21069
21070SWIGINTERN PyObject *Listbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21071 return SWIG_Python_InitShadowInstance(args);
21072}
21073
21074SWIGINTERN PyObject *_wrap_new_ListbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21075 PyObject *resultobj = 0;
21076 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21077 int arg2 = (int) 0 ;
21078 int arg3 = (int) -1 ;
21079 int arg4 = (int) -1 ;
21080 wxListbookEvent *result = 0 ;
21081 int val1 ;
21082 int ecode1 = 0 ;
21083 int val2 ;
21084 int ecode2 = 0 ;
21085 int val3 ;
21086 int ecode3 = 0 ;
21087 int val4 ;
21088 int ecode4 = 0 ;
21089 PyObject * obj0 = 0 ;
21090 PyObject * obj1 = 0 ;
21091 PyObject * obj2 = 0 ;
21092 PyObject * obj3 = 0 ;
21093 char * kwnames[] = {
21094 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21095 };
21096
21097 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21098 if (obj0) {
21099 ecode1 = SWIG_AsVal_int(obj0, &val1);
21100 if (!SWIG_IsOK(ecode1)) {
21101 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21102 }
21103 arg1 = static_cast< wxEventType >(val1);
21104 }
21105 if (obj1) {
21106 ecode2 = SWIG_AsVal_int(obj1, &val2);
21107 if (!SWIG_IsOK(ecode2)) {
21108 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListbookEvent" "', expected argument " "2"" of type '" "int""'");
21109 }
21110 arg2 = static_cast< int >(val2);
21111 }
21112 if (obj2) {
21113 ecode3 = SWIG_AsVal_int(obj2, &val3);
21114 if (!SWIG_IsOK(ecode3)) {
21115 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ListbookEvent" "', expected argument " "3"" of type '" "int""'");
21116 }
21117 arg3 = static_cast< int >(val3);
21118 }
21119 if (obj3) {
21120 ecode4 = SWIG_AsVal_int(obj3, &val4);
21121 if (!SWIG_IsOK(ecode4)) {
21122 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ListbookEvent" "', expected argument " "4"" of type '" "int""'");
21123 }
21124 arg4 = static_cast< int >(val4);
21125 }
21126 {
21127 PyThreadState* __tstate = wxPyBeginAllowThreads();
21128 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
21129 wxPyEndAllowThreads(__tstate);
21130 if (PyErr_Occurred()) SWIG_fail;
21131 }
21132 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbookEvent, SWIG_POINTER_NEW | 0 );
21133 return resultobj;
21134fail:
21135 return NULL;
21136}
21137
21138
21139SWIGINTERN PyObject *ListbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21140 PyObject *obj;
21141 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21142 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbookEvent, SWIG_NewClientData(obj));
21143 return SWIG_Py_Void();
21144}
21145
21146SWIGINTERN PyObject *ListbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21147 return SWIG_Python_InitShadowInstance(args);
21148}
21149
21150SWIGINTERN PyObject *_wrap_new_Choicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21151 PyObject *resultobj = 0;
21152 wxWindow *arg1 = (wxWindow *) 0 ;
21153 int arg2 ;
21154 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21155 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21156 wxSize const &arg4_defvalue = wxDefaultSize ;
21157 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21158 long arg5 = (long) 0 ;
21159 wxString const &arg6_defvalue = wxPyEmptyString ;
21160 wxString *arg6 = (wxString *) &arg6_defvalue ;
21161 wxChoicebook *result = 0 ;
21162 void *argp1 = 0 ;
21163 int res1 = 0 ;
21164 int val2 ;
21165 int ecode2 = 0 ;
21166 wxPoint temp3 ;
21167 wxSize temp4 ;
21168 long val5 ;
21169 int ecode5 = 0 ;
21170 bool temp6 = false ;
21171 PyObject * obj0 = 0 ;
21172 PyObject * obj1 = 0 ;
21173 PyObject * obj2 = 0 ;
21174 PyObject * obj3 = 0 ;
21175 PyObject * obj4 = 0 ;
21176 PyObject * obj5 = 0 ;
21177 char * kwnames[] = {
21178 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21179 };
21180
21181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21183 if (!SWIG_IsOK(res1)) {
21184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choicebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21185 }
21186 arg1 = reinterpret_cast< wxWindow * >(argp1);
21187 ecode2 = SWIG_AsVal_int(obj1, &val2);
21188 if (!SWIG_IsOK(ecode2)) {
21189 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choicebook" "', expected argument " "2"" of type '" "int""'");
21190 }
21191 arg2 = static_cast< int >(val2);
21192 if (obj2) {
36ed4f51 21193 {
1bd55598
RD
21194 arg3 = &temp3;
21195 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36ed4f51 21196 }
1bd55598
RD
21197 }
21198 if (obj3) {
36ed4f51 21199 {
1bd55598
RD
21200 arg4 = &temp4;
21201 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
36ed4f51 21202 }
1bd55598
RD
21203 }
21204 if (obj4) {
21205 ecode5 = SWIG_AsVal_long(obj4, &val5);
21206 if (!SWIG_IsOK(ecode5)) {
21207 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Choicebook" "', expected argument " "5"" of type '" "long""'");
21208 }
21209 arg5 = static_cast< long >(val5);
21210 }
21211 if (obj5) {
d55e5bfc 21212 {
1bd55598
RD
21213 arg6 = wxString_in_helper(obj5);
21214 if (arg6 == NULL) SWIG_fail;
21215 temp6 = true;
d55e5bfc 21216 }
1bd55598
RD
21217 }
21218 {
21219 if (!wxPyCheckForApp()) SWIG_fail;
21220 PyThreadState* __tstate = wxPyBeginAllowThreads();
21221 result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21222 wxPyEndAllowThreads(__tstate);
21223 if (PyErr_Occurred()) SWIG_fail;
21224 }
21225 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_NEW | 0 );
21226 {
21227 if (temp6)
21228 delete arg6;
21229 }
21230 return resultobj;
21231fail:
21232 {
21233 if (temp6)
21234 delete arg6;
21235 }
21236 return NULL;
d55e5bfc
RD
21237}
21238
21239
1bd55598
RD
21240SWIGINTERN PyObject *_wrap_new_PreChoicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21241 PyObject *resultobj = 0;
21242 wxChoicebook *result = 0 ;
21243
21244 if (!SWIG_Python_UnpackTuple(args,"new_PreChoicebook",0,0,0)) SWIG_fail;
21245 {
21246 if (!wxPyCheckForApp()) SWIG_fail;
21247 PyThreadState* __tstate = wxPyBeginAllowThreads();
21248 result = (wxChoicebook *)new wxChoicebook();
21249 wxPyEndAllowThreads(__tstate);
21250 if (PyErr_Occurred()) SWIG_fail;
21251 }
21252 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_OWN | 0 );
21253 return resultobj;
21254fail:
21255 return NULL;
21256}
21257
21258
21259SWIGINTERN PyObject *_wrap_Choicebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21260 PyObject *resultobj = 0;
21261 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21262 wxWindow *arg2 = (wxWindow *) 0 ;
21263 int arg3 ;
21264 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21265 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21266 wxSize const &arg5_defvalue = wxDefaultSize ;
21267 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21268 long arg6 = (long) 0 ;
21269 wxString const &arg7_defvalue = wxPyEmptyString ;
21270 wxString *arg7 = (wxString *) &arg7_defvalue ;
21271 bool result;
21272 void *argp1 = 0 ;
21273 int res1 = 0 ;
21274 void *argp2 = 0 ;
21275 int res2 = 0 ;
21276 int val3 ;
21277 int ecode3 = 0 ;
21278 wxPoint temp4 ;
21279 wxSize temp5 ;
21280 long val6 ;
21281 int ecode6 = 0 ;
21282 bool temp7 = false ;
21283 PyObject * obj0 = 0 ;
21284 PyObject * obj1 = 0 ;
21285 PyObject * obj2 = 0 ;
21286 PyObject * obj3 = 0 ;
21287 PyObject * obj4 = 0 ;
21288 PyObject * obj5 = 0 ;
21289 PyObject * obj6 = 0 ;
21290 char * kwnames[] = {
21291 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21292 };
21293
21294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21296 if (!SWIG_IsOK(res1)) {
21297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_Create" "', expected argument " "1"" of type '" "wxChoicebook *""'");
21298 }
21299 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21300 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21301 if (!SWIG_IsOK(res2)) {
21302 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choicebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21303 }
21304 arg2 = reinterpret_cast< wxWindow * >(argp2);
21305 ecode3 = SWIG_AsVal_int(obj2, &val3);
21306 if (!SWIG_IsOK(ecode3)) {
21307 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choicebook_Create" "', expected argument " "3"" of type '" "int""'");
21308 }
21309 arg3 = static_cast< int >(val3);
21310 if (obj3) {
d55e5bfc 21311 {
1bd55598
RD
21312 arg4 = &temp4;
21313 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 21314 }
1bd55598
RD
21315 }
21316 if (obj4) {
d55e5bfc 21317 {
1bd55598
RD
21318 arg5 = &temp5;
21319 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 21320 }
1bd55598
RD
21321 }
21322 if (obj5) {
21323 ecode6 = SWIG_AsVal_long(obj5, &val6);
21324 if (!SWIG_IsOK(ecode6)) {
21325 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Choicebook_Create" "', expected argument " "6"" of type '" "long""'");
21326 }
21327 arg6 = static_cast< long >(val6);
21328 }
21329 if (obj6) {
d55e5bfc 21330 {
1bd55598
RD
21331 arg7 = wxString_in_helper(obj6);
21332 if (arg7 == NULL) SWIG_fail;
21333 temp7 = true;
d55e5bfc 21334 }
1bd55598
RD
21335 }
21336 {
21337 PyThreadState* __tstate = wxPyBeginAllowThreads();
21338 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21339 wxPyEndAllowThreads(__tstate);
21340 if (PyErr_Occurred()) SWIG_fail;
21341 }
21342 {
21343 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21344 }
21345 {
21346 if (temp7)
21347 delete arg7;
21348 }
21349 return resultobj;
21350fail:
21351 {
21352 if (temp7)
21353 delete arg7;
21354 }
21355 return NULL;
d55e5bfc
RD
21356}
21357
21358
1bd55598
RD
21359SWIGINTERN PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21360 PyObject *resultobj = 0;
21361 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21362 wxChoice *result = 0 ;
21363 void *argp1 = 0 ;
21364 int res1 = 0 ;
21365 PyObject *swig_obj[1] ;
21366
21367 if (!args) SWIG_fail;
21368 swig_obj[0] = args;
21369 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21370 if (!SWIG_IsOK(res1)) {
21371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_GetChoiceCtrl" "', expected argument " "1"" of type '" "wxChoicebook const *""'");
21372 }
21373 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21374 {
21375 PyThreadState* __tstate = wxPyBeginAllowThreads();
21376 result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl();
21377 wxPyEndAllowThreads(__tstate);
21378 if (PyErr_Occurred()) SWIG_fail;
21379 }
21380 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, 0 | 0 );
21381 return resultobj;
21382fail:
21383 return NULL;
21384}
21385
21386
21387SWIGINTERN PyObject *Choicebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21388 PyObject *obj;
21389 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21390 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebook, SWIG_NewClientData(obj));
21391 return SWIG_Py_Void();
21392}
21393
21394SWIGINTERN PyObject *Choicebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21395 return SWIG_Python_InitShadowInstance(args);
21396}
21397
21398SWIGINTERN PyObject *_wrap_new_ChoicebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21399 PyObject *resultobj = 0;
21400 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21401 int arg2 = (int) 0 ;
21402 int arg3 = (int) -1 ;
21403 int arg4 = (int) -1 ;
21404 wxChoicebookEvent *result = 0 ;
21405 int val1 ;
21406 int ecode1 = 0 ;
21407 int val2 ;
21408 int ecode2 = 0 ;
21409 int val3 ;
21410 int ecode3 = 0 ;
21411 int val4 ;
21412 int ecode4 = 0 ;
21413 PyObject * obj0 = 0 ;
21414 PyObject * obj1 = 0 ;
21415 PyObject * obj2 = 0 ;
21416 PyObject * obj3 = 0 ;
21417 char * kwnames[] = {
21418 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21419 };
21420
21421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21422 if (obj0) {
21423 ecode1 = SWIG_AsVal_int(obj0, &val1);
21424 if (!SWIG_IsOK(ecode1)) {
21425 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ChoicebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21426 }
21427 arg1 = static_cast< wxEventType >(val1);
21428 }
21429 if (obj1) {
21430 ecode2 = SWIG_AsVal_int(obj1, &val2);
21431 if (!SWIG_IsOK(ecode2)) {
21432 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ChoicebookEvent" "', expected argument " "2"" of type '" "int""'");
21433 }
21434 arg2 = static_cast< int >(val2);
21435 }
21436 if (obj2) {
21437 ecode3 = SWIG_AsVal_int(obj2, &val3);
21438 if (!SWIG_IsOK(ecode3)) {
21439 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ChoicebookEvent" "', expected argument " "3"" of type '" "int""'");
21440 }
21441 arg3 = static_cast< int >(val3);
21442 }
21443 if (obj3) {
21444 ecode4 = SWIG_AsVal_int(obj3, &val4);
21445 if (!SWIG_IsOK(ecode4)) {
21446 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ChoicebookEvent" "', expected argument " "4"" of type '" "int""'");
21447 }
21448 arg4 = static_cast< int >(val4);
21449 }
21450 {
21451 PyThreadState* __tstate = wxPyBeginAllowThreads();
21452 result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4);
21453 wxPyEndAllowThreads(__tstate);
21454 if (PyErr_Occurred()) SWIG_fail;
21455 }
21456 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebookEvent, SWIG_POINTER_NEW | 0 );
21457 return resultobj;
21458fail:
21459 return NULL;
21460}
21461
21462
21463SWIGINTERN PyObject *ChoicebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21464 PyObject *obj;
21465 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21466 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebookEvent, SWIG_NewClientData(obj));
21467 return SWIG_Py_Void();
21468}
21469
21470SWIGINTERN PyObject *ChoicebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21471 return SWIG_Python_InitShadowInstance(args);
21472}
21473
21474SWIGINTERN PyObject *_wrap_new_Treebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21475 PyObject *resultobj = 0;
21476 wxWindow *arg1 = (wxWindow *) 0 ;
21477 int arg2 ;
21478 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21479 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21480 wxSize const &arg4_defvalue = wxDefaultSize ;
21481 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21482 long arg5 = (long) wxBK_DEFAULT ;
21483 wxString const &arg6_defvalue = wxPyEmptyString ;
21484 wxString *arg6 = (wxString *) &arg6_defvalue ;
21485 wxTreebook *result = 0 ;
21486 void *argp1 = 0 ;
21487 int res1 = 0 ;
21488 int val2 ;
21489 int ecode2 = 0 ;
21490 wxPoint temp3 ;
21491 wxSize temp4 ;
21492 long val5 ;
21493 int ecode5 = 0 ;
21494 bool temp6 = false ;
21495 PyObject * obj0 = 0 ;
21496 PyObject * obj1 = 0 ;
21497 PyObject * obj2 = 0 ;
21498 PyObject * obj3 = 0 ;
21499 PyObject * obj4 = 0 ;
21500 PyObject * obj5 = 0 ;
21501 char * kwnames[] = {
21502 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21503 };
21504
21505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Treebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21506 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21507 if (!SWIG_IsOK(res1)) {
21508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Treebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21509 }
21510 arg1 = reinterpret_cast< wxWindow * >(argp1);
21511 ecode2 = SWIG_AsVal_int(obj1, &val2);
21512 if (!SWIG_IsOK(ecode2)) {
21513 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Treebook" "', expected argument " "2"" of type '" "int""'");
21514 }
21515 arg2 = static_cast< int >(val2);
21516 if (obj2) {
36ed4f51 21517 {
1bd55598
RD
21518 arg3 = &temp3;
21519 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36ed4f51 21520 }
1bd55598
RD
21521 }
21522 if (obj3) {
36ed4f51 21523 {
1bd55598
RD
21524 arg4 = &temp4;
21525 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
36ed4f51 21526 }
1bd55598
RD
21527 }
21528 if (obj4) {
21529 ecode5 = SWIG_AsVal_long(obj4, &val5);
21530 if (!SWIG_IsOK(ecode5)) {
21531 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Treebook" "', expected argument " "5"" of type '" "long""'");
21532 }
21533 arg5 = static_cast< long >(val5);
21534 }
21535 if (obj5) {
d55e5bfc 21536 {
1bd55598
RD
21537 arg6 = wxString_in_helper(obj5);
21538 if (arg6 == NULL) SWIG_fail;
21539 temp6 = true;
d55e5bfc 21540 }
1bd55598
RD
21541 }
21542 {
21543 if (!wxPyCheckForApp()) SWIG_fail;
21544 PyThreadState* __tstate = wxPyBeginAllowThreads();
21545 result = (wxTreebook *)new wxTreebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21546 wxPyEndAllowThreads(__tstate);
21547 if (PyErr_Occurred()) SWIG_fail;
21548 }
21549 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_NEW | 0 );
21550 {
21551 if (temp6)
21552 delete arg6;
21553 }
21554 return resultobj;
21555fail:
21556 {
21557 if (temp6)
21558 delete arg6;
21559 }
21560 return NULL;
d55e5bfc
RD
21561}
21562
21563
1bd55598
RD
21564SWIGINTERN PyObject *_wrap_new_PreTreebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21565 PyObject *resultobj = 0;
21566 wxTreebook *result = 0 ;
21567
21568 if (!SWIG_Python_UnpackTuple(args,"new_PreTreebook",0,0,0)) SWIG_fail;
21569 {
21570 if (!wxPyCheckForApp()) SWIG_fail;
21571 PyThreadState* __tstate = wxPyBeginAllowThreads();
21572 result = (wxTreebook *)new wxTreebook();
21573 wxPyEndAllowThreads(__tstate);
21574 if (PyErr_Occurred()) SWIG_fail;
21575 }
21576 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_OWN | 0 );
21577 return resultobj;
21578fail:
21579 return NULL;
21580}
21581
21582
21583SWIGINTERN PyObject *_wrap_Treebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21584 PyObject *resultobj = 0;
21585 wxTreebook *arg1 = (wxTreebook *) 0 ;
21586 wxWindow *arg2 = (wxWindow *) 0 ;
21587 int arg3 ;
21588 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21589 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21590 wxSize const &arg5_defvalue = wxDefaultSize ;
21591 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21592 long arg6 = (long) wxBK_DEFAULT ;
21593 wxString const &arg7_defvalue = wxPyEmptyString ;
21594 wxString *arg7 = (wxString *) &arg7_defvalue ;
21595 bool result;
21596 void *argp1 = 0 ;
21597 int res1 = 0 ;
21598 void *argp2 = 0 ;
21599 int res2 = 0 ;
21600 int val3 ;
21601 int ecode3 = 0 ;
21602 wxPoint temp4 ;
21603 wxSize temp5 ;
21604 long val6 ;
21605 int ecode6 = 0 ;
21606 bool temp7 = false ;
21607 PyObject * obj0 = 0 ;
21608 PyObject * obj1 = 0 ;
21609 PyObject * obj2 = 0 ;
21610 PyObject * obj3 = 0 ;
21611 PyObject * obj4 = 0 ;
21612 PyObject * obj5 = 0 ;
21613 PyObject * obj6 = 0 ;
21614 char * kwnames[] = {
21615 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21616 };
21617
21618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Treebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21620 if (!SWIG_IsOK(res1)) {
21621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_Create" "', expected argument " "1"" of type '" "wxTreebook *""'");
21622 }
21623 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21624 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21625 if (!SWIG_IsOK(res2)) {
21626 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21627 }
21628 arg2 = reinterpret_cast< wxWindow * >(argp2);
21629 ecode3 = SWIG_AsVal_int(obj2, &val3);
21630 if (!SWIG_IsOK(ecode3)) {
21631 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_Create" "', expected argument " "3"" of type '" "int""'");
21632 }
21633 arg3 = static_cast< int >(val3);
21634 if (obj3) {
36ed4f51 21635 {
1bd55598
RD
21636 arg4 = &temp4;
21637 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36ed4f51 21638 }
1bd55598
RD
21639 }
21640 if (obj4) {
d55e5bfc 21641 {
1bd55598
RD
21642 arg5 = &temp5;
21643 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 21644 }
1bd55598
RD
21645 }
21646 if (obj5) {
21647 ecode6 = SWIG_AsVal_long(obj5, &val6);
21648 if (!SWIG_IsOK(ecode6)) {
21649 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_Create" "', expected argument " "6"" of type '" "long""'");
21650 }
21651 arg6 = static_cast< long >(val6);
21652 }
21653 if (obj6) {
36ed4f51 21654 {
1bd55598
RD
21655 arg7 = wxString_in_helper(obj6);
21656 if (arg7 == NULL) SWIG_fail;
21657 temp7 = true;
36ed4f51 21658 }
1bd55598
RD
21659 }
21660 {
21661 PyThreadState* __tstate = wxPyBeginAllowThreads();
21662 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21663 wxPyEndAllowThreads(__tstate);
21664 if (PyErr_Occurred()) SWIG_fail;
21665 }
21666 {
21667 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21668 }
21669 {
21670 if (temp7)
21671 delete arg7;
21672 }
21673 return resultobj;
21674fail:
21675 {
21676 if (temp7)
21677 delete arg7;
21678 }
21679 return NULL;
21680}
21681
21682
21683SWIGINTERN PyObject *_wrap_Treebook_InsertSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21684 PyObject *resultobj = 0;
21685 wxTreebook *arg1 = (wxTreebook *) 0 ;
21686 size_t arg2 ;
21687 wxWindow *arg3 = (wxWindow *) 0 ;
21688 wxString *arg4 = 0 ;
21689 bool arg5 = (bool) false ;
21690 int arg6 = (int) wxNOT_FOUND ;
21691 bool result;
21692 void *argp1 = 0 ;
21693 int res1 = 0 ;
21694 size_t val2 ;
21695 int ecode2 = 0 ;
21696 void *argp3 = 0 ;
21697 int res3 = 0 ;
21698 bool temp4 = false ;
21699 bool val5 ;
21700 int ecode5 = 0 ;
21701 int val6 ;
21702 int ecode6 = 0 ;
21703 PyObject * obj0 = 0 ;
21704 PyObject * obj1 = 0 ;
21705 PyObject * obj2 = 0 ;
21706 PyObject * obj3 = 0 ;
21707 PyObject * obj4 = 0 ;
21708 PyObject * obj5 = 0 ;
21709 char * kwnames[] = {
21710 (char *) "self",(char *) "pos",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21711 };
21712
21713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Treebook_InsertSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21714 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21715 if (!SWIG_IsOK(res1)) {
21716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_InsertSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21717 }
21718 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21719 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21720 if (!SWIG_IsOK(ecode2)) {
21721 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_InsertSubPage" "', expected argument " "2"" of type '" "size_t""'");
21722 }
21723 arg2 = static_cast< size_t >(val2);
21724 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
21725 if (!SWIG_IsOK(res3)) {
21726 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Treebook_InsertSubPage" "', expected argument " "3"" of type '" "wxWindow *""'");
21727 }
21728 arg3 = reinterpret_cast< wxWindow * >(argp3);
21729 {
21730 arg4 = wxString_in_helper(obj3);
21731 if (arg4 == NULL) SWIG_fail;
21732 temp4 = true;
21733 }
21734 if (obj4) {
21735 ecode5 = SWIG_AsVal_bool(obj4, &val5);
21736 if (!SWIG_IsOK(ecode5)) {
21737 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_InsertSubPage" "', expected argument " "5"" of type '" "bool""'");
21738 }
21739 arg5 = static_cast< bool >(val5);
21740 }
21741 if (obj5) {
21742 ecode6 = SWIG_AsVal_int(obj5, &val6);
21743 if (!SWIG_IsOK(ecode6)) {
21744 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_InsertSubPage" "', expected argument " "6"" of type '" "int""'");
21745 }
21746 arg6 = static_cast< int >(val6);
21747 }
21748 {
21749 PyThreadState* __tstate = wxPyBeginAllowThreads();
21750 result = (bool)(arg1)->InsertSubPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
21751 wxPyEndAllowThreads(__tstate);
21752 if (PyErr_Occurred()) SWIG_fail;
21753 }
21754 {
21755 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21756 }
21757 {
21758 if (temp4)
21759 delete arg4;
21760 }
21761 return resultobj;
21762fail:
21763 {
21764 if (temp4)
21765 delete arg4;
21766 }
21767 return NULL;
21768}
21769
21770
21771SWIGINTERN PyObject *_wrap_Treebook_AddSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21772 PyObject *resultobj = 0;
21773 wxTreebook *arg1 = (wxTreebook *) 0 ;
21774 wxWindow *arg2 = (wxWindow *) 0 ;
21775 wxString *arg3 = 0 ;
21776 bool arg4 = (bool) false ;
21777 int arg5 = (int) wxNOT_FOUND ;
21778 bool result;
21779 void *argp1 = 0 ;
21780 int res1 = 0 ;
21781 void *argp2 = 0 ;
21782 int res2 = 0 ;
21783 bool temp3 = false ;
21784 bool val4 ;
21785 int ecode4 = 0 ;
21786 int val5 ;
21787 int ecode5 = 0 ;
21788 PyObject * obj0 = 0 ;
21789 PyObject * obj1 = 0 ;
21790 PyObject * obj2 = 0 ;
21791 PyObject * obj3 = 0 ;
21792 PyObject * obj4 = 0 ;
21793 char * kwnames[] = {
21794 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21795 };
21796
21797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Treebook_AddSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
21798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21799 if (!SWIG_IsOK(res1)) {
21800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_AddSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21801 }
21802 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21803 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21804 if (!SWIG_IsOK(res2)) {
21805 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_AddSubPage" "', expected argument " "2"" of type '" "wxWindow *""'");
21806 }
21807 arg2 = reinterpret_cast< wxWindow * >(argp2);
21808 {
21809 arg3 = wxString_in_helper(obj2);
21810 if (arg3 == NULL) SWIG_fail;
21811 temp3 = true;
21812 }
21813 if (obj3) {
21814 ecode4 = SWIG_AsVal_bool(obj3, &val4);
21815 if (!SWIG_IsOK(ecode4)) {
21816 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Treebook_AddSubPage" "', expected argument " "4"" of type '" "bool""'");
21817 }
21818 arg4 = static_cast< bool >(val4);
21819 }
21820 if (obj4) {
21821 ecode5 = SWIG_AsVal_int(obj4, &val5);
21822 if (!SWIG_IsOK(ecode5)) {
21823 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_AddSubPage" "', expected argument " "5"" of type '" "int""'");
21824 }
21825 arg5 = static_cast< int >(val5);
21826 }
21827 {
21828 PyThreadState* __tstate = wxPyBeginAllowThreads();
21829 result = (bool)(arg1)->AddSubPage(arg2,(wxString const &)*arg3,arg4,arg5);
21830 wxPyEndAllowThreads(__tstate);
21831 if (PyErr_Occurred()) SWIG_fail;
21832 }
21833 {
21834 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21835 }
21836 {
21837 if (temp3)
21838 delete arg3;
21839 }
21840 return resultobj;
21841fail:
21842 {
21843 if (temp3)
21844 delete arg3;
21845 }
21846 return NULL;
21847}
21848
21849
21850SWIGINTERN PyObject *_wrap_Treebook_IsNodeExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21851 PyObject *resultobj = 0;
21852 wxTreebook *arg1 = (wxTreebook *) 0 ;
21853 size_t arg2 ;
21854 bool result;
21855 void *argp1 = 0 ;
21856 int res1 = 0 ;
21857 size_t val2 ;
21858 int ecode2 = 0 ;
21859 PyObject * obj0 = 0 ;
21860 PyObject * obj1 = 0 ;
21861 char * kwnames[] = {
21862 (char *) "self",(char *) "pos", NULL
21863 };
21864
21865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_IsNodeExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
21866 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21867 if (!SWIG_IsOK(res1)) {
21868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "1"" of type '" "wxTreebook const *""'");
21869 }
21870 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21871 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21872 if (!SWIG_IsOK(ecode2)) {
21873 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "2"" of type '" "size_t""'");
21874 }
21875 arg2 = static_cast< size_t >(val2);
21876 {
21877 PyThreadState* __tstate = wxPyBeginAllowThreads();
21878 result = (bool)((wxTreebook const *)arg1)->IsNodeExpanded(arg2);
21879 wxPyEndAllowThreads(__tstate);
21880 if (PyErr_Occurred()) SWIG_fail;
21881 }
21882 {
21883 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21884 }
21885 return resultobj;
21886fail:
21887 return NULL;
21888}
21889
21890
21891SWIGINTERN PyObject *_wrap_Treebook_ExpandNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21892 PyObject *resultobj = 0;
21893 wxTreebook *arg1 = (wxTreebook *) 0 ;
21894 size_t arg2 ;
21895 bool arg3 = (bool) true ;
21896 bool result;
21897 void *argp1 = 0 ;
21898 int res1 = 0 ;
21899 size_t val2 ;
21900 int ecode2 = 0 ;
21901 bool val3 ;
21902 int ecode3 = 0 ;
21903 PyObject * obj0 = 0 ;
21904 PyObject * obj1 = 0 ;
21905 PyObject * obj2 = 0 ;
21906 char * kwnames[] = {
21907 (char *) "self",(char *) "pos",(char *) "expand", NULL
21908 };
21909
21910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Treebook_ExpandNode",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21912 if (!SWIG_IsOK(res1)) {
21913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_ExpandNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
21914 }
21915 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21916 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21917 if (!SWIG_IsOK(ecode2)) {
21918 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_ExpandNode" "', expected argument " "2"" of type '" "size_t""'");
21919 }
21920 arg2 = static_cast< size_t >(val2);
21921 if (obj2) {
21922 ecode3 = SWIG_AsVal_bool(obj2, &val3);
21923 if (!SWIG_IsOK(ecode3)) {
21924 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_ExpandNode" "', expected argument " "3"" of type '" "bool""'");
21925 }
21926 arg3 = static_cast< bool >(val3);
21927 }
21928 {
21929 PyThreadState* __tstate = wxPyBeginAllowThreads();
21930 result = (bool)(arg1)->ExpandNode(arg2,arg3);
21931 wxPyEndAllowThreads(__tstate);
21932 if (PyErr_Occurred()) SWIG_fail;
21933 }
21934 {
21935 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21936 }
21937 return resultobj;
21938fail:
21939 return NULL;
21940}
21941
21942
21943SWIGINTERN PyObject *_wrap_Treebook_CollapseNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21944 PyObject *resultobj = 0;
21945 wxTreebook *arg1 = (wxTreebook *) 0 ;
21946 size_t arg2 ;
21947 bool result;
21948 void *argp1 = 0 ;
21949 int res1 = 0 ;
21950 size_t val2 ;
21951 int ecode2 = 0 ;
21952 PyObject * obj0 = 0 ;
21953 PyObject * obj1 = 0 ;
21954 char * kwnames[] = {
21955 (char *) "self",(char *) "pos", NULL
21956 };
21957
21958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_CollapseNode",kwnames,&obj0,&obj1)) SWIG_fail;
21959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21960 if (!SWIG_IsOK(res1)) {
21961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_CollapseNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
21962 }
21963 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21964 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21965 if (!SWIG_IsOK(ecode2)) {
21966 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_CollapseNode" "', expected argument " "2"" of type '" "size_t""'");
21967 }
21968 arg2 = static_cast< size_t >(val2);
21969 {
21970 PyThreadState* __tstate = wxPyBeginAllowThreads();
21971 result = (bool)(arg1)->CollapseNode(arg2);
21972 wxPyEndAllowThreads(__tstate);
21973 if (PyErr_Occurred()) SWIG_fail;
21974 }
21975 {
21976 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21977 }
21978 return resultobj;
21979fail:
21980 return NULL;
21981}
21982
21983
21984SWIGINTERN PyObject *_wrap_Treebook_GetPageParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21985 PyObject *resultobj = 0;
21986 wxTreebook *arg1 = (wxTreebook *) 0 ;
21987 size_t arg2 ;
21988 int result;
21989 void *argp1 = 0 ;
21990 int res1 = 0 ;
21991 size_t val2 ;
21992 int ecode2 = 0 ;
21993 PyObject * obj0 = 0 ;
21994 PyObject * obj1 = 0 ;
21995 char * kwnames[] = {
21996 (char *) "self",(char *) "pos", NULL
21997 };
21998
21999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_GetPageParent",kwnames,&obj0,&obj1)) SWIG_fail;
22000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22001 if (!SWIG_IsOK(res1)) {
22002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetPageParent" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22003 }
22004 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22005 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22006 if (!SWIG_IsOK(ecode2)) {
22007 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_GetPageParent" "', expected argument " "2"" of type '" "size_t""'");
22008 }
22009 arg2 = static_cast< size_t >(val2);
22010 {
22011 PyThreadState* __tstate = wxPyBeginAllowThreads();
22012 result = (int)((wxTreebook const *)arg1)->GetPageParent(arg2);
22013 wxPyEndAllowThreads(__tstate);
22014 if (PyErr_Occurred()) SWIG_fail;
22015 }
22016 resultobj = SWIG_From_int(static_cast< int >(result));
22017 return resultobj;
22018fail:
22019 return NULL;
d55e5bfc
RD
22020}
22021
22022
1bd55598
RD
22023SWIGINTERN PyObject *_wrap_Treebook_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22024 PyObject *resultobj = 0;
22025 wxTreebook *arg1 = (wxTreebook *) 0 ;
22026 wxTreeCtrl *result = 0 ;
22027 void *argp1 = 0 ;
22028 int res1 = 0 ;
22029 PyObject *swig_obj[1] ;
22030
22031 if (!args) SWIG_fail;
22032 swig_obj[0] = args;
22033 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22034 if (!SWIG_IsOK(res1)) {
22035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetTreeCtrl" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22036 }
22037 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22038 {
22039 PyThreadState* __tstate = wxPyBeginAllowThreads();
22040 result = (wxTreeCtrl *)((wxTreebook const *)arg1)->GetTreeCtrl();
22041 wxPyEndAllowThreads(__tstate);
22042 if (PyErr_Occurred()) SWIG_fail;
22043 }
22044 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeCtrl, 0 | 0 );
22045 return resultobj;
22046fail:
22047 return NULL;
22048}
22049
22050
22051SWIGINTERN PyObject *Treebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22052 PyObject *obj;
22053 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22054 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebook, SWIG_NewClientData(obj));
22055 return SWIG_Py_Void();
22056}
22057
22058SWIGINTERN PyObject *Treebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22059 return SWIG_Python_InitShadowInstance(args);
22060}
22061
22062SWIGINTERN PyObject *_wrap_new_TreebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22063 PyObject *resultobj = 0;
22064 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22065 int arg2 = (int) 0 ;
22066 int arg3 = (int) wxNOT_FOUND ;
22067 int arg4 = (int) wxNOT_FOUND ;
22068 wxTreebookEvent *result = 0 ;
22069 int val1 ;
22070 int ecode1 = 0 ;
22071 int val2 ;
22072 int ecode2 = 0 ;
22073 int val3 ;
22074 int ecode3 = 0 ;
22075 int val4 ;
22076 int ecode4 = 0 ;
22077 PyObject * obj0 = 0 ;
22078 PyObject * obj1 = 0 ;
22079 PyObject * obj2 = 0 ;
22080 PyObject * obj3 = 0 ;
22081 char * kwnames[] = {
22082 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22083 };
22084
22085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TreebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22086 if (obj0) {
22087 ecode1 = SWIG_AsVal_int(obj0, &val1);
22088 if (!SWIG_IsOK(ecode1)) {
22089 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22090 }
22091 arg1 = static_cast< wxEventType >(val1);
22092 }
22093 if (obj1) {
22094 ecode2 = SWIG_AsVal_int(obj1, &val2);
22095 if (!SWIG_IsOK(ecode2)) {
22096 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreebookEvent" "', expected argument " "2"" of type '" "int""'");
22097 }
22098 arg2 = static_cast< int >(val2);
22099 }
22100 if (obj2) {
22101 ecode3 = SWIG_AsVal_int(obj2, &val3);
22102 if (!SWIG_IsOK(ecode3)) {
22103 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TreebookEvent" "', expected argument " "3"" of type '" "int""'");
22104 }
22105 arg3 = static_cast< int >(val3);
22106 }
22107 if (obj3) {
22108 ecode4 = SWIG_AsVal_int(obj3, &val4);
22109 if (!SWIG_IsOK(ecode4)) {
22110 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TreebookEvent" "', expected argument " "4"" of type '" "int""'");
22111 }
22112 arg4 = static_cast< int >(val4);
22113 }
22114 {
22115 PyThreadState* __tstate = wxPyBeginAllowThreads();
22116 result = (wxTreebookEvent *)new wxTreebookEvent(arg1,arg2,arg3,arg4);
22117 wxPyEndAllowThreads(__tstate);
22118 if (PyErr_Occurred()) SWIG_fail;
22119 }
22120 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebookEvent, SWIG_POINTER_NEW | 0 );
22121 return resultobj;
22122fail:
22123 return NULL;
22124}
22125
22126
22127SWIGINTERN PyObject *TreebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22128 PyObject *obj;
22129 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22130 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebookEvent, SWIG_NewClientData(obj));
22131 return SWIG_Py_Void();
22132}
22133
22134SWIGINTERN PyObject *TreebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22135 return SWIG_Python_InitShadowInstance(args);
22136}
22137
22138SWIGINTERN PyObject *_wrap_new_Toolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22139 PyObject *resultobj = 0;
22140 wxWindow *arg1 = (wxWindow *) 0 ;
22141 int arg2 ;
22142 wxPoint const &arg3_defvalue = wxDefaultPosition ;
22143 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
22144 wxSize const &arg4_defvalue = wxDefaultSize ;
22145 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
22146 long arg5 = (long) wxBK_DEFAULT ;
22147 wxString const &arg6_defvalue = wxPyEmptyString ;
22148 wxString *arg6 = (wxString *) &arg6_defvalue ;
22149 wxToolbook *result = 0 ;
22150 void *argp1 = 0 ;
22151 int res1 = 0 ;
22152 int val2 ;
22153 int ecode2 = 0 ;
22154 wxPoint temp3 ;
22155 wxSize temp4 ;
22156 long val5 ;
22157 int ecode5 = 0 ;
22158 bool temp6 = false ;
22159 PyObject * obj0 = 0 ;
22160 PyObject * obj1 = 0 ;
22161 PyObject * obj2 = 0 ;
22162 PyObject * obj3 = 0 ;
22163 PyObject * obj4 = 0 ;
22164 PyObject * obj5 = 0 ;
22165 char * kwnames[] = {
22166 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22167 };
22168
22169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Toolbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
22171 if (!SWIG_IsOK(res1)) {
22172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Toolbook" "', expected argument " "1"" of type '" "wxWindow *""'");
22173 }
22174 arg1 = reinterpret_cast< wxWindow * >(argp1);
22175 ecode2 = SWIG_AsVal_int(obj1, &val2);
22176 if (!SWIG_IsOK(ecode2)) {
22177 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Toolbook" "', expected argument " "2"" of type '" "int""'");
22178 }
22179 arg2 = static_cast< int >(val2);
22180 if (obj2) {
36ed4f51 22181 {
1bd55598
RD
22182 arg3 = &temp3;
22183 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36ed4f51 22184 }
1bd55598
RD
22185 }
22186 if (obj3) {
36ed4f51 22187 {
1bd55598
RD
22188 arg4 = &temp4;
22189 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
36ed4f51 22190 }
1bd55598
RD
22191 }
22192 if (obj4) {
22193 ecode5 = SWIG_AsVal_long(obj4, &val5);
22194 if (!SWIG_IsOK(ecode5)) {
22195 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Toolbook" "', expected argument " "5"" of type '" "long""'");
22196 }
22197 arg5 = static_cast< long >(val5);
22198 }
22199 if (obj5) {
d55e5bfc 22200 {
1bd55598
RD
22201 arg6 = wxString_in_helper(obj5);
22202 if (arg6 == NULL) SWIG_fail;
22203 temp6 = true;
d55e5bfc 22204 }
1bd55598
RD
22205 }
22206 {
22207 PyThreadState* __tstate = wxPyBeginAllowThreads();
22208 result = (wxToolbook *)new wxToolbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
22209 wxPyEndAllowThreads(__tstate);
22210 if (PyErr_Occurred()) SWIG_fail;
22211 }
22212 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_NEW | 0 );
22213 {
22214 if (temp6)
22215 delete arg6;
22216 }
22217 return resultobj;
22218fail:
22219 {
22220 if (temp6)
22221 delete arg6;
22222 }
22223 return NULL;
d55e5bfc
RD
22224}
22225
22226
1bd55598
RD
22227SWIGINTERN PyObject *_wrap_new_PreToolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22228 PyObject *resultobj = 0;
22229 wxToolbook *result = 0 ;
22230
22231 if (!SWIG_Python_UnpackTuple(args,"new_PreToolbook",0,0,0)) SWIG_fail;
22232 {
22233 PyThreadState* __tstate = wxPyBeginAllowThreads();
22234 result = (wxToolbook *)new wxToolbook();
22235 wxPyEndAllowThreads(__tstate);
22236 if (PyErr_Occurred()) SWIG_fail;
22237 }
22238 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_OWN | 0 );
22239 return resultobj;
22240fail:
22241 return NULL;
22242}
22243
22244
22245SWIGINTERN PyObject *_wrap_Toolbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22246 PyObject *resultobj = 0;
22247 wxToolbook *arg1 = (wxToolbook *) 0 ;
22248 wxWindow *arg2 = (wxWindow *) 0 ;
22249 int arg3 ;
22250 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22251 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22252 wxSize const &arg5_defvalue = wxDefaultSize ;
22253 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22254 long arg6 = (long) 0 ;
22255 wxString const &arg7_defvalue = wxEmptyString ;
22256 wxString *arg7 = (wxString *) &arg7_defvalue ;
22257 bool result;
22258 void *argp1 = 0 ;
22259 int res1 = 0 ;
22260 void *argp2 = 0 ;
22261 int res2 = 0 ;
22262 int val3 ;
22263 int ecode3 = 0 ;
22264 wxPoint temp4 ;
22265 wxSize temp5 ;
22266 long val6 ;
22267 int ecode6 = 0 ;
22268 bool temp7 = false ;
22269 PyObject * obj0 = 0 ;
22270 PyObject * obj1 = 0 ;
22271 PyObject * obj2 = 0 ;
22272 PyObject * obj3 = 0 ;
22273 PyObject * obj4 = 0 ;
22274 PyObject * obj5 = 0 ;
22275 PyObject * obj6 = 0 ;
22276 char * kwnames[] = {
22277 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22278 };
22279
22280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Toolbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22282 if (!SWIG_IsOK(res1)) {
22283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Create" "', expected argument " "1"" of type '" "wxToolbook *""'");
22284 }
22285 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22286 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22287 if (!SWIG_IsOK(res2)) {
22288 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Toolbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
22289 }
22290 arg2 = reinterpret_cast< wxWindow * >(argp2);
22291 ecode3 = SWIG_AsVal_int(obj2, &val3);
22292 if (!SWIG_IsOK(ecode3)) {
22293 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Toolbook_Create" "', expected argument " "3"" of type '" "int""'");
22294 }
22295 arg3 = static_cast< int >(val3);
22296 if (obj3) {
22297 {
22298 arg4 = &temp4;
22299 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
f20a2e1f 22300 }
1bd55598
RD
22301 }
22302 if (obj4) {
f20a2e1f 22303 {
1bd55598
RD
22304 arg5 = &temp5;
22305 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
f20a2e1f 22306 }
1bd55598
RD
22307 }
22308 if (obj5) {
22309 ecode6 = SWIG_AsVal_long(obj5, &val6);
22310 if (!SWIG_IsOK(ecode6)) {
22311 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Toolbook_Create" "', expected argument " "6"" of type '" "long""'");
22312 }
22313 arg6 = static_cast< long >(val6);
22314 }
22315 if (obj6) {
f20a2e1f 22316 {
1bd55598
RD
22317 arg7 = wxString_in_helper(obj6);
22318 if (arg7 == NULL) SWIG_fail;
22319 temp7 = true;
f20a2e1f 22320 }
1bd55598
RD
22321 }
22322 {
22323 PyThreadState* __tstate = wxPyBeginAllowThreads();
22324 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22325 wxPyEndAllowThreads(__tstate);
22326 if (PyErr_Occurred()) SWIG_fail;
22327 }
22328 {
22329 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22330 }
22331 {
22332 if (temp7)
22333 delete arg7;
22334 }
22335 return resultobj;
22336fail:
22337 {
22338 if (temp7)
22339 delete arg7;
22340 }
22341 return NULL;
f20a2e1f
RD
22342}
22343
22344
1bd55598
RD
22345SWIGINTERN PyObject *_wrap_Toolbook_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22346 PyObject *resultobj = 0;
22347 wxToolbook *arg1 = (wxToolbook *) 0 ;
22348 wxToolBarBase *result = 0 ;
22349 void *argp1 = 0 ;
22350 int res1 = 0 ;
22351 PyObject *swig_obj[1] ;
22352
22353 if (!args) SWIG_fail;
22354 swig_obj[0] = args;
22355 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22356 if (!SWIG_IsOK(res1)) {
22357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_GetToolBar" "', expected argument " "1"" of type '" "wxToolbook const *""'");
22358 }
22359 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22360 {
22361 PyThreadState* __tstate = wxPyBeginAllowThreads();
22362 result = (wxToolBarBase *)((wxToolbook const *)arg1)->GetToolBar();
22363 wxPyEndAllowThreads(__tstate);
22364 if (PyErr_Occurred()) SWIG_fail;
22365 }
22366 {
22367 resultobj = wxPyMake_wxObject(result, (bool)0);
22368 }
22369 return resultobj;
22370fail:
22371 return NULL;
d55e5bfc
RD
22372}
22373
22374
1bd55598
RD
22375SWIGINTERN PyObject *_wrap_Toolbook_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22376 PyObject *resultobj = 0;
22377 wxToolbook *arg1 = (wxToolbook *) 0 ;
22378 void *argp1 = 0 ;
22379 int res1 = 0 ;
22380 PyObject *swig_obj[1] ;
22381
22382 if (!args) SWIG_fail;
22383 swig_obj[0] = args;
22384 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22385 if (!SWIG_IsOK(res1)) {
22386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Realize" "', expected argument " "1"" of type '" "wxToolbook *""'");
22387 }
22388 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22389 {
22390 PyThreadState* __tstate = wxPyBeginAllowThreads();
22391 (arg1)->Realize();
22392 wxPyEndAllowThreads(__tstate);
22393 if (PyErr_Occurred()) SWIG_fail;
22394 }
22395 resultobj = SWIG_Py_Void();
22396 return resultobj;
22397fail:
22398 return NULL;
22399}
22400
22401
22402SWIGINTERN PyObject *Toolbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22403 PyObject *obj;
22404 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22405 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbook, SWIG_NewClientData(obj));
22406 return SWIG_Py_Void();
22407}
22408
22409SWIGINTERN PyObject *Toolbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22410 return SWIG_Python_InitShadowInstance(args);
22411}
22412
22413SWIGINTERN PyObject *_wrap_new_ToolbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22414 PyObject *resultobj = 0;
22415 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22416 int arg2 = (int) 0 ;
22417 int arg3 = (int) wxNOT_FOUND ;
22418 int arg4 = (int) wxNOT_FOUND ;
22419 wxToolbookEvent *result = 0 ;
22420 int val1 ;
22421 int ecode1 = 0 ;
22422 int val2 ;
22423 int ecode2 = 0 ;
22424 int val3 ;
22425 int ecode3 = 0 ;
22426 int val4 ;
22427 int ecode4 = 0 ;
22428 PyObject * obj0 = 0 ;
22429 PyObject * obj1 = 0 ;
22430 PyObject * obj2 = 0 ;
22431 PyObject * obj3 = 0 ;
22432 char * kwnames[] = {
22433 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22434 };
22435
22436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ToolbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22437 if (obj0) {
22438 ecode1 = SWIG_AsVal_int(obj0, &val1);
22439 if (!SWIG_IsOK(ecode1)) {
22440 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ToolbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22441 }
22442 arg1 = static_cast< wxEventType >(val1);
22443 }
22444 if (obj1) {
22445 ecode2 = SWIG_AsVal_int(obj1, &val2);
22446 if (!SWIG_IsOK(ecode2)) {
22447 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolbookEvent" "', expected argument " "2"" of type '" "int""'");
22448 }
22449 arg2 = static_cast< int >(val2);
22450 }
22451 if (obj2) {
22452 ecode3 = SWIG_AsVal_int(obj2, &val3);
22453 if (!SWIG_IsOK(ecode3)) {
22454 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ToolbookEvent" "', expected argument " "3"" of type '" "int""'");
22455 }
22456 arg3 = static_cast< int >(val3);
22457 }
22458 if (obj3) {
22459 ecode4 = SWIG_AsVal_int(obj3, &val4);
22460 if (!SWIG_IsOK(ecode4)) {
22461 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ToolbookEvent" "', expected argument " "4"" of type '" "int""'");
22462 }
22463 arg4 = static_cast< int >(val4);
22464 }
22465 {
22466 PyThreadState* __tstate = wxPyBeginAllowThreads();
22467 result = (wxToolbookEvent *)new wxToolbookEvent(arg1,arg2,arg3,arg4);
22468 wxPyEndAllowThreads(__tstate);
22469 if (PyErr_Occurred()) SWIG_fail;
22470 }
22471 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbookEvent, SWIG_POINTER_NEW | 0 );
22472 return resultobj;
22473fail:
22474 return NULL;
d55e5bfc
RD
22475}
22476
22477
1bd55598
RD
22478SWIGINTERN PyObject *ToolbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22479 PyObject *obj;
22480 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22481 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbookEvent, SWIG_NewClientData(obj));
22482 return SWIG_Py_Void();
d55e5bfc
RD
22483}
22484
1bd55598
RD
22485SWIGINTERN PyObject *ToolbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22486 return SWIG_Python_InitShadowInstance(args);
22487}
d55e5bfc 22488
1bd55598
RD
22489SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22490 PyObject *resultobj = 0;
22491 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22492 int result;
22493 void *argp1 = 0 ;
22494 int res1 = 0 ;
22495 PyObject *swig_obj[1] ;
22496
22497 if (!args) SWIG_fail;
22498 swig_obj[0] = args;
22499 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22500 if (!SWIG_IsOK(res1)) {
22501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetId" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22502 }
22503 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22504 {
22505 PyThreadState* __tstate = wxPyBeginAllowThreads();
22506 result = (int)(arg1)->GetId();
22507 wxPyEndAllowThreads(__tstate);
22508 if (PyErr_Occurred()) SWIG_fail;
22509 }
22510 resultobj = SWIG_From_int(static_cast< int >(result));
22511 return resultobj;
22512fail:
22513 return NULL;
d55e5bfc 22514}
1bd55598
RD
22515
22516
22517SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22518 PyObject *resultobj = 0;
22519 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22520 wxControl *result = 0 ;
22521 void *argp1 = 0 ;
22522 int res1 = 0 ;
22523 PyObject *swig_obj[1] ;
22524
22525 if (!args) SWIG_fail;
22526 swig_obj[0] = args;
22527 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22528 if (!SWIG_IsOK(res1)) {
22529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22530 }
22531 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22532 {
22533 PyThreadState* __tstate = wxPyBeginAllowThreads();
22534 result = (wxControl *)(arg1)->GetControl();
22535 wxPyEndAllowThreads(__tstate);
22536 if (PyErr_Occurred()) SWIG_fail;
22537 }
22538 {
22539 resultobj = wxPyMake_wxObject(result, 0);
22540 }
22541 return resultobj;
22542fail:
22543 return NULL;
d55e5bfc
RD
22544}
22545
22546
1bd55598
RD
22547SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22548 PyObject *resultobj = 0;
22549 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22550 wxToolBarBase *result = 0 ;
22551 void *argp1 = 0 ;
22552 int res1 = 0 ;
22553 PyObject *swig_obj[1] ;
22554
22555 if (!args) SWIG_fail;
22556 swig_obj[0] = args;
22557 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22558 if (!SWIG_IsOK(res1)) {
22559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetToolBar" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22560 }
22561 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22562 {
22563 PyThreadState* __tstate = wxPyBeginAllowThreads();
22564 result = (wxToolBarBase *)(arg1)->GetToolBar();
22565 wxPyEndAllowThreads(__tstate);
22566 if (PyErr_Occurred()) SWIG_fail;
22567 }
22568 {
22569 resultobj = wxPyMake_wxObject(result, (bool)0);
22570 }
22571 return resultobj;
22572fail:
22573 return NULL;
d55e5bfc
RD
22574}
22575
22576
1bd55598
RD
22577SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22578 PyObject *resultobj = 0;
22579 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22580 int result;
22581 void *argp1 = 0 ;
22582 int res1 = 0 ;
22583 PyObject *swig_obj[1] ;
22584
22585 if (!args) SWIG_fail;
22586 swig_obj[0] = args;
22587 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22588 if (!SWIG_IsOK(res1)) {
22589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsButton" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22590 }
22591 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22592 {
22593 PyThreadState* __tstate = wxPyBeginAllowThreads();
22594 result = (int)(arg1)->IsButton();
22595 wxPyEndAllowThreads(__tstate);
22596 if (PyErr_Occurred()) SWIG_fail;
22597 }
22598 resultobj = SWIG_From_int(static_cast< int >(result));
22599 return resultobj;
22600fail:
22601 return NULL;
d55e5bfc
RD
22602}
22603
22604
1bd55598
RD
22605SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22606 PyObject *resultobj = 0;
22607 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22608 int result;
22609 void *argp1 = 0 ;
22610 int res1 = 0 ;
22611 PyObject *swig_obj[1] ;
22612
22613 if (!args) SWIG_fail;
22614 swig_obj[0] = args;
22615 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22616 if (!SWIG_IsOK(res1)) {
22617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22618 }
22619 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22620 {
22621 PyThreadState* __tstate = wxPyBeginAllowThreads();
22622 result = (int)(arg1)->IsControl();
22623 wxPyEndAllowThreads(__tstate);
22624 if (PyErr_Occurred()) SWIG_fail;
22625 }
22626 resultobj = SWIG_From_int(static_cast< int >(result));
22627 return resultobj;
22628fail:
22629 return NULL;
d55e5bfc
RD
22630}
22631
22632
1bd55598
RD
22633SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22634 PyObject *resultobj = 0;
22635 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22636 int result;
22637 void *argp1 = 0 ;
22638 int res1 = 0 ;
22639 PyObject *swig_obj[1] ;
22640
22641 if (!args) SWIG_fail;
22642 swig_obj[0] = args;
22643 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22644 if (!SWIG_IsOK(res1)) {
22645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsSeparator" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22646 }
22647 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22648 {
22649 PyThreadState* __tstate = wxPyBeginAllowThreads();
22650 result = (int)(arg1)->IsSeparator();
22651 wxPyEndAllowThreads(__tstate);
22652 if (PyErr_Occurred()) SWIG_fail;
22653 }
22654 resultobj = SWIG_From_int(static_cast< int >(result));
22655 return resultobj;
22656fail:
22657 return NULL;
d55e5bfc
RD
22658}
22659
22660
1bd55598
RD
22661SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22662 PyObject *resultobj = 0;
22663 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22664 int result;
22665 void *argp1 = 0 ;
22666 int res1 = 0 ;
22667 PyObject *swig_obj[1] ;
22668
22669 if (!args) SWIG_fail;
22670 swig_obj[0] = args;
22671 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22672 if (!SWIG_IsOK(res1)) {
22673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetStyle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22674 }
22675 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22676 {
22677 PyThreadState* __tstate = wxPyBeginAllowThreads();
22678 result = (int)(arg1)->GetStyle();
22679 wxPyEndAllowThreads(__tstate);
22680 if (PyErr_Occurred()) SWIG_fail;
22681 }
22682 resultobj = SWIG_From_int(static_cast< int >(result));
22683 return resultobj;
22684fail:
22685 return NULL;
d55e5bfc
RD
22686}
22687
22688
1bd55598
RD
22689SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22690 PyObject *resultobj = 0;
22691 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22692 wxItemKind result;
22693 void *argp1 = 0 ;
22694 int res1 = 0 ;
22695 PyObject *swig_obj[1] ;
22696
22697 if (!args) SWIG_fail;
22698 swig_obj[0] = args;
22699 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22700 if (!SWIG_IsOK(res1)) {
22701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetKind" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22702 }
22703 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22704 {
22705 PyThreadState* __tstate = wxPyBeginAllowThreads();
22706 result = (wxItemKind)(arg1)->GetKind();
22707 wxPyEndAllowThreads(__tstate);
22708 if (PyErr_Occurred()) SWIG_fail;
22709 }
22710 resultobj = SWIG_From_int(static_cast< int >(result));
22711 return resultobj;
22712fail:
22713 return NULL;
d55e5bfc
RD
22714}
22715
22716
1bd55598
RD
22717SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22718 PyObject *resultobj = 0;
22719 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22720 bool result;
22721 void *argp1 = 0 ;
22722 int res1 = 0 ;
22723 PyObject *swig_obj[1] ;
22724
22725 if (!args) SWIG_fail;
22726 swig_obj[0] = args;
22727 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22728 if (!SWIG_IsOK(res1)) {
22729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsEnabled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22730 }
22731 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22732 {
22733 PyThreadState* __tstate = wxPyBeginAllowThreads();
22734 result = (bool)(arg1)->IsEnabled();
22735 wxPyEndAllowThreads(__tstate);
22736 if (PyErr_Occurred()) SWIG_fail;
22737 }
22738 {
22739 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22740 }
22741 return resultobj;
22742fail:
22743 return NULL;
d55e5bfc
RD
22744}
22745
22746
1bd55598
RD
22747SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22748 PyObject *resultobj = 0;
22749 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22750 bool result;
22751 void *argp1 = 0 ;
22752 int res1 = 0 ;
22753 PyObject *swig_obj[1] ;
22754
22755 if (!args) SWIG_fail;
22756 swig_obj[0] = args;
22757 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22758 if (!SWIG_IsOK(res1)) {
22759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22760 }
22761 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22762 {
22763 PyThreadState* __tstate = wxPyBeginAllowThreads();
22764 result = (bool)(arg1)->IsToggled();
22765 wxPyEndAllowThreads(__tstate);
22766 if (PyErr_Occurred()) SWIG_fail;
22767 }
22768 {
22769 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22770 }
22771 return resultobj;
22772fail:
22773 return NULL;
d55e5bfc
RD
22774}
22775
22776
1bd55598
RD
22777SWIGINTERN PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22778 PyObject *resultobj = 0;
22779 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22780 bool result;
22781 void *argp1 = 0 ;
22782 int res1 = 0 ;
22783 PyObject *swig_obj[1] ;
22784
22785 if (!args) SWIG_fail;
22786 swig_obj[0] = args;
22787 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22788 if (!SWIG_IsOK(res1)) {
22789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_CanBeToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22790 }
22791 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22792 {
22793 PyThreadState* __tstate = wxPyBeginAllowThreads();
22794 result = (bool)(arg1)->CanBeToggled();
22795 wxPyEndAllowThreads(__tstate);
22796 if (PyErr_Occurred()) SWIG_fail;
22797 }
22798 {
22799 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22800 }
22801 return resultobj;
22802fail:
22803 return NULL;
d55e5bfc
RD
22804}
22805
22806
1bd55598
RD
22807SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22808 PyObject *resultobj = 0;
22809 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22810 wxBitmap *result = 0 ;
22811 void *argp1 = 0 ;
22812 int res1 = 0 ;
22813 PyObject *swig_obj[1] ;
22814
22815 if (!args) SWIG_fail;
22816 swig_obj[0] = args;
22817 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22818 if (!SWIG_IsOK(res1)) {
22819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22820 }
22821 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22822 {
22823 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 22824 {
1bd55598
RD
22825 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
22826 result = (wxBitmap *) &_result_ref;
36ed4f51 22827 }
1bd55598
RD
22828 wxPyEndAllowThreads(__tstate);
22829 if (PyErr_Occurred()) SWIG_fail;
22830 }
22831 {
22832 wxBitmap* resultptr = new wxBitmap(*result);
22833 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
22834 }
22835 return resultobj;
22836fail:
22837 return NULL;
d55e5bfc
RD
22838}
22839
22840
1bd55598
RD
22841SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22842 PyObject *resultobj = 0;
22843 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22844 wxBitmap *result = 0 ;
22845 void *argp1 = 0 ;
22846 int res1 = 0 ;
22847 PyObject *swig_obj[1] ;
22848
22849 if (!args) SWIG_fail;
22850 swig_obj[0] = args;
22851 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22852 if (!SWIG_IsOK(res1)) {
22853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22854 }
22855 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22856 {
22857 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 22858 {
1bd55598
RD
22859 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
22860 result = (wxBitmap *) &_result_ref;
d55e5bfc 22861 }
1bd55598
RD
22862 wxPyEndAllowThreads(__tstate);
22863 if (PyErr_Occurred()) SWIG_fail;
22864 }
22865 {
22866 wxBitmap* resultptr = new wxBitmap(*result);
22867 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
22868 }
22869 return resultobj;
22870fail:
22871 return NULL;
d55e5bfc
RD
22872}
22873
22874
1bd55598
RD
22875SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22876 PyObject *resultobj = 0;
22877 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22878 wxBitmap result;
22879 void *argp1 = 0 ;
22880 int res1 = 0 ;
22881 PyObject *swig_obj[1] ;
22882
22883 if (!args) SWIG_fail;
22884 swig_obj[0] = args;
22885 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22886 if (!SWIG_IsOK(res1)) {
22887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22888 }
22889 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22890 {
22891 PyThreadState* __tstate = wxPyBeginAllowThreads();
22892 result = (arg1)->GetBitmap();
22893 wxPyEndAllowThreads(__tstate);
22894 if (PyErr_Occurred()) SWIG_fail;
22895 }
22896 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
22897 return resultobj;
22898fail:
22899 return NULL;
d55e5bfc
RD
22900}
22901
22902
1bd55598
RD
22903SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22904 PyObject *resultobj = 0;
22905 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22906 wxString result;
22907 void *argp1 = 0 ;
22908 int res1 = 0 ;
22909 PyObject *swig_obj[1] ;
22910
22911 if (!args) SWIG_fail;
22912 swig_obj[0] = args;
22913 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22914 if (!SWIG_IsOK(res1)) {
22915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22916 }
22917 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22918 {
22919 PyThreadState* __tstate = wxPyBeginAllowThreads();
22920 result = (arg1)->GetLabel();
22921 wxPyEndAllowThreads(__tstate);
22922 if (PyErr_Occurred()) SWIG_fail;
22923 }
22924 {
22925#if wxUSE_UNICODE
22926 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22927#else
22928 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22929#endif
22930 }
22931 return resultobj;
22932fail:
22933 return NULL;
d55e5bfc
RD
22934}
22935
22936
1bd55598
RD
22937SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22938 PyObject *resultobj = 0;
22939 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22940 wxString result;
22941 void *argp1 = 0 ;
22942 int res1 = 0 ;
22943 PyObject *swig_obj[1] ;
22944
22945 if (!args) SWIG_fail;
22946 swig_obj[0] = args;
22947 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22948 if (!SWIG_IsOK(res1)) {
22949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22950 }
22951 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22952 {
22953 PyThreadState* __tstate = wxPyBeginAllowThreads();
22954 result = (arg1)->GetShortHelp();
22955 wxPyEndAllowThreads(__tstate);
22956 if (PyErr_Occurred()) SWIG_fail;
22957 }
22958 {
22959#if wxUSE_UNICODE
22960 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22961#else
22962 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22963#endif
22964 }
22965 return resultobj;
22966fail:
22967 return NULL;
d55e5bfc
RD
22968}
22969
22970
1bd55598
RD
22971SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22972 PyObject *resultobj = 0;
22973 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22974 wxString result;
22975 void *argp1 = 0 ;
22976 int res1 = 0 ;
22977 PyObject *swig_obj[1] ;
22978
22979 if (!args) SWIG_fail;
22980 swig_obj[0] = args;
22981 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22982 if (!SWIG_IsOK(res1)) {
22983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22984 }
22985 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22986 {
22987 PyThreadState* __tstate = wxPyBeginAllowThreads();
22988 result = (arg1)->GetLongHelp();
22989 wxPyEndAllowThreads(__tstate);
22990 if (PyErr_Occurred()) SWIG_fail;
22991 }
22992 {
22993#if wxUSE_UNICODE
22994 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22995#else
22996 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22997#endif
22998 }
22999 return resultobj;
23000fail:
23001 return NULL;
23002}
23003
23004
23005SWIGINTERN PyObject *_wrap_ToolBarToolBase_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23006 PyObject *resultobj = 0;
23007 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23008 bool arg2 ;
23009 bool result;
23010 void *argp1 = 0 ;
23011 int res1 = 0 ;
23012 bool val2 ;
23013 int ecode2 = 0 ;
23014 PyObject * obj0 = 0 ;
23015 PyObject * obj1 = 0 ;
23016 char * kwnames[] = {
23017 (char *) "self",(char *) "enable", NULL
23018 };
23019
23020 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) SWIG_fail;
23021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23022 if (!SWIG_IsOK(res1)) {
23023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Enable" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23024 }
23025 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23026 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23027 if (!SWIG_IsOK(ecode2)) {
23028 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_Enable" "', expected argument " "2"" of type '" "bool""'");
23029 }
23030 arg2 = static_cast< bool >(val2);
23031 {
23032 PyThreadState* __tstate = wxPyBeginAllowThreads();
23033 result = (bool)(arg1)->Enable(arg2);
23034 wxPyEndAllowThreads(__tstate);
23035 if (PyErr_Occurred()) SWIG_fail;
23036 }
23037 {
23038 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23039 }
23040 return resultobj;
23041fail:
23042 return NULL;
d55e5bfc
RD
23043}
23044
23045
1bd55598
RD
23046SWIGINTERN PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23047 PyObject *resultobj = 0;
23048 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23049 void *argp1 = 0 ;
23050 int res1 = 0 ;
23051 PyObject *swig_obj[1] ;
23052
23053 if (!args) SWIG_fail;
23054 swig_obj[0] = args;
23055 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23056 if (!SWIG_IsOK(res1)) {
23057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Toggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23058 }
23059 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23060 {
23061 PyThreadState* __tstate = wxPyBeginAllowThreads();
23062 (arg1)->Toggle();
23063 wxPyEndAllowThreads(__tstate);
23064 if (PyErr_Occurred()) SWIG_fail;
23065 }
23066 resultobj = SWIG_Py_Void();
23067 return resultobj;
23068fail:
23069 return NULL;
23070}
23071
23072
23073SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23074 PyObject *resultobj = 0;
23075 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23076 bool arg2 ;
23077 bool result;
23078 void *argp1 = 0 ;
23079 int res1 = 0 ;
23080 bool val2 ;
23081 int ecode2 = 0 ;
23082 PyObject * obj0 = 0 ;
23083 PyObject * obj1 = 0 ;
23084 char * kwnames[] = {
23085 (char *) "self",(char *) "toggle", NULL
23086 };
23087
23088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) SWIG_fail;
23089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23090 if (!SWIG_IsOK(res1)) {
23091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23092 }
23093 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23094 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23095 if (!SWIG_IsOK(ecode2)) {
23096 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "2"" of type '" "bool""'");
23097 }
23098 arg2 = static_cast< bool >(val2);
23099 {
23100 PyThreadState* __tstate = wxPyBeginAllowThreads();
23101 result = (bool)(arg1)->SetToggle(arg2);
23102 wxPyEndAllowThreads(__tstate);
23103 if (PyErr_Occurred()) SWIG_fail;
23104 }
23105 {
23106 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23107 }
23108 return resultobj;
23109fail:
23110 return NULL;
23111}
23112
23113
23114SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23115 PyObject *resultobj = 0;
23116 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23117 wxString *arg2 = 0 ;
23118 bool result;
23119 void *argp1 = 0 ;
23120 int res1 = 0 ;
23121 bool temp2 = false ;
23122 PyObject * obj0 = 0 ;
23123 PyObject * obj1 = 0 ;
23124 char * kwnames[] = {
23125 (char *) "self",(char *) "help", NULL
23126 };
23127
23128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23130 if (!SWIG_IsOK(res1)) {
23131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23132 }
23133 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23134 {
23135 arg2 = wxString_in_helper(obj1);
23136 if (arg2 == NULL) SWIG_fail;
23137 temp2 = true;
23138 }
23139 {
23140 PyThreadState* __tstate = wxPyBeginAllowThreads();
23141 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
23142 wxPyEndAllowThreads(__tstate);
23143 if (PyErr_Occurred()) SWIG_fail;
23144 }
23145 {
23146 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23147 }
23148 {
23149 if (temp2)
23150 delete arg2;
23151 }
23152 return resultobj;
23153fail:
23154 {
23155 if (temp2)
23156 delete arg2;
23157 }
23158 return NULL;
23159}
23160
23161
23162SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23163 PyObject *resultobj = 0;
23164 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23165 wxString *arg2 = 0 ;
23166 bool result;
23167 void *argp1 = 0 ;
23168 int res1 = 0 ;
23169 bool temp2 = false ;
23170 PyObject * obj0 = 0 ;
23171 PyObject * obj1 = 0 ;
23172 char * kwnames[] = {
23173 (char *) "self",(char *) "help", NULL
23174 };
23175
23176 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23177 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23178 if (!SWIG_IsOK(res1)) {
23179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23180 }
23181 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23182 {
23183 arg2 = wxString_in_helper(obj1);
23184 if (arg2 == NULL) SWIG_fail;
23185 temp2 = true;
23186 }
23187 {
23188 PyThreadState* __tstate = wxPyBeginAllowThreads();
23189 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
23190 wxPyEndAllowThreads(__tstate);
23191 if (PyErr_Occurred()) SWIG_fail;
23192 }
23193 {
23194 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23195 }
23196 {
23197 if (temp2)
23198 delete arg2;
23199 }
23200 return resultobj;
23201fail:
23202 {
23203 if (temp2)
23204 delete arg2;
23205 }
23206 return NULL;
23207}
23208
23209
23210SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23211 PyObject *resultobj = 0;
23212 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23213 wxBitmap *arg2 = 0 ;
23214 void *argp1 = 0 ;
23215 int res1 = 0 ;
23216 void *argp2 = 0 ;
23217 int res2 = 0 ;
23218 PyObject * obj0 = 0 ;
23219 PyObject * obj1 = 0 ;
23220 char * kwnames[] = {
23221 (char *) "self",(char *) "bmp", NULL
23222 };
23223
23224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23226 if (!SWIG_IsOK(res1)) {
23227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23228 }
23229 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23230 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23231 if (!SWIG_IsOK(res2)) {
23232 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23233 }
23234 if (!argp2) {
23235 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23236 }
23237 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23238 {
23239 PyThreadState* __tstate = wxPyBeginAllowThreads();
23240 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
23241 wxPyEndAllowThreads(__tstate);
23242 if (PyErr_Occurred()) SWIG_fail;
23243 }
23244 resultobj = SWIG_Py_Void();
23245 return resultobj;
23246fail:
23247 return NULL;
23248}
23249
23250
23251SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23252 PyObject *resultobj = 0;
23253 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23254 wxBitmap *arg2 = 0 ;
23255 void *argp1 = 0 ;
23256 int res1 = 0 ;
23257 void *argp2 = 0 ;
23258 int res2 = 0 ;
23259 PyObject * obj0 = 0 ;
23260 PyObject * obj1 = 0 ;
23261 char * kwnames[] = {
23262 (char *) "self",(char *) "bmp", NULL
23263 };
23264
23265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23266 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23267 if (!SWIG_IsOK(res1)) {
23268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23269 }
23270 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23271 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23272 if (!SWIG_IsOK(res2)) {
23273 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23274 }
23275 if (!argp2) {
23276 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23277 }
23278 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23279 {
23280 PyThreadState* __tstate = wxPyBeginAllowThreads();
23281 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
23282 wxPyEndAllowThreads(__tstate);
23283 if (PyErr_Occurred()) SWIG_fail;
23284 }
23285 resultobj = SWIG_Py_Void();
23286 return resultobj;
23287fail:
23288 return NULL;
23289}
23290
23291
23292SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23293 PyObject *resultobj = 0;
23294 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23295 wxString *arg2 = 0 ;
23296 void *argp1 = 0 ;
23297 int res1 = 0 ;
23298 bool temp2 = false ;
23299 PyObject * obj0 = 0 ;
23300 PyObject * obj1 = 0 ;
23301 char * kwnames[] = {
23302 (char *) "self",(char *) "label", NULL
23303 };
23304
23305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
23306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23307 if (!SWIG_IsOK(res1)) {
23308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23309 }
23310 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23311 {
23312 arg2 = wxString_in_helper(obj1);
23313 if (arg2 == NULL) SWIG_fail;
23314 temp2 = true;
23315 }
23316 {
23317 PyThreadState* __tstate = wxPyBeginAllowThreads();
23318 (arg1)->SetLabel((wxString const &)*arg2);
23319 wxPyEndAllowThreads(__tstate);
23320 if (PyErr_Occurred()) SWIG_fail;
23321 }
23322 resultobj = SWIG_Py_Void();
23323 {
23324 if (temp2)
23325 delete arg2;
23326 }
23327 return resultobj;
23328fail:
23329 {
23330 if (temp2)
23331 delete arg2;
23332 }
23333 return NULL;
d55e5bfc
RD
23334}
23335
23336
1bd55598
RD
23337SWIGINTERN PyObject *_wrap_ToolBarToolBase_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23338 PyObject *resultobj = 0;
23339 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23340 void *argp1 = 0 ;
23341 int res1 = 0 ;
23342 PyObject *swig_obj[1] ;
23343
23344 if (!args) SWIG_fail;
23345 swig_obj[0] = args;
23346 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23347 if (!SWIG_IsOK(res1)) {
23348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Detach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23349 }
23350 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23351 {
23352 PyThreadState* __tstate = wxPyBeginAllowThreads();
23353 (arg1)->Detach();
23354 wxPyEndAllowThreads(__tstate);
23355 if (PyErr_Occurred()) SWIG_fail;
23356 }
23357 resultobj = SWIG_Py_Void();
23358 return resultobj;
23359fail:
23360 return NULL;
23361}
23362
23363
23364SWIGINTERN PyObject *_wrap_ToolBarToolBase_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23365 PyObject *resultobj = 0;
23366 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23367 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
23368 void *argp1 = 0 ;
23369 int res1 = 0 ;
23370 void *argp2 = 0 ;
23371 int res2 = 0 ;
23372 PyObject * obj0 = 0 ;
23373 PyObject * obj1 = 0 ;
23374 char * kwnames[] = {
23375 (char *) "self",(char *) "tbar", NULL
23376 };
23377
23378 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) SWIG_fail;
23379 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23380 if (!SWIG_IsOK(res1)) {
23381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Attach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23382 }
23383 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23384 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23385 if (!SWIG_IsOK(res2)) {
23386 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_Attach" "', expected argument " "2"" of type '" "wxToolBarBase *""'");
23387 }
23388 arg2 = reinterpret_cast< wxToolBarBase * >(argp2);
23389 {
23390 PyThreadState* __tstate = wxPyBeginAllowThreads();
23391 (arg1)->Attach(arg2);
23392 wxPyEndAllowThreads(__tstate);
23393 if (PyErr_Occurred()) SWIG_fail;
23394 }
23395 resultobj = SWIG_Py_Void();
23396 return resultobj;
23397fail:
23398 return NULL;
d55e5bfc
RD
23399}
23400
23401
1bd55598
RD
23402SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23403 PyObject *resultobj = 0;
23404 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23405 PyObject *result = 0 ;
23406 void *argp1 = 0 ;
23407 int res1 = 0 ;
23408 PyObject *swig_obj[1] ;
23409
23410 if (!args) SWIG_fail;
23411 swig_obj[0] = args;
23412 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23413 if (!SWIG_IsOK(res1)) {
23414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23415 }
23416 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23417 {
23418 PyThreadState* __tstate = wxPyBeginAllowThreads();
23419 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
23420 wxPyEndAllowThreads(__tstate);
23421 if (PyErr_Occurred()) SWIG_fail;
23422 }
23423 resultobj = result;
23424 return resultobj;
23425fail:
23426 return NULL;
23427}
23428
23429
23430SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23431 PyObject *resultobj = 0;
23432 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23433 PyObject *arg2 = (PyObject *) 0 ;
23434 void *argp1 = 0 ;
23435 int res1 = 0 ;
23436 PyObject * obj0 = 0 ;
23437 PyObject * obj1 = 0 ;
23438 char * kwnames[] = {
23439 (char *) "self",(char *) "clientData", NULL
23440 };
23441
23442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) SWIG_fail;
23443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23444 if (!SWIG_IsOK(res1)) {
23445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23446 }
23447 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23448 arg2 = obj1;
23449 {
23450 PyThreadState* __tstate = wxPyBeginAllowThreads();
23451 wxToolBarToolBase_SetClientData(arg1,arg2);
23452 wxPyEndAllowThreads(__tstate);
23453 if (PyErr_Occurred()) SWIG_fail;
23454 }
23455 resultobj = SWIG_Py_Void();
23456 return resultobj;
23457fail:
23458 return NULL;
23459}
23460
23461
23462SWIGINTERN PyObject *ToolBarToolBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23463 PyObject *obj;
23464 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23465 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarToolBase, SWIG_NewClientData(obj));
23466 return SWIG_Py_Void();
23467}
23468
23469SWIGINTERN PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23470 PyObject *resultobj = 0;
23471 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23472 int arg2 ;
23473 wxString *arg3 = 0 ;
23474 wxBitmap *arg4 = 0 ;
23475 wxBitmap const &arg5_defvalue = wxNullBitmap ;
23476 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
23477 wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ;
23478 wxString const &arg7_defvalue = wxPyEmptyString ;
23479 wxString *arg7 = (wxString *) &arg7_defvalue ;
23480 wxString const &arg8_defvalue = wxPyEmptyString ;
23481 wxString *arg8 = (wxString *) &arg8_defvalue ;
23482 PyObject *arg9 = (PyObject *) NULL ;
23483 wxToolBarToolBase *result = 0 ;
23484 void *argp1 = 0 ;
23485 int res1 = 0 ;
23486 int val2 ;
23487 int ecode2 = 0 ;
23488 bool temp3 = false ;
23489 void *argp4 = 0 ;
23490 int res4 = 0 ;
23491 void *argp5 = 0 ;
23492 int res5 = 0 ;
23493 int val6 ;
23494 int ecode6 = 0 ;
23495 bool temp7 = false ;
23496 bool temp8 = false ;
23497 PyObject * obj0 = 0 ;
23498 PyObject * obj1 = 0 ;
23499 PyObject * obj2 = 0 ;
23500 PyObject * obj3 = 0 ;
23501 PyObject * obj4 = 0 ;
23502 PyObject * obj5 = 0 ;
23503 PyObject * obj6 = 0 ;
23504 PyObject * obj7 = 0 ;
23505 PyObject * obj8 = 0 ;
23506 char * kwnames[] = {
23507 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23508 };
23509
23510 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
23511 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23512 if (!SWIG_IsOK(res1)) {
23513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23514 }
23515 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23516 ecode2 = SWIG_AsVal_int(obj1, &val2);
23517 if (!SWIG_IsOK(ecode2)) {
23518 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "2"" of type '" "int""'");
23519 }
23520 arg2 = static_cast< int >(val2);
23521 {
23522 arg3 = wxString_in_helper(obj2);
23523 if (arg3 == NULL) SWIG_fail;
23524 temp3 = true;
23525 }
23526 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
23527 if (!SWIG_IsOK(res4)) {
23528 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23529 }
23530 if (!argp4) {
23531 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23532 }
23533 arg4 = reinterpret_cast< wxBitmap * >(argp4);
23534 if (obj4) {
23535 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23536 if (!SWIG_IsOK(res5)) {
23537 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
36ed4f51 23538 }
1bd55598
RD
23539 if (!argp5) {
23540 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
f20a2e1f 23541 }
1bd55598
RD
23542 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23543 }
23544 if (obj5) {
23545 ecode6 = SWIG_AsVal_int(obj5, &val6);
23546 if (!SWIG_IsOK(ecode6)) {
23547 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "6"" of type '" "wxItemKind""'");
23548 }
23549 arg6 = static_cast< wxItemKind >(val6);
23550 }
23551 if (obj6) {
f20a2e1f 23552 {
1bd55598
RD
23553 arg7 = wxString_in_helper(obj6);
23554 if (arg7 == NULL) SWIG_fail;
23555 temp7 = true;
f20a2e1f 23556 }
1bd55598
RD
23557 }
23558 if (obj7) {
f20a2e1f 23559 {
1bd55598
RD
23560 arg8 = wxString_in_helper(obj7);
23561 if (arg8 == NULL) SWIG_fail;
23562 temp8 = true;
d55e5bfc 23563 }
1bd55598
RD
23564 }
23565 if (obj8) {
23566 arg9 = obj8;
23567 }
23568 {
23569 PyThreadState* __tstate = wxPyBeginAllowThreads();
23570 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
23571 wxPyEndAllowThreads(__tstate);
23572 if (PyErr_Occurred()) SWIG_fail;
23573 }
23574 {
23575 resultobj = wxPyMake_wxObject(result, (bool)0);
23576 }
23577 {
23578 if (temp3)
23579 delete arg3;
23580 }
23581 {
23582 if (temp7)
23583 delete arg7;
23584 }
23585 {
23586 if (temp8)
23587 delete arg8;
23588 }
23589 return resultobj;
23590fail:
23591 {
23592 if (temp3)
23593 delete arg3;
23594 }
23595 {
23596 if (temp7)
23597 delete arg7;
23598 }
23599 {
23600 if (temp8)
23601 delete arg8;
23602 }
23603 return NULL;
23604}
23605
23606
23607SWIGINTERN PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23608 PyObject *resultobj = 0;
23609 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23610 size_t arg2 ;
23611 int arg3 ;
23612 wxString *arg4 = 0 ;
23613 wxBitmap *arg5 = 0 ;
23614 wxBitmap const &arg6_defvalue = wxNullBitmap ;
23615 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
23616 wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ;
23617 wxString const &arg8_defvalue = wxPyEmptyString ;
23618 wxString *arg8 = (wxString *) &arg8_defvalue ;
23619 wxString const &arg9_defvalue = wxPyEmptyString ;
23620 wxString *arg9 = (wxString *) &arg9_defvalue ;
23621 PyObject *arg10 = (PyObject *) NULL ;
23622 wxToolBarToolBase *result = 0 ;
23623 void *argp1 = 0 ;
23624 int res1 = 0 ;
23625 size_t val2 ;
23626 int ecode2 = 0 ;
23627 int val3 ;
23628 int ecode3 = 0 ;
23629 bool temp4 = false ;
23630 void *argp5 = 0 ;
23631 int res5 = 0 ;
23632 void *argp6 = 0 ;
23633 int res6 = 0 ;
23634 int val7 ;
23635 int ecode7 = 0 ;
23636 bool temp8 = false ;
23637 bool temp9 = false ;
23638 PyObject * obj0 = 0 ;
23639 PyObject * obj1 = 0 ;
23640 PyObject * obj2 = 0 ;
23641 PyObject * obj3 = 0 ;
23642 PyObject * obj4 = 0 ;
23643 PyObject * obj5 = 0 ;
23644 PyObject * obj6 = 0 ;
23645 PyObject * obj7 = 0 ;
23646 PyObject * obj8 = 0 ;
23647 PyObject * obj9 = 0 ;
23648 char * kwnames[] = {
23649 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23650 };
23651
23652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
23653 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23654 if (!SWIG_IsOK(res1)) {
23655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23656 }
23657 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23658 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23659 if (!SWIG_IsOK(ecode2)) {
23660 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "2"" of type '" "size_t""'");
23661 }
23662 arg2 = static_cast< size_t >(val2);
23663 ecode3 = SWIG_AsVal_int(obj2, &val3);
23664 if (!SWIG_IsOK(ecode3)) {
23665 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "3"" of type '" "int""'");
23666 }
23667 arg3 = static_cast< int >(val3);
23668 {
23669 arg4 = wxString_in_helper(obj3);
23670 if (arg4 == NULL) SWIG_fail;
23671 temp4 = true;
23672 }
23673 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23674 if (!SWIG_IsOK(res5)) {
23675 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23676 }
23677 if (!argp5) {
23678 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23679 }
23680 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23681 if (obj5) {
23682 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxBitmap, 0 | 0);
23683 if (!SWIG_IsOK(res6)) {
23684 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
d55e5bfc 23685 }
1bd55598
RD
23686 if (!argp6) {
23687 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
d55e5bfc 23688 }
1bd55598
RD
23689 arg6 = reinterpret_cast< wxBitmap * >(argp6);
23690 }
23691 if (obj6) {
23692 ecode7 = SWIG_AsVal_int(obj6, &val7);
23693 if (!SWIG_IsOK(ecode7)) {
23694 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "7"" of type '" "wxItemKind""'");
23695 }
23696 arg7 = static_cast< wxItemKind >(val7);
23697 }
23698 if (obj7) {
d55e5bfc 23699 {
1bd55598
RD
23700 arg8 = wxString_in_helper(obj7);
23701 if (arg8 == NULL) SWIG_fail;
23702 temp8 = true;
d55e5bfc 23703 }
1bd55598
RD
23704 }
23705 if (obj8) {
d55e5bfc 23706 {
1bd55598
RD
23707 arg9 = wxString_in_helper(obj8);
23708 if (arg9 == NULL) SWIG_fail;
23709 temp9 = true;
d55e5bfc 23710 }
1bd55598
RD
23711 }
23712 if (obj9) {
23713 arg10 = obj9;
23714 }
23715 {
23716 PyThreadState* __tstate = wxPyBeginAllowThreads();
23717 result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10);
23718 wxPyEndAllowThreads(__tstate);
23719 if (PyErr_Occurred()) SWIG_fail;
23720 }
23721 {
23722 resultobj = wxPyMake_wxObject(result, (bool)0);
23723 }
23724 {
23725 if (temp4)
23726 delete arg4;
23727 }
23728 {
23729 if (temp8)
23730 delete arg8;
23731 }
23732 {
23733 if (temp9)
23734 delete arg9;
23735 }
23736 return resultobj;
23737fail:
23738 {
23739 if (temp4)
23740 delete arg4;
23741 }
23742 {
23743 if (temp8)
23744 delete arg8;
23745 }
23746 {
23747 if (temp9)
23748 delete arg9;
23749 }
23750 return NULL;
23751}
23752
23753
23754SWIGINTERN PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23755 PyObject *resultobj = 0;
23756 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23757 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
23758 wxToolBarToolBase *result = 0 ;
23759 void *argp1 = 0 ;
23760 int res1 = 0 ;
23761 void *argp2 = 0 ;
23762 int res2 = 0 ;
23763 PyObject * obj0 = 0 ;
23764 PyObject * obj1 = 0 ;
23765 char * kwnames[] = {
23766 (char *) "self",(char *) "tool", NULL
23767 };
23768
23769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) SWIG_fail;
23770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23771 if (!SWIG_IsOK(res1)) {
23772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23773 }
23774 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23775 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23776 if (!SWIG_IsOK(res2)) {
23777 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "2"" of type '" "wxToolBarToolBase *""'");
23778 }
23779 arg2 = reinterpret_cast< wxToolBarToolBase * >(argp2);
23780 {
23781 PyThreadState* __tstate = wxPyBeginAllowThreads();
23782 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
23783 wxPyEndAllowThreads(__tstate);
23784 if (PyErr_Occurred()) SWIG_fail;
23785 }
23786 {
23787 resultobj = wxPyMake_wxObject(result, (bool)0);
23788 }
23789 return resultobj;
23790fail:
23791 return NULL;
23792}
23793
23794
23795SWIGINTERN PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23796 PyObject *resultobj = 0;
23797 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23798 size_t arg2 ;
23799 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
23800 wxToolBarToolBase *result = 0 ;
23801 void *argp1 = 0 ;
23802 int res1 = 0 ;
23803 size_t val2 ;
23804 int ecode2 = 0 ;
23805 void *argp3 = 0 ;
23806 int res3 = 0 ;
23807 PyObject * obj0 = 0 ;
23808 PyObject * obj1 = 0 ;
23809 PyObject * obj2 = 0 ;
23810 char * kwnames[] = {
23811 (char *) "self",(char *) "pos",(char *) "tool", NULL
23812 };
23813
23814 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23815 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23816 if (!SWIG_IsOK(res1)) {
23817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23818 }
23819 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23820 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23821 if (!SWIG_IsOK(ecode2)) {
23822 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "2"" of type '" "size_t""'");
23823 }
23824 arg2 = static_cast< size_t >(val2);
23825 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23826 if (!SWIG_IsOK(res3)) {
23827 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "3"" of type '" "wxToolBarToolBase *""'");
23828 }
23829 arg3 = reinterpret_cast< wxToolBarToolBase * >(argp3);
23830 {
23831 PyThreadState* __tstate = wxPyBeginAllowThreads();
23832 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
23833 wxPyEndAllowThreads(__tstate);
23834 if (PyErr_Occurred()) SWIG_fail;
23835 }
23836 {
23837 resultobj = wxPyMake_wxObject(result, (bool)0);
23838 }
23839 return resultobj;
23840fail:
23841 return NULL;
23842}
23843
23844
23845SWIGINTERN PyObject *_wrap_ToolBarBase_AddControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23846 PyObject *resultobj = 0;
23847 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23848 wxControl *arg2 = (wxControl *) 0 ;
23849 wxToolBarToolBase *result = 0 ;
23850 void *argp1 = 0 ;
23851 int res1 = 0 ;
23852 void *argp2 = 0 ;
23853 int res2 = 0 ;
23854 PyObject * obj0 = 0 ;
23855 PyObject * obj1 = 0 ;
23856 char * kwnames[] = {
23857 (char *) "self",(char *) "control", NULL
23858 };
23859
23860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) SWIG_fail;
23861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23862 if (!SWIG_IsOK(res1)) {
23863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23864 }
23865 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23866 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxControl, 0 | 0 );
23867 if (!SWIG_IsOK(res2)) {
23868 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddControl" "', expected argument " "2"" of type '" "wxControl *""'");
23869 }
23870 arg2 = reinterpret_cast< wxControl * >(argp2);
23871 {
23872 PyThreadState* __tstate = wxPyBeginAllowThreads();
23873 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
23874 wxPyEndAllowThreads(__tstate);
23875 if (PyErr_Occurred()) SWIG_fail;
23876 }
23877 {
23878 resultobj = wxPyMake_wxObject(result, (bool)0);
23879 }
23880 return resultobj;
23881fail:
23882 return NULL;
23883}
23884
23885
23886SWIGINTERN PyObject *_wrap_ToolBarBase_InsertControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23887 PyObject *resultobj = 0;
23888 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23889 size_t arg2 ;
23890 wxControl *arg3 = (wxControl *) 0 ;
23891 wxToolBarToolBase *result = 0 ;
23892 void *argp1 = 0 ;
23893 int res1 = 0 ;
23894 size_t val2 ;
23895 int ecode2 = 0 ;
23896 void *argp3 = 0 ;
23897 int res3 = 0 ;
23898 PyObject * obj0 = 0 ;
23899 PyObject * obj1 = 0 ;
23900 PyObject * obj2 = 0 ;
23901 char * kwnames[] = {
23902 (char *) "self",(char *) "pos",(char *) "control", NULL
23903 };
23904
23905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23907 if (!SWIG_IsOK(res1)) {
23908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23909 }
23910 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23911 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23912 if (!SWIG_IsOK(ecode2)) {
23913 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertControl" "', expected argument " "2"" of type '" "size_t""'");
23914 }
23915 arg2 = static_cast< size_t >(val2);
23916 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxControl, 0 | 0 );
23917 if (!SWIG_IsOK(res3)) {
23918 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertControl" "', expected argument " "3"" of type '" "wxControl *""'");
23919 }
23920 arg3 = reinterpret_cast< wxControl * >(argp3);
23921 {
23922 PyThreadState* __tstate = wxPyBeginAllowThreads();
23923 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
23924 wxPyEndAllowThreads(__tstate);
23925 if (PyErr_Occurred()) SWIG_fail;
23926 }
23927 {
23928 resultobj = wxPyMake_wxObject(result, (bool)0);
23929 }
23930 return resultobj;
23931fail:
23932 return NULL;
23933}
23934
23935
23936SWIGINTERN PyObject *_wrap_ToolBarBase_FindControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23937 PyObject *resultobj = 0;
23938 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23939 int arg2 ;
23940 wxControl *result = 0 ;
23941 void *argp1 = 0 ;
23942 int res1 = 0 ;
23943 int val2 ;
23944 int ecode2 = 0 ;
23945 PyObject * obj0 = 0 ;
23946 PyObject * obj1 = 0 ;
23947 char * kwnames[] = {
23948 (char *) "self",(char *) "id", NULL
23949 };
23950
23951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) SWIG_fail;
23952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23953 if (!SWIG_IsOK(res1)) {
23954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23955 }
23956 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23957 ecode2 = SWIG_AsVal_int(obj1, &val2);
23958 if (!SWIG_IsOK(ecode2)) {
23959 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindControl" "', expected argument " "2"" of type '" "int""'");
23960 }
23961 arg2 = static_cast< int >(val2);
23962 {
23963 PyThreadState* __tstate = wxPyBeginAllowThreads();
23964 result = (wxControl *)(arg1)->FindControl(arg2);
23965 wxPyEndAllowThreads(__tstate);
23966 if (PyErr_Occurred()) SWIG_fail;
23967 }
23968 {
23969 resultobj = wxPyMake_wxObject(result, 0);
23970 }
23971 return resultobj;
23972fail:
23973 return NULL;
d55e5bfc
RD
23974}
23975
23976
1bd55598
RD
23977SWIGINTERN PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23978 PyObject *resultobj = 0;
23979 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23980 wxToolBarToolBase *result = 0 ;
23981 void *argp1 = 0 ;
23982 int res1 = 0 ;
23983 PyObject *swig_obj[1] ;
23984
23985 if (!args) SWIG_fail;
23986 swig_obj[0] = args;
23987 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23988 if (!SWIG_IsOK(res1)) {
23989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23990 }
23991 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23992 {
23993 PyThreadState* __tstate = wxPyBeginAllowThreads();
23994 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
23995 wxPyEndAllowThreads(__tstate);
23996 if (PyErr_Occurred()) SWIG_fail;
23997 }
23998 {
23999 resultobj = wxPyMake_wxObject(result, (bool)0);
24000 }
24001 return resultobj;
24002fail:
24003 return NULL;
24004}
24005
24006
24007SWIGINTERN PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24008 PyObject *resultobj = 0;
24009 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24010 size_t arg2 ;
24011 wxToolBarToolBase *result = 0 ;
24012 void *argp1 = 0 ;
24013 int res1 = 0 ;
24014 size_t val2 ;
24015 int ecode2 = 0 ;
24016 PyObject * obj0 = 0 ;
24017 PyObject * obj1 = 0 ;
24018 char * kwnames[] = {
24019 (char *) "self",(char *) "pos", NULL
24020 };
24021
24022 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) SWIG_fail;
24023 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24024 if (!SWIG_IsOK(res1)) {
24025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24026 }
24027 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24028 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24029 if (!SWIG_IsOK(ecode2)) {
24030 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "2"" of type '" "size_t""'");
24031 }
24032 arg2 = static_cast< size_t >(val2);
24033 {
24034 PyThreadState* __tstate = wxPyBeginAllowThreads();
24035 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
24036 wxPyEndAllowThreads(__tstate);
24037 if (PyErr_Occurred()) SWIG_fail;
24038 }
24039 {
24040 resultobj = wxPyMake_wxObject(result, (bool)0);
24041 }
24042 return resultobj;
24043fail:
24044 return NULL;
24045}
24046
24047
24048SWIGINTERN PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24049 PyObject *resultobj = 0;
24050 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24051 int arg2 ;
24052 wxToolBarToolBase *result = 0 ;
24053 void *argp1 = 0 ;
24054 int res1 = 0 ;
24055 int val2 ;
24056 int ecode2 = 0 ;
24057 PyObject * obj0 = 0 ;
24058 PyObject * obj1 = 0 ;
24059 char * kwnames[] = {
24060 (char *) "self",(char *) "id", NULL
24061 };
24062
24063 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) SWIG_fail;
24064 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24065 if (!SWIG_IsOK(res1)) {
24066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24067 }
24068 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24069 ecode2 = SWIG_AsVal_int(obj1, &val2);
24070 if (!SWIG_IsOK(ecode2)) {
24071 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "2"" of type '" "int""'");
24072 }
24073 arg2 = static_cast< int >(val2);
24074 {
24075 PyThreadState* __tstate = wxPyBeginAllowThreads();
24076 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
24077 wxPyEndAllowThreads(__tstate);
24078 if (PyErr_Occurred()) SWIG_fail;
24079 }
24080 {
24081 resultobj = wxPyMake_wxObject(result, (bool)0);
24082 }
24083 return resultobj;
24084fail:
24085 return NULL;
24086}
24087
24088
24089SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24090 PyObject *resultobj = 0;
24091 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24092 size_t arg2 ;
24093 bool result;
24094 void *argp1 = 0 ;
24095 int res1 = 0 ;
24096 size_t val2 ;
24097 int ecode2 = 0 ;
24098 PyObject * obj0 = 0 ;
24099 PyObject * obj1 = 0 ;
24100 char * kwnames[] = {
24101 (char *) "self",(char *) "pos", NULL
24102 };
24103
24104 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) SWIG_fail;
24105 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24106 if (!SWIG_IsOK(res1)) {
24107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24108 }
24109 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24110 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24111 if (!SWIG_IsOK(ecode2)) {
24112 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "2"" of type '" "size_t""'");
24113 }
24114 arg2 = static_cast< size_t >(val2);
24115 {
24116 PyThreadState* __tstate = wxPyBeginAllowThreads();
24117 result = (bool)(arg1)->DeleteToolByPos(arg2);
24118 wxPyEndAllowThreads(__tstate);
24119 if (PyErr_Occurred()) SWIG_fail;
24120 }
24121 {
24122 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24123 }
24124 return resultobj;
24125fail:
24126 return NULL;
24127}
24128
24129
24130SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24131 PyObject *resultobj = 0;
24132 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24133 int arg2 ;
24134 bool result;
24135 void *argp1 = 0 ;
24136 int res1 = 0 ;
24137 int val2 ;
24138 int ecode2 = 0 ;
24139 PyObject * obj0 = 0 ;
24140 PyObject * obj1 = 0 ;
24141 char * kwnames[] = {
24142 (char *) "self",(char *) "id", NULL
24143 };
24144
24145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) SWIG_fail;
24146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24147 if (!SWIG_IsOK(res1)) {
24148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24149 }
24150 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24151 ecode2 = SWIG_AsVal_int(obj1, &val2);
24152 if (!SWIG_IsOK(ecode2)) {
24153 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "2"" of type '" "int""'");
24154 }
24155 arg2 = static_cast< int >(val2);
24156 {
24157 PyThreadState* __tstate = wxPyBeginAllowThreads();
24158 result = (bool)(arg1)->DeleteTool(arg2);
24159 wxPyEndAllowThreads(__tstate);
24160 if (PyErr_Occurred()) SWIG_fail;
24161 }
24162 {
24163 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24164 }
24165 return resultobj;
24166fail:
24167 return NULL;
d55e5bfc
RD
24168}
24169
24170
1bd55598
RD
24171SWIGINTERN PyObject *_wrap_ToolBarBase_ClearTools(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24172 PyObject *resultobj = 0;
24173 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24174 void *argp1 = 0 ;
24175 int res1 = 0 ;
24176 PyObject *swig_obj[1] ;
24177
24178 if (!args) SWIG_fail;
24179 swig_obj[0] = args;
24180 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24181 if (!SWIG_IsOK(res1)) {
24182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ClearTools" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24183 }
24184 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24185 {
24186 PyThreadState* __tstate = wxPyBeginAllowThreads();
24187 (arg1)->ClearTools();
24188 wxPyEndAllowThreads(__tstate);
24189 if (PyErr_Occurred()) SWIG_fail;
24190 }
24191 resultobj = SWIG_Py_Void();
24192 return resultobj;
24193fail:
24194 return NULL;
d55e5bfc
RD
24195}
24196
24197
1bd55598
RD
24198SWIGINTERN PyObject *_wrap_ToolBarBase_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24199 PyObject *resultobj = 0;
24200 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24201 bool result;
24202 void *argp1 = 0 ;
24203 int res1 = 0 ;
24204 PyObject *swig_obj[1] ;
24205
24206 if (!args) SWIG_fail;
24207 swig_obj[0] = args;
24208 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24209 if (!SWIG_IsOK(res1)) {
24210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_Realize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24211 }
24212 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24213 {
24214 PyThreadState* __tstate = wxPyBeginAllowThreads();
24215 result = (bool)(arg1)->Realize();
24216 wxPyEndAllowThreads(__tstate);
24217 if (PyErr_Occurred()) SWIG_fail;
24218 }
24219 {
24220 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24221 }
24222 return resultobj;
24223fail:
24224 return NULL;
24225}
24226
24227
24228SWIGINTERN PyObject *_wrap_ToolBarBase_EnableTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24229 PyObject *resultobj = 0;
24230 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24231 int arg2 ;
24232 bool arg3 ;
24233 void *argp1 = 0 ;
24234 int res1 = 0 ;
24235 int val2 ;
24236 int ecode2 = 0 ;
24237 bool val3 ;
24238 int ecode3 = 0 ;
24239 PyObject * obj0 = 0 ;
24240 PyObject * obj1 = 0 ;
24241 PyObject * obj2 = 0 ;
24242 char * kwnames[] = {
24243 (char *) "self",(char *) "id",(char *) "enable", NULL
24244 };
24245
24246 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24247 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24248 if (!SWIG_IsOK(res1)) {
24249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_EnableTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24250 }
24251 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24252 ecode2 = SWIG_AsVal_int(obj1, &val2);
24253 if (!SWIG_IsOK(ecode2)) {
24254 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_EnableTool" "', expected argument " "2"" of type '" "int""'");
24255 }
24256 arg2 = static_cast< int >(val2);
24257 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24258 if (!SWIG_IsOK(ecode3)) {
24259 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_EnableTool" "', expected argument " "3"" of type '" "bool""'");
24260 }
24261 arg3 = static_cast< bool >(val3);
24262 {
24263 PyThreadState* __tstate = wxPyBeginAllowThreads();
24264 (arg1)->EnableTool(arg2,arg3);
24265 wxPyEndAllowThreads(__tstate);
24266 if (PyErr_Occurred()) SWIG_fail;
24267 }
24268 resultobj = SWIG_Py_Void();
24269 return resultobj;
24270fail:
24271 return NULL;
24272}
24273
24274
24275SWIGINTERN PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24276 PyObject *resultobj = 0;
24277 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24278 int arg2 ;
24279 bool arg3 ;
24280 void *argp1 = 0 ;
24281 int res1 = 0 ;
24282 int val2 ;
24283 int ecode2 = 0 ;
24284 bool val3 ;
24285 int ecode3 = 0 ;
24286 PyObject * obj0 = 0 ;
24287 PyObject * obj1 = 0 ;
24288 PyObject * obj2 = 0 ;
24289 char * kwnames[] = {
24290 (char *) "self",(char *) "id",(char *) "toggle", NULL
24291 };
24292
24293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24295 if (!SWIG_IsOK(res1)) {
24296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24297 }
24298 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24299 ecode2 = SWIG_AsVal_int(obj1, &val2);
24300 if (!SWIG_IsOK(ecode2)) {
24301 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "2"" of type '" "int""'");
24302 }
24303 arg2 = static_cast< int >(val2);
24304 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24305 if (!SWIG_IsOK(ecode3)) {
24306 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "3"" of type '" "bool""'");
24307 }
24308 arg3 = static_cast< bool >(val3);
24309 {
24310 PyThreadState* __tstate = wxPyBeginAllowThreads();
24311 (arg1)->ToggleTool(arg2,arg3);
24312 wxPyEndAllowThreads(__tstate);
24313 if (PyErr_Occurred()) SWIG_fail;
24314 }
24315 resultobj = SWIG_Py_Void();
24316 return resultobj;
24317fail:
24318 return NULL;
24319}
24320
24321
24322SWIGINTERN PyObject *_wrap_ToolBarBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24323 PyObject *resultobj = 0;
24324 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24325 int arg2 ;
24326 bool arg3 ;
24327 void *argp1 = 0 ;
24328 int res1 = 0 ;
24329 int val2 ;
24330 int ecode2 = 0 ;
24331 bool val3 ;
24332 int ecode3 = 0 ;
24333 PyObject * obj0 = 0 ;
24334 PyObject * obj1 = 0 ;
24335 PyObject * obj2 = 0 ;
24336 char * kwnames[] = {
24337 (char *) "self",(char *) "id",(char *) "toggle", NULL
24338 };
24339
24340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24342 if (!SWIG_IsOK(res1)) {
24343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24344 }
24345 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24346 ecode2 = SWIG_AsVal_int(obj1, &val2);
24347 if (!SWIG_IsOK(ecode2)) {
24348 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToggle" "', expected argument " "2"" of type '" "int""'");
24349 }
24350 arg2 = static_cast< int >(val2);
24351 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24352 if (!SWIG_IsOK(ecode3)) {
24353 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetToggle" "', expected argument " "3"" of type '" "bool""'");
24354 }
24355 arg3 = static_cast< bool >(val3);
24356 {
24357 PyThreadState* __tstate = wxPyBeginAllowThreads();
24358 (arg1)->SetToggle(arg2,arg3);
24359 wxPyEndAllowThreads(__tstate);
24360 if (PyErr_Occurred()) SWIG_fail;
24361 }
24362 resultobj = SWIG_Py_Void();
24363 return resultobj;
24364fail:
24365 return NULL;
24366}
24367
24368
24369SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24370 PyObject *resultobj = 0;
24371 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24372 int arg2 ;
24373 PyObject *result = 0 ;
24374 void *argp1 = 0 ;
24375 int res1 = 0 ;
24376 int val2 ;
24377 int ecode2 = 0 ;
24378 PyObject * obj0 = 0 ;
24379 PyObject * obj1 = 0 ;
24380 char * kwnames[] = {
24381 (char *) "self",(char *) "id", NULL
24382 };
24383
24384 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) SWIG_fail;
24385 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24386 if (!SWIG_IsOK(res1)) {
24387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24388 }
24389 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24390 ecode2 = SWIG_AsVal_int(obj1, &val2);
24391 if (!SWIG_IsOK(ecode2)) {
24392 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "2"" of type '" "int""'");
24393 }
24394 arg2 = static_cast< int >(val2);
24395 {
24396 PyThreadState* __tstate = wxPyBeginAllowThreads();
24397 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
24398 wxPyEndAllowThreads(__tstate);
24399 if (PyErr_Occurred()) SWIG_fail;
24400 }
24401 resultobj = result;
24402 return resultobj;
24403fail:
24404 return NULL;
24405}
24406
24407
24408SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24409 PyObject *resultobj = 0;
24410 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24411 int arg2 ;
24412 PyObject *arg3 = (PyObject *) 0 ;
24413 void *argp1 = 0 ;
24414 int res1 = 0 ;
24415 int val2 ;
24416 int ecode2 = 0 ;
24417 PyObject * obj0 = 0 ;
24418 PyObject * obj1 = 0 ;
24419 PyObject * obj2 = 0 ;
24420 char * kwnames[] = {
24421 (char *) "self",(char *) "id",(char *) "clientData", NULL
24422 };
24423
24424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24426 if (!SWIG_IsOK(res1)) {
24427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24428 }
24429 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24430 ecode2 = SWIG_AsVal_int(obj1, &val2);
24431 if (!SWIG_IsOK(ecode2)) {
24432 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "2"" of type '" "int""'");
24433 }
24434 arg2 = static_cast< int >(val2);
24435 arg3 = obj2;
24436 {
24437 PyThreadState* __tstate = wxPyBeginAllowThreads();
24438 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
24439 wxPyEndAllowThreads(__tstate);
24440 if (PyErr_Occurred()) SWIG_fail;
24441 }
24442 resultobj = SWIG_Py_Void();
24443 return resultobj;
24444fail:
24445 return NULL;
24446}
24447
24448
24449SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24450 PyObject *resultobj = 0;
24451 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24452 int arg2 ;
24453 int result;
24454 void *argp1 = 0 ;
24455 int res1 = 0 ;
24456 int val2 ;
24457 int ecode2 = 0 ;
24458 PyObject * obj0 = 0 ;
24459 PyObject * obj1 = 0 ;
24460 char * kwnames[] = {
24461 (char *) "self",(char *) "id", NULL
24462 };
24463
24464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) SWIG_fail;
24465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24466 if (!SWIG_IsOK(res1)) {
24467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
24468 }
24469 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24470 ecode2 = SWIG_AsVal_int(obj1, &val2);
24471 if (!SWIG_IsOK(ecode2)) {
24472 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "2"" of type '" "int""'");
24473 }
24474 arg2 = static_cast< int >(val2);
24475 {
24476 PyThreadState* __tstate = wxPyBeginAllowThreads();
24477 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
24478 wxPyEndAllowThreads(__tstate);
24479 if (PyErr_Occurred()) SWIG_fail;
24480 }
24481 resultobj = SWIG_From_int(static_cast< int >(result));
24482 return resultobj;
24483fail:
24484 return NULL;
24485}
24486
24487
24488SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24489 PyObject *resultobj = 0;
24490 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24491 int arg2 ;
24492 bool result;
24493 void *argp1 = 0 ;
24494 int res1 = 0 ;
24495 int val2 ;
24496 int ecode2 = 0 ;
24497 PyObject * obj0 = 0 ;
24498 PyObject * obj1 = 0 ;
24499 char * kwnames[] = {
24500 (char *) "self",(char *) "id", NULL
24501 };
24502
24503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) SWIG_fail;
24504 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24505 if (!SWIG_IsOK(res1)) {
24506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolState" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24507 }
24508 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24509 ecode2 = SWIG_AsVal_int(obj1, &val2);
24510 if (!SWIG_IsOK(ecode2)) {
24511 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolState" "', expected argument " "2"" of type '" "int""'");
24512 }
24513 arg2 = static_cast< int >(val2);
24514 {
24515 PyThreadState* __tstate = wxPyBeginAllowThreads();
24516 result = (bool)(arg1)->GetToolState(arg2);
24517 wxPyEndAllowThreads(__tstate);
24518 if (PyErr_Occurred()) SWIG_fail;
24519 }
24520 {
24521 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24522 }
24523 return resultobj;
24524fail:
24525 return NULL;
24526}
24527
24528
24529SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24530 PyObject *resultobj = 0;
24531 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24532 int arg2 ;
24533 bool result;
24534 void *argp1 = 0 ;
24535 int res1 = 0 ;
24536 int val2 ;
24537 int ecode2 = 0 ;
24538 PyObject * obj0 = 0 ;
24539 PyObject * obj1 = 0 ;
24540 char * kwnames[] = {
24541 (char *) "self",(char *) "id", NULL
24542 };
24543
24544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
24545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24546 if (!SWIG_IsOK(res1)) {
24547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24548 }
24549 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24550 ecode2 = SWIG_AsVal_int(obj1, &val2);
24551 if (!SWIG_IsOK(ecode2)) {
24552 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "2"" of type '" "int""'");
24553 }
24554 arg2 = static_cast< int >(val2);
24555 {
24556 PyThreadState* __tstate = wxPyBeginAllowThreads();
24557 result = (bool)(arg1)->GetToolEnabled(arg2);
24558 wxPyEndAllowThreads(__tstate);
24559 if (PyErr_Occurred()) SWIG_fail;
24560 }
24561 {
24562 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24563 }
24564 return resultobj;
24565fail:
24566 return NULL;
24567}
24568
24569
24570SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24571 PyObject *resultobj = 0;
24572 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24573 int arg2 ;
24574 wxString *arg3 = 0 ;
24575 void *argp1 = 0 ;
24576 int res1 = 0 ;
24577 int val2 ;
24578 int ecode2 = 0 ;
24579 bool temp3 = false ;
24580 PyObject * obj0 = 0 ;
24581 PyObject * obj1 = 0 ;
24582 PyObject * obj2 = 0 ;
24583 char * kwnames[] = {
24584 (char *) "self",(char *) "id",(char *) "helpString", NULL
24585 };
24586
24587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24589 if (!SWIG_IsOK(res1)) {
24590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24591 }
24592 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24593 ecode2 = SWIG_AsVal_int(obj1, &val2);
24594 if (!SWIG_IsOK(ecode2)) {
24595 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24596 }
24597 arg2 = static_cast< int >(val2);
24598 {
24599 arg3 = wxString_in_helper(obj2);
24600 if (arg3 == NULL) SWIG_fail;
24601 temp3 = true;
24602 }
24603 {
24604 PyThreadState* __tstate = wxPyBeginAllowThreads();
24605 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
24606 wxPyEndAllowThreads(__tstate);
24607 if (PyErr_Occurred()) SWIG_fail;
24608 }
24609 resultobj = SWIG_Py_Void();
24610 {
24611 if (temp3)
24612 delete arg3;
24613 }
24614 return resultobj;
24615fail:
24616 {
24617 if (temp3)
24618 delete arg3;
24619 }
24620 return NULL;
24621}
24622
24623
24624SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24625 PyObject *resultobj = 0;
24626 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24627 int arg2 ;
24628 wxString result;
24629 void *argp1 = 0 ;
24630 int res1 = 0 ;
24631 int val2 ;
24632 int ecode2 = 0 ;
24633 PyObject * obj0 = 0 ;
24634 PyObject * obj1 = 0 ;
24635 char * kwnames[] = {
24636 (char *) "self",(char *) "id", NULL
24637 };
24638
24639 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24640 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24641 if (!SWIG_IsOK(res1)) {
24642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24643 }
24644 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24645 ecode2 = SWIG_AsVal_int(obj1, &val2);
24646 if (!SWIG_IsOK(ecode2)) {
24647 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24648 }
24649 arg2 = static_cast< int >(val2);
24650 {
24651 PyThreadState* __tstate = wxPyBeginAllowThreads();
24652 result = (arg1)->GetToolShortHelp(arg2);
24653 wxPyEndAllowThreads(__tstate);
24654 if (PyErr_Occurred()) SWIG_fail;
24655 }
24656 {
24657#if wxUSE_UNICODE
24658 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24659#else
24660 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24661#endif
24662 }
24663 return resultobj;
24664fail:
24665 return NULL;
24666}
24667
24668
24669SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24670 PyObject *resultobj = 0;
24671 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24672 int arg2 ;
24673 wxString *arg3 = 0 ;
24674 void *argp1 = 0 ;
24675 int res1 = 0 ;
24676 int val2 ;
24677 int ecode2 = 0 ;
24678 bool temp3 = false ;
24679 PyObject * obj0 = 0 ;
24680 PyObject * obj1 = 0 ;
24681 PyObject * obj2 = 0 ;
24682 char * kwnames[] = {
24683 (char *) "self",(char *) "id",(char *) "helpString", NULL
24684 };
24685
24686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24688 if (!SWIG_IsOK(res1)) {
24689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24690 }
24691 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24692 ecode2 = SWIG_AsVal_int(obj1, &val2);
24693 if (!SWIG_IsOK(ecode2)) {
24694 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24695 }
24696 arg2 = static_cast< int >(val2);
24697 {
24698 arg3 = wxString_in_helper(obj2);
24699 if (arg3 == NULL) SWIG_fail;
24700 temp3 = true;
24701 }
24702 {
24703 PyThreadState* __tstate = wxPyBeginAllowThreads();
24704 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
24705 wxPyEndAllowThreads(__tstate);
24706 if (PyErr_Occurred()) SWIG_fail;
24707 }
24708 resultobj = SWIG_Py_Void();
24709 {
24710 if (temp3)
24711 delete arg3;
24712 }
24713 return resultobj;
24714fail:
24715 {
24716 if (temp3)
24717 delete arg3;
24718 }
24719 return NULL;
24720}
24721
24722
24723SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24724 PyObject *resultobj = 0;
24725 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24726 int arg2 ;
24727 wxString result;
24728 void *argp1 = 0 ;
24729 int res1 = 0 ;
24730 int val2 ;
24731 int ecode2 = 0 ;
24732 PyObject * obj0 = 0 ;
24733 PyObject * obj1 = 0 ;
24734 char * kwnames[] = {
24735 (char *) "self",(char *) "id", NULL
24736 };
24737
24738 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24739 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24740 if (!SWIG_IsOK(res1)) {
24741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24742 }
24743 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24744 ecode2 = SWIG_AsVal_int(obj1, &val2);
24745 if (!SWIG_IsOK(ecode2)) {
24746 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24747 }
24748 arg2 = static_cast< int >(val2);
24749 {
24750 PyThreadState* __tstate = wxPyBeginAllowThreads();
24751 result = (arg1)->GetToolLongHelp(arg2);
24752 wxPyEndAllowThreads(__tstate);
24753 if (PyErr_Occurred()) SWIG_fail;
24754 }
24755 {
24756#if wxUSE_UNICODE
24757 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24758#else
24759 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24760#endif
24761 }
24762 return resultobj;
24763fail:
24764 return NULL;
24765}
24766
24767
24768SWIGINTERN PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24769 PyObject *resultobj = 0;
24770 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24771 int arg2 ;
24772 int arg3 ;
24773 void *argp1 = 0 ;
24774 int res1 = 0 ;
24775 int val2 ;
24776 int ecode2 = 0 ;
24777 int val3 ;
24778 int ecode3 = 0 ;
24779 PyObject * obj0 = 0 ;
24780 PyObject * obj1 = 0 ;
24781 PyObject * obj2 = 0 ;
24782 char * kwnames[] = {
24783 (char *) "self",(char *) "x",(char *) "y", NULL
24784 };
24785
24786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24788 if (!SWIG_IsOK(res1)) {
24789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24790 }
24791 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24792 ecode2 = SWIG_AsVal_int(obj1, &val2);
24793 if (!SWIG_IsOK(ecode2)) {
24794 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "2"" of type '" "int""'");
24795 }
24796 arg2 = static_cast< int >(val2);
24797 ecode3 = SWIG_AsVal_int(obj2, &val3);
24798 if (!SWIG_IsOK(ecode3)) {
24799 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "3"" of type '" "int""'");
24800 }
24801 arg3 = static_cast< int >(val3);
24802 {
24803 PyThreadState* __tstate = wxPyBeginAllowThreads();
24804 (arg1)->SetMargins(arg2,arg3);
24805 wxPyEndAllowThreads(__tstate);
24806 if (PyErr_Occurred()) SWIG_fail;
24807 }
24808 resultobj = SWIG_Py_Void();
24809 return resultobj;
24810fail:
24811 return NULL;
24812}
24813
24814
24815SWIGINTERN PyObject *_wrap_ToolBarBase_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24816 PyObject *resultobj = 0;
24817 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24818 wxSize *arg2 = 0 ;
24819 void *argp1 = 0 ;
24820 int res1 = 0 ;
24821 wxSize temp2 ;
24822 PyObject * obj0 = 0 ;
24823 PyObject * obj1 = 0 ;
24824 char * kwnames[] = {
24825 (char *) "self",(char *) "size", NULL
24826 };
24827
24828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail;
24829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24830 if (!SWIG_IsOK(res1)) {
24831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24832 }
24833 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24834 {
24835 arg2 = &temp2;
24836 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
24837 }
24838 {
24839 PyThreadState* __tstate = wxPyBeginAllowThreads();
24840 (arg1)->SetMargins((wxSize const &)*arg2);
24841 wxPyEndAllowThreads(__tstate);
24842 if (PyErr_Occurred()) SWIG_fail;
24843 }
24844 resultobj = SWIG_Py_Void();
24845 return resultobj;
24846fail:
24847 return NULL;
24848}
24849
24850
24851SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24852 PyObject *resultobj = 0;
24853 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24854 int arg2 ;
24855 void *argp1 = 0 ;
24856 int res1 = 0 ;
24857 int val2 ;
24858 int ecode2 = 0 ;
24859 PyObject * obj0 = 0 ;
24860 PyObject * obj1 = 0 ;
24861 char * kwnames[] = {
24862 (char *) "self",(char *) "packing", NULL
24863 };
24864
24865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) SWIG_fail;
24866 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24867 if (!SWIG_IsOK(res1)) {
24868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24869 }
24870 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24871 ecode2 = SWIG_AsVal_int(obj1, &val2);
24872 if (!SWIG_IsOK(ecode2)) {
24873 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "2"" of type '" "int""'");
24874 }
24875 arg2 = static_cast< int >(val2);
24876 {
24877 PyThreadState* __tstate = wxPyBeginAllowThreads();
24878 (arg1)->SetToolPacking(arg2);
24879 wxPyEndAllowThreads(__tstate);
24880 if (PyErr_Occurred()) SWIG_fail;
24881 }
24882 resultobj = SWIG_Py_Void();
24883 return resultobj;
24884fail:
24885 return NULL;
24886}
24887
24888
24889SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24890 PyObject *resultobj = 0;
24891 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24892 int arg2 ;
24893 void *argp1 = 0 ;
24894 int res1 = 0 ;
24895 int val2 ;
24896 int ecode2 = 0 ;
24897 PyObject * obj0 = 0 ;
24898 PyObject * obj1 = 0 ;
24899 char * kwnames[] = {
24900 (char *) "self",(char *) "separation", NULL
24901 };
24902
24903 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) SWIG_fail;
24904 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24905 if (!SWIG_IsOK(res1)) {
24906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24907 }
24908 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24909 ecode2 = SWIG_AsVal_int(obj1, &val2);
24910 if (!SWIG_IsOK(ecode2)) {
24911 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "2"" of type '" "int""'");
24912 }
24913 arg2 = static_cast< int >(val2);
24914 {
24915 PyThreadState* __tstate = wxPyBeginAllowThreads();
24916 (arg1)->SetToolSeparation(arg2);
24917 wxPyEndAllowThreads(__tstate);
24918 if (PyErr_Occurred()) SWIG_fail;
24919 }
24920 resultobj = SWIG_Py_Void();
24921 return resultobj;
24922fail:
24923 return NULL;
d55e5bfc
RD
24924}
24925
24926
1bd55598
RD
24927SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24928 PyObject *resultobj = 0;
24929 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24930 wxSize result;
24931 void *argp1 = 0 ;
24932 int res1 = 0 ;
24933 PyObject *swig_obj[1] ;
24934
24935 if (!args) SWIG_fail;
24936 swig_obj[0] = args;
24937 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24938 if (!SWIG_IsOK(res1)) {
24939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24940 }
24941 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24942 {
24943 PyThreadState* __tstate = wxPyBeginAllowThreads();
24944 result = (arg1)->GetToolMargins();
24945 wxPyEndAllowThreads(__tstate);
24946 if (PyErr_Occurred()) SWIG_fail;
24947 }
24948 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24949 return resultobj;
24950fail:
24951 return NULL;
d55e5bfc
RD
24952}
24953
24954
1bd55598
RD
24955SWIGINTERN PyObject *_wrap_ToolBarBase_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24956 PyObject *resultobj = 0;
24957 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24958 wxSize result;
24959 void *argp1 = 0 ;
24960 int res1 = 0 ;
24961 PyObject *swig_obj[1] ;
24962
24963 if (!args) SWIG_fail;
24964 swig_obj[0] = args;
24965 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24966 if (!SWIG_IsOK(res1)) {
24967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24968 }
24969 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24970 {
24971 PyThreadState* __tstate = wxPyBeginAllowThreads();
24972 result = (arg1)->GetMargins();
24973 wxPyEndAllowThreads(__tstate);
24974 if (PyErr_Occurred()) SWIG_fail;
24975 }
24976 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24977 return resultobj;
24978fail:
24979 return NULL;
d55e5bfc
RD
24980}
24981
24982
1bd55598
RD
24983SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24984 PyObject *resultobj = 0;
24985 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24986 int result;
24987 void *argp1 = 0 ;
24988 int res1 = 0 ;
24989 PyObject *swig_obj[1] ;
24990
24991 if (!args) SWIG_fail;
24992 swig_obj[0] = args;
24993 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24994 if (!SWIG_IsOK(res1)) {
24995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24996 }
24997 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24998 {
24999 PyThreadState* __tstate = wxPyBeginAllowThreads();
25000 result = (int)(arg1)->GetToolPacking();
25001 wxPyEndAllowThreads(__tstate);
25002 if (PyErr_Occurred()) SWIG_fail;
25003 }
25004 resultobj = SWIG_From_int(static_cast< int >(result));
25005 return resultobj;
25006fail:
25007 return NULL;
d55e5bfc
RD
25008}
25009
25010
1bd55598
RD
25011SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25012 PyObject *resultobj = 0;
25013 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25014 int result;
25015 void *argp1 = 0 ;
25016 int res1 = 0 ;
25017 PyObject *swig_obj[1] ;
25018
25019 if (!args) SWIG_fail;
25020 swig_obj[0] = args;
25021 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25022 if (!SWIG_IsOK(res1)) {
25023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25024 }
25025 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25026 {
25027 PyThreadState* __tstate = wxPyBeginAllowThreads();
25028 result = (int)(arg1)->GetToolSeparation();
25029 wxPyEndAllowThreads(__tstate);
25030 if (PyErr_Occurred()) SWIG_fail;
25031 }
25032 resultobj = SWIG_From_int(static_cast< int >(result));
25033 return resultobj;
25034fail:
25035 return NULL;
25036}
25037
25038
25039SWIGINTERN PyObject *_wrap_ToolBarBase_SetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25040 PyObject *resultobj = 0;
25041 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25042 int arg2 ;
25043 void *argp1 = 0 ;
25044 int res1 = 0 ;
25045 int val2 ;
25046 int ecode2 = 0 ;
25047 PyObject * obj0 = 0 ;
25048 PyObject * obj1 = 0 ;
25049 char * kwnames[] = {
25050 (char *) "self",(char *) "nRows", NULL
25051 };
25052
25053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) SWIG_fail;
25054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25055 if (!SWIG_IsOK(res1)) {
25056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25057 }
25058 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25059 ecode2 = SWIG_AsVal_int(obj1, &val2);
25060 if (!SWIG_IsOK(ecode2)) {
25061 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetRows" "', expected argument " "2"" of type '" "int""'");
25062 }
25063 arg2 = static_cast< int >(val2);
25064 {
25065 PyThreadState* __tstate = wxPyBeginAllowThreads();
25066 (arg1)->SetRows(arg2);
25067 wxPyEndAllowThreads(__tstate);
25068 if (PyErr_Occurred()) SWIG_fail;
25069 }
25070 resultobj = SWIG_Py_Void();
25071 return resultobj;
25072fail:
25073 return NULL;
25074}
25075
25076
25077SWIGINTERN PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25078 PyObject *resultobj = 0;
25079 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25080 int arg2 ;
25081 int arg3 ;
25082 void *argp1 = 0 ;
25083 int res1 = 0 ;
25084 int val2 ;
25085 int ecode2 = 0 ;
25086 int val3 ;
25087 int ecode3 = 0 ;
25088 PyObject * obj0 = 0 ;
25089 PyObject * obj1 = 0 ;
25090 PyObject * obj2 = 0 ;
25091 char * kwnames[] = {
25092 (char *) "self",(char *) "rows",(char *) "cols", NULL
25093 };
25094
25095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25097 if (!SWIG_IsOK(res1)) {
25098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25099 }
25100 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25101 ecode2 = SWIG_AsVal_int(obj1, &val2);
25102 if (!SWIG_IsOK(ecode2)) {
25103 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "2"" of type '" "int""'");
25104 }
25105 arg2 = static_cast< int >(val2);
25106 ecode3 = SWIG_AsVal_int(obj2, &val3);
25107 if (!SWIG_IsOK(ecode3)) {
25108 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "3"" of type '" "int""'");
25109 }
25110 arg3 = static_cast< int >(val3);
25111 {
25112 PyThreadState* __tstate = wxPyBeginAllowThreads();
25113 (arg1)->SetMaxRowsCols(arg2,arg3);
25114 wxPyEndAllowThreads(__tstate);
25115 if (PyErr_Occurred()) SWIG_fail;
25116 }
25117 resultobj = SWIG_Py_Void();
25118 return resultobj;
25119fail:
25120 return NULL;
d55e5bfc
RD
25121}
25122
25123
1bd55598
RD
25124SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25125 PyObject *resultobj = 0;
25126 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25127 int result;
25128 void *argp1 = 0 ;
25129 int res1 = 0 ;
25130 PyObject *swig_obj[1] ;
25131
25132 if (!args) SWIG_fail;
25133 swig_obj[0] = args;
25134 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25135 if (!SWIG_IsOK(res1)) {
25136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25137 }
25138 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25139 {
25140 PyThreadState* __tstate = wxPyBeginAllowThreads();
25141 result = (int)(arg1)->GetMaxRows();
25142 wxPyEndAllowThreads(__tstate);
25143 if (PyErr_Occurred()) SWIG_fail;
25144 }
25145 resultobj = SWIG_From_int(static_cast< int >(result));
25146 return resultobj;
25147fail:
25148 return NULL;
d55e5bfc
RD
25149}
25150
25151
1bd55598
RD
25152SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25153 PyObject *resultobj = 0;
25154 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25155 int result;
25156 void *argp1 = 0 ;
25157 int res1 = 0 ;
25158 PyObject *swig_obj[1] ;
25159
25160 if (!args) SWIG_fail;
25161 swig_obj[0] = args;
25162 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25163 if (!SWIG_IsOK(res1)) {
25164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25165 }
25166 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25167 {
25168 PyThreadState* __tstate = wxPyBeginAllowThreads();
25169 result = (int)(arg1)->GetMaxCols();
25170 wxPyEndAllowThreads(__tstate);
25171 if (PyErr_Occurred()) SWIG_fail;
25172 }
25173 resultobj = SWIG_From_int(static_cast< int >(result));
25174 return resultobj;
25175fail:
25176 return NULL;
25177}
25178
25179
25180SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25181 PyObject *resultobj = 0;
25182 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25183 wxSize *arg2 = 0 ;
25184 void *argp1 = 0 ;
25185 int res1 = 0 ;
25186 wxSize temp2 ;
25187 PyObject * obj0 = 0 ;
25188 PyObject * obj1 = 0 ;
25189 char * kwnames[] = {
25190 (char *) "self",(char *) "size", NULL
25191 };
25192
25193 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) SWIG_fail;
25194 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25195 if (!SWIG_IsOK(res1)) {
25196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25197 }
25198 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25199 {
25200 arg2 = &temp2;
25201 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25202 }
25203 {
25204 PyThreadState* __tstate = wxPyBeginAllowThreads();
25205 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
25206 wxPyEndAllowThreads(__tstate);
25207 if (PyErr_Occurred()) SWIG_fail;
25208 }
25209 resultobj = SWIG_Py_Void();
25210 return resultobj;
25211fail:
25212 return NULL;
d55e5bfc
RD
25213}
25214
25215
1bd55598
RD
25216SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25217 PyObject *resultobj = 0;
25218 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25219 wxSize result;
25220 void *argp1 = 0 ;
25221 int res1 = 0 ;
25222 PyObject *swig_obj[1] ;
25223
25224 if (!args) SWIG_fail;
25225 swig_obj[0] = args;
25226 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25227 if (!SWIG_IsOK(res1)) {
25228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25229 }
25230 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25231 {
25232 PyThreadState* __tstate = wxPyBeginAllowThreads();
25233 result = (arg1)->GetToolBitmapSize();
25234 wxPyEndAllowThreads(__tstate);
25235 if (PyErr_Occurred()) SWIG_fail;
25236 }
25237 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25238 return resultobj;
25239fail:
25240 return NULL;
d55e5bfc
RD
25241}
25242
25243
1bd55598
RD
25244SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25245 PyObject *resultobj = 0;
25246 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25247 wxSize result;
25248 void *argp1 = 0 ;
25249 int res1 = 0 ;
25250 PyObject *swig_obj[1] ;
25251
25252 if (!args) SWIG_fail;
25253 swig_obj[0] = args;
25254 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25255 if (!SWIG_IsOK(res1)) {
25256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25257 }
25258 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25259 {
25260 PyThreadState* __tstate = wxPyBeginAllowThreads();
25261 result = (arg1)->GetToolSize();
25262 wxPyEndAllowThreads(__tstate);
25263 if (PyErr_Occurred()) SWIG_fail;
25264 }
25265 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25266 return resultobj;
25267fail:
25268 return NULL;
25269}
25270
25271
25272SWIGINTERN PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25273 PyObject *resultobj = 0;
25274 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25275 int arg2 ;
25276 int arg3 ;
25277 wxToolBarToolBase *result = 0 ;
25278 void *argp1 = 0 ;
25279 int res1 = 0 ;
25280 int val2 ;
25281 int ecode2 = 0 ;
25282 int val3 ;
25283 int ecode3 = 0 ;
25284 PyObject * obj0 = 0 ;
25285 PyObject * obj1 = 0 ;
25286 PyObject * obj2 = 0 ;
25287 char * kwnames[] = {
25288 (char *) "self",(char *) "x",(char *) "y", NULL
25289 };
25290
25291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25293 if (!SWIG_IsOK(res1)) {
25294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25295 }
25296 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25297 ecode2 = SWIG_AsVal_int(obj1, &val2);
25298 if (!SWIG_IsOK(ecode2)) {
25299 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "2"" of type '" "int""'");
25300 }
25301 arg2 = static_cast< int >(val2);
25302 ecode3 = SWIG_AsVal_int(obj2, &val3);
25303 if (!SWIG_IsOK(ecode3)) {
25304 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "3"" of type '" "int""'");
25305 }
25306 arg3 = static_cast< int >(val3);
25307 {
25308 PyThreadState* __tstate = wxPyBeginAllowThreads();
25309 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
25310 wxPyEndAllowThreads(__tstate);
25311 if (PyErr_Occurred()) SWIG_fail;
25312 }
25313 {
25314 resultobj = wxPyMake_wxObject(result, (bool)0);
25315 }
25316 return resultobj;
25317fail:
25318 return NULL;
25319}
25320
25321
25322SWIGINTERN PyObject *_wrap_ToolBarBase_FindById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25323 PyObject *resultobj = 0;
25324 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25325 int arg2 ;
25326 wxToolBarToolBase *result = 0 ;
25327 void *argp1 = 0 ;
25328 int res1 = 0 ;
25329 int val2 ;
25330 int ecode2 = 0 ;
25331 PyObject * obj0 = 0 ;
25332 PyObject * obj1 = 0 ;
25333 char * kwnames[] = {
25334 (char *) "self",(char *) "toolid", NULL
25335 };
25336
25337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) SWIG_fail;
25338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25339 if (!SWIG_IsOK(res1)) {
25340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindById" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25341 }
25342 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25343 ecode2 = SWIG_AsVal_int(obj1, &val2);
25344 if (!SWIG_IsOK(ecode2)) {
25345 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindById" "', expected argument " "2"" of type '" "int""'");
25346 }
25347 arg2 = static_cast< int >(val2);
25348 {
25349 PyThreadState* __tstate = wxPyBeginAllowThreads();
25350 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
25351 wxPyEndAllowThreads(__tstate);
25352 if (PyErr_Occurred()) SWIG_fail;
25353 }
25354 {
25355 resultobj = wxPyMake_wxObject(result, (bool)0);
25356 }
25357 return resultobj;
25358fail:
25359 return NULL;
d55e5bfc
RD
25360}
25361
25362
1bd55598
RD
25363SWIGINTERN PyObject *_wrap_ToolBarBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25364 PyObject *resultobj = 0;
25365 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25366 bool result;
25367 void *argp1 = 0 ;
25368 int res1 = 0 ;
25369 PyObject *swig_obj[1] ;
25370
25371 if (!args) SWIG_fail;
25372 swig_obj[0] = args;
25373 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25374 if (!SWIG_IsOK(res1)) {
25375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_IsVertical" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25376 }
25377 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25378 {
25379 PyThreadState* __tstate = wxPyBeginAllowThreads();
25380 result = (bool)(arg1)->IsVertical();
25381 wxPyEndAllowThreads(__tstate);
25382 if (PyErr_Occurred()) SWIG_fail;
25383 }
25384 {
25385 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25386 }
25387 return resultobj;
25388fail:
25389 return NULL;
d55e5bfc
RD
25390}
25391
25392
1bd55598
RD
25393SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25394 PyObject *resultobj = 0;
25395 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25396 size_t result;
25397 void *argp1 = 0 ;
25398 int res1 = 0 ;
25399 PyObject *swig_obj[1] ;
25400
25401 if (!args) SWIG_fail;
25402 swig_obj[0] = args;
25403 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25404 if (!SWIG_IsOK(res1)) {
25405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolsCount" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25406 }
25407 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25408 {
25409 PyThreadState* __tstate = wxPyBeginAllowThreads();
25410 result = (size_t)((wxToolBarBase const *)arg1)->GetToolsCount();
25411 wxPyEndAllowThreads(__tstate);
25412 if (PyErr_Occurred()) SWIG_fail;
25413 }
25414 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
25415 return resultobj;
25416fail:
25417 return NULL;
25418}
25419
25420
25421SWIGINTERN PyObject *ToolBarBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25422 PyObject *obj;
25423 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25424 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarBase, SWIG_NewClientData(obj));
25425 return SWIG_Py_Void();
25426}
25427
25428SWIGINTERN PyObject *_wrap_new_ToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25429 PyObject *resultobj = 0;
25430 wxWindow *arg1 = (wxWindow *) 0 ;
25431 int arg2 = (int) -1 ;
25432 wxPoint const &arg3_defvalue = wxDefaultPosition ;
25433 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
25434 wxSize const &arg4_defvalue = wxDefaultSize ;
25435 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
25436 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25437 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
25438 wxString *arg6 = (wxString *) &arg6_defvalue ;
25439 wxToolBar *result = 0 ;
25440 void *argp1 = 0 ;
25441 int res1 = 0 ;
25442 int val2 ;
25443 int ecode2 = 0 ;
25444 wxPoint temp3 ;
25445 wxSize temp4 ;
25446 long val5 ;
25447 int ecode5 = 0 ;
25448 bool temp6 = false ;
25449 PyObject * obj0 = 0 ;
25450 PyObject * obj1 = 0 ;
25451 PyObject * obj2 = 0 ;
25452 PyObject * obj3 = 0 ;
25453 PyObject * obj4 = 0 ;
25454 PyObject * obj5 = 0 ;
25455 char * kwnames[] = {
25456 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25457 };
25458
25459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25461 if (!SWIG_IsOK(res1)) {
25462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToolBar" "', expected argument " "1"" of type '" "wxWindow *""'");
25463 }
25464 arg1 = reinterpret_cast< wxWindow * >(argp1);
25465 if (obj1) {
25466 ecode2 = SWIG_AsVal_int(obj1, &val2);
25467 if (!SWIG_IsOK(ecode2)) {
25468 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolBar" "', expected argument " "2"" of type '" "int""'");
25469 }
25470 arg2 = static_cast< int >(val2);
25471 }
25472 if (obj2) {
d55e5bfc 25473 {
1bd55598
RD
25474 arg3 = &temp3;
25475 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 25476 }
1bd55598
RD
25477 }
25478 if (obj3) {
d55e5bfc 25479 {
1bd55598
RD
25480 arg4 = &temp4;
25481 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 25482 }
1bd55598
RD
25483 }
25484 if (obj4) {
25485 ecode5 = SWIG_AsVal_long(obj4, &val5);
25486 if (!SWIG_IsOK(ecode5)) {
25487 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ToolBar" "', expected argument " "5"" of type '" "long""'");
25488 }
25489 arg5 = static_cast< long >(val5);
25490 }
25491 if (obj5) {
36ed4f51 25492 {
1bd55598
RD
25493 arg6 = wxString_in_helper(obj5);
25494 if (arg6 == NULL) SWIG_fail;
25495 temp6 = true;
36ed4f51 25496 }
1bd55598
RD
25497 }
25498 {
25499 if (!wxPyCheckForApp()) SWIG_fail;
25500 PyThreadState* __tstate = wxPyBeginAllowThreads();
25501 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
25502 wxPyEndAllowThreads(__tstate);
25503 if (PyErr_Occurred()) SWIG_fail;
25504 }
25505 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_NEW | 0 );
25506 {
25507 if (temp6)
25508 delete arg6;
25509 }
25510 return resultobj;
25511fail:
25512 {
25513 if (temp6)
25514 delete arg6;
25515 }
25516 return NULL;
d55e5bfc
RD
25517}
25518
25519
1bd55598
RD
25520SWIGINTERN PyObject *_wrap_new_PreToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25521 PyObject *resultobj = 0;
25522 wxToolBar *result = 0 ;
25523
25524 if (!SWIG_Python_UnpackTuple(args,"new_PreToolBar",0,0,0)) SWIG_fail;
25525 {
25526 if (!wxPyCheckForApp()) SWIG_fail;
25527 PyThreadState* __tstate = wxPyBeginAllowThreads();
25528 result = (wxToolBar *)new wxToolBar();
25529 wxPyEndAllowThreads(__tstate);
25530 if (PyErr_Occurred()) SWIG_fail;
25531 }
25532 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_OWN | 0 );
25533 return resultobj;
25534fail:
25535 return NULL;
25536}
25537
25538
25539SWIGINTERN PyObject *_wrap_ToolBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25540 PyObject *resultobj = 0;
25541 wxToolBar *arg1 = (wxToolBar *) 0 ;
25542 wxWindow *arg2 = (wxWindow *) 0 ;
25543 int arg3 = (int) -1 ;
25544 wxPoint const &arg4_defvalue = wxDefaultPosition ;
25545 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
25546 wxSize const &arg5_defvalue = wxDefaultSize ;
25547 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
25548 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25549 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
25550 wxString *arg7 = (wxString *) &arg7_defvalue ;
25551 bool result;
25552 void *argp1 = 0 ;
25553 int res1 = 0 ;
25554 void *argp2 = 0 ;
25555 int res2 = 0 ;
25556 int val3 ;
25557 int ecode3 = 0 ;
25558 wxPoint temp4 ;
25559 wxSize temp5 ;
25560 long val6 ;
25561 int ecode6 = 0 ;
25562 bool temp7 = false ;
25563 PyObject * obj0 = 0 ;
25564 PyObject * obj1 = 0 ;
25565 PyObject * obj2 = 0 ;
25566 PyObject * obj3 = 0 ;
25567 PyObject * obj4 = 0 ;
25568 PyObject * obj5 = 0 ;
25569 PyObject * obj6 = 0 ;
25570 char * kwnames[] = {
25571 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25572 };
25573
25574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
25576 if (!SWIG_IsOK(res1)) {
25577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_Create" "', expected argument " "1"" of type '" "wxToolBar *""'");
25578 }
25579 arg1 = reinterpret_cast< wxToolBar * >(argp1);
25580 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25581 if (!SWIG_IsOK(res2)) {
25582 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
25583 }
25584 arg2 = reinterpret_cast< wxWindow * >(argp2);
25585 if (obj2) {
25586 ecode3 = SWIG_AsVal_int(obj2, &val3);
25587 if (!SWIG_IsOK(ecode3)) {
25588 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_Create" "', expected argument " "3"" of type '" "int""'");
25589 }
25590 arg3 = static_cast< int >(val3);
25591 }
25592 if (obj3) {
d55e5bfc 25593 {
1bd55598
RD
25594 arg4 = &temp4;
25595 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 25596 }
1bd55598
RD
25597 }
25598 if (obj4) {
d55e5bfc 25599 {
1bd55598
RD
25600 arg5 = &temp5;
25601 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 25602 }
1bd55598
RD
25603 }
25604 if (obj5) {
25605 ecode6 = SWIG_AsVal_long(obj5, &val6);
25606 if (!SWIG_IsOK(ecode6)) {
25607 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBar_Create" "', expected argument " "6"" of type '" "long""'");
25608 }
25609 arg6 = static_cast< long >(val6);
25610 }
25611 if (obj6) {
36ed4f51 25612 {
1bd55598
RD
25613 arg7 = wxString_in_helper(obj6);
25614 if (arg7 == NULL) SWIG_fail;
25615 temp7 = true;
36ed4f51 25616 }
1bd55598
RD
25617 }
25618 {
25619 PyThreadState* __tstate = wxPyBeginAllowThreads();
25620 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
25621 wxPyEndAllowThreads(__tstate);
25622 if (PyErr_Occurred()) SWIG_fail;
25623 }
25624 {
25625 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25626 }
25627 {
25628 if (temp7)
25629 delete arg7;
25630 }
25631 return resultobj;
25632fail:
25633 {
25634 if (temp7)
25635 delete arg7;
25636 }
25637 return NULL;
25638}
25639
25640
1bd55598
RD
25641SWIGINTERN PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25642 PyObject *resultobj = 0;
25643 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
25644 SwigValueWrapper<wxVisualAttributes > result;
25645 int val1 ;
25646 int ecode1 = 0 ;
25647 PyObject * obj0 = 0 ;
25648 char * kwnames[] = {
25649 (char *) "variant", NULL
25650 };
25651
25652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
25653 if (obj0) {
25654 ecode1 = SWIG_AsVal_int(obj0, &val1);
25655 if (!SWIG_IsOK(ecode1)) {
25656 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
25657 }
25658 arg1 = static_cast< wxWindowVariant >(val1);
25659 }
25660 {
25661 if (!wxPyCheckForApp()) SWIG_fail;
25662 PyThreadState* __tstate = wxPyBeginAllowThreads();
25663 result = wxToolBar::GetClassDefaultAttributes(arg1);
25664 wxPyEndAllowThreads(__tstate);
25665 if (PyErr_Occurred()) SWIG_fail;
25666 }
25667 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
25668 return resultobj;
25669fail:
25670 return NULL;
d55e5bfc
RD
25671}
25672
25673
1bd55598
RD
25674SWIGINTERN PyObject *ToolBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25675 PyObject *obj;
25676 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25677 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBar, SWIG_NewClientData(obj));
25678 return SWIG_Py_Void();
d55e5bfc
RD
25679}
25680
1bd55598
RD
25681SWIGINTERN PyObject *ToolBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25682 return SWIG_Python_InitShadowInstance(args);
25683}
d55e5bfc 25684
1bd55598
RD
25685SWIGINTERN int ListCtrlNameStr_set(PyObject *) {
25686 SWIG_Error(SWIG_AttributeError,"Variable ListCtrlNameStr is read-only.");
25687 return 1;
d55e5bfc
RD
25688}
25689
25690
1bd55598
RD
25691SWIGINTERN PyObject *ListCtrlNameStr_get(void) {
25692 PyObject *pyobj = 0;
25693
25694 {
25695#if wxUSE_UNICODE
25696 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
25697#else
25698 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
25699#endif
25700 }
25701 return pyobj;
25702}
25703
25704
25705SWIGINTERN PyObject *_wrap_new_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25706 PyObject *resultobj = 0;
25707 wxColour const &arg1_defvalue = wxNullColour ;
25708 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
25709 wxColour const &arg2_defvalue = wxNullColour ;
25710 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
25711 wxFont const &arg3_defvalue = wxNullFont ;
25712 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
25713 wxListItemAttr *result = 0 ;
25714 wxColour temp1 ;
25715 wxColour temp2 ;
25716 void *argp3 = 0 ;
25717 int res3 = 0 ;
25718 PyObject * obj0 = 0 ;
25719 PyObject * obj1 = 0 ;
25720 PyObject * obj2 = 0 ;
25721 char * kwnames[] = {
25722 (char *) "colText",(char *) "colBack",(char *) "font", NULL
25723 };
25724
25725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25726 if (obj0) {
d55e5bfc 25727 {
1bd55598
RD
25728 arg1 = &temp1;
25729 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
d55e5bfc 25730 }
1bd55598
RD
25731 }
25732 if (obj1) {
36ed4f51 25733 {
1bd55598
RD
25734 arg2 = &temp2;
25735 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
36ed4f51 25736 }
1bd55598
RD
25737 }
25738 if (obj2) {
25739 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
25740 if (!SWIG_IsOK(res3)) {
25741 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
d55e5bfc 25742 }
1bd55598
RD
25743 if (!argp3) {
25744 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
36ed4f51 25745 }
1bd55598
RD
25746 arg3 = reinterpret_cast< wxFont * >(argp3);
25747 }
25748 {
25749 PyThreadState* __tstate = wxPyBeginAllowThreads();
25750 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
25751 wxPyEndAllowThreads(__tstate);
25752 if (PyErr_Occurred()) SWIG_fail;
25753 }
25754 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_NEW | 0 );
25755 return resultobj;
25756fail:
25757 return NULL;
d55e5bfc
RD
25758}
25759
25760
1bd55598
RD
25761SWIGINTERN PyObject *_wrap_delete_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25762 PyObject *resultobj = 0;
25763 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25764 void *argp1 = 0 ;
25765 int res1 = 0 ;
25766 PyObject *swig_obj[1] ;
25767
25768 if (!args) SWIG_fail;
25769 swig_obj[0] = args;
25770 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_DISOWN | 0 );
25771 if (!SWIG_IsOK(res1)) {
25772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItemAttr" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25773 }
25774 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25775 {
25776 PyThreadState* __tstate = wxPyBeginAllowThreads();
25777 delete arg1;
d55e5bfc 25778
1bd55598
RD
25779 wxPyEndAllowThreads(__tstate);
25780 if (PyErr_Occurred()) SWIG_fail;
25781 }
25782 resultobj = SWIG_Py_Void();
25783 return resultobj;
25784fail:
25785 return NULL;
25786}
25787
25788
25789SWIGINTERN PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25790 PyObject *resultobj = 0;
25791 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25792 wxColour *arg2 = 0 ;
25793 void *argp1 = 0 ;
25794 int res1 = 0 ;
25795 wxColour temp2 ;
25796 PyObject * obj0 = 0 ;
25797 PyObject * obj1 = 0 ;
25798 char * kwnames[] = {
25799 (char *) "self",(char *) "colText", NULL
25800 };
25801
25802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
25803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25804 if (!SWIG_IsOK(res1)) {
25805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25806 }
25807 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25808 {
25809 arg2 = &temp2;
25810 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25811 }
25812 {
25813 PyThreadState* __tstate = wxPyBeginAllowThreads();
25814 (arg1)->SetTextColour((wxColour const &)*arg2);
25815 wxPyEndAllowThreads(__tstate);
25816 if (PyErr_Occurred()) SWIG_fail;
25817 }
25818 resultobj = SWIG_Py_Void();
25819 return resultobj;
25820fail:
25821 return NULL;
25822}
25823
25824
25825SWIGINTERN PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25826 PyObject *resultobj = 0;
25827 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25828 wxColour *arg2 = 0 ;
25829 void *argp1 = 0 ;
25830 int res1 = 0 ;
25831 wxColour temp2 ;
25832 PyObject * obj0 = 0 ;
25833 PyObject * obj1 = 0 ;
25834 char * kwnames[] = {
25835 (char *) "self",(char *) "colBack", NULL
25836 };
25837
25838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
25839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25840 if (!SWIG_IsOK(res1)) {
25841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25842 }
25843 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25844 {
25845 arg2 = &temp2;
25846 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25847 }
25848 {
25849 PyThreadState* __tstate = wxPyBeginAllowThreads();
25850 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
25851 wxPyEndAllowThreads(__tstate);
25852 if (PyErr_Occurred()) SWIG_fail;
25853 }
25854 resultobj = SWIG_Py_Void();
25855 return resultobj;
25856fail:
25857 return NULL;
25858}
25859
25860
25861SWIGINTERN PyObject *_wrap_ListItemAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25862 PyObject *resultobj = 0;
25863 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25864 wxFont *arg2 = 0 ;
25865 void *argp1 = 0 ;
25866 int res1 = 0 ;
25867 void *argp2 = 0 ;
25868 int res2 = 0 ;
25869 PyObject * obj0 = 0 ;
25870 PyObject * obj1 = 0 ;
25871 char * kwnames[] = {
25872 (char *) "self",(char *) "font", NULL
25873 };
25874
25875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
25876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25877 if (!SWIG_IsOK(res1)) {
25878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25879 }
25880 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25881 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
25882 if (!SWIG_IsOK(res2)) {
25883 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25884 }
25885 if (!argp2) {
25886 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25887 }
25888 arg2 = reinterpret_cast< wxFont * >(argp2);
25889 {
25890 PyThreadState* __tstate = wxPyBeginAllowThreads();
25891 (arg1)->SetFont((wxFont const &)*arg2);
25892 wxPyEndAllowThreads(__tstate);
25893 if (PyErr_Occurred()) SWIG_fail;
25894 }
25895 resultobj = SWIG_Py_Void();
25896 return resultobj;
25897fail:
25898 return NULL;
d55e5bfc
RD
25899}
25900
25901
1bd55598
RD
25902SWIGINTERN PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25903 PyObject *resultobj = 0;
25904 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25905 bool result;
25906 void *argp1 = 0 ;
25907 int res1 = 0 ;
25908 PyObject *swig_obj[1] ;
25909
25910 if (!args) SWIG_fail;
25911 swig_obj[0] = args;
25912 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25913 if (!SWIG_IsOK(res1)) {
25914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25915 }
25916 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25917 {
25918 PyThreadState* __tstate = wxPyBeginAllowThreads();
25919 result = (bool)(arg1)->HasTextColour();
25920 wxPyEndAllowThreads(__tstate);
25921 if (PyErr_Occurred()) SWIG_fail;
25922 }
25923 {
25924 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25925 }
25926 return resultobj;
25927fail:
25928 return NULL;
f20a2e1f
RD
25929}
25930
25931
1bd55598
RD
25932SWIGINTERN PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25933 PyObject *resultobj = 0;
25934 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25935 bool result;
25936 void *argp1 = 0 ;
25937 int res1 = 0 ;
25938 PyObject *swig_obj[1] ;
25939
25940 if (!args) SWIG_fail;
25941 swig_obj[0] = args;
25942 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25943 if (!SWIG_IsOK(res1)) {
25944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25945 }
25946 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25947 {
25948 PyThreadState* __tstate = wxPyBeginAllowThreads();
25949 result = (bool)(arg1)->HasBackgroundColour();
25950 wxPyEndAllowThreads(__tstate);
25951 if (PyErr_Occurred()) SWIG_fail;
25952 }
25953 {
25954 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25955 }
25956 return resultobj;
25957fail:
25958 return NULL;
d55e5bfc 25959}
1bd55598
RD
25960
25961
25962SWIGINTERN PyObject *_wrap_ListItemAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25963 PyObject *resultobj = 0;
25964 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25965 bool result;
25966 void *argp1 = 0 ;
25967 int res1 = 0 ;
25968 PyObject *swig_obj[1] ;
25969
25970 if (!args) SWIG_fail;
25971 swig_obj[0] = args;
25972 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25973 if (!SWIG_IsOK(res1)) {
25974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25975 }
25976 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25977 {
25978 PyThreadState* __tstate = wxPyBeginAllowThreads();
25979 result = (bool)(arg1)->HasFont();
25980 wxPyEndAllowThreads(__tstate);
25981 if (PyErr_Occurred()) SWIG_fail;
25982 }
25983 {
25984 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25985 }
25986 return resultobj;
25987fail:
25988 return NULL;
d55e5bfc
RD
25989}
25990
25991
1bd55598
RD
25992SWIGINTERN PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25993 PyObject *resultobj = 0;
25994 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25995 wxColour result;
25996 void *argp1 = 0 ;
25997 int res1 = 0 ;
25998 PyObject *swig_obj[1] ;
25999
26000 if (!args) SWIG_fail;
26001 swig_obj[0] = args;
26002 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26003 if (!SWIG_IsOK(res1)) {
26004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26005 }
26006 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26007 {
26008 PyThreadState* __tstate = wxPyBeginAllowThreads();
26009 result = (arg1)->GetTextColour();
26010 wxPyEndAllowThreads(__tstate);
26011 if (PyErr_Occurred()) SWIG_fail;
26012 }
26013 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26014 return resultobj;
26015fail:
26016 return NULL;
d55e5bfc
RD
26017}
26018
26019
1bd55598
RD
26020SWIGINTERN PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26021 PyObject *resultobj = 0;
26022 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26023 wxColour result;
26024 void *argp1 = 0 ;
26025 int res1 = 0 ;
26026 PyObject *swig_obj[1] ;
26027
26028 if (!args) SWIG_fail;
26029 swig_obj[0] = args;
26030 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26031 if (!SWIG_IsOK(res1)) {
26032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26033 }
26034 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26035 {
26036 PyThreadState* __tstate = wxPyBeginAllowThreads();
26037 result = (arg1)->GetBackgroundColour();
26038 wxPyEndAllowThreads(__tstate);
26039 if (PyErr_Occurred()) SWIG_fail;
26040 }
26041 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26042 return resultobj;
26043fail:
26044 return NULL;
d55e5bfc
RD
26045}
26046
26047
1bd55598
RD
26048SWIGINTERN PyObject *_wrap_ListItemAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26049 PyObject *resultobj = 0;
26050 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26051 wxFont result;
26052 void *argp1 = 0 ;
26053 int res1 = 0 ;
26054 PyObject *swig_obj[1] ;
26055
26056 if (!args) SWIG_fail;
26057 swig_obj[0] = args;
26058 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26059 if (!SWIG_IsOK(res1)) {
26060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26061 }
26062 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26063 {
26064 PyThreadState* __tstate = wxPyBeginAllowThreads();
26065 result = (arg1)->GetFont();
26066 wxPyEndAllowThreads(__tstate);
26067 if (PyErr_Occurred()) SWIG_fail;
26068 }
26069 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
26070 return resultobj;
26071fail:
26072 return NULL;
26073}
26074
26075
26076SWIGINTERN PyObject *_wrap_ListItemAttr_AssignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26077 PyObject *resultobj = 0;
26078 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26079 wxListItemAttr *arg2 = 0 ;
26080 void *argp1 = 0 ;
26081 int res1 = 0 ;
26082 void *argp2 = 0 ;
26083 int res2 = 0 ;
26084 PyObject * obj0 = 0 ;
26085 PyObject * obj1 = 0 ;
26086 char * kwnames[] = {
26087 (char *) "self",(char *) "source", NULL
26088 };
26089
26090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_AssignFrom",kwnames,&obj0,&obj1)) SWIG_fail;
26091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26092 if (!SWIG_IsOK(res1)) {
26093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26094 }
26095 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26096 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItemAttr, 0 | 0);
26097 if (!SWIG_IsOK(res2)) {
26098 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26099 }
26100 if (!argp2) {
26101 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26102 }
26103 arg2 = reinterpret_cast< wxListItemAttr * >(argp2);
26104 {
26105 PyThreadState* __tstate = wxPyBeginAllowThreads();
26106 (arg1)->AssignFrom((wxListItemAttr const &)*arg2);
26107 wxPyEndAllowThreads(__tstate);
26108 if (PyErr_Occurred()) SWIG_fail;
26109 }
26110 resultobj = SWIG_Py_Void();
26111 return resultobj;
26112fail:
26113 return NULL;
121b9a67
RD
26114}
26115
26116
1bd55598
RD
26117SWIGINTERN PyObject *_wrap_ListItemAttr_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26118 PyObject *resultobj = 0;
26119 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26120 void *argp1 = 0 ;
26121 int res1 = 0 ;
26122 PyObject *swig_obj[1] ;
26123
26124 if (!args) SWIG_fail;
26125 swig_obj[0] = args;
26126 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26127 if (!SWIG_IsOK(res1)) {
26128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_Destroy" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26129 }
26130 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26131 {
26132 PyThreadState* __tstate = wxPyBeginAllowThreads();
26133 wxListItemAttr_Destroy(arg1);
26134 wxPyEndAllowThreads(__tstate);
26135 if (PyErr_Occurred()) SWIG_fail;
26136 }
26137 resultobj = SWIG_Py_Void();
26138 return resultobj;
26139fail:
26140 return NULL;
121b9a67
RD
26141}
26142
26143
1bd55598
RD
26144SWIGINTERN PyObject *ListItemAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26145 PyObject *obj;
26146 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26147 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItemAttr, SWIG_NewClientData(obj));
26148 return SWIG_Py_Void();
121b9a67
RD
26149}
26150
1bd55598
RD
26151SWIGINTERN PyObject *ListItemAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26152 return SWIG_Python_InitShadowInstance(args);
26153}
121b9a67 26154
1bd55598
RD
26155SWIGINTERN PyObject *_wrap_new_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26156 PyObject *resultobj = 0;
26157 wxListItem *result = 0 ;
26158
26159 if (!SWIG_Python_UnpackTuple(args,"new_ListItem",0,0,0)) SWIG_fail;
26160 {
26161 PyThreadState* __tstate = wxPyBeginAllowThreads();
26162 result = (wxListItem *)new wxListItem();
26163 wxPyEndAllowThreads(__tstate);
26164 if (PyErr_Occurred()) SWIG_fail;
26165 }
26166 {
26167 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
26168 }
26169 return resultobj;
26170fail:
26171 return NULL;
121b9a67
RD
26172}
26173
26174
1bd55598
RD
26175SWIGINTERN PyObject *_wrap_delete_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26176 PyObject *resultobj = 0;
26177 wxListItem *arg1 = (wxListItem *) 0 ;
26178 void *argp1 = 0 ;
26179 int res1 = 0 ;
26180 PyObject *swig_obj[1] ;
26181
26182 if (!args) SWIG_fail;
26183 swig_obj[0] = args;
26184 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, SWIG_POINTER_DISOWN | 0 );
26185 if (!SWIG_IsOK(res1)) {
26186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItem" "', expected argument " "1"" of type '" "wxListItem *""'");
26187 }
26188 arg1 = reinterpret_cast< wxListItem * >(argp1);
26189 {
26190 PyThreadState* __tstate = wxPyBeginAllowThreads();
26191 delete arg1;
f20a2e1f 26192
1bd55598
RD
26193 wxPyEndAllowThreads(__tstate);
26194 if (PyErr_Occurred()) SWIG_fail;
26195 }
26196 resultobj = SWIG_Py_Void();
26197 return resultobj;
26198fail:
26199 return NULL;
f20a2e1f
RD
26200}
26201
26202
1bd55598
RD
26203SWIGINTERN PyObject *_wrap_ListItem_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26204 PyObject *resultobj = 0;
26205 wxListItem *arg1 = (wxListItem *) 0 ;
26206 void *argp1 = 0 ;
26207 int res1 = 0 ;
26208 PyObject *swig_obj[1] ;
26209
26210 if (!args) SWIG_fail;
26211 swig_obj[0] = args;
26212 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26213 if (!SWIG_IsOK(res1)) {
26214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_Clear" "', expected argument " "1"" of type '" "wxListItem *""'");
26215 }
26216 arg1 = reinterpret_cast< wxListItem * >(argp1);
26217 {
26218 PyThreadState* __tstate = wxPyBeginAllowThreads();
26219 (arg1)->Clear();
26220 wxPyEndAllowThreads(__tstate);
26221 if (PyErr_Occurred()) SWIG_fail;
26222 }
26223 resultobj = SWIG_Py_Void();
26224 return resultobj;
26225fail:
26226 return NULL;
d55e5bfc 26227}
1bd55598
RD
26228
26229
26230SWIGINTERN PyObject *_wrap_ListItem_ClearAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26231 PyObject *resultobj = 0;
26232 wxListItem *arg1 = (wxListItem *) 0 ;
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_wxListItem, 0 | 0 );
26240 if (!SWIG_IsOK(res1)) {
26241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_ClearAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26242 }
26243 arg1 = reinterpret_cast< wxListItem * >(argp1);
26244 {
26245 PyThreadState* __tstate = wxPyBeginAllowThreads();
26246 (arg1)->ClearAttributes();
26247 wxPyEndAllowThreads(__tstate);
26248 if (PyErr_Occurred()) SWIG_fail;
26249 }
26250 resultobj = SWIG_Py_Void();
26251 return resultobj;
26252fail:
26253 return NULL;
26254}
26255
26256
26257SWIGINTERN PyObject *_wrap_ListItem_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26258 PyObject *resultobj = 0;
26259 wxListItem *arg1 = (wxListItem *) 0 ;
26260 long arg2 ;
26261 void *argp1 = 0 ;
26262 int res1 = 0 ;
26263 long val2 ;
26264 int ecode2 = 0 ;
26265 PyObject * obj0 = 0 ;
26266 PyObject * obj1 = 0 ;
26267 char * kwnames[] = {
26268 (char *) "self",(char *) "mask", NULL
26269 };
26270
26271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
26272 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26273 if (!SWIG_IsOK(res1)) {
26274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26275 }
26276 arg1 = reinterpret_cast< wxListItem * >(argp1);
26277 ecode2 = SWIG_AsVal_long(obj1, &val2);
26278 if (!SWIG_IsOK(ecode2)) {
26279 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetMask" "', expected argument " "2"" of type '" "long""'");
26280 }
26281 arg2 = static_cast< long >(val2);
26282 {
26283 PyThreadState* __tstate = wxPyBeginAllowThreads();
26284 (arg1)->SetMask(arg2);
26285 wxPyEndAllowThreads(__tstate);
26286 if (PyErr_Occurred()) SWIG_fail;
26287 }
26288 resultobj = SWIG_Py_Void();
26289 return resultobj;
26290fail:
26291 return NULL;
26292}
26293
26294
26295SWIGINTERN PyObject *_wrap_ListItem_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26296 PyObject *resultobj = 0;
26297 wxListItem *arg1 = (wxListItem *) 0 ;
26298 long arg2 ;
26299 void *argp1 = 0 ;
26300 int res1 = 0 ;
26301 long val2 ;
26302 int ecode2 = 0 ;
26303 PyObject * obj0 = 0 ;
26304 PyObject * obj1 = 0 ;
26305 char * kwnames[] = {
26306 (char *) "self",(char *) "id", NULL
26307 };
26308
26309 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
26310 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26311 if (!SWIG_IsOK(res1)) {
26312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26313 }
26314 arg1 = reinterpret_cast< wxListItem * >(argp1);
26315 ecode2 = SWIG_AsVal_long(obj1, &val2);
26316 if (!SWIG_IsOK(ecode2)) {
26317 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetId" "', expected argument " "2"" of type '" "long""'");
26318 }
26319 arg2 = static_cast< long >(val2);
26320 {
26321 PyThreadState* __tstate = wxPyBeginAllowThreads();
26322 (arg1)->SetId(arg2);
26323 wxPyEndAllowThreads(__tstate);
26324 if (PyErr_Occurred()) SWIG_fail;
26325 }
26326 resultobj = SWIG_Py_Void();
26327 return resultobj;
26328fail:
26329 return NULL;
26330}
26331
26332
26333SWIGINTERN PyObject *_wrap_ListItem_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26334 PyObject *resultobj = 0;
26335 wxListItem *arg1 = (wxListItem *) 0 ;
26336 int arg2 ;
26337 void *argp1 = 0 ;
26338 int res1 = 0 ;
26339 int val2 ;
26340 int ecode2 = 0 ;
26341 PyObject * obj0 = 0 ;
26342 PyObject * obj1 = 0 ;
26343 char * kwnames[] = {
26344 (char *) "self",(char *) "col", NULL
26345 };
26346
26347 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
26348 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26349 if (!SWIG_IsOK(res1)) {
26350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26351 }
26352 arg1 = reinterpret_cast< wxListItem * >(argp1);
26353 ecode2 = SWIG_AsVal_int(obj1, &val2);
26354 if (!SWIG_IsOK(ecode2)) {
26355 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetColumn" "', expected argument " "2"" of type '" "int""'");
26356 }
26357 arg2 = static_cast< int >(val2);
26358 {
26359 PyThreadState* __tstate = wxPyBeginAllowThreads();
26360 (arg1)->SetColumn(arg2);
26361 wxPyEndAllowThreads(__tstate);
26362 if (PyErr_Occurred()) SWIG_fail;
26363 }
26364 resultobj = SWIG_Py_Void();
26365 return resultobj;
26366fail:
26367 return NULL;
26368}
26369
26370
26371SWIGINTERN PyObject *_wrap_ListItem_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26372 PyObject *resultobj = 0;
26373 wxListItem *arg1 = (wxListItem *) 0 ;
26374 long arg2 ;
26375 void *argp1 = 0 ;
26376 int res1 = 0 ;
26377 long val2 ;
26378 int ecode2 = 0 ;
26379 PyObject * obj0 = 0 ;
26380 PyObject * obj1 = 0 ;
26381 char * kwnames[] = {
26382 (char *) "self",(char *) "state", NULL
26383 };
26384
26385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) SWIG_fail;
26386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26387 if (!SWIG_IsOK(res1)) {
26388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26389 }
26390 arg1 = reinterpret_cast< wxListItem * >(argp1);
26391 ecode2 = SWIG_AsVal_long(obj1, &val2);
26392 if (!SWIG_IsOK(ecode2)) {
26393 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetState" "', expected argument " "2"" of type '" "long""'");
26394 }
26395 arg2 = static_cast< long >(val2);
26396 {
26397 PyThreadState* __tstate = wxPyBeginAllowThreads();
26398 (arg1)->SetState(arg2);
26399 wxPyEndAllowThreads(__tstate);
26400 if (PyErr_Occurred()) SWIG_fail;
26401 }
26402 resultobj = SWIG_Py_Void();
26403 return resultobj;
26404fail:
26405 return NULL;
26406}
26407
26408
26409SWIGINTERN PyObject *_wrap_ListItem_SetStateMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26410 PyObject *resultobj = 0;
26411 wxListItem *arg1 = (wxListItem *) 0 ;
26412 long arg2 ;
26413 void *argp1 = 0 ;
26414 int res1 = 0 ;
26415 long val2 ;
26416 int ecode2 = 0 ;
26417 PyObject * obj0 = 0 ;
26418 PyObject * obj1 = 0 ;
26419 char * kwnames[] = {
26420 (char *) "self",(char *) "stateMask", NULL
26421 };
26422
26423 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) SWIG_fail;
26424 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26425 if (!SWIG_IsOK(res1)) {
26426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetStateMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26427 }
26428 arg1 = reinterpret_cast< wxListItem * >(argp1);
26429 ecode2 = SWIG_AsVal_long(obj1, &val2);
26430 if (!SWIG_IsOK(ecode2)) {
26431 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetStateMask" "', expected argument " "2"" of type '" "long""'");
26432 }
26433 arg2 = static_cast< long >(val2);
26434 {
26435 PyThreadState* __tstate = wxPyBeginAllowThreads();
26436 (arg1)->SetStateMask(arg2);
26437 wxPyEndAllowThreads(__tstate);
26438 if (PyErr_Occurred()) SWIG_fail;
26439 }
26440 resultobj = SWIG_Py_Void();
26441 return resultobj;
26442fail:
26443 return NULL;
26444}
26445
26446
26447SWIGINTERN PyObject *_wrap_ListItem_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26448 PyObject *resultobj = 0;
26449 wxListItem *arg1 = (wxListItem *) 0 ;
26450 wxString *arg2 = 0 ;
26451 void *argp1 = 0 ;
26452 int res1 = 0 ;
26453 bool temp2 = false ;
26454 PyObject * obj0 = 0 ;
26455 PyObject * obj1 = 0 ;
26456 char * kwnames[] = {
26457 (char *) "self",(char *) "text", NULL
26458 };
26459
26460 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) SWIG_fail;
26461 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26462 if (!SWIG_IsOK(res1)) {
26463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26464 }
26465 arg1 = reinterpret_cast< wxListItem * >(argp1);
26466 {
26467 arg2 = wxString_in_helper(obj1);
26468 if (arg2 == NULL) SWIG_fail;
26469 temp2 = true;
26470 }
26471 {
26472 PyThreadState* __tstate = wxPyBeginAllowThreads();
26473 (arg1)->SetText((wxString const &)*arg2);
26474 wxPyEndAllowThreads(__tstate);
26475 if (PyErr_Occurred()) SWIG_fail;
26476 }
26477 resultobj = SWIG_Py_Void();
26478 {
26479 if (temp2)
26480 delete arg2;
26481 }
26482 return resultobj;
26483fail:
26484 {
26485 if (temp2)
26486 delete arg2;
26487 }
26488 return NULL;
26489}
26490
26491
26492SWIGINTERN PyObject *_wrap_ListItem_SetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26493 PyObject *resultobj = 0;
26494 wxListItem *arg1 = (wxListItem *) 0 ;
26495 int arg2 ;
26496 void *argp1 = 0 ;
26497 int res1 = 0 ;
26498 int val2 ;
26499 int ecode2 = 0 ;
26500 PyObject * obj0 = 0 ;
26501 PyObject * obj1 = 0 ;
26502 char * kwnames[] = {
26503 (char *) "self",(char *) "image", NULL
26504 };
26505
26506 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) SWIG_fail;
26507 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26508 if (!SWIG_IsOK(res1)) {
26509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26510 }
26511 arg1 = reinterpret_cast< wxListItem * >(argp1);
26512 ecode2 = SWIG_AsVal_int(obj1, &val2);
26513 if (!SWIG_IsOK(ecode2)) {
26514 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetImage" "', expected argument " "2"" of type '" "int""'");
26515 }
26516 arg2 = static_cast< int >(val2);
26517 {
26518 PyThreadState* __tstate = wxPyBeginAllowThreads();
26519 (arg1)->SetImage(arg2);
26520 wxPyEndAllowThreads(__tstate);
26521 if (PyErr_Occurred()) SWIG_fail;
26522 }
26523 resultobj = SWIG_Py_Void();
26524 return resultobj;
26525fail:
26526 return NULL;
26527}
26528
26529
26530SWIGINTERN PyObject *_wrap_ListItem_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26531 PyObject *resultobj = 0;
26532 wxListItem *arg1 = (wxListItem *) 0 ;
26533 long arg2 ;
26534 void *argp1 = 0 ;
26535 int res1 = 0 ;
26536 long val2 ;
26537 int ecode2 = 0 ;
26538 PyObject * obj0 = 0 ;
26539 PyObject * obj1 = 0 ;
26540 char * kwnames[] = {
26541 (char *) "self",(char *) "data", NULL
26542 };
26543
26544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
26545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26546 if (!SWIG_IsOK(res1)) {
26547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26548 }
26549 arg1 = reinterpret_cast< wxListItem * >(argp1);
26550 ecode2 = SWIG_AsVal_long(obj1, &val2);
26551 if (!SWIG_IsOK(ecode2)) {
26552 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetData" "', expected argument " "2"" of type '" "long""'");
26553 }
26554 arg2 = static_cast< long >(val2);
26555 {
26556 PyThreadState* __tstate = wxPyBeginAllowThreads();
26557 (arg1)->SetData(arg2);
26558 wxPyEndAllowThreads(__tstate);
26559 if (PyErr_Occurred()) SWIG_fail;
26560 }
26561 resultobj = SWIG_Py_Void();
26562 return resultobj;
26563fail:
26564 return NULL;
26565}
26566
26567
26568SWIGINTERN PyObject *_wrap_ListItem_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26569 PyObject *resultobj = 0;
26570 wxListItem *arg1 = (wxListItem *) 0 ;
26571 int arg2 ;
26572 void *argp1 = 0 ;
26573 int res1 = 0 ;
26574 int val2 ;
26575 int ecode2 = 0 ;
26576 PyObject * obj0 = 0 ;
26577 PyObject * obj1 = 0 ;
26578 char * kwnames[] = {
26579 (char *) "self",(char *) "width", NULL
26580 };
26581
26582 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
26583 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26584 if (!SWIG_IsOK(res1)) {
26585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26586 }
26587 arg1 = reinterpret_cast< wxListItem * >(argp1);
26588 ecode2 = SWIG_AsVal_int(obj1, &val2);
26589 if (!SWIG_IsOK(ecode2)) {
26590 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetWidth" "', expected argument " "2"" of type '" "int""'");
26591 }
26592 arg2 = static_cast< int >(val2);
26593 {
26594 PyThreadState* __tstate = wxPyBeginAllowThreads();
26595 (arg1)->SetWidth(arg2);
26596 wxPyEndAllowThreads(__tstate);
26597 if (PyErr_Occurred()) SWIG_fail;
26598 }
26599 resultobj = SWIG_Py_Void();
26600 return resultobj;
26601fail:
26602 return NULL;
26603}
26604
26605
26606SWIGINTERN PyObject *_wrap_ListItem_SetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26607 PyObject *resultobj = 0;
26608 wxListItem *arg1 = (wxListItem *) 0 ;
26609 wxListColumnFormat arg2 ;
26610 void *argp1 = 0 ;
26611 int res1 = 0 ;
26612 int val2 ;
26613 int ecode2 = 0 ;
26614 PyObject * obj0 = 0 ;
26615 PyObject * obj1 = 0 ;
26616 char * kwnames[] = {
26617 (char *) "self",(char *) "align", NULL
26618 };
26619
26620 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) SWIG_fail;
26621 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26622 if (!SWIG_IsOK(res1)) {
26623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
26624 }
26625 arg1 = reinterpret_cast< wxListItem * >(argp1);
26626 ecode2 = SWIG_AsVal_int(obj1, &val2);
26627 if (!SWIG_IsOK(ecode2)) {
26628 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetAlign" "', expected argument " "2"" of type '" "wxListColumnFormat""'");
26629 }
26630 arg2 = static_cast< wxListColumnFormat >(val2);
26631 {
26632 PyThreadState* __tstate = wxPyBeginAllowThreads();
26633 (arg1)->SetAlign(arg2);
26634 wxPyEndAllowThreads(__tstate);
26635 if (PyErr_Occurred()) SWIG_fail;
26636 }
26637 resultobj = SWIG_Py_Void();
26638 return resultobj;
26639fail:
26640 return NULL;
26641}
26642
26643
26644SWIGINTERN PyObject *_wrap_ListItem_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26645 PyObject *resultobj = 0;
26646 wxListItem *arg1 = (wxListItem *) 0 ;
26647 wxColour *arg2 = 0 ;
26648 void *argp1 = 0 ;
26649 int res1 = 0 ;
26650 wxColour temp2 ;
26651 PyObject * obj0 = 0 ;
26652 PyObject * obj1 = 0 ;
26653 char * kwnames[] = {
26654 (char *) "self",(char *) "colText", NULL
26655 };
26656
26657 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
26658 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26659 if (!SWIG_IsOK(res1)) {
26660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetTextColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26661 }
26662 arg1 = reinterpret_cast< wxListItem * >(argp1);
26663 {
26664 arg2 = &temp2;
26665 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26666 }
26667 {
26668 PyThreadState* __tstate = wxPyBeginAllowThreads();
26669 (arg1)->SetTextColour((wxColour const &)*arg2);
26670 wxPyEndAllowThreads(__tstate);
26671 if (PyErr_Occurred()) SWIG_fail;
26672 }
26673 resultobj = SWIG_Py_Void();
26674 return resultobj;
26675fail:
26676 return NULL;
26677}
26678
26679
26680SWIGINTERN PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26681 PyObject *resultobj = 0;
26682 wxListItem *arg1 = (wxListItem *) 0 ;
26683 wxColour *arg2 = 0 ;
26684 void *argp1 = 0 ;
26685 int res1 = 0 ;
26686 wxColour temp2 ;
26687 PyObject * obj0 = 0 ;
26688 PyObject * obj1 = 0 ;
26689 char * kwnames[] = {
26690 (char *) "self",(char *) "colBack", NULL
26691 };
26692
26693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
26694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26695 if (!SWIG_IsOK(res1)) {
26696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26697 }
26698 arg1 = reinterpret_cast< wxListItem * >(argp1);
26699 {
26700 arg2 = &temp2;
26701 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26702 }
26703 {
26704 PyThreadState* __tstate = wxPyBeginAllowThreads();
26705 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
26706 wxPyEndAllowThreads(__tstate);
26707 if (PyErr_Occurred()) SWIG_fail;
26708 }
26709 resultobj = SWIG_Py_Void();
26710 return resultobj;
26711fail:
26712 return NULL;
26713}
26714
26715
26716SWIGINTERN PyObject *_wrap_ListItem_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26717 PyObject *resultobj = 0;
26718 wxListItem *arg1 = (wxListItem *) 0 ;
26719 wxFont *arg2 = 0 ;
26720 void *argp1 = 0 ;
26721 int res1 = 0 ;
26722 void *argp2 = 0 ;
26723 int res2 = 0 ;
26724 PyObject * obj0 = 0 ;
26725 PyObject * obj1 = 0 ;
26726 char * kwnames[] = {
26727 (char *) "self",(char *) "font", NULL
26728 };
26729
26730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26732 if (!SWIG_IsOK(res1)) {
26733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetFont" "', expected argument " "1"" of type '" "wxListItem *""'");
26734 }
26735 arg1 = reinterpret_cast< wxListItem * >(argp1);
26736 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26737 if (!SWIG_IsOK(res2)) {
26738 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26739 }
26740 if (!argp2) {
26741 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26742 }
26743 arg2 = reinterpret_cast< wxFont * >(argp2);
26744 {
26745 PyThreadState* __tstate = wxPyBeginAllowThreads();
26746 (arg1)->SetFont((wxFont const &)*arg2);
26747 wxPyEndAllowThreads(__tstate);
26748 if (PyErr_Occurred()) SWIG_fail;
26749 }
26750 resultobj = SWIG_Py_Void();
26751 return resultobj;
26752fail:
26753 return NULL;
d55e5bfc
RD
26754}
26755
26756
1bd55598
RD
26757SWIGINTERN PyObject *_wrap_ListItem_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26758 PyObject *resultobj = 0;
26759 wxListItem *arg1 = (wxListItem *) 0 ;
26760 long result;
26761 void *argp1 = 0 ;
26762 int res1 = 0 ;
26763 PyObject *swig_obj[1] ;
26764
26765 if (!args) SWIG_fail;
26766 swig_obj[0] = args;
26767 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26768 if (!SWIG_IsOK(res1)) {
26769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26770 }
26771 arg1 = reinterpret_cast< wxListItem * >(argp1);
26772 {
26773 PyThreadState* __tstate = wxPyBeginAllowThreads();
26774 result = (long)(arg1)->GetMask();
26775 wxPyEndAllowThreads(__tstate);
26776 if (PyErr_Occurred()) SWIG_fail;
26777 }
26778 resultobj = SWIG_From_long(static_cast< long >(result));
26779 return resultobj;
26780fail:
26781 return NULL;
d55e5bfc
RD
26782}
26783
26784
1bd55598
RD
26785SWIGINTERN PyObject *_wrap_ListItem_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26786 PyObject *resultobj = 0;
26787 wxListItem *arg1 = (wxListItem *) 0 ;
26788 long result;
26789 void *argp1 = 0 ;
26790 int res1 = 0 ;
26791 PyObject *swig_obj[1] ;
26792
26793 if (!args) SWIG_fail;
26794 swig_obj[0] = args;
26795 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26796 if (!SWIG_IsOK(res1)) {
26797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26798 }
26799 arg1 = reinterpret_cast< wxListItem * >(argp1);
26800 {
26801 PyThreadState* __tstate = wxPyBeginAllowThreads();
26802 result = (long)(arg1)->GetId();
26803 wxPyEndAllowThreads(__tstate);
26804 if (PyErr_Occurred()) SWIG_fail;
26805 }
26806 resultobj = SWIG_From_long(static_cast< long >(result));
26807 return resultobj;
26808fail:
26809 return NULL;
d55e5bfc
RD
26810}
26811
26812
1bd55598
RD
26813SWIGINTERN PyObject *_wrap_ListItem_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26814 PyObject *resultobj = 0;
26815 wxListItem *arg1 = (wxListItem *) 0 ;
26816 int result;
26817 void *argp1 = 0 ;
26818 int res1 = 0 ;
26819 PyObject *swig_obj[1] ;
26820
26821 if (!args) SWIG_fail;
26822 swig_obj[0] = args;
26823 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26824 if (!SWIG_IsOK(res1)) {
26825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26826 }
26827 arg1 = reinterpret_cast< wxListItem * >(argp1);
26828 {
26829 PyThreadState* __tstate = wxPyBeginAllowThreads();
26830 result = (int)(arg1)->GetColumn();
26831 wxPyEndAllowThreads(__tstate);
26832 if (PyErr_Occurred()) SWIG_fail;
26833 }
26834 resultobj = SWIG_From_int(static_cast< int >(result));
26835 return resultobj;
26836fail:
26837 return NULL;
d55e5bfc
RD
26838}
26839
26840
1bd55598
RD
26841SWIGINTERN PyObject *_wrap_ListItem_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26842 PyObject *resultobj = 0;
26843 wxListItem *arg1 = (wxListItem *) 0 ;
26844 long result;
26845 void *argp1 = 0 ;
26846 int res1 = 0 ;
26847 PyObject *swig_obj[1] ;
26848
26849 if (!args) SWIG_fail;
26850 swig_obj[0] = args;
26851 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26852 if (!SWIG_IsOK(res1)) {
26853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26854 }
26855 arg1 = reinterpret_cast< wxListItem * >(argp1);
26856 {
26857 PyThreadState* __tstate = wxPyBeginAllowThreads();
26858 result = (long)(arg1)->GetState();
26859 wxPyEndAllowThreads(__tstate);
26860 if (PyErr_Occurred()) SWIG_fail;
26861 }
26862 resultobj = SWIG_From_long(static_cast< long >(result));
26863 return resultobj;
26864fail:
26865 return NULL;
8fb0e70a
RD
26866}
26867
26868
1bd55598
RD
26869SWIGINTERN PyObject *_wrap_ListItem_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26870 PyObject *resultobj = 0;
26871 wxListItem *arg1 = (wxListItem *) 0 ;
26872 wxString *result = 0 ;
26873 void *argp1 = 0 ;
26874 int res1 = 0 ;
26875 PyObject *swig_obj[1] ;
26876
26877 if (!args) SWIG_fail;
26878 swig_obj[0] = args;
26879 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26880 if (!SWIG_IsOK(res1)) {
26881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26882 }
26883 arg1 = reinterpret_cast< wxListItem * >(argp1);
26884 {
26885 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 26886 {
1bd55598
RD
26887 wxString const &_result_ref = (arg1)->GetText();
26888 result = (wxString *) &_result_ref;
36ed4f51 26889 }
1bd55598
RD
26890 wxPyEndAllowThreads(__tstate);
26891 if (PyErr_Occurred()) SWIG_fail;
26892 }
26893 {
26894#if wxUSE_UNICODE
26895 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
26896#else
26897 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
26898#endif
26899 }
26900 return resultobj;
26901fail:
26902 return NULL;
d55e5bfc
RD
26903}
26904
26905
1bd55598
RD
26906SWIGINTERN PyObject *_wrap_ListItem_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26907 PyObject *resultobj = 0;
26908 wxListItem *arg1 = (wxListItem *) 0 ;
26909 int result;
26910 void *argp1 = 0 ;
26911 int res1 = 0 ;
26912 PyObject *swig_obj[1] ;
26913
26914 if (!args) SWIG_fail;
26915 swig_obj[0] = args;
26916 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26917 if (!SWIG_IsOK(res1)) {
26918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26919 }
26920 arg1 = reinterpret_cast< wxListItem * >(argp1);
26921 {
26922 PyThreadState* __tstate = wxPyBeginAllowThreads();
26923 result = (int)(arg1)->GetImage();
26924 wxPyEndAllowThreads(__tstate);
26925 if (PyErr_Occurred()) SWIG_fail;
26926 }
26927 resultobj = SWIG_From_int(static_cast< int >(result));
26928 return resultobj;
26929fail:
26930 return NULL;
d55e5bfc
RD
26931}
26932
26933
1bd55598
RD
26934SWIGINTERN PyObject *_wrap_ListItem_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26935 PyObject *resultobj = 0;
26936 wxListItem *arg1 = (wxListItem *) 0 ;
26937 long result;
26938 void *argp1 = 0 ;
26939 int res1 = 0 ;
26940 PyObject *swig_obj[1] ;
26941
26942 if (!args) SWIG_fail;
26943 swig_obj[0] = args;
26944 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26945 if (!SWIG_IsOK(res1)) {
26946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26947 }
26948 arg1 = reinterpret_cast< wxListItem * >(argp1);
26949 {
26950 PyThreadState* __tstate = wxPyBeginAllowThreads();
26951 result = (long)(arg1)->GetData();
26952 wxPyEndAllowThreads(__tstate);
26953 if (PyErr_Occurred()) SWIG_fail;
26954 }
26955 resultobj = SWIG_From_long(static_cast< long >(result));
26956 return resultobj;
26957fail:
26958 return NULL;
d55e5bfc
RD
26959}
26960
26961
1bd55598
RD
26962SWIGINTERN PyObject *_wrap_ListItem_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26963 PyObject *resultobj = 0;
26964 wxListItem *arg1 = (wxListItem *) 0 ;
26965 int result;
26966 void *argp1 = 0 ;
26967 int res1 = 0 ;
26968 PyObject *swig_obj[1] ;
26969
26970 if (!args) SWIG_fail;
26971 swig_obj[0] = args;
26972 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26973 if (!SWIG_IsOK(res1)) {
26974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26975 }
26976 arg1 = reinterpret_cast< wxListItem * >(argp1);
26977 {
26978 PyThreadState* __tstate = wxPyBeginAllowThreads();
26979 result = (int)(arg1)->GetWidth();
26980 wxPyEndAllowThreads(__tstate);
26981 if (PyErr_Occurred()) SWIG_fail;
26982 }
26983 resultobj = SWIG_From_int(static_cast< int >(result));
26984 return resultobj;
26985fail:
26986 return NULL;
d55e5bfc
RD
26987}
26988
26989
1bd55598
RD
26990SWIGINTERN PyObject *_wrap_ListItem_GetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26991 PyObject *resultobj = 0;
26992 wxListItem *arg1 = (wxListItem *) 0 ;
26993 wxListColumnFormat result;
26994 void *argp1 = 0 ;
26995 int res1 = 0 ;
26996 PyObject *swig_obj[1] ;
26997
26998 if (!args) SWIG_fail;
26999 swig_obj[0] = args;
27000 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27001 if (!SWIG_IsOK(res1)) {
27002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
27003 }
27004 arg1 = reinterpret_cast< wxListItem * >(argp1);
27005 {
27006 PyThreadState* __tstate = wxPyBeginAllowThreads();
27007 result = (wxListColumnFormat)(arg1)->GetAlign();
27008 wxPyEndAllowThreads(__tstate);
27009 if (PyErr_Occurred()) SWIG_fail;
27010 }
27011 resultobj = SWIG_From_int(static_cast< int >(result));
27012 return resultobj;
27013fail:
27014 return NULL;
d55e5bfc
RD
27015}
27016
27017
1bd55598
RD
27018SWIGINTERN PyObject *_wrap_ListItem_GetAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27019 PyObject *resultobj = 0;
27020 wxListItem *arg1 = (wxListItem *) 0 ;
27021 wxListItemAttr *result = 0 ;
27022 void *argp1 = 0 ;
27023 int res1 = 0 ;
27024 PyObject *swig_obj[1] ;
27025
27026 if (!args) SWIG_fail;
27027 swig_obj[0] = args;
27028 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27029 if (!SWIG_IsOK(res1)) {
27030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27031 }
27032 arg1 = reinterpret_cast< wxListItem * >(argp1);
27033 {
27034 PyThreadState* __tstate = wxPyBeginAllowThreads();
27035 result = (wxListItemAttr *)(arg1)->GetAttributes();
27036 wxPyEndAllowThreads(__tstate);
27037 if (PyErr_Occurred()) SWIG_fail;
27038 }
27039 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, 0 | 0 );
27040 return resultobj;
27041fail:
27042 return NULL;
d55e5bfc
RD
27043}
27044
27045
1bd55598
RD
27046SWIGINTERN PyObject *_wrap_ListItem_HasAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27047 PyObject *resultobj = 0;
27048 wxListItem *arg1 = (wxListItem *) 0 ;
27049 bool result;
27050 void *argp1 = 0 ;
27051 int res1 = 0 ;
27052 PyObject *swig_obj[1] ;
27053
27054 if (!args) SWIG_fail;
27055 swig_obj[0] = args;
27056 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27057 if (!SWIG_IsOK(res1)) {
27058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_HasAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27059 }
27060 arg1 = reinterpret_cast< wxListItem * >(argp1);
27061 {
27062 PyThreadState* __tstate = wxPyBeginAllowThreads();
27063 result = (bool)(arg1)->HasAttributes();
27064 wxPyEndAllowThreads(__tstate);
27065 if (PyErr_Occurred()) SWIG_fail;
27066 }
27067 {
27068 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27069 }
27070 return resultobj;
27071fail:
27072 return NULL;
d55e5bfc
RD
27073}
27074
27075
1bd55598
RD
27076SWIGINTERN PyObject *_wrap_ListItem_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27077 PyObject *resultobj = 0;
27078 wxListItem *arg1 = (wxListItem *) 0 ;
27079 wxColour result;
27080 void *argp1 = 0 ;
27081 int res1 = 0 ;
27082 PyObject *swig_obj[1] ;
27083
27084 if (!args) SWIG_fail;
27085 swig_obj[0] = args;
27086 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27087 if (!SWIG_IsOK(res1)) {
27088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetTextColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27089 }
27090 arg1 = reinterpret_cast< wxListItem * >(argp1);
27091 {
27092 PyThreadState* __tstate = wxPyBeginAllowThreads();
27093 result = ((wxListItem const *)arg1)->GetTextColour();
27094 wxPyEndAllowThreads(__tstate);
27095 if (PyErr_Occurred()) SWIG_fail;
27096 }
27097 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27098 return resultobj;
27099fail:
27100 return NULL;
d55e5bfc
RD
27101}
27102
27103
1bd55598
RD
27104SWIGINTERN PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27105 PyObject *resultobj = 0;
27106 wxListItem *arg1 = (wxListItem *) 0 ;
27107 wxColour result;
27108 void *argp1 = 0 ;
27109 int res1 = 0 ;
27110 PyObject *swig_obj[1] ;
27111
27112 if (!args) SWIG_fail;
27113 swig_obj[0] = args;
27114 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27115 if (!SWIG_IsOK(res1)) {
27116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27117 }
27118 arg1 = reinterpret_cast< wxListItem * >(argp1);
27119 {
27120 PyThreadState* __tstate = wxPyBeginAllowThreads();
27121 result = ((wxListItem const *)arg1)->GetBackgroundColour();
27122 wxPyEndAllowThreads(__tstate);
27123 if (PyErr_Occurred()) SWIG_fail;
27124 }
27125 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27126 return resultobj;
27127fail:
27128 return NULL;
d55e5bfc
RD
27129}
27130
27131
1bd55598
RD
27132SWIGINTERN PyObject *_wrap_ListItem_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27133 PyObject *resultobj = 0;
27134 wxListItem *arg1 = (wxListItem *) 0 ;
27135 wxFont result;
27136 void *argp1 = 0 ;
27137 int res1 = 0 ;
27138 PyObject *swig_obj[1] ;
27139
27140 if (!args) SWIG_fail;
27141 swig_obj[0] = args;
27142 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27143 if (!SWIG_IsOK(res1)) {
27144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetFont" "', expected argument " "1"" of type '" "wxListItem const *""'");
27145 }
27146 arg1 = reinterpret_cast< wxListItem * >(argp1);
27147 {
27148 PyThreadState* __tstate = wxPyBeginAllowThreads();
27149 result = ((wxListItem const *)arg1)->GetFont();
27150 wxPyEndAllowThreads(__tstate);
27151 if (PyErr_Occurred()) SWIG_fail;
27152 }
27153 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
27154 return resultobj;
27155fail:
27156 return NULL;
27157}
27158
27159
27160SWIGINTERN PyObject *_wrap_ListItem_m_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27161 PyObject *resultobj = 0;
27162 wxListItem *arg1 = (wxListItem *) 0 ;
27163 long arg2 ;
27164 void *argp1 = 0 ;
27165 int res1 = 0 ;
27166 long val2 ;
27167 int ecode2 = 0 ;
27168 PyObject *swig_obj[2] ;
27169
27170 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_mask_set",2,2,swig_obj)) SWIG_fail;
27171 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27172 if (!SWIG_IsOK(res1)) {
27173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27174 }
27175 arg1 = reinterpret_cast< wxListItem * >(argp1);
27176 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27177 if (!SWIG_IsOK(ecode2)) {
27178 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_mask_set" "', expected argument " "2"" of type '" "long""'");
27179 }
27180 arg2 = static_cast< long >(val2);
27181 if (arg1) (arg1)->m_mask = arg2;
27182
27183 resultobj = SWIG_Py_Void();
27184 return resultobj;
27185fail:
27186 return NULL;
d55e5bfc
RD
27187}
27188
27189
1bd55598
RD
27190SWIGINTERN PyObject *_wrap_ListItem_m_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27191 PyObject *resultobj = 0;
27192 wxListItem *arg1 = (wxListItem *) 0 ;
27193 long result;
27194 void *argp1 = 0 ;
27195 int res1 = 0 ;
27196 PyObject *swig_obj[1] ;
27197
27198 if (!args) SWIG_fail;
27199 swig_obj[0] = args;
27200 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27201 if (!SWIG_IsOK(res1)) {
27202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27203 }
27204 arg1 = reinterpret_cast< wxListItem * >(argp1);
27205 result = (long) ((arg1)->m_mask);
27206 resultobj = SWIG_From_long(static_cast< long >(result));
27207 return resultobj;
27208fail:
27209 return NULL;
27210}
27211
27212
27213SWIGINTERN PyObject *_wrap_ListItem_m_itemId_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27214 PyObject *resultobj = 0;
27215 wxListItem *arg1 = (wxListItem *) 0 ;
27216 long arg2 ;
27217 void *argp1 = 0 ;
27218 int res1 = 0 ;
27219 long val2 ;
27220 int ecode2 = 0 ;
27221 PyObject *swig_obj[2] ;
27222
27223 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_itemId_set",2,2,swig_obj)) SWIG_fail;
27224 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27225 if (!SWIG_IsOK(res1)) {
27226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27227 }
27228 arg1 = reinterpret_cast< wxListItem * >(argp1);
27229 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27230 if (!SWIG_IsOK(ecode2)) {
27231 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_itemId_set" "', expected argument " "2"" of type '" "long""'");
27232 }
27233 arg2 = static_cast< long >(val2);
27234 if (arg1) (arg1)->m_itemId = arg2;
27235
27236 resultobj = SWIG_Py_Void();
27237 return resultobj;
27238fail:
27239 return NULL;
7e08d4ef
RD
27240}
27241
27242
1bd55598
RD
27243SWIGINTERN PyObject *_wrap_ListItem_m_itemId_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27244 PyObject *resultobj = 0;
27245 wxListItem *arg1 = (wxListItem *) 0 ;
27246 long result;
27247 void *argp1 = 0 ;
27248 int res1 = 0 ;
27249 PyObject *swig_obj[1] ;
27250
27251 if (!args) SWIG_fail;
27252 swig_obj[0] = args;
27253 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27254 if (!SWIG_IsOK(res1)) {
27255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27256 }
27257 arg1 = reinterpret_cast< wxListItem * >(argp1);
27258 result = (long) ((arg1)->m_itemId);
27259 resultobj = SWIG_From_long(static_cast< long >(result));
27260 return resultobj;
27261fail:
27262 return NULL;
27263}
27264
27265
27266SWIGINTERN PyObject *_wrap_ListItem_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27267 PyObject *resultobj = 0;
27268 wxListItem *arg1 = (wxListItem *) 0 ;
27269 int arg2 ;
27270 void *argp1 = 0 ;
27271 int res1 = 0 ;
27272 int val2 ;
27273 int ecode2 = 0 ;
27274 PyObject *swig_obj[2] ;
27275
27276 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_col_set",2,2,swig_obj)) SWIG_fail;
27277 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27278 if (!SWIG_IsOK(res1)) {
27279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27280 }
27281 arg1 = reinterpret_cast< wxListItem * >(argp1);
27282 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27283 if (!SWIG_IsOK(ecode2)) {
27284 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_col_set" "', expected argument " "2"" of type '" "int""'");
27285 }
27286 arg2 = static_cast< int >(val2);
27287 if (arg1) (arg1)->m_col = arg2;
27288
27289 resultobj = SWIG_Py_Void();
27290 return resultobj;
27291fail:
27292 return NULL;
7e08d4ef
RD
27293}
27294
27295
1bd55598
RD
27296SWIGINTERN PyObject *_wrap_ListItem_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27297 PyObject *resultobj = 0;
27298 wxListItem *arg1 = (wxListItem *) 0 ;
27299 int result;
27300 void *argp1 = 0 ;
27301 int res1 = 0 ;
27302 PyObject *swig_obj[1] ;
27303
27304 if (!args) SWIG_fail;
27305 swig_obj[0] = args;
27306 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27307 if (!SWIG_IsOK(res1)) {
27308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27309 }
27310 arg1 = reinterpret_cast< wxListItem * >(argp1);
27311 result = (int) ((arg1)->m_col);
27312 resultobj = SWIG_From_int(static_cast< int >(result));
27313 return resultobj;
27314fail:
27315 return NULL;
27316}
27317
27318
27319SWIGINTERN PyObject *_wrap_ListItem_m_state_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27320 PyObject *resultobj = 0;
27321 wxListItem *arg1 = (wxListItem *) 0 ;
27322 long arg2 ;
27323 void *argp1 = 0 ;
27324 int res1 = 0 ;
27325 long val2 ;
27326 int ecode2 = 0 ;
27327 PyObject *swig_obj[2] ;
27328
27329 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_state_set",2,2,swig_obj)) SWIG_fail;
27330 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27331 if (!SWIG_IsOK(res1)) {
27332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27333 }
27334 arg1 = reinterpret_cast< wxListItem * >(argp1);
27335 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27336 if (!SWIG_IsOK(ecode2)) {
27337 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_state_set" "', expected argument " "2"" of type '" "long""'");
27338 }
27339 arg2 = static_cast< long >(val2);
27340 if (arg1) (arg1)->m_state = arg2;
27341
27342 resultobj = SWIG_Py_Void();
27343 return resultobj;
27344fail:
27345 return NULL;
7e08d4ef
RD
27346}
27347
27348
1bd55598
RD
27349SWIGINTERN PyObject *_wrap_ListItem_m_state_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27350 PyObject *resultobj = 0;
27351 wxListItem *arg1 = (wxListItem *) 0 ;
27352 long result;
27353 void *argp1 = 0 ;
27354 int res1 = 0 ;
27355 PyObject *swig_obj[1] ;
27356
27357 if (!args) SWIG_fail;
27358 swig_obj[0] = args;
27359 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27360 if (!SWIG_IsOK(res1)) {
27361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27362 }
27363 arg1 = reinterpret_cast< wxListItem * >(argp1);
27364 result = (long) ((arg1)->m_state);
27365 resultobj = SWIG_From_long(static_cast< long >(result));
27366 return resultobj;
27367fail:
27368 return NULL;
27369}
27370
27371
27372SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27373 PyObject *resultobj = 0;
27374 wxListItem *arg1 = (wxListItem *) 0 ;
27375 long arg2 ;
27376 void *argp1 = 0 ;
27377 int res1 = 0 ;
27378 long val2 ;
27379 int ecode2 = 0 ;
27380 PyObject *swig_obj[2] ;
27381
27382 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_stateMask_set",2,2,swig_obj)) SWIG_fail;
27383 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27384 if (!SWIG_IsOK(res1)) {
27385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27386 }
27387 arg1 = reinterpret_cast< wxListItem * >(argp1);
27388 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27389 if (!SWIG_IsOK(ecode2)) {
27390 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_stateMask_set" "', expected argument " "2"" of type '" "long""'");
27391 }
27392 arg2 = static_cast< long >(val2);
27393 if (arg1) (arg1)->m_stateMask = arg2;
27394
27395 resultobj = SWIG_Py_Void();
27396 return resultobj;
27397fail:
27398 return NULL;
7e08d4ef
RD
27399}
27400
27401
1bd55598
RD
27402SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27403 PyObject *resultobj = 0;
27404 wxListItem *arg1 = (wxListItem *) 0 ;
27405 long result;
27406 void *argp1 = 0 ;
27407 int res1 = 0 ;
27408 PyObject *swig_obj[1] ;
27409
27410 if (!args) SWIG_fail;
27411 swig_obj[0] = args;
27412 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27413 if (!SWIG_IsOK(res1)) {
27414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27415 }
27416 arg1 = reinterpret_cast< wxListItem * >(argp1);
27417 result = (long) ((arg1)->m_stateMask);
27418 resultobj = SWIG_From_long(static_cast< long >(result));
27419 return resultobj;
27420fail:
27421 return NULL;
27422}
27423
27424
27425SWIGINTERN PyObject *_wrap_ListItem_m_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27426 PyObject *resultobj = 0;
27427 wxListItem *arg1 = (wxListItem *) 0 ;
27428 wxString *arg2 = (wxString *) 0 ;
27429 void *argp1 = 0 ;
27430 int res1 = 0 ;
27431 bool temp2 = false ;
27432 PyObject *swig_obj[2] ;
27433
27434 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_text_set",2,2,swig_obj)) SWIG_fail;
27435 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27436 if (!SWIG_IsOK(res1)) {
27437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27438 }
27439 arg1 = reinterpret_cast< wxListItem * >(argp1);
27440 {
27441 arg2 = wxString_in_helper(swig_obj[1]);
27442 if (arg2 == NULL) SWIG_fail;
27443 temp2 = true;
27444 }
27445 if (arg1) (arg1)->m_text = *arg2;
27446
27447 resultobj = SWIG_Py_Void();
27448 {
27449 if (temp2)
27450 delete arg2;
27451 }
27452 return resultobj;
27453fail:
27454 {
27455 if (temp2)
27456 delete arg2;
27457 }
27458 return NULL;
7e08d4ef
RD
27459}
27460
27461
1bd55598
RD
27462SWIGINTERN PyObject *_wrap_ListItem_m_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27463 PyObject *resultobj = 0;
27464 wxListItem *arg1 = (wxListItem *) 0 ;
27465 wxString *result = 0 ;
27466 void *argp1 = 0 ;
27467 int res1 = 0 ;
27468 PyObject *swig_obj[1] ;
27469
27470 if (!args) SWIG_fail;
27471 swig_obj[0] = args;
27472 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27473 if (!SWIG_IsOK(res1)) {
27474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27475 }
27476 arg1 = reinterpret_cast< wxListItem * >(argp1);
27477 result = (wxString *)& ((arg1)->m_text);
27478 {
27479#if wxUSE_UNICODE
27480 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27481#else
27482 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27483#endif
27484 }
27485 return resultobj;
27486fail:
27487 return NULL;
d55e5bfc
RD
27488}
27489
27490
1bd55598
RD
27491SWIGINTERN PyObject *_wrap_ListItem_m_image_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27492 PyObject *resultobj = 0;
27493 wxListItem *arg1 = (wxListItem *) 0 ;
27494 int arg2 ;
27495 void *argp1 = 0 ;
27496 int res1 = 0 ;
27497 int val2 ;
27498 int ecode2 = 0 ;
27499 PyObject *swig_obj[2] ;
27500
27501 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_image_set",2,2,swig_obj)) SWIG_fail;
27502 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27503 if (!SWIG_IsOK(res1)) {
27504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27505 }
27506 arg1 = reinterpret_cast< wxListItem * >(argp1);
27507 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27508 if (!SWIG_IsOK(ecode2)) {
27509 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_image_set" "', expected argument " "2"" of type '" "int""'");
27510 }
27511 arg2 = static_cast< int >(val2);
27512 if (arg1) (arg1)->m_image = arg2;
27513
27514 resultobj = SWIG_Py_Void();
27515 return resultobj;
27516fail:
27517 return NULL;
d55e5bfc
RD
27518}
27519
27520
1bd55598
RD
27521SWIGINTERN PyObject *_wrap_ListItem_m_image_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27522 PyObject *resultobj = 0;
27523 wxListItem *arg1 = (wxListItem *) 0 ;
27524 int result;
27525 void *argp1 = 0 ;
27526 int res1 = 0 ;
27527 PyObject *swig_obj[1] ;
27528
27529 if (!args) SWIG_fail;
27530 swig_obj[0] = args;
27531 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27532 if (!SWIG_IsOK(res1)) {
27533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27534 }
27535 arg1 = reinterpret_cast< wxListItem * >(argp1);
27536 result = (int) ((arg1)->m_image);
27537 resultobj = SWIG_From_int(static_cast< int >(result));
27538 return resultobj;
27539fail:
27540 return NULL;
27541}
27542
27543
27544SWIGINTERN PyObject *_wrap_ListItem_m_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27545 PyObject *resultobj = 0;
27546 wxListItem *arg1 = (wxListItem *) 0 ;
27547 long arg2 ;
27548 void *argp1 = 0 ;
27549 int res1 = 0 ;
27550 long val2 ;
27551 int ecode2 = 0 ;
27552 PyObject *swig_obj[2] ;
27553
27554 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_data_set",2,2,swig_obj)) SWIG_fail;
27555 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27556 if (!SWIG_IsOK(res1)) {
27557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27558 }
27559 arg1 = reinterpret_cast< wxListItem * >(argp1);
27560 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27561 if (!SWIG_IsOK(ecode2)) {
27562 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_data_set" "', expected argument " "2"" of type '" "long""'");
27563 }
27564 arg2 = static_cast< long >(val2);
27565 if (arg1) (arg1)->m_data = arg2;
27566
27567 resultobj = SWIG_Py_Void();
27568 return resultobj;
27569fail:
27570 return NULL;
d55e5bfc
RD
27571}
27572
27573
1bd55598
RD
27574SWIGINTERN PyObject *_wrap_ListItem_m_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27575 PyObject *resultobj = 0;
27576 wxListItem *arg1 = (wxListItem *) 0 ;
27577 long result;
27578 void *argp1 = 0 ;
27579 int res1 = 0 ;
27580 PyObject *swig_obj[1] ;
27581
27582 if (!args) SWIG_fail;
27583 swig_obj[0] = args;
27584 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27585 if (!SWIG_IsOK(res1)) {
27586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27587 }
27588 arg1 = reinterpret_cast< wxListItem * >(argp1);
27589 result = (long) ((arg1)->m_data);
27590 resultobj = SWIG_From_long(static_cast< long >(result));
27591 return resultobj;
27592fail:
27593 return NULL;
27594}
27595
27596
27597SWIGINTERN PyObject *_wrap_ListItem_m_format_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27598 PyObject *resultobj = 0;
27599 wxListItem *arg1 = (wxListItem *) 0 ;
27600 int arg2 ;
27601 void *argp1 = 0 ;
27602 int res1 = 0 ;
27603 int val2 ;
27604 int ecode2 = 0 ;
27605 PyObject *swig_obj[2] ;
27606
27607 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_format_set",2,2,swig_obj)) SWIG_fail;
27608 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27609 if (!SWIG_IsOK(res1)) {
27610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27611 }
27612 arg1 = reinterpret_cast< wxListItem * >(argp1);
27613 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27614 if (!SWIG_IsOK(ecode2)) {
27615 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_format_set" "', expected argument " "2"" of type '" "int""'");
27616 }
27617 arg2 = static_cast< int >(val2);
27618 if (arg1) (arg1)->m_format = arg2;
27619
27620 resultobj = SWIG_Py_Void();
27621 return resultobj;
27622fail:
27623 return NULL;
d55e5bfc
RD
27624}
27625
27626
1bd55598
RD
27627SWIGINTERN PyObject *_wrap_ListItem_m_format_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27628 PyObject *resultobj = 0;
27629 wxListItem *arg1 = (wxListItem *) 0 ;
27630 int result;
27631 void *argp1 = 0 ;
27632 int res1 = 0 ;
27633 PyObject *swig_obj[1] ;
27634
27635 if (!args) SWIG_fail;
27636 swig_obj[0] = args;
27637 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27638 if (!SWIG_IsOK(res1)) {
27639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27640 }
27641 arg1 = reinterpret_cast< wxListItem * >(argp1);
27642 result = (int) ((arg1)->m_format);
27643 resultobj = SWIG_From_int(static_cast< int >(result));
27644 return resultobj;
27645fail:
27646 return NULL;
27647}
27648
27649
27650SWIGINTERN PyObject *_wrap_ListItem_m_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27651 PyObject *resultobj = 0;
27652 wxListItem *arg1 = (wxListItem *) 0 ;
27653 int arg2 ;
27654 void *argp1 = 0 ;
27655 int res1 = 0 ;
27656 int val2 ;
27657 int ecode2 = 0 ;
27658 PyObject *swig_obj[2] ;
27659
27660 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_width_set",2,2,swig_obj)) SWIG_fail;
27661 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27662 if (!SWIG_IsOK(res1)) {
27663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27664 }
27665 arg1 = reinterpret_cast< wxListItem * >(argp1);
27666 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27667 if (!SWIG_IsOK(ecode2)) {
27668 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_width_set" "', expected argument " "2"" of type '" "int""'");
27669 }
27670 arg2 = static_cast< int >(val2);
27671 if (arg1) (arg1)->m_width = arg2;
27672
27673 resultobj = SWIG_Py_Void();
27674 return resultobj;
27675fail:
27676 return NULL;
d55e5bfc
RD
27677}
27678
27679
1bd55598
RD
27680SWIGINTERN PyObject *_wrap_ListItem_m_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27681 PyObject *resultobj = 0;
27682 wxListItem *arg1 = (wxListItem *) 0 ;
27683 int result;
27684 void *argp1 = 0 ;
27685 int res1 = 0 ;
27686 PyObject *swig_obj[1] ;
27687
27688 if (!args) SWIG_fail;
27689 swig_obj[0] = args;
27690 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27691 if (!SWIG_IsOK(res1)) {
27692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27693 }
27694 arg1 = reinterpret_cast< wxListItem * >(argp1);
27695 result = (int) ((arg1)->m_width);
27696 resultobj = SWIG_From_int(static_cast< int >(result));
27697 return resultobj;
27698fail:
27699 return NULL;
27700}
27701
27702
27703SWIGINTERN PyObject *ListItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27704 PyObject *obj;
27705 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27706 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItem, SWIG_NewClientData(obj));
27707 return SWIG_Py_Void();
27708}
27709
27710SWIGINTERN PyObject *ListItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27711 return SWIG_Python_InitShadowInstance(args);
27712}
27713
27714SWIGINTERN PyObject *_wrap_new_ListEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27715 PyObject *resultobj = 0;
27716 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
27717 int arg2 = (int) 0 ;
27718 wxListEvent *result = 0 ;
27719 int val1 ;
27720 int ecode1 = 0 ;
27721 int val2 ;
27722 int ecode2 = 0 ;
27723 PyObject * obj0 = 0 ;
27724 PyObject * obj1 = 0 ;
27725 char * kwnames[] = {
27726 (char *) "commandType",(char *) "id", NULL
27727 };
27728
27729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) SWIG_fail;
27730 if (obj0) {
27731 ecode1 = SWIG_AsVal_int(obj0, &val1);
27732 if (!SWIG_IsOK(ecode1)) {
27733 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListEvent" "', expected argument " "1"" of type '" "wxEventType""'");
27734 }
27735 arg1 = static_cast< wxEventType >(val1);
27736 }
27737 if (obj1) {
27738 ecode2 = SWIG_AsVal_int(obj1, &val2);
27739 if (!SWIG_IsOK(ecode2)) {
27740 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListEvent" "', expected argument " "2"" of type '" "int""'");
27741 }
27742 arg2 = static_cast< int >(val2);
27743 }
27744 {
27745 PyThreadState* __tstate = wxPyBeginAllowThreads();
27746 result = (wxListEvent *)new wxListEvent(arg1,arg2);
27747 wxPyEndAllowThreads(__tstate);
27748 if (PyErr_Occurred()) SWIG_fail;
27749 }
27750 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListEvent, SWIG_POINTER_NEW | 0 );
27751 return resultobj;
27752fail:
27753 return NULL;
27754}
27755
27756
27757SWIGINTERN PyObject *_wrap_ListEvent_m_code_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27758 PyObject *resultobj = 0;
27759 wxListEvent *arg1 = (wxListEvent *) 0 ;
27760 int arg2 ;
27761 void *argp1 = 0 ;
27762 int res1 = 0 ;
27763 int val2 ;
27764 int ecode2 = 0 ;
27765 PyObject *swig_obj[2] ;
27766
27767 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_code_set",2,2,swig_obj)) SWIG_fail;
27768 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27769 if (!SWIG_IsOK(res1)) {
27770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27771 }
27772 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27773 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27774 if (!SWIG_IsOK(ecode2)) {
27775 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_code_set" "', expected argument " "2"" of type '" "int""'");
27776 }
27777 arg2 = static_cast< int >(val2);
27778 if (arg1) (arg1)->m_code = arg2;
27779
27780 resultobj = SWIG_Py_Void();
27781 return resultobj;
27782fail:
27783 return NULL;
d55e5bfc
RD
27784}
27785
27786
1bd55598
RD
27787SWIGINTERN PyObject *_wrap_ListEvent_m_code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27788 PyObject *resultobj = 0;
27789 wxListEvent *arg1 = (wxListEvent *) 0 ;
27790 int result;
27791 void *argp1 = 0 ;
27792 int res1 = 0 ;
27793 PyObject *swig_obj[1] ;
27794
27795 if (!args) SWIG_fail;
27796 swig_obj[0] = args;
27797 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27798 if (!SWIG_IsOK(res1)) {
27799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27800 }
27801 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27802 result = (int) ((arg1)->m_code);
27803 resultobj = SWIG_From_int(static_cast< int >(result));
27804 return resultobj;
27805fail:
27806 return NULL;
27807}
27808
27809
27810SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27811 PyObject *resultobj = 0;
27812 wxListEvent *arg1 = (wxListEvent *) 0 ;
27813 long arg2 ;
27814 void *argp1 = 0 ;
27815 int res1 = 0 ;
27816 long val2 ;
27817 int ecode2 = 0 ;
27818 PyObject *swig_obj[2] ;
27819
27820 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_oldItemIndex_set",2,2,swig_obj)) SWIG_fail;
27821 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27822 if (!SWIG_IsOK(res1)) {
27823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27824 }
27825 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27826 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27827 if (!SWIG_IsOK(ecode2)) {
27828 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "2"" of type '" "long""'");
27829 }
27830 arg2 = static_cast< long >(val2);
27831 if (arg1) (arg1)->m_oldItemIndex = arg2;
27832
27833 resultobj = SWIG_Py_Void();
27834 return resultobj;
27835fail:
27836 return NULL;
d55e5bfc
RD
27837}
27838
27839
1bd55598
RD
27840SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27841 PyObject *resultobj = 0;
27842 wxListEvent *arg1 = (wxListEvent *) 0 ;
27843 long result;
27844 void *argp1 = 0 ;
27845 int res1 = 0 ;
27846 PyObject *swig_obj[1] ;
27847
27848 if (!args) SWIG_fail;
27849 swig_obj[0] = args;
27850 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27851 if (!SWIG_IsOK(res1)) {
27852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27853 }
27854 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27855 result = (long) ((arg1)->m_oldItemIndex);
27856 resultobj = SWIG_From_long(static_cast< long >(result));
27857 return resultobj;
27858fail:
27859 return NULL;
27860}
27861
27862
27863SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27864 PyObject *resultobj = 0;
27865 wxListEvent *arg1 = (wxListEvent *) 0 ;
27866 long arg2 ;
27867 void *argp1 = 0 ;
27868 int res1 = 0 ;
27869 long val2 ;
27870 int ecode2 = 0 ;
27871 PyObject *swig_obj[2] ;
27872
27873 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_itemIndex_set",2,2,swig_obj)) SWIG_fail;
27874 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27875 if (!SWIG_IsOK(res1)) {
27876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27877 }
27878 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27879 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27880 if (!SWIG_IsOK(ecode2)) {
27881 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "2"" of type '" "long""'");
27882 }
27883 arg2 = static_cast< long >(val2);
27884 if (arg1) (arg1)->m_itemIndex = arg2;
27885
27886 resultobj = SWIG_Py_Void();
27887 return resultobj;
27888fail:
27889 return NULL;
f20a2e1f
RD
27890}
27891
27892
1bd55598
RD
27893SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27894 PyObject *resultobj = 0;
27895 wxListEvent *arg1 = (wxListEvent *) 0 ;
27896 long result;
27897 void *argp1 = 0 ;
27898 int res1 = 0 ;
27899 PyObject *swig_obj[1] ;
27900
27901 if (!args) SWIG_fail;
27902 swig_obj[0] = args;
27903 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27904 if (!SWIG_IsOK(res1)) {
27905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27906 }
27907 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27908 result = (long) ((arg1)->m_itemIndex);
27909 resultobj = SWIG_From_long(static_cast< long >(result));
27910 return resultobj;
27911fail:
27912 return NULL;
27913}
27914
27915
27916SWIGINTERN PyObject *_wrap_ListEvent_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27917 PyObject *resultobj = 0;
27918 wxListEvent *arg1 = (wxListEvent *) 0 ;
27919 int arg2 ;
27920 void *argp1 = 0 ;
27921 int res1 = 0 ;
27922 int val2 ;
27923 int ecode2 = 0 ;
27924 PyObject *swig_obj[2] ;
27925
27926 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_col_set",2,2,swig_obj)) SWIG_fail;
27927 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27928 if (!SWIG_IsOK(res1)) {
27929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27930 }
27931 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27932 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27933 if (!SWIG_IsOK(ecode2)) {
27934 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_col_set" "', expected argument " "2"" of type '" "int""'");
27935 }
27936 arg2 = static_cast< int >(val2);
27937 if (arg1) (arg1)->m_col = arg2;
27938
27939 resultobj = SWIG_Py_Void();
27940 return resultobj;
27941fail:
27942 return NULL;
d55e5bfc
RD
27943}
27944
27945
1bd55598
RD
27946SWIGINTERN PyObject *_wrap_ListEvent_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27947 PyObject *resultobj = 0;
27948 wxListEvent *arg1 = (wxListEvent *) 0 ;
27949 int result;
27950 void *argp1 = 0 ;
27951 int res1 = 0 ;
27952 PyObject *swig_obj[1] ;
27953
27954 if (!args) SWIG_fail;
27955 swig_obj[0] = args;
27956 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27957 if (!SWIG_IsOK(res1)) {
27958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27959 }
27960 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27961 result = (int) ((arg1)->m_col);
27962 resultobj = SWIG_From_int(static_cast< int >(result));
27963 return resultobj;
27964fail:
27965 return NULL;
27966}
27967
27968
27969SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27970 PyObject *resultobj = 0;
27971 wxListEvent *arg1 = (wxListEvent *) 0 ;
27972 wxPoint *arg2 = (wxPoint *) 0 ;
27973 void *argp1 = 0 ;
27974 int res1 = 0 ;
27975 void *argp2 = 0 ;
27976 int res2 = 0 ;
27977 PyObject *swig_obj[2] ;
27978
27979 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_pointDrag_set",2,2,swig_obj)) SWIG_fail;
27980 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27981 if (!SWIG_IsOK(res1)) {
27982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27983 }
27984 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27985 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPoint, 0 | 0 );
27986 if (!SWIG_IsOK(res2)) {
27987 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "2"" of type '" "wxPoint *""'");
27988 }
27989 arg2 = reinterpret_cast< wxPoint * >(argp2);
27990 if (arg1) (arg1)->m_pointDrag = *arg2;
27991
27992 resultobj = SWIG_Py_Void();
27993 return resultobj;
27994fail:
27995 return NULL;
d55e5bfc
RD
27996}
27997
27998
1bd55598
RD
27999SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28000 PyObject *resultobj = 0;
28001 wxListEvent *arg1 = (wxListEvent *) 0 ;
28002 wxPoint *result = 0 ;
28003 void *argp1 = 0 ;
28004 int res1 = 0 ;
28005 PyObject *swig_obj[1] ;
28006
28007 if (!args) SWIG_fail;
28008 swig_obj[0] = args;
28009 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28010 if (!SWIG_IsOK(res1)) {
28011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28012 }
28013 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28014 result = (wxPoint *)& ((arg1)->m_pointDrag);
28015 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, 0 | 0 );
28016 return resultobj;
28017fail:
28018 return NULL;
28019}
28020
28021
28022SWIGINTERN PyObject *_wrap_ListEvent_m_item_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28023 PyObject *resultobj = 0;
28024 wxListEvent *arg1 = (wxListEvent *) 0 ;
28025 wxListItem *result = 0 ;
28026 void *argp1 = 0 ;
28027 int res1 = 0 ;
28028 PyObject *swig_obj[1] ;
28029
28030 if (!args) SWIG_fail;
28031 swig_obj[0] = args;
28032 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28033 if (!SWIG_IsOK(res1)) {
28034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_item_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28035 }
28036 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28037 result = (wxListItem *)& ((arg1)->m_item);
28038 {
28039 resultobj = wxPyMake_wxObject(result, (bool)0);
28040 }
28041 return resultobj;
28042fail:
28043 return NULL;
d55e5bfc
RD
28044}
28045
28046
1bd55598
RD
28047SWIGINTERN PyObject *_wrap_ListEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28048 PyObject *resultobj = 0;
28049 wxListEvent *arg1 = (wxListEvent *) 0 ;
28050 int result;
28051 void *argp1 = 0 ;
28052 int res1 = 0 ;
28053 PyObject *swig_obj[1] ;
28054
28055 if (!args) SWIG_fail;
28056 swig_obj[0] = args;
28057 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28058 if (!SWIG_IsOK(res1)) {
28059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxListEvent *""'");
28060 }
28061 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28062 {
28063 PyThreadState* __tstate = wxPyBeginAllowThreads();
28064 result = (int)(arg1)->GetKeyCode();
28065 wxPyEndAllowThreads(__tstate);
28066 if (PyErr_Occurred()) SWIG_fail;
28067 }
28068 resultobj = SWIG_From_int(static_cast< int >(result));
28069 return resultobj;
28070fail:
28071 return NULL;
d55e5bfc
RD
28072}
28073
28074
1bd55598
RD
28075SWIGINTERN PyObject *_wrap_ListEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28076 PyObject *resultobj = 0;
28077 wxListEvent *arg1 = (wxListEvent *) 0 ;
28078 long result;
28079 void *argp1 = 0 ;
28080 int res1 = 0 ;
28081 PyObject *swig_obj[1] ;
28082
28083 if (!args) SWIG_fail;
28084 swig_obj[0] = args;
28085 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28086 if (!SWIG_IsOK(res1)) {
28087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetIndex" "', expected argument " "1"" of type '" "wxListEvent *""'");
28088 }
28089 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28090 {
28091 PyThreadState* __tstate = wxPyBeginAllowThreads();
28092 result = (long)(arg1)->GetIndex();
28093 wxPyEndAllowThreads(__tstate);
28094 if (PyErr_Occurred()) SWIG_fail;
28095 }
28096 resultobj = SWIG_From_long(static_cast< long >(result));
28097 return resultobj;
28098fail:
28099 return NULL;
d55e5bfc
RD
28100}
28101
28102
1bd55598
RD
28103SWIGINTERN PyObject *_wrap_ListEvent_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28104 PyObject *resultobj = 0;
28105 wxListEvent *arg1 = (wxListEvent *) 0 ;
28106 int result;
28107 void *argp1 = 0 ;
28108 int res1 = 0 ;
28109 PyObject *swig_obj[1] ;
28110
28111 if (!args) SWIG_fail;
28112 swig_obj[0] = args;
28113 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28114 if (!SWIG_IsOK(res1)) {
28115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetColumn" "', expected argument " "1"" of type '" "wxListEvent *""'");
28116 }
28117 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28118 {
28119 PyThreadState* __tstate = wxPyBeginAllowThreads();
28120 result = (int)(arg1)->GetColumn();
28121 wxPyEndAllowThreads(__tstate);
28122 if (PyErr_Occurred()) SWIG_fail;
28123 }
28124 resultobj = SWIG_From_int(static_cast< int >(result));
28125 return resultobj;
28126fail:
28127 return NULL;
d55e5bfc
RD
28128}
28129
28130
1bd55598
RD
28131SWIGINTERN PyObject *_wrap_ListEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28132 PyObject *resultobj = 0;
28133 wxListEvent *arg1 = (wxListEvent *) 0 ;
28134 wxPoint result;
28135 void *argp1 = 0 ;
28136 int res1 = 0 ;
28137 PyObject *swig_obj[1] ;
28138
28139 if (!args) SWIG_fail;
28140 swig_obj[0] = args;
28141 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28142 if (!SWIG_IsOK(res1)) {
28143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetPoint" "', expected argument " "1"" of type '" "wxListEvent *""'");
28144 }
28145 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28146 {
28147 PyThreadState* __tstate = wxPyBeginAllowThreads();
28148 result = (arg1)->GetPoint();
28149 wxPyEndAllowThreads(__tstate);
28150 if (PyErr_Occurred()) SWIG_fail;
28151 }
28152 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
28153 return resultobj;
28154fail:
28155 return NULL;
d55e5bfc
RD
28156}
28157
28158
1bd55598
RD
28159SWIGINTERN PyObject *_wrap_ListEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28160 PyObject *resultobj = 0;
28161 wxListEvent *arg1 = (wxListEvent *) 0 ;
28162 wxString *result = 0 ;
28163 void *argp1 = 0 ;
28164 int res1 = 0 ;
28165 PyObject *swig_obj[1] ;
28166
28167 if (!args) SWIG_fail;
28168 swig_obj[0] = args;
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_GetLabel" "', expected argument " "1"" of type '" "wxListEvent *""'");
28172 }
28173 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28174 {
28175 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 28176 {
1bd55598
RD
28177 wxString const &_result_ref = (arg1)->GetLabel();
28178 result = (wxString *) &_result_ref;
d55e5bfc 28179 }
1bd55598
RD
28180 wxPyEndAllowThreads(__tstate);
28181 if (PyErr_Occurred()) SWIG_fail;
28182 }
28183 {
28184#if wxUSE_UNICODE
28185 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28186#else
28187 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28188#endif
28189 }
28190 return resultobj;
28191fail:
28192 return NULL;
d55e5bfc
RD
28193}
28194
28195
1bd55598
RD
28196SWIGINTERN PyObject *_wrap_ListEvent_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28197 PyObject *resultobj = 0;
28198 wxListEvent *arg1 = (wxListEvent *) 0 ;
28199 wxString *result = 0 ;
28200 void *argp1 = 0 ;
28201 int res1 = 0 ;
28202 PyObject *swig_obj[1] ;
28203
28204 if (!args) SWIG_fail;
28205 swig_obj[0] = args;
28206 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28207 if (!SWIG_IsOK(res1)) {
28208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetText" "', expected argument " "1"" of type '" "wxListEvent *""'");
28209 }
28210 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28211 {
28212 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 28213 {
1bd55598
RD
28214 wxString const &_result_ref = (arg1)->GetText();
28215 result = (wxString *) &_result_ref;
36ed4f51 28216 }
1bd55598
RD
28217 wxPyEndAllowThreads(__tstate);
28218 if (PyErr_Occurred()) SWIG_fail;
28219 }
28220 {
28221#if wxUSE_UNICODE
28222 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28223#else
28224 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28225#endif
28226 }
28227 return resultobj;
28228fail:
28229 return NULL;
d55e5bfc
RD
28230}
28231
28232
1bd55598
RD
28233SWIGINTERN PyObject *_wrap_ListEvent_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28234 PyObject *resultobj = 0;
28235 wxListEvent *arg1 = (wxListEvent *) 0 ;
28236 int result;
28237 void *argp1 = 0 ;
28238 int res1 = 0 ;
28239 PyObject *swig_obj[1] ;
28240
28241 if (!args) SWIG_fail;
28242 swig_obj[0] = args;
28243 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28244 if (!SWIG_IsOK(res1)) {
28245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetImage" "', expected argument " "1"" of type '" "wxListEvent *""'");
28246 }
28247 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28248 {
28249 PyThreadState* __tstate = wxPyBeginAllowThreads();
28250 result = (int)(arg1)->GetImage();
28251 wxPyEndAllowThreads(__tstate);
28252 if (PyErr_Occurred()) SWIG_fail;
28253 }
28254 resultobj = SWIG_From_int(static_cast< int >(result));
28255 return resultobj;
28256fail:
28257 return NULL;
d55e5bfc
RD
28258}
28259
28260
1bd55598
RD
28261SWIGINTERN PyObject *_wrap_ListEvent_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28262 PyObject *resultobj = 0;
28263 wxListEvent *arg1 = (wxListEvent *) 0 ;
28264 long result;
28265 void *argp1 = 0 ;
28266 int res1 = 0 ;
28267 PyObject *swig_obj[1] ;
28268
28269 if (!args) SWIG_fail;
28270 swig_obj[0] = args;
28271 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28272 if (!SWIG_IsOK(res1)) {
28273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetData" "', expected argument " "1"" of type '" "wxListEvent *""'");
28274 }
28275 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28276 {
28277 PyThreadState* __tstate = wxPyBeginAllowThreads();
28278 result = (long)(arg1)->GetData();
28279 wxPyEndAllowThreads(__tstate);
28280 if (PyErr_Occurred()) SWIG_fail;
28281 }
28282 resultobj = SWIG_From_long(static_cast< long >(result));
28283 return resultobj;
28284fail:
28285 return NULL;
d55e5bfc
RD
28286}
28287
28288
1bd55598
RD
28289SWIGINTERN PyObject *_wrap_ListEvent_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28290 PyObject *resultobj = 0;
28291 wxListEvent *arg1 = (wxListEvent *) 0 ;
28292 long result;
28293 void *argp1 = 0 ;
28294 int res1 = 0 ;
28295 PyObject *swig_obj[1] ;
28296
28297 if (!args) SWIG_fail;
28298 swig_obj[0] = args;
28299 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28300 if (!SWIG_IsOK(res1)) {
28301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetMask" "', expected argument " "1"" of type '" "wxListEvent *""'");
28302 }
28303 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28304 {
28305 PyThreadState* __tstate = wxPyBeginAllowThreads();
28306 result = (long)(arg1)->GetMask();
28307 wxPyEndAllowThreads(__tstate);
28308 if (PyErr_Occurred()) SWIG_fail;
28309 }
28310 resultobj = SWIG_From_long(static_cast< long >(result));
28311 return resultobj;
28312fail:
28313 return NULL;
d55e5bfc
RD
28314}
28315
28316
1bd55598
RD
28317SWIGINTERN PyObject *_wrap_ListEvent_GetItem(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_GetItem" "', expected argument " "1"" of type '" "wxListEvent *""'");
28330 }
28331 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28332 {
28333 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 28334 {
1bd55598
RD
28335 wxListItem const &_result_ref = (arg1)->GetItem();
28336 result = (wxListItem *) &_result_ref;
d55e5bfc 28337 }
1bd55598
RD
28338 wxPyEndAllowThreads(__tstate);
28339 if (PyErr_Occurred()) SWIG_fail;
28340 }
28341 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, 0 | 0 );
28342 return resultobj;
28343fail:
28344 return NULL;
d55e5bfc
RD
28345}
28346
28347
1bd55598
RD
28348SWIGINTERN PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28349 PyObject *resultobj = 0;
28350 wxListEvent *arg1 = (wxListEvent *) 0 ;
28351 long result;
28352 void *argp1 = 0 ;
28353 int res1 = 0 ;
28354 PyObject *swig_obj[1] ;
28355
28356 if (!args) SWIG_fail;
28357 swig_obj[0] = args;
28358 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28359 if (!SWIG_IsOK(res1)) {
28360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheFrom" "', expected argument " "1"" of type '" "wxListEvent *""'");
28361 }
28362 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28363 {
28364 PyThreadState* __tstate = wxPyBeginAllowThreads();
28365 result = (long)(arg1)->GetCacheFrom();
28366 wxPyEndAllowThreads(__tstate);
28367 if (PyErr_Occurred()) SWIG_fail;
28368 }
28369 resultobj = SWIG_From_long(static_cast< long >(result));
28370 return resultobj;
28371fail:
28372 return NULL;
d55e5bfc
RD
28373}
28374
28375
1bd55598
RD
28376SWIGINTERN PyObject *_wrap_ListEvent_GetCacheTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28377 PyObject *resultobj = 0;
28378 wxListEvent *arg1 = (wxListEvent *) 0 ;
28379 long result;
28380 void *argp1 = 0 ;
28381 int res1 = 0 ;
28382 PyObject *swig_obj[1] ;
28383
28384 if (!args) SWIG_fail;
28385 swig_obj[0] = args;
28386 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28387 if (!SWIG_IsOK(res1)) {
28388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheTo" "', expected argument " "1"" of type '" "wxListEvent *""'");
28389 }
28390 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28391 {
28392 PyThreadState* __tstate = wxPyBeginAllowThreads();
28393 result = (long)(arg1)->GetCacheTo();
28394 wxPyEndAllowThreads(__tstate);
28395 if (PyErr_Occurred()) SWIG_fail;
28396 }
28397 resultobj = SWIG_From_long(static_cast< long >(result));
28398 return resultobj;
28399fail:
28400 return NULL;
7e08d4ef
RD
28401}
28402
28403
1bd55598
RD
28404SWIGINTERN PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28405 PyObject *resultobj = 0;
28406 wxListEvent *arg1 = (wxListEvent *) 0 ;
28407 bool result;
28408 void *argp1 = 0 ;
28409 int res1 = 0 ;
28410 PyObject *swig_obj[1] ;
28411
28412 if (!args) SWIG_fail;
28413 swig_obj[0] = args;
28414 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28415 if (!SWIG_IsOK(res1)) {
28416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxListEvent const *""'");
28417 }
28418 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28419 {
28420 PyThreadState* __tstate = wxPyBeginAllowThreads();
28421 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
28422 wxPyEndAllowThreads(__tstate);
28423 if (PyErr_Occurred()) SWIG_fail;
28424 }
28425 {
28426 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28427 }
28428 return resultobj;
28429fail:
28430 return NULL;
28431}
28432
28433
28434SWIGINTERN PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28435 PyObject *resultobj = 0;
28436 wxListEvent *arg1 = (wxListEvent *) 0 ;
28437 bool arg2 ;
28438 void *argp1 = 0 ;
28439 int res1 = 0 ;
28440 bool val2 ;
28441 int ecode2 = 0 ;
28442 PyObject * obj0 = 0 ;
28443 PyObject * obj1 = 0 ;
28444 char * kwnames[] = {
28445 (char *) "self",(char *) "editCancelled", NULL
28446 };
28447
28448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
28449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28450 if (!SWIG_IsOK(res1)) {
28451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxListEvent *""'");
28452 }
28453 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28454 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28455 if (!SWIG_IsOK(ecode2)) {
28456 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
28457 }
28458 arg2 = static_cast< bool >(val2);
28459 {
28460 PyThreadState* __tstate = wxPyBeginAllowThreads();
28461 (arg1)->SetEditCanceled(arg2);
28462 wxPyEndAllowThreads(__tstate);
28463 if (PyErr_Occurred()) SWIG_fail;
28464 }
28465 resultobj = SWIG_Py_Void();
28466 return resultobj;
28467fail:
28468 return NULL;
28469}
28470
28471
28472SWIGINTERN PyObject *ListEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28473 PyObject *obj;
28474 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28475 SWIG_TypeNewClientData(SWIGTYPE_p_wxListEvent, SWIG_NewClientData(obj));
28476 return SWIG_Py_Void();
28477}
28478
28479SWIGINTERN PyObject *ListEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28480 return SWIG_Python_InitShadowInstance(args);
28481}
28482
28483SWIGINTERN PyObject *_wrap_new_ListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28484 PyObject *resultobj = 0;
28485 wxWindow *arg1 = (wxWindow *) 0 ;
28486 int arg2 = (int) -1 ;
28487 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28488 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28489 wxSize const &arg4_defvalue = wxDefaultSize ;
28490 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28491 long arg5 = (long) wxLC_ICON ;
28492 wxValidator const &arg6_defvalue = wxDefaultValidator ;
28493 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
28494 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
28495 wxString *arg7 = (wxString *) &arg7_defvalue ;
28496 wxPyListCtrl *result = 0 ;
28497 void *argp1 = 0 ;
28498 int res1 = 0 ;
28499 int val2 ;
28500 int ecode2 = 0 ;
28501 wxPoint temp3 ;
28502 wxSize temp4 ;
28503 long val5 ;
28504 int ecode5 = 0 ;
28505 void *argp6 = 0 ;
28506 int res6 = 0 ;
28507 bool temp7 = false ;
28508 PyObject * obj0 = 0 ;
28509 PyObject * obj1 = 0 ;
28510 PyObject * obj2 = 0 ;
28511 PyObject * obj3 = 0 ;
28512 PyObject * obj4 = 0 ;
28513 PyObject * obj5 = 0 ;
28514 PyObject * obj6 = 0 ;
28515 char * kwnames[] = {
28516 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28517 };
28518
28519 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28520 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28521 if (!SWIG_IsOK(res1)) {
28522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
28523 }
28524 arg1 = reinterpret_cast< wxWindow * >(argp1);
28525 if (obj1) {
28526 ecode2 = SWIG_AsVal_int(obj1, &val2);
28527 if (!SWIG_IsOK(ecode2)) {
28528 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListCtrl" "', expected argument " "2"" of type '" "int""'");
28529 }
28530 arg2 = static_cast< int >(val2);
28531 }
28532 if (obj2) {
7e08d4ef 28533 {
1bd55598
RD
28534 arg3 = &temp3;
28535 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
7e08d4ef 28536 }
1bd55598
RD
28537 }
28538 if (obj3) {
7e08d4ef 28539 {
1bd55598
RD
28540 arg4 = &temp4;
28541 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
7e08d4ef 28542 }
1bd55598
RD
28543 }
28544 if (obj4) {
28545 ecode5 = SWIG_AsVal_long(obj4, &val5);
28546 if (!SWIG_IsOK(ecode5)) {
28547 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListCtrl" "', expected argument " "5"" of type '" "long""'");
28548 }
28549 arg5 = static_cast< long >(val5);
28550 }
28551 if (obj5) {
28552 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
28553 if (!SWIG_IsOK(res6)) {
28554 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
7e08d4ef 28555 }
1bd55598
RD
28556 if (!argp6) {
28557 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
7e08d4ef 28558 }
1bd55598
RD
28559 arg6 = reinterpret_cast< wxValidator * >(argp6);
28560 }
28561 if (obj6) {
7e08d4ef 28562 {
1bd55598
RD
28563 arg7 = wxString_in_helper(obj6);
28564 if (arg7 == NULL) SWIG_fail;
28565 temp7 = true;
7e08d4ef 28566 }
1bd55598
RD
28567 }
28568 {
28569 if (!wxPyCheckForApp()) SWIG_fail;
28570 PyThreadState* __tstate = wxPyBeginAllowThreads();
28571 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
28572 wxPyEndAllowThreads(__tstate);
28573 if (PyErr_Occurred()) SWIG_fail;
28574 }
28575 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_NEW | 0 );
28576 {
28577 if (temp7)
28578 delete arg7;
28579 }
28580 return resultobj;
28581fail:
28582 {
28583 if (temp7)
28584 delete arg7;
28585 }
28586 return NULL;
7e08d4ef
RD
28587}
28588
28589
1bd55598
RD
28590SWIGINTERN PyObject *_wrap_new_PreListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28591 PyObject *resultobj = 0;
28592 wxPyListCtrl *result = 0 ;
28593
28594 if (!SWIG_Python_UnpackTuple(args,"new_PreListCtrl",0,0,0)) SWIG_fail;
28595 {
28596 if (!wxPyCheckForApp()) SWIG_fail;
28597 PyThreadState* __tstate = wxPyBeginAllowThreads();
28598 result = (wxPyListCtrl *)new wxPyListCtrl();
28599 wxPyEndAllowThreads(__tstate);
28600 if (PyErr_Occurred()) SWIG_fail;
28601 }
28602 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_OWN | 0 );
28603 return resultobj;
28604fail:
28605 return NULL;
28606}
28607
28608
28609SWIGINTERN PyObject *_wrap_ListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28610 PyObject *resultobj = 0;
28611 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28612 wxWindow *arg2 = (wxWindow *) 0 ;
28613 int arg3 = (int) -1 ;
28614 wxPoint const &arg4_defvalue = wxDefaultPosition ;
28615 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
28616 wxSize const &arg5_defvalue = wxDefaultSize ;
28617 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
28618 long arg6 = (long) wxLC_ICON ;
28619 wxValidator const &arg7_defvalue = wxDefaultValidator ;
28620 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
28621 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
28622 wxString *arg8 = (wxString *) &arg8_defvalue ;
28623 bool result;
28624 void *argp1 = 0 ;
28625 int res1 = 0 ;
28626 void *argp2 = 0 ;
28627 int res2 = 0 ;
28628 int val3 ;
28629 int ecode3 = 0 ;
28630 wxPoint temp4 ;
28631 wxSize temp5 ;
28632 long val6 ;
28633 int ecode6 = 0 ;
28634 void *argp7 = 0 ;
28635 int res7 = 0 ;
28636 bool temp8 = false ;
28637 PyObject * obj0 = 0 ;
28638 PyObject * obj1 = 0 ;
28639 PyObject * obj2 = 0 ;
28640 PyObject * obj3 = 0 ;
28641 PyObject * obj4 = 0 ;
28642 PyObject * obj5 = 0 ;
28643 PyObject * obj6 = 0 ;
28644 PyObject * obj7 = 0 ;
28645 char * kwnames[] = {
28646 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28647 };
28648
28649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28651 if (!SWIG_IsOK(res1)) {
28652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Create" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28653 }
28654 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28655 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28656 if (!SWIG_IsOK(res2)) {
28657 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
28658 }
28659 arg2 = reinterpret_cast< wxWindow * >(argp2);
28660 if (obj2) {
28661 ecode3 = SWIG_AsVal_int(obj2, &val3);
28662 if (!SWIG_IsOK(ecode3)) {
28663 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
28664 }
28665 arg3 = static_cast< int >(val3);
28666 }
28667 if (obj3) {
7e08d4ef 28668 {
1bd55598
RD
28669 arg4 = &temp4;
28670 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7e08d4ef 28671 }
1bd55598
RD
28672 }
28673 if (obj4) {
7e08d4ef 28674 {
1bd55598
RD
28675 arg5 = &temp5;
28676 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7e08d4ef 28677 }
1bd55598
RD
28678 }
28679 if (obj5) {
28680 ecode6 = SWIG_AsVal_long(obj5, &val6);
28681 if (!SWIG_IsOK(ecode6)) {
28682 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
28683 }
28684 arg6 = static_cast< long >(val6);
28685 }
28686 if (obj6) {
28687 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
28688 if (!SWIG_IsOK(res7)) {
28689 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
7e08d4ef 28690 }
1bd55598
RD
28691 if (!argp7) {
28692 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
7e08d4ef 28693 }
1bd55598
RD
28694 arg7 = reinterpret_cast< wxValidator * >(argp7);
28695 }
28696 if (obj7) {
7e08d4ef 28697 {
1bd55598
RD
28698 arg8 = wxString_in_helper(obj7);
28699 if (arg8 == NULL) SWIG_fail;
28700 temp8 = true;
7e08d4ef 28701 }
1bd55598
RD
28702 }
28703 {
28704 PyThreadState* __tstate = wxPyBeginAllowThreads();
28705 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
28706 wxPyEndAllowThreads(__tstate);
28707 if (PyErr_Occurred()) SWIG_fail;
28708 }
28709 {
28710 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28711 }
28712 {
28713 if (temp8)
28714 delete arg8;
28715 }
28716 return resultobj;
28717fail:
28718 {
28719 if (temp8)
28720 delete arg8;
28721 }
28722 return NULL;
28723}
28724
28725
28726SWIGINTERN PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28727 PyObject *resultobj = 0;
28728 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28729 PyObject *arg2 = (PyObject *) 0 ;
28730 PyObject *arg3 = (PyObject *) 0 ;
28731 void *argp1 = 0 ;
28732 int res1 = 0 ;
28733 PyObject * obj0 = 0 ;
28734 PyObject * obj1 = 0 ;
28735 PyObject * obj2 = 0 ;
28736 char * kwnames[] = {
28737 (char *) "self",(char *) "self",(char *) "_class", NULL
28738 };
28739
28740 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28741 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28742 if (!SWIG_IsOK(res1)) {
28743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28744 }
28745 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28746 arg2 = obj1;
28747 arg3 = obj2;
28748 {
28749 PyThreadState* __tstate = wxPyBeginAllowThreads();
28750 (arg1)->_setCallbackInfo(arg2,arg3);
28751 wxPyEndAllowThreads(__tstate);
28752 if (PyErr_Occurred()) SWIG_fail;
28753 }
28754 resultobj = SWIG_Py_Void();
28755 return resultobj;
28756fail:
28757 return NULL;
28758}
28759
28760
28761SWIGINTERN PyObject *_wrap_ListCtrl_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28762 PyObject *resultobj = 0;
28763 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28764 int arg2 ;
28765 wxListItem *result = 0 ;
28766 void *argp1 = 0 ;
28767 int res1 = 0 ;
28768 int val2 ;
28769 int ecode2 = 0 ;
28770 PyObject * obj0 = 0 ;
28771 PyObject * obj1 = 0 ;
28772 char * kwnames[] = {
28773 (char *) "self",(char *) "col", NULL
28774 };
28775
28776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
28777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28778 if (!SWIG_IsOK(res1)) {
28779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28780 }
28781 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28782 ecode2 = SWIG_AsVal_int(obj1, &val2);
28783 if (!SWIG_IsOK(ecode2)) {
28784 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumn" "', expected argument " "2"" of type '" "int""'");
28785 }
28786 arg2 = static_cast< int >(val2);
28787 {
28788 PyThreadState* __tstate = wxPyBeginAllowThreads();
28789 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
28790 wxPyEndAllowThreads(__tstate);
28791 if (PyErr_Occurred()) SWIG_fail;
28792 }
28793 {
28794 resultobj = wxPyMake_wxObject(result, (bool)0);
28795 }
28796 return resultobj;
28797fail:
28798 return NULL;
28799}
28800
28801
28802SWIGINTERN PyObject *_wrap_ListCtrl_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28803 PyObject *resultobj = 0;
28804 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28805 int arg2 ;
28806 wxListItem *arg3 = 0 ;
28807 bool result;
28808 void *argp1 = 0 ;
28809 int res1 = 0 ;
28810 int val2 ;
28811 int ecode2 = 0 ;
28812 void *argp3 = 0 ;
28813 int res3 = 0 ;
28814 PyObject * obj0 = 0 ;
28815 PyObject * obj1 = 0 ;
28816 PyObject * obj2 = 0 ;
28817 char * kwnames[] = {
28818 (char *) "self",(char *) "col",(char *) "item", NULL
28819 };
28820
28821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28823 if (!SWIG_IsOK(res1)) {
28824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28825 }
28826 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28827 ecode2 = SWIG_AsVal_int(obj1, &val2);
28828 if (!SWIG_IsOK(ecode2)) {
28829 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumn" "', expected argument " "2"" of type '" "int""'");
28830 }
28831 arg2 = static_cast< int >(val2);
28832 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
28833 if (!SWIG_IsOK(res3)) {
28834 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
28835 }
28836 if (!argp3) {
28837 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
28838 }
28839 arg3 = reinterpret_cast< wxListItem * >(argp3);
28840 {
28841 PyThreadState* __tstate = wxPyBeginAllowThreads();
28842 result = (bool)(arg1)->SetColumn(arg2,*arg3);
28843 wxPyEndAllowThreads(__tstate);
28844 if (PyErr_Occurred()) SWIG_fail;
28845 }
28846 {
28847 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28848 }
28849 return resultobj;
28850fail:
28851 return NULL;
28852}
28853
28854
28855SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28856 PyObject *resultobj = 0;
28857 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28858 int arg2 ;
28859 int result;
28860 void *argp1 = 0 ;
28861 int res1 = 0 ;
28862 int val2 ;
28863 int ecode2 = 0 ;
28864 PyObject * obj0 = 0 ;
28865 PyObject * obj1 = 0 ;
28866 char * kwnames[] = {
28867 (char *) "self",(char *) "col", NULL
28868 };
28869
28870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) SWIG_fail;
28871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28872 if (!SWIG_IsOK(res1)) {
28873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28874 }
28875 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28876 ecode2 = SWIG_AsVal_int(obj1, &val2);
28877 if (!SWIG_IsOK(ecode2)) {
28878 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "2"" of type '" "int""'");
28879 }
28880 arg2 = static_cast< int >(val2);
28881 {
28882 PyThreadState* __tstate = wxPyBeginAllowThreads();
28883 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
28884 wxPyEndAllowThreads(__tstate);
28885 if (PyErr_Occurred()) SWIG_fail;
28886 }
28887 resultobj = SWIG_From_int(static_cast< int >(result));
28888 return resultobj;
28889fail:
28890 return NULL;
28891}
28892
28893
28894SWIGINTERN PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28895 PyObject *resultobj = 0;
28896 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28897 int arg2 ;
28898 int arg3 ;
28899 bool result;
28900 void *argp1 = 0 ;
28901 int res1 = 0 ;
28902 int val2 ;
28903 int ecode2 = 0 ;
28904 int val3 ;
28905 int ecode3 = 0 ;
28906 PyObject * obj0 = 0 ;
28907 PyObject * obj1 = 0 ;
28908 PyObject * obj2 = 0 ;
28909 char * kwnames[] = {
28910 (char *) "self",(char *) "col",(char *) "width", NULL
28911 };
28912
28913 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28914 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28915 if (!SWIG_IsOK(res1)) {
28916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28917 }
28918 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28919 ecode2 = SWIG_AsVal_int(obj1, &val2);
28920 if (!SWIG_IsOK(ecode2)) {
28921 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "2"" of type '" "int""'");
28922 }
28923 arg2 = static_cast< int >(val2);
28924 ecode3 = SWIG_AsVal_int(obj2, &val3);
28925 if (!SWIG_IsOK(ecode3)) {
28926 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "3"" of type '" "int""'");
28927 }
28928 arg3 = static_cast< int >(val3);
28929 {
28930 PyThreadState* __tstate = wxPyBeginAllowThreads();
28931 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
28932 wxPyEndAllowThreads(__tstate);
28933 if (PyErr_Occurred()) SWIG_fail;
28934 }
28935 {
28936 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28937 }
28938 return resultobj;
28939fail:
28940 return NULL;
7e08d4ef
RD
28941}
28942
28943
1bd55598
RD
28944SWIGINTERN PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28945 PyObject *resultobj = 0;
28946 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28947 int result;
28948 void *argp1 = 0 ;
28949 int res1 = 0 ;
28950 PyObject *swig_obj[1] ;
28951
28952 if (!args) SWIG_fail;
28953 swig_obj[0] = args;
28954 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28955 if (!SWIG_IsOK(res1)) {
28956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetCountPerPage" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28957 }
28958 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28959 {
28960 PyThreadState* __tstate = wxPyBeginAllowThreads();
28961 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
28962 wxPyEndAllowThreads(__tstate);
28963 if (PyErr_Occurred()) SWIG_fail;
28964 }
28965 resultobj = SWIG_From_int(static_cast< int >(result));
28966 return resultobj;
28967fail:
28968 return NULL;
7e08d4ef
RD
28969}
28970
28971
1bd55598
RD
28972SWIGINTERN PyObject *_wrap_ListCtrl_GetViewRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28973 PyObject *resultobj = 0;
28974 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28975 wxRect result;
28976 void *argp1 = 0 ;
28977 int res1 = 0 ;
28978 PyObject *swig_obj[1] ;
28979
28980 if (!args) SWIG_fail;
28981 swig_obj[0] = args;
28982 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28983 if (!SWIG_IsOK(res1)) {
28984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetViewRect" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28985 }
28986 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28987 {
28988 PyThreadState* __tstate = wxPyBeginAllowThreads();
28989 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
28990 wxPyEndAllowThreads(__tstate);
28991 if (PyErr_Occurred()) SWIG_fail;
28992 }
28993 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
28994 return resultobj;
28995fail:
28996 return NULL;
7e08d4ef
RD
28997}
28998
28999
1bd55598
RD
29000SWIGINTERN PyObject *_wrap_ListCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29001 PyObject *resultobj = 0;
29002 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29003 wxTextCtrl *result = 0 ;
29004 void *argp1 = 0 ;
29005 int res1 = 0 ;
29006 PyObject *swig_obj[1] ;
29007
29008 if (!args) SWIG_fail;
29009 swig_obj[0] = args;
29010 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29011 if (!SWIG_IsOK(res1)) {
29012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29013 }
29014 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29015 {
29016 PyThreadState* __tstate = wxPyBeginAllowThreads();
29017 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
29018 wxPyEndAllowThreads(__tstate);
29019 if (PyErr_Occurred()) SWIG_fail;
29020 }
29021 {
29022 resultobj = wxPyMake_wxObject(result, 0);
29023 }
29024 return resultobj;
29025fail:
29026 return NULL;
29027}
29028
29029
29030SWIGINTERN PyObject *_wrap_ListCtrl_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29031 PyObject *resultobj = 0;
29032 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29033 long arg2 ;
29034 int arg3 = (int) 0 ;
29035 wxListItem *result = 0 ;
29036 void *argp1 = 0 ;
29037 int res1 = 0 ;
29038 long val2 ;
29039 int ecode2 = 0 ;
29040 int val3 ;
29041 int ecode3 = 0 ;
29042 PyObject * obj0 = 0 ;
29043 PyObject * obj1 = 0 ;
29044 PyObject * obj2 = 0 ;
29045 char * kwnames[] = {
29046 (char *) "self",(char *) "itemId",(char *) "col", NULL
29047 };
29048
29049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29051 if (!SWIG_IsOK(res1)) {
29052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29053 }
29054 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29055 ecode2 = SWIG_AsVal_long(obj1, &val2);
29056 if (!SWIG_IsOK(ecode2)) {
29057 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItem" "', expected argument " "2"" of type '" "long""'");
29058 }
29059 arg2 = static_cast< long >(val2);
29060 if (obj2) {
29061 ecode3 = SWIG_AsVal_int(obj2, &val3);
29062 if (!SWIG_IsOK(ecode3)) {
29063 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItem" "', expected argument " "3"" of type '" "int""'");
29064 }
29065 arg3 = static_cast< int >(val3);
29066 }
29067 {
29068 PyThreadState* __tstate = wxPyBeginAllowThreads();
29069 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
29070 wxPyEndAllowThreads(__tstate);
29071 if (PyErr_Occurred()) SWIG_fail;
29072 }
29073 {
29074 resultobj = wxPyMake_wxObject(result, (bool)0);
29075 }
29076 return resultobj;
29077fail:
29078 return NULL;
29079}
29080
29081
29082SWIGINTERN PyObject *_wrap_ListCtrl_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29083 PyObject *resultobj = 0;
29084 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29085 wxListItem *arg2 = 0 ;
29086 bool result;
29087 void *argp1 = 0 ;
29088 int res1 = 0 ;
29089 void *argp2 = 0 ;
29090 int res2 = 0 ;
29091 PyObject * obj0 = 0 ;
29092 PyObject * obj1 = 0 ;
29093 char * kwnames[] = {
29094 (char *) "self",(char *) "info", NULL
29095 };
29096
29097 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
29098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29099 if (!SWIG_IsOK(res1)) {
29100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29101 }
29102 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29103 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
29104 if (!SWIG_IsOK(res2)) {
29105 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29106 }
29107 if (!argp2) {
29108 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29109 }
29110 arg2 = reinterpret_cast< wxListItem * >(argp2);
29111 {
29112 PyThreadState* __tstate = wxPyBeginAllowThreads();
29113 result = (bool)(arg1)->SetItem(*arg2);
29114 wxPyEndAllowThreads(__tstate);
29115 if (PyErr_Occurred()) SWIG_fail;
29116 }
29117 {
29118 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29119 }
29120 return resultobj;
29121fail:
29122 return NULL;
29123}
29124
29125
29126SWIGINTERN PyObject *_wrap_ListCtrl_SetStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29127 PyObject *resultobj = 0;
29128 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29129 long arg2 ;
29130 int arg3 ;
29131 wxString *arg4 = 0 ;
29132 int arg5 = (int) -1 ;
29133 long result;
29134 void *argp1 = 0 ;
29135 int res1 = 0 ;
29136 long val2 ;
29137 int ecode2 = 0 ;
29138 int val3 ;
29139 int ecode3 = 0 ;
29140 bool temp4 = false ;
29141 int val5 ;
29142 int ecode5 = 0 ;
29143 PyObject * obj0 = 0 ;
29144 PyObject * obj1 = 0 ;
29145 PyObject * obj2 = 0 ;
29146 PyObject * obj3 = 0 ;
29147 PyObject * obj4 = 0 ;
29148 char * kwnames[] = {
29149 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
29150 };
29151
29152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29154 if (!SWIG_IsOK(res1)) {
29155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29156 }
29157 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29158 ecode2 = SWIG_AsVal_long(obj1, &val2);
29159 if (!SWIG_IsOK(ecode2)) {
29160 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetStringItem" "', expected argument " "2"" of type '" "long""'");
29161 }
29162 arg2 = static_cast< long >(val2);
29163 ecode3 = SWIG_AsVal_int(obj2, &val3);
29164 if (!SWIG_IsOK(ecode3)) {
29165 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetStringItem" "', expected argument " "3"" of type '" "int""'");
29166 }
29167 arg3 = static_cast< int >(val3);
29168 {
29169 arg4 = wxString_in_helper(obj3);
29170 if (arg4 == NULL) SWIG_fail;
29171 temp4 = true;
29172 }
29173 if (obj4) {
29174 ecode5 = SWIG_AsVal_int(obj4, &val5);
29175 if (!SWIG_IsOK(ecode5)) {
29176 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_SetStringItem" "', expected argument " "5"" of type '" "int""'");
29177 }
29178 arg5 = static_cast< int >(val5);
29179 }
29180 {
29181 PyThreadState* __tstate = wxPyBeginAllowThreads();
29182 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
29183 wxPyEndAllowThreads(__tstate);
29184 if (PyErr_Occurred()) SWIG_fail;
29185 }
29186 resultobj = SWIG_From_long(static_cast< long >(result));
29187 {
29188 if (temp4)
29189 delete arg4;
29190 }
29191 return resultobj;
29192fail:
29193 {
29194 if (temp4)
29195 delete arg4;
29196 }
29197 return NULL;
29198}
29199
29200
29201SWIGINTERN PyObject *_wrap_ListCtrl_GetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29202 PyObject *resultobj = 0;
29203 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29204 long arg2 ;
29205 long arg3 ;
29206 int result;
29207 void *argp1 = 0 ;
29208 int res1 = 0 ;
29209 long val2 ;
29210 int ecode2 = 0 ;
29211 long val3 ;
29212 int ecode3 = 0 ;
29213 PyObject * obj0 = 0 ;
29214 PyObject * obj1 = 0 ;
29215 PyObject * obj2 = 0 ;
29216 char * kwnames[] = {
29217 (char *) "self",(char *) "item",(char *) "stateMask", NULL
29218 };
29219
29220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29221 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29222 if (!SWIG_IsOK(res1)) {
29223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29224 }
29225 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29226 ecode2 = SWIG_AsVal_long(obj1, &val2);
29227 if (!SWIG_IsOK(ecode2)) {
29228 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemState" "', expected argument " "2"" of type '" "long""'");
29229 }
29230 arg2 = static_cast< long >(val2);
29231 ecode3 = SWIG_AsVal_long(obj2, &val3);
29232 if (!SWIG_IsOK(ecode3)) {
29233 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemState" "', expected argument " "3"" of type '" "long""'");
29234 }
29235 arg3 = static_cast< long >(val3);
29236 {
29237 PyThreadState* __tstate = wxPyBeginAllowThreads();
29238 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
29239 wxPyEndAllowThreads(__tstate);
29240 if (PyErr_Occurred()) SWIG_fail;
29241 }
29242 resultobj = SWIG_From_int(static_cast< int >(result));
29243 return resultobj;
29244fail:
29245 return NULL;
29246}
29247
29248
29249SWIGINTERN PyObject *_wrap_ListCtrl_SetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29250 PyObject *resultobj = 0;
29251 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29252 long arg2 ;
29253 long arg3 ;
29254 long arg4 ;
29255 bool result;
29256 void *argp1 = 0 ;
29257 int res1 = 0 ;
29258 long val2 ;
29259 int ecode2 = 0 ;
29260 long val3 ;
29261 int ecode3 = 0 ;
29262 long val4 ;
29263 int ecode4 = 0 ;
29264 PyObject * obj0 = 0 ;
29265 PyObject * obj1 = 0 ;
29266 PyObject * obj2 = 0 ;
29267 PyObject * obj3 = 0 ;
29268 char * kwnames[] = {
29269 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
29270 };
29271
29272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29274 if (!SWIG_IsOK(res1)) {
29275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29276 }
29277 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29278 ecode2 = SWIG_AsVal_long(obj1, &val2);
29279 if (!SWIG_IsOK(ecode2)) {
29280 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemState" "', expected argument " "2"" of type '" "long""'");
29281 }
29282 arg2 = static_cast< long >(val2);
29283 ecode3 = SWIG_AsVal_long(obj2, &val3);
29284 if (!SWIG_IsOK(ecode3)) {
29285 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemState" "', expected argument " "3"" of type '" "long""'");
29286 }
29287 arg3 = static_cast< long >(val3);
29288 ecode4 = SWIG_AsVal_long(obj3, &val4);
29289 if (!SWIG_IsOK(ecode4)) {
29290 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemState" "', expected argument " "4"" of type '" "long""'");
29291 }
29292 arg4 = static_cast< long >(val4);
29293 {
29294 PyThreadState* __tstate = wxPyBeginAllowThreads();
29295 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
29296 wxPyEndAllowThreads(__tstate);
29297 if (PyErr_Occurred()) SWIG_fail;
29298 }
29299 {
29300 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29301 }
29302 return resultobj;
29303fail:
29304 return NULL;
29305}
29306
29307
29308SWIGINTERN PyObject *_wrap_ListCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29309 PyObject *resultobj = 0;
29310 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29311 long arg2 ;
29312 int arg3 ;
29313 int arg4 = (int) -1 ;
29314 bool result;
29315 void *argp1 = 0 ;
29316 int res1 = 0 ;
29317 long val2 ;
29318 int ecode2 = 0 ;
29319 int val3 ;
29320 int ecode3 = 0 ;
29321 int val4 ;
29322 int ecode4 = 0 ;
29323 PyObject * obj0 = 0 ;
29324 PyObject * obj1 = 0 ;
29325 PyObject * obj2 = 0 ;
29326 PyObject * obj3 = 0 ;
29327 char * kwnames[] = {
29328 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
29329 };
29330
29331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29333 if (!SWIG_IsOK(res1)) {
29334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29335 }
29336 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29337 ecode2 = SWIG_AsVal_long(obj1, &val2);
29338 if (!SWIG_IsOK(ecode2)) {
29339 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemImage" "', expected argument " "2"" of type '" "long""'");
29340 }
29341 arg2 = static_cast< long >(val2);
29342 ecode3 = SWIG_AsVal_int(obj2, &val3);
29343 if (!SWIG_IsOK(ecode3)) {
29344 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
29345 }
29346 arg3 = static_cast< int >(val3);
29347 if (obj3) {
29348 ecode4 = SWIG_AsVal_int(obj3, &val4);
29349 if (!SWIG_IsOK(ecode4)) {
29350 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemImage" "', expected argument " "4"" of type '" "int""'");
29351 }
29352 arg4 = static_cast< int >(val4);
29353 }
29354 {
29355 PyThreadState* __tstate = wxPyBeginAllowThreads();
29356 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
29357 wxPyEndAllowThreads(__tstate);
29358 if (PyErr_Occurred()) SWIG_fail;
29359 }
29360 {
29361 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29362 }
29363 return resultobj;
29364fail:
29365 return NULL;
29366}
29367
29368
29369SWIGINTERN PyObject *_wrap_ListCtrl_SetItemColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29370 PyObject *resultobj = 0;
29371 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29372 long arg2 ;
29373 long arg3 ;
29374 int arg4 ;
29375 bool result;
29376 void *argp1 = 0 ;
29377 int res1 = 0 ;
29378 long val2 ;
29379 int ecode2 = 0 ;
29380 long val3 ;
29381 int ecode3 = 0 ;
29382 int val4 ;
29383 int ecode4 = 0 ;
29384 PyObject * obj0 = 0 ;
29385 PyObject * obj1 = 0 ;
29386 PyObject * obj2 = 0 ;
29387 PyObject * obj3 = 0 ;
29388 char * kwnames[] = {
29389 (char *) "self",(char *) "item",(char *) "column",(char *) "image", NULL
29390 };
29391
29392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemColumnImage",kwnames,&obj0,&obj1,&obj2,&obj3)) 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_SetItemColumnImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29396 }
29397 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29398 ecode2 = SWIG_AsVal_long(obj1, &val2);
29399 if (!SWIG_IsOK(ecode2)) {
29400 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "2"" of type '" "long""'");
29401 }
29402 arg2 = static_cast< long >(val2);
29403 ecode3 = SWIG_AsVal_long(obj2, &val3);
29404 if (!SWIG_IsOK(ecode3)) {
29405 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "3"" of type '" "long""'");
29406 }
29407 arg3 = static_cast< long >(val3);
29408 ecode4 = SWIG_AsVal_int(obj3, &val4);
29409 if (!SWIG_IsOK(ecode4)) {
29410 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "4"" of type '" "int""'");
29411 }
29412 arg4 = static_cast< int >(val4);
29413 {
29414 PyThreadState* __tstate = wxPyBeginAllowThreads();
29415 result = (bool)(arg1)->SetItemColumnImage(arg2,arg3,arg4);
29416 wxPyEndAllowThreads(__tstate);
29417 if (PyErr_Occurred()) SWIG_fail;
29418 }
29419 {
29420 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29421 }
29422 return resultobj;
29423fail:
29424 return NULL;
29425}
29426
29427
29428SWIGINTERN PyObject *_wrap_ListCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29429 PyObject *resultobj = 0;
29430 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29431 long arg2 ;
29432 wxString result;
29433 void *argp1 = 0 ;
29434 int res1 = 0 ;
29435 long val2 ;
29436 int ecode2 = 0 ;
29437 PyObject * obj0 = 0 ;
29438 PyObject * obj1 = 0 ;
29439 char * kwnames[] = {
29440 (char *) "self",(char *) "item", NULL
29441 };
29442
29443 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
29444 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29445 if (!SWIG_IsOK(res1)) {
29446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29447 }
29448 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29449 ecode2 = SWIG_AsVal_long(obj1, &val2);
29450 if (!SWIG_IsOK(ecode2)) {
29451 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemText" "', expected argument " "2"" of type '" "long""'");
29452 }
29453 arg2 = static_cast< long >(val2);
29454 {
29455 PyThreadState* __tstate = wxPyBeginAllowThreads();
29456 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
29457 wxPyEndAllowThreads(__tstate);
29458 if (PyErr_Occurred()) SWIG_fail;
29459 }
29460 {
29461#if wxUSE_UNICODE
29462 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29463#else
29464 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29465#endif
29466 }
29467 return resultobj;
29468fail:
29469 return NULL;
29470}
29471
29472
29473SWIGINTERN PyObject *_wrap_ListCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29474 PyObject *resultobj = 0;
29475 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29476 long arg2 ;
29477 wxString *arg3 = 0 ;
29478 void *argp1 = 0 ;
29479 int res1 = 0 ;
29480 long val2 ;
29481 int ecode2 = 0 ;
29482 bool temp3 = false ;
29483 PyObject * obj0 = 0 ;
29484 PyObject * obj1 = 0 ;
29485 PyObject * obj2 = 0 ;
29486 char * kwnames[] = {
29487 (char *) "self",(char *) "item",(char *) "str", NULL
29488 };
29489
29490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29492 if (!SWIG_IsOK(res1)) {
29493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29494 }
29495 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29496 ecode2 = SWIG_AsVal_long(obj1, &val2);
29497 if (!SWIG_IsOK(ecode2)) {
29498 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemText" "', expected argument " "2"" of type '" "long""'");
29499 }
29500 arg2 = static_cast< long >(val2);
29501 {
29502 arg3 = wxString_in_helper(obj2);
29503 if (arg3 == NULL) SWIG_fail;
29504 temp3 = true;
29505 }
29506 {
29507 PyThreadState* __tstate = wxPyBeginAllowThreads();
29508 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
29509 wxPyEndAllowThreads(__tstate);
29510 if (PyErr_Occurred()) SWIG_fail;
29511 }
29512 resultobj = SWIG_Py_Void();
29513 {
29514 if (temp3)
29515 delete arg3;
29516 }
29517 return resultobj;
29518fail:
29519 {
29520 if (temp3)
29521 delete arg3;
29522 }
29523 return NULL;
29524}
29525
29526
29527SWIGINTERN PyObject *_wrap_ListCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29528 PyObject *resultobj = 0;
29529 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29530 long arg2 ;
29531 long result;
29532 void *argp1 = 0 ;
29533 int res1 = 0 ;
29534 long val2 ;
29535 int ecode2 = 0 ;
29536 PyObject * obj0 = 0 ;
29537 PyObject * obj1 = 0 ;
29538 char * kwnames[] = {
29539 (char *) "self",(char *) "item", NULL
29540 };
29541
29542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
29543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29544 if (!SWIG_IsOK(res1)) {
29545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29546 }
29547 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29548 ecode2 = SWIG_AsVal_long(obj1, &val2);
29549 if (!SWIG_IsOK(ecode2)) {
29550 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemData" "', expected argument " "2"" of type '" "long""'");
29551 }
29552 arg2 = static_cast< long >(val2);
29553 {
29554 PyThreadState* __tstate = wxPyBeginAllowThreads();
29555 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
29556 wxPyEndAllowThreads(__tstate);
29557 if (PyErr_Occurred()) SWIG_fail;
29558 }
29559 resultobj = SWIG_From_long(static_cast< long >(result));
29560 return resultobj;
29561fail:
29562 return NULL;
29563}
29564
29565
29566SWIGINTERN PyObject *_wrap_ListCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29567 PyObject *resultobj = 0;
29568 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29569 long arg2 ;
29570 long arg3 ;
29571 bool result;
29572 void *argp1 = 0 ;
29573 int res1 = 0 ;
29574 long val2 ;
29575 int ecode2 = 0 ;
29576 long val3 ;
29577 int ecode3 = 0 ;
29578 PyObject * obj0 = 0 ;
29579 PyObject * obj1 = 0 ;
29580 PyObject * obj2 = 0 ;
29581 char * kwnames[] = {
29582 (char *) "self",(char *) "item",(char *) "data", NULL
29583 };
29584
29585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29587 if (!SWIG_IsOK(res1)) {
29588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29589 }
29590 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29591 ecode2 = SWIG_AsVal_long(obj1, &val2);
29592 if (!SWIG_IsOK(ecode2)) {
29593 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemData" "', expected argument " "2"" of type '" "long""'");
29594 }
29595 arg2 = static_cast< long >(val2);
29596 ecode3 = SWIG_AsVal_long(obj2, &val3);
29597 if (!SWIG_IsOK(ecode3)) {
29598 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemData" "', expected argument " "3"" of type '" "long""'");
29599 }
29600 arg3 = static_cast< long >(val3);
29601 {
29602 PyThreadState* __tstate = wxPyBeginAllowThreads();
29603 result = (bool)(arg1)->SetItemData(arg2,arg3);
29604 wxPyEndAllowThreads(__tstate);
29605 if (PyErr_Occurred()) SWIG_fail;
29606 }
29607 {
29608 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29609 }
29610 return resultobj;
29611fail:
29612 return NULL;
29613}
29614
29615
29616SWIGINTERN PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29617 PyObject *resultobj = 0;
29618 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29619 long arg2 ;
29620 wxPoint result;
29621 void *argp1 = 0 ;
29622 int res1 = 0 ;
29623 long val2 ;
29624 int ecode2 = 0 ;
29625 PyObject * obj0 = 0 ;
29626 PyObject * obj1 = 0 ;
29627 char * kwnames[] = {
29628 (char *) "self",(char *) "item", NULL
29629 };
29630
29631 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) SWIG_fail;
29632 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29633 if (!SWIG_IsOK(res1)) {
29634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29635 }
29636 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29637 ecode2 = SWIG_AsVal_long(obj1, &val2);
29638 if (!SWIG_IsOK(ecode2)) {
29639 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "2"" of type '" "long""'");
29640 }
29641 arg2 = static_cast< long >(val2);
29642 {
29643 PyThreadState* __tstate = wxPyBeginAllowThreads();
29644 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
29645 wxPyEndAllowThreads(__tstate);
29646 if (PyErr_Occurred()) SWIG_fail;
29647 }
29648 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
29649 return resultobj;
29650fail:
29651 return NULL;
29652}
29653
29654
29655SWIGINTERN PyObject *_wrap_ListCtrl_GetItemRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29656 PyObject *resultobj = 0;
29657 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29658 long arg2 ;
29659 int arg3 = (int) wxLIST_RECT_BOUNDS ;
29660 wxRect result;
29661 void *argp1 = 0 ;
29662 int res1 = 0 ;
29663 long val2 ;
29664 int ecode2 = 0 ;
29665 int val3 ;
29666 int ecode3 = 0 ;
29667 PyObject * obj0 = 0 ;
29668 PyObject * obj1 = 0 ;
29669 PyObject * obj2 = 0 ;
29670 char * kwnames[] = {
29671 (char *) "self",(char *) "item",(char *) "code", NULL
29672 };
29673
29674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29676 if (!SWIG_IsOK(res1)) {
29677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemRect" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29678 }
29679 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29680 ecode2 = SWIG_AsVal_long(obj1, &val2);
29681 if (!SWIG_IsOK(ecode2)) {
29682 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemRect" "', expected argument " "2"" of type '" "long""'");
29683 }
29684 arg2 = static_cast< long >(val2);
29685 if (obj2) {
29686 ecode3 = SWIG_AsVal_int(obj2, &val3);
29687 if (!SWIG_IsOK(ecode3)) {
29688 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemRect" "', expected argument " "3"" of type '" "int""'");
29689 }
29690 arg3 = static_cast< int >(val3);
29691 }
29692 {
29693 PyThreadState* __tstate = wxPyBeginAllowThreads();
29694 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
29695 wxPyEndAllowThreads(__tstate);
29696 if (PyErr_Occurred()) SWIG_fail;
29697 }
29698 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29699 return resultobj;
29700fail:
29701 return NULL;
29702}
29703
29704
29705SWIGINTERN PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29706 PyObject *resultobj = 0;
29707 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29708 long arg2 ;
29709 wxPoint *arg3 = 0 ;
29710 bool result;
29711 void *argp1 = 0 ;
29712 int res1 = 0 ;
29713 long val2 ;
29714 int ecode2 = 0 ;
29715 wxPoint temp3 ;
29716 PyObject * obj0 = 0 ;
29717 PyObject * obj1 = 0 ;
29718 PyObject * obj2 = 0 ;
29719 char * kwnames[] = {
29720 (char *) "self",(char *) "item",(char *) "pos", NULL
29721 };
29722
29723 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29724 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29725 if (!SWIG_IsOK(res1)) {
29726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29727 }
29728 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29729 ecode2 = SWIG_AsVal_long(obj1, &val2);
29730 if (!SWIG_IsOK(ecode2)) {
29731 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "2"" of type '" "long""'");
29732 }
29733 arg2 = static_cast< long >(val2);
29734 {
29735 arg3 = &temp3;
29736 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29737 }
29738 {
29739 PyThreadState* __tstate = wxPyBeginAllowThreads();
29740 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
29741 wxPyEndAllowThreads(__tstate);
29742 if (PyErr_Occurred()) SWIG_fail;
29743 }
29744 {
29745 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29746 }
29747 return resultobj;
29748fail:
29749 return NULL;
7e08d4ef
RD
29750}
29751
29752
1bd55598
RD
29753SWIGINTERN PyObject *_wrap_ListCtrl_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29754 PyObject *resultobj = 0;
29755 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29756 int result;
29757 void *argp1 = 0 ;
29758 int res1 = 0 ;
29759 PyObject *swig_obj[1] ;
29760
29761 if (!args) SWIG_fail;
29762 swig_obj[0] = args;
29763 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29764 if (!SWIG_IsOK(res1)) {
29765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29766 }
29767 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29768 {
29769 PyThreadState* __tstate = wxPyBeginAllowThreads();
29770 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
29771 wxPyEndAllowThreads(__tstate);
29772 if (PyErr_Occurred()) SWIG_fail;
29773 }
29774 resultobj = SWIG_From_int(static_cast< int >(result));
29775 return resultobj;
29776fail:
29777 return NULL;
7e08d4ef
RD
29778}
29779
29780
1bd55598
RD
29781SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29782 PyObject *resultobj = 0;
29783 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29784 int result;
29785 void *argp1 = 0 ;
29786 int res1 = 0 ;
29787 PyObject *swig_obj[1] ;
29788
29789 if (!args) SWIG_fail;
29790 swig_obj[0] = args;
29791 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29792 if (!SWIG_IsOK(res1)) {
29793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29794 }
29795 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29796 {
29797 PyThreadState* __tstate = wxPyBeginAllowThreads();
29798 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
29799 wxPyEndAllowThreads(__tstate);
29800 if (PyErr_Occurred()) SWIG_fail;
29801 }
29802 resultobj = SWIG_From_int(static_cast< int >(result));
29803 return resultobj;
29804fail:
29805 return NULL;
7e08d4ef
RD
29806}
29807
29808
1bd55598
RD
29809SWIGINTERN PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29810 PyObject *resultobj = 0;
29811 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29812 wxSize result;
29813 void *argp1 = 0 ;
29814 int res1 = 0 ;
29815 PyObject *swig_obj[1] ;
29816
29817 if (!args) SWIG_fail;
29818 swig_obj[0] = args;
29819 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29820 if (!SWIG_IsOK(res1)) {
29821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29822 }
29823 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29824 {
29825 PyThreadState* __tstate = wxPyBeginAllowThreads();
29826 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
29827 wxPyEndAllowThreads(__tstate);
29828 if (PyErr_Occurred()) SWIG_fail;
29829 }
29830 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
29831 return resultobj;
29832fail:
29833 return NULL;
29834}
29835
29836
29837SWIGINTERN PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29838 PyObject *resultobj = 0;
29839 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29840 int arg2 ;
29841 bool arg3 = (bool) false ;
29842 void *argp1 = 0 ;
29843 int res1 = 0 ;
29844 int val2 ;
29845 int ecode2 = 0 ;
29846 bool val3 ;
29847 int ecode3 = 0 ;
29848 PyObject * obj0 = 0 ;
29849 PyObject * obj1 = 0 ;
29850 PyObject * obj2 = 0 ;
29851 char * kwnames[] = {
29852 (char *) "self",(char *) "spacing",(char *) "isSmall", NULL
29853 };
29854
29855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29857 if (!SWIG_IsOK(res1)) {
29858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29859 }
29860 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29861 ecode2 = SWIG_AsVal_int(obj1, &val2);
29862 if (!SWIG_IsOK(ecode2)) {
29863 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "2"" of type '" "int""'");
29864 }
29865 arg2 = static_cast< int >(val2);
29866 if (obj2) {
29867 ecode3 = SWIG_AsVal_bool(obj2, &val3);
29868 if (!SWIG_IsOK(ecode3)) {
29869 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "3"" of type '" "bool""'");
29870 }
29871 arg3 = static_cast< bool >(val3);
29872 }
29873 {
29874 PyThreadState* __tstate = wxPyBeginAllowThreads();
29875 (arg1)->SetItemSpacing(arg2,arg3);
29876 wxPyEndAllowThreads(__tstate);
29877 if (PyErr_Occurred()) SWIG_fail;
29878 }
29879 resultobj = SWIG_Py_Void();
29880 return resultobj;
29881fail:
29882 return NULL;
7e08d4ef
RD
29883}
29884
29885
1bd55598
RD
29886SWIGINTERN PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29887 PyObject *resultobj = 0;
29888 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29889 int result;
29890 void *argp1 = 0 ;
29891 int res1 = 0 ;
29892 PyObject *swig_obj[1] ;
29893
29894 if (!args) SWIG_fail;
29895 swig_obj[0] = args;
29896 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29897 if (!SWIG_IsOK(res1)) {
29898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetSelectedItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29899 }
29900 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29901 {
29902 PyThreadState* __tstate = wxPyBeginAllowThreads();
29903 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
29904 wxPyEndAllowThreads(__tstate);
29905 if (PyErr_Occurred()) SWIG_fail;
29906 }
29907 resultobj = SWIG_From_int(static_cast< int >(result));
29908 return resultobj;
29909fail:
29910 return NULL;
7e08d4ef
RD
29911}
29912
29913
1bd55598
RD
29914SWIGINTERN PyObject *_wrap_ListCtrl_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29915 PyObject *resultobj = 0;
29916 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29917 wxColour result;
29918 void *argp1 = 0 ;
29919 int res1 = 0 ;
29920 PyObject *swig_obj[1] ;
29921
29922 if (!args) SWIG_fail;
29923 swig_obj[0] = args;
29924 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29925 if (!SWIG_IsOK(res1)) {
29926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29927 }
29928 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29929 {
29930 PyThreadState* __tstate = wxPyBeginAllowThreads();
29931 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
29932 wxPyEndAllowThreads(__tstate);
29933 if (PyErr_Occurred()) SWIG_fail;
29934 }
29935 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29936 return resultobj;
29937fail:
29938 return NULL;
29939}
29940
29941
29942SWIGINTERN PyObject *_wrap_ListCtrl_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29943 PyObject *resultobj = 0;
29944 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29945 wxColour *arg2 = 0 ;
29946 void *argp1 = 0 ;
29947 int res1 = 0 ;
29948 wxColour temp2 ;
29949 PyObject * obj0 = 0 ;
29950 PyObject * obj1 = 0 ;
29951 char * kwnames[] = {
29952 (char *) "self",(char *) "col", NULL
29953 };
29954
29955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
29956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29957 if (!SWIG_IsOK(res1)) {
29958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29959 }
29960 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29961 {
29962 arg2 = &temp2;
29963 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29964 }
29965 {
29966 PyThreadState* __tstate = wxPyBeginAllowThreads();
29967 (arg1)->SetTextColour((wxColour const &)*arg2);
29968 wxPyEndAllowThreads(__tstate);
29969 if (PyErr_Occurred()) SWIG_fail;
29970 }
29971 resultobj = SWIG_Py_Void();
29972 return resultobj;
29973fail:
29974 return NULL;
7e08d4ef
RD
29975}
29976
29977
1bd55598
RD
29978SWIGINTERN PyObject *_wrap_ListCtrl_GetTopItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29979 PyObject *resultobj = 0;
29980 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29981 long result;
29982 void *argp1 = 0 ;
29983 int res1 = 0 ;
29984 PyObject *swig_obj[1] ;
29985
29986 if (!args) SWIG_fail;
29987 swig_obj[0] = args;
29988 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29989 if (!SWIG_IsOK(res1)) {
29990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTopItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29991 }
29992 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29993 {
29994 PyThreadState* __tstate = wxPyBeginAllowThreads();
29995 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
29996 wxPyEndAllowThreads(__tstate);
29997 if (PyErr_Occurred()) SWIG_fail;
29998 }
29999 resultobj = SWIG_From_long(static_cast< long >(result));
30000 return resultobj;
30001fail:
30002 return NULL;
30003}
30004
30005
30006SWIGINTERN PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30007 PyObject *resultobj = 0;
30008 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30009 long arg2 ;
30010 bool arg3 = (bool) true ;
30011 void *argp1 = 0 ;
30012 int res1 = 0 ;
30013 long val2 ;
30014 int ecode2 = 0 ;
30015 bool val3 ;
30016 int ecode3 = 0 ;
30017 PyObject * obj0 = 0 ;
30018 PyObject * obj1 = 0 ;
30019 PyObject * obj2 = 0 ;
30020 char * kwnames[] = {
30021 (char *) "self",(char *) "style",(char *) "add", NULL
30022 };
30023
30024 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30025 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30026 if (!SWIG_IsOK(res1)) {
30027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30028 }
30029 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30030 ecode2 = SWIG_AsVal_long(obj1, &val2);
30031 if (!SWIG_IsOK(ecode2)) {
30032 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "2"" of type '" "long""'");
30033 }
30034 arg2 = static_cast< long >(val2);
30035 if (obj2) {
30036 ecode3 = SWIG_AsVal_bool(obj2, &val3);
30037 if (!SWIG_IsOK(ecode3)) {
30038 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "3"" of type '" "bool""'");
30039 }
30040 arg3 = static_cast< bool >(val3);
30041 }
30042 {
30043 PyThreadState* __tstate = wxPyBeginAllowThreads();
30044 (arg1)->SetSingleStyle(arg2,arg3);
30045 wxPyEndAllowThreads(__tstate);
30046 if (PyErr_Occurred()) SWIG_fail;
30047 }
30048 resultobj = SWIG_Py_Void();
30049 return resultobj;
30050fail:
30051 return NULL;
30052}
30053
30054
30055SWIGINTERN PyObject *_wrap_ListCtrl_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30056 PyObject *resultobj = 0;
30057 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30058 long arg2 ;
30059 int arg3 = (int) wxLIST_NEXT_ALL ;
30060 int arg4 = (int) wxLIST_STATE_DONTCARE ;
30061 long result;
30062 void *argp1 = 0 ;
30063 int res1 = 0 ;
30064 long val2 ;
30065 int ecode2 = 0 ;
30066 int val3 ;
30067 int ecode3 = 0 ;
30068 int val4 ;
30069 int ecode4 = 0 ;
30070 PyObject * obj0 = 0 ;
30071 PyObject * obj1 = 0 ;
30072 PyObject * obj2 = 0 ;
30073 PyObject * obj3 = 0 ;
30074 char * kwnames[] = {
30075 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
30076 };
30077
30078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30080 if (!SWIG_IsOK(res1)) {
30081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetNextItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30082 }
30083 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30084 ecode2 = SWIG_AsVal_long(obj1, &val2);
30085 if (!SWIG_IsOK(ecode2)) {
30086 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetNextItem" "', expected argument " "2"" of type '" "long""'");
30087 }
30088 arg2 = static_cast< long >(val2);
30089 if (obj2) {
30090 ecode3 = SWIG_AsVal_int(obj2, &val3);
30091 if (!SWIG_IsOK(ecode3)) {
30092 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetNextItem" "', expected argument " "3"" of type '" "int""'");
30093 }
30094 arg3 = static_cast< int >(val3);
30095 }
30096 if (obj3) {
30097 ecode4 = SWIG_AsVal_int(obj3, &val4);
30098 if (!SWIG_IsOK(ecode4)) {
30099 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_GetNextItem" "', expected argument " "4"" of type '" "int""'");
30100 }
30101 arg4 = static_cast< int >(val4);
30102 }
30103 {
30104 PyThreadState* __tstate = wxPyBeginAllowThreads();
30105 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
30106 wxPyEndAllowThreads(__tstate);
30107 if (PyErr_Occurred()) SWIG_fail;
30108 }
30109 resultobj = SWIG_From_long(static_cast< long >(result));
30110 return resultobj;
30111fail:
30112 return NULL;
30113}
30114
30115
30116SWIGINTERN PyObject *_wrap_ListCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30117 PyObject *resultobj = 0;
30118 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30119 int arg2 ;
30120 wxImageList *result = 0 ;
30121 void *argp1 = 0 ;
30122 int res1 = 0 ;
30123 int val2 ;
30124 int ecode2 = 0 ;
30125 PyObject * obj0 = 0 ;
30126 PyObject * obj1 = 0 ;
30127 char * kwnames[] = {
30128 (char *) "self",(char *) "which", NULL
30129 };
30130
30131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
30132 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30133 if (!SWIG_IsOK(res1)) {
30134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30135 }
30136 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30137 ecode2 = SWIG_AsVal_int(obj1, &val2);
30138 if (!SWIG_IsOK(ecode2)) {
30139 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetImageList" "', expected argument " "2"" of type '" "int""'");
30140 }
30141 arg2 = static_cast< int >(val2);
30142 {
30143 PyThreadState* __tstate = wxPyBeginAllowThreads();
30144 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
30145 wxPyEndAllowThreads(__tstate);
30146 if (PyErr_Occurred()) SWIG_fail;
30147 }
30148 {
30149 resultobj = wxPyMake_wxObject(result, (bool)0);
30150 }
30151 return resultobj;
30152fail:
30153 return NULL;
30154}
30155
30156
30157SWIGINTERN PyObject *_wrap_ListCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30158 PyObject *resultobj = 0;
30159 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30160 wxImageList *arg2 = (wxImageList *) 0 ;
30161 int arg3 ;
30162 void *argp1 = 0 ;
30163 int res1 = 0 ;
30164 void *argp2 = 0 ;
30165 int res2 = 0 ;
30166 int val3 ;
30167 int ecode3 = 0 ;
30168 PyObject * obj0 = 0 ;
30169 PyObject * obj1 = 0 ;
30170 PyObject * obj2 = 0 ;
30171 char * kwnames[] = {
30172 (char *) "self",(char *) "imageList",(char *) "which", NULL
30173 };
30174
30175 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30176 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30177 if (!SWIG_IsOK(res1)) {
30178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30179 }
30180 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30181 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
30182 if (!SWIG_IsOK(res2)) {
30183 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30184 }
30185 arg2 = reinterpret_cast< wxImageList * >(argp2);
30186 ecode3 = SWIG_AsVal_int(obj2, &val3);
30187 if (!SWIG_IsOK(ecode3)) {
30188 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetImageList" "', expected argument " "3"" of type '" "int""'");
30189 }
30190 arg3 = static_cast< int >(val3);
30191 {
30192 PyThreadState* __tstate = wxPyBeginAllowThreads();
30193 (arg1)->SetImageList(arg2,arg3);
30194 wxPyEndAllowThreads(__tstate);
30195 if (PyErr_Occurred()) SWIG_fail;
30196 }
30197 resultobj = SWIG_Py_Void();
30198 return resultobj;
30199fail:
30200 return NULL;
30201}
30202
30203
30204SWIGINTERN PyObject *_wrap_ListCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30205 PyObject *resultobj = 0;
30206 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30207 wxImageList *arg2 = (wxImageList *) 0 ;
30208 int arg3 ;
30209 void *argp1 = 0 ;
30210 int res1 = 0 ;
30211 int res2 = 0 ;
30212 int val3 ;
30213 int ecode3 = 0 ;
30214 PyObject * obj0 = 0 ;
30215 PyObject * obj1 = 0 ;
30216 PyObject * obj2 = 0 ;
30217 char * kwnames[] = {
30218 (char *) "self",(char *) "imageList",(char *) "which", NULL
30219 };
30220
30221 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30222 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30223 if (!SWIG_IsOK(res1)) {
30224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30225 }
30226 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30227 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
30228 if (!SWIG_IsOK(res2)) {
30229 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30230 }
30231 ecode3 = SWIG_AsVal_int(obj2, &val3);
30232 if (!SWIG_IsOK(ecode3)) {
30233 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_AssignImageList" "', expected argument " "3"" of type '" "int""'");
30234 }
30235 arg3 = static_cast< int >(val3);
30236 {
30237 PyThreadState* __tstate = wxPyBeginAllowThreads();
30238 (arg1)->AssignImageList(arg2,arg3);
30239 wxPyEndAllowThreads(__tstate);
30240 if (PyErr_Occurred()) SWIG_fail;
30241 }
30242 resultobj = SWIG_Py_Void();
30243 return resultobj;
30244fail:
30245 return NULL;
7e08d4ef
RD
30246}
30247
30248
1bd55598
RD
30249SWIGINTERN PyObject *_wrap_ListCtrl_InReportView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30250 PyObject *resultobj = 0;
30251 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30252 bool result;
30253 void *argp1 = 0 ;
30254 int res1 = 0 ;
30255 PyObject *swig_obj[1] ;
30256
30257 if (!args) SWIG_fail;
30258 swig_obj[0] = args;
30259 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30260 if (!SWIG_IsOK(res1)) {
30261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InReportView" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30262 }
30263 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30264 {
30265 PyThreadState* __tstate = wxPyBeginAllowThreads();
30266 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
30267 wxPyEndAllowThreads(__tstate);
30268 if (PyErr_Occurred()) SWIG_fail;
30269 }
30270 {
30271 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30272 }
30273 return resultobj;
30274fail:
30275 return NULL;
44bf767a
RD
30276}
30277
30278
1bd55598
RD
30279SWIGINTERN PyObject *_wrap_ListCtrl_IsVirtual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30280 PyObject *resultobj = 0;
30281 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30282 bool result;
30283 void *argp1 = 0 ;
30284 int res1 = 0 ;
30285 PyObject *swig_obj[1] ;
30286
30287 if (!args) SWIG_fail;
30288 swig_obj[0] = args;
30289 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30290 if (!SWIG_IsOK(res1)) {
30291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_IsVirtual" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30292 }
30293 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30294 {
30295 PyThreadState* __tstate = wxPyBeginAllowThreads();
30296 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
30297 wxPyEndAllowThreads(__tstate);
30298 if (PyErr_Occurred()) SWIG_fail;
30299 }
30300 {
30301 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30302 }
30303 return resultobj;
30304fail:
30305 return NULL;
30306}
30307
30308
30309SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30310 PyObject *resultobj = 0;
30311 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30312 long arg2 ;
30313 void *argp1 = 0 ;
30314 int res1 = 0 ;
30315 long val2 ;
30316 int ecode2 = 0 ;
30317 PyObject * obj0 = 0 ;
30318 PyObject * obj1 = 0 ;
30319 char * kwnames[] = {
30320 (char *) "self",(char *) "item", NULL
30321 };
30322
30323 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) SWIG_fail;
30324 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30325 if (!SWIG_IsOK(res1)) {
30326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30327 }
30328 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30329 ecode2 = SWIG_AsVal_long(obj1, &val2);
30330 if (!SWIG_IsOK(ecode2)) {
30331 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItem" "', expected argument " "2"" of type '" "long""'");
30332 }
30333 arg2 = static_cast< long >(val2);
30334 {
30335 PyThreadState* __tstate = wxPyBeginAllowThreads();
30336 (arg1)->RefreshItem(arg2);
30337 wxPyEndAllowThreads(__tstate);
30338 if (PyErr_Occurred()) SWIG_fail;
30339 }
30340 resultobj = SWIG_Py_Void();
30341 return resultobj;
30342fail:
30343 return NULL;
30344}
30345
30346
30347SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30348 PyObject *resultobj = 0;
30349 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30350 long arg2 ;
30351 long arg3 ;
30352 void *argp1 = 0 ;
30353 int res1 = 0 ;
30354 long val2 ;
30355 int ecode2 = 0 ;
30356 long val3 ;
30357 int ecode3 = 0 ;
30358 PyObject * obj0 = 0 ;
30359 PyObject * obj1 = 0 ;
30360 PyObject * obj2 = 0 ;
30361 char * kwnames[] = {
30362 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
30363 };
30364
30365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30367 if (!SWIG_IsOK(res1)) {
30368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30369 }
30370 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30371 ecode2 = SWIG_AsVal_long(obj1, &val2);
30372 if (!SWIG_IsOK(ecode2)) {
30373 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItems" "', expected argument " "2"" of type '" "long""'");
30374 }
30375 arg2 = static_cast< long >(val2);
30376 ecode3 = SWIG_AsVal_long(obj2, &val3);
30377 if (!SWIG_IsOK(ecode3)) {
30378 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_RefreshItems" "', expected argument " "3"" of type '" "long""'");
30379 }
30380 arg3 = static_cast< long >(val3);
30381 {
30382 PyThreadState* __tstate = wxPyBeginAllowThreads();
30383 (arg1)->RefreshItems(arg2,arg3);
30384 wxPyEndAllowThreads(__tstate);
30385 if (PyErr_Occurred()) SWIG_fail;
30386 }
30387 resultobj = SWIG_Py_Void();
30388 return resultobj;
30389fail:
30390 return NULL;
30391}
30392
30393
30394SWIGINTERN PyObject *_wrap_ListCtrl_Arrange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30395 PyObject *resultobj = 0;
30396 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30397 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
30398 bool result;
30399 void *argp1 = 0 ;
30400 int res1 = 0 ;
30401 int val2 ;
30402 int ecode2 = 0 ;
30403 PyObject * obj0 = 0 ;
30404 PyObject * obj1 = 0 ;
30405 char * kwnames[] = {
30406 (char *) "self",(char *) "flag", NULL
30407 };
30408
30409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) SWIG_fail;
30410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30411 if (!SWIG_IsOK(res1)) {
30412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Arrange" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30413 }
30414 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30415 if (obj1) {
30416 ecode2 = SWIG_AsVal_int(obj1, &val2);
30417 if (!SWIG_IsOK(ecode2)) {
30418 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_Arrange" "', expected argument " "2"" of type '" "int""'");
30419 }
30420 arg2 = static_cast< int >(val2);
30421 }
30422 {
30423 PyThreadState* __tstate = wxPyBeginAllowThreads();
30424 result = (bool)(arg1)->Arrange(arg2);
30425 wxPyEndAllowThreads(__tstate);
30426 if (PyErr_Occurred()) SWIG_fail;
30427 }
30428 {
30429 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30430 }
30431 return resultobj;
30432fail:
30433 return NULL;
30434}
30435
30436
30437SWIGINTERN PyObject *_wrap_ListCtrl_DeleteItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30438 PyObject *resultobj = 0;
30439 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30440 long arg2 ;
30441 bool result;
30442 void *argp1 = 0 ;
30443 int res1 = 0 ;
30444 long val2 ;
30445 int ecode2 = 0 ;
30446 PyObject * obj0 = 0 ;
30447 PyObject * obj1 = 0 ;
30448 char * kwnames[] = {
30449 (char *) "self",(char *) "item", NULL
30450 };
30451
30452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) SWIG_fail;
30453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30454 if (!SWIG_IsOK(res1)) {
30455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30456 }
30457 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30458 ecode2 = SWIG_AsVal_long(obj1, &val2);
30459 if (!SWIG_IsOK(ecode2)) {
30460 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteItem" "', expected argument " "2"" of type '" "long""'");
30461 }
30462 arg2 = static_cast< long >(val2);
30463 {
30464 PyThreadState* __tstate = wxPyBeginAllowThreads();
30465 result = (bool)(arg1)->DeleteItem(arg2);
30466 wxPyEndAllowThreads(__tstate);
30467 if (PyErr_Occurred()) SWIG_fail;
30468 }
30469 {
30470 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30471 }
30472 return resultobj;
30473fail:
30474 return NULL;
d55e5bfc
RD
30475}
30476
30477
1bd55598
RD
30478SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30479 PyObject *resultobj = 0;
30480 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30481 bool result;
30482 void *argp1 = 0 ;
30483 int res1 = 0 ;
30484 PyObject *swig_obj[1] ;
30485
30486 if (!args) SWIG_fail;
30487 swig_obj[0] = args;
30488 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30489 if (!SWIG_IsOK(res1)) {
30490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30491 }
30492 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30493 {
30494 PyThreadState* __tstate = wxPyBeginAllowThreads();
30495 result = (bool)(arg1)->DeleteAllItems();
30496 wxPyEndAllowThreads(__tstate);
30497 if (PyErr_Occurred()) SWIG_fail;
30498 }
30499 {
30500 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30501 }
30502 return resultobj;
30503fail:
30504 return NULL;
30505}
30506
30507
30508SWIGINTERN PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30509 PyObject *resultobj = 0;
30510 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30511 int arg2 ;
30512 bool result;
30513 void *argp1 = 0 ;
30514 int res1 = 0 ;
30515 int val2 ;
30516 int ecode2 = 0 ;
30517 PyObject * obj0 = 0 ;
30518 PyObject * obj1 = 0 ;
30519 char * kwnames[] = {
30520 (char *) "self",(char *) "col", NULL
30521 };
30522
30523 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) SWIG_fail;
30524 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30525 if (!SWIG_IsOK(res1)) {
30526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30527 }
30528 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30529 ecode2 = SWIG_AsVal_int(obj1, &val2);
30530 if (!SWIG_IsOK(ecode2)) {
30531 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "2"" of type '" "int""'");
30532 }
30533 arg2 = static_cast< int >(val2);
30534 {
30535 PyThreadState* __tstate = wxPyBeginAllowThreads();
30536 result = (bool)(arg1)->DeleteColumn(arg2);
30537 wxPyEndAllowThreads(__tstate);
30538 if (PyErr_Occurred()) SWIG_fail;
30539 }
30540 {
30541 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30542 }
30543 return resultobj;
30544fail:
30545 return NULL;
b411df4a
RD
30546}
30547
30548
1bd55598
RD
30549SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30550 PyObject *resultobj = 0;
30551 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30552 bool result;
30553 void *argp1 = 0 ;
30554 int res1 = 0 ;
30555 PyObject *swig_obj[1] ;
30556
30557 if (!args) SWIG_fail;
30558 swig_obj[0] = args;
30559 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30560 if (!SWIG_IsOK(res1)) {
30561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllColumns" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30562 }
30563 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30564 {
30565 PyThreadState* __tstate = wxPyBeginAllowThreads();
30566 result = (bool)(arg1)->DeleteAllColumns();
30567 wxPyEndAllowThreads(__tstate);
30568 if (PyErr_Occurred()) SWIG_fail;
30569 }
30570 {
30571 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30572 }
30573 return resultobj;
30574fail:
30575 return NULL;
b411df4a
RD
30576}
30577
30578
1bd55598
RD
30579SWIGINTERN PyObject *_wrap_ListCtrl_ClearAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30580 PyObject *resultobj = 0;
30581 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30582 void *argp1 = 0 ;
30583 int res1 = 0 ;
30584 PyObject *swig_obj[1] ;
30585
30586 if (!args) SWIG_fail;
30587 swig_obj[0] = args;
30588 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30589 if (!SWIG_IsOK(res1)) {
30590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ClearAll" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30591 }
30592 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30593 {
30594 PyThreadState* __tstate = wxPyBeginAllowThreads();
30595 (arg1)->ClearAll();
30596 wxPyEndAllowThreads(__tstate);
30597 if (PyErr_Occurred()) SWIG_fail;
30598 }
30599 resultobj = SWIG_Py_Void();
30600 return resultobj;
30601fail:
30602 return NULL;
30603}
30604
30605
30606SWIGINTERN PyObject *_wrap_ListCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30607 PyObject *resultobj = 0;
30608 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30609 long arg2 ;
30610 void *argp1 = 0 ;
30611 int res1 = 0 ;
30612 long val2 ;
30613 int ecode2 = 0 ;
30614 PyObject * obj0 = 0 ;
30615 PyObject * obj1 = 0 ;
30616 char * kwnames[] = {
30617 (char *) "self",(char *) "item", NULL
30618 };
30619
30620 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
30621 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30622 if (!SWIG_IsOK(res1)) {
30623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30624 }
30625 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30626 ecode2 = SWIG_AsVal_long(obj1, &val2);
30627 if (!SWIG_IsOK(ecode2)) {
30628 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EditLabel" "', expected argument " "2"" of type '" "long""'");
30629 }
30630 arg2 = static_cast< long >(val2);
30631 {
30632 PyThreadState* __tstate = wxPyBeginAllowThreads();
30633 (arg1)->EditLabel(arg2);
30634 wxPyEndAllowThreads(__tstate);
30635 if (PyErr_Occurred()) SWIG_fail;
30636 }
30637 resultobj = SWIG_Py_Void();
30638 return resultobj;
30639fail:
30640 return NULL;
30641}
30642
30643
30644SWIGINTERN PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30645 PyObject *resultobj = 0;
30646 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30647 long arg2 ;
30648 bool result;
30649 void *argp1 = 0 ;
30650 int res1 = 0 ;
30651 long val2 ;
30652 int ecode2 = 0 ;
30653 PyObject * obj0 = 0 ;
30654 PyObject * obj1 = 0 ;
30655 char * kwnames[] = {
30656 (char *) "self",(char *) "item", NULL
30657 };
30658
30659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
30660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30661 if (!SWIG_IsOK(res1)) {
30662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30663 }
30664 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30665 ecode2 = SWIG_AsVal_long(obj1, &val2);
30666 if (!SWIG_IsOK(ecode2)) {
30667 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "2"" of type '" "long""'");
30668 }
30669 arg2 = static_cast< long >(val2);
30670 {
30671 PyThreadState* __tstate = wxPyBeginAllowThreads();
30672 result = (bool)(arg1)->EnsureVisible(arg2);
30673 wxPyEndAllowThreads(__tstate);
30674 if (PyErr_Occurred()) SWIG_fail;
30675 }
30676 {
30677 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30678 }
30679 return resultobj;
30680fail:
30681 return NULL;
30682}
30683
30684
30685SWIGINTERN PyObject *_wrap_ListCtrl_FindItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30686 PyObject *resultobj = 0;
30687 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30688 long arg2 ;
30689 wxString *arg3 = 0 ;
30690 bool arg4 = (bool) false ;
30691 long result;
30692 void *argp1 = 0 ;
30693 int res1 = 0 ;
30694 long val2 ;
30695 int ecode2 = 0 ;
30696 bool temp3 = false ;
30697 bool val4 ;
30698 int ecode4 = 0 ;
30699 PyObject * obj0 = 0 ;
30700 PyObject * obj1 = 0 ;
30701 PyObject * obj2 = 0 ;
30702 PyObject * obj3 = 0 ;
30703 char * kwnames[] = {
30704 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
30705 };
30706
30707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30709 if (!SWIG_IsOK(res1)) {
30710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30711 }
30712 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30713 ecode2 = SWIG_AsVal_long(obj1, &val2);
30714 if (!SWIG_IsOK(ecode2)) {
30715 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItem" "', expected argument " "2"" of type '" "long""'");
30716 }
30717 arg2 = static_cast< long >(val2);
30718 {
30719 arg3 = wxString_in_helper(obj2);
30720 if (arg3 == NULL) SWIG_fail;
30721 temp3 = true;
30722 }
30723 if (obj3) {
30724 ecode4 = SWIG_AsVal_bool(obj3, &val4);
30725 if (!SWIG_IsOK(ecode4)) {
30726 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItem" "', expected argument " "4"" of type '" "bool""'");
30727 }
30728 arg4 = static_cast< bool >(val4);
30729 }
30730 {
30731 PyThreadState* __tstate = wxPyBeginAllowThreads();
30732 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
30733 wxPyEndAllowThreads(__tstate);
30734 if (PyErr_Occurred()) SWIG_fail;
30735 }
30736 resultobj = SWIG_From_long(static_cast< long >(result));
30737 {
30738 if (temp3)
30739 delete arg3;
30740 }
30741 return resultobj;
30742fail:
30743 {
30744 if (temp3)
30745 delete arg3;
30746 }
30747 return NULL;
30748}
30749
30750
30751SWIGINTERN PyObject *_wrap_ListCtrl_FindItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30752 PyObject *resultobj = 0;
30753 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30754 long arg2 ;
30755 long arg3 ;
30756 long result;
30757 void *argp1 = 0 ;
30758 int res1 = 0 ;
30759 long val2 ;
30760 int ecode2 = 0 ;
30761 long val3 ;
30762 int ecode3 = 0 ;
30763 PyObject * obj0 = 0 ;
30764 PyObject * obj1 = 0 ;
30765 PyObject * obj2 = 0 ;
30766 char * kwnames[] = {
30767 (char *) "self",(char *) "start",(char *) "data", NULL
30768 };
30769
30770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30772 if (!SWIG_IsOK(res1)) {
30773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30774 }
30775 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30776 ecode2 = SWIG_AsVal_long(obj1, &val2);
30777 if (!SWIG_IsOK(ecode2)) {
30778 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemData" "', expected argument " "2"" of type '" "long""'");
30779 }
30780 arg2 = static_cast< long >(val2);
30781 ecode3 = SWIG_AsVal_long(obj2, &val3);
30782 if (!SWIG_IsOK(ecode3)) {
30783 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_FindItemData" "', expected argument " "3"" of type '" "long""'");
30784 }
30785 arg3 = static_cast< long >(val3);
30786 {
30787 PyThreadState* __tstate = wxPyBeginAllowThreads();
30788 result = (long)(arg1)->FindItem(arg2,arg3);
30789 wxPyEndAllowThreads(__tstate);
30790 if (PyErr_Occurred()) SWIG_fail;
30791 }
30792 resultobj = SWIG_From_long(static_cast< long >(result));
30793 return resultobj;
30794fail:
30795 return NULL;
30796}
30797
30798
30799SWIGINTERN PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30800 PyObject *resultobj = 0;
30801 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30802 long arg2 ;
30803 wxPoint *arg3 = 0 ;
30804 int arg4 ;
30805 long result;
30806 void *argp1 = 0 ;
30807 int res1 = 0 ;
30808 long val2 ;
30809 int ecode2 = 0 ;
30810 wxPoint temp3 ;
30811 int val4 ;
30812 int ecode4 = 0 ;
30813 PyObject * obj0 = 0 ;
30814 PyObject * obj1 = 0 ;
30815 PyObject * obj2 = 0 ;
30816 PyObject * obj3 = 0 ;
30817 char * kwnames[] = {
30818 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
30819 };
30820
30821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30823 if (!SWIG_IsOK(res1)) {
30824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30825 }
30826 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30827 ecode2 = SWIG_AsVal_long(obj1, &val2);
30828 if (!SWIG_IsOK(ecode2)) {
30829 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "2"" of type '" "long""'");
30830 }
30831 arg2 = static_cast< long >(val2);
30832 {
30833 arg3 = &temp3;
30834 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30835 }
30836 ecode4 = SWIG_AsVal_int(obj3, &val4);
30837 if (!SWIG_IsOK(ecode4)) {
30838 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "4"" of type '" "int""'");
30839 }
30840 arg4 = static_cast< int >(val4);
30841 {
30842 PyThreadState* __tstate = wxPyBeginAllowThreads();
30843 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
30844 wxPyEndAllowThreads(__tstate);
30845 if (PyErr_Occurred()) SWIG_fail;
30846 }
30847 resultobj = SWIG_From_long(static_cast< long >(result));
30848 return resultobj;
30849fail:
30850 return NULL;
30851}
30852
30853
30854SWIGINTERN PyObject *_wrap_ListCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30855 PyObject *resultobj = 0;
30856 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30857 wxPoint *arg2 = 0 ;
30858 int *arg3 = 0 ;
30859 long result;
30860 void *argp1 = 0 ;
30861 int res1 = 0 ;
30862 wxPoint temp2 ;
30863 int temp3 ;
30864 int res3 = SWIG_TMPOBJ ;
30865 PyObject * obj0 = 0 ;
30866 PyObject * obj1 = 0 ;
30867 char * kwnames[] = {
30868 (char *) "self",(char *) "point", NULL
30869 };
30870
30871 arg3 = &temp3;
30872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
30873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30874 if (!SWIG_IsOK(res1)) {
30875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30876 }
30877 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30878 {
30879 arg2 = &temp2;
30880 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30881 }
30882 {
30883 PyThreadState* __tstate = wxPyBeginAllowThreads();
30884 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
30885 wxPyEndAllowThreads(__tstate);
30886 if (PyErr_Occurred()) SWIG_fail;
30887 }
30888 resultobj = SWIG_From_long(static_cast< long >(result));
30889 if (SWIG_IsTmpObj(res3)) {
30890 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
30891 } else {
30892 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30893 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
30894 }
30895 return resultobj;
30896fail:
30897 return NULL;
30898}
30899
30900
704eda0c
RD
30901SWIGINTERN PyObject *_wrap_ListCtrl_HitTestSubItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30902 PyObject *resultobj = 0;
30903 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30904 wxPoint *arg2 = 0 ;
30905 int *arg3 = 0 ;
30906 long *arg4 = (long *) 0 ;
30907 long result;
30908 void *argp1 = 0 ;
30909 int res1 = 0 ;
30910 wxPoint temp2 ;
30911 int temp3 ;
30912 int res3 = SWIG_TMPOBJ ;
30913 long temp4 ;
30914 int res4 = SWIG_TMPOBJ ;
30915 PyObject * obj0 = 0 ;
30916 PyObject * obj1 = 0 ;
30917 char * kwnames[] = {
30918 (char *) "self",(char *) "point", NULL
30919 };
30920
30921 arg3 = &temp3;
30922 arg4 = &temp4;
30923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTestSubItem",kwnames,&obj0,&obj1)) SWIG_fail;
30924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30925 if (!SWIG_IsOK(res1)) {
30926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTestSubItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30927 }
30928 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30929 {
30930 arg2 = &temp2;
30931 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30932 }
30933 {
30934 PyThreadState* __tstate = wxPyBeginAllowThreads();
30935 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3,arg4);
30936 wxPyEndAllowThreads(__tstate);
30937 if (PyErr_Occurred()) SWIG_fail;
30938 }
30939 resultobj = SWIG_From_long(static_cast< long >(result));
30940 if (SWIG_IsTmpObj(res3)) {
30941 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
30942 } else {
30943 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30944 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
30945 }
30946 if (SWIG_IsTmpObj(res4)) {
30947 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
30948 } else {
30949 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30950 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
30951 }
30952 return resultobj;
30953fail:
30954 return NULL;
30955}
30956
30957
1bd55598
RD
30958SWIGINTERN PyObject *_wrap_ListCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30959 PyObject *resultobj = 0;
30960 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30961 wxListItem *arg2 = 0 ;
30962 long result;
30963 void *argp1 = 0 ;
30964 int res1 = 0 ;
30965 void *argp2 = 0 ;
30966 int res2 = 0 ;
30967 PyObject * obj0 = 0 ;
30968 PyObject * obj1 = 0 ;
30969 char * kwnames[] = {
30970 (char *) "self",(char *) "info", NULL
30971 };
30972
30973 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) SWIG_fail;
30974 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30975 if (!SWIG_IsOK(res1)) {
30976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30977 }
30978 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30979 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
30980 if (!SWIG_IsOK(res2)) {
30981 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
30982 }
30983 if (!argp2) {
30984 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
30985 }
30986 arg2 = reinterpret_cast< wxListItem * >(argp2);
30987 {
30988 PyThreadState* __tstate = wxPyBeginAllowThreads();
30989 result = (long)(arg1)->InsertItem(*arg2);
30990 wxPyEndAllowThreads(__tstate);
30991 if (PyErr_Occurred()) SWIG_fail;
30992 }
30993 resultobj = SWIG_From_long(static_cast< long >(result));
30994 return resultobj;
30995fail:
30996 return NULL;
30997}
30998
30999
31000SWIGINTERN PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31001 PyObject *resultobj = 0;
31002 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31003 long arg2 ;
31004 wxString *arg3 = 0 ;
31005 int arg4 = (int) -1 ;
31006 long result;
31007 void *argp1 = 0 ;
31008 int res1 = 0 ;
31009 long val2 ;
31010 int ecode2 = 0 ;
31011 bool temp3 = false ;
31012 int val4 ;
31013 int ecode4 = 0 ;
31014 PyObject * obj0 = 0 ;
31015 PyObject * obj1 = 0 ;
31016 PyObject * obj2 = 0 ;
31017 PyObject * obj3 = 0 ;
31018 char * kwnames[] = {
31019 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31020 };
31021
31022 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31023 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31024 if (!SWIG_IsOK(res1)) {
31025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31026 }
31027 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31028 ecode2 = SWIG_AsVal_long(obj1, &val2);
31029 if (!SWIG_IsOK(ecode2)) {
31030 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "2"" of type '" "long""'");
31031 }
31032 arg2 = static_cast< long >(val2);
31033 {
31034 arg3 = wxString_in_helper(obj2);
31035 if (arg3 == NULL) SWIG_fail;
31036 temp3 = true;
31037 }
31038 if (obj3) {
31039 ecode4 = SWIG_AsVal_int(obj3, &val4);
31040 if (!SWIG_IsOK(ecode4)) {
31041 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "4"" of type '" "int""'");
31042 }
31043 arg4 = static_cast< int >(val4);
31044 }
31045 {
31046 PyThreadState* __tstate = wxPyBeginAllowThreads();
31047 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31048 wxPyEndAllowThreads(__tstate);
31049 if (PyErr_Occurred()) SWIG_fail;
31050 }
31051 resultobj = SWIG_From_long(static_cast< long >(result));
31052 {
31053 if (temp3)
31054 delete arg3;
31055 }
31056 return resultobj;
31057fail:
31058 {
31059 if (temp3)
31060 delete arg3;
31061 }
31062 return NULL;
31063}
31064
31065
31066SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31067 PyObject *resultobj = 0;
31068 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31069 long arg2 ;
31070 int arg3 ;
31071 long result;
31072 void *argp1 = 0 ;
31073 int res1 = 0 ;
31074 long val2 ;
31075 int ecode2 = 0 ;
31076 int val3 ;
31077 int ecode3 = 0 ;
31078 PyObject * obj0 = 0 ;
31079 PyObject * obj1 = 0 ;
31080 PyObject * obj2 = 0 ;
31081 char * kwnames[] = {
31082 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
31083 };
31084
31085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31087 if (!SWIG_IsOK(res1)) {
31088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31089 }
31090 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31091 ecode2 = SWIG_AsVal_long(obj1, &val2);
31092 if (!SWIG_IsOK(ecode2)) {
31093 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "2"" of type '" "long""'");
31094 }
31095 arg2 = static_cast< long >(val2);
31096 ecode3 = SWIG_AsVal_int(obj2, &val3);
31097 if (!SWIG_IsOK(ecode3)) {
31098 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "3"" of type '" "int""'");
31099 }
31100 arg3 = static_cast< int >(val3);
31101 {
31102 PyThreadState* __tstate = wxPyBeginAllowThreads();
31103 result = (long)(arg1)->InsertItem(arg2,arg3);
31104 wxPyEndAllowThreads(__tstate);
31105 if (PyErr_Occurred()) SWIG_fail;
31106 }
31107 resultobj = SWIG_From_long(static_cast< long >(result));
31108 return resultobj;
31109fail:
31110 return NULL;
31111}
31112
31113
31114SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31115 PyObject *resultobj = 0;
31116 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31117 long arg2 ;
31118 wxString *arg3 = 0 ;
31119 int arg4 ;
31120 long result;
31121 void *argp1 = 0 ;
31122 int res1 = 0 ;
31123 long val2 ;
31124 int ecode2 = 0 ;
31125 bool temp3 = false ;
31126 int val4 ;
31127 int ecode4 = 0 ;
31128 PyObject * obj0 = 0 ;
31129 PyObject * obj1 = 0 ;
31130 PyObject * obj2 = 0 ;
31131 PyObject * obj3 = 0 ;
31132 char * kwnames[] = {
31133 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31134 };
31135
31136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31138 if (!SWIG_IsOK(res1)) {
31139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31140 }
31141 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31142 ecode2 = SWIG_AsVal_long(obj1, &val2);
31143 if (!SWIG_IsOK(ecode2)) {
31144 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "2"" of type '" "long""'");
31145 }
31146 arg2 = static_cast< long >(val2);
31147 {
31148 arg3 = wxString_in_helper(obj2);
31149 if (arg3 == NULL) SWIG_fail;
31150 temp3 = true;
31151 }
31152 ecode4 = SWIG_AsVal_int(obj3, &val4);
31153 if (!SWIG_IsOK(ecode4)) {
31154 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "4"" of type '" "int""'");
31155 }
31156 arg4 = static_cast< int >(val4);
31157 {
31158 PyThreadState* __tstate = wxPyBeginAllowThreads();
31159 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31160 wxPyEndAllowThreads(__tstate);
31161 if (PyErr_Occurred()) SWIG_fail;
31162 }
31163 resultobj = SWIG_From_long(static_cast< long >(result));
31164 {
31165 if (temp3)
31166 delete arg3;
31167 }
31168 return resultobj;
31169fail:
31170 {
31171 if (temp3)
31172 delete arg3;
31173 }
31174 return NULL;
31175}
31176
31177
31178SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31179 PyObject *resultobj = 0;
31180 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31181 long arg2 ;
31182 wxListItem *arg3 = 0 ;
31183 long result;
31184 void *argp1 = 0 ;
31185 int res1 = 0 ;
31186 long val2 ;
31187 int ecode2 = 0 ;
31188 void *argp3 = 0 ;
31189 int res3 = 0 ;
31190 PyObject * obj0 = 0 ;
31191 PyObject * obj1 = 0 ;
31192 PyObject * obj2 = 0 ;
31193 char * kwnames[] = {
31194 (char *) "self",(char *) "col",(char *) "info", NULL
31195 };
31196
31197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31199 if (!SWIG_IsOK(res1)) {
31200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31201 }
31202 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31203 ecode2 = SWIG_AsVal_long(obj1, &val2);
31204 if (!SWIG_IsOK(ecode2)) {
31205 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "2"" of type '" "long""'");
31206 }
31207 arg2 = static_cast< long >(val2);
31208 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
31209 if (!SWIG_IsOK(res3)) {
31210 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31211 }
31212 if (!argp3) {
31213 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31214 }
31215 arg3 = reinterpret_cast< wxListItem * >(argp3);
31216 {
31217 PyThreadState* __tstate = wxPyBeginAllowThreads();
31218 result = (long)(arg1)->InsertColumn(arg2,*arg3);
31219 wxPyEndAllowThreads(__tstate);
31220 if (PyErr_Occurred()) SWIG_fail;
31221 }
31222 resultobj = SWIG_From_long(static_cast< long >(result));
31223 return resultobj;
31224fail:
31225 return NULL;
31226}
31227
31228
31229SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31230 PyObject *resultobj = 0;
31231 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31232 long arg2 ;
31233 wxString *arg3 = 0 ;
31234 int arg4 = (int) wxLIST_FORMAT_LEFT ;
31235 int arg5 = (int) -1 ;
31236 long result;
31237 void *argp1 = 0 ;
31238 int res1 = 0 ;
31239 long val2 ;
31240 int ecode2 = 0 ;
31241 bool temp3 = false ;
31242 int val4 ;
31243 int ecode4 = 0 ;
31244 int val5 ;
31245 int ecode5 = 0 ;
31246 PyObject * obj0 = 0 ;
31247 PyObject * obj1 = 0 ;
31248 PyObject * obj2 = 0 ;
31249 PyObject * obj3 = 0 ;
31250 PyObject * obj4 = 0 ;
31251 char * kwnames[] = {
31252 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
31253 };
31254
31255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31256 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31257 if (!SWIG_IsOK(res1)) {
31258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31259 }
31260 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31261 ecode2 = SWIG_AsVal_long(obj1, &val2);
31262 if (!SWIG_IsOK(ecode2)) {
31263 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumn" "', expected argument " "2"" of type '" "long""'");
31264 }
31265 arg2 = static_cast< long >(val2);
31266 {
31267 arg3 = wxString_in_helper(obj2);
31268 if (arg3 == NULL) SWIG_fail;
31269 temp3 = true;
31270 }
31271 if (obj3) {
31272 ecode4 = SWIG_AsVal_int(obj3, &val4);
31273 if (!SWIG_IsOK(ecode4)) {
31274 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertColumn" "', expected argument " "4"" of type '" "int""'");
31275 }
31276 arg4 = static_cast< int >(val4);
31277 }
31278 if (obj4) {
31279 ecode5 = SWIG_AsVal_int(obj4, &val5);
31280 if (!SWIG_IsOK(ecode5)) {
31281 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_InsertColumn" "', expected argument " "5"" of type '" "int""'");
31282 }
31283 arg5 = static_cast< int >(val5);
31284 }
31285 {
31286 PyThreadState* __tstate = wxPyBeginAllowThreads();
31287 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
31288 wxPyEndAllowThreads(__tstate);
31289 if (PyErr_Occurred()) SWIG_fail;
31290 }
31291 resultobj = SWIG_From_long(static_cast< long >(result));
31292 {
31293 if (temp3)
31294 delete arg3;
31295 }
31296 return resultobj;
31297fail:
31298 {
31299 if (temp3)
31300 delete arg3;
31301 }
31302 return NULL;
31303}
31304
31305
31306SWIGINTERN PyObject *_wrap_ListCtrl_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31307 PyObject *resultobj = 0;
31308 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31309 long arg2 ;
31310 void *argp1 = 0 ;
31311 int res1 = 0 ;
31312 long val2 ;
31313 int ecode2 = 0 ;
31314 PyObject * obj0 = 0 ;
31315 PyObject * obj1 = 0 ;
31316 char * kwnames[] = {
31317 (char *) "self",(char *) "count", NULL
31318 };
31319
31320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail;
31321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31322 if (!SWIG_IsOK(res1)) {
31323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31324 }
31325 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31326 ecode2 = SWIG_AsVal_long(obj1, &val2);
31327 if (!SWIG_IsOK(ecode2)) {
31328 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemCount" "', expected argument " "2"" of type '" "long""'");
31329 }
31330 arg2 = static_cast< long >(val2);
31331 {
31332 PyThreadState* __tstate = wxPyBeginAllowThreads();
31333 (arg1)->SetItemCount(arg2);
31334 wxPyEndAllowThreads(__tstate);
31335 if (PyErr_Occurred()) SWIG_fail;
31336 }
31337 resultobj = SWIG_Py_Void();
31338 return resultobj;
31339fail:
31340 return NULL;
31341}
31342
31343
31344SWIGINTERN PyObject *_wrap_ListCtrl_ScrollList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31345 PyObject *resultobj = 0;
31346 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31347 int arg2 ;
31348 int arg3 ;
31349 bool result;
31350 void *argp1 = 0 ;
31351 int res1 = 0 ;
31352 int val2 ;
31353 int ecode2 = 0 ;
31354 int val3 ;
31355 int ecode3 = 0 ;
31356 PyObject * obj0 = 0 ;
31357 PyObject * obj1 = 0 ;
31358 PyObject * obj2 = 0 ;
31359 char * kwnames[] = {
31360 (char *) "self",(char *) "dx",(char *) "dy", NULL
31361 };
31362
31363 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31365 if (!SWIG_IsOK(res1)) {
31366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ScrollList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31367 }
31368 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31369 ecode2 = SWIG_AsVal_int(obj1, &val2);
31370 if (!SWIG_IsOK(ecode2)) {
31371 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_ScrollList" "', expected argument " "2"" of type '" "int""'");
31372 }
31373 arg2 = static_cast< int >(val2);
31374 ecode3 = SWIG_AsVal_int(obj2, &val3);
31375 if (!SWIG_IsOK(ecode3)) {
31376 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_ScrollList" "', expected argument " "3"" of type '" "int""'");
31377 }
31378 arg3 = static_cast< int >(val3);
31379 {
31380 PyThreadState* __tstate = wxPyBeginAllowThreads();
31381 result = (bool)(arg1)->ScrollList(arg2,arg3);
31382 wxPyEndAllowThreads(__tstate);
31383 if (PyErr_Occurred()) SWIG_fail;
31384 }
31385 {
31386 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31387 }
31388 return resultobj;
31389fail:
31390 return NULL;
31391}
31392
31393
31394SWIGINTERN PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31395 PyObject *resultobj = 0;
31396 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31397 long arg2 ;
31398 wxColour *arg3 = 0 ;
31399 void *argp1 = 0 ;
31400 int res1 = 0 ;
31401 long val2 ;
31402 int ecode2 = 0 ;
31403 wxColour temp3 ;
31404 PyObject * obj0 = 0 ;
31405 PyObject * obj1 = 0 ;
31406 PyObject * obj2 = 0 ;
31407 char * kwnames[] = {
31408 (char *) "self",(char *) "item",(char *) "col", NULL
31409 };
31410
31411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31413 if (!SWIG_IsOK(res1)) {
31414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31415 }
31416 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31417 ecode2 = SWIG_AsVal_long(obj1, &val2);
31418 if (!SWIG_IsOK(ecode2)) {
31419 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31420 }
31421 arg2 = static_cast< long >(val2);
31422 {
31423 arg3 = &temp3;
31424 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31425 }
31426 {
31427 PyThreadState* __tstate = wxPyBeginAllowThreads();
31428 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
31429 wxPyEndAllowThreads(__tstate);
31430 if (PyErr_Occurred()) SWIG_fail;
31431 }
31432 resultobj = SWIG_Py_Void();
31433 return resultobj;
31434fail:
31435 return NULL;
31436}
31437
31438
31439SWIGINTERN PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31440 PyObject *resultobj = 0;
31441 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31442 long arg2 ;
31443 wxColour result;
31444 void *argp1 = 0 ;
31445 int res1 = 0 ;
31446 long val2 ;
31447 int ecode2 = 0 ;
31448 PyObject * obj0 = 0 ;
31449 PyObject * obj1 = 0 ;
31450 char * kwnames[] = {
31451 (char *) "self",(char *) "item", NULL
31452 };
31453
31454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
31455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31456 if (!SWIG_IsOK(res1)) {
31457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31458 }
31459 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31460 ecode2 = SWIG_AsVal_long(obj1, &val2);
31461 if (!SWIG_IsOK(ecode2)) {
31462 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31463 }
31464 arg2 = static_cast< long >(val2);
31465 {
31466 PyThreadState* __tstate = wxPyBeginAllowThreads();
31467 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
31468 wxPyEndAllowThreads(__tstate);
31469 if (PyErr_Occurred()) SWIG_fail;
31470 }
31471 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31472 return resultobj;
31473fail:
31474 return NULL;
31475}
31476
31477
31478SWIGINTERN PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31479 PyObject *resultobj = 0;
31480 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31481 long arg2 ;
31482 wxColour *arg3 = 0 ;
31483 void *argp1 = 0 ;
31484 int res1 = 0 ;
31485 long val2 ;
31486 int ecode2 = 0 ;
31487 wxColour temp3 ;
31488 PyObject * obj0 = 0 ;
31489 PyObject * obj1 = 0 ;
31490 PyObject * obj2 = 0 ;
31491 char * kwnames[] = {
31492 (char *) "self",(char *) "item",(char *) "col", NULL
31493 };
31494
31495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31497 if (!SWIG_IsOK(res1)) {
31498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31499 }
31500 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31501 ecode2 = SWIG_AsVal_long(obj1, &val2);
31502 if (!SWIG_IsOK(ecode2)) {
31503 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31504 }
31505 arg2 = static_cast< long >(val2);
31506 {
31507 arg3 = &temp3;
31508 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31509 }
31510 {
31511 PyThreadState* __tstate = wxPyBeginAllowThreads();
31512 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
31513 wxPyEndAllowThreads(__tstate);
31514 if (PyErr_Occurred()) SWIG_fail;
31515 }
31516 resultobj = SWIG_Py_Void();
31517 return resultobj;
31518fail:
31519 return NULL;
31520}
31521
31522
31523SWIGINTERN PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31524 PyObject *resultobj = 0;
31525 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31526 long arg2 ;
31527 wxColour result;
31528 void *argp1 = 0 ;
31529 int res1 = 0 ;
31530 long val2 ;
31531 int ecode2 = 0 ;
31532 PyObject * obj0 = 0 ;
31533 PyObject * obj1 = 0 ;
31534 char * kwnames[] = {
31535 (char *) "self",(char *) "item", NULL
31536 };
31537
31538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
31539 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31540 if (!SWIG_IsOK(res1)) {
31541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31542 }
31543 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31544 ecode2 = SWIG_AsVal_long(obj1, &val2);
31545 if (!SWIG_IsOK(ecode2)) {
31546 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31547 }
31548 arg2 = static_cast< long >(val2);
31549 {
31550 PyThreadState* __tstate = wxPyBeginAllowThreads();
31551 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
31552 wxPyEndAllowThreads(__tstate);
31553 if (PyErr_Occurred()) SWIG_fail;
31554 }
31555 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31556 return resultobj;
31557fail:
31558 return NULL;
31559}
31560
31561
31562SWIGINTERN PyObject *_wrap_ListCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31563 PyObject *resultobj = 0;
31564 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31565 long arg2 ;
31566 wxFont *arg3 = 0 ;
31567 void *argp1 = 0 ;
31568 int res1 = 0 ;
31569 long val2 ;
31570 int ecode2 = 0 ;
31571 void *argp3 = 0 ;
31572 int res3 = 0 ;
31573 PyObject * obj0 = 0 ;
31574 PyObject * obj1 = 0 ;
31575 PyObject * obj2 = 0 ;
31576 char * kwnames[] = {
31577 (char *) "self",(char *) "item",(char *) "f", NULL
31578 };
31579
31580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31582 if (!SWIG_IsOK(res1)) {
31583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31584 }
31585 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31586 ecode2 = SWIG_AsVal_long(obj1, &val2);
31587 if (!SWIG_IsOK(ecode2)) {
31588 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemFont" "', expected argument " "2"" of type '" "long""'");
31589 }
31590 arg2 = static_cast< long >(val2);
31591 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
31592 if (!SWIG_IsOK(res3)) {
31593 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31594 }
31595 if (!argp3) {
31596 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31597 }
31598 arg3 = reinterpret_cast< wxFont * >(argp3);
31599 {
31600 PyThreadState* __tstate = wxPyBeginAllowThreads();
31601 (arg1)->SetItemFont(arg2,(wxFont const &)*arg3);
31602 wxPyEndAllowThreads(__tstate);
31603 if (PyErr_Occurred()) SWIG_fail;
31604 }
31605 resultobj = SWIG_Py_Void();
31606 return resultobj;
31607fail:
31608 return NULL;
31609}
31610
31611
31612SWIGINTERN PyObject *_wrap_ListCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31613 PyObject *resultobj = 0;
31614 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31615 long arg2 ;
31616 wxFont result;
31617 void *argp1 = 0 ;
31618 int res1 = 0 ;
31619 long val2 ;
31620 int ecode2 = 0 ;
31621 PyObject * obj0 = 0 ;
31622 PyObject * obj1 = 0 ;
31623 char * kwnames[] = {
31624 (char *) "self",(char *) "item", NULL
31625 };
31626
31627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
31628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31629 if (!SWIG_IsOK(res1)) {
31630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31631 }
31632 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31633 ecode2 = SWIG_AsVal_long(obj1, &val2);
31634 if (!SWIG_IsOK(ecode2)) {
31635 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemFont" "', expected argument " "2"" of type '" "long""'");
31636 }
31637 arg2 = static_cast< long >(val2);
31638 {
31639 PyThreadState* __tstate = wxPyBeginAllowThreads();
31640 result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2);
31641 wxPyEndAllowThreads(__tstate);
31642 if (PyErr_Occurred()) SWIG_fail;
31643 }
31644 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
31645 return resultobj;
31646fail:
31647 return NULL;
31648}
31649
31650
31651SWIGINTERN PyObject *_wrap_ListCtrl_SortItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31652 PyObject *resultobj = 0;
31653 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31654 PyObject *arg2 = (PyObject *) 0 ;
31655 bool result;
31656 void *argp1 = 0 ;
31657 int res1 = 0 ;
31658 PyObject * obj0 = 0 ;
31659 PyObject * obj1 = 0 ;
31660 char * kwnames[] = {
31661 (char *) "self",(char *) "func", NULL
31662 };
31663
31664 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) SWIG_fail;
31665 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31666 if (!SWIG_IsOK(res1)) {
31667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SortItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31668 }
31669 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31670 arg2 = obj1;
31671 {
31672 PyThreadState* __tstate = wxPyBeginAllowThreads();
31673 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
31674 wxPyEndAllowThreads(__tstate);
31675 if (PyErr_Occurred()) SWIG_fail;
31676 }
31677 {
31678 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31679 }
31680 return resultobj;
31681fail:
31682 return NULL;
b411df4a
RD
31683}
31684
31685
1bd55598
RD
31686SWIGINTERN PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31687 PyObject *resultobj = 0;
31688 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31689 wxWindow *result = 0 ;
31690 void *argp1 = 0 ;
31691 int res1 = 0 ;
31692 PyObject *swig_obj[1] ;
31693
31694 if (!args) SWIG_fail;
31695 swig_obj[0] = args;
31696 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31697 if (!SWIG_IsOK(res1)) {
31698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetMainWindow" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31699 }
31700 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31701 {
31702 PyThreadState* __tstate = wxPyBeginAllowThreads();
31703 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
31704 wxPyEndAllowThreads(__tstate);
31705 if (PyErr_Occurred()) SWIG_fail;
31706 }
31707 {
31708 resultobj = wxPyMake_wxObject(result, 0);
31709 }
31710 return resultobj;
31711fail:
31712 return NULL;
7993762b
RD
31713}
31714
31715
1bd55598
RD
31716SWIGINTERN PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31717 PyObject *resultobj = 0;
31718 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
31719 SwigValueWrapper<wxVisualAttributes > result;
31720 int val1 ;
31721 int ecode1 = 0 ;
31722 PyObject * obj0 = 0 ;
31723 char * kwnames[] = {
31724 (char *) "variant", NULL
31725 };
31726
31727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
31728 if (obj0) {
31729 ecode1 = SWIG_AsVal_int(obj0, &val1);
31730 if (!SWIG_IsOK(ecode1)) {
31731 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
31732 }
31733 arg1 = static_cast< wxWindowVariant >(val1);
31734 }
31735 {
31736 if (!wxPyCheckForApp()) SWIG_fail;
31737 PyThreadState* __tstate = wxPyBeginAllowThreads();
31738 result = wxPyListCtrl::GetClassDefaultAttributes(arg1);
31739 wxPyEndAllowThreads(__tstate);
31740 if (PyErr_Occurred()) SWIG_fail;
31741 }
31742 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
31743 return resultobj;
31744fail:
31745 return NULL;
31746}
31747
31748
31749SWIGINTERN PyObject *ListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31750 PyObject *obj;
31751 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31752 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyListCtrl, SWIG_NewClientData(obj));
31753 return SWIG_Py_Void();
31754}
31755
31756SWIGINTERN PyObject *ListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31757 return SWIG_Python_InitShadowInstance(args);
31758}
31759
31760SWIGINTERN PyObject *_wrap_new_ListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31761 PyObject *resultobj = 0;
31762 wxWindow *arg1 = (wxWindow *) 0 ;
31763 int arg2 = (int) -1 ;
31764 wxPoint const &arg3_defvalue = wxDefaultPosition ;
31765 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
31766 wxSize const &arg4_defvalue = wxDefaultSize ;
31767 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
31768 long arg5 = (long) wxLC_REPORT ;
31769 wxValidator const &arg6_defvalue = wxDefaultValidator ;
31770 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
31771 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
31772 wxString *arg7 = (wxString *) &arg7_defvalue ;
31773 wxListView *result = 0 ;
31774 void *argp1 = 0 ;
31775 int res1 = 0 ;
31776 int val2 ;
31777 int ecode2 = 0 ;
31778 wxPoint temp3 ;
31779 wxSize temp4 ;
31780 long val5 ;
31781 int ecode5 = 0 ;
31782 void *argp6 = 0 ;
31783 int res6 = 0 ;
31784 bool temp7 = false ;
31785 PyObject * obj0 = 0 ;
31786 PyObject * obj1 = 0 ;
31787 PyObject * obj2 = 0 ;
31788 PyObject * obj3 = 0 ;
31789 PyObject * obj4 = 0 ;
31790 PyObject * obj5 = 0 ;
31791 PyObject * obj6 = 0 ;
31792 char * kwnames[] = {
31793 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
31794 };
31795
31796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31797 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
31798 if (!SWIG_IsOK(res1)) {
31799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListView" "', expected argument " "1"" of type '" "wxWindow *""'");
31800 }
31801 arg1 = reinterpret_cast< wxWindow * >(argp1);
31802 if (obj1) {
31803 ecode2 = SWIG_AsVal_int(obj1, &val2);
31804 if (!SWIG_IsOK(ecode2)) {
31805 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListView" "', expected argument " "2"" of type '" "int""'");
31806 }
31807 arg2 = static_cast< int >(val2);
31808 }
31809 if (obj2) {
b411df4a 31810 {
1bd55598
RD
31811 arg3 = &temp3;
31812 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
b411df4a 31813 }
1bd55598
RD
31814 }
31815 if (obj3) {
31816 {
31817 arg4 = &temp4;
31818 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
b411df4a 31819 }
1bd55598
RD
31820 }
31821 if (obj4) {
31822 ecode5 = SWIG_AsVal_long(obj4, &val5);
31823 if (!SWIG_IsOK(ecode5)) {
31824 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListView" "', expected argument " "5"" of type '" "long""'");
31825 }
31826 arg5 = static_cast< long >(val5);
31827 }
31828 if (obj5) {
31829 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
31830 if (!SWIG_IsOK(res6)) {
31831 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
b411df4a 31832 }
1bd55598
RD
31833 if (!argp6) {
31834 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
b411df4a 31835 }
1bd55598
RD
31836 arg6 = reinterpret_cast< wxValidator * >(argp6);
31837 }
31838 if (obj6) {
b411df4a 31839 {
1bd55598
RD
31840 arg7 = wxString_in_helper(obj6);
31841 if (arg7 == NULL) SWIG_fail;
31842 temp7 = true;
b411df4a 31843 }
1bd55598
RD
31844 }
31845 {
31846 if (!wxPyCheckForApp()) SWIG_fail;
31847 PyThreadState* __tstate = wxPyBeginAllowThreads();
31848 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
31849 wxPyEndAllowThreads(__tstate);
31850 if (PyErr_Occurred()) SWIG_fail;
31851 }
31852 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_NEW | 0 );
31853 {
31854 if (temp7)
31855 delete arg7;
31856 }
31857 return resultobj;
31858fail:
31859 {
31860 if (temp7)
31861 delete arg7;
31862 }
31863 return NULL;
b411df4a
RD
31864}
31865
31866
1bd55598
RD
31867SWIGINTERN PyObject *_wrap_new_PreListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31868 PyObject *resultobj = 0;
31869 wxListView *result = 0 ;
31870
31871 if (!SWIG_Python_UnpackTuple(args,"new_PreListView",0,0,0)) SWIG_fail;
31872 {
31873 if (!wxPyCheckForApp()) SWIG_fail;
31874 PyThreadState* __tstate = wxPyBeginAllowThreads();
31875 result = (wxListView *)new wxListView();
31876 wxPyEndAllowThreads(__tstate);
31877 if (PyErr_Occurred()) SWIG_fail;
31878 }
31879 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_OWN | 0 );
31880 return resultobj;
31881fail:
31882 return NULL;
31883}
31884
31885
31886SWIGINTERN PyObject *_wrap_ListView_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31887 PyObject *resultobj = 0;
31888 wxListView *arg1 = (wxListView *) 0 ;
31889 wxWindow *arg2 = (wxWindow *) 0 ;
31890 int arg3 = (int) -1 ;
31891 wxPoint const &arg4_defvalue = wxDefaultPosition ;
31892 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
31893 wxSize const &arg5_defvalue = wxDefaultSize ;
31894 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
31895 long arg6 = (long) wxLC_REPORT ;
31896 wxValidator const &arg7_defvalue = wxDefaultValidator ;
31897 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
31898 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
31899 wxString *arg8 = (wxString *) &arg8_defvalue ;
31900 bool result;
31901 void *argp1 = 0 ;
31902 int res1 = 0 ;
31903 void *argp2 = 0 ;
31904 int res2 = 0 ;
31905 int val3 ;
31906 int ecode3 = 0 ;
31907 wxPoint temp4 ;
31908 wxSize temp5 ;
31909 long val6 ;
31910 int ecode6 = 0 ;
31911 void *argp7 = 0 ;
31912 int res7 = 0 ;
31913 bool temp8 = false ;
31914 PyObject * obj0 = 0 ;
31915 PyObject * obj1 = 0 ;
31916 PyObject * obj2 = 0 ;
31917 PyObject * obj3 = 0 ;
31918 PyObject * obj4 = 0 ;
31919 PyObject * obj5 = 0 ;
31920 PyObject * obj6 = 0 ;
31921 PyObject * obj7 = 0 ;
31922 char * kwnames[] = {
31923 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
31924 };
31925
31926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
31927 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31928 if (!SWIG_IsOK(res1)) {
31929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Create" "', expected argument " "1"" of type '" "wxListView *""'");
31930 }
31931 arg1 = reinterpret_cast< wxListView * >(argp1);
31932 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31933 if (!SWIG_IsOK(res2)) {
31934 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListView_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
31935 }
31936 arg2 = reinterpret_cast< wxWindow * >(argp2);
31937 if (obj2) {
31938 ecode3 = SWIG_AsVal_int(obj2, &val3);
31939 if (!SWIG_IsOK(ecode3)) {
31940 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Create" "', expected argument " "3"" of type '" "int""'");
31941 }
31942 arg3 = static_cast< int >(val3);
31943 }
31944 if (obj3) {
d55e5bfc 31945 {
1bd55598
RD
31946 arg4 = &temp4;
31947 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 31948 }
1bd55598
RD
31949 }
31950 if (obj4) {
36ed4f51 31951 {
1bd55598
RD
31952 arg5 = &temp5;
31953 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 31954 }
1bd55598
RD
31955 }
31956 if (obj5) {
31957 ecode6 = SWIG_AsVal_long(obj5, &val6);
31958 if (!SWIG_IsOK(ecode6)) {
31959 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListView_Create" "', expected argument " "6"" of type '" "long""'");
31960 }
31961 arg6 = static_cast< long >(val6);
31962 }
31963 if (obj6) {
31964 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
31965 if (!SWIG_IsOK(res7)) {
31966 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 31967 }
1bd55598
RD
31968 if (!argp7) {
31969 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
31970 }
31971 arg7 = reinterpret_cast< wxValidator * >(argp7);
31972 }
31973 if (obj7) {
d55e5bfc 31974 {
1bd55598
RD
31975 arg8 = wxString_in_helper(obj7);
31976 if (arg8 == NULL) SWIG_fail;
31977 temp8 = true;
d55e5bfc 31978 }
1bd55598
RD
31979 }
31980 {
31981 PyThreadState* __tstate = wxPyBeginAllowThreads();
31982 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
31983 wxPyEndAllowThreads(__tstate);
31984 if (PyErr_Occurred()) SWIG_fail;
31985 }
31986 {
31987 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31988 }
31989 {
31990 if (temp8)
31991 delete arg8;
31992 }
31993 return resultobj;
31994fail:
31995 {
31996 if (temp8)
31997 delete arg8;
31998 }
31999 return NULL;
32000}
32001
32002
32003SWIGINTERN PyObject *_wrap_ListView_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32004 PyObject *resultobj = 0;
32005 wxListView *arg1 = (wxListView *) 0 ;
32006 long arg2 ;
32007 bool arg3 = (bool) true ;
32008 void *argp1 = 0 ;
32009 int res1 = 0 ;
32010 long val2 ;
32011 int ecode2 = 0 ;
32012 bool val3 ;
32013 int ecode3 = 0 ;
32014 PyObject * obj0 = 0 ;
32015 PyObject * obj1 = 0 ;
32016 PyObject * obj2 = 0 ;
32017 char * kwnames[] = {
32018 (char *) "self",(char *) "n",(char *) "on", NULL
32019 };
32020
32021 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32022 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32023 if (!SWIG_IsOK(res1)) {
32024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Select" "', expected argument " "1"" of type '" "wxListView *""'");
32025 }
32026 arg1 = reinterpret_cast< wxListView * >(argp1);
32027 ecode2 = SWIG_AsVal_long(obj1, &val2);
32028 if (!SWIG_IsOK(ecode2)) {
32029 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Select" "', expected argument " "2"" of type '" "long""'");
32030 }
32031 arg2 = static_cast< long >(val2);
32032 if (obj2) {
32033 ecode3 = SWIG_AsVal_bool(obj2, &val3);
32034 if (!SWIG_IsOK(ecode3)) {
32035 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Select" "', expected argument " "3"" of type '" "bool""'");
32036 }
32037 arg3 = static_cast< bool >(val3);
32038 }
32039 {
32040 PyThreadState* __tstate = wxPyBeginAllowThreads();
32041 (arg1)->Select(arg2,arg3);
32042 wxPyEndAllowThreads(__tstate);
32043 if (PyErr_Occurred()) SWIG_fail;
32044 }
32045 resultobj = SWIG_Py_Void();
32046 return resultobj;
32047fail:
32048 return NULL;
32049}
32050
32051
32052SWIGINTERN PyObject *_wrap_ListView_Focus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32053 PyObject *resultobj = 0;
32054 wxListView *arg1 = (wxListView *) 0 ;
32055 long arg2 ;
32056 void *argp1 = 0 ;
32057 int res1 = 0 ;
32058 long val2 ;
32059 int ecode2 = 0 ;
32060 PyObject * obj0 = 0 ;
32061 PyObject * obj1 = 0 ;
32062 char * kwnames[] = {
32063 (char *) "self",(char *) "index", NULL
32064 };
32065
32066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) SWIG_fail;
32067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32068 if (!SWIG_IsOK(res1)) {
32069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Focus" "', expected argument " "1"" of type '" "wxListView *""'");
32070 }
32071 arg1 = reinterpret_cast< wxListView * >(argp1);
32072 ecode2 = SWIG_AsVal_long(obj1, &val2);
32073 if (!SWIG_IsOK(ecode2)) {
32074 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Focus" "', expected argument " "2"" of type '" "long""'");
32075 }
32076 arg2 = static_cast< long >(val2);
32077 {
32078 PyThreadState* __tstate = wxPyBeginAllowThreads();
32079 (arg1)->Focus(arg2);
32080 wxPyEndAllowThreads(__tstate);
32081 if (PyErr_Occurred()) SWIG_fail;
32082 }
32083 resultobj = SWIG_Py_Void();
32084 return resultobj;
32085fail:
32086 return NULL;
d55e5bfc
RD
32087}
32088
32089
1bd55598
RD
32090SWIGINTERN PyObject *_wrap_ListView_GetFocusedItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32091 PyObject *resultobj = 0;
32092 wxListView *arg1 = (wxListView *) 0 ;
32093 long result;
32094 void *argp1 = 0 ;
32095 int res1 = 0 ;
32096 PyObject *swig_obj[1] ;
32097
32098 if (!args) SWIG_fail;
32099 swig_obj[0] = args;
32100 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32101 if (!SWIG_IsOK(res1)) {
32102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFocusedItem" "', expected argument " "1"" of type '" "wxListView const *""'");
32103 }
32104 arg1 = reinterpret_cast< wxListView * >(argp1);
32105 {
32106 PyThreadState* __tstate = wxPyBeginAllowThreads();
32107 result = (long)((wxListView const *)arg1)->GetFocusedItem();
32108 wxPyEndAllowThreads(__tstate);
32109 if (PyErr_Occurred()) SWIG_fail;
32110 }
32111 resultobj = SWIG_From_long(static_cast< long >(result));
32112 return resultobj;
32113fail:
32114 return NULL;
32115}
32116
32117
32118SWIGINTERN PyObject *_wrap_ListView_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32119 PyObject *resultobj = 0;
32120 wxListView *arg1 = (wxListView *) 0 ;
32121 long arg2 ;
32122 long result;
32123 void *argp1 = 0 ;
32124 int res1 = 0 ;
32125 long val2 ;
32126 int ecode2 = 0 ;
32127 PyObject * obj0 = 0 ;
32128 PyObject * obj1 = 0 ;
32129 char * kwnames[] = {
32130 (char *) "self",(char *) "item", NULL
32131 };
32132
32133 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32134 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32135 if (!SWIG_IsOK(res1)) {
32136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetNextSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32137 }
32138 arg1 = reinterpret_cast< wxListView * >(argp1);
32139 ecode2 = SWIG_AsVal_long(obj1, &val2);
32140 if (!SWIG_IsOK(ecode2)) {
32141 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_GetNextSelected" "', expected argument " "2"" of type '" "long""'");
32142 }
32143 arg2 = static_cast< long >(val2);
32144 {
32145 PyThreadState* __tstate = wxPyBeginAllowThreads();
32146 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
32147 wxPyEndAllowThreads(__tstate);
32148 if (PyErr_Occurred()) SWIG_fail;
32149 }
32150 resultobj = SWIG_From_long(static_cast< long >(result));
32151 return resultobj;
32152fail:
32153 return NULL;
d55e5bfc
RD
32154}
32155
32156
1bd55598
RD
32157SWIGINTERN PyObject *_wrap_ListView_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32158 PyObject *resultobj = 0;
32159 wxListView *arg1 = (wxListView *) 0 ;
32160 long result;
32161 void *argp1 = 0 ;
32162 int res1 = 0 ;
32163 PyObject *swig_obj[1] ;
32164
32165 if (!args) SWIG_fail;
32166 swig_obj[0] = args;
32167 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32168 if (!SWIG_IsOK(res1)) {
32169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFirstSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32170 }
32171 arg1 = reinterpret_cast< wxListView * >(argp1);
32172 {
32173 PyThreadState* __tstate = wxPyBeginAllowThreads();
32174 result = (long)((wxListView const *)arg1)->GetFirstSelected();
32175 wxPyEndAllowThreads(__tstate);
32176 if (PyErr_Occurred()) SWIG_fail;
32177 }
32178 resultobj = SWIG_From_long(static_cast< long >(result));
32179 return resultobj;
32180fail:
32181 return NULL;
32182}
32183
32184
32185SWIGINTERN PyObject *_wrap_ListView_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32186 PyObject *resultobj = 0;
32187 wxListView *arg1 = (wxListView *) 0 ;
32188 long arg2 ;
32189 bool result;
32190 void *argp1 = 0 ;
32191 int res1 = 0 ;
32192 long val2 ;
32193 int ecode2 = 0 ;
32194 PyObject * obj0 = 0 ;
32195 PyObject * obj1 = 0 ;
32196 char * kwnames[] = {
32197 (char *) "self",(char *) "index", NULL
32198 };
32199
32200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32202 if (!SWIG_IsOK(res1)) {
32203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_IsSelected" "', expected argument " "1"" of type '" "wxListView *""'");
32204 }
32205 arg1 = reinterpret_cast< wxListView * >(argp1);
32206 ecode2 = SWIG_AsVal_long(obj1, &val2);
32207 if (!SWIG_IsOK(ecode2)) {
32208 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_IsSelected" "', expected argument " "2"" of type '" "long""'");
32209 }
32210 arg2 = static_cast< long >(val2);
32211 {
32212 PyThreadState* __tstate = wxPyBeginAllowThreads();
32213 result = (bool)(arg1)->IsSelected(arg2);
32214 wxPyEndAllowThreads(__tstate);
32215 if (PyErr_Occurred()) SWIG_fail;
32216 }
32217 {
32218 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32219 }
32220 return resultobj;
32221fail:
32222 return NULL;
32223}
32224
32225
32226SWIGINTERN PyObject *_wrap_ListView_SetColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32227 PyObject *resultobj = 0;
32228 wxListView *arg1 = (wxListView *) 0 ;
32229 int arg2 ;
32230 int arg3 ;
32231 void *argp1 = 0 ;
32232 int res1 = 0 ;
32233 int val2 ;
32234 int ecode2 = 0 ;
32235 int val3 ;
32236 int ecode3 = 0 ;
32237 PyObject * obj0 = 0 ;
32238 PyObject * obj1 = 0 ;
32239 PyObject * obj2 = 0 ;
32240 char * kwnames[] = {
32241 (char *) "self",(char *) "col",(char *) "image", NULL
32242 };
32243
32244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32246 if (!SWIG_IsOK(res1)) {
32247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_SetColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32248 }
32249 arg1 = reinterpret_cast< wxListView * >(argp1);
32250 ecode2 = SWIG_AsVal_int(obj1, &val2);
32251 if (!SWIG_IsOK(ecode2)) {
32252 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_SetColumnImage" "', expected argument " "2"" of type '" "int""'");
32253 }
32254 arg2 = static_cast< int >(val2);
32255 ecode3 = SWIG_AsVal_int(obj2, &val3);
32256 if (!SWIG_IsOK(ecode3)) {
32257 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_SetColumnImage" "', expected argument " "3"" of type '" "int""'");
32258 }
32259 arg3 = static_cast< int >(val3);
32260 {
32261 PyThreadState* __tstate = wxPyBeginAllowThreads();
32262 (arg1)->SetColumnImage(arg2,arg3);
32263 wxPyEndAllowThreads(__tstate);
32264 if (PyErr_Occurred()) SWIG_fail;
32265 }
32266 resultobj = SWIG_Py_Void();
32267 return resultobj;
32268fail:
32269 return NULL;
32270}
32271
32272
32273SWIGINTERN PyObject *_wrap_ListView_ClearColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32274 PyObject *resultobj = 0;
32275 wxListView *arg1 = (wxListView *) 0 ;
32276 int arg2 ;
32277 void *argp1 = 0 ;
32278 int res1 = 0 ;
32279 int val2 ;
32280 int ecode2 = 0 ;
32281 PyObject * obj0 = 0 ;
32282 PyObject * obj1 = 0 ;
32283 char * kwnames[] = {
32284 (char *) "self",(char *) "col", NULL
32285 };
32286
32287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) SWIG_fail;
32288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32289 if (!SWIG_IsOK(res1)) {
32290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_ClearColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32291 }
32292 arg1 = reinterpret_cast< wxListView * >(argp1);
32293 ecode2 = SWIG_AsVal_int(obj1, &val2);
32294 if (!SWIG_IsOK(ecode2)) {
32295 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_ClearColumnImage" "', expected argument " "2"" of type '" "int""'");
32296 }
32297 arg2 = static_cast< int >(val2);
32298 {
32299 PyThreadState* __tstate = wxPyBeginAllowThreads();
32300 (arg1)->ClearColumnImage(arg2);
32301 wxPyEndAllowThreads(__tstate);
32302 if (PyErr_Occurred()) SWIG_fail;
32303 }
32304 resultobj = SWIG_Py_Void();
32305 return resultobj;
32306fail:
32307 return NULL;
d55e5bfc
RD
32308}
32309
32310
1bd55598
RD
32311SWIGINTERN PyObject *ListView_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32312 PyObject *obj;
32313 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32314 SWIG_TypeNewClientData(SWIGTYPE_p_wxListView, SWIG_NewClientData(obj));
32315 return SWIG_Py_Void();
d55e5bfc
RD
32316}
32317
1bd55598
RD
32318SWIGINTERN PyObject *ListView_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32319 return SWIG_Python_InitShadowInstance(args);
32320}
d55e5bfc 32321
1bd55598
RD
32322SWIGINTERN int TreeCtrlNameStr_set(PyObject *) {
32323 SWIG_Error(SWIG_AttributeError,"Variable TreeCtrlNameStr is read-only.");
32324 return 1;
d55e5bfc
RD
32325}
32326
32327
1bd55598
RD
32328SWIGINTERN PyObject *TreeCtrlNameStr_get(void) {
32329 PyObject *pyobj = 0;
32330
32331 {
32332#if wxUSE_UNICODE
32333 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32334#else
32335 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32336#endif
32337 }
32338 return pyobj;
d55e5bfc
RD
32339}
32340
32341
1bd55598
RD
32342SWIGINTERN PyObject *_wrap_new_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32343 PyObject *resultobj = 0;
32344 wxTreeItemId *result = 0 ;
32345
32346 if (!SWIG_Python_UnpackTuple(args,"new_TreeItemId",0,0,0)) SWIG_fail;
32347 {
32348 PyThreadState* __tstate = wxPyBeginAllowThreads();
32349 result = (wxTreeItemId *)new wxTreeItemId();
32350 wxPyEndAllowThreads(__tstate);
32351 if (PyErr_Occurred()) SWIG_fail;
32352 }
32353 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_NEW | 0 );
32354 return resultobj;
32355fail:
32356 return NULL;
d55e5bfc
RD
32357}
32358
32359
1bd55598
RD
32360SWIGINTERN PyObject *_wrap_delete_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32361 PyObject *resultobj = 0;
32362 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32363 void *argp1 = 0 ;
32364 int res1 = 0 ;
32365 PyObject *swig_obj[1] ;
32366
32367 if (!args) SWIG_fail;
32368 swig_obj[0] = args;
32369 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_DISOWN | 0 );
32370 if (!SWIG_IsOK(res1)) {
32371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemId" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32372 }
32373 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32374 {
32375 PyThreadState* __tstate = wxPyBeginAllowThreads();
32376 delete arg1;
d55e5bfc 32377
1bd55598
RD
32378 wxPyEndAllowThreads(__tstate);
32379 if (PyErr_Occurred()) SWIG_fail;
32380 }
32381 resultobj = SWIG_Py_Void();
32382 return resultobj;
32383fail:
32384 return NULL;
d55e5bfc
RD
32385}
32386
32387
1bd55598
RD
32388SWIGINTERN PyObject *_wrap_TreeItemId_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32389 PyObject *resultobj = 0;
32390 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32391 bool result;
32392 void *argp1 = 0 ;
32393 int res1 = 0 ;
32394 PyObject *swig_obj[1] ;
32395
32396 if (!args) SWIG_fail;
32397 swig_obj[0] = args;
32398 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32399 if (!SWIG_IsOK(res1)) {
32400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_IsOk" "', expected argument " "1"" of type '" "wxTreeItemId const *""'");
32401 }
32402 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32403 {
32404 PyThreadState* __tstate = wxPyBeginAllowThreads();
32405 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
32406 wxPyEndAllowThreads(__tstate);
32407 if (PyErr_Occurred()) SWIG_fail;
32408 }
32409 {
32410 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32411 }
32412 return resultobj;
32413fail:
32414 return NULL;
32415}
32416
32417
32418SWIGINTERN PyObject *_wrap_TreeItemId___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32419 PyObject *resultobj = 0;
32420 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32421 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32422 bool result;
32423 void *argp1 = 0 ;
32424 int res1 = 0 ;
32425 void *argp2 = 0 ;
32426 int res2 = 0 ;
32427 PyObject * obj0 = 0 ;
32428 PyObject * obj1 = 0 ;
32429 char * kwnames[] = {
32430 (char *) "self",(char *) "other", NULL
32431 };
32432
32433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
32434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32435 if (!SWIG_IsOK(res1)) {
32436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___eq__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32437 }
32438 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32439 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32440 if (!SWIG_IsOK(res2)) {
32441 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___eq__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32442 }
32443 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32444 {
32445 PyThreadState* __tstate = wxPyBeginAllowThreads();
32446 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
32447 wxPyEndAllowThreads(__tstate);
32448 if (PyErr_Occurred()) SWIG_fail;
32449 }
32450 {
32451 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32452 }
32453 return resultobj;
32454fail:
32455 return NULL;
32456}
32457
32458
32459SWIGINTERN PyObject *_wrap_TreeItemId___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32460 PyObject *resultobj = 0;
32461 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32462 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32463 bool result;
32464 void *argp1 = 0 ;
32465 int res1 = 0 ;
32466 void *argp2 = 0 ;
32467 int res2 = 0 ;
32468 PyObject * obj0 = 0 ;
32469 PyObject * obj1 = 0 ;
32470 char * kwnames[] = {
32471 (char *) "self",(char *) "other", NULL
32472 };
32473
32474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
32475 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32476 if (!SWIG_IsOK(res1)) {
32477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___ne__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32478 }
32479 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32480 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32481 if (!SWIG_IsOK(res2)) {
32482 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___ne__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32483 }
32484 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32485 {
32486 PyThreadState* __tstate = wxPyBeginAllowThreads();
32487 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
32488 wxPyEndAllowThreads(__tstate);
32489 if (PyErr_Occurred()) SWIG_fail;
32490 }
32491 {
32492 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32493 }
32494 return resultobj;
32495fail:
32496 return NULL;
d55e5bfc
RD
32497}
32498
32499
1bd55598
RD
32500SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32501 PyObject *resultobj = 0;
32502 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32503 void *arg2 = (void *) 0 ;
32504 void *argp1 = 0 ;
32505 int res1 = 0 ;
32506 int res2 ;
32507 PyObject *swig_obj[2] ;
32508
32509 if (!SWIG_Python_UnpackTuple(args,"TreeItemId_m_pItem_set",2,2,swig_obj)) SWIG_fail;
32510 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32511 if (!SWIG_IsOK(res1)) {
32512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32513 }
32514 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32515 res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
32516 if (!SWIG_IsOK(res2)) {
32517 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "2"" of type '" "void *""'");
32518 }
32519 if (arg1) (arg1)->m_pItem = arg2;
32520
32521 resultobj = SWIG_Py_Void();
32522 return resultobj;
32523fail:
32524 return NULL;
d55e5bfc
RD
32525}
32526
32527
1bd55598
RD
32528SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32529 PyObject *resultobj = 0;
32530 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32531 void *result = 0 ;
32532 void *argp1 = 0 ;
32533 int res1 = 0 ;
32534 PyObject *swig_obj[1] ;
32535
32536 if (!args) SWIG_fail;
32537 swig_obj[0] = args;
32538 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32539 if (!SWIG_IsOK(res1)) {
32540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_get" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32541 }
32542 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32543 result = (void *) ((arg1)->m_pItem);
32544 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
32545 return resultobj;
32546fail:
32547 return NULL;
d55e5bfc
RD
32548}
32549
32550
1bd55598
RD
32551SWIGINTERN PyObject *TreeItemId_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32552 PyObject *obj;
32553 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32554 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeItemId, SWIG_NewClientData(obj));
32555 return SWIG_Py_Void();
d55e5bfc
RD
32556}
32557
1bd55598
RD
32558SWIGINTERN PyObject *TreeItemId_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32559 return SWIG_Python_InitShadowInstance(args);
32560}
d55e5bfc 32561
1bd55598
RD
32562SWIGINTERN PyObject *_wrap_new_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32563 PyObject *resultobj = 0;
32564 PyObject *arg1 = (PyObject *) NULL ;
32565 wxPyTreeItemData *result = 0 ;
32566 PyObject * obj0 = 0 ;
32567 char * kwnames[] = {
32568 (char *) "obj", NULL
32569 };
32570
32571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) SWIG_fail;
32572 if (obj0) {
32573 arg1 = obj0;
32574 }
32575 {
32576 PyThreadState* __tstate = wxPyBeginAllowThreads();
32577 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
32578 wxPyEndAllowThreads(__tstate);
32579 if (PyErr_Occurred()) SWIG_fail;
32580 }
32581 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_NEW | 0 );
32582 return resultobj;
32583fail:
32584 return NULL;
d55e5bfc
RD
32585}
32586
32587
1bd55598
RD
32588SWIGINTERN PyObject *_wrap_delete_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32589 PyObject *resultobj = 0;
32590 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32591 void *argp1 = 0 ;
32592 int res1 = 0 ;
32593 PyObject *swig_obj[1] ;
32594
32595 if (!args) SWIG_fail;
32596 swig_obj[0] = args;
32597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
32598 if (!SWIG_IsOK(res1)) {
32599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32600 }
32601 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32602 {
32603 PyThreadState* __tstate = wxPyBeginAllowThreads();
32604 delete arg1;
d55e5bfc 32605
1bd55598
RD
32606 wxPyEndAllowThreads(__tstate);
32607 if (PyErr_Occurred()) SWIG_fail;
32608 }
32609 resultobj = SWIG_Py_Void();
32610 return resultobj;
32611fail:
32612 return NULL;
d55e5bfc
RD
32613}
32614
32615
1bd55598
RD
32616SWIGINTERN PyObject *_wrap_TreeItemData_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32617 PyObject *resultobj = 0;
32618 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32619 PyObject *result = 0 ;
32620 void *argp1 = 0 ;
32621 int res1 = 0 ;
32622 PyObject *swig_obj[1] ;
32623
32624 if (!args) SWIG_fail;
32625 swig_obj[0] = args;
32626 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32627 if (!SWIG_IsOK(res1)) {
32628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32629 }
32630 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32631 {
32632 PyThreadState* __tstate = wxPyBeginAllowThreads();
32633 result = (PyObject *)(arg1)->GetData();
32634 wxPyEndAllowThreads(__tstate);
32635 if (PyErr_Occurred()) SWIG_fail;
32636 }
32637 resultobj = result;
32638 return resultobj;
32639fail:
32640 return NULL;
32641}
32642
32643
32644SWIGINTERN PyObject *_wrap_TreeItemData_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32645 PyObject *resultobj = 0;
32646 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32647 PyObject *arg2 = (PyObject *) 0 ;
32648 void *argp1 = 0 ;
32649 int res1 = 0 ;
32650 PyObject * obj0 = 0 ;
32651 PyObject * obj1 = 0 ;
32652 char * kwnames[] = {
32653 (char *) "self",(char *) "obj", NULL
32654 };
32655
32656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
32657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32658 if (!SWIG_IsOK(res1)) {
32659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32660 }
32661 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32662 arg2 = obj1;
32663 {
32664 PyThreadState* __tstate = wxPyBeginAllowThreads();
32665 (arg1)->SetData(arg2);
32666 wxPyEndAllowThreads(__tstate);
32667 if (PyErr_Occurred()) SWIG_fail;
32668 }
32669 resultobj = SWIG_Py_Void();
32670 return resultobj;
32671fail:
32672 return NULL;
d55e5bfc
RD
32673}
32674
32675
1bd55598
RD
32676SWIGINTERN PyObject *_wrap_TreeItemData_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32677 PyObject *resultobj = 0;
32678 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32679 wxTreeItemId *result = 0 ;
32680 void *argp1 = 0 ;
32681 int res1 = 0 ;
32682 PyObject *swig_obj[1] ;
32683
32684 if (!args) SWIG_fail;
32685 swig_obj[0] = args;
32686 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32687 if (!SWIG_IsOK(res1)) {
32688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32689 }
32690 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32691 {
32692 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 32693 {
1bd55598
RD
32694 wxTreeItemId const &_result_ref = (arg1)->GetId();
32695 result = (wxTreeItemId *) &_result_ref;
d55e5bfc 32696 }
1bd55598
RD
32697 wxPyEndAllowThreads(__tstate);
32698 if (PyErr_Occurred()) SWIG_fail;
32699 }
32700 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32701 return resultobj;
32702fail:
32703 return NULL;
32704}
32705
32706
32707SWIGINTERN PyObject *_wrap_TreeItemData_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32708 PyObject *resultobj = 0;
32709 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32710 wxTreeItemId *arg2 = 0 ;
32711 void *argp1 = 0 ;
32712 int res1 = 0 ;
32713 void *argp2 = 0 ;
32714 int res2 = 0 ;
32715 PyObject * obj0 = 0 ;
32716 PyObject * obj1 = 0 ;
32717 char * kwnames[] = {
32718 (char *) "self",(char *) "id", NULL
32719 };
32720
32721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
32722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32723 if (!SWIG_IsOK(res1)) {
32724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32725 }
32726 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32727 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32728 if (!SWIG_IsOK(res2)) {
32729 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32730 }
32731 if (!argp2) {
32732 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32733 }
32734 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32735 {
32736 PyThreadState* __tstate = wxPyBeginAllowThreads();
32737 (arg1)->SetId((wxTreeItemId const &)*arg2);
32738 wxPyEndAllowThreads(__tstate);
32739 if (PyErr_Occurred()) SWIG_fail;
32740 }
32741 resultobj = SWIG_Py_Void();
32742 return resultobj;
32743fail:
32744 return NULL;
d55e5bfc
RD
32745}
32746
32747
1bd55598
RD
32748SWIGINTERN PyObject *_wrap_TreeItemData_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32749 PyObject *resultobj = 0;
32750 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32751 void *argp1 = 0 ;
32752 int res1 = 0 ;
32753 PyObject *swig_obj[1] ;
32754
32755 if (!args) SWIG_fail;
32756 swig_obj[0] = args;
32757 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32758 if (!SWIG_IsOK(res1)) {
32759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_Destroy" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32760 }
32761 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32762 {
32763 PyThreadState* __tstate = wxPyBeginAllowThreads();
32764 wxPyTreeItemData_Destroy(arg1);
32765 wxPyEndAllowThreads(__tstate);
32766 if (PyErr_Occurred()) SWIG_fail;
32767 }
32768 resultobj = SWIG_Py_Void();
32769 return resultobj;
32770fail:
32771 return NULL;
d55e5bfc
RD
32772}
32773
32774
1bd55598
RD
32775SWIGINTERN PyObject *TreeItemData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32776 PyObject *obj;
32777 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32778 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeItemData, SWIG_NewClientData(obj));
32779 return SWIG_Py_Void();
d55e5bfc
RD
32780}
32781
1bd55598
RD
32782SWIGINTERN PyObject *TreeItemData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32783 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
32784}
32785
b02396e8
RD
32786SWIGINTERN int NullTreeItemId_set(PyObject *_val) {
32787 {
32788 void *argp = 0;
32789 int res = SWIG_ConvertPtr(_val, &argp, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32790 if (!SWIG_IsOK(res)) {
32791 SWIG_exception_fail(SWIG_ArgError(res), "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
32792 }
32793 if (!argp) {
32794 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
32795 } else {
32796 wxTreeItemId * temp;
32797 temp = reinterpret_cast< wxTreeItemId * >(argp);
32798 wxNullTreeItemId = *temp;
32799 if (SWIG_IsNewObj(res)) delete temp;
32800 }
32801 }
32802 return 0;
32803fail:
32804 return 1;
32805}
32806
32807
32808SWIGINTERN PyObject *NullTreeItemId_get(void) {
32809 PyObject *pyobj = 0;
32810
32811 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullTreeItemId), SWIGTYPE_p_wxTreeItemId, 0 );
32812 return pyobj;
32813}
32814
32815
32816SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
1bd55598
RD
32817 PyObject *resultobj = 0;
32818 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
32819 int arg2 = (int) 0 ;
32820 wxTreeEvent *result = 0 ;
32821 int val1 ;
32822 int ecode1 = 0 ;
32823 int val2 ;
32824 int ecode2 = 0 ;
1bd55598 32825
b02396e8
RD
32826 if ((nobjs < 0) || (nobjs > 2)) SWIG_fail;
32827 if (swig_obj[0]) {
32828 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
1bd55598
RD
32829 if (!SWIG_IsOK(ecode1)) {
32830 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
32831 }
32832 arg1 = static_cast< wxEventType >(val1);
32833 }
b02396e8
RD
32834 if (swig_obj[1]) {
32835 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
1bd55598
RD
32836 if (!SWIG_IsOK(ecode2)) {
32837 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "int""'");
32838 }
32839 arg2 = static_cast< int >(val2);
32840 }
32841 {
32842 PyThreadState* __tstate = wxPyBeginAllowThreads();
32843 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
32844 wxPyEndAllowThreads(__tstate);
32845 if (PyErr_Occurred()) SWIG_fail;
32846 }
32847 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
32848 return resultobj;
32849fail:
32850 return NULL;
d55e5bfc
RD
32851}
32852
32853
b02396e8
RD
32854SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
32855 PyObject *resultobj = 0;
32856 wxEventType arg1 ;
32857 wxPyTreeCtrl *arg2 = (wxPyTreeCtrl *) 0 ;
32858 wxTreeItemId &arg3_defvalue = wxNullTreeItemId ;
32859 wxTreeItemId *arg3 = (wxTreeItemId *) &arg3_defvalue ;
32860 wxTreeEvent *result = 0 ;
32861 int val1 ;
32862 int ecode1 = 0 ;
32863 void *argp2 = 0 ;
32864 int res2 = 0 ;
32865 void *argp3 = 0 ;
32866 int res3 = 0 ;
32867
32868 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
32869 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
32870 if (!SWIG_IsOK(ecode1)) {
32871 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
32872 }
32873 arg1 = static_cast< wxEventType >(val1);
32874 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
32875 if (!SWIG_IsOK(res2)) {
32876 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "wxPyTreeCtrl *""'");
32877 }
32878 arg2 = reinterpret_cast< wxPyTreeCtrl * >(argp2);
32879 if (swig_obj[2]) {
32880 res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_wxTreeItemId, 0 );
32881 if (!SWIG_IsOK(res3)) {
32882 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
32883 }
32884 if (!argp3) {
32885 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
32886 }
32887 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
32888 }
32889 {
32890 PyThreadState* __tstate = wxPyBeginAllowThreads();
32891 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2,*arg3);
32892 wxPyEndAllowThreads(__tstate);
32893 if (PyErr_Occurred()) SWIG_fail;
32894 }
32895 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
32896 return resultobj;
32897fail:
32898 return NULL;
32899}
32900
32901
32902SWIGINTERN PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args) {
32903 int argc;
32904 PyObject *argv[4];
32905
32906 if (!(argc = SWIG_Python_UnpackTuple(args,"new_TreeEvent",0,3,argv))) SWIG_fail;
32907 --argc;
32908 if ((argc >= 0) && (argc <= 2)) {
32909 int _v = 0;
32910 if (argc > 1) {
32911 {
32912 {
32913 int res = SWIG_AsVal_int(argv[1], NULL);
32914 _v = SWIG_CheckState(res);
32915 }
32916 }
32917 if (!_v) goto check_1;
32918 }
32919 return _wrap_new_TreeEvent__SWIG_0(self, argc, argv);
32920 }
32921check_1:
32922
32923 if ((argc >= 2) && (argc <= 3)) {
32924 return _wrap_new_TreeEvent__SWIG_1(self, argc, argv);
32925 }
32926
32927fail:
32928 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_TreeEvent'");
32929 return NULL;
32930}
32931
32932
1bd55598
RD
32933SWIGINTERN PyObject *_wrap_TreeEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32934 PyObject *resultobj = 0;
32935 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32936 wxTreeItemId result;
32937 void *argp1 = 0 ;
32938 int res1 = 0 ;
32939 PyObject *swig_obj[1] ;
32940
32941 if (!args) SWIG_fail;
32942 swig_obj[0] = args;
32943 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32944 if (!SWIG_IsOK(res1)) {
32945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32946 }
32947 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32948 {
32949 PyThreadState* __tstate = wxPyBeginAllowThreads();
32950 result = ((wxTreeEvent const *)arg1)->GetItem();
32951 wxPyEndAllowThreads(__tstate);
32952 if (PyErr_Occurred()) SWIG_fail;
32953 }
32954 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
32955 return resultobj;
32956fail:
32957 return NULL;
32958}
32959
32960
32961SWIGINTERN PyObject *_wrap_TreeEvent_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32962 PyObject *resultobj = 0;
32963 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32964 wxTreeItemId *arg2 = 0 ;
32965 void *argp1 = 0 ;
32966 int res1 = 0 ;
32967 void *argp2 = 0 ;
32968 int res2 = 0 ;
32969 PyObject * obj0 = 0 ;
32970 PyObject * obj1 = 0 ;
32971 char * kwnames[] = {
32972 (char *) "self",(char *) "item", NULL
32973 };
32974
32975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
32976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32977 if (!SWIG_IsOK(res1)) {
32978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32979 }
32980 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32981 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32982 if (!SWIG_IsOK(res2)) {
32983 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32984 }
32985 if (!argp2) {
32986 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32987 }
32988 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32989 {
32990 PyThreadState* __tstate = wxPyBeginAllowThreads();
32991 (arg1)->SetItem((wxTreeItemId const &)*arg2);
32992 wxPyEndAllowThreads(__tstate);
32993 if (PyErr_Occurred()) SWIG_fail;
32994 }
32995 resultobj = SWIG_Py_Void();
32996 return resultobj;
32997fail:
32998 return NULL;
d55e5bfc
RD
32999}
33000
33001
1bd55598
RD
33002SWIGINTERN PyObject *_wrap_TreeEvent_GetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33003 PyObject *resultobj = 0;
33004 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33005 wxTreeItemId result;
33006 void *argp1 = 0 ;
33007 int res1 = 0 ;
33008 PyObject *swig_obj[1] ;
33009
33010 if (!args) SWIG_fail;
33011 swig_obj[0] = args;
33012 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33013 if (!SWIG_IsOK(res1)) {
33014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33015 }
33016 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33017 {
33018 PyThreadState* __tstate = wxPyBeginAllowThreads();
33019 result = ((wxTreeEvent const *)arg1)->GetOldItem();
33020 wxPyEndAllowThreads(__tstate);
33021 if (PyErr_Occurred()) SWIG_fail;
33022 }
33023 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33024 return resultobj;
33025fail:
33026 return NULL;
33027}
33028
33029
33030SWIGINTERN PyObject *_wrap_TreeEvent_SetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33031 PyObject *resultobj = 0;
33032 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33033 wxTreeItemId *arg2 = 0 ;
33034 void *argp1 = 0 ;
33035 int res1 = 0 ;
33036 void *argp2 = 0 ;
33037 int res2 = 0 ;
33038 PyObject * obj0 = 0 ;
33039 PyObject * obj1 = 0 ;
33040 char * kwnames[] = {
33041 (char *) "self",(char *) "item", NULL
33042 };
33043
33044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) SWIG_fail;
33045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33046 if (!SWIG_IsOK(res1)) {
33047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33048 }
33049 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33050 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33051 if (!SWIG_IsOK(res2)) {
33052 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33053 }
33054 if (!argp2) {
33055 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33056 }
33057 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33058 {
33059 PyThreadState* __tstate = wxPyBeginAllowThreads();
33060 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
33061 wxPyEndAllowThreads(__tstate);
33062 if (PyErr_Occurred()) SWIG_fail;
33063 }
33064 resultobj = SWIG_Py_Void();
33065 return resultobj;
33066fail:
33067 return NULL;
d55e5bfc
RD
33068}
33069
33070
1bd55598
RD
33071SWIGINTERN PyObject *_wrap_TreeEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33072 PyObject *resultobj = 0;
33073 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33074 wxPoint result;
33075 void *argp1 = 0 ;
33076 int res1 = 0 ;
33077 PyObject *swig_obj[1] ;
33078
33079 if (!args) SWIG_fail;
33080 swig_obj[0] = args;
33081 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33082 if (!SWIG_IsOK(res1)) {
33083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetPoint" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33084 }
33085 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33086 {
33087 PyThreadState* __tstate = wxPyBeginAllowThreads();
33088 result = ((wxTreeEvent const *)arg1)->GetPoint();
33089 wxPyEndAllowThreads(__tstate);
33090 if (PyErr_Occurred()) SWIG_fail;
33091 }
33092 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
33093 return resultobj;
33094fail:
33095 return NULL;
33096}
33097
33098
33099SWIGINTERN PyObject *_wrap_TreeEvent_SetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33100 PyObject *resultobj = 0;
33101 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33102 wxPoint *arg2 = 0 ;
33103 void *argp1 = 0 ;
33104 int res1 = 0 ;
33105 wxPoint temp2 ;
33106 PyObject * obj0 = 0 ;
33107 PyObject * obj1 = 0 ;
33108 char * kwnames[] = {
33109 (char *) "self",(char *) "pt", NULL
33110 };
33111
33112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) SWIG_fail;
33113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33114 if (!SWIG_IsOK(res1)) {
33115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetPoint" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33116 }
33117 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33118 {
33119 arg2 = &temp2;
33120 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33121 }
33122 {
33123 PyThreadState* __tstate = wxPyBeginAllowThreads();
33124 (arg1)->SetPoint((wxPoint const &)*arg2);
33125 wxPyEndAllowThreads(__tstate);
33126 if (PyErr_Occurred()) SWIG_fail;
33127 }
33128 resultobj = SWIG_Py_Void();
33129 return resultobj;
33130fail:
33131 return NULL;
d55e5bfc
RD
33132}
33133
33134
1bd55598
RD
33135SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33136 PyObject *resultobj = 0;
33137 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33138 wxKeyEvent *result = 0 ;
33139 void *argp1 = 0 ;
33140 int res1 = 0 ;
33141 PyObject *swig_obj[1] ;
33142
33143 if (!args) SWIG_fail;
33144 swig_obj[0] = args;
33145 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33146 if (!SWIG_IsOK(res1)) {
33147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33148 }
33149 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33150 {
33151 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 33152 {
1bd55598
RD
33153 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
33154 result = (wxKeyEvent *) &_result_ref;
d55e5bfc 33155 }
1bd55598
RD
33156 wxPyEndAllowThreads(__tstate);
33157 if (PyErr_Occurred()) SWIG_fail;
33158 }
33159 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxKeyEvent, 0 | 0 );
33160 return resultobj;
33161fail:
33162 return NULL;
d55e5bfc
RD
33163}
33164
33165
1bd55598
RD
33166SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33167 PyObject *resultobj = 0;
33168 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33169 int result;
33170 void *argp1 = 0 ;
33171 int res1 = 0 ;
33172 PyObject *swig_obj[1] ;
33173
33174 if (!args) SWIG_fail;
33175 swig_obj[0] = args;
33176 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33177 if (!SWIG_IsOK(res1)) {
33178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33179 }
33180 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33181 {
33182 PyThreadState* __tstate = wxPyBeginAllowThreads();
33183 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
33184 wxPyEndAllowThreads(__tstate);
33185 if (PyErr_Occurred()) SWIG_fail;
33186 }
33187 resultobj = SWIG_From_int(static_cast< int >(result));
33188 return resultobj;
33189fail:
33190 return NULL;
33191}
33192
33193
33194SWIGINTERN PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33195 PyObject *resultobj = 0;
33196 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33197 wxKeyEvent *arg2 = 0 ;
33198 void *argp1 = 0 ;
33199 int res1 = 0 ;
33200 void *argp2 = 0 ;
33201 int res2 = 0 ;
33202 PyObject * obj0 = 0 ;
33203 PyObject * obj1 = 0 ;
33204 char * kwnames[] = {
33205 (char *) "self",(char *) "evt", NULL
33206 };
33207
33208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) SWIG_fail;
33209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33210 if (!SWIG_IsOK(res1)) {
33211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33212 }
33213 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33214 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
33215 if (!SWIG_IsOK(res2)) {
33216 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33217 }
33218 if (!argp2) {
33219 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33220 }
33221 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
33222 {
33223 PyThreadState* __tstate = wxPyBeginAllowThreads();
33224 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
33225 wxPyEndAllowThreads(__tstate);
33226 if (PyErr_Occurred()) SWIG_fail;
33227 }
33228 resultobj = SWIG_Py_Void();
33229 return resultobj;
33230fail:
33231 return NULL;
d55e5bfc
RD
33232}
33233
33234
1bd55598
RD
33235SWIGINTERN PyObject *_wrap_TreeEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33236 PyObject *resultobj = 0;
33237 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33238 wxString *result = 0 ;
33239 void *argp1 = 0 ;
33240 int res1 = 0 ;
33241 PyObject *swig_obj[1] ;
33242
33243 if (!args) SWIG_fail;
33244 swig_obj[0] = args;
33245 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33246 if (!SWIG_IsOK(res1)) {
33247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetLabel" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33248 }
33249 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33250 {
33251 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 33252 {
1bd55598
RD
33253 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
33254 result = (wxString *) &_result_ref;
d55e5bfc 33255 }
1bd55598
RD
33256 wxPyEndAllowThreads(__tstate);
33257 if (PyErr_Occurred()) SWIG_fail;
33258 }
33259 {
33260#if wxUSE_UNICODE
33261 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33262#else
33263 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33264#endif
33265 }
33266 return resultobj;
33267fail:
33268 return NULL;
33269}
33270
33271
33272SWIGINTERN PyObject *_wrap_TreeEvent_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33273 PyObject *resultobj = 0;
33274 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33275 wxString *arg2 = 0 ;
33276 void *argp1 = 0 ;
33277 int res1 = 0 ;
33278 bool temp2 = false ;
33279 PyObject * obj0 = 0 ;
33280 PyObject * obj1 = 0 ;
33281 char * kwnames[] = {
33282 (char *) "self",(char *) "label", NULL
33283 };
33284
33285 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
33286 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33287 if (!SWIG_IsOK(res1)) {
33288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetLabel" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33289 }
33290 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33291 {
33292 arg2 = wxString_in_helper(obj1);
33293 if (arg2 == NULL) SWIG_fail;
33294 temp2 = true;
33295 }
33296 {
33297 PyThreadState* __tstate = wxPyBeginAllowThreads();
33298 (arg1)->SetLabel((wxString const &)*arg2);
33299 wxPyEndAllowThreads(__tstate);
33300 if (PyErr_Occurred()) SWIG_fail;
33301 }
33302 resultobj = SWIG_Py_Void();
33303 {
33304 if (temp2)
33305 delete arg2;
33306 }
33307 return resultobj;
33308fail:
33309 {
33310 if (temp2)
33311 delete arg2;
33312 }
33313 return NULL;
d55e5bfc
RD
33314}
33315
33316
1bd55598
RD
33317SWIGINTERN PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33318 PyObject *resultobj = 0;
33319 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33320 bool result;
33321 void *argp1 = 0 ;
33322 int res1 = 0 ;
33323 PyObject *swig_obj[1] ;
33324
33325 if (!args) SWIG_fail;
33326 swig_obj[0] = args;
33327 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33328 if (!SWIG_IsOK(res1)) {
33329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33330 }
33331 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33332 {
33333 PyThreadState* __tstate = wxPyBeginAllowThreads();
33334 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
33335 wxPyEndAllowThreads(__tstate);
33336 if (PyErr_Occurred()) SWIG_fail;
33337 }
33338 {
33339 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33340 }
33341 return resultobj;
33342fail:
33343 return NULL;
33344}
33345
33346
33347SWIGINTERN PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33348 PyObject *resultobj = 0;
33349 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33350 bool arg2 ;
33351 void *argp1 = 0 ;
33352 int res1 = 0 ;
33353 bool val2 ;
33354 int ecode2 = 0 ;
33355 PyObject * obj0 = 0 ;
33356 PyObject * obj1 = 0 ;
33357 char * kwnames[] = {
33358 (char *) "self",(char *) "editCancelled", NULL
33359 };
33360
33361 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
33362 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33363 if (!SWIG_IsOK(res1)) {
33364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33365 }
33366 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33367 ecode2 = SWIG_AsVal_bool(obj1, &val2);
33368 if (!SWIG_IsOK(ecode2)) {
33369 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
33370 }
33371 arg2 = static_cast< bool >(val2);
33372 {
33373 PyThreadState* __tstate = wxPyBeginAllowThreads();
33374 (arg1)->SetEditCanceled(arg2);
33375 wxPyEndAllowThreads(__tstate);
33376 if (PyErr_Occurred()) SWIG_fail;
33377 }
33378 resultobj = SWIG_Py_Void();
33379 return resultobj;
33380fail:
33381 return NULL;
33382}
33383
33384
33385SWIGINTERN PyObject *_wrap_TreeEvent_SetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33386 PyObject *resultobj = 0;
33387 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33388 wxString *arg2 = 0 ;
33389 void *argp1 = 0 ;
33390 int res1 = 0 ;
33391 bool temp2 = false ;
33392 PyObject * obj0 = 0 ;
33393 PyObject * obj1 = 0 ;
33394 char * kwnames[] = {
33395 (char *) "self",(char *) "toolTip", NULL
33396 };
33397
33398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
33399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33400 if (!SWIG_IsOK(res1)) {
33401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33402 }
33403 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33404 {
33405 arg2 = wxString_in_helper(obj1);
33406 if (arg2 == NULL) SWIG_fail;
33407 temp2 = true;
33408 }
33409 {
33410 PyThreadState* __tstate = wxPyBeginAllowThreads();
33411 (arg1)->SetToolTip((wxString const &)*arg2);
33412 wxPyEndAllowThreads(__tstate);
33413 if (PyErr_Occurred()) SWIG_fail;
33414 }
33415 resultobj = SWIG_Py_Void();
33416 {
33417 if (temp2)
33418 delete arg2;
33419 }
33420 return resultobj;
33421fail:
33422 {
33423 if (temp2)
33424 delete arg2;
33425 }
33426 return NULL;
d55e5bfc
RD
33427}
33428
33429
1bd55598
RD
33430SWIGINTERN PyObject *_wrap_TreeEvent_GetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33431 PyObject *resultobj = 0;
33432 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33433 wxString result;
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_GetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33443 }
33444 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33445 {
33446 PyThreadState* __tstate = wxPyBeginAllowThreads();
33447 result = (arg1)->GetToolTip();
33448 wxPyEndAllowThreads(__tstate);
33449 if (PyErr_Occurred()) SWIG_fail;
33450 }
33451 {
33452#if wxUSE_UNICODE
33453 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33454#else
33455 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33456#endif
33457 }
33458 return resultobj;
33459fail:
33460 return NULL;
33461}
33462
33463
33464SWIGINTERN PyObject *TreeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33465 PyObject *obj;
33466 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33467 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeEvent, SWIG_NewClientData(obj));
33468 return SWIG_Py_Void();
33469}
33470
33471SWIGINTERN PyObject *TreeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33472 return SWIG_Python_InitShadowInstance(args);
33473}
33474
33475SWIGINTERN PyObject *_wrap_new_TreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33476 PyObject *resultobj = 0;
33477 wxWindow *arg1 = (wxWindow *) 0 ;
33478 int arg2 = (int) -1 ;
33479 wxPoint const &arg3_defvalue = wxDefaultPosition ;
33480 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
33481 wxSize const &arg4_defvalue = wxDefaultSize ;
33482 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
33483 long arg5 = (long) wxTR_DEFAULT_STYLE ;
33484 wxValidator const &arg6_defvalue = wxDefaultValidator ;
33485 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
33486 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
33487 wxString *arg7 = (wxString *) &arg7_defvalue ;
33488 wxPyTreeCtrl *result = 0 ;
33489 void *argp1 = 0 ;
33490 int res1 = 0 ;
33491 int val2 ;
33492 int ecode2 = 0 ;
33493 wxPoint temp3 ;
33494 wxSize temp4 ;
33495 long val5 ;
33496 int ecode5 = 0 ;
33497 void *argp6 = 0 ;
33498 int res6 = 0 ;
33499 bool temp7 = false ;
33500 PyObject * obj0 = 0 ;
33501 PyObject * obj1 = 0 ;
33502 PyObject * obj2 = 0 ;
33503 PyObject * obj3 = 0 ;
33504 PyObject * obj4 = 0 ;
33505 PyObject * obj5 = 0 ;
33506 PyObject * obj6 = 0 ;
33507 char * kwnames[] = {
33508 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33509 };
33510
33511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33513 if (!SWIG_IsOK(res1)) {
33514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
33515 }
33516 arg1 = reinterpret_cast< wxWindow * >(argp1);
33517 if (obj1) {
33518 ecode2 = SWIG_AsVal_int(obj1, &val2);
33519 if (!SWIG_IsOK(ecode2)) {
33520 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCtrl" "', expected argument " "2"" of type '" "int""'");
33521 }
33522 arg2 = static_cast< int >(val2);
33523 }
33524 if (obj2) {
d55e5bfc 33525 {
1bd55598
RD
33526 arg3 = &temp3;
33527 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 33528 }
1bd55598
RD
33529 }
33530 if (obj3) {
36ed4f51 33531 {
1bd55598
RD
33532 arg4 = &temp4;
33533 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 33534 }
1bd55598
RD
33535 }
33536 if (obj4) {
33537 ecode5 = SWIG_AsVal_long(obj4, &val5);
33538 if (!SWIG_IsOK(ecode5)) {
33539 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TreeCtrl" "', expected argument " "5"" of type '" "long""'");
33540 }
33541 arg5 = static_cast< long >(val5);
33542 }
33543 if (obj5) {
33544 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
33545 if (!SWIG_IsOK(res6)) {
33546 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 33547 }
1bd55598
RD
33548 if (!argp6) {
33549 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 33550 }
1bd55598
RD
33551 arg6 = reinterpret_cast< wxValidator * >(argp6);
33552 }
33553 if (obj6) {
d55e5bfc 33554 {
1bd55598
RD
33555 arg7 = wxString_in_helper(obj6);
33556 if (arg7 == NULL) SWIG_fail;
33557 temp7 = true;
d55e5bfc 33558 }
1bd55598
RD
33559 }
33560 {
33561 if (!wxPyCheckForApp()) SWIG_fail;
33562 PyThreadState* __tstate = wxPyBeginAllowThreads();
33563 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
33564 wxPyEndAllowThreads(__tstate);
33565 if (PyErr_Occurred()) SWIG_fail;
33566 }
33567 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_NEW | 0 );
33568 {
33569 if (temp7)
33570 delete arg7;
33571 }
33572 return resultobj;
33573fail:
33574 {
33575 if (temp7)
33576 delete arg7;
33577 }
33578 return NULL;
33579}
33580
33581
33582SWIGINTERN PyObject *_wrap_new_PreTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33583 PyObject *resultobj = 0;
33584 wxPyTreeCtrl *result = 0 ;
33585
33586 if (!SWIG_Python_UnpackTuple(args,"new_PreTreeCtrl",0,0,0)) SWIG_fail;
33587 {
33588 if (!wxPyCheckForApp()) SWIG_fail;
33589 PyThreadState* __tstate = wxPyBeginAllowThreads();
33590 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
33591 wxPyEndAllowThreads(__tstate);
33592 if (PyErr_Occurred()) SWIG_fail;
33593 }
33594 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_OWN | 0 );
33595 return resultobj;
33596fail:
33597 return NULL;
33598}
33599
33600
33601SWIGINTERN PyObject *_wrap_TreeCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33602 PyObject *resultobj = 0;
33603 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33604 wxWindow *arg2 = (wxWindow *) 0 ;
33605 int arg3 = (int) -1 ;
33606 wxPoint const &arg4_defvalue = wxDefaultPosition ;
33607 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
33608 wxSize const &arg5_defvalue = wxDefaultSize ;
33609 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
33610 long arg6 = (long) wxTR_DEFAULT_STYLE ;
33611 wxValidator const &arg7_defvalue = wxDefaultValidator ;
33612 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
33613 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
33614 wxString *arg8 = (wxString *) &arg8_defvalue ;
33615 bool result;
33616 void *argp1 = 0 ;
33617 int res1 = 0 ;
33618 void *argp2 = 0 ;
33619 int res2 = 0 ;
33620 int val3 ;
33621 int ecode3 = 0 ;
33622 wxPoint temp4 ;
33623 wxSize temp5 ;
33624 long val6 ;
33625 int ecode6 = 0 ;
33626 void *argp7 = 0 ;
33627 int res7 = 0 ;
33628 bool temp8 = false ;
33629 PyObject * obj0 = 0 ;
33630 PyObject * obj1 = 0 ;
33631 PyObject * obj2 = 0 ;
33632 PyObject * obj3 = 0 ;
33633 PyObject * obj4 = 0 ;
33634 PyObject * obj5 = 0 ;
33635 PyObject * obj6 = 0 ;
33636 PyObject * obj7 = 0 ;
33637 char * kwnames[] = {
33638 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33639 };
33640
33641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
33642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33643 if (!SWIG_IsOK(res1)) {
33644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Create" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33645 }
33646 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33647 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33648 if (!SWIG_IsOK(res2)) {
33649 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
33650 }
33651 arg2 = reinterpret_cast< wxWindow * >(argp2);
33652 if (obj2) {
33653 ecode3 = SWIG_AsVal_int(obj2, &val3);
33654 if (!SWIG_IsOK(ecode3)) {
33655 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_Create" "', expected argument " "3"" of type '" "int""'");
33656 }
33657 arg3 = static_cast< int >(val3);
33658 }
33659 if (obj3) {
d55e5bfc 33660 {
1bd55598
RD
33661 arg4 = &temp4;
33662 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 33663 }
1bd55598
RD
33664 }
33665 if (obj4) {
d55e5bfc 33666 {
1bd55598
RD
33667 arg5 = &temp5;
33668 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 33669 }
1bd55598
RD
33670 }
33671 if (obj5) {
33672 ecode6 = SWIG_AsVal_long(obj5, &val6);
33673 if (!SWIG_IsOK(ecode6)) {
33674 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_Create" "', expected argument " "6"" of type '" "long""'");
33675 }
33676 arg6 = static_cast< long >(val6);
33677 }
33678 if (obj6) {
33679 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
33680 if (!SWIG_IsOK(res7)) {
33681 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 33682 }
1bd55598
RD
33683 if (!argp7) {
33684 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 33685 }
1bd55598
RD
33686 arg7 = reinterpret_cast< wxValidator * >(argp7);
33687 }
33688 if (obj7) {
d55e5bfc 33689 {
1bd55598
RD
33690 arg8 = wxString_in_helper(obj7);
33691 if (arg8 == NULL) SWIG_fail;
33692 temp8 = true;
d55e5bfc 33693 }
1bd55598
RD
33694 }
33695 {
33696 PyThreadState* __tstate = wxPyBeginAllowThreads();
33697 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
33698 wxPyEndAllowThreads(__tstate);
33699 if (PyErr_Occurred()) SWIG_fail;
33700 }
33701 {
33702 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33703 }
33704 {
33705 if (temp8)
33706 delete arg8;
33707 }
33708 return resultobj;
33709fail:
33710 {
33711 if (temp8)
33712 delete arg8;
33713 }
33714 return NULL;
33715}
33716
33717
33718SWIGINTERN PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33719 PyObject *resultobj = 0;
33720 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33721 PyObject *arg2 = (PyObject *) 0 ;
33722 PyObject *arg3 = (PyObject *) 0 ;
33723 void *argp1 = 0 ;
33724 int res1 = 0 ;
33725 PyObject * obj0 = 0 ;
33726 PyObject * obj1 = 0 ;
33727 PyObject * obj2 = 0 ;
33728 char * kwnames[] = {
33729 (char *) "self",(char *) "self",(char *) "_class", NULL
33730 };
33731
33732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33734 if (!SWIG_IsOK(res1)) {
33735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33736 }
33737 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33738 arg2 = obj1;
33739 arg3 = obj2;
33740 {
33741 PyThreadState* __tstate = wxPyBeginAllowThreads();
33742 (arg1)->_setCallbackInfo(arg2,arg3);
33743 wxPyEndAllowThreads(__tstate);
33744 if (PyErr_Occurred()) SWIG_fail;
33745 }
33746 resultobj = SWIG_Py_Void();
33747 return resultobj;
33748fail:
33749 return NULL;
d55e5bfc
RD
33750}
33751
33752
1bd55598
RD
33753SWIGINTERN PyObject *_wrap_TreeCtrl_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33754 PyObject *resultobj = 0;
33755 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
e9d6f3a4 33756 unsigned int result;
1bd55598
RD
33757 void *argp1 = 0 ;
33758 int res1 = 0 ;
33759 PyObject *swig_obj[1] ;
33760
33761 if (!args) SWIG_fail;
33762 swig_obj[0] = args;
33763 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33764 if (!SWIG_IsOK(res1)) {
33765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33766 }
33767 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33768 {
33769 PyThreadState* __tstate = wxPyBeginAllowThreads();
e9d6f3a4 33770 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetCount();
1bd55598
RD
33771 wxPyEndAllowThreads(__tstate);
33772 if (PyErr_Occurred()) SWIG_fail;
33773 }
e9d6f3a4 33774 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
1bd55598
RD
33775 return resultobj;
33776fail:
33777 return NULL;
d55e5bfc
RD
33778}
33779
33780
1bd55598
RD
33781SWIGINTERN PyObject *_wrap_TreeCtrl_GetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33782 PyObject *resultobj = 0;
33783 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33784 unsigned int result;
33785 void *argp1 = 0 ;
33786 int res1 = 0 ;
33787 PyObject *swig_obj[1] ;
33788
33789 if (!args) SWIG_fail;
33790 swig_obj[0] = args;
33791 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33792 if (!SWIG_IsOK(res1)) {
33793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33794 }
33795 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33796 {
33797 PyThreadState* __tstate = wxPyBeginAllowThreads();
33798 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
33799 wxPyEndAllowThreads(__tstate);
33800 if (PyErr_Occurred()) SWIG_fail;
33801 }
33802 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33803 return resultobj;
33804fail:
33805 return NULL;
33806}
33807
33808
33809SWIGINTERN PyObject *_wrap_TreeCtrl_SetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33810 PyObject *resultobj = 0;
33811 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33812 unsigned int arg2 ;
33813 void *argp1 = 0 ;
33814 int res1 = 0 ;
33815 unsigned int val2 ;
33816 int ecode2 = 0 ;
33817 PyObject * obj0 = 0 ;
33818 PyObject * obj1 = 0 ;
33819 char * kwnames[] = {
33820 (char *) "self",(char *) "indent", NULL
33821 };
33822
33823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) SWIG_fail;
33824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33825 if (!SWIG_IsOK(res1)) {
33826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33827 }
33828 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33829 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
33830 if (!SWIG_IsOK(ecode2)) {
33831 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetIndent" "', expected argument " "2"" of type '" "unsigned int""'");
33832 }
33833 arg2 = static_cast< unsigned int >(val2);
33834 {
33835 PyThreadState* __tstate = wxPyBeginAllowThreads();
33836 (arg1)->SetIndent(arg2);
33837 wxPyEndAllowThreads(__tstate);
33838 if (PyErr_Occurred()) SWIG_fail;
33839 }
33840 resultobj = SWIG_Py_Void();
33841 return resultobj;
33842fail:
33843 return NULL;
d55e5bfc
RD
33844}
33845
33846
1bd55598
RD
33847SWIGINTERN PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33848 PyObject *resultobj = 0;
33849 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33850 unsigned int result;
33851 void *argp1 = 0 ;
33852 int res1 = 0 ;
33853 PyObject *swig_obj[1] ;
33854
33855 if (!args) SWIG_fail;
33856 swig_obj[0] = args;
33857 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33858 if (!SWIG_IsOK(res1)) {
33859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33860 }
33861 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33862 {
33863 PyThreadState* __tstate = wxPyBeginAllowThreads();
33864 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
33865 wxPyEndAllowThreads(__tstate);
33866 if (PyErr_Occurred()) SWIG_fail;
33867 }
33868 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33869 return resultobj;
33870fail:
33871 return NULL;
33872}
33873
33874
33875SWIGINTERN PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33876 PyObject *resultobj = 0;
33877 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33878 unsigned int arg2 ;
33879 void *argp1 = 0 ;
33880 int res1 = 0 ;
33881 unsigned int val2 ;
33882 int ecode2 = 0 ;
33883 PyObject * obj0 = 0 ;
33884 PyObject * obj1 = 0 ;
33885 char * kwnames[] = {
33886 (char *) "self",(char *) "spacing", NULL
33887 };
33888
33889 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
33890 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33891 if (!SWIG_IsOK(res1)) {
33892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33893 }
33894 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33895 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
33896 if (!SWIG_IsOK(ecode2)) {
33897 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "2"" of type '" "unsigned int""'");
33898 }
33899 arg2 = static_cast< unsigned int >(val2);
33900 {
33901 PyThreadState* __tstate = wxPyBeginAllowThreads();
33902 (arg1)->SetSpacing(arg2);
33903 wxPyEndAllowThreads(__tstate);
33904 if (PyErr_Occurred()) SWIG_fail;
33905 }
33906 resultobj = SWIG_Py_Void();
33907 return resultobj;
33908fail:
33909 return NULL;
d55e5bfc
RD
33910}
33911
33912
1bd55598
RD
33913SWIGINTERN PyObject *_wrap_TreeCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33914 PyObject *resultobj = 0;
33915 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33916 wxImageList *result = 0 ;
33917 void *argp1 = 0 ;
33918 int res1 = 0 ;
33919 PyObject *swig_obj[1] ;
33920
33921 if (!args) SWIG_fail;
33922 swig_obj[0] = args;
33923 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33924 if (!SWIG_IsOK(res1)) {
33925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33926 }
33927 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33928 {
33929 PyThreadState* __tstate = wxPyBeginAllowThreads();
33930 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
33931 wxPyEndAllowThreads(__tstate);
33932 if (PyErr_Occurred()) SWIG_fail;
33933 }
33934 {
33935 resultobj = wxPyMake_wxObject(result, (bool)0);
33936 }
33937 return resultobj;
33938fail:
33939 return NULL;
d55e5bfc
RD
33940}
33941
33942
1bd55598
RD
33943SWIGINTERN PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33944 PyObject *resultobj = 0;
33945 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33946 wxImageList *result = 0 ;
33947 void *argp1 = 0 ;
33948 int res1 = 0 ;
33949 PyObject *swig_obj[1] ;
33950
33951 if (!args) SWIG_fail;
33952 swig_obj[0] = args;
33953 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33954 if (!SWIG_IsOK(res1)) {
33955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33956 }
33957 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33958 {
33959 PyThreadState* __tstate = wxPyBeginAllowThreads();
33960 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
33961 wxPyEndAllowThreads(__tstate);
33962 if (PyErr_Occurred()) SWIG_fail;
33963 }
33964 {
33965 resultobj = wxPyMake_wxObject(result, (bool)0);
33966 }
33967 return resultobj;
33968fail:
33969 return NULL;
33970}
33971
33972
33973SWIGINTERN PyObject *_wrap_TreeCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33974 PyObject *resultobj = 0;
33975 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33976 wxImageList *arg2 = (wxImageList *) 0 ;
33977 void *argp1 = 0 ;
33978 int res1 = 0 ;
33979 void *argp2 = 0 ;
33980 int res2 = 0 ;
33981 PyObject * obj0 = 0 ;
33982 PyObject * obj1 = 0 ;
33983 char * kwnames[] = {
33984 (char *) "self",(char *) "imageList", NULL
33985 };
33986
33987 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33988 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33989 if (!SWIG_IsOK(res1)) {
33990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33991 }
33992 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33993 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
33994 if (!SWIG_IsOK(res2)) {
33995 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33996 }
33997 arg2 = reinterpret_cast< wxImageList * >(argp2);
33998 {
33999 PyThreadState* __tstate = wxPyBeginAllowThreads();
34000 (arg1)->SetImageList(arg2);
34001 wxPyEndAllowThreads(__tstate);
34002 if (PyErr_Occurred()) SWIG_fail;
34003 }
34004 resultobj = SWIG_Py_Void();
34005 return resultobj;
34006fail:
34007 return NULL;
34008}
34009
34010
34011SWIGINTERN PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34012 PyObject *resultobj = 0;
34013 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34014 wxImageList *arg2 = (wxImageList *) 0 ;
34015 void *argp1 = 0 ;
34016 int res1 = 0 ;
34017 void *argp2 = 0 ;
34018 int res2 = 0 ;
34019 PyObject * obj0 = 0 ;
34020 PyObject * obj1 = 0 ;
34021 char * kwnames[] = {
34022 (char *) "self",(char *) "imageList", NULL
34023 };
34024
34025 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34026 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34027 if (!SWIG_IsOK(res1)) {
34028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34029 }
34030 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34031 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34032 if (!SWIG_IsOK(res2)) {
34033 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34034 }
34035 arg2 = reinterpret_cast< wxImageList * >(argp2);
34036 {
34037 PyThreadState* __tstate = wxPyBeginAllowThreads();
34038 (arg1)->SetStateImageList(arg2);
34039 wxPyEndAllowThreads(__tstate);
34040 if (PyErr_Occurred()) SWIG_fail;
34041 }
34042 resultobj = SWIG_Py_Void();
34043 return resultobj;
34044fail:
34045 return NULL;
34046}
34047
34048
34049SWIGINTERN PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34050 PyObject *resultobj = 0;
34051 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34052 wxImageList *arg2 = (wxImageList *) 0 ;
34053 void *argp1 = 0 ;
34054 int res1 = 0 ;
34055 int res2 = 0 ;
34056 PyObject * obj0 = 0 ;
34057 PyObject * obj1 = 0 ;
34058 char * kwnames[] = {
34059 (char *) "self",(char *) "imageList", NULL
34060 };
34061
34062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34064 if (!SWIG_IsOK(res1)) {
34065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34066 }
34067 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34068 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34069 if (!SWIG_IsOK(res2)) {
34070 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34071 }
34072 {
34073 PyThreadState* __tstate = wxPyBeginAllowThreads();
34074 (arg1)->AssignImageList(arg2);
34075 wxPyEndAllowThreads(__tstate);
34076 if (PyErr_Occurred()) SWIG_fail;
34077 }
34078 resultobj = SWIG_Py_Void();
34079 return resultobj;
34080fail:
34081 return NULL;
34082}
34083
34084
34085SWIGINTERN PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34086 PyObject *resultobj = 0;
34087 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34088 wxImageList *arg2 = (wxImageList *) 0 ;
34089 void *argp1 = 0 ;
34090 int res1 = 0 ;
34091 int res2 = 0 ;
34092 PyObject * obj0 = 0 ;
34093 PyObject * obj1 = 0 ;
34094 char * kwnames[] = {
34095 (char *) "self",(char *) "imageList", NULL
34096 };
34097
34098 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34099 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34100 if (!SWIG_IsOK(res1)) {
34101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34102 }
34103 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34104 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34105 if (!SWIG_IsOK(res2)) {
34106 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34107 }
34108 {
34109 PyThreadState* __tstate = wxPyBeginAllowThreads();
34110 (arg1)->AssignStateImageList(arg2);
34111 wxPyEndAllowThreads(__tstate);
34112 if (PyErr_Occurred()) SWIG_fail;
34113 }
34114 resultobj = SWIG_Py_Void();
34115 return resultobj;
34116fail:
34117 return NULL;
34118}
34119
34120
34121SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34122 PyObject *resultobj = 0;
34123 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34124 wxTreeItemId *arg2 = 0 ;
34125 wxString result;
34126 void *argp1 = 0 ;
34127 int res1 = 0 ;
34128 void *argp2 = 0 ;
34129 int res2 = 0 ;
34130 PyObject * obj0 = 0 ;
34131 PyObject * obj1 = 0 ;
34132 char * kwnames[] = {
34133 (char *) "self",(char *) "item", NULL
34134 };
34135
34136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
34137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34138 if (!SWIG_IsOK(res1)) {
34139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34140 }
34141 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34142 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34143 if (!SWIG_IsOK(res2)) {
34144 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34145 }
34146 if (!argp2) {
34147 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34148 }
34149 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34150 {
34151 PyThreadState* __tstate = wxPyBeginAllowThreads();
34152 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
34153 wxPyEndAllowThreads(__tstate);
34154 if (PyErr_Occurred()) SWIG_fail;
34155 }
34156 {
34157#if wxUSE_UNICODE
34158 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
34159#else
34160 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
34161#endif
34162 }
34163 return resultobj;
34164fail:
34165 return NULL;
34166}
34167
34168
34169SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34170 PyObject *resultobj = 0;
34171 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34172 wxTreeItemId *arg2 = 0 ;
34173 wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34174 int result;
34175 void *argp1 = 0 ;
34176 int res1 = 0 ;
34177 void *argp2 = 0 ;
34178 int res2 = 0 ;
34179 int val3 ;
34180 int ecode3 = 0 ;
34181 PyObject * obj0 = 0 ;
34182 PyObject * obj1 = 0 ;
34183 PyObject * obj2 = 0 ;
34184 char * kwnames[] = {
34185 (char *) "self",(char *) "item",(char *) "which", NULL
34186 };
34187
34188 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34189 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34190 if (!SWIG_IsOK(res1)) {
34191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34192 }
34193 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34194 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34195 if (!SWIG_IsOK(res2)) {
34196 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34197 }
34198 if (!argp2) {
34199 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34200 }
34201 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34202 if (obj2) {
34203 ecode3 = SWIG_AsVal_int(obj2, &val3);
34204 if (!SWIG_IsOK(ecode3)) {
34205 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "3"" of type '" "wxTreeItemIcon""'");
34206 }
34207 arg3 = static_cast< wxTreeItemIcon >(val3);
34208 }
34209 {
34210 PyThreadState* __tstate = wxPyBeginAllowThreads();
34211 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,arg3);
34212 wxPyEndAllowThreads(__tstate);
34213 if (PyErr_Occurred()) SWIG_fail;
34214 }
34215 resultobj = SWIG_From_int(static_cast< int >(result));
34216 return resultobj;
34217fail:
34218 return NULL;
34219}
34220
34221
34222SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34223 PyObject *resultobj = 0;
34224 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34225 wxTreeItemId *arg2 = 0 ;
34226 wxPyTreeItemData *result = 0 ;
34227 void *argp1 = 0 ;
34228 int res1 = 0 ;
34229 void *argp2 = 0 ;
34230 int res2 = 0 ;
34231 PyObject * obj0 = 0 ;
34232 PyObject * obj1 = 0 ;
34233 char * kwnames[] = {
34234 (char *) "self",(char *) "item", NULL
34235 };
34236
34237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
34238 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34239 if (!SWIG_IsOK(res1)) {
34240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34241 }
34242 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34243 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34244 if (!SWIG_IsOK(res2)) {
34245 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34246 }
34247 if (!argp2) {
34248 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34249 }
34250 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34251 {
34252 PyThreadState* __tstate = wxPyBeginAllowThreads();
34253 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
34254 wxPyEndAllowThreads(__tstate);
34255 if (PyErr_Occurred()) SWIG_fail;
34256 }
34257 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
34258 return resultobj;
34259fail:
34260 return NULL;
34261}
34262
34263
34264SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34265 PyObject *resultobj = 0;
34266 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34267 wxTreeItemId *arg2 = 0 ;
34268 PyObject *result = 0 ;
34269 void *argp1 = 0 ;
34270 int res1 = 0 ;
34271 void *argp2 = 0 ;
34272 int res2 = 0 ;
34273 PyObject * obj0 = 0 ;
34274 PyObject * obj1 = 0 ;
34275 char * kwnames[] = {
34276 (char *) "self",(char *) "item", NULL
34277 };
34278
34279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) SWIG_fail;
34280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34281 if (!SWIG_IsOK(res1)) {
34282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34283 }
34284 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34285 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34286 if (!SWIG_IsOK(res2)) {
34287 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34288 }
34289 if (!argp2) {
34290 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34291 }
34292 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34293 {
34294 PyThreadState* __tstate = wxPyBeginAllowThreads();
34295 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
34296 wxPyEndAllowThreads(__tstate);
34297 if (PyErr_Occurred()) SWIG_fail;
34298 }
34299 resultobj = result;
34300 return resultobj;
34301fail:
34302 return NULL;
34303}
34304
34305
34306SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34307 PyObject *resultobj = 0;
34308 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34309 wxTreeItemId *arg2 = 0 ;
34310 wxColour result;
34311 void *argp1 = 0 ;
34312 int res1 = 0 ;
34313 void *argp2 = 0 ;
34314 int res2 = 0 ;
34315 PyObject * obj0 = 0 ;
34316 PyObject * obj1 = 0 ;
34317 char * kwnames[] = {
34318 (char *) "self",(char *) "item", NULL
34319 };
34320
34321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
34322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34323 if (!SWIG_IsOK(res1)) {
34324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34325 }
34326 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34327 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34328 if (!SWIG_IsOK(res2)) {
34329 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34330 }
34331 if (!argp2) {
34332 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34333 }
34334 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34335 {
34336 PyThreadState* __tstate = wxPyBeginAllowThreads();
34337 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
34338 wxPyEndAllowThreads(__tstate);
34339 if (PyErr_Occurred()) SWIG_fail;
34340 }
34341 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34342 return resultobj;
34343fail:
34344 return NULL;
34345}
34346
34347
34348SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34349 PyObject *resultobj = 0;
34350 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34351 wxTreeItemId *arg2 = 0 ;
34352 wxColour result;
34353 void *argp1 = 0 ;
34354 int res1 = 0 ;
34355 void *argp2 = 0 ;
34356 int res2 = 0 ;
34357 PyObject * obj0 = 0 ;
34358 PyObject * obj1 = 0 ;
34359 char * kwnames[] = {
34360 (char *) "self",(char *) "item", NULL
34361 };
34362
34363 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
34364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34365 if (!SWIG_IsOK(res1)) {
34366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34367 }
34368 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34369 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34370 if (!SWIG_IsOK(res2)) {
34371 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34372 }
34373 if (!argp2) {
34374 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34375 }
34376 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34377 {
34378 PyThreadState* __tstate = wxPyBeginAllowThreads();
34379 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
34380 wxPyEndAllowThreads(__tstate);
34381 if (PyErr_Occurred()) SWIG_fail;
34382 }
34383 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34384 return resultobj;
34385fail:
34386 return NULL;
34387}
34388
34389
34390SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34391 PyObject *resultobj = 0;
34392 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34393 wxTreeItemId *arg2 = 0 ;
34394 wxFont result;
34395 void *argp1 = 0 ;
34396 int res1 = 0 ;
34397 void *argp2 = 0 ;
34398 int res2 = 0 ;
34399 PyObject * obj0 = 0 ;
34400 PyObject * obj1 = 0 ;
34401 char * kwnames[] = {
34402 (char *) "self",(char *) "item", NULL
34403 };
34404
34405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
34406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34407 if (!SWIG_IsOK(res1)) {
34408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34409 }
34410 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34411 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34412 if (!SWIG_IsOK(res2)) {
34413 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34414 }
34415 if (!argp2) {
34416 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34417 }
34418 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34419 {
34420 PyThreadState* __tstate = wxPyBeginAllowThreads();
34421 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
34422 wxPyEndAllowThreads(__tstate);
34423 if (PyErr_Occurred()) SWIG_fail;
34424 }
34425 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
34426 return resultobj;
34427fail:
34428 return NULL;
34429}
34430
34431
34432SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34433 PyObject *resultobj = 0;
34434 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34435 wxTreeItemId *arg2 = 0 ;
34436 wxString *arg3 = 0 ;
34437 void *argp1 = 0 ;
34438 int res1 = 0 ;
34439 void *argp2 = 0 ;
34440 int res2 = 0 ;
34441 bool temp3 = false ;
34442 PyObject * obj0 = 0 ;
34443 PyObject * obj1 = 0 ;
34444 PyObject * obj2 = 0 ;
34445 char * kwnames[] = {
34446 (char *) "self",(char *) "item",(char *) "text", NULL
34447 };
34448
34449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34451 if (!SWIG_IsOK(res1)) {
34452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34453 }
34454 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34455 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34456 if (!SWIG_IsOK(res2)) {
34457 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34458 }
34459 if (!argp2) {
34460 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34461 }
34462 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34463 {
34464 arg3 = wxString_in_helper(obj2);
34465 if (arg3 == NULL) SWIG_fail;
34466 temp3 = true;
34467 }
34468 {
34469 PyThreadState* __tstate = wxPyBeginAllowThreads();
34470 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
34471 wxPyEndAllowThreads(__tstate);
34472 if (PyErr_Occurred()) SWIG_fail;
34473 }
34474 resultobj = SWIG_Py_Void();
34475 {
34476 if (temp3)
34477 delete arg3;
34478 }
34479 return resultobj;
34480fail:
34481 {
34482 if (temp3)
34483 delete arg3;
34484 }
34485 return NULL;
34486}
34487
34488
34489SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34490 PyObject *resultobj = 0;
34491 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34492 wxTreeItemId *arg2 = 0 ;
34493 int arg3 ;
34494 wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34495 void *argp1 = 0 ;
34496 int res1 = 0 ;
34497 void *argp2 = 0 ;
34498 int res2 = 0 ;
34499 int val3 ;
34500 int ecode3 = 0 ;
34501 int val4 ;
34502 int ecode4 = 0 ;
34503 PyObject * obj0 = 0 ;
34504 PyObject * obj1 = 0 ;
34505 PyObject * obj2 = 0 ;
34506 PyObject * obj3 = 0 ;
34507 char * kwnames[] = {
34508 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
34509 };
34510
34511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34513 if (!SWIG_IsOK(res1)) {
34514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34515 }
34516 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34517 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34518 if (!SWIG_IsOK(res2)) {
34519 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34520 }
34521 if (!argp2) {
34522 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34523 }
34524 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34525 ecode3 = SWIG_AsVal_int(obj2, &val3);
34526 if (!SWIG_IsOK(ecode3)) {
34527 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
34528 }
34529 arg3 = static_cast< int >(val3);
34530 if (obj3) {
34531 ecode4 = SWIG_AsVal_int(obj3, &val4);
34532 if (!SWIG_IsOK(ecode4)) {
34533 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "4"" of type '" "wxTreeItemIcon""'");
34534 }
34535 arg4 = static_cast< wxTreeItemIcon >(val4);
34536 }
34537 {
34538 PyThreadState* __tstate = wxPyBeginAllowThreads();
34539 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,arg4);
34540 wxPyEndAllowThreads(__tstate);
34541 if (PyErr_Occurred()) SWIG_fail;
34542 }
34543 resultobj = SWIG_Py_Void();
34544 return resultobj;
34545fail:
34546 return NULL;
34547}
34548
34549
34550SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34551 PyObject *resultobj = 0;
34552 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34553 wxTreeItemId *arg2 = 0 ;
34554 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
34555 void *argp1 = 0 ;
34556 int res1 = 0 ;
34557 void *argp2 = 0 ;
34558 int res2 = 0 ;
34559 int res3 = 0 ;
34560 PyObject * obj0 = 0 ;
34561 PyObject * obj1 = 0 ;
34562 PyObject * obj2 = 0 ;
34563 char * kwnames[] = {
34564 (char *) "self",(char *) "item",(char *) "data", NULL
34565 };
34566
34567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34568 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34569 if (!SWIG_IsOK(res1)) {
34570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34571 }
34572 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34573 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34574 if (!SWIG_IsOK(res2)) {
34575 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34576 }
34577 if (!argp2) {
34578 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34579 }
34580 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34581 res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
34582 if (!SWIG_IsOK(res3)) {
34583 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemData" "', expected argument " "3"" of type '" "wxPyTreeItemData *""'");
34584 }
34585 {
34586 PyThreadState* __tstate = wxPyBeginAllowThreads();
34587 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
34588 wxPyEndAllowThreads(__tstate);
34589 if (PyErr_Occurred()) SWIG_fail;
34590 }
34591 resultobj = SWIG_Py_Void();
34592 return resultobj;
34593fail:
34594 return NULL;
34595}
34596
34597
34598SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34599 PyObject *resultobj = 0;
34600 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34601 wxTreeItemId *arg2 = 0 ;
34602 PyObject *arg3 = (PyObject *) 0 ;
34603 void *argp1 = 0 ;
34604 int res1 = 0 ;
34605 void *argp2 = 0 ;
34606 int res2 = 0 ;
34607 PyObject * obj0 = 0 ;
34608 PyObject * obj1 = 0 ;
34609 PyObject * obj2 = 0 ;
34610 char * kwnames[] = {
34611 (char *) "self",(char *) "item",(char *) "obj", NULL
34612 };
34613
34614 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34616 if (!SWIG_IsOK(res1)) {
34617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34618 }
34619 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34620 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34621 if (!SWIG_IsOK(res2)) {
34622 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34623 }
34624 if (!argp2) {
34625 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34626 }
34627 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34628 arg3 = obj2;
34629 {
34630 PyThreadState* __tstate = wxPyBeginAllowThreads();
34631 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
34632 wxPyEndAllowThreads(__tstate);
34633 if (PyErr_Occurred()) SWIG_fail;
34634 }
34635 resultobj = SWIG_Py_Void();
34636 return resultobj;
34637fail:
34638 return NULL;
34639}
34640
34641
34642SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34643 PyObject *resultobj = 0;
34644 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34645 wxTreeItemId *arg2 = 0 ;
34646 bool arg3 = (bool) true ;
34647 void *argp1 = 0 ;
34648 int res1 = 0 ;
34649 void *argp2 = 0 ;
34650 int res2 = 0 ;
34651 bool val3 ;
34652 int ecode3 = 0 ;
34653 PyObject * obj0 = 0 ;
34654 PyObject * obj1 = 0 ;
34655 PyObject * obj2 = 0 ;
34656 char * kwnames[] = {
34657 (char *) "self",(char *) "item",(char *) "has", NULL
34658 };
34659
34660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34662 if (!SWIG_IsOK(res1)) {
34663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34664 }
34665 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34666 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34667 if (!SWIG_IsOK(res2)) {
34668 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34669 }
34670 if (!argp2) {
34671 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34672 }
34673 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34674 if (obj2) {
34675 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34676 if (!SWIG_IsOK(ecode3)) {
34677 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "3"" of type '" "bool""'");
34678 }
34679 arg3 = static_cast< bool >(val3);
34680 }
34681 {
34682 PyThreadState* __tstate = wxPyBeginAllowThreads();
34683 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
34684 wxPyEndAllowThreads(__tstate);
34685 if (PyErr_Occurred()) SWIG_fail;
34686 }
34687 resultobj = SWIG_Py_Void();
34688 return resultobj;
34689fail:
34690 return NULL;
34691}
34692
34693
34694SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34695 PyObject *resultobj = 0;
34696 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34697 wxTreeItemId *arg2 = 0 ;
34698 bool arg3 = (bool) true ;
34699 void *argp1 = 0 ;
34700 int res1 = 0 ;
34701 void *argp2 = 0 ;
34702 int res2 = 0 ;
34703 bool val3 ;
34704 int ecode3 = 0 ;
34705 PyObject * obj0 = 0 ;
34706 PyObject * obj1 = 0 ;
34707 PyObject * obj2 = 0 ;
34708 char * kwnames[] = {
34709 (char *) "self",(char *) "item",(char *) "bold", NULL
34710 };
34711
34712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34714 if (!SWIG_IsOK(res1)) {
34715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34716 }
34717 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34718 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34719 if (!SWIG_IsOK(res2)) {
34720 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34721 }
34722 if (!argp2) {
34723 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34724 }
34725 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34726 if (obj2) {
34727 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34728 if (!SWIG_IsOK(ecode3)) {
34729 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "3"" of type '" "bool""'");
34730 }
34731 arg3 = static_cast< bool >(val3);
34732 }
34733 {
34734 PyThreadState* __tstate = wxPyBeginAllowThreads();
34735 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
34736 wxPyEndAllowThreads(__tstate);
34737 if (PyErr_Occurred()) SWIG_fail;
34738 }
34739 resultobj = SWIG_Py_Void();
34740 return resultobj;
34741fail:
34742 return NULL;
34743}
34744
34745
34746SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34747 PyObject *resultobj = 0;
34748 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34749 wxTreeItemId *arg2 = 0 ;
34750 bool arg3 = (bool) true ;
34751 void *argp1 = 0 ;
34752 int res1 = 0 ;
34753 void *argp2 = 0 ;
34754 int res2 = 0 ;
34755 bool val3 ;
34756 int ecode3 = 0 ;
34757 PyObject * obj0 = 0 ;
34758 PyObject * obj1 = 0 ;
34759 PyObject * obj2 = 0 ;
34760 char * kwnames[] = {
34761 (char *) "self",(char *) "item",(char *) "highlight", NULL
34762 };
34763
34764 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34765 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34766 if (!SWIG_IsOK(res1)) {
34767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34768 }
34769 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34770 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34771 if (!SWIG_IsOK(res2)) {
34772 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34773 }
34774 if (!argp2) {
34775 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34776 }
34777 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34778 if (obj2) {
34779 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34780 if (!SWIG_IsOK(ecode3)) {
34781 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "3"" of type '" "bool""'");
34782 }
34783 arg3 = static_cast< bool >(val3);
34784 }
34785 {
34786 PyThreadState* __tstate = wxPyBeginAllowThreads();
34787 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
34788 wxPyEndAllowThreads(__tstate);
34789 if (PyErr_Occurred()) SWIG_fail;
34790 }
34791 resultobj = SWIG_Py_Void();
34792 return resultobj;
34793fail:
34794 return NULL;
34795}
34796
34797
34798SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34799 PyObject *resultobj = 0;
34800 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34801 wxTreeItemId *arg2 = 0 ;
34802 wxColour *arg3 = 0 ;
34803 void *argp1 = 0 ;
34804 int res1 = 0 ;
34805 void *argp2 = 0 ;
34806 int res2 = 0 ;
34807 wxColour temp3 ;
34808 PyObject * obj0 = 0 ;
34809 PyObject * obj1 = 0 ;
34810 PyObject * obj2 = 0 ;
34811 char * kwnames[] = {
34812 (char *) "self",(char *) "item",(char *) "col", NULL
34813 };
34814
34815 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34816 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34817 if (!SWIG_IsOK(res1)) {
34818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34819 }
34820 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34821 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34822 if (!SWIG_IsOK(res2)) {
34823 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34824 }
34825 if (!argp2) {
34826 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34827 }
34828 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34829 {
34830 arg3 = &temp3;
34831 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34832 }
34833 {
34834 PyThreadState* __tstate = wxPyBeginAllowThreads();
34835 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
34836 wxPyEndAllowThreads(__tstate);
34837 if (PyErr_Occurred()) SWIG_fail;
34838 }
34839 resultobj = SWIG_Py_Void();
34840 return resultobj;
34841fail:
34842 return NULL;
34843}
34844
34845
34846SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34847 PyObject *resultobj = 0;
34848 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34849 wxTreeItemId *arg2 = 0 ;
34850 wxColour *arg3 = 0 ;
34851 void *argp1 = 0 ;
34852 int res1 = 0 ;
34853 void *argp2 = 0 ;
34854 int res2 = 0 ;
34855 wxColour temp3 ;
34856 PyObject * obj0 = 0 ;
34857 PyObject * obj1 = 0 ;
34858 PyObject * obj2 = 0 ;
34859 char * kwnames[] = {
34860 (char *) "self",(char *) "item",(char *) "col", NULL
34861 };
34862
34863 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34864 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34865 if (!SWIG_IsOK(res1)) {
34866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34867 }
34868 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34869 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34870 if (!SWIG_IsOK(res2)) {
34871 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34872 }
34873 if (!argp2) {
34874 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34875 }
34876 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34877 {
34878 arg3 = &temp3;
34879 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34880 }
34881 {
34882 PyThreadState* __tstate = wxPyBeginAllowThreads();
34883 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
34884 wxPyEndAllowThreads(__tstate);
34885 if (PyErr_Occurred()) SWIG_fail;
34886 }
34887 resultobj = SWIG_Py_Void();
34888 return resultobj;
34889fail:
34890 return NULL;
34891}
34892
34893
34894SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34895 PyObject *resultobj = 0;
34896 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34897 wxTreeItemId *arg2 = 0 ;
34898 wxFont *arg3 = 0 ;
34899 void *argp1 = 0 ;
34900 int res1 = 0 ;
34901 void *argp2 = 0 ;
34902 int res2 = 0 ;
34903 void *argp3 = 0 ;
34904 int res3 = 0 ;
34905 PyObject * obj0 = 0 ;
34906 PyObject * obj1 = 0 ;
34907 PyObject * obj2 = 0 ;
34908 char * kwnames[] = {
34909 (char *) "self",(char *) "item",(char *) "font", NULL
34910 };
34911
34912 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34913 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34914 if (!SWIG_IsOK(res1)) {
34915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34916 }
34917 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34918 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34919 if (!SWIG_IsOK(res2)) {
34920 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34921 }
34922 if (!argp2) {
34923 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34924 }
34925 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34926 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
34927 if (!SWIG_IsOK(res3)) {
34928 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
34929 }
34930 if (!argp3) {
34931 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
34932 }
34933 arg3 = reinterpret_cast< wxFont * >(argp3);
34934 {
34935 PyThreadState* __tstate = wxPyBeginAllowThreads();
34936 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
34937 wxPyEndAllowThreads(__tstate);
34938 if (PyErr_Occurred()) SWIG_fail;
34939 }
34940 resultobj = SWIG_Py_Void();
34941 return resultobj;
34942fail:
34943 return NULL;
34944}
34945
34946
34947SWIGINTERN PyObject *_wrap_TreeCtrl_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34948 PyObject *resultobj = 0;
34949 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34950 wxTreeItemId *arg2 = 0 ;
34951 bool result;
34952 void *argp1 = 0 ;
34953 int res1 = 0 ;
34954 void *argp2 = 0 ;
34955 int res2 = 0 ;
34956 PyObject * obj0 = 0 ;
34957 PyObject * obj1 = 0 ;
34958 char * kwnames[] = {
34959 (char *) "self",(char *) "item", NULL
34960 };
34961
34962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail;
34963 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34964 if (!SWIG_IsOK(res1)) {
34965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34966 }
34967 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34968 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34969 if (!SWIG_IsOK(res2)) {
34970 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34971 }
34972 if (!argp2) {
34973 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34974 }
34975 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34976 {
34977 PyThreadState* __tstate = wxPyBeginAllowThreads();
34978 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
34979 wxPyEndAllowThreads(__tstate);
34980 if (PyErr_Occurred()) SWIG_fail;
34981 }
34982 {
34983 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34984 }
34985 return resultobj;
34986fail:
34987 return NULL;
34988}
34989
34990
34991SWIGINTERN PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34992 PyObject *resultobj = 0;
34993 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34994 wxTreeItemId *arg2 = 0 ;
34995 bool result;
34996 void *argp1 = 0 ;
34997 int res1 = 0 ;
34998 void *argp2 = 0 ;
34999 int res2 = 0 ;
35000 PyObject * obj0 = 0 ;
35001 PyObject * obj1 = 0 ;
35002 char * kwnames[] = {
35003 (char *) "self",(char *) "item", NULL
35004 };
35005
35006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) SWIG_fail;
35007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35008 if (!SWIG_IsOK(res1)) {
35009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35010 }
35011 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35012 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35013 if (!SWIG_IsOK(res2)) {
35014 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35015 }
35016 if (!argp2) {
35017 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35018 }
35019 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35020 {
35021 PyThreadState* __tstate = wxPyBeginAllowThreads();
35022 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
35023 wxPyEndAllowThreads(__tstate);
35024 if (PyErr_Occurred()) SWIG_fail;
35025 }
35026 {
35027 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35028 }
35029 return resultobj;
35030fail:
35031 return NULL;
35032}
35033
35034
35035SWIGINTERN PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35036 PyObject *resultobj = 0;
35037 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35038 wxTreeItemId *arg2 = 0 ;
35039 bool result;
35040 void *argp1 = 0 ;
35041 int res1 = 0 ;
35042 void *argp2 = 0 ;
35043 int res2 = 0 ;
35044 PyObject * obj0 = 0 ;
35045 PyObject * obj1 = 0 ;
35046 char * kwnames[] = {
35047 (char *) "self",(char *) "item", NULL
35048 };
35049
35050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
35051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35052 if (!SWIG_IsOK(res1)) {
35053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35054 }
35055 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35056 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35057 if (!SWIG_IsOK(res2)) {
35058 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35059 }
35060 if (!argp2) {
35061 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35062 }
35063 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35064 {
35065 PyThreadState* __tstate = wxPyBeginAllowThreads();
35066 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
35067 wxPyEndAllowThreads(__tstate);
35068 if (PyErr_Occurred()) SWIG_fail;
35069 }
35070 {
35071 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35072 }
35073 return resultobj;
35074fail:
35075 return NULL;
35076}
35077
35078
35079SWIGINTERN PyObject *_wrap_TreeCtrl_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35080 PyObject *resultobj = 0;
35081 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35082 wxTreeItemId *arg2 = 0 ;
35083 bool result;
35084 void *argp1 = 0 ;
35085 int res1 = 0 ;
35086 void *argp2 = 0 ;
35087 int res2 = 0 ;
35088 PyObject * obj0 = 0 ;
35089 PyObject * obj1 = 0 ;
35090 char * kwnames[] = {
35091 (char *) "self",(char *) "item", NULL
35092 };
35093
35094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
35095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35096 if (!SWIG_IsOK(res1)) {
35097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsSelected" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35098 }
35099 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35100 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35101 if (!SWIG_IsOK(res2)) {
35102 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35103 }
35104 if (!argp2) {
35105 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35106 }
35107 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35108 {
35109 PyThreadState* __tstate = wxPyBeginAllowThreads();
35110 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
35111 wxPyEndAllowThreads(__tstate);
35112 if (PyErr_Occurred()) SWIG_fail;
35113 }
35114 {
35115 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35116 }
35117 return resultobj;
35118fail:
35119 return NULL;
35120}
35121
35122
35123SWIGINTERN PyObject *_wrap_TreeCtrl_IsBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35124 PyObject *resultobj = 0;
35125 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35126 wxTreeItemId *arg2 = 0 ;
35127 bool result;
35128 void *argp1 = 0 ;
35129 int res1 = 0 ;
35130 void *argp2 = 0 ;
35131 int res2 = 0 ;
35132 PyObject * obj0 = 0 ;
35133 PyObject * obj1 = 0 ;
35134 char * kwnames[] = {
35135 (char *) "self",(char *) "item", NULL
35136 };
35137
35138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) SWIG_fail;
35139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35140 if (!SWIG_IsOK(res1)) {
35141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35142 }
35143 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35144 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35145 if (!SWIG_IsOK(res2)) {
35146 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35147 }
35148 if (!argp2) {
35149 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35150 }
35151 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35152 {
35153 PyThreadState* __tstate = wxPyBeginAllowThreads();
35154 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
35155 wxPyEndAllowThreads(__tstate);
35156 if (PyErr_Occurred()) SWIG_fail;
35157 }
35158 {
35159 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35160 }
35161 return resultobj;
35162fail:
35163 return NULL;
35164}
35165
35166
35167SWIGINTERN PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35168 PyObject *resultobj = 0;
35169 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35170 wxTreeItemId *arg2 = 0 ;
35171 bool arg3 = (bool) true ;
35172 size_t result;
35173 void *argp1 = 0 ;
35174 int res1 = 0 ;
35175 void *argp2 = 0 ;
35176 int res2 = 0 ;
35177 bool val3 ;
35178 int ecode3 = 0 ;
35179 PyObject * obj0 = 0 ;
35180 PyObject * obj1 = 0 ;
35181 PyObject * obj2 = 0 ;
35182 char * kwnames[] = {
35183 (char *) "self",(char *) "item",(char *) "recursively", NULL
35184 };
35185
35186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35187 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35188 if (!SWIG_IsOK(res1)) {
35189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35190 }
35191 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35192 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35193 if (!SWIG_IsOK(res2)) {
35194 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35195 }
35196 if (!argp2) {
35197 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35198 }
35199 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35200 if (obj2) {
35201 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35202 if (!SWIG_IsOK(ecode3)) {
35203 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "3"" of type '" "bool""'");
35204 }
35205 arg3 = static_cast< bool >(val3);
35206 }
35207 {
35208 PyThreadState* __tstate = wxPyBeginAllowThreads();
35209 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
35210 wxPyEndAllowThreads(__tstate);
35211 if (PyErr_Occurred()) SWIG_fail;
35212 }
35213 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
35214 return resultobj;
35215fail:
35216 return NULL;
d55e5bfc
RD
35217}
35218
35219
1bd55598
RD
35220SWIGINTERN PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35221 PyObject *resultobj = 0;
35222 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35223 wxTreeItemId result;
35224 void *argp1 = 0 ;
35225 int res1 = 0 ;
35226 PyObject *swig_obj[1] ;
35227
35228 if (!args) SWIG_fail;
35229 swig_obj[0] = args;
35230 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35231 if (!SWIG_IsOK(res1)) {
35232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetRootItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35233 }
35234 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35235 {
35236 PyThreadState* __tstate = wxPyBeginAllowThreads();
35237 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
35238 wxPyEndAllowThreads(__tstate);
35239 if (PyErr_Occurred()) SWIG_fail;
35240 }
35241 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35242 return resultobj;
35243fail:
35244 return NULL;
d55e5bfc
RD
35245}
35246
35247
1bd55598
RD
35248SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35249 PyObject *resultobj = 0;
35250 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35251 wxTreeItemId result;
35252 void *argp1 = 0 ;
35253 int res1 = 0 ;
35254 PyObject *swig_obj[1] ;
35255
35256 if (!args) SWIG_fail;
35257 swig_obj[0] = args;
35258 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35259 if (!SWIG_IsOK(res1)) {
35260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35261 }
35262 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35263 {
35264 PyThreadState* __tstate = wxPyBeginAllowThreads();
35265 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
35266 wxPyEndAllowThreads(__tstate);
35267 if (PyErr_Occurred()) SWIG_fail;
35268 }
35269 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35270 return resultobj;
35271fail:
35272 return NULL;
d55e5bfc
RD
35273}
35274
35275
1bd55598
RD
35276SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35277 PyObject *resultobj = 0;
35278 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35279 PyObject *result = 0 ;
35280 void *argp1 = 0 ;
35281 int res1 = 0 ;
35282 PyObject *swig_obj[1] ;
35283
35284 if (!args) SWIG_fail;
35285 swig_obj[0] = args;
35286 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35287 if (!SWIG_IsOK(res1)) {
35288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelections" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35289 }
35290 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35291 {
35292 PyThreadState* __tstate = wxPyBeginAllowThreads();
35293 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
35294 wxPyEndAllowThreads(__tstate);
35295 if (PyErr_Occurred()) SWIG_fail;
35296 }
35297 resultobj = result;
35298 return resultobj;
35299fail:
35300 return NULL;
35301}
35302
35303
35304SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35305 PyObject *resultobj = 0;
35306 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35307 wxTreeItemId *arg2 = 0 ;
35308 wxTreeItemId result;
35309 void *argp1 = 0 ;
35310 int res1 = 0 ;
35311 void *argp2 = 0 ;
35312 int res2 = 0 ;
35313 PyObject * obj0 = 0 ;
35314 PyObject * obj1 = 0 ;
35315 char * kwnames[] = {
35316 (char *) "self",(char *) "item", NULL
35317 };
35318
35319 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) SWIG_fail;
35320 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35321 if (!SWIG_IsOK(res1)) {
35322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35323 }
35324 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35325 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35326 if (!SWIG_IsOK(res2)) {
35327 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35328 }
35329 if (!argp2) {
35330 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35331 }
35332 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35333 {
35334 PyThreadState* __tstate = wxPyBeginAllowThreads();
35335 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
35336 wxPyEndAllowThreads(__tstate);
35337 if (PyErr_Occurred()) SWIG_fail;
35338 }
35339 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35340 return resultobj;
35341fail:
35342 return NULL;
35343}
35344
35345
35346SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35347 PyObject *resultobj = 0;
35348 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35349 wxTreeItemId *arg2 = 0 ;
35350 PyObject *result = 0 ;
35351 void *argp1 = 0 ;
35352 int res1 = 0 ;
35353 void *argp2 = 0 ;
35354 int res2 = 0 ;
35355 PyObject * obj0 = 0 ;
35356 PyObject * obj1 = 0 ;
35357 char * kwnames[] = {
35358 (char *) "self",(char *) "item", NULL
35359 };
35360
35361 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) SWIG_fail;
35362 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35363 if (!SWIG_IsOK(res1)) {
35364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35365 }
35366 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35367 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35368 if (!SWIG_IsOK(res2)) {
35369 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35370 }
35371 if (!argp2) {
35372 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35373 }
35374 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35375 {
35376 PyThreadState* __tstate = wxPyBeginAllowThreads();
35377 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
35378 wxPyEndAllowThreads(__tstate);
35379 if (PyErr_Occurred()) SWIG_fail;
35380 }
35381 resultobj = result;
35382 return resultobj;
35383fail:
35384 return NULL;
35385}
35386
35387
35388SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35389 PyObject *resultobj = 0;
35390 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35391 wxTreeItemId *arg2 = 0 ;
35392 void *arg3 = (void *) 0 ;
35393 PyObject *result = 0 ;
35394 void *argp1 = 0 ;
35395 int res1 = 0 ;
35396 void *argp2 = 0 ;
35397 int res2 = 0 ;
35398 int res3 ;
35399 PyObject * obj0 = 0 ;
35400 PyObject * obj1 = 0 ;
35401 PyObject * obj2 = 0 ;
35402 char * kwnames[] = {
35403 (char *) "self",(char *) "item",(char *) "cookie", NULL
35404 };
35405
35406 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35407 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35408 if (!SWIG_IsOK(res1)) {
35409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35410 }
35411 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35412 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35413 if (!SWIG_IsOK(res2)) {
35414 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35415 }
35416 if (!argp2) {
35417 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35418 }
35419 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35420 res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
35421 if (!SWIG_IsOK(res3)) {
35422 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "3"" of type '" "void *""'");
35423 }
35424 {
35425 PyThreadState* __tstate = wxPyBeginAllowThreads();
35426 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
35427 wxPyEndAllowThreads(__tstate);
35428 if (PyErr_Occurred()) SWIG_fail;
35429 }
35430 resultobj = result;
35431 return resultobj;
35432fail:
35433 return NULL;
35434}
35435
35436
35437SWIGINTERN PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35438 PyObject *resultobj = 0;
35439 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35440 wxTreeItemId *arg2 = 0 ;
35441 wxTreeItemId result;
35442 void *argp1 = 0 ;
35443 int res1 = 0 ;
35444 void *argp2 = 0 ;
35445 int res2 = 0 ;
35446 PyObject * obj0 = 0 ;
35447 PyObject * obj1 = 0 ;
35448 char * kwnames[] = {
35449 (char *) "self",(char *) "item", NULL
35450 };
35451
35452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) SWIG_fail;
35453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35454 if (!SWIG_IsOK(res1)) {
35455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35456 }
35457 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35458 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35459 if (!SWIG_IsOK(res2)) {
35460 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35461 }
35462 if (!argp2) {
35463 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35464 }
35465 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35466 {
35467 PyThreadState* __tstate = wxPyBeginAllowThreads();
35468 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
35469 wxPyEndAllowThreads(__tstate);
35470 if (PyErr_Occurred()) SWIG_fail;
35471 }
35472 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35473 return resultobj;
35474fail:
35475 return NULL;
35476}
35477
35478
35479SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35480 PyObject *resultobj = 0;
35481 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35482 wxTreeItemId *arg2 = 0 ;
35483 wxTreeItemId result;
35484 void *argp1 = 0 ;
35485 int res1 = 0 ;
35486 void *argp2 = 0 ;
35487 int res2 = 0 ;
35488 PyObject * obj0 = 0 ;
35489 PyObject * obj1 = 0 ;
35490 char * kwnames[] = {
35491 (char *) "self",(char *) "item", NULL
35492 };
35493
35494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35496 if (!SWIG_IsOK(res1)) {
35497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35498 }
35499 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35500 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35501 if (!SWIG_IsOK(res2)) {
35502 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35503 }
35504 if (!argp2) {
35505 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35506 }
35507 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35508 {
35509 PyThreadState* __tstate = wxPyBeginAllowThreads();
35510 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
35511 wxPyEndAllowThreads(__tstate);
35512 if (PyErr_Occurred()) SWIG_fail;
35513 }
35514 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35515 return resultobj;
35516fail:
35517 return NULL;
35518}
35519
35520
35521SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35522 PyObject *resultobj = 0;
35523 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35524 wxTreeItemId *arg2 = 0 ;
35525 wxTreeItemId result;
35526 void *argp1 = 0 ;
35527 int res1 = 0 ;
35528 void *argp2 = 0 ;
35529 int res2 = 0 ;
35530 PyObject * obj0 = 0 ;
35531 PyObject * obj1 = 0 ;
35532 char * kwnames[] = {
35533 (char *) "self",(char *) "item", NULL
35534 };
35535
35536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35538 if (!SWIG_IsOK(res1)) {
35539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35540 }
35541 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35542 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35543 if (!SWIG_IsOK(res2)) {
35544 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35545 }
35546 if (!argp2) {
35547 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35548 }
35549 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35550 {
35551 PyThreadState* __tstate = wxPyBeginAllowThreads();
35552 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
35553 wxPyEndAllowThreads(__tstate);
35554 if (PyErr_Occurred()) SWIG_fail;
35555 }
35556 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35557 return resultobj;
35558fail:
35559 return NULL;
d55e5bfc
RD
35560}
35561
35562
1bd55598
RD
35563SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35564 PyObject *resultobj = 0;
35565 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35566 wxTreeItemId result;
35567 void *argp1 = 0 ;
35568 int res1 = 0 ;
35569 PyObject *swig_obj[1] ;
35570
35571 if (!args) SWIG_fail;
35572 swig_obj[0] = args;
35573 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35574 if (!SWIG_IsOK(res1)) {
35575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstVisibleItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35576 }
35577 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35578 {
35579 PyThreadState* __tstate = wxPyBeginAllowThreads();
35580 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
35581 wxPyEndAllowThreads(__tstate);
35582 if (PyErr_Occurred()) SWIG_fail;
35583 }
35584 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35585 return resultobj;
35586fail:
35587 return NULL;
35588}
35589
35590
35591SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35592 PyObject *resultobj = 0;
35593 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35594 wxTreeItemId *arg2 = 0 ;
35595 wxTreeItemId result;
35596 void *argp1 = 0 ;
35597 int res1 = 0 ;
35598 void *argp2 = 0 ;
35599 int res2 = 0 ;
35600 PyObject * obj0 = 0 ;
35601 PyObject * obj1 = 0 ;
35602 char * kwnames[] = {
35603 (char *) "self",(char *) "item", NULL
35604 };
35605
35606 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35607 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35608 if (!SWIG_IsOK(res1)) {
35609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35610 }
35611 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35612 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35613 if (!SWIG_IsOK(res2)) {
35614 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35615 }
35616 if (!argp2) {
35617 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35618 }
35619 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35620 {
35621 PyThreadState* __tstate = wxPyBeginAllowThreads();
35622 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
35623 wxPyEndAllowThreads(__tstate);
35624 if (PyErr_Occurred()) SWIG_fail;
35625 }
35626 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35627 return resultobj;
35628fail:
35629 return NULL;
35630}
35631
35632
35633SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35634 PyObject *resultobj = 0;
35635 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35636 wxTreeItemId *arg2 = 0 ;
35637 wxTreeItemId result;
35638 void *argp1 = 0 ;
35639 int res1 = 0 ;
35640 void *argp2 = 0 ;
35641 int res2 = 0 ;
35642 PyObject * obj0 = 0 ;
35643 PyObject * obj1 = 0 ;
35644 char * kwnames[] = {
35645 (char *) "self",(char *) "item", NULL
35646 };
35647
35648 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35649 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35650 if (!SWIG_IsOK(res1)) {
35651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35652 }
35653 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35654 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35655 if (!SWIG_IsOK(res2)) {
35656 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35657 }
35658 if (!argp2) {
35659 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35660 }
35661 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35662 {
35663 PyThreadState* __tstate = wxPyBeginAllowThreads();
35664 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
35665 wxPyEndAllowThreads(__tstate);
35666 if (PyErr_Occurred()) SWIG_fail;
35667 }
35668 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35669 return resultobj;
35670fail:
35671 return NULL;
35672}
35673
35674
35675SWIGINTERN PyObject *_wrap_TreeCtrl_AddRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35676 PyObject *resultobj = 0;
35677 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35678 wxString *arg2 = 0 ;
35679 int arg3 = (int) -1 ;
35680 int arg4 = (int) -1 ;
35681 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
35682 wxTreeItemId result;
35683 void *argp1 = 0 ;
35684 int res1 = 0 ;
35685 bool temp2 = false ;
35686 int val3 ;
35687 int ecode3 = 0 ;
35688 int val4 ;
35689 int ecode4 = 0 ;
35690 int res5 = 0 ;
35691 PyObject * obj0 = 0 ;
35692 PyObject * obj1 = 0 ;
35693 PyObject * obj2 = 0 ;
35694 PyObject * obj3 = 0 ;
35695 PyObject * obj4 = 0 ;
35696 char * kwnames[] = {
35697 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35698 };
35699
35700 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35701 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35702 if (!SWIG_IsOK(res1)) {
35703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AddRoot" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35704 }
35705 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35706 {
35707 arg2 = wxString_in_helper(obj1);
35708 if (arg2 == NULL) SWIG_fail;
35709 temp2 = true;
35710 }
35711 if (obj2) {
35712 ecode3 = SWIG_AsVal_int(obj2, &val3);
35713 if (!SWIG_IsOK(ecode3)) {
35714 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_AddRoot" "', expected argument " "3"" of type '" "int""'");
35715 }
35716 arg3 = static_cast< int >(val3);
35717 }
35718 if (obj3) {
35719 ecode4 = SWIG_AsVal_int(obj3, &val4);
35720 if (!SWIG_IsOK(ecode4)) {
35721 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AddRoot" "', expected argument " "4"" of type '" "int""'");
35722 }
35723 arg4 = static_cast< int >(val4);
35724 }
35725 if (obj4) {
35726 res5 = SWIG_ConvertPtr(obj4, SWIG_as_voidptrptr(&arg5), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35727 if (!SWIG_IsOK(res5)) {
35728 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "TreeCtrl_AddRoot" "', expected argument " "5"" of type '" "wxPyTreeItemData *""'");
36ed4f51 35729 }
1bd55598
RD
35730 }
35731 {
35732 PyThreadState* __tstate = wxPyBeginAllowThreads();
35733 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
35734 wxPyEndAllowThreads(__tstate);
35735 if (PyErr_Occurred()) SWIG_fail;
35736 }
35737 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35738 {
35739 if (temp2)
35740 delete arg2;
35741 }
35742 return resultobj;
35743fail:
35744 {
35745 if (temp2)
35746 delete arg2;
35747 }
35748 return NULL;
35749}
35750
35751
35752SWIGINTERN PyObject *_wrap_TreeCtrl_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35753 PyObject *resultobj = 0;
35754 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35755 wxTreeItemId *arg2 = 0 ;
35756 wxString *arg3 = 0 ;
35757 int arg4 = (int) -1 ;
35758 int arg5 = (int) -1 ;
35759 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
35760 wxTreeItemId result;
35761 void *argp1 = 0 ;
35762 int res1 = 0 ;
35763 void *argp2 = 0 ;
35764 int res2 = 0 ;
35765 bool temp3 = false ;
35766 int val4 ;
35767 int ecode4 = 0 ;
35768 int val5 ;
35769 int ecode5 = 0 ;
35770 int res6 = 0 ;
35771 PyObject * obj0 = 0 ;
35772 PyObject * obj1 = 0 ;
35773 PyObject * obj2 = 0 ;
35774 PyObject * obj3 = 0 ;
35775 PyObject * obj4 = 0 ;
35776 PyObject * obj5 = 0 ;
35777 char * kwnames[] = {
35778 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35779 };
35780
35781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
35782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35783 if (!SWIG_IsOK(res1)) {
35784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_PrependItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35785 }
35786 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35787 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35788 if (!SWIG_IsOK(res2)) {
35789 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35790 }
35791 if (!argp2) {
35792 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35793 }
35794 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35795 {
35796 arg3 = wxString_in_helper(obj2);
35797 if (arg3 == NULL) SWIG_fail;
35798 temp3 = true;
35799 }
35800 if (obj3) {
35801 ecode4 = SWIG_AsVal_int(obj3, &val4);
35802 if (!SWIG_IsOK(ecode4)) {
35803 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_PrependItem" "', expected argument " "4"" of type '" "int""'");
35804 }
35805 arg4 = static_cast< int >(val4);
35806 }
35807 if (obj4) {
35808 ecode5 = SWIG_AsVal_int(obj4, &val5);
35809 if (!SWIG_IsOK(ecode5)) {
35810 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_PrependItem" "', expected argument " "5"" of type '" "int""'");
35811 }
35812 arg5 = static_cast< int >(val5);
35813 }
35814 if (obj5) {
35815 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35816 if (!SWIG_IsOK(res6)) {
35817 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_PrependItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
d55e5bfc 35818 }
1bd55598
RD
35819 }
35820 {
35821 PyThreadState* __tstate = wxPyBeginAllowThreads();
35822 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
35823 wxPyEndAllowThreads(__tstate);
35824 if (PyErr_Occurred()) SWIG_fail;
35825 }
35826 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35827 {
35828 if (temp3)
35829 delete arg3;
35830 }
35831 return resultobj;
35832fail:
35833 {
35834 if (temp3)
35835 delete arg3;
35836 }
35837 return NULL;
35838}
35839
35840
35841SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35842 PyObject *resultobj = 0;
35843 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35844 wxTreeItemId *arg2 = 0 ;
35845 wxTreeItemId *arg3 = 0 ;
35846 wxString *arg4 = 0 ;
35847 int arg5 = (int) -1 ;
35848 int arg6 = (int) -1 ;
35849 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
35850 wxTreeItemId result;
35851 void *argp1 = 0 ;
35852 int res1 = 0 ;
35853 void *argp2 = 0 ;
35854 int res2 = 0 ;
35855 void *argp3 = 0 ;
35856 int res3 = 0 ;
35857 bool temp4 = false ;
35858 int val5 ;
35859 int ecode5 = 0 ;
35860 int val6 ;
35861 int ecode6 = 0 ;
35862 int res7 = 0 ;
35863 PyObject * obj0 = 0 ;
35864 PyObject * obj1 = 0 ;
35865 PyObject * obj2 = 0 ;
35866 PyObject * obj3 = 0 ;
35867 PyObject * obj4 = 0 ;
35868 PyObject * obj5 = 0 ;
35869 PyObject * obj6 = 0 ;
35870 char * kwnames[] = {
35871 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35872 };
35873
35874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35876 if (!SWIG_IsOK(res1)) {
35877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35878 }
35879 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35880 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35881 if (!SWIG_IsOK(res2)) {
35882 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35883 }
35884 if (!argp2) {
35885 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35886 }
35887 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35888 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35889 if (!SWIG_IsOK(res3)) {
35890 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
35891 }
35892 if (!argp3) {
35893 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
35894 }
35895 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
35896 {
35897 arg4 = wxString_in_helper(obj3);
35898 if (arg4 == NULL) SWIG_fail;
35899 temp4 = true;
35900 }
35901 if (obj4) {
35902 ecode5 = SWIG_AsVal_int(obj4, &val5);
35903 if (!SWIG_IsOK(ecode5)) {
35904 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItem" "', expected argument " "5"" of type '" "int""'");
35905 }
35906 arg5 = static_cast< int >(val5);
35907 }
35908 if (obj5) {
35909 ecode6 = SWIG_AsVal_int(obj5, &val6);
35910 if (!SWIG_IsOK(ecode6)) {
35911 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItem" "', expected argument " "6"" of type '" "int""'");
35912 }
35913 arg6 = static_cast< int >(val6);
35914 }
35915 if (obj6) {
35916 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35917 if (!SWIG_IsOK(res7)) {
35918 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItem" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
d55e5bfc 35919 }
1bd55598
RD
35920 }
35921 {
35922 PyThreadState* __tstate = wxPyBeginAllowThreads();
35923 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
35924 wxPyEndAllowThreads(__tstate);
35925 if (PyErr_Occurred()) SWIG_fail;
35926 }
35927 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35928 {
35929 if (temp4)
35930 delete arg4;
35931 }
35932 return resultobj;
35933fail:
35934 {
35935 if (temp4)
35936 delete arg4;
35937 }
35938 return NULL;
35939}
35940
35941
35942SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35943 PyObject *resultobj = 0;
35944 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35945 wxTreeItemId *arg2 = 0 ;
35946 size_t arg3 ;
35947 wxString *arg4 = 0 ;
35948 int arg5 = (int) -1 ;
35949 int arg6 = (int) -1 ;
35950 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
35951 wxTreeItemId result;
35952 void *argp1 = 0 ;
35953 int res1 = 0 ;
35954 void *argp2 = 0 ;
35955 int res2 = 0 ;
35956 size_t val3 ;
35957 int ecode3 = 0 ;
35958 bool temp4 = false ;
35959 int val5 ;
35960 int ecode5 = 0 ;
35961 int val6 ;
35962 int ecode6 = 0 ;
35963 int res7 = 0 ;
35964 PyObject * obj0 = 0 ;
35965 PyObject * obj1 = 0 ;
35966 PyObject * obj2 = 0 ;
35967 PyObject * obj3 = 0 ;
35968 PyObject * obj4 = 0 ;
35969 PyObject * obj5 = 0 ;
35970 PyObject * obj6 = 0 ;
35971 char * kwnames[] = {
35972 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35973 };
35974
35975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35977 if (!SWIG_IsOK(res1)) {
35978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35979 }
35980 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35981 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35982 if (!SWIG_IsOK(res2)) {
35983 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35984 }
35985 if (!argp2) {
35986 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35987 }
35988 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35989 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
35990 if (!SWIG_IsOK(ecode3)) {
35991 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "3"" of type '" "size_t""'");
35992 }
35993 arg3 = static_cast< size_t >(val3);
35994 {
35995 arg4 = wxString_in_helper(obj3);
35996 if (arg4 == NULL) SWIG_fail;
35997 temp4 = true;
35998 }
35999 if (obj4) {
36000 ecode5 = SWIG_AsVal_int(obj4, &val5);
36001 if (!SWIG_IsOK(ecode5)) {
36002 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "5"" of type '" "int""'");
36003 }
36004 arg5 = static_cast< int >(val5);
36005 }
36006 if (obj5) {
36007 ecode6 = SWIG_AsVal_int(obj5, &val6);
36008 if (!SWIG_IsOK(ecode6)) {
36009 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "6"" of type '" "int""'");
36010 }
36011 arg6 = static_cast< int >(val6);
36012 }
36013 if (obj6) {
36014 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36015 if (!SWIG_IsOK(res7)) {
36016 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
d55e5bfc 36017 }
1bd55598
RD
36018 }
36019 {
36020 PyThreadState* __tstate = wxPyBeginAllowThreads();
36021 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36022 wxPyEndAllowThreads(__tstate);
36023 if (PyErr_Occurred()) SWIG_fail;
36024 }
36025 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36026 {
36027 if (temp4)
36028 delete arg4;
36029 }
36030 return resultobj;
36031fail:
36032 {
36033 if (temp4)
36034 delete arg4;
36035 }
36036 return NULL;
36037}
36038
36039
36040SWIGINTERN PyObject *_wrap_TreeCtrl_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36041 PyObject *resultobj = 0;
36042 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36043 wxTreeItemId *arg2 = 0 ;
36044 wxString *arg3 = 0 ;
36045 int arg4 = (int) -1 ;
36046 int arg5 = (int) -1 ;
36047 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
36048 wxTreeItemId result;
36049 void *argp1 = 0 ;
36050 int res1 = 0 ;
36051 void *argp2 = 0 ;
36052 int res2 = 0 ;
36053 bool temp3 = false ;
36054 int val4 ;
36055 int ecode4 = 0 ;
36056 int val5 ;
36057 int ecode5 = 0 ;
36058 int res6 = 0 ;
36059 PyObject * obj0 = 0 ;
36060 PyObject * obj1 = 0 ;
36061 PyObject * obj2 = 0 ;
36062 PyObject * obj3 = 0 ;
36063 PyObject * obj4 = 0 ;
36064 PyObject * obj5 = 0 ;
36065 char * kwnames[] = {
36066 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36067 };
36068
36069 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36070 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36071 if (!SWIG_IsOK(res1)) {
36072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AppendItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36073 }
36074 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36075 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36076 if (!SWIG_IsOK(res2)) {
36077 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36078 }
36079 if (!argp2) {
36080 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36081 }
36082 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36083 {
36084 arg3 = wxString_in_helper(obj2);
36085 if (arg3 == NULL) SWIG_fail;
36086 temp3 = true;
36087 }
36088 if (obj3) {
36089 ecode4 = SWIG_AsVal_int(obj3, &val4);
36090 if (!SWIG_IsOK(ecode4)) {
36091 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AppendItem" "', expected argument " "4"" of type '" "int""'");
36092 }
36093 arg4 = static_cast< int >(val4);
36094 }
36095 if (obj4) {
36096 ecode5 = SWIG_AsVal_int(obj4, &val5);
36097 if (!SWIG_IsOK(ecode5)) {
36098 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_AppendItem" "', expected argument " "5"" of type '" "int""'");
36099 }
36100 arg5 = static_cast< int >(val5);
36101 }
36102 if (obj5) {
36103 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36104 if (!SWIG_IsOK(res6)) {
36105 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_AppendItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
d55e5bfc 36106 }
1bd55598
RD
36107 }
36108 {
36109 PyThreadState* __tstate = wxPyBeginAllowThreads();
36110 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
36111 wxPyEndAllowThreads(__tstate);
36112 if (PyErr_Occurred()) SWIG_fail;
36113 }
36114 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36115 {
36116 if (temp3)
36117 delete arg3;
36118 }
36119 return resultobj;
36120fail:
36121 {
36122 if (temp3)
36123 delete arg3;
36124 }
36125 return NULL;
36126}
36127
36128
36129SWIGINTERN PyObject *_wrap_TreeCtrl_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36130 PyObject *resultobj = 0;
36131 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36132 wxTreeItemId *arg2 = 0 ;
36133 void *argp1 = 0 ;
36134 int res1 = 0 ;
36135 void *argp2 = 0 ;
36136 int res2 = 0 ;
36137 PyObject * obj0 = 0 ;
36138 PyObject * obj1 = 0 ;
36139 char * kwnames[] = {
36140 (char *) "self",(char *) "item", NULL
36141 };
36142
36143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) SWIG_fail;
36144 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36145 if (!SWIG_IsOK(res1)) {
36146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Delete" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36147 }
36148 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36149 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36150 if (!SWIG_IsOK(res2)) {
36151 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36152 }
36153 if (!argp2) {
36154 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36155 }
36156 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36157 {
36158 PyThreadState* __tstate = wxPyBeginAllowThreads();
36159 (arg1)->Delete((wxTreeItemId const &)*arg2);
36160 wxPyEndAllowThreads(__tstate);
36161 if (PyErr_Occurred()) SWIG_fail;
36162 }
36163 resultobj = SWIG_Py_Void();
36164 return resultobj;
36165fail:
36166 return NULL;
36167}
36168
36169
36170SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36171 PyObject *resultobj = 0;
36172 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36173 wxTreeItemId *arg2 = 0 ;
36174 void *argp1 = 0 ;
36175 int res1 = 0 ;
36176 void *argp2 = 0 ;
36177 int res2 = 0 ;
36178 PyObject * obj0 = 0 ;
36179 PyObject * obj1 = 0 ;
36180 char * kwnames[] = {
36181 (char *) "self",(char *) "item", NULL
36182 };
36183
36184 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36185 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36186 if (!SWIG_IsOK(res1)) {
36187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36188 }
36189 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36190 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36191 if (!SWIG_IsOK(res2)) {
36192 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36193 }
36194 if (!argp2) {
36195 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36196 }
36197 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36198 {
36199 PyThreadState* __tstate = wxPyBeginAllowThreads();
36200 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
36201 wxPyEndAllowThreads(__tstate);
36202 if (PyErr_Occurred()) SWIG_fail;
36203 }
36204 resultobj = SWIG_Py_Void();
36205 return resultobj;
36206fail:
36207 return NULL;
d55e5bfc
RD
36208}
36209
36210
1bd55598
RD
36211SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36212 PyObject *resultobj = 0;
36213 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36214 void *argp1 = 0 ;
36215 int res1 = 0 ;
36216 PyObject *swig_obj[1] ;
36217
36218 if (!args) SWIG_fail;
36219 swig_obj[0] = args;
36220 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36221 if (!SWIG_IsOK(res1)) {
36222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36223 }
36224 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36225 {
36226 PyThreadState* __tstate = wxPyBeginAllowThreads();
36227 (arg1)->DeleteAllItems();
36228 wxPyEndAllowThreads(__tstate);
36229 if (PyErr_Occurred()) SWIG_fail;
36230 }
36231 resultobj = SWIG_Py_Void();
36232 return resultobj;
36233fail:
36234 return NULL;
36235}
36236
36237
36238SWIGINTERN PyObject *_wrap_TreeCtrl_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36239 PyObject *resultobj = 0;
36240 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36241 wxTreeItemId *arg2 = 0 ;
36242 void *argp1 = 0 ;
36243 int res1 = 0 ;
36244 void *argp2 = 0 ;
36245 int res2 = 0 ;
36246 PyObject * obj0 = 0 ;
36247 PyObject * obj1 = 0 ;
36248 char * kwnames[] = {
36249 (char *) "self",(char *) "item", NULL
36250 };
36251
36252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) SWIG_fail;
36253 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36254 if (!SWIG_IsOK(res1)) {
36255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Expand" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36256 }
36257 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36258 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36259 if (!SWIG_IsOK(res2)) {
36260 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36261 }
36262 if (!argp2) {
36263 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36264 }
36265 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36266 {
36267 PyThreadState* __tstate = wxPyBeginAllowThreads();
36268 (arg1)->Expand((wxTreeItemId const &)*arg2);
36269 wxPyEndAllowThreads(__tstate);
36270 if (PyErr_Occurred()) SWIG_fail;
36271 }
36272 resultobj = SWIG_Py_Void();
36273 return resultobj;
36274fail:
36275 return NULL;
36276}
36277
36278
3d6c9062
RD
36279SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAllChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36280 PyObject *resultobj = 0;
36281 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36282 wxTreeItemId *arg2 = 0 ;
36283 void *argp1 = 0 ;
36284 int res1 = 0 ;
36285 void *argp2 = 0 ;
36286 int res2 = 0 ;
36287 PyObject * obj0 = 0 ;
36288 PyObject * obj1 = 0 ;
36289 char * kwnames[] = {
36290 (char *) "self",(char *) "item", NULL
36291 };
36292
36293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ExpandAllChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36295 if (!SWIG_IsOK(res1)) {
36296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36297 }
36298 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36299 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36300 if (!SWIG_IsOK(res2)) {
36301 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36302 }
36303 if (!argp2) {
36304 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36305 }
36306 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36307 {
36308 PyThreadState* __tstate = wxPyBeginAllowThreads();
36309 (arg1)->ExpandAllChildren((wxTreeItemId const &)*arg2);
36310 wxPyEndAllowThreads(__tstate);
36311 if (PyErr_Occurred()) SWIG_fail;
36312 }
36313 resultobj = SWIG_Py_Void();
36314 return resultobj;
36315fail:
36316 return NULL;
36317}
36318
36319
36320SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36321 PyObject *resultobj = 0;
36322 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36323 void *argp1 = 0 ;
36324 int res1 = 0 ;
36325 PyObject *swig_obj[1] ;
36326
36327 if (!args) SWIG_fail;
36328 swig_obj[0] = args;
36329 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36330 if (!SWIG_IsOK(res1)) {
36331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36332 }
36333 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36334 {
36335 PyThreadState* __tstate = wxPyBeginAllowThreads();
36336 (arg1)->ExpandAll();
36337 wxPyEndAllowThreads(__tstate);
36338 if (PyErr_Occurred()) SWIG_fail;
36339 }
36340 resultobj = SWIG_Py_Void();
36341 return resultobj;
36342fail:
36343 return NULL;
36344}
36345
36346
1bd55598
RD
36347SWIGINTERN PyObject *_wrap_TreeCtrl_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36348 PyObject *resultobj = 0;
36349 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36350 wxTreeItemId *arg2 = 0 ;
36351 void *argp1 = 0 ;
36352 int res1 = 0 ;
36353 void *argp2 = 0 ;
36354 int res2 = 0 ;
36355 PyObject * obj0 = 0 ;
36356 PyObject * obj1 = 0 ;
36357 char * kwnames[] = {
36358 (char *) "self",(char *) "item", NULL
36359 };
36360
36361 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
36362 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36363 if (!SWIG_IsOK(res1)) {
36364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Collapse" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36365 }
36366 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36367 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36368 if (!SWIG_IsOK(res2)) {
36369 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36370 }
36371 if (!argp2) {
36372 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36373 }
36374 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36375 {
36376 PyThreadState* __tstate = wxPyBeginAllowThreads();
36377 (arg1)->Collapse((wxTreeItemId const &)*arg2);
36378 wxPyEndAllowThreads(__tstate);
36379 if (PyErr_Occurred()) SWIG_fail;
36380 }
36381 resultobj = SWIG_Py_Void();
36382 return resultobj;
36383fail:
36384 return NULL;
36385}
36386
36387
36388SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36389 PyObject *resultobj = 0;
36390 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36391 wxTreeItemId *arg2 = 0 ;
36392 void *argp1 = 0 ;
36393 int res1 = 0 ;
36394 void *argp2 = 0 ;
36395 int res2 = 0 ;
36396 PyObject * obj0 = 0 ;
36397 PyObject * obj1 = 0 ;
36398 char * kwnames[] = {
36399 (char *) "self",(char *) "item", NULL
36400 };
36401
36402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) SWIG_fail;
36403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36404 if (!SWIG_IsOK(res1)) {
36405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36406 }
36407 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36408 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36409 if (!SWIG_IsOK(res2)) {
36410 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36411 }
36412 if (!argp2) {
36413 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36414 }
36415 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36416 {
36417 PyThreadState* __tstate = wxPyBeginAllowThreads();
36418 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
36419 wxPyEndAllowThreads(__tstate);
36420 if (PyErr_Occurred()) SWIG_fail;
36421 }
36422 resultobj = SWIG_Py_Void();
36423 return resultobj;
36424fail:
36425 return NULL;
36426}
36427
36428
36429SWIGINTERN PyObject *_wrap_TreeCtrl_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36430 PyObject *resultobj = 0;
36431 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36432 wxTreeItemId *arg2 = 0 ;
36433 void *argp1 = 0 ;
36434 int res1 = 0 ;
36435 void *argp2 = 0 ;
36436 int res2 = 0 ;
36437 PyObject * obj0 = 0 ;
36438 PyObject * obj1 = 0 ;
36439 char * kwnames[] = {
36440 (char *) "self",(char *) "item", NULL
36441 };
36442
36443 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) SWIG_fail;
36444 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36445 if (!SWIG_IsOK(res1)) {
36446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Toggle" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36447 }
36448 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36449 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36450 if (!SWIG_IsOK(res2)) {
36451 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36452 }
36453 if (!argp2) {
36454 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36455 }
36456 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36457 {
36458 PyThreadState* __tstate = wxPyBeginAllowThreads();
36459 (arg1)->Toggle((wxTreeItemId const &)*arg2);
36460 wxPyEndAllowThreads(__tstate);
36461 if (PyErr_Occurred()) SWIG_fail;
36462 }
36463 resultobj = SWIG_Py_Void();
36464 return resultobj;
36465fail:
36466 return NULL;
d55e5bfc
RD
36467}
36468
36469
1bd55598
RD
36470SWIGINTERN PyObject *_wrap_TreeCtrl_Unselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36471 PyObject *resultobj = 0;
36472 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36473 void *argp1 = 0 ;
36474 int res1 = 0 ;
36475 PyObject *swig_obj[1] ;
36476
36477 if (!args) SWIG_fail;
36478 swig_obj[0] = args;
36479 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36480 if (!SWIG_IsOK(res1)) {
36481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Unselect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36482 }
36483 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36484 {
36485 PyThreadState* __tstate = wxPyBeginAllowThreads();
36486 (arg1)->Unselect();
36487 wxPyEndAllowThreads(__tstate);
36488 if (PyErr_Occurred()) SWIG_fail;
36489 }
36490 resultobj = SWIG_Py_Void();
36491 return resultobj;
36492fail:
36493 return NULL;
36494}
36495
36496
36497SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36498 PyObject *resultobj = 0;
36499 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36500 wxTreeItemId *arg2 = 0 ;
36501 void *argp1 = 0 ;
36502 int res1 = 0 ;
36503 void *argp2 = 0 ;
36504 int res2 = 0 ;
36505 PyObject * obj0 = 0 ;
36506 PyObject * obj1 = 0 ;
36507 char * kwnames[] = {
36508 (char *) "self",(char *) "item", NULL
36509 };
36510
36511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) SWIG_fail;
36512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36513 if (!SWIG_IsOK(res1)) {
36514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36515 }
36516 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36517 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36518 if (!SWIG_IsOK(res2)) {
36519 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36520 }
36521 if (!argp2) {
36522 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36523 }
36524 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36525 {
36526 PyThreadState* __tstate = wxPyBeginAllowThreads();
36527 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
36528 wxPyEndAllowThreads(__tstate);
36529 if (PyErr_Occurred()) SWIG_fail;
36530 }
36531 resultobj = SWIG_Py_Void();
36532 return resultobj;
36533fail:
36534 return NULL;
d55e5bfc
RD
36535}
36536
36537
1bd55598
RD
36538SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36539 PyObject *resultobj = 0;
36540 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36541 void *argp1 = 0 ;
36542 int res1 = 0 ;
36543 PyObject *swig_obj[1] ;
36544
36545 if (!args) SWIG_fail;
36546 swig_obj[0] = args;
36547 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36548 if (!SWIG_IsOK(res1)) {
36549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36550 }
36551 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36552 {
36553 PyThreadState* __tstate = wxPyBeginAllowThreads();
36554 (arg1)->UnselectAll();
36555 wxPyEndAllowThreads(__tstate);
36556 if (PyErr_Occurred()) SWIG_fail;
36557 }
36558 resultobj = SWIG_Py_Void();
36559 return resultobj;
36560fail:
36561 return NULL;
36562}
36563
36564
36565SWIGINTERN PyObject *_wrap_TreeCtrl_SelectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36566 PyObject *resultobj = 0;
36567 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36568 wxTreeItemId *arg2 = 0 ;
36569 bool arg3 = (bool) true ;
36570 void *argp1 = 0 ;
36571 int res1 = 0 ;
36572 void *argp2 = 0 ;
36573 int res2 = 0 ;
36574 bool val3 ;
36575 int ecode3 = 0 ;
36576 PyObject * obj0 = 0 ;
36577 PyObject * obj1 = 0 ;
36578 PyObject * obj2 = 0 ;
36579 char * kwnames[] = {
36580 (char *) "self",(char *) "item",(char *) "select", NULL
36581 };
36582
36583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36585 if (!SWIG_IsOK(res1)) {
36586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SelectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36587 }
36588 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36589 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36590 if (!SWIG_IsOK(res2)) {
36591 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36592 }
36593 if (!argp2) {
36594 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36595 }
36596 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36597 if (obj2) {
36598 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36599 if (!SWIG_IsOK(ecode3)) {
36600 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SelectItem" "', expected argument " "3"" of type '" "bool""'");
36601 }
36602 arg3 = static_cast< bool >(val3);
36603 }
36604 {
36605 PyThreadState* __tstate = wxPyBeginAllowThreads();
36606 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
36607 wxPyEndAllowThreads(__tstate);
36608 if (PyErr_Occurred()) SWIG_fail;
36609 }
36610 resultobj = SWIG_Py_Void();
36611 return resultobj;
36612fail:
36613 return NULL;
36614}
36615
36616
36617SWIGINTERN PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36618 PyObject *resultobj = 0;
36619 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36620 wxTreeItemId *arg2 = 0 ;
36621 void *argp1 = 0 ;
36622 int res1 = 0 ;
36623 void *argp2 = 0 ;
36624 int res2 = 0 ;
36625 PyObject * obj0 = 0 ;
36626 PyObject * obj1 = 0 ;
36627 char * kwnames[] = {
36628 (char *) "self",(char *) "item", NULL
36629 };
36630
36631 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) SWIG_fail;
36632 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36633 if (!SWIG_IsOK(res1)) {
36634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36635 }
36636 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36637 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36638 if (!SWIG_IsOK(res2)) {
36639 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36640 }
36641 if (!argp2) {
36642 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36643 }
36644 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36645 {
36646 PyThreadState* __tstate = wxPyBeginAllowThreads();
36647 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
36648 wxPyEndAllowThreads(__tstate);
36649 if (PyErr_Occurred()) SWIG_fail;
36650 }
36651 resultobj = SWIG_Py_Void();
36652 return resultobj;
36653fail:
36654 return NULL;
36655}
36656
36657
36658SWIGINTERN PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36659 PyObject *resultobj = 0;
36660 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36661 wxTreeItemId *arg2 = 0 ;
36662 void *argp1 = 0 ;
36663 int res1 = 0 ;
36664 void *argp2 = 0 ;
36665 int res2 = 0 ;
36666 PyObject * obj0 = 0 ;
36667 PyObject * obj1 = 0 ;
36668 char * kwnames[] = {
36669 (char *) "self",(char *) "item", NULL
36670 };
36671
36672 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
36673 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36674 if (!SWIG_IsOK(res1)) {
36675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36676 }
36677 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36678 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36679 if (!SWIG_IsOK(res2)) {
36680 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36681 }
36682 if (!argp2) {
36683 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36684 }
36685 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36686 {
36687 PyThreadState* __tstate = wxPyBeginAllowThreads();
36688 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
36689 wxPyEndAllowThreads(__tstate);
36690 if (PyErr_Occurred()) SWIG_fail;
36691 }
36692 resultobj = SWIG_Py_Void();
36693 return resultobj;
36694fail:
36695 return NULL;
36696}
36697
36698
36699SWIGINTERN PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36700 PyObject *resultobj = 0;
36701 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36702 wxTreeItemId *arg2 = 0 ;
36703 void *argp1 = 0 ;
36704 int res1 = 0 ;
36705 void *argp2 = 0 ;
36706 int res2 = 0 ;
36707 PyObject * obj0 = 0 ;
36708 PyObject * obj1 = 0 ;
36709 char * kwnames[] = {
36710 (char *) "self",(char *) "item", NULL
36711 };
36712
36713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) SWIG_fail;
36714 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36715 if (!SWIG_IsOK(res1)) {
36716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36717 }
36718 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36719 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36720 if (!SWIG_IsOK(res2)) {
36721 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36722 }
36723 if (!argp2) {
36724 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36725 }
36726 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36727 {
36728 PyThreadState* __tstate = wxPyBeginAllowThreads();
36729 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
36730 wxPyEndAllowThreads(__tstate);
36731 if (PyErr_Occurred()) SWIG_fail;
36732 }
36733 resultobj = SWIG_Py_Void();
36734 return resultobj;
36735fail:
36736 return NULL;
36737}
36738
36739
36740SWIGINTERN PyObject *_wrap_TreeCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36741 PyObject *resultobj = 0;
36742 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36743 wxTreeItemId *arg2 = 0 ;
36744 void *argp1 = 0 ;
36745 int res1 = 0 ;
36746 void *argp2 = 0 ;
36747 int res2 = 0 ;
36748 PyObject * obj0 = 0 ;
36749 PyObject * obj1 = 0 ;
36750 char * kwnames[] = {
36751 (char *) "self",(char *) "item", NULL
36752 };
36753
36754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
36755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36756 if (!SWIG_IsOK(res1)) {
36757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36758 }
36759 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36760 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36761 if (!SWIG_IsOK(res2)) {
36762 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36763 }
36764 if (!argp2) {
36765 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36766 }
36767 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36768 {
36769 PyThreadState* __tstate = wxPyBeginAllowThreads();
36770 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
36771 wxPyEndAllowThreads(__tstate);
36772 if (PyErr_Occurred()) SWIG_fail;
36773 }
36774 resultobj = SWIG_Py_Void();
36775 return resultobj;
36776fail:
36777 return NULL;
d55e5bfc
RD
36778}
36779
36780
1bd55598
RD
36781SWIGINTERN PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36782 PyObject *resultobj = 0;
36783 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36784 wxTextCtrl *result = 0 ;
36785 void *argp1 = 0 ;
36786 int res1 = 0 ;
36787 PyObject *swig_obj[1] ;
36788
36789 if (!args) SWIG_fail;
36790 swig_obj[0] = args;
36791 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36792 if (!SWIG_IsOK(res1)) {
36793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36794 }
36795 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36796 {
36797 PyThreadState* __tstate = wxPyBeginAllowThreads();
36798 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
36799 wxPyEndAllowThreads(__tstate);
36800 if (PyErr_Occurred()) SWIG_fail;
36801 }
36802 {
36803 resultobj = wxPyMake_wxObject(result, 0);
36804 }
36805 return resultobj;
36806fail:
36807 return NULL;
36808}
36809
36810
36811SWIGINTERN PyObject *_wrap_TreeCtrl_SortChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36812 PyObject *resultobj = 0;
36813 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36814 wxTreeItemId *arg2 = 0 ;
36815 void *argp1 = 0 ;
36816 int res1 = 0 ;
36817 void *argp2 = 0 ;
36818 int res2 = 0 ;
36819 PyObject * obj0 = 0 ;
36820 PyObject * obj1 = 0 ;
36821 char * kwnames[] = {
36822 (char *) "self",(char *) "item", NULL
36823 };
36824
36825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36827 if (!SWIG_IsOK(res1)) {
36828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SortChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36829 }
36830 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36831 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36832 if (!SWIG_IsOK(res2)) {
36833 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36834 }
36835 if (!argp2) {
36836 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36837 }
36838 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36839 {
36840 PyThreadState* __tstate = wxPyBeginAllowThreads();
36841 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
36842 wxPyEndAllowThreads(__tstate);
36843 if (PyErr_Occurred()) SWIG_fail;
36844 }
36845 resultobj = SWIG_Py_Void();
36846 return resultobj;
36847fail:
36848 return NULL;
36849}
36850
36851
36852SWIGINTERN PyObject *_wrap_TreeCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36853 PyObject *resultobj = 0;
36854 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36855 wxPoint *arg2 = 0 ;
36856 int *arg3 = 0 ;
36857 wxTreeItemId result;
36858 void *argp1 = 0 ;
36859 int res1 = 0 ;
36860 wxPoint temp2 ;
36861 int temp3 ;
36862 int res3 = SWIG_TMPOBJ ;
36863 PyObject * obj0 = 0 ;
36864 PyObject * obj1 = 0 ;
36865 char * kwnames[] = {
36866 (char *) "self",(char *) "point", NULL
36867 };
36868
36869 arg3 = &temp3;
36870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
36871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36872 if (!SWIG_IsOK(res1)) {
36873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36874 }
36875 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36876 {
36877 arg2 = &temp2;
36878 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36879 }
36880 {
36881 PyThreadState* __tstate = wxPyBeginAllowThreads();
36882 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
36883 wxPyEndAllowThreads(__tstate);
36884 if (PyErr_Occurred()) SWIG_fail;
36885 }
36886 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36887 if (SWIG_IsTmpObj(res3)) {
36888 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
36889 } else {
36890 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
36891 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
36892 }
36893 return resultobj;
36894fail:
36895 return NULL;
36896}
36897
36898
36899SWIGINTERN PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36900 PyObject *resultobj = 0;
36901 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36902 wxTreeItemId *arg2 = 0 ;
36903 bool arg3 = (bool) false ;
36904 PyObject *result = 0 ;
36905 void *argp1 = 0 ;
36906 int res1 = 0 ;
36907 void *argp2 = 0 ;
36908 int res2 = 0 ;
36909 bool val3 ;
36910 int ecode3 = 0 ;
36911 PyObject * obj0 = 0 ;
36912 PyObject * obj1 = 0 ;
36913 PyObject * obj2 = 0 ;
36914 char * kwnames[] = {
36915 (char *) "self",(char *) "item",(char *) "textOnly", NULL
36916 };
36917
36918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36920 if (!SWIG_IsOK(res1)) {
36921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36922 }
36923 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36924 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36925 if (!SWIG_IsOK(res2)) {
36926 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36927 }
36928 if (!argp2) {
36929 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36930 }
36931 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36932 if (obj2) {
36933 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36934 if (!SWIG_IsOK(ecode3)) {
36935 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "3"" of type '" "bool""'");
36936 }
36937 arg3 = static_cast< bool >(val3);
36938 }
36939 {
36940 PyThreadState* __tstate = wxPyBeginAllowThreads();
36941 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
36942 wxPyEndAllowThreads(__tstate);
36943 if (PyErr_Occurred()) SWIG_fail;
36944 }
36945 resultobj = result;
36946 return resultobj;
36947fail:
36948 return NULL;
36949}
36950
36951
36952SWIGINTERN PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36953 PyObject *resultobj = 0;
36954 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
36955 SwigValueWrapper<wxVisualAttributes > result;
36956 int val1 ;
36957 int ecode1 = 0 ;
36958 PyObject * obj0 = 0 ;
36959 char * kwnames[] = {
36960 (char *) "variant", NULL
36961 };
36962
36963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
36964 if (obj0) {
36965 ecode1 = SWIG_AsVal_int(obj0, &val1);
36966 if (!SWIG_IsOK(ecode1)) {
36967 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TreeCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
36968 }
36969 arg1 = static_cast< wxWindowVariant >(val1);
36970 }
36971 {
36972 if (!wxPyCheckForApp()) SWIG_fail;
36973 PyThreadState* __tstate = wxPyBeginAllowThreads();
36974 result = wxPyTreeCtrl::GetClassDefaultAttributes(arg1);
36975 wxPyEndAllowThreads(__tstate);
36976 if (PyErr_Occurred()) SWIG_fail;
36977 }
36978 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
36979 return resultobj;
36980fail:
36981 return NULL;
d55e5bfc
RD
36982}
36983
36984
2131d850
RD
36985SWIGINTERN PyObject *_wrap_TreeCtrl_SetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36986 PyObject *resultobj = 0;
36987 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36988 bool arg2 ;
36989 void *argp1 = 0 ;
36990 int res1 = 0 ;
36991 bool val2 ;
36992 int ecode2 = 0 ;
36993 PyObject * obj0 = 0 ;
36994 PyObject * obj1 = 0 ;
36995 char * kwnames[] = {
36996 (char *) "self",(char *) "q", NULL
36997 };
36998
36999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetQuickBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
37000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37001 if (!SWIG_IsOK(res1)) {
37002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37003 }
37004 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37005 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37006 if (!SWIG_IsOK(ecode2)) {
37007 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "2"" of type '" "bool""'");
37008 }
37009 arg2 = static_cast< bool >(val2);
37010 {
37011 PyThreadState* __tstate = wxPyBeginAllowThreads();
37012 (arg1)->SetQuickBestSize(arg2);
37013 wxPyEndAllowThreads(__tstate);
37014 if (PyErr_Occurred()) SWIG_fail;
37015 }
37016 resultobj = SWIG_Py_Void();
37017 return resultobj;
37018fail:
37019 return NULL;
37020}
37021
37022
37023SWIGINTERN PyObject *_wrap_TreeCtrl_GetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37024 PyObject *resultobj = 0;
37025 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37026 bool result;
37027 void *argp1 = 0 ;
37028 int res1 = 0 ;
37029 PyObject *swig_obj[1] ;
37030
37031 if (!args) SWIG_fail;
37032 swig_obj[0] = args;
37033 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37034 if (!SWIG_IsOK(res1)) {
37035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
37036 }
37037 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37038 {
37039 PyThreadState* __tstate = wxPyBeginAllowThreads();
37040 result = (bool)((wxPyTreeCtrl const *)arg1)->GetQuickBestSize();
37041 wxPyEndAllowThreads(__tstate);
37042 if (PyErr_Occurred()) SWIG_fail;
37043 }
37044 {
37045 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37046 }
37047 return resultobj;
37048fail:
37049 return NULL;
37050}
37051
37052
1bd55598
RD
37053SWIGINTERN PyObject *TreeCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37054 PyObject *obj;
37055 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37056 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeCtrl, SWIG_NewClientData(obj));
37057 return SWIG_Py_Void();
d55e5bfc
RD
37058}
37059
1bd55598
RD
37060SWIGINTERN PyObject *TreeCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37061 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
37062}
37063
1bd55598
RD
37064SWIGINTERN int DirDialogDefaultFolderStr_set(PyObject *) {
37065 SWIG_Error(SWIG_AttributeError,"Variable DirDialogDefaultFolderStr is read-only.");
37066 return 1;
d55e5bfc
RD
37067}
37068
37069
1bd55598
RD
37070SWIGINTERN PyObject *DirDialogDefaultFolderStr_get(void) {
37071 PyObject *pyobj = 0;
37072
37073 {
37074#if wxUSE_UNICODE
37075 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37076#else
37077 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37078#endif
37079 }
37080 return pyobj;
37081}
37082
37083
37084SWIGINTERN PyObject *_wrap_new_GenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37085 PyObject *resultobj = 0;
37086 wxWindow *arg1 = (wxWindow *) 0 ;
37087 int arg2 = (int) (int)-1 ;
37088 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
37089 wxString *arg3 = (wxString *) &arg3_defvalue ;
37090 wxPoint const &arg4_defvalue = wxDefaultPosition ;
37091 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
37092 wxSize const &arg5_defvalue = wxDefaultSize ;
37093 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
37094 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37095 wxString const &arg7_defvalue = wxPyEmptyString ;
37096 wxString *arg7 = (wxString *) &arg7_defvalue ;
37097 int arg8 = (int) 0 ;
37098 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
37099 wxString *arg9 = (wxString *) &arg9_defvalue ;
37100 wxGenericDirCtrl *result = 0 ;
37101 void *argp1 = 0 ;
37102 int res1 = 0 ;
37103 int val2 ;
37104 int ecode2 = 0 ;
37105 bool temp3 = false ;
37106 wxPoint temp4 ;
37107 wxSize temp5 ;
37108 long val6 ;
37109 int ecode6 = 0 ;
37110 bool temp7 = false ;
37111 int val8 ;
37112 int ecode8 = 0 ;
37113 bool temp9 = false ;
37114 PyObject * obj0 = 0 ;
37115 PyObject * obj1 = 0 ;
37116 PyObject * obj2 = 0 ;
37117 PyObject * obj3 = 0 ;
37118 PyObject * obj4 = 0 ;
37119 PyObject * obj5 = 0 ;
37120 PyObject * obj6 = 0 ;
37121 PyObject * obj7 = 0 ;
37122 PyObject * obj8 = 0 ;
37123 char * kwnames[] = {
37124 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37125 };
37126
37127 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
37128 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37129 if (!SWIG_IsOK(res1)) {
37130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GenericDirCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
37131 }
37132 arg1 = reinterpret_cast< wxWindow * >(argp1);
37133 if (obj1) {
37134 ecode2 = SWIG_AsVal_int(obj1, &val2);
37135 if (!SWIG_IsOK(ecode2)) {
37136 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GenericDirCtrl" "', expected argument " "2"" of type '" "int""'");
37137 }
37138 arg2 = static_cast< int >(val2);
37139 }
37140 if (obj2) {
36ed4f51 37141 {
1bd55598
RD
37142 arg3 = wxString_in_helper(obj2);
37143 if (arg3 == NULL) SWIG_fail;
37144 temp3 = true;
36ed4f51 37145 }
1bd55598
RD
37146 }
37147 if (obj3) {
d55e5bfc 37148 {
1bd55598
RD
37149 arg4 = &temp4;
37150 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 37151 }
1bd55598
RD
37152 }
37153 if (obj4) {
36ed4f51 37154 {
1bd55598
RD
37155 arg5 = &temp5;
37156 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 37157 }
1bd55598
RD
37158 }
37159 if (obj5) {
37160 ecode6 = SWIG_AsVal_long(obj5, &val6);
37161 if (!SWIG_IsOK(ecode6)) {
37162 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GenericDirCtrl" "', expected argument " "6"" of type '" "long""'");
37163 }
37164 arg6 = static_cast< long >(val6);
37165 }
37166 if (obj6) {
36ed4f51 37167 {
1bd55598
RD
37168 arg7 = wxString_in_helper(obj6);
37169 if (arg7 == NULL) SWIG_fail;
37170 temp7 = true;
36ed4f51 37171 }
1bd55598
RD
37172 }
37173 if (obj7) {
37174 ecode8 = SWIG_AsVal_int(obj7, &val8);
37175 if (!SWIG_IsOK(ecode8)) {
37176 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GenericDirCtrl" "', expected argument " "8"" of type '" "int""'");
37177 }
37178 arg8 = static_cast< int >(val8);
37179 }
37180 if (obj8) {
d55e5bfc 37181 {
1bd55598
RD
37182 arg9 = wxString_in_helper(obj8);
37183 if (arg9 == NULL) SWIG_fail;
37184 temp9 = true;
d55e5bfc 37185 }
1bd55598
RD
37186 }
37187 {
37188 if (!wxPyCheckForApp()) SWIG_fail;
37189 PyThreadState* __tstate = wxPyBeginAllowThreads();
37190 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
37191 wxPyEndAllowThreads(__tstate);
37192 if (PyErr_Occurred()) SWIG_fail;
37193 }
37194 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_NEW | 0 );
37195 {
37196 if (temp3)
37197 delete arg3;
37198 }
37199 {
37200 if (temp7)
37201 delete arg7;
37202 }
37203 {
37204 if (temp9)
37205 delete arg9;
37206 }
37207 return resultobj;
37208fail:
37209 {
37210 if (temp3)
37211 delete arg3;
37212 }
37213 {
37214 if (temp7)
37215 delete arg7;
37216 }
37217 {
37218 if (temp9)
37219 delete arg9;
37220 }
37221 return NULL;
d55e5bfc
RD
37222}
37223
37224
1bd55598
RD
37225SWIGINTERN PyObject *_wrap_new_PreGenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37226 PyObject *resultobj = 0;
37227 wxGenericDirCtrl *result = 0 ;
37228
37229 if (!SWIG_Python_UnpackTuple(args,"new_PreGenericDirCtrl",0,0,0)) SWIG_fail;
37230 {
37231 if (!wxPyCheckForApp()) SWIG_fail;
37232 PyThreadState* __tstate = wxPyBeginAllowThreads();
37233 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
37234 wxPyEndAllowThreads(__tstate);
37235 if (PyErr_Occurred()) SWIG_fail;
37236 }
37237 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_OWN | 0 );
37238 return resultobj;
37239fail:
37240 return NULL;
37241}
37242
37243
37244SWIGINTERN PyObject *_wrap_GenericDirCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37245 PyObject *resultobj = 0;
37246 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37247 wxWindow *arg2 = (wxWindow *) 0 ;
37248 int arg3 = (int) (int)-1 ;
37249 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
37250 wxString *arg4 = (wxString *) &arg4_defvalue ;
37251 wxPoint const &arg5_defvalue = wxDefaultPosition ;
37252 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
37253 wxSize const &arg6_defvalue = wxDefaultSize ;
37254 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
37255 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37256 wxString const &arg8_defvalue = wxPyEmptyString ;
37257 wxString *arg8 = (wxString *) &arg8_defvalue ;
37258 int arg9 = (int) 0 ;
37259 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
37260 wxString *arg10 = (wxString *) &arg10_defvalue ;
37261 bool result;
37262 void *argp1 = 0 ;
37263 int res1 = 0 ;
37264 void *argp2 = 0 ;
37265 int res2 = 0 ;
37266 int val3 ;
37267 int ecode3 = 0 ;
37268 bool temp4 = false ;
37269 wxPoint temp5 ;
37270 wxSize temp6 ;
37271 long val7 ;
37272 int ecode7 = 0 ;
37273 bool temp8 = false ;
37274 int val9 ;
37275 int ecode9 = 0 ;
37276 bool temp10 = false ;
37277 PyObject * obj0 = 0 ;
37278 PyObject * obj1 = 0 ;
37279 PyObject * obj2 = 0 ;
37280 PyObject * obj3 = 0 ;
37281 PyObject * obj4 = 0 ;
37282 PyObject * obj5 = 0 ;
37283 PyObject * obj6 = 0 ;
37284 PyObject * obj7 = 0 ;
37285 PyObject * obj8 = 0 ;
37286 PyObject * obj9 = 0 ;
37287 char * kwnames[] = {
37288 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37289 };
37290
37291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
37292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37293 if (!SWIG_IsOK(res1)) {
37294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_Create" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37295 }
37296 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37297 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
37298 if (!SWIG_IsOK(res2)) {
37299 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
37300 }
37301 arg2 = reinterpret_cast< wxWindow * >(argp2);
37302 if (obj2) {
37303 ecode3 = SWIG_AsVal_int(obj2, &val3);
37304 if (!SWIG_IsOK(ecode3)) {
37305 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GenericDirCtrl_Create" "', expected argument " "3"" of type '" "int""'");
37306 }
37307 arg3 = static_cast< int >(val3);
37308 }
37309 if (obj3) {
36ed4f51 37310 {
1bd55598
RD
37311 arg4 = wxString_in_helper(obj3);
37312 if (arg4 == NULL) SWIG_fail;
37313 temp4 = true;
36ed4f51 37314 }
1bd55598
RD
37315 }
37316 if (obj4) {
36ed4f51 37317 {
1bd55598
RD
37318 arg5 = &temp5;
37319 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 37320 }
1bd55598
RD
37321 }
37322 if (obj5) {
d55e5bfc 37323 {
1bd55598
RD
37324 arg6 = &temp6;
37325 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 37326 }
1bd55598
RD
37327 }
37328 if (obj6) {
37329 ecode7 = SWIG_AsVal_long(obj6, &val7);
37330 if (!SWIG_IsOK(ecode7)) {
37331 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GenericDirCtrl_Create" "', expected argument " "7"" of type '" "long""'");
37332 }
37333 arg7 = static_cast< long >(val7);
37334 }
37335 if (obj7) {
d55e5bfc 37336 {
1bd55598
RD
37337 arg8 = wxString_in_helper(obj7);
37338 if (arg8 == NULL) SWIG_fail;
37339 temp8 = true;
d55e5bfc 37340 }
1bd55598
RD
37341 }
37342 if (obj8) {
37343 ecode9 = SWIG_AsVal_int(obj8, &val9);
37344 if (!SWIG_IsOK(ecode9)) {
37345 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GenericDirCtrl_Create" "', expected argument " "9"" of type '" "int""'");
37346 }
37347 arg9 = static_cast< int >(val9);
37348 }
37349 if (obj9) {
36ed4f51 37350 {
1bd55598
RD
37351 arg10 = wxString_in_helper(obj9);
37352 if (arg10 == NULL) SWIG_fail;
37353 temp10 = true;
36ed4f51 37354 }
1bd55598
RD
37355 }
37356 {
37357 PyThreadState* __tstate = wxPyBeginAllowThreads();
37358 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
37359 wxPyEndAllowThreads(__tstate);
37360 if (PyErr_Occurred()) SWIG_fail;
37361 }
37362 {
37363 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37364 }
37365 {
37366 if (temp4)
37367 delete arg4;
37368 }
37369 {
37370 if (temp8)
37371 delete arg8;
37372 }
37373 {
37374 if (temp10)
37375 delete arg10;
37376 }
37377 return resultobj;
37378fail:
37379 {
37380 if (temp4)
37381 delete arg4;
37382 }
37383 {
37384 if (temp8)
37385 delete arg8;
37386 }
37387 {
37388 if (temp10)
37389 delete arg10;
37390 }
37391 return NULL;
37392}
37393
37394
37395SWIGINTERN PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37396 PyObject *resultobj = 0;
37397 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37398 wxString *arg2 = 0 ;
37399 bool result;
37400 void *argp1 = 0 ;
37401 int res1 = 0 ;
37402 bool temp2 = false ;
37403 PyObject * obj0 = 0 ;
37404 PyObject * obj1 = 0 ;
37405 char * kwnames[] = {
37406 (char *) "self",(char *) "path", NULL
37407 };
37408
37409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) SWIG_fail;
37410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37411 if (!SWIG_IsOK(res1)) {
37412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ExpandPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37413 }
37414 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37415 {
37416 arg2 = wxString_in_helper(obj1);
37417 if (arg2 == NULL) SWIG_fail;
37418 temp2 = true;
37419 }
37420 {
37421 PyThreadState* __tstate = wxPyBeginAllowThreads();
37422 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
37423 wxPyEndAllowThreads(__tstate);
37424 if (PyErr_Occurred()) SWIG_fail;
37425 }
37426 {
37427 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37428 }
37429 {
37430 if (temp2)
37431 delete arg2;
37432 }
37433 return resultobj;
37434fail:
37435 {
37436 if (temp2)
37437 delete arg2;
37438 }
37439 return NULL;
d55e5bfc
RD
37440}
37441
37442
704eda0c
RD
37443SWIGINTERN PyObject *_wrap_GenericDirCtrl_CollapsePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37444 PyObject *resultobj = 0;
37445 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37446 wxString *arg2 = 0 ;
37447 bool result;
37448 void *argp1 = 0 ;
37449 int res1 = 0 ;
37450 bool temp2 = false ;
37451 PyObject * obj0 = 0 ;
37452 PyObject * obj1 = 0 ;
37453 char * kwnames[] = {
37454 (char *) "self",(char *) "path", NULL
37455 };
37456
37457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_CollapsePath",kwnames,&obj0,&obj1)) SWIG_fail;
37458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37459 if (!SWIG_IsOK(res1)) {
37460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_CollapsePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37461 }
37462 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37463 {
37464 arg2 = wxString_in_helper(obj1);
37465 if (arg2 == NULL) SWIG_fail;
37466 temp2 = true;
37467 }
37468 {
37469 PyThreadState* __tstate = wxPyBeginAllowThreads();
37470 result = (bool)(arg1)->CollapsePath((wxString const &)*arg2);
37471 wxPyEndAllowThreads(__tstate);
37472 if (PyErr_Occurred()) SWIG_fail;
37473 }
37474 {
37475 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37476 }
37477 {
37478 if (temp2)
37479 delete arg2;
37480 }
37481 return resultobj;
37482fail:
37483 {
37484 if (temp2)
37485 delete arg2;
37486 }
37487 return NULL;
37488}
37489
37490
1bd55598
RD
37491SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37492 PyObject *resultobj = 0;
37493 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37494 wxString result;
37495 void *argp1 = 0 ;
37496 int res1 = 0 ;
37497 PyObject *swig_obj[1] ;
37498
37499 if (!args) SWIG_fail;
37500 swig_obj[0] = args;
37501 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37502 if (!SWIG_IsOK(res1)) {
37503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37504 }
37505 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37506 {
37507 PyThreadState* __tstate = wxPyBeginAllowThreads();
37508 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
37509 wxPyEndAllowThreads(__tstate);
37510 if (PyErr_Occurred()) SWIG_fail;
37511 }
37512 {
37513#if wxUSE_UNICODE
37514 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37515#else
37516 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37517#endif
37518 }
37519 return resultobj;
37520fail:
37521 return NULL;
37522}
37523
37524
37525SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37526 PyObject *resultobj = 0;
37527 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37528 wxString *arg2 = 0 ;
37529 void *argp1 = 0 ;
37530 int res1 = 0 ;
37531 bool temp2 = false ;
37532 PyObject * obj0 = 0 ;
37533 PyObject * obj1 = 0 ;
37534 char * kwnames[] = {
37535 (char *) "self",(char *) "path", NULL
37536 };
37537
37538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) SWIG_fail;
37539 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37540 if (!SWIG_IsOK(res1)) {
37541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37542 }
37543 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37544 {
37545 arg2 = wxString_in_helper(obj1);
37546 if (arg2 == NULL) SWIG_fail;
37547 temp2 = true;
37548 }
37549 {
37550 PyThreadState* __tstate = wxPyBeginAllowThreads();
37551 (arg1)->SetDefaultPath((wxString const &)*arg2);
37552 wxPyEndAllowThreads(__tstate);
37553 if (PyErr_Occurred()) SWIG_fail;
37554 }
37555 resultobj = SWIG_Py_Void();
37556 {
37557 if (temp2)
37558 delete arg2;
37559 }
37560 return resultobj;
37561fail:
37562 {
37563 if (temp2)
37564 delete arg2;
37565 }
37566 return NULL;
d55e5bfc
RD
37567}
37568
37569
1bd55598
RD
37570SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37571 PyObject *resultobj = 0;
37572 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37573 wxString result;
37574 void *argp1 = 0 ;
37575 int res1 = 0 ;
37576 PyObject *swig_obj[1] ;
37577
37578 if (!args) SWIG_fail;
37579 swig_obj[0] = args;
37580 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37581 if (!SWIG_IsOK(res1)) {
37582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37583 }
37584 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37585 {
37586 PyThreadState* __tstate = wxPyBeginAllowThreads();
37587 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
37588 wxPyEndAllowThreads(__tstate);
37589 if (PyErr_Occurred()) SWIG_fail;
37590 }
37591 {
37592#if wxUSE_UNICODE
37593 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37594#else
37595 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37596#endif
37597 }
37598 return resultobj;
37599fail:
37600 return NULL;
d55e5bfc
RD
37601}
37602
37603
1bd55598
RD
37604SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37605 PyObject *resultobj = 0;
37606 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37607 wxString result;
37608 void *argp1 = 0 ;
37609 int res1 = 0 ;
37610 PyObject *swig_obj[1] ;
37611
37612 if (!args) SWIG_fail;
37613 swig_obj[0] = args;
37614 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37615 if (!SWIG_IsOK(res1)) {
37616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37617 }
37618 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37619 {
37620 PyThreadState* __tstate = wxPyBeginAllowThreads();
37621 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
37622 wxPyEndAllowThreads(__tstate);
37623 if (PyErr_Occurred()) SWIG_fail;
37624 }
37625 {
37626#if wxUSE_UNICODE
37627 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37628#else
37629 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37630#endif
37631 }
37632 return resultobj;
37633fail:
37634 return NULL;
37635}
37636
37637
37638SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37639 PyObject *resultobj = 0;
37640 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37641 wxString *arg2 = 0 ;
37642 void *argp1 = 0 ;
37643 int res1 = 0 ;
37644 bool temp2 = false ;
37645 PyObject * obj0 = 0 ;
37646 PyObject * obj1 = 0 ;
37647 char * kwnames[] = {
37648 (char *) "self",(char *) "path", NULL
37649 };
37650
37651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
37652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37653 if (!SWIG_IsOK(res1)) {
37654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37655 }
37656 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37657 {
37658 arg2 = wxString_in_helper(obj1);
37659 if (arg2 == NULL) SWIG_fail;
37660 temp2 = true;
37661 }
37662 {
37663 PyThreadState* __tstate = wxPyBeginAllowThreads();
37664 (arg1)->SetPath((wxString const &)*arg2);
37665 wxPyEndAllowThreads(__tstate);
37666 if (PyErr_Occurred()) SWIG_fail;
37667 }
37668 resultobj = SWIG_Py_Void();
37669 {
37670 if (temp2)
37671 delete arg2;
37672 }
37673 return resultobj;
37674fail:
37675 {
37676 if (temp2)
37677 delete arg2;
37678 }
37679 return NULL;
37680}
37681
37682
37683SWIGINTERN PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37684 PyObject *resultobj = 0;
37685 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37686 bool arg2 ;
37687 void *argp1 = 0 ;
37688 int res1 = 0 ;
37689 bool val2 ;
37690 int ecode2 = 0 ;
37691 PyObject * obj0 = 0 ;
37692 PyObject * obj1 = 0 ;
37693 char * kwnames[] = {
37694 (char *) "self",(char *) "show", NULL
37695 };
37696
37697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) SWIG_fail;
37698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37699 if (!SWIG_IsOK(res1)) {
37700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37701 }
37702 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37703 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37704 if (!SWIG_IsOK(ecode2)) {
37705 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "2"" of type '" "bool""'");
37706 }
37707 arg2 = static_cast< bool >(val2);
37708 {
37709 PyThreadState* __tstate = wxPyBeginAllowThreads();
37710 (arg1)->ShowHidden(arg2);
37711 wxPyEndAllowThreads(__tstate);
37712 if (PyErr_Occurred()) SWIG_fail;
37713 }
37714 resultobj = SWIG_Py_Void();
37715 return resultobj;
37716fail:
37717 return NULL;
d55e5bfc
RD
37718}
37719
37720
1bd55598
RD
37721SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37722 PyObject *resultobj = 0;
37723 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37724 bool result;
37725 void *argp1 = 0 ;
37726 int res1 = 0 ;
37727 PyObject *swig_obj[1] ;
37728
37729 if (!args) SWIG_fail;
37730 swig_obj[0] = args;
37731 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37732 if (!SWIG_IsOK(res1)) {
37733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37734 }
37735 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37736 {
37737 PyThreadState* __tstate = wxPyBeginAllowThreads();
37738 result = (bool)(arg1)->GetShowHidden();
37739 wxPyEndAllowThreads(__tstate);
37740 if (PyErr_Occurred()) SWIG_fail;
37741 }
37742 {
37743 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37744 }
37745 return resultobj;
37746fail:
37747 return NULL;
d55e5bfc
RD
37748}
37749
37750
1bd55598
RD
37751SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37752 PyObject *resultobj = 0;
37753 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37754 wxString result;
37755 void *argp1 = 0 ;
37756 int res1 = 0 ;
37757 PyObject *swig_obj[1] ;
37758
37759 if (!args) SWIG_fail;
37760 swig_obj[0] = args;
37761 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37762 if (!SWIG_IsOK(res1)) {
37763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37764 }
37765 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37766 {
37767 PyThreadState* __tstate = wxPyBeginAllowThreads();
37768 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
37769 wxPyEndAllowThreads(__tstate);
37770 if (PyErr_Occurred()) SWIG_fail;
37771 }
37772 {
37773#if wxUSE_UNICODE
37774 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37775#else
37776 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37777#endif
37778 }
37779 return resultobj;
37780fail:
37781 return NULL;
37782}
37783
37784
37785SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37786 PyObject *resultobj = 0;
37787 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37788 wxString *arg2 = 0 ;
37789 void *argp1 = 0 ;
37790 int res1 = 0 ;
37791 bool temp2 = false ;
37792 PyObject * obj0 = 0 ;
37793 PyObject * obj1 = 0 ;
37794 char * kwnames[] = {
37795 (char *) "self",(char *) "filter", NULL
37796 };
37797
37798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) SWIG_fail;
37799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37800 if (!SWIG_IsOK(res1)) {
37801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37802 }
37803 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37804 {
37805 arg2 = wxString_in_helper(obj1);
37806 if (arg2 == NULL) SWIG_fail;
37807 temp2 = true;
37808 }
37809 {
37810 PyThreadState* __tstate = wxPyBeginAllowThreads();
37811 (arg1)->SetFilter((wxString const &)*arg2);
37812 wxPyEndAllowThreads(__tstate);
37813 if (PyErr_Occurred()) SWIG_fail;
37814 }
37815 resultobj = SWIG_Py_Void();
37816 {
37817 if (temp2)
37818 delete arg2;
37819 }
37820 return resultobj;
37821fail:
37822 {
37823 if (temp2)
37824 delete arg2;
37825 }
37826 return NULL;
d55e5bfc
RD
37827}
37828
37829
1bd55598
RD
37830SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37831 PyObject *resultobj = 0;
37832 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37833 int result;
37834 void *argp1 = 0 ;
37835 int res1 = 0 ;
37836 PyObject *swig_obj[1] ;
37837
37838 if (!args) SWIG_fail;
37839 swig_obj[0] = args;
37840 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37841 if (!SWIG_IsOK(res1)) {
37842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37843 }
37844 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37845 {
37846 PyThreadState* __tstate = wxPyBeginAllowThreads();
37847 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
37848 wxPyEndAllowThreads(__tstate);
37849 if (PyErr_Occurred()) SWIG_fail;
37850 }
37851 resultobj = SWIG_From_int(static_cast< int >(result));
37852 return resultobj;
37853fail:
37854 return NULL;
37855}
37856
37857
37858SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37859 PyObject *resultobj = 0;
37860 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37861 int arg2 ;
37862 void *argp1 = 0 ;
37863 int res1 = 0 ;
37864 int val2 ;
37865 int ecode2 = 0 ;
37866 PyObject * obj0 = 0 ;
37867 PyObject * obj1 = 0 ;
37868 char * kwnames[] = {
37869 (char *) "self",(char *) "n", NULL
37870 };
37871
37872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail;
37873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37874 if (!SWIG_IsOK(res1)) {
37875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37876 }
37877 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37878 ecode2 = SWIG_AsVal_int(obj1, &val2);
37879 if (!SWIG_IsOK(ecode2)) {
37880 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "2"" of type '" "int""'");
37881 }
37882 arg2 = static_cast< int >(val2);
37883 {
37884 PyThreadState* __tstate = wxPyBeginAllowThreads();
37885 (arg1)->SetFilterIndex(arg2);
37886 wxPyEndAllowThreads(__tstate);
37887 if (PyErr_Occurred()) SWIG_fail;
37888 }
37889 resultobj = SWIG_Py_Void();
37890 return resultobj;
37891fail:
37892 return NULL;
d55e5bfc
RD
37893}
37894
37895
1bd55598
RD
37896SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37897 PyObject *resultobj = 0;
37898 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37899 wxTreeItemId result;
37900 void *argp1 = 0 ;
37901 int res1 = 0 ;
37902 PyObject *swig_obj[1] ;
37903
37904 if (!args) SWIG_fail;
37905 swig_obj[0] = args;
37906 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37907 if (!SWIG_IsOK(res1)) {
37908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetRootId" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37909 }
37910 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37911 {
37912 PyThreadState* __tstate = wxPyBeginAllowThreads();
37913 result = (arg1)->GetRootId();
37914 wxPyEndAllowThreads(__tstate);
37915 if (PyErr_Occurred()) SWIG_fail;
37916 }
37917 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37918 return resultobj;
37919fail:
37920 return NULL;
d55e5bfc
RD
37921}
37922
37923
1bd55598
RD
37924SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37925 PyObject *resultobj = 0;
37926 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37927 wxPyTreeCtrl *result = 0 ;
37928 void *argp1 = 0 ;
37929 int res1 = 0 ;
37930 PyObject *swig_obj[1] ;
37931
37932 if (!args) SWIG_fail;
37933 swig_obj[0] = args;
37934 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37935 if (!SWIG_IsOK(res1)) {
37936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetTreeCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37937 }
37938 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37939 {
37940 PyThreadState* __tstate = wxPyBeginAllowThreads();
37941 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
37942 wxPyEndAllowThreads(__tstate);
37943 if (PyErr_Occurred()) SWIG_fail;
37944 }
37945 {
37946 resultobj = wxPyMake_wxObject(result, 0);
37947 }
37948 return resultobj;
37949fail:
37950 return NULL;
d55e5bfc
RD
37951}
37952
37953
1bd55598
RD
37954SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37955 PyObject *resultobj = 0;
37956 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37957 wxDirFilterListCtrl *result = 0 ;
37958 void *argp1 = 0 ;
37959 int res1 = 0 ;
37960 PyObject *swig_obj[1] ;
37961
37962 if (!args) SWIG_fail;
37963 swig_obj[0] = args;
37964 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37965 if (!SWIG_IsOK(res1)) {
37966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37967 }
37968 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37969 {
37970 PyThreadState* __tstate = wxPyBeginAllowThreads();
37971 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
37972 wxPyEndAllowThreads(__tstate);
37973 if (PyErr_Occurred()) SWIG_fail;
37974 }
37975 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
37976 return resultobj;
37977fail:
37978 return NULL;
37979}
37980
37981
37982SWIGINTERN PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37983 PyObject *resultobj = 0;
37984 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37985 wxTreeItemId arg2 ;
37986 wxString *arg3 = 0 ;
37987 bool *arg4 = 0 ;
37988 wxTreeItemId result;
37989 void *argp1 = 0 ;
37990 int res1 = 0 ;
37991 void *argp2 ;
37992 int res2 = 0 ;
37993 bool temp3 = false ;
37994 bool temp4 ;
37995 int res4 = SWIG_TMPOBJ ;
37996 PyObject * obj0 = 0 ;
37997 PyObject * obj1 = 0 ;
37998 PyObject * obj2 = 0 ;
37999 char * kwnames[] = {
38000 (char *) "self",(char *) "parentId",(char *) "path", NULL
38001 };
38002
38003 arg4 = &temp4;
38004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38006 if (!SWIG_IsOK(res1)) {
38007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38008 }
38009 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38010 {
38011 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
38012 if (!SWIG_IsOK(res2)) {
38013 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38014 }
38015 if (!argp2) {
38016 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38017 } else {
38018 wxTreeItemId * temp = reinterpret_cast< wxTreeItemId * >(argp2);
38019 arg2 = *temp;
38020 if (SWIG_IsNewObj(res2)) delete temp;
d55e5bfc 38021 }
1bd55598
RD
38022 }
38023 {
38024 arg3 = wxString_in_helper(obj2);
38025 if (arg3 == NULL) SWIG_fail;
38026 temp3 = true;
38027 }
38028 {
38029 PyThreadState* __tstate = wxPyBeginAllowThreads();
38030 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
38031 wxPyEndAllowThreads(__tstate);
38032 if (PyErr_Occurred()) SWIG_fail;
38033 }
38034 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38035 if (SWIG_IsTmpObj(res4)) {
38036 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4)));
38037 } else {
38038 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38039 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags));
38040 }
38041 {
38042 if (temp3)
38043 delete arg3;
38044 }
38045 return resultobj;
38046fail:
38047 {
38048 if (temp3)
38049 delete arg3;
38050 }
38051 return NULL;
d55e5bfc
RD
38052}
38053
38054
1bd55598
RD
38055SWIGINTERN PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38056 PyObject *resultobj = 0;
38057 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38058 void *argp1 = 0 ;
38059 int res1 = 0 ;
38060 PyObject *swig_obj[1] ;
38061
38062 if (!args) SWIG_fail;
38063 swig_obj[0] = args;
38064 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38065 if (!SWIG_IsOK(res1)) {
38066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_DoResize" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38067 }
38068 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38069 {
38070 PyThreadState* __tstate = wxPyBeginAllowThreads();
38071 (arg1)->DoResize();
38072 wxPyEndAllowThreads(__tstate);
38073 if (PyErr_Occurred()) SWIG_fail;
38074 }
38075 resultobj = SWIG_Py_Void();
38076 return resultobj;
38077fail:
38078 return NULL;
38079}
38080
38081
38082SWIGINTERN PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38083 PyObject *resultobj = 0;
38084 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38085 void *argp1 = 0 ;
38086 int res1 = 0 ;
38087 PyObject *swig_obj[1] ;
38088
38089 if (!args) SWIG_fail;
38090 swig_obj[0] = args;
38091 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38092 if (!SWIG_IsOK(res1)) {
38093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ReCreateTree" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38094 }
38095 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38096 {
38097 PyThreadState* __tstate = wxPyBeginAllowThreads();
38098 (arg1)->ReCreateTree();
38099 wxPyEndAllowThreads(__tstate);
38100 if (PyErr_Occurred()) SWIG_fail;
38101 }
38102 resultobj = SWIG_Py_Void();
38103 return resultobj;
38104fail:
38105 return NULL;
38106}
38107
38108
38109SWIGINTERN PyObject *GenericDirCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38110 PyObject *obj;
38111 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38112 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDirCtrl, SWIG_NewClientData(obj));
38113 return SWIG_Py_Void();
38114}
38115
38116SWIGINTERN PyObject *GenericDirCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38117 return SWIG_Python_InitShadowInstance(args);
38118}
38119
38120SWIGINTERN PyObject *_wrap_new_DirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38121 PyObject *resultobj = 0;
38122 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38123 int arg2 = (int) (int)-1 ;
38124 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38125 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38126 wxSize const &arg4_defvalue = wxDefaultSize ;
38127 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38128 long arg5 = (long) 0 ;
38129 wxDirFilterListCtrl *result = 0 ;
38130 void *argp1 = 0 ;
38131 int res1 = 0 ;
38132 int val2 ;
38133 int ecode2 = 0 ;
38134 wxPoint temp3 ;
38135 wxSize temp4 ;
38136 long val5 ;
38137 int ecode5 = 0 ;
38138 PyObject * obj0 = 0 ;
38139 PyObject * obj1 = 0 ;
38140 PyObject * obj2 = 0 ;
38141 PyObject * obj3 = 0 ;
38142 PyObject * obj4 = 0 ;
38143 char * kwnames[] = {
38144 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38145 };
38146
38147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38149 if (!SWIG_IsOK(res1)) {
38150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38151 }
38152 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38153 if (obj1) {
38154 ecode2 = SWIG_AsVal_int(obj1, &val2);
38155 if (!SWIG_IsOK(ecode2)) {
38156 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirFilterListCtrl" "', expected argument " "2"" of type '" "int""'");
38157 }
38158 arg2 = static_cast< int >(val2);
38159 }
38160 if (obj2) {
d55e5bfc 38161 {
1bd55598
RD
38162 arg3 = &temp3;
38163 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 38164 }
1bd55598
RD
38165 }
38166 if (obj3) {
d55e5bfc 38167 {
1bd55598
RD
38168 arg4 = &temp4;
38169 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 38170 }
1bd55598
RD
38171 }
38172 if (obj4) {
38173 ecode5 = SWIG_AsVal_long(obj4, &val5);
38174 if (!SWIG_IsOK(ecode5)) {
38175 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DirFilterListCtrl" "', expected argument " "5"" of type '" "long""'");
38176 }
38177 arg5 = static_cast< long >(val5);
38178 }
38179 {
38180 if (!wxPyCheckForApp()) SWIG_fail;
38181 PyThreadState* __tstate = wxPyBeginAllowThreads();
38182 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
38183 wxPyEndAllowThreads(__tstate);
38184 if (PyErr_Occurred()) SWIG_fail;
38185 }
38186 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_NEW | 0 );
38187 return resultobj;
38188fail:
38189 return NULL;
d55e5bfc
RD
38190}
38191
38192
1bd55598
RD
38193SWIGINTERN PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38194 PyObject *resultobj = 0;
38195 wxDirFilterListCtrl *result = 0 ;
38196
38197 if (!SWIG_Python_UnpackTuple(args,"new_PreDirFilterListCtrl",0,0,0)) SWIG_fail;
38198 {
38199 if (!wxPyCheckForApp()) SWIG_fail;
38200 PyThreadState* __tstate = wxPyBeginAllowThreads();
38201 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
38202 wxPyEndAllowThreads(__tstate);
38203 if (PyErr_Occurred()) SWIG_fail;
38204 }
38205 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_OWN | 0 );
38206 return resultobj;
38207fail:
38208 return NULL;
38209}
38210
38211
38212SWIGINTERN PyObject *_wrap_DirFilterListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38213 PyObject *resultobj = 0;
38214 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38215 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
38216 int arg3 = (int) (int)-1 ;
38217 wxPoint const &arg4_defvalue = wxDefaultPosition ;
38218 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
38219 wxSize const &arg5_defvalue = wxDefaultSize ;
38220 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
38221 long arg6 = (long) 0 ;
38222 bool result;
38223 void *argp1 = 0 ;
38224 int res1 = 0 ;
38225 void *argp2 = 0 ;
38226 int res2 = 0 ;
38227 int val3 ;
38228 int ecode3 = 0 ;
38229 wxPoint temp4 ;
38230 wxSize temp5 ;
38231 long val6 ;
38232 int ecode6 = 0 ;
38233 PyObject * obj0 = 0 ;
38234 PyObject * obj1 = 0 ;
38235 PyObject * obj2 = 0 ;
38236 PyObject * obj3 = 0 ;
38237 PyObject * obj4 = 0 ;
38238 PyObject * obj5 = 0 ;
38239 char * kwnames[] = {
38240 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38241 };
38242
38243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38245 if (!SWIG_IsOK(res1)) {
38246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_Create" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38247 }
38248 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38249 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38250 if (!SWIG_IsOK(res2)) {
38251 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirFilterListCtrl_Create" "', expected argument " "2"" of type '" "wxGenericDirCtrl *""'");
38252 }
38253 arg2 = reinterpret_cast< wxGenericDirCtrl * >(argp2);
38254 if (obj2) {
38255 ecode3 = SWIG_AsVal_int(obj2, &val3);
38256 if (!SWIG_IsOK(ecode3)) {
38257 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
38258 }
38259 arg3 = static_cast< int >(val3);
38260 }
38261 if (obj3) {
36ed4f51 38262 {
1bd55598
RD
38263 arg4 = &temp4;
38264 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36ed4f51 38265 }
1bd55598
RD
38266 }
38267 if (obj4) {
36ed4f51 38268 {
1bd55598
RD
38269 arg5 = &temp5;
38270 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 38271 }
1bd55598
RD
38272 }
38273 if (obj5) {
38274 ecode6 = SWIG_AsVal_long(obj5, &val6);
38275 if (!SWIG_IsOK(ecode6)) {
38276 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DirFilterListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
38277 }
38278 arg6 = static_cast< long >(val6);
38279 }
38280 {
38281 PyThreadState* __tstate = wxPyBeginAllowThreads();
38282 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
38283 wxPyEndAllowThreads(__tstate);
38284 if (PyErr_Occurred()) SWIG_fail;
38285 }
38286 {
38287 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38288 }
38289 return resultobj;
38290fail:
38291 return NULL;
38292}
38293
38294
38295SWIGINTERN PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38296 PyObject *resultobj = 0;
38297 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38298 wxString *arg2 = 0 ;
38299 int arg3 ;
38300 void *argp1 = 0 ;
38301 int res1 = 0 ;
38302 bool temp2 = false ;
38303 int val3 ;
38304 int ecode3 = 0 ;
38305 PyObject * obj0 = 0 ;
38306 PyObject * obj1 = 0 ;
38307 PyObject * obj2 = 0 ;
38308 char * kwnames[] = {
38309 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
38310 };
38311
38312 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38313 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38314 if (!SWIG_IsOK(res1)) {
38315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38316 }
38317 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38318 {
38319 arg2 = wxString_in_helper(obj1);
38320 if (arg2 == NULL) SWIG_fail;
38321 temp2 = true;
38322 }
38323 ecode3 = SWIG_AsVal_int(obj2, &val3);
38324 if (!SWIG_IsOK(ecode3)) {
38325 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "3"" of type '" "int""'");
38326 }
38327 arg3 = static_cast< int >(val3);
38328 {
38329 PyThreadState* __tstate = wxPyBeginAllowThreads();
38330 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
38331 wxPyEndAllowThreads(__tstate);
38332 if (PyErr_Occurred()) SWIG_fail;
38333 }
38334 resultobj = SWIG_Py_Void();
38335 {
38336 if (temp2)
38337 delete arg2;
38338 }
38339 return resultobj;
38340fail:
38341 {
38342 if (temp2)
38343 delete arg2;
38344 }
38345 return NULL;
38346}
38347
38348
38349SWIGINTERN PyObject *DirFilterListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38350 PyObject *obj;
38351 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38352 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirFilterListCtrl, SWIG_NewClientData(obj));
38353 return SWIG_Py_Void();
38354}
38355
38356SWIGINTERN PyObject *DirFilterListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38357 return SWIG_Python_InitShadowInstance(args);
38358}
38359
38360SWIGINTERN PyObject *_wrap_new_PyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38361 PyObject *resultobj = 0;
38362 wxWindow *arg1 = (wxWindow *) 0 ;
38363 int arg2 = (int) (int)-1 ;
38364 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38365 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38366 wxSize const &arg4_defvalue = wxDefaultSize ;
38367 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38368 long arg5 = (long) 0 ;
38369 wxValidator const &arg6_defvalue = wxDefaultValidator ;
38370 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
38371 wxString const &arg7_defvalue = wxPyControlNameStr ;
38372 wxString *arg7 = (wxString *) &arg7_defvalue ;
38373 wxPyControl *result = 0 ;
38374 void *argp1 = 0 ;
38375 int res1 = 0 ;
38376 int val2 ;
38377 int ecode2 = 0 ;
38378 wxPoint temp3 ;
38379 wxSize temp4 ;
38380 long val5 ;
38381 int ecode5 = 0 ;
38382 void *argp6 = 0 ;
38383 int res6 = 0 ;
38384 bool temp7 = false ;
38385 PyObject * obj0 = 0 ;
38386 PyObject * obj1 = 0 ;
38387 PyObject * obj2 = 0 ;
38388 PyObject * obj3 = 0 ;
38389 PyObject * obj4 = 0 ;
38390 PyObject * obj5 = 0 ;
38391 PyObject * obj6 = 0 ;
38392 char * kwnames[] = {
38393 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
38394 };
38395
38396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
38397 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38398 if (!SWIG_IsOK(res1)) {
38399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyControl" "', expected argument " "1"" of type '" "wxWindow *""'");
38400 }
38401 arg1 = reinterpret_cast< wxWindow * >(argp1);
38402 if (obj1) {
38403 ecode2 = SWIG_AsVal_int(obj1, &val2);
38404 if (!SWIG_IsOK(ecode2)) {
38405 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyControl" "', expected argument " "2"" of type '" "int""'");
38406 }
38407 arg2 = static_cast< int >(val2);
38408 }
38409 if (obj2) {
d55e5bfc 38410 {
1bd55598
RD
38411 arg3 = &temp3;
38412 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 38413 }
1bd55598
RD
38414 }
38415 if (obj3) {
d55e5bfc 38416 {
1bd55598
RD
38417 arg4 = &temp4;
38418 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 38419 }
1bd55598
RD
38420 }
38421 if (obj4) {
38422 ecode5 = SWIG_AsVal_long(obj4, &val5);
38423 if (!SWIG_IsOK(ecode5)) {
38424 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyControl" "', expected argument " "5"" of type '" "long""'");
38425 }
38426 arg5 = static_cast< long >(val5);
38427 }
38428 if (obj5) {
38429 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
38430 if (!SWIG_IsOK(res6)) {
38431 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
f20a2e1f 38432 }
1bd55598
RD
38433 if (!argp6) {
38434 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
f20a2e1f 38435 }
1bd55598
RD
38436 arg6 = reinterpret_cast< wxValidator * >(argp6);
38437 }
38438 if (obj6) {
f20a2e1f 38439 {
1bd55598
RD
38440 arg7 = wxString_in_helper(obj6);
38441 if (arg7 == NULL) SWIG_fail;
38442 temp7 = true;
f20a2e1f 38443 }
1bd55598
RD
38444 }
38445 {
38446 if (!wxPyCheckForApp()) SWIG_fail;
38447 PyThreadState* __tstate = wxPyBeginAllowThreads();
38448 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
38449 wxPyEndAllowThreads(__tstate);
38450 if (PyErr_Occurred()) SWIG_fail;
38451 }
38452 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_NEW | 0 );
38453 {
38454 if (temp7)
38455 delete arg7;
38456 }
38457 return resultobj;
38458fail:
38459 {
38460 if (temp7)
38461 delete arg7;
38462 }
38463 return NULL;
d55e5bfc
RD
38464}
38465
38466
1bd55598
RD
38467SWIGINTERN PyObject *_wrap_new_PrePyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38468 PyObject *resultobj = 0;
38469 wxPyControl *result = 0 ;
38470
38471 if (!SWIG_Python_UnpackTuple(args,"new_PrePyControl",0,0,0)) SWIG_fail;
38472 {
38473 if (!wxPyCheckForApp()) SWIG_fail;
38474 PyThreadState* __tstate = wxPyBeginAllowThreads();
38475 result = (wxPyControl *)new wxPyControl();
38476 wxPyEndAllowThreads(__tstate);
38477 if (PyErr_Occurred()) SWIG_fail;
38478 }
38479 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_OWN | 0 );
38480 return resultobj;
38481fail:
38482 return NULL;
38483}
38484
38485
38486SWIGINTERN PyObject *_wrap_PyControl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38487 PyObject *resultobj = 0;
38488 wxPyControl *arg1 = (wxPyControl *) 0 ;
38489 PyObject *arg2 = (PyObject *) 0 ;
38490 PyObject *arg3 = (PyObject *) 0 ;
38491 void *argp1 = 0 ;
38492 int res1 = 0 ;
38493 PyObject * obj0 = 0 ;
38494 PyObject * obj1 = 0 ;
38495 PyObject * obj2 = 0 ;
38496 char * kwnames[] = {
38497 (char *) "self",(char *) "self",(char *) "_class", NULL
38498 };
38499
38500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38502 if (!SWIG_IsOK(res1)) {
38503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyControl *""'");
38504 }
38505 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38506 arg2 = obj1;
38507 arg3 = obj2;
38508 {
38509 PyThreadState* __tstate = wxPyBeginAllowThreads();
38510 (arg1)->_setCallbackInfo(arg2,arg3);
38511 wxPyEndAllowThreads(__tstate);
38512 if (PyErr_Occurred()) SWIG_fail;
38513 }
38514 resultobj = SWIG_Py_Void();
38515 return resultobj;
38516fail:
38517 return NULL;
38518}
38519
38520
38521SWIGINTERN PyObject *_wrap_PyControl_SetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38522 PyObject *resultobj = 0;
38523 wxPyControl *arg1 = (wxPyControl *) 0 ;
38524 wxSize *arg2 = 0 ;
38525 void *argp1 = 0 ;
38526 int res1 = 0 ;
38527 wxSize temp2 ;
38528 PyObject * obj0 = 0 ;
38529 PyObject * obj1 = 0 ;
38530 char * kwnames[] = {
38531 (char *) "self",(char *) "size", NULL
38532 };
38533
38534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
38535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38536 if (!SWIG_IsOK(res1)) {
38537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_SetBestSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38538 }
38539 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38540 {
38541 arg2 = &temp2;
38542 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
38543 }
38544 {
38545 PyThreadState* __tstate = wxPyBeginAllowThreads();
38546 (arg1)->SetBestSize((wxSize const &)*arg2);
38547 wxPyEndAllowThreads(__tstate);
38548 if (PyErr_Occurred()) SWIG_fail;
38549 }
38550 resultobj = SWIG_Py_Void();
38551 return resultobj;
38552fail:
38553 return NULL;
38554}
38555
38556
38557SWIGINTERN PyObject *_wrap_PyControl_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38558 PyObject *resultobj = 0;
38559 wxPyControl *arg1 = (wxPyControl *) 0 ;
38560 wxDC *arg2 = (wxDC *) 0 ;
38561 bool result;
38562 void *argp1 = 0 ;
38563 int res1 = 0 ;
38564 void *argp2 = 0 ;
38565 int res2 = 0 ;
38566 PyObject * obj0 = 0 ;
38567 PyObject * obj1 = 0 ;
38568 char * kwnames[] = {
38569 (char *) "self",(char *) "dc", NULL
38570 };
38571
38572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38574 if (!SWIG_IsOK(res1)) {
38575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyControl *""'");
38576 }
38577 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38578 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
38579 if (!SWIG_IsOK(res2)) {
38580 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyControl_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'");
38581 }
38582 arg2 = reinterpret_cast< wxDC * >(argp2);
38583 {
38584 PyThreadState* __tstate = wxPyBeginAllowThreads();
38585 result = (bool)(arg1)->DoEraseBackground(arg2);
38586 wxPyEndAllowThreads(__tstate);
38587 if (PyErr_Occurred()) SWIG_fail;
38588 }
38589 {
38590 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38591 }
38592 return resultobj;
38593fail:
38594 return NULL;
38595}
38596
38597
38598SWIGINTERN PyObject *_wrap_PyControl_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38599 PyObject *resultobj = 0;
38600 wxPyControl *arg1 = (wxPyControl *) 0 ;
38601 int arg2 ;
38602 int arg3 ;
38603 int arg4 ;
38604 int arg5 ;
38605 void *argp1 = 0 ;
38606 int res1 = 0 ;
38607 int val2 ;
38608 int ecode2 = 0 ;
38609 int val3 ;
38610 int ecode3 = 0 ;
38611 int val4 ;
38612 int ecode4 = 0 ;
38613 int val5 ;
38614 int ecode5 = 0 ;
38615 PyObject * obj0 = 0 ;
38616 PyObject * obj1 = 0 ;
38617 PyObject * obj2 = 0 ;
38618 PyObject * obj3 = 0 ;
38619 PyObject * obj4 = 0 ;
38620 char * kwnames[] = {
38621 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
38622 };
38623
38624 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38625 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38626 if (!SWIG_IsOK(res1)) {
38627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyControl *""'");
38628 }
38629 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38630 ecode2 = SWIG_AsVal_int(obj1, &val2);
38631 if (!SWIG_IsOK(ecode2)) {
38632 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoMoveWindow" "', expected argument " "2"" of type '" "int""'");
38633 }
38634 arg2 = static_cast< int >(val2);
38635 ecode3 = SWIG_AsVal_int(obj2, &val3);
38636 if (!SWIG_IsOK(ecode3)) {
38637 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoMoveWindow" "', expected argument " "3"" of type '" "int""'");
38638 }
38639 arg3 = static_cast< int >(val3);
38640 ecode4 = SWIG_AsVal_int(obj3, &val4);
38641 if (!SWIG_IsOK(ecode4)) {
38642 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoMoveWindow" "', expected argument " "4"" of type '" "int""'");
38643 }
38644 arg4 = static_cast< int >(val4);
38645 ecode5 = SWIG_AsVal_int(obj4, &val5);
38646 if (!SWIG_IsOK(ecode5)) {
38647 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoMoveWindow" "', expected argument " "5"" of type '" "int""'");
38648 }
38649 arg5 = static_cast< int >(val5);
38650 {
38651 PyThreadState* __tstate = wxPyBeginAllowThreads();
38652 (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5);
38653 wxPyEndAllowThreads(__tstate);
38654 if (PyErr_Occurred()) SWIG_fail;
38655 }
38656 resultobj = SWIG_Py_Void();
38657 return resultobj;
38658fail:
38659 return NULL;
38660}
38661
38662
38663SWIGINTERN PyObject *_wrap_PyControl_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38664 PyObject *resultobj = 0;
38665 wxPyControl *arg1 = (wxPyControl *) 0 ;
38666 int arg2 ;
38667 int arg3 ;
38668 int arg4 ;
38669 int arg5 ;
38670 int arg6 = (int) wxSIZE_AUTO ;
38671 void *argp1 = 0 ;
38672 int res1 = 0 ;
38673 int val2 ;
38674 int ecode2 = 0 ;
38675 int val3 ;
38676 int ecode3 = 0 ;
38677 int val4 ;
38678 int ecode4 = 0 ;
38679 int val5 ;
38680 int ecode5 = 0 ;
38681 int val6 ;
38682 int ecode6 = 0 ;
38683 PyObject * obj0 = 0 ;
38684 PyObject * obj1 = 0 ;
38685 PyObject * obj2 = 0 ;
38686 PyObject * obj3 = 0 ;
38687 PyObject * obj4 = 0 ;
38688 PyObject * obj5 = 0 ;
38689 char * kwnames[] = {
38690 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
38691 };
38692
38693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38695 if (!SWIG_IsOK(res1)) {
38696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38697 }
38698 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38699 ecode2 = SWIG_AsVal_int(obj1, &val2);
38700 if (!SWIG_IsOK(ecode2)) {
38701 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetSize" "', expected argument " "2"" of type '" "int""'");
38702 }
38703 arg2 = static_cast< int >(val2);
38704 ecode3 = SWIG_AsVal_int(obj2, &val3);
38705 if (!SWIG_IsOK(ecode3)) {
38706 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetSize" "', expected argument " "3"" of type '" "int""'");
38707 }
38708 arg3 = static_cast< int >(val3);
38709 ecode4 = SWIG_AsVal_int(obj3, &val4);
38710 if (!SWIG_IsOK(ecode4)) {
38711 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoSetSize" "', expected argument " "4"" of type '" "int""'");
38712 }
38713 arg4 = static_cast< int >(val4);
38714 ecode5 = SWIG_AsVal_int(obj4, &val5);
38715 if (!SWIG_IsOK(ecode5)) {
38716 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoSetSize" "', expected argument " "5"" of type '" "int""'");
38717 }
38718 arg5 = static_cast< int >(val5);
38719 if (obj5) {
38720 ecode6 = SWIG_AsVal_int(obj5, &val6);
38721 if (!SWIG_IsOK(ecode6)) {
38722 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyControl_DoSetSize" "', expected argument " "6"" of type '" "int""'");
38723 }
38724 arg6 = static_cast< int >(val6);
38725 }
38726 {
38727 PyThreadState* __tstate = wxPyBeginAllowThreads();
38728 (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6);
38729 wxPyEndAllowThreads(__tstate);
38730 if (PyErr_Occurred()) SWIG_fail;
38731 }
38732 resultobj = SWIG_Py_Void();
38733 return resultobj;
38734fail:
38735 return NULL;
38736}
38737
38738
38739SWIGINTERN PyObject *_wrap_PyControl_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38740 PyObject *resultobj = 0;
38741 wxPyControl *arg1 = (wxPyControl *) 0 ;
38742 int arg2 ;
38743 int arg3 ;
38744 void *argp1 = 0 ;
38745 int res1 = 0 ;
38746 int val2 ;
38747 int ecode2 = 0 ;
38748 int val3 ;
38749 int ecode3 = 0 ;
38750 PyObject * obj0 = 0 ;
38751 PyObject * obj1 = 0 ;
38752 PyObject * obj2 = 0 ;
38753 char * kwnames[] = {
38754 (char *) "self",(char *) "width",(char *) "height", NULL
38755 };
38756
38757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38759 if (!SWIG_IsOK(res1)) {
38760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38761 }
38762 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38763 ecode2 = SWIG_AsVal_int(obj1, &val2);
38764 if (!SWIG_IsOK(ecode2)) {
38765 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetClientSize" "', expected argument " "2"" of type '" "int""'");
38766 }
38767 arg2 = static_cast< int >(val2);
38768 ecode3 = SWIG_AsVal_int(obj2, &val3);
38769 if (!SWIG_IsOK(ecode3)) {
38770 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetClientSize" "', expected argument " "3"" of type '" "int""'");
38771 }
38772 arg3 = static_cast< int >(val3);
38773 {
38774 PyThreadState* __tstate = wxPyBeginAllowThreads();
38775 (arg1)->DoSetClientSize(arg2,arg3);
38776 wxPyEndAllowThreads(__tstate);
38777 if (PyErr_Occurred()) SWIG_fail;
38778 }
38779 resultobj = SWIG_Py_Void();
38780 return resultobj;
38781fail:
38782 return NULL;
38783}
38784
38785
38786SWIGINTERN PyObject *_wrap_PyControl_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38787 PyObject *resultobj = 0;
38788 wxPyControl *arg1 = (wxPyControl *) 0 ;
38789 int arg2 ;
38790 int arg3 ;
38791 void *argp1 = 0 ;
38792 int res1 = 0 ;
38793 int val2 ;
38794 int ecode2 = 0 ;
38795 int val3 ;
38796 int ecode3 = 0 ;
38797 PyObject * obj0 = 0 ;
38798 PyObject * obj1 = 0 ;
38799 PyObject * obj2 = 0 ;
38800 char * kwnames[] = {
38801 (char *) "self",(char *) "x",(char *) "y", NULL
38802 };
38803
38804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38806 if (!SWIG_IsOK(res1)) {
38807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38808 }
38809 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38810 ecode2 = SWIG_AsVal_int(obj1, &val2);
38811 if (!SWIG_IsOK(ecode2)) {
38812 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'");
38813 }
38814 arg2 = static_cast< int >(val2);
38815 ecode3 = SWIG_AsVal_int(obj2, &val3);
38816 if (!SWIG_IsOK(ecode3)) {
38817 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'");
38818 }
38819 arg3 = static_cast< int >(val3);
38820 {
38821 PyThreadState* __tstate = wxPyBeginAllowThreads();
38822 (arg1)->DoSetVirtualSize(arg2,arg3);
38823 wxPyEndAllowThreads(__tstate);
38824 if (PyErr_Occurred()) SWIG_fail;
38825 }
38826 resultobj = SWIG_Py_Void();
38827 return resultobj;
38828fail:
38829 return NULL;
38830}
38831
38832
38833SWIGINTERN PyObject *_wrap_PyControl_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38834 PyObject *resultobj = 0;
38835 wxPyControl *arg1 = (wxPyControl *) 0 ;
38836 int *arg2 = (int *) 0 ;
38837 int *arg3 = (int *) 0 ;
38838 void *argp1 = 0 ;
38839 int res1 = 0 ;
38840 int temp2 ;
38841 int res2 = SWIG_TMPOBJ ;
38842 int temp3 ;
38843 int res3 = SWIG_TMPOBJ ;
38844 PyObject *swig_obj[1] ;
38845
38846 arg2 = &temp2;
38847 arg3 = &temp3;
38848 if (!args) SWIG_fail;
38849 swig_obj[0] = args;
38850 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38851 if (!SWIG_IsOK(res1)) {
38852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38853 }
38854 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38855 {
38856 PyThreadState* __tstate = wxPyBeginAllowThreads();
38857 ((wxPyControl const *)arg1)->DoGetSize(arg2,arg3);
38858 wxPyEndAllowThreads(__tstate);
38859 if (PyErr_Occurred()) SWIG_fail;
38860 }
38861 resultobj = SWIG_Py_Void();
38862 if (SWIG_IsTmpObj(res2)) {
38863 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38864 } else {
38865 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38866 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38867 }
38868 if (SWIG_IsTmpObj(res3)) {
38869 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38870 } else {
38871 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38872 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38873 }
38874 return resultobj;
38875fail:
38876 return NULL;
38877}
38878
38879
38880SWIGINTERN PyObject *_wrap_PyControl_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38881 PyObject *resultobj = 0;
38882 wxPyControl *arg1 = (wxPyControl *) 0 ;
38883 int *arg2 = (int *) 0 ;
38884 int *arg3 = (int *) 0 ;
38885 void *argp1 = 0 ;
38886 int res1 = 0 ;
38887 int temp2 ;
38888 int res2 = SWIG_TMPOBJ ;
38889 int temp3 ;
38890 int res3 = SWIG_TMPOBJ ;
38891 PyObject *swig_obj[1] ;
38892
38893 arg2 = &temp2;
38894 arg3 = &temp3;
38895 if (!args) SWIG_fail;
38896 swig_obj[0] = args;
38897 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38898 if (!SWIG_IsOK(res1)) {
38899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38900 }
38901 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38902 {
38903 PyThreadState* __tstate = wxPyBeginAllowThreads();
38904 ((wxPyControl const *)arg1)->DoGetClientSize(arg2,arg3);
38905 wxPyEndAllowThreads(__tstate);
38906 if (PyErr_Occurred()) SWIG_fail;
38907 }
38908 resultobj = SWIG_Py_Void();
38909 if (SWIG_IsTmpObj(res2)) {
38910 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38911 } else {
38912 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38913 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38914 }
38915 if (SWIG_IsTmpObj(res3)) {
38916 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38917 } else {
38918 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38919 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38920 }
38921 return resultobj;
38922fail:
38923 return NULL;
38924}
38925
38926
38927SWIGINTERN PyObject *_wrap_PyControl_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38928 PyObject *resultobj = 0;
38929 wxPyControl *arg1 = (wxPyControl *) 0 ;
38930 int *arg2 = (int *) 0 ;
38931 int *arg3 = (int *) 0 ;
38932 void *argp1 = 0 ;
38933 int res1 = 0 ;
38934 int temp2 ;
38935 int res2 = SWIG_TMPOBJ ;
38936 int temp3 ;
38937 int res3 = SWIG_TMPOBJ ;
38938 PyObject *swig_obj[1] ;
38939
38940 arg2 = &temp2;
38941 arg3 = &temp3;
38942 if (!args) SWIG_fail;
38943 swig_obj[0] = args;
38944 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38945 if (!SWIG_IsOK(res1)) {
38946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetPosition" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38947 }
38948 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38949 {
38950 PyThreadState* __tstate = wxPyBeginAllowThreads();
38951 ((wxPyControl const *)arg1)->DoGetPosition(arg2,arg3);
38952 wxPyEndAllowThreads(__tstate);
38953 if (PyErr_Occurred()) SWIG_fail;
38954 }
38955 resultobj = SWIG_Py_Void();
38956 if (SWIG_IsTmpObj(res2)) {
38957 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38958 } else {
38959 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38960 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38961 }
38962 if (SWIG_IsTmpObj(res3)) {
38963 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38964 } else {
38965 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38966 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38967 }
38968 return resultobj;
38969fail:
38970 return NULL;
d55e5bfc
RD
38971}
38972
38973
1bd55598
RD
38974SWIGINTERN PyObject *_wrap_PyControl_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38975 PyObject *resultobj = 0;
38976 wxPyControl *arg1 = (wxPyControl *) 0 ;
38977 wxSize result;
38978 void *argp1 = 0 ;
38979 int res1 = 0 ;
38980 PyObject *swig_obj[1] ;
38981
38982 if (!args) SWIG_fail;
38983 swig_obj[0] = args;
38984 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38985 if (!SWIG_IsOK(res1)) {
38986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38987 }
38988 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38989 {
38990 PyThreadState* __tstate = wxPyBeginAllowThreads();
38991 result = ((wxPyControl const *)arg1)->DoGetVirtualSize();
38992 wxPyEndAllowThreads(__tstate);
38993 if (PyErr_Occurred()) SWIG_fail;
38994 }
38995 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
38996 return resultobj;
38997fail:
38998 return NULL;
7e08d4ef
RD
38999}
39000
39001
1bd55598
RD
39002SWIGINTERN PyObject *_wrap_PyControl_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39003 PyObject *resultobj = 0;
39004 wxPyControl *arg1 = (wxPyControl *) 0 ;
39005 wxSize result;
39006 void *argp1 = 0 ;
39007 int res1 = 0 ;
39008 PyObject *swig_obj[1] ;
39009
39010 if (!args) SWIG_fail;
39011 swig_obj[0] = args;
39012 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39013 if (!SWIG_IsOK(res1)) {
39014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39015 }
39016 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39017 {
39018 PyThreadState* __tstate = wxPyBeginAllowThreads();
39019 result = ((wxPyControl const *)arg1)->DoGetBestSize();
39020 wxPyEndAllowThreads(__tstate);
39021 if (PyErr_Occurred()) SWIG_fail;
39022 }
39023 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39024 return resultobj;
39025fail:
39026 return NULL;
d55e5bfc
RD
39027}
39028
39029
1bd55598
RD
39030SWIGINTERN PyObject *_wrap_PyControl_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39031 PyObject *resultobj = 0;
39032 wxPyControl *arg1 = (wxPyControl *) 0 ;
39033 SwigValueWrapper<wxVisualAttributes > result;
39034 void *argp1 = 0 ;
39035 int res1 = 0 ;
39036 PyObject *swig_obj[1] ;
39037
39038 if (!args) SWIG_fail;
39039 swig_obj[0] = args;
39040 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39041 if (!SWIG_IsOK(res1)) {
39042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyControl *""'");
39043 }
39044 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39045 {
39046 PyThreadState* __tstate = wxPyBeginAllowThreads();
39047 result = (arg1)->GetDefaultAttributes();
39048 wxPyEndAllowThreads(__tstate);
39049 if (PyErr_Occurred()) SWIG_fail;
39050 }
39051 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
39052 return resultobj;
39053fail:
39054 return NULL;
d55e5bfc
RD
39055}
39056
39057
1bd55598
RD
39058SWIGINTERN PyObject *_wrap_PyControl_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39059 PyObject *resultobj = 0;
39060 wxPyControl *arg1 = (wxPyControl *) 0 ;
39061 void *argp1 = 0 ;
39062 int res1 = 0 ;
39063 PyObject *swig_obj[1] ;
39064
39065 if (!args) SWIG_fail;
39066 swig_obj[0] = args;
39067 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39068 if (!SWIG_IsOK(res1)) {
39069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyControl *""'");
39070 }
39071 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39072 {
39073 PyThreadState* __tstate = wxPyBeginAllowThreads();
39074 (arg1)->OnInternalIdle();
39075 wxPyEndAllowThreads(__tstate);
39076 if (PyErr_Occurred()) SWIG_fail;
39077 }
39078 resultobj = SWIG_Py_Void();
39079 return resultobj;
39080fail:
39081 return NULL;
39082}
39083
39084
39085SWIGINTERN PyObject *PyControl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39086 PyObject *obj;
39087 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39088 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyControl, SWIG_NewClientData(obj));
39089 return SWIG_Py_Void();
39090}
39091
39092SWIGINTERN PyObject *PyControl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39093 return SWIG_Python_InitShadowInstance(args);
39094}
39095
39096SWIGINTERN PyObject *_wrap_new_HelpEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39097 PyObject *resultobj = 0;
39098 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
39099 int arg2 = (int) 0 ;
39100 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39101 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
704eda0c 39102 wxHelpEvent::Origin arg4 = (wxHelpEvent::Origin) wxHelpEvent::Origin_Unknown ;
1bd55598
RD
39103 wxHelpEvent *result = 0 ;
39104 int val1 ;
39105 int ecode1 = 0 ;
39106 int val2 ;
39107 int ecode2 = 0 ;
39108 wxPoint temp3 ;
704eda0c
RD
39109 int val4 ;
39110 int ecode4 = 0 ;
1bd55598
RD
39111 PyObject * obj0 = 0 ;
39112 PyObject * obj1 = 0 ;
39113 PyObject * obj2 = 0 ;
704eda0c 39114 PyObject * obj3 = 0 ;
1bd55598 39115 char * kwnames[] = {
704eda0c 39116 (char *) "type",(char *) "winid",(char *) "pt",(char *) "origin", NULL
1bd55598
RD
39117 };
39118
704eda0c 39119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
1bd55598
RD
39120 if (obj0) {
39121 ecode1 = SWIG_AsVal_int(obj0, &val1);
39122 if (!SWIG_IsOK(ecode1)) {
39123 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HelpEvent" "', expected argument " "1"" of type '" "wxEventType""'");
39124 }
39125 arg1 = static_cast< wxEventType >(val1);
39126 }
39127 if (obj1) {
39128 ecode2 = SWIG_AsVal_int(obj1, &val2);
39129 if (!SWIG_IsOK(ecode2)) {
39130 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HelpEvent" "', expected argument " "2"" of type '" "int""'");
39131 }
39132 arg2 = static_cast< int >(val2);
39133 }
39134 if (obj2) {
d55e5bfc 39135 {
1bd55598
RD
39136 arg3 = &temp3;
39137 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 39138 }
1bd55598 39139 }
704eda0c
RD
39140 if (obj3) {
39141 ecode4 = SWIG_AsVal_int(obj3, &val4);
39142 if (!SWIG_IsOK(ecode4)) {
39143 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_HelpEvent" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
39144 }
39145 arg4 = static_cast< wxHelpEvent::Origin >(val4);
39146 }
1bd55598
RD
39147 {
39148 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 39149 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3,arg4);
1bd55598
RD
39150 wxPyEndAllowThreads(__tstate);
39151 if (PyErr_Occurred()) SWIG_fail;
39152 }
39153 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_NEW | 0 );
39154 return resultobj;
39155fail:
39156 return NULL;
d55e5bfc
RD
39157}
39158
39159
1bd55598
RD
39160SWIGINTERN PyObject *_wrap_HelpEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39161 PyObject *resultobj = 0;
39162 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39163 wxPoint result;
39164 void *argp1 = 0 ;
39165 int res1 = 0 ;
39166 PyObject *swig_obj[1] ;
39167
39168 if (!args) SWIG_fail;
39169 swig_obj[0] = args;
39170 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39171 if (!SWIG_IsOK(res1)) {
39172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetPosition" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39173 }
39174 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39175 {
39176 PyThreadState* __tstate = wxPyBeginAllowThreads();
39177 result = ((wxHelpEvent const *)arg1)->GetPosition();
39178 wxPyEndAllowThreads(__tstate);
39179 if (PyErr_Occurred()) SWIG_fail;
39180 }
39181 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
39182 return resultobj;
39183fail:
39184 return NULL;
39185}
39186
39187
39188SWIGINTERN PyObject *_wrap_HelpEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39189 PyObject *resultobj = 0;
39190 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39191 wxPoint *arg2 = 0 ;
39192 void *argp1 = 0 ;
39193 int res1 = 0 ;
39194 wxPoint temp2 ;
39195 PyObject * obj0 = 0 ;
39196 PyObject * obj1 = 0 ;
39197 char * kwnames[] = {
39198 (char *) "self",(char *) "pos", NULL
39199 };
39200
39201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
39202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39203 if (!SWIG_IsOK(res1)) {
39204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetPosition" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39205 }
39206 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39207 {
39208 arg2 = &temp2;
39209 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39210 }
39211 {
39212 PyThreadState* __tstate = wxPyBeginAllowThreads();
39213 (arg1)->SetPosition((wxPoint const &)*arg2);
39214 wxPyEndAllowThreads(__tstate);
39215 if (PyErr_Occurred()) SWIG_fail;
39216 }
39217 resultobj = SWIG_Py_Void();
39218 return resultobj;
39219fail:
39220 return NULL;
d55e5bfc
RD
39221}
39222
39223
1bd55598
RD
39224SWIGINTERN PyObject *_wrap_HelpEvent_GetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39225 PyObject *resultobj = 0;
39226 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39227 wxString *result = 0 ;
39228 void *argp1 = 0 ;
39229 int res1 = 0 ;
39230 PyObject *swig_obj[1] ;
39231
39232 if (!args) SWIG_fail;
39233 swig_obj[0] = args;
39234 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39235 if (!SWIG_IsOK(res1)) {
39236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetLink" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39237 }
39238 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39239 {
39240 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 39241 {
1bd55598
RD
39242 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
39243 result = (wxString *) &_result_ref;
d55e5bfc 39244 }
1bd55598
RD
39245 wxPyEndAllowThreads(__tstate);
39246 if (PyErr_Occurred()) SWIG_fail;
39247 }
39248 {
39249#if wxUSE_UNICODE
39250 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39251#else
39252 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39253#endif
39254 }
39255 return resultobj;
39256fail:
39257 return NULL;
39258}
39259
39260
39261SWIGINTERN PyObject *_wrap_HelpEvent_SetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39262 PyObject *resultobj = 0;
39263 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39264 wxString *arg2 = 0 ;
39265 void *argp1 = 0 ;
39266 int res1 = 0 ;
39267 bool temp2 = false ;
39268 PyObject * obj0 = 0 ;
39269 PyObject * obj1 = 0 ;
39270 char * kwnames[] = {
39271 (char *) "self",(char *) "link", NULL
39272 };
39273
39274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) SWIG_fail;
39275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39276 if (!SWIG_IsOK(res1)) {
39277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetLink" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39278 }
39279 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39280 {
39281 arg2 = wxString_in_helper(obj1);
39282 if (arg2 == NULL) SWIG_fail;
39283 temp2 = true;
39284 }
39285 {
39286 PyThreadState* __tstate = wxPyBeginAllowThreads();
39287 (arg1)->SetLink((wxString const &)*arg2);
39288 wxPyEndAllowThreads(__tstate);
39289 if (PyErr_Occurred()) SWIG_fail;
39290 }
39291 resultobj = SWIG_Py_Void();
39292 {
39293 if (temp2)
39294 delete arg2;
39295 }
39296 return resultobj;
39297fail:
39298 {
39299 if (temp2)
39300 delete arg2;
39301 }
39302 return NULL;
d55e5bfc
RD
39303}
39304
39305
1bd55598
RD
39306SWIGINTERN PyObject *_wrap_HelpEvent_GetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39307 PyObject *resultobj = 0;
39308 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39309 wxString *result = 0 ;
39310 void *argp1 = 0 ;
39311 int res1 = 0 ;
39312 PyObject *swig_obj[1] ;
39313
39314 if (!args) SWIG_fail;
39315 swig_obj[0] = args;
39316 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39317 if (!SWIG_IsOK(res1)) {
39318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetTarget" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39319 }
39320 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39321 {
39322 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 39323 {
1bd55598
RD
39324 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
39325 result = (wxString *) &_result_ref;
d55e5bfc 39326 }
1bd55598
RD
39327 wxPyEndAllowThreads(__tstate);
39328 if (PyErr_Occurred()) SWIG_fail;
39329 }
39330 {
39331#if wxUSE_UNICODE
39332 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39333#else
39334 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39335#endif
39336 }
39337 return resultobj;
39338fail:
39339 return NULL;
39340}
39341
39342
39343SWIGINTERN PyObject *_wrap_HelpEvent_SetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39344 PyObject *resultobj = 0;
39345 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39346 wxString *arg2 = 0 ;
39347 void *argp1 = 0 ;
39348 int res1 = 0 ;
39349 bool temp2 = false ;
39350 PyObject * obj0 = 0 ;
39351 PyObject * obj1 = 0 ;
39352 char * kwnames[] = {
39353 (char *) "self",(char *) "target", NULL
39354 };
39355
39356 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) SWIG_fail;
39357 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39358 if (!SWIG_IsOK(res1)) {
39359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetTarget" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39360 }
39361 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39362 {
39363 arg2 = wxString_in_helper(obj1);
39364 if (arg2 == NULL) SWIG_fail;
39365 temp2 = true;
39366 }
39367 {
39368 PyThreadState* __tstate = wxPyBeginAllowThreads();
39369 (arg1)->SetTarget((wxString const &)*arg2);
39370 wxPyEndAllowThreads(__tstate);
39371 if (PyErr_Occurred()) SWIG_fail;
39372 }
39373 resultobj = SWIG_Py_Void();
39374 {
39375 if (temp2)
39376 delete arg2;
39377 }
39378 return resultobj;
39379fail:
39380 {
39381 if (temp2)
39382 delete arg2;
39383 }
39384 return NULL;
d55e5bfc
RD
39385}
39386
39387
704eda0c
RD
39388SWIGINTERN PyObject *_wrap_HelpEvent_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39389 PyObject *resultobj = 0;
39390 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39391 wxHelpEvent::Origin result;
39392 void *argp1 = 0 ;
39393 int res1 = 0 ;
39394 PyObject *swig_obj[1] ;
39395
39396 if (!args) SWIG_fail;
39397 swig_obj[0] = args;
39398 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39399 if (!SWIG_IsOK(res1)) {
39400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39401 }
39402 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39403 {
39404 PyThreadState* __tstate = wxPyBeginAllowThreads();
39405 result = (wxHelpEvent::Origin)((wxHelpEvent const *)arg1)->GetOrigin();
39406 wxPyEndAllowThreads(__tstate);
39407 if (PyErr_Occurred()) SWIG_fail;
39408 }
39409 resultobj = SWIG_From_int(static_cast< int >(result));
39410 return resultobj;
39411fail:
39412 return NULL;
39413}
39414
39415
39416SWIGINTERN PyObject *_wrap_HelpEvent_SetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39417 PyObject *resultobj = 0;
39418 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39419 wxHelpEvent::Origin arg2 ;
39420 void *argp1 = 0 ;
39421 int res1 = 0 ;
39422 int val2 ;
39423 int ecode2 = 0 ;
39424 PyObject * obj0 = 0 ;
39425 PyObject * obj1 = 0 ;
39426 char * kwnames[] = {
39427 (char *) "self",(char *) "origin", NULL
39428 };
39429
39430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetOrigin",kwnames,&obj0,&obj1)) SWIG_fail;
39431 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39432 if (!SWIG_IsOK(res1)) {
39433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39434 }
39435 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39436 ecode2 = SWIG_AsVal_int(obj1, &val2);
39437 if (!SWIG_IsOK(ecode2)) {
39438 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpEvent_SetOrigin" "', expected argument " "2"" of type '" "wxHelpEvent::Origin""'");
39439 }
39440 arg2 = static_cast< wxHelpEvent::Origin >(val2);
39441 {
39442 PyThreadState* __tstate = wxPyBeginAllowThreads();
39443 (arg1)->SetOrigin(arg2);
39444 wxPyEndAllowThreads(__tstate);
39445 if (PyErr_Occurred()) SWIG_fail;
39446 }
39447 resultobj = SWIG_Py_Void();
39448 return resultobj;
39449fail:
39450 return NULL;
39451}
39452
39453
1bd55598
RD
39454SWIGINTERN PyObject *HelpEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39455 PyObject *obj;
39456 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39457 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpEvent, SWIG_NewClientData(obj));
39458 return SWIG_Py_Void();
39459}
39460
39461SWIGINTERN PyObject *HelpEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39462 return SWIG_Python_InitShadowInstance(args);
39463}
39464
39465SWIGINTERN PyObject *_wrap_new_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39466 PyObject *resultobj = 0;
39467 wxWindow *arg1 = (wxWindow *) NULL ;
39468 bool arg2 = (bool) true ;
39469 wxContextHelp *result = 0 ;
39470 void *argp1 = 0 ;
39471 int res1 = 0 ;
39472 bool val2 ;
39473 int ecode2 = 0 ;
39474 PyObject * obj0 = 0 ;
39475 PyObject * obj1 = 0 ;
39476 char * kwnames[] = {
39477 (char *) "window",(char *) "doNow", NULL
39478 };
39479
39480 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39481 if (obj0) {
39482 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39483 if (!SWIG_IsOK(res1)) {
39484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelp" "', expected argument " "1"" of type '" "wxWindow *""'");
d55e5bfc 39485 }
1bd55598
RD
39486 arg1 = reinterpret_cast< wxWindow * >(argp1);
39487 }
39488 if (obj1) {
39489 ecode2 = SWIG_AsVal_bool(obj1, &val2);
39490 if (!SWIG_IsOK(ecode2)) {
39491 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelp" "', expected argument " "2"" of type '" "bool""'");
39492 }
39493 arg2 = static_cast< bool >(val2);
39494 }
39495 {
39496 if (!wxPyCheckForApp()) SWIG_fail;
39497 PyThreadState* __tstate = wxPyBeginAllowThreads();
39498 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
39499 wxPyEndAllowThreads(__tstate);
39500 if (PyErr_Occurred()) SWIG_fail;
39501 }
39502 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelp, SWIG_POINTER_NEW | 0 );
39503 return resultobj;
39504fail:
39505 return NULL;
d55e5bfc
RD
39506}
39507
39508
1bd55598
RD
39509SWIGINTERN PyObject *_wrap_delete_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39510 PyObject *resultobj = 0;
39511 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39512 void *argp1 = 0 ;
39513 int res1 = 0 ;
39514 PyObject *swig_obj[1] ;
39515
39516 if (!args) SWIG_fail;
39517 swig_obj[0] = args;
39518 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, SWIG_POINTER_DISOWN | 0 );
39519 if (!SWIG_IsOK(res1)) {
39520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39521 }
39522 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39523 {
39524 PyThreadState* __tstate = wxPyBeginAllowThreads();
39525 delete arg1;
d55e5bfc 39526
1bd55598
RD
39527 wxPyEndAllowThreads(__tstate);
39528 if (PyErr_Occurred()) SWIG_fail;
39529 }
39530 resultobj = SWIG_Py_Void();
39531 return resultobj;
39532fail:
39533 return NULL;
39534}
39535
39536
39537SWIGINTERN PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39538 PyObject *resultobj = 0;
39539 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39540 wxWindow *arg2 = (wxWindow *) NULL ;
39541 bool result;
39542 void *argp1 = 0 ;
39543 int res1 = 0 ;
39544 void *argp2 = 0 ;
39545 int res2 = 0 ;
39546 PyObject * obj0 = 0 ;
39547 PyObject * obj1 = 0 ;
39548 char * kwnames[] = {
39549 (char *) "self",(char *) "window", NULL
39550 };
39551
39552 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39553 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39554 if (!SWIG_IsOK(res1)) {
39555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39556 }
39557 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39558 if (obj1) {
39559 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39560 if (!SWIG_IsOK(res2)) {
39561 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
d55e5bfc 39562 }
1bd55598
RD
39563 arg2 = reinterpret_cast< wxWindow * >(argp2);
39564 }
39565 {
39566 PyThreadState* __tstate = wxPyBeginAllowThreads();
39567 result = (bool)(arg1)->BeginContextHelp(arg2);
39568 wxPyEndAllowThreads(__tstate);
39569 if (PyErr_Occurred()) SWIG_fail;
39570 }
39571 {
39572 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39573 }
39574 return resultobj;
39575fail:
39576 return NULL;
d55e5bfc
RD
39577}
39578
39579
1bd55598
RD
39580SWIGINTERN PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39581 PyObject *resultobj = 0;
39582 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39583 bool result;
39584 void *argp1 = 0 ;
39585 int res1 = 0 ;
39586 PyObject *swig_obj[1] ;
39587
39588 if (!args) SWIG_fail;
39589 swig_obj[0] = args;
39590 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39591 if (!SWIG_IsOK(res1)) {
39592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_EndContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39593 }
39594 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39595 {
39596 PyThreadState* __tstate = wxPyBeginAllowThreads();
39597 result = (bool)(arg1)->EndContextHelp();
39598 wxPyEndAllowThreads(__tstate);
39599 if (PyErr_Occurred()) SWIG_fail;
39600 }
39601 {
39602 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39603 }
39604 return resultobj;
39605fail:
39606 return NULL;
39607}
39608
39609
39610SWIGINTERN PyObject *ContextHelp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39611 PyObject *obj;
39612 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39613 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelp, SWIG_NewClientData(obj));
39614 return SWIG_Py_Void();
39615}
39616
39617SWIGINTERN PyObject *ContextHelp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39618 return SWIG_Python_InitShadowInstance(args);
39619}
39620
39621SWIGINTERN PyObject *_wrap_new_ContextHelpButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39622 PyObject *resultobj = 0;
39623 wxWindow *arg1 = (wxWindow *) 0 ;
39624 int arg2 = (int) wxID_CONTEXT_HELP ;
39625 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39626 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39627 wxSize const &arg4_defvalue = wxDefaultSize ;
39628 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
39629 long arg5 = (long) wxBU_AUTODRAW ;
39630 wxContextHelpButton *result = 0 ;
39631 void *argp1 = 0 ;
39632 int res1 = 0 ;
39633 int val2 ;
39634 int ecode2 = 0 ;
39635 wxPoint temp3 ;
39636 wxSize temp4 ;
39637 long val5 ;
39638 int ecode5 = 0 ;
39639 PyObject * obj0 = 0 ;
39640 PyObject * obj1 = 0 ;
39641 PyObject * obj2 = 0 ;
39642 PyObject * obj3 = 0 ;
39643 PyObject * obj4 = 0 ;
39644 char * kwnames[] = {
39645 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
39646 };
39647
39648 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39649 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39650 if (!SWIG_IsOK(res1)) {
39651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelpButton" "', expected argument " "1"" of type '" "wxWindow *""'");
39652 }
39653 arg1 = reinterpret_cast< wxWindow * >(argp1);
39654 if (obj1) {
39655 ecode2 = SWIG_AsVal_int(obj1, &val2);
39656 if (!SWIG_IsOK(ecode2)) {
39657 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelpButton" "', expected argument " "2"" of type '" "int""'");
39658 }
39659 arg2 = static_cast< int >(val2);
39660 }
39661 if (obj2) {
d55e5bfc 39662 {
1bd55598
RD
39663 arg3 = &temp3;
39664 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 39665 }
1bd55598
RD
39666 }
39667 if (obj3) {
d55e5bfc 39668 {
1bd55598
RD
39669 arg4 = &temp4;
39670 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 39671 }
1bd55598
RD
39672 }
39673 if (obj4) {
39674 ecode5 = SWIG_AsVal_long(obj4, &val5);
39675 if (!SWIG_IsOK(ecode5)) {
39676 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ContextHelpButton" "', expected argument " "5"" of type '" "long""'");
39677 }
39678 arg5 = static_cast< long >(val5);
39679 }
39680 {
39681 if (!wxPyCheckForApp()) SWIG_fail;
39682 PyThreadState* __tstate = wxPyBeginAllowThreads();
39683 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
39684 wxPyEndAllowThreads(__tstate);
39685 if (PyErr_Occurred()) SWIG_fail;
39686 }
39687 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelpButton, SWIG_POINTER_NEW | 0 );
39688 return resultobj;
39689fail:
39690 return NULL;
d55e5bfc
RD
39691}
39692
39693
1bd55598
RD
39694SWIGINTERN PyObject *ContextHelpButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39695 PyObject *obj;
39696 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39697 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelpButton, SWIG_NewClientData(obj));
39698 return SWIG_Py_Void();
d55e5bfc
RD
39699}
39700
1bd55598
RD
39701SWIGINTERN PyObject *ContextHelpButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39702 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
39703}
39704
f52cbe90
RD
39705SWIGINTERN PyObject *_wrap_delete_HelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39706 PyObject *resultobj = 0;
39707 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39708 void *argp1 = 0 ;
39709 int res1 = 0 ;
39710 PyObject *swig_obj[1] ;
39711
39712 if (!args) SWIG_fail;
39713 swig_obj[0] = args;
39714 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
39715 if (!SWIG_IsOK(res1)) {
39716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HelpProvider" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39717 }
39718 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39719 {
39720 PyThreadState* __tstate = wxPyBeginAllowThreads();
39721 delete arg1;
39722
39723 wxPyEndAllowThreads(__tstate);
39724 if (PyErr_Occurred()) SWIG_fail;
39725 }
39726 resultobj = SWIG_Py_Void();
39727 return resultobj;
39728fail:
39729 return NULL;
39730}
39731
39732
1bd55598
RD
39733SWIGINTERN PyObject *_wrap_HelpProvider_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39734 PyObject *resultobj = 0;
39735 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39736 wxHelpProvider *result = 0 ;
39737 int res1 = 0 ;
39738 PyObject * obj0 = 0 ;
39739 char * kwnames[] = {
39740 (char *) "helpProvider", NULL
39741 };
39742
39743 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) SWIG_fail;
39744 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
39745 if (!SWIG_IsOK(res1)) {
39746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Set" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39747 }
39748 {
39749 PyThreadState* __tstate = wxPyBeginAllowThreads();
39750 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
39751 wxPyEndAllowThreads(__tstate);
39752 if (PyErr_Occurred()) SWIG_fail;
39753 }
39754 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_OWN | 0 );
39755 return resultobj;
39756fail:
39757 return NULL;
d55e5bfc
RD
39758}
39759
39760
1bd55598
RD
39761SWIGINTERN PyObject *_wrap_HelpProvider_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39762 PyObject *resultobj = 0;
39763 wxHelpProvider *result = 0 ;
39764
39765 if (!SWIG_Python_UnpackTuple(args,"HelpProvider_Get",0,0,0)) SWIG_fail;
39766 {
39767 PyThreadState* __tstate = wxPyBeginAllowThreads();
39768 result = (wxHelpProvider *)wxHelpProvider::Get();
39769 wxPyEndAllowThreads(__tstate);
39770 if (PyErr_Occurred()) SWIG_fail;
39771 }
39772 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39773 return resultobj;
39774fail:
39775 return NULL;
39776}
39777
39778
39779SWIGINTERN PyObject *_wrap_HelpProvider_GetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39780 PyObject *resultobj = 0;
39781 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39782 wxWindow *arg2 = (wxWindow *) 0 ;
39783 wxString result;
39784 void *argp1 = 0 ;
39785 int res1 = 0 ;
39786 void *argp2 = 0 ;
39787 int res2 = 0 ;
39788 PyObject * obj0 = 0 ;
39789 PyObject * obj1 = 0 ;
39790 char * kwnames[] = {
39791 (char *) "self",(char *) "window", NULL
39792 };
39793
39794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39796 if (!SWIG_IsOK(res1)) {
39797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_GetHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39798 }
39799 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39800 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39801 if (!SWIG_IsOK(res2)) {
39802 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_GetHelp" "', expected argument " "2"" of type '" "wxWindow const *""'");
39803 }
39804 arg2 = reinterpret_cast< wxWindow * >(argp2);
39805 {
39806 PyThreadState* __tstate = wxPyBeginAllowThreads();
39807 result = (arg1)->GetHelp((wxWindow const *)arg2);
39808 wxPyEndAllowThreads(__tstate);
39809 if (PyErr_Occurred()) SWIG_fail;
39810 }
39811 {
39812#if wxUSE_UNICODE
39813 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
39814#else
39815 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
39816#endif
39817 }
39818 return resultobj;
39819fail:
39820 return NULL;
39821}
39822
39823
39824SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39825 PyObject *resultobj = 0;
39826 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39827 wxWindow *arg2 = (wxWindow *) 0 ;
39828 bool result;
39829 void *argp1 = 0 ;
39830 int res1 = 0 ;
39831 void *argp2 = 0 ;
39832 int res2 = 0 ;
39833 PyObject * obj0 = 0 ;
39834 PyObject * obj1 = 0 ;
39835 char * kwnames[] = {
39836 (char *) "self",(char *) "window", NULL
39837 };
39838
39839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39841 if (!SWIG_IsOK(res1)) {
39842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39843 }
39844 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39845 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39846 if (!SWIG_IsOK(res2)) {
39847 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39848 }
39849 arg2 = reinterpret_cast< wxWindow * >(argp2);
39850 {
39851 PyThreadState* __tstate = wxPyBeginAllowThreads();
39852 result = (bool)(arg1)->ShowHelp(arg2);
39853 wxPyEndAllowThreads(__tstate);
39854 if (PyErr_Occurred()) SWIG_fail;
39855 }
39856 {
39857 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39858 }
39859 return resultobj;
39860fail:
39861 return NULL;
39862}
39863
39864
b850e7f3
RD
39865SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelpAtPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39866 PyObject *resultobj = 0;
39867 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39868 wxWindowBase *arg2 = (wxWindowBase *) 0 ;
39869 wxPoint *arg3 = 0 ;
39870 wxHelpEvent::Origin arg4 ;
39871 bool result;
39872 void *argp1 = 0 ;
39873 int res1 = 0 ;
39874 void *argp2 = 0 ;
39875 int res2 = 0 ;
39876 wxPoint temp3 ;
39877 int val4 ;
39878 int ecode4 = 0 ;
39879 PyObject * obj0 = 0 ;
39880 PyObject * obj1 = 0 ;
39881 PyObject * obj2 = 0 ;
39882 PyObject * obj3 = 0 ;
39883 char * kwnames[] = {
39884 (char *) "self",(char *) "window",(char *) "pt",(char *) "origin", NULL
39885 };
39886
39887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:HelpProvider_ShowHelpAtPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
39888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39889 if (!SWIG_IsOK(res1)) {
39890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39891 }
39892 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39893 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindowBase, 0 | 0 );
39894 if (!SWIG_IsOK(res2)) {
39895 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "2"" of type '" "wxWindowBase *""'");
39896 }
39897 arg2 = reinterpret_cast< wxWindowBase * >(argp2);
39898 {
39899 arg3 = &temp3;
39900 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
39901 }
39902 ecode4 = SWIG_AsVal_int(obj3, &val4);
39903 if (!SWIG_IsOK(ecode4)) {
39904 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
39905 }
39906 arg4 = static_cast< wxHelpEvent::Origin >(val4);
39907 {
39908 PyThreadState* __tstate = wxPyBeginAllowThreads();
39909 result = (bool)(arg1)->ShowHelpAtPoint(arg2,(wxPoint const &)*arg3,arg4);
39910 wxPyEndAllowThreads(__tstate);
39911 if (PyErr_Occurred()) SWIG_fail;
39912 }
39913 {
39914 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39915 }
39916 return resultobj;
39917fail:
39918 return NULL;
39919}
39920
39921
1bd55598
RD
39922SWIGINTERN PyObject *_wrap_HelpProvider_AddHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39923 PyObject *resultobj = 0;
39924 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39925 wxWindow *arg2 = (wxWindow *) 0 ;
39926 wxString *arg3 = 0 ;
39927 void *argp1 = 0 ;
39928 int res1 = 0 ;
39929 void *argp2 = 0 ;
39930 int res2 = 0 ;
39931 bool temp3 = false ;
39932 PyObject * obj0 = 0 ;
39933 PyObject * obj1 = 0 ;
39934 PyObject * obj2 = 0 ;
39935 char * kwnames[] = {
39936 (char *) "self",(char *) "window",(char *) "text", NULL
39937 };
39938
39939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39941 if (!SWIG_IsOK(res1)) {
39942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39943 }
39944 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39945 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39946 if (!SWIG_IsOK(res2)) {
39947 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_AddHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39948 }
39949 arg2 = reinterpret_cast< wxWindow * >(argp2);
39950 {
39951 arg3 = wxString_in_helper(obj2);
39952 if (arg3 == NULL) SWIG_fail;
39953 temp3 = true;
39954 }
39955 {
39956 PyThreadState* __tstate = wxPyBeginAllowThreads();
39957 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
39958 wxPyEndAllowThreads(__tstate);
39959 if (PyErr_Occurred()) SWIG_fail;
39960 }
39961 resultobj = SWIG_Py_Void();
39962 {
39963 if (temp3)
39964 delete arg3;
39965 }
39966 return resultobj;
39967fail:
39968 {
39969 if (temp3)
39970 delete arg3;
39971 }
39972 return NULL;
39973}
39974
39975
39976SWIGINTERN PyObject *_wrap_HelpProvider_AddHelpById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39977 PyObject *resultobj = 0;
39978 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39979 int arg2 ;
39980 wxString *arg3 = 0 ;
39981 void *argp1 = 0 ;
39982 int res1 = 0 ;
39983 int val2 ;
39984 int ecode2 = 0 ;
39985 bool temp3 = false ;
39986 PyObject * obj0 = 0 ;
39987 PyObject * obj1 = 0 ;
39988 PyObject * obj2 = 0 ;
39989 char * kwnames[] = {
39990 (char *) "self",(char *) "id",(char *) "text", NULL
39991 };
39992
39993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39995 if (!SWIG_IsOK(res1)) {
39996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelpById" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39997 }
39998 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39999 ecode2 = SWIG_AsVal_int(obj1, &val2);
40000 if (!SWIG_IsOK(ecode2)) {
40001 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpProvider_AddHelpById" "', expected argument " "2"" of type '" "int""'");
40002 }
40003 arg2 = static_cast< int >(val2);
40004 {
40005 arg3 = wxString_in_helper(obj2);
40006 if (arg3 == NULL) SWIG_fail;
40007 temp3 = true;
40008 }
40009 {
40010 PyThreadState* __tstate = wxPyBeginAllowThreads();
40011 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40012 wxPyEndAllowThreads(__tstate);
40013 if (PyErr_Occurred()) SWIG_fail;
40014 }
40015 resultobj = SWIG_Py_Void();
40016 {
40017 if (temp3)
40018 delete arg3;
40019 }
40020 return resultobj;
40021fail:
40022 {
40023 if (temp3)
40024 delete arg3;
40025 }
40026 return NULL;
40027}
40028
40029
40030SWIGINTERN PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40031 PyObject *resultobj = 0;
40032 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40033 wxWindow *arg2 = (wxWindow *) 0 ;
40034 void *argp1 = 0 ;
40035 int res1 = 0 ;
40036 void *argp2 = 0 ;
40037 int res2 = 0 ;
40038 PyObject * obj0 = 0 ;
40039 PyObject * obj1 = 0 ;
40040 char * kwnames[] = {
40041 (char *) "self",(char *) "window", NULL
40042 };
40043
40044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40046 if (!SWIG_IsOK(res1)) {
40047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40048 }
40049 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40050 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40051 if (!SWIG_IsOK(res2)) {
40052 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40053 }
40054 arg2 = reinterpret_cast< wxWindow * >(argp2);
40055 {
40056 PyThreadState* __tstate = wxPyBeginAllowThreads();
40057 (arg1)->RemoveHelp(arg2);
40058 wxPyEndAllowThreads(__tstate);
40059 if (PyErr_Occurred()) SWIG_fail;
40060 }
40061 resultobj = SWIG_Py_Void();
40062 return resultobj;
40063fail:
40064 return NULL;
d55e5bfc
RD
40065}
40066
40067
1bd55598
RD
40068SWIGINTERN PyObject *_wrap_HelpProvider_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40069 PyObject *resultobj = 0;
40070 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40071 void *argp1 = 0 ;
40072 int res1 = 0 ;
40073 PyObject *swig_obj[1] ;
40074
40075 if (!args) SWIG_fail;
40076 swig_obj[0] = args;
40077 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40078 if (!SWIG_IsOK(res1)) {
40079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Destroy" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40080 }
40081 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40082 {
40083 PyThreadState* __tstate = wxPyBeginAllowThreads();
40084 wxHelpProvider_Destroy(arg1);
40085 wxPyEndAllowThreads(__tstate);
40086 if (PyErr_Occurred()) SWIG_fail;
40087 }
40088 resultobj = SWIG_Py_Void();
40089 return resultobj;
40090fail:
40091 return NULL;
d55e5bfc
RD
40092}
40093
40094
1bd55598
RD
40095SWIGINTERN PyObject *HelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40096 PyObject *obj;
40097 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40098 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpProvider, SWIG_NewClientData(obj));
40099 return SWIG_Py_Void();
d55e5bfc
RD
40100}
40101
1bd55598
RD
40102SWIGINTERN PyObject *_wrap_new_SimpleHelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40103 PyObject *resultobj = 0;
40104 wxSimpleHelpProvider *result = 0 ;
40105
40106 if (!SWIG_Python_UnpackTuple(args,"new_SimpleHelpProvider",0,0,0)) SWIG_fail;
40107 {
40108 PyThreadState* __tstate = wxPyBeginAllowThreads();
40109 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
40110 wxPyEndAllowThreads(__tstate);
40111 if (PyErr_Occurred()) SWIG_fail;
40112 }
40113 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSimpleHelpProvider, SWIG_POINTER_NEW | 0 );
40114 return resultobj;
40115fail:
40116 return NULL;
40117}
40118
40119
40120SWIGINTERN PyObject *SimpleHelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40121 PyObject *obj;
40122 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40123 SWIG_TypeNewClientData(SWIGTYPE_p_wxSimpleHelpProvider, SWIG_NewClientData(obj));
40124 return SWIG_Py_Void();
40125}
40126
40127SWIGINTERN PyObject *SimpleHelpProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40128 return SWIG_Python_InitShadowInstance(args);
40129}
40130
40131SWIGINTERN PyObject *_wrap_new_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40132 PyObject *resultobj = 0;
40133 wxBitmap *arg1 = 0 ;
40134 wxCursor const &arg2_defvalue = wxNullCursor ;
40135 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40136 wxGenericDragImage *result = 0 ;
40137 void *argp1 = 0 ;
40138 int res1 = 0 ;
40139 void *argp2 = 0 ;
40140 int res2 = 0 ;
40141 PyObject * obj0 = 0 ;
40142 PyObject * obj1 = 0 ;
40143 char * kwnames[] = {
40144 (char *) "image",(char *) "cursor", NULL
40145 };
40146
40147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) SWIG_fail;
40148 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
40149 if (!SWIG_IsOK(res1)) {
40150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40151 }
40152 if (!argp1) {
40153 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40154 }
40155 arg1 = reinterpret_cast< wxBitmap * >(argp1);
40156 if (obj1) {
40157 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40158 if (!SWIG_IsOK(res2)) {
40159 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
36ed4f51 40160 }
1bd55598
RD
40161 if (!argp2) {
40162 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
d55e5bfc 40163 }
1bd55598
RD
40164 arg2 = reinterpret_cast< wxCursor * >(argp2);
40165 }
40166 {
40167 if (!wxPyCheckForApp()) SWIG_fail;
40168 PyThreadState* __tstate = wxPyBeginAllowThreads();
40169 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
40170 wxPyEndAllowThreads(__tstate);
40171 if (PyErr_Occurred()) SWIG_fail;
40172 }
40173 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_NEW | 0 );
40174 return resultobj;
40175fail:
40176 return NULL;
40177}
40178
40179
40180SWIGINTERN PyObject *_wrap_new_DragIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40181 PyObject *resultobj = 0;
40182 wxIcon *arg1 = 0 ;
40183 wxCursor const &arg2_defvalue = wxNullCursor ;
40184 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40185 wxGenericDragImage *result = 0 ;
40186 void *argp1 = 0 ;
40187 int res1 = 0 ;
40188 void *argp2 = 0 ;
40189 int res2 = 0 ;
40190 PyObject * obj0 = 0 ;
40191 PyObject * obj1 = 0 ;
40192 char * kwnames[] = {
40193 (char *) "image",(char *) "cursor", NULL
40194 };
40195
40196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) SWIG_fail;
40197 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
40198 if (!SWIG_IsOK(res1)) {
40199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40200 }
40201 if (!argp1) {
40202 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40203 }
40204 arg1 = reinterpret_cast< wxIcon * >(argp1);
40205 if (obj1) {
40206 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40207 if (!SWIG_IsOK(res2)) {
40208 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
36ed4f51 40209 }
1bd55598
RD
40210 if (!argp2) {
40211 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
d55e5bfc 40212 }
1bd55598
RD
40213 arg2 = reinterpret_cast< wxCursor * >(argp2);
40214 }
40215 {
40216 if (!wxPyCheckForApp()) SWIG_fail;
40217 PyThreadState* __tstate = wxPyBeginAllowThreads();
40218 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
40219 wxPyEndAllowThreads(__tstate);
40220 if (PyErr_Occurred()) SWIG_fail;
40221 }
40222 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40223 return resultobj;
40224fail:
40225 return NULL;
40226}
40227
40228
40229SWIGINTERN PyObject *_wrap_new_DragString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40230 PyObject *resultobj = 0;
40231 wxString *arg1 = 0 ;
40232 wxCursor const &arg2_defvalue = wxNullCursor ;
40233 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40234 wxGenericDragImage *result = 0 ;
40235 bool temp1 = false ;
40236 void *argp2 = 0 ;
40237 int res2 = 0 ;
40238 PyObject * obj0 = 0 ;
40239 PyObject * obj1 = 0 ;
40240 char * kwnames[] = {
40241 (char *) "str",(char *) "cursor", NULL
40242 };
40243
40244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) SWIG_fail;
40245 {
40246 arg1 = wxString_in_helper(obj0);
40247 if (arg1 == NULL) SWIG_fail;
40248 temp1 = true;
40249 }
40250 if (obj1) {
40251 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40252 if (!SWIG_IsOK(res2)) {
40253 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
36ed4f51 40254 }
1bd55598
RD
40255 if (!argp2) {
40256 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
d55e5bfc 40257 }
1bd55598
RD
40258 arg2 = reinterpret_cast< wxCursor * >(argp2);
40259 }
40260 {
40261 if (!wxPyCheckForApp()) SWIG_fail;
40262 PyThreadState* __tstate = wxPyBeginAllowThreads();
40263 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
40264 wxPyEndAllowThreads(__tstate);
40265 if (PyErr_Occurred()) SWIG_fail;
40266 }
40267 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40268 {
40269 if (temp1)
40270 delete arg1;
40271 }
40272 return resultobj;
40273fail:
40274 {
40275 if (temp1)
40276 delete arg1;
40277 }
40278 return NULL;
40279}
40280
40281
40282SWIGINTERN PyObject *_wrap_new_DragTreeItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40283 PyObject *resultobj = 0;
40284 wxPyTreeCtrl *arg1 = 0 ;
40285 wxTreeItemId *arg2 = 0 ;
40286 wxGenericDragImage *result = 0 ;
40287 void *argp1 = 0 ;
40288 int res1 = 0 ;
40289 void *argp2 = 0 ;
40290 int res2 = 0 ;
40291 PyObject * obj0 = 0 ;
40292 PyObject * obj1 = 0 ;
40293 char * kwnames[] = {
40294 (char *) "treeCtrl",(char *) "id", NULL
40295 };
40296
40297 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) SWIG_fail;
40298 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyTreeCtrl, 0 | 0);
40299 if (!SWIG_IsOK(res1)) {
40300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40301 }
40302 if (!argp1) {
40303 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40304 }
40305 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
40306 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 );
40307 if (!SWIG_IsOK(res2)) {
40308 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40309 }
40310 if (!argp2) {
40311 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40312 }
40313 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
40314 {
40315 if (!wxPyCheckForApp()) SWIG_fail;
40316 PyThreadState* __tstate = wxPyBeginAllowThreads();
40317 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
40318 wxPyEndAllowThreads(__tstate);
40319 if (PyErr_Occurred()) SWIG_fail;
40320 }
40321 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40322 return resultobj;
40323fail:
40324 return NULL;
40325}
40326
40327
40328SWIGINTERN PyObject *_wrap_new_DragListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40329 PyObject *resultobj = 0;
40330 wxPyListCtrl *arg1 = 0 ;
40331 long arg2 ;
40332 wxGenericDragImage *result = 0 ;
40333 void *argp1 = 0 ;
40334 int res1 = 0 ;
40335 long val2 ;
40336 int ecode2 = 0 ;
40337 PyObject * obj0 = 0 ;
40338 PyObject * obj1 = 0 ;
40339 char * kwnames[] = {
40340 (char *) "listCtrl",(char *) "id", NULL
40341 };
40342
40343 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) SWIG_fail;
40344 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyListCtrl, 0 | 0);
40345 if (!SWIG_IsOK(res1)) {
40346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40347 }
40348 if (!argp1) {
40349 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40350 }
40351 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
40352 ecode2 = SWIG_AsVal_long(obj1, &val2);
40353 if (!SWIG_IsOK(ecode2)) {
40354 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DragListItem" "', expected argument " "2"" of type '" "long""'");
40355 }
40356 arg2 = static_cast< long >(val2);
40357 {
40358 if (!wxPyCheckForApp()) SWIG_fail;
40359 PyThreadState* __tstate = wxPyBeginAllowThreads();
40360 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
40361 wxPyEndAllowThreads(__tstate);
40362 if (PyErr_Occurred()) SWIG_fail;
40363 }
40364 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40365 return resultobj;
40366fail:
40367 return NULL;
d55e5bfc
RD
40368}
40369
40370
1bd55598
RD
40371SWIGINTERN PyObject *_wrap_delete_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40372 PyObject *resultobj = 0;
40373 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40374 void *argp1 = 0 ;
40375 int res1 = 0 ;
40376 PyObject *swig_obj[1] ;
40377
40378 if (!args) SWIG_fail;
40379 swig_obj[0] = args;
40380 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_DISOWN | 0 );
40381 if (!SWIG_IsOK(res1)) {
40382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DragImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40383 }
40384 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40385 {
40386 PyThreadState* __tstate = wxPyBeginAllowThreads();
40387 delete arg1;
d55e5bfc 40388
1bd55598
RD
40389 wxPyEndAllowThreads(__tstate);
40390 if (PyErr_Occurred()) SWIG_fail;
40391 }
40392 resultobj = SWIG_Py_Void();
40393 return resultobj;
40394fail:
40395 return NULL;
40396}
40397
40398
40399SWIGINTERN PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40400 PyObject *resultobj = 0;
40401 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40402 wxBitmap *arg2 = (wxBitmap *) 0 ;
40403 void *argp1 = 0 ;
40404 int res1 = 0 ;
40405 void *argp2 = 0 ;
40406 int res2 = 0 ;
40407 PyObject * obj0 = 0 ;
40408 PyObject * obj1 = 0 ;
40409 char * kwnames[] = {
40410 (char *) "self",(char *) "bitmap", NULL
40411 };
40412
40413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
40414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40415 if (!SWIG_IsOK(res1)) {
40416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40417 }
40418 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40419 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
40420 if (!SWIG_IsOK(res2)) {
40421 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "2"" of type '" "wxBitmap *""'");
40422 }
40423 arg2 = reinterpret_cast< wxBitmap * >(argp2);
40424 {
40425 PyThreadState* __tstate = wxPyBeginAllowThreads();
40426 (arg1)->SetBackingBitmap(arg2);
40427 wxPyEndAllowThreads(__tstate);
40428 if (PyErr_Occurred()) SWIG_fail;
40429 }
40430 resultobj = SWIG_Py_Void();
40431 return resultobj;
40432fail:
40433 return NULL;
40434}
40435
40436
40437SWIGINTERN PyObject *_wrap_DragImage_BeginDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40438 PyObject *resultobj = 0;
40439 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40440 wxPoint *arg2 = 0 ;
40441 wxWindow *arg3 = (wxWindow *) 0 ;
40442 bool arg4 = (bool) false ;
40443 wxRect *arg5 = (wxRect *) NULL ;
40444 bool result;
40445 void *argp1 = 0 ;
40446 int res1 = 0 ;
40447 wxPoint temp2 ;
40448 void *argp3 = 0 ;
40449 int res3 = 0 ;
40450 bool val4 ;
40451 int ecode4 = 0 ;
40452 void *argp5 = 0 ;
40453 int res5 = 0 ;
40454 PyObject * obj0 = 0 ;
40455 PyObject * obj1 = 0 ;
40456 PyObject * obj2 = 0 ;
40457 PyObject * obj3 = 0 ;
40458 PyObject * obj4 = 0 ;
40459 char * kwnames[] = {
40460 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
40461 };
40462
40463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40465 if (!SWIG_IsOK(res1)) {
40466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40467 }
40468 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40469 {
40470 arg2 = &temp2;
40471 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40472 }
40473 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40474 if (!SWIG_IsOK(res3)) {
40475 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDrag" "', expected argument " "3"" of type '" "wxWindow *""'");
40476 }
40477 arg3 = reinterpret_cast< wxWindow * >(argp3);
40478 if (obj3) {
40479 ecode4 = SWIG_AsVal_bool(obj3, &val4);
40480 if (!SWIG_IsOK(ecode4)) {
40481 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_BeginDrag" "', expected argument " "4"" of type '" "bool""'");
40482 }
40483 arg4 = static_cast< bool >(val4);
40484 }
40485 if (obj4) {
40486 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxRect, 0 | 0 );
40487 if (!SWIG_IsOK(res5)) {
40488 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DragImage_BeginDrag" "', expected argument " "5"" of type '" "wxRect *""'");
d55e5bfc 40489 }
1bd55598
RD
40490 arg5 = reinterpret_cast< wxRect * >(argp5);
40491 }
40492 {
40493 PyThreadState* __tstate = wxPyBeginAllowThreads();
40494 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
40495 wxPyEndAllowThreads(__tstate);
40496 if (PyErr_Occurred()) SWIG_fail;
40497 }
40498 {
40499 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40500 }
40501 return resultobj;
40502fail:
40503 return NULL;
40504}
40505
40506
40507SWIGINTERN PyObject *_wrap_DragImage_BeginDragBounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40508 PyObject *resultobj = 0;
40509 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40510 wxPoint *arg2 = 0 ;
40511 wxWindow *arg3 = (wxWindow *) 0 ;
40512 wxWindow *arg4 = (wxWindow *) 0 ;
40513 bool result;
40514 void *argp1 = 0 ;
40515 int res1 = 0 ;
40516 wxPoint temp2 ;
40517 void *argp3 = 0 ;
40518 int res3 = 0 ;
40519 void *argp4 = 0 ;
40520 int res4 = 0 ;
40521 PyObject * obj0 = 0 ;
40522 PyObject * obj1 = 0 ;
40523 PyObject * obj2 = 0 ;
40524 PyObject * obj3 = 0 ;
40525 char * kwnames[] = {
40526 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
40527 };
40528
40529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40530 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40531 if (!SWIG_IsOK(res1)) {
40532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDragBounded" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40533 }
40534 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40535 {
40536 arg2 = &temp2;
40537 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40538 }
40539 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40540 if (!SWIG_IsOK(res3)) {
40541 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDragBounded" "', expected argument " "3"" of type '" "wxWindow *""'");
40542 }
40543 arg3 = reinterpret_cast< wxWindow * >(argp3);
40544 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
40545 if (!SWIG_IsOK(res4)) {
40546 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DragImage_BeginDragBounded" "', expected argument " "4"" of type '" "wxWindow *""'");
40547 }
40548 arg4 = reinterpret_cast< wxWindow * >(argp4);
40549 {
40550 PyThreadState* __tstate = wxPyBeginAllowThreads();
40551 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
40552 wxPyEndAllowThreads(__tstate);
40553 if (PyErr_Occurred()) SWIG_fail;
40554 }
40555 {
40556 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40557 }
40558 return resultobj;
40559fail:
40560 return NULL;
d55e5bfc
RD
40561}
40562
40563
1bd55598
RD
40564SWIGINTERN PyObject *_wrap_DragImage_EndDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40565 PyObject *resultobj = 0;
40566 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40567 bool result;
40568 void *argp1 = 0 ;
40569 int res1 = 0 ;
40570 PyObject *swig_obj[1] ;
40571
40572 if (!args) SWIG_fail;
40573 swig_obj[0] = args;
40574 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40575 if (!SWIG_IsOK(res1)) {
40576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_EndDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40577 }
40578 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40579 {
40580 PyThreadState* __tstate = wxPyBeginAllowThreads();
40581 result = (bool)(arg1)->EndDrag();
40582 wxPyEndAllowThreads(__tstate);
40583 if (PyErr_Occurred()) SWIG_fail;
40584 }
40585 {
40586 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40587 }
40588 return resultobj;
40589fail:
40590 return NULL;
40591}
40592
40593
40594SWIGINTERN PyObject *_wrap_DragImage_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40595 PyObject *resultobj = 0;
40596 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40597 wxPoint *arg2 = 0 ;
40598 bool result;
40599 void *argp1 = 0 ;
40600 int res1 = 0 ;
40601 wxPoint temp2 ;
40602 PyObject * obj0 = 0 ;
40603 PyObject * obj1 = 0 ;
40604 char * kwnames[] = {
40605 (char *) "self",(char *) "pt", NULL
40606 };
40607
40608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) SWIG_fail;
40609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40610 if (!SWIG_IsOK(res1)) {
40611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Move" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40612 }
40613 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40614 {
40615 arg2 = &temp2;
40616 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40617 }
40618 {
40619 PyThreadState* __tstate = wxPyBeginAllowThreads();
40620 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
40621 wxPyEndAllowThreads(__tstate);
40622 if (PyErr_Occurred()) SWIG_fail;
40623 }
40624 {
40625 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40626 }
40627 return resultobj;
40628fail:
40629 return NULL;
d55e5bfc
RD
40630}
40631
40632
1bd55598
RD
40633SWIGINTERN PyObject *_wrap_DragImage_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40634 PyObject *resultobj = 0;
40635 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40636 bool result;
40637 void *argp1 = 0 ;
40638 int res1 = 0 ;
40639 PyObject *swig_obj[1] ;
40640
40641 if (!args) SWIG_fail;
40642 swig_obj[0] = args;
40643 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40644 if (!SWIG_IsOK(res1)) {
40645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Show" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40646 }
40647 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40648 {
40649 PyThreadState* __tstate = wxPyBeginAllowThreads();
40650 result = (bool)(arg1)->Show();
40651 wxPyEndAllowThreads(__tstate);
40652 if (PyErr_Occurred()) SWIG_fail;
40653 }
40654 {
40655 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40656 }
40657 return resultobj;
40658fail:
40659 return NULL;
d55e5bfc
RD
40660}
40661
40662
1bd55598
RD
40663SWIGINTERN PyObject *_wrap_DragImage_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40664 PyObject *resultobj = 0;
40665 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40666 bool result;
40667 void *argp1 = 0 ;
40668 int res1 = 0 ;
40669 PyObject *swig_obj[1] ;
40670
40671 if (!args) SWIG_fail;
40672 swig_obj[0] = args;
40673 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40674 if (!SWIG_IsOK(res1)) {
40675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Hide" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40676 }
40677 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40678 {
40679 PyThreadState* __tstate = wxPyBeginAllowThreads();
40680 result = (bool)(arg1)->Hide();
40681 wxPyEndAllowThreads(__tstate);
40682 if (PyErr_Occurred()) SWIG_fail;
40683 }
40684 {
40685 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40686 }
40687 return resultobj;
40688fail:
40689 return NULL;
40690}
40691
40692
40693SWIGINTERN PyObject *_wrap_DragImage_GetImageRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40694 PyObject *resultobj = 0;
40695 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40696 wxPoint *arg2 = 0 ;
40697 wxRect result;
40698 void *argp1 = 0 ;
40699 int res1 = 0 ;
40700 wxPoint temp2 ;
40701 PyObject * obj0 = 0 ;
40702 PyObject * obj1 = 0 ;
40703 char * kwnames[] = {
40704 (char *) "self",(char *) "pos", NULL
40705 };
40706
40707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) SWIG_fail;
40708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40709 if (!SWIG_IsOK(res1)) {
40710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_GetImageRect" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40711 }
40712 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40713 {
40714 arg2 = &temp2;
40715 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40716 }
40717 {
40718 PyThreadState* __tstate = wxPyBeginAllowThreads();
40719 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
40720 wxPyEndAllowThreads(__tstate);
40721 if (PyErr_Occurred()) SWIG_fail;
40722 }
40723 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
40724 return resultobj;
40725fail:
40726 return NULL;
40727}
40728
40729
40730SWIGINTERN PyObject *_wrap_DragImage_DoDrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40731 PyObject *resultobj = 0;
40732 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40733 wxDC *arg2 = 0 ;
40734 wxPoint *arg3 = 0 ;
40735 bool result;
40736 void *argp1 = 0 ;
40737 int res1 = 0 ;
40738 void *argp2 = 0 ;
40739 int res2 = 0 ;
40740 wxPoint temp3 ;
40741 PyObject * obj0 = 0 ;
40742 PyObject * obj1 = 0 ;
40743 PyObject * obj2 = 0 ;
40744 char * kwnames[] = {
40745 (char *) "self",(char *) "dc",(char *) "pos", NULL
40746 };
40747
40748 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40749 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40750 if (!SWIG_IsOK(res1)) {
40751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_DoDrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40752 }
40753 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40754 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
40755 if (!SWIG_IsOK(res2)) {
40756 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
40757 }
40758 if (!argp2) {
40759 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
40760 }
40761 arg2 = reinterpret_cast< wxDC * >(argp2);
40762 {
40763 arg3 = &temp3;
40764 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40765 }
40766 {
40767 PyThreadState* __tstate = wxPyBeginAllowThreads();
40768 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
40769 wxPyEndAllowThreads(__tstate);
40770 if (PyErr_Occurred()) SWIG_fail;
40771 }
40772 {
40773 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40774 }
40775 return resultobj;
40776fail:
40777 return NULL;
40778}
40779
40780
40781SWIGINTERN PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40782 PyObject *resultobj = 0;
40783 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40784 wxDC *arg2 = 0 ;
40785 wxMemoryDC *arg3 = 0 ;
40786 wxRect *arg4 = 0 ;
40787 wxRect *arg5 = 0 ;
40788 bool result;
40789 void *argp1 = 0 ;
40790 int res1 = 0 ;
40791 void *argp2 = 0 ;
40792 int res2 = 0 ;
40793 void *argp3 = 0 ;
40794 int res3 = 0 ;
40795 wxRect temp4 ;
40796 wxRect temp5 ;
40797 PyObject * obj0 = 0 ;
40798 PyObject * obj1 = 0 ;
40799 PyObject * obj2 = 0 ;
40800 PyObject * obj3 = 0 ;
40801 PyObject * obj4 = 0 ;
40802 char * kwnames[] = {
40803 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
40804 };
40805
40806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40808 if (!SWIG_IsOK(res1)) {
40809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40810 }
40811 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40812 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
40813 if (!SWIG_IsOK(res2)) {
40814 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
40815 }
40816 if (!argp2) {
40817 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
40818 }
40819 arg2 = reinterpret_cast< wxDC * >(argp2);
40820 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxMemoryDC, 0 );
40821 if (!SWIG_IsOK(res3)) {
40822 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
40823 }
40824 if (!argp3) {
40825 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
40826 }
40827 arg3 = reinterpret_cast< wxMemoryDC * >(argp3);
40828 {
40829 arg4 = &temp4;
40830 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
40831 }
40832 {
40833 arg5 = &temp5;
40834 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
40835 }
40836 {
40837 PyThreadState* __tstate = wxPyBeginAllowThreads();
40838 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
40839 wxPyEndAllowThreads(__tstate);
40840 if (PyErr_Occurred()) SWIG_fail;
40841 }
40842 {
40843 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40844 }
40845 return resultobj;
40846fail:
40847 return NULL;
40848}
40849
40850
40851SWIGINTERN PyObject *_wrap_DragImage_RedrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40852 PyObject *resultobj = 0;
40853 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40854 wxPoint *arg2 = 0 ;
40855 wxPoint *arg3 = 0 ;
40856 bool arg4 ;
40857 bool arg5 ;
40858 bool result;
40859 void *argp1 = 0 ;
40860 int res1 = 0 ;
40861 wxPoint temp2 ;
40862 wxPoint temp3 ;
40863 bool val4 ;
40864 int ecode4 = 0 ;
40865 bool val5 ;
40866 int ecode5 = 0 ;
40867 PyObject * obj0 = 0 ;
40868 PyObject * obj1 = 0 ;
40869 PyObject * obj2 = 0 ;
40870 PyObject * obj3 = 0 ;
40871 PyObject * obj4 = 0 ;
40872 char * kwnames[] = {
40873 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
40874 };
40875
40876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40878 if (!SWIG_IsOK(res1)) {
40879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_RedrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40880 }
40881 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40882 {
40883 arg2 = &temp2;
40884 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40885 }
40886 {
40887 arg3 = &temp3;
40888 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40889 }
40890 ecode4 = SWIG_AsVal_bool(obj3, &val4);
40891 if (!SWIG_IsOK(ecode4)) {
40892 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_RedrawImage" "', expected argument " "4"" of type '" "bool""'");
40893 }
40894 arg4 = static_cast< bool >(val4);
40895 ecode5 = SWIG_AsVal_bool(obj4, &val5);
40896 if (!SWIG_IsOK(ecode5)) {
40897 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DragImage_RedrawImage" "', expected argument " "5"" of type '" "bool""'");
40898 }
40899 arg5 = static_cast< bool >(val5);
40900 {
40901 PyThreadState* __tstate = wxPyBeginAllowThreads();
40902 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
40903 wxPyEndAllowThreads(__tstate);
40904 if (PyErr_Occurred()) SWIG_fail;
40905 }
40906 {
40907 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40908 }
40909 return resultobj;
40910fail:
40911 return NULL;
d55e5bfc
RD
40912}
40913
40914
1bd55598
RD
40915SWIGINTERN PyObject *DragImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40916 PyObject *obj;
40917 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40918 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDragImage, SWIG_NewClientData(obj));
40919 return SWIG_Py_Void();
d55e5bfc
RD
40920}
40921
1bd55598
RD
40922SWIGINTERN PyObject *DragImage_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40923 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
40924}
40925
1bd55598
RD
40926SWIGINTERN int DatePickerCtrlNameStr_set(PyObject *) {
40927 SWIG_Error(SWIG_AttributeError,"Variable DatePickerCtrlNameStr is read-only.");
40928 return 1;
d55e5bfc
RD
40929}
40930
40931
1bd55598
RD
40932SWIGINTERN PyObject *DatePickerCtrlNameStr_get(void) {
40933 PyObject *pyobj = 0;
40934
40935 {
40936#if wxUSE_UNICODE
40937 pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
40938#else
40939 pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
40940#endif
40941 }
40942 return pyobj;
40943}
40944
40945
40946SWIGINTERN PyObject *_wrap_new_DatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40947 PyObject *resultobj = 0;
40948 wxWindow *arg1 = (wxWindow *) 0 ;
40949 int arg2 = (int) -1 ;
40950 wxDateTime const &arg3_defvalue = wxDefaultDateTime ;
40951 wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ;
40952 wxPoint const &arg4_defvalue = wxDefaultPosition ;
40953 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
40954 wxSize const &arg5_defvalue = wxDefaultSize ;
40955 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
40956 long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
40957 wxValidator const &arg7_defvalue = wxDefaultValidator ;
40958 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
40959 wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ;
40960 wxString *arg8 = (wxString *) &arg8_defvalue ;
40961 wxDatePickerCtrl *result = 0 ;
40962 void *argp1 = 0 ;
40963 int res1 = 0 ;
40964 int val2 ;
40965 int ecode2 = 0 ;
40966 void *argp3 = 0 ;
40967 int res3 = 0 ;
40968 wxPoint temp4 ;
40969 wxSize temp5 ;
40970 long val6 ;
40971 int ecode6 = 0 ;
40972 void *argp7 = 0 ;
40973 int res7 = 0 ;
40974 bool temp8 = false ;
40975 PyObject * obj0 = 0 ;
40976 PyObject * obj1 = 0 ;
40977 PyObject * obj2 = 0 ;
40978 PyObject * obj3 = 0 ;
40979 PyObject * obj4 = 0 ;
40980 PyObject * obj5 = 0 ;
40981 PyObject * obj6 = 0 ;
40982 PyObject * obj7 = 0 ;
40983 char * kwnames[] = {
40984 (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
40985 };
40986
40987 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
40988 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40989 if (!SWIG_IsOK(res1)) {
40990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
40991 }
40992 arg1 = reinterpret_cast< wxWindow * >(argp1);
40993 if (obj1) {
40994 ecode2 = SWIG_AsVal_int(obj1, &val2);
40995 if (!SWIG_IsOK(ecode2)) {
40996 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatePickerCtrl" "', expected argument " "2"" of type '" "int""'");
40997 }
40998 arg2 = static_cast< int >(val2);
40999 }
41000 if (obj2) {
41001 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41002 if (!SWIG_IsOK(res3)) {
41003 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
d55e5bfc 41004 }
1bd55598
RD
41005 if (!argp3) {
41006 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
d55e5bfc 41007 }
1bd55598
RD
41008 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41009 }
41010 if (obj3) {
36ed4f51 41011 {
1bd55598
RD
41012 arg4 = &temp4;
41013 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36ed4f51 41014 }
1bd55598
RD
41015 }
41016 if (obj4) {
d55e5bfc 41017 {
1bd55598
RD
41018 arg5 = &temp5;
41019 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 41020 }
1bd55598
RD
41021 }
41022 if (obj5) {
41023 ecode6 = SWIG_AsVal_long(obj5, &val6);
41024 if (!SWIG_IsOK(ecode6)) {
41025 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DatePickerCtrl" "', expected argument " "6"" of type '" "long""'");
41026 }
41027 arg6 = static_cast< long >(val6);
41028 }
41029 if (obj6) {
41030 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
41031 if (!SWIG_IsOK(res7)) {
41032 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
36ed4f51 41033 }
1bd55598
RD
41034 if (!argp7) {
41035 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 41036 }
1bd55598
RD
41037 arg7 = reinterpret_cast< wxValidator * >(argp7);
41038 }
41039 if (obj7) {
36ed4f51 41040 {
1bd55598
RD
41041 arg8 = wxString_in_helper(obj7);
41042 if (arg8 == NULL) SWIG_fail;
41043 temp8 = true;
36ed4f51 41044 }
1bd55598
RD
41045 }
41046 {
41047 if (!wxPyCheckForApp()) SWIG_fail;
41048 PyThreadState* __tstate = wxPyBeginAllowThreads();
41049 result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
41050 wxPyEndAllowThreads(__tstate);
41051 if (PyErr_Occurred()) SWIG_fail;
41052 }
41053 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_NEW | 0 );
41054 {
41055 if (temp8)
41056 delete arg8;
41057 }
41058 return resultobj;
41059fail:
41060 {
41061 if (temp8)
41062 delete arg8;
41063 }
41064 return NULL;
d55e5bfc
RD
41065}
41066
41067
1bd55598
RD
41068SWIGINTERN PyObject *_wrap_new_PreDatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41069 PyObject *resultobj = 0;
41070 wxDatePickerCtrl *result = 0 ;
41071
41072 if (!SWIG_Python_UnpackTuple(args,"new_PreDatePickerCtrl",0,0,0)) SWIG_fail;
41073 {
41074 if (!wxPyCheckForApp()) SWIG_fail;
41075 PyThreadState* __tstate = wxPyBeginAllowThreads();
41076 result = (wxDatePickerCtrl *)new wxDatePickerCtrl();
41077 wxPyEndAllowThreads(__tstate);
41078 if (PyErr_Occurred()) SWIG_fail;
41079 }
41080 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_OWN | 0 );
41081 return resultobj;
41082fail:
41083 return NULL;
41084}
41085
41086
41087SWIGINTERN PyObject *_wrap_DatePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41088 PyObject *resultobj = 0;
41089 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41090 wxWindow *arg2 = (wxWindow *) 0 ;
41091 int arg3 = (int) -1 ;
41092 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
41093 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
41094 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41095 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41096 wxSize const &arg6_defvalue = wxDefaultSize ;
41097 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41098 long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41099 wxValidator const &arg8_defvalue = wxDefaultValidator ;
41100 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
41101 wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ;
41102 wxString *arg9 = (wxString *) &arg9_defvalue ;
41103 bool result;
41104 void *argp1 = 0 ;
41105 int res1 = 0 ;
41106 void *argp2 = 0 ;
41107 int res2 = 0 ;
41108 int val3 ;
41109 int ecode3 = 0 ;
41110 void *argp4 = 0 ;
41111 int res4 = 0 ;
41112 wxPoint temp5 ;
41113 wxSize temp6 ;
41114 long val7 ;
41115 int ecode7 = 0 ;
41116 void *argp8 = 0 ;
41117 int res8 = 0 ;
41118 bool temp9 = false ;
41119 PyObject * obj0 = 0 ;
41120 PyObject * obj1 = 0 ;
41121 PyObject * obj2 = 0 ;
41122 PyObject * obj3 = 0 ;
41123 PyObject * obj4 = 0 ;
41124 PyObject * obj5 = 0 ;
41125 PyObject * obj6 = 0 ;
41126 PyObject * obj7 = 0 ;
41127 PyObject * obj8 = 0 ;
41128 char * kwnames[] = {
41129 (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41130 };
41131
41132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41134 if (!SWIG_IsOK(res1)) {
41135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_Create" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41136 }
41137 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41138 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41139 if (!SWIG_IsOK(res2)) {
41140 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41141 }
41142 arg2 = reinterpret_cast< wxWindow * >(argp2);
41143 if (obj2) {
41144 ecode3 = SWIG_AsVal_int(obj2, &val3);
41145 if (!SWIG_IsOK(ecode3)) {
41146 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DatePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41147 }
41148 arg3 = static_cast< int >(val3);
41149 }
41150 if (obj3) {
41151 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDateTime, 0 | 0);
41152 if (!SWIG_IsOK(res4)) {
41153 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
36ed4f51 41154 }
1bd55598
RD
41155 if (!argp4) {
41156 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
d55e5bfc 41157 }
1bd55598
RD
41158 arg4 = reinterpret_cast< wxDateTime * >(argp4);
41159 }
41160 if (obj4) {
d55e5bfc 41161 {
1bd55598
RD
41162 arg5 = &temp5;
41163 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 41164 }
1bd55598
RD
41165 }
41166 if (obj5) {
d55e5bfc 41167 {
1bd55598
RD
41168 arg6 = &temp6;
41169 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 41170 }
1bd55598
RD
41171 }
41172 if (obj6) {
41173 ecode7 = SWIG_AsVal_long(obj6, &val7);
41174 if (!SWIG_IsOK(ecode7)) {
41175 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DatePickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
41176 }
41177 arg7 = static_cast< long >(val7);
41178 }
41179 if (obj7) {
41180 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
41181 if (!SWIG_IsOK(res8)) {
41182 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
36ed4f51 41183 }
1bd55598
RD
41184 if (!argp8) {
41185 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 41186 }
1bd55598
RD
41187 arg8 = reinterpret_cast< wxValidator * >(argp8);
41188 }
41189 if (obj8) {
36ed4f51 41190 {
1bd55598
RD
41191 arg9 = wxString_in_helper(obj8);
41192 if (arg9 == NULL) SWIG_fail;
41193 temp9 = true;
36ed4f51 41194 }
1bd55598
RD
41195 }
41196 {
41197 PyThreadState* __tstate = wxPyBeginAllowThreads();
41198 result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
41199 wxPyEndAllowThreads(__tstate);
41200 if (PyErr_Occurred()) SWIG_fail;
41201 }
41202 {
41203 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41204 }
41205 {
41206 if (temp9)
41207 delete arg9;
41208 }
41209 return resultobj;
41210fail:
41211 {
41212 if (temp9)
41213 delete arg9;
41214 }
41215 return NULL;
41216}
41217
41218
41219SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41220 PyObject *resultobj = 0;
41221 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41222 wxDateTime *arg2 = 0 ;
41223 void *argp1 = 0 ;
41224 int res1 = 0 ;
41225 void *argp2 = 0 ;
41226 int res2 = 0 ;
41227 PyObject * obj0 = 0 ;
41228 PyObject * obj1 = 0 ;
41229 char * kwnames[] = {
41230 (char *) "self",(char *) "dt", NULL
41231 };
41232
41233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
41234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41235 if (!SWIG_IsOK(res1)) {
41236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41237 }
41238 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41239 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41240 if (!SWIG_IsOK(res2)) {
41241 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41242 }
41243 if (!argp2) {
41244 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41245 }
41246 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41247 {
41248 PyThreadState* __tstate = wxPyBeginAllowThreads();
41249 (arg1)->SetValue((wxDateTime const &)*arg2);
41250 wxPyEndAllowThreads(__tstate);
41251 if (PyErr_Occurred()) SWIG_fail;
41252 }
41253 resultobj = SWIG_Py_Void();
41254 return resultobj;
41255fail:
41256 return NULL;
d55e5bfc
RD
41257}
41258
41259
1bd55598
RD
41260SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41261 PyObject *resultobj = 0;
41262 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41263 wxDateTime result;
41264 void *argp1 = 0 ;
41265 int res1 = 0 ;
41266 PyObject *swig_obj[1] ;
41267
41268 if (!args) SWIG_fail;
41269 swig_obj[0] = args;
41270 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41271 if (!SWIG_IsOK(res1)) {
41272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl const *""'");
41273 }
41274 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41275 {
41276 PyThreadState* __tstate = wxPyBeginAllowThreads();
41277 result = ((wxDatePickerCtrl const *)arg1)->GetValue();
41278 wxPyEndAllowThreads(__tstate);
41279 if (PyErr_Occurred()) SWIG_fail;
41280 }
41281 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41282 return resultobj;
41283fail:
41284 return NULL;
41285}
41286
41287
41288SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41289 PyObject *resultobj = 0;
41290 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41291 wxDateTime *arg2 = 0 ;
41292 wxDateTime *arg3 = 0 ;
41293 void *argp1 = 0 ;
41294 int res1 = 0 ;
41295 void *argp2 = 0 ;
41296 int res2 = 0 ;
41297 void *argp3 = 0 ;
41298 int res3 = 0 ;
41299 PyObject * obj0 = 0 ;
41300 PyObject * obj1 = 0 ;
41301 PyObject * obj2 = 0 ;
41302 char * kwnames[] = {
41303 (char *) "self",(char *) "dt1",(char *) "dt2", NULL
41304 };
41305
41306 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41307 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41308 if (!SWIG_IsOK(res1)) {
41309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41310 }
41311 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41312 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41313 if (!SWIG_IsOK(res2)) {
41314 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41315 }
41316 if (!argp2) {
41317 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41318 }
41319 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41320 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41321 if (!SWIG_IsOK(res3)) {
41322 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41323 }
41324 if (!argp3) {
41325 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41326 }
41327 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41328 {
41329 PyThreadState* __tstate = wxPyBeginAllowThreads();
41330 (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
41331 wxPyEndAllowThreads(__tstate);
41332 if (PyErr_Occurred()) SWIG_fail;
41333 }
41334 resultobj = SWIG_Py_Void();
41335 return resultobj;
41336fail:
41337 return NULL;
d55e5bfc
RD
41338}
41339
41340
1bd55598
RD
41341SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41342 PyObject *resultobj = 0;
41343 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41344 wxDateTime result;
41345 void *argp1 = 0 ;
41346 int res1 = 0 ;
41347 PyObject *swig_obj[1] ;
41348
41349 if (!args) SWIG_fail;
41350 swig_obj[0] = args;
41351 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41352 if (!SWIG_IsOK(res1)) {
41353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetLowerLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41354 }
41355 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41356 {
41357 PyThreadState* __tstate = wxPyBeginAllowThreads();
41358 result = wxDatePickerCtrl_GetLowerLimit(arg1);
41359 wxPyEndAllowThreads(__tstate);
41360 if (PyErr_Occurred()) SWIG_fail;
41361 }
41362 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41363 return resultobj;
41364fail:
41365 return NULL;
d55e5bfc
RD
41366}
41367
41368
1bd55598
RD
41369SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41370 PyObject *resultobj = 0;
41371 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41372 wxDateTime result;
41373 void *argp1 = 0 ;
41374 int res1 = 0 ;
41375 PyObject *swig_obj[1] ;
41376
41377 if (!args) SWIG_fail;
41378 swig_obj[0] = args;
41379 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41380 if (!SWIG_IsOK(res1)) {
41381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetUpperLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41382 }
41383 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41384 {
41385 PyThreadState* __tstate = wxPyBeginAllowThreads();
41386 result = wxDatePickerCtrl_GetUpperLimit(arg1);
41387 wxPyEndAllowThreads(__tstate);
41388 if (PyErr_Occurred()) SWIG_fail;
41389 }
41390 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41391 return resultobj;
41392fail:
41393 return NULL;
d55e5bfc
RD
41394}
41395
41396
1bd55598
RD
41397SWIGINTERN PyObject *DatePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41398 PyObject *obj;
41399 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41400 SWIG_TypeNewClientData(SWIGTYPE_p_wxDatePickerCtrl, SWIG_NewClientData(obj));
41401 return SWIG_Py_Void();
d55e5bfc
RD
41402}
41403
1bd55598
RD
41404SWIGINTERN PyObject *DatePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41405 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
41406}
41407
704eda0c
RD
41408SWIGINTERN int HyperlinkCtrlNameStr_set(PyObject *) {
41409 SWIG_Error(SWIG_AttributeError,"Variable HyperlinkCtrlNameStr is read-only.");
41410 return 1;
41411}
41412
41413
41414SWIGINTERN PyObject *HyperlinkCtrlNameStr_get(void) {
41415 PyObject *pyobj = 0;
41416
41417 {
41418#if wxUSE_UNICODE
41419 pyobj = PyUnicode_FromWideChar((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41420#else
41421 pyobj = PyString_FromStringAndSize((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41422#endif
41423 }
41424 return pyobj;
41425}
41426
41427
41428SWIGINTERN PyObject *_wrap_new_HyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41429 PyObject *resultobj = 0;
41430 wxWindow *arg1 = (wxWindow *) 0 ;
41431 int arg2 ;
41432 wxString *arg3 = 0 ;
41433 wxString *arg4 = 0 ;
41434 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41435 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41436 wxSize const &arg6_defvalue = wxDefaultSize ;
41437 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41438 long arg7 = (long) wxHL_DEFAULT_STYLE ;
41439 wxString const &arg8_defvalue = wxPyHyperlinkCtrlNameStr ;
41440 wxString *arg8 = (wxString *) &arg8_defvalue ;
41441 wxHyperlinkCtrl *result = 0 ;
41442 void *argp1 = 0 ;
41443 int res1 = 0 ;
41444 int val2 ;
41445 int ecode2 = 0 ;
41446 bool temp3 = false ;
41447 bool temp4 = false ;
41448 wxPoint temp5 ;
41449 wxSize temp6 ;
41450 long val7 ;
41451 int ecode7 = 0 ;
41452 bool temp8 = false ;
41453 PyObject * obj0 = 0 ;
41454 PyObject * obj1 = 0 ;
41455 PyObject * obj2 = 0 ;
41456 PyObject * obj3 = 0 ;
41457 PyObject * obj4 = 0 ;
41458 PyObject * obj5 = 0 ;
41459 PyObject * obj6 = 0 ;
41460 PyObject * obj7 = 0 ;
41461 char * kwnames[] = {
41462 (char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41463 };
41464
41465 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:new_HyperlinkCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41466 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41467 if (!SWIG_IsOK(res1)) {
41468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41469 }
41470 arg1 = reinterpret_cast< wxWindow * >(argp1);
41471 ecode2 = SWIG_AsVal_int(obj1, &val2);
41472 if (!SWIG_IsOK(ecode2)) {
41473 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkCtrl" "', expected argument " "2"" of type '" "int""'");
41474 }
41475 arg2 = static_cast< int >(val2);
41476 {
41477 arg3 = wxString_in_helper(obj2);
41478 if (arg3 == NULL) SWIG_fail;
41479 temp3 = true;
41480 }
41481 {
41482 arg4 = wxString_in_helper(obj3);
41483 if (arg4 == NULL) SWIG_fail;
41484 temp4 = true;
41485 }
41486 if (obj4) {
41487 {
41488 arg5 = &temp5;
41489 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
41490 }
41491 }
41492 if (obj5) {
41493 {
41494 arg6 = &temp6;
41495 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
41496 }
41497 }
41498 if (obj6) {
41499 ecode7 = SWIG_AsVal_long(obj6, &val7);
41500 if (!SWIG_IsOK(ecode7)) {
41501 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_HyperlinkCtrl" "', expected argument " "7"" of type '" "long""'");
41502 }
41503 arg7 = static_cast< long >(val7);
41504 }
41505 if (obj7) {
41506 {
41507 arg8 = wxString_in_helper(obj7);
41508 if (arg8 == NULL) SWIG_fail;
41509 temp8 = true;
41510 }
41511 }
41512 {
41513 if (!wxPyCheckForApp()) SWIG_fail;
41514 PyThreadState* __tstate = wxPyBeginAllowThreads();
41515 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
41516 wxPyEndAllowThreads(__tstate);
41517 if (PyErr_Occurred()) SWIG_fail;
41518 }
41519 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_NEW | 0 );
41520 {
41521 if (temp3)
41522 delete arg3;
41523 }
41524 {
41525 if (temp4)
41526 delete arg4;
41527 }
41528 {
41529 if (temp8)
41530 delete arg8;
41531 }
41532 return resultobj;
41533fail:
41534 {
41535 if (temp3)
41536 delete arg3;
41537 }
41538 {
41539 if (temp4)
41540 delete arg4;
41541 }
41542 {
41543 if (temp8)
41544 delete arg8;
41545 }
41546 return NULL;
41547}
41548
41549
41550SWIGINTERN PyObject *_wrap_new_PreHyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41551 PyObject *resultobj = 0;
41552 wxHyperlinkCtrl *result = 0 ;
41553
41554 if (!SWIG_Python_UnpackTuple(args,"new_PreHyperlinkCtrl",0,0,0)) SWIG_fail;
41555 {
41556 if (!wxPyCheckForApp()) SWIG_fail;
41557 PyThreadState* __tstate = wxPyBeginAllowThreads();
41558 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl();
41559 wxPyEndAllowThreads(__tstate);
41560 if (PyErr_Occurred()) SWIG_fail;
41561 }
41562 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_OWN | 0 );
41563 return resultobj;
41564fail:
41565 return NULL;
41566}
41567
41568
41569SWIGINTERN PyObject *_wrap_HyperlinkCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41570 PyObject *resultobj = 0;
41571 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41572 wxWindow *arg2 = (wxWindow *) 0 ;
41573 int arg3 ;
41574 wxString *arg4 = 0 ;
41575 wxString *arg5 = 0 ;
41576 wxPoint const &arg6_defvalue = wxDefaultPosition ;
41577 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
41578 wxSize const &arg7_defvalue = wxDefaultSize ;
41579 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
41580 long arg8 = (long) wxHL_DEFAULT_STYLE ;
41581 wxString const &arg9_defvalue = wxPyHyperlinkCtrlNameStr ;
41582 wxString *arg9 = (wxString *) &arg9_defvalue ;
41583 bool result;
41584 void *argp1 = 0 ;
41585 int res1 = 0 ;
41586 void *argp2 = 0 ;
41587 int res2 = 0 ;
41588 int val3 ;
41589 int ecode3 = 0 ;
41590 bool temp4 = false ;
41591 bool temp5 = false ;
41592 wxPoint temp6 ;
41593 wxSize temp7 ;
41594 long val8 ;
41595 int ecode8 = 0 ;
41596 bool temp9 = false ;
41597 PyObject * obj0 = 0 ;
41598 PyObject * obj1 = 0 ;
41599 PyObject * obj2 = 0 ;
41600 PyObject * obj3 = 0 ;
41601 PyObject * obj4 = 0 ;
41602 PyObject * obj5 = 0 ;
41603 PyObject * obj6 = 0 ;
41604 PyObject * obj7 = 0 ;
41605 PyObject * obj8 = 0 ;
41606 char * kwnames[] = {
41607 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41608 };
41609
41610 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOO:HyperlinkCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41611 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41612 if (!SWIG_IsOK(res1)) {
41613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_Create" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41614 }
41615 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41616 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41617 if (!SWIG_IsOK(res2)) {
41618 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HyperlinkCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41619 }
41620 arg2 = reinterpret_cast< wxWindow * >(argp2);
41621 ecode3 = SWIG_AsVal_int(obj2, &val3);
41622 if (!SWIG_IsOK(ecode3)) {
41623 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HyperlinkCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41624 }
41625 arg3 = static_cast< int >(val3);
41626 {
41627 arg4 = wxString_in_helper(obj3);
41628 if (arg4 == NULL) SWIG_fail;
41629 temp4 = true;
41630 }
41631 {
41632 arg5 = wxString_in_helper(obj4);
41633 if (arg5 == NULL) SWIG_fail;
41634 temp5 = true;
41635 }
41636 if (obj5) {
41637 {
41638 arg6 = &temp6;
41639 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
41640 }
41641 }
41642 if (obj6) {
41643 {
41644 arg7 = &temp7;
41645 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
41646 }
41647 }
41648 if (obj7) {
41649 ecode8 = SWIG_AsVal_long(obj7, &val8);
41650 if (!SWIG_IsOK(ecode8)) {
41651 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "HyperlinkCtrl_Create" "', expected argument " "8"" of type '" "long""'");
41652 }
41653 arg8 = static_cast< long >(val8);
41654 }
41655 if (obj8) {
41656 {
41657 arg9 = wxString_in_helper(obj8);
41658 if (arg9 == NULL) SWIG_fail;
41659 temp9 = true;
41660 }
41661 }
41662 {
41663 PyThreadState* __tstate = wxPyBeginAllowThreads();
41664 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxString const &)*arg9);
41665 wxPyEndAllowThreads(__tstate);
41666 if (PyErr_Occurred()) SWIG_fail;
41667 }
41668 {
41669 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41670 }
41671 {
41672 if (temp4)
41673 delete arg4;
41674 }
41675 {
41676 if (temp5)
41677 delete arg5;
41678 }
41679 {
41680 if (temp9)
41681 delete arg9;
41682 }
41683 return resultobj;
41684fail:
41685 {
41686 if (temp4)
41687 delete arg4;
41688 }
41689 {
41690 if (temp5)
41691 delete arg5;
41692 }
41693 {
41694 if (temp9)
41695 delete arg9;
41696 }
41697 return NULL;
41698}
41699
41700
41701SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41702 PyObject *resultobj = 0;
41703 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41704 wxColour result;
41705 void *argp1 = 0 ;
41706 int res1 = 0 ;
41707 PyObject *swig_obj[1] ;
41708
41709 if (!args) SWIG_fail;
41710 swig_obj[0] = args;
41711 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41712 if (!SWIG_IsOK(res1)) {
41713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41714 }
41715 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41716 {
41717 PyThreadState* __tstate = wxPyBeginAllowThreads();
41718 result = ((wxHyperlinkCtrl const *)arg1)->GetHoverColour();
41719 wxPyEndAllowThreads(__tstate);
41720 if (PyErr_Occurred()) SWIG_fail;
41721 }
41722 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
41723 return resultobj;
41724fail:
41725 return NULL;
41726}
41727
41728
41729SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41730 PyObject *resultobj = 0;
41731 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41732 wxColour *arg2 = 0 ;
41733 void *argp1 = 0 ;
41734 int res1 = 0 ;
41735 wxColour temp2 ;
41736 PyObject * obj0 = 0 ;
41737 PyObject * obj1 = 0 ;
41738 char * kwnames[] = {
41739 (char *) "self",(char *) "colour", NULL
41740 };
41741
41742 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetHoverColour",kwnames,&obj0,&obj1)) SWIG_fail;
41743 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41744 if (!SWIG_IsOK(res1)) {
41745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41746 }
41747 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41748 {
41749 arg2 = &temp2;
41750 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
41751 }
41752 {
41753 PyThreadState* __tstate = wxPyBeginAllowThreads();
41754 (arg1)->SetHoverColour((wxColour const &)*arg2);
41755 wxPyEndAllowThreads(__tstate);
41756 if (PyErr_Occurred()) SWIG_fail;
41757 }
41758 resultobj = SWIG_Py_Void();
41759 return resultobj;
41760fail:
41761 return NULL;
41762}
41763
41764
41765SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41766 PyObject *resultobj = 0;
41767 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41768 wxColour result;
41769 void *argp1 = 0 ;
41770 int res1 = 0 ;
41771 PyObject *swig_obj[1] ;
41772
41773 if (!args) SWIG_fail;
41774 swig_obj[0] = args;
41775 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41776 if (!SWIG_IsOK(res1)) {
41777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41778 }
41779 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41780 {
41781 PyThreadState* __tstate = wxPyBeginAllowThreads();
41782 result = ((wxHyperlinkCtrl const *)arg1)->GetNormalColour();
41783 wxPyEndAllowThreads(__tstate);
41784 if (PyErr_Occurred()) SWIG_fail;
41785 }
41786 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
41787 return resultobj;
41788fail:
41789 return NULL;
41790}
41791
41792
41793SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41794 PyObject *resultobj = 0;
41795 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41796 wxColour *arg2 = 0 ;
41797 void *argp1 = 0 ;
41798 int res1 = 0 ;
41799 wxColour temp2 ;
41800 PyObject * obj0 = 0 ;
41801 PyObject * obj1 = 0 ;
41802 char * kwnames[] = {
41803 (char *) "self",(char *) "colour", NULL
41804 };
41805
41806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetNormalColour",kwnames,&obj0,&obj1)) SWIG_fail;
41807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41808 if (!SWIG_IsOK(res1)) {
41809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41810 }
41811 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41812 {
41813 arg2 = &temp2;
41814 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
41815 }
41816 {
41817 PyThreadState* __tstate = wxPyBeginAllowThreads();
41818 (arg1)->SetNormalColour((wxColour const &)*arg2);
41819 wxPyEndAllowThreads(__tstate);
41820 if (PyErr_Occurred()) SWIG_fail;
41821 }
41822 resultobj = SWIG_Py_Void();
41823 return resultobj;
41824fail:
41825 return NULL;
41826}
41827
41828
41829SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41830 PyObject *resultobj = 0;
41831 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41832 wxColour result;
41833 void *argp1 = 0 ;
41834 int res1 = 0 ;
41835 PyObject *swig_obj[1] ;
41836
41837 if (!args) SWIG_fail;
41838 swig_obj[0] = args;
41839 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41840 if (!SWIG_IsOK(res1)) {
41841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41842 }
41843 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41844 {
41845 PyThreadState* __tstate = wxPyBeginAllowThreads();
41846 result = ((wxHyperlinkCtrl const *)arg1)->GetVisitedColour();
41847 wxPyEndAllowThreads(__tstate);
41848 if (PyErr_Occurred()) SWIG_fail;
41849 }
41850 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
41851 return resultobj;
41852fail:
41853 return NULL;
41854}
41855
41856
41857SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41858 PyObject *resultobj = 0;
41859 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41860 wxColour *arg2 = 0 ;
41861 void *argp1 = 0 ;
41862 int res1 = 0 ;
41863 wxColour temp2 ;
41864 PyObject * obj0 = 0 ;
41865 PyObject * obj1 = 0 ;
41866 char * kwnames[] = {
41867 (char *) "self",(char *) "colour", NULL
41868 };
41869
41870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetVisitedColour",kwnames,&obj0,&obj1)) SWIG_fail;
41871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41872 if (!SWIG_IsOK(res1)) {
41873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41874 }
41875 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41876 {
41877 arg2 = &temp2;
41878 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
41879 }
41880 {
41881 PyThreadState* __tstate = wxPyBeginAllowThreads();
41882 (arg1)->SetVisitedColour((wxColour const &)*arg2);
41883 wxPyEndAllowThreads(__tstate);
41884 if (PyErr_Occurred()) SWIG_fail;
41885 }
41886 resultobj = SWIG_Py_Void();
41887 return resultobj;
41888fail:
41889 return NULL;
41890}
41891
41892
41893SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41894 PyObject *resultobj = 0;
41895 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41896 wxString result;
41897 void *argp1 = 0 ;
41898 int res1 = 0 ;
41899 PyObject *swig_obj[1] ;
41900
41901 if (!args) SWIG_fail;
41902 swig_obj[0] = args;
41903 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41904 if (!SWIG_IsOK(res1)) {
41905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41906 }
41907 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41908 {
41909 PyThreadState* __tstate = wxPyBeginAllowThreads();
41910 result = ((wxHyperlinkCtrl const *)arg1)->GetURL();
41911 wxPyEndAllowThreads(__tstate);
41912 if (PyErr_Occurred()) SWIG_fail;
41913 }
41914 {
41915#if wxUSE_UNICODE
41916 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
41917#else
41918 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
41919#endif
41920 }
41921 return resultobj;
41922fail:
41923 return NULL;
41924}
41925
41926
41927SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41928 PyObject *resultobj = 0;
41929 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41930 wxString *arg2 = 0 ;
41931 void *argp1 = 0 ;
41932 int res1 = 0 ;
41933 bool temp2 = false ;
41934 PyObject * obj0 = 0 ;
41935 PyObject * obj1 = 0 ;
41936 char * kwnames[] = {
41937 (char *) "self",(char *) "url", NULL
41938 };
41939
41940 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
41941 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41942 if (!SWIG_IsOK(res1)) {
41943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41944 }
41945 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41946 {
41947 arg2 = wxString_in_helper(obj1);
41948 if (arg2 == NULL) SWIG_fail;
41949 temp2 = true;
41950 }
41951 {
41952 PyThreadState* __tstate = wxPyBeginAllowThreads();
41953 (arg1)->SetURL((wxString const &)*arg2);
41954 wxPyEndAllowThreads(__tstate);
41955 if (PyErr_Occurred()) SWIG_fail;
41956 }
41957 resultobj = SWIG_Py_Void();
41958 {
41959 if (temp2)
41960 delete arg2;
41961 }
41962 return resultobj;
41963fail:
41964 {
41965 if (temp2)
41966 delete arg2;
41967 }
41968 return NULL;
41969}
41970
41971
41972SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41973 PyObject *resultobj = 0;
41974 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41975 bool arg2 = (bool) true ;
41976 void *argp1 = 0 ;
41977 int res1 = 0 ;
41978 bool val2 ;
41979 int ecode2 = 0 ;
41980 PyObject * obj0 = 0 ;
41981 PyObject * obj1 = 0 ;
41982 char * kwnames[] = {
41983 (char *) "self",(char *) "visited", NULL
41984 };
41985
41986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:HyperlinkCtrl_SetVisited",kwnames,&obj0,&obj1)) SWIG_fail;
41987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41988 if (!SWIG_IsOK(res1)) {
41989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41990 }
41991 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41992 if (obj1) {
41993 ecode2 = SWIG_AsVal_bool(obj1, &val2);
41994 if (!SWIG_IsOK(ecode2)) {
41995 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "2"" of type '" "bool""'");
41996 }
41997 arg2 = static_cast< bool >(val2);
41998 }
41999 {
42000 PyThreadState* __tstate = wxPyBeginAllowThreads();
42001 (arg1)->SetVisited(arg2);
42002 wxPyEndAllowThreads(__tstate);
42003 if (PyErr_Occurred()) SWIG_fail;
42004 }
42005 resultobj = SWIG_Py_Void();
42006 return resultobj;
42007fail:
42008 return NULL;
42009}
42010
42011
42012SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42013 PyObject *resultobj = 0;
42014 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42015 bool result;
42016 void *argp1 = 0 ;
42017 int res1 = 0 ;
42018 PyObject *swig_obj[1] ;
42019
42020 if (!args) SWIG_fail;
42021 swig_obj[0] = args;
42022 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42023 if (!SWIG_IsOK(res1)) {
42024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42025 }
42026 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42027 {
42028 PyThreadState* __tstate = wxPyBeginAllowThreads();
42029 result = (bool)((wxHyperlinkCtrl const *)arg1)->GetVisited();
42030 wxPyEndAllowThreads(__tstate);
42031 if (PyErr_Occurred()) SWIG_fail;
42032 }
42033 {
42034 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42035 }
42036 return resultobj;
42037fail:
42038 return NULL;
42039}
42040
42041
42042SWIGINTERN PyObject *HyperlinkCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42043 PyObject *obj;
42044 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42045 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkCtrl, SWIG_NewClientData(obj));
42046 return SWIG_Py_Void();
42047}
42048
42049SWIGINTERN PyObject *HyperlinkCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42050 return SWIG_Python_InitShadowInstance(args);
42051}
42052
42053SWIGINTERN PyObject *_wrap_new_HyperlinkEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42054 PyObject *resultobj = 0;
42055 wxObject *arg1 = (wxObject *) 0 ;
42056 int arg2 ;
42057 wxString *arg3 = 0 ;
42058 wxHyperlinkEvent *result = 0 ;
42059 void *argp1 = 0 ;
42060 int res1 = 0 ;
42061 int val2 ;
42062 int ecode2 = 0 ;
42063 bool temp3 = false ;
42064 PyObject * obj0 = 0 ;
42065 PyObject * obj1 = 0 ;
42066 PyObject * obj2 = 0 ;
42067 char * kwnames[] = {
42068 (char *) "generator",(char *) "id",(char *) "url", NULL
42069 };
42070
42071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_HyperlinkEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
42072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
42073 if (!SWIG_IsOK(res1)) {
42074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkEvent" "', expected argument " "1"" of type '" "wxObject *""'");
42075 }
42076 arg1 = reinterpret_cast< wxObject * >(argp1);
42077 ecode2 = SWIG_AsVal_int(obj1, &val2);
42078 if (!SWIG_IsOK(ecode2)) {
42079 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkEvent" "', expected argument " "2"" of type '" "int""'");
42080 }
42081 arg2 = static_cast< int >(val2);
42082 {
42083 arg3 = wxString_in_helper(obj2);
42084 if (arg3 == NULL) SWIG_fail;
42085 temp3 = true;
42086 }
42087 {
42088 PyThreadState* __tstate = wxPyBeginAllowThreads();
42089 result = (wxHyperlinkEvent *)new wxHyperlinkEvent(arg1,arg2,(wxString const &)*arg3);
42090 wxPyEndAllowThreads(__tstate);
42091 if (PyErr_Occurred()) SWIG_fail;
42092 }
42093 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkEvent, SWIG_POINTER_NEW | 0 );
42094 {
42095 if (temp3)
42096 delete arg3;
42097 }
42098 return resultobj;
42099fail:
42100 {
42101 if (temp3)
42102 delete arg3;
42103 }
42104 return NULL;
42105}
42106
42107
42108SWIGINTERN PyObject *_wrap_HyperlinkEvent_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42109 PyObject *resultobj = 0;
42110 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42111 wxString result;
42112 void *argp1 = 0 ;
42113 int res1 = 0 ;
42114 PyObject *swig_obj[1] ;
42115
42116 if (!args) SWIG_fail;
42117 swig_obj[0] = args;
42118 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42119 if (!SWIG_IsOK(res1)) {
42120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent const *""'");
42121 }
42122 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42123 {
42124 PyThreadState* __tstate = wxPyBeginAllowThreads();
42125 result = ((wxHyperlinkEvent const *)arg1)->GetURL();
42126 wxPyEndAllowThreads(__tstate);
42127 if (PyErr_Occurred()) SWIG_fail;
42128 }
42129 {
42130#if wxUSE_UNICODE
42131 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42132#else
42133 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42134#endif
42135 }
42136 return resultobj;
42137fail:
42138 return NULL;
42139}
42140
42141
42142SWIGINTERN PyObject *_wrap_HyperlinkEvent_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42143 PyObject *resultobj = 0;
42144 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42145 wxString *arg2 = 0 ;
42146 void *argp1 = 0 ;
42147 int res1 = 0 ;
42148 bool temp2 = false ;
42149 PyObject * obj0 = 0 ;
42150 PyObject * obj1 = 0 ;
42151 char * kwnames[] = {
42152 (char *) "self",(char *) "url", NULL
42153 };
42154
42155 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkEvent_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42156 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42157 if (!SWIG_IsOK(res1)) {
42158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent *""'");
42159 }
42160 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42161 {
42162 arg2 = wxString_in_helper(obj1);
42163 if (arg2 == NULL) SWIG_fail;
42164 temp2 = true;
42165 }
42166 {
42167 PyThreadState* __tstate = wxPyBeginAllowThreads();
42168 (arg1)->SetURL((wxString const &)*arg2);
42169 wxPyEndAllowThreads(__tstate);
42170 if (PyErr_Occurred()) SWIG_fail;
42171 }
42172 resultobj = SWIG_Py_Void();
42173 {
42174 if (temp2)
42175 delete arg2;
42176 }
42177 return resultobj;
42178fail:
42179 {
42180 if (temp2)
42181 delete arg2;
42182 }
42183 return NULL;
42184}
42185
42186
42187SWIGINTERN PyObject *HyperlinkEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42188 PyObject *obj;
42189 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42190 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkEvent, SWIG_NewClientData(obj));
42191 return SWIG_Py_Void();
42192}
42193
42194SWIGINTERN PyObject *HyperlinkEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42195 return SWIG_Python_InitShadowInstance(args);
42196}
42197
b850e7f3
RD
42198SWIGINTERN PyObject *_wrap_PickerBase_CreateBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42199 PyObject *resultobj = 0;
42200 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42201 wxWindow *arg2 = (wxWindow *) 0 ;
42202 int arg3 ;
42203 wxString const &arg4_defvalue = wxEmptyString ;
42204 wxString *arg4 = (wxString *) &arg4_defvalue ;
42205 wxPoint const &arg5_defvalue = wxDefaultPosition ;
42206 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
42207 wxSize const &arg6_defvalue = wxDefaultSize ;
42208 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
42209 long arg7 = (long) 0 ;
42210 wxValidator const &arg8_defvalue = wxDefaultValidator ;
42211 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
42212 wxString const &arg9_defvalue = wxButtonNameStr ;
42213 wxString *arg9 = (wxString *) &arg9_defvalue ;
42214 bool result;
42215 void *argp1 = 0 ;
42216 int res1 = 0 ;
42217 void *argp2 = 0 ;
42218 int res2 = 0 ;
42219 int val3 ;
42220 int ecode3 = 0 ;
42221 bool temp4 = false ;
42222 wxPoint temp5 ;
42223 wxSize temp6 ;
42224 long val7 ;
42225 int ecode7 = 0 ;
42226 void *argp8 = 0 ;
42227 int res8 = 0 ;
42228 bool temp9 = false ;
42229 PyObject * obj0 = 0 ;
42230 PyObject * obj1 = 0 ;
42231 PyObject * obj2 = 0 ;
42232 PyObject * obj3 = 0 ;
42233 PyObject * obj4 = 0 ;
42234 PyObject * obj5 = 0 ;
42235 PyObject * obj6 = 0 ;
42236 PyObject * obj7 = 0 ;
42237 PyObject * obj8 = 0 ;
42238 char * kwnames[] = {
42239 (char *) "self",(char *) "parent",(char *) "id",(char *) "text",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
42240 };
42241
42242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:PickerBase_CreateBase",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
42243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42244 if (!SWIG_IsOK(res1)) {
42245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_CreateBase" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42246 }
42247 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42248 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
42249 if (!SWIG_IsOK(res2)) {
42250 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PickerBase_CreateBase" "', expected argument " "2"" of type '" "wxWindow *""'");
42251 }
42252 arg2 = reinterpret_cast< wxWindow * >(argp2);
42253 ecode3 = SWIG_AsVal_int(obj2, &val3);
42254 if (!SWIG_IsOK(ecode3)) {
42255 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PickerBase_CreateBase" "', expected argument " "3"" of type '" "int""'");
42256 }
42257 arg3 = static_cast< int >(val3);
42258 if (obj3) {
42259 {
42260 arg4 = wxString_in_helper(obj3);
42261 if (arg4 == NULL) SWIG_fail;
42262 temp4 = true;
42263 }
42264 }
42265 if (obj4) {
42266 {
42267 arg5 = &temp5;
42268 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
42269 }
42270 }
42271 if (obj5) {
42272 {
42273 arg6 = &temp6;
42274 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
42275 }
42276 }
42277 if (obj6) {
42278 ecode7 = SWIG_AsVal_long(obj6, &val7);
42279 if (!SWIG_IsOK(ecode7)) {
42280 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PickerBase_CreateBase" "', expected argument " "7"" of type '" "long""'");
42281 }
42282 arg7 = static_cast< long >(val7);
42283 }
42284 if (obj7) {
42285 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
42286 if (!SWIG_IsOK(res8)) {
42287 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42288 }
42289 if (!argp8) {
42290 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42291 }
42292 arg8 = reinterpret_cast< wxValidator * >(argp8);
42293 }
42294 if (obj8) {
42295 {
42296 arg9 = wxString_in_helper(obj8);
42297 if (arg9 == NULL) SWIG_fail;
42298 temp9 = true;
42299 }
42300 }
42301 {
42302 PyThreadState* __tstate = wxPyBeginAllowThreads();
42303 result = (bool)(arg1)->CreateBase(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
42304 wxPyEndAllowThreads(__tstate);
42305 if (PyErr_Occurred()) SWIG_fail;
42306 }
42307 {
42308 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42309 }
42310 {
42311 if (temp4)
42312 delete arg4;
42313 }
42314 {
42315 if (temp9)
42316 delete arg9;
42317 }
42318 return resultobj;
42319fail:
42320 {
42321 if (temp4)
42322 delete arg4;
42323 }
42324 {
42325 if (temp9)
42326 delete arg9;
42327 }
42328 return NULL;
42329}
42330
42331
42332SWIGINTERN PyObject *_wrap_PickerBase_SetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42333 PyObject *resultobj = 0;
42334 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42335 int arg2 ;
42336 void *argp1 = 0 ;
42337 int res1 = 0 ;
42338 int val2 ;
42339 int ecode2 = 0 ;
42340 PyObject * obj0 = 0 ;
42341 PyObject * obj1 = 0 ;
42342 char * kwnames[] = {
42343 (char *) "self",(char *) "newmargin", NULL
42344 };
42345
42346 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetInternalMargin",kwnames,&obj0,&obj1)) SWIG_fail;
42347 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42348 if (!SWIG_IsOK(res1)) {
42349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42350 }
42351 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42352 ecode2 = SWIG_AsVal_int(obj1, &val2);
42353 if (!SWIG_IsOK(ecode2)) {
42354 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "2"" of type '" "int""'");
42355 }
42356 arg2 = static_cast< int >(val2);
42357 {
42358 PyThreadState* __tstate = wxPyBeginAllowThreads();
42359 (arg1)->SetInternalMargin(arg2);
42360 wxPyEndAllowThreads(__tstate);
42361 if (PyErr_Occurred()) SWIG_fail;
42362 }
42363 resultobj = SWIG_Py_Void();
42364 return resultobj;
42365fail:
42366 return NULL;
42367}
42368
42369
42370SWIGINTERN PyObject *_wrap_PickerBase_GetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42371 PyObject *resultobj = 0;
42372 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42373 int result;
42374 void *argp1 = 0 ;
42375 int res1 = 0 ;
42376 PyObject *swig_obj[1] ;
42377
42378 if (!args) SWIG_fail;
42379 swig_obj[0] = args;
42380 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42381 if (!SWIG_IsOK(res1)) {
42382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42383 }
42384 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42385 {
42386 PyThreadState* __tstate = wxPyBeginAllowThreads();
42387 result = (int)((wxPickerBase const *)arg1)->GetInternalMargin();
42388 wxPyEndAllowThreads(__tstate);
42389 if (PyErr_Occurred()) SWIG_fail;
42390 }
42391 resultobj = SWIG_From_int(static_cast< int >(result));
42392 return resultobj;
42393fail:
42394 return NULL;
42395}
42396
42397
42398SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42399 PyObject *resultobj = 0;
42400 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42401 int arg2 ;
42402 void *argp1 = 0 ;
42403 int res1 = 0 ;
42404 int val2 ;
42405 int ecode2 = 0 ;
42406 PyObject * obj0 = 0 ;
42407 PyObject * obj1 = 0 ;
42408 char * kwnames[] = {
42409 (char *) "self",(char *) "prop", NULL
42410 };
42411
42412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetTextCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
42413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42414 if (!SWIG_IsOK(res1)) {
42415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42416 }
42417 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42418 ecode2 = SWIG_AsVal_int(obj1, &val2);
42419 if (!SWIG_IsOK(ecode2)) {
42420 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "2"" of type '" "int""'");
42421 }
42422 arg2 = static_cast< int >(val2);
42423 {
42424 PyThreadState* __tstate = wxPyBeginAllowThreads();
42425 (arg1)->SetTextCtrlProportion(arg2);
42426 wxPyEndAllowThreads(__tstate);
42427 if (PyErr_Occurred()) SWIG_fail;
42428 }
42429 resultobj = SWIG_Py_Void();
42430 return resultobj;
42431fail:
42432 return NULL;
42433}
42434
42435
42436SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42437 PyObject *resultobj = 0;
42438 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42439 int result;
42440 void *argp1 = 0 ;
42441 int res1 = 0 ;
42442 PyObject *swig_obj[1] ;
42443
42444 if (!args) SWIG_fail;
42445 swig_obj[0] = args;
42446 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42447 if (!SWIG_IsOK(res1)) {
42448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42449 }
42450 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42451 {
42452 PyThreadState* __tstate = wxPyBeginAllowThreads();
42453 result = (int)((wxPickerBase const *)arg1)->GetTextCtrlProportion();
42454 wxPyEndAllowThreads(__tstate);
42455 if (PyErr_Occurred()) SWIG_fail;
42456 }
42457 resultobj = SWIG_From_int(static_cast< int >(result));
42458 return resultobj;
42459fail:
42460 return NULL;
42461}
42462
42463
b02396e8
RD
42464SWIGINTERN PyObject *_wrap_PickerBase_IsTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42465 PyObject *resultobj = 0;
42466 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42467 bool result;
42468 void *argp1 = 0 ;
42469 int res1 = 0 ;
42470 PyObject *swig_obj[1] ;
42471
42472 if (!args) SWIG_fail;
42473 swig_obj[0] = args;
42474 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42475 if (!SWIG_IsOK(res1)) {
42476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42477 }
42478 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42479 {
42480 PyThreadState* __tstate = wxPyBeginAllowThreads();
42481 result = (bool)((wxPickerBase const *)arg1)->IsTextCtrlGrowable();
42482 wxPyEndAllowThreads(__tstate);
42483 if (PyErr_Occurred()) SWIG_fail;
42484 }
42485 {
42486 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42487 }
42488 return resultobj;
42489fail:
42490 return NULL;
42491}
42492
42493
42494SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42495 PyObject *resultobj = 0;
42496 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42497 bool arg2 = (bool) true ;
42498 void *argp1 = 0 ;
42499 int res1 = 0 ;
42500 bool val2 ;
42501 int ecode2 = 0 ;
42502 PyObject * obj0 = 0 ;
42503 PyObject * obj1 = 0 ;
42504 char * kwnames[] = {
42505 (char *) "self",(char *) "grow", NULL
42506 };
42507
42508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetTextCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
42509 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42510 if (!SWIG_IsOK(res1)) {
42511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42512 }
42513 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42514 if (obj1) {
42515 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42516 if (!SWIG_IsOK(ecode2)) {
42517 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
42518 }
42519 arg2 = static_cast< bool >(val2);
42520 }
42521 {
42522 PyThreadState* __tstate = wxPyBeginAllowThreads();
42523 (arg1)->SetTextCtrlGrowable(arg2);
42524 wxPyEndAllowThreads(__tstate);
42525 if (PyErr_Occurred()) SWIG_fail;
42526 }
42527 resultobj = SWIG_Py_Void();
42528 return resultobj;
42529fail:
42530 return NULL;
42531}
42532
42533
42534SWIGINTERN PyObject *_wrap_PickerBase_IsPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42535 PyObject *resultobj = 0;
42536 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42537 bool result;
42538 void *argp1 = 0 ;
42539 int res1 = 0 ;
42540 PyObject *swig_obj[1] ;
42541
42542 if (!args) SWIG_fail;
42543 swig_obj[0] = args;
42544 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42545 if (!SWIG_IsOK(res1)) {
42546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42547 }
42548 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42549 {
42550 PyThreadState* __tstate = wxPyBeginAllowThreads();
42551 result = (bool)((wxPickerBase const *)arg1)->IsPickerCtrlGrowable();
42552 wxPyEndAllowThreads(__tstate);
42553 if (PyErr_Occurred()) SWIG_fail;
42554 }
42555 {
42556 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42557 }
42558 return resultobj;
42559fail:
42560 return NULL;
42561}
42562
42563
42564SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42565 PyObject *resultobj = 0;
42566 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42567 bool arg2 = (bool) true ;
42568 void *argp1 = 0 ;
42569 int res1 = 0 ;
42570 bool val2 ;
42571 int ecode2 = 0 ;
42572 PyObject * obj0 = 0 ;
42573 PyObject * obj1 = 0 ;
42574 char * kwnames[] = {
42575 (char *) "self",(char *) "grow", NULL
42576 };
42577
42578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetPickerCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
42579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42580 if (!SWIG_IsOK(res1)) {
42581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42582 }
42583 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42584 if (obj1) {
42585 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42586 if (!SWIG_IsOK(ecode2)) {
42587 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
42588 }
42589 arg2 = static_cast< bool >(val2);
42590 }
42591 {
42592 PyThreadState* __tstate = wxPyBeginAllowThreads();
42593 (arg1)->SetPickerCtrlGrowable(arg2);
42594 wxPyEndAllowThreads(__tstate);
42595 if (PyErr_Occurred()) SWIG_fail;
42596 }
42597 resultobj = SWIG_Py_Void();
42598 return resultobj;
42599fail:
42600 return NULL;
42601}
42602
42603
b850e7f3
RD
42604SWIGINTERN PyObject *_wrap_PickerBase_HasTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42605 PyObject *resultobj = 0;
42606 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42607 bool result;
42608 void *argp1 = 0 ;
42609 int res1 = 0 ;
42610 PyObject *swig_obj[1] ;
42611
42612 if (!args) SWIG_fail;
42613 swig_obj[0] = args;
42614 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42615 if (!SWIG_IsOK(res1)) {
42616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_HasTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42617 }
42618 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42619 {
42620 PyThreadState* __tstate = wxPyBeginAllowThreads();
42621 result = (bool)((wxPickerBase const *)arg1)->HasTextCtrl();
42622 wxPyEndAllowThreads(__tstate);
42623 if (PyErr_Occurred()) SWIG_fail;
42624 }
42625 {
42626 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42627 }
42628 return resultobj;
42629fail:
42630 return NULL;
42631}
42632
42633
42634SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42635 PyObject *resultobj = 0;
42636 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42637 wxTextCtrl *result = 0 ;
42638 void *argp1 = 0 ;
42639 int res1 = 0 ;
42640 PyObject *swig_obj[1] ;
42641
42642 if (!args) SWIG_fail;
42643 swig_obj[0] = args;
42644 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42645 if (!SWIG_IsOK(res1)) {
42646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42647 }
42648 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42649 {
42650 PyThreadState* __tstate = wxPyBeginAllowThreads();
42651 result = (wxTextCtrl *)(arg1)->GetTextCtrl();
42652 wxPyEndAllowThreads(__tstate);
42653 if (PyErr_Occurred()) SWIG_fail;
42654 }
42655 {
42656 resultobj = wxPyMake_wxObject(result, 0);
42657 }
42658 return resultobj;
42659fail:
42660 return NULL;
42661}
42662
42663
42664SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42665 PyObject *resultobj = 0;
42666 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42667 wxControl *result = 0 ;
42668 void *argp1 = 0 ;
42669 int res1 = 0 ;
42670 PyObject *swig_obj[1] ;
42671
42672 if (!args) SWIG_fail;
42673 swig_obj[0] = args;
42674 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42675 if (!SWIG_IsOK(res1)) {
42676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42677 }
42678 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42679 {
42680 PyThreadState* __tstate = wxPyBeginAllowThreads();
42681 result = (wxControl *)(arg1)->GetPickerCtrl();
42682 wxPyEndAllowThreads(__tstate);
42683 if (PyErr_Occurred()) SWIG_fail;
42684 }
42685 {
42686 resultobj = wxPyMake_wxObject(result, 0);
42687 }
42688 return resultobj;
42689fail:
42690 return NULL;
42691}
42692
42693
42694SWIGINTERN PyObject *PickerBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42695 PyObject *obj;
42696 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42697 SWIG_TypeNewClientData(SWIGTYPE_p_wxPickerBase, SWIG_NewClientData(obj));
42698 return SWIG_Py_Void();
42699}
42700
42701SWIGINTERN int ColourPickerCtrlNameStr_set(PyObject *) {
42702 SWIG_Error(SWIG_AttributeError,"Variable ColourPickerCtrlNameStr is read-only.");
42703 return 1;
42704}
42705
42706
42707SWIGINTERN PyObject *ColourPickerCtrlNameStr_get(void) {
42708 PyObject *pyobj = 0;
42709
42710 {
42711#if wxUSE_UNICODE
42712 pyobj = PyUnicode_FromWideChar((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
42713#else
42714 pyobj = PyString_FromStringAndSize((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
42715#endif
42716 }
42717 return pyobj;
42718}
42719
42720
42721SWIGINTERN PyObject *_wrap_new_ColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42722 PyObject *resultobj = 0;
42723 wxWindow *arg1 = (wxWindow *) 0 ;
42724 int arg2 = (int) -1 ;
42725 wxColour const &arg3_defvalue = *wxBLACK ;
42726 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
42727 wxPoint const &arg4_defvalue = wxDefaultPosition ;
42728 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
42729 wxSize const &arg5_defvalue = wxDefaultSize ;
42730 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
42731 long arg6 = (long) wxCLRP_DEFAULT_STYLE ;
42732 wxValidator const &arg7_defvalue = wxDefaultValidator ;
42733 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
42734 wxString const &arg8_defvalue = wxPyColourPickerCtrlNameStr ;
42735 wxString *arg8 = (wxString *) &arg8_defvalue ;
42736 wxColourPickerCtrl *result = 0 ;
42737 void *argp1 = 0 ;
42738 int res1 = 0 ;
42739 int val2 ;
42740 int ecode2 = 0 ;
42741 wxColour temp3 ;
42742 wxPoint temp4 ;
42743 wxSize temp5 ;
42744 long val6 ;
42745 int ecode6 = 0 ;
42746 void *argp7 = 0 ;
42747 int res7 = 0 ;
42748 bool temp8 = false ;
42749 PyObject * obj0 = 0 ;
42750 PyObject * obj1 = 0 ;
42751 PyObject * obj2 = 0 ;
42752 PyObject * obj3 = 0 ;
42753 PyObject * obj4 = 0 ;
42754 PyObject * obj5 = 0 ;
42755 PyObject * obj6 = 0 ;
42756 PyObject * obj7 = 0 ;
42757 char * kwnames[] = {
42758 (char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
42759 };
42760
42761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ColourPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
42762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
42763 if (!SWIG_IsOK(res1)) {
42764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
42765 }
42766 arg1 = reinterpret_cast< wxWindow * >(argp1);
42767 if (obj1) {
42768 ecode2 = SWIG_AsVal_int(obj1, &val2);
42769 if (!SWIG_IsOK(ecode2)) {
42770 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerCtrl" "', expected argument " "2"" of type '" "int""'");
42771 }
42772 arg2 = static_cast< int >(val2);
42773 }
42774 if (obj2) {
42775 {
42776 arg3 = &temp3;
42777 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
42778 }
42779 }
42780 if (obj3) {
42781 {
42782 arg4 = &temp4;
42783 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
42784 }
42785 }
42786 if (obj4) {
42787 {
42788 arg5 = &temp5;
42789 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
42790 }
42791 }
42792 if (obj5) {
42793 ecode6 = SWIG_AsVal_long(obj5, &val6);
42794 if (!SWIG_IsOK(ecode6)) {
42795 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ColourPickerCtrl" "', expected argument " "6"" of type '" "long""'");
42796 }
42797 arg6 = static_cast< long >(val6);
42798 }
42799 if (obj6) {
42800 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
42801 if (!SWIG_IsOK(res7)) {
42802 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
42803 }
42804 if (!argp7) {
42805 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
42806 }
42807 arg7 = reinterpret_cast< wxValidator * >(argp7);
42808 }
42809 if (obj7) {
42810 {
42811 arg8 = wxString_in_helper(obj7);
42812 if (arg8 == NULL) SWIG_fail;
42813 temp8 = true;
42814 }
42815 }
42816 {
42817 if (!wxPyCheckForApp()) SWIG_fail;
42818 PyThreadState* __tstate = wxPyBeginAllowThreads();
42819 result = (wxColourPickerCtrl *)new wxColourPickerCtrl(arg1,arg2,(wxColour const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
42820 wxPyEndAllowThreads(__tstate);
42821 if (PyErr_Occurred()) SWIG_fail;
42822 }
42823 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_NEW | 0 );
42824 {
42825 if (temp8)
42826 delete arg8;
42827 }
42828 return resultobj;
42829fail:
42830 {
42831 if (temp8)
42832 delete arg8;
42833 }
42834 return NULL;
42835}
42836
42837
42838SWIGINTERN PyObject *_wrap_new_PreColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42839 PyObject *resultobj = 0;
42840 wxColourPickerCtrl *result = 0 ;
42841
42842 if (!SWIG_Python_UnpackTuple(args,"new_PreColourPickerCtrl",0,0,0)) SWIG_fail;
42843 {
42844 if (!wxPyCheckForApp()) SWIG_fail;
42845 PyThreadState* __tstate = wxPyBeginAllowThreads();
42846 result = (wxColourPickerCtrl *)new wxColourPickerCtrl();
42847 wxPyEndAllowThreads(__tstate);
42848 if (PyErr_Occurred()) SWIG_fail;
42849 }
42850 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_OWN | 0 );
42851 return resultobj;
42852fail:
42853 return NULL;
42854}
42855
42856
42857SWIGINTERN PyObject *_wrap_ColourPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42858 PyObject *resultobj = 0;
42859 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
42860 wxWindow *arg2 = (wxWindow *) 0 ;
42861 int arg3 ;
42862 wxColour const &arg4_defvalue = *wxBLACK ;
42863 wxColour *arg4 = (wxColour *) &arg4_defvalue ;
42864 wxPoint const &arg5_defvalue = wxDefaultPosition ;
42865 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
42866 wxSize const &arg6_defvalue = wxDefaultSize ;
42867 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
42868 long arg7 = (long) wxCLRP_DEFAULT_STYLE ;
42869 wxValidator const &arg8_defvalue = wxDefaultValidator ;
42870 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
42871 wxString const &arg9_defvalue = wxPyColourPickerCtrlNameStr ;
42872 wxString *arg9 = (wxString *) &arg9_defvalue ;
42873 bool result;
42874 void *argp1 = 0 ;
42875 int res1 = 0 ;
42876 void *argp2 = 0 ;
42877 int res2 = 0 ;
42878 int val3 ;
42879 int ecode3 = 0 ;
42880 wxColour temp4 ;
42881 wxPoint temp5 ;
42882 wxSize temp6 ;
42883 long val7 ;
42884 int ecode7 = 0 ;
42885 void *argp8 = 0 ;
42886 int res8 = 0 ;
42887 bool temp9 = false ;
42888 PyObject * obj0 = 0 ;
42889 PyObject * obj1 = 0 ;
42890 PyObject * obj2 = 0 ;
42891 PyObject * obj3 = 0 ;
42892 PyObject * obj4 = 0 ;
42893 PyObject * obj5 = 0 ;
42894 PyObject * obj6 = 0 ;
42895 PyObject * obj7 = 0 ;
42896 PyObject * obj8 = 0 ;
42897 char * kwnames[] = {
42898 (char *) "self",(char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
42899 };
42900
42901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ColourPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
42902 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
42903 if (!SWIG_IsOK(res1)) {
42904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_Create" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
42905 }
42906 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
42907 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
42908 if (!SWIG_IsOK(res2)) {
42909 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ColourPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
42910 }
42911 arg2 = reinterpret_cast< wxWindow * >(argp2);
42912 ecode3 = SWIG_AsVal_int(obj2, &val3);
42913 if (!SWIG_IsOK(ecode3)) {
42914 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
42915 }
42916 arg3 = static_cast< int >(val3);
42917 if (obj3) {
42918 {
42919 arg4 = &temp4;
42920 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
42921 }
42922 }
42923 if (obj4) {
42924 {
42925 arg5 = &temp5;
42926 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
42927 }
42928 }
42929 if (obj5) {
42930 {
42931 arg6 = &temp6;
42932 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
42933 }
42934 }
42935 if (obj6) {
42936 ecode7 = SWIG_AsVal_long(obj6, &val7);
42937 if (!SWIG_IsOK(ecode7)) {
42938 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ColourPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
42939 }
42940 arg7 = static_cast< long >(val7);
42941 }
42942 if (obj7) {
42943 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
42944 if (!SWIG_IsOK(res8)) {
42945 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
42946 }
42947 if (!argp8) {
42948 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
42949 }
42950 arg8 = reinterpret_cast< wxValidator * >(argp8);
42951 }
42952 if (obj8) {
42953 {
42954 arg9 = wxString_in_helper(obj8);
42955 if (arg9 == NULL) SWIG_fail;
42956 temp9 = true;
42957 }
42958 }
42959 {
42960 PyThreadState* __tstate = wxPyBeginAllowThreads();
42961 result = (bool)(arg1)->Create(arg2,arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
42962 wxPyEndAllowThreads(__tstate);
42963 if (PyErr_Occurred()) SWIG_fail;
42964 }
42965 {
42966 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42967 }
42968 {
42969 if (temp9)
42970 delete arg9;
42971 }
42972 return resultobj;
42973fail:
42974 {
42975 if (temp9)
42976 delete arg9;
42977 }
42978 return NULL;
42979}
42980
42981
42982SWIGINTERN PyObject *_wrap_ColourPickerCtrl_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42983 PyObject *resultobj = 0;
42984 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
42985 wxColour result;
42986 void *argp1 = 0 ;
42987 int res1 = 0 ;
42988 PyObject *swig_obj[1] ;
42989
42990 if (!args) SWIG_fail;
42991 swig_obj[0] = args;
42992 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
42993 if (!SWIG_IsOK(res1)) {
42994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_GetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl const *""'");
42995 }
42996 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
42997 {
42998 PyThreadState* __tstate = wxPyBeginAllowThreads();
42999 result = ((wxColourPickerCtrl const *)arg1)->GetColour();
43000 wxPyEndAllowThreads(__tstate);
43001 if (PyErr_Occurred()) SWIG_fail;
43002 }
43003 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43004 return resultobj;
43005fail:
43006 return NULL;
43007}
43008
43009
43010SWIGINTERN PyObject *_wrap_ColourPickerCtrl_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43011 PyObject *resultobj = 0;
43012 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43013 wxColour *arg2 = 0 ;
43014 void *argp1 = 0 ;
43015 int res1 = 0 ;
43016 wxColour temp2 ;
43017 PyObject * obj0 = 0 ;
43018 PyObject * obj1 = 0 ;
43019 char * kwnames[] = {
43020 (char *) "self",(char *) "col", NULL
43021 };
43022
43023 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerCtrl_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43024 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43025 if (!SWIG_IsOK(res1)) {
43026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_SetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43027 }
43028 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43029 {
43030 arg2 = &temp2;
43031 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43032 }
43033 {
43034 PyThreadState* __tstate = wxPyBeginAllowThreads();
43035 (arg1)->SetColour((wxColour const &)*arg2);
43036 wxPyEndAllowThreads(__tstate);
43037 if (PyErr_Occurred()) SWIG_fail;
43038 }
43039 resultobj = SWIG_Py_Void();
43040 return resultobj;
43041fail:
43042 return NULL;
43043}
43044
43045
43046SWIGINTERN PyObject *ColourPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43047 PyObject *obj;
43048 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43049 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerCtrl, SWIG_NewClientData(obj));
43050 return SWIG_Py_Void();
43051}
43052
43053SWIGINTERN PyObject *ColourPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43054 return SWIG_Python_InitShadowInstance(args);
43055}
43056
43057SWIGINTERN PyObject *_wrap_new_ColourPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43058 PyObject *resultobj = 0;
43059 wxObject *arg1 = (wxObject *) 0 ;
43060 int arg2 ;
43061 wxColour *arg3 = 0 ;
43062 wxColourPickerEvent *result = 0 ;
43063 void *argp1 = 0 ;
43064 int res1 = 0 ;
43065 int val2 ;
43066 int ecode2 = 0 ;
43067 wxColour temp3 ;
43068 PyObject * obj0 = 0 ;
43069 PyObject * obj1 = 0 ;
43070 PyObject * obj2 = 0 ;
43071 char * kwnames[] = {
43072 (char *) "generator",(char *) "id",(char *) "col", NULL
43073 };
43074
43075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ColourPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
43076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
43077 if (!SWIG_IsOK(res1)) {
43078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
43079 }
43080 arg1 = reinterpret_cast< wxObject * >(argp1);
43081 ecode2 = SWIG_AsVal_int(obj1, &val2);
43082 if (!SWIG_IsOK(ecode2)) {
43083 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerEvent" "', expected argument " "2"" of type '" "int""'");
43084 }
43085 arg2 = static_cast< int >(val2);
43086 {
43087 arg3 = &temp3;
43088 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
43089 }
43090 {
43091 PyThreadState* __tstate = wxPyBeginAllowThreads();
43092 result = (wxColourPickerEvent *)new wxColourPickerEvent(arg1,arg2,(wxColour const &)*arg3);
43093 wxPyEndAllowThreads(__tstate);
43094 if (PyErr_Occurred()) SWIG_fail;
43095 }
43096 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerEvent, SWIG_POINTER_NEW | 0 );
43097 return resultobj;
43098fail:
43099 return NULL;
43100}
43101
43102
43103SWIGINTERN PyObject *_wrap_ColourPickerEvent_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43104 PyObject *resultobj = 0;
43105 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43106 wxColour result;
43107 void *argp1 = 0 ;
43108 int res1 = 0 ;
43109 PyObject *swig_obj[1] ;
43110
43111 if (!args) SWIG_fail;
43112 swig_obj[0] = args;
43113 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43114 if (!SWIG_IsOK(res1)) {
43115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_GetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent const *""'");
43116 }
43117 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43118 {
43119 PyThreadState* __tstate = wxPyBeginAllowThreads();
43120 result = ((wxColourPickerEvent const *)arg1)->GetColour();
43121 wxPyEndAllowThreads(__tstate);
43122 if (PyErr_Occurred()) SWIG_fail;
43123 }
43124 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43125 return resultobj;
43126fail:
43127 return NULL;
43128}
43129
43130
43131SWIGINTERN PyObject *_wrap_ColourPickerEvent_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43132 PyObject *resultobj = 0;
43133 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43134 wxColour *arg2 = 0 ;
43135 void *argp1 = 0 ;
43136 int res1 = 0 ;
43137 wxColour temp2 ;
43138 PyObject * obj0 = 0 ;
43139 PyObject * obj1 = 0 ;
43140 char * kwnames[] = {
43141 (char *) "self",(char *) "c", NULL
43142 };
43143
43144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerEvent_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43146 if (!SWIG_IsOK(res1)) {
43147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_SetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent *""'");
43148 }
43149 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43150 {
43151 arg2 = &temp2;
43152 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43153 }
43154 {
43155 PyThreadState* __tstate = wxPyBeginAllowThreads();
43156 (arg1)->SetColour((wxColour const &)*arg2);
43157 wxPyEndAllowThreads(__tstate);
43158 if (PyErr_Occurred()) SWIG_fail;
43159 }
43160 resultobj = SWIG_Py_Void();
43161 return resultobj;
43162fail:
43163 return NULL;
43164}
43165
43166
43167SWIGINTERN PyObject *ColourPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43168 PyObject *obj;
43169 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43170 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerEvent, SWIG_NewClientData(obj));
43171 return SWIG_Py_Void();
43172}
43173
43174SWIGINTERN PyObject *ColourPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43175 return SWIG_Python_InitShadowInstance(args);
43176}
43177
43178SWIGINTERN int FilePickerCtrlNameStr_set(PyObject *) {
43179 SWIG_Error(SWIG_AttributeError,"Variable FilePickerCtrlNameStr is read-only.");
43180 return 1;
43181}
43182
43183
43184SWIGINTERN PyObject *FilePickerCtrlNameStr_get(void) {
43185 PyObject *pyobj = 0;
43186
43187 {
43188#if wxUSE_UNICODE
43189 pyobj = PyUnicode_FromWideChar((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43190#else
43191 pyobj = PyString_FromStringAndSize((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43192#endif
43193 }
43194 return pyobj;
43195}
43196
43197
43198SWIGINTERN int FileSelectorPromptStr_set(PyObject *) {
43199 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorPromptStr is read-only.");
43200 return 1;
43201}
43202
43203
43204SWIGINTERN PyObject *FileSelectorPromptStr_get(void) {
43205 PyObject *pyobj = 0;
43206
43207 {
43208#if wxUSE_UNICODE
43209 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43210#else
43211 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43212#endif
43213 }
43214 return pyobj;
43215}
43216
43217
43218SWIGINTERN int DirPickerCtrlNameStr_set(PyObject *) {
43219 SWIG_Error(SWIG_AttributeError,"Variable DirPickerCtrlNameStr is read-only.");
43220 return 1;
43221}
43222
43223
43224SWIGINTERN PyObject *DirPickerCtrlNameStr_get(void) {
43225 PyObject *pyobj = 0;
43226
43227 {
43228#if wxUSE_UNICODE
43229 pyobj = PyUnicode_FromWideChar((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43230#else
43231 pyobj = PyString_FromStringAndSize((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43232#endif
43233 }
43234 return pyobj;
43235}
43236
43237
43238SWIGINTERN int DirSelectorPromptStr_set(PyObject *) {
43239 SWIG_Error(SWIG_AttributeError,"Variable DirSelectorPromptStr is read-only.");
43240 return 1;
43241}
43242
43243
43244SWIGINTERN PyObject *DirSelectorPromptStr_get(void) {
43245 PyObject *pyobj = 0;
43246
43247 {
43248#if wxUSE_UNICODE
43249 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43250#else
43251 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43252#endif
43253 }
43254 return pyobj;
43255}
43256
43257
43258SWIGINTERN int FileSelectorDefaultWildcardStr_set(PyObject *) {
43259 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
43260 return 1;
43261}
43262
43263
43264SWIGINTERN PyObject *FileSelectorDefaultWildcardStr_get(void) {
43265 PyObject *pyobj = 0;
43266
43267 {
43268#if wxUSE_UNICODE
43269 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43270#else
43271 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43272#endif
43273 }
43274 return pyobj;
43275}
43276
43277
43278SWIGINTERN PyObject *_wrap_new_FilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43279 PyObject *resultobj = 0;
43280 wxWindow *arg1 = (wxWindow *) 0 ;
43281 int arg2 = (int) -1 ;
43282 wxString const &arg3_defvalue = wxPyEmptyString ;
43283 wxString *arg3 = (wxString *) &arg3_defvalue ;
43284 wxString const &arg4_defvalue = wxPyFileSelectorPromptStr ;
43285 wxString *arg4 = (wxString *) &arg4_defvalue ;
43286 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
43287 wxString *arg5 = (wxString *) &arg5_defvalue ;
43288 wxPoint const &arg6_defvalue = wxDefaultPosition ;
43289 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
43290 wxSize const &arg7_defvalue = wxDefaultSize ;
43291 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
43292 long arg8 = (long) wxFLP_DEFAULT_STYLE ;
43293 wxValidator const &arg9_defvalue = wxDefaultValidator ;
43294 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
43295 wxString const &arg10_defvalue = wxPyFilePickerCtrlNameStr ;
43296 wxString *arg10 = (wxString *) &arg10_defvalue ;
43297 wxFilePickerCtrl *result = 0 ;
43298 void *argp1 = 0 ;
43299 int res1 = 0 ;
43300 int val2 ;
43301 int ecode2 = 0 ;
43302 bool temp3 = false ;
43303 bool temp4 = false ;
43304 bool temp5 = false ;
43305 wxPoint temp6 ;
43306 wxSize temp7 ;
43307 long val8 ;
43308 int ecode8 = 0 ;
43309 void *argp9 = 0 ;
43310 int res9 = 0 ;
43311 bool temp10 = false ;
43312 PyObject * obj0 = 0 ;
43313 PyObject * obj1 = 0 ;
43314 PyObject * obj2 = 0 ;
43315 PyObject * obj3 = 0 ;
43316 PyObject * obj4 = 0 ;
43317 PyObject * obj5 = 0 ;
43318 PyObject * obj6 = 0 ;
43319 PyObject * obj7 = 0 ;
43320 PyObject * obj8 = 0 ;
43321 PyObject * obj9 = 0 ;
43322 char * kwnames[] = {
43323 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43324 };
43325
43326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_FilePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
43327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43328 if (!SWIG_IsOK(res1)) {
43329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FilePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43330 }
43331 arg1 = reinterpret_cast< wxWindow * >(argp1);
43332 if (obj1) {
43333 ecode2 = SWIG_AsVal_int(obj1, &val2);
43334 if (!SWIG_IsOK(ecode2)) {
43335 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FilePickerCtrl" "', expected argument " "2"" of type '" "int""'");
43336 }
43337 arg2 = static_cast< int >(val2);
43338 }
43339 if (obj2) {
43340 {
43341 arg3 = wxString_in_helper(obj2);
43342 if (arg3 == NULL) SWIG_fail;
43343 temp3 = true;
43344 }
43345 }
43346 if (obj3) {
43347 {
43348 arg4 = wxString_in_helper(obj3);
43349 if (arg4 == NULL) SWIG_fail;
43350 temp4 = true;
43351 }
43352 }
43353 if (obj4) {
43354 {
43355 arg5 = wxString_in_helper(obj4);
43356 if (arg5 == NULL) SWIG_fail;
43357 temp5 = true;
43358 }
43359 }
43360 if (obj5) {
43361 {
43362 arg6 = &temp6;
43363 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
43364 }
43365 }
43366 if (obj6) {
43367 {
43368 arg7 = &temp7;
43369 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
43370 }
43371 }
43372 if (obj7) {
43373 ecode8 = SWIG_AsVal_long(obj7, &val8);
43374 if (!SWIG_IsOK(ecode8)) {
43375 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_FilePickerCtrl" "', expected argument " "8"" of type '" "long""'");
43376 }
43377 arg8 = static_cast< long >(val8);
43378 }
43379 if (obj8) {
43380 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
43381 if (!SWIG_IsOK(res9)) {
43382 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
43383 }
43384 if (!argp9) {
43385 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
43386 }
43387 arg9 = reinterpret_cast< wxValidator * >(argp9);
43388 }
43389 if (obj9) {
43390 {
43391 arg10 = wxString_in_helper(obj9);
43392 if (arg10 == NULL) SWIG_fail;
43393 temp10 = true;
43394 }
43395 }
43396 {
43397 if (!wxPyCheckForApp()) SWIG_fail;
43398 PyThreadState* __tstate = wxPyBeginAllowThreads();
43399 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);
43400 wxPyEndAllowThreads(__tstate);
43401 if (PyErr_Occurred()) SWIG_fail;
43402 }
43403 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_NEW | 0 );
43404 {
43405 if (temp3)
43406 delete arg3;
43407 }
43408 {
43409 if (temp4)
43410 delete arg4;
43411 }
43412 {
43413 if (temp5)
43414 delete arg5;
43415 }
43416 {
43417 if (temp10)
43418 delete arg10;
43419 }
43420 return resultobj;
43421fail:
43422 {
43423 if (temp3)
43424 delete arg3;
43425 }
43426 {
43427 if (temp4)
43428 delete arg4;
43429 }
43430 {
43431 if (temp5)
43432 delete arg5;
43433 }
43434 {
43435 if (temp10)
43436 delete arg10;
43437 }
43438 return NULL;
43439}
43440
43441
43442SWIGINTERN PyObject *_wrap_new_PreFilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43443 PyObject *resultobj = 0;
43444 wxFilePickerCtrl *result = 0 ;
43445
43446 if (!SWIG_Python_UnpackTuple(args,"new_PreFilePickerCtrl",0,0,0)) SWIG_fail;
43447 {
43448 if (!wxPyCheckForApp()) SWIG_fail;
43449 PyThreadState* __tstate = wxPyBeginAllowThreads();
43450 result = (wxFilePickerCtrl *)new wxFilePickerCtrl();
43451 wxPyEndAllowThreads(__tstate);
43452 if (PyErr_Occurred()) SWIG_fail;
43453 }
43454 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_OWN | 0 );
43455 return resultobj;
43456fail:
43457 return NULL;
43458}
43459
43460
43461SWIGINTERN PyObject *_wrap_FilePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43462 PyObject *resultobj = 0;
43463 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43464 wxWindow *arg2 = (wxWindow *) 0 ;
43465 int arg3 = (int) -1 ;
43466 wxString const &arg4_defvalue = wxPyEmptyString ;
43467 wxString *arg4 = (wxString *) &arg4_defvalue ;
43468 wxString const &arg5_defvalue = wxPyFileSelectorPromptStr ;
43469 wxString *arg5 = (wxString *) &arg5_defvalue ;
43470 wxString const &arg6_defvalue = wxPyFileSelectorDefaultWildcardStr ;
43471 wxString *arg6 = (wxString *) &arg6_defvalue ;
43472 wxPoint const &arg7_defvalue = wxDefaultPosition ;
43473 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
43474 wxSize const &arg8_defvalue = wxDefaultSize ;
43475 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
43476 long arg9 = (long) wxFLP_DEFAULT_STYLE ;
43477 wxValidator const &arg10_defvalue = wxDefaultValidator ;
43478 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
43479 wxString const &arg11_defvalue = wxPyFilePickerCtrlNameStr ;
43480 wxString *arg11 = (wxString *) &arg11_defvalue ;
43481 bool result;
43482 void *argp1 = 0 ;
43483 int res1 = 0 ;
43484 void *argp2 = 0 ;
43485 int res2 = 0 ;
43486 int val3 ;
43487 int ecode3 = 0 ;
43488 bool temp4 = false ;
43489 bool temp5 = false ;
43490 bool temp6 = false ;
43491 wxPoint temp7 ;
43492 wxSize temp8 ;
43493 long val9 ;
43494 int ecode9 = 0 ;
43495 void *argp10 = 0 ;
43496 int res10 = 0 ;
43497 bool temp11 = false ;
43498 PyObject * obj0 = 0 ;
43499 PyObject * obj1 = 0 ;
43500 PyObject * obj2 = 0 ;
43501 PyObject * obj3 = 0 ;
43502 PyObject * obj4 = 0 ;
43503 PyObject * obj5 = 0 ;
43504 PyObject * obj6 = 0 ;
43505 PyObject * obj7 = 0 ;
43506 PyObject * obj8 = 0 ;
43507 PyObject * obj9 = 0 ;
43508 PyObject * obj10 = 0 ;
43509 char * kwnames[] = {
43510 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43511 };
43512
43513 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:FilePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
43514 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43515 if (!SWIG_IsOK(res1)) {
43516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_Create" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
43517 }
43518 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43519 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
43520 if (!SWIG_IsOK(res2)) {
43521 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FilePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
43522 }
43523 arg2 = reinterpret_cast< wxWindow * >(argp2);
43524 if (obj2) {
43525 ecode3 = SWIG_AsVal_int(obj2, &val3);
43526 if (!SWIG_IsOK(ecode3)) {
43527 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FilePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
43528 }
43529 arg3 = static_cast< int >(val3);
43530 }
43531 if (obj3) {
43532 {
43533 arg4 = wxString_in_helper(obj3);
43534 if (arg4 == NULL) SWIG_fail;
43535 temp4 = true;
43536 }
43537 }
43538 if (obj4) {
43539 {
43540 arg5 = wxString_in_helper(obj4);
43541 if (arg5 == NULL) SWIG_fail;
43542 temp5 = true;
43543 }
43544 }
43545 if (obj5) {
43546 {
43547 arg6 = wxString_in_helper(obj5);
43548 if (arg6 == NULL) SWIG_fail;
43549 temp6 = true;
43550 }
43551 }
43552 if (obj6) {
43553 {
43554 arg7 = &temp7;
43555 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
43556 }
43557 }
43558 if (obj7) {
43559 {
43560 arg8 = &temp8;
43561 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
43562 }
43563 }
43564 if (obj8) {
43565 ecode9 = SWIG_AsVal_long(obj8, &val9);
43566 if (!SWIG_IsOK(ecode9)) {
43567 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "FilePickerCtrl_Create" "', expected argument " "9"" of type '" "long""'");
43568 }
43569 arg9 = static_cast< long >(val9);
43570 }
43571 if (obj9) {
43572 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
43573 if (!SWIG_IsOK(res10)) {
43574 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
43575 }
43576 if (!argp10) {
43577 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
43578 }
43579 arg10 = reinterpret_cast< wxValidator * >(argp10);
43580 }
43581 if (obj10) {
43582 {
43583 arg11 = wxString_in_helper(obj10);
43584 if (arg11 == NULL) SWIG_fail;
43585 temp11 = true;
43586 }
43587 }
43588 {
43589 PyThreadState* __tstate = wxPyBeginAllowThreads();
43590 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);
43591 wxPyEndAllowThreads(__tstate);
43592 if (PyErr_Occurred()) SWIG_fail;
43593 }
43594 {
43595 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43596 }
43597 {
43598 if (temp4)
43599 delete arg4;
43600 }
43601 {
43602 if (temp5)
43603 delete arg5;
43604 }
43605 {
43606 if (temp6)
43607 delete arg6;
43608 }
43609 {
43610 if (temp11)
43611 delete arg11;
43612 }
43613 return resultobj;
43614fail:
43615 {
43616 if (temp4)
43617 delete arg4;
43618 }
43619 {
43620 if (temp5)
43621 delete arg5;
43622 }
43623 {
43624 if (temp6)
43625 delete arg6;
43626 }
43627 {
43628 if (temp11)
43629 delete arg11;
43630 }
43631 return NULL;
43632}
43633
43634
43635SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43636 PyObject *resultobj = 0;
43637 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43638 wxString result;
43639 void *argp1 = 0 ;
43640 int res1 = 0 ;
43641 PyObject *swig_obj[1] ;
43642
43643 if (!args) SWIG_fail;
43644 swig_obj[0] = args;
43645 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43646 if (!SWIG_IsOK(res1)) {
43647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
43648 }
43649 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43650 {
43651 PyThreadState* __tstate = wxPyBeginAllowThreads();
43652 result = ((wxFilePickerCtrl const *)arg1)->GetPath();
43653 wxPyEndAllowThreads(__tstate);
43654 if (PyErr_Occurred()) SWIG_fail;
43655 }
43656 {
43657#if wxUSE_UNICODE
43658 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
43659#else
43660 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
43661#endif
43662 }
43663 return resultobj;
43664fail:
43665 return NULL;
43666}
43667
43668
43669SWIGINTERN PyObject *_wrap_FilePickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43670 PyObject *resultobj = 0;
43671 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43672 wxString *arg2 = 0 ;
43673 void *argp1 = 0 ;
43674 int res1 = 0 ;
43675 bool temp2 = false ;
43676 PyObject * obj0 = 0 ;
43677 PyObject * obj1 = 0 ;
43678 char * kwnames[] = {
43679 (char *) "self",(char *) "str", NULL
43680 };
43681
43682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
43683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43684 if (!SWIG_IsOK(res1)) {
43685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
43686 }
43687 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43688 {
43689 arg2 = wxString_in_helper(obj1);
43690 if (arg2 == NULL) SWIG_fail;
43691 temp2 = true;
43692 }
43693 {
43694 PyThreadState* __tstate = wxPyBeginAllowThreads();
43695 (arg1)->SetPath((wxString const &)*arg2);
43696 wxPyEndAllowThreads(__tstate);
43697 if (PyErr_Occurred()) SWIG_fail;
43698 }
43699 resultobj = SWIG_Py_Void();
43700 {
43701 if (temp2)
43702 delete arg2;
43703 }
43704 return resultobj;
43705fail:
43706 {
43707 if (temp2)
43708 delete arg2;
43709 }
43710 return NULL;
43711}
43712
43713
b02396e8
RD
43714SWIGINTERN PyObject *_wrap_FilePickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43715 PyObject *resultobj = 0;
43716 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43717 wxString *arg2 = 0 ;
43718 bool result;
43719 void *argp1 = 0 ;
43720 int res1 = 0 ;
43721 bool temp2 = false ;
43722 PyObject * obj0 = 0 ;
43723 PyObject * obj1 = 0 ;
43724 char * kwnames[] = {
43725 (char *) "self",(char *) "path", NULL
43726 };
43727
43728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
43729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43730 if (!SWIG_IsOK(res1)) {
43731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
43732 }
43733 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43734 {
43735 arg2 = wxString_in_helper(obj1);
43736 if (arg2 == NULL) SWIG_fail;
43737 temp2 = true;
43738 }
43739 {
43740 PyThreadState* __tstate = wxPyBeginAllowThreads();
43741 result = (bool)((wxFilePickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
43742 wxPyEndAllowThreads(__tstate);
43743 if (PyErr_Occurred()) SWIG_fail;
43744 }
43745 {
43746 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43747 }
43748 {
43749 if (temp2)
43750 delete arg2;
43751 }
43752 return resultobj;
43753fail:
43754 {
43755 if (temp2)
43756 delete arg2;
43757 }
43758 return NULL;
43759}
43760
43761
43762SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43763 PyObject *resultobj = 0;
43764 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43765 wxString result;
43766 void *argp1 = 0 ;
43767 int res1 = 0 ;
43768 PyObject *swig_obj[1] ;
43769
43770 if (!args) SWIG_fail;
43771 swig_obj[0] = args;
43772 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43773 if (!SWIG_IsOK(res1)) {
43774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
43775 }
43776 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43777 {
43778 PyThreadState* __tstate = wxPyBeginAllowThreads();
43779 result = ((wxFilePickerCtrl const *)arg1)->GetTextCtrlValue();
43780 wxPyEndAllowThreads(__tstate);
43781 if (PyErr_Occurred()) SWIG_fail;
43782 }
43783 {
43784#if wxUSE_UNICODE
43785 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
43786#else
43787 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
43788#endif
43789 }
43790 return resultobj;
43791fail:
43792 return NULL;
43793}
43794
43795
b850e7f3
RD
43796SWIGINTERN PyObject *FilePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43797 PyObject *obj;
43798 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43799 SWIG_TypeNewClientData(SWIGTYPE_p_wxFilePickerCtrl, SWIG_NewClientData(obj));
43800 return SWIG_Py_Void();
43801}
43802
43803SWIGINTERN PyObject *FilePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43804 return SWIG_Python_InitShadowInstance(args);
43805}
43806
43807SWIGINTERN PyObject *_wrap_new_DirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43808 PyObject *resultobj = 0;
43809 wxWindow *arg1 = (wxWindow *) 0 ;
43810 int arg2 = (int) -1 ;
43811 wxString const &arg3_defvalue = wxPyEmptyString ;
43812 wxString *arg3 = (wxString *) &arg3_defvalue ;
43813 wxString const &arg4_defvalue = wxPyDirSelectorPromptStr ;
43814 wxString *arg4 = (wxString *) &arg4_defvalue ;
43815 wxPoint const &arg5_defvalue = wxDefaultPosition ;
43816 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
43817 wxSize const &arg6_defvalue = wxDefaultSize ;
43818 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
43819 long arg7 = (long) wxDIRP_DEFAULT_STYLE ;
43820 wxValidator const &arg8_defvalue = wxDefaultValidator ;
43821 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
43822 wxString const &arg9_defvalue = wxPyDirPickerCtrlNameStr ;
43823 wxString *arg9 = (wxString *) &arg9_defvalue ;
43824 wxDirPickerCtrl *result = 0 ;
43825 void *argp1 = 0 ;
43826 int res1 = 0 ;
43827 int val2 ;
43828 int ecode2 = 0 ;
43829 bool temp3 = false ;
43830 bool temp4 = false ;
43831 wxPoint temp5 ;
43832 wxSize temp6 ;
43833 long val7 ;
43834 int ecode7 = 0 ;
43835 void *argp8 = 0 ;
43836 int res8 = 0 ;
43837 bool temp9 = false ;
43838 PyObject * obj0 = 0 ;
43839 PyObject * obj1 = 0 ;
43840 PyObject * obj2 = 0 ;
43841 PyObject * obj3 = 0 ;
43842 PyObject * obj4 = 0 ;
43843 PyObject * obj5 = 0 ;
43844 PyObject * obj6 = 0 ;
43845 PyObject * obj7 = 0 ;
43846 PyObject * obj8 = 0 ;
43847 char * kwnames[] = {
43848 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43849 };
43850
43851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_DirPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
43852 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43853 if (!SWIG_IsOK(res1)) {
43854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43855 }
43856 arg1 = reinterpret_cast< wxWindow * >(argp1);
43857 if (obj1) {
43858 ecode2 = SWIG_AsVal_int(obj1, &val2);
43859 if (!SWIG_IsOK(ecode2)) {
43860 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirPickerCtrl" "', expected argument " "2"" of type '" "int""'");
43861 }
43862 arg2 = static_cast< int >(val2);
43863 }
43864 if (obj2) {
43865 {
43866 arg3 = wxString_in_helper(obj2);
43867 if (arg3 == NULL) SWIG_fail;
43868 temp3 = true;
43869 }
43870 }
43871 if (obj3) {
43872 {
43873 arg4 = wxString_in_helper(obj3);
43874 if (arg4 == NULL) SWIG_fail;
43875 temp4 = true;
43876 }
43877 }
43878 if (obj4) {
43879 {
43880 arg5 = &temp5;
43881 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
43882 }
43883 }
43884 if (obj5) {
43885 {
43886 arg6 = &temp6;
43887 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
43888 }
43889 }
43890 if (obj6) {
43891 ecode7 = SWIG_AsVal_long(obj6, &val7);
43892 if (!SWIG_IsOK(ecode7)) {
43893 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_DirPickerCtrl" "', expected argument " "7"" of type '" "long""'");
43894 }
43895 arg7 = static_cast< long >(val7);
43896 }
43897 if (obj7) {
43898 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
43899 if (!SWIG_IsOK(res8)) {
43900 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
43901 }
43902 if (!argp8) {
43903 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
43904 }
43905 arg8 = reinterpret_cast< wxValidator * >(argp8);
43906 }
43907 if (obj8) {
43908 {
43909 arg9 = wxString_in_helper(obj8);
43910 if (arg9 == NULL) SWIG_fail;
43911 temp9 = true;
43912 }
43913 }
43914 {
43915 if (!wxPyCheckForApp()) SWIG_fail;
43916 PyThreadState* __tstate = wxPyBeginAllowThreads();
43917 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);
43918 wxPyEndAllowThreads(__tstate);
43919 if (PyErr_Occurred()) SWIG_fail;
43920 }
43921 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_NEW | 0 );
43922 {
43923 if (temp3)
43924 delete arg3;
43925 }
43926 {
43927 if (temp4)
43928 delete arg4;
43929 }
43930 {
43931 if (temp9)
43932 delete arg9;
43933 }
43934 return resultobj;
43935fail:
43936 {
43937 if (temp3)
43938 delete arg3;
43939 }
43940 {
43941 if (temp4)
43942 delete arg4;
43943 }
43944 {
43945 if (temp9)
43946 delete arg9;
43947 }
43948 return NULL;
43949}
43950
43951
43952SWIGINTERN PyObject *_wrap_new_PreDirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43953 PyObject *resultobj = 0;
43954 wxDirPickerCtrl *result = 0 ;
43955
43956 if (!SWIG_Python_UnpackTuple(args,"new_PreDirPickerCtrl",0,0,0)) SWIG_fail;
43957 {
43958 if (!wxPyCheckForApp()) SWIG_fail;
43959 PyThreadState* __tstate = wxPyBeginAllowThreads();
43960 result = (wxDirPickerCtrl *)new wxDirPickerCtrl();
43961 wxPyEndAllowThreads(__tstate);
43962 if (PyErr_Occurred()) SWIG_fail;
43963 }
43964 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_OWN | 0 );
43965 return resultobj;
43966fail:
43967 return NULL;
43968}
43969
43970
43971SWIGINTERN PyObject *_wrap_DirPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43972 PyObject *resultobj = 0;
43973 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
43974 wxWindow *arg2 = (wxWindow *) 0 ;
43975 int arg3 = (int) -1 ;
43976 wxString const &arg4_defvalue = wxPyEmptyString ;
43977 wxString *arg4 = (wxString *) &arg4_defvalue ;
43978 wxString const &arg5_defvalue = wxPyDirSelectorPromptStr ;
43979 wxString *arg5 = (wxString *) &arg5_defvalue ;
43980 wxPoint const &arg6_defvalue = wxDefaultPosition ;
43981 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
43982 wxSize const &arg7_defvalue = wxDefaultSize ;
43983 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
43984 long arg8 = (long) wxDIRP_DEFAULT_STYLE ;
43985 wxValidator const &arg9_defvalue = wxDefaultValidator ;
43986 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
43987 wxString const &arg10_defvalue = wxPyDirPickerCtrlNameStr ;
43988 wxString *arg10 = (wxString *) &arg10_defvalue ;
43989 bool result;
43990 void *argp1 = 0 ;
43991 int res1 = 0 ;
43992 void *argp2 = 0 ;
43993 int res2 = 0 ;
43994 int val3 ;
43995 int ecode3 = 0 ;
43996 bool temp4 = false ;
43997 bool temp5 = false ;
43998 wxPoint temp6 ;
43999 wxSize temp7 ;
44000 long val8 ;
44001 int ecode8 = 0 ;
44002 void *argp9 = 0 ;
44003 int res9 = 0 ;
44004 bool temp10 = false ;
44005 PyObject * obj0 = 0 ;
44006 PyObject * obj1 = 0 ;
44007 PyObject * obj2 = 0 ;
44008 PyObject * obj3 = 0 ;
44009 PyObject * obj4 = 0 ;
44010 PyObject * obj5 = 0 ;
44011 PyObject * obj6 = 0 ;
44012 PyObject * obj7 = 0 ;
44013 PyObject * obj8 = 0 ;
44014 PyObject * obj9 = 0 ;
44015 char * kwnames[] = {
44016 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44017 };
44018
44019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:DirPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
44020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44021 if (!SWIG_IsOK(res1)) {
44022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_Create" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44023 }
44024 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44025 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44026 if (!SWIG_IsOK(res2)) {
44027 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44028 }
44029 arg2 = reinterpret_cast< wxWindow * >(argp2);
44030 if (obj2) {
44031 ecode3 = SWIG_AsVal_int(obj2, &val3);
44032 if (!SWIG_IsOK(ecode3)) {
44033 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44034 }
44035 arg3 = static_cast< int >(val3);
44036 }
44037 if (obj3) {
44038 {
44039 arg4 = wxString_in_helper(obj3);
44040 if (arg4 == NULL) SWIG_fail;
44041 temp4 = true;
44042 }
44043 }
44044 if (obj4) {
44045 {
44046 arg5 = wxString_in_helper(obj4);
44047 if (arg5 == NULL) SWIG_fail;
44048 temp5 = true;
44049 }
44050 }
44051 if (obj5) {
44052 {
44053 arg6 = &temp6;
44054 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
44055 }
44056 }
44057 if (obj6) {
44058 {
44059 arg7 = &temp7;
44060 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
44061 }
44062 }
44063 if (obj7) {
44064 ecode8 = SWIG_AsVal_long(obj7, &val8);
44065 if (!SWIG_IsOK(ecode8)) {
44066 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DirPickerCtrl_Create" "', expected argument " "8"" of type '" "long""'");
44067 }
44068 arg8 = static_cast< long >(val8);
44069 }
44070 if (obj8) {
44071 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
44072 if (!SWIG_IsOK(res9)) {
44073 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44074 }
44075 if (!argp9) {
44076 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44077 }
44078 arg9 = reinterpret_cast< wxValidator * >(argp9);
44079 }
44080 if (obj9) {
44081 {
44082 arg10 = wxString_in_helper(obj9);
44083 if (arg10 == NULL) SWIG_fail;
44084 temp10 = true;
44085 }
44086 }
44087 {
44088 PyThreadState* __tstate = wxPyBeginAllowThreads();
44089 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);
44090 wxPyEndAllowThreads(__tstate);
44091 if (PyErr_Occurred()) SWIG_fail;
44092 }
44093 {
44094 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44095 }
44096 {
44097 if (temp4)
44098 delete arg4;
44099 }
44100 {
44101 if (temp5)
44102 delete arg5;
44103 }
44104 {
44105 if (temp10)
44106 delete arg10;
44107 }
44108 return resultobj;
44109fail:
44110 {
44111 if (temp4)
44112 delete arg4;
44113 }
44114 {
44115 if (temp5)
44116 delete arg5;
44117 }
44118 {
44119 if (temp10)
44120 delete arg10;
44121 }
44122 return NULL;
44123}
44124
44125
44126SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44127 PyObject *resultobj = 0;
44128 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44129 wxString result;
44130 void *argp1 = 0 ;
44131 int res1 = 0 ;
44132 PyObject *swig_obj[1] ;
44133
44134 if (!args) SWIG_fail;
44135 swig_obj[0] = args;
44136 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44137 if (!SWIG_IsOK(res1)) {
44138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44139 }
44140 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44141 {
44142 PyThreadState* __tstate = wxPyBeginAllowThreads();
44143 result = ((wxDirPickerCtrl const *)arg1)->GetPath();
44144 wxPyEndAllowThreads(__tstate);
44145 if (PyErr_Occurred()) SWIG_fail;
44146 }
44147 {
44148#if wxUSE_UNICODE
44149 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44150#else
44151 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44152#endif
44153 }
44154 return resultobj;
44155fail:
44156 return NULL;
44157}
44158
44159
44160SWIGINTERN PyObject *_wrap_DirPickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44161 PyObject *resultobj = 0;
44162 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44163 wxString *arg2 = 0 ;
44164 void *argp1 = 0 ;
44165 int res1 = 0 ;
44166 bool temp2 = false ;
44167 PyObject * obj0 = 0 ;
44168 PyObject * obj1 = 0 ;
44169 char * kwnames[] = {
44170 (char *) "self",(char *) "str", NULL
44171 };
44172
44173 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44174 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44175 if (!SWIG_IsOK(res1)) {
44176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44177 }
44178 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44179 {
44180 arg2 = wxString_in_helper(obj1);
44181 if (arg2 == NULL) SWIG_fail;
44182 temp2 = true;
44183 }
44184 {
44185 PyThreadState* __tstate = wxPyBeginAllowThreads();
44186 (arg1)->SetPath((wxString const &)*arg2);
44187 wxPyEndAllowThreads(__tstate);
44188 if (PyErr_Occurred()) SWIG_fail;
44189 }
44190 resultobj = SWIG_Py_Void();
44191 {
44192 if (temp2)
44193 delete arg2;
44194 }
44195 return resultobj;
44196fail:
44197 {
44198 if (temp2)
44199 delete arg2;
44200 }
44201 return NULL;
44202}
44203
44204
b02396e8
RD
44205SWIGINTERN PyObject *_wrap_DirPickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44206 PyObject *resultobj = 0;
44207 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44208 wxString *arg2 = 0 ;
44209 bool result;
44210 void *argp1 = 0 ;
44211 int res1 = 0 ;
44212 bool temp2 = false ;
44213 PyObject * obj0 = 0 ;
44214 PyObject * obj1 = 0 ;
44215 char * kwnames[] = {
44216 (char *) "self",(char *) "path", NULL
44217 };
44218
44219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
44220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44221 if (!SWIG_IsOK(res1)) {
44222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44223 }
44224 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44225 {
44226 arg2 = wxString_in_helper(obj1);
44227 if (arg2 == NULL) SWIG_fail;
44228 temp2 = true;
44229 }
44230 {
44231 PyThreadState* __tstate = wxPyBeginAllowThreads();
44232 result = (bool)((wxDirPickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
44233 wxPyEndAllowThreads(__tstate);
44234 if (PyErr_Occurred()) SWIG_fail;
44235 }
44236 {
44237 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44238 }
44239 {
44240 if (temp2)
44241 delete arg2;
44242 }
44243 return resultobj;
44244fail:
44245 {
44246 if (temp2)
44247 delete arg2;
44248 }
44249 return NULL;
44250}
44251
44252
44253SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44254 PyObject *resultobj = 0;
44255 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44256 wxString result;
44257 void *argp1 = 0 ;
44258 int res1 = 0 ;
44259 PyObject *swig_obj[1] ;
44260
44261 if (!args) SWIG_fail;
44262 swig_obj[0] = args;
44263 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44264 if (!SWIG_IsOK(res1)) {
44265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44266 }
44267 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44268 {
44269 PyThreadState* __tstate = wxPyBeginAllowThreads();
44270 result = ((wxDirPickerCtrl const *)arg1)->GetTextCtrlValue();
44271 wxPyEndAllowThreads(__tstate);
44272 if (PyErr_Occurred()) SWIG_fail;
44273 }
44274 {
44275#if wxUSE_UNICODE
44276 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44277#else
44278 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44279#endif
44280 }
44281 return resultobj;
44282fail:
44283 return NULL;
44284}
44285
44286
b850e7f3
RD
44287SWIGINTERN PyObject *DirPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44288 PyObject *obj;
44289 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44290 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirPickerCtrl, SWIG_NewClientData(obj));
44291 return SWIG_Py_Void();
44292}
44293
44294SWIGINTERN PyObject *DirPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44295 return SWIG_Python_InitShadowInstance(args);
44296}
44297
44298SWIGINTERN PyObject *_wrap_new_FileDirPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44299 PyObject *resultobj = 0;
44300 wxEventType arg1 ;
44301 wxObject *arg2 = (wxObject *) 0 ;
44302 int arg3 ;
44303 wxString *arg4 = 0 ;
44304 wxFileDirPickerEvent *result = 0 ;
44305 int val1 ;
44306 int ecode1 = 0 ;
44307 void *argp2 = 0 ;
44308 int res2 = 0 ;
44309 int val3 ;
44310 int ecode3 = 0 ;
44311 bool temp4 = false ;
44312 PyObject * obj0 = 0 ;
44313 PyObject * obj1 = 0 ;
44314 PyObject * obj2 = 0 ;
44315 PyObject * obj3 = 0 ;
44316 char * kwnames[] = {
44317 (char *) "type",(char *) "generator",(char *) "id",(char *) "path", NULL
44318 };
44319
44320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileDirPickerEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
44321 ecode1 = SWIG_AsVal_int(obj0, &val1);
44322 if (!SWIG_IsOK(ecode1)) {
44323 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FileDirPickerEvent" "', expected argument " "1"" of type '" "wxEventType""'");
44324 }
44325 arg1 = static_cast< wxEventType >(val1);
44326 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxObject, 0 | 0 );
44327 if (!SWIG_IsOK(res2)) {
44328 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FileDirPickerEvent" "', expected argument " "2"" of type '" "wxObject *""'");
44329 }
44330 arg2 = reinterpret_cast< wxObject * >(argp2);
44331 ecode3 = SWIG_AsVal_int(obj2, &val3);
44332 if (!SWIG_IsOK(ecode3)) {
44333 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FileDirPickerEvent" "', expected argument " "3"" of type '" "int""'");
44334 }
44335 arg3 = static_cast< int >(val3);
44336 {
44337 arg4 = wxString_in_helper(obj3);
44338 if (arg4 == NULL) SWIG_fail;
44339 temp4 = true;
44340 }
44341 {
44342 PyThreadState* __tstate = wxPyBeginAllowThreads();
44343 result = (wxFileDirPickerEvent *)new wxFileDirPickerEvent(arg1,arg2,arg3,(wxString const &)*arg4);
44344 wxPyEndAllowThreads(__tstate);
44345 if (PyErr_Occurred()) SWIG_fail;
44346 }
44347 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileDirPickerEvent, SWIG_POINTER_NEW | 0 );
44348 {
44349 if (temp4)
44350 delete arg4;
44351 }
44352 return resultobj;
44353fail:
44354 {
44355 if (temp4)
44356 delete arg4;
44357 }
44358 return NULL;
44359}
44360
44361
44362SWIGINTERN PyObject *_wrap_FileDirPickerEvent_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44363 PyObject *resultobj = 0;
44364 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
44365 wxString result;
44366 void *argp1 = 0 ;
44367 int res1 = 0 ;
44368 PyObject *swig_obj[1] ;
44369
44370 if (!args) SWIG_fail;
44371 swig_obj[0] = args;
44372 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
44373 if (!SWIG_IsOK(res1)) {
44374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_GetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent const *""'");
44375 }
44376 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
44377 {
44378 PyThreadState* __tstate = wxPyBeginAllowThreads();
44379 result = ((wxFileDirPickerEvent const *)arg1)->GetPath();
44380 wxPyEndAllowThreads(__tstate);
44381 if (PyErr_Occurred()) SWIG_fail;
44382 }
44383 {
44384#if wxUSE_UNICODE
44385 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44386#else
44387 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44388#endif
44389 }
44390 return resultobj;
44391fail:
44392 return NULL;
44393}
44394
44395
44396SWIGINTERN PyObject *_wrap_FileDirPickerEvent_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44397 PyObject *resultobj = 0;
44398 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
44399 wxString *arg2 = 0 ;
44400 void *argp1 = 0 ;
44401 int res1 = 0 ;
44402 bool temp2 = false ;
44403 PyObject * obj0 = 0 ;
44404 PyObject * obj1 = 0 ;
44405 char * kwnames[] = {
44406 (char *) "self",(char *) "p", NULL
44407 };
44408
44409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDirPickerEvent_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
44411 if (!SWIG_IsOK(res1)) {
44412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_SetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent *""'");
44413 }
44414 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
44415 {
44416 arg2 = wxString_in_helper(obj1);
44417 if (arg2 == NULL) SWIG_fail;
44418 temp2 = true;
44419 }
44420 {
44421 PyThreadState* __tstate = wxPyBeginAllowThreads();
44422 (arg1)->SetPath((wxString const &)*arg2);
44423 wxPyEndAllowThreads(__tstate);
44424 if (PyErr_Occurred()) SWIG_fail;
44425 }
44426 resultobj = SWIG_Py_Void();
44427 {
44428 if (temp2)
44429 delete arg2;
44430 }
44431 return resultobj;
44432fail:
44433 {
44434 if (temp2)
44435 delete arg2;
44436 }
44437 return NULL;
44438}
44439
44440
44441SWIGINTERN PyObject *FileDirPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44442 PyObject *obj;
44443 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44444 SWIG_TypeNewClientData(SWIGTYPE_p_wxFileDirPickerEvent, SWIG_NewClientData(obj));
44445 return SWIG_Py_Void();
44446}
44447
44448SWIGINTERN PyObject *FileDirPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44449 return SWIG_Python_InitShadowInstance(args);
44450}
44451
44452SWIGINTERN int FontPickerCtrlNameStr_set(PyObject *) {
44453 SWIG_Error(SWIG_AttributeError,"Variable FontPickerCtrlNameStr is read-only.");
44454 return 1;
44455}
44456
44457
44458SWIGINTERN PyObject *FontPickerCtrlNameStr_get(void) {
44459 PyObject *pyobj = 0;
44460
44461 {
44462#if wxUSE_UNICODE
44463 pyobj = PyUnicode_FromWideChar((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
44464#else
44465 pyobj = PyString_FromStringAndSize((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
44466#endif
44467 }
44468 return pyobj;
44469}
44470
44471
44472SWIGINTERN PyObject *_wrap_new_FontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44473 PyObject *resultobj = 0;
44474 wxWindow *arg1 = (wxWindow *) 0 ;
44475 int arg2 = (int) -1 ;
44476 wxFont const &arg3_defvalue = *wxNORMAL_FONT ;
44477 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
44478 wxPoint const &arg4_defvalue = wxDefaultPosition ;
44479 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
44480 wxSize const &arg5_defvalue = wxDefaultSize ;
44481 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
44482 long arg6 = (long) wxFNTP_DEFAULT_STYLE ;
44483 wxValidator const &arg7_defvalue = wxDefaultValidator ;
44484 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
44485 wxString const &arg8_defvalue = wxPyFontPickerCtrlNameStr ;
44486 wxString *arg8 = (wxString *) &arg8_defvalue ;
44487 wxFontPickerCtrl *result = 0 ;
44488 void *argp1 = 0 ;
44489 int res1 = 0 ;
44490 int val2 ;
44491 int ecode2 = 0 ;
44492 void *argp3 = 0 ;
44493 int res3 = 0 ;
44494 wxPoint temp4 ;
44495 wxSize temp5 ;
44496 long val6 ;
44497 int ecode6 = 0 ;
44498 void *argp7 = 0 ;
44499 int res7 = 0 ;
44500 bool temp8 = false ;
44501 PyObject * obj0 = 0 ;
44502 PyObject * obj1 = 0 ;
44503 PyObject * obj2 = 0 ;
44504 PyObject * obj3 = 0 ;
44505 PyObject * obj4 = 0 ;
44506 PyObject * obj5 = 0 ;
44507 PyObject * obj6 = 0 ;
44508 PyObject * obj7 = 0 ;
44509 char * kwnames[] = {
44510 (char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44511 };
44512
44513 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_FontPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
44514 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44515 if (!SWIG_IsOK(res1)) {
44516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44517 }
44518 arg1 = reinterpret_cast< wxWindow * >(argp1);
44519 if (obj1) {
44520 ecode2 = SWIG_AsVal_int(obj1, &val2);
44521 if (!SWIG_IsOK(ecode2)) {
44522 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerCtrl" "', expected argument " "2"" of type '" "int""'");
44523 }
44524 arg2 = static_cast< int >(val2);
44525 }
44526 if (obj2) {
44527 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
44528 if (!SWIG_IsOK(res3)) {
44529 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
44530 }
44531 if (!argp3) {
44532 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
44533 }
44534 arg3 = reinterpret_cast< wxFont * >(argp3);
44535 }
44536 if (obj3) {
44537 {
44538 arg4 = &temp4;
44539 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
44540 }
44541 }
44542 if (obj4) {
44543 {
44544 arg5 = &temp5;
44545 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
44546 }
44547 }
44548 if (obj5) {
44549 ecode6 = SWIG_AsVal_long(obj5, &val6);
44550 if (!SWIG_IsOK(ecode6)) {
44551 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FontPickerCtrl" "', expected argument " "6"" of type '" "long""'");
44552 }
44553 arg6 = static_cast< long >(val6);
44554 }
44555 if (obj6) {
44556 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
44557 if (!SWIG_IsOK(res7)) {
44558 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
44559 }
44560 if (!argp7) {
44561 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
44562 }
44563 arg7 = reinterpret_cast< wxValidator * >(argp7);
44564 }
44565 if (obj7) {
44566 {
44567 arg8 = wxString_in_helper(obj7);
44568 if (arg8 == NULL) SWIG_fail;
44569 temp8 = true;
44570 }
44571 }
44572 {
44573 if (!wxPyCheckForApp()) SWIG_fail;
44574 PyThreadState* __tstate = wxPyBeginAllowThreads();
44575 result = (wxFontPickerCtrl *)new wxFontPickerCtrl(arg1,arg2,(wxFont const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
44576 wxPyEndAllowThreads(__tstate);
44577 if (PyErr_Occurred()) SWIG_fail;
44578 }
44579 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_NEW | 0 );
44580 {
44581 if (temp8)
44582 delete arg8;
44583 }
44584 return resultobj;
44585fail:
44586 {
44587 if (temp8)
44588 delete arg8;
44589 }
44590 return NULL;
44591}
44592
44593
44594SWIGINTERN PyObject *_wrap_new_PreFontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44595 PyObject *resultobj = 0;
44596 wxFontPickerCtrl *result = 0 ;
44597
44598 if (!SWIG_Python_UnpackTuple(args,"new_PreFontPickerCtrl",0,0,0)) SWIG_fail;
44599 {
44600 if (!wxPyCheckForApp()) SWIG_fail;
44601 PyThreadState* __tstate = wxPyBeginAllowThreads();
44602 result = (wxFontPickerCtrl *)new wxFontPickerCtrl();
44603 wxPyEndAllowThreads(__tstate);
44604 if (PyErr_Occurred()) SWIG_fail;
44605 }
44606 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_OWN | 0 );
44607 return resultobj;
44608fail:
44609 return NULL;
44610}
44611
44612
44613SWIGINTERN PyObject *_wrap_FontPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44614 PyObject *resultobj = 0;
44615 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44616 wxWindow *arg2 = (wxWindow *) 0 ;
44617 int arg3 = (int) -1 ;
44618 wxFont const &arg4_defvalue = *wxNORMAL_FONT ;
44619 wxFont *arg4 = (wxFont *) &arg4_defvalue ;
44620 wxPoint const &arg5_defvalue = wxDefaultPosition ;
44621 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
44622 wxSize const &arg6_defvalue = wxDefaultSize ;
44623 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
44624 long arg7 = (long) wxFNTP_DEFAULT_STYLE ;
44625 wxValidator const &arg8_defvalue = wxDefaultValidator ;
44626 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
44627 wxString const &arg9_defvalue = wxPyFontPickerCtrlNameStr ;
44628 wxString *arg9 = (wxString *) &arg9_defvalue ;
44629 bool result;
44630 void *argp1 = 0 ;
44631 int res1 = 0 ;
44632 void *argp2 = 0 ;
44633 int res2 = 0 ;
44634 int val3 ;
44635 int ecode3 = 0 ;
44636 void *argp4 = 0 ;
44637 int res4 = 0 ;
44638 wxPoint temp5 ;
44639 wxSize temp6 ;
44640 long val7 ;
44641 int ecode7 = 0 ;
44642 void *argp8 = 0 ;
44643 int res8 = 0 ;
44644 bool temp9 = false ;
44645 PyObject * obj0 = 0 ;
44646 PyObject * obj1 = 0 ;
44647 PyObject * obj2 = 0 ;
44648 PyObject * obj3 = 0 ;
44649 PyObject * obj4 = 0 ;
44650 PyObject * obj5 = 0 ;
44651 PyObject * obj6 = 0 ;
44652 PyObject * obj7 = 0 ;
44653 PyObject * obj8 = 0 ;
44654 char * kwnames[] = {
44655 (char *) "self",(char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44656 };
44657
44658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:FontPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
44659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
44660 if (!SWIG_IsOK(res1)) {
44661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_Create" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
44662 }
44663 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
44664 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44665 if (!SWIG_IsOK(res2)) {
44666 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44667 }
44668 arg2 = reinterpret_cast< wxWindow * >(argp2);
44669 if (obj2) {
44670 ecode3 = SWIG_AsVal_int(obj2, &val3);
44671 if (!SWIG_IsOK(ecode3)) {
44672 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44673 }
44674 arg3 = static_cast< int >(val3);
44675 }
44676 if (obj3) {
44677 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxFont, 0 | 0);
44678 if (!SWIG_IsOK(res4)) {
44679 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
44680 }
44681 if (!argp4) {
44682 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
44683 }
44684 arg4 = reinterpret_cast< wxFont * >(argp4);
44685 }
44686 if (obj4) {
44687 {
44688 arg5 = &temp5;
44689 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
44690 }
44691 }
44692 if (obj5) {
44693 {
44694 arg6 = &temp6;
44695 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
44696 }
44697 }
44698 if (obj6) {
44699 ecode7 = SWIG_AsVal_long(obj6, &val7);
44700 if (!SWIG_IsOK(ecode7)) {
44701 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "FontPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
44702 }
44703 arg7 = static_cast< long >(val7);
44704 }
44705 if (obj7) {
44706 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
44707 if (!SWIG_IsOK(res8)) {
44708 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
44709 }
44710 if (!argp8) {
44711 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
44712 }
44713 arg8 = reinterpret_cast< wxValidator * >(argp8);
44714 }
44715 if (obj8) {
44716 {
44717 arg9 = wxString_in_helper(obj8);
44718 if (arg9 == NULL) SWIG_fail;
44719 temp9 = true;
44720 }
44721 }
44722 {
44723 PyThreadState* __tstate = wxPyBeginAllowThreads();
44724 result = (bool)(arg1)->Create(arg2,arg3,(wxFont const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
44725 wxPyEndAllowThreads(__tstate);
44726 if (PyErr_Occurred()) SWIG_fail;
44727 }
44728 {
44729 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44730 }
44731 {
44732 if (temp9)
44733 delete arg9;
44734 }
44735 return resultobj;
44736fail:
44737 {
44738 if (temp9)
44739 delete arg9;
44740 }
44741 return NULL;
44742}
44743
44744
44745SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44746 PyObject *resultobj = 0;
44747 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44748 wxFont result;
44749 void *argp1 = 0 ;
44750 int res1 = 0 ;
44751 PyObject *swig_obj[1] ;
44752
44753 if (!args) SWIG_fail;
44754 swig_obj[0] = args;
44755 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
44756 if (!SWIG_IsOK(res1)) {
44757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
44758 }
44759 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
44760 {
44761 PyThreadState* __tstate = wxPyBeginAllowThreads();
44762 result = ((wxFontPickerCtrl const *)arg1)->GetSelectedFont();
44763 wxPyEndAllowThreads(__tstate);
44764 if (PyErr_Occurred()) SWIG_fail;
44765 }
44766 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
44767 return resultobj;
44768fail:
44769 return NULL;
44770}
44771
44772
44773SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44774 PyObject *resultobj = 0;
44775 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44776 wxFont *arg2 = 0 ;
44777 void *argp1 = 0 ;
44778 int res1 = 0 ;
44779 void *argp2 = 0 ;
44780 int res2 = 0 ;
44781 PyObject * obj0 = 0 ;
44782 PyObject * obj1 = 0 ;
44783 char * kwnames[] = {
44784 (char *) "self",(char *) "f", NULL
44785 };
44786
44787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetSelectedFont",kwnames,&obj0,&obj1)) SWIG_fail;
44788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
44789 if (!SWIG_IsOK(res1)) {
44790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
44791 }
44792 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
44793 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
44794 if (!SWIG_IsOK(res2)) {
44795 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
44796 }
44797 if (!argp2) {
44798 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
44799 }
44800 arg2 = reinterpret_cast< wxFont * >(argp2);
44801 {
44802 PyThreadState* __tstate = wxPyBeginAllowThreads();
44803 (arg1)->SetSelectedFont((wxFont const &)*arg2);
44804 wxPyEndAllowThreads(__tstate);
44805 if (PyErr_Occurred()) SWIG_fail;
44806 }
44807 resultobj = SWIG_Py_Void();
44808 return resultobj;
44809fail:
44810 return NULL;
44811}
44812
44813
44814SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44815 PyObject *resultobj = 0;
44816 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44817 unsigned int arg2 ;
44818 void *argp1 = 0 ;
44819 int res1 = 0 ;
44820 unsigned int val2 ;
44821 int ecode2 = 0 ;
44822 PyObject * obj0 = 0 ;
44823 PyObject * obj1 = 0 ;
44824 char * kwnames[] = {
44825 (char *) "self",(char *) "max", NULL
44826 };
44827
44828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetMaxPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
44829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
44830 if (!SWIG_IsOK(res1)) {
44831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
44832 }
44833 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
44834 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
44835 if (!SWIG_IsOK(ecode2)) {
44836 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "2"" of type '" "unsigned int""'");
44837 }
44838 arg2 = static_cast< unsigned int >(val2);
44839 {
44840 PyThreadState* __tstate = wxPyBeginAllowThreads();
44841 (arg1)->SetMaxPointSize(arg2);
44842 wxPyEndAllowThreads(__tstate);
44843 if (PyErr_Occurred()) SWIG_fail;
44844 }
44845 resultobj = SWIG_Py_Void();
44846 return resultobj;
44847fail:
44848 return NULL;
44849}
44850
44851
44852SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44853 PyObject *resultobj = 0;
44854 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44855 unsigned int result;
44856 void *argp1 = 0 ;
44857 int res1 = 0 ;
44858 PyObject *swig_obj[1] ;
44859
44860 if (!args) SWIG_fail;
44861 swig_obj[0] = args;
44862 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
44863 if (!SWIG_IsOK(res1)) {
44864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
44865 }
44866 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
44867 {
44868 PyThreadState* __tstate = wxPyBeginAllowThreads();
44869 result = (unsigned int)((wxFontPickerCtrl const *)arg1)->GetMaxPointSize();
44870 wxPyEndAllowThreads(__tstate);
44871 if (PyErr_Occurred()) SWIG_fail;
44872 }
44873 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
44874 return resultobj;
44875fail:
44876 return NULL;
44877}
44878
44879
44880SWIGINTERN PyObject *FontPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44881 PyObject *obj;
44882 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44883 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerCtrl, SWIG_NewClientData(obj));
44884 return SWIG_Py_Void();
44885}
44886
44887SWIGINTERN PyObject *FontPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44888 return SWIG_Python_InitShadowInstance(args);
44889}
44890
44891SWIGINTERN PyObject *_wrap_new_FontPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44892 PyObject *resultobj = 0;
44893 wxObject *arg1 = (wxObject *) 0 ;
44894 int arg2 ;
44895 wxFont *arg3 = 0 ;
44896 wxFontPickerEvent *result = 0 ;
44897 void *argp1 = 0 ;
44898 int res1 = 0 ;
44899 int val2 ;
44900 int ecode2 = 0 ;
44901 void *argp3 = 0 ;
44902 int res3 = 0 ;
44903 PyObject * obj0 = 0 ;
44904 PyObject * obj1 = 0 ;
44905 PyObject * obj2 = 0 ;
44906 char * kwnames[] = {
44907 (char *) "generator",(char *) "id",(char *) "f", NULL
44908 };
44909
44910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_FontPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
44911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
44912 if (!SWIG_IsOK(res1)) {
44913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
44914 }
44915 arg1 = reinterpret_cast< wxObject * >(argp1);
44916 ecode2 = SWIG_AsVal_int(obj1, &val2);
44917 if (!SWIG_IsOK(ecode2)) {
44918 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerEvent" "', expected argument " "2"" of type '" "int""'");
44919 }
44920 arg2 = static_cast< int >(val2);
44921 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
44922 if (!SWIG_IsOK(res3)) {
44923 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
44924 }
44925 if (!argp3) {
44926 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
44927 }
44928 arg3 = reinterpret_cast< wxFont * >(argp3);
44929 {
44930 PyThreadState* __tstate = wxPyBeginAllowThreads();
44931 result = (wxFontPickerEvent *)new wxFontPickerEvent(arg1,arg2,(wxFont const &)*arg3);
44932 wxPyEndAllowThreads(__tstate);
44933 if (PyErr_Occurred()) SWIG_fail;
44934 }
44935 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerEvent, SWIG_POINTER_NEW | 0 );
44936 return resultobj;
44937fail:
44938 return NULL;
44939}
44940
44941
44942SWIGINTERN PyObject *_wrap_FontPickerEvent_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44943 PyObject *resultobj = 0;
44944 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
44945 wxFont result;
44946 void *argp1 = 0 ;
44947 int res1 = 0 ;
44948 PyObject *swig_obj[1] ;
44949
44950 if (!args) SWIG_fail;
44951 swig_obj[0] = args;
44952 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
44953 if (!SWIG_IsOK(res1)) {
44954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_GetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent const *""'");
44955 }
44956 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
44957 {
44958 PyThreadState* __tstate = wxPyBeginAllowThreads();
44959 result = ((wxFontPickerEvent const *)arg1)->GetFont();
44960 wxPyEndAllowThreads(__tstate);
44961 if (PyErr_Occurred()) SWIG_fail;
44962 }
44963 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
44964 return resultobj;
44965fail:
44966 return NULL;
44967}
44968
44969
44970SWIGINTERN PyObject *_wrap_FontPickerEvent_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44971 PyObject *resultobj = 0;
44972 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
44973 wxFont *arg2 = 0 ;
44974 void *argp1 = 0 ;
44975 int res1 = 0 ;
44976 void *argp2 = 0 ;
44977 int res2 = 0 ;
44978 PyObject * obj0 = 0 ;
44979 PyObject * obj1 = 0 ;
44980 char * kwnames[] = {
44981 (char *) "self",(char *) "c", NULL
44982 };
44983
44984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerEvent_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
44985 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
44986 if (!SWIG_IsOK(res1)) {
44987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_SetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent *""'");
44988 }
44989 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
44990 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
44991 if (!SWIG_IsOK(res2)) {
44992 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
44993 }
44994 if (!argp2) {
44995 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
44996 }
44997 arg2 = reinterpret_cast< wxFont * >(argp2);
44998 {
44999 PyThreadState* __tstate = wxPyBeginAllowThreads();
45000 (arg1)->SetFont((wxFont const &)*arg2);
45001 wxPyEndAllowThreads(__tstate);
45002 if (PyErr_Occurred()) SWIG_fail;
45003 }
45004 resultobj = SWIG_Py_Void();
45005 return resultobj;
45006fail:
45007 return NULL;
45008}
45009
45010
45011SWIGINTERN PyObject *FontPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45012 PyObject *obj;
45013 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45014 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerEvent, SWIG_NewClientData(obj));
45015 return SWIG_Py_Void();
45016}
45017
45018SWIGINTERN PyObject *FontPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45019 return SWIG_Python_InitShadowInstance(args);
45020}
45021
45022static PyMethodDef SwigMethods[] = {
45023 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL},
45024 { (char *)"new_PreButton", (PyCFunction)_wrap_new_PreButton, METH_NOARGS, NULL},
45025 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45026 { (char *)"Button_SetDefault", (PyCFunction)_wrap_Button_SetDefault, METH_O, NULL},
45027 { (char *)"Button_GetDefaultSize", (PyCFunction)_wrap_Button_GetDefaultSize, METH_NOARGS, NULL},
45028 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45029 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL},
45030 { (char *)"Button_swiginit", Button_swiginit, METH_VARARGS, NULL},
45031 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL},
45032 { (char *)"new_PreBitmapButton", (PyCFunction)_wrap_new_PreBitmapButton, METH_NOARGS, NULL},
45033 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45034 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction)_wrap_BitmapButton_GetBitmapLabel, METH_O, NULL},
45035 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction)_wrap_BitmapButton_GetBitmapDisabled, METH_O, NULL},
45036 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction)_wrap_BitmapButton_GetBitmapFocus, METH_O, NULL},
45037 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction)_wrap_BitmapButton_GetBitmapSelected, METH_O, NULL},
45038 { (char *)"BitmapButton_GetBitmapHover", (PyCFunction)_wrap_BitmapButton_GetBitmapHover, METH_O, NULL},
45039 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL},
45040 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL},
45041 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45042 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45043 { (char *)"BitmapButton_SetBitmapHover", (PyCFunction) _wrap_BitmapButton_SetBitmapHover, METH_VARARGS | METH_KEYWORDS, NULL},
45044 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
45045 { (char *)"BitmapButton_GetMarginX", (PyCFunction)_wrap_BitmapButton_GetMarginX, METH_O, NULL},
45046 { (char *)"BitmapButton_GetMarginY", (PyCFunction)_wrap_BitmapButton_GetMarginY, METH_O, NULL},
45047 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL},
45048 { (char *)"BitmapButton_swiginit", BitmapButton_swiginit, METH_VARARGS, NULL},
45049 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
45050 { (char *)"new_PreCheckBox", (PyCFunction)_wrap_new_PreCheckBox, METH_NOARGS, NULL},
45051 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45052 { (char *)"CheckBox_GetValue", (PyCFunction)_wrap_CheckBox_GetValue, METH_O, NULL},
45053 { (char *)"CheckBox_IsChecked", (PyCFunction)_wrap_CheckBox_IsChecked, METH_O, NULL},
45054 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45055 { (char *)"CheckBox_Get3StateValue", (PyCFunction)_wrap_CheckBox_Get3StateValue, METH_O, NULL},
45056 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL},
45057 { (char *)"CheckBox_Is3State", (PyCFunction)_wrap_CheckBox_Is3State, METH_O, NULL},
45058 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction)_wrap_CheckBox_Is3rdStateAllowedForUser, METH_O, NULL},
45059 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45060 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL},
45061 { (char *)"CheckBox_swiginit", CheckBox_swiginit, METH_VARARGS, NULL},
45062 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL},
45063 { (char *)"new_PreChoice", (PyCFunction)_wrap_new_PreChoice, METH_NOARGS, NULL},
45064 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45065 { (char *)"Choice_GetCurrentSelection", (PyCFunction)_wrap_Choice_GetCurrentSelection, METH_O, NULL},
45066 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45067 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL},
45068 { (char *)"Choice_swiginit", Choice_swiginit, METH_VARARGS, NULL},
45069 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL},
45070 { (char *)"new_PreComboBox", (PyCFunction)_wrap_new_PreComboBox, METH_NOARGS, NULL},
45071 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45072 { (char *)"ComboBox_GetValue", (PyCFunction)_wrap_ComboBox_GetValue, METH_O, NULL},
45073 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45074 { (char *)"ComboBox_Copy", (PyCFunction)_wrap_ComboBox_Copy, METH_O, NULL},
45075 { (char *)"ComboBox_Cut", (PyCFunction)_wrap_ComboBox_Cut, METH_O, NULL},
45076 { (char *)"ComboBox_Paste", (PyCFunction)_wrap_ComboBox_Paste, METH_O, NULL},
45077 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
45078 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction)_wrap_ComboBox_GetInsertionPoint, METH_O, NULL},
45079 { (char *)"ComboBox_GetLastPosition", (PyCFunction)_wrap_ComboBox_GetLastPosition, METH_O, NULL},
45080 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
45081 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL},
45082 { (char *)"ComboBox_GetCurrentSelection", (PyCFunction)_wrap_ComboBox_GetCurrentSelection, METH_O, NULL},
45083 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45084 { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
45085 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
45086 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction)_wrap_ComboBox_SetInsertionPointEnd, METH_O, NULL},
45087 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
45088 { (char *)"ComboBox_IsEditable", (PyCFunction)_wrap_ComboBox_IsEditable, METH_O, NULL},
45089 { (char *)"ComboBox_Undo", (PyCFunction)_wrap_ComboBox_Undo, METH_O, NULL},
45090 { (char *)"ComboBox_Redo", (PyCFunction)_wrap_ComboBox_Redo, METH_O, NULL},
45091 { (char *)"ComboBox_SelectAll", (PyCFunction)_wrap_ComboBox_SelectAll, METH_O, NULL},
45092 { (char *)"ComboBox_CanCopy", (PyCFunction)_wrap_ComboBox_CanCopy, METH_O, NULL},
45093 { (char *)"ComboBox_CanCut", (PyCFunction)_wrap_ComboBox_CanCut, METH_O, NULL},
45094 { (char *)"ComboBox_CanPaste", (PyCFunction)_wrap_ComboBox_CanPaste, METH_O, NULL},
45095 { (char *)"ComboBox_CanUndo", (PyCFunction)_wrap_ComboBox_CanUndo, METH_O, NULL},
45096 { (char *)"ComboBox_CanRedo", (PyCFunction)_wrap_ComboBox_CanRedo, METH_O, NULL},
45097 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45098 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL},
45099 { (char *)"ComboBox_swiginit", ComboBox_swiginit, METH_VARARGS, NULL},
45100 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL},
45101 { (char *)"new_PreGauge", (PyCFunction)_wrap_new_PreGauge, METH_NOARGS, NULL},
45102 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45103 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45104 { (char *)"Gauge_GetRange", (PyCFunction)_wrap_Gauge_GetRange, METH_O, NULL},
45105 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45106 { (char *)"Gauge_GetValue", (PyCFunction)_wrap_Gauge_GetValue, METH_O, NULL},
45107 { (char *)"Gauge_IsVertical", (PyCFunction)_wrap_Gauge_IsVertical, METH_O, NULL},
45108 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45109 { (char *)"Gauge_GetShadowWidth", (PyCFunction)_wrap_Gauge_GetShadowWidth, METH_O, NULL},
45110 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL},
45111 { (char *)"Gauge_GetBezelFace", (PyCFunction)_wrap_Gauge_GetBezelFace, METH_O, NULL},
45112 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45113 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL},
45114 { (char *)"Gauge_swiginit", Gauge_swiginit, METH_VARARGS, NULL},
45115 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL},
45116 { (char *)"new_PreStaticBox", (PyCFunction)_wrap_new_PreStaticBox, METH_NOARGS, NULL},
45117 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45118 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45119 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL},
45120 { (char *)"StaticBox_swiginit", StaticBox_swiginit, METH_VARARGS, NULL},
45121 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL},
45122 { (char *)"new_PreStaticLine", (PyCFunction)_wrap_new_PreStaticLine, METH_NOARGS, NULL},
45123 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45124 { (char *)"StaticLine_IsVertical", (PyCFunction)_wrap_StaticLine_IsVertical, METH_O, NULL},
45125 { (char *)"StaticLine_GetDefaultSize", (PyCFunction)_wrap_StaticLine_GetDefaultSize, METH_NOARGS, NULL},
45126 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45127 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL},
45128 { (char *)"StaticLine_swiginit", StaticLine_swiginit, METH_VARARGS, NULL},
45129 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL},
45130 { (char *)"new_PreStaticText", (PyCFunction)_wrap_new_PreStaticText, METH_NOARGS, NULL},
45131 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45132 { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL},
45133 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45134 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL},
45135 { (char *)"StaticText_swiginit", StaticText_swiginit, METH_VARARGS, NULL},
45136 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45137 { (char *)"new_PreStaticBitmap", (PyCFunction)_wrap_new_PreStaticBitmap, METH_NOARGS, NULL},
45138 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45139 { (char *)"StaticBitmap_GetBitmap", (PyCFunction)_wrap_StaticBitmap_GetBitmap, METH_O, NULL},
45140 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45141 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
45142 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45143 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL},
45144 { (char *)"StaticBitmap_swiginit", StaticBitmap_swiginit, METH_VARARGS, NULL},
45145 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL},
45146 { (char *)"new_PreListBox", (PyCFunction)_wrap_new_PreListBox, METH_NOARGS, NULL},
45147 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45148 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
45149 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL},
45150 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL},
45151 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45152 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45153 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL},
45154 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL},
45155 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL},
45156 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45157 { (char *)"ListBox_GetSelections", (PyCFunction)_wrap_ListBox_GetSelections, METH_O, NULL},
45158 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL},
45159 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL},
45160 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45161 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45162 { (char *)"ListBox_IsSorted", (PyCFunction)_wrap_ListBox_IsSorted, METH_O, NULL},
45163 { (char *)"ListBox_HitTest", (PyCFunction) _wrap_ListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
45164 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45165 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45166 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
45167 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45168 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL},
45169 { (char *)"ListBox_swiginit", ListBox_swiginit, METH_VARARGS, NULL},
45170 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL},
45171 { (char *)"new_PreCheckListBox", (PyCFunction)_wrap_new_PreCheckListBox, METH_NOARGS, NULL},
45172 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45173 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
45174 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL},
45175 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL},
45176 { (char *)"CheckListBox_swiginit", CheckListBox_swiginit, METH_VARARGS, NULL},
45177 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL},
45178 { (char *)"delete_TextAttr", (PyCFunction)_wrap_delete_TextAttr, METH_O, NULL},
45179 { (char *)"TextAttr_Init", (PyCFunction)_wrap_TextAttr_Init, METH_O, NULL},
45180 { (char *)"TextAttr_Merge", (PyCFunction) _wrap_TextAttr_Merge, METH_VARARGS | METH_KEYWORDS, NULL},
45181 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45182 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45183 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
45184 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
45185 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL},
45186 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
45187 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
45188 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
45189 { (char *)"TextAttr_HasTextColour", (PyCFunction)_wrap_TextAttr_HasTextColour, METH_O, NULL},
45190 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction)_wrap_TextAttr_HasBackgroundColour, METH_O, NULL},
45191 { (char *)"TextAttr_HasFont", (PyCFunction)_wrap_TextAttr_HasFont, METH_O, NULL},
45192 { (char *)"TextAttr_HasAlignment", (PyCFunction)_wrap_TextAttr_HasAlignment, METH_O, NULL},
45193 { (char *)"TextAttr_HasTabs", (PyCFunction)_wrap_TextAttr_HasTabs, METH_O, NULL},
45194 { (char *)"TextAttr_HasLeftIndent", (PyCFunction)_wrap_TextAttr_HasLeftIndent, METH_O, NULL},
45195 { (char *)"TextAttr_HasRightIndent", (PyCFunction)_wrap_TextAttr_HasRightIndent, METH_O, NULL},
45196 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL},
45197 { (char *)"TextAttr_GetTextColour", (PyCFunction)_wrap_TextAttr_GetTextColour, METH_O, NULL},
45198 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction)_wrap_TextAttr_GetBackgroundColour, METH_O, NULL},
45199 { (char *)"TextAttr_GetFont", (PyCFunction)_wrap_TextAttr_GetFont, METH_O, NULL},
45200 { (char *)"TextAttr_GetAlignment", (PyCFunction)_wrap_TextAttr_GetAlignment, METH_O, NULL},
45201 { (char *)"TextAttr_GetTabs", (PyCFunction)_wrap_TextAttr_GetTabs, METH_O, NULL},
45202 { (char *)"TextAttr_GetLeftIndent", (PyCFunction)_wrap_TextAttr_GetLeftIndent, METH_O, NULL},
45203 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction)_wrap_TextAttr_GetLeftSubIndent, METH_O, NULL},
45204 { (char *)"TextAttr_GetRightIndent", (PyCFunction)_wrap_TextAttr_GetRightIndent, METH_O, NULL},
45205 { (char *)"TextAttr_GetFlags", (PyCFunction)_wrap_TextAttr_GetFlags, METH_O, NULL},
45206 { (char *)"TextAttr_IsDefault", (PyCFunction)_wrap_TextAttr_IsDefault, METH_O, NULL},
45207 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL},
45208 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL},
45209 { (char *)"TextAttr_swiginit", TextAttr_swiginit, METH_VARARGS, NULL},
45210 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45211 { (char *)"new_PreTextCtrl", (PyCFunction)_wrap_new_PreTextCtrl, METH_NOARGS, NULL},
45212 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45213 { (char *)"TextCtrl_GetValue", (PyCFunction)_wrap_TextCtrl_GetValue, METH_O, NULL},
45214 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45215 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45216 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL},
45217 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL},
45218 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction)_wrap_TextCtrl_GetNumberOfLines, METH_O, NULL},
45219 { (char *)"TextCtrl_IsModified", (PyCFunction)_wrap_TextCtrl_IsModified, METH_O, NULL},
45220 { (char *)"TextCtrl_IsEditable", (PyCFunction)_wrap_TextCtrl_IsEditable, METH_O, NULL},
45221 { (char *)"TextCtrl_IsSingleLine", (PyCFunction)_wrap_TextCtrl_IsSingleLine, METH_O, NULL},
45222 { (char *)"TextCtrl_IsMultiLine", (PyCFunction)_wrap_TextCtrl_IsMultiLine, METH_O, NULL},
45223 { (char *)"TextCtrl_GetSelection", (PyCFunction)_wrap_TextCtrl_GetSelection, METH_O, NULL},
45224 { (char *)"TextCtrl_GetStringSelection", (PyCFunction)_wrap_TextCtrl_GetStringSelection, METH_O, NULL},
45225 { (char *)"TextCtrl_Clear", (PyCFunction)_wrap_TextCtrl_Clear, METH_O, NULL},
45226 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
45227 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
45228 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
45229 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
45230 { (char *)"TextCtrl_MarkDirty", (PyCFunction)_wrap_TextCtrl_MarkDirty, METH_O, NULL},
45231 { (char *)"TextCtrl_DiscardEdits", (PyCFunction)_wrap_TextCtrl_DiscardEdits, METH_O, NULL},
b02396e8 45232 { (char *)"TextCtrl_SetModified", (PyCFunction) _wrap_TextCtrl_SetModified, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3
RD
45233 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL},
45234 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL},
45235 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL},
45236 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL},
45237 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45238 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45239 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45240 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction)_wrap_TextCtrl_GetDefaultStyle, METH_O, NULL},
45241 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45242 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL},
45243 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45244 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
45245 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL},
45246 { (char *)"TextCtrl_Copy", (PyCFunction)_wrap_TextCtrl_Copy, METH_O, NULL},
45247 { (char *)"TextCtrl_Cut", (PyCFunction)_wrap_TextCtrl_Cut, METH_O, NULL},
45248 { (char *)"TextCtrl_Paste", (PyCFunction)_wrap_TextCtrl_Paste, METH_O, NULL},
45249 { (char *)"TextCtrl_CanCopy", (PyCFunction)_wrap_TextCtrl_CanCopy, METH_O, NULL},
45250 { (char *)"TextCtrl_CanCut", (PyCFunction)_wrap_TextCtrl_CanCut, METH_O, NULL},
45251 { (char *)"TextCtrl_CanPaste", (PyCFunction)_wrap_TextCtrl_CanPaste, METH_O, NULL},
45252 { (char *)"TextCtrl_Undo", (PyCFunction)_wrap_TextCtrl_Undo, METH_O, NULL},
45253 { (char *)"TextCtrl_Redo", (PyCFunction)_wrap_TextCtrl_Redo, METH_O, NULL},
45254 { (char *)"TextCtrl_CanUndo", (PyCFunction)_wrap_TextCtrl_CanUndo, METH_O, NULL},
45255 { (char *)"TextCtrl_CanRedo", (PyCFunction)_wrap_TextCtrl_CanRedo, METH_O, NULL},
45256 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
45257 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_TextCtrl_SetInsertionPointEnd, METH_O, NULL},
45258 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction)_wrap_TextCtrl_GetInsertionPoint, METH_O, NULL},
45259 { (char *)"TextCtrl_GetLastPosition", (PyCFunction)_wrap_TextCtrl_GetLastPosition, METH_O, NULL},
45260 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45261 { (char *)"TextCtrl_SelectAll", (PyCFunction)_wrap_TextCtrl_SelectAll, METH_O, NULL},
45262 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
45263 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL},
45264 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
45265 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45266 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL},
45267 { (char *)"TextCtrl_swiginit", TextCtrl_swiginit, METH_VARARGS, NULL},
45268 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45269 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction)_wrap_TextUrlEvent_GetMouseEvent, METH_O, NULL},
45270 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction)_wrap_TextUrlEvent_GetURLStart, METH_O, NULL},
45271 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction)_wrap_TextUrlEvent_GetURLEnd, METH_O, NULL},
45272 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL},
45273 { (char *)"TextUrlEvent_swiginit", TextUrlEvent_swiginit, METH_VARARGS, NULL},
45274 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL},
45275 { (char *)"new_PreScrollBar", (PyCFunction)_wrap_new_PreScrollBar, METH_NOARGS, NULL},
45276 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45277 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction)_wrap_ScrollBar_GetThumbPosition, METH_O, NULL},
45278 { (char *)"ScrollBar_GetThumbSize", (PyCFunction)_wrap_ScrollBar_GetThumbSize, METH_O, NULL},
45279 { (char *)"ScrollBar_GetPageSize", (PyCFunction)_wrap_ScrollBar_GetPageSize, METH_O, NULL},
45280 { (char *)"ScrollBar_GetRange", (PyCFunction)_wrap_ScrollBar_GetRange, METH_O, NULL},
45281 { (char *)"ScrollBar_IsVertical", (PyCFunction)_wrap_ScrollBar_IsVertical, METH_O, NULL},
45282 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45283 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45284 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL},
45285 { (char *)"ScrollBar_swiginit", ScrollBar_swiginit, METH_VARARGS, NULL},
45286 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL},
45287 { (char *)"new_PreSpinButton", (PyCFunction)_wrap_new_PreSpinButton, METH_NOARGS, NULL},
45288 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45289 { (char *)"SpinButton_GetValue", (PyCFunction)_wrap_SpinButton_GetValue, METH_O, NULL},
45290 { (char *)"SpinButton_GetMin", (PyCFunction)_wrap_SpinButton_GetMin, METH_O, NULL},
45291 { (char *)"SpinButton_GetMax", (PyCFunction)_wrap_SpinButton_GetMax, METH_O, NULL},
45292 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45293 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
45294 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
45295 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45296 { (char *)"SpinButton_IsVertical", (PyCFunction)_wrap_SpinButton_IsVertical, METH_O, NULL},
45297 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45298 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL},
45299 { (char *)"SpinButton_swiginit", SpinButton_swiginit, METH_VARARGS, NULL},
45300 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45301 { (char *)"new_PreSpinCtrl", (PyCFunction)_wrap_new_PreSpinCtrl, METH_NOARGS, NULL},
45302 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45303 { (char *)"SpinCtrl_GetValue", (PyCFunction)_wrap_SpinCtrl_GetValue, METH_O, NULL},
45304 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45305 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL},
45306 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45307 { (char *)"SpinCtrl_GetMin", (PyCFunction)_wrap_SpinCtrl_GetMin, METH_O, NULL},
45308 { (char *)"SpinCtrl_GetMax", (PyCFunction)_wrap_SpinCtrl_GetMax, METH_O, NULL},
45309 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45310 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45311 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL},
45312 { (char *)"SpinCtrl_swiginit", SpinCtrl_swiginit, METH_VARARGS, NULL},
45313 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45314 { (char *)"SpinEvent_GetPosition", (PyCFunction)_wrap_SpinEvent_GetPosition, METH_O, NULL},
45315 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45316 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL},
45317 { (char *)"SpinEvent_swiginit", SpinEvent_swiginit, METH_VARARGS, NULL},
45318 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL},
45319 { (char *)"new_PreRadioBox", (PyCFunction)_wrap_new_PreRadioBox, METH_NOARGS, NULL},
45320 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45321 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45322 { (char *)"RadioBox_GetSelection", (PyCFunction)_wrap_RadioBox_GetSelection, METH_O, NULL},
45323 { (char *)"RadioBox_GetStringSelection", (PyCFunction)_wrap_RadioBox_GetStringSelection, METH_O, NULL},
45324 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45325 { (char *)"RadioBox_GetCount", (PyCFunction)_wrap_RadioBox_GetCount, METH_O, NULL},
45326 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL},
45327 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
45328 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
45329 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL},
45330 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL},
45331 { (char *)"RadioBox_IsItemEnabled", (PyCFunction) _wrap_RadioBox_IsItemEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
45332 { (char *)"RadioBox_IsItemShown", (PyCFunction) _wrap_RadioBox_IsItemShown, METH_VARARGS | METH_KEYWORDS, NULL},
45333 { (char *)"RadioBox_GetColumnCount", (PyCFunction)_wrap_RadioBox_GetColumnCount, METH_O, NULL},
45334 { (char *)"RadioBox_GetRowCount", (PyCFunction)_wrap_RadioBox_GetRowCount, METH_O, NULL},
45335 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
45336 { (char *)"RadioBox_SetItemToolTip", (PyCFunction) _wrap_RadioBox_SetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
45337 { (char *)"RadioBox_GetItemToolTip", (PyCFunction) _wrap_RadioBox_GetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
45338 { (char *)"RadioBox_SetItemHelpText", (PyCFunction) _wrap_RadioBox_SetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
45339 { (char *)"RadioBox_GetItemHelpText", (PyCFunction) _wrap_RadioBox_GetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
45340 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45341 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL},
45342 { (char *)"RadioBox_swiginit", RadioBox_swiginit, METH_VARARGS, NULL},
45343 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL},
45344 { (char *)"new_PreRadioButton", (PyCFunction)_wrap_new_PreRadioButton, METH_NOARGS, NULL},
45345 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45346 { (char *)"RadioButton_GetValue", (PyCFunction)_wrap_RadioButton_GetValue, METH_O, NULL},
45347 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45348 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45349 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL},
45350 { (char *)"RadioButton_swiginit", RadioButton_swiginit, METH_VARARGS, NULL},
45351 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL},
45352 { (char *)"new_PreSlider", (PyCFunction)_wrap_new_PreSlider, METH_NOARGS, NULL},
45353 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45354 { (char *)"Slider_GetValue", (PyCFunction)_wrap_Slider_GetValue, METH_O, NULL},
45355 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45356 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45357 { (char *)"Slider_GetMin", (PyCFunction)_wrap_Slider_GetMin, METH_O, NULL},
45358 { (char *)"Slider_GetMax", (PyCFunction)_wrap_Slider_GetMax, METH_O, NULL},
45359 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
45360 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
45361 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL},
45362 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
45363 { (char *)"Slider_GetLineSize", (PyCFunction)_wrap_Slider_GetLineSize, METH_O, NULL},
45364 { (char *)"Slider_GetPageSize", (PyCFunction)_wrap_Slider_GetPageSize, METH_O, NULL},
45365 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL},
45366 { (char *)"Slider_GetThumbLength", (PyCFunction)_wrap_Slider_GetThumbLength, METH_O, NULL},
45367 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL},
45368 { (char *)"Slider_GetTickFreq", (PyCFunction)_wrap_Slider_GetTickFreq, METH_O, NULL},
45369 { (char *)"Slider_ClearTicks", (PyCFunction)_wrap_Slider_ClearTicks, METH_O, NULL},
45370 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL},
45371 { (char *)"Slider_ClearSel", (PyCFunction)_wrap_Slider_ClearSel, METH_O, NULL},
45372 { (char *)"Slider_GetSelEnd", (PyCFunction)_wrap_Slider_GetSelEnd, METH_O, NULL},
45373 { (char *)"Slider_GetSelStart", (PyCFunction)_wrap_Slider_GetSelStart, METH_O, NULL},
45374 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45375 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45376 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL},
45377 { (char *)"Slider_swiginit", Slider_swiginit, METH_VARARGS, NULL},
45378 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL},
45379 { (char *)"new_PreToggleButton", (PyCFunction)_wrap_new_PreToggleButton, METH_NOARGS, NULL},
45380 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45381 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45382 { (char *)"ToggleButton_GetValue", (PyCFunction)_wrap_ToggleButton_GetValue, METH_O, NULL},
45383 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45384 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL},
45385 { (char *)"ToggleButton_swiginit", ToggleButton_swiginit, METH_VARARGS, NULL},
45386 { (char *)"BookCtrlBase_GetPageCount", (PyCFunction)_wrap_BookCtrlBase_GetPageCount, METH_O, NULL},
45387 { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL},
45388 { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetCurrentPage, METH_O, NULL},
45389 { (char *)"BookCtrlBase_GetSelection", (PyCFunction)_wrap_BookCtrlBase_GetSelection, METH_O, NULL},
45390 { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
45391 { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
45392 { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45393 { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45394 { (char *)"BookCtrlBase_GetImageList", (PyCFunction)_wrap_BookCtrlBase_GetImageList, METH_O, NULL},
45395 { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
45396 { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
45397 { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
45398 { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL},
45399 { (char *)"BookCtrlBase_GetInternalBorder", (PyCFunction)_wrap_BookCtrlBase_GetInternalBorder, METH_O, NULL},
45400 { (char *)"BookCtrlBase_SetInternalBorder", (PyCFunction) _wrap_BookCtrlBase_SetInternalBorder, METH_VARARGS | METH_KEYWORDS, NULL},
45401 { (char *)"BookCtrlBase_IsVertical", (PyCFunction)_wrap_BookCtrlBase_IsVertical, METH_O, NULL},
45402 { (char *)"BookCtrlBase_SetControlMargin", (PyCFunction) _wrap_BookCtrlBase_SetControlMargin, METH_VARARGS | METH_KEYWORDS, NULL},
e9d6f3a4 45403 { (char *)"BookCtrlBase_GetControlMargin", (PyCFunction)_wrap_BookCtrlBase_GetControlMargin, METH_O, NULL},
1bd55598
RD
45404 { (char *)"BookCtrlBase_SetFitToCurrentPage", (PyCFunction) _wrap_BookCtrlBase_SetFitToCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL},
45405 { (char *)"BookCtrlBase_GetFitToCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetFitToCurrentPage, METH_O, NULL},
e9d6f3a4 45406 { (char *)"BookCtrlBase_GetControlSizer", (PyCFunction)_wrap_BookCtrlBase_GetControlSizer, METH_O, NULL},
1bd55598
RD
45407 { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL},
45408 { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL},
45409 { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction)_wrap_BookCtrlBase_DeleteAllPages, METH_O, NULL},
45410 { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL},
45411 { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL},
45412 { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45413 { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c 45414 { (char *)"BookCtrlBase_HitTest", (PyCFunction) _wrap_BookCtrlBase_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
45415 { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45416 { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL},
45417 { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45418 { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetSelection, METH_O, NULL},
45419 { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45420 { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetOldSelection, METH_O, NULL},
45421 { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45422 { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL},
45423 { (char *)"BookCtrlBaseEvent_swiginit", BookCtrlBaseEvent_swiginit, METH_VARARGS, NULL},
45424 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL},
45425 { (char *)"new_PreNotebook", (PyCFunction)_wrap_new_PreNotebook, METH_NOARGS, NULL},
45426 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45427 { (char *)"Notebook_GetRowCount", (PyCFunction)_wrap_Notebook_GetRowCount, METH_O, NULL},
45428 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL},
45429 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
45430 { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction)_wrap_Notebook_GetThemeBackgroundColour, METH_O, NULL},
45431 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45432 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL},
45433 { (char *)"Notebook_swiginit", Notebook_swiginit, METH_VARARGS, NULL},
45434 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45435 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL},
45436 { (char *)"NotebookEvent_swiginit", NotebookEvent_swiginit, METH_VARARGS, NULL},
45437 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL},
45438 { (char *)"new_PreListbook", (PyCFunction)_wrap_new_PreListbook, METH_NOARGS, NULL},
45439 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45440 { (char *)"Listbook_GetListView", (PyCFunction)_wrap_Listbook_GetListView, METH_O, NULL},
45441 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL},
45442 { (char *)"Listbook_swiginit", Listbook_swiginit, METH_VARARGS, NULL},
45443 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45444 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL},
45445 { (char *)"ListbookEvent_swiginit", ListbookEvent_swiginit, METH_VARARGS, NULL},
45446 { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL},
45447 { (char *)"new_PreChoicebook", (PyCFunction)_wrap_new_PreChoicebook, METH_NOARGS, NULL},
45448 { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45449 { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction)_wrap_Choicebook_GetChoiceCtrl, METH_O, NULL},
45450 { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL},
45451 { (char *)"Choicebook_swiginit", Choicebook_swiginit, METH_VARARGS, NULL},
45452 { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45453 { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL},
45454 { (char *)"ChoicebookEvent_swiginit", ChoicebookEvent_swiginit, METH_VARARGS, NULL},
45455 { (char *)"new_Treebook", (PyCFunction) _wrap_new_Treebook, METH_VARARGS | METH_KEYWORDS, NULL},
45456 { (char *)"new_PreTreebook", (PyCFunction)_wrap_new_PreTreebook, METH_NOARGS, NULL},
45457 { (char *)"Treebook_Create", (PyCFunction) _wrap_Treebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45458 { (char *)"Treebook_InsertSubPage", (PyCFunction) _wrap_Treebook_InsertSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
45459 { (char *)"Treebook_AddSubPage", (PyCFunction) _wrap_Treebook_AddSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
45460 { (char *)"Treebook_IsNodeExpanded", (PyCFunction) _wrap_Treebook_IsNodeExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
45461 { (char *)"Treebook_ExpandNode", (PyCFunction) _wrap_Treebook_ExpandNode, METH_VARARGS | METH_KEYWORDS, NULL},
45462 { (char *)"Treebook_CollapseNode", (PyCFunction) _wrap_Treebook_CollapseNode, METH_VARARGS | METH_KEYWORDS, NULL},
45463 { (char *)"Treebook_GetPageParent", (PyCFunction) _wrap_Treebook_GetPageParent, METH_VARARGS | METH_KEYWORDS, NULL},
45464 { (char *)"Treebook_GetTreeCtrl", (PyCFunction)_wrap_Treebook_GetTreeCtrl, METH_O, NULL},
45465 { (char *)"Treebook_swigregister", Treebook_swigregister, METH_VARARGS, NULL},
45466 { (char *)"Treebook_swiginit", Treebook_swiginit, METH_VARARGS, NULL},
45467 { (char *)"new_TreebookEvent", (PyCFunction) _wrap_new_TreebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45468 { (char *)"TreebookEvent_swigregister", TreebookEvent_swigregister, METH_VARARGS, NULL},
45469 { (char *)"TreebookEvent_swiginit", TreebookEvent_swiginit, METH_VARARGS, NULL},
45470 { (char *)"new_Toolbook", (PyCFunction) _wrap_new_Toolbook, METH_VARARGS | METH_KEYWORDS, NULL},
45471 { (char *)"new_PreToolbook", (PyCFunction)_wrap_new_PreToolbook, METH_NOARGS, NULL},
45472 { (char *)"Toolbook_Create", (PyCFunction) _wrap_Toolbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45473 { (char *)"Toolbook_GetToolBar", (PyCFunction)_wrap_Toolbook_GetToolBar, METH_O, NULL},
45474 { (char *)"Toolbook_Realize", (PyCFunction)_wrap_Toolbook_Realize, METH_O, NULL},
45475 { (char *)"Toolbook_swigregister", Toolbook_swigregister, METH_VARARGS, NULL},
45476 { (char *)"Toolbook_swiginit", Toolbook_swiginit, METH_VARARGS, NULL},
45477 { (char *)"new_ToolbookEvent", (PyCFunction) _wrap_new_ToolbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45478 { (char *)"ToolbookEvent_swigregister", ToolbookEvent_swigregister, METH_VARARGS, NULL},
45479 { (char *)"ToolbookEvent_swiginit", ToolbookEvent_swiginit, METH_VARARGS, NULL},
45480 { (char *)"ToolBarToolBase_GetId", (PyCFunction)_wrap_ToolBarToolBase_GetId, METH_O, NULL},
45481 { (char *)"ToolBarToolBase_GetControl", (PyCFunction)_wrap_ToolBarToolBase_GetControl, METH_O, NULL},
45482 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction)_wrap_ToolBarToolBase_GetToolBar, METH_O, NULL},
45483 { (char *)"ToolBarToolBase_IsButton", (PyCFunction)_wrap_ToolBarToolBase_IsButton, METH_O, NULL},
45484 { (char *)"ToolBarToolBase_IsControl", (PyCFunction)_wrap_ToolBarToolBase_IsControl, METH_O, NULL},
45485 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction)_wrap_ToolBarToolBase_IsSeparator, METH_O, NULL},
45486 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction)_wrap_ToolBarToolBase_GetStyle, METH_O, NULL},
45487 { (char *)"ToolBarToolBase_GetKind", (PyCFunction)_wrap_ToolBarToolBase_GetKind, METH_O, NULL},
45488 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction)_wrap_ToolBarToolBase_IsEnabled, METH_O, NULL},
45489 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction)_wrap_ToolBarToolBase_IsToggled, METH_O, NULL},
45490 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction)_wrap_ToolBarToolBase_CanBeToggled, METH_O, NULL},
45491 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetNormalBitmap, METH_O, NULL},
45492 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetDisabledBitmap, METH_O, NULL},
45493 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetBitmap, METH_O, NULL},
45494 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction)_wrap_ToolBarToolBase_GetLabel, METH_O, NULL},
45495 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction)_wrap_ToolBarToolBase_GetShortHelp, METH_O, NULL},
45496 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction)_wrap_ToolBarToolBase_GetLongHelp, METH_O, NULL},
45497 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
45498 { (char *)"ToolBarToolBase_Toggle", (PyCFunction)_wrap_ToolBarToolBase_Toggle, METH_O, NULL},
45499 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
45500 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45501 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45502 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45503 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45504 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45505 { (char *)"ToolBarToolBase_Detach", (PyCFunction)_wrap_ToolBarToolBase_Detach, METH_O, NULL},
45506 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL},
45507 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction)_wrap_ToolBarToolBase_GetClientData, METH_O, NULL},
45508 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
45509 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL},
45510 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL},
45511 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL},
45512 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
45513 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
45514 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL},
45515 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL},
45516 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL},
45517 { (char *)"ToolBarBase_AddSeparator", (PyCFunction)_wrap_ToolBarBase_AddSeparator, METH_O, NULL},
45518 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL},
45519 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL},
45520 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL},
45521 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL},
45522 { (char *)"ToolBarBase_ClearTools", (PyCFunction)_wrap_ToolBarBase_ClearTools, METH_O, NULL},
45523 { (char *)"ToolBarBase_Realize", (PyCFunction)_wrap_ToolBarBase_Realize, METH_O, NULL},
45524 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL},
45525 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL},
45526 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
45527 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
45528 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
45529 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL},
45530 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL},
45531 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
45532 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45533 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45534 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45535 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45536 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL},
45537 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
45538 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL},
45539 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL},
45540 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction)_wrap_ToolBarBase_GetToolMargins, METH_O, NULL},
45541 { (char *)"ToolBarBase_GetMargins", (PyCFunction)_wrap_ToolBarBase_GetMargins, METH_O, NULL},
45542 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction)_wrap_ToolBarBase_GetToolPacking, METH_O, NULL},
45543 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction)_wrap_ToolBarBase_GetToolSeparation, METH_O, NULL},
45544 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL},
45545 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL},
45546 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction)_wrap_ToolBarBase_GetMaxRows, METH_O, NULL},
45547 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction)_wrap_ToolBarBase_GetMaxCols, METH_O, NULL},
45548 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL},
45549 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction)_wrap_ToolBarBase_GetToolBitmapSize, METH_O, NULL},
45550 { (char *)"ToolBarBase_GetToolSize", (PyCFunction)_wrap_ToolBarBase_GetToolSize, METH_O, NULL},
45551 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45552 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL},
45553 { (char *)"ToolBarBase_IsVertical", (PyCFunction)_wrap_ToolBarBase_IsVertical, METH_O, NULL},
45554 { (char *)"ToolBarBase_GetToolsCount", (PyCFunction)_wrap_ToolBarBase_GetToolsCount, METH_O, NULL},
45555 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL},
45556 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL},
45557 { (char *)"new_PreToolBar", (PyCFunction)_wrap_new_PreToolBar, METH_NOARGS, NULL},
45558 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
45559 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45560 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL},
45561 { (char *)"ToolBar_swiginit", ToolBar_swiginit, METH_VARARGS, NULL},
45562 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL},
45563 { (char *)"delete_ListItemAttr", (PyCFunction)_wrap_delete_ListItemAttr, METH_O, NULL},
45564 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45565 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45566 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
45567 { (char *)"ListItemAttr_HasTextColour", (PyCFunction)_wrap_ListItemAttr_HasTextColour, METH_O, NULL},
45568 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction)_wrap_ListItemAttr_HasBackgroundColour, METH_O, NULL},
45569 { (char *)"ListItemAttr_HasFont", (PyCFunction)_wrap_ListItemAttr_HasFont, METH_O, NULL},
45570 { (char *)"ListItemAttr_GetTextColour", (PyCFunction)_wrap_ListItemAttr_GetTextColour, METH_O, NULL},
45571 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction)_wrap_ListItemAttr_GetBackgroundColour, METH_O, NULL},
45572 { (char *)"ListItemAttr_GetFont", (PyCFunction)_wrap_ListItemAttr_GetFont, METH_O, NULL},
45573 { (char *)"ListItemAttr_AssignFrom", (PyCFunction) _wrap_ListItemAttr_AssignFrom, METH_VARARGS | METH_KEYWORDS, NULL},
45574 { (char *)"ListItemAttr_Destroy", (PyCFunction)_wrap_ListItemAttr_Destroy, METH_O, NULL},
45575 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL},
45576 { (char *)"ListItemAttr_swiginit", ListItemAttr_swiginit, METH_VARARGS, NULL},
45577 { (char *)"new_ListItem", (PyCFunction)_wrap_new_ListItem, METH_NOARGS, NULL},
45578 { (char *)"delete_ListItem", (PyCFunction)_wrap_delete_ListItem, METH_O, NULL},
45579 { (char *)"ListItem_Clear", (PyCFunction)_wrap_ListItem_Clear, METH_O, NULL},
45580 { (char *)"ListItem_ClearAttributes", (PyCFunction)_wrap_ListItem_ClearAttributes, METH_O, NULL},
45581 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
45582 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
45583 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45584 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
45585 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL},
45586 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
45587 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL},
45588 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
45589 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45590 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL},
45591 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45592 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45593 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
45594 { (char *)"ListItem_GetMask", (PyCFunction)_wrap_ListItem_GetMask, METH_O, NULL},
45595 { (char *)"ListItem_GetId", (PyCFunction)_wrap_ListItem_GetId, METH_O, NULL},
45596 { (char *)"ListItem_GetColumn", (PyCFunction)_wrap_ListItem_GetColumn, METH_O, NULL},
45597 { (char *)"ListItem_GetState", (PyCFunction)_wrap_ListItem_GetState, METH_O, NULL},
45598 { (char *)"ListItem_GetText", (PyCFunction)_wrap_ListItem_GetText, METH_O, NULL},
45599 { (char *)"ListItem_GetImage", (PyCFunction)_wrap_ListItem_GetImage, METH_O, NULL},
45600 { (char *)"ListItem_GetData", (PyCFunction)_wrap_ListItem_GetData, METH_O, NULL},
45601 { (char *)"ListItem_GetWidth", (PyCFunction)_wrap_ListItem_GetWidth, METH_O, NULL},
45602 { (char *)"ListItem_GetAlign", (PyCFunction)_wrap_ListItem_GetAlign, METH_O, NULL},
45603 { (char *)"ListItem_GetAttributes", (PyCFunction)_wrap_ListItem_GetAttributes, METH_O, NULL},
45604 { (char *)"ListItem_HasAttributes", (PyCFunction)_wrap_ListItem_HasAttributes, METH_O, NULL},
45605 { (char *)"ListItem_GetTextColour", (PyCFunction)_wrap_ListItem_GetTextColour, METH_O, NULL},
45606 { (char *)"ListItem_GetBackgroundColour", (PyCFunction)_wrap_ListItem_GetBackgroundColour, METH_O, NULL},
45607 { (char *)"ListItem_GetFont", (PyCFunction)_wrap_ListItem_GetFont, METH_O, NULL},
45608 { (char *)"ListItem_m_mask_set", _wrap_ListItem_m_mask_set, METH_VARARGS, NULL},
45609 { (char *)"ListItem_m_mask_get", (PyCFunction)_wrap_ListItem_m_mask_get, METH_O, NULL},
45610 { (char *)"ListItem_m_itemId_set", _wrap_ListItem_m_itemId_set, METH_VARARGS, NULL},
45611 { (char *)"ListItem_m_itemId_get", (PyCFunction)_wrap_ListItem_m_itemId_get, METH_O, NULL},
45612 { (char *)"ListItem_m_col_set", _wrap_ListItem_m_col_set, METH_VARARGS, NULL},
45613 { (char *)"ListItem_m_col_get", (PyCFunction)_wrap_ListItem_m_col_get, METH_O, NULL},
45614 { (char *)"ListItem_m_state_set", _wrap_ListItem_m_state_set, METH_VARARGS, NULL},
45615 { (char *)"ListItem_m_state_get", (PyCFunction)_wrap_ListItem_m_state_get, METH_O, NULL},
45616 { (char *)"ListItem_m_stateMask_set", _wrap_ListItem_m_stateMask_set, METH_VARARGS, NULL},
45617 { (char *)"ListItem_m_stateMask_get", (PyCFunction)_wrap_ListItem_m_stateMask_get, METH_O, NULL},
45618 { (char *)"ListItem_m_text_set", _wrap_ListItem_m_text_set, METH_VARARGS, NULL},
45619 { (char *)"ListItem_m_text_get", (PyCFunction)_wrap_ListItem_m_text_get, METH_O, NULL},
45620 { (char *)"ListItem_m_image_set", _wrap_ListItem_m_image_set, METH_VARARGS, NULL},
45621 { (char *)"ListItem_m_image_get", (PyCFunction)_wrap_ListItem_m_image_get, METH_O, NULL},
45622 { (char *)"ListItem_m_data_set", _wrap_ListItem_m_data_set, METH_VARARGS, NULL},
45623 { (char *)"ListItem_m_data_get", (PyCFunction)_wrap_ListItem_m_data_get, METH_O, NULL},
45624 { (char *)"ListItem_m_format_set", _wrap_ListItem_m_format_set, METH_VARARGS, NULL},
45625 { (char *)"ListItem_m_format_get", (PyCFunction)_wrap_ListItem_m_format_get, METH_O, NULL},
45626 { (char *)"ListItem_m_width_set", _wrap_ListItem_m_width_set, METH_VARARGS, NULL},
45627 { (char *)"ListItem_m_width_get", (PyCFunction)_wrap_ListItem_m_width_get, METH_O, NULL},
45628 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL},
45629 { (char *)"ListItem_swiginit", ListItem_swiginit, METH_VARARGS, NULL},
45630 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45631 { (char *)"ListEvent_m_code_set", _wrap_ListEvent_m_code_set, METH_VARARGS, NULL},
45632 { (char *)"ListEvent_m_code_get", (PyCFunction)_wrap_ListEvent_m_code_get, METH_O, NULL},
45633 { (char *)"ListEvent_m_oldItemIndex_set", _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS, NULL},
45634 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction)_wrap_ListEvent_m_oldItemIndex_get, METH_O, NULL},
45635 { (char *)"ListEvent_m_itemIndex_set", _wrap_ListEvent_m_itemIndex_set, METH_VARARGS, NULL},
45636 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction)_wrap_ListEvent_m_itemIndex_get, METH_O, NULL},
45637 { (char *)"ListEvent_m_col_set", _wrap_ListEvent_m_col_set, METH_VARARGS, NULL},
45638 { (char *)"ListEvent_m_col_get", (PyCFunction)_wrap_ListEvent_m_col_get, METH_O, NULL},
45639 { (char *)"ListEvent_m_pointDrag_set", _wrap_ListEvent_m_pointDrag_set, METH_VARARGS, NULL},
45640 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction)_wrap_ListEvent_m_pointDrag_get, METH_O, NULL},
45641 { (char *)"ListEvent_m_item_get", (PyCFunction)_wrap_ListEvent_m_item_get, METH_O, NULL},
45642 { (char *)"ListEvent_GetKeyCode", (PyCFunction)_wrap_ListEvent_GetKeyCode, METH_O, NULL},
45643 { (char *)"ListEvent_GetIndex", (PyCFunction)_wrap_ListEvent_GetIndex, METH_O, NULL},
45644 { (char *)"ListEvent_GetColumn", (PyCFunction)_wrap_ListEvent_GetColumn, METH_O, NULL},
45645 { (char *)"ListEvent_GetPoint", (PyCFunction)_wrap_ListEvent_GetPoint, METH_O, NULL},
45646 { (char *)"ListEvent_GetLabel", (PyCFunction)_wrap_ListEvent_GetLabel, METH_O, NULL},
45647 { (char *)"ListEvent_GetText", (PyCFunction)_wrap_ListEvent_GetText, METH_O, NULL},
45648 { (char *)"ListEvent_GetImage", (PyCFunction)_wrap_ListEvent_GetImage, METH_O, NULL},
45649 { (char *)"ListEvent_GetData", (PyCFunction)_wrap_ListEvent_GetData, METH_O, NULL},
45650 { (char *)"ListEvent_GetMask", (PyCFunction)_wrap_ListEvent_GetMask, METH_O, NULL},
45651 { (char *)"ListEvent_GetItem", (PyCFunction)_wrap_ListEvent_GetItem, METH_O, NULL},
45652 { (char *)"ListEvent_GetCacheFrom", (PyCFunction)_wrap_ListEvent_GetCacheFrom, METH_O, NULL},
45653 { (char *)"ListEvent_GetCacheTo", (PyCFunction)_wrap_ListEvent_GetCacheTo, METH_O, NULL},
45654 { (char *)"ListEvent_IsEditCancelled", (PyCFunction)_wrap_ListEvent_IsEditCancelled, METH_O, NULL},
45655 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
45656 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL},
45657 { (char *)"ListEvent_swiginit", ListEvent_swiginit, METH_VARARGS, NULL},
45658 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45659 { (char *)"new_PreListCtrl", (PyCFunction)_wrap_new_PreListCtrl, METH_NOARGS, NULL},
45660 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45661 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
45662 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45663 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45664 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45665 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45666 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction)_wrap_ListCtrl_GetCountPerPage, METH_O, NULL},
45667 { (char *)"ListCtrl_GetViewRect", (PyCFunction)_wrap_ListCtrl_GetViewRect, METH_O, NULL},
45668 { (char *)"ListCtrl_GetEditControl", (PyCFunction)_wrap_ListCtrl_GetEditControl, METH_O, NULL},
45669 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL},
45670 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
45671 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
45672 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
45673 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
45674 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
45675 { (char *)"ListCtrl_SetItemColumnImage", (PyCFunction) _wrap_ListCtrl_SetItemColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
45676 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
45677 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
45678 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45679 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45680 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45681 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL},
45682 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45683 { (char *)"ListCtrl_GetItemCount", (PyCFunction)_wrap_ListCtrl_GetItemCount, METH_O, NULL},
45684 { (char *)"ListCtrl_GetColumnCount", (PyCFunction)_wrap_ListCtrl_GetColumnCount, METH_O, NULL},
45685 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction)_wrap_ListCtrl_GetItemSpacing, METH_O, NULL},
45686 { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
45687 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction)_wrap_ListCtrl_GetSelectedItemCount, METH_O, NULL},
45688 { (char *)"ListCtrl_GetTextColour", (PyCFunction)_wrap_ListCtrl_GetTextColour, METH_O, NULL},
45689 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45690 { (char *)"ListCtrl_GetTopItem", (PyCFunction)_wrap_ListCtrl_GetTopItem, METH_O, NULL},
45691 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45692 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
45693 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45694 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45695 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45696 { (char *)"ListCtrl_InReportView", (PyCFunction)_wrap_ListCtrl_InReportView, METH_O, NULL},
45697 { (char *)"ListCtrl_IsVirtual", (PyCFunction)_wrap_ListCtrl_IsVirtual, METH_O, NULL},
45698 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL},
45699 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL},
45700 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL},
45701 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL},
45702 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction)_wrap_ListCtrl_DeleteAllItems, METH_O, NULL},
45703 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45704 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction)_wrap_ListCtrl_DeleteAllColumns, METH_O, NULL},
45705 { (char *)"ListCtrl_ClearAll", (PyCFunction)_wrap_ListCtrl_ClearAll, METH_O, NULL},
45706 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45707 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45708 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL},
45709 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45710 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL},
45711 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c 45712 { (char *)"ListCtrl_HitTestSubItem", (PyCFunction) _wrap_ListCtrl_HitTestSubItem, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
45713 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
45714 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
45715 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL},
45716 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
45717 { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL},
45718 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45719 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL},
45720 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL},
45721 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45722 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45723 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45724 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45725 { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
45726 { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
45727 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL},
45728 { (char *)"ListCtrl_GetMainWindow", (PyCFunction)_wrap_ListCtrl_GetMainWindow, METH_O, NULL},
45729 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45730 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL},
45731 { (char *)"ListCtrl_swiginit", ListCtrl_swiginit, METH_VARARGS, NULL},
45732 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL},
45733 { (char *)"new_PreListView", (PyCFunction)_wrap_new_PreListView, METH_NOARGS, NULL},
45734 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45735 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL},
45736 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL},
45737 { (char *)"ListView_GetFocusedItem", (PyCFunction)_wrap_ListView_GetFocusedItem, METH_O, NULL},
45738 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45739 { (char *)"ListView_GetFirstSelected", (PyCFunction)_wrap_ListView_GetFirstSelected, METH_O, NULL},
45740 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45741 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
45742 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
45743 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL},
45744 { (char *)"ListView_swiginit", ListView_swiginit, METH_VARARGS, NULL},
45745 { (char *)"new_TreeItemId", (PyCFunction)_wrap_new_TreeItemId, METH_NOARGS, NULL},
45746 { (char *)"delete_TreeItemId", (PyCFunction)_wrap_delete_TreeItemId, METH_O, NULL},
45747 { (char *)"TreeItemId_IsOk", (PyCFunction)_wrap_TreeItemId_IsOk, METH_O, NULL},
45748 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
45749 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
45750 { (char *)"TreeItemId_m_pItem_set", _wrap_TreeItemId_m_pItem_set, METH_VARARGS, NULL},
45751 { (char *)"TreeItemId_m_pItem_get", (PyCFunction)_wrap_TreeItemId_m_pItem_get, METH_O, NULL},
45752 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL},
45753 { (char *)"TreeItemId_swiginit", TreeItemId_swiginit, METH_VARARGS, NULL},
45754 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45755 { (char *)"delete_TreeItemData", (PyCFunction)_wrap_delete_TreeItemData, METH_O, NULL},
45756 { (char *)"TreeItemData_GetData", (PyCFunction)_wrap_TreeItemData_GetData, METH_O, NULL},
45757 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
45758 { (char *)"TreeItemData_GetId", (PyCFunction)_wrap_TreeItemData_GetId, METH_O, NULL},
45759 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
45760 { (char *)"TreeItemData_Destroy", (PyCFunction)_wrap_TreeItemData_Destroy, METH_O, NULL},
45761 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL},
45762 { (char *)"TreeItemData_swiginit", TreeItemData_swiginit, METH_VARARGS, NULL},
b02396e8 45763 { (char *)"new_TreeEvent", _wrap_new_TreeEvent, METH_VARARGS, NULL},
1bd55598
RD
45764 { (char *)"TreeEvent_GetItem", (PyCFunction)_wrap_TreeEvent_GetItem, METH_O, NULL},
45765 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
45766 { (char *)"TreeEvent_GetOldItem", (PyCFunction)_wrap_TreeEvent_GetOldItem, METH_O, NULL},
45767 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL},
45768 { (char *)"TreeEvent_GetPoint", (PyCFunction)_wrap_TreeEvent_GetPoint, METH_O, NULL},
45769 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL},
45770 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction)_wrap_TreeEvent_GetKeyEvent, METH_O, NULL},
45771 { (char *)"TreeEvent_GetKeyCode", (PyCFunction)_wrap_TreeEvent_GetKeyCode, METH_O, NULL},
45772 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45773 { (char *)"TreeEvent_GetLabel", (PyCFunction)_wrap_TreeEvent_GetLabel, METH_O, NULL},
45774 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45775 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction)_wrap_TreeEvent_IsEditCancelled, METH_O, NULL},
45776 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
45777 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
45778 { (char *)"TreeEvent_GetToolTip", (PyCFunction)_wrap_TreeEvent_GetToolTip, METH_O, NULL},
45779 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL},
45780 { (char *)"TreeEvent_swiginit", TreeEvent_swiginit, METH_VARARGS, NULL},
45781 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45782 { (char *)"new_PreTreeCtrl", (PyCFunction)_wrap_new_PreTreeCtrl, METH_NOARGS, NULL},
45783 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45784 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
45785 { (char *)"TreeCtrl_GetCount", (PyCFunction)_wrap_TreeCtrl_GetCount, METH_O, NULL},
45786 { (char *)"TreeCtrl_GetIndent", (PyCFunction)_wrap_TreeCtrl_GetIndent, METH_O, NULL},
45787 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL},
45788 { (char *)"TreeCtrl_GetSpacing", (PyCFunction)_wrap_TreeCtrl_GetSpacing, METH_O, NULL},
45789 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
45790 { (char *)"TreeCtrl_GetImageList", (PyCFunction)_wrap_TreeCtrl_GetImageList, METH_O, NULL},
45791 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction)_wrap_TreeCtrl_GetStateImageList, METH_O, NULL},
45792 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45793 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45794 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45795 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45796 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
45797 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
45798 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45799 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
45800 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45801 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45802 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
45803 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
45804 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
45805 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45806 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
45807 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
45808 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL},
45809 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL},
45810 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45811 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45812 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
45813 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45814 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
45815 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
45816 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45817 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL},
45818 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL},
45819 { (char *)"TreeCtrl_GetRootItem", (PyCFunction)_wrap_TreeCtrl_GetRootItem, METH_O, NULL},
45820 { (char *)"TreeCtrl_GetSelection", (PyCFunction)_wrap_TreeCtrl_GetSelection, METH_O, NULL},
45821 { (char *)"TreeCtrl_GetSelections", (PyCFunction)_wrap_TreeCtrl_GetSelections, METH_O, NULL},
45822 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL},
45823 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL},
45824 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL},
45825 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL},
45826 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL},
45827 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL},
45828 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction)_wrap_TreeCtrl_GetFirstVisibleItem, METH_O, NULL},
45829 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45830 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45831 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL},
45832 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},
45833 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
45834 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL},
45835 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL},
45836 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
45837 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL},
45838 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction)_wrap_TreeCtrl_DeleteAllItems, METH_O, NULL},
45839 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL},
3d6c9062
RD
45840 { (char *)"TreeCtrl_ExpandAllChildren", (PyCFunction) _wrap_TreeCtrl_ExpandAllChildren, METH_VARARGS | METH_KEYWORDS, NULL},
45841 { (char *)"TreeCtrl_ExpandAll", (PyCFunction)_wrap_TreeCtrl_ExpandAll, METH_O, NULL},
1bd55598
RD
45842 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
45843 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL},
45844 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL},
45845 { (char *)"TreeCtrl_Unselect", (PyCFunction)_wrap_TreeCtrl_Unselect, METH_O, NULL},
45846 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL},
45847 { (char *)"TreeCtrl_UnselectAll", (PyCFunction)_wrap_TreeCtrl_UnselectAll, METH_O, NULL},
45848 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL},
45849 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45850 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45851 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL},
45852 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45853 { (char *)"TreeCtrl_GetEditControl", (PyCFunction)_wrap_TreeCtrl_GetEditControl, METH_O, NULL},
45854 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL},
45855 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
45856 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL},
45857 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
2131d850
RD
45858 { (char *)"TreeCtrl_SetQuickBestSize", (PyCFunction) _wrap_TreeCtrl_SetQuickBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
45859 { (char *)"TreeCtrl_GetQuickBestSize", (PyCFunction)_wrap_TreeCtrl_GetQuickBestSize, METH_O, NULL},
1bd55598
RD
45860 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL},
45861 { (char *)"TreeCtrl_swiginit", TreeCtrl_swiginit, METH_VARARGS, NULL},
45862 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45863 { (char *)"new_PreGenericDirCtrl", (PyCFunction)_wrap_new_PreGenericDirCtrl, METH_NOARGS, NULL},
45864 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45865 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c 45866 { (char *)"GenericDirCtrl_CollapsePath", (PyCFunction) _wrap_GenericDirCtrl_CollapsePath, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
45867 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction)_wrap_GenericDirCtrl_GetDefaultPath, METH_O, NULL},
45868 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL},
45869 { (char *)"GenericDirCtrl_GetPath", (PyCFunction)_wrap_GenericDirCtrl_GetPath, METH_O, NULL},
45870 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction)_wrap_GenericDirCtrl_GetFilePath, METH_O, NULL},
45871 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
45872 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL},
45873 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction)_wrap_GenericDirCtrl_GetShowHidden, METH_O, NULL},
45874 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction)_wrap_GenericDirCtrl_GetFilter, METH_O, NULL},
45875 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL},
45876 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction)_wrap_GenericDirCtrl_GetFilterIndex, METH_O, NULL},
45877 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL},
45878 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction)_wrap_GenericDirCtrl_GetRootId, METH_O, NULL},
45879 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetTreeCtrl, METH_O, NULL},
45880 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetFilterListCtrl, METH_O, NULL},
45881 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL},
45882 { (char *)"GenericDirCtrl_DoResize", (PyCFunction)_wrap_GenericDirCtrl_DoResize, METH_O, NULL},
45883 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction)_wrap_GenericDirCtrl_ReCreateTree, METH_O, NULL},
45884 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL},
45885 { (char *)"GenericDirCtrl_swiginit", GenericDirCtrl_swiginit, METH_VARARGS, NULL},
45886 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45887 { (char *)"new_PreDirFilterListCtrl", (PyCFunction)_wrap_new_PreDirFilterListCtrl, METH_NOARGS, NULL},
45888 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45889 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL},
45890 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL},
45891 { (char *)"DirFilterListCtrl_swiginit", DirFilterListCtrl_swiginit, METH_VARARGS, NULL},
45892 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL},
45893 { (char *)"new_PrePyControl", (PyCFunction)_wrap_new_PrePyControl, METH_NOARGS, NULL},
45894 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
45895 { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
45896 { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL},
45897 { (char *)"PyControl_DoMoveWindow", (PyCFunction) _wrap_PyControl_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL},
45898 { (char *)"PyControl_DoSetSize", (PyCFunction) _wrap_PyControl_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL},
45899 { (char *)"PyControl_DoSetClientSize", (PyCFunction) _wrap_PyControl_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL},
45900 { (char *)"PyControl_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL},
45901 { (char *)"PyControl_DoGetSize", (PyCFunction)_wrap_PyControl_DoGetSize, METH_O, NULL},
45902 { (char *)"PyControl_DoGetClientSize", (PyCFunction)_wrap_PyControl_DoGetClientSize, METH_O, NULL},
45903 { (char *)"PyControl_DoGetPosition", (PyCFunction)_wrap_PyControl_DoGetPosition, METH_O, NULL},
45904 { (char *)"PyControl_DoGetVirtualSize", (PyCFunction)_wrap_PyControl_DoGetVirtualSize, METH_O, NULL},
45905 { (char *)"PyControl_DoGetBestSize", (PyCFunction)_wrap_PyControl_DoGetBestSize, METH_O, NULL},
45906 { (char *)"PyControl_GetDefaultAttributes", (PyCFunction)_wrap_PyControl_GetDefaultAttributes, METH_O, NULL},
45907 { (char *)"PyControl_OnInternalIdle", (PyCFunction)_wrap_PyControl_OnInternalIdle, METH_O, NULL},
45908 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL},
45909 { (char *)"PyControl_swiginit", PyControl_swiginit, METH_VARARGS, NULL},
45910 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45911 { (char *)"HelpEvent_GetPosition", (PyCFunction)_wrap_HelpEvent_GetPosition, METH_O, NULL},
45912 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45913 { (char *)"HelpEvent_GetLink", (PyCFunction)_wrap_HelpEvent_GetLink, METH_O, NULL},
45914 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL},
45915 { (char *)"HelpEvent_GetTarget", (PyCFunction)_wrap_HelpEvent_GetTarget, METH_O, NULL},
45916 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c
RD
45917 { (char *)"HelpEvent_GetOrigin", (PyCFunction)_wrap_HelpEvent_GetOrigin, METH_O, NULL},
45918 { (char *)"HelpEvent_SetOrigin", (PyCFunction) _wrap_HelpEvent_SetOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
45919 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL},
45920 { (char *)"HelpEvent_swiginit", HelpEvent_swiginit, METH_VARARGS, NULL},
45921 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45922 { (char *)"delete_ContextHelp", (PyCFunction)_wrap_delete_ContextHelp, METH_O, NULL},
45923 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45924 { (char *)"ContextHelp_EndContextHelp", (PyCFunction)_wrap_ContextHelp_EndContextHelp, METH_O, NULL},
45925 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL},
45926 { (char *)"ContextHelp_swiginit", ContextHelp_swiginit, METH_VARARGS, NULL},
45927 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL},
45928 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL},
45929 { (char *)"ContextHelpButton_swiginit", ContextHelpButton_swiginit, METH_VARARGS, NULL},
f52cbe90 45930 { (char *)"delete_HelpProvider", (PyCFunction)_wrap_delete_HelpProvider, METH_O, NULL},
1bd55598
RD
45931 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL},
45932 { (char *)"HelpProvider_Get", (PyCFunction)_wrap_HelpProvider_Get, METH_NOARGS, NULL},
45933 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45934 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3 45935 { (char *)"HelpProvider_ShowHelpAtPoint", (PyCFunction) _wrap_HelpProvider_ShowHelpAtPoint, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
45936 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45937 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL},
45938 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45939 { (char *)"HelpProvider_Destroy", (PyCFunction)_wrap_HelpProvider_Destroy, METH_O, NULL},
45940 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL},
45941 { (char *)"new_SimpleHelpProvider", (PyCFunction)_wrap_new_SimpleHelpProvider, METH_NOARGS, NULL},
45942 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL},
45943 { (char *)"SimpleHelpProvider_swiginit", SimpleHelpProvider_swiginit, METH_VARARGS, NULL},
45944 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL},
45945 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL},
45946 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL},
45947 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL},
45948 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL},
45949 { (char *)"delete_DragImage", (PyCFunction)_wrap_delete_DragImage, METH_O, NULL},
45950 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45951 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL},
45952 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL},
45953 { (char *)"DragImage_EndDrag", (PyCFunction)_wrap_DragImage_EndDrag, METH_O, NULL},
45954 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL},
45955 { (char *)"DragImage_Show", (PyCFunction)_wrap_DragImage_Show, METH_O, NULL},
45956 { (char *)"DragImage_Hide", (PyCFunction)_wrap_DragImage_Hide, METH_O, NULL},
45957 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL},
45958 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
45959 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL},
45960 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
45961 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL},
45962 { (char *)"DragImage_swiginit", DragImage_swiginit, METH_VARARGS, NULL},
45963 { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45964 { (char *)"new_PreDatePickerCtrl", (PyCFunction)_wrap_new_PreDatePickerCtrl, METH_NOARGS, NULL},
45965 { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45966 { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45967 { (char *)"DatePickerCtrl_GetValue", (PyCFunction)_wrap_DatePickerCtrl_GetValue, METH_O, NULL},
45968 { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45969 { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction)_wrap_DatePickerCtrl_GetLowerLimit, METH_O, NULL},
45970 { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction)_wrap_DatePickerCtrl_GetUpperLimit, METH_O, NULL},
45971 { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL},
45972 { (char *)"DatePickerCtrl_swiginit", DatePickerCtrl_swiginit, METH_VARARGS, NULL},
704eda0c
RD
45973 { (char *)"new_HyperlinkCtrl", (PyCFunction) _wrap_new_HyperlinkCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45974 { (char *)"new_PreHyperlinkCtrl", (PyCFunction)_wrap_new_PreHyperlinkCtrl, METH_NOARGS, NULL},
45975 { (char *)"HyperlinkCtrl_Create", (PyCFunction) _wrap_HyperlinkCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45976 { (char *)"HyperlinkCtrl_GetHoverColour", (PyCFunction)_wrap_HyperlinkCtrl_GetHoverColour, METH_O, NULL},
45977 { (char *)"HyperlinkCtrl_SetHoverColour", (PyCFunction) _wrap_HyperlinkCtrl_SetHoverColour, METH_VARARGS | METH_KEYWORDS, NULL},
45978 { (char *)"HyperlinkCtrl_GetNormalColour", (PyCFunction)_wrap_HyperlinkCtrl_GetNormalColour, METH_O, NULL},
45979 { (char *)"HyperlinkCtrl_SetNormalColour", (PyCFunction) _wrap_HyperlinkCtrl_SetNormalColour, METH_VARARGS | METH_KEYWORDS, NULL},
45980 { (char *)"HyperlinkCtrl_GetVisitedColour", (PyCFunction)_wrap_HyperlinkCtrl_GetVisitedColour, METH_O, NULL},
45981 { (char *)"HyperlinkCtrl_SetVisitedColour", (PyCFunction) _wrap_HyperlinkCtrl_SetVisitedColour, METH_VARARGS | METH_KEYWORDS, NULL},
45982 { (char *)"HyperlinkCtrl_GetURL", (PyCFunction)_wrap_HyperlinkCtrl_GetURL, METH_O, NULL},
45983 { (char *)"HyperlinkCtrl_SetURL", (PyCFunction) _wrap_HyperlinkCtrl_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
45984 { (char *)"HyperlinkCtrl_SetVisited", (PyCFunction) _wrap_HyperlinkCtrl_SetVisited, METH_VARARGS | METH_KEYWORDS, NULL},
45985 { (char *)"HyperlinkCtrl_GetVisited", (PyCFunction)_wrap_HyperlinkCtrl_GetVisited, METH_O, NULL},
45986 { (char *)"HyperlinkCtrl_swigregister", HyperlinkCtrl_swigregister, METH_VARARGS, NULL},
45987 { (char *)"HyperlinkCtrl_swiginit", HyperlinkCtrl_swiginit, METH_VARARGS, NULL},
45988 { (char *)"new_HyperlinkEvent", (PyCFunction) _wrap_new_HyperlinkEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45989 { (char *)"HyperlinkEvent_GetURL", (PyCFunction)_wrap_HyperlinkEvent_GetURL, METH_O, NULL},
45990 { (char *)"HyperlinkEvent_SetURL", (PyCFunction) _wrap_HyperlinkEvent_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
45991 { (char *)"HyperlinkEvent_swigregister", HyperlinkEvent_swigregister, METH_VARARGS, NULL},
45992 { (char *)"HyperlinkEvent_swiginit", HyperlinkEvent_swiginit, METH_VARARGS, NULL},
b850e7f3
RD
45993 { (char *)"PickerBase_CreateBase", (PyCFunction) _wrap_PickerBase_CreateBase, METH_VARARGS | METH_KEYWORDS, NULL},
45994 { (char *)"PickerBase_SetInternalMargin", (PyCFunction) _wrap_PickerBase_SetInternalMargin, METH_VARARGS | METH_KEYWORDS, NULL},
45995 { (char *)"PickerBase_GetInternalMargin", (PyCFunction)_wrap_PickerBase_GetInternalMargin, METH_O, NULL},
45996 { (char *)"PickerBase_SetTextCtrlProportion", (PyCFunction) _wrap_PickerBase_SetTextCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
45997 { (char *)"PickerBase_GetTextCtrlProportion", (PyCFunction)_wrap_PickerBase_GetTextCtrlProportion, METH_O, NULL},
b02396e8
RD
45998 { (char *)"PickerBase_IsTextCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsTextCtrlGrowable, METH_O, NULL},
45999 { (char *)"PickerBase_SetTextCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetTextCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
46000 { (char *)"PickerBase_IsPickerCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsPickerCtrlGrowable, METH_O, NULL},
46001 { (char *)"PickerBase_SetPickerCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetPickerCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3
RD
46002 { (char *)"PickerBase_HasTextCtrl", (PyCFunction)_wrap_PickerBase_HasTextCtrl, METH_O, NULL},
46003 { (char *)"PickerBase_GetTextCtrl", (PyCFunction)_wrap_PickerBase_GetTextCtrl, METH_O, NULL},
46004 { (char *)"PickerBase_GetPickerCtrl", (PyCFunction)_wrap_PickerBase_GetPickerCtrl, METH_O, NULL},
46005 { (char *)"PickerBase_swigregister", PickerBase_swigregister, METH_VARARGS, NULL},
46006 { (char *)"new_ColourPickerCtrl", (PyCFunction) _wrap_new_ColourPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46007 { (char *)"new_PreColourPickerCtrl", (PyCFunction)_wrap_new_PreColourPickerCtrl, METH_NOARGS, NULL},
46008 { (char *)"ColourPickerCtrl_Create", (PyCFunction) _wrap_ColourPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46009 { (char *)"ColourPickerCtrl_GetColour", (PyCFunction)_wrap_ColourPickerCtrl_GetColour, METH_O, NULL},
46010 { (char *)"ColourPickerCtrl_SetColour", (PyCFunction) _wrap_ColourPickerCtrl_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
46011 { (char *)"ColourPickerCtrl_swigregister", ColourPickerCtrl_swigregister, METH_VARARGS, NULL},
46012 { (char *)"ColourPickerCtrl_swiginit", ColourPickerCtrl_swiginit, METH_VARARGS, NULL},
46013 { (char *)"new_ColourPickerEvent", (PyCFunction) _wrap_new_ColourPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46014 { (char *)"ColourPickerEvent_GetColour", (PyCFunction)_wrap_ColourPickerEvent_GetColour, METH_O, NULL},
46015 { (char *)"ColourPickerEvent_SetColour", (PyCFunction) _wrap_ColourPickerEvent_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
46016 { (char *)"ColourPickerEvent_swigregister", ColourPickerEvent_swigregister, METH_VARARGS, NULL},
46017 { (char *)"ColourPickerEvent_swiginit", ColourPickerEvent_swiginit, METH_VARARGS, NULL},
46018 { (char *)"new_FilePickerCtrl", (PyCFunction) _wrap_new_FilePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46019 { (char *)"new_PreFilePickerCtrl", (PyCFunction)_wrap_new_PreFilePickerCtrl, METH_NOARGS, NULL},
46020 { (char *)"FilePickerCtrl_Create", (PyCFunction) _wrap_FilePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46021 { (char *)"FilePickerCtrl_GetPath", (PyCFunction)_wrap_FilePickerCtrl_GetPath, METH_O, NULL},
46022 { (char *)"FilePickerCtrl_SetPath", (PyCFunction) _wrap_FilePickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
b02396e8
RD
46023 { (char *)"FilePickerCtrl_CheckPath", (PyCFunction) _wrap_FilePickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
46024 { (char *)"FilePickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_FilePickerCtrl_GetTextCtrlValue, METH_O, NULL},
b850e7f3
RD
46025 { (char *)"FilePickerCtrl_swigregister", FilePickerCtrl_swigregister, METH_VARARGS, NULL},
46026 { (char *)"FilePickerCtrl_swiginit", FilePickerCtrl_swiginit, METH_VARARGS, NULL},
46027 { (char *)"new_DirPickerCtrl", (PyCFunction) _wrap_new_DirPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46028 { (char *)"new_PreDirPickerCtrl", (PyCFunction)_wrap_new_PreDirPickerCtrl, METH_NOARGS, NULL},
46029 { (char *)"DirPickerCtrl_Create", (PyCFunction) _wrap_DirPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46030 { (char *)"DirPickerCtrl_GetPath", (PyCFunction)_wrap_DirPickerCtrl_GetPath, METH_O, NULL},
46031 { (char *)"DirPickerCtrl_SetPath", (PyCFunction) _wrap_DirPickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
b02396e8
RD
46032 { (char *)"DirPickerCtrl_CheckPath", (PyCFunction) _wrap_DirPickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
46033 { (char *)"DirPickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_DirPickerCtrl_GetTextCtrlValue, METH_O, NULL},
b850e7f3
RD
46034 { (char *)"DirPickerCtrl_swigregister", DirPickerCtrl_swigregister, METH_VARARGS, NULL},
46035 { (char *)"DirPickerCtrl_swiginit", DirPickerCtrl_swiginit, METH_VARARGS, NULL},
46036 { (char *)"new_FileDirPickerEvent", (PyCFunction) _wrap_new_FileDirPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46037 { (char *)"FileDirPickerEvent_GetPath", (PyCFunction)_wrap_FileDirPickerEvent_GetPath, METH_O, NULL},
46038 { (char *)"FileDirPickerEvent_SetPath", (PyCFunction) _wrap_FileDirPickerEvent_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
46039 { (char *)"FileDirPickerEvent_swigregister", FileDirPickerEvent_swigregister, METH_VARARGS, NULL},
46040 { (char *)"FileDirPickerEvent_swiginit", FileDirPickerEvent_swiginit, METH_VARARGS, NULL},
46041 { (char *)"new_FontPickerCtrl", (PyCFunction) _wrap_new_FontPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46042 { (char *)"new_PreFontPickerCtrl", (PyCFunction)_wrap_new_PreFontPickerCtrl, METH_NOARGS, NULL},
46043 { (char *)"FontPickerCtrl_Create", (PyCFunction) _wrap_FontPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46044 { (char *)"FontPickerCtrl_GetSelectedFont", (PyCFunction)_wrap_FontPickerCtrl_GetSelectedFont, METH_O, NULL},
46045 { (char *)"FontPickerCtrl_SetSelectedFont", (PyCFunction) _wrap_FontPickerCtrl_SetSelectedFont, METH_VARARGS | METH_KEYWORDS, NULL},
46046 { (char *)"FontPickerCtrl_SetMaxPointSize", (PyCFunction) _wrap_FontPickerCtrl_SetMaxPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
46047 { (char *)"FontPickerCtrl_GetMaxPointSize", (PyCFunction)_wrap_FontPickerCtrl_GetMaxPointSize, METH_O, NULL},
46048 { (char *)"FontPickerCtrl_swigregister", FontPickerCtrl_swigregister, METH_VARARGS, NULL},
46049 { (char *)"FontPickerCtrl_swiginit", FontPickerCtrl_swiginit, METH_VARARGS, NULL},
46050 { (char *)"new_FontPickerEvent", (PyCFunction) _wrap_new_FontPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46051 { (char *)"FontPickerEvent_GetFont", (PyCFunction)_wrap_FontPickerEvent_GetFont, METH_O, NULL},
46052 { (char *)"FontPickerEvent_SetFont", (PyCFunction) _wrap_FontPickerEvent_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
46053 { (char *)"FontPickerEvent_swigregister", FontPickerEvent_swigregister, METH_VARARGS, NULL},
46054 { (char *)"FontPickerEvent_swiginit", FontPickerEvent_swiginit, METH_VARARGS, NULL},
1bd55598
RD
46055 { NULL, NULL, 0, NULL }
46056};
46057
46058
46059/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
46060
46061static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
46062 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
46063}
46064static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
46065 return (void *)((wxEvent *) ((wxMenuEvent *) x));
46066}
46067static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
46068 return (void *)((wxEvent *) ((wxCloseEvent *) x));
46069}
46070static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
46071 return (void *)((wxEvent *) ((wxMouseEvent *) x));
46072}
46073static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
46074 return (void *)((wxEvent *) ((wxEraseEvent *) x));
46075}
46076static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) {
46077 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
46078}
46079static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
46080 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
46081}
46082static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
46083 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
46084}
b850e7f3
RD
46085static void *_p_wxColourPickerEventTo_p_wxEvent(void *x) {
46086 return (void *)((wxEvent *) (wxCommandEvent *) ((wxColourPickerEvent *) x));
46087}
46088static void *_p_wxFileDirPickerEventTo_p_wxEvent(void *x) {
46089 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFileDirPickerEvent *) x));
46090}
46091static void *_p_wxFontPickerEventTo_p_wxEvent(void *x) {
46092 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFontPickerEvent *) x));
46093}
1bd55598
RD
46094static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
46095 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
46096}
46097static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
46098 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
46099}
46100static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
46101 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
46102}
1bd55598
RD
46103static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
46104 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
46105}
2131d850
RD
46106static void *_p_wxPyEventTo_p_wxEvent(void *x) {
46107 return (void *)((wxEvent *) ((wxPyEvent *) x));
46108}
1bd55598
RD
46109static void *_p_wxListEventTo_p_wxEvent(void *x) {
46110 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
46111}
46112static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
46113 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
46114}
46115static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
46116 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
46117}
46118static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) {
46119 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
46120}
46121static void *_p_wxTreebookEventTo_p_wxEvent(void *x) {
46122 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
46123}
46124static void *_p_wxToolbookEventTo_p_wxEvent(void *x) {
46125 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
46126}
46127static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
46128 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
46129}
46130static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
46131 return (void *)((wxEvent *) ((wxIdleEvent *) x));
46132}
46133static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
46134 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
46135}
46136static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
46137 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
46138}
46139static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
46140 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
46141}
46142static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
46143 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
46144}
46145static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
46146 return (void *)((wxEvent *) ((wxActivateEvent *) x));
46147}
46148static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
46149 return (void *)((wxEvent *) ((wxSizeEvent *) x));
46150}
46151static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
46152 return (void *)((wxEvent *) ((wxMoveEvent *) x));
46153}
46154static void *_p_wxDateEventTo_p_wxEvent(void *x) {
46155 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
46156}
2131d850
RD
46157static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) {
46158 return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x));
46159}
1bd55598
RD
46160static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
46161 return (void *)((wxEvent *) ((wxPaintEvent *) x));
46162}
46163static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
46164 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
46165}
46166static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
46167 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
46168}
46169static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
46170 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
46171}
46172static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
46173 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
46174}
46175static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
46176 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
46177}
46178static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
46179 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
46180}
704eda0c
RD
46181static void *_p_wxHyperlinkEventTo_p_wxEvent(void *x) {
46182 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHyperlinkEvent *) x));
46183}
1bd55598
RD
46184static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
46185 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
46186}
46187static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
46188 return (void *)((wxEvent *) ((wxFocusEvent *) x));
46189}
46190static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
46191 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
46192}
46193static void *_p_wxShowEventTo_p_wxEvent(void *x) {
46194 return (void *)((wxEvent *) ((wxShowEvent *) x));
46195}
46196static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
46197 return (void *)((wxEvent *) ((wxCommandEvent *) x));
46198}
46199static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
46200 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
46201}
46202static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
46203 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
46204}
46205static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
46206 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
46207}
46208static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
46209 return (void *)((wxEvent *) ((wxKeyEvent *) x));
46210}
46211static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
46212 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
46213}
46214static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
46215 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
46216}
b850e7f3
RD
46217static void *_p_wxColourPickerCtrlTo_p_wxPickerBase(void *x) {
46218 return (void *)((wxPickerBase *) ((wxColourPickerCtrl *) x));
46219}
46220static void *_p_wxFilePickerCtrlTo_p_wxPickerBase(void *x) {
46221 return (void *)((wxPickerBase *) ((wxFilePickerCtrl *) x));
46222}
46223static void *_p_wxDirPickerCtrlTo_p_wxPickerBase(void *x) {
46224 return (void *)((wxPickerBase *) ((wxDirPickerCtrl *) x));
46225}
46226static void *_p_wxFontPickerCtrlTo_p_wxPickerBase(void *x) {
46227 return (void *)((wxPickerBase *) ((wxFontPickerCtrl *) x));
46228}
1bd55598
RD
46229static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
46230 return (void *)((wxItemContainer *) ((wxComboBox *) x));
46231}
46232static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
46233 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46234}
46235static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
46236 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
46237}
46238static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
46239 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
46240}
46241static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
46242 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
46243}
46244static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
46245 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46246}
46247static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
46248 return (void *)((wxPyListCtrl *) ((wxListView *) x));
46249}
46250static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) {
46251 return (void *)((wxControl *) ((wxBookCtrlBase *) x));
46252}
46253static void *_p_wxToolBarTo_p_wxControl(void *x) {
46254 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
46255}
b850e7f3
RD
46256static void *_p_wxPickerBaseTo_p_wxControl(void *x) {
46257 return (void *)((wxControl *) ((wxPickerBase *) x));
46258}
1bd55598
RD
46259static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
46260 return (void *)((wxControl *) ((wxToggleButton *) x));
46261}
46262static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
46263 return (void *)((wxControl *) ((wxRadioButton *) x));
46264}
46265static void *_p_wxToolbookTo_p_wxControl(void *x) {
46266 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxToolbook *) x));
46267}
46268static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
46269 return (void *)((wxControl *) ((wxToolBarBase *) x));
46270}
46271static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
46272 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46273}
46274static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
46275 return (void *)((wxControl *) ((wxPyListCtrl *) x));
46276}
46277static void *_p_wxComboBoxTo_p_wxControl(void *x) {
46278 return (void *)((wxControl *) ((wxComboBox *) x));
46279}
46280static void *_p_wxPyControlTo_p_wxControl(void *x) {
46281 return (void *)((wxControl *) ((wxPyControl *) x));
46282}
46283static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
46284 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
46285}
46286static void *_p_wxScrollBarTo_p_wxControl(void *x) {
46287 return (void *)((wxControl *) ((wxScrollBar *) x));
46288}
46289static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
46290 return (void *)((wxControl *) ((wxControlWithItems *) x));
46291}
46292static void *_p_wxGaugeTo_p_wxControl(void *x) {
46293 return (void *)((wxControl *) ((wxGauge *) x));
46294}
46295static void *_p_wxStaticLineTo_p_wxControl(void *x) {
46296 return (void *)((wxControl *) ((wxStaticLine *) x));
46297}
46298static void *_p_wxChoicebookTo_p_wxControl(void *x) {
46299 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x));
46300}
46301static void *_p_wxListbookTo_p_wxControl(void *x) {
46302 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x));
46303}
704eda0c
RD
46304static void *_p_wxHyperlinkCtrlTo_p_wxControl(void *x) {
46305 return (void *)((wxControl *) ((wxHyperlinkCtrl *) x));
46306}
1bd55598
RD
46307static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
46308 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
46309}
46310static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
46311 return (void *)((wxControl *) ((wxCheckBox *) x));
46312}
46313static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
46314 return (void *)((wxControl *) ((wxRadioBox *) x));
46315}
46316static void *_p_wxChoiceTo_p_wxControl(void *x) {
46317 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
46318}
46319static void *_p_wxListBoxTo_p_wxControl(void *x) {
46320 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
46321}
46322static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
46323 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46324}
46325static void *_p_wxListViewTo_p_wxControl(void *x) {
46326 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
46327}
46328static void *_p_wxNotebookTo_p_wxControl(void *x) {
46329 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x));
46330}
46331static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
46332 return (void *)((wxControl *) ((wxStaticBitmap *) x));
46333}
46334static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
46335 return (void *)((wxControl *) ((wxSpinCtrl *) x));
46336}
46337static void *_p_wxStaticTextTo_p_wxControl(void *x) {
46338 return (void *)((wxControl *) ((wxStaticText *) x));
46339}
46340static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
46341 return (void *)((wxControl *) ((wxStaticBox *) x));
46342}
46343static void *_p_wxSliderTo_p_wxControl(void *x) {
46344 return (void *)((wxControl *) ((wxSlider *) x));
46345}
46346static void *_p_wxTreebookTo_p_wxControl(void *x) {
46347 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxTreebook *) x));
46348}
46349static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
46350 return (void *)((wxControl *) ((wxSpinButton *) x));
46351}
46352static void *_p_wxButtonTo_p_wxControl(void *x) {
46353 return (void *)((wxControl *) ((wxButton *) x));
46354}
46355static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
46356 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
46357}
46358static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
46359 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
46360}
46361static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) {
46362 return (void *)((wxControl *) ((wxDatePickerCtrl *) x));
46363}
b850e7f3
RD
46364static void *_p_wxColourPickerCtrlTo_p_wxControl(void *x) {
46365 return (void *)((wxControl *) (wxPickerBase *) ((wxColourPickerCtrl *) x));
46366}
46367static void *_p_wxFilePickerCtrlTo_p_wxControl(void *x) {
46368 return (void *)((wxControl *) (wxPickerBase *) ((wxFilePickerCtrl *) x));
46369}
46370static void *_p_wxDirPickerCtrlTo_p_wxControl(void *x) {
46371 return (void *)((wxControl *) (wxPickerBase *) ((wxDirPickerCtrl *) x));
46372}
46373static void *_p_wxFontPickerCtrlTo_p_wxControl(void *x) {
46374 return (void *)((wxControl *) (wxPickerBase *) ((wxFontPickerCtrl *) x));
46375}
1bd55598
RD
46376static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
46377 return (void *)((wxControl *) ((wxTextCtrl *) x));
46378}
46379static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
46380 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
46381}
46382static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
46383 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
46384}
46385static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) {
46386 return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
46387}
46388static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
46389 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
46390}
46391static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
46392 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
46393}
46394static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
46395 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
46396}
46397static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
46398 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
46399}
46400static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
46401 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
46402}
46403static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) {
46404 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
46405}
46406static void *_p_wxTreebookEventTo_p_wxNotifyEvent(void *x) {
46407 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
46408}
46409static void *_p_wxToolbookEventTo_p_wxNotifyEvent(void *x) {
46410 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
46411}
46412static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) {
46413 return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x));
46414}
46415static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) {
46416 return (void *)((wxBookCtrlBase *) ((wxListbook *) x));
46417}
46418static void *_p_wxToolbookTo_p_wxBookCtrlBase(void *x) {
46419 return (void *)((wxBookCtrlBase *) ((wxToolbook *) x));
46420}
46421static void *_p_wxTreebookTo_p_wxBookCtrlBase(void *x) {
46422 return (void *)((wxBookCtrlBase *) ((wxTreebook *) x));
46423}
46424static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) {
46425 return (void *)((wxBookCtrlBase *) ((wxNotebook *) x));
46426}
46427static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
46428 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
46429}
46430static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) {
46431 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
46432}
46433static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
46434 return (void *)((wxEvtHandler *) ((wxValidator *) x));
46435}
46436static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
46437 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
46438}
46439static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
46440 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
46441}
b850e7f3
RD
46442static void *_p_wxPickerBaseTo_p_wxEvtHandler(void *x) {
46443 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPickerBase *) x));
46444}
1bd55598
RD
46445static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
46446 return (void *)((wxEvtHandler *) ((wxMenu *) x));
46447}
46448static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
46449 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
46450}
46451static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
46452 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
46453}
46454static void *_p_wxToolbookTo_p_wxEvtHandler(void *x) {
46455 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
46456}
46457static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
46458 return (void *)((wxEvtHandler *) ((wxWindow *) x));
46459}
46460static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
46461 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
46462}
46463static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
46464 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x));
46465}
46466static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
46467 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
46468}
46469static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
46470 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
46471}
46472static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
46473 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46474}
46475static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
46476 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
46477}
46478static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
46479 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
46480}
46481static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
46482 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
46483}
46484static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
46485 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
46486}
46487static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
46488 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
46489}
46490static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
46491 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
46492}
46493static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
46494 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
46495}
46496static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) {
46497 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
46498}
46499static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
46500 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
46501}
704eda0c
RD
46502static void *_p_wxHyperlinkCtrlTo_p_wxEvtHandler(void *x) {
46503 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
46504}
1bd55598
RD
46505static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
46506 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
46507}
46508static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
46509 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
46510}
46511static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
46512 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
46513}
46514static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
46515 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46516}
46517static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
46518 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
46519}
46520static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
46521 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
46522}
46523static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
46524 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
46525}
46526static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
46527 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
46528}
46529static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
46530 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
46531}
46532static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
46533 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
46534}
46535static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
46536 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
46537}
46538static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
46539 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
46540}
46541static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
46542 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
46543}
46544static void *_p_wxTreebookTo_p_wxEvtHandler(void *x) {
46545 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
46546}
46547static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
46548 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
46549}
46550static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
46551 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
46552}
46553static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
46554 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
46555}
46556static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
46557 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
46558}
46559static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) {
46560 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
46561}
b850e7f3
RD
46562static void *_p_wxColourPickerCtrlTo_p_wxEvtHandler(void *x) {
46563 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
46564}
46565static void *_p_wxFilePickerCtrlTo_p_wxEvtHandler(void *x) {
46566 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
46567}
46568static void *_p_wxDirPickerCtrlTo_p_wxEvtHandler(void *x) {
46569 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
46570}
46571static void *_p_wxFontPickerCtrlTo_p_wxEvtHandler(void *x) {
46572 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
46573}
1bd55598
RD
46574static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
46575 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
46576}
46577static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
46578 return (void *)((wxListBox *) ((wxCheckListBox *) x));
46579}
46580static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
46581 return (void *)((wxButton *) ((wxBitmapButton *) x));
46582}
46583static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
46584 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
46585}
46586static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
46587 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
46588}
46589static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
46590 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
46591}
46592static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
46593 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
46594}
46595static void *_p_wxToolbookTo_p_wxObject(void *x) {
46596 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
46597}
46598static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
46599 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
46600}
46601static void *_p_wxSizerItemTo_p_wxObject(void *x) {
46602 return (void *)((wxObject *) ((wxSizerItem *) x));
46603}
46604static void *_p_wxScrollEventTo_p_wxObject(void *x) {
46605 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
46606}
46607static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
46608 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
46609}
46610static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
46611 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
46612}
46613static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
46614 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
46615}
46616static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
46617 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
46618}
46619static void *_p_wxSizerTo_p_wxObject(void *x) {
46620 return (void *)((wxObject *) ((wxSizer *) x));
46621}
46622static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
46623 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
46624}
46625static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
46626 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
46627}
46628static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
46629 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
46630}
46631static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
46632 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
46633}
46634static void *_p_wxEventTo_p_wxObject(void *x) {
46635 return (void *)((wxObject *) ((wxEvent *) x));
46636}
46637static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
46638 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
46639}
46640static void *_p_wxGridSizerTo_p_wxObject(void *x) {
46641 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
46642}
46643static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
46644 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
46645}
46646static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
46647 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
46648}
b850e7f3
RD
46649static void *_p_wxPickerBaseTo_p_wxObject(void *x) {
46650 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPickerBase *) x));
46651}
1bd55598
RD
46652static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
46653 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
46654}
46655static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
46656 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46657}
2131d850
RD
46658static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
46659 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
46660}
1bd55598
RD
46661static void *_p_wxPaintEventTo_p_wxObject(void *x) {
46662 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
46663}
46664static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
46665 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
46666}
46667static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
46668 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
46669}
46670static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
46671 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
46672}
46673static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
46674 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
46675}
46676static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
46677 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
46678}
46679static void *_p_wxStaticLineTo_p_wxObject(void *x) {
46680 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
46681}
46682static void *_p_wxControlTo_p_wxObject(void *x) {
46683 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
46684}
46685static void *_p_wxPyControlTo_p_wxObject(void *x) {
46686 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
46687}
46688static void *_p_wxGaugeTo_p_wxObject(void *x) {
46689 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
46690}
46691static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
46692 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
46693}
46694static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
46695 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
46696}
46697static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
46698 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
46699}
46700static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
46701 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
46702}
b850e7f3
RD
46703static void *_p_wxColourPickerEventTo_p_wxObject(void *x) {
46704 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxColourPickerEvent *) x));
46705}
46706static void *_p_wxFileDirPickerEventTo_p_wxObject(void *x) {
46707 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFileDirPickerEvent *) x));
46708}
46709static void *_p_wxFontPickerEventTo_p_wxObject(void *x) {
46710 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFontPickerEvent *) x));
46711}
1bd55598
RD
46712static void *_p_wxChoiceTo_p_wxObject(void *x) {
46713 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
46714}
46715static void *_p_wxFSFileTo_p_wxObject(void *x) {
46716 return (void *)((wxObject *) ((wxFSFile *) x));
46717}
46718static void *_p_wxPySizerTo_p_wxObject(void *x) {
46719 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
46720}
46721static void *_p_wxTreebookTo_p_wxObject(void *x) {
46722 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
46723}
46724static void *_p_wxListViewTo_p_wxObject(void *x) {
46725 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
46726}
704eda0c
RD
46727static void *_p_wxHyperlinkEventTo_p_wxObject(void *x) {
46728 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHyperlinkEvent *) x));
46729}
1bd55598
RD
46730static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
46731 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
46732}
46733static void *_p_wxNotebookTo_p_wxObject(void *x) {
46734 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
46735}
46736static void *_p_wxPyEventTo_p_wxObject(void *x) {
46737 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
46738}
46739static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
46740 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
46741}
46742static void *_p_wxChoicebookTo_p_wxObject(void *x) {
46743 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
46744}
46745static void *_p_wxListbookTo_p_wxObject(void *x) {
46746 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
46747}
46748static void *_p_wxShowEventTo_p_wxObject(void *x) {
46749 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
46750}
46751static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
46752 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
46753}
46754static void *_p_wxSliderTo_p_wxObject(void *x) {
46755 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
46756}
46757static void *_p_wxMenuItemTo_p_wxObject(void *x) {
46758 return (void *)((wxObject *) ((wxMenuItem *) x));
46759}
46760static void *_p_wxDateEventTo_p_wxObject(void *x) {
46761 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
46762}
46763static void *_p_wxIdleEventTo_p_wxObject(void *x) {
46764 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
46765}
46766static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
46767 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
46768}
46769static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
46770 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
46771}
46772static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
46773 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
46774}
46775static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
46776 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
46777}
46778static void *_p_wxSizeEventTo_p_wxObject(void *x) {
46779 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
46780}
46781static void *_p_wxMoveEventTo_p_wxObject(void *x) {
46782 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
46783}
46784static void *_p_wxActivateEventTo_p_wxObject(void *x) {
46785 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
46786}
46787static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
46788 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
46789}
46790static void *_p_wxContextHelpTo_p_wxObject(void *x) {
46791 return (void *)((wxObject *) ((wxContextHelp *) x));
46792}
46793static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) {
46794 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
46795}
46796static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
46797 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
46798}
46799static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
46800 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
46801}
46802static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
46803 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
46804}
46805static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
46806 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
46807}
46808static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
46809 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
46810}
46811static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
46812 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
46813}
46814static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
46815 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
46816}
46817static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
46818 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
46819}
46820static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
46821 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
46822}
46823static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
46824 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
46825}
46826static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
46827 return (void *)((wxObject *) ((wxImageHandler *) x));
46828}
46829static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
46830 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
46831}
46832static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
46833 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
46834}
46835static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
46836 return (void *)((wxObject *) ((wxEvtHandler *) x));
46837}
46838static void *_p_wxListEventTo_p_wxObject(void *x) {
46839 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
46840}
46841static void *_p_wxListBoxTo_p_wxObject(void *x) {
46842 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
46843}
46844static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
46845 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46846}
46847static void *_p_wxButtonTo_p_wxObject(void *x) {
46848 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
46849}
46850static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
46851 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
46852}
46853static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
46854 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
46855}
46856static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
46857 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
46858}
46859static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
46860 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
46861}
46862static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
46863 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
46864}
46865static void *_p_wxScrollBarTo_p_wxObject(void *x) {
46866 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
46867}
46868static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
46869 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
46870}
46871static void *_p_wxComboBoxTo_p_wxObject(void *x) {
46872 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x));
46873}
46874static void *_p_wxHelpEventTo_p_wxObject(void *x) {
46875 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
46876}
46877static void *_p_wxListItemTo_p_wxObject(void *x) {
46878 return (void *)((wxObject *) ((wxListItem *) x));
46879}
46880static void *_p_wxImageTo_p_wxObject(void *x) {
46881 return (void *)((wxObject *) ((wxImage *) x));
46882}
46883static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
46884 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
46885}
46886static void *_p_wxSpinEventTo_p_wxObject(void *x) {
46887 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
46888}
46889static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
46890 return (void *)((wxObject *) ((wxGenericDragImage *) x));
46891}
46892static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
46893 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
46894}
46895static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
46896 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
46897}
46898static void *_p_wxListbookEventTo_p_wxObject(void *x) {
46899 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
46900}
46901static void *_p_wxChoicebookEventTo_p_wxObject(void *x) {
46902 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
46903}
46904static void *_p_wxTreebookEventTo_p_wxObject(void *x) {
46905 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
46906}
46907static void *_p_wxToolbookEventTo_p_wxObject(void *x) {
46908 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
46909}
46910static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
46911 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
46912}
46913static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
46914 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
46915}
46916static void *_p_wxKeyEventTo_p_wxObject(void *x) {
46917 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
46918}
46919static void *_p_wxWindowTo_p_wxObject(void *x) {
46920 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
46921}
46922static void *_p_wxMenuTo_p_wxObject(void *x) {
46923 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
46924}
46925static void *_p_wxMenuBarTo_p_wxObject(void *x) {
46926 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
46927}
46928static void *_p_wxFileSystemTo_p_wxObject(void *x) {
46929 return (void *)((wxObject *) ((wxFileSystem *) x));
46930}
46931static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
46932 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
46933}
46934static void *_p_wxMenuEventTo_p_wxObject(void *x) {
46935 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
46936}
46937static void *_p_wxPyAppTo_p_wxObject(void *x) {
46938 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
46939}
46940static void *_p_wxCloseEventTo_p_wxObject(void *x) {
46941 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
46942}
46943static void *_p_wxMouseEventTo_p_wxObject(void *x) {
46944 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
46945}
46946static void *_p_wxEraseEventTo_p_wxObject(void *x) {
46947 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
46948}
46949static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) {
46950 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
46951}
46952static void *_p_wxTreeEventTo_p_wxObject(void *x) {
46953 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
46954}
46955static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
46956 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
46957}
46958static void *_p_wxCommandEventTo_p_wxObject(void *x) {
46959 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
46960}
46961static void *_p_wxStaticTextTo_p_wxObject(void *x) {
46962 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
46963}
46964static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
46965 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
46966}
46967static void *_p_wxFocusEventTo_p_wxObject(void *x) {
46968 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
46969}
46970static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
46971 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
46972}
46973static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) {
46974 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
46975}
b850e7f3
RD
46976static void *_p_wxColourPickerCtrlTo_p_wxObject(void *x) {
46977 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
46978}
46979static void *_p_wxFilePickerCtrlTo_p_wxObject(void *x) {
46980 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
46981}
46982static void *_p_wxDirPickerCtrlTo_p_wxObject(void *x) {
46983 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
46984}
46985static void *_p_wxFontPickerCtrlTo_p_wxObject(void *x) {
46986 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
46987}
1bd55598
RD
46988static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
46989 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
46990}
704eda0c
RD
46991static void *_p_wxHyperlinkCtrlTo_p_wxObject(void *x) {
46992 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
46993}
1bd55598
RD
46994static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
46995 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
46996}
46997static void *_p_wxToolBarTo_p_wxObject(void *x) {
46998 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
46999}
47000static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
47001 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
47002}
47003static void *_p_wxValidatorTo_p_wxObject(void *x) {
47004 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
47005}
47006static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
47007 return (void *)((wxWindow *) ((wxMenuBar *) x));
47008}
47009static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) {
47010 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x));
47011}
47012static void *_p_wxToolBarTo_p_wxWindow(void *x) {
47013 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
47014}
b850e7f3
RD
47015static void *_p_wxPickerBaseTo_p_wxWindow(void *x) {
47016 return (void *)((wxWindow *) (wxControl *) ((wxPickerBase *) x));
47017}
1bd55598
RD
47018static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
47019 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
47020}
47021static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
47022 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
47023}
47024static void *_p_wxToolbookTo_p_wxWindow(void *x) {
47025 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
47026}
47027static void *_p_wxControlTo_p_wxWindow(void *x) {
47028 return (void *)((wxWindow *) ((wxControl *) x));
47029}
47030static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
47031 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
47032}
47033static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
47034 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
47035}
47036static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
47037 return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x));
47038}
47039static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
47040 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
47041}
47042static void *_p_wxPyControlTo_p_wxWindow(void *x) {
47043 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
47044}
47045static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
47046 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
47047}
47048static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
47049 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
47050}
47051static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
47052 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
47053}
47054static void *_p_wxGaugeTo_p_wxWindow(void *x) {
47055 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
47056}
47057static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
47058 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
47059}
47060static void *_p_wxChoicebookTo_p_wxWindow(void *x) {
47061 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
47062}
47063static void *_p_wxListbookTo_p_wxWindow(void *x) {
47064 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
47065}
704eda0c
RD
47066static void *_p_wxHyperlinkCtrlTo_p_wxWindow(void *x) {
47067 return (void *)((wxWindow *) (wxControl *) ((wxHyperlinkCtrl *) x));
47068}
1bd55598
RD
47069static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
47070 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
47071}
47072static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
47073 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
47074}
47075static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
47076 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
47077}
47078static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
47079 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
47080}
47081static void *_p_wxChoiceTo_p_wxWindow(void *x) {
47082 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
47083}
47084static void *_p_wxListBoxTo_p_wxWindow(void *x) {
47085 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
47086}
47087static void *_p_wxListViewTo_p_wxWindow(void *x) {
47088 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
47089}
47090static void *_p_wxNotebookTo_p_wxWindow(void *x) {
47091 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
47092}
47093static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
47094 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
47095}
47096static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
47097 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
47098}
47099static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
47100 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
47101}
47102static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
47103 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
47104}
47105static void *_p_wxSliderTo_p_wxWindow(void *x) {
47106 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
47107}
47108static void *_p_wxTreebookTo_p_wxWindow(void *x) {
47109 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
47110}
47111static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
47112 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
47113}
47114static void *_p_wxButtonTo_p_wxWindow(void *x) {
47115 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
47116}
47117static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
47118 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
47119}
47120static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
47121 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
47122}
47123static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) {
47124 return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x));
47125}
b850e7f3
RD
47126static void *_p_wxColourPickerCtrlTo_p_wxWindow(void *x) {
47127 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
47128}
47129static void *_p_wxFilePickerCtrlTo_p_wxWindow(void *x) {
47130 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
47131}
47132static void *_p_wxDirPickerCtrlTo_p_wxWindow(void *x) {
47133 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
47134}
47135static void *_p_wxFontPickerCtrlTo_p_wxWindow(void *x) {
47136 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
47137}
1bd55598
RD
47138static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
47139 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
47140}
47141static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47142 return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47143}
47144static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47145 return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47146}
47147static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47148 return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47149}
47150static void *_p_wxTreebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47151 return (void *)((wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47152}
47153static void *_p_wxToolbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47154 return (void *)((wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47155}
47156static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
47157 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
47158}
704eda0c
RD
47159static void *_p_wxHyperlinkEventTo_p_wxCommandEvent(void *x) {
47160 return (void *)((wxCommandEvent *) ((wxHyperlinkEvent *) x));
47161}
2131d850
RD
47162static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) {
47163 return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x));
47164}
b850e7f3
RD
47165static void *_p_wxColourPickerEventTo_p_wxCommandEvent(void *x) {
47166 return (void *)((wxCommandEvent *) ((wxColourPickerEvent *) x));
47167}
47168static void *_p_wxFileDirPickerEventTo_p_wxCommandEvent(void *x) {
47169 return (void *)((wxCommandEvent *) ((wxFileDirPickerEvent *) x));
47170}
47171static void *_p_wxFontPickerEventTo_p_wxCommandEvent(void *x) {
47172 return (void *)((wxCommandEvent *) ((wxFontPickerEvent *) x));
47173}
1bd55598
RD
47174static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
47175 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
47176}
47177static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
47178 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
47179}
47180static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
47181 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
47182}
47183static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
47184 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
47185}
47186static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
47187 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
47188}
1bd55598
RD
47189static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
47190 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47191}
2131d850
RD
47192static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
47193 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47194}
1bd55598
RD
47195static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) {
47196 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47197}
47198static void *_p_wxTreebookEventTo_p_wxCommandEvent(void *x) {
47199 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47200}
47201static void *_p_wxToolbookEventTo_p_wxCommandEvent(void *x) {
47202 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47203}
47204static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
47205 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
47206}
47207static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
47208 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
47209}
47210static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
47211 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
47212}
47213static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) {
47214 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
47215}
47216static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
47217 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
47218}
47219static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
47220 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
47221}
47222static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
47223 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
47224}
47225static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
47226 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
47227}
47228static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
47229 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
47230}
47231static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
47232 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
47233}
47234static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
47235 return (void *)((wxControlWithItems *) ((wxChoice *) x));
47236}
47237static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
47238 return (void *)((wxControlWithItems *) ((wxListBox *) x));
47239}
47240static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
47241 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
47242}
47243static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
47244 return (void *)((wxValidator *) ((wxPyValidator *) x));
47245}
47246static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0};
47247static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
47248static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
47249static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
47250static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
47251static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
47252static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
47253static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
47254static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
47255static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0};
47256static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0};
47257static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
47258static swig_type_info _swigt__p_wxBitmapButton = {"_p_wxBitmapButton", "wxBitmapButton *", 0, 0, (void*)0, 0};
47259static swig_type_info _swigt__p_wxBookCtrlBase = {"_p_wxBookCtrlBase", "wxBookCtrlBase *", 0, 0, (void*)0, 0};
47260static swig_type_info _swigt__p_wxBookCtrlBaseEvent = {"_p_wxBookCtrlBaseEvent", "wxBookCtrlBaseEvent *", 0, 0, (void*)0, 0};
47261static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, (void*)0, 0};
47262static swig_type_info _swigt__p_wxCheckBox = {"_p_wxCheckBox", "wxCheckBox *", 0, 0, (void*)0, 0};
47263static swig_type_info _swigt__p_wxCheckListBox = {"_p_wxCheckListBox", "wxCheckListBox *", 0, 0, (void*)0, 0};
47264static swig_type_info _swigt__p_wxChoice = {"_p_wxChoice", "wxChoice *", 0, 0, (void*)0, 0};
47265static swig_type_info _swigt__p_wxChoicebook = {"_p_wxChoicebook", "wxChoicebook *", 0, 0, (void*)0, 0};
47266static swig_type_info _swigt__p_wxChoicebookEvent = {"_p_wxChoicebookEvent", "wxChoicebookEvent *", 0, 0, (void*)0, 0};
47267static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
b850e7f3
RD
47268static swig_type_info _swigt__p_wxColourPickerCtrl = {"_p_wxColourPickerCtrl", "wxColourPickerCtrl *", 0, 0, (void*)0, 0};
47269static swig_type_info _swigt__p_wxColourPickerEvent = {"_p_wxColourPickerEvent", "wxColourPickerEvent *", 0, 0, (void*)0, 0};
1bd55598
RD
47270static swig_type_info _swigt__p_wxComboBox = {"_p_wxComboBox", "wxComboBox *", 0, 0, (void*)0, 0};
47271static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0};
47272static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
2131d850 47273static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
1bd55598
RD
47274static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
47275static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
47276static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
47277static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
47278static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
47279static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
47280static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
47281static swig_type_info _swigt__p_wxContextHelp = {"_p_wxContextHelp", "wxContextHelp *", 0, 0, (void*)0, 0};
47282static swig_type_info _swigt__p_wxContextHelpButton = {"_p_wxContextHelpButton", "wxContextHelpButton *", 0, 0, (void*)0, 0};
47283static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, (void*)0, 0};
47284static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, (void*)0, 0};
47285static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
47286static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
47287static swig_type_info _swigt__p_wxDatePickerCtrl = {"_p_wxDatePickerCtrl", "wxDatePickerCtrl *", 0, 0, (void*)0, 0};
47288static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0};
47289static swig_type_info _swigt__p_wxDirFilterListCtrl = {"_p_wxDirFilterListCtrl", "wxDirFilterListCtrl *", 0, 0, (void*)0, 0};
b850e7f3 47290static swig_type_info _swigt__p_wxDirPickerCtrl = {"_p_wxDirPickerCtrl", "wxDirPickerCtrl *", 0, 0, (void*)0, 0};
1bd55598
RD
47291static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
47292static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
47293static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
47294static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
47295static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
47296static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
47297static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
47298static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
47299static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
47300static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
47301static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
47302static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
47303static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
47304static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
47305static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
47306static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
47307static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
47308static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
47309static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
47310static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
47311static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
47312static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
47313static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
47314static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
47315static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
47316static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
47317static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
47318static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
47319static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
47320static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
47321static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
b850e7f3
RD
47322static swig_type_info _swigt__p_wxFileDirPickerEvent = {"_p_wxFileDirPickerEvent", "wxFileDirPickerEvent *", 0, 0, (void*)0, 0};
47323static swig_type_info _swigt__p_wxFilePickerCtrl = {"_p_wxFilePickerCtrl", "wxFilePickerCtrl *", 0, 0, (void*)0, 0};
1bd55598 47324static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
b850e7f3
RD
47325static swig_type_info _swigt__p_wxFontPickerCtrl = {"_p_wxFontPickerCtrl", "wxFontPickerCtrl *", 0, 0, (void*)0, 0};
47326static swig_type_info _swigt__p_wxFontPickerEvent = {"_p_wxFontPickerEvent", "wxFontPickerEvent *", 0, 0, (void*)0, 0};
1bd55598
RD
47327static swig_type_info _swigt__p_wxGauge = {"_p_wxGauge", "wxGauge *", 0, 0, (void*)0, 0};
47328static swig_type_info _swigt__p_wxGenericDirCtrl = {"_p_wxGenericDirCtrl", "wxGenericDirCtrl *", 0, 0, (void*)0, 0};
47329static swig_type_info _swigt__p_wxGenericDragImage = {"_p_wxGenericDragImage", "wxGenericDragImage *", 0, 0, (void*)0, 0};
47330static swig_type_info _swigt__p_wxHelpEvent = {"_p_wxHelpEvent", "wxHelpEvent *", 0, 0, (void*)0, 0};
47331static swig_type_info _swigt__p_wxHelpProvider = {"_p_wxHelpProvider", "wxHelpProvider *", 0, 0, (void*)0, 0};
704eda0c
RD
47332static swig_type_info _swigt__p_wxHyperlinkCtrl = {"_p_wxHyperlinkCtrl", "wxHyperlinkCtrl *", 0, 0, (void*)0, 0};
47333static swig_type_info _swigt__p_wxHyperlinkEvent = {"_p_wxHyperlinkEvent", "wxHyperlinkEvent *", 0, 0, (void*)0, 0};
1bd55598
RD
47334static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
47335static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
47336static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0};
47337static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, (void*)0, 0};
47338static swig_type_info _swigt__p_wxListBox = {"_p_wxListBox", "wxListBox *", 0, 0, (void*)0, 0};
47339static swig_type_info _swigt__p_wxListEvent = {"_p_wxListEvent", "wxListEvent *", 0, 0, (void*)0, 0};
47340static swig_type_info _swigt__p_wxListItem = {"_p_wxListItem", "wxListItem *", 0, 0, (void*)0, 0};
47341static swig_type_info _swigt__p_wxListItemAttr = {"_p_wxListItemAttr", "wxListItemAttr *", 0, 0, (void*)0, 0};
47342static swig_type_info _swigt__p_wxListView = {"_p_wxListView", "wxListView *", 0, 0, (void*)0, 0};
47343static swig_type_info _swigt__p_wxListbook = {"_p_wxListbook", "wxListbook *", 0, 0, (void*)0, 0};
47344static swig_type_info _swigt__p_wxListbookEvent = {"_p_wxListbookEvent", "wxListbookEvent *", 0, 0, (void*)0, 0};
47345static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
47346static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, (void*)0, 0};
47347static swig_type_info _swigt__p_wxNotebook = {"_p_wxNotebook", "wxNotebook *", 0, 0, (void*)0, 0};
47348static swig_type_info _swigt__p_wxNotebookEvent = {"_p_wxNotebookEvent", "wxNotebookEvent *", 0, 0, (void*)0, 0};
47349static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0};
47350static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
47351static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
47352static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
47353static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
47354static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
47355static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
47356static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
47357static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
47358static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
47359static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
47360static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
47361static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
47362static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
47363static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
1bd55598
RD
47364static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
47365static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
47366static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
47367static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
47368static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
b850e7f3
RD
47369static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
47370static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
47371static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
47372static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
704eda0c 47373static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
2131d850 47374static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
1bd55598
RD
47375static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
47376static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
47377static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
47378static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
47379static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0};
47380static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
47381static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
b850e7f3 47382static swig_type_info _swigt__p_wxPickerBase = {"_p_wxPickerBase", "wxPickerBase *", 0, 0, (void*)0, 0};
1bd55598
RD
47383static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
47384static swig_type_info _swigt__p_wxPyControl = {"_p_wxPyControl", "wxPyControl *", 0, 0, (void*)0, 0};
47385static swig_type_info _swigt__p_wxPyListCtrl = {"_p_wxPyListCtrl", "wxPyListCtrl *", 0, 0, (void*)0, 0};
47386static swig_type_info _swigt__p_wxPyTreeCtrl = {"_p_wxPyTreeCtrl", "wxPyTreeCtrl *", 0, 0, (void*)0, 0};
47387static swig_type_info _swigt__p_wxPyTreeItemData = {"_p_wxPyTreeItemData", "wxPyTreeItemData *", 0, 0, (void*)0, 0};
47388static swig_type_info _swigt__p_wxRadioBox = {"_p_wxRadioBox", "wxRadioBox *", 0, 0, (void*)0, 0};
47389static swig_type_info _swigt__p_wxRadioButton = {"_p_wxRadioButton", "wxRadioButton *", 0, 0, (void*)0, 0};
47390static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
47391static swig_type_info _swigt__p_wxScrollBar = {"_p_wxScrollBar", "wxScrollBar *", 0, 0, (void*)0, 0};
47392static swig_type_info _swigt__p_wxSimpleHelpProvider = {"_p_wxSimpleHelpProvider", "wxSimpleHelpProvider *", 0, 0, (void*)0, 0};
47393static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
47394static swig_type_info _swigt__p_wxSlider = {"_p_wxSlider", "wxSlider *", 0, 0, (void*)0, 0};
47395static swig_type_info _swigt__p_wxSpinButton = {"_p_wxSpinButton", "wxSpinButton *", 0, 0, (void*)0, 0};
47396static swig_type_info _swigt__p_wxSpinCtrl = {"_p_wxSpinCtrl", "wxSpinCtrl *", 0, 0, (void*)0, 0};
47397static swig_type_info _swigt__p_wxSpinEvent = {"_p_wxSpinEvent", "wxSpinEvent *", 0, 0, (void*)0, 0};
47398static swig_type_info _swigt__p_wxStaticBitmap = {"_p_wxStaticBitmap", "wxStaticBitmap *", 0, 0, (void*)0, 0};
47399static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, (void*)0, 0};
47400static swig_type_info _swigt__p_wxStaticLine = {"_p_wxStaticLine", "wxStaticLine *", 0, 0, (void*)0, 0};
47401static swig_type_info _swigt__p_wxStaticText = {"_p_wxStaticText", "wxStaticText *", 0, 0, (void*)0, 0};
47402static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
47403static swig_type_info _swigt__p_wxTextAttr = {"_p_wxTextAttr", "wxTextAttr *", 0, 0, (void*)0, 0};
47404static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, (void*)0, 0};
47405static swig_type_info _swigt__p_wxTextUrlEvent = {"_p_wxTextUrlEvent", "wxTextUrlEvent *", 0, 0, (void*)0, 0};
47406static swig_type_info _swigt__p_wxToggleButton = {"_p_wxToggleButton", "wxToggleButton *", 0, 0, (void*)0, 0};
47407static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0};
47408static swig_type_info _swigt__p_wxToolBarBase = {"_p_wxToolBarBase", "wxToolBarBase *", 0, 0, (void*)0, 0};
47409static swig_type_info _swigt__p_wxToolBarToolBase = {"_p_wxToolBarToolBase", "wxToolBarToolBase *", 0, 0, (void*)0, 0};
47410static swig_type_info _swigt__p_wxToolbook = {"_p_wxToolbook", "wxToolbook *", 0, 0, (void*)0, 0};
47411static swig_type_info _swigt__p_wxToolbookEvent = {"_p_wxToolbookEvent", "wxToolbookEvent *", 0, 0, (void*)0, 0};
47412static swig_type_info _swigt__p_wxTreeCtrl = {"_p_wxTreeCtrl", "wxTreeCtrl *", 0, 0, (void*)0, 0};
47413static swig_type_info _swigt__p_wxTreeEvent = {"_p_wxTreeEvent", "wxTreeEvent *", 0, 0, (void*)0, 0};
47414static swig_type_info _swigt__p_wxTreeItemId = {"_p_wxTreeItemId", "wxTreeItemId *", 0, 0, (void*)0, 0};
47415static swig_type_info _swigt__p_wxTreebook = {"_p_wxTreebook", "wxTreebook *", 0, 0, (void*)0, 0};
47416static swig_type_info _swigt__p_wxTreebookEvent = {"_p_wxTreebookEvent", "wxTreebookEvent *", 0, 0, (void*)0, 0};
47417static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0};
47418static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0};
47419static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
b850e7f3 47420static swig_type_info _swigt__p_wxWindowBase = {"_p_wxWindowBase", "wxWindowBase *", 0, 0, (void*)0, 0};
1bd55598
RD
47421
47422static swig_type_info *swig_type_initial[] = {
47423 &_swigt__p_bool,
47424 &_swigt__p_char,
47425 &_swigt__p_form_ops_t,
47426 &_swigt__p_int,
47427 &_swigt__p_long,
47428 &_swigt__p_unsigned_char,
47429 &_swigt__p_unsigned_int,
47430 &_swigt__p_unsigned_long,
47431 &_swigt__p_void,
47432 &_swigt__p_wxANIHandler,
47433 &_swigt__p_wxAcceleratorTable,
47434 &_swigt__p_wxActivateEvent,
47435 &_swigt__p_wxArrayInt,
47436 &_swigt__p_wxArrayString,
47437 &_swigt__p_wxBMPHandler,
47438 &_swigt__p_wxBitmap,
47439 &_swigt__p_wxBitmapButton,
47440 &_swigt__p_wxBookCtrlBase,
47441 &_swigt__p_wxBookCtrlBaseEvent,
47442 &_swigt__p_wxBoxSizer,
47443 &_swigt__p_wxButton,
47444 &_swigt__p_wxCURHandler,
47445 &_swigt__p_wxCheckBox,
47446 &_swigt__p_wxCheckListBox,
47447 &_swigt__p_wxChildFocusEvent,
47448 &_swigt__p_wxChoice,
47449 &_swigt__p_wxChoicebook,
47450 &_swigt__p_wxChoicebookEvent,
2131d850 47451 &_swigt__p_wxClipboardTextEvent,
1bd55598
RD
47452 &_swigt__p_wxCloseEvent,
47453 &_swigt__p_wxColour,
b850e7f3
RD
47454 &_swigt__p_wxColourPickerCtrl,
47455 &_swigt__p_wxColourPickerEvent,
1bd55598
RD
47456 &_swigt__p_wxComboBox,
47457 &_swigt__p_wxCommandEvent,
47458 &_swigt__p_wxContextHelp,
47459 &_swigt__p_wxContextHelpButton,
47460 &_swigt__p_wxContextMenuEvent,
47461 &_swigt__p_wxControl,
47462 &_swigt__p_wxControlWithItems,
47463 &_swigt__p_wxCursor,
47464 &_swigt__p_wxDC,
47465 &_swigt__p_wxDateEvent,
47466 &_swigt__p_wxDatePickerCtrl,
47467 &_swigt__p_wxDateTime,
47468 &_swigt__p_wxDirFilterListCtrl,
b850e7f3 47469 &_swigt__p_wxDirPickerCtrl,
1bd55598
RD
47470 &_swigt__p_wxDisplayChangedEvent,
47471 &_swigt__p_wxDropFilesEvent,
47472 &_swigt__p_wxDuplexMode,
47473 &_swigt__p_wxEraseEvent,
47474 &_swigt__p_wxEvent,
47475 &_swigt__p_wxEvtHandler,
47476 &_swigt__p_wxFSFile,
b850e7f3
RD
47477 &_swigt__p_wxFileDirPickerEvent,
47478 &_swigt__p_wxFilePickerCtrl,
1bd55598
RD
47479 &_swigt__p_wxFileSystem,
47480 &_swigt__p_wxFlexGridSizer,
47481 &_swigt__p_wxFocusEvent,
47482 &_swigt__p_wxFont,
b850e7f3
RD
47483 &_swigt__p_wxFontPickerCtrl,
47484 &_swigt__p_wxFontPickerEvent,
1bd55598
RD
47485 &_swigt__p_wxGBSizerItem,
47486 &_swigt__p_wxGIFHandler,
47487 &_swigt__p_wxGauge,
47488 &_swigt__p_wxGenericDirCtrl,
47489 &_swigt__p_wxGenericDragImage,
47490 &_swigt__p_wxGridBagSizer,
47491 &_swigt__p_wxGridSizer,
47492 &_swigt__p_wxHelpEvent,
47493 &_swigt__p_wxHelpProvider,
704eda0c
RD
47494 &_swigt__p_wxHyperlinkCtrl,
47495 &_swigt__p_wxHyperlinkEvent,
1bd55598
RD
47496 &_swigt__p_wxICOHandler,
47497 &_swigt__p_wxIcon,
47498 &_swigt__p_wxIconizeEvent,
47499 &_swigt__p_wxIdleEvent,
47500 &_swigt__p_wxImage,
47501 &_swigt__p_wxImageHandler,
47502 &_swigt__p_wxImageList,
47503 &_swigt__p_wxIndividualLayoutConstraint,
47504 &_swigt__p_wxInitDialogEvent,
47505 &_swigt__p_wxItemContainer,
47506 &_swigt__p_wxJPEGHandler,
47507 &_swigt__p_wxKeyEvent,
47508 &_swigt__p_wxLayoutConstraints,
47509 &_swigt__p_wxListBox,
47510 &_swigt__p_wxListEvent,
47511 &_swigt__p_wxListItem,
47512 &_swigt__p_wxListItemAttr,
47513 &_swigt__p_wxListView,
47514 &_swigt__p_wxListbook,
47515 &_swigt__p_wxListbookEvent,
47516 &_swigt__p_wxMaximizeEvent,
47517 &_swigt__p_wxMemoryDC,
47518 &_swigt__p_wxMenu,
47519 &_swigt__p_wxMenuBar,
47520 &_swigt__p_wxMenuEvent,
47521 &_swigt__p_wxMenuItem,
47522 &_swigt__p_wxMouseCaptureChangedEvent,
47523 &_swigt__p_wxMouseEvent,
47524 &_swigt__p_wxMoveEvent,
47525 &_swigt__p_wxNavigationKeyEvent,
47526 &_swigt__p_wxNcPaintEvent,
47527 &_swigt__p_wxNotebook,
47528 &_swigt__p_wxNotebookEvent,
47529 &_swigt__p_wxNotifyEvent,
47530 &_swigt__p_wxObject,
47531 &_swigt__p_wxPCXHandler,
47532 &_swigt__p_wxPNGHandler,
47533 &_swigt__p_wxPNMHandler,
47534 &_swigt__p_wxPaintEvent,
47535 &_swigt__p_wxPaletteChangedEvent,
47536 &_swigt__p_wxPaperSize,
b850e7f3 47537 &_swigt__p_wxPickerBase,
1bd55598
RD
47538 &_swigt__p_wxPoint,
47539 &_swigt__p_wxPyApp,
47540 &_swigt__p_wxPyCommandEvent,
47541 &_swigt__p_wxPyControl,
47542 &_swigt__p_wxPyEvent,
47543 &_swigt__p_wxPyImageHandler,
47544 &_swigt__p_wxPyListCtrl,
47545 &_swigt__p_wxPySizer,
47546 &_swigt__p_wxPyTreeCtrl,
47547 &_swigt__p_wxPyTreeItemData,
47548 &_swigt__p_wxPyValidator,
47549 &_swigt__p_wxQueryNewPaletteEvent,
47550 &_swigt__p_wxRadioBox,
47551 &_swigt__p_wxRadioButton,
47552 &_swigt__p_wxRect,
47553 &_swigt__p_wxScrollBar,
47554 &_swigt__p_wxScrollEvent,
47555 &_swigt__p_wxScrollWinEvent,
47556 &_swigt__p_wxSetCursorEvent,
47557 &_swigt__p_wxShowEvent,
47558 &_swigt__p_wxSimpleHelpProvider,
47559 &_swigt__p_wxSize,
47560 &_swigt__p_wxSizeEvent,
47561 &_swigt__p_wxSizer,
47562 &_swigt__p_wxSizerItem,
47563 &_swigt__p_wxSlider,
47564 &_swigt__p_wxSpinButton,
47565 &_swigt__p_wxSpinCtrl,
47566 &_swigt__p_wxSpinEvent,
47567 &_swigt__p_wxStaticBitmap,
47568 &_swigt__p_wxStaticBox,
47569 &_swigt__p_wxStaticBoxSizer,
47570 &_swigt__p_wxStaticLine,
47571 &_swigt__p_wxStaticText,
47572 &_swigt__p_wxStdDialogButtonSizer,
47573 &_swigt__p_wxString,
47574 &_swigt__p_wxSysColourChangedEvent,
47575 &_swigt__p_wxTIFFHandler,
47576 &_swigt__p_wxTextAttr,
47577 &_swigt__p_wxTextCtrl,
47578 &_swigt__p_wxTextUrlEvent,
47579 &_swigt__p_wxToggleButton,
47580 &_swigt__p_wxToolBar,
47581 &_swigt__p_wxToolBarBase,
47582 &_swigt__p_wxToolBarToolBase,
47583 &_swigt__p_wxToolbook,
47584 &_swigt__p_wxToolbookEvent,
47585 &_swigt__p_wxTreeCtrl,
47586 &_swigt__p_wxTreeEvent,
47587 &_swigt__p_wxTreeItemId,
47588 &_swigt__p_wxTreebook,
47589 &_swigt__p_wxTreebookEvent,
47590 &_swigt__p_wxUpdateUIEvent,
47591 &_swigt__p_wxValidator,
47592 &_swigt__p_wxVisualAttributes,
47593 &_swigt__p_wxWindow,
b850e7f3 47594 &_swigt__p_wxWindowBase,
1bd55598
RD
47595 &_swigt__p_wxWindowCreateEvent,
47596 &_swigt__p_wxWindowDestroyEvent,
47597 &_swigt__p_wxXPMHandler,
47598};
47599
47600static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}};
47601static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
47602static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
47603static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
47604static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
47605static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
47606static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
47607static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
47608static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
47609static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}};
47610static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}};
47611static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
47612static 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}};
47613static 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}};
47614static 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}};
47615static 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}};
47616static swig_cast_info _swigc__p_wxCheckBox[] = { {&_swigt__p_wxCheckBox, 0, 0, 0},{0, 0, 0, 0}};
47617static swig_cast_info _swigc__p_wxCheckListBox[] = { {&_swigt__p_wxCheckListBox, 0, 0, 0},{0, 0, 0, 0}};
47618static 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}};
47619static swig_cast_info _swigc__p_wxChoicebook[] = { {&_swigt__p_wxChoicebook, 0, 0, 0},{0, 0, 0, 0}};
47620static swig_cast_info _swigc__p_wxChoicebookEvent[] = { {&_swigt__p_wxChoicebookEvent, 0, 0, 0},{0, 0, 0, 0}};
47621static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
47622static swig_cast_info _swigc__p_wxColourPickerCtrl[] = { {&_swigt__p_wxColourPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
47623static swig_cast_info _swigc__p_wxColourPickerEvent[] = { {&_swigt__p_wxColourPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
47624static swig_cast_info _swigc__p_wxComboBox[] = { {&_swigt__p_wxComboBox, 0, 0, 0},{0, 0, 0, 0}};
47625static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
2131d850 47626static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
47627static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
47628static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
47629static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
47630static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
47631static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
47632static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
47633static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 47634static swig_cast_info _swigc__p_wxCommandEvent[] = { {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxCommandEvent, 0, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
47635static swig_cast_info _swigc__p_wxContextHelp[] = { {&_swigt__p_wxContextHelp, 0, 0, 0},{0, 0, 0, 0}};
47636static swig_cast_info _swigc__p_wxContextHelpButton[] = { {&_swigt__p_wxContextHelpButton, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 47637static swig_cast_info _swigc__p_wxControl[] = { {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxControl, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxControl, 0, 0}, {&_swigt__p_wxControl, 0, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxControl, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxControl, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxControl, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxControl, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxControl, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxControl, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxControl, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxControl, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxControl, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
47638static 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}};
47639static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
47640static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}};
47641static swig_cast_info _swigc__p_wxDatePickerCtrl[] = { {&_swigt__p_wxDatePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
47642static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}};
47643static swig_cast_info _swigc__p_wxDirFilterListCtrl[] = { {&_swigt__p_wxDirFilterListCtrl, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 47644static swig_cast_info _swigc__p_wxDirPickerCtrl[] = { {&_swigt__p_wxDirPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
47645static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
47646static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
47647static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
47648static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
47649static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
47650static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
47651static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
47652static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
47653static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
47654static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
47655static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
47656static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
47657static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
47658static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
47659static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
47660static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
47661static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47662static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47663static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47664static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47665static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
47666static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
47667static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
47668static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
47669static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 47670static swig_cast_info _swigc__p_wxEvent[] = { {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEvent, 0, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxEvent, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
47671static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
47672static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
47673static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
47674static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
47675static swig_cast_info _swigc__p_wxEvtHandler[] = { {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxEvtHandler, 0, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxEvtHandler, 0, 0},{0, 0, 0, 0}};
47676static swig_cast_info _swigc__p_wxFileDirPickerEvent[] = { {&_swigt__p_wxFileDirPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
47677static swig_cast_info _swigc__p_wxFilePickerCtrl[] = { {&_swigt__p_wxFilePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 47678static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
47679static swig_cast_info _swigc__p_wxFontPickerCtrl[] = { {&_swigt__p_wxFontPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
47680static swig_cast_info _swigc__p_wxFontPickerEvent[] = { {&_swigt__p_wxFontPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
47681static swig_cast_info _swigc__p_wxGauge[] = { {&_swigt__p_wxGauge, 0, 0, 0},{0, 0, 0, 0}};
47682static swig_cast_info _swigc__p_wxGenericDirCtrl[] = { {&_swigt__p_wxGenericDirCtrl, 0, 0, 0},{0, 0, 0, 0}};
47683static swig_cast_info _swigc__p_wxGenericDragImage[] = { {&_swigt__p_wxGenericDragImage, 0, 0, 0},{0, 0, 0, 0}};
47684static swig_cast_info _swigc__p_wxHelpEvent[] = { {&_swigt__p_wxHelpEvent, 0, 0, 0},{0, 0, 0, 0}};
47685static 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
47686static swig_cast_info _swigc__p_wxHyperlinkCtrl[] = { {&_swigt__p_wxHyperlinkCtrl, 0, 0, 0},{0, 0, 0, 0}};
47687static swig_cast_info _swigc__p_wxHyperlinkEvent[] = { {&_swigt__p_wxHyperlinkEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
47688static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
47689static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
47690static 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}};
47691static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
47692static 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}};
47693static swig_cast_info _swigc__p_wxListEvent[] = { {&_swigt__p_wxListEvent, 0, 0, 0},{0, 0, 0, 0}};
47694static swig_cast_info _swigc__p_wxListItem[] = { {&_swigt__p_wxListItem, 0, 0, 0},{0, 0, 0, 0}};
47695static swig_cast_info _swigc__p_wxListItemAttr[] = { {&_swigt__p_wxListItemAttr, 0, 0, 0},{0, 0, 0, 0}};
47696static swig_cast_info _swigc__p_wxListView[] = { {&_swigt__p_wxListView, 0, 0, 0},{0, 0, 0, 0}};
47697static swig_cast_info _swigc__p_wxListbook[] = { {&_swigt__p_wxListbook, 0, 0, 0},{0, 0, 0, 0}};
47698static swig_cast_info _swigc__p_wxListbookEvent[] = { {&_swigt__p_wxListbookEvent, 0, 0, 0},{0, 0, 0, 0}};
47699static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}};
47700static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
47701static swig_cast_info _swigc__p_wxNotebook[] = { {&_swigt__p_wxNotebook, 0, 0, 0},{0, 0, 0, 0}};
47702static swig_cast_info _swigc__p_wxNotebookEvent[] = { {&_swigt__p_wxNotebookEvent, 0, 0, 0},{0, 0, 0, 0}};
47703static 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}};
47704static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
47705static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
47706static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
47707static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
47708static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
47709static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
47710static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
47711static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
47712static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
47713static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
47714static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
47715static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
47716static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
47717static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
47718static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
47719static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
47720static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
47721static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
47722static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
47723static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
47724static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
47725static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
704eda0c 47726static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
2131d850 47727static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
47728static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
47729static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
47730static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
47731static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
47732static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
47733static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 47734static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelp, _p_wxContextHelpTo_p_wxObject, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxListItem, _p_wxListItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGenericDragImage, _p_wxGenericDragImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarToolBase, _p_wxToolBarToolBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
1bd55598 47735static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 47736static 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
47737static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
47738static swig_cast_info _swigc__p_wxPyControl[] = { {&_swigt__p_wxPyControl, 0, 0, 0},{0, 0, 0, 0}};
47739static 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}};
47740static swig_cast_info _swigc__p_wxPyTreeCtrl[] = { {&_swigt__p_wxPyTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
47741static swig_cast_info _swigc__p_wxPyTreeItemData[] = { {&_swigt__p_wxPyTreeItemData, 0, 0, 0},{0, 0, 0, 0}};
47742static swig_cast_info _swigc__p_wxRadioBox[] = { {&_swigt__p_wxRadioBox, 0, 0, 0},{0, 0, 0, 0}};
47743static swig_cast_info _swigc__p_wxRadioButton[] = { {&_swigt__p_wxRadioButton, 0, 0, 0},{0, 0, 0, 0}};
47744static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
47745static swig_cast_info _swigc__p_wxScrollBar[] = { {&_swigt__p_wxScrollBar, 0, 0, 0},{0, 0, 0, 0}};
47746static swig_cast_info _swigc__p_wxSimpleHelpProvider[] = { {&_swigt__p_wxSimpleHelpProvider, 0, 0, 0},{0, 0, 0, 0}};
47747static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
47748static swig_cast_info _swigc__p_wxSlider[] = { {&_swigt__p_wxSlider, 0, 0, 0},{0, 0, 0, 0}};
47749static swig_cast_info _swigc__p_wxSpinButton[] = { {&_swigt__p_wxSpinButton, 0, 0, 0},{0, 0, 0, 0}};
47750static swig_cast_info _swigc__p_wxSpinCtrl[] = { {&_swigt__p_wxSpinCtrl, 0, 0, 0},{0, 0, 0, 0}};
47751static swig_cast_info _swigc__p_wxSpinEvent[] = { {&_swigt__p_wxSpinEvent, 0, 0, 0},{0, 0, 0, 0}};
47752static swig_cast_info _swigc__p_wxStaticBitmap[] = { {&_swigt__p_wxStaticBitmap, 0, 0, 0},{0, 0, 0, 0}};
47753static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}};
47754static swig_cast_info _swigc__p_wxStaticLine[] = { {&_swigt__p_wxStaticLine, 0, 0, 0},{0, 0, 0, 0}};
47755static swig_cast_info _swigc__p_wxStaticText[] = { {&_swigt__p_wxStaticText, 0, 0, 0},{0, 0, 0, 0}};
47756static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
47757static swig_cast_info _swigc__p_wxTextAttr[] = { {&_swigt__p_wxTextAttr, 0, 0, 0},{0, 0, 0, 0}};
47758static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0},{0, 0, 0, 0}};
47759static swig_cast_info _swigc__p_wxTextUrlEvent[] = { {&_swigt__p_wxTextUrlEvent, 0, 0, 0},{0, 0, 0, 0}};
47760static swig_cast_info _swigc__p_wxToggleButton[] = { {&_swigt__p_wxToggleButton, 0, 0, 0},{0, 0, 0, 0}};
47761static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}};
47762static 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}};
47763static swig_cast_info _swigc__p_wxToolBarToolBase[] = { {&_swigt__p_wxToolBarToolBase, 0, 0, 0},{0, 0, 0, 0}};
47764static swig_cast_info _swigc__p_wxToolbook[] = { {&_swigt__p_wxToolbook, 0, 0, 0},{0, 0, 0, 0}};
47765static swig_cast_info _swigc__p_wxToolbookEvent[] = { {&_swigt__p_wxToolbookEvent, 0, 0, 0},{0, 0, 0, 0}};
47766static swig_cast_info _swigc__p_wxTreeCtrl[] = { {&_swigt__p_wxTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
47767static swig_cast_info _swigc__p_wxTreeEvent[] = { {&_swigt__p_wxTreeEvent, 0, 0, 0},{0, 0, 0, 0}};
47768static swig_cast_info _swigc__p_wxTreeItemId[] = { {&_swigt__p_wxTreeItemId, 0, 0, 0},{0, 0, 0, 0}};
47769static swig_cast_info _swigc__p_wxTreebook[] = { {&_swigt__p_wxTreebook, 0, 0, 0},{0, 0, 0, 0}};
47770static swig_cast_info _swigc__p_wxTreebookEvent[] = { {&_swigt__p_wxTreebookEvent, 0, 0, 0},{0, 0, 0, 0}};
47771static 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}};
47772static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
47773static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxWindow, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxWindow, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxWindow, 0, 0},{0, 0, 0, 0}};
47774static swig_cast_info _swigc__p_wxWindowBase[] = { {&_swigt__p_wxWindowBase, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
47775
47776static swig_cast_info *swig_cast_initial[] = {
47777 _swigc__p_bool,
47778 _swigc__p_char,
47779 _swigc__p_form_ops_t,
47780 _swigc__p_int,
47781 _swigc__p_long,
47782 _swigc__p_unsigned_char,
47783 _swigc__p_unsigned_int,
47784 _swigc__p_unsigned_long,
47785 _swigc__p_void,
47786 _swigc__p_wxANIHandler,
47787 _swigc__p_wxAcceleratorTable,
47788 _swigc__p_wxActivateEvent,
47789 _swigc__p_wxArrayInt,
47790 _swigc__p_wxArrayString,
47791 _swigc__p_wxBMPHandler,
47792 _swigc__p_wxBitmap,
47793 _swigc__p_wxBitmapButton,
47794 _swigc__p_wxBookCtrlBase,
47795 _swigc__p_wxBookCtrlBaseEvent,
47796 _swigc__p_wxBoxSizer,
47797 _swigc__p_wxButton,
47798 _swigc__p_wxCURHandler,
47799 _swigc__p_wxCheckBox,
47800 _swigc__p_wxCheckListBox,
47801 _swigc__p_wxChildFocusEvent,
47802 _swigc__p_wxChoice,
47803 _swigc__p_wxChoicebook,
47804 _swigc__p_wxChoicebookEvent,
2131d850 47805 _swigc__p_wxClipboardTextEvent,
1bd55598
RD
47806 _swigc__p_wxCloseEvent,
47807 _swigc__p_wxColour,
b850e7f3
RD
47808 _swigc__p_wxColourPickerCtrl,
47809 _swigc__p_wxColourPickerEvent,
1bd55598
RD
47810 _swigc__p_wxComboBox,
47811 _swigc__p_wxCommandEvent,
47812 _swigc__p_wxContextHelp,
47813 _swigc__p_wxContextHelpButton,
47814 _swigc__p_wxContextMenuEvent,
47815 _swigc__p_wxControl,
47816 _swigc__p_wxControlWithItems,
47817 _swigc__p_wxCursor,
47818 _swigc__p_wxDC,
47819 _swigc__p_wxDateEvent,
47820 _swigc__p_wxDatePickerCtrl,
47821 _swigc__p_wxDateTime,
47822 _swigc__p_wxDirFilterListCtrl,
b850e7f3 47823 _swigc__p_wxDirPickerCtrl,
1bd55598
RD
47824 _swigc__p_wxDisplayChangedEvent,
47825 _swigc__p_wxDropFilesEvent,
47826 _swigc__p_wxDuplexMode,
47827 _swigc__p_wxEraseEvent,
47828 _swigc__p_wxEvent,
47829 _swigc__p_wxEvtHandler,
47830 _swigc__p_wxFSFile,
b850e7f3
RD
47831 _swigc__p_wxFileDirPickerEvent,
47832 _swigc__p_wxFilePickerCtrl,
1bd55598
RD
47833 _swigc__p_wxFileSystem,
47834 _swigc__p_wxFlexGridSizer,
47835 _swigc__p_wxFocusEvent,
47836 _swigc__p_wxFont,
b850e7f3
RD
47837 _swigc__p_wxFontPickerCtrl,
47838 _swigc__p_wxFontPickerEvent,
1bd55598
RD
47839 _swigc__p_wxGBSizerItem,
47840 _swigc__p_wxGIFHandler,
47841 _swigc__p_wxGauge,
47842 _swigc__p_wxGenericDirCtrl,
47843 _swigc__p_wxGenericDragImage,
47844 _swigc__p_wxGridBagSizer,
47845 _swigc__p_wxGridSizer,
47846 _swigc__p_wxHelpEvent,
47847 _swigc__p_wxHelpProvider,
704eda0c
RD
47848 _swigc__p_wxHyperlinkCtrl,
47849 _swigc__p_wxHyperlinkEvent,
1bd55598
RD
47850 _swigc__p_wxICOHandler,
47851 _swigc__p_wxIcon,
47852 _swigc__p_wxIconizeEvent,
47853 _swigc__p_wxIdleEvent,
47854 _swigc__p_wxImage,
47855 _swigc__p_wxImageHandler,
47856 _swigc__p_wxImageList,
47857 _swigc__p_wxIndividualLayoutConstraint,
47858 _swigc__p_wxInitDialogEvent,
47859 _swigc__p_wxItemContainer,
47860 _swigc__p_wxJPEGHandler,
47861 _swigc__p_wxKeyEvent,
47862 _swigc__p_wxLayoutConstraints,
47863 _swigc__p_wxListBox,
47864 _swigc__p_wxListEvent,
47865 _swigc__p_wxListItem,
47866 _swigc__p_wxListItemAttr,
47867 _swigc__p_wxListView,
47868 _swigc__p_wxListbook,
47869 _swigc__p_wxListbookEvent,
47870 _swigc__p_wxMaximizeEvent,
47871 _swigc__p_wxMemoryDC,
47872 _swigc__p_wxMenu,
47873 _swigc__p_wxMenuBar,
47874 _swigc__p_wxMenuEvent,
47875 _swigc__p_wxMenuItem,
47876 _swigc__p_wxMouseCaptureChangedEvent,
47877 _swigc__p_wxMouseEvent,
47878 _swigc__p_wxMoveEvent,
47879 _swigc__p_wxNavigationKeyEvent,
47880 _swigc__p_wxNcPaintEvent,
47881 _swigc__p_wxNotebook,
47882 _swigc__p_wxNotebookEvent,
47883 _swigc__p_wxNotifyEvent,
47884 _swigc__p_wxObject,
47885 _swigc__p_wxPCXHandler,
47886 _swigc__p_wxPNGHandler,
47887 _swigc__p_wxPNMHandler,
47888 _swigc__p_wxPaintEvent,
47889 _swigc__p_wxPaletteChangedEvent,
47890 _swigc__p_wxPaperSize,
b850e7f3 47891 _swigc__p_wxPickerBase,
1bd55598
RD
47892 _swigc__p_wxPoint,
47893 _swigc__p_wxPyApp,
47894 _swigc__p_wxPyCommandEvent,
47895 _swigc__p_wxPyControl,
47896 _swigc__p_wxPyEvent,
47897 _swigc__p_wxPyImageHandler,
47898 _swigc__p_wxPyListCtrl,
47899 _swigc__p_wxPySizer,
47900 _swigc__p_wxPyTreeCtrl,
47901 _swigc__p_wxPyTreeItemData,
47902 _swigc__p_wxPyValidator,
47903 _swigc__p_wxQueryNewPaletteEvent,
47904 _swigc__p_wxRadioBox,
47905 _swigc__p_wxRadioButton,
47906 _swigc__p_wxRect,
47907 _swigc__p_wxScrollBar,
47908 _swigc__p_wxScrollEvent,
47909 _swigc__p_wxScrollWinEvent,
47910 _swigc__p_wxSetCursorEvent,
47911 _swigc__p_wxShowEvent,
47912 _swigc__p_wxSimpleHelpProvider,
47913 _swigc__p_wxSize,
47914 _swigc__p_wxSizeEvent,
47915 _swigc__p_wxSizer,
47916 _swigc__p_wxSizerItem,
47917 _swigc__p_wxSlider,
47918 _swigc__p_wxSpinButton,
47919 _swigc__p_wxSpinCtrl,
47920 _swigc__p_wxSpinEvent,
47921 _swigc__p_wxStaticBitmap,
47922 _swigc__p_wxStaticBox,
47923 _swigc__p_wxStaticBoxSizer,
47924 _swigc__p_wxStaticLine,
47925 _swigc__p_wxStaticText,
47926 _swigc__p_wxStdDialogButtonSizer,
47927 _swigc__p_wxString,
47928 _swigc__p_wxSysColourChangedEvent,
47929 _swigc__p_wxTIFFHandler,
47930 _swigc__p_wxTextAttr,
47931 _swigc__p_wxTextCtrl,
47932 _swigc__p_wxTextUrlEvent,
47933 _swigc__p_wxToggleButton,
47934 _swigc__p_wxToolBar,
47935 _swigc__p_wxToolBarBase,
47936 _swigc__p_wxToolBarToolBase,
47937 _swigc__p_wxToolbook,
47938 _swigc__p_wxToolbookEvent,
47939 _swigc__p_wxTreeCtrl,
47940 _swigc__p_wxTreeEvent,
47941 _swigc__p_wxTreeItemId,
47942 _swigc__p_wxTreebook,
47943 _swigc__p_wxTreebookEvent,
47944 _swigc__p_wxUpdateUIEvent,
47945 _swigc__p_wxValidator,
47946 _swigc__p_wxVisualAttributes,
47947 _swigc__p_wxWindow,
b850e7f3 47948 _swigc__p_wxWindowBase,
1bd55598
RD
47949 _swigc__p_wxWindowCreateEvent,
47950 _swigc__p_wxWindowDestroyEvent,
47951 _swigc__p_wxXPMHandler,
47952};
47953
47954
47955/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
47956
47957static swig_const_info swig_const_table[] = {
47958{0, 0, 0, 0.0, 0, 0}};
47959
47960#ifdef __cplusplus
47961}
47962#endif
47963/* -----------------------------------------------------------------------------
47964 * Type initialization:
47965 * This problem is tough by the requirement that no dynamic
47966 * memory is used. Also, since swig_type_info structures store pointers to
47967 * swig_cast_info structures and swig_cast_info structures store pointers back
47968 * to swig_type_info structures, we need some lookup code at initialization.
47969 * The idea is that swig generates all the structures that are needed.
47970 * The runtime then collects these partially filled structures.
47971 * The SWIG_InitializeModule function takes these initial arrays out of
47972 * swig_module, and does all the lookup, filling in the swig_module.types
47973 * array with the correct data and linking the correct swig_cast_info
47974 * structures together.
47975 *
47976 * The generated swig_type_info structures are assigned staticly to an initial
47977 * array. We just loop though that array, and handle each type individually.
47978 * First we lookup if this type has been already loaded, and if so, use the
47979 * loaded structure instead of the generated one. Then we have to fill in the
47980 * cast linked list. The cast data is initially stored in something like a
47981 * two-dimensional array. Each row corresponds to a type (there are the same
47982 * number of rows as there are in the swig_type_initial array). Each entry in
47983 * a column is one of the swig_cast_info structures for that type.
47984 * The cast_initial array is actually an array of arrays, because each row has
47985 * a variable number of columns. So to actually build the cast linked list,
47986 * we find the array of casts associated with the type, and loop through it
47987 * adding the casts to the list. The one last trick we need to do is making
47988 * sure the type pointer in the swig_cast_info struct is correct.
47989 *
47990 * First off, we lookup the cast->type name to see if it is already loaded.
47991 * There are three cases to handle:
47992 * 1) If the cast->type has already been loaded AND the type we are adding
47993 * casting info to has not been loaded (it is in this module), THEN we
47994 * replace the cast->type pointer with the type pointer that has already
47995 * been loaded.
47996 * 2) If BOTH types (the one we are adding casting info to, and the
47997 * cast->type) are loaded, THEN the cast info has already been loaded by
47998 * the previous module so we just ignore it.
47999 * 3) Finally, if cast->type has not already been loaded, then we add that
48000 * swig_cast_info to the linked list (because the cast->type) pointer will
48001 * be correct.
48002 * ----------------------------------------------------------------------------- */
48003
48004#ifdef __cplusplus
48005extern "C" {
48006#if 0
48007} /* c-mode */
48008#endif
48009#endif
48010
48011#if 0
48012#define SWIGRUNTIME_DEBUG
48013#endif
48014
48015SWIGRUNTIME void
48016SWIG_InitializeModule(void *clientdata) {
48017 size_t i;
48018 swig_module_info *module_head;
48019 static int init_run = 0;
48020
48021 clientdata = clientdata;
48022
48023 if (init_run) return;
48024 init_run = 1;
48025
48026 /* Initialize the swig_module */
48027 swig_module.type_initial = swig_type_initial;
48028 swig_module.cast_initial = swig_cast_initial;
48029
48030 /* Try and load any already created modules */
48031 module_head = SWIG_GetModule(clientdata);
48032 if (module_head) {
48033 swig_module.next = module_head->next;
48034 module_head->next = &swig_module;
48035 } else {
48036 /* This is the first module loaded */
48037 swig_module.next = &swig_module;
48038 SWIG_SetModule(clientdata, &swig_module);
48039 }
48040
48041 /* Now work on filling in swig_module.types */
48042#ifdef SWIGRUNTIME_DEBUG
48043 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
48044#endif
48045 for (i = 0; i < swig_module.size; ++i) {
48046 swig_type_info *type = 0;
48047 swig_type_info *ret;
48048 swig_cast_info *cast;
d55e5bfc 48049
1bd55598
RD
48050#ifdef SWIGRUNTIME_DEBUG
48051 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
48052#endif
d55e5bfc 48053
1bd55598
RD
48054 /* if there is another module already loaded */
48055 if (swig_module.next != &swig_module) {
48056 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
36ed4f51 48057 }
1bd55598
RD
48058 if (type) {
48059 /* Overwrite clientdata field */
48060#ifdef SWIGRUNTIME_DEBUG
48061 printf("SWIG_InitializeModule: found type %s\n", type->name);
48062#endif
48063 if (swig_module.type_initial[i]->clientdata) {
48064 type->clientdata = swig_module.type_initial[i]->clientdata;
48065#ifdef SWIGRUNTIME_DEBUG
48066 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
48067#endif
48068 }
48069 } else {
48070 type = swig_module.type_initial[i];
36ed4f51 48071 }
d55e5bfc 48072
1bd55598
RD
48073 /* Insert casting types */
48074 cast = swig_module.cast_initial[i];
48075 while (cast->type) {
48076 /* Don't need to add information already in the list */
48077 ret = 0;
48078#ifdef SWIGRUNTIME_DEBUG
48079 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
48080#endif
48081 if (swig_module.next != &swig_module) {
48082 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
48083#ifdef SWIGRUNTIME_DEBUG
48084 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
48085#endif
48086 }
48087 if (ret) {
48088 if (type == swig_module.type_initial[i]) {
48089#ifdef SWIGRUNTIME_DEBUG
48090 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
48091#endif
48092 cast->type = ret;
48093 ret = 0;
48094 } else {
48095 /* Check for casting already in the list */
48096 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
48097#ifdef SWIGRUNTIME_DEBUG
48098 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
48099#endif
48100 if (!ocast) ret = 0;
48101 }
48102 }
48103
48104 if (!ret) {
48105#ifdef SWIGRUNTIME_DEBUG
48106 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
48107#endif
48108 if (type->cast) {
48109 type->cast->prev = cast;
48110 cast->next = type->cast;
48111 }
48112 type->cast = cast;
48113 }
48114 cast++;
36ed4f51 48115 }
1bd55598
RD
48116 /* Set entry in modules->types array equal to the type */
48117 swig_module.types[i] = type;
48118 }
48119 swig_module.types[i] = 0;
48120
48121#ifdef SWIGRUNTIME_DEBUG
48122 printf("**** SWIG_InitializeModule: Cast List ******\n");
48123 for (i = 0; i < swig_module.size; ++i) {
48124 int j = 0;
48125 swig_cast_info *cast = swig_module.cast_initial[i];
48126 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
48127 while (cast->type) {
48128 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
48129 cast++;
48130 ++j;
48131 }
48132 printf("---- Total casts: %d\n",j);
48133 }
48134 printf("**** SWIG_InitializeModule: Cast List ******\n");
48135#endif
48136}
48137
48138/* This function will propagate the clientdata field of type to
48139* any new swig_type_info structures that have been added into the list
48140* of equivalent types. It is like calling
48141* SWIG_TypeClientData(type, clientdata) a second time.
48142*/
48143SWIGRUNTIME void
48144SWIG_PropagateClientData(void) {
48145 size_t i;
48146 swig_cast_info *equiv;
48147 static int init_run = 0;
48148
48149 if (init_run) return;
48150 init_run = 1;
48151
48152 for (i = 0; i < swig_module.size; i++) {
48153 if (swig_module.types[i]->clientdata) {
48154 equiv = swig_module.types[i]->cast;
48155 while (equiv) {
48156 if (!equiv->converter) {
48157 if (equiv->type && !equiv->type->clientdata)
48158 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
48159 }
48160 equiv = equiv->next;
48161 }
36ed4f51 48162 }
1bd55598
RD
48163 }
48164}
48165
48166#ifdef __cplusplus
48167#if 0
48168{
48169 /* c-mode */
48170#endif
48171}
48172#endif
48173
48174
48175
48176#ifdef __cplusplus
48177extern "C" {
48178#endif
48179
48180 /* Python-specific SWIG API */
48181#define SWIG_newvarlink() SWIG_Python_newvarlink()
48182#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
48183#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
48184
48185 /* -----------------------------------------------------------------------------
48186 * global variable support code.
48187 * ----------------------------------------------------------------------------- */
48188
48189 typedef struct swig_globalvar {
48190 char *name; /* Name of global variable */
48191 PyObject *(*get_attr)(void); /* Return the current value */
48192 int (*set_attr)(PyObject *); /* Set the value */
48193 struct swig_globalvar *next;
48194 } swig_globalvar;
48195
48196 typedef struct swig_varlinkobject {
48197 PyObject_HEAD
48198 swig_globalvar *vars;
48199 } swig_varlinkobject;
48200
48201 SWIGINTERN PyObject *
48202 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
48203 return PyString_FromString("<Swig global variables>");
48204 }
48205
48206 SWIGINTERN PyObject *
48207 swig_varlink_str(swig_varlinkobject *v) {
48208 PyObject *str = PyString_FromString("(");
48209 swig_globalvar *var;
48210 for (var = v->vars; var; var=var->next) {
48211 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
48212 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
48213 }
48214 PyString_ConcatAndDel(&str,PyString_FromString(")"));
48215 return str;
48216 }
48217
48218 SWIGINTERN int
48219 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
48220 PyObject *str = swig_varlink_str(v);
48221 fprintf(fp,"Swig global variables ");
48222 fprintf(fp,"%s\n", PyString_AsString(str));
48223 Py_DECREF(str);
48224 return 0;
48225 }
48226
48227 SWIGINTERN void
48228 swig_varlink_dealloc(swig_varlinkobject *v) {
48229 swig_globalvar *var = v->vars;
48230 while (var) {
48231 swig_globalvar *n = var->next;
48232 free(var->name);
48233 free(var);
48234 var = n;
36ed4f51 48235 }
1bd55598
RD
48236 }
48237
48238 SWIGINTERN PyObject *
48239 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
48240 PyObject *res = NULL;
48241 swig_globalvar *var = v->vars;
48242 while (var) {
48243 if (strcmp(var->name,n) == 0) {
48244 res = (*var->get_attr)();
48245 break;
48246 }
48247 var = var->next;
36ed4f51 48248 }
1bd55598
RD
48249 if (res == NULL && !PyErr_Occurred()) {
48250 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
36ed4f51 48251 }
1bd55598
RD
48252 return res;
48253 }
48254
48255 SWIGINTERN int
48256 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
48257 int res = 1;
48258 swig_globalvar *var = v->vars;
48259 while (var) {
48260 if (strcmp(var->name,n) == 0) {
48261 res = (*var->set_attr)(p);
48262 break;
48263 }
48264 var = var->next;
36ed4f51 48265 }
1bd55598
RD
48266 if (res == 1 && !PyErr_Occurred()) {
48267 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
53aa7709 48268 }
1bd55598
RD
48269 return res;
48270 }
48271
48272 SWIGINTERN PyTypeObject*
48273 swig_varlink_type(void) {
48274 static char varlink__doc__[] = "Swig var link object";
48275 static PyTypeObject varlink_type;
48276 static int type_init = 0;
48277 if (!type_init) {
48278 const PyTypeObject tmp
48279 = {
48280 PyObject_HEAD_INIT(NULL)
48281 0, /* Number of items in variable part (ob_size) */
48282 (char *)"swigvarlink", /* Type name (tp_name) */
48283 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
48284 0, /* Itemsize (tp_itemsize) */
48285 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
48286 (printfunc) swig_varlink_print, /* Print (tp_print) */
48287 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
48288 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
48289 0, /* tp_compare */
48290 (reprfunc) swig_varlink_repr, /* tp_repr */
48291 0, /* tp_as_number */
48292 0, /* tp_as_sequence */
48293 0, /* tp_as_mapping */
48294 0, /* tp_hash */
48295 0, /* tp_call */
48296 (reprfunc)swig_varlink_str, /* tp_str */
48297 0, /* tp_getattro */
48298 0, /* tp_setattro */
48299 0, /* tp_as_buffer */
48300 0, /* tp_flags */
48301 varlink__doc__, /* tp_doc */
48302 0, /* tp_traverse */
48303 0, /* tp_clear */
48304 0, /* tp_richcompare */
48305 0, /* tp_weaklistoffset */
48306#if PY_VERSION_HEX >= 0x02020000
48307 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
48308#endif
48309#if PY_VERSION_HEX >= 0x02030000
48310 0, /* tp_del */
48311#endif
48312#ifdef COUNT_ALLOCS
48313 0,0,0,0 /* tp_alloc -> tp_next */
48314#endif
48315 };
48316 varlink_type = tmp;
48317 varlink_type.ob_type = &PyType_Type;
48318 type_init = 1;
53aa7709 48319 }
1bd55598
RD
48320 return &varlink_type;
48321 }
48322
48323 /* Create a variable linking object for use later */
48324 SWIGINTERN PyObject *
48325 SWIG_Python_newvarlink(void) {
48326 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
48327 if (result) {
48328 result->vars = 0;
48329 }
48330 return ((PyObject*) result);
48331 }
48332
48333 SWIGINTERN void
48334 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
48335 swig_varlinkobject *v = (swig_varlinkobject *) p;
48336 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
48337 if (gv) {
48338 size_t size = strlen(name)+1;
48339 gv->name = (char *)malloc(size);
48340 if (gv->name) {
48341 strncpy(gv->name,name,size);
48342 gv->get_attr = get_attr;
48343 gv->set_attr = set_attr;
48344 gv->next = v->vars;
48345 }
53aa7709 48346 }
1bd55598
RD
48347 v->vars = gv;
48348 }
48349
48350 SWIGINTERN PyObject *
48351 SWIG_globals() {
48352 static PyObject *_SWIG_globals = 0;
48353 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
48354 return _SWIG_globals;
48355 }
48356
48357 /* -----------------------------------------------------------------------------
48358 * constants/methods manipulation
48359 * ----------------------------------------------------------------------------- */
48360
48361 /* Install Constants */
48362 SWIGINTERN void
48363 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
48364 PyObject *obj = 0;
48365 size_t i;
48366 for (i = 0; constants[i].type; ++i) {
48367 switch(constants[i].type) {
48368 case SWIG_PY_POINTER:
48369 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
48370 break;
48371 case SWIG_PY_BINARY:
48372 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
48373 break;
48374 default:
48375 obj = 0;
48376 break;
48377 }
48378 if (obj) {
48379 PyDict_SetItemString(d, constants[i].name, obj);
48380 Py_DECREF(obj);
48381 }
53aa7709 48382 }
1bd55598
RD
48383 }
48384
48385 /* -----------------------------------------------------------------------------*/
48386 /* Fix SwigMethods to carry the callback ptrs when needed */
48387 /* -----------------------------------------------------------------------------*/
48388
48389 SWIGINTERN void
48390 SWIG_Python_FixMethods(PyMethodDef *methods,
48391 swig_const_info *const_table,
48392 swig_type_info **types,
48393 swig_type_info **types_initial) {
48394 size_t i;
48395 for (i = 0; methods[i].ml_name; ++i) {
3d6c9062 48396 const char *c = methods[i].ml_doc;
1bd55598
RD
48397 if (c && (c = strstr(c, "swig_ptr: "))) {
48398 int j;
48399 swig_const_info *ci = 0;
3d6c9062 48400 const char *name = c + 10;
1bd55598
RD
48401 for (j = 0; const_table[j].type; ++j) {
48402 if (strncmp(const_table[j].name, name,
48403 strlen(const_table[j].name)) == 0) {
48404 ci = &(const_table[j]);
48405 break;
48406 }
48407 }
48408 if (ci) {
48409 size_t shift = (ci->ptype) - types;
48410 swig_type_info *ty = types_initial[shift];
48411 size_t ldoc = (c - methods[i].ml_doc);
48412 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
48413 char *ndoc = (char*)malloc(ldoc + lptr + 10);
48414 if (ndoc) {
48415 char *buff = ndoc;
48416 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
48417 if (ptr) {
48418 strncpy(buff, methods[i].ml_doc, ldoc);
48419 buff += ldoc;
48420 strncpy(buff, "swig_ptr: ", 10);
48421 buff += 10;
48422 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
48423 methods[i].ml_doc = ndoc;
48424 }
48425 }
48426 }
48427 }
53aa7709 48428 }
1bd55598
RD
48429 }
48430
48431#ifdef __cplusplus
48432}
48433#endif
48434
48435/* -----------------------------------------------------------------------------*
48436 * Partial Init method
48437 * -----------------------------------------------------------------------------*/
48438
48439#ifdef __cplusplus
48440extern "C"
48441#endif
48442SWIGEXPORT void SWIG_init(void) {
48443 PyObject *m, *d;
48444
48445 /* Fix SwigMethods to carry the callback ptrs when needed */
48446 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
48447
48448 m = Py_InitModule((char *) SWIG_name, SwigMethods);
48449 d = PyModule_GetDict(m);
48450
48451 SWIG_InitializeModule(0);
48452 SWIG_InstallConstants(d,swig_const_table);
48453
48454
48455 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
48456 SWIG_addvarlink(SWIG_globals(),(char*)"ButtonNameStr",ButtonNameStr_get, ButtonNameStr_set);
48457 SWIG_Python_SetConstant(d, "BU_LEFT",SWIG_From_int(static_cast< int >(wxBU_LEFT)));
48458 SWIG_Python_SetConstant(d, "BU_TOP",SWIG_From_int(static_cast< int >(wxBU_TOP)));
48459 SWIG_Python_SetConstant(d, "BU_RIGHT",SWIG_From_int(static_cast< int >(wxBU_RIGHT)));
48460 SWIG_Python_SetConstant(d, "BU_BOTTOM",SWIG_From_int(static_cast< int >(wxBU_BOTTOM)));
48461 SWIG_Python_SetConstant(d, "BU_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBU_ALIGN_MASK)));
48462 SWIG_Python_SetConstant(d, "BU_EXACTFIT",SWIG_From_int(static_cast< int >(wxBU_EXACTFIT)));
48463 SWIG_Python_SetConstant(d, "BU_AUTODRAW",SWIG_From_int(static_cast< int >(wxBU_AUTODRAW)));
48464 SWIG_addvarlink(SWIG_globals(),(char*)"CheckBoxNameStr",CheckBoxNameStr_get, CheckBoxNameStr_set);
48465 SWIG_Python_SetConstant(d, "CHK_2STATE",SWIG_From_int(static_cast< int >(wxCHK_2STATE)));
48466 SWIG_Python_SetConstant(d, "CHK_3STATE",SWIG_From_int(static_cast< int >(wxCHK_3STATE)));
48467 SWIG_Python_SetConstant(d, "CHK_ALLOW_3RD_STATE_FOR_USER",SWIG_From_int(static_cast< int >(wxCHK_ALLOW_3RD_STATE_FOR_USER)));
48468 SWIG_Python_SetConstant(d, "CHK_UNCHECKED",SWIG_From_int(static_cast< int >(wxCHK_UNCHECKED)));
48469 SWIG_Python_SetConstant(d, "CHK_CHECKED",SWIG_From_int(static_cast< int >(wxCHK_CHECKED)));
48470 SWIG_Python_SetConstant(d, "CHK_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCHK_UNDETERMINED)));
48471 SWIG_addvarlink(SWIG_globals(),(char*)"ChoiceNameStr",ChoiceNameStr_get, ChoiceNameStr_set);
48472 SWIG_addvarlink(SWIG_globals(),(char*)"ComboBoxNameStr",ComboBoxNameStr_get, ComboBoxNameStr_set);
48473 SWIG_addvarlink(SWIG_globals(),(char*)"GaugeNameStr",GaugeNameStr_get, GaugeNameStr_set);
48474 SWIG_Python_SetConstant(d, "GA_HORIZONTAL",SWIG_From_int(static_cast< int >(wxGA_HORIZONTAL)));
48475 SWIG_Python_SetConstant(d, "GA_VERTICAL",SWIG_From_int(static_cast< int >(wxGA_VERTICAL)));
48476 SWIG_Python_SetConstant(d, "GA_SMOOTH",SWIG_From_int(static_cast< int >(wxGA_SMOOTH)));
1bd55598
RD
48477 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBitmapNameStr",StaticBitmapNameStr_get, StaticBitmapNameStr_set);
48478 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBoxNameStr",StaticBoxNameStr_get, StaticBoxNameStr_set);
48479 SWIG_addvarlink(SWIG_globals(),(char*)"StaticTextNameStr",StaticTextNameStr_get, StaticTextNameStr_set);
48480 SWIG_addvarlink(SWIG_globals(),(char*)"ListBoxNameStr",ListBoxNameStr_get, ListBoxNameStr_set);
48481 SWIG_addvarlink(SWIG_globals(),(char*)"TextCtrlNameStr",TextCtrlNameStr_get, TextCtrlNameStr_set);
48482 SWIG_Python_SetConstant(d, "TE_NO_VSCROLL",SWIG_From_int(static_cast< int >(wxTE_NO_VSCROLL)));
48483 SWIG_Python_SetConstant(d, "TE_AUTO_SCROLL",SWIG_From_int(static_cast< int >(wxTE_AUTO_SCROLL)));
48484 SWIG_Python_SetConstant(d, "TE_READONLY",SWIG_From_int(static_cast< int >(wxTE_READONLY)));
48485 SWIG_Python_SetConstant(d, "TE_MULTILINE",SWIG_From_int(static_cast< int >(wxTE_MULTILINE)));
48486 SWIG_Python_SetConstant(d, "TE_PROCESS_TAB",SWIG_From_int(static_cast< int >(wxTE_PROCESS_TAB)));
48487 SWIG_Python_SetConstant(d, "TE_LEFT",SWIG_From_int(static_cast< int >(wxTE_LEFT)));
48488 SWIG_Python_SetConstant(d, "TE_CENTER",SWIG_From_int(static_cast< int >(wxTE_CENTER)));
48489 SWIG_Python_SetConstant(d, "TE_RIGHT",SWIG_From_int(static_cast< int >(wxTE_RIGHT)));
48490 SWIG_Python_SetConstant(d, "TE_CENTRE",SWIG_From_int(static_cast< int >(wxTE_CENTRE)));
48491 SWIG_Python_SetConstant(d, "TE_RICH",SWIG_From_int(static_cast< int >(wxTE_RICH)));
48492 SWIG_Python_SetConstant(d, "TE_PROCESS_ENTER",SWIG_From_int(static_cast< int >(wxTE_PROCESS_ENTER)));
48493 SWIG_Python_SetConstant(d, "TE_PASSWORD",SWIG_From_int(static_cast< int >(wxTE_PASSWORD)));
48494 SWIG_Python_SetConstant(d, "TE_AUTO_URL",SWIG_From_int(static_cast< int >(wxTE_AUTO_URL)));
48495 SWIG_Python_SetConstant(d, "TE_NOHIDESEL",SWIG_From_int(static_cast< int >(wxTE_NOHIDESEL)));
48496 SWIG_Python_SetConstant(d, "TE_DONTWRAP",SWIG_From_int(static_cast< int >(wxTE_DONTWRAP)));
48497 SWIG_Python_SetConstant(d, "TE_CHARWRAP",SWIG_From_int(static_cast< int >(wxTE_CHARWRAP)));
48498 SWIG_Python_SetConstant(d, "TE_WORDWRAP",SWIG_From_int(static_cast< int >(wxTE_WORDWRAP)));
48499 SWIG_Python_SetConstant(d, "TE_BESTWRAP",SWIG_From_int(static_cast< int >(wxTE_BESTWRAP)));
1bd55598
RD
48500 SWIG_Python_SetConstant(d, "TE_RICH2",SWIG_From_int(static_cast< int >(wxTE_RICH2)));
48501 SWIG_Python_SetConstant(d, "TE_CAPITALIZE",SWIG_From_int(static_cast< int >(wxTE_CAPITALIZE)));
48502 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT)));
48503 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT)));
48504 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE)));
48505 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER)));
48506 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT)));
48507 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED)));
48508 SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR)));
48509 SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR)));
48510 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE)));
48511 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE)));
48512 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT)));
48513 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC)));
48514 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE)));
48515 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT)));
48516 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT)));
48517 SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT)));
48518 SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT)));
48519 SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS)));
48520 SWIG_Python_SetConstant(d, "TE_HT_UNKNOWN",SWIG_From_int(static_cast< int >(wxTE_HT_UNKNOWN)));
48521 SWIG_Python_SetConstant(d, "TE_HT_BEFORE",SWIG_From_int(static_cast< int >(wxTE_HT_BEFORE)));
48522 SWIG_Python_SetConstant(d, "TE_HT_ON_TEXT",SWIG_From_int(static_cast< int >(wxTE_HT_ON_TEXT)));
48523 SWIG_Python_SetConstant(d, "TE_HT_BELOW",SWIG_From_int(static_cast< int >(wxTE_HT_BELOW)));
48524 SWIG_Python_SetConstant(d, "TE_HT_BEYOND",SWIG_From_int(static_cast< int >(wxTE_HT_BEYOND)));
48525 SWIG_Python_SetConstant(d, "OutOfRangeTextCoord",SWIG_From_int(static_cast< int >(wxOutOfRangeTextCoord)));
48526 SWIG_Python_SetConstant(d, "InvalidTextCoord",SWIG_From_int(static_cast< int >(wxInvalidTextCoord)));
48527 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
48528 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
48529 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
48530 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
48531 SWIG_addvarlink(SWIG_globals(),(char*)"ScrollBarNameStr",ScrollBarNameStr_get, ScrollBarNameStr_set);
48532 SWIG_addvarlink(SWIG_globals(),(char*)"SPIN_BUTTON_NAME",SPIN_BUTTON_NAME_get, SPIN_BUTTON_NAME_set);
48533 SWIG_addvarlink(SWIG_globals(),(char*)"SpinCtrlNameStr",SpinCtrlNameStr_get, SpinCtrlNameStr_set);
48534 SWIG_Python_SetConstant(d, "SP_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSP_HORIZONTAL)));
48535 SWIG_Python_SetConstant(d, "SP_VERTICAL",SWIG_From_int(static_cast< int >(wxSP_VERTICAL)));
48536 SWIG_Python_SetConstant(d, "SP_ARROW_KEYS",SWIG_From_int(static_cast< int >(wxSP_ARROW_KEYS)));
48537 SWIG_Python_SetConstant(d, "SP_WRAP",SWIG_From_int(static_cast< int >(wxSP_WRAP)));
48538 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
48539 SWIG_addvarlink(SWIG_globals(),(char*)"RadioBoxNameStr",RadioBoxNameStr_get, RadioBoxNameStr_set);
48540 SWIG_addvarlink(SWIG_globals(),(char*)"RadioButtonNameStr",RadioButtonNameStr_get, RadioButtonNameStr_set);
48541 SWIG_addvarlink(SWIG_globals(),(char*)"SliderNameStr",SliderNameStr_get, SliderNameStr_set);
48542 SWIG_Python_SetConstant(d, "SL_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSL_HORIZONTAL)));
48543 SWIG_Python_SetConstant(d, "SL_VERTICAL",SWIG_From_int(static_cast< int >(wxSL_VERTICAL)));
48544 SWIG_Python_SetConstant(d, "SL_TICKS",SWIG_From_int(static_cast< int >(wxSL_TICKS)));
48545 SWIG_Python_SetConstant(d, "SL_AUTOTICKS",SWIG_From_int(static_cast< int >(wxSL_AUTOTICKS)));
48546 SWIG_Python_SetConstant(d, "SL_LABELS",SWIG_From_int(static_cast< int >(wxSL_LABELS)));
48547 SWIG_Python_SetConstant(d, "SL_LEFT",SWIG_From_int(static_cast< int >(wxSL_LEFT)));
48548 SWIG_Python_SetConstant(d, "SL_TOP",SWIG_From_int(static_cast< int >(wxSL_TOP)));
48549 SWIG_Python_SetConstant(d, "SL_RIGHT",SWIG_From_int(static_cast< int >(wxSL_RIGHT)));
48550 SWIG_Python_SetConstant(d, "SL_BOTTOM",SWIG_From_int(static_cast< int >(wxSL_BOTTOM)));
48551 SWIG_Python_SetConstant(d, "SL_BOTH",SWIG_From_int(static_cast< int >(wxSL_BOTH)));
48552 SWIG_Python_SetConstant(d, "SL_SELRANGE",SWIG_From_int(static_cast< int >(wxSL_SELRANGE)));
48553 SWIG_Python_SetConstant(d, "SL_INVERSE",SWIG_From_int(static_cast< int >(wxSL_INVERSE)));
48554 SWIG_addvarlink(SWIG_globals(),(char*)"ToggleButtonNameStr",ToggleButtonNameStr_get, ToggleButtonNameStr_set);
48555 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
48556 SWIG_addvarlink(SWIG_globals(),(char*)"NotebookNameStr",NotebookNameStr_get, NotebookNameStr_set);
48557 SWIG_Python_SetConstant(d, "BK_DEFAULT",SWIG_From_int(static_cast< int >(wxBK_DEFAULT)));
48558 SWIG_Python_SetConstant(d, "BK_TOP",SWIG_From_int(static_cast< int >(wxBK_TOP)));
48559 SWIG_Python_SetConstant(d, "BK_BOTTOM",SWIG_From_int(static_cast< int >(wxBK_BOTTOM)));
48560 SWIG_Python_SetConstant(d, "BK_LEFT",SWIG_From_int(static_cast< int >(wxBK_LEFT)));
48561 SWIG_Python_SetConstant(d, "BK_RIGHT",SWIG_From_int(static_cast< int >(wxBK_RIGHT)));
48562 SWIG_Python_SetConstant(d, "BK_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBK_ALIGN_MASK)));
e9d6f3a4 48563 SWIG_Python_SetConstant(d, "BK_BUTTONBAR",SWIG_From_int(static_cast< int >(wxBK_BUTTONBAR)));
1bd55598
RD
48564 SWIG_Python_SetConstant(d, "NB_FIXEDWIDTH",SWIG_From_int(static_cast< int >(wxNB_FIXEDWIDTH)));
48565 SWIG_Python_SetConstant(d, "NB_TOP",SWIG_From_int(static_cast< int >(wxNB_TOP)));
48566 SWIG_Python_SetConstant(d, "NB_LEFT",SWIG_From_int(static_cast< int >(wxNB_LEFT)));
48567 SWIG_Python_SetConstant(d, "NB_RIGHT",SWIG_From_int(static_cast< int >(wxNB_RIGHT)));
48568 SWIG_Python_SetConstant(d, "NB_BOTTOM",SWIG_From_int(static_cast< int >(wxNB_BOTTOM)));
48569 SWIG_Python_SetConstant(d, "NB_MULTILINE",SWIG_From_int(static_cast< int >(wxNB_MULTILINE)));
48570 SWIG_Python_SetConstant(d, "NB_NOPAGETHEME",SWIG_From_int(static_cast< int >(wxNB_NOPAGETHEME)));
48571 SWIG_Python_SetConstant(d, "NB_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_NOWHERE)));
48572 SWIG_Python_SetConstant(d, "NB_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONICON)));
48573 SWIG_Python_SetConstant(d, "NB_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONLABEL)));
48574 SWIG_Python_SetConstant(d, "NB_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONITEM)));
b02396e8 48575 SWIG_Python_SetConstant(d, "NB_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONPAGE)));
1bd55598
RD
48576 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
48577 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
48578 SWIG_Python_SetConstant(d, "LB_DEFAULT",SWIG_From_int(static_cast< int >(wxLB_DEFAULT)));
48579 SWIG_Python_SetConstant(d, "LB_TOP",SWIG_From_int(static_cast< int >(wxLB_TOP)));
48580 SWIG_Python_SetConstant(d, "LB_BOTTOM",SWIG_From_int(static_cast< int >(wxLB_BOTTOM)));
48581 SWIG_Python_SetConstant(d, "LB_LEFT",SWIG_From_int(static_cast< int >(wxLB_LEFT)));
48582 SWIG_Python_SetConstant(d, "LB_RIGHT",SWIG_From_int(static_cast< int >(wxLB_RIGHT)));
48583 SWIG_Python_SetConstant(d, "LB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxLB_ALIGN_MASK)));
48584 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
48585 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
48586 SWIG_Python_SetConstant(d, "CHB_DEFAULT",SWIG_From_int(static_cast< int >(wxCHB_DEFAULT)));
48587 SWIG_Python_SetConstant(d, "CHB_TOP",SWIG_From_int(static_cast< int >(wxCHB_TOP)));
48588 SWIG_Python_SetConstant(d, "CHB_BOTTOM",SWIG_From_int(static_cast< int >(wxCHB_BOTTOM)));
48589 SWIG_Python_SetConstant(d, "CHB_LEFT",SWIG_From_int(static_cast< int >(wxCHB_LEFT)));
48590 SWIG_Python_SetConstant(d, "CHB_RIGHT",SWIG_From_int(static_cast< int >(wxCHB_RIGHT)));
48591 SWIG_Python_SetConstant(d, "CHB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxCHB_ALIGN_MASK)));
48592 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED));
48593 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING));
48594 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED));
48595 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING));
48596 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED));
48597 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED));
48598 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED));
48599 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING));
48600 SWIG_Python_SetConstant(d, "TOOL_STYLE_BUTTON",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_BUTTON)));
48601 SWIG_Python_SetConstant(d, "TOOL_STYLE_SEPARATOR",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_SEPARATOR)));
48602 SWIG_Python_SetConstant(d, "TOOL_STYLE_CONTROL",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_CONTROL)));
48603 SWIG_Python_SetConstant(d, "TB_HORIZONTAL",SWIG_From_int(static_cast< int >(wxTB_HORIZONTAL)));
48604 SWIG_Python_SetConstant(d, "TB_VERTICAL",SWIG_From_int(static_cast< int >(wxTB_VERTICAL)));
48605 SWIG_Python_SetConstant(d, "TB_3DBUTTONS",SWIG_From_int(static_cast< int >(wxTB_3DBUTTONS)));
48606 SWIG_Python_SetConstant(d, "TB_FLAT",SWIG_From_int(static_cast< int >(wxTB_FLAT)));
48607 SWIG_Python_SetConstant(d, "TB_DOCKABLE",SWIG_From_int(static_cast< int >(wxTB_DOCKABLE)));
48608 SWIG_Python_SetConstant(d, "TB_NOICONS",SWIG_From_int(static_cast< int >(wxTB_NOICONS)));
48609 SWIG_Python_SetConstant(d, "TB_TEXT",SWIG_From_int(static_cast< int >(wxTB_TEXT)));
48610 SWIG_Python_SetConstant(d, "TB_NODIVIDER",SWIG_From_int(static_cast< int >(wxTB_NODIVIDER)));
48611 SWIG_Python_SetConstant(d, "TB_NOALIGN",SWIG_From_int(static_cast< int >(wxTB_NOALIGN)));
48612 SWIG_Python_SetConstant(d, "TB_HORZ_LAYOUT",SWIG_From_int(static_cast< int >(wxTB_HORZ_LAYOUT)));
48613 SWIG_Python_SetConstant(d, "TB_HORZ_TEXT",SWIG_From_int(static_cast< int >(wxTB_HORZ_TEXT)));
704eda0c 48614 SWIG_Python_SetConstant(d, "TB_NO_TOOLTIPS",SWIG_From_int(static_cast< int >(wxTB_NO_TOOLTIPS)));
1bd55598
RD
48615 SWIG_addvarlink(SWIG_globals(),(char*)"ListCtrlNameStr",ListCtrlNameStr_get, ListCtrlNameStr_set);
48616 SWIG_Python_SetConstant(d, "LC_VRULES",SWIG_From_int(static_cast< int >(wxLC_VRULES)));
48617 SWIG_Python_SetConstant(d, "LC_HRULES",SWIG_From_int(static_cast< int >(wxLC_HRULES)));
48618 SWIG_Python_SetConstant(d, "LC_ICON",SWIG_From_int(static_cast< int >(wxLC_ICON)));
48619 SWIG_Python_SetConstant(d, "LC_SMALL_ICON",SWIG_From_int(static_cast< int >(wxLC_SMALL_ICON)));
48620 SWIG_Python_SetConstant(d, "LC_LIST",SWIG_From_int(static_cast< int >(wxLC_LIST)));
48621 SWIG_Python_SetConstant(d, "LC_REPORT",SWIG_From_int(static_cast< int >(wxLC_REPORT)));
48622 SWIG_Python_SetConstant(d, "LC_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLC_ALIGN_TOP)));
48623 SWIG_Python_SetConstant(d, "LC_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLC_ALIGN_LEFT)));
48624 SWIG_Python_SetConstant(d, "LC_AUTOARRANGE",SWIG_From_int(static_cast< int >(wxLC_AUTOARRANGE)));
48625 SWIG_Python_SetConstant(d, "LC_VIRTUAL",SWIG_From_int(static_cast< int >(wxLC_VIRTUAL)));
48626 SWIG_Python_SetConstant(d, "LC_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxLC_EDIT_LABELS)));
48627 SWIG_Python_SetConstant(d, "LC_NO_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_HEADER)));
48628 SWIG_Python_SetConstant(d, "LC_NO_SORT_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_SORT_HEADER)));
48629 SWIG_Python_SetConstant(d, "LC_SINGLE_SEL",SWIG_From_int(static_cast< int >(wxLC_SINGLE_SEL)));
48630 SWIG_Python_SetConstant(d, "LC_SORT_ASCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_ASCENDING)));
48631 SWIG_Python_SetConstant(d, "LC_SORT_DESCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_DESCENDING)));
48632 SWIG_Python_SetConstant(d, "LC_MASK_TYPE",SWIG_From_int(static_cast< int >(wxLC_MASK_TYPE)));
48633 SWIG_Python_SetConstant(d, "LC_MASK_ALIGN",SWIG_From_int(static_cast< int >(wxLC_MASK_ALIGN)));
48634 SWIG_Python_SetConstant(d, "LC_MASK_SORT",SWIG_From_int(static_cast< int >(wxLC_MASK_SORT)));
48635 SWIG_Python_SetConstant(d, "LIST_MASK_STATE",SWIG_From_int(static_cast< int >(wxLIST_MASK_STATE)));
48636 SWIG_Python_SetConstant(d, "LIST_MASK_TEXT",SWIG_From_int(static_cast< int >(wxLIST_MASK_TEXT)));
48637 SWIG_Python_SetConstant(d, "LIST_MASK_IMAGE",SWIG_From_int(static_cast< int >(wxLIST_MASK_IMAGE)));
48638 SWIG_Python_SetConstant(d, "LIST_MASK_DATA",SWIG_From_int(static_cast< int >(wxLIST_MASK_DATA)));
48639 SWIG_Python_SetConstant(d, "LIST_SET_ITEM",SWIG_From_int(static_cast< int >(wxLIST_SET_ITEM)));
48640 SWIG_Python_SetConstant(d, "LIST_MASK_WIDTH",SWIG_From_int(static_cast< int >(wxLIST_MASK_WIDTH)));
48641 SWIG_Python_SetConstant(d, "LIST_MASK_FORMAT",SWIG_From_int(static_cast< int >(wxLIST_MASK_FORMAT)));
48642 SWIG_Python_SetConstant(d, "LIST_STATE_DONTCARE",SWIG_From_int(static_cast< int >(wxLIST_STATE_DONTCARE)));
48643 SWIG_Python_SetConstant(d, "LIST_STATE_DROPHILITED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DROPHILITED)));
48644 SWIG_Python_SetConstant(d, "LIST_STATE_FOCUSED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FOCUSED)));
48645 SWIG_Python_SetConstant(d, "LIST_STATE_SELECTED",SWIG_From_int(static_cast< int >(wxLIST_STATE_SELECTED)));
48646 SWIG_Python_SetConstant(d, "LIST_STATE_CUT",SWIG_From_int(static_cast< int >(wxLIST_STATE_CUT)));
48647 SWIG_Python_SetConstant(d, "LIST_STATE_DISABLED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DISABLED)));
48648 SWIG_Python_SetConstant(d, "LIST_STATE_FILTERED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FILTERED)));
48649 SWIG_Python_SetConstant(d, "LIST_STATE_INUSE",SWIG_From_int(static_cast< int >(wxLIST_STATE_INUSE)));
48650 SWIG_Python_SetConstant(d, "LIST_STATE_PICKED",SWIG_From_int(static_cast< int >(wxLIST_STATE_PICKED)));
48651 SWIG_Python_SetConstant(d, "LIST_STATE_SOURCE",SWIG_From_int(static_cast< int >(wxLIST_STATE_SOURCE)));
48652 SWIG_Python_SetConstant(d, "LIST_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ABOVE)));
48653 SWIG_Python_SetConstant(d, "LIST_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_BELOW)));
48654 SWIG_Python_SetConstant(d, "LIST_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_NOWHERE)));
48655 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMICON)));
48656 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMLABEL)));
48657 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMRIGHT)));
48658 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMSTATEICON)));
48659 SWIG_Python_SetConstant(d, "LIST_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TOLEFT)));
48660 SWIG_Python_SetConstant(d, "LIST_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TORIGHT)));
48661 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEM)));
704eda0c 48662 SWIG_Python_SetConstant(d, "LIST_GETSUBITEMRECT_WHOLEITEM",SWIG_From_int(static_cast< int >(wxLIST_GETSUBITEMRECT_WHOLEITEM)));
1bd55598
RD
48663 SWIG_Python_SetConstant(d, "LIST_NEXT_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ABOVE)));
48664 SWIG_Python_SetConstant(d, "LIST_NEXT_ALL",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ALL)));
48665 SWIG_Python_SetConstant(d, "LIST_NEXT_BELOW",SWIG_From_int(static_cast< int >(wxLIST_NEXT_BELOW)));
48666 SWIG_Python_SetConstant(d, "LIST_NEXT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_LEFT)));
48667 SWIG_Python_SetConstant(d, "LIST_NEXT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_RIGHT)));
48668 SWIG_Python_SetConstant(d, "LIST_ALIGN_DEFAULT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_DEFAULT)));
48669 SWIG_Python_SetConstant(d, "LIST_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_LEFT)));
48670 SWIG_Python_SetConstant(d, "LIST_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_TOP)));
48671 SWIG_Python_SetConstant(d, "LIST_ALIGN_SNAP_TO_GRID",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_SNAP_TO_GRID)));
48672 SWIG_Python_SetConstant(d, "LIST_FORMAT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_LEFT)));
48673 SWIG_Python_SetConstant(d, "LIST_FORMAT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_RIGHT)));
48674 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTRE",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTRE)));
48675 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTER",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTER)));
48676 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE)));
48677 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE_USEHEADER",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE_USEHEADER)));
48678 SWIG_Python_SetConstant(d, "LIST_RECT_BOUNDS",SWIG_From_int(static_cast< int >(wxLIST_RECT_BOUNDS)));
48679 SWIG_Python_SetConstant(d, "LIST_RECT_ICON",SWIG_From_int(static_cast< int >(wxLIST_RECT_ICON)));
48680 SWIG_Python_SetConstant(d, "LIST_RECT_LABEL",SWIG_From_int(static_cast< int >(wxLIST_RECT_LABEL)));
48681 SWIG_Python_SetConstant(d, "LIST_FIND_UP",SWIG_From_int(static_cast< int >(wxLIST_FIND_UP)));
48682 SWIG_Python_SetConstant(d, "LIST_FIND_DOWN",SWIG_From_int(static_cast< int >(wxLIST_FIND_DOWN)));
48683 SWIG_Python_SetConstant(d, "LIST_FIND_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FIND_LEFT)));
48684 SWIG_Python_SetConstant(d, "LIST_FIND_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FIND_RIGHT)));
48685 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
48686 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
48687 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
48688 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
48689 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
48690 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
48691 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
48692 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
48693 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
48694 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
48695 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
48696 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
48697 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
48698 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
48699 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
48700 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
48701 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
48702 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
48703 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
48704 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
48705
48706 // Map renamed classes back to their common name for OOR
48707 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
48708
48709 SWIG_addvarlink(SWIG_globals(),(char*)"TreeCtrlNameStr",TreeCtrlNameStr_get, TreeCtrlNameStr_set);
48710 SWIG_Python_SetConstant(d, "TR_NO_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_NO_BUTTONS)));
48711 SWIG_Python_SetConstant(d, "TR_HAS_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_HAS_BUTTONS)));
48712 SWIG_Python_SetConstant(d, "TR_NO_LINES",SWIG_From_int(static_cast< int >(wxTR_NO_LINES)));
48713 SWIG_Python_SetConstant(d, "TR_LINES_AT_ROOT",SWIG_From_int(static_cast< int >(wxTR_LINES_AT_ROOT)));
48714 SWIG_Python_SetConstant(d, "TR_SINGLE",SWIG_From_int(static_cast< int >(wxTR_SINGLE)));
48715 SWIG_Python_SetConstant(d, "TR_MULTIPLE",SWIG_From_int(static_cast< int >(wxTR_MULTIPLE)));
48716 SWIG_Python_SetConstant(d, "TR_EXTENDED",SWIG_From_int(static_cast< int >(wxTR_EXTENDED)));
48717 SWIG_Python_SetConstant(d, "TR_HAS_VARIABLE_ROW_HEIGHT",SWIG_From_int(static_cast< int >(wxTR_HAS_VARIABLE_ROW_HEIGHT)));
48718 SWIG_Python_SetConstant(d, "TR_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxTR_EDIT_LABELS)));
48719 SWIG_Python_SetConstant(d, "TR_HIDE_ROOT",SWIG_From_int(static_cast< int >(wxTR_HIDE_ROOT)));
48720 SWIG_Python_SetConstant(d, "TR_ROW_LINES",SWIG_From_int(static_cast< int >(wxTR_ROW_LINES)));
48721 SWIG_Python_SetConstant(d, "TR_FULL_ROW_HIGHLIGHT",SWIG_From_int(static_cast< int >(wxTR_FULL_ROW_HIGHLIGHT)));
48722 SWIG_Python_SetConstant(d, "TR_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxTR_DEFAULT_STYLE)));
48723 SWIG_Python_SetConstant(d, "TR_TWIST_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_TWIST_BUTTONS)));
1bd55598
RD
48724 SWIG_Python_SetConstant(d, "TreeItemIcon_Normal",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Normal)));
48725 SWIG_Python_SetConstant(d, "TreeItemIcon_Selected",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Selected)));
48726 SWIG_Python_SetConstant(d, "TreeItemIcon_Expanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Expanded)));
48727 SWIG_Python_SetConstant(d, "TreeItemIcon_SelectedExpanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_SelectedExpanded)));
48728 SWIG_Python_SetConstant(d, "TreeItemIcon_Max",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Max)));
48729 SWIG_Python_SetConstant(d, "TREE_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ABOVE)));
48730 SWIG_Python_SetConstant(d, "TREE_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_BELOW)));
48731 SWIG_Python_SetConstant(d, "TREE_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_NOWHERE)));
48732 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMBUTTON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMBUTTON)));
48733 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMICON)));
48734 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMINDENT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMINDENT)));
48735 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLABEL)));
48736 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMRIGHT)));
48737 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMSTATEICON)));
48738 SWIG_Python_SetConstant(d, "TREE_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TOLEFT)));
48739 SWIG_Python_SetConstant(d, "TREE_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TORIGHT)));
48740 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMUPPERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMUPPERPART)));
48741 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLOWERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLOWERPART)));
48742 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEM)));
48743 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
48744 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
48745 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
48746 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
48747 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
48748 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
48749 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
48750 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
48751 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
48752 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
48753 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
48754 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
48755 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
48756 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
48757 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
48758 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
48759 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
48760 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
48761 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
48762 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
48763 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU));
b02396e8 48764 SWIG_addvarlink(SWIG_globals(),(char*)"NullTreeItemId",NullTreeItemId_get, NullTreeItemId_set);
1bd55598
RD
48765
48766 // Map renamed classes back to their common name for OOR
48767 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
48768 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
48769
48770 SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogDefaultFolderStr",DirDialogDefaultFolderStr_get, DirDialogDefaultFolderStr_set);
48771 SWIG_Python_SetConstant(d, "DIRCTRL_DIR_ONLY",SWIG_From_int(static_cast< int >(wxDIRCTRL_DIR_ONLY)));
48772 SWIG_Python_SetConstant(d, "DIRCTRL_SELECT_FIRST",SWIG_From_int(static_cast< int >(wxDIRCTRL_SELECT_FIRST)));
48773 SWIG_Python_SetConstant(d, "DIRCTRL_SHOW_FILTERS",SWIG_From_int(static_cast< int >(wxDIRCTRL_SHOW_FILTERS)));
48774 SWIG_Python_SetConstant(d, "DIRCTRL_3D_INTERNAL",SWIG_From_int(static_cast< int >(wxDIRCTRL_3D_INTERNAL)));
48775 SWIG_Python_SetConstant(d, "DIRCTRL_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxDIRCTRL_EDIT_LABELS)));
48776 SWIG_Python_SetConstant(d, "FRAME_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxFRAME_EX_CONTEXTHELP)));
48777 SWIG_Python_SetConstant(d, "DIALOG_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxDIALOG_EX_CONTEXTHELP)));
48778 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
48779 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
704eda0c
RD
48780 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Unknown",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Unknown)));
48781 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Keyboard",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Keyboard)));
48782 SWIG_Python_SetConstant(d, "HelpEvent_Origin_HelpButton",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_HelpButton)));
1bd55598
RD
48783
48784 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
48785
48786 SWIG_addvarlink(SWIG_globals(),(char*)"DatePickerCtrlNameStr",DatePickerCtrlNameStr_get, DatePickerCtrlNameStr_set);
48787 SWIG_Python_SetConstant(d, "DP_DEFAULT",SWIG_From_int(static_cast< int >(wxDP_DEFAULT)));
48788 SWIG_Python_SetConstant(d, "DP_SPIN",SWIG_From_int(static_cast< int >(wxDP_SPIN)));
48789 SWIG_Python_SetConstant(d, "DP_DROPDOWN",SWIG_From_int(static_cast< int >(wxDP_DROPDOWN)));
48790 SWIG_Python_SetConstant(d, "DP_SHOWCENTURY",SWIG_From_int(static_cast< int >(wxDP_SHOWCENTURY)));
48791 SWIG_Python_SetConstant(d, "DP_ALLOWNONE",SWIG_From_int(static_cast< int >(wxDP_ALLOWNONE)));
704eda0c
RD
48792 SWIG_addvarlink(SWIG_globals(),(char*)"HyperlinkCtrlNameStr",HyperlinkCtrlNameStr_get, HyperlinkCtrlNameStr_set);
48793 SWIG_Python_SetConstant(d, "HL_CONTEXTMENU",SWIG_From_int(static_cast< int >(wxHL_CONTEXTMENU)));
48794 SWIG_Python_SetConstant(d, "HL_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxHL_DEFAULT_STYLE)));
48795 PyDict_SetItemString(d, "wxEVT_COMMAND_HYPERLINK", PyInt_FromLong(wxEVT_COMMAND_HYPERLINK));
b850e7f3
RD
48796 SWIG_Python_SetConstant(d, "PB_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxPB_USE_TEXTCTRL)));
48797 SWIG_addvarlink(SWIG_globals(),(char*)"ColourPickerCtrlNameStr",ColourPickerCtrlNameStr_get, ColourPickerCtrlNameStr_set);
48798 SWIG_Python_SetConstant(d, "CLRP_SHOW_LABEL",SWIG_From_int(static_cast< int >(wxCLRP_SHOW_LABEL)));
48799 SWIG_Python_SetConstant(d, "CLRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxCLRP_USE_TEXTCTRL)));
48800 SWIG_Python_SetConstant(d, "CLRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCLRP_DEFAULT_STYLE)));
48801 PyDict_SetItemString(d, "wxEVT_COMMAND_COLOURPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLOURPICKER_CHANGED));
48802 SWIG_addvarlink(SWIG_globals(),(char*)"FilePickerCtrlNameStr",FilePickerCtrlNameStr_get, FilePickerCtrlNameStr_set);
48803 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorPromptStr",FileSelectorPromptStr_get, FileSelectorPromptStr_set);
48804 SWIG_addvarlink(SWIG_globals(),(char*)"DirPickerCtrlNameStr",DirPickerCtrlNameStr_get, DirPickerCtrlNameStr_set);
48805 SWIG_addvarlink(SWIG_globals(),(char*)"DirSelectorPromptStr",DirSelectorPromptStr_get, DirSelectorPromptStr_set);
48806 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorDefaultWildcardStr",FileSelectorDefaultWildcardStr_get, FileSelectorDefaultWildcardStr_set);
48807 SWIG_Python_SetConstant(d, "FLP_OPEN",SWIG_From_int(static_cast< int >(wxFLP_OPEN)));
48808 SWIG_Python_SetConstant(d, "FLP_SAVE",SWIG_From_int(static_cast< int >(wxFLP_SAVE)));
48809 SWIG_Python_SetConstant(d, "FLP_OVERWRITE_PROMPT",SWIG_From_int(static_cast< int >(wxFLP_OVERWRITE_PROMPT)));
48810 SWIG_Python_SetConstant(d, "FLP_FILE_MUST_EXIST",SWIG_From_int(static_cast< int >(wxFLP_FILE_MUST_EXIST)));
48811 SWIG_Python_SetConstant(d, "FLP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxFLP_CHANGE_DIR)));
48812 SWIG_Python_SetConstant(d, "DIRP_DIR_MUST_EXIST",SWIG_From_int(static_cast< int >(wxDIRP_DIR_MUST_EXIST)));
48813 SWIG_Python_SetConstant(d, "DIRP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxDIRP_CHANGE_DIR)));
48814 SWIG_Python_SetConstant(d, "FLP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFLP_USE_TEXTCTRL)));
48815 SWIG_Python_SetConstant(d, "FLP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFLP_DEFAULT_STYLE)));
48816 SWIG_Python_SetConstant(d, "DIRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxDIRP_USE_TEXTCTRL)));
48817 SWIG_Python_SetConstant(d, "DIRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxDIRP_DEFAULT_STYLE)));
48818 PyDict_SetItemString(d, "wxEVT_COMMAND_FILEPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FILEPICKER_CHANGED));
48819 PyDict_SetItemString(d, "wxEVT_COMMAND_DIRPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_DIRPICKER_CHANGED));
48820 SWIG_addvarlink(SWIG_globals(),(char*)"FontPickerCtrlNameStr",FontPickerCtrlNameStr_get, FontPickerCtrlNameStr_set);
48821 SWIG_Python_SetConstant(d, "FNTP_FONTDESC_AS_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_FONTDESC_AS_LABEL)));
48822 SWIG_Python_SetConstant(d, "FNTP_USEFONT_FOR_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_USEFONT_FOR_LABEL)));
48823 SWIG_Python_SetConstant(d, "FNTP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFNTP_USE_TEXTCTRL)));
48824 SWIG_Python_SetConstant(d, "FNTP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFNTP_DEFAULT_STYLE)));
48825 PyDict_SetItemString(d, "wxEVT_COMMAND_FONTPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FONTPICKER_CHANGED));
d55e5bfc
RD
48826}
48827