]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/gtk/_controls_wrap.cpp
cleanup - reformatting
[wxWidgets.git] / wxPython / src / gtk / _controls_wrap.cpp
CommitLineData
d14a1e28
RD
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
0085ce49 3 * Version 1.3.29
d14a1e28
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
0085ce49 12#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
d14a1e28
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);
093d3ff1 27};
d14a1e28
RD
28#endif
29
0085ce49 30/* -----------------------------------------------------------------------------
32fe5131
RD
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
0085ce49 33 * ----------------------------------------------------------------------------- */
d14a1e28 34
32fe5131
RD
35/* template workaround for compilers that cannot correctly implement the C++ standard */
36#ifndef SWIGTEMPLATEDISAMBIGUATOR
0085ce49
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
093d3ff1 46#endif
d14a1e28 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
0085ce49
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
0085ce49
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
0085ce49
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
0085ce49
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
0085ce49
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
c9c7117a 127
0085ce49 128/* Python.h has to appear first */
093d3ff1 129#include <Python.h>
d14a1e28 130
0085ce49 131/* -----------------------------------------------------------------------------
093d3ff1 132 * swigrun.swg
d14a1e28 133 *
0085ce49
RD
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
d14a1e28 137
093d3ff1
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"
d14a1e28 141
093d3ff1
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)
d14a1e28 147#else
32fe5131 148# define SWIG_TYPE_TABLE_NAME
093d3ff1
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
093d3ff1 160#ifndef SWIGRUNTIME
32fe5131 161# define SWIGRUNTIME SWIGINTERN
093d3ff1 162#endif
32fe5131 163
093d3ff1 164#ifndef SWIGRUNTIMEINLINE
32fe5131 165# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
d14a1e28
RD
166#endif
167
0085ce49
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
d14a1e28
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 */
d14a1e28 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 */
0085ce49 325 int owndata; /* flag if the structure owns the clientdata */
d14a1e28
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
093d3ff1
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;
0085ce49 361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
093d3ff1
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
093d3ff1
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;
093d3ff1
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
093d3ff1 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;
093d3ff1 397 }
32fe5131
RD
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
093d3ff1 400 }
32fe5131 401 return equiv;
093d3ff1
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
093d3ff1
RD
427/*
428 Check the typename
429*/
32fe5131 430SWIGRUNTIME swig_cast_info *
093d3ff1 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);
093d3ff1
RD
439}
440
441/*
442 Cast a pointer up an inheritance hierarchy
443*/
444SWIGRUNTIMEINLINE void *
32fe5131 445SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
093d3ff1
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. */
0085ce49 481 if (!type) return NULL;
093d3ff1
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
093d3ff1
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;
093d3ff1
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);
093d3ff1 507 }
32fe5131
RD
508 }
509 cast = cast->next;
510 }
511}
0085ce49
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);
093d3ff1 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);
093d3ff1 591 }
32fe5131
RD
592
593 /* neither found a match */
594 return 0;
093d3ff1
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;
093d3ff1 605 for (; u != eu; ++u) {
32fe5131 606 register unsigned char uu = *u;
093d3ff1
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;
093d3ff1 620 for (; u != eu; ++u) {
32fe5131 621 register char d = *(c++);
0085ce49 622 register unsigned char uu;
093d3ff1
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
093d3ff1
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}
d14a1e28 682
093d3ff1
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}
d14a1e28
RD
695
696#ifdef __cplusplus
697}
698#endif
699
0085ce49
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
d14a1e28 714
0085ce49
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
093d3ff1 764#endif
0085ce49
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
c32bde28 799
093d3ff1 800/* -----------------------------------------------------------------------------
0085ce49 801 * error manipulation
093d3ff1 802 * ----------------------------------------------------------------------------- */
d14a1e28 803
0085ce49
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}
d14a1e28 846
0085ce49
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
093d3ff1 935#endif
d14a1e28 936
0085ce49
RD
937/* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
093d3ff1 940
0085ce49
RD
941#ifdef __cplusplus
942extern "C" {
943#if 0
944} /* cc-mode */
945#endif
946#endif
093d3ff1
RD
947
948/* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
d14a1e28 951
093d3ff1 952/* Constant Types */
093d3ff1
RD
953#define SWIG_PY_POINTER 4
954#define SWIG_PY_BINARY 5
955
956/* Constant information structure */
957typedef struct swig_const_info {
0085ce49
RD
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
093d3ff1 964} swig_const_info;
d14a1e28 965
994141e6 966#ifdef __cplusplus
0085ce49
RD
967#if 0
968{ /* cc-mode */
969#endif
093d3ff1
RD
970}
971#endif
994141e6 972
15afbcd0 973
0085ce49
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 *
093d3ff1
RD
978 * pyrun.swg
979 *
0085ce49
RD
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
093d3ff1 983 *
0085ce49 984 * ----------------------------------------------------------------------------- */
15afbcd0 985
093d3ff1 986/* Common SWIG API */
994141e6 987
0085ce49
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
994141e6 996
0085ce49
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)
994141e6 1000
0085ce49
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)
d14a1e28 1004
0085ce49
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)
4d5c3d91 1008
0085ce49
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
4d5c3d91 1013
0085ce49 1014/* Runtime API */
15afbcd0 1015
0085ce49
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
0085ce49
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
15afbcd0 1026
0085ce49 1027/* Runtime API implementation */
093d3ff1 1028
0085ce49 1029/* Error manipulation */
093d3ff1 1030
0085ce49
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;
15afbcd0
RD
1037}
1038
0085ce49
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;
093d3ff1 1044}
15afbcd0 1045
0085ce49 1046#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
32fe5131 1047
0085ce49 1048/* Set a constant value */
093d3ff1 1049
0085ce49
RD
1050SWIGINTERN void
1051SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1052 PyDict_SetItemString(d, (char*) name, obj);
1053 Py_DECREF(obj);
15afbcd0
RD
1054}
1055
0085ce49 1056/* Append a value to the result obj */
15afbcd0 1057
0085ce49
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;
c32bde28 1084 } else {
0085ce49
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);
c32bde28 1096 }
0085ce49
RD
1097 return result;
1098#endif
994141e6 1099}
093d3ff1 1100
0085ce49 1101/* Unpack the argument tuple */
093d3ff1 1102
0085ce49
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*/
093d3ff1
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
093d3ff1 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 */
093d3ff1
RD
1609#endif
1610 };
1611
0085ce49 1612 static PyTypeObject pyswigobject_type;
32fe5131 1613 static int type_init = 0;
093d3ff1 1614 if (!type_init) {
0085ce49
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 */
093d3ff1 1628#endif
0085ce49
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 */
093d3ff1 1647#if PY_VERSION_HEX >= 0x02020000
0085ce49
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 */
15afbcd0 1668#endif
093d3ff1 1669#if PY_VERSION_HEX >= 0x02030000
0085ce49 1670 0, /* tp_del */
093d3ff1
RD
1671#endif
1672#ifdef COUNT_ALLOCS
0085ce49 1673 0,0,0,0 /* tp_alloc -> tp_next */
093d3ff1 1674#endif
0085ce49 1675 };
32fe5131 1676 pyswigobject_type = tmp;
0085ce49 1677 pyswigobject_type.ob_type = &PyType_Type;
093d3ff1
RD
1678 type_init = 1;
1679 }
32fe5131 1680 return &pyswigobject_type;
093d3ff1
RD
1681}
1682
1683SWIGRUNTIME PyObject *
0085ce49 1684PySwigObject_New(void *ptr, swig_type_info *ty, int own)
093d3ff1 1685{
0085ce49
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 }
0085ce49 1693 return (PyObject *)sobj;
093d3ff1
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;
0085ce49 1703 swig_type_info *ty;
093d3ff1
RD
1704 size_t size;
1705} PySwigPacked;
1706
1707SWIGRUNTIME int
0085ce49 1708PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
093d3ff1
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 }
0085ce49 1716 fputs(v->ty->name,fp);
093d3ff1
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))) {
0085ce49 1726 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
093d3ff1 1727 } else {
0085ce49 1728 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
093d3ff1
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))){
0085ce49 1737 return PyString_FromFormat("%s%s", result, v->ty->name);
093d3ff1 1738 } else {
0085ce49 1739 return PyString_FromString(v->ty->name);
093d3ff1
RD
1740 }
1741}
1742
1743SWIGRUNTIME int
1744PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1745{
0085ce49
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);
093d3ff1
RD
1750}
1751
0085ce49 1752SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
093d3ff1
RD
1753
1754SWIGRUNTIME PyTypeObject*
32fe5131 1755PySwigPacked_type(void) {
0085ce49
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 */
093d3ff1
RD
1831#endif
1832#if PY_VERSION_HEX >= 0x02030000
0085ce49 1833 0, /* tp_del */
093d3ff1
RD
1834#endif
1835#ifdef COUNT_ALLOCS
0085ce49 1836 0,0,0,0 /* tp_alloc -> tp_next */
093d3ff1 1837#endif
0085ce49 1838 };
32fe5131 1839 pyswigpacked_type = tmp;
0085ce49 1840 pyswigpacked_type.ob_type = &PyType_Type;
093d3ff1
RD
1841 type_init = 1;
1842 }
32fe5131 1843 return &pyswigpacked_type;
093d3ff1
RD
1844}
1845
1846SWIGRUNTIME PyObject *
0085ce49 1847PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
093d3ff1 1848{
0085ce49
RD
1849 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1850 if (sobj) {
093d3ff1 1851 void *pack = malloc(size);
32fe5131
RD
1852 if (pack) {
1853 memcpy(pack, ptr, size);
0085ce49
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 }
093d3ff1 1861 }
0085ce49 1862 return (PyObject *) sobj;
093d3ff1
RD
1863}
1864
0085ce49 1865SWIGRUNTIME swig_type_info *
093d3ff1
RD
1866PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1867{
0085ce49
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 }
093d3ff1
RD
1876}
1877
093d3ff1 1878/* -----------------------------------------------------------------------------
0085ce49 1879 * pointers/data manipulation
093d3ff1
RD
1880 * ----------------------------------------------------------------------------- */
1881
0085ce49
RD
1882SWIGRUNTIMEINLINE PyObject *
1883_SWIG_This(void)
1884{
1885 return PyString_FromString("this");
1886}
093d3ff1 1887
0085ce49
RD
1888SWIGRUNTIME PyObject *
1889SWIG_This(void)
1890{
1891 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1892 return swig_this;
1893}
093d3ff1 1894
0085ce49 1895/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
093d3ff1 1896
0085ce49
RD
1897SWIGRUNTIME PySwigObject *
1898SWIG_Python_GetSwigThis(PyObject *pyobj)
093d3ff1 1899{
0085ce49
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);
093d3ff1 1922 } else {
0085ce49
RD
1923 if (PyErr_Occurred()) PyErr_Clear();
1924 return 0;
093d3ff1 1925 }
093d3ff1 1926 }
0085ce49
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;
093d3ff1
RD
1943 }
1944}
1945
0085ce49
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 }
093d3ff1 1957 }
0085ce49 1958 return 0;
093d3ff1
RD
1959}
1960
0085ce49
RD
1961/* Convert a pointer value */
1962
093d3ff1 1963SWIGRUNTIME int
0085ce49
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 }
093d3ff1 1988 } else {
0085ce49
RD
1989 if (ptr) *ptr = vptr;
1990 break;
093d3ff1 1991 }
093d3ff1 1992 }
0085ce49
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 }
093d3ff1
RD
2038 }
2039}
2040
0085ce49
RD
2041/* Convert a function ptr value */
2042
093d3ff1 2043SWIGRUNTIME int
0085ce49
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);
093d3ff1 2047 } else {
0085ce49
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;
093d3ff1
RD
2065 }
2066}
2067
0085ce49 2068/* Convert a packed value value */
093d3ff1 2069
093d3ff1 2070SWIGRUNTIME int
0085ce49
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 }
093d3ff1 2080 }
0085ce49
RD
2081 return SWIG_OK;
2082}
093d3ff1 2083
0085ce49
RD
2084/* -----------------------------------------------------------------------------
2085 * Create a new pointer object
2086 * ----------------------------------------------------------------------------- */
093d3ff1 2087
0085ce49
RD
2088/*
2089 Create a new instance object, whitout calling __init__, and set the
2090 'this' attribute.
2091*/
093d3ff1 2092
0085ce49
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 }
093d3ff1 2111 }
0085ce49
RD
2112#else
2113 PyObject *key = SWIG_This();
2114 PyObject_SetAttr(inst, key, swig_this);
2115#endif
093d3ff1 2116 }
0085ce49
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);
093d3ff1 2122 }
0085ce49
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;
093d3ff1 2136 }
0085ce49
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;
093d3ff1 2143 }
0085ce49
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
093d3ff1
RD
2154}
2155
0085ce49
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 }
093d3ff1 2171#endif
0085ce49
RD
2172 dict = PyObject_GetAttrString(inst, "__dict__");
2173 PyDict_SetItem(dict, SWIG_This(), swig_this);
2174 Py_DECREF(dict);
2175}
093d3ff1 2176
0085ce49
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]);
093d3ff1 2187 } else {
0085ce49 2188 SWIG_Python_SetSwigThis(obj[0], obj[1]);
093d3ff1 2189 }
0085ce49 2190 return SWIG_Py_Void();
093d3ff1 2191 }
0085ce49
RD
2192}
2193
2194/* Create a new pointer object */
093d3ff1 2195
093d3ff1 2196SWIGRUNTIME PyObject *
0085ce49 2197SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
093d3ff1 2198 if (!ptr) {
0085ce49
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;
093d3ff1 2209 }
093d3ff1 2210 }
0085ce49 2211 return robj;
093d3ff1 2212 }
093d3ff1
RD
2213}
2214
0085ce49
RD
2215/* Create a new packed object */
2216
2217SWIGRUNTIMEINLINE PyObject *
093d3ff1 2218SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
0085ce49 2219 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
093d3ff1
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) {
093d3ff1
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 }
093d3ff1 2244#endif
32fe5131
RD
2245 }
2246 return (swig_module_info *) type_pointer;
093d3ff1
RD
2247}
2248
32fe5131
RD
2249#if PY_MAJOR_VERSION < 2
2250/* PyModule_AddObject function was introduced in Python 2.0. The following function
0085ce49 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");
0085ce49 2259 return SWIG_ERROR;
32fe5131
RD
2260 }
2261 if (!o) {
2262 PyErr_SetString(PyExc_TypeError,
2263 "PyModule_AddObject() needs non-NULL value");
0085ce49 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));
0085ce49 2272 return SWIG_ERROR;
32fe5131
RD
2273 }
2274 if (PyDict_SetItemString(dict, name, o))
0085ce49 2275 return SWIG_ERROR;
32fe5131 2276 Py_DECREF(o);
0085ce49 2277 return SWIG_OK;
093d3ff1 2278}
32fe5131 2279#endif
093d3ff1 2280
0085ce49
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);
0085ce49 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);
0085ce49
RD
2306 } else {
2307 Py_XDECREF(pointer);
32fe5131
RD
2308 }
2309}
093d3ff1 2310
0085ce49
RD
2311/* The python cached type query */
2312SWIGRUNTIME PyObject *
2313SWIG_Python_TypeCache() {
2314 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2315 return cache;
093d3ff1 2316}
093d3ff1 2317
0085ce49
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]
2490#define SWIGTYPE_p_wxCloseEvent swig_types[28]
2491#define SWIGTYPE_p_wxColour swig_types[29]
2492#define SWIGTYPE_p_wxComboBox swig_types[30]
2493#define SWIGTYPE_p_wxCommandEvent swig_types[31]
2494#define SWIGTYPE_p_wxContextHelp swig_types[32]
2495#define SWIGTYPE_p_wxContextHelpButton swig_types[33]
2496#define SWIGTYPE_p_wxContextMenuEvent swig_types[34]
2497#define SWIGTYPE_p_wxControl swig_types[35]
2498#define SWIGTYPE_p_wxControlWithItems swig_types[36]
2499#define SWIGTYPE_p_wxCursor swig_types[37]
2500#define SWIGTYPE_p_wxDC swig_types[38]
2501#define SWIGTYPE_p_wxDateEvent swig_types[39]
2502#define SWIGTYPE_p_wxDatePickerCtrl swig_types[40]
2503#define SWIGTYPE_p_wxDateTime swig_types[41]
2504#define SWIGTYPE_p_wxDirFilterListCtrl swig_types[42]
2505#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[43]
2506#define SWIGTYPE_p_wxDropFilesEvent swig_types[44]
2507#define SWIGTYPE_p_wxDuplexMode swig_types[45]
2508#define SWIGTYPE_p_wxEraseEvent swig_types[46]
2509#define SWIGTYPE_p_wxEvent swig_types[47]
2510#define SWIGTYPE_p_wxEvtHandler swig_types[48]
2511#define SWIGTYPE_p_wxFSFile swig_types[49]
2512#define SWIGTYPE_p_wxFileSystem swig_types[50]
2513#define SWIGTYPE_p_wxFlexGridSizer swig_types[51]
2514#define SWIGTYPE_p_wxFocusEvent swig_types[52]
2515#define SWIGTYPE_p_wxFont swig_types[53]
2516#define SWIGTYPE_p_wxGBSizerItem swig_types[54]
2517#define SWIGTYPE_p_wxGIFHandler swig_types[55]
2518#define SWIGTYPE_p_wxGauge swig_types[56]
2519#define SWIGTYPE_p_wxGenericDirCtrl swig_types[57]
2520#define SWIGTYPE_p_wxGenericDragImage swig_types[58]
2521#define SWIGTYPE_p_wxGridBagSizer swig_types[59]
2522#define SWIGTYPE_p_wxGridSizer swig_types[60]
2523#define SWIGTYPE_p_wxHelpEvent swig_types[61]
2524#define SWIGTYPE_p_wxHelpProvider swig_types[62]
2525#define SWIGTYPE_p_wxICOHandler swig_types[63]
2526#define SWIGTYPE_p_wxIcon swig_types[64]
2527#define SWIGTYPE_p_wxIconizeEvent swig_types[65]
2528#define SWIGTYPE_p_wxIdleEvent swig_types[66]
2529#define SWIGTYPE_p_wxImage swig_types[67]
2530#define SWIGTYPE_p_wxImageHandler swig_types[68]
2531#define SWIGTYPE_p_wxImageList swig_types[69]
2532#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[70]
2533#define SWIGTYPE_p_wxInitDialogEvent swig_types[71]
2534#define SWIGTYPE_p_wxItemContainer swig_types[72]
2535#define SWIGTYPE_p_wxJPEGHandler swig_types[73]
2536#define SWIGTYPE_p_wxKeyEvent swig_types[74]
2537#define SWIGTYPE_p_wxLayoutConstraints swig_types[75]
2538#define SWIGTYPE_p_wxListBox swig_types[76]
2539#define SWIGTYPE_p_wxListEvent swig_types[77]
2540#define SWIGTYPE_p_wxListItem swig_types[78]
2541#define SWIGTYPE_p_wxListItemAttr swig_types[79]
2542#define SWIGTYPE_p_wxListView swig_types[80]
2543#define SWIGTYPE_p_wxListbook swig_types[81]
2544#define SWIGTYPE_p_wxListbookEvent swig_types[82]
2545#define SWIGTYPE_p_wxMaximizeEvent swig_types[83]
2546#define SWIGTYPE_p_wxMemoryDC swig_types[84]
2547#define SWIGTYPE_p_wxMenu swig_types[85]
2548#define SWIGTYPE_p_wxMenuBar swig_types[86]
2549#define SWIGTYPE_p_wxMenuEvent swig_types[87]
2550#define SWIGTYPE_p_wxMenuItem swig_types[88]
2551#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[89]
2552#define SWIGTYPE_p_wxMouseEvent swig_types[90]
2553#define SWIGTYPE_p_wxMoveEvent swig_types[91]
2554#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[92]
2555#define SWIGTYPE_p_wxNcPaintEvent swig_types[93]
2556#define SWIGTYPE_p_wxNotebook swig_types[94]
2557#define SWIGTYPE_p_wxNotebookEvent swig_types[95]
2558#define SWIGTYPE_p_wxNotifyEvent swig_types[96]
2559#define SWIGTYPE_p_wxObject swig_types[97]
2560#define SWIGTYPE_p_wxPCXHandler swig_types[98]
2561#define SWIGTYPE_p_wxPNGHandler swig_types[99]
2562#define SWIGTYPE_p_wxPNMHandler swig_types[100]
2563#define SWIGTYPE_p_wxPaintEvent swig_types[101]
2564#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[102]
2565#define SWIGTYPE_p_wxPaperSize swig_types[103]
2566#define SWIGTYPE_p_wxPoint swig_types[104]
2567#define SWIGTYPE_p_wxPyApp swig_types[105]
2568#define SWIGTYPE_p_wxPyCommandEvent swig_types[106]
2569#define SWIGTYPE_p_wxPyControl swig_types[107]
2570#define SWIGTYPE_p_wxPyEvent swig_types[108]
2571#define SWIGTYPE_p_wxPyImageHandler swig_types[109]
2572#define SWIGTYPE_p_wxPyListCtrl swig_types[110]
2573#define SWIGTYPE_p_wxPySizer swig_types[111]
2574#define SWIGTYPE_p_wxPyTreeCtrl swig_types[112]
2575#define SWIGTYPE_p_wxPyTreeItemData swig_types[113]
2576#define SWIGTYPE_p_wxPyValidator swig_types[114]
2577#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[115]
2578#define SWIGTYPE_p_wxRadioBox swig_types[116]
2579#define SWIGTYPE_p_wxRadioButton swig_types[117]
2580#define SWIGTYPE_p_wxRect swig_types[118]
2581#define SWIGTYPE_p_wxScrollBar swig_types[119]
2582#define SWIGTYPE_p_wxScrollEvent swig_types[120]
2583#define SWIGTYPE_p_wxScrollWinEvent swig_types[121]
2584#define SWIGTYPE_p_wxSetCursorEvent swig_types[122]
2585#define SWIGTYPE_p_wxShowEvent swig_types[123]
2586#define SWIGTYPE_p_wxSimpleHelpProvider swig_types[124]
2587#define SWIGTYPE_p_wxSize swig_types[125]
2588#define SWIGTYPE_p_wxSizeEvent swig_types[126]
2589#define SWIGTYPE_p_wxSizer swig_types[127]
2590#define SWIGTYPE_p_wxSizerItem swig_types[128]
2591#define SWIGTYPE_p_wxSlider swig_types[129]
2592#define SWIGTYPE_p_wxSpinButton swig_types[130]
2593#define SWIGTYPE_p_wxSpinCtrl swig_types[131]
2594#define SWIGTYPE_p_wxSpinEvent swig_types[132]
2595#define SWIGTYPE_p_wxStaticBitmap swig_types[133]
2596#define SWIGTYPE_p_wxStaticBox swig_types[134]
2597#define SWIGTYPE_p_wxStaticBoxSizer swig_types[135]
2598#define SWIGTYPE_p_wxStaticLine swig_types[136]
2599#define SWIGTYPE_p_wxStaticText swig_types[137]
2600#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[138]
2601#define SWIGTYPE_p_wxString swig_types[139]
2602#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[140]
2603#define SWIGTYPE_p_wxTIFFHandler swig_types[141]
2604#define SWIGTYPE_p_wxTextAttr swig_types[142]
2605#define SWIGTYPE_p_wxTextCtrl swig_types[143]
2606#define SWIGTYPE_p_wxTextUrlEvent swig_types[144]
2607#define SWIGTYPE_p_wxToggleButton swig_types[145]
2608#define SWIGTYPE_p_wxToolBar swig_types[146]
2609#define SWIGTYPE_p_wxToolBarBase swig_types[147]
2610#define SWIGTYPE_p_wxToolBarToolBase swig_types[148]
7e08d4ef
RD
2611#define SWIGTYPE_p_wxToolbook swig_types[149]
2612#define SWIGTYPE_p_wxToolbookEvent swig_types[150]
2613#define SWIGTYPE_p_wxTreeCtrl swig_types[151]
2614#define SWIGTYPE_p_wxTreeEvent swig_types[152]
2615#define SWIGTYPE_p_wxTreeItemId swig_types[153]
2616#define SWIGTYPE_p_wxTreebook swig_types[154]
2617#define SWIGTYPE_p_wxTreebookEvent swig_types[155]
2618#define SWIGTYPE_p_wxUpdateUIEvent swig_types[156]
2619#define SWIGTYPE_p_wxValidator swig_types[157]
2620#define SWIGTYPE_p_wxVisualAttributes swig_types[158]
2621#define SWIGTYPE_p_wxWindow swig_types[159]
2622#define SWIGTYPE_p_wxWindowCreateEvent swig_types[160]
2623#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[161]
2624#define SWIGTYPE_p_wxXPMHandler swig_types[162]
0085ce49
RD
2625static swig_type_info *swig_types[164];
2626static swig_module_info swig_module = {swig_types, 163, 0, 0, 0, 0};
32fe5131
RD
2627#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2628#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
093d3ff1
RD
2629
2630/* -------- TYPES TABLE (END) -------- */
2631
0085ce49
RD
2632#if (PY_VERSION_HEX <= 0x02000000)
2633# if !defined(SWIG_PYTHON_CLASSIC)
2634# error "This python version requires to use swig with the '-classic' option"
2635# endif
2636#endif
2637#if (PY_VERSION_HEX <= 0x02020000)
2638# error "This python version requires to use swig with the '-nomodern' option"
2639#endif
2640#if (PY_VERSION_HEX <= 0x02020000)
2641# error "This python version requires to use swig with the '-nomodernargs' option"
2642#endif
2643#ifndef METH_O
2644# error "This python version requires to use swig with the '-nofastunpack' option"
2645#endif
093d3ff1
RD
2646
2647/*-----------------------------------------------
2648 @(target):= _controls_.so
2649 ------------------------------------------------*/
2650#define SWIG_init init_controls_
2651
2652#define SWIG_name "_controls_"
2653
0085ce49
RD
2654#define SWIGVERSION 0x010329
2655
2656
2657#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2658#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2659
2660
2661#include <stdexcept>
2662
2663
2664namespace swig {
2665 class PyObject_ptr {
2666 protected:
2667 PyObject *_obj;
2668
2669 public:
2670 PyObject_ptr() :_obj(0)
2671 {
2672 }
2673
2674 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2675 {
2676 Py_XINCREF(_obj);
2677 }
2678
2679 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2680 {
2681 if (initial_ref) Py_XINCREF(_obj);
2682 }
2683
2684 PyObject_ptr & operator=(const PyObject_ptr& item)
2685 {
2686 Py_XINCREF(item._obj);
2687 Py_XDECREF(_obj);
2688 _obj = item._obj;
2689 return *this;
2690 }
2691
2692 ~PyObject_ptr()
2693 {
2694 Py_XDECREF(_obj);
2695 }
2696
2697 operator PyObject *() const
2698 {
2699 return _obj;
2700 }
2701
2702 PyObject *operator->() const
2703 {
2704 return _obj;
2705 }
2706 };
2707}
2708
2709
2710namespace swig {
2711 struct PyObject_var : PyObject_ptr {
2712 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2713
2714 PyObject_var & operator = (PyObject* obj)
2715 {
2716 Py_XDECREF(_obj);
2717 _obj = obj;
2718 return *this;
2719 }
2720 };
2721}
2722
2723
093d3ff1
RD
2724#include "wx/wxPython/wxPython.h"
2725#include "wx/wxPython/pyclasses.h"
2726
2727 static const wxString wxPyPanelNameStr(wxPanelNameStr);
2728 static const wxString wxPyEmptyString(wxEmptyString);
2729 static const wxString wxPyControlNameStr(wxControlNameStr);
2730
2731 const wxArrayString wxPyEmptyStringArray;
2732
2733 static const wxString wxPyButtonNameStr(wxButtonNameStr);
2734
0085ce49 2735 #define SWIG_From_long PyInt_FromLong
093d3ff1
RD
2736
2737
0085ce49
RD
2738SWIGINTERNINLINE PyObject *
2739SWIG_From_int (int value)
2740{
2741 return SWIG_From_long (value);
2742}
093d3ff1
RD
2743
2744
0085ce49
RD
2745#include <limits.h>
2746#ifndef LLONG_MIN
2747# define LLONG_MIN LONG_LONG_MIN
2748#endif
2749#ifndef LLONG_MAX
2750# define LLONG_MAX LONG_LONG_MAX
2751#endif
2752#ifndef ULLONG_MAX
2753# define ULLONG_MAX ULONG_LONG_MAX
2754#endif
093d3ff1
RD
2755
2756
2757SWIGINTERN int
0085ce49 2758SWIG_AsVal_long (PyObject* obj, long* val)
093d3ff1
RD
2759{
2760 if (PyNumber_Check(obj)) {
2761 if (val) *val = PyInt_AsLong(obj);
0085ce49 2762 return SWIG_OK;
093d3ff1 2763 }
0085ce49 2764 return SWIG_TypeError;
093d3ff1
RD
2765}
2766
2767
093d3ff1 2768SWIGINTERN int
0085ce49
RD
2769SWIG_AsVal_int (PyObject * obj, int *val)
2770{
093d3ff1 2771 long v;
0085ce49
RD
2772 int res = SWIG_AsVal_long (obj, &v);
2773 if (SWIG_IsOK(res)) {
2774 if ((v < INT_MIN || v > INT_MAX)) {
2775 return SWIG_OverflowError;
093d3ff1 2776 } else {
0085ce49 2777 if (val) *val = static_cast< int >(v);
093d3ff1 2778 }
0085ce49
RD
2779 }
2780 return res;
994141e6
RD
2781}
2782
c32bde28 2783 static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr);
15afbcd0 2784
093d3ff1 2785SWIGINTERN int
0085ce49 2786SWIG_AsVal_bool (PyObject *obj, bool *val)
15afbcd0 2787{
c32bde28
RD
2788 if (obj == Py_True) {
2789 if (val) *val = true;
0085ce49
RD
2790 return SWIG_OK;
2791 } else if (obj == Py_False) {
c32bde28 2792 if (val) *val = false;
0085ce49 2793 return SWIG_OK;
093d3ff1 2794 } else {
0085ce49
RD
2795 long v = 0;
2796 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2797 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2798 return res;
c32bde28 2799 }
15afbcd0
RD
2800}
2801
b2dc1044
RD
2802 static const wxString wxPyChoiceNameStr(wxChoiceNameStr);
2803 static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr);
2804 static const wxString wxPyGaugeNameStr(wxGaugeNameStr);
2805 static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr);
2806 static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr);
2807 static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr);
d14a1e28
RD
2808
2809#include <wx/checklst.h>
2810
d14a1e28 2811
b2dc1044 2812 static const wxString wxPyListBoxNameStr(wxListBoxNameStr);
0085ce49 2813SWIGINTERN void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData=NULL){
d14a1e28
RD
2814 if (clientData) {
2815 wxPyClientData* data = new wxPyClientData(clientData);
2816 self->Insert(item, pos, data);
2817 } else
2818 self->Insert(item, pos);
2819 }
50f151d7
RD
2820
2821SWIGINTERN int
2822SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2823{
2824 long v = 0;
2825 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2826 return SWIG_TypeError;
2827 }
2828 else if (val)
2829 *val = (unsigned long)v;
2830 return SWIG_OK;
2831}
2832
2833
2834SWIGINTERN int
2835SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
2836{
2837 unsigned long v;
2838 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2839 if (SWIG_IsOK(res)) {
2840 if ((v > UINT_MAX)) {
2841 return SWIG_OverflowError;
2842 } else {
2843 if (val) *val = static_cast< unsigned int >(v);
2844 }
2845 }
2846 return res;
2847}
2848
0085ce49 2849SWIGINTERN PyObject *wxListBox_GetSelections(wxListBox *self){
7e08d4ef
RD
2850 wxArrayInt lst;
2851 self->GetSelections(lst);
2852 PyObject *tup = PyTuple_New(lst.GetCount());
2853 for(size_t i=0; i<lst.GetCount(); i++) {
2854 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
2855 }
2856 return tup;
2857 }
0085ce49 2858SWIGINTERN void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){
c3eb6258
RD
2859 #ifdef __WXMSW__
2860 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2861 self->GetItem(item)->SetTextColour(c);
2862 #endif
2863 }
0085ce49 2864SWIGINTERN void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){
c3eb6258
RD
2865 #ifdef __WXMSW__
2866 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2867 self->GetItem(item)->SetBackgroundColour(c);
2868 #endif
2869 }
0085ce49 2870SWIGINTERN void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){
c3eb6258
RD
2871 #ifdef __WXMSW__
2872 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2873 self->GetItem(item)->SetFont(f);
2874 #endif
2875 }
b2dc1044 2876 static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr);
0085ce49 2877SWIGINTERN void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
d14a1e28
RD
2878 self->AppendText(text);
2879 }
0085ce49 2880SWIGINTERN wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
d14a1e28
RD
2881 return self->GetValue().Mid(from, to - from);
2882 }
b2dc1044
RD
2883 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
2884 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
33b885b9 2885 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
b2dc1044
RD
2886 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
2887 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
75219dcb
RD
2888
2889SWIGINTERNINLINE PyObject*
2890SWIG_From_unsigned_SS_long (unsigned long value)
2891{
2892 return (value > LONG_MAX) ?
2893 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2894}
2895
2896
2897SWIGINTERNINLINE PyObject *
2898SWIG_From_size_t (size_t value)
2899{
2900 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
2901}
2902
50f151d7
RD
2903
2904SWIGINTERNINLINE PyObject *
2905SWIG_From_unsigned_SS_int (unsigned int value)
2906{
2907 return SWIG_From_unsigned_SS_long (value);
2908}
2909
d14a1e28
RD
2910
2911#include <wx/slider.h>
2912
d14a1e28 2913
b2dc1044 2914 static const wxString wxPySliderNameStr(wxSliderNameStr);
33b885b9 2915 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
d14a1e28 2916
15afbcd0
RD
2917#if !wxUSE_TOGGLEBTN
2918// implement dummy items for platforms that don't have this class
d14a1e28
RD
2919
2920#define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
2921
2922class wxToggleButton : public wxControl
2923{
2924public:
2925 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
2926 const wxPoint&, const wxSize&, long,
2927 const wxValidator&, const wxString&)
39f61e25 2928 { wxPyRaiseNotImplemented(); }
d14a1e28
RD
2929
2930 wxToggleButton()
39f61e25 2931 { wxPyRaiseNotImplemented(); }
d14a1e28
RD
2932};
2933#endif
2934
51b83b37 2935 static const wxString wxPyNotebookNameStr(wxNotebookNameStr);
994141e6 2936
7e08d4ef 2937SWIGINTERNINLINE int
0085ce49 2938SWIG_AsVal_size_t (PyObject * obj, size_t *val)
7e08d4ef 2939{
7e08d4ef 2940 unsigned long v;
0085ce49
RD
2941 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
2942 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
2943 return res;
7e08d4ef 2944}
7e08d4ef 2945
b2dc1044 2946 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
0085ce49 2947SWIGINTERN PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
d14a1e28
RD
2948 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
2949 if (udata) {
2950 Py_INCREF(udata->m_obj);
2951 return udata->m_obj;
2952 } else {
2953 Py_INCREF(Py_None);
2954 return Py_None;
2955 }
2956 }
0085ce49 2957SWIGINTERN void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
d14a1e28
RD
2958 self->SetClientData(new wxPyUserData(clientData));
2959 }
0085ce49 2960SWIGINTERN 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){
d14a1e28
RD
2961 wxPyUserData* udata = NULL;
2962 if (clientData && clientData != Py_None)
2963 udata = new wxPyUserData(clientData);
2964 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
2965 shortHelp, longHelp, udata);
2966 }
0085ce49 2967SWIGINTERN 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){
d14a1e28
RD
2968 wxPyUserData* udata = NULL;
2969 if (clientData && clientData != Py_None)
2970 udata = new wxPyUserData(clientData);
2971 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
2972 shortHelp, longHelp, udata);
2973 }
0085ce49 2974SWIGINTERN PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
d14a1e28
RD
2975 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
2976 if (udata) {
2977 Py_INCREF(udata->m_obj);
2978 return udata->m_obj;
2979 } else {
2980 Py_INCREF(Py_None);
2981 return Py_None;
2982 }
2983 }
0085ce49 2984SWIGINTERN void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
d14a1e28
RD
2985 self->SetToolClientData(id, new wxPyUserData(clientData));
2986 }
2987
2988#include <wx/listctrl.h>
2989
7557b9b5 2990 static const wxString wxPyListCtrlNameStr(wxListCtrlNameStr);
0085ce49 2991SWIGINTERN void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
d14a1e28
RD
2992 // Python aware sorting function for wxPyListCtrl
2993 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
2994 int retval = 0;
2995 PyObject* func = (PyObject*)funcPtr;
5a446332 2996 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d14a1e28
RD
2997
2998 PyObject* args = Py_BuildValue("(ii)", item1, item2);
2999 PyObject* result = PyEval_CallObject(func, args);
3000 Py_DECREF(args);
3001 if (result) {
3002 retval = PyInt_AsLong(result);
3003 Py_DECREF(result);
3004 }
3005
4f89f6a3 3006 wxPyEndBlockThreads(blocked);
d14a1e28
RD
3007 return retval;
3008 }
3009
3010 // C++ Version of a Python aware class
3011class wxPyListCtrl : public wxListCtrl {
32fe5131 3012 DECLARE_ABSTRACT_CLASS(wxPyListCtrl)
d14a1e28
RD
3013public:
3014 wxPyListCtrl() : wxListCtrl() {}
3015 wxPyListCtrl(wxWindow* parent, wxWindowID id,
3016 const wxPoint& pos,
3017 const wxSize& size,
3018 long style,
3019 const wxValidator& validator,
3020 const wxString& name) :
3021 wxListCtrl(parent, id, pos, size, style, validator, name) {}
3022
3023 bool Create(wxWindow* parent, wxWindowID id,
3024 const wxPoint& pos,
3025 const wxSize& size,
3026 long style,
3027 const wxValidator& validator,
3028 const wxString& name) {
3029 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
3030 }
3031
3032 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
d14a1e28
RD
3033 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
3034
84f85550
RD
3035 // use the virtual version to avoid a confusing assert in the base class
3036 DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage);
7e08d4ef 3037 DEC_PYCALLBACK_INT_LONGLONG(OnGetItemColumnImage);
84f85550 3038
d14a1e28
RD
3039 PYPRIVATE;
3040};
3041
3042IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
3043
3044IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
d14a1e28 3045IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
84f85550 3046IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage);
7e08d4ef
RD
3047IMP_PYCALLBACK_INT_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemColumnImage);
3048
d14a1e28 3049
0085ce49 3050SWIGINTERN wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
d14a1e28
RD
3051 wxListItem item;
3052 item.SetMask( wxLIST_MASK_STATE |
3053 wxLIST_MASK_TEXT |
3054 wxLIST_MASK_IMAGE |
3055 wxLIST_MASK_DATA |
3056 wxLIST_SET_ITEM |
3057 wxLIST_MASK_WIDTH |
3058 wxLIST_MASK_FORMAT
3059 );
3060 if (self->GetColumn(col, item))
3061 return new wxListItem(item);
3062 else
3063 return NULL;
3064 }
0085ce49 3065SWIGINTERN wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col=0){
d14a1e28
RD
3066 wxListItem* info = new wxListItem;
3067 info->m_itemId = itemId;
3068 info->m_col = col;
3069 info->m_mask = 0xFFFF;
3070 self->GetItem(*info);
3071 return info;
3072 }
0085ce49 3073SWIGINTERN wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
d14a1e28
RD
3074 wxPoint pos;
3075 self->GetItemPosition(item, pos);
3076 return pos;
3077 }
0085ce49 3078SWIGINTERN wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code=wxLIST_RECT_BOUNDS){
d14a1e28
RD
3079 wxRect rect;
3080 self->GetItemRect(item, rect, code);
3081 return rect;
3082 }
0085ce49 3083SWIGINTERN bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
d14a1e28 3084 if (!PyCallable_Check(func))
ae8162c8 3085 return false;
d14a1e28
RD
3086 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
3087 }
0085ce49 3088SWIGINTERN wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
d14a1e28
RD
3089
3090
3091
3092 return (wxWindow*)self->m_mainWin;
3093
3094 }
3095
3096#include <wx/treectrl.h>
3097#include "wx/wxPython/pytree.h"
d14a1e28 3098
33b885b9 3099 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
0085ce49
RD
3100SWIGINTERN bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; }
3101SWIGINTERN bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; }
3102SWIGINTERN void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
d14a1e28
RD
3103 // C++ version of Python aware wxTreeCtrl
3104class wxPyTreeCtrl : public wxTreeCtrl {
32fe5131 3105 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl)
d14a1e28
RD
3106public:
3107 wxPyTreeCtrl() : wxTreeCtrl() {}
3108 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
3109 const wxPoint& pos,
3110 const wxSize& size,
3111 long style,
3112 const wxValidator& validator,
3113 const wxString& name) :
3114 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
3115
3116 bool Create(wxWindow *parent, wxWindowID id,
3117 const wxPoint& pos,
3118 const wxSize& size,
3119 long style,
3120 const wxValidator& validator,
3121 const wxString& name) {
3122 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
3123 }
3124
3125
3126 int OnCompareItems(const wxTreeItemId& item1,
3127 const wxTreeItemId& item2) {
3128 int rval = 0;
3129 bool found;
5a446332 3130 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d14a1e28 3131 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
ae8162c8
RD
3132 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false);
3133 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false);
d14a1e28
RD
3134 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
3135 Py_DECREF(o1);
3136 Py_DECREF(o2);
3137 }
4f89f6a3 3138 wxPyEndBlockThreads(blocked);
d14a1e28
RD
3139 if (! found)
3140 rval = wxTreeCtrl::OnCompareItems(item1, item2);
3141 return rval;
3142 }
3143 PYPRIVATE;
3144};
3145
3146IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
3147
3148
0085ce49 3149SWIGINTERN wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
d14a1e28
RD
3150 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3151 if (data == NULL) {
3152 data = new wxPyTreeItemData();
3153 data->SetId(item); // set the id
3154 self->SetItemData(item, data);
3155 }
3156 return data;
3157 }
0085ce49 3158SWIGINTERN PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
d14a1e28
RD
3159 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3160 if (data == NULL) {
3161 data = new wxPyTreeItemData();
3162 data->SetId(item); // set the id
3163 self->SetItemData(item, data);
3164 }
3165 return data->GetData();
3166 }
0085ce49 3167SWIGINTERN void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
d14a1e28
RD
3168 data->SetId(item); // set the id
3169 self->SetItemData(item, data);
3170 }
0085ce49 3171SWIGINTERN void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
d14a1e28
RD
3172 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3173 if (data == NULL) {
3174 data = new wxPyTreeItemData(obj);
3175 data->SetId(item); // set the id
3176 self->SetItemData(item, data);
3177 } else
3178 data->SetData(obj);
3179 }
0085ce49 3180SWIGINTERN PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
5a446332 3181 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d14a1e28
RD
3182 PyObject* rval = PyList_New(0);
3183 wxArrayTreeItemIds array;
3184 size_t num, x;
3185 num = self->GetSelections(array);
3186 for (x=0; x < num; x++) {
3187 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
ae8162c8 3188 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true);
d14a1e28 3189 PyList_Append(rval, item);
1a10c483 3190 Py_DECREF(item);
d14a1e28 3191 }
4f89f6a3 3192 wxPyEndBlockThreads(blocked);
d14a1e28
RD
3193 return rval;
3194 }
0085ce49 3195SWIGINTERN PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
58203fa6
RD
3196 void* cookie = 0;
3197 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
5a446332 3198 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d14a1e28 3199 PyObject* tup = PyTuple_New(2);
ae8162c8 3200 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
58203fa6 3201 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
4f89f6a3 3202 wxPyEndBlockThreads(blocked);
d14a1e28
RD
3203 return tup;
3204 }
0085ce49 3205SWIGINTERN PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
58203fa6 3206 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
5a446332 3207 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d14a1e28 3208 PyObject* tup = PyTuple_New(2);
ae8162c8 3209 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
58203fa6 3210 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
4f89f6a3 3211 wxPyEndBlockThreads(blocked);
d14a1e28
RD
3212 return tup;
3213 }
0085ce49 3214SWIGINTERN PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly=false){
d14a1e28
RD
3215 wxRect rect;
3216 if (self->GetBoundingRect(item, rect, textOnly)) {
5a446332 3217 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d14a1e28 3218 wxRect* r = new wxRect(rect);
ae8162c8 3219 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true);
4f89f6a3 3220 wxPyEndBlockThreads(blocked);
d14a1e28
RD
3221 return val;
3222 }
3223 else
3224 RETURN_NONE();
3225 }
b2dc1044 3226 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
c32bde28 3227
32fe5131 3228SWIGINTERNINLINE PyObject*
0085ce49 3229 SWIG_From_bool (bool value)
c32bde28 3230{
0085ce49 3231 return PyBool_FromLong(value ? 1 : 0);
c32bde28
RD
3232}
3233
d14a1e28
RD
3234 // C++ version of Python aware wxControl
3235class wxPyControl : public wxControl
3236{
3237 DECLARE_DYNAMIC_CLASS(wxPyControl)
3238public:
3239 wxPyControl() : wxControl() {}
3240 wxPyControl(wxWindow* parent, const wxWindowID id,
3241 const wxPoint& pos = wxDefaultPosition,
3242 const wxSize& size = wxDefaultSize,
3243 long style = 0,
3244 const wxValidator& validator=wxDefaultValidator,
3245 const wxString& name = wxPyControlNameStr)
3246 : wxControl(parent, id, pos, size, style, validator, name) {}
3247
db3e571a 3248 void SetBestSize(const wxSize& size) { wxControl::SetBestSize(size); }
d14a1e28 3249
976dbff5
RD
3250 bool DoEraseBackground(wxDC* dc) {
3251#ifdef __WXMSW__
3252 return wxWindow::DoEraseBackground(dc->GetHDC());
3253#else
3254 dc->SetBackground(wxBrush(GetBackgroundColour()));
3255 dc->Clear();
3256 return true;
3257#endif
3258 }
3259
d14a1e28
RD
3260 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
3261 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
3262 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
3263 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
3264
3265 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
3266 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
3267 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
3268
3269 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
3270 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
3271
3272 DEC_PYCALLBACK__(InitDialog);
3273 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
3274 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
3275 DEC_PYCALLBACK_BOOL_(Validate);
3276
3277 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
3278 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
3279 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
3280
3281 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
3282 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
3283
db3e571a 3284 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
db3e571a 3285 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
4276dc52 3286
51b83b37
RD
3287 DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
3288
8d38bd1d
RD
3289 DEC_PYCALLBACK_VOID_(OnInternalIdle);
3290
d14a1e28
RD
3291 PYPRIVATE;
3292};
3293
3294IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
3295
3296IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
3297IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
3298IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
3299IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
3300
3301IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
3302IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
3303IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
3304
3305IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
3306IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
3307
3308IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
3309IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
3310IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
3311IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
3312
3313IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
3314IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
3315IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
3316
3317IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
3318IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
3319
db3e571a 3320IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
db3e571a 3321IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
d14a1e28 3322
51b83b37 3323IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground);
8d38bd1d
RD
3324
3325IMP_PYCALLBACK_VOID_(wxPyControl, wxControl, OnInternalIdle);
3326
d14a1e28
RD
3327
3328
0085ce49 3329SWIGINTERN void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
e811c8ce
RD
3330
3331#include <wx/generic/dragimgg.h>
3332
53aa7709 3333 static const wxString wxPyDatePickerCtrlNameStr(wxDatePickerCtrlNameStr);
0085ce49 3334SWIGINTERN wxDateTime wxDatePickerCtrl_GetLowerLimit(wxDatePickerCtrl *self){
53aa7709
RD
3335 wxDateTime rv;
3336 self->GetRange(&rv, NULL);
3337 return rv;
3338 }
0085ce49 3339SWIGINTERN wxDateTime wxDatePickerCtrl_GetUpperLimit(wxDatePickerCtrl *self){
53aa7709
RD
3340 wxDateTime rv;
3341 self->GetRange(NULL, &rv);
3342 return rv;
3343 }
d14a1e28
RD
3344#ifdef __cplusplus
3345extern "C" {
3346#endif
0085ce49
RD
3347SWIGINTERN int ButtonNameStr_set(PyObject *) {
3348 SWIG_Error(SWIG_AttributeError,"Variable ButtonNameStr is read-only.");
3349 return 1;
b2dc1044
RD
3350}
3351
3352
0085ce49
RD
3353SWIGINTERN PyObject *ButtonNameStr_get(void) {
3354 PyObject *pyobj = 0;
3355
3356 {
b2dc1044 3357#if wxUSE_UNICODE
0085ce49 3358 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
b2dc1044 3359#else
0085ce49 3360 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
b2dc1044 3361#endif
0085ce49
RD
3362 }
3363 return pyobj;
3364}
3365
3366
3367SWIGINTERN PyObject *_wrap_new_Button(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3368 PyObject *resultobj = 0;
3369 wxWindow *arg1 = (wxWindow *) 0 ;
3370 int arg2 = (int) -1 ;
3371 wxString const &arg3_defvalue = wxPyEmptyString ;
3372 wxString *arg3 = (wxString *) &arg3_defvalue ;
3373 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3374 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3375 wxSize const &arg5_defvalue = wxDefaultSize ;
3376 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3377 long arg6 = (long) 0 ;
3378 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3379 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3380 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3381 wxString *arg8 = (wxString *) &arg8_defvalue ;
3382 wxButton *result = 0 ;
3383 void *argp1 = 0 ;
3384 int res1 = 0 ;
3385 int val2 ;
3386 int ecode2 = 0 ;
3387 bool temp3 = false ;
3388 wxPoint temp4 ;
3389 wxSize temp5 ;
3390 long val6 ;
3391 int ecode6 = 0 ;
3392 void *argp7 = 0 ;
3393 int res7 = 0 ;
3394 bool temp8 = false ;
3395 PyObject * obj0 = 0 ;
3396 PyObject * obj1 = 0 ;
3397 PyObject * obj2 = 0 ;
3398 PyObject * obj3 = 0 ;
3399 PyObject * obj4 = 0 ;
3400 PyObject * obj5 = 0 ;
3401 PyObject * obj6 = 0 ;
3402 PyObject * obj7 = 0 ;
3403 char * kwnames[] = {
3404 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3405 };
3406
3407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3409 if (!SWIG_IsOK(res1)) {
3410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Button" "', expected argument " "1"" of type '" "wxWindow *""'");
3411 }
3412 arg1 = reinterpret_cast< wxWindow * >(argp1);
3413 if (obj1) {
3414 ecode2 = SWIG_AsVal_int(obj1, &val2);
3415 if (!SWIG_IsOK(ecode2)) {
3416 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Button" "', expected argument " "2"" of type '" "int""'");
3417 }
3418 arg2 = static_cast< int >(val2);
3419 }
3420 if (obj2) {
d14a1e28 3421 {
0085ce49
RD
3422 arg3 = wxString_in_helper(obj2);
3423 if (arg3 == NULL) SWIG_fail;
3424 temp3 = true;
d14a1e28 3425 }
0085ce49
RD
3426 }
3427 if (obj3) {
d14a1e28 3428 {
0085ce49
RD
3429 arg4 = &temp4;
3430 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 3431 }
0085ce49
RD
3432 }
3433 if (obj4) {
d14a1e28 3434 {
0085ce49
RD
3435 arg5 = &temp5;
3436 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 3437 }
0085ce49
RD
3438 }
3439 if (obj5) {
3440 ecode6 = SWIG_AsVal_long(obj5, &val6);
3441 if (!SWIG_IsOK(ecode6)) {
3442 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Button" "', expected argument " "6"" of type '" "long""'");
3443 }
3444 arg6 = static_cast< long >(val6);
3445 }
3446 if (obj6) {
3447 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3448 if (!SWIG_IsOK(res7)) {
3449 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 3450 }
0085ce49
RD
3451 if (!argp7) {
3452 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 3453 }
0085ce49
RD
3454 arg7 = reinterpret_cast< wxValidator * >(argp7);
3455 }
3456 if (obj7) {
d14a1e28 3457 {
0085ce49
RD
3458 arg8 = wxString_in_helper(obj7);
3459 if (arg8 == NULL) SWIG_fail;
3460 temp8 = true;
d14a1e28 3461 }
0085ce49
RD
3462 }
3463 {
3464 if (!wxPyCheckForApp()) SWIG_fail;
3465 PyThreadState* __tstate = wxPyBeginAllowThreads();
3466 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3467 wxPyEndAllowThreads(__tstate);
3468 if (PyErr_Occurred()) SWIG_fail;
3469 }
3470 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_NEW | 0 );
3471 {
3472 if (temp3)
3473 delete arg3;
3474 }
3475 {
3476 if (temp8)
3477 delete arg8;
3478 }
3479 return resultobj;
3480fail:
3481 {
3482 if (temp3)
3483 delete arg3;
3484 }
3485 {
3486 if (temp8)
3487 delete arg8;
3488 }
3489 return NULL;
d14a1e28
RD
3490}
3491
3492
0085ce49
RD
3493SWIGINTERN PyObject *_wrap_new_PreButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3494 PyObject *resultobj = 0;
3495 wxButton *result = 0 ;
3496
3497 if (!SWIG_Python_UnpackTuple(args,"new_PreButton",0,0,0)) SWIG_fail;
3498 {
3499 if (!wxPyCheckForApp()) SWIG_fail;
3500 PyThreadState* __tstate = wxPyBeginAllowThreads();
3501 result = (wxButton *)new wxButton();
3502 wxPyEndAllowThreads(__tstate);
3503 if (PyErr_Occurred()) SWIG_fail;
3504 }
3505 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_OWN | 0 );
3506 return resultobj;
3507fail:
3508 return NULL;
3509}
3510
3511
3512SWIGINTERN PyObject *_wrap_Button_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3513 PyObject *resultobj = 0;
3514 wxButton *arg1 = (wxButton *) 0 ;
3515 wxWindow *arg2 = (wxWindow *) 0 ;
3516 int arg3 = (int) -1 ;
3517 wxString const &arg4_defvalue = wxPyEmptyString ;
3518 wxString *arg4 = (wxString *) &arg4_defvalue ;
3519 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3520 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3521 wxSize const &arg6_defvalue = wxDefaultSize ;
3522 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3523 long arg7 = (long) 0 ;
3524 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3525 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3526 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3527 wxString *arg9 = (wxString *) &arg9_defvalue ;
3528 bool result;
3529 void *argp1 = 0 ;
3530 int res1 = 0 ;
3531 void *argp2 = 0 ;
3532 int res2 = 0 ;
3533 int val3 ;
3534 int ecode3 = 0 ;
3535 bool temp4 = false ;
3536 wxPoint temp5 ;
3537 wxSize temp6 ;
3538 long val7 ;
3539 int ecode7 = 0 ;
3540 void *argp8 = 0 ;
3541 int res8 = 0 ;
3542 bool temp9 = false ;
3543 PyObject * obj0 = 0 ;
3544 PyObject * obj1 = 0 ;
3545 PyObject * obj2 = 0 ;
3546 PyObject * obj3 = 0 ;
3547 PyObject * obj4 = 0 ;
3548 PyObject * obj5 = 0 ;
3549 PyObject * obj6 = 0 ;
3550 PyObject * obj7 = 0 ;
3551 PyObject * obj8 = 0 ;
3552 char * kwnames[] = {
3553 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3554 };
3555
3556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3558 if (!SWIG_IsOK(res1)) {
3559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_Create" "', expected argument " "1"" of type '" "wxButton *""'");
3560 }
3561 arg1 = reinterpret_cast< wxButton * >(argp1);
3562 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3563 if (!SWIG_IsOK(res2)) {
3564 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Button_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3565 }
3566 arg2 = reinterpret_cast< wxWindow * >(argp2);
3567 if (obj2) {
3568 ecode3 = SWIG_AsVal_int(obj2, &val3);
3569 if (!SWIG_IsOK(ecode3)) {
3570 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Button_Create" "', expected argument " "3"" of type '" "int""'");
3571 }
3572 arg3 = static_cast< int >(val3);
3573 }
3574 if (obj3) {
d14a1e28 3575 {
0085ce49
RD
3576 arg4 = wxString_in_helper(obj3);
3577 if (arg4 == NULL) SWIG_fail;
3578 temp4 = true;
d14a1e28 3579 }
0085ce49
RD
3580 }
3581 if (obj4) {
4f89f6a3 3582 {
0085ce49
RD
3583 arg5 = &temp5;
3584 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4f89f6a3 3585 }
0085ce49
RD
3586 }
3587 if (obj5) {
d14a1e28 3588 {
0085ce49
RD
3589 arg6 = &temp6;
3590 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d14a1e28 3591 }
0085ce49
RD
3592 }
3593 if (obj6) {
3594 ecode7 = SWIG_AsVal_long(obj6, &val7);
3595 if (!SWIG_IsOK(ecode7)) {
3596 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Button_Create" "', expected argument " "7"" of type '" "long""'");
3597 }
3598 arg7 = static_cast< long >(val7);
3599 }
3600 if (obj7) {
3601 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3602 if (!SWIG_IsOK(res8)) {
3603 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 3604 }
0085ce49
RD
3605 if (!argp8) {
3606 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 3607 }
0085ce49
RD
3608 arg8 = reinterpret_cast< wxValidator * >(argp8);
3609 }
3610 if (obj8) {
d14a1e28 3611 {
0085ce49
RD
3612 arg9 = wxString_in_helper(obj8);
3613 if (arg9 == NULL) SWIG_fail;
3614 temp9 = true;
d14a1e28 3615 }
0085ce49
RD
3616 }
3617 {
3618 PyThreadState* __tstate = wxPyBeginAllowThreads();
3619 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3620 wxPyEndAllowThreads(__tstate);
3621 if (PyErr_Occurred()) SWIG_fail;
3622 }
3623 {
3624 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3625 }
3626 {
3627 if (temp4)
3628 delete arg4;
3629 }
3630 {
3631 if (temp9)
3632 delete arg9;
3633 }
3634 return resultobj;
3635fail:
3636 {
3637 if (temp4)
3638 delete arg4;
3639 }
3640 {
3641 if (temp9)
3642 delete arg9;
3643 }
3644 return NULL;
d14a1e28
RD
3645}
3646
3647
0085ce49
RD
3648SWIGINTERN PyObject *_wrap_Button_SetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3649 PyObject *resultobj = 0;
3650 wxButton *arg1 = (wxButton *) 0 ;
3651 void *argp1 = 0 ;
3652 int res1 = 0 ;
3653 PyObject *swig_obj[1] ;
3654
3655 if (!args) SWIG_fail;
3656 swig_obj[0] = args;
3657 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3658 if (!SWIG_IsOK(res1)) {
3659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_SetDefault" "', expected argument " "1"" of type '" "wxButton *""'");
3660 }
3661 arg1 = reinterpret_cast< wxButton * >(argp1);
3662 {
3663 PyThreadState* __tstate = wxPyBeginAllowThreads();
3664 (arg1)->SetDefault();
3665 wxPyEndAllowThreads(__tstate);
3666 if (PyErr_Occurred()) SWIG_fail;
3667 }
3668 resultobj = SWIG_Py_Void();
3669 return resultobj;
3670fail:
3671 return NULL;
d14a1e28
RD
3672}
3673
3674
0085ce49
RD
3675SWIGINTERN PyObject *_wrap_Button_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3676 PyObject *resultobj = 0;
3677 wxSize result;
3678
3679 if (!SWIG_Python_UnpackTuple(args,"Button_GetDefaultSize",0,0,0)) SWIG_fail;
3680 {
3681 PyThreadState* __tstate = wxPyBeginAllowThreads();
3682 result = wxButton::GetDefaultSize();
3683 wxPyEndAllowThreads(__tstate);
3684 if (PyErr_Occurred()) SWIG_fail;
3685 }
3686 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
3687 return resultobj;
3688fail:
3689 return NULL;
3690}
3691
3692
3693SWIGINTERN PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3694 PyObject *resultobj = 0;
3695 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
3696 SwigValueWrapper<wxVisualAttributes > result;
3697 int val1 ;
3698 int ecode1 = 0 ;
3699 PyObject * obj0 = 0 ;
3700 char * kwnames[] = {
3701 (char *) "variant", NULL
3702 };
3703
3704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
3705 if (obj0) {
3706 ecode1 = SWIG_AsVal_int(obj0, &val1);
3707 if (!SWIG_IsOK(ecode1)) {
3708 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Button_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
3709 }
3710 arg1 = static_cast< wxWindowVariant >(val1);
3711 }
3712 {
3713 if (!wxPyCheckForApp()) SWIG_fail;
3714 PyThreadState* __tstate = wxPyBeginAllowThreads();
3715 result = wxButton::GetClassDefaultAttributes(arg1);
3716 wxPyEndAllowThreads(__tstate);
3717 if (PyErr_Occurred()) SWIG_fail;
3718 }
3719 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
3720 return resultobj;
3721fail:
3722 return NULL;
3723}
3724
3725
3726SWIGINTERN PyObject *Button_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3727 PyObject *obj;
3728 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3729 SWIG_TypeNewClientData(SWIGTYPE_p_wxButton, SWIG_NewClientData(obj));
3730 return SWIG_Py_Void();
3731}
3732
3733SWIGINTERN PyObject *Button_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3734 return SWIG_Python_InitShadowInstance(args);
3735}
3736
3737SWIGINTERN PyObject *_wrap_new_BitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3738 PyObject *resultobj = 0;
3739 wxWindow *arg1 = (wxWindow *) 0 ;
3740 int arg2 = (int) -1 ;
3741 wxBitmap const &arg3_defvalue = wxNullBitmap ;
3742 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
3743 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3744 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3745 wxSize const &arg5_defvalue = wxDefaultSize ;
3746 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3747 long arg6 = (long) wxBU_AUTODRAW ;
3748 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3749 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3750 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3751 wxString *arg8 = (wxString *) &arg8_defvalue ;
3752 wxBitmapButton *result = 0 ;
3753 void *argp1 = 0 ;
3754 int res1 = 0 ;
3755 int val2 ;
3756 int ecode2 = 0 ;
3757 void *argp3 = 0 ;
3758 int res3 = 0 ;
3759 wxPoint temp4 ;
3760 wxSize temp5 ;
3761 long val6 ;
3762 int ecode6 = 0 ;
3763 void *argp7 = 0 ;
3764 int res7 = 0 ;
3765 bool temp8 = false ;
3766 PyObject * obj0 = 0 ;
3767 PyObject * obj1 = 0 ;
3768 PyObject * obj2 = 0 ;
3769 PyObject * obj3 = 0 ;
3770 PyObject * obj4 = 0 ;
3771 PyObject * obj5 = 0 ;
3772 PyObject * obj6 = 0 ;
3773 PyObject * obj7 = 0 ;
3774 char * kwnames[] = {
3775 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3776 };
3777
3778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3780 if (!SWIG_IsOK(res1)) {
3781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapButton" "', expected argument " "1"" of type '" "wxWindow *""'");
3782 }
3783 arg1 = reinterpret_cast< wxWindow * >(argp1);
3784 if (obj1) {
3785 ecode2 = SWIG_AsVal_int(obj1, &val2);
3786 if (!SWIG_IsOK(ecode2)) {
3787 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapButton" "', expected argument " "2"" of type '" "int""'");
3788 }
3789 arg2 = static_cast< int >(val2);
3790 }
3791 if (obj2) {
3792 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
3793 if (!SWIG_IsOK(res3)) {
3794 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3795 }
3796 if (!argp3) {
3797 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3798 }
3799 arg3 = reinterpret_cast< wxBitmap * >(argp3);
3800 }
3801 if (obj3) {
d14a1e28 3802 {
0085ce49
RD
3803 arg4 = &temp4;
3804 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 3805 }
0085ce49
RD
3806 }
3807 if (obj4) {
d14a1e28 3808 {
0085ce49
RD
3809 arg5 = &temp5;
3810 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 3811 }
0085ce49
RD
3812 }
3813 if (obj5) {
3814 ecode6 = SWIG_AsVal_long(obj5, &val6);
3815 if (!SWIG_IsOK(ecode6)) {
3816 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_BitmapButton" "', expected argument " "6"" of type '" "long""'");
3817 }
3818 arg6 = static_cast< long >(val6);
3819 }
3820 if (obj6) {
3821 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3822 if (!SWIG_IsOK(res7)) {
3823 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
22bfe96c 3824 }
0085ce49
RD
3825 if (!argp7) {
3826 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
22bfe96c 3827 }
0085ce49
RD
3828 arg7 = reinterpret_cast< wxValidator * >(argp7);
3829 }
3830 if (obj7) {
22bfe96c 3831 {
0085ce49
RD
3832 arg8 = wxString_in_helper(obj7);
3833 if (arg8 == NULL) SWIG_fail;
3834 temp8 = true;
22bfe96c 3835 }
0085ce49
RD
3836 }
3837 {
3838 if (!wxPyCheckForApp()) SWIG_fail;
3839 PyThreadState* __tstate = wxPyBeginAllowThreads();
3840 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3841 wxPyEndAllowThreads(__tstate);
3842 if (PyErr_Occurred()) SWIG_fail;
3843 }
3844 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_NEW | 0 );
3845 {
3846 if (temp8)
3847 delete arg8;
3848 }
3849 return resultobj;
3850fail:
3851 {
3852 if (temp8)
3853 delete arg8;
3854 }
3855 return NULL;
22bfe96c
RD
3856}
3857
3858
0085ce49
RD
3859SWIGINTERN PyObject *_wrap_new_PreBitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3860 PyObject *resultobj = 0;
3861 wxBitmapButton *result = 0 ;
3862
3863 if (!SWIG_Python_UnpackTuple(args,"new_PreBitmapButton",0,0,0)) SWIG_fail;
3864 {
3865 if (!wxPyCheckForApp()) SWIG_fail;
3866 PyThreadState* __tstate = wxPyBeginAllowThreads();
3867 result = (wxBitmapButton *)new wxBitmapButton();
3868 wxPyEndAllowThreads(__tstate);
3869 if (PyErr_Occurred()) SWIG_fail;
3870 }
3871 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_OWN | 0 );
3872 return resultobj;
3873fail:
3874 return NULL;
3875}
3876
3877
3878SWIGINTERN PyObject *_wrap_BitmapButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3879 PyObject *resultobj = 0;
3880 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
3881 wxWindow *arg2 = (wxWindow *) 0 ;
3882 int arg3 = (int) -1 ;
3883 wxBitmap const &arg4_defvalue = wxNullBitmap ;
3884 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
3885 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3886 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3887 wxSize const &arg6_defvalue = wxDefaultSize ;
3888 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3889 long arg7 = (long) wxBU_AUTODRAW ;
3890 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3891 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3892 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3893 wxString *arg9 = (wxString *) &arg9_defvalue ;
3894 bool result;
3895 void *argp1 = 0 ;
3896 int res1 = 0 ;
3897 void *argp2 = 0 ;
3898 int res2 = 0 ;
3899 int val3 ;
3900 int ecode3 = 0 ;
3901 void *argp4 = 0 ;
3902 int res4 = 0 ;
3903 wxPoint temp5 ;
3904 wxSize temp6 ;
3905 long val7 ;
3906 int ecode7 = 0 ;
3907 void *argp8 = 0 ;
3908 int res8 = 0 ;
3909 bool temp9 = false ;
3910 PyObject * obj0 = 0 ;
3911 PyObject * obj1 = 0 ;
3912 PyObject * obj2 = 0 ;
3913 PyObject * obj3 = 0 ;
3914 PyObject * obj4 = 0 ;
3915 PyObject * obj5 = 0 ;
3916 PyObject * obj6 = 0 ;
3917 PyObject * obj7 = 0 ;
3918 PyObject * obj8 = 0 ;
3919 char * kwnames[] = {
3920 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3921 };
3922
3923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
3925 if (!SWIG_IsOK(res1)) {
3926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_Create" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
3927 }
3928 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
3929 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3930 if (!SWIG_IsOK(res2)) {
3931 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3932 }
3933 arg2 = reinterpret_cast< wxWindow * >(argp2);
3934 if (obj2) {
3935 ecode3 = SWIG_AsVal_int(obj2, &val3);
3936 if (!SWIG_IsOK(ecode3)) {
3937 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_Create" "', expected argument " "3"" of type '" "int""'");
3938 }
3939 arg3 = static_cast< int >(val3);
3940 }
3941 if (obj3) {
3942 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
3943 if (!SWIG_IsOK(res4)) {
3944 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
d14a1e28 3945 }
0085ce49
RD
3946 if (!argp4) {
3947 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
d14a1e28 3948 }
0085ce49
RD
3949 arg4 = reinterpret_cast< wxBitmap * >(argp4);
3950 }
3951 if (obj4) {
d14a1e28 3952 {
0085ce49
RD
3953 arg5 = &temp5;
3954 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 3955 }
0085ce49
RD
3956 }
3957 if (obj5) {
d14a1e28 3958 {
0085ce49
RD
3959 arg6 = &temp6;
3960 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3961 }
3962 }
3963 if (obj6) {
3964 ecode7 = SWIG_AsVal_long(obj6, &val7);
3965 if (!SWIG_IsOK(ecode7)) {
3966 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "BitmapButton_Create" "', expected argument " "7"" of type '" "long""'");
3967 }
3968 arg7 = static_cast< long >(val7);
3969 }
3970 if (obj7) {
3971 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3972 if (!SWIG_IsOK(res8)) {
3973 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3974 }
3975 if (!argp8) {
3976 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 3977 }
0085ce49
RD
3978 arg8 = reinterpret_cast< wxValidator * >(argp8);
3979 }
3980 if (obj8) {
d14a1e28 3981 {
0085ce49
RD
3982 arg9 = wxString_in_helper(obj8);
3983 if (arg9 == NULL) SWIG_fail;
3984 temp9 = true;
d14a1e28 3985 }
0085ce49
RD
3986 }
3987 {
3988 PyThreadState* __tstate = wxPyBeginAllowThreads();
3989 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3990 wxPyEndAllowThreads(__tstate);
3991 if (PyErr_Occurred()) SWIG_fail;
3992 }
3993 {
3994 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3995 }
3996 {
3997 if (temp9)
3998 delete arg9;
3999 }
4000 return resultobj;
4001fail:
4002 {
4003 if (temp9)
4004 delete arg9;
4005 }
4006 return NULL;
d14a1e28
RD
4007}
4008
4009
0085ce49
RD
4010SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4011 PyObject *resultobj = 0;
4012 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4013 wxBitmap result;
4014 void *argp1 = 0 ;
4015 int res1 = 0 ;
4016 PyObject *swig_obj[1] ;
4017
4018 if (!args) SWIG_fail;
4019 swig_obj[0] = args;
4020 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4021 if (!SWIG_IsOK(res1)) {
4022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4023 }
4024 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4025 {
4026 PyThreadState* __tstate = wxPyBeginAllowThreads();
4027 result = (arg1)->GetBitmapLabel();
4028 wxPyEndAllowThreads(__tstate);
4029 if (PyErr_Occurred()) SWIG_fail;
4030 }
4031 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4032 return resultobj;
4033fail:
4034 return NULL;
d14a1e28
RD
4035}
4036
4037
0085ce49
RD
4038SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4039 PyObject *resultobj = 0;
4040 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4041 wxBitmap result;
4042 void *argp1 = 0 ;
4043 int res1 = 0 ;
4044 PyObject *swig_obj[1] ;
4045
4046 if (!args) SWIG_fail;
4047 swig_obj[0] = args;
4048 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4049 if (!SWIG_IsOK(res1)) {
4050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4051 }
4052 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4053 {
4054 PyThreadState* __tstate = wxPyBeginAllowThreads();
4055 result = (arg1)->GetBitmapDisabled();
4056 wxPyEndAllowThreads(__tstate);
4057 if (PyErr_Occurred()) SWIG_fail;
4058 }
4059 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4060 return resultobj;
4061fail:
4062 return NULL;
d14a1e28
RD
4063}
4064
4065
0085ce49
RD
4066SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4067 PyObject *resultobj = 0;
4068 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4069 wxBitmap result;
4070 void *argp1 = 0 ;
4071 int res1 = 0 ;
4072 PyObject *swig_obj[1] ;
4073
4074 if (!args) SWIG_fail;
4075 swig_obj[0] = args;
4076 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4077 if (!SWIG_IsOK(res1)) {
4078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4079 }
4080 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4081 {
4082 PyThreadState* __tstate = wxPyBeginAllowThreads();
4083 result = (arg1)->GetBitmapFocus();
4084 wxPyEndAllowThreads(__tstate);
4085 if (PyErr_Occurred()) SWIG_fail;
4086 }
4087 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4088 return resultobj;
4089fail:
4090 return NULL;
d14a1e28
RD
4091}
4092
4093
0085ce49
RD
4094SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4095 PyObject *resultobj = 0;
4096 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4097 wxBitmap result;
4098 void *argp1 = 0 ;
4099 int res1 = 0 ;
4100 PyObject *swig_obj[1] ;
4101
4102 if (!args) SWIG_fail;
4103 swig_obj[0] = args;
4104 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4105 if (!SWIG_IsOK(res1)) {
4106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4107 }
4108 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4109 {
4110 PyThreadState* __tstate = wxPyBeginAllowThreads();
4111 result = (arg1)->GetBitmapSelected();
4112 wxPyEndAllowThreads(__tstate);
4113 if (PyErr_Occurred()) SWIG_fail;
4114 }
4115 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4116 return resultobj;
4117fail:
4118 return NULL;
d14a1e28
RD
4119}
4120
4121
0085ce49
RD
4122SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4123 PyObject *resultobj = 0;
4124 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4125 wxBitmap result;
4126 void *argp1 = 0 ;
4127 int res1 = 0 ;
4128 PyObject *swig_obj[1] ;
4129
4130 if (!args) SWIG_fail;
4131 swig_obj[0] = args;
4132 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4133 if (!SWIG_IsOK(res1)) {
4134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4135 }
4136 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4137 {
4138 PyThreadState* __tstate = wxPyBeginAllowThreads();
4139 result = (arg1)->GetBitmapHover();
4140 wxPyEndAllowThreads(__tstate);
4141 if (PyErr_Occurred()) SWIG_fail;
4142 }
4143 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4144 return resultobj;
4145fail:
4146 return NULL;
4147}
4148
4149
4150SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4151 PyObject *resultobj = 0;
4152 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4153 wxBitmap *arg2 = 0 ;
4154 void *argp1 = 0 ;
4155 int res1 = 0 ;
4156 void *argp2 = 0 ;
4157 int res2 = 0 ;
4158 PyObject * obj0 = 0 ;
4159 PyObject * obj1 = 0 ;
4160 char * kwnames[] = {
4161 (char *) "self",(char *) "bitmap", NULL
4162 };
4163
4164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) SWIG_fail;
4165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4166 if (!SWIG_IsOK(res1)) {
4167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4168 }
4169 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4170 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4171 if (!SWIG_IsOK(res2)) {
4172 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4173 }
4174 if (!argp2) {
4175 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4176 }
4177 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4178 {
4179 PyThreadState* __tstate = wxPyBeginAllowThreads();
4180 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
4181 wxPyEndAllowThreads(__tstate);
4182 if (PyErr_Occurred()) SWIG_fail;
4183 }
4184 resultobj = SWIG_Py_Void();
4185 return resultobj;
4186fail:
4187 return NULL;
4188}
4189
4190
4191SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4192 PyObject *resultobj = 0;
4193 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4194 wxBitmap *arg2 = 0 ;
4195 void *argp1 = 0 ;
4196 int res1 = 0 ;
4197 void *argp2 = 0 ;
4198 int res2 = 0 ;
4199 PyObject * obj0 = 0 ;
4200 PyObject * obj1 = 0 ;
4201 char * kwnames[] = {
4202 (char *) "self",(char *) "bitmap", NULL
4203 };
4204
4205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) SWIG_fail;
4206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4207 if (!SWIG_IsOK(res1)) {
4208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4209 }
4210 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4211 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4212 if (!SWIG_IsOK(res2)) {
4213 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4214 }
4215 if (!argp2) {
4216 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4217 }
4218 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4219 {
4220 PyThreadState* __tstate = wxPyBeginAllowThreads();
4221 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
4222 wxPyEndAllowThreads(__tstate);
4223 if (PyErr_Occurred()) SWIG_fail;
4224 }
4225 resultobj = SWIG_Py_Void();
4226 return resultobj;
4227fail:
4228 return NULL;
4229}
4230
4231
4232SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4233 PyObject *resultobj = 0;
4234 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4235 wxBitmap *arg2 = 0 ;
4236 void *argp1 = 0 ;
4237 int res1 = 0 ;
4238 void *argp2 = 0 ;
4239 int res2 = 0 ;
4240 PyObject * obj0 = 0 ;
4241 PyObject * obj1 = 0 ;
4242 char * kwnames[] = {
4243 (char *) "self",(char *) "bitmap", NULL
4244 };
4245
4246 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) SWIG_fail;
4247 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4248 if (!SWIG_IsOK(res1)) {
4249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4250 }
4251 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4252 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4253 if (!SWIG_IsOK(res2)) {
4254 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4255 }
4256 if (!argp2) {
4257 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4258 }
4259 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4260 {
4261 PyThreadState* __tstate = wxPyBeginAllowThreads();
4262 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
4263 wxPyEndAllowThreads(__tstate);
4264 if (PyErr_Occurred()) SWIG_fail;
4265 }
4266 resultobj = SWIG_Py_Void();
4267 return resultobj;
4268fail:
4269 return NULL;
4270}
4271
4272
4273SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4274 PyObject *resultobj = 0;
4275 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4276 wxBitmap *arg2 = 0 ;
4277 void *argp1 = 0 ;
4278 int res1 = 0 ;
4279 void *argp2 = 0 ;
4280 int res2 = 0 ;
4281 PyObject * obj0 = 0 ;
4282 PyObject * obj1 = 0 ;
4283 char * kwnames[] = {
4284 (char *) "self",(char *) "bitmap", NULL
4285 };
4286
4287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) SWIG_fail;
4288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4289 if (!SWIG_IsOK(res1)) {
4290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4291 }
4292 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4293 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4294 if (!SWIG_IsOK(res2)) {
4295 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4296 }
4297 if (!argp2) {
4298 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4299 }
4300 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4301 {
4302 PyThreadState* __tstate = wxPyBeginAllowThreads();
4303 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
4304 wxPyEndAllowThreads(__tstate);
4305 if (PyErr_Occurred()) SWIG_fail;
4306 }
4307 resultobj = SWIG_Py_Void();
4308 return resultobj;
4309fail:
4310 return NULL;
4311}
4312
4313
4314SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4315 PyObject *resultobj = 0;
4316 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4317 wxBitmap *arg2 = 0 ;
4318 void *argp1 = 0 ;
4319 int res1 = 0 ;
4320 void *argp2 = 0 ;
4321 int res2 = 0 ;
4322 PyObject * obj0 = 0 ;
4323 PyObject * obj1 = 0 ;
4324 char * kwnames[] = {
4325 (char *) "self",(char *) "hover", NULL
4326 };
4327
4328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapHover",kwnames,&obj0,&obj1)) SWIG_fail;
4329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4330 if (!SWIG_IsOK(res1)) {
4331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4332 }
4333 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4334 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4335 if (!SWIG_IsOK(res2)) {
4336 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4337 }
4338 if (!argp2) {
4339 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4340 }
4341 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4342 {
4343 PyThreadState* __tstate = wxPyBeginAllowThreads();
4344 (arg1)->SetBitmapHover((wxBitmap const &)*arg2);
4345 wxPyEndAllowThreads(__tstate);
4346 if (PyErr_Occurred()) SWIG_fail;
4347 }
4348 resultobj = SWIG_Py_Void();
4349 return resultobj;
4350fail:
4351 return NULL;
4352}
4353
4354
4355SWIGINTERN PyObject *_wrap_BitmapButton_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4356 PyObject *resultobj = 0;
4357 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4358 int arg2 ;
4359 int arg3 ;
4360 void *argp1 = 0 ;
4361 int res1 = 0 ;
4362 int val2 ;
4363 int ecode2 = 0 ;
4364 int val3 ;
4365 int ecode3 = 0 ;
4366 PyObject * obj0 = 0 ;
4367 PyObject * obj1 = 0 ;
4368 PyObject * obj2 = 0 ;
4369 char * kwnames[] = {
4370 (char *) "self",(char *) "x",(char *) "y", NULL
4371 };
4372
4373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4375 if (!SWIG_IsOK(res1)) {
4376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetMargins" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4377 }
4378 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4379 ecode2 = SWIG_AsVal_int(obj1, &val2);
4380 if (!SWIG_IsOK(ecode2)) {
4381 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BitmapButton_SetMargins" "', expected argument " "2"" of type '" "int""'");
4382 }
4383 arg2 = static_cast< int >(val2);
4384 ecode3 = SWIG_AsVal_int(obj2, &val3);
4385 if (!SWIG_IsOK(ecode3)) {
4386 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_SetMargins" "', expected argument " "3"" of type '" "int""'");
4387 }
4388 arg3 = static_cast< int >(val3);
4389 {
4390 PyThreadState* __tstate = wxPyBeginAllowThreads();
4391 (arg1)->SetMargins(arg2,arg3);
4392 wxPyEndAllowThreads(__tstate);
4393 if (PyErr_Occurred()) SWIG_fail;
4394 }
4395 resultobj = SWIG_Py_Void();
4396 return resultobj;
4397fail:
4398 return NULL;
d14a1e28
RD
4399}
4400
4401
0085ce49
RD
4402SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4403 PyObject *resultobj = 0;
4404 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4405 int result;
4406 void *argp1 = 0 ;
4407 int res1 = 0 ;
4408 PyObject *swig_obj[1] ;
4409
4410 if (!args) SWIG_fail;
4411 swig_obj[0] = args;
4412 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4413 if (!SWIG_IsOK(res1)) {
4414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginX" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4415 }
4416 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4417 {
4418 PyThreadState* __tstate = wxPyBeginAllowThreads();
4419 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
4420 wxPyEndAllowThreads(__tstate);
4421 if (PyErr_Occurred()) SWIG_fail;
4422 }
4423 resultobj = SWIG_From_int(static_cast< int >(result));
4424 return resultobj;
4425fail:
4426 return NULL;
d14a1e28
RD
4427}
4428
4429
0085ce49
RD
4430SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4431 PyObject *resultobj = 0;
4432 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4433 int result;
4434 void *argp1 = 0 ;
4435 int res1 = 0 ;
4436 PyObject *swig_obj[1] ;
4437
4438 if (!args) SWIG_fail;
4439 swig_obj[0] = args;
4440 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4441 if (!SWIG_IsOK(res1)) {
4442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginY" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4443 }
4444 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4445 {
4446 PyThreadState* __tstate = wxPyBeginAllowThreads();
4447 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
4448 wxPyEndAllowThreads(__tstate);
4449 if (PyErr_Occurred()) SWIG_fail;
4450 }
4451 resultobj = SWIG_From_int(static_cast< int >(result));
4452 return resultobj;
4453fail:
4454 return NULL;
b1fcee84
RD
4455}
4456
4457
0085ce49
RD
4458SWIGINTERN PyObject *BitmapButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4459 PyObject *obj;
4460 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4461 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmapButton, SWIG_NewClientData(obj));
4462 return SWIG_Py_Void();
d14a1e28
RD
4463}
4464
0085ce49
RD
4465SWIGINTERN PyObject *BitmapButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4466 return SWIG_Python_InitShadowInstance(args);
4467}
d14a1e28 4468
0085ce49
RD
4469SWIGINTERN int CheckBoxNameStr_set(PyObject *) {
4470 SWIG_Error(SWIG_AttributeError,"Variable CheckBoxNameStr is read-only.");
4471 return 1;
d14a1e28
RD
4472}
4473
4474
0085ce49
RD
4475SWIGINTERN PyObject *CheckBoxNameStr_get(void) {
4476 PyObject *pyobj = 0;
4477
4478 {
4479#if wxUSE_UNICODE
4480 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4481#else
4482 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4483#endif
4484 }
4485 return pyobj;
4486}
4487
4488
4489SWIGINTERN PyObject *_wrap_new_CheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4490 PyObject *resultobj = 0;
4491 wxWindow *arg1 = (wxWindow *) 0 ;
4492 int arg2 = (int) -1 ;
4493 wxString const &arg3_defvalue = wxPyEmptyString ;
4494 wxString *arg3 = (wxString *) &arg3_defvalue ;
4495 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4496 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4497 wxSize const &arg5_defvalue = wxDefaultSize ;
4498 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4499 long arg6 = (long) 0 ;
4500 wxValidator const &arg7_defvalue = wxDefaultValidator ;
4501 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
4502 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
4503 wxString *arg8 = (wxString *) &arg8_defvalue ;
4504 wxCheckBox *result = 0 ;
4505 void *argp1 = 0 ;
4506 int res1 = 0 ;
4507 int val2 ;
4508 int ecode2 = 0 ;
4509 bool temp3 = false ;
4510 wxPoint temp4 ;
4511 wxSize temp5 ;
4512 long val6 ;
4513 int ecode6 = 0 ;
4514 void *argp7 = 0 ;
4515 int res7 = 0 ;
4516 bool temp8 = false ;
4517 PyObject * obj0 = 0 ;
4518 PyObject * obj1 = 0 ;
4519 PyObject * obj2 = 0 ;
4520 PyObject * obj3 = 0 ;
4521 PyObject * obj4 = 0 ;
4522 PyObject * obj5 = 0 ;
4523 PyObject * obj6 = 0 ;
4524 PyObject * obj7 = 0 ;
4525 char * kwnames[] = {
4526 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4527 };
4528
4529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
4530 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
4531 if (!SWIG_IsOK(res1)) {
4532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckBox" "', expected argument " "1"" of type '" "wxWindow *""'");
4533 }
4534 arg1 = reinterpret_cast< wxWindow * >(argp1);
4535 if (obj1) {
4536 ecode2 = SWIG_AsVal_int(obj1, &val2);
4537 if (!SWIG_IsOK(ecode2)) {
4538 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckBox" "', expected argument " "2"" of type '" "int""'");
4539 }
4540 arg2 = static_cast< int >(val2);
4541 }
4542 if (obj2) {
d14a1e28 4543 {
0085ce49
RD
4544 arg3 = wxString_in_helper(obj2);
4545 if (arg3 == NULL) SWIG_fail;
4546 temp3 = true;
d14a1e28 4547 }
0085ce49
RD
4548 }
4549 if (obj3) {
4550 {
4551 arg4 = &temp4;
4552 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 4553 }
0085ce49
RD
4554 }
4555 if (obj4) {
d14a1e28 4556 {
0085ce49
RD
4557 arg5 = &temp5;
4558 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 4559 }
0085ce49
RD
4560 }
4561 if (obj5) {
4562 ecode6 = SWIG_AsVal_long(obj5, &val6);
4563 if (!SWIG_IsOK(ecode6)) {
4564 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckBox" "', expected argument " "6"" of type '" "long""'");
4565 }
4566 arg6 = static_cast< long >(val6);
4567 }
4568 if (obj6) {
4569 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
4570 if (!SWIG_IsOK(res7)) {
4571 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
b1fcee84 4572 }
0085ce49
RD
4573 if (!argp7) {
4574 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4575 }
4576 arg7 = reinterpret_cast< wxValidator * >(argp7);
4577 }
4578 if (obj7) {
b1fcee84 4579 {
0085ce49
RD
4580 arg8 = wxString_in_helper(obj7);
4581 if (arg8 == NULL) SWIG_fail;
4582 temp8 = true;
b1fcee84 4583 }
0085ce49
RD
4584 }
4585 {
4586 if (!wxPyCheckForApp()) SWIG_fail;
4587 PyThreadState* __tstate = wxPyBeginAllowThreads();
4588 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
4589 wxPyEndAllowThreads(__tstate);
4590 if (PyErr_Occurred()) SWIG_fail;
4591 }
4592 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_NEW | 0 );
4593 {
4594 if (temp3)
4595 delete arg3;
4596 }
4597 {
4598 if (temp8)
4599 delete arg8;
4600 }
4601 return resultobj;
4602fail:
4603 {
4604 if (temp3)
4605 delete arg3;
4606 }
4607 {
4608 if (temp8)
4609 delete arg8;
4610 }
4611 return NULL;
b1fcee84
RD
4612}
4613
4614
0085ce49
RD
4615SWIGINTERN PyObject *_wrap_new_PreCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4616 PyObject *resultobj = 0;
4617 wxCheckBox *result = 0 ;
4618
4619 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckBox",0,0,0)) SWIG_fail;
4620 {
4621 if (!wxPyCheckForApp()) SWIG_fail;
4622 PyThreadState* __tstate = wxPyBeginAllowThreads();
4623 result = (wxCheckBox *)new wxCheckBox();
4624 wxPyEndAllowThreads(__tstate);
4625 if (PyErr_Occurred()) SWIG_fail;
4626 }
4627 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_OWN | 0 );
4628 return resultobj;
4629fail:
4630 return NULL;
4631}
4632
4633
4634SWIGINTERN PyObject *_wrap_CheckBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4635 PyObject *resultobj = 0;
4636 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4637 wxWindow *arg2 = (wxWindow *) 0 ;
4638 int arg3 = (int) -1 ;
4639 wxString const &arg4_defvalue = wxPyEmptyString ;
4640 wxString *arg4 = (wxString *) &arg4_defvalue ;
4641 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4642 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4643 wxSize const &arg6_defvalue = wxDefaultSize ;
4644 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4645 long arg7 = (long) 0 ;
4646 wxValidator const &arg8_defvalue = wxDefaultValidator ;
4647 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
4648 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
4649 wxString *arg9 = (wxString *) &arg9_defvalue ;
4650 bool result;
4651 void *argp1 = 0 ;
4652 int res1 = 0 ;
4653 void *argp2 = 0 ;
4654 int res2 = 0 ;
4655 int val3 ;
4656 int ecode3 = 0 ;
4657 bool temp4 = false ;
4658 wxPoint temp5 ;
4659 wxSize temp6 ;
4660 long val7 ;
4661 int ecode7 = 0 ;
4662 void *argp8 = 0 ;
4663 int res8 = 0 ;
4664 bool temp9 = false ;
4665 PyObject * obj0 = 0 ;
4666 PyObject * obj1 = 0 ;
4667 PyObject * obj2 = 0 ;
4668 PyObject * obj3 = 0 ;
4669 PyObject * obj4 = 0 ;
4670 PyObject * obj5 = 0 ;
4671 PyObject * obj6 = 0 ;
4672 PyObject * obj7 = 0 ;
4673 PyObject * obj8 = 0 ;
4674 char * kwnames[] = {
4675 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4676 };
4677
4678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
4679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4680 if (!SWIG_IsOK(res1)) {
4681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Create" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4682 }
4683 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4684 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
4685 if (!SWIG_IsOK(res2)) {
4686 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
4687 }
4688 arg2 = reinterpret_cast< wxWindow * >(argp2);
4689 if (obj2) {
4690 ecode3 = SWIG_AsVal_int(obj2, &val3);
4691 if (!SWIG_IsOK(ecode3)) {
4692 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckBox_Create" "', expected argument " "3"" of type '" "int""'");
4693 }
4694 arg3 = static_cast< int >(val3);
4695 }
4696 if (obj3) {
093d3ff1 4697 {
0085ce49
RD
4698 arg4 = wxString_in_helper(obj3);
4699 if (arg4 == NULL) SWIG_fail;
4700 temp4 = true;
093d3ff1 4701 }
0085ce49
RD
4702 }
4703 if (obj4) {
093d3ff1 4704 {
0085ce49
RD
4705 arg5 = &temp5;
4706 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 4707 }
0085ce49
RD
4708 }
4709 if (obj5) {
d14a1e28 4710 {
0085ce49
RD
4711 arg6 = &temp6;
4712 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d14a1e28 4713 }
0085ce49
RD
4714 }
4715 if (obj6) {
4716 ecode7 = SWIG_AsVal_long(obj6, &val7);
4717 if (!SWIG_IsOK(ecode7)) {
4718 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckBox_Create" "', expected argument " "7"" of type '" "long""'");
4719 }
4720 arg7 = static_cast< long >(val7);
4721 }
4722 if (obj7) {
4723 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4724 if (!SWIG_IsOK(res8)) {
4725 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 4726 }
0085ce49
RD
4727 if (!argp8) {
4728 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4729 }
4730 arg8 = reinterpret_cast< wxValidator * >(argp8);
4731 }
4732 if (obj8) {
093d3ff1 4733 {
0085ce49
RD
4734 arg9 = wxString_in_helper(obj8);
4735 if (arg9 == NULL) SWIG_fail;
4736 temp9 = true;
093d3ff1 4737 }
0085ce49
RD
4738 }
4739 {
4740 PyThreadState* __tstate = wxPyBeginAllowThreads();
4741 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4742 wxPyEndAllowThreads(__tstate);
4743 if (PyErr_Occurred()) SWIG_fail;
4744 }
4745 {
4746 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4747 }
4748 {
4749 if (temp4)
4750 delete arg4;
4751 }
4752 {
4753 if (temp9)
4754 delete arg9;
4755 }
4756 return resultobj;
4757fail:
4758 {
4759 if (temp4)
4760 delete arg4;
4761 }
4762 {
4763 if (temp9)
4764 delete arg9;
4765 }
4766 return NULL;
d14a1e28
RD
4767}
4768
4769
0085ce49
RD
4770SWIGINTERN PyObject *_wrap_CheckBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4771 PyObject *resultobj = 0;
4772 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4773 bool result;
4774 void *argp1 = 0 ;
4775 int res1 = 0 ;
4776 PyObject *swig_obj[1] ;
4777
4778 if (!args) SWIG_fail;
4779 swig_obj[0] = args;
4780 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4781 if (!SWIG_IsOK(res1)) {
4782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_GetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4783 }
4784 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4785 {
4786 PyThreadState* __tstate = wxPyBeginAllowThreads();
4787 result = (bool)(arg1)->GetValue();
4788 wxPyEndAllowThreads(__tstate);
4789 if (PyErr_Occurred()) SWIG_fail;
4790 }
4791 {
4792 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4793 }
4794 return resultobj;
4795fail:
4796 return NULL;
d14a1e28
RD
4797}
4798
4799
0085ce49
RD
4800SWIGINTERN PyObject *_wrap_CheckBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4801 PyObject *resultobj = 0;
4802 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4803 bool result;
4804 void *argp1 = 0 ;
4805 int res1 = 0 ;
4806 PyObject *swig_obj[1] ;
4807
4808 if (!args) SWIG_fail;
4809 swig_obj[0] = args;
4810 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4811 if (!SWIG_IsOK(res1)) {
4812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4813 }
4814 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4815 {
4816 PyThreadState* __tstate = wxPyBeginAllowThreads();
4817 result = (bool)(arg1)->IsChecked();
4818 wxPyEndAllowThreads(__tstate);
4819 if (PyErr_Occurred()) SWIG_fail;
4820 }
4821 {
4822 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4823 }
4824 return resultobj;
4825fail:
4826 return NULL;
4827}
4828
4829
4830SWIGINTERN PyObject *_wrap_CheckBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4831 PyObject *resultobj = 0;
4832 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4833 bool arg2 ;
4834 void *argp1 = 0 ;
4835 int res1 = 0 ;
4836 bool val2 ;
4837 int ecode2 = 0 ;
4838 PyObject * obj0 = 0 ;
4839 PyObject * obj1 = 0 ;
4840 char * kwnames[] = {
4841 (char *) "self",(char *) "state", NULL
4842 };
4843
4844 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
4845 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4846 if (!SWIG_IsOK(res1)) {
4847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_SetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4848 }
4849 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4850 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4851 if (!SWIG_IsOK(ecode2)) {
4852 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_SetValue" "', expected argument " "2"" of type '" "bool""'");
4853 }
4854 arg2 = static_cast< bool >(val2);
4855 {
4856 PyThreadState* __tstate = wxPyBeginAllowThreads();
4857 (arg1)->SetValue(arg2);
4858 wxPyEndAllowThreads(__tstate);
4859 if (PyErr_Occurred()) SWIG_fail;
4860 }
4861 resultobj = SWIG_Py_Void();
4862 return resultobj;
4863fail:
4864 return NULL;
d14a1e28 4865}
0085ce49
RD
4866
4867
4868SWIGINTERN PyObject *_wrap_CheckBox_Get3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4869 PyObject *resultobj = 0;
4870 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4871 wxCheckBoxState result;
4872 void *argp1 = 0 ;
4873 int res1 = 0 ;
4874 PyObject *swig_obj[1] ;
4875
4876 if (!args) SWIG_fail;
4877 swig_obj[0] = args;
4878 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4879 if (!SWIG_IsOK(res1)) {
4880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Get3StateValue" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4881 }
4882 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4883 {
4884 PyThreadState* __tstate = wxPyBeginAllowThreads();
4885 result = (wxCheckBoxState)((wxCheckBox const *)arg1)->Get3StateValue();
4886 wxPyEndAllowThreads(__tstate);
4887 if (PyErr_Occurred()) SWIG_fail;
4888 }
4889 resultobj = SWIG_From_int(static_cast< int >(result));
4890 return resultobj;
4891fail:
4892 return NULL;
4893}
4894
4895
4896SWIGINTERN PyObject *_wrap_CheckBox_Set3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4897 PyObject *resultobj = 0;
4898 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4899 wxCheckBoxState arg2 ;
4900 void *argp1 = 0 ;
4901 int res1 = 0 ;
4902 int val2 ;
4903 int ecode2 = 0 ;
4904 PyObject * obj0 = 0 ;
4905 PyObject * obj1 = 0 ;
4906 char * kwnames[] = {
4907 (char *) "self",(char *) "state", NULL
4908 };
4909
4910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) SWIG_fail;
4911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4912 if (!SWIG_IsOK(res1)) {
4913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Set3StateValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4914 }
4915 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4916 ecode2 = SWIG_AsVal_int(obj1, &val2);
4917 if (!SWIG_IsOK(ecode2)) {
4918 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_Set3StateValue" "', expected argument " "2"" of type '" "wxCheckBoxState""'");
4919 }
4920 arg2 = static_cast< wxCheckBoxState >(val2);
4921 {
4922 PyThreadState* __tstate = wxPyBeginAllowThreads();
4923 (arg1)->Set3StateValue(arg2);
4924 wxPyEndAllowThreads(__tstate);
4925 if (PyErr_Occurred()) SWIG_fail;
4926 }
4927 resultobj = SWIG_Py_Void();
4928 return resultobj;
4929fail:
4930 return NULL;
b2dc1044
RD
4931}
4932
4933
0085ce49
RD
4934SWIGINTERN PyObject *_wrap_CheckBox_Is3State(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4935 PyObject *resultobj = 0;
4936 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4937 bool result;
4938 void *argp1 = 0 ;
4939 int res1 = 0 ;
4940 PyObject *swig_obj[1] ;
4941
4942 if (!args) SWIG_fail;
4943 swig_obj[0] = args;
4944 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4945 if (!SWIG_IsOK(res1)) {
4946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3State" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4947 }
4948 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4949 {
4950 PyThreadState* __tstate = wxPyBeginAllowThreads();
4951 result = (bool)((wxCheckBox const *)arg1)->Is3State();
4952 wxPyEndAllowThreads(__tstate);
4953 if (PyErr_Occurred()) SWIG_fail;
4954 }
4955 {
4956 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4957 }
4958 return resultobj;
4959fail:
4960 return NULL;
d14a1e28
RD
4961}
4962
4963
0085ce49
RD
4964SWIGINTERN PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4965 PyObject *resultobj = 0;
4966 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4967 bool result;
4968 void *argp1 = 0 ;
4969 int res1 = 0 ;
4970 PyObject *swig_obj[1] ;
4971
4972 if (!args) SWIG_fail;
4973 swig_obj[0] = args;
4974 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4975 if (!SWIG_IsOK(res1)) {
4976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3rdStateAllowedForUser" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4977 }
4978 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4979 {
4980 PyThreadState* __tstate = wxPyBeginAllowThreads();
4981 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
4982 wxPyEndAllowThreads(__tstate);
4983 if (PyErr_Occurred()) SWIG_fail;
4984 }
4985 {
4986 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4987 }
4988 return resultobj;
4989fail:
4990 return NULL;
d14a1e28
RD
4991}
4992
4993
0085ce49
RD
4994SWIGINTERN PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4995 PyObject *resultobj = 0;
4996 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
4997 SwigValueWrapper<wxVisualAttributes > result;
4998 int val1 ;
4999 int ecode1 = 0 ;
5000 PyObject * obj0 = 0 ;
5001 char * kwnames[] = {
5002 (char *) "variant", NULL
5003 };
5004
5005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5006 if (obj0) {
5007 ecode1 = SWIG_AsVal_int(obj0, &val1);
5008 if (!SWIG_IsOK(ecode1)) {
5009 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CheckBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5010 }
5011 arg1 = static_cast< wxWindowVariant >(val1);
5012 }
5013 {
5014 if (!wxPyCheckForApp()) SWIG_fail;
5015 PyThreadState* __tstate = wxPyBeginAllowThreads();
5016 result = wxCheckBox::GetClassDefaultAttributes(arg1);
5017 wxPyEndAllowThreads(__tstate);
5018 if (PyErr_Occurred()) SWIG_fail;
5019 }
5020 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5021 return resultobj;
5022fail:
5023 return NULL;
d14a1e28
RD
5024}
5025
5026
0085ce49
RD
5027SWIGINTERN PyObject *CheckBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5028 PyObject *obj;
5029 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5030 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckBox, SWIG_NewClientData(obj));
5031 return SWIG_Py_Void();
d14a1e28
RD
5032}
5033
0085ce49
RD
5034SWIGINTERN PyObject *CheckBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5035 return SWIG_Python_InitShadowInstance(args);
5036}
d14a1e28 5037
0085ce49
RD
5038SWIGINTERN int ChoiceNameStr_set(PyObject *) {
5039 SWIG_Error(SWIG_AttributeError,"Variable ChoiceNameStr is read-only.");
5040 return 1;
d14a1e28
RD
5041}
5042
5043
0085ce49
RD
5044SWIGINTERN PyObject *ChoiceNameStr_get(void) {
5045 PyObject *pyobj = 0;
5046
5047 {
5048#if wxUSE_UNICODE
5049 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5050#else
5051 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5052#endif
5053 }
5054 return pyobj;
5055}
5056
5057
5058SWIGINTERN PyObject *_wrap_new_Choice(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5059 PyObject *resultobj = 0;
5060 wxWindow *arg1 = (wxWindow *) 0 ;
5061 int arg2 = (int) -1 ;
5062 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5063 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5064 wxSize const &arg4_defvalue = wxDefaultSize ;
5065 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5066 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5067 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5068 long arg6 = (long) 0 ;
5069 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5070 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5071 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
5072 wxString *arg8 = (wxString *) &arg8_defvalue ;
5073 wxChoice *result = 0 ;
5074 void *argp1 = 0 ;
5075 int res1 = 0 ;
5076 int val2 ;
5077 int ecode2 = 0 ;
5078 wxPoint temp3 ;
5079 wxSize temp4 ;
5080 bool temp5 = false ;
5081 long val6 ;
5082 int ecode6 = 0 ;
5083 void *argp7 = 0 ;
5084 int res7 = 0 ;
5085 bool temp8 = false ;
5086 PyObject * obj0 = 0 ;
5087 PyObject * obj1 = 0 ;
5088 PyObject * obj2 = 0 ;
5089 PyObject * obj3 = 0 ;
5090 PyObject * obj4 = 0 ;
5091 PyObject * obj5 = 0 ;
5092 PyObject * obj6 = 0 ;
5093 PyObject * obj7 = 0 ;
5094 char * kwnames[] = {
5095 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5096 };
5097
5098 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
5099 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5100 if (!SWIG_IsOK(res1)) {
5101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choice" "', expected argument " "1"" of type '" "wxWindow *""'");
5102 }
5103 arg1 = reinterpret_cast< wxWindow * >(argp1);
5104 if (obj1) {
5105 ecode2 = SWIG_AsVal_int(obj1, &val2);
5106 if (!SWIG_IsOK(ecode2)) {
5107 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choice" "', expected argument " "2"" of type '" "int""'");
5108 }
5109 arg2 = static_cast< int >(val2);
5110 }
5111 if (obj2) {
093d3ff1 5112 {
0085ce49
RD
5113 arg3 = &temp3;
5114 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 5115 }
0085ce49
RD
5116 }
5117 if (obj3) {
d14a1e28 5118 {
0085ce49
RD
5119 arg4 = &temp4;
5120 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 5121 }
0085ce49
RD
5122 }
5123 if (obj4) {
d14a1e28 5124 {
0085ce49
RD
5125 if (! PySequence_Check(obj4)) {
5126 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5127 SWIG_fail;
5128 }
5129 arg5 = new wxArrayString;
5130 temp5 = true;
5131 int i, len=PySequence_Length(obj4);
5132 for (i=0; i<len; i++) {
5133 PyObject* item = PySequence_GetItem(obj4, i);
5134 wxString* s = wxString_in_helper(item);
5135 if (PyErr_Occurred()) SWIG_fail;
5136 arg5->Add(*s);
5137 delete s;
5138 Py_DECREF(item);
5139 }
d14a1e28 5140 }
0085ce49
RD
5141 }
5142 if (obj5) {
5143 ecode6 = SWIG_AsVal_long(obj5, &val6);
5144 if (!SWIG_IsOK(ecode6)) {
5145 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Choice" "', expected argument " "6"" of type '" "long""'");
5146 }
5147 arg6 = static_cast< long >(val6);
5148 }
5149 if (obj6) {
5150 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
5151 if (!SWIG_IsOK(res7)) {
5152 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
093d3ff1 5153 }
0085ce49
RD
5154 if (!argp7) {
5155 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5156 }
5157 arg7 = reinterpret_cast< wxValidator * >(argp7);
5158 }
5159 if (obj7) {
d14a1e28 5160 {
0085ce49
RD
5161 arg8 = wxString_in_helper(obj7);
5162 if (arg8 == NULL) SWIG_fail;
5163 temp8 = true;
d14a1e28 5164 }
0085ce49
RD
5165 }
5166 {
5167 if (!wxPyCheckForApp()) SWIG_fail;
5168 PyThreadState* __tstate = wxPyBeginAllowThreads();
5169 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5170 wxPyEndAllowThreads(__tstate);
5171 if (PyErr_Occurred()) SWIG_fail;
5172 }
5173 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_NEW | 0 );
5174 {
5175 if (temp5) delete arg5;
5176 }
5177 {
5178 if (temp8)
5179 delete arg8;
5180 }
5181 return resultobj;
5182fail:
5183 {
5184 if (temp5) delete arg5;
5185 }
5186 {
5187 if (temp8)
5188 delete arg8;
5189 }
5190 return NULL;
d14a1e28
RD
5191}
5192
5193
0085ce49
RD
5194SWIGINTERN PyObject *_wrap_new_PreChoice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5195 PyObject *resultobj = 0;
5196 wxChoice *result = 0 ;
5197
5198 if (!SWIG_Python_UnpackTuple(args,"new_PreChoice",0,0,0)) SWIG_fail;
5199 {
5200 if (!wxPyCheckForApp()) SWIG_fail;
5201 PyThreadState* __tstate = wxPyBeginAllowThreads();
5202 result = (wxChoice *)new wxChoice();
5203 wxPyEndAllowThreads(__tstate);
5204 if (PyErr_Occurred()) SWIG_fail;
5205 }
5206 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_OWN | 0 );
5207 return resultobj;
5208fail:
5209 return NULL;
5210}
5211
5212
5213SWIGINTERN PyObject *_wrap_Choice_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5214 PyObject *resultobj = 0;
5215 wxChoice *arg1 = (wxChoice *) 0 ;
5216 wxWindow *arg2 = (wxWindow *) 0 ;
5217 int arg3 = (int) -1 ;
5218 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5219 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5220 wxSize const &arg5_defvalue = wxDefaultSize ;
5221 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5222 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5223 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5224 long arg7 = (long) 0 ;
5225 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5226 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5227 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
5228 wxString *arg9 = (wxString *) &arg9_defvalue ;
5229 bool result;
5230 void *argp1 = 0 ;
5231 int res1 = 0 ;
5232 void *argp2 = 0 ;
5233 int res2 = 0 ;
5234 int val3 ;
5235 int ecode3 = 0 ;
5236 wxPoint temp4 ;
5237 wxSize temp5 ;
5238 bool temp6 = false ;
5239 long val7 ;
5240 int ecode7 = 0 ;
5241 void *argp8 = 0 ;
5242 int res8 = 0 ;
5243 bool temp9 = false ;
5244 PyObject * obj0 = 0 ;
5245 PyObject * obj1 = 0 ;
5246 PyObject * obj2 = 0 ;
5247 PyObject * obj3 = 0 ;
5248 PyObject * obj4 = 0 ;
5249 PyObject * obj5 = 0 ;
5250 PyObject * obj6 = 0 ;
5251 PyObject * obj7 = 0 ;
5252 PyObject * obj8 = 0 ;
5253 char * kwnames[] = {
5254 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5255 };
5256
5257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5259 if (!SWIG_IsOK(res1)) {
5260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_Create" "', expected argument " "1"" of type '" "wxChoice *""'");
5261 }
5262 arg1 = reinterpret_cast< wxChoice * >(argp1);
5263 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5264 if (!SWIG_IsOK(res2)) {
5265 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choice_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5266 }
5267 arg2 = reinterpret_cast< wxWindow * >(argp2);
5268 if (obj2) {
5269 ecode3 = SWIG_AsVal_int(obj2, &val3);
5270 if (!SWIG_IsOK(ecode3)) {
5271 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choice_Create" "', expected argument " "3"" of type '" "int""'");
5272 }
5273 arg3 = static_cast< int >(val3);
5274 }
5275 if (obj3) {
d14a1e28 5276 {
0085ce49
RD
5277 arg4 = &temp4;
5278 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 5279 }
0085ce49
RD
5280 }
5281 if (obj4) {
4f89f6a3 5282 {
0085ce49
RD
5283 arg5 = &temp5;
5284 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4f89f6a3 5285 }
0085ce49
RD
5286 }
5287 if (obj5) {
d14a1e28 5288 {
0085ce49
RD
5289 if (! PySequence_Check(obj5)) {
5290 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5291 SWIG_fail;
5292 }
5293 arg6 = new wxArrayString;
5294 temp6 = true;
5295 int i, len=PySequence_Length(obj5);
5296 for (i=0; i<len; i++) {
5297 PyObject* item = PySequence_GetItem(obj5, i);
5298 wxString* s = wxString_in_helper(item);
5299 if (PyErr_Occurred()) SWIG_fail;
5300 arg6->Add(*s);
5301 delete s;
5302 Py_DECREF(item);
5303 }
5304 }
5305 }
5306 if (obj6) {
5307 ecode7 = SWIG_AsVal_long(obj6, &val7);
5308 if (!SWIG_IsOK(ecode7)) {
5309 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Choice_Create" "', expected argument " "7"" of type '" "long""'");
5310 }
5311 arg7 = static_cast< long >(val7);
5312 }
5313 if (obj7) {
5314 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5315 if (!SWIG_IsOK(res8)) {
5316 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 5317 }
0085ce49
RD
5318 if (!argp8) {
5319 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5320 }
5321 arg8 = reinterpret_cast< wxValidator * >(argp8);
5322 }
5323 if (obj8) {
4f89f6a3 5324 {
0085ce49
RD
5325 arg9 = wxString_in_helper(obj8);
5326 if (arg9 == NULL) SWIG_fail;
5327 temp9 = true;
4f89f6a3 5328 }
0085ce49
RD
5329 }
5330 {
5331 PyThreadState* __tstate = wxPyBeginAllowThreads();
5332 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5333 wxPyEndAllowThreads(__tstate);
5334 if (PyErr_Occurred()) SWIG_fail;
5335 }
5336 {
5337 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5338 }
5339 {
5340 if (temp6) delete arg6;
5341 }
5342 {
5343 if (temp9)
5344 delete arg9;
5345 }
5346 return resultobj;
5347fail:
5348 {
5349 if (temp6) delete arg6;
5350 }
5351 {
5352 if (temp9)
5353 delete arg9;
5354 }
5355 return NULL;
d14a1e28
RD
5356}
5357
5358
0085ce49
RD
5359SWIGINTERN PyObject *_wrap_Choice_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5360 PyObject *resultobj = 0;
5361 wxChoice *arg1 = (wxChoice *) 0 ;
5362 int result;
5363 void *argp1 = 0 ;
5364 int res1 = 0 ;
5365 PyObject *swig_obj[1] ;
5366
5367 if (!args) SWIG_fail;
5368 swig_obj[0] = args;
5369 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5370 if (!SWIG_IsOK(res1)) {
5371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_GetCurrentSelection" "', expected argument " "1"" of type '" "wxChoice const *""'");
5372 }
5373 arg1 = reinterpret_cast< wxChoice * >(argp1);
5374 {
5375 PyThreadState* __tstate = wxPyBeginAllowThreads();
5376 result = (int)((wxChoice const *)arg1)->GetCurrentSelection();
5377 wxPyEndAllowThreads(__tstate);
5378 if (PyErr_Occurred()) SWIG_fail;
5379 }
5380 resultobj = SWIG_From_int(static_cast< int >(result));
5381 return resultobj;
5382fail:
5383 return NULL;
5384}
5385
5386
5387SWIGINTERN PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5388 PyObject *resultobj = 0;
5389 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5390 SwigValueWrapper<wxVisualAttributes > result;
5391 int val1 ;
5392 int ecode1 = 0 ;
5393 PyObject * obj0 = 0 ;
5394 char * kwnames[] = {
5395 (char *) "variant", NULL
5396 };
5397
5398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5399 if (obj0) {
5400 ecode1 = SWIG_AsVal_int(obj0, &val1);
5401 if (!SWIG_IsOK(ecode1)) {
5402 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Choice_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5403 }
5404 arg1 = static_cast< wxWindowVariant >(val1);
5405 }
5406 {
5407 if (!wxPyCheckForApp()) SWIG_fail;
5408 PyThreadState* __tstate = wxPyBeginAllowThreads();
5409 result = wxChoice::GetClassDefaultAttributes(arg1);
5410 wxPyEndAllowThreads(__tstate);
5411 if (PyErr_Occurred()) SWIG_fail;
5412 }
5413 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5414 return resultobj;
5415fail:
5416 return NULL;
22bfe96c
RD
5417}
5418
5419
0085ce49
RD
5420SWIGINTERN PyObject *Choice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5421 PyObject *obj;
5422 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5423 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoice, SWIG_NewClientData(obj));
5424 return SWIG_Py_Void();
d14a1e28 5425}
0085ce49
RD
5426
5427SWIGINTERN PyObject *Choice_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5428 return SWIG_Python_InitShadowInstance(args);
5429}
5430
5431SWIGINTERN int ComboBoxNameStr_set(PyObject *) {
5432 SWIG_Error(SWIG_AttributeError,"Variable ComboBoxNameStr is read-only.");
5433 return 1;
b2dc1044
RD
5434}
5435
5436
0085ce49
RD
5437SWIGINTERN PyObject *ComboBoxNameStr_get(void) {
5438 PyObject *pyobj = 0;
5439
5440 {
b2dc1044 5441#if wxUSE_UNICODE
0085ce49 5442 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
b2dc1044 5443#else
0085ce49 5444 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
b2dc1044 5445#endif
0085ce49
RD
5446 }
5447 return pyobj;
5448}
5449
5450
5451SWIGINTERN PyObject *_wrap_new_ComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5452 PyObject *resultobj = 0;
5453 wxWindow *arg1 = (wxWindow *) 0 ;
5454 int arg2 = (int) -1 ;
5455 wxString const &arg3_defvalue = wxPyEmptyString ;
5456 wxString *arg3 = (wxString *) &arg3_defvalue ;
5457 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5458 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5459 wxSize const &arg5_defvalue = wxDefaultSize ;
5460 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5461 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5462 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5463 long arg7 = (long) 0 ;
5464 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5465 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5466 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
5467 wxString *arg9 = (wxString *) &arg9_defvalue ;
5468 wxComboBox *result = 0 ;
5469 void *argp1 = 0 ;
5470 int res1 = 0 ;
5471 int val2 ;
5472 int ecode2 = 0 ;
5473 bool temp3 = false ;
5474 wxPoint temp4 ;
5475 wxSize temp5 ;
5476 bool temp6 = false ;
5477 long val7 ;
5478 int ecode7 = 0 ;
5479 void *argp8 = 0 ;
5480 int res8 = 0 ;
5481 bool temp9 = false ;
5482 PyObject * obj0 = 0 ;
5483 PyObject * obj1 = 0 ;
5484 PyObject * obj2 = 0 ;
5485 PyObject * obj3 = 0 ;
5486 PyObject * obj4 = 0 ;
5487 PyObject * obj5 = 0 ;
5488 PyObject * obj6 = 0 ;
5489 PyObject * obj7 = 0 ;
5490 PyObject * obj8 = 0 ;
5491 char * kwnames[] = {
5492 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5493 };
5494
5495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5497 if (!SWIG_IsOK(res1)) {
5498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ComboBox" "', expected argument " "1"" of type '" "wxWindow *""'");
5499 }
5500 arg1 = reinterpret_cast< wxWindow * >(argp1);
5501 if (obj1) {
5502 ecode2 = SWIG_AsVal_int(obj1, &val2);
5503 if (!SWIG_IsOK(ecode2)) {
5504 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ComboBox" "', expected argument " "2"" of type '" "int""'");
5505 }
5506 arg2 = static_cast< int >(val2);
5507 }
5508 if (obj2) {
d14a1e28 5509 {
0085ce49
RD
5510 arg3 = wxString_in_helper(obj2);
5511 if (arg3 == NULL) SWIG_fail;
5512 temp3 = true;
d14a1e28 5513 }
0085ce49
RD
5514 }
5515 if (obj3) {
d14a1e28 5516 {
0085ce49
RD
5517 arg4 = &temp4;
5518 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 5519 }
0085ce49
RD
5520 }
5521 if (obj4) {
d14a1e28 5522 {
0085ce49
RD
5523 arg5 = &temp5;
5524 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 5525 }
0085ce49
RD
5526 }
5527 if (obj5) {
d14a1e28 5528 {
0085ce49
RD
5529 if (! PySequence_Check(obj5)) {
5530 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5531 SWIG_fail;
5532 }
5533 arg6 = new wxArrayString;
5534 temp6 = true;
5535 int i, len=PySequence_Length(obj5);
5536 for (i=0; i<len; i++) {
5537 PyObject* item = PySequence_GetItem(obj5, i);
5538 wxString* s = wxString_in_helper(item);
5539 if (PyErr_Occurred()) SWIG_fail;
5540 arg6->Add(*s);
5541 delete s;
5542 Py_DECREF(item);
5543 }
d14a1e28 5544 }
0085ce49
RD
5545 }
5546 if (obj6) {
5547 ecode7 = SWIG_AsVal_long(obj6, &val7);
5548 if (!SWIG_IsOK(ecode7)) {
5549 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ComboBox" "', expected argument " "7"" of type '" "long""'");
5550 }
5551 arg7 = static_cast< long >(val7);
5552 }
5553 if (obj7) {
5554 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5555 if (!SWIG_IsOK(res8)) {
5556 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5557 }
5558 if (!argp8) {
5559 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5560 }
5561 arg8 = reinterpret_cast< wxValidator * >(argp8);
5562 }
5563 if (obj8) {
d14a1e28 5564 {
0085ce49
RD
5565 arg9 = wxString_in_helper(obj8);
5566 if (arg9 == NULL) SWIG_fail;
5567 temp9 = true;
d14a1e28 5568 }
0085ce49
RD
5569 }
5570 {
5571 if (!wxPyCheckForApp()) SWIG_fail;
5572 PyThreadState* __tstate = wxPyBeginAllowThreads();
5573 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);
5574 wxPyEndAllowThreads(__tstate);
5575 if (PyErr_Occurred()) SWIG_fail;
5576 }
5577 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_NEW | 0 );
5578 {
5579 if (temp3)
5580 delete arg3;
5581 }
5582 {
5583 if (temp6) delete arg6;
5584 }
5585 {
5586 if (temp9)
5587 delete arg9;
5588 }
5589 return resultobj;
5590fail:
5591 {
5592 if (temp3)
5593 delete arg3;
5594 }
5595 {
5596 if (temp6) delete arg6;
5597 }
5598 {
5599 if (temp9)
5600 delete arg9;
5601 }
5602 return NULL;
d14a1e28
RD
5603}
5604
5605
0085ce49
RD
5606SWIGINTERN PyObject *_wrap_new_PreComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5607 PyObject *resultobj = 0;
5608 wxComboBox *result = 0 ;
5609
5610 if (!SWIG_Python_UnpackTuple(args,"new_PreComboBox",0,0,0)) SWIG_fail;
5611 {
5612 if (!wxPyCheckForApp()) SWIG_fail;
5613 PyThreadState* __tstate = wxPyBeginAllowThreads();
5614 result = (wxComboBox *)new wxComboBox();
5615 wxPyEndAllowThreads(__tstate);
5616 if (PyErr_Occurred()) SWIG_fail;
5617 }
5618 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_OWN | 0 );
5619 return resultobj;
5620fail:
5621 return NULL;
5622}
5623
5624
5625SWIGINTERN PyObject *_wrap_ComboBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5626 PyObject *resultobj = 0;
5627 wxComboBox *arg1 = (wxComboBox *) 0 ;
5628 wxWindow *arg2 = (wxWindow *) 0 ;
5629 int arg3 = (int) -1 ;
5630 wxString const &arg4_defvalue = wxPyEmptyString ;
5631 wxString *arg4 = (wxString *) &arg4_defvalue ;
5632 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5633 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5634 wxSize const &arg6_defvalue = wxDefaultSize ;
5635 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5636 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
5637 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
5638 long arg8 = (long) 0 ;
5639 wxValidator const &arg9_defvalue = wxDefaultValidator ;
5640 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
5641 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
5642 wxString *arg10 = (wxString *) &arg10_defvalue ;
5643 bool result;
5644 void *argp1 = 0 ;
5645 int res1 = 0 ;
5646 void *argp2 = 0 ;
5647 int res2 = 0 ;
5648 int val3 ;
5649 int ecode3 = 0 ;
5650 bool temp4 = false ;
5651 wxPoint temp5 ;
5652 wxSize temp6 ;
5653 bool temp7 = false ;
5654 long val8 ;
5655 int ecode8 = 0 ;
5656 void *argp9 = 0 ;
5657 int res9 = 0 ;
5658 bool temp10 = false ;
5659 PyObject * obj0 = 0 ;
5660 PyObject * obj1 = 0 ;
5661 PyObject * obj2 = 0 ;
5662 PyObject * obj3 = 0 ;
5663 PyObject * obj4 = 0 ;
5664 PyObject * obj5 = 0 ;
5665 PyObject * obj6 = 0 ;
5666 PyObject * obj7 = 0 ;
5667 PyObject * obj8 = 0 ;
5668 PyObject * obj9 = 0 ;
5669 char * kwnames[] = {
5670 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5671 };
5672
5673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
5674 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5675 if (!SWIG_IsOK(res1)) {
5676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Create" "', expected argument " "1"" of type '" "wxComboBox *""'");
5677 }
5678 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5679 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5680 if (!SWIG_IsOK(res2)) {
5681 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ComboBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5682 }
5683 arg2 = reinterpret_cast< wxWindow * >(argp2);
5684 if (obj2) {
5685 ecode3 = SWIG_AsVal_int(obj2, &val3);
5686 if (!SWIG_IsOK(ecode3)) {
5687 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Create" "', expected argument " "3"" of type '" "int""'");
5688 }
5689 arg3 = static_cast< int >(val3);
5690 }
5691 if (obj3) {
4f89f6a3 5692 {
0085ce49
RD
5693 arg4 = wxString_in_helper(obj3);
5694 if (arg4 == NULL) SWIG_fail;
5695 temp4 = true;
4f89f6a3 5696 }
0085ce49
RD
5697 }
5698 if (obj4) {
d14a1e28 5699 {
0085ce49
RD
5700 arg5 = &temp5;
5701 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 5702 }
0085ce49
RD
5703 }
5704 if (obj5) {
d14a1e28 5705 {
0085ce49
RD
5706 arg6 = &temp6;
5707 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d14a1e28 5708 }
0085ce49
RD
5709 }
5710 if (obj6) {
d14a1e28 5711 {
0085ce49
RD
5712 if (! PySequence_Check(obj6)) {
5713 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5714 SWIG_fail;
5715 }
5716 arg7 = new wxArrayString;
5717 temp7 = true;
5718 int i, len=PySequence_Length(obj6);
5719 for (i=0; i<len; i++) {
5720 PyObject* item = PySequence_GetItem(obj6, i);
5721 wxString* s = wxString_in_helper(item);
5722 if (PyErr_Occurred()) SWIG_fail;
5723 arg7->Add(*s);
5724 delete s;
5725 Py_DECREF(item);
5726 }
d14a1e28 5727 }
0085ce49
RD
5728 }
5729 if (obj7) {
5730 ecode8 = SWIG_AsVal_long(obj7, &val8);
5731 if (!SWIG_IsOK(ecode8)) {
5732 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ComboBox_Create" "', expected argument " "8"" of type '" "long""'");
5733 }
5734 arg8 = static_cast< long >(val8);
5735 }
5736 if (obj8) {
5737 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
5738 if (!SWIG_IsOK(res9)) {
5739 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
d14a1e28 5740 }
0085ce49
RD
5741 if (!argp9) {
5742 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
d14a1e28 5743 }
0085ce49
RD
5744 arg9 = reinterpret_cast< wxValidator * >(argp9);
5745 }
5746 if (obj9) {
d14a1e28 5747 {
0085ce49
RD
5748 arg10 = wxString_in_helper(obj9);
5749 if (arg10 == NULL) SWIG_fail;
5750 temp10 = true;
d14a1e28 5751 }
0085ce49
RD
5752 }
5753 {
5754 PyThreadState* __tstate = wxPyBeginAllowThreads();
5755 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);
5756 wxPyEndAllowThreads(__tstate);
5757 if (PyErr_Occurred()) SWIG_fail;
5758 }
5759 {
5760 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5761 }
5762 {
5763 if (temp4)
5764 delete arg4;
5765 }
5766 {
5767 if (temp7) delete arg7;
5768 }
5769 {
5770 if (temp10)
5771 delete arg10;
5772 }
5773 return resultobj;
5774fail:
5775 {
5776 if (temp4)
5777 delete arg4;
5778 }
5779 {
5780 if (temp7) delete arg7;
5781 }
5782 {
5783 if (temp10)
5784 delete arg10;
5785 }
5786 return NULL;
d14a1e28
RD
5787}
5788
5789
0085ce49
RD
5790SWIGINTERN PyObject *_wrap_ComboBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5791 PyObject *resultobj = 0;
5792 wxComboBox *arg1 = (wxComboBox *) 0 ;
5793 wxString result;
5794 void *argp1 = 0 ;
5795 int res1 = 0 ;
5796 PyObject *swig_obj[1] ;
5797
5798 if (!args) SWIG_fail;
5799 swig_obj[0] = args;
5800 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5801 if (!SWIG_IsOK(res1)) {
5802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetValue" "', expected argument " "1"" of type '" "wxComboBox const *""'");
5803 }
5804 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5805 {
5806 PyThreadState* __tstate = wxPyBeginAllowThreads();
5807 result = ((wxComboBox const *)arg1)->GetValue();
5808 wxPyEndAllowThreads(__tstate);
5809 if (PyErr_Occurred()) SWIG_fail;
5810 }
5811 {
d14a1e28 5812#if wxUSE_UNICODE
0085ce49 5813 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d14a1e28 5814#else
0085ce49 5815 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d14a1e28 5816#endif
0085ce49
RD
5817 }
5818 return resultobj;
5819fail:
5820 return NULL;
5821}
5822
5823
5824SWIGINTERN PyObject *_wrap_ComboBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5825 PyObject *resultobj = 0;
5826 wxComboBox *arg1 = (wxComboBox *) 0 ;
5827 wxString *arg2 = 0 ;
5828 void *argp1 = 0 ;
5829 int res1 = 0 ;
5830 bool temp2 = false ;
5831 PyObject * obj0 = 0 ;
5832 PyObject * obj1 = 0 ;
5833 char * kwnames[] = {
5834 (char *) "self",(char *) "value", NULL
5835 };
5836
5837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
5838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5839 if (!SWIG_IsOK(res1)) {
5840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetValue" "', expected argument " "1"" of type '" "wxComboBox *""'");
5841 }
5842 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5843 {
5844 arg2 = wxString_in_helper(obj1);
5845 if (arg2 == NULL) SWIG_fail;
5846 temp2 = true;
5847 }
5848 {
5849 PyThreadState* __tstate = wxPyBeginAllowThreads();
5850 (arg1)->SetValue((wxString const &)*arg2);
5851 wxPyEndAllowThreads(__tstate);
5852 if (PyErr_Occurred()) SWIG_fail;
5853 }
5854 resultobj = SWIG_Py_Void();
5855 {
5856 if (temp2)
5857 delete arg2;
5858 }
5859 return resultobj;
5860fail:
5861 {
5862 if (temp2)
5863 delete arg2;
5864 }
5865 return NULL;
d14a1e28
RD
5866}
5867
5868
0085ce49
RD
5869SWIGINTERN PyObject *_wrap_ComboBox_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5870 PyObject *resultobj = 0;
5871 wxComboBox *arg1 = (wxComboBox *) 0 ;
5872 void *argp1 = 0 ;
5873 int res1 = 0 ;
5874 PyObject *swig_obj[1] ;
5875
5876 if (!args) SWIG_fail;
5877 swig_obj[0] = args;
5878 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5879 if (!SWIG_IsOK(res1)) {
5880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Copy" "', expected argument " "1"" of type '" "wxComboBox *""'");
5881 }
5882 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5883 {
5884 PyThreadState* __tstate = wxPyBeginAllowThreads();
5885 (arg1)->Copy();
5886 wxPyEndAllowThreads(__tstate);
5887 if (PyErr_Occurred()) SWIG_fail;
5888 }
5889 resultobj = SWIG_Py_Void();
5890 return resultobj;
5891fail:
5892 return NULL;
d14a1e28
RD
5893}
5894
5895
0085ce49
RD
5896SWIGINTERN PyObject *_wrap_ComboBox_Cut(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_Cut" "', expected argument " "1"" of type '" "wxComboBox *""'");
5908 }
5909 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5910 {
5911 PyThreadState* __tstate = wxPyBeginAllowThreads();
5912 (arg1)->Cut();
5913 wxPyEndAllowThreads(__tstate);
5914 if (PyErr_Occurred()) SWIG_fail;
5915 }
5916 resultobj = SWIG_Py_Void();
5917 return resultobj;
5918fail:
5919 return NULL;
d14a1e28
RD
5920}
5921
5922
0085ce49
RD
5923SWIGINTERN PyObject *_wrap_ComboBox_Paste(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_Paste" "', expected argument " "1"" of type '" "wxComboBox *""'");
5935 }
5936 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5937 {
5938 PyThreadState* __tstate = wxPyBeginAllowThreads();
5939 (arg1)->Paste();
5940 wxPyEndAllowThreads(__tstate);
5941 if (PyErr_Occurred()) SWIG_fail;
5942 }
5943 resultobj = SWIG_Py_Void();
5944 return resultobj;
5945fail:
5946 return NULL;
5947}
5948
5949
5950SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5951 PyObject *resultobj = 0;
5952 wxComboBox *arg1 = (wxComboBox *) 0 ;
5953 long arg2 ;
5954 void *argp1 = 0 ;
5955 int res1 = 0 ;
5956 long val2 ;
5957 int ecode2 = 0 ;
5958 PyObject * obj0 = 0 ;
5959 PyObject * obj1 = 0 ;
5960 char * kwnames[] = {
5961 (char *) "self",(char *) "pos", NULL
5962 };
5963
5964 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
5965 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5966 if (!SWIG_IsOK(res1)) {
5967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox *""'");
5968 }
5969 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5970 ecode2 = SWIG_AsVal_long(obj1, &val2);
5971 if (!SWIG_IsOK(ecode2)) {
5972 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
5973 }
5974 arg2 = static_cast< long >(val2);
5975 {
5976 PyThreadState* __tstate = wxPyBeginAllowThreads();
5977 (arg1)->SetInsertionPoint(arg2);
5978 wxPyEndAllowThreads(__tstate);
5979 if (PyErr_Occurred()) SWIG_fail;
5980 }
5981 resultobj = SWIG_Py_Void();
5982 return resultobj;
5983fail:
5984 return NULL;
d14a1e28
RD
5985}
5986
5987
0085ce49
RD
5988SWIGINTERN PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5989 PyObject *resultobj = 0;
5990 wxComboBox *arg1 = (wxComboBox *) 0 ;
5991 long result;
5992 void *argp1 = 0 ;
5993 int res1 = 0 ;
5994 PyObject *swig_obj[1] ;
5995
5996 if (!args) SWIG_fail;
5997 swig_obj[0] = args;
5998 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5999 if (!SWIG_IsOK(res1)) {
6000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6001 }
6002 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6003 {
6004 PyThreadState* __tstate = wxPyBeginAllowThreads();
6005 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
6006 wxPyEndAllowThreads(__tstate);
6007 if (PyErr_Occurred()) SWIG_fail;
6008 }
6009 resultobj = SWIG_From_long(static_cast< long >(result));
6010 return resultobj;
6011fail:
6012 return NULL;
d14a1e28
RD
6013}
6014
6015
0085ce49
RD
6016SWIGINTERN PyObject *_wrap_ComboBox_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6017 PyObject *resultobj = 0;
6018 wxComboBox *arg1 = (wxComboBox *) 0 ;
6019 long result;
6020 void *argp1 = 0 ;
6021 int res1 = 0 ;
6022 PyObject *swig_obj[1] ;
6023
6024 if (!args) SWIG_fail;
6025 swig_obj[0] = args;
6026 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6027 if (!SWIG_IsOK(res1)) {
6028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetLastPosition" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6029 }
6030 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6031 {
6032 PyThreadState* __tstate = wxPyBeginAllowThreads();
6033 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
6034 wxPyEndAllowThreads(__tstate);
6035 if (PyErr_Occurred()) SWIG_fail;
6036 }
6037 resultobj = SWIG_From_long(static_cast< long >(result));
6038 return resultobj;
6039fail:
6040 return NULL;
6041}
6042
6043
6044SWIGINTERN PyObject *_wrap_ComboBox_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6045 PyObject *resultobj = 0;
6046 wxComboBox *arg1 = (wxComboBox *) 0 ;
6047 long arg2 ;
6048 long arg3 ;
6049 wxString *arg4 = 0 ;
6050 void *argp1 = 0 ;
6051 int res1 = 0 ;
6052 long val2 ;
6053 int ecode2 = 0 ;
6054 long val3 ;
6055 int ecode3 = 0 ;
6056 bool temp4 = false ;
6057 PyObject * obj0 = 0 ;
6058 PyObject * obj1 = 0 ;
6059 PyObject * obj2 = 0 ;
6060 PyObject * obj3 = 0 ;
6061 char * kwnames[] = {
6062 (char *) "self",(char *) "_from",(char *) "to",(char *) "value", NULL
6063 };
6064
6065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6067 if (!SWIG_IsOK(res1)) {
6068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Replace" "', expected argument " "1"" of type '" "wxComboBox *""'");
6069 }
6070 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6071 ecode2 = SWIG_AsVal_long(obj1, &val2);
6072 if (!SWIG_IsOK(ecode2)) {
6073 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Replace" "', expected argument " "2"" of type '" "long""'");
6074 }
6075 arg2 = static_cast< long >(val2);
6076 ecode3 = SWIG_AsVal_long(obj2, &val3);
6077 if (!SWIG_IsOK(ecode3)) {
6078 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Replace" "', expected argument " "3"" of type '" "long""'");
6079 }
6080 arg3 = static_cast< long >(val3);
6081 {
6082 arg4 = wxString_in_helper(obj3);
6083 if (arg4 == NULL) SWIG_fail;
6084 temp4 = true;
6085 }
6086 {
6087 PyThreadState* __tstate = wxPyBeginAllowThreads();
6088 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
6089 wxPyEndAllowThreads(__tstate);
6090 if (PyErr_Occurred()) SWIG_fail;
6091 }
6092 resultobj = SWIG_Py_Void();
6093 {
6094 if (temp4)
6095 delete arg4;
6096 }
6097 return resultobj;
6098fail:
6099 {
6100 if (temp4)
6101 delete arg4;
6102 }
6103 return NULL;
6104}
6105
6106
6107SWIGINTERN PyObject *_wrap_ComboBox_SetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6108 PyObject *resultobj = 0;
6109 wxComboBox *arg1 = (wxComboBox *) 0 ;
6110 long arg2 ;
6111 long arg3 ;
6112 void *argp1 = 0 ;
6113 int res1 = 0 ;
6114 long val2 ;
6115 int ecode2 = 0 ;
6116 long val3 ;
6117 int ecode3 = 0 ;
6118 PyObject * obj0 = 0 ;
6119 PyObject * obj1 = 0 ;
6120 PyObject * obj2 = 0 ;
6121 char * kwnames[] = {
6122 (char *) "self",(char *) "_from",(char *) "to", NULL
6123 };
6124
6125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6127 if (!SWIG_IsOK(res1)) {
6128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6129 }
6130 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6131 ecode2 = SWIG_AsVal_long(obj1, &val2);
6132 if (!SWIG_IsOK(ecode2)) {
6133 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetMark" "', expected argument " "2"" of type '" "long""'");
6134 }
6135 arg2 = static_cast< long >(val2);
6136 ecode3 = SWIG_AsVal_long(obj2, &val3);
6137 if (!SWIG_IsOK(ecode3)) {
6138 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_SetMark" "', expected argument " "3"" of type '" "long""'");
6139 }
6140 arg3 = static_cast< long >(val3);
6141 {
6142 PyThreadState* __tstate = wxPyBeginAllowThreads();
6143 (arg1)->SetSelection(arg2,arg3);
6144 wxPyEndAllowThreads(__tstate);
6145 if (PyErr_Occurred()) SWIG_fail;
6146 }
6147 resultobj = SWIG_Py_Void();
6148 return resultobj;
6149fail:
6150 return NULL;
6151}
6152
6153
6154SWIGINTERN PyObject *_wrap_ComboBox_GetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6155 PyObject *resultobj = 0;
6156 wxComboBox *arg1 = (wxComboBox *) 0 ;
6157 long *arg2 = (long *) 0 ;
6158 long *arg3 = (long *) 0 ;
6159 void *argp1 = 0 ;
6160 int res1 = 0 ;
6161 long temp2 ;
6162 int res2 = SWIG_TMPOBJ ;
6163 long temp3 ;
6164 int res3 = SWIG_TMPOBJ ;
6165 PyObject *swig_obj[1] ;
6166
6167 arg2 = &temp2;
6168 arg3 = &temp3;
6169 if (!args) SWIG_fail;
6170 swig_obj[0] = args;
6171 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6172 if (!SWIG_IsOK(res1)) {
6173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6174 }
6175 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6176 {
6177 PyThreadState* __tstate = wxPyBeginAllowThreads();
6178 (arg1)->GetSelection(arg2,arg3);
6179 wxPyEndAllowThreads(__tstate);
6180 if (PyErr_Occurred()) SWIG_fail;
6181 }
6182 resultobj = SWIG_Py_Void();
6183 if (SWIG_IsTmpObj(res2)) {
6184 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
6185 } else {
6186 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6187 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
6188 }
6189 if (SWIG_IsTmpObj(res3)) {
6190 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
6191 } else {
6192 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6193 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
6194 }
6195 return resultobj;
6196fail:
6197 return NULL;
d14a1e28
RD
6198}
6199
6200
0085ce49
RD
6201SWIGINTERN PyObject *_wrap_ComboBox_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6202 PyObject *resultobj = 0;
6203 wxComboBox *arg1 = (wxComboBox *) 0 ;
6204 int result;
6205 void *argp1 = 0 ;
6206 int res1 = 0 ;
6207 PyObject *swig_obj[1] ;
6208
6209 if (!args) SWIG_fail;
6210 swig_obj[0] = args;
6211 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6212 if (!SWIG_IsOK(res1)) {
6213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetCurrentSelection" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6214 }
6215 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6216 {
6217 PyThreadState* __tstate = wxPyBeginAllowThreads();
6218 result = (int)((wxComboBox const *)arg1)->GetCurrentSelection();
6219 wxPyEndAllowThreads(__tstate);
6220 if (PyErr_Occurred()) SWIG_fail;
6221 }
6222 resultobj = SWIG_From_int(static_cast< int >(result));
6223 return resultobj;
6224fail:
6225 return NULL;
6226}
6227
6228
6229SWIGINTERN PyObject *_wrap_ComboBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6230 PyObject *resultobj = 0;
6231 wxComboBox *arg1 = (wxComboBox *) 0 ;
6232 wxString *arg2 = 0 ;
6233 bool result;
6234 void *argp1 = 0 ;
6235 int res1 = 0 ;
6236 bool temp2 = false ;
6237 PyObject * obj0 = 0 ;
6238 PyObject * obj1 = 0 ;
6239 char * kwnames[] = {
6240 (char *) "self",(char *) "string", NULL
6241 };
6242
6243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
6244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6245 if (!SWIG_IsOK(res1)) {
6246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetStringSelection" "', expected argument " "1"" of type '" "wxComboBox *""'");
6247 }
6248 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6249 {
6250 arg2 = wxString_in_helper(obj1);
6251 if (arg2 == NULL) SWIG_fail;
6252 temp2 = true;
6253 }
6254 {
6255 PyThreadState* __tstate = wxPyBeginAllowThreads();
6256 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
6257 wxPyEndAllowThreads(__tstate);
6258 if (PyErr_Occurred()) SWIG_fail;
6259 }
6260 {
6261 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6262 }
6263 {
6264 if (temp2)
6265 delete arg2;
6266 }
6267 return resultobj;
6268fail:
6269 {
6270 if (temp2)
6271 delete arg2;
6272 }
6273 return NULL;
6274}
6275
6276
50f151d7
RD
6277SWIGINTERN PyObject *_wrap_ComboBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6278 PyObject *resultobj = 0;
6279 wxComboBox *arg1 = (wxComboBox *) 0 ;
6280 int arg2 ;
6281 wxString *arg3 = 0 ;
6282 void *argp1 = 0 ;
6283 int res1 = 0 ;
6284 int val2 ;
6285 int ecode2 = 0 ;
6286 bool temp3 = false ;
6287 PyObject * obj0 = 0 ;
6288 PyObject * obj1 = 0 ;
6289 PyObject * obj2 = 0 ;
6290 char * kwnames[] = {
6291 (char *) "self",(char *) "n",(char *) "string", NULL
6292 };
6293
6294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6296 if (!SWIG_IsOK(res1)) {
6297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetString" "', expected argument " "1"" of type '" "wxComboBox *""'");
6298 }
6299 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6300 ecode2 = SWIG_AsVal_int(obj1, &val2);
6301 if (!SWIG_IsOK(ecode2)) {
6302 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetString" "', expected argument " "2"" of type '" "int""'");
6303 }
6304 arg2 = static_cast< int >(val2);
6305 {
6306 arg3 = wxString_in_helper(obj2);
6307 if (arg3 == NULL) SWIG_fail;
6308 temp3 = true;
6309 }
6310 {
6311 PyThreadState* __tstate = wxPyBeginAllowThreads();
6312 (arg1)->SetString(arg2,(wxString const &)*arg3);
6313 wxPyEndAllowThreads(__tstate);
6314 if (PyErr_Occurred()) SWIG_fail;
6315 }
6316 resultobj = SWIG_Py_Void();
6317 {
6318 if (temp3)
6319 delete arg3;
6320 }
6321 return resultobj;
6322fail:
6323 {
6324 if (temp3)
6325 delete arg3;
6326 }
6327 return NULL;
6328}
6329
6330
0085ce49
RD
6331SWIGINTERN PyObject *_wrap_ComboBox_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6332 PyObject *resultobj = 0;
6333 wxComboBox *arg1 = (wxComboBox *) 0 ;
6334 bool arg2 ;
6335 void *argp1 = 0 ;
6336 int res1 = 0 ;
6337 bool val2 ;
6338 int ecode2 = 0 ;
6339 PyObject * obj0 = 0 ;
6340 PyObject * obj1 = 0 ;
6341 char * kwnames[] = {
6342 (char *) "self",(char *) "editable", NULL
6343 };
6344
6345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
6346 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6347 if (!SWIG_IsOK(res1)) {
6348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetEditable" "', expected argument " "1"" of type '" "wxComboBox *""'");
6349 }
6350 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6351 ecode2 = SWIG_AsVal_bool(obj1, &val2);
6352 if (!SWIG_IsOK(ecode2)) {
6353 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetEditable" "', expected argument " "2"" of type '" "bool""'");
6354 }
6355 arg2 = static_cast< bool >(val2);
6356 {
6357 PyThreadState* __tstate = wxPyBeginAllowThreads();
6358 (arg1)->SetEditable(arg2);
6359 wxPyEndAllowThreads(__tstate);
6360 if (PyErr_Occurred()) SWIG_fail;
6361 }
6362 resultobj = SWIG_Py_Void();
6363 return resultobj;
6364fail:
6365 return NULL;
d14a1e28
RD
6366}
6367
6368
0085ce49
RD
6369SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6370 PyObject *resultobj = 0;
6371 wxComboBox *arg1 = (wxComboBox *) 0 ;
6372 void *argp1 = 0 ;
6373 int res1 = 0 ;
6374 PyObject *swig_obj[1] ;
6375
6376 if (!args) SWIG_fail;
6377 swig_obj[0] = args;
6378 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6379 if (!SWIG_IsOK(res1)) {
6380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxComboBox *""'");
6381 }
6382 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6383 {
6384 PyThreadState* __tstate = wxPyBeginAllowThreads();
6385 (arg1)->SetInsertionPointEnd();
6386 wxPyEndAllowThreads(__tstate);
6387 if (PyErr_Occurred()) SWIG_fail;
6388 }
6389 resultobj = SWIG_Py_Void();
6390 return resultobj;
6391fail:
6392 return NULL;
6393}
6394
6395
6396SWIGINTERN PyObject *_wrap_ComboBox_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6397 PyObject *resultobj = 0;
6398 wxComboBox *arg1 = (wxComboBox *) 0 ;
6399 long arg2 ;
6400 long arg3 ;
6401 void *argp1 = 0 ;
6402 int res1 = 0 ;
6403 long val2 ;
6404 int ecode2 = 0 ;
6405 long val3 ;
6406 int ecode3 = 0 ;
6407 PyObject * obj0 = 0 ;
6408 PyObject * obj1 = 0 ;
6409 PyObject * obj2 = 0 ;
6410 char * kwnames[] = {
6411 (char *) "self",(char *) "_from",(char *) "to", NULL
6412 };
6413
6414 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6415 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6416 if (!SWIG_IsOK(res1)) {
6417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Remove" "', expected argument " "1"" of type '" "wxComboBox *""'");
6418 }
6419 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6420 ecode2 = SWIG_AsVal_long(obj1, &val2);
6421 if (!SWIG_IsOK(ecode2)) {
6422 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Remove" "', expected argument " "2"" of type '" "long""'");
6423 }
6424 arg2 = static_cast< long >(val2);
6425 ecode3 = SWIG_AsVal_long(obj2, &val3);
6426 if (!SWIG_IsOK(ecode3)) {
6427 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Remove" "', expected argument " "3"" of type '" "long""'");
6428 }
6429 arg3 = static_cast< long >(val3);
6430 {
6431 PyThreadState* __tstate = wxPyBeginAllowThreads();
6432 (arg1)->Remove(arg2,arg3);
6433 wxPyEndAllowThreads(__tstate);
6434 if (PyErr_Occurred()) SWIG_fail;
6435 }
6436 resultobj = SWIG_Py_Void();
6437 return resultobj;
6438fail:
6439 return NULL;
d14a1e28
RD
6440}
6441
6442
0085ce49
RD
6443SWIGINTERN PyObject *_wrap_ComboBox_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6444 PyObject *resultobj = 0;
6445 wxComboBox *arg1 = (wxComboBox *) 0 ;
6446 bool result;
6447 void *argp1 = 0 ;
6448 int res1 = 0 ;
6449 PyObject *swig_obj[1] ;
6450
6451 if (!args) SWIG_fail;
6452 swig_obj[0] = args;
6453 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6454 if (!SWIG_IsOK(res1)) {
6455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_IsEditable" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6456 }
6457 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6458 {
6459 PyThreadState* __tstate = wxPyBeginAllowThreads();
6460 result = (bool)((wxComboBox const *)arg1)->IsEditable();
6461 wxPyEndAllowThreads(__tstate);
6462 if (PyErr_Occurred()) SWIG_fail;
6463 }
6464 {
6465 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6466 }
6467 return resultobj;
6468fail:
6469 return NULL;
d14a1e28
RD
6470}
6471
6472
0085ce49
RD
6473SWIGINTERN PyObject *_wrap_ComboBox_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6474 PyObject *resultobj = 0;
6475 wxComboBox *arg1 = (wxComboBox *) 0 ;
6476 void *argp1 = 0 ;
6477 int res1 = 0 ;
6478 PyObject *swig_obj[1] ;
6479
6480 if (!args) SWIG_fail;
6481 swig_obj[0] = args;
6482 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6483 if (!SWIG_IsOK(res1)) {
6484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Undo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6485 }
6486 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6487 {
6488 PyThreadState* __tstate = wxPyBeginAllowThreads();
6489 (arg1)->Undo();
6490 wxPyEndAllowThreads(__tstate);
6491 if (PyErr_Occurred()) SWIG_fail;
6492 }
6493 resultobj = SWIG_Py_Void();
6494 return resultobj;
6495fail:
6496 return NULL;
fd3f2efe
RD
6497}
6498
6499
0085ce49
RD
6500SWIGINTERN PyObject *_wrap_ComboBox_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6501 PyObject *resultobj = 0;
6502 wxComboBox *arg1 = (wxComboBox *) 0 ;
6503 void *argp1 = 0 ;
6504 int res1 = 0 ;
6505 PyObject *swig_obj[1] ;
6506
6507 if (!args) SWIG_fail;
6508 swig_obj[0] = args;
6509 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6510 if (!SWIG_IsOK(res1)) {
6511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Redo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6512 }
6513 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6514 {
6515 PyThreadState* __tstate = wxPyBeginAllowThreads();
6516 (arg1)->Redo();
6517 wxPyEndAllowThreads(__tstate);
6518 if (PyErr_Occurred()) SWIG_fail;
6519 }
6520 resultobj = SWIG_Py_Void();
6521 return resultobj;
6522fail:
6523 return NULL;
d14a1e28
RD
6524}
6525
6526
0085ce49
RD
6527SWIGINTERN PyObject *_wrap_ComboBox_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6528 PyObject *resultobj = 0;
6529 wxComboBox *arg1 = (wxComboBox *) 0 ;
6530 void *argp1 = 0 ;
6531 int res1 = 0 ;
6532 PyObject *swig_obj[1] ;
6533
6534 if (!args) SWIG_fail;
6535 swig_obj[0] = args;
6536 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6537 if (!SWIG_IsOK(res1)) {
6538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SelectAll" "', expected argument " "1"" of type '" "wxComboBox *""'");
6539 }
6540 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6541 {
6542 PyThreadState* __tstate = wxPyBeginAllowThreads();
6543 (arg1)->SelectAll();
6544 wxPyEndAllowThreads(__tstate);
6545 if (PyErr_Occurred()) SWIG_fail;
6546 }
6547 resultobj = SWIG_Py_Void();
6548 return resultobj;
6549fail:
6550 return NULL;
b9d6a5f3
RD
6551}
6552
6553
0085ce49
RD
6554SWIGINTERN PyObject *_wrap_ComboBox_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6555 PyObject *resultobj = 0;
6556 wxComboBox *arg1 = (wxComboBox *) 0 ;
6557 bool result;
6558 void *argp1 = 0 ;
6559 int res1 = 0 ;
6560 PyObject *swig_obj[1] ;
6561
6562 if (!args) SWIG_fail;
6563 swig_obj[0] = args;
6564 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6565 if (!SWIG_IsOK(res1)) {
6566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCopy" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6567 }
6568 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6569 {
6570 PyThreadState* __tstate = wxPyBeginAllowThreads();
6571 result = (bool)((wxComboBox const *)arg1)->CanCopy();
6572 wxPyEndAllowThreads(__tstate);
6573 if (PyErr_Occurred()) SWIG_fail;
6574 }
6575 {
6576 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6577 }
6578 return resultobj;
6579fail:
6580 return NULL;
943e8dfd
RD
6581}
6582
6583
0085ce49
RD
6584SWIGINTERN PyObject *_wrap_ComboBox_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6585 PyObject *resultobj = 0;
6586 wxComboBox *arg1 = (wxComboBox *) 0 ;
6587 bool result;
6588 void *argp1 = 0 ;
6589 int res1 = 0 ;
6590 PyObject *swig_obj[1] ;
6591
6592 if (!args) SWIG_fail;
6593 swig_obj[0] = args;
6594 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6595 if (!SWIG_IsOK(res1)) {
6596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCut" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6597 }
6598 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6599 {
6600 PyThreadState* __tstate = wxPyBeginAllowThreads();
6601 result = (bool)((wxComboBox const *)arg1)->CanCut();
6602 wxPyEndAllowThreads(__tstate);
6603 if (PyErr_Occurred()) SWIG_fail;
6604 }
6605 {
6606 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6607 }
6608 return resultobj;
6609fail:
6610 return NULL;
121b9a67
RD
6611}
6612
6613
0085ce49
RD
6614SWIGINTERN PyObject *_wrap_ComboBox_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6615 PyObject *resultobj = 0;
6616 wxComboBox *arg1 = (wxComboBox *) 0 ;
6617 bool result;
6618 void *argp1 = 0 ;
6619 int res1 = 0 ;
6620 PyObject *swig_obj[1] ;
6621
6622 if (!args) SWIG_fail;
6623 swig_obj[0] = args;
6624 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6625 if (!SWIG_IsOK(res1)) {
6626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanPaste" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6627 }
6628 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6629 {
6630 PyThreadState* __tstate = wxPyBeginAllowThreads();
6631 result = (bool)((wxComboBox const *)arg1)->CanPaste();
6632 wxPyEndAllowThreads(__tstate);
6633 if (PyErr_Occurred()) SWIG_fail;
6634 }
6635 {
6636 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6637 }
6638 return resultobj;
6639fail:
6640 return NULL;
121b9a67
RD
6641}
6642
6643
0085ce49
RD
6644SWIGINTERN PyObject *_wrap_ComboBox_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6645 PyObject *resultobj = 0;
6646 wxComboBox *arg1 = (wxComboBox *) 0 ;
6647 bool result;
6648 void *argp1 = 0 ;
6649 int res1 = 0 ;
6650 PyObject *swig_obj[1] ;
6651
6652 if (!args) SWIG_fail;
6653 swig_obj[0] = args;
6654 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6655 if (!SWIG_IsOK(res1)) {
6656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanUndo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6657 }
6658 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6659 {
6660 PyThreadState* __tstate = wxPyBeginAllowThreads();
6661 result = (bool)((wxComboBox const *)arg1)->CanUndo();
6662 wxPyEndAllowThreads(__tstate);
6663 if (PyErr_Occurred()) SWIG_fail;
6664 }
6665 {
6666 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6667 }
6668 return resultobj;
6669fail:
6670 return NULL;
d14a1e28
RD
6671}
6672
6673
0085ce49
RD
6674SWIGINTERN PyObject *_wrap_ComboBox_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6675 PyObject *resultobj = 0;
6676 wxComboBox *arg1 = (wxComboBox *) 0 ;
6677 bool result;
6678 void *argp1 = 0 ;
6679 int res1 = 0 ;
6680 PyObject *swig_obj[1] ;
6681
6682 if (!args) SWIG_fail;
6683 swig_obj[0] = args;
6684 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6685 if (!SWIG_IsOK(res1)) {
6686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanRedo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6687 }
6688 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6689 {
6690 PyThreadState* __tstate = wxPyBeginAllowThreads();
6691 result = (bool)((wxComboBox const *)arg1)->CanRedo();
6692 wxPyEndAllowThreads(__tstate);
6693 if (PyErr_Occurred()) SWIG_fail;
6694 }
6695 {
6696 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6697 }
6698 return resultobj;
6699fail:
6700 return NULL;
d14a1e28
RD
6701}
6702
6703
0085ce49
RD
6704SWIGINTERN PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6705 PyObject *resultobj = 0;
6706 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
6707 SwigValueWrapper<wxVisualAttributes > result;
6708 int val1 ;
6709 int ecode1 = 0 ;
6710 PyObject * obj0 = 0 ;
6711 char * kwnames[] = {
6712 (char *) "variant", NULL
6713 };
6714
6715 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
6716 if (obj0) {
6717 ecode1 = SWIG_AsVal_int(obj0, &val1);
6718 if (!SWIG_IsOK(ecode1)) {
6719 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ComboBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
6720 }
6721 arg1 = static_cast< wxWindowVariant >(val1);
6722 }
6723 {
6724 if (!wxPyCheckForApp()) SWIG_fail;
6725 PyThreadState* __tstate = wxPyBeginAllowThreads();
6726 result = wxComboBox::GetClassDefaultAttributes(arg1);
6727 wxPyEndAllowThreads(__tstate);
6728 if (PyErr_Occurred()) SWIG_fail;
6729 }
6730 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
6731 return resultobj;
6732fail:
6733 return NULL;
d14a1e28
RD
6734}
6735
6736
0085ce49
RD
6737SWIGINTERN PyObject *ComboBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6738 PyObject *obj;
6739 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6740 SWIG_TypeNewClientData(SWIGTYPE_p_wxComboBox, SWIG_NewClientData(obj));
6741 return SWIG_Py_Void();
5cbf236d
RD
6742}
6743
0085ce49
RD
6744SWIGINTERN PyObject *ComboBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6745 return SWIG_Python_InitShadowInstance(args);
6746}
5cbf236d 6747
0085ce49
RD
6748SWIGINTERN int GaugeNameStr_set(PyObject *) {
6749 SWIG_Error(SWIG_AttributeError,"Variable GaugeNameStr is read-only.");
6750 return 1;
5cbf236d
RD
6751}
6752
6753
0085ce49
RD
6754SWIGINTERN PyObject *GaugeNameStr_get(void) {
6755 PyObject *pyobj = 0;
6756
6757 {
6758#if wxUSE_UNICODE
6759 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6760#else
6761 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6762#endif
6763 }
6764 return pyobj;
6765}
6766
6767
6768SWIGINTERN PyObject *_wrap_new_Gauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6769 PyObject *resultobj = 0;
6770 wxWindow *arg1 = (wxWindow *) 0 ;
6771 int arg2 = (int) -1 ;
6772 int arg3 = (int) 100 ;
6773 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6774 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6775 wxSize const &arg5_defvalue = wxDefaultSize ;
6776 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6777 long arg6 = (long) wxGA_HORIZONTAL ;
6778 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6779 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6780 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
6781 wxString *arg8 = (wxString *) &arg8_defvalue ;
6782 wxGauge *result = 0 ;
6783 void *argp1 = 0 ;
6784 int res1 = 0 ;
6785 int val2 ;
6786 int ecode2 = 0 ;
6787 int val3 ;
6788 int ecode3 = 0 ;
6789 wxPoint temp4 ;
6790 wxSize temp5 ;
6791 long val6 ;
6792 int ecode6 = 0 ;
6793 void *argp7 = 0 ;
6794 int res7 = 0 ;
6795 bool temp8 = false ;
6796 PyObject * obj0 = 0 ;
6797 PyObject * obj1 = 0 ;
6798 PyObject * obj2 = 0 ;
6799 PyObject * obj3 = 0 ;
6800 PyObject * obj4 = 0 ;
6801 PyObject * obj5 = 0 ;
6802 PyObject * obj6 = 0 ;
6803 PyObject * obj7 = 0 ;
6804 char * kwnames[] = {
6805 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6806 };
6807
6808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
6809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
6810 if (!SWIG_IsOK(res1)) {
6811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gauge" "', expected argument " "1"" of type '" "wxWindow *""'");
6812 }
6813 arg1 = reinterpret_cast< wxWindow * >(argp1);
6814 if (obj1) {
6815 ecode2 = SWIG_AsVal_int(obj1, &val2);
6816 if (!SWIG_IsOK(ecode2)) {
6817 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gauge" "', expected argument " "2"" of type '" "int""'");
6818 }
6819 arg2 = static_cast< int >(val2);
6820 }
6821 if (obj2) {
6822 ecode3 = SWIG_AsVal_int(obj2, &val3);
6823 if (!SWIG_IsOK(ecode3)) {
6824 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gauge" "', expected argument " "3"" of type '" "int""'");
6825 }
6826 arg3 = static_cast< int >(val3);
6827 }
6828 if (obj3) {
5cbf236d 6829 {
0085ce49
RD
6830 arg4 = &temp4;
6831 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5cbf236d 6832 }
0085ce49
RD
6833 }
6834 if (obj4) {
5cbf236d 6835 {
0085ce49
RD
6836 arg5 = &temp5;
6837 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5cbf236d 6838 }
0085ce49
RD
6839 }
6840 if (obj5) {
6841 ecode6 = SWIG_AsVal_long(obj5, &val6);
6842 if (!SWIG_IsOK(ecode6)) {
6843 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Gauge" "', expected argument " "6"" of type '" "long""'");
6844 }
6845 arg6 = static_cast< long >(val6);
6846 }
6847 if (obj6) {
6848 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
6849 if (!SWIG_IsOK(res7)) {
6850 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6851 }
6852 if (!argp7) {
6853 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
5cbf236d 6854 }
0085ce49
RD
6855 arg7 = reinterpret_cast< wxValidator * >(argp7);
6856 }
6857 if (obj7) {
5cbf236d 6858 {
0085ce49
RD
6859 arg8 = wxString_in_helper(obj7);
6860 if (arg8 == NULL) SWIG_fail;
6861 temp8 = true;
5cbf236d 6862 }
0085ce49
RD
6863 }
6864 {
6865 if (!wxPyCheckForApp()) SWIG_fail;
6866 PyThreadState* __tstate = wxPyBeginAllowThreads();
6867 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6868 wxPyEndAllowThreads(__tstate);
6869 if (PyErr_Occurred()) SWIG_fail;
6870 }
6871 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_NEW | 0 );
6872 {
6873 if (temp8)
6874 delete arg8;
6875 }
6876 return resultobj;
6877fail:
6878 {
6879 if (temp8)
6880 delete arg8;
6881 }
6882 return NULL;
5cbf236d
RD
6883}
6884
6885
0085ce49
RD
6886SWIGINTERN PyObject *_wrap_new_PreGauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6887 PyObject *resultobj = 0;
6888 wxGauge *result = 0 ;
6889
6890 if (!SWIG_Python_UnpackTuple(args,"new_PreGauge",0,0,0)) SWIG_fail;
6891 {
6892 if (!wxPyCheckForApp()) SWIG_fail;
6893 PyThreadState* __tstate = wxPyBeginAllowThreads();
6894 result = (wxGauge *)new wxGauge();
6895 wxPyEndAllowThreads(__tstate);
6896 if (PyErr_Occurred()) SWIG_fail;
6897 }
6898 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_OWN | 0 );
6899 return resultobj;
6900fail:
6901 return NULL;
6902}
6903
6904
6905SWIGINTERN PyObject *_wrap_Gauge_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6906 PyObject *resultobj = 0;
6907 wxGauge *arg1 = (wxGauge *) 0 ;
6908 wxWindow *arg2 = (wxWindow *) 0 ;
6909 int arg3 = (int) -1 ;
6910 int arg4 = (int) 100 ;
6911 wxPoint const &arg5_defvalue = wxDefaultPosition ;
6912 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
6913 wxSize const &arg6_defvalue = wxDefaultSize ;
6914 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
6915 long arg7 = (long) wxGA_HORIZONTAL ;
6916 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6917 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6918 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
6919 wxString *arg9 = (wxString *) &arg9_defvalue ;
6920 bool result;
6921 void *argp1 = 0 ;
6922 int res1 = 0 ;
6923 void *argp2 = 0 ;
6924 int res2 = 0 ;
6925 int val3 ;
6926 int ecode3 = 0 ;
6927 int val4 ;
6928 int ecode4 = 0 ;
6929 wxPoint temp5 ;
6930 wxSize temp6 ;
6931 long val7 ;
6932 int ecode7 = 0 ;
6933 void *argp8 = 0 ;
6934 int res8 = 0 ;
6935 bool temp9 = false ;
6936 PyObject * obj0 = 0 ;
6937 PyObject * obj1 = 0 ;
6938 PyObject * obj2 = 0 ;
6939 PyObject * obj3 = 0 ;
6940 PyObject * obj4 = 0 ;
6941 PyObject * obj5 = 0 ;
6942 PyObject * obj6 = 0 ;
6943 PyObject * obj7 = 0 ;
6944 PyObject * obj8 = 0 ;
6945 char * kwnames[] = {
6946 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6947 };
6948
6949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
6950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
6951 if (!SWIG_IsOK(res1)) {
6952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Create" "', expected argument " "1"" of type '" "wxGauge *""'");
6953 }
6954 arg1 = reinterpret_cast< wxGauge * >(argp1);
6955 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
6956 if (!SWIG_IsOK(res2)) {
6957 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gauge_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
6958 }
6959 arg2 = reinterpret_cast< wxWindow * >(argp2);
6960 if (obj2) {
6961 ecode3 = SWIG_AsVal_int(obj2, &val3);
6962 if (!SWIG_IsOK(ecode3)) {
6963 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Gauge_Create" "', expected argument " "3"" of type '" "int""'");
6964 }
6965 arg3 = static_cast< int >(val3);
6966 }
6967 if (obj3) {
6968 ecode4 = SWIG_AsVal_int(obj3, &val4);
6969 if (!SWIG_IsOK(ecode4)) {
6970 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Gauge_Create" "', expected argument " "4"" of type '" "int""'");
6971 }
6972 arg4 = static_cast< int >(val4);
6973 }
6974 if (obj4) {
5cbf236d 6975 {
0085ce49
RD
6976 arg5 = &temp5;
6977 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5cbf236d 6978 }
0085ce49
RD
6979 }
6980 if (obj5) {
5cbf236d 6981 {
0085ce49
RD
6982 arg6 = &temp6;
6983 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5cbf236d 6984 }
0085ce49
RD
6985 }
6986 if (obj6) {
6987 ecode7 = SWIG_AsVal_long(obj6, &val7);
6988 if (!SWIG_IsOK(ecode7)) {
6989 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Gauge_Create" "', expected argument " "7"" of type '" "long""'");
6990 }
6991 arg7 = static_cast< long >(val7);
6992 }
6993 if (obj7) {
6994 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
6995 if (!SWIG_IsOK(res8)) {
6996 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5cbf236d 6997 }
0085ce49
RD
6998 if (!argp8) {
6999 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
7000 }
7001 arg8 = reinterpret_cast< wxValidator * >(argp8);
7002 }
7003 if (obj8) {
5cbf236d 7004 {
0085ce49
RD
7005 arg9 = wxString_in_helper(obj8);
7006 if (arg9 == NULL) SWIG_fail;
7007 temp9 = true;
5cbf236d 7008 }
0085ce49
RD
7009 }
7010 {
7011 PyThreadState* __tstate = wxPyBeginAllowThreads();
7012 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
7013 wxPyEndAllowThreads(__tstate);
7014 if (PyErr_Occurred()) SWIG_fail;
7015 }
7016 {
7017 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7018 }
7019 {
7020 if (temp9)
7021 delete arg9;
7022 }
7023 return resultobj;
7024fail:
7025 {
7026 if (temp9)
7027 delete arg9;
7028 }
7029 return NULL;
7030}
7031
7032
7033SWIGINTERN PyObject *_wrap_Gauge_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7034 PyObject *resultobj = 0;
7035 wxGauge *arg1 = (wxGauge *) 0 ;
7036 int arg2 ;
7037 void *argp1 = 0 ;
7038 int res1 = 0 ;
7039 int val2 ;
7040 int ecode2 = 0 ;
7041 PyObject * obj0 = 0 ;
7042 PyObject * obj1 = 0 ;
7043 char * kwnames[] = {
7044 (char *) "self",(char *) "range", NULL
7045 };
7046
7047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) SWIG_fail;
7048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7049 if (!SWIG_IsOK(res1)) {
7050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetRange" "', expected argument " "1"" of type '" "wxGauge *""'");
7051 }
7052 arg1 = reinterpret_cast< wxGauge * >(argp1);
7053 ecode2 = SWIG_AsVal_int(obj1, &val2);
7054 if (!SWIG_IsOK(ecode2)) {
7055 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetRange" "', expected argument " "2"" of type '" "int""'");
7056 }
7057 arg2 = static_cast< int >(val2);
7058 {
7059 PyThreadState* __tstate = wxPyBeginAllowThreads();
7060 (arg1)->SetRange(arg2);
7061 wxPyEndAllowThreads(__tstate);
7062 if (PyErr_Occurred()) SWIG_fail;
7063 }
7064 resultobj = SWIG_Py_Void();
7065 return resultobj;
7066fail:
7067 return NULL;
5cbf236d
RD
7068}
7069
7070
0085ce49
RD
7071SWIGINTERN PyObject *_wrap_Gauge_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7072 PyObject *resultobj = 0;
7073 wxGauge *arg1 = (wxGauge *) 0 ;
7074 int result;
7075 void *argp1 = 0 ;
7076 int res1 = 0 ;
7077 PyObject *swig_obj[1] ;
7078
7079 if (!args) SWIG_fail;
7080 swig_obj[0] = args;
7081 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7082 if (!SWIG_IsOK(res1)) {
7083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetRange" "', expected argument " "1"" of type '" "wxGauge const *""'");
7084 }
7085 arg1 = reinterpret_cast< wxGauge * >(argp1);
7086 {
7087 PyThreadState* __tstate = wxPyBeginAllowThreads();
7088 result = (int)((wxGauge const *)arg1)->GetRange();
7089 wxPyEndAllowThreads(__tstate);
7090 if (PyErr_Occurred()) SWIG_fail;
7091 }
7092 resultobj = SWIG_From_int(static_cast< int >(result));
7093 return resultobj;
7094fail:
7095 return NULL;
7096}
7097
7098
7099SWIGINTERN PyObject *_wrap_Gauge_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7100 PyObject *resultobj = 0;
7101 wxGauge *arg1 = (wxGauge *) 0 ;
7102 int arg2 ;
7103 void *argp1 = 0 ;
7104 int res1 = 0 ;
7105 int val2 ;
7106 int ecode2 = 0 ;
7107 PyObject * obj0 = 0 ;
7108 PyObject * obj1 = 0 ;
7109 char * kwnames[] = {
7110 (char *) "self",(char *) "pos", NULL
7111 };
7112
7113 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
7114 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7115 if (!SWIG_IsOK(res1)) {
7116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetValue" "', expected argument " "1"" of type '" "wxGauge *""'");
7117 }
7118 arg1 = reinterpret_cast< wxGauge * >(argp1);
7119 ecode2 = SWIG_AsVal_int(obj1, &val2);
7120 if (!SWIG_IsOK(ecode2)) {
7121 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetValue" "', expected argument " "2"" of type '" "int""'");
7122 }
7123 arg2 = static_cast< int >(val2);
7124 {
7125 PyThreadState* __tstate = wxPyBeginAllowThreads();
7126 (arg1)->SetValue(arg2);
7127 wxPyEndAllowThreads(__tstate);
7128 if (PyErr_Occurred()) SWIG_fail;
7129 }
7130 resultobj = SWIG_Py_Void();
7131 return resultobj;
7132fail:
7133 return NULL;
5cbf236d
RD
7134}
7135
7136
0085ce49
RD
7137SWIGINTERN PyObject *_wrap_Gauge_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7138 PyObject *resultobj = 0;
7139 wxGauge *arg1 = (wxGauge *) 0 ;
7140 int result;
7141 void *argp1 = 0 ;
7142 int res1 = 0 ;
7143 PyObject *swig_obj[1] ;
7144
7145 if (!args) SWIG_fail;
7146 swig_obj[0] = args;
7147 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7148 if (!SWIG_IsOK(res1)) {
7149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetValue" "', expected argument " "1"" of type '" "wxGauge const *""'");
7150 }
7151 arg1 = reinterpret_cast< wxGauge * >(argp1);
7152 {
7153 PyThreadState* __tstate = wxPyBeginAllowThreads();
7154 result = (int)((wxGauge const *)arg1)->GetValue();
7155 wxPyEndAllowThreads(__tstate);
7156 if (PyErr_Occurred()) SWIG_fail;
7157 }
7158 resultobj = SWIG_From_int(static_cast< int >(result));
7159 return resultobj;
7160fail:
7161 return NULL;
5cbf236d
RD
7162}
7163
7164
0085ce49
RD
7165SWIGINTERN PyObject *_wrap_Gauge_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7166 PyObject *resultobj = 0;
7167 wxGauge *arg1 = (wxGauge *) 0 ;
7168 bool result;
7169 void *argp1 = 0 ;
7170 int res1 = 0 ;
7171 PyObject *swig_obj[1] ;
7172
7173 if (!args) SWIG_fail;
7174 swig_obj[0] = args;
7175 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7176 if (!SWIG_IsOK(res1)) {
7177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_IsVertical" "', expected argument " "1"" of type '" "wxGauge const *""'");
7178 }
7179 arg1 = reinterpret_cast< wxGauge * >(argp1);
7180 {
7181 PyThreadState* __tstate = wxPyBeginAllowThreads();
7182 result = (bool)((wxGauge const *)arg1)->IsVertical();
7183 wxPyEndAllowThreads(__tstate);
7184 if (PyErr_Occurred()) SWIG_fail;
7185 }
7186 {
7187 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7188 }
7189 return resultobj;
7190fail:
7191 return NULL;
7192}
7193
7194
7195SWIGINTERN PyObject *_wrap_Gauge_SetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7196 PyObject *resultobj = 0;
7197 wxGauge *arg1 = (wxGauge *) 0 ;
7198 int arg2 ;
7199 void *argp1 = 0 ;
7200 int res1 = 0 ;
7201 int val2 ;
7202 int ecode2 = 0 ;
7203 PyObject * obj0 = 0 ;
7204 PyObject * obj1 = 0 ;
7205 char * kwnames[] = {
7206 (char *) "self",(char *) "w", NULL
7207 };
7208
7209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7211 if (!SWIG_IsOK(res1)) {
7212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetShadowWidth" "', expected argument " "1"" of type '" "wxGauge *""'");
7213 }
7214 arg1 = reinterpret_cast< wxGauge * >(argp1);
7215 ecode2 = SWIG_AsVal_int(obj1, &val2);
7216 if (!SWIG_IsOK(ecode2)) {
7217 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetShadowWidth" "', expected argument " "2"" of type '" "int""'");
7218 }
7219 arg2 = static_cast< int >(val2);
7220 {
7221 PyThreadState* __tstate = wxPyBeginAllowThreads();
7222 (arg1)->SetShadowWidth(arg2);
7223 wxPyEndAllowThreads(__tstate);
7224 if (PyErr_Occurred()) SWIG_fail;
7225 }
7226 resultobj = SWIG_Py_Void();
7227 return resultobj;
7228fail:
7229 return NULL;
22bfe96c
RD
7230}
7231
7232
0085ce49
RD
7233SWIGINTERN PyObject *_wrap_Gauge_GetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7234 PyObject *resultobj = 0;
7235 wxGauge *arg1 = (wxGauge *) 0 ;
7236 int result;
7237 void *argp1 = 0 ;
7238 int res1 = 0 ;
7239 PyObject *swig_obj[1] ;
7240
7241 if (!args) SWIG_fail;
7242 swig_obj[0] = args;
7243 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7244 if (!SWIG_IsOK(res1)) {
7245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetShadowWidth" "', expected argument " "1"" of type '" "wxGauge const *""'");
7246 }
7247 arg1 = reinterpret_cast< wxGauge * >(argp1);
7248 {
7249 PyThreadState* __tstate = wxPyBeginAllowThreads();
7250 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
7251 wxPyEndAllowThreads(__tstate);
7252 if (PyErr_Occurred()) SWIG_fail;
7253 }
7254 resultobj = SWIG_From_int(static_cast< int >(result));
7255 return resultobj;
7256fail:
7257 return NULL;
7258}
7259
7260
7261SWIGINTERN PyObject *_wrap_Gauge_SetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7262 PyObject *resultobj = 0;
7263 wxGauge *arg1 = (wxGauge *) 0 ;
7264 int arg2 ;
7265 void *argp1 = 0 ;
7266 int res1 = 0 ;
7267 int val2 ;
7268 int ecode2 = 0 ;
7269 PyObject * obj0 = 0 ;
7270 PyObject * obj1 = 0 ;
7271 char * kwnames[] = {
7272 (char *) "self",(char *) "w", NULL
7273 };
7274
7275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) SWIG_fail;
7276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7277 if (!SWIG_IsOK(res1)) {
7278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetBezelFace" "', expected argument " "1"" of type '" "wxGauge *""'");
7279 }
7280 arg1 = reinterpret_cast< wxGauge * >(argp1);
7281 ecode2 = SWIG_AsVal_int(obj1, &val2);
7282 if (!SWIG_IsOK(ecode2)) {
7283 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetBezelFace" "', expected argument " "2"" of type '" "int""'");
7284 }
7285 arg2 = static_cast< int >(val2);
7286 {
7287 PyThreadState* __tstate = wxPyBeginAllowThreads();
7288 (arg1)->SetBezelFace(arg2);
7289 wxPyEndAllowThreads(__tstate);
7290 if (PyErr_Occurred()) SWIG_fail;
7291 }
7292 resultobj = SWIG_Py_Void();
7293 return resultobj;
7294fail:
7295 return NULL;
d14a1e28 7296}
0085ce49
RD
7297
7298
7299SWIGINTERN PyObject *_wrap_Gauge_GetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7300 PyObject *resultobj = 0;
7301 wxGauge *arg1 = (wxGauge *) 0 ;
7302 int result;
7303 void *argp1 = 0 ;
7304 int res1 = 0 ;
7305 PyObject *swig_obj[1] ;
7306
7307 if (!args) SWIG_fail;
7308 swig_obj[0] = args;
7309 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7310 if (!SWIG_IsOK(res1)) {
7311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetBezelFace" "', expected argument " "1"" of type '" "wxGauge const *""'");
7312 }
7313 arg1 = reinterpret_cast< wxGauge * >(argp1);
7314 {
7315 PyThreadState* __tstate = wxPyBeginAllowThreads();
7316 result = (int)((wxGauge const *)arg1)->GetBezelFace();
7317 wxPyEndAllowThreads(__tstate);
7318 if (PyErr_Occurred()) SWIG_fail;
7319 }
7320 resultobj = SWIG_From_int(static_cast< int >(result));
7321 return resultobj;
7322fail:
7323 return NULL;
7324}
7325
7326
7327SWIGINTERN PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7328 PyObject *resultobj = 0;
7329 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7330 SwigValueWrapper<wxVisualAttributes > result;
7331 int val1 ;
7332 int ecode1 = 0 ;
7333 PyObject * obj0 = 0 ;
7334 char * kwnames[] = {
7335 (char *) "variant", NULL
7336 };
7337
7338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7339 if (obj0) {
7340 ecode1 = SWIG_AsVal_int(obj0, &val1);
7341 if (!SWIG_IsOK(ecode1)) {
7342 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Gauge_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7343 }
7344 arg1 = static_cast< wxWindowVariant >(val1);
7345 }
7346 {
7347 if (!wxPyCheckForApp()) SWIG_fail;
7348 PyThreadState* __tstate = wxPyBeginAllowThreads();
7349 result = wxGauge::GetClassDefaultAttributes(arg1);
7350 wxPyEndAllowThreads(__tstate);
7351 if (PyErr_Occurred()) SWIG_fail;
7352 }
7353 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7354 return resultobj;
7355fail:
7356 return NULL;
b2dc1044
RD
7357}
7358
7359
0085ce49
RD
7360SWIGINTERN PyObject *Gauge_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7361 PyObject *obj;
7362 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7363 SWIG_TypeNewClientData(SWIGTYPE_p_wxGauge, SWIG_NewClientData(obj));
7364 return SWIG_Py_Void();
7365}
7366
7367SWIGINTERN PyObject *Gauge_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7368 return SWIG_Python_InitShadowInstance(args);
7369}
7370
7371SWIGINTERN int StaticBitmapNameStr_set(PyObject *) {
7372 SWIG_Error(SWIG_AttributeError,"Variable StaticBitmapNameStr is read-only.");
7373 return 1;
7374}
7375
7376
7377SWIGINTERN PyObject *StaticBitmapNameStr_get(void) {
7378 PyObject *pyobj = 0;
7379
7380 {
b2dc1044 7381#if wxUSE_UNICODE
0085ce49 7382 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
b2dc1044 7383#else
0085ce49 7384 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
b2dc1044 7385#endif
0085ce49
RD
7386 }
7387 return pyobj;
d14a1e28
RD
7388}
7389
7390
0085ce49
RD
7391SWIGINTERN int StaticBoxNameStr_set(PyObject *) {
7392 SWIG_Error(SWIG_AttributeError,"Variable StaticBoxNameStr is read-only.");
7393 return 1;
d14a1e28
RD
7394}
7395
7396
0085ce49
RD
7397SWIGINTERN PyObject *StaticBoxNameStr_get(void) {
7398 PyObject *pyobj = 0;
7399
7400 {
7401#if wxUSE_UNICODE
7402 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7403#else
7404 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7405#endif
7406 }
7407 return pyobj;
7408}
7409
7410
7411SWIGINTERN int StaticTextNameStr_set(PyObject *) {
7412 SWIG_Error(SWIG_AttributeError,"Variable StaticTextNameStr is read-only.");
7413 return 1;
7414}
7415
7416
7417SWIGINTERN PyObject *StaticTextNameStr_get(void) {
7418 PyObject *pyobj = 0;
7419
7420 {
7421#if wxUSE_UNICODE
7422 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7423#else
7424 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7425#endif
7426 }
7427 return pyobj;
7428}
7429
7430
7431SWIGINTERN PyObject *_wrap_new_StaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7432 PyObject *resultobj = 0;
7433 wxWindow *arg1 = (wxWindow *) 0 ;
7434 int arg2 = (int) -1 ;
7435 wxString const &arg3_defvalue = wxPyEmptyString ;
7436 wxString *arg3 = (wxString *) &arg3_defvalue ;
7437 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7438 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7439 wxSize const &arg5_defvalue = wxDefaultSize ;
7440 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7441 long arg6 = (long) 0 ;
7442 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
7443 wxString *arg7 = (wxString *) &arg7_defvalue ;
7444 wxStaticBox *result = 0 ;
7445 void *argp1 = 0 ;
7446 int res1 = 0 ;
7447 int val2 ;
7448 int ecode2 = 0 ;
7449 bool temp3 = false ;
7450 wxPoint temp4 ;
7451 wxSize temp5 ;
7452 long val6 ;
7453 int ecode6 = 0 ;
7454 bool temp7 = false ;
7455 PyObject * obj0 = 0 ;
7456 PyObject * obj1 = 0 ;
7457 PyObject * obj2 = 0 ;
7458 PyObject * obj3 = 0 ;
7459 PyObject * obj4 = 0 ;
7460 PyObject * obj5 = 0 ;
7461 PyObject * obj6 = 0 ;
7462 char * kwnames[] = {
7463 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7464 };
7465
7466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7468 if (!SWIG_IsOK(res1)) {
7469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBox" "', expected argument " "1"" of type '" "wxWindow *""'");
7470 }
7471 arg1 = reinterpret_cast< wxWindow * >(argp1);
7472 if (obj1) {
7473 ecode2 = SWIG_AsVal_int(obj1, &val2);
7474 if (!SWIG_IsOK(ecode2)) {
7475 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBox" "', expected argument " "2"" of type '" "int""'");
7476 }
7477 arg2 = static_cast< int >(val2);
7478 }
7479 if (obj2) {
d14a1e28 7480 {
0085ce49
RD
7481 arg3 = wxString_in_helper(obj2);
7482 if (arg3 == NULL) SWIG_fail;
7483 temp3 = true;
d14a1e28 7484 }
0085ce49
RD
7485 }
7486 if (obj3) {
4f89f6a3 7487 {
0085ce49
RD
7488 arg4 = &temp4;
7489 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 7490 }
0085ce49
RD
7491 }
7492 if (obj4) {
d14a1e28 7493 {
0085ce49
RD
7494 arg5 = &temp5;
7495 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 7496 }
0085ce49
RD
7497 }
7498 if (obj5) {
7499 ecode6 = SWIG_AsVal_long(obj5, &val6);
7500 if (!SWIG_IsOK(ecode6)) {
7501 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBox" "', expected argument " "6"" of type '" "long""'");
7502 }
7503 arg6 = static_cast< long >(val6);
7504 }
7505 if (obj6) {
d14a1e28 7506 {
0085ce49
RD
7507 arg7 = wxString_in_helper(obj6);
7508 if (arg7 == NULL) SWIG_fail;
7509 temp7 = true;
d14a1e28 7510 }
0085ce49
RD
7511 }
7512 {
7513 if (!wxPyCheckForApp()) SWIG_fail;
7514 PyThreadState* __tstate = wxPyBeginAllowThreads();
7515 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7516 wxPyEndAllowThreads(__tstate);
7517 if (PyErr_Occurred()) SWIG_fail;
7518 }
7519 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_NEW | 0 );
7520 {
7521 if (temp3)
7522 delete arg3;
7523 }
7524 {
7525 if (temp7)
7526 delete arg7;
7527 }
7528 return resultobj;
7529fail:
7530 {
7531 if (temp3)
7532 delete arg3;
7533 }
7534 {
7535 if (temp7)
7536 delete arg7;
7537 }
7538 return NULL;
d14a1e28
RD
7539}
7540
7541
0085ce49
RD
7542SWIGINTERN PyObject *_wrap_new_PreStaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7543 PyObject *resultobj = 0;
7544 wxStaticBox *result = 0 ;
7545
7546 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBox",0,0,0)) SWIG_fail;
7547 {
7548 if (!wxPyCheckForApp()) SWIG_fail;
7549 PyThreadState* __tstate = wxPyBeginAllowThreads();
7550 result = (wxStaticBox *)new wxStaticBox();
7551 wxPyEndAllowThreads(__tstate);
7552 if (PyErr_Occurred()) SWIG_fail;
7553 }
7554 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_OWN | 0 );
7555 return resultobj;
7556fail:
7557 return NULL;
7558}
7559
7560
7561SWIGINTERN PyObject *_wrap_StaticBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7562 PyObject *resultobj = 0;
7563 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
7564 wxWindow *arg2 = (wxWindow *) 0 ;
7565 int arg3 = (int) -1 ;
7566 wxString const &arg4_defvalue = wxPyEmptyString ;
7567 wxString *arg4 = (wxString *) &arg4_defvalue ;
7568 wxPoint const &arg5_defvalue = wxDefaultPosition ;
7569 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
7570 wxSize const &arg6_defvalue = wxDefaultSize ;
7571 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
7572 long arg7 = (long) 0 ;
7573 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
7574 wxString *arg8 = (wxString *) &arg8_defvalue ;
7575 bool result;
7576 void *argp1 = 0 ;
7577 int res1 = 0 ;
7578 void *argp2 = 0 ;
7579 int res2 = 0 ;
7580 int val3 ;
7581 int ecode3 = 0 ;
7582 bool temp4 = false ;
7583 wxPoint temp5 ;
7584 wxSize temp6 ;
7585 long val7 ;
7586 int ecode7 = 0 ;
7587 bool temp8 = false ;
7588 PyObject * obj0 = 0 ;
7589 PyObject * obj1 = 0 ;
7590 PyObject * obj2 = 0 ;
7591 PyObject * obj3 = 0 ;
7592 PyObject * obj4 = 0 ;
7593 PyObject * obj5 = 0 ;
7594 PyObject * obj6 = 0 ;
7595 PyObject * obj7 = 0 ;
7596 char * kwnames[] = {
7597 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7598 };
7599
7600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
7601 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBox, 0 | 0 );
7602 if (!SWIG_IsOK(res1)) {
7603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBox_Create" "', expected argument " "1"" of type '" "wxStaticBox *""'");
7604 }
7605 arg1 = reinterpret_cast< wxStaticBox * >(argp1);
7606 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7607 if (!SWIG_IsOK(res2)) {
7608 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7609 }
7610 arg2 = reinterpret_cast< wxWindow * >(argp2);
7611 if (obj2) {
7612 ecode3 = SWIG_AsVal_int(obj2, &val3);
7613 if (!SWIG_IsOK(ecode3)) {
7614 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBox_Create" "', expected argument " "3"" of type '" "int""'");
7615 }
7616 arg3 = static_cast< int >(val3);
7617 }
7618 if (obj3) {
093d3ff1 7619 {
0085ce49
RD
7620 arg4 = wxString_in_helper(obj3);
7621 if (arg4 == NULL) SWIG_fail;
7622 temp4 = true;
093d3ff1 7623 }
0085ce49
RD
7624 }
7625 if (obj4) {
d14a1e28 7626 {
0085ce49
RD
7627 arg5 = &temp5;
7628 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 7629 }
0085ce49
RD
7630 }
7631 if (obj5) {
d14a1e28 7632 {
0085ce49
RD
7633 arg6 = &temp6;
7634 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d14a1e28 7635 }
0085ce49
RD
7636 }
7637 if (obj6) {
7638 ecode7 = SWIG_AsVal_long(obj6, &val7);
7639 if (!SWIG_IsOK(ecode7)) {
7640 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBox_Create" "', expected argument " "7"" of type '" "long""'");
7641 }
7642 arg7 = static_cast< long >(val7);
7643 }
7644 if (obj7) {
093d3ff1 7645 {
0085ce49
RD
7646 arg8 = wxString_in_helper(obj7);
7647 if (arg8 == NULL) SWIG_fail;
7648 temp8 = true;
093d3ff1 7649 }
0085ce49
RD
7650 }
7651 {
7652 PyThreadState* __tstate = wxPyBeginAllowThreads();
7653 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
7654 wxPyEndAllowThreads(__tstate);
7655 if (PyErr_Occurred()) SWIG_fail;
7656 }
7657 {
7658 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7659 }
7660 {
7661 if (temp4)
7662 delete arg4;
7663 }
7664 {
7665 if (temp8)
7666 delete arg8;
7667 }
7668 return resultobj;
7669fail:
7670 {
7671 if (temp4)
7672 delete arg4;
7673 }
7674 {
7675 if (temp8)
7676 delete arg8;
7677 }
7678 return NULL;
7679}
d14a1e28 7680
0085ce49
RD
7681
7682SWIGINTERN PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7683 PyObject *resultobj = 0;
7684 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7685 SwigValueWrapper<wxVisualAttributes > result;
7686 int val1 ;
7687 int ecode1 = 0 ;
7688 PyObject * obj0 = 0 ;
7689 char * kwnames[] = {
7690 (char *) "variant", NULL
7691 };
7692
7693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7694 if (obj0) {
7695 ecode1 = SWIG_AsVal_int(obj0, &val1);
7696 if (!SWIG_IsOK(ecode1)) {
7697 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7698 }
7699 arg1 = static_cast< wxWindowVariant >(val1);
7700 }
7701 {
7702 if (!wxPyCheckForApp()) SWIG_fail;
7703 PyThreadState* __tstate = wxPyBeginAllowThreads();
7704 result = wxStaticBox::GetClassDefaultAttributes(arg1);
7705 wxPyEndAllowThreads(__tstate);
7706 if (PyErr_Occurred()) SWIG_fail;
7707 }
7708 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7709 return resultobj;
7710fail:
7711 return NULL;
7712}
7713
7714
7715SWIGINTERN PyObject *StaticBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7716 PyObject *obj;
7717 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7718 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBox, SWIG_NewClientData(obj));
7719 return SWIG_Py_Void();
7720}
7721
7722SWIGINTERN PyObject *StaticBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7723 return SWIG_Python_InitShadowInstance(args);
7724}
7725
7726SWIGINTERN PyObject *_wrap_new_StaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7727 PyObject *resultobj = 0;
7728 wxWindow *arg1 = (wxWindow *) 0 ;
7729 int arg2 = (int) -1 ;
7730 wxPoint const &arg3_defvalue = wxDefaultPosition ;
7731 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
7732 wxSize const &arg4_defvalue = wxDefaultSize ;
7733 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
7734 long arg5 = (long) wxLI_HORIZONTAL ;
7735 wxString const &arg6_defvalue = wxPyStaticTextNameStr ;
7736 wxString *arg6 = (wxString *) &arg6_defvalue ;
7737 wxStaticLine *result = 0 ;
7738 void *argp1 = 0 ;
7739 int res1 = 0 ;
7740 int val2 ;
7741 int ecode2 = 0 ;
7742 wxPoint temp3 ;
7743 wxSize temp4 ;
7744 long val5 ;
7745 int ecode5 = 0 ;
7746 bool temp6 = false ;
7747 PyObject * obj0 = 0 ;
7748 PyObject * obj1 = 0 ;
7749 PyObject * obj2 = 0 ;
7750 PyObject * obj3 = 0 ;
7751 PyObject * obj4 = 0 ;
7752 PyObject * obj5 = 0 ;
7753 char * kwnames[] = {
7754 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7755 };
7756
7757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
7758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7759 if (!SWIG_IsOK(res1)) {
7760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticLine" "', expected argument " "1"" of type '" "wxWindow *""'");
7761 }
7762 arg1 = reinterpret_cast< wxWindow * >(argp1);
7763 if (obj1) {
7764 ecode2 = SWIG_AsVal_int(obj1, &val2);
7765 if (!SWIG_IsOK(ecode2)) {
7766 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticLine" "', expected argument " "2"" of type '" "int""'");
7767 }
7768 arg2 = static_cast< int >(val2);
7769 }
7770 if (obj2) {
093d3ff1 7771 {
0085ce49
RD
7772 arg3 = &temp3;
7773 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 7774 }
0085ce49
RD
7775 }
7776 if (obj3) {
d14a1e28 7777 {
0085ce49
RD
7778 arg4 = &temp4;
7779 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 7780 }
0085ce49
RD
7781 }
7782 if (obj4) {
7783 ecode5 = SWIG_AsVal_long(obj4, &val5);
7784 if (!SWIG_IsOK(ecode5)) {
7785 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_StaticLine" "', expected argument " "5"" of type '" "long""'");
7786 }
7787 arg5 = static_cast< long >(val5);
7788 }
7789 if (obj5) {
7790 {
7791 arg6 = wxString_in_helper(obj5);
7792 if (arg6 == NULL) SWIG_fail;
7793 temp6 = true;
7794 }
7795 }
7796 {
7797 if (!wxPyCheckForApp()) SWIG_fail;
7798 PyThreadState* __tstate = wxPyBeginAllowThreads();
7799 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
7800 wxPyEndAllowThreads(__tstate);
7801 if (PyErr_Occurred()) SWIG_fail;
7802 }
7803 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_NEW | 0 );
7804 {
7805 if (temp6)
7806 delete arg6;
7807 }
7808 return resultobj;
7809fail:
7810 {
7811 if (temp6)
7812 delete arg6;
7813 }
7814 return NULL;
d14a1e28
RD
7815}
7816
7817
0085ce49
RD
7818SWIGINTERN PyObject *_wrap_new_PreStaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7819 PyObject *resultobj = 0;
7820 wxStaticLine *result = 0 ;
7821
7822 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticLine",0,0,0)) SWIG_fail;
7823 {
7824 if (!wxPyCheckForApp()) SWIG_fail;
7825 PyThreadState* __tstate = wxPyBeginAllowThreads();
7826 result = (wxStaticLine *)new wxStaticLine();
7827 wxPyEndAllowThreads(__tstate);
7828 if (PyErr_Occurred()) SWIG_fail;
7829 }
7830 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_OWN | 0 );
7831 return resultobj;
7832fail:
7833 return NULL;
7834}
7835
7836
7837SWIGINTERN PyObject *_wrap_StaticLine_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7838 PyObject *resultobj = 0;
7839 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7840 wxWindow *arg2 = (wxWindow *) 0 ;
7841 int arg3 = (int) -1 ;
7842 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7843 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7844 wxSize const &arg5_defvalue = wxDefaultSize ;
7845 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7846 long arg6 = (long) wxLI_HORIZONTAL ;
7847 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
7848 wxString *arg7 = (wxString *) &arg7_defvalue ;
7849 bool result;
7850 void *argp1 = 0 ;
7851 int res1 = 0 ;
7852 void *argp2 = 0 ;
7853 int res2 = 0 ;
7854 int val3 ;
7855 int ecode3 = 0 ;
7856 wxPoint temp4 ;
7857 wxSize temp5 ;
7858 long val6 ;
7859 int ecode6 = 0 ;
7860 bool temp7 = false ;
7861 PyObject * obj0 = 0 ;
7862 PyObject * obj1 = 0 ;
7863 PyObject * obj2 = 0 ;
7864 PyObject * obj3 = 0 ;
7865 PyObject * obj4 = 0 ;
7866 PyObject * obj5 = 0 ;
7867 PyObject * obj6 = 0 ;
7868 char * kwnames[] = {
7869 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7870 };
7871
7872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7874 if (!SWIG_IsOK(res1)) {
7875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_Create" "', expected argument " "1"" of type '" "wxStaticLine *""'");
7876 }
7877 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7878 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7879 if (!SWIG_IsOK(res2)) {
7880 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticLine_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7881 }
7882 arg2 = reinterpret_cast< wxWindow * >(argp2);
7883 if (obj2) {
7884 ecode3 = SWIG_AsVal_int(obj2, &val3);
7885 if (!SWIG_IsOK(ecode3)) {
7886 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticLine_Create" "', expected argument " "3"" of type '" "int""'");
7887 }
7888 arg3 = static_cast< int >(val3);
7889 }
7890 if (obj3) {
d14a1e28 7891 {
0085ce49
RD
7892 arg4 = &temp4;
7893 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 7894 }
0085ce49
RD
7895 }
7896 if (obj4) {
093d3ff1 7897 {
0085ce49
RD
7898 arg5 = &temp5;
7899 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 7900 }
0085ce49
RD
7901 }
7902 if (obj5) {
7903 ecode6 = SWIG_AsVal_long(obj5, &val6);
7904 if (!SWIG_IsOK(ecode6)) {
7905 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "StaticLine_Create" "', expected argument " "6"" of type '" "long""'");
7906 }
7907 arg6 = static_cast< long >(val6);
7908 }
7909 if (obj6) {
7910 {
7911 arg7 = wxString_in_helper(obj6);
7912 if (arg7 == NULL) SWIG_fail;
7913 temp7 = true;
7914 }
7915 }
7916 {
7917 PyThreadState* __tstate = wxPyBeginAllowThreads();
7918 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7919 wxPyEndAllowThreads(__tstate);
7920 if (PyErr_Occurred()) SWIG_fail;
7921 }
7922 {
7923 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7924 }
7925 {
7926 if (temp7)
7927 delete arg7;
7928 }
7929 return resultobj;
7930fail:
7931 {
7932 if (temp7)
7933 delete arg7;
7934 }
7935 return NULL;
d14a1e28
RD
7936}
7937
7938
0085ce49
RD
7939SWIGINTERN PyObject *_wrap_StaticLine_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7940 PyObject *resultobj = 0;
7941 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7942 bool result;
7943 void *argp1 = 0 ;
7944 int res1 = 0 ;
7945 PyObject *swig_obj[1] ;
7946
7947 if (!args) SWIG_fail;
7948 swig_obj[0] = args;
7949 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7950 if (!SWIG_IsOK(res1)) {
7951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_IsVertical" "', expected argument " "1"" of type '" "wxStaticLine const *""'");
7952 }
7953 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7954 {
7955 PyThreadState* __tstate = wxPyBeginAllowThreads();
7956 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
7957 wxPyEndAllowThreads(__tstate);
7958 if (PyErr_Occurred()) SWIG_fail;
7959 }
7960 {
7961 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7962 }
7963 return resultobj;
7964fail:
7965 return NULL;
7966}
7967
7968
7969SWIGINTERN PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7970 PyObject *resultobj = 0;
7971 int result;
7972
7973 if (!SWIG_Python_UnpackTuple(args,"StaticLine_GetDefaultSize",0,0,0)) SWIG_fail;
7974 {
7975 PyThreadState* __tstate = wxPyBeginAllowThreads();
7976 result = (int)wxStaticLine::GetDefaultSize();
7977 wxPyEndAllowThreads(__tstate);
7978 if (PyErr_Occurred()) SWIG_fail;
7979 }
7980 resultobj = SWIG_From_int(static_cast< int >(result));
7981 return resultobj;
7982fail:
7983 return NULL;
7984}
7985
7986
7987SWIGINTERN PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7988 PyObject *resultobj = 0;
7989 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7990 SwigValueWrapper<wxVisualAttributes > result;
7991 int val1 ;
7992 int ecode1 = 0 ;
7993 PyObject * obj0 = 0 ;
7994 char * kwnames[] = {
7995 (char *) "variant", NULL
7996 };
7997
7998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7999 if (obj0) {
8000 ecode1 = SWIG_AsVal_int(obj0, &val1);
8001 if (!SWIG_IsOK(ecode1)) {
8002 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticLine_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8003 }
8004 arg1 = static_cast< wxWindowVariant >(val1);
8005 }
8006 {
8007 if (!wxPyCheckForApp()) SWIG_fail;
8008 PyThreadState* __tstate = wxPyBeginAllowThreads();
8009 result = wxStaticLine::GetClassDefaultAttributes(arg1);
8010 wxPyEndAllowThreads(__tstate);
8011 if (PyErr_Occurred()) SWIG_fail;
8012 }
8013 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8014 return resultobj;
8015fail:
8016 return NULL;
8017}
8018
8019
8020SWIGINTERN PyObject *StaticLine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8021 PyObject *obj;
8022 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8023 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticLine, SWIG_NewClientData(obj));
8024 return SWIG_Py_Void();
8025}
8026
8027SWIGINTERN PyObject *StaticLine_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8028 return SWIG_Python_InitShadowInstance(args);
8029}
8030
8031SWIGINTERN PyObject *_wrap_new_StaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8032 PyObject *resultobj = 0;
8033 wxWindow *arg1 = (wxWindow *) 0 ;
8034 int arg2 = (int) -1 ;
8035 wxString const &arg3_defvalue = wxPyEmptyString ;
8036 wxString *arg3 = (wxString *) &arg3_defvalue ;
8037 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8038 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8039 wxSize const &arg5_defvalue = wxDefaultSize ;
8040 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8041 long arg6 = (long) 0 ;
8042 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
8043 wxString *arg7 = (wxString *) &arg7_defvalue ;
8044 wxStaticText *result = 0 ;
8045 void *argp1 = 0 ;
8046 int res1 = 0 ;
8047 int val2 ;
8048 int ecode2 = 0 ;
8049 bool temp3 = false ;
8050 wxPoint temp4 ;
8051 wxSize temp5 ;
8052 long val6 ;
8053 int ecode6 = 0 ;
8054 bool temp7 = false ;
8055 PyObject * obj0 = 0 ;
8056 PyObject * obj1 = 0 ;
8057 PyObject * obj2 = 0 ;
8058 PyObject * obj3 = 0 ;
8059 PyObject * obj4 = 0 ;
8060 PyObject * obj5 = 0 ;
8061 PyObject * obj6 = 0 ;
8062 char * kwnames[] = {
8063 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8064 };
8065
8066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8068 if (!SWIG_IsOK(res1)) {
8069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticText" "', expected argument " "1"" of type '" "wxWindow *""'");
8070 }
8071 arg1 = reinterpret_cast< wxWindow * >(argp1);
8072 if (obj1) {
8073 ecode2 = SWIG_AsVal_int(obj1, &val2);
8074 if (!SWIG_IsOK(ecode2)) {
8075 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticText" "', expected argument " "2"" of type '" "int""'");
8076 }
8077 arg2 = static_cast< int >(val2);
8078 }
8079 if (obj2) {
d14a1e28 8080 {
0085ce49
RD
8081 arg3 = wxString_in_helper(obj2);
8082 if (arg3 == NULL) SWIG_fail;
8083 temp3 = true;
d14a1e28 8084 }
0085ce49
RD
8085 }
8086 if (obj3) {
4f89f6a3 8087 {
0085ce49
RD
8088 arg4 = &temp4;
8089 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 8090 }
0085ce49
RD
8091 }
8092 if (obj4) {
093d3ff1 8093 {
0085ce49
RD
8094 arg5 = &temp5;
8095 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 8096 }
0085ce49
RD
8097 }
8098 if (obj5) {
8099 ecode6 = SWIG_AsVal_long(obj5, &val6);
8100 if (!SWIG_IsOK(ecode6)) {
8101 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticText" "', expected argument " "6"" of type '" "long""'");
8102 }
8103 arg6 = static_cast< long >(val6);
8104 }
8105 if (obj6) {
d14a1e28 8106 {
0085ce49
RD
8107 arg7 = wxString_in_helper(obj6);
8108 if (arg7 == NULL) SWIG_fail;
8109 temp7 = true;
d14a1e28 8110 }
0085ce49
RD
8111 }
8112 {
8113 if (!wxPyCheckForApp()) SWIG_fail;
8114 PyThreadState* __tstate = wxPyBeginAllowThreads();
8115 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8116 wxPyEndAllowThreads(__tstate);
8117 if (PyErr_Occurred()) SWIG_fail;
8118 }
8119 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_NEW | 0 );
8120 {
8121 if (temp3)
8122 delete arg3;
8123 }
8124 {
8125 if (temp7)
8126 delete arg7;
8127 }
8128 return resultobj;
8129fail:
8130 {
8131 if (temp3)
8132 delete arg3;
8133 }
8134 {
8135 if (temp7)
8136 delete arg7;
8137 }
8138 return NULL;
d14a1e28
RD
8139}
8140
8141
0085ce49
RD
8142SWIGINTERN PyObject *_wrap_new_PreStaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8143 PyObject *resultobj = 0;
8144 wxStaticText *result = 0 ;
8145
8146 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticText",0,0,0)) SWIG_fail;
8147 {
8148 if (!wxPyCheckForApp()) SWIG_fail;
8149 PyThreadState* __tstate = wxPyBeginAllowThreads();
8150 result = (wxStaticText *)new wxStaticText();
8151 wxPyEndAllowThreads(__tstate);
8152 if (PyErr_Occurred()) SWIG_fail;
8153 }
8154 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_OWN | 0 );
8155 return resultobj;
8156fail:
8157 return NULL;
8158}
8159
8160
8161SWIGINTERN PyObject *_wrap_StaticText_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8162 PyObject *resultobj = 0;
8163 wxStaticText *arg1 = (wxStaticText *) 0 ;
8164 wxWindow *arg2 = (wxWindow *) 0 ;
8165 int arg3 = (int) -1 ;
8166 wxString const &arg4_defvalue = wxPyEmptyString ;
8167 wxString *arg4 = (wxString *) &arg4_defvalue ;
8168 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8169 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8170 wxSize const &arg6_defvalue = wxDefaultSize ;
8171 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8172 long arg7 = (long) 0 ;
8173 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
8174 wxString *arg8 = (wxString *) &arg8_defvalue ;
8175 bool result;
8176 void *argp1 = 0 ;
8177 int res1 = 0 ;
8178 void *argp2 = 0 ;
8179 int res2 = 0 ;
8180 int val3 ;
8181 int ecode3 = 0 ;
8182 bool temp4 = false ;
8183 wxPoint temp5 ;
8184 wxSize temp6 ;
8185 long val7 ;
8186 int ecode7 = 0 ;
8187 bool temp8 = false ;
8188 PyObject * obj0 = 0 ;
8189 PyObject * obj1 = 0 ;
8190 PyObject * obj2 = 0 ;
8191 PyObject * obj3 = 0 ;
8192 PyObject * obj4 = 0 ;
8193 PyObject * obj5 = 0 ;
8194 PyObject * obj6 = 0 ;
8195 PyObject * obj7 = 0 ;
8196 char * kwnames[] = {
8197 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8198 };
8199
8200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8202 if (!SWIG_IsOK(res1)) {
8203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Create" "', expected argument " "1"" of type '" "wxStaticText *""'");
8204 }
8205 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8206 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8207 if (!SWIG_IsOK(res2)) {
8208 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticText_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8209 }
8210 arg2 = reinterpret_cast< wxWindow * >(argp2);
8211 if (obj2) {
8212 ecode3 = SWIG_AsVal_int(obj2, &val3);
8213 if (!SWIG_IsOK(ecode3)) {
8214 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticText_Create" "', expected argument " "3"" of type '" "int""'");
8215 }
8216 arg3 = static_cast< int >(val3);
8217 }
8218 if (obj3) {
d14a1e28 8219 {
0085ce49
RD
8220 arg4 = wxString_in_helper(obj3);
8221 if (arg4 == NULL) SWIG_fail;
8222 temp4 = true;
8223 }
8224 }
8225 if (obj4) {
8226 {
8227 arg5 = &temp5;
8228 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 8229 }
0085ce49
RD
8230 }
8231 if (obj5) {
093d3ff1 8232 {
0085ce49
RD
8233 arg6 = &temp6;
8234 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
093d3ff1 8235 }
0085ce49
RD
8236 }
8237 if (obj6) {
8238 ecode7 = SWIG_AsVal_long(obj6, &val7);
8239 if (!SWIG_IsOK(ecode7)) {
8240 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticText_Create" "', expected argument " "7"" of type '" "long""'");
8241 }
8242 arg7 = static_cast< long >(val7);
8243 }
8244 if (obj7) {
093d3ff1 8245 {
0085ce49
RD
8246 arg8 = wxString_in_helper(obj7);
8247 if (arg8 == NULL) SWIG_fail;
8248 temp8 = true;
8249 }
8250 }
8251 {
8252 PyThreadState* __tstate = wxPyBeginAllowThreads();
8253 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8254 wxPyEndAllowThreads(__tstate);
8255 if (PyErr_Occurred()) SWIG_fail;
8256 }
8257 {
8258 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8259 }
8260 {
8261 if (temp4)
8262 delete arg4;
8263 }
8264 {
8265 if (temp8)
8266 delete arg8;
8267 }
8268 return resultobj;
8269fail:
8270 {
8271 if (temp4)
8272 delete arg4;
8273 }
8274 {
8275 if (temp8)
8276 delete arg8;
8277 }
8278 return NULL;
8279}
8280
8281
8282SWIGINTERN PyObject *_wrap_StaticText_Wrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8283 PyObject *resultobj = 0;
8284 wxStaticText *arg1 = (wxStaticText *) 0 ;
8285 int arg2 ;
8286 void *argp1 = 0 ;
8287 int res1 = 0 ;
8288 int val2 ;
8289 int ecode2 = 0 ;
8290 PyObject * obj0 = 0 ;
8291 PyObject * obj1 = 0 ;
8292 char * kwnames[] = {
8293 (char *) "self",(char *) "width", NULL
8294 };
8295
8296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticText_Wrap",kwnames,&obj0,&obj1)) SWIG_fail;
8297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8298 if (!SWIG_IsOK(res1)) {
8299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Wrap" "', expected argument " "1"" of type '" "wxStaticText *""'");
8300 }
8301 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8302 ecode2 = SWIG_AsVal_int(obj1, &val2);
8303 if (!SWIG_IsOK(ecode2)) {
8304 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StaticText_Wrap" "', expected argument " "2"" of type '" "int""'");
8305 }
8306 arg2 = static_cast< int >(val2);
8307 {
8308 PyThreadState* __tstate = wxPyBeginAllowThreads();
8309 (arg1)->Wrap(arg2);
8310 wxPyEndAllowThreads(__tstate);
8311 if (PyErr_Occurred()) SWIG_fail;
8312 }
8313 resultobj = SWIG_Py_Void();
8314 return resultobj;
8315fail:
8316 return NULL;
8317}
8318
8319
8320SWIGINTERN PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8321 PyObject *resultobj = 0;
8322 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8323 SwigValueWrapper<wxVisualAttributes > result;
8324 int val1 ;
8325 int ecode1 = 0 ;
8326 PyObject * obj0 = 0 ;
8327 char * kwnames[] = {
8328 (char *) "variant", NULL
8329 };
8330
8331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8332 if (obj0) {
8333 ecode1 = SWIG_AsVal_int(obj0, &val1);
8334 if (!SWIG_IsOK(ecode1)) {
8335 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticText_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8336 }
8337 arg1 = static_cast< wxWindowVariant >(val1);
8338 }
8339 {
8340 if (!wxPyCheckForApp()) SWIG_fail;
8341 PyThreadState* __tstate = wxPyBeginAllowThreads();
8342 result = wxStaticText::GetClassDefaultAttributes(arg1);
8343 wxPyEndAllowThreads(__tstate);
8344 if (PyErr_Occurred()) SWIG_fail;
8345 }
8346 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8347 return resultobj;
8348fail:
8349 return NULL;
8350}
8351
8352
8353SWIGINTERN PyObject *StaticText_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8354 PyObject *obj;
8355 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8356 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticText, SWIG_NewClientData(obj));
8357 return SWIG_Py_Void();
8358}
8359
8360SWIGINTERN PyObject *StaticText_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8361 return SWIG_Python_InitShadowInstance(args);
8362}
8363
8364SWIGINTERN PyObject *_wrap_new_StaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8365 PyObject *resultobj = 0;
8366 wxWindow *arg1 = (wxWindow *) 0 ;
8367 int arg2 = (int) -1 ;
8368 wxBitmap const &arg3_defvalue = wxNullBitmap ;
8369 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
8370 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8371 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8372 wxSize const &arg5_defvalue = wxDefaultSize ;
8373 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8374 long arg6 = (long) 0 ;
8375 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
8376 wxString *arg7 = (wxString *) &arg7_defvalue ;
8377 wxStaticBitmap *result = 0 ;
8378 void *argp1 = 0 ;
8379 int res1 = 0 ;
8380 int val2 ;
8381 int ecode2 = 0 ;
8382 void *argp3 = 0 ;
8383 int res3 = 0 ;
8384 wxPoint temp4 ;
8385 wxSize temp5 ;
8386 long val6 ;
8387 int ecode6 = 0 ;
8388 bool temp7 = false ;
8389 PyObject * obj0 = 0 ;
8390 PyObject * obj1 = 0 ;
8391 PyObject * obj2 = 0 ;
8392 PyObject * obj3 = 0 ;
8393 PyObject * obj4 = 0 ;
8394 PyObject * obj5 = 0 ;
8395 PyObject * obj6 = 0 ;
8396 char * kwnames[] = {
8397 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8398 };
8399
8400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8402 if (!SWIG_IsOK(res1)) {
8403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBitmap" "', expected argument " "1"" of type '" "wxWindow *""'");
8404 }
8405 arg1 = reinterpret_cast< wxWindow * >(argp1);
8406 if (obj1) {
8407 ecode2 = SWIG_AsVal_int(obj1, &val2);
8408 if (!SWIG_IsOK(ecode2)) {
8409 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBitmap" "', expected argument " "2"" of type '" "int""'");
8410 }
8411 arg2 = static_cast< int >(val2);
8412 }
8413 if (obj2) {
8414 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
8415 if (!SWIG_IsOK(res3)) {
8416 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8417 }
8418 if (!argp3) {
8419 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
093d3ff1 8420 }
0085ce49
RD
8421 arg3 = reinterpret_cast< wxBitmap * >(argp3);
8422 }
8423 if (obj3) {
d14a1e28 8424 {
0085ce49
RD
8425 arg4 = &temp4;
8426 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 8427 }
0085ce49
RD
8428 }
8429 if (obj4) {
d14a1e28 8430 {
0085ce49
RD
8431 arg5 = &temp5;
8432 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 8433 }
0085ce49
RD
8434 }
8435 if (obj5) {
8436 ecode6 = SWIG_AsVal_long(obj5, &val6);
8437 if (!SWIG_IsOK(ecode6)) {
8438 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBitmap" "', expected argument " "6"" of type '" "long""'");
8439 }
8440 arg6 = static_cast< long >(val6);
8441 }
8442 if (obj6) {
093d3ff1 8443 {
0085ce49
RD
8444 arg7 = wxString_in_helper(obj6);
8445 if (arg7 == NULL) SWIG_fail;
8446 temp7 = true;
093d3ff1 8447 }
0085ce49
RD
8448 }
8449 {
8450 if (!wxPyCheckForApp()) SWIG_fail;
8451 PyThreadState* __tstate = wxPyBeginAllowThreads();
8452 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8453 wxPyEndAllowThreads(__tstate);
8454 if (PyErr_Occurred()) SWIG_fail;
8455 }
8456 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_NEW | 0 );
8457 {
8458 if (temp7)
8459 delete arg7;
8460 }
8461 return resultobj;
8462fail:
8463 {
8464 if (temp7)
8465 delete arg7;
8466 }
8467 return NULL;
d14a1e28
RD
8468}
8469
8470
0085ce49
RD
8471SWIGINTERN PyObject *_wrap_new_PreStaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8472 PyObject *resultobj = 0;
8473 wxStaticBitmap *result = 0 ;
8474
8475 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBitmap",0,0,0)) SWIG_fail;
8476 {
8477 if (!wxPyCheckForApp()) SWIG_fail;
8478 PyThreadState* __tstate = wxPyBeginAllowThreads();
8479 result = (wxStaticBitmap *)new wxStaticBitmap();
8480 wxPyEndAllowThreads(__tstate);
8481 if (PyErr_Occurred()) SWIG_fail;
8482 }
8483 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_OWN | 0 );
8484 return resultobj;
8485fail:
8486 return NULL;
8487}
8488
8489
8490SWIGINTERN PyObject *_wrap_StaticBitmap_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8491 PyObject *resultobj = 0;
8492 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8493 wxWindow *arg2 = (wxWindow *) 0 ;
8494 int arg3 = (int) -1 ;
8495 wxBitmap const &arg4_defvalue = wxNullBitmap ;
8496 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
8497 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8498 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8499 wxSize const &arg6_defvalue = wxDefaultSize ;
8500 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8501 long arg7 = (long) 0 ;
8502 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
8503 wxString *arg8 = (wxString *) &arg8_defvalue ;
8504 bool result;
8505 void *argp1 = 0 ;
8506 int res1 = 0 ;
8507 void *argp2 = 0 ;
8508 int res2 = 0 ;
8509 int val3 ;
8510 int ecode3 = 0 ;
8511 void *argp4 = 0 ;
8512 int res4 = 0 ;
8513 wxPoint temp5 ;
8514 wxSize temp6 ;
8515 long val7 ;
8516 int ecode7 = 0 ;
8517 bool temp8 = false ;
8518 PyObject * obj0 = 0 ;
8519 PyObject * obj1 = 0 ;
8520 PyObject * obj2 = 0 ;
8521 PyObject * obj3 = 0 ;
8522 PyObject * obj4 = 0 ;
8523 PyObject * obj5 = 0 ;
8524 PyObject * obj6 = 0 ;
8525 PyObject * obj7 = 0 ;
8526 char * kwnames[] = {
8527 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8528 };
8529
8530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8532 if (!SWIG_IsOK(res1)) {
8533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_Create" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8534 }
8535 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8536 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8537 if (!SWIG_IsOK(res2)) {
8538 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8539 }
8540 arg2 = reinterpret_cast< wxWindow * >(argp2);
8541 if (obj2) {
8542 ecode3 = SWIG_AsVal_int(obj2, &val3);
8543 if (!SWIG_IsOK(ecode3)) {
8544 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBitmap_Create" "', expected argument " "3"" of type '" "int""'");
8545 }
8546 arg3 = static_cast< int >(val3);
8547 }
8548 if (obj3) {
8549 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
8550 if (!SWIG_IsOK(res4)) {
8551 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8552 }
8553 if (!argp4) {
8554 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
22bfe96c 8555 }
0085ce49
RD
8556 arg4 = reinterpret_cast< wxBitmap * >(argp4);
8557 }
8558 if (obj4) {
22bfe96c 8559 {
0085ce49
RD
8560 arg5 = &temp5;
8561 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
22bfe96c 8562 }
0085ce49
RD
8563 }
8564 if (obj5) {
22bfe96c 8565 {
0085ce49
RD
8566 arg6 = &temp6;
8567 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
22bfe96c 8568 }
0085ce49
RD
8569 }
8570 if (obj6) {
8571 ecode7 = SWIG_AsVal_long(obj6, &val7);
8572 if (!SWIG_IsOK(ecode7)) {
8573 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBitmap_Create" "', expected argument " "7"" of type '" "long""'");
8574 }
8575 arg7 = static_cast< long >(val7);
8576 }
8577 if (obj7) {
b2dc1044 8578 {
0085ce49
RD
8579 arg8 = wxString_in_helper(obj7);
8580 if (arg8 == NULL) SWIG_fail;
8581 temp8 = true;
b2dc1044 8582 }
0085ce49
RD
8583 }
8584 {
8585 PyThreadState* __tstate = wxPyBeginAllowThreads();
8586 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8587 wxPyEndAllowThreads(__tstate);
8588 if (PyErr_Occurred()) SWIG_fail;
8589 }
8590 {
8591 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8592 }
8593 {
8594 if (temp8)
8595 delete arg8;
8596 }
8597 return resultobj;
8598fail:
8599 {
8600 if (temp8)
8601 delete arg8;
8602 }
8603 return NULL;
b2dc1044
RD
8604}
8605
8606
0085ce49
RD
8607SWIGINTERN PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8608 PyObject *resultobj = 0;
8609 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8610 wxBitmap result;
8611 void *argp1 = 0 ;
8612 int res1 = 0 ;
8613 PyObject *swig_obj[1] ;
8614
8615 if (!args) SWIG_fail;
8616 swig_obj[0] = args;
8617 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8618 if (!SWIG_IsOK(res1)) {
8619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_GetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8620 }
8621 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8622 {
8623 PyThreadState* __tstate = wxPyBeginAllowThreads();
8624 result = (arg1)->GetBitmap();
8625 wxPyEndAllowThreads(__tstate);
8626 if (PyErr_Occurred()) SWIG_fail;
8627 }
8628 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8629 return resultobj;
8630fail:
8631 return NULL;
8632}
8633
8634
8635SWIGINTERN PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8636 PyObject *resultobj = 0;
8637 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8638 wxBitmap *arg2 = 0 ;
8639 void *argp1 = 0 ;
8640 int res1 = 0 ;
8641 void *argp2 = 0 ;
8642 int res2 = 0 ;
8643 PyObject * obj0 = 0 ;
8644 PyObject * obj1 = 0 ;
8645 char * kwnames[] = {
8646 (char *) "self",(char *) "bitmap", NULL
8647 };
8648
8649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
8650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8651 if (!SWIG_IsOK(res1)) {
8652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8653 }
8654 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8655 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8656 if (!SWIG_IsOK(res2)) {
8657 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8658 }
8659 if (!argp2) {
8660 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8661 }
8662 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8663 {
8664 PyThreadState* __tstate = wxPyBeginAllowThreads();
8665 (arg1)->SetBitmap((wxBitmap const &)*arg2);
8666 wxPyEndAllowThreads(__tstate);
8667 if (PyErr_Occurred()) SWIG_fail;
8668 }
8669 resultobj = SWIG_Py_Void();
8670 return resultobj;
8671fail:
8672 return NULL;
8673}
8674
8675
8676SWIGINTERN PyObject *_wrap_StaticBitmap_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8677 PyObject *resultobj = 0;
8678 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8679 wxIcon *arg2 = 0 ;
8680 void *argp1 = 0 ;
8681 int res1 = 0 ;
8682 void *argp2 = 0 ;
8683 int res2 = 0 ;
8684 PyObject * obj0 = 0 ;
8685 PyObject * obj1 = 0 ;
8686 char * kwnames[] = {
8687 (char *) "self",(char *) "icon", NULL
8688 };
8689
8690 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
8691 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8692 if (!SWIG_IsOK(res1)) {
8693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetIcon" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8694 }
8695 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8696 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
8697 if (!SWIG_IsOK(res2)) {
8698 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8699 }
8700 if (!argp2) {
8701 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8702 }
8703 arg2 = reinterpret_cast< wxIcon * >(argp2);
8704 {
8705 PyThreadState* __tstate = wxPyBeginAllowThreads();
8706 (arg1)->SetIcon((wxIcon const &)*arg2);
8707 wxPyEndAllowThreads(__tstate);
8708 if (PyErr_Occurred()) SWIG_fail;
8709 }
8710 resultobj = SWIG_Py_Void();
8711 return resultobj;
8712fail:
8713 return NULL;
8714}
8715
8716
8717SWIGINTERN PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8718 PyObject *resultobj = 0;
8719 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8720 SwigValueWrapper<wxVisualAttributes > result;
8721 int val1 ;
8722 int ecode1 = 0 ;
8723 PyObject * obj0 = 0 ;
8724 char * kwnames[] = {
8725 (char *) "variant", NULL
8726 };
8727
8728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8729 if (obj0) {
8730 ecode1 = SWIG_AsVal_int(obj0, &val1);
8731 if (!SWIG_IsOK(ecode1)) {
8732 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBitmap_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8733 }
8734 arg1 = static_cast< wxWindowVariant >(val1);
8735 }
8736 {
8737 if (!wxPyCheckForApp()) SWIG_fail;
8738 PyThreadState* __tstate = wxPyBeginAllowThreads();
8739 result = wxStaticBitmap::GetClassDefaultAttributes(arg1);
8740 wxPyEndAllowThreads(__tstate);
8741 if (PyErr_Occurred()) SWIG_fail;
8742 }
8743 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8744 return resultobj;
8745fail:
8746 return NULL;
b2dc1044
RD
8747}
8748
8749
0085ce49
RD
8750SWIGINTERN PyObject *StaticBitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8751 PyObject *obj;
8752 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8753 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBitmap, SWIG_NewClientData(obj));
8754 return SWIG_Py_Void();
b2dc1044
RD
8755}
8756
0085ce49
RD
8757SWIGINTERN PyObject *StaticBitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8758 return SWIG_Python_InitShadowInstance(args);
8759}
b2dc1044 8760
0085ce49
RD
8761SWIGINTERN int ListBoxNameStr_set(PyObject *) {
8762 SWIG_Error(SWIG_AttributeError,"Variable ListBoxNameStr is read-only.");
8763 return 1;
b2dc1044
RD
8764}
8765
8766
0085ce49
RD
8767SWIGINTERN PyObject *ListBoxNameStr_get(void) {
8768 PyObject *pyobj = 0;
8769
8770 {
b2dc1044 8771#if wxUSE_UNICODE
0085ce49 8772 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
b2dc1044 8773#else
0085ce49 8774 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
b2dc1044 8775#endif
0085ce49
RD
8776 }
8777 return pyobj;
8778}
8779
8780
8781SWIGINTERN PyObject *_wrap_new_ListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8782 PyObject *resultobj = 0;
8783 wxWindow *arg1 = (wxWindow *) 0 ;
8784 int arg2 = (int) -1 ;
8785 wxPoint const &arg3_defvalue = wxDefaultPosition ;
8786 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
8787 wxSize const &arg4_defvalue = wxDefaultSize ;
8788 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
8789 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
8790 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
8791 long arg6 = (long) 0 ;
8792 wxValidator const &arg7_defvalue = wxDefaultValidator ;
8793 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
8794 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
8795 wxString *arg8 = (wxString *) &arg8_defvalue ;
8796 wxListBox *result = 0 ;
8797 void *argp1 = 0 ;
8798 int res1 = 0 ;
8799 int val2 ;
8800 int ecode2 = 0 ;
8801 wxPoint temp3 ;
8802 wxSize temp4 ;
8803 bool temp5 = false ;
8804 long val6 ;
8805 int ecode6 = 0 ;
8806 void *argp7 = 0 ;
8807 int res7 = 0 ;
8808 bool temp8 = false ;
8809 PyObject * obj0 = 0 ;
8810 PyObject * obj1 = 0 ;
8811 PyObject * obj2 = 0 ;
8812 PyObject * obj3 = 0 ;
8813 PyObject * obj4 = 0 ;
8814 PyObject * obj5 = 0 ;
8815 PyObject * obj6 = 0 ;
8816 PyObject * obj7 = 0 ;
8817 char * kwnames[] = {
8818 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8819 };
8820
8821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8823 if (!SWIG_IsOK(res1)) {
8824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
8825 }
8826 arg1 = reinterpret_cast< wxWindow * >(argp1);
8827 if (obj1) {
8828 ecode2 = SWIG_AsVal_int(obj1, &val2);
8829 if (!SWIG_IsOK(ecode2)) {
8830 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListBox" "', expected argument " "2"" of type '" "int""'");
8831 }
8832 arg2 = static_cast< int >(val2);
8833 }
8834 if (obj2) {
d14a1e28 8835 {
0085ce49
RD
8836 arg3 = &temp3;
8837 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 8838 }
0085ce49
RD
8839 }
8840 if (obj3) {
d14a1e28 8841 {
0085ce49
RD
8842 arg4 = &temp4;
8843 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 8844 }
0085ce49
RD
8845 }
8846 if (obj4) {
d14a1e28 8847 {
0085ce49
RD
8848 if (! PySequence_Check(obj4)) {
8849 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8850 SWIG_fail;
8851 }
8852 arg5 = new wxArrayString;
8853 temp5 = true;
8854 int i, len=PySequence_Length(obj4);
8855 for (i=0; i<len; i++) {
8856 PyObject* item = PySequence_GetItem(obj4, i);
8857 wxString* s = wxString_in_helper(item);
8858 if (PyErr_Occurred()) SWIG_fail;
8859 arg5->Add(*s);
8860 delete s;
8861 Py_DECREF(item);
8862 }
d14a1e28 8863 }
0085ce49
RD
8864 }
8865 if (obj5) {
8866 ecode6 = SWIG_AsVal_long(obj5, &val6);
8867 if (!SWIG_IsOK(ecode6)) {
8868 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ListBox" "', expected argument " "6"" of type '" "long""'");
8869 }
8870 arg6 = static_cast< long >(val6);
8871 }
8872 if (obj6) {
8873 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
8874 if (!SWIG_IsOK(res7)) {
8875 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 8876 }
0085ce49
RD
8877 if (!argp7) {
8878 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 8879 }
0085ce49
RD
8880 arg7 = reinterpret_cast< wxValidator * >(argp7);
8881 }
8882 if (obj7) {
d14a1e28 8883 {
0085ce49
RD
8884 arg8 = wxString_in_helper(obj7);
8885 if (arg8 == NULL) SWIG_fail;
8886 temp8 = true;
d14a1e28 8887 }
0085ce49
RD
8888 }
8889 {
8890 if (!wxPyCheckForApp()) SWIG_fail;
8891 PyThreadState* __tstate = wxPyBeginAllowThreads();
8892 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
8893 wxPyEndAllowThreads(__tstate);
8894 if (PyErr_Occurred()) SWIG_fail;
8895 }
8896 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_NEW | 0 );
8897 {
8898 if (temp5) delete arg5;
8899 }
8900 {
8901 if (temp8)
8902 delete arg8;
8903 }
8904 return resultobj;
8905fail:
8906 {
8907 if (temp5) delete arg5;
8908 }
8909 {
8910 if (temp8)
8911 delete arg8;
8912 }
8913 return NULL;
d14a1e28
RD
8914}
8915
8916
0085ce49
RD
8917SWIGINTERN PyObject *_wrap_new_PreListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8918 PyObject *resultobj = 0;
8919 wxListBox *result = 0 ;
8920
8921 if (!SWIG_Python_UnpackTuple(args,"new_PreListBox",0,0,0)) SWIG_fail;
8922 {
8923 if (!wxPyCheckForApp()) SWIG_fail;
8924 PyThreadState* __tstate = wxPyBeginAllowThreads();
8925 result = (wxListBox *)new wxListBox();
8926 wxPyEndAllowThreads(__tstate);
8927 if (PyErr_Occurred()) SWIG_fail;
8928 }
8929 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_OWN | 0 );
8930 return resultobj;
8931fail:
8932 return NULL;
8933}
8934
8935
8936SWIGINTERN PyObject *_wrap_ListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8937 PyObject *resultobj = 0;
8938 wxListBox *arg1 = (wxListBox *) 0 ;
8939 wxWindow *arg2 = (wxWindow *) 0 ;
8940 int arg3 = (int) -1 ;
8941 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8942 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8943 wxSize const &arg5_defvalue = wxDefaultSize ;
8944 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8945 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
8946 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
8947 long arg7 = (long) 0 ;
8948 wxValidator const &arg8_defvalue = wxDefaultValidator ;
8949 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
8950 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
8951 wxString *arg9 = (wxString *) &arg9_defvalue ;
8952 bool result;
8953 void *argp1 = 0 ;
8954 int res1 = 0 ;
8955 void *argp2 = 0 ;
8956 int res2 = 0 ;
8957 int val3 ;
8958 int ecode3 = 0 ;
8959 wxPoint temp4 ;
8960 wxSize temp5 ;
8961 bool temp6 = false ;
8962 long val7 ;
8963 int ecode7 = 0 ;
8964 void *argp8 = 0 ;
8965 int res8 = 0 ;
8966 bool temp9 = false ;
8967 PyObject * obj0 = 0 ;
8968 PyObject * obj1 = 0 ;
8969 PyObject * obj2 = 0 ;
8970 PyObject * obj3 = 0 ;
8971 PyObject * obj4 = 0 ;
8972 PyObject * obj5 = 0 ;
8973 PyObject * obj6 = 0 ;
8974 PyObject * obj7 = 0 ;
8975 PyObject * obj8 = 0 ;
8976 char * kwnames[] = {
8977 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8978 };
8979
8980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
8981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
8982 if (!SWIG_IsOK(res1)) {
8983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Create" "', expected argument " "1"" of type '" "wxListBox *""'");
8984 }
8985 arg1 = reinterpret_cast< wxListBox * >(argp1);
8986 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8987 if (!SWIG_IsOK(res2)) {
8988 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8989 }
8990 arg2 = reinterpret_cast< wxWindow * >(argp2);
8991 if (obj2) {
8992 ecode3 = SWIG_AsVal_int(obj2, &val3);
8993 if (!SWIG_IsOK(ecode3)) {
8994 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Create" "', expected argument " "3"" of type '" "int""'");
8995 }
8996 arg3 = static_cast< int >(val3);
8997 }
8998 if (obj3) {
d14a1e28 8999 {
0085ce49
RD
9000 arg4 = &temp4;
9001 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 9002 }
0085ce49
RD
9003 }
9004 if (obj4) {
d14a1e28 9005 {
0085ce49
RD
9006 arg5 = &temp5;
9007 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 9008 }
0085ce49
RD
9009 }
9010 if (obj5) {
d14a1e28 9011 {
0085ce49
RD
9012 if (! PySequence_Check(obj5)) {
9013 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9014 SWIG_fail;
9015 }
9016 arg6 = new wxArrayString;
9017 temp6 = true;
9018 int i, len=PySequence_Length(obj5);
9019 for (i=0; i<len; i++) {
9020 PyObject* item = PySequence_GetItem(obj5, i);
9021 wxString* s = wxString_in_helper(item);
9022 if (PyErr_Occurred()) SWIG_fail;
9023 arg6->Add(*s);
9024 delete s;
9025 Py_DECREF(item);
9026 }
d14a1e28 9027 }
0085ce49
RD
9028 }
9029 if (obj6) {
9030 ecode7 = SWIG_AsVal_long(obj6, &val7);
9031 if (!SWIG_IsOK(ecode7)) {
9032 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ListBox_Create" "', expected argument " "7"" of type '" "long""'");
9033 }
9034 arg7 = static_cast< long >(val7);
9035 }
9036 if (obj7) {
9037 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
9038 if (!SWIG_IsOK(res8)) {
9039 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 9040 }
0085ce49
RD
9041 if (!argp8) {
9042 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
22bfe96c 9043 }
0085ce49
RD
9044 arg8 = reinterpret_cast< wxValidator * >(argp8);
9045 }
9046 if (obj8) {
22bfe96c 9047 {
0085ce49
RD
9048 arg9 = wxString_in_helper(obj8);
9049 if (arg9 == NULL) SWIG_fail;
9050 temp9 = true;
22bfe96c 9051 }
0085ce49
RD
9052 }
9053 {
9054 PyThreadState* __tstate = wxPyBeginAllowThreads();
9055 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
9056 wxPyEndAllowThreads(__tstate);
9057 if (PyErr_Occurred()) SWIG_fail;
9058 }
9059 {
9060 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9061 }
9062 {
9063 if (temp6) delete arg6;
9064 }
9065 {
9066 if (temp9)
9067 delete arg9;
9068 }
9069 return resultobj;
9070fail:
9071 {
9072 if (temp6) delete arg6;
9073 }
9074 {
9075 if (temp9)
9076 delete arg9;
9077 }
9078 return NULL;
9079}
9080
9081
9082SWIGINTERN PyObject *_wrap_ListBox_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9083 PyObject *resultobj = 0;
9084 wxListBox *arg1 = (wxListBox *) 0 ;
9085 wxString *arg2 = 0 ;
9086 int arg3 ;
9087 PyObject *arg4 = (PyObject *) NULL ;
9088 void *argp1 = 0 ;
9089 int res1 = 0 ;
9090 bool temp2 = false ;
9091 int val3 ;
9092 int ecode3 = 0 ;
9093 PyObject * obj0 = 0 ;
9094 PyObject * obj1 = 0 ;
9095 PyObject * obj2 = 0 ;
9096 PyObject * obj3 = 0 ;
9097 char * kwnames[] = {
9098 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
9099 };
9100
9101 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9102 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9103 if (!SWIG_IsOK(res1)) {
9104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Insert" "', expected argument " "1"" of type '" "wxListBox *""'");
9105 }
9106 arg1 = reinterpret_cast< wxListBox * >(argp1);
9107 {
9108 arg2 = wxString_in_helper(obj1);
9109 if (arg2 == NULL) SWIG_fail;
9110 temp2 = true;
9111 }
9112 ecode3 = SWIG_AsVal_int(obj2, &val3);
9113 if (!SWIG_IsOK(ecode3)) {
9114 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Insert" "', expected argument " "3"" of type '" "int""'");
9115 }
9116 arg3 = static_cast< int >(val3);
9117 if (obj3) {
9118 arg4 = obj3;
9119 }
9120 {
9121 PyThreadState* __tstate = wxPyBeginAllowThreads();
9122 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
9123 wxPyEndAllowThreads(__tstate);
9124 if (PyErr_Occurred()) SWIG_fail;
9125 }
9126 resultobj = SWIG_Py_Void();
9127 {
9128 if (temp2)
9129 delete arg2;
9130 }
9131 return resultobj;
9132fail:
9133 {
9134 if (temp2)
9135 delete arg2;
9136 }
9137 return NULL;
9138}
9139
9140
9141SWIGINTERN PyObject *_wrap_ListBox_InsertItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9142 PyObject *resultobj = 0;
9143 wxListBox *arg1 = (wxListBox *) 0 ;
9144 wxArrayString *arg2 = 0 ;
50f151d7 9145 unsigned int arg3 ;
0085ce49
RD
9146 void *argp1 = 0 ;
9147 int res1 = 0 ;
9148 bool temp2 = false ;
50f151d7 9149 unsigned int val3 ;
0085ce49
RD
9150 int ecode3 = 0 ;
9151 PyObject * obj0 = 0 ;
9152 PyObject * obj1 = 0 ;
9153 PyObject * obj2 = 0 ;
9154 char * kwnames[] = {
9155 (char *) "self",(char *) "items",(char *) "pos", NULL
9156 };
9157
9158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9160 if (!SWIG_IsOK(res1)) {
9161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_InsertItems" "', expected argument " "1"" of type '" "wxListBox *""'");
9162 }
9163 arg1 = reinterpret_cast< wxListBox * >(argp1);
9164 {
9165 if (! PySequence_Check(obj1)) {
9166 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9167 SWIG_fail;
9168 }
9169 arg2 = new wxArrayString;
9170 temp2 = true;
9171 int i, len=PySequence_Length(obj1);
9172 for (i=0; i<len; i++) {
9173 PyObject* item = PySequence_GetItem(obj1, i);
9174 wxString* s = wxString_in_helper(item);
9175 if (PyErr_Occurred()) SWIG_fail;
9176 arg2->Add(*s);
9177 delete s;
9178 Py_DECREF(item);
22bfe96c 9179 }
0085ce49 9180 }
50f151d7 9181 ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
0085ce49 9182 if (!SWIG_IsOK(ecode3)) {
50f151d7 9183 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_InsertItems" "', expected argument " "3"" of type '" "unsigned int""'");
0085ce49 9184 }
50f151d7 9185 arg3 = static_cast< unsigned int >(val3);
0085ce49
RD
9186 {
9187 PyThreadState* __tstate = wxPyBeginAllowThreads();
9188 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
9189 wxPyEndAllowThreads(__tstate);
9190 if (PyErr_Occurred()) SWIG_fail;
9191 }
9192 resultobj = SWIG_Py_Void();
9193 {
9194 if (temp2) delete arg2;
9195 }
9196 return resultobj;
9197fail:
9198 {
9199 if (temp2) delete arg2;
9200 }
9201 return NULL;
22bfe96c
RD
9202}
9203
9204
0085ce49
RD
9205SWIGINTERN PyObject *_wrap_ListBox_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9206 PyObject *resultobj = 0;
9207 wxListBox *arg1 = (wxListBox *) 0 ;
9208 wxArrayString *arg2 = 0 ;
9209 void *argp1 = 0 ;
9210 int res1 = 0 ;
9211 bool temp2 = false ;
9212 PyObject * obj0 = 0 ;
9213 PyObject * obj1 = 0 ;
9214 char * kwnames[] = {
9215 (char *) "self",(char *) "items", NULL
9216 };
9217
9218 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) SWIG_fail;
9219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9220 if (!SWIG_IsOK(res1)) {
9221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Set" "', expected argument " "1"" of type '" "wxListBox *""'");
9222 }
9223 arg1 = reinterpret_cast< wxListBox * >(argp1);
9224 {
9225 if (! PySequence_Check(obj1)) {
9226 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9227 SWIG_fail;
9228 }
9229 arg2 = new wxArrayString;
9230 temp2 = true;
9231 int i, len=PySequence_Length(obj1);
9232 for (i=0; i<len; i++) {
9233 PyObject* item = PySequence_GetItem(obj1, i);
9234 wxString* s = wxString_in_helper(item);
9235 if (PyErr_Occurred()) SWIG_fail;
9236 arg2->Add(*s);
9237 delete s;
9238 Py_DECREF(item);
d14a1e28 9239 }
0085ce49
RD
9240 }
9241 {
9242 PyThreadState* __tstate = wxPyBeginAllowThreads();
9243 (arg1)->Set((wxArrayString const &)*arg2);
9244 wxPyEndAllowThreads(__tstate);
9245 if (PyErr_Occurred()) SWIG_fail;
9246 }
9247 resultobj = SWIG_Py_Void();
9248 {
9249 if (temp2) delete arg2;
9250 }
9251 return resultobj;
9252fail:
9253 {
9254 if (temp2) delete arg2;
9255 }
9256 return NULL;
9257}
9258
9259
9260SWIGINTERN PyObject *_wrap_ListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9261 PyObject *resultobj = 0;
9262 wxListBox *arg1 = (wxListBox *) 0 ;
9263 int arg2 ;
9264 bool result;
9265 void *argp1 = 0 ;
9266 int res1 = 0 ;
9267 int val2 ;
9268 int ecode2 = 0 ;
9269 PyObject * obj0 = 0 ;
9270 PyObject * obj1 = 0 ;
9271 char * kwnames[] = {
9272 (char *) "self",(char *) "n", NULL
9273 };
9274
9275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
9276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9277 if (!SWIG_IsOK(res1)) {
9278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSelected" "', expected argument " "1"" of type '" "wxListBox const *""'");
9279 }
9280 arg1 = reinterpret_cast< wxListBox * >(argp1);
9281 ecode2 = SWIG_AsVal_int(obj1, &val2);
9282 if (!SWIG_IsOK(ecode2)) {
9283 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_IsSelected" "', expected argument " "2"" of type '" "int""'");
9284 }
9285 arg2 = static_cast< int >(val2);
9286 {
9287 PyThreadState* __tstate = wxPyBeginAllowThreads();
9288 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
9289 wxPyEndAllowThreads(__tstate);
9290 if (PyErr_Occurred()) SWIG_fail;
9291 }
9292 {
9293 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9294 }
9295 return resultobj;
9296fail:
9297 return NULL;
9298}
9299
9300
9301SWIGINTERN PyObject *_wrap_ListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9302 PyObject *resultobj = 0;
9303 wxListBox *arg1 = (wxListBox *) 0 ;
9304 int arg2 ;
9305 bool arg3 = (bool) true ;
9306 void *argp1 = 0 ;
9307 int res1 = 0 ;
9308 int val2 ;
9309 int ecode2 = 0 ;
9310 bool val3 ;
9311 int ecode3 = 0 ;
9312 PyObject * obj0 = 0 ;
9313 PyObject * obj1 = 0 ;
9314 PyObject * obj2 = 0 ;
9315 char * kwnames[] = {
9316 (char *) "self",(char *) "n",(char *) "select", NULL
9317 };
9318
9319 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9320 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9321 if (!SWIG_IsOK(res1)) {
9322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9323 }
9324 arg1 = reinterpret_cast< wxListBox * >(argp1);
9325 ecode2 = SWIG_AsVal_int(obj1, &val2);
9326 if (!SWIG_IsOK(ecode2)) {
9327 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
9328 }
9329 arg2 = static_cast< int >(val2);
9330 if (obj2) {
9331 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9332 if (!SWIG_IsOK(ecode3)) {
9333 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetSelection" "', expected argument " "3"" of type '" "bool""'");
9334 }
9335 arg3 = static_cast< bool >(val3);
9336 }
9337 {
9338 PyThreadState* __tstate = wxPyBeginAllowThreads();
9339 (arg1)->SetSelection(arg2,arg3);
9340 wxPyEndAllowThreads(__tstate);
9341 if (PyErr_Occurred()) SWIG_fail;
9342 }
9343 resultobj = SWIG_Py_Void();
9344 return resultobj;
9345fail:
9346 return NULL;
9347}
9348
9349
9350SWIGINTERN PyObject *_wrap_ListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9351 PyObject *resultobj = 0;
9352 wxListBox *arg1 = (wxListBox *) 0 ;
9353 int arg2 ;
9354 void *argp1 = 0 ;
9355 int res1 = 0 ;
9356 int val2 ;
9357 int ecode2 = 0 ;
9358 PyObject * obj0 = 0 ;
9359 PyObject * obj1 = 0 ;
9360 char * kwnames[] = {
9361 (char *) "self",(char *) "n", NULL
9362 };
9363
9364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) SWIG_fail;
9365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9366 if (!SWIG_IsOK(res1)) {
9367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Select" "', expected argument " "1"" of type '" "wxListBox *""'");
9368 }
9369 arg1 = reinterpret_cast< wxListBox * >(argp1);
9370 ecode2 = SWIG_AsVal_int(obj1, &val2);
9371 if (!SWIG_IsOK(ecode2)) {
9372 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Select" "', expected argument " "2"" of type '" "int""'");
9373 }
9374 arg2 = static_cast< int >(val2);
9375 {
9376 PyThreadState* __tstate = wxPyBeginAllowThreads();
9377 (arg1)->Select(arg2);
9378 wxPyEndAllowThreads(__tstate);
9379 if (PyErr_Occurred()) SWIG_fail;
9380 }
9381 resultobj = SWIG_Py_Void();
9382 return resultobj;
9383fail:
9384 return NULL;
9385}
9386
9387
9388SWIGINTERN PyObject *_wrap_ListBox_Deselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9389 PyObject *resultobj = 0;
9390 wxListBox *arg1 = (wxListBox *) 0 ;
9391 int arg2 ;
9392 void *argp1 = 0 ;
9393 int res1 = 0 ;
9394 int val2 ;
9395 int ecode2 = 0 ;
9396 PyObject * obj0 = 0 ;
9397 PyObject * obj1 = 0 ;
9398 char * kwnames[] = {
9399 (char *) "self",(char *) "n", NULL
9400 };
9401
9402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) SWIG_fail;
9403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9404 if (!SWIG_IsOK(res1)) {
9405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Deselect" "', expected argument " "1"" of type '" "wxListBox *""'");
9406 }
9407 arg1 = reinterpret_cast< wxListBox * >(argp1);
9408 ecode2 = SWIG_AsVal_int(obj1, &val2);
9409 if (!SWIG_IsOK(ecode2)) {
9410 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Deselect" "', expected argument " "2"" of type '" "int""'");
9411 }
9412 arg2 = static_cast< int >(val2);
9413 {
9414 PyThreadState* __tstate = wxPyBeginAllowThreads();
9415 (arg1)->Deselect(arg2);
9416 wxPyEndAllowThreads(__tstate);
9417 if (PyErr_Occurred()) SWIG_fail;
9418 }
9419 resultobj = SWIG_Py_Void();
9420 return resultobj;
9421fail:
9422 return NULL;
9423}
9424
9425
9426SWIGINTERN PyObject *_wrap_ListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9427 PyObject *resultobj = 0;
9428 wxListBox *arg1 = (wxListBox *) 0 ;
9429 int arg2 = (int) -1 ;
9430 void *argp1 = 0 ;
9431 int res1 = 0 ;
9432 int val2 ;
9433 int ecode2 = 0 ;
9434 PyObject * obj0 = 0 ;
9435 PyObject * obj1 = 0 ;
9436 char * kwnames[] = {
9437 (char *) "self",(char *) "itemToLeaveSelected", NULL
9438 };
9439
9440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) SWIG_fail;
9441 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9442 if (!SWIG_IsOK(res1)) {
9443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_DeselectAll" "', expected argument " "1"" of type '" "wxListBox *""'");
9444 }
9445 arg1 = reinterpret_cast< wxListBox * >(argp1);
9446 if (obj1) {
9447 ecode2 = SWIG_AsVal_int(obj1, &val2);
9448 if (!SWIG_IsOK(ecode2)) {
9449 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_DeselectAll" "', expected argument " "2"" of type '" "int""'");
9450 }
9451 arg2 = static_cast< int >(val2);
9452 }
9453 {
9454 PyThreadState* __tstate = wxPyBeginAllowThreads();
9455 (arg1)->DeselectAll(arg2);
9456 wxPyEndAllowThreads(__tstate);
9457 if (PyErr_Occurred()) SWIG_fail;
9458 }
9459 resultobj = SWIG_Py_Void();
9460 return resultobj;
9461fail:
9462 return NULL;
9463}
9464
9465
9466SWIGINTERN PyObject *_wrap_ListBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9467 PyObject *resultobj = 0;
9468 wxListBox *arg1 = (wxListBox *) 0 ;
9469 wxString *arg2 = 0 ;
9470 bool arg3 = (bool) true ;
9471 bool result;
9472 void *argp1 = 0 ;
9473 int res1 = 0 ;
9474 bool temp2 = false ;
9475 bool val3 ;
9476 int ecode3 = 0 ;
9477 PyObject * obj0 = 0 ;
9478 PyObject * obj1 = 0 ;
9479 PyObject * obj2 = 0 ;
9480 char * kwnames[] = {
9481 (char *) "self",(char *) "s",(char *) "select", NULL
9482 };
9483
9484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9486 if (!SWIG_IsOK(res1)) {
9487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetStringSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9488 }
9489 arg1 = reinterpret_cast< wxListBox * >(argp1);
9490 {
9491 arg2 = wxString_in_helper(obj1);
9492 if (arg2 == NULL) SWIG_fail;
9493 temp2 = true;
9494 }
9495 if (obj2) {
9496 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9497 if (!SWIG_IsOK(ecode3)) {
9498 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetStringSelection" "', expected argument " "3"" of type '" "bool""'");
9499 }
9500 arg3 = static_cast< bool >(val3);
9501 }
9502 {
9503 PyThreadState* __tstate = wxPyBeginAllowThreads();
9504 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
9505 wxPyEndAllowThreads(__tstate);
9506 if (PyErr_Occurred()) SWIG_fail;
9507 }
9508 {
9509 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9510 }
9511 {
9512 if (temp2)
9513 delete arg2;
9514 }
9515 return resultobj;
9516fail:
9517 {
9518 if (temp2)
9519 delete arg2;
9520 }
9521 return NULL;
d14a1e28
RD
9522}
9523
9524
0085ce49
RD
9525SWIGINTERN PyObject *_wrap_ListBox_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9526 PyObject *resultobj = 0;
9527 wxListBox *arg1 = (wxListBox *) 0 ;
9528 PyObject *result = 0 ;
9529 void *argp1 = 0 ;
9530 int res1 = 0 ;
9531 PyObject *swig_obj[1] ;
9532
9533 if (!args) SWIG_fail;
9534 swig_obj[0] = args;
9535 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9536 if (!SWIG_IsOK(res1)) {
9537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_GetSelections" "', expected argument " "1"" of type '" "wxListBox *""'");
9538 }
9539 arg1 = reinterpret_cast< wxListBox * >(argp1);
9540 {
9541 PyThreadState* __tstate = wxPyBeginAllowThreads();
9542 result = (PyObject *)wxListBox_GetSelections(arg1);
9543 wxPyEndAllowThreads(__tstate);
9544 if (PyErr_Occurred()) SWIG_fail;
9545 }
9546 resultobj = result;
9547 return resultobj;
9548fail:
9549 return NULL;
9550}
9551
9552
9553SWIGINTERN PyObject *_wrap_ListBox_SetFirstItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9554 PyObject *resultobj = 0;
9555 wxListBox *arg1 = (wxListBox *) 0 ;
9556 int arg2 ;
9557 void *argp1 = 0 ;
9558 int res1 = 0 ;
9559 int val2 ;
9560 int ecode2 = 0 ;
9561 PyObject * obj0 = 0 ;
9562 PyObject * obj1 = 0 ;
9563 char * kwnames[] = {
9564 (char *) "self",(char *) "n", NULL
9565 };
9566
9567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) SWIG_fail;
9568 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9569 if (!SWIG_IsOK(res1)) {
9570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItem" "', expected argument " "1"" of type '" "wxListBox *""'");
9571 }
9572 arg1 = reinterpret_cast< wxListBox * >(argp1);
9573 ecode2 = SWIG_AsVal_int(obj1, &val2);
9574 if (!SWIG_IsOK(ecode2)) {
9575 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetFirstItem" "', expected argument " "2"" of type '" "int""'");
9576 }
9577 arg2 = static_cast< int >(val2);
9578 {
9579 PyThreadState* __tstate = wxPyBeginAllowThreads();
9580 (arg1)->SetFirstItem(arg2);
9581 wxPyEndAllowThreads(__tstate);
9582 if (PyErr_Occurred()) SWIG_fail;
9583 }
9584 resultobj = SWIG_Py_Void();
9585 return resultobj;
9586fail:
9587 return NULL;
9588}
9589
9590
9591SWIGINTERN PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9592 PyObject *resultobj = 0;
9593 wxListBox *arg1 = (wxListBox *) 0 ;
9594 wxString *arg2 = 0 ;
9595 void *argp1 = 0 ;
9596 int res1 = 0 ;
9597 bool temp2 = false ;
9598 PyObject * obj0 = 0 ;
9599 PyObject * obj1 = 0 ;
9600 char * kwnames[] = {
9601 (char *) "self",(char *) "s", NULL
9602 };
9603
9604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) SWIG_fail;
9605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9606 if (!SWIG_IsOK(res1)) {
9607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItemStr" "', expected argument " "1"" of type '" "wxListBox *""'");
9608 }
9609 arg1 = reinterpret_cast< wxListBox * >(argp1);
9610 {
9611 arg2 = wxString_in_helper(obj1);
9612 if (arg2 == NULL) SWIG_fail;
9613 temp2 = true;
9614 }
9615 {
9616 PyThreadState* __tstate = wxPyBeginAllowThreads();
9617 (arg1)->SetFirstItem((wxString const &)*arg2);
9618 wxPyEndAllowThreads(__tstate);
9619 if (PyErr_Occurred()) SWIG_fail;
9620 }
9621 resultobj = SWIG_Py_Void();
9622 {
9623 if (temp2)
9624 delete arg2;
9625 }
9626 return resultobj;
9627fail:
9628 {
9629 if (temp2)
9630 delete arg2;
9631 }
9632 return NULL;
9633}
9634
9635
9636SWIGINTERN PyObject *_wrap_ListBox_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9637 PyObject *resultobj = 0;
9638 wxListBox *arg1 = (wxListBox *) 0 ;
9639 int arg2 ;
9640 void *argp1 = 0 ;
9641 int res1 = 0 ;
9642 int val2 ;
9643 int ecode2 = 0 ;
9644 PyObject * obj0 = 0 ;
9645 PyObject * obj1 = 0 ;
9646 char * kwnames[] = {
9647 (char *) "self",(char *) "n", NULL
9648 };
9649
9650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9651 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9652 if (!SWIG_IsOK(res1)) {
9653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_EnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9654 }
9655 arg1 = reinterpret_cast< wxListBox * >(argp1);
9656 ecode2 = SWIG_AsVal_int(obj1, &val2);
9657 if (!SWIG_IsOK(ecode2)) {
9658 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_EnsureVisible" "', expected argument " "2"" of type '" "int""'");
9659 }
9660 arg2 = static_cast< int >(val2);
9661 {
9662 PyThreadState* __tstate = wxPyBeginAllowThreads();
9663 (arg1)->EnsureVisible(arg2);
9664 wxPyEndAllowThreads(__tstate);
9665 if (PyErr_Occurred()) SWIG_fail;
9666 }
9667 resultobj = SWIG_Py_Void();
9668 return resultobj;
9669fail:
9670 return NULL;
9671}
9672
9673
9674SWIGINTERN PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9675 PyObject *resultobj = 0;
9676 wxListBox *arg1 = (wxListBox *) 0 ;
9677 wxString *arg2 = 0 ;
9678 void *argp1 = 0 ;
9679 int res1 = 0 ;
9680 bool temp2 = false ;
9681 PyObject * obj0 = 0 ;
9682 PyObject * obj1 = 0 ;
9683 char * kwnames[] = {
9684 (char *) "self",(char *) "s", NULL
9685 };
9686
9687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9689 if (!SWIG_IsOK(res1)) {
9690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_AppendAndEnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9691 }
9692 arg1 = reinterpret_cast< wxListBox * >(argp1);
9693 {
9694 arg2 = wxString_in_helper(obj1);
9695 if (arg2 == NULL) SWIG_fail;
9696 temp2 = true;
9697 }
9698 {
9699 PyThreadState* __tstate = wxPyBeginAllowThreads();
9700 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
9701 wxPyEndAllowThreads(__tstate);
9702 if (PyErr_Occurred()) SWIG_fail;
9703 }
9704 resultobj = SWIG_Py_Void();
9705 {
9706 if (temp2)
9707 delete arg2;
9708 }
9709 return resultobj;
9710fail:
9711 {
9712 if (temp2)
9713 delete arg2;
9714 }
9715 return NULL;
d14a1e28
RD
9716}
9717
9718
0085ce49
RD
9719SWIGINTERN PyObject *_wrap_ListBox_IsSorted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9720 PyObject *resultobj = 0;
9721 wxListBox *arg1 = (wxListBox *) 0 ;
9722 bool result;
9723 void *argp1 = 0 ;
9724 int res1 = 0 ;
9725 PyObject *swig_obj[1] ;
9726
9727 if (!args) SWIG_fail;
9728 swig_obj[0] = args;
9729 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9730 if (!SWIG_IsOK(res1)) {
9731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSorted" "', expected argument " "1"" of type '" "wxListBox const *""'");
9732 }
9733 arg1 = reinterpret_cast< wxListBox * >(argp1);
9734 {
9735 PyThreadState* __tstate = wxPyBeginAllowThreads();
9736 result = (bool)((wxListBox const *)arg1)->IsSorted();
9737 wxPyEndAllowThreads(__tstate);
9738 if (PyErr_Occurred()) SWIG_fail;
9739 }
9740 {
9741 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9742 }
9743 return resultobj;
9744fail:
9745 return NULL;
9746}
9747
9748
9749SWIGINTERN PyObject *_wrap_ListBox_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9750 PyObject *resultobj = 0;
9751 wxListBox *arg1 = (wxListBox *) 0 ;
9752 wxPoint *arg2 = 0 ;
9753 int result;
9754 void *argp1 = 0 ;
9755 int res1 = 0 ;
9756 wxPoint temp2 ;
9757 PyObject * obj0 = 0 ;
9758 PyObject * obj1 = 0 ;
9759 char * kwnames[] = {
9760 (char *) "self",(char *) "pt", NULL
9761 };
9762
9763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
9764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9765 if (!SWIG_IsOK(res1)) {
9766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_HitTest" "', expected argument " "1"" of type '" "wxListBox const *""'");
9767 }
9768 arg1 = reinterpret_cast< wxListBox * >(argp1);
9769 {
9770 arg2 = &temp2;
9771 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9772 }
9773 {
9774 PyThreadState* __tstate = wxPyBeginAllowThreads();
9775 result = (int)((wxListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
9776 wxPyEndAllowThreads(__tstate);
9777 if (PyErr_Occurred()) SWIG_fail;
9778 }
9779 resultobj = SWIG_From_int(static_cast< int >(result));
9780 return resultobj;
9781fail:
9782 return NULL;
9783}
9784
9785
9786SWIGINTERN PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9787 PyObject *resultobj = 0;
9788 wxListBox *arg1 = (wxListBox *) 0 ;
9789 int arg2 ;
9790 wxColour *arg3 = 0 ;
9791 void *argp1 = 0 ;
9792 int res1 = 0 ;
9793 int val2 ;
9794 int ecode2 = 0 ;
9795 wxColour temp3 ;
9796 PyObject * obj0 = 0 ;
9797 PyObject * obj1 = 0 ;
9798 PyObject * obj2 = 0 ;
9799 char * kwnames[] = {
9800 (char *) "self",(char *) "item",(char *) "c", NULL
9801 };
9802
9803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9805 if (!SWIG_IsOK(res1)) {
9806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9807 }
9808 arg1 = reinterpret_cast< wxListBox * >(argp1);
9809 ecode2 = SWIG_AsVal_int(obj1, &val2);
9810 if (!SWIG_IsOK(ecode2)) {
9811 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "2"" of type '" "int""'");
9812 }
9813 arg2 = static_cast< int >(val2);
9814 {
9815 arg3 = &temp3;
9816 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9817 }
9818 {
9819 PyThreadState* __tstate = wxPyBeginAllowThreads();
9820 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
9821 wxPyEndAllowThreads(__tstate);
9822 if (PyErr_Occurred()) SWIG_fail;
9823 }
9824 resultobj = SWIG_Py_Void();
9825 return resultobj;
9826fail:
9827 return NULL;
9828}
9829
9830
9831SWIGINTERN PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9832 PyObject *resultobj = 0;
9833 wxListBox *arg1 = (wxListBox *) 0 ;
9834 int arg2 ;
9835 wxColour *arg3 = 0 ;
9836 void *argp1 = 0 ;
9837 int res1 = 0 ;
9838 int val2 ;
9839 int ecode2 = 0 ;
9840 wxColour temp3 ;
9841 PyObject * obj0 = 0 ;
9842 PyObject * obj1 = 0 ;
9843 PyObject * obj2 = 0 ;
9844 char * kwnames[] = {
9845 (char *) "self",(char *) "item",(char *) "c", NULL
9846 };
9847
9848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9850 if (!SWIG_IsOK(res1)) {
9851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9852 }
9853 arg1 = reinterpret_cast< wxListBox * >(argp1);
9854 ecode2 = SWIG_AsVal_int(obj1, &val2);
9855 if (!SWIG_IsOK(ecode2)) {
9856 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "2"" of type '" "int""'");
9857 }
9858 arg2 = static_cast< int >(val2);
9859 {
9860 arg3 = &temp3;
9861 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9862 }
9863 {
9864 PyThreadState* __tstate = wxPyBeginAllowThreads();
9865 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
9866 wxPyEndAllowThreads(__tstate);
9867 if (PyErr_Occurred()) SWIG_fail;
9868 }
9869 resultobj = SWIG_Py_Void();
9870 return resultobj;
9871fail:
9872 return NULL;
9873}
9874
9875
9876SWIGINTERN PyObject *_wrap_ListBox_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9877 PyObject *resultobj = 0;
9878 wxListBox *arg1 = (wxListBox *) 0 ;
9879 int arg2 ;
9880 wxFont *arg3 = 0 ;
9881 void *argp1 = 0 ;
9882 int res1 = 0 ;
9883 int val2 ;
9884 int ecode2 = 0 ;
9885 void *argp3 = 0 ;
9886 int res3 = 0 ;
9887 PyObject * obj0 = 0 ;
9888 PyObject * obj1 = 0 ;
9889 PyObject * obj2 = 0 ;
9890 char * kwnames[] = {
9891 (char *) "self",(char *) "item",(char *) "f", NULL
9892 };
9893
9894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9896 if (!SWIG_IsOK(res1)) {
9897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemFont" "', expected argument " "1"" of type '" "wxListBox *""'");
9898 }
9899 arg1 = reinterpret_cast< wxListBox * >(argp1);
9900 ecode2 = SWIG_AsVal_int(obj1, &val2);
9901 if (!SWIG_IsOK(ecode2)) {
9902 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemFont" "', expected argument " "2"" of type '" "int""'");
9903 }
9904 arg2 = static_cast< int >(val2);
9905 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
9906 if (!SWIG_IsOK(res3)) {
9907 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9908 }
9909 if (!argp3) {
9910 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9911 }
9912 arg3 = reinterpret_cast< wxFont * >(argp3);
9913 {
9914 PyThreadState* __tstate = wxPyBeginAllowThreads();
9915 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
9916 wxPyEndAllowThreads(__tstate);
9917 if (PyErr_Occurred()) SWIG_fail;
9918 }
9919 resultobj = SWIG_Py_Void();
9920 return resultobj;
9921fail:
9922 return NULL;
9923}
9924
9925
9926SWIGINTERN PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9927 PyObject *resultobj = 0;
9928 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
9929 SwigValueWrapper<wxVisualAttributes > result;
9930 int val1 ;
9931 int ecode1 = 0 ;
9932 PyObject * obj0 = 0 ;
9933 char * kwnames[] = {
9934 (char *) "variant", NULL
9935 };
9936
9937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
9938 if (obj0) {
9939 ecode1 = SWIG_AsVal_int(obj0, &val1);
9940 if (!SWIG_IsOK(ecode1)) {
9941 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
9942 }
9943 arg1 = static_cast< wxWindowVariant >(val1);
9944 }
9945 {
9946 if (!wxPyCheckForApp()) SWIG_fail;
9947 PyThreadState* __tstate = wxPyBeginAllowThreads();
9948 result = wxListBox::GetClassDefaultAttributes(arg1);
9949 wxPyEndAllowThreads(__tstate);
9950 if (PyErr_Occurred()) SWIG_fail;
9951 }
9952 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
9953 return resultobj;
9954fail:
9955 return NULL;
9956}
9957
9958
9959SWIGINTERN PyObject *ListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9960 PyObject *obj;
9961 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9962 SWIG_TypeNewClientData(SWIGTYPE_p_wxListBox, SWIG_NewClientData(obj));
9963 return SWIG_Py_Void();
9964}
9965
9966SWIGINTERN PyObject *ListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9967 return SWIG_Python_InitShadowInstance(args);
9968}
9969
9970SWIGINTERN PyObject *_wrap_new_CheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9971 PyObject *resultobj = 0;
9972 wxWindow *arg1 = (wxWindow *) 0 ;
9973 int arg2 = (int) -1 ;
9974 wxPoint const &arg3_defvalue = wxDefaultPosition ;
9975 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
9976 wxSize const &arg4_defvalue = wxDefaultSize ;
9977 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
9978 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
9979 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
9980 long arg6 = (long) 0 ;
9981 wxValidator const &arg7_defvalue = wxDefaultValidator ;
9982 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
9983 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
9984 wxString *arg8 = (wxString *) &arg8_defvalue ;
9985 wxCheckListBox *result = 0 ;
9986 void *argp1 = 0 ;
9987 int res1 = 0 ;
9988 int val2 ;
9989 int ecode2 = 0 ;
9990 wxPoint temp3 ;
9991 wxSize temp4 ;
9992 bool temp5 = false ;
9993 long val6 ;
9994 int ecode6 = 0 ;
9995 void *argp7 = 0 ;
9996 int res7 = 0 ;
9997 bool temp8 = false ;
9998 PyObject * obj0 = 0 ;
9999 PyObject * obj1 = 0 ;
10000 PyObject * obj2 = 0 ;
10001 PyObject * obj3 = 0 ;
10002 PyObject * obj4 = 0 ;
10003 PyObject * obj5 = 0 ;
10004 PyObject * obj6 = 0 ;
10005 PyObject * obj7 = 0 ;
10006 char * kwnames[] = {
10007 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10008 };
10009
10010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
10011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
10012 if (!SWIG_IsOK(res1)) {
10013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
10014 }
10015 arg1 = reinterpret_cast< wxWindow * >(argp1);
10016 if (obj1) {
10017 ecode2 = SWIG_AsVal_int(obj1, &val2);
10018 if (!SWIG_IsOK(ecode2)) {
10019 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckListBox" "', expected argument " "2"" of type '" "int""'");
10020 }
10021 arg2 = static_cast< int >(val2);
10022 }
10023 if (obj2) {
d14a1e28 10024 {
0085ce49
RD
10025 arg3 = &temp3;
10026 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 10027 }
0085ce49
RD
10028 }
10029 if (obj3) {
d14a1e28 10030 {
0085ce49
RD
10031 arg4 = &temp4;
10032 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 10033 }
0085ce49
RD
10034 }
10035 if (obj4) {
d14a1e28 10036 {
0085ce49
RD
10037 if (! PySequence_Check(obj4)) {
10038 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10039 SWIG_fail;
10040 }
10041 arg5 = new wxArrayString;
10042 temp5 = true;
10043 int i, len=PySequence_Length(obj4);
10044 for (i=0; i<len; i++) {
10045 PyObject* item = PySequence_GetItem(obj4, i);
10046 wxString* s = wxString_in_helper(item);
10047 if (PyErr_Occurred()) SWIG_fail;
10048 arg5->Add(*s);
10049 delete s;
10050 Py_DECREF(item);
10051 }
d14a1e28 10052 }
0085ce49
RD
10053 }
10054 if (obj5) {
10055 ecode6 = SWIG_AsVal_long(obj5, &val6);
10056 if (!SWIG_IsOK(ecode6)) {
10057 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckListBox" "', expected argument " "6"" of type '" "long""'");
10058 }
10059 arg6 = static_cast< long >(val6);
10060 }
10061 if (obj6) {
10062 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
10063 if (!SWIG_IsOK(res7)) {
10064 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4f89f6a3 10065 }
0085ce49
RD
10066 if (!argp7) {
10067 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 10068 }
0085ce49
RD
10069 arg7 = reinterpret_cast< wxValidator * >(argp7);
10070 }
10071 if (obj7) {
093d3ff1 10072 {
0085ce49
RD
10073 arg8 = wxString_in_helper(obj7);
10074 if (arg8 == NULL) SWIG_fail;
10075 temp8 = true;
093d3ff1 10076 }
0085ce49
RD
10077 }
10078 {
10079 if (!wxPyCheckForApp()) SWIG_fail;
10080 PyThreadState* __tstate = wxPyBeginAllowThreads();
10081 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10082 wxPyEndAllowThreads(__tstate);
10083 if (PyErr_Occurred()) SWIG_fail;
10084 }
10085 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_NEW | 0 );
10086 {
10087 if (temp5) delete arg5;
10088 }
10089 {
10090 if (temp8)
10091 delete arg8;
10092 }
10093 return resultobj;
10094fail:
10095 {
10096 if (temp5) delete arg5;
10097 }
10098 {
10099 if (temp8)
10100 delete arg8;
10101 }
10102 return NULL;
d14a1e28
RD
10103}
10104
10105
0085ce49
RD
10106SWIGINTERN PyObject *_wrap_new_PreCheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10107 PyObject *resultobj = 0;
10108 wxCheckListBox *result = 0 ;
10109
10110 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckListBox",0,0,0)) SWIG_fail;
10111 {
10112 if (!wxPyCheckForApp()) SWIG_fail;
10113 PyThreadState* __tstate = wxPyBeginAllowThreads();
10114 result = (wxCheckListBox *)new wxCheckListBox();
10115 wxPyEndAllowThreads(__tstate);
10116 if (PyErr_Occurred()) SWIG_fail;
10117 }
10118 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_OWN | 0 );
10119 return resultobj;
10120fail:
10121 return NULL;
10122}
10123
10124
10125SWIGINTERN PyObject *_wrap_CheckListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10126 PyObject *resultobj = 0;
10127 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10128 wxWindow *arg2 = (wxWindow *) 0 ;
10129 int arg3 = (int) -1 ;
10130 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10131 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10132 wxSize const &arg5_defvalue = wxDefaultSize ;
10133 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10134 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
10135 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
10136 long arg7 = (long) 0 ;
10137 wxValidator const &arg8_defvalue = wxDefaultValidator ;
10138 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
10139 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
10140 wxString *arg9 = (wxString *) &arg9_defvalue ;
10141 bool result;
10142 void *argp1 = 0 ;
10143 int res1 = 0 ;
10144 void *argp2 = 0 ;
10145 int res2 = 0 ;
10146 int val3 ;
10147 int ecode3 = 0 ;
10148 wxPoint temp4 ;
10149 wxSize temp5 ;
10150 bool temp6 = false ;
10151 long val7 ;
10152 int ecode7 = 0 ;
10153 void *argp8 = 0 ;
10154 int res8 = 0 ;
10155 bool temp9 = false ;
10156 PyObject * obj0 = 0 ;
10157 PyObject * obj1 = 0 ;
10158 PyObject * obj2 = 0 ;
10159 PyObject * obj3 = 0 ;
10160 PyObject * obj4 = 0 ;
10161 PyObject * obj5 = 0 ;
10162 PyObject * obj6 = 0 ;
10163 PyObject * obj7 = 0 ;
10164 PyObject * obj8 = 0 ;
10165 char * kwnames[] = {
10166 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10167 };
10168
10169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
10170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10171 if (!SWIG_IsOK(res1)) {
10172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Create" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10173 }
10174 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10175 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
10176 if (!SWIG_IsOK(res2)) {
10177 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
10178 }
10179 arg2 = reinterpret_cast< wxWindow * >(argp2);
10180 if (obj2) {
10181 ecode3 = SWIG_AsVal_int(obj2, &val3);
10182 if (!SWIG_IsOK(ecode3)) {
10183 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Create" "', expected argument " "3"" of type '" "int""'");
10184 }
10185 arg3 = static_cast< int >(val3);
10186 }
10187 if (obj3) {
22bfe96c 10188 {
0085ce49
RD
10189 arg4 = &temp4;
10190 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 10191 }
0085ce49
RD
10192 }
10193 if (obj4) {
d14a1e28 10194 {
0085ce49
RD
10195 arg5 = &temp5;
10196 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 10197 }
0085ce49
RD
10198 }
10199 if (obj5) {
d14a1e28 10200 {
0085ce49
RD
10201 if (! PySequence_Check(obj5)) {
10202 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10203 SWIG_fail;
10204 }
10205 arg6 = new wxArrayString;
10206 temp6 = true;
10207 int i, len=PySequence_Length(obj5);
10208 for (i=0; i<len; i++) {
10209 PyObject* item = PySequence_GetItem(obj5, i);
10210 wxString* s = wxString_in_helper(item);
10211 if (PyErr_Occurred()) SWIG_fail;
10212 arg6->Add(*s);
10213 delete s;
10214 Py_DECREF(item);
10215 }
d14a1e28 10216 }
0085ce49
RD
10217 }
10218 if (obj6) {
10219 ecode7 = SWIG_AsVal_long(obj6, &val7);
10220 if (!SWIG_IsOK(ecode7)) {
10221 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckListBox_Create" "', expected argument " "7"" of type '" "long""'");
10222 }
10223 arg7 = static_cast< long >(val7);
10224 }
10225 if (obj7) {
10226 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
10227 if (!SWIG_IsOK(res8)) {
10228 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 10229 }
0085ce49
RD
10230 if (!argp8) {
10231 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 10232 }
0085ce49
RD
10233 arg8 = reinterpret_cast< wxValidator * >(argp8);
10234 }
10235 if (obj8) {
d14a1e28 10236 {
0085ce49
RD
10237 arg9 = wxString_in_helper(obj8);
10238 if (arg9 == NULL) SWIG_fail;
10239 temp9 = true;
d14a1e28 10240 }
0085ce49
RD
10241 }
10242 {
10243 PyThreadState* __tstate = wxPyBeginAllowThreads();
10244 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
10245 wxPyEndAllowThreads(__tstate);
10246 if (PyErr_Occurred()) SWIG_fail;
10247 }
10248 {
10249 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10250 }
10251 {
10252 if (temp6) delete arg6;
10253 }
10254 {
10255 if (temp9)
10256 delete arg9;
10257 }
10258 return resultobj;
10259fail:
10260 {
10261 if (temp6) delete arg6;
10262 }
10263 {
10264 if (temp9)
10265 delete arg9;
10266 }
10267 return NULL;
10268}
10269
10270
10271SWIGINTERN PyObject *_wrap_CheckListBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10272 PyObject *resultobj = 0;
10273 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
50f151d7 10274 unsigned int arg2 ;
0085ce49
RD
10275 bool result;
10276 void *argp1 = 0 ;
10277 int res1 = 0 ;
50f151d7 10278 unsigned int val2 ;
0085ce49
RD
10279 int ecode2 = 0 ;
10280 PyObject * obj0 = 0 ;
10281 PyObject * obj1 = 0 ;
10282 char * kwnames[] = {
10283 (char *) "self",(char *) "index", NULL
10284 };
10285
10286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail;
10287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10288 if (!SWIG_IsOK(res1)) {
10289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10290 }
10291 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
50f151d7 10292 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
0085ce49 10293 if (!SWIG_IsOK(ecode2)) {
50f151d7 10294 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_IsChecked" "', expected argument " "2"" of type '" "unsigned int""'");
0085ce49 10295 }
50f151d7 10296 arg2 = static_cast< unsigned int >(val2);
0085ce49
RD
10297 {
10298 PyThreadState* __tstate = wxPyBeginAllowThreads();
10299 result = (bool)(arg1)->IsChecked(arg2);
10300 wxPyEndAllowThreads(__tstate);
10301 if (PyErr_Occurred()) SWIG_fail;
10302 }
10303 {
10304 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10305 }
10306 return resultobj;
10307fail:
10308 return NULL;
10309}
10310
10311
10312SWIGINTERN PyObject *_wrap_CheckListBox_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10313 PyObject *resultobj = 0;
10314 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
50f151d7 10315 unsigned int arg2 ;
0085ce49
RD
10316 int arg3 = (int) true ;
10317 void *argp1 = 0 ;
10318 int res1 = 0 ;
50f151d7 10319 unsigned int val2 ;
0085ce49
RD
10320 int ecode2 = 0 ;
10321 int val3 ;
10322 int ecode3 = 0 ;
10323 PyObject * obj0 = 0 ;
10324 PyObject * obj1 = 0 ;
10325 PyObject * obj2 = 0 ;
10326 char * kwnames[] = {
10327 (char *) "self",(char *) "index",(char *) "check", NULL
10328 };
10329
10330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10332 if (!SWIG_IsOK(res1)) {
10333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Check" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10334 }
10335 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
50f151d7 10336 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
0085ce49 10337 if (!SWIG_IsOK(ecode2)) {
50f151d7 10338 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_Check" "', expected argument " "2"" of type '" "unsigned int""'");
0085ce49 10339 }
50f151d7 10340 arg2 = static_cast< unsigned int >(val2);
0085ce49
RD
10341 if (obj2) {
10342 ecode3 = SWIG_AsVal_int(obj2, &val3);
10343 if (!SWIG_IsOK(ecode3)) {
10344 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Check" "', expected argument " "3"" of type '" "int""'");
10345 }
10346 arg3 = static_cast< int >(val3);
10347 }
10348 {
10349 PyThreadState* __tstate = wxPyBeginAllowThreads();
10350 (arg1)->Check(arg2,arg3);
10351 wxPyEndAllowThreads(__tstate);
10352 if (PyErr_Occurred()) SWIG_fail;
10353 }
10354 resultobj = SWIG_Py_Void();
10355 return resultobj;
10356fail:
10357 return NULL;
d14a1e28
RD
10358}
10359
10360
0085ce49
RD
10361SWIGINTERN PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10362 PyObject *resultobj = 0;
10363 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10364 int result;
10365 void *argp1 = 0 ;
10366 int res1 = 0 ;
10367 PyObject *swig_obj[1] ;
10368
10369 if (!args) SWIG_fail;
10370 swig_obj[0] = args;
10371 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10372 if (!SWIG_IsOK(res1)) {
10373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_GetItemHeight" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10374 }
10375 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10376 {
10377 PyThreadState* __tstate = wxPyBeginAllowThreads();
10378 result = (int)(arg1)->GetItemHeight();
10379 wxPyEndAllowThreads(__tstate);
10380 if (PyErr_Occurred()) SWIG_fail;
10381 }
10382 resultobj = SWIG_From_int(static_cast< int >(result));
10383 return resultobj;
10384fail:
10385 return NULL;
d14a1e28
RD
10386}
10387
10388
0085ce49
RD
10389SWIGINTERN PyObject *CheckListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10390 PyObject *obj;
10391 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10392 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckListBox, SWIG_NewClientData(obj));
10393 return SWIG_Py_Void();
d14a1e28
RD
10394}
10395
0085ce49
RD
10396SWIGINTERN PyObject *CheckListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10397 return SWIG_Python_InitShadowInstance(args);
943e8dfd
RD
10398}
10399
0085ce49
RD
10400SWIGINTERN int TextCtrlNameStr_set(PyObject *) {
10401 SWIG_Error(SWIG_AttributeError,"Variable TextCtrlNameStr is read-only.");
10402 return 1;
22bfe96c
RD
10403}
10404
10405
0085ce49
RD
10406SWIGINTERN PyObject *TextCtrlNameStr_get(void) {
10407 PyObject *pyobj = 0;
10408
10409 {
10410#if wxUSE_UNICODE
10411 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10412#else
10413 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10414#endif
10415 }
10416 return pyobj;
10417}
10418
10419
10420SWIGINTERN PyObject *_wrap_new_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10421 PyObject *resultobj = 0;
10422 wxColour const &arg1_defvalue = wxNullColour ;
10423 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
10424 wxColour const &arg2_defvalue = wxNullColour ;
10425 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
10426 wxFont const &arg3_defvalue = wxNullFont ;
10427 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
10428 wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ;
10429 wxTextAttr *result = 0 ;
10430 wxColour temp1 ;
10431 wxColour temp2 ;
10432 void *argp3 = 0 ;
10433 int res3 = 0 ;
10434 int val4 ;
10435 int ecode4 = 0 ;
10436 PyObject * obj0 = 0 ;
10437 PyObject * obj1 = 0 ;
10438 PyObject * obj2 = 0 ;
10439 PyObject * obj3 = 0 ;
10440 char * kwnames[] = {
10441 (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL
10442 };
10443
10444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10445 if (obj0) {
d14a1e28 10446 {
0085ce49
RD
10447 arg1 = &temp1;
10448 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
d14a1e28 10449 }
0085ce49
RD
10450 }
10451 if (obj1) {
d14a1e28 10452 {
0085ce49
RD
10453 arg2 = &temp2;
10454 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d14a1e28 10455 }
0085ce49
RD
10456 }
10457 if (obj2) {
10458 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
10459 if (!SWIG_IsOK(res3)) {
10460 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
d14a1e28 10461 }
0085ce49
RD
10462 if (!argp3) {
10463 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10464 }
10465 arg3 = reinterpret_cast< wxFont * >(argp3);
10466 }
10467 if (obj3) {
10468 ecode4 = SWIG_AsVal_int(obj3, &val4);
10469 if (!SWIG_IsOK(ecode4)) {
10470 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextAttr" "', expected argument " "4"" of type '" "wxTextAttrAlignment""'");
10471 }
10472 arg4 = static_cast< wxTextAttrAlignment >(val4);
10473 }
10474 {
10475 PyThreadState* __tstate = wxPyBeginAllowThreads();
10476 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,arg4);
10477 wxPyEndAllowThreads(__tstate);
10478 if (PyErr_Occurred()) SWIG_fail;
10479 }
10480 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_NEW | 0 );
10481 return resultobj;
10482fail:
10483 return NULL;
d14a1e28
RD
10484}
10485
10486
0085ce49
RD
10487SWIGINTERN PyObject *_wrap_delete_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10488 PyObject *resultobj = 0;
10489 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10490 void *argp1 = 0 ;
10491 int res1 = 0 ;
10492 PyObject *swig_obj[1] ;
10493
10494 if (!args) SWIG_fail;
10495 swig_obj[0] = args;
10496 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, SWIG_POINTER_DISOWN | 0 );
10497 if (!SWIG_IsOK(res1)) {
10498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TextAttr" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10499 }
10500 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10501 {
10502 PyThreadState* __tstate = wxPyBeginAllowThreads();
10503 delete arg1;
d14a1e28 10504
0085ce49
RD
10505 wxPyEndAllowThreads(__tstate);
10506 if (PyErr_Occurred()) SWIG_fail;
10507 }
10508 resultobj = SWIG_Py_Void();
10509 return resultobj;
10510fail:
10511 return NULL;
d14a1e28
RD
10512}
10513
10514
0085ce49
RD
10515SWIGINTERN PyObject *_wrap_TextAttr_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10516 PyObject *resultobj = 0;
10517 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10518 void *argp1 = 0 ;
10519 int res1 = 0 ;
10520 PyObject *swig_obj[1] ;
10521
10522 if (!args) SWIG_fail;
10523 swig_obj[0] = args;
10524 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10525 if (!SWIG_IsOK(res1)) {
10526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Init" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10527 }
10528 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10529 {
10530 PyThreadState* __tstate = wxPyBeginAllowThreads();
10531 (arg1)->Init();
10532 wxPyEndAllowThreads(__tstate);
10533 if (PyErr_Occurred()) SWIG_fail;
10534 }
10535 resultobj = SWIG_Py_Void();
10536 return resultobj;
10537fail:
10538 return NULL;
10539}
10540
10541
10542SWIGINTERN PyObject *_wrap_TextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10543 PyObject *resultobj = 0;
10544 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10545 wxColour *arg2 = 0 ;
10546 void *argp1 = 0 ;
10547 int res1 = 0 ;
10548 wxColour temp2 ;
10549 PyObject * obj0 = 0 ;
10550 PyObject * obj1 = 0 ;
10551 char * kwnames[] = {
10552 (char *) "self",(char *) "colText", NULL
10553 };
10554
10555 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
10556 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10557 if (!SWIG_IsOK(res1)) {
10558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10559 }
10560 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10561 {
10562 arg2 = &temp2;
10563 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10564 }
10565 {
10566 PyThreadState* __tstate = wxPyBeginAllowThreads();
10567 (arg1)->SetTextColour((wxColour const &)*arg2);
10568 wxPyEndAllowThreads(__tstate);
10569 if (PyErr_Occurred()) SWIG_fail;
10570 }
10571 resultobj = SWIG_Py_Void();
10572 return resultobj;
10573fail:
10574 return NULL;
10575}
10576
10577
10578SWIGINTERN PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10579 PyObject *resultobj = 0;
10580 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10581 wxColour *arg2 = 0 ;
10582 void *argp1 = 0 ;
10583 int res1 = 0 ;
10584 wxColour temp2 ;
10585 PyObject * obj0 = 0 ;
10586 PyObject * obj1 = 0 ;
10587 char * kwnames[] = {
10588 (char *) "self",(char *) "colBack", NULL
10589 };
10590
10591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
10592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10593 if (!SWIG_IsOK(res1)) {
10594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10595 }
10596 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10597 {
10598 arg2 = &temp2;
10599 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10600 }
10601 {
10602 PyThreadState* __tstate = wxPyBeginAllowThreads();
10603 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
10604 wxPyEndAllowThreads(__tstate);
10605 if (PyErr_Occurred()) SWIG_fail;
10606 }
10607 resultobj = SWIG_Py_Void();
10608 return resultobj;
10609fail:
10610 return NULL;
10611}
10612
10613
10614SWIGINTERN PyObject *_wrap_TextAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10615 PyObject *resultobj = 0;
10616 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10617 wxFont *arg2 = 0 ;
10618 long arg3 = (long) wxTEXT_ATTR_FONT ;
10619 void *argp1 = 0 ;
10620 int res1 = 0 ;
10621 void *argp2 = 0 ;
10622 int res2 = 0 ;
10623 long val3 ;
10624 int ecode3 = 0 ;
10625 PyObject * obj0 = 0 ;
10626 PyObject * obj1 = 0 ;
10627 PyObject * obj2 = 0 ;
10628 char * kwnames[] = {
10629 (char *) "self",(char *) "font",(char *) "flags", NULL
10630 };
10631
10632 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10633 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10634 if (!SWIG_IsOK(res1)) {
10635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFont" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10636 }
10637 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10638 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
10639 if (!SWIG_IsOK(res2)) {
10640 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10641 }
10642 if (!argp2) {
10643 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10644 }
10645 arg2 = reinterpret_cast< wxFont * >(argp2);
10646 if (obj2) {
10647 ecode3 = SWIG_AsVal_long(obj2, &val3);
10648 if (!SWIG_IsOK(ecode3)) {
10649 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetFont" "', expected argument " "3"" of type '" "long""'");
10650 }
10651 arg3 = static_cast< long >(val3);
10652 }
10653 {
10654 PyThreadState* __tstate = wxPyBeginAllowThreads();
10655 (arg1)->SetFont((wxFont const &)*arg2,arg3);
10656 wxPyEndAllowThreads(__tstate);
10657 if (PyErr_Occurred()) SWIG_fail;
10658 }
10659 resultobj = SWIG_Py_Void();
10660 return resultobj;
10661fail:
10662 return NULL;
10663}
10664
10665
10666SWIGINTERN PyObject *_wrap_TextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10667 PyObject *resultobj = 0;
10668 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10669 wxTextAttrAlignment arg2 ;
10670 void *argp1 = 0 ;
10671 int res1 = 0 ;
10672 int val2 ;
10673 int ecode2 = 0 ;
10674 PyObject * obj0 = 0 ;
10675 PyObject * obj1 = 0 ;
10676 char * kwnames[] = {
10677 (char *) "self",(char *) "alignment", NULL
10678 };
10679
10680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail;
10681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10682 if (!SWIG_IsOK(res1)) {
10683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10684 }
10685 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10686 ecode2 = SWIG_AsVal_int(obj1, &val2);
10687 if (!SWIG_IsOK(ecode2)) {
10688 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
10689 }
10690 arg2 = static_cast< wxTextAttrAlignment >(val2);
10691 {
10692 PyThreadState* __tstate = wxPyBeginAllowThreads();
10693 (arg1)->SetAlignment(arg2);
10694 wxPyEndAllowThreads(__tstate);
10695 if (PyErr_Occurred()) SWIG_fail;
10696 }
10697 resultobj = SWIG_Py_Void();
10698 return resultobj;
10699fail:
10700 return NULL;
10701}
10702
10703
10704SWIGINTERN PyObject *_wrap_TextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10705 PyObject *resultobj = 0;
10706 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10707 wxArrayInt *arg2 = 0 ;
10708 void *argp1 = 0 ;
10709 int res1 = 0 ;
10710 bool temp2 = false ;
10711 PyObject * obj0 = 0 ;
10712 PyObject * obj1 = 0 ;
10713 char * kwnames[] = {
10714 (char *) "self",(char *) "tabs", NULL
10715 };
10716
10717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail;
10718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10719 if (!SWIG_IsOK(res1)) {
10720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTabs" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10721 }
10722 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10723 {
10724 if (! PySequence_Check(obj1)) {
10725 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10726 SWIG_fail;
10727 }
10728 arg2 = new wxArrayInt;
10729 temp2 = true;
10730 int i, len=PySequence_Length(obj1);
10731 for (i=0; i<len; i++) {
10732 PyObject* item = PySequence_GetItem(obj1, i);
10733 PyObject* number = PyNumber_Int(item);
10734 arg2->Add(PyInt_AS_LONG(number));
10735 Py_DECREF(item);
10736 Py_DECREF(number);
d14a1e28 10737 }
0085ce49
RD
10738 }
10739 {
10740 PyThreadState* __tstate = wxPyBeginAllowThreads();
10741 (arg1)->SetTabs((wxArrayInt const &)*arg2);
10742 wxPyEndAllowThreads(__tstate);
10743 if (PyErr_Occurred()) SWIG_fail;
10744 }
10745 resultobj = SWIG_Py_Void();
10746 {
10747 if (temp2) delete arg2;
10748 }
10749 return resultobj;
10750fail:
10751 {
10752 if (temp2) delete arg2;
10753 }
10754 return NULL;
10755}
10756
10757
10758SWIGINTERN PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10759 PyObject *resultobj = 0;
10760 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10761 int arg2 ;
10762 int arg3 = (int) 0 ;
10763 void *argp1 = 0 ;
10764 int res1 = 0 ;
10765 int val2 ;
10766 int ecode2 = 0 ;
10767 int val3 ;
10768 int ecode3 = 0 ;
10769 PyObject * obj0 = 0 ;
10770 PyObject * obj1 = 0 ;
10771 PyObject * obj2 = 0 ;
10772 char * kwnames[] = {
10773 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
10774 };
10775
10776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10778 if (!SWIG_IsOK(res1)) {
10779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10780 }
10781 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10782 ecode2 = SWIG_AsVal_int(obj1, &val2);
10783 if (!SWIG_IsOK(ecode2)) {
10784 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'");
10785 }
10786 arg2 = static_cast< int >(val2);
10787 if (obj2) {
10788 ecode3 = SWIG_AsVal_int(obj2, &val3);
10789 if (!SWIG_IsOK(ecode3)) {
10790 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'");
10791 }
10792 arg3 = static_cast< int >(val3);
10793 }
10794 {
10795 PyThreadState* __tstate = wxPyBeginAllowThreads();
10796 (arg1)->SetLeftIndent(arg2,arg3);
10797 wxPyEndAllowThreads(__tstate);
10798 if (PyErr_Occurred()) SWIG_fail;
10799 }
10800 resultobj = SWIG_Py_Void();
10801 return resultobj;
10802fail:
10803 return NULL;
10804}
10805
10806
10807SWIGINTERN PyObject *_wrap_TextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10808 PyObject *resultobj = 0;
10809 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10810 int arg2 ;
10811 void *argp1 = 0 ;
10812 int res1 = 0 ;
10813 int val2 ;
10814 int ecode2 = 0 ;
10815 PyObject * obj0 = 0 ;
10816 PyObject * obj1 = 0 ;
10817 char * kwnames[] = {
10818 (char *) "self",(char *) "indent", NULL
10819 };
10820
10821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail;
10822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10823 if (!SWIG_IsOK(res1)) {
10824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10825 }
10826 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10827 ecode2 = SWIG_AsVal_int(obj1, &val2);
10828 if (!SWIG_IsOK(ecode2)) {
10829 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'");
10830 }
10831 arg2 = static_cast< int >(val2);
10832 {
10833 PyThreadState* __tstate = wxPyBeginAllowThreads();
10834 (arg1)->SetRightIndent(arg2);
10835 wxPyEndAllowThreads(__tstate);
10836 if (PyErr_Occurred()) SWIG_fail;
10837 }
10838 resultobj = SWIG_Py_Void();
10839 return resultobj;
10840fail:
10841 return NULL;
10842}
10843
10844
10845SWIGINTERN PyObject *_wrap_TextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10846 PyObject *resultobj = 0;
10847 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10848 long arg2 ;
10849 void *argp1 = 0 ;
10850 int res1 = 0 ;
10851 long val2 ;
10852 int ecode2 = 0 ;
10853 PyObject * obj0 = 0 ;
10854 PyObject * obj1 = 0 ;
10855 char * kwnames[] = {
10856 (char *) "self",(char *) "flags", NULL
10857 };
10858
10859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
10860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10861 if (!SWIG_IsOK(res1)) {
10862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFlags" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10863 }
10864 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10865 ecode2 = SWIG_AsVal_long(obj1, &val2);
10866 if (!SWIG_IsOK(ecode2)) {
10867 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'");
10868 }
10869 arg2 = static_cast< long >(val2);
10870 {
10871 PyThreadState* __tstate = wxPyBeginAllowThreads();
10872 (arg1)->SetFlags(arg2);
10873 wxPyEndAllowThreads(__tstate);
10874 if (PyErr_Occurred()) SWIG_fail;
10875 }
10876 resultobj = SWIG_Py_Void();
10877 return resultobj;
10878fail:
10879 return NULL;
d14a1e28
RD
10880}
10881
10882
0085ce49
RD
10883SWIGINTERN PyObject *_wrap_TextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10884 PyObject *resultobj = 0;
10885 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10886 bool result;
10887 void *argp1 = 0 ;
10888 int res1 = 0 ;
10889 PyObject *swig_obj[1] ;
10890
10891 if (!args) SWIG_fail;
10892 swig_obj[0] = args;
10893 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10894 if (!SWIG_IsOK(res1)) {
10895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10896 }
10897 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10898 {
10899 PyThreadState* __tstate = wxPyBeginAllowThreads();
10900 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
10901 wxPyEndAllowThreads(__tstate);
10902 if (PyErr_Occurred()) SWIG_fail;
10903 }
10904 {
10905 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10906 }
10907 return resultobj;
10908fail:
10909 return NULL;
d14a1e28
RD
10910}
10911
10912
0085ce49
RD
10913SWIGINTERN PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10914 PyObject *resultobj = 0;
10915 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10916 bool result;
10917 void *argp1 = 0 ;
10918 int res1 = 0 ;
10919 PyObject *swig_obj[1] ;
10920
10921 if (!args) SWIG_fail;
10922 swig_obj[0] = args;
10923 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10924 if (!SWIG_IsOK(res1)) {
10925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10926 }
10927 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10928 {
10929 PyThreadState* __tstate = wxPyBeginAllowThreads();
10930 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
10931 wxPyEndAllowThreads(__tstate);
10932 if (PyErr_Occurred()) SWIG_fail;
10933 }
10934 {
10935 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10936 }
10937 return resultobj;
10938fail:
10939 return NULL;
d14a1e28
RD
10940}
10941
10942
0085ce49
RD
10943SWIGINTERN PyObject *_wrap_TextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10944 PyObject *resultobj = 0;
10945 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10946 bool result;
10947 void *argp1 = 0 ;
10948 int res1 = 0 ;
10949 PyObject *swig_obj[1] ;
10950
10951 if (!args) SWIG_fail;
10952 swig_obj[0] = args;
10953 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10954 if (!SWIG_IsOK(res1)) {
10955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10956 }
10957 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10958 {
10959 PyThreadState* __tstate = wxPyBeginAllowThreads();
10960 result = (bool)((wxTextAttr const *)arg1)->HasFont();
10961 wxPyEndAllowThreads(__tstate);
10962 if (PyErr_Occurred()) SWIG_fail;
10963 }
10964 {
10965 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10966 }
10967 return resultobj;
10968fail:
10969 return NULL;
d14a1e28
RD
10970}
10971
10972
0085ce49
RD
10973SWIGINTERN PyObject *_wrap_TextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10974 PyObject *resultobj = 0;
10975 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10976 bool result;
10977 void *argp1 = 0 ;
10978 int res1 = 0 ;
10979 PyObject *swig_obj[1] ;
10980
10981 if (!args) SWIG_fail;
10982 swig_obj[0] = args;
10983 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10984 if (!SWIG_IsOK(res1)) {
10985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10986 }
10987 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10988 {
10989 PyThreadState* __tstate = wxPyBeginAllowThreads();
10990 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
10991 wxPyEndAllowThreads(__tstate);
10992 if (PyErr_Occurred()) SWIG_fail;
10993 }
10994 {
10995 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10996 }
10997 return resultobj;
10998fail:
10999 return NULL;
22bfe96c
RD
11000}
11001
11002
0085ce49
RD
11003SWIGINTERN PyObject *_wrap_TextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11004 PyObject *resultobj = 0;
11005 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11006 bool result;
11007 void *argp1 = 0 ;
11008 int res1 = 0 ;
11009 PyObject *swig_obj[1] ;
11010
11011 if (!args) SWIG_fail;
11012 swig_obj[0] = args;
11013 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11014 if (!SWIG_IsOK(res1)) {
11015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11016 }
11017 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11018 {
11019 PyThreadState* __tstate = wxPyBeginAllowThreads();
11020 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
11021 wxPyEndAllowThreads(__tstate);
11022 if (PyErr_Occurred()) SWIG_fail;
11023 }
11024 {
11025 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11026 }
11027 return resultobj;
11028fail:
11029 return NULL;
b2dc1044
RD
11030}
11031
11032
0085ce49
RD
11033SWIGINTERN PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11034 PyObject *resultobj = 0;
11035 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11036 bool result;
11037 void *argp1 = 0 ;
11038 int res1 = 0 ;
11039 PyObject *swig_obj[1] ;
11040
11041 if (!args) SWIG_fail;
11042 swig_obj[0] = args;
11043 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11044 if (!SWIG_IsOK(res1)) {
11045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11046 }
11047 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11048 {
11049 PyThreadState* __tstate = wxPyBeginAllowThreads();
11050 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
11051 wxPyEndAllowThreads(__tstate);
11052 if (PyErr_Occurred()) SWIG_fail;
11053 }
11054 {
11055 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11056 }
11057 return resultobj;
11058fail:
11059 return NULL;
d14a1e28
RD
11060}
11061
11062
0085ce49
RD
11063SWIGINTERN PyObject *_wrap_TextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11064 PyObject *resultobj = 0;
11065 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11066 bool result;
11067 void *argp1 = 0 ;
11068 int res1 = 0 ;
11069 PyObject *swig_obj[1] ;
11070
11071 if (!args) SWIG_fail;
11072 swig_obj[0] = args;
11073 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11074 if (!SWIG_IsOK(res1)) {
11075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11076 }
11077 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11078 {
11079 PyThreadState* __tstate = wxPyBeginAllowThreads();
11080 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
11081 wxPyEndAllowThreads(__tstate);
11082 if (PyErr_Occurred()) SWIG_fail;
11083 }
11084 {
11085 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11086 }
11087 return resultobj;
11088fail:
11089 return NULL;
11090}
11091
11092
11093SWIGINTERN PyObject *_wrap_TextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11094 PyObject *resultobj = 0;
11095 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11096 long arg2 ;
11097 bool result;
11098 void *argp1 = 0 ;
11099 int res1 = 0 ;
11100 long val2 ;
11101 int ecode2 = 0 ;
11102 PyObject * obj0 = 0 ;
11103 PyObject * obj1 = 0 ;
11104 char * kwnames[] = {
11105 (char *) "self",(char *) "flag", NULL
11106 };
11107
11108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail;
11109 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11110 if (!SWIG_IsOK(res1)) {
11111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFlag" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11112 }
11113 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11114 ecode2 = SWIG_AsVal_long(obj1, &val2);
11115 if (!SWIG_IsOK(ecode2)) {
11116 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'");
11117 }
11118 arg2 = static_cast< long >(val2);
11119 {
11120 PyThreadState* __tstate = wxPyBeginAllowThreads();
11121 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
11122 wxPyEndAllowThreads(__tstate);
11123 if (PyErr_Occurred()) SWIG_fail;
11124 }
11125 {
11126 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11127 }
11128 return resultobj;
11129fail:
11130 return NULL;
d14a1e28
RD
11131}
11132
11133
0085ce49
RD
11134SWIGINTERN PyObject *_wrap_TextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11135 PyObject *resultobj = 0;
11136 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11137 wxColour *result = 0 ;
11138 void *argp1 = 0 ;
11139 int res1 = 0 ;
11140 PyObject *swig_obj[1] ;
11141
11142 if (!args) SWIG_fail;
11143 swig_obj[0] = args;
11144 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11145 if (!SWIG_IsOK(res1)) {
11146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11147 }
11148 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11149 {
11150 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 11151 {
0085ce49
RD
11152 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
11153 result = (wxColour *) &_result_ref;
d14a1e28 11154 }
0085ce49
RD
11155 wxPyEndAllowThreads(__tstate);
11156 if (PyErr_Occurred()) SWIG_fail;
11157 }
11158 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11159 return resultobj;
11160fail:
11161 return NULL;
d14a1e28
RD
11162}
11163
11164
0085ce49
RD
11165SWIGINTERN PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11166 PyObject *resultobj = 0;
11167 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11168 wxColour *result = 0 ;
11169 void *argp1 = 0 ;
11170 int res1 = 0 ;
11171 PyObject *swig_obj[1] ;
11172
11173 if (!args) SWIG_fail;
11174 swig_obj[0] = args;
11175 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11176 if (!SWIG_IsOK(res1)) {
11177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11178 }
11179 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11180 {
11181 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 11182 {
0085ce49
RD
11183 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
11184 result = (wxColour *) &_result_ref;
d14a1e28 11185 }
0085ce49
RD
11186 wxPyEndAllowThreads(__tstate);
11187 if (PyErr_Occurred()) SWIG_fail;
11188 }
11189 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11190 return resultobj;
11191fail:
11192 return NULL;
d14a1e28
RD
11193}
11194
11195
0085ce49
RD
11196SWIGINTERN PyObject *_wrap_TextAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11197 PyObject *resultobj = 0;
11198 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11199 wxFont *result = 0 ;
11200 void *argp1 = 0 ;
11201 int res1 = 0 ;
11202 PyObject *swig_obj[1] ;
11203
11204 if (!args) SWIG_fail;
11205 swig_obj[0] = args;
11206 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11207 if (!SWIG_IsOK(res1)) {
11208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11209 }
11210 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11211 {
11212 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 11213 {
0085ce49
RD
11214 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
11215 result = (wxFont *) &_result_ref;
d14a1e28 11216 }
0085ce49
RD
11217 wxPyEndAllowThreads(__tstate);
11218 if (PyErr_Occurred()) SWIG_fail;
11219 }
11220 {
11221 wxFont* resultptr = new wxFont(*result);
11222 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
11223 }
11224 return resultobj;
11225fail:
11226 return NULL;
d14a1e28
RD
11227}
11228
11229
0085ce49
RD
11230SWIGINTERN PyObject *_wrap_TextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11231 PyObject *resultobj = 0;
11232 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11233 wxTextAttrAlignment result;
11234 void *argp1 = 0 ;
11235 int res1 = 0 ;
11236 PyObject *swig_obj[1] ;
11237
11238 if (!args) SWIG_fail;
11239 swig_obj[0] = args;
11240 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11241 if (!SWIG_IsOK(res1)) {
11242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11243 }
11244 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11245 {
11246 PyThreadState* __tstate = wxPyBeginAllowThreads();
11247 result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment();
11248 wxPyEndAllowThreads(__tstate);
11249 if (PyErr_Occurred()) SWIG_fail;
11250 }
11251 resultobj = SWIG_From_int(static_cast< int >(result));
11252 return resultobj;
11253fail:
11254 return NULL;
d14a1e28
RD
11255}
11256
11257
0085ce49
RD
11258SWIGINTERN PyObject *_wrap_TextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11259 PyObject *resultobj = 0;
11260 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11261 wxArrayInt *result = 0 ;
11262 void *argp1 = 0 ;
11263 int res1 = 0 ;
11264 PyObject *swig_obj[1] ;
11265
11266 if (!args) SWIG_fail;
11267 swig_obj[0] = args;
11268 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11269 if (!SWIG_IsOK(res1)) {
11270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11271 }
11272 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11273 {
11274 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 11275 {
0085ce49
RD
11276 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
11277 result = (wxArrayInt *) &_result_ref;
d14a1e28 11278 }
0085ce49
RD
11279 wxPyEndAllowThreads(__tstate);
11280 if (PyErr_Occurred()) SWIG_fail;
11281 }
11282 {
11283 resultobj = PyList_New(0);
11284 size_t idx;
11285 for (idx = 0; idx < result->GetCount(); idx += 1) {
11286 PyObject* val = PyInt_FromLong( result->Item(idx) );
11287 PyList_Append(resultobj, val);
11288 Py_DECREF(val);
4f89f6a3 11289 }
0085ce49
RD
11290 }
11291 return resultobj;
11292fail:
11293 return NULL;
d14a1e28
RD
11294}
11295
11296
0085ce49
RD
11297SWIGINTERN PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11298 PyObject *resultobj = 0;
11299 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11300 long result;
11301 void *argp1 = 0 ;
11302 int res1 = 0 ;
11303 PyObject *swig_obj[1] ;
11304
11305 if (!args) SWIG_fail;
11306 swig_obj[0] = args;
11307 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11308 if (!SWIG_IsOK(res1)) {
11309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11310 }
11311 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11312 {
11313 PyThreadState* __tstate = wxPyBeginAllowThreads();
11314 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
11315 wxPyEndAllowThreads(__tstate);
11316 if (PyErr_Occurred()) SWIG_fail;
11317 }
11318 resultobj = SWIG_From_long(static_cast< long >(result));
11319 return resultobj;
11320fail:
11321 return NULL;
d14a1e28
RD
11322}
11323
11324
0085ce49
RD
11325SWIGINTERN PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11326 PyObject *resultobj = 0;
11327 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11328 long result;
11329 void *argp1 = 0 ;
11330 int res1 = 0 ;
11331 PyObject *swig_obj[1] ;
11332
11333 if (!args) SWIG_fail;
11334 swig_obj[0] = args;
11335 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11336 if (!SWIG_IsOK(res1)) {
11337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11338 }
11339 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11340 {
11341 PyThreadState* __tstate = wxPyBeginAllowThreads();
11342 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
11343 wxPyEndAllowThreads(__tstate);
11344 if (PyErr_Occurred()) SWIG_fail;
11345 }
11346 resultobj = SWIG_From_long(static_cast< long >(result));
11347 return resultobj;
11348fail:
11349 return NULL;
d14a1e28
RD
11350}
11351
11352
0085ce49
RD
11353SWIGINTERN PyObject *_wrap_TextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11354 PyObject *resultobj = 0;
11355 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11356 long result;
11357 void *argp1 = 0 ;
11358 int res1 = 0 ;
11359 PyObject *swig_obj[1] ;
11360
11361 if (!args) SWIG_fail;
11362 swig_obj[0] = args;
11363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11364 if (!SWIG_IsOK(res1)) {
11365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11366 }
11367 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11368 {
11369 PyThreadState* __tstate = wxPyBeginAllowThreads();
11370 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
11371 wxPyEndAllowThreads(__tstate);
11372 if (PyErr_Occurred()) SWIG_fail;
11373 }
11374 resultobj = SWIG_From_long(static_cast< long >(result));
11375 return resultobj;
11376fail:
11377 return NULL;
d14a1e28
RD
11378}
11379
11380
0085ce49
RD
11381SWIGINTERN PyObject *_wrap_TextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11382 PyObject *resultobj = 0;
11383 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11384 long result;
11385 void *argp1 = 0 ;
11386 int res1 = 0 ;
11387 PyObject *swig_obj[1] ;
11388
11389 if (!args) SWIG_fail;
11390 swig_obj[0] = args;
11391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11392 if (!SWIG_IsOK(res1)) {
11393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFlags" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11394 }
11395 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11396 {
11397 PyThreadState* __tstate = wxPyBeginAllowThreads();
11398 result = (long)((wxTextAttr const *)arg1)->GetFlags();
11399 wxPyEndAllowThreads(__tstate);
11400 if (PyErr_Occurred()) SWIG_fail;
11401 }
11402 resultobj = SWIG_From_long(static_cast< long >(result));
11403 return resultobj;
11404fail:
11405 return NULL;
d14a1e28
RD
11406}
11407
11408
0085ce49
RD
11409SWIGINTERN PyObject *_wrap_TextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11410 PyObject *resultobj = 0;
11411 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11412 bool result;
11413 void *argp1 = 0 ;
11414 int res1 = 0 ;
11415 PyObject *swig_obj[1] ;
11416
11417 if (!args) SWIG_fail;
11418 swig_obj[0] = args;
11419 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11420 if (!SWIG_IsOK(res1)) {
11421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_IsDefault" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11422 }
11423 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11424 {
11425 PyThreadState* __tstate = wxPyBeginAllowThreads();
11426 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
11427 wxPyEndAllowThreads(__tstate);
11428 if (PyErr_Occurred()) SWIG_fail;
11429 }
11430 {
11431 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11432 }
11433 return resultobj;
11434fail:
11435 return NULL;
11436}
11437
11438
11439SWIGINTERN PyObject *_wrap_TextAttr_Combine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11440 PyObject *resultobj = 0;
11441 wxTextAttr *arg1 = 0 ;
11442 wxTextAttr *arg2 = 0 ;
11443 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
11444 wxTextAttr result;
11445 void *argp1 = 0 ;
11446 int res1 = 0 ;
11447 void *argp2 = 0 ;
11448 int res2 = 0 ;
11449 void *argp3 = 0 ;
11450 int res3 = 0 ;
11451 PyObject * obj0 = 0 ;
11452 PyObject * obj1 = 0 ;
11453 PyObject * obj2 = 0 ;
11454 char * kwnames[] = {
11455 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
11456 };
11457
11458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11459 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
11460 if (!SWIG_IsOK(res1)) {
11461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11462 }
11463 if (!argp1) {
11464 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11465 }
11466 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11467 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
11468 if (!SWIG_IsOK(res2)) {
11469 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11470 }
11471 if (!argp2) {
11472 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11473 }
11474 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
11475 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11476 if (!SWIG_IsOK(res3)) {
11477 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextAttr_Combine" "', expected argument " "3"" of type '" "wxTextCtrl const *""'");
11478 }
11479 arg3 = reinterpret_cast< wxTextCtrl * >(argp3);
11480 {
11481 PyThreadState* __tstate = wxPyBeginAllowThreads();
11482 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
11483 wxPyEndAllowThreads(__tstate);
11484 if (PyErr_Occurred()) SWIG_fail;
11485 }
11486 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
11487 return resultobj;
11488fail:
11489 return NULL;
11490}
11491
11492
11493SWIGINTERN PyObject *TextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11494 PyObject *obj;
11495 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11496 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextAttr, SWIG_NewClientData(obj));
11497 return SWIG_Py_Void();
11498}
11499
11500SWIGINTERN PyObject *TextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11501 return SWIG_Python_InitShadowInstance(args);
11502}
11503
11504SWIGINTERN PyObject *_wrap_new_TextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11505 PyObject *resultobj = 0;
11506 wxWindow *arg1 = (wxWindow *) 0 ;
11507 int arg2 = (int) -1 ;
11508 wxString const &arg3_defvalue = wxPyEmptyString ;
11509 wxString *arg3 = (wxString *) &arg3_defvalue ;
11510 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11511 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11512 wxSize const &arg5_defvalue = wxDefaultSize ;
11513 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11514 long arg6 = (long) 0 ;
11515 wxValidator const &arg7_defvalue = wxDefaultValidator ;
11516 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
11517 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
11518 wxString *arg8 = (wxString *) &arg8_defvalue ;
11519 wxTextCtrl *result = 0 ;
11520 void *argp1 = 0 ;
11521 int res1 = 0 ;
11522 int val2 ;
11523 int ecode2 = 0 ;
11524 bool temp3 = false ;
11525 wxPoint temp4 ;
11526 wxSize temp5 ;
11527 long val6 ;
11528 int ecode6 = 0 ;
11529 void *argp7 = 0 ;
11530 int res7 = 0 ;
11531 bool temp8 = false ;
11532 PyObject * obj0 = 0 ;
11533 PyObject * obj1 = 0 ;
11534 PyObject * obj2 = 0 ;
11535 PyObject * obj3 = 0 ;
11536 PyObject * obj4 = 0 ;
11537 PyObject * obj5 = 0 ;
11538 PyObject * obj6 = 0 ;
11539 PyObject * obj7 = 0 ;
11540 char * kwnames[] = {
11541 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11542 };
11543
11544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
11545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
11546 if (!SWIG_IsOK(res1)) {
11547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
11548 }
11549 arg1 = reinterpret_cast< wxWindow * >(argp1);
11550 if (obj1) {
11551 ecode2 = SWIG_AsVal_int(obj1, &val2);
11552 if (!SWIG_IsOK(ecode2)) {
11553 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TextCtrl" "', expected argument " "2"" of type '" "int""'");
11554 }
11555 arg2 = static_cast< int >(val2);
11556 }
11557 if (obj2) {
4f89f6a3 11558 {
0085ce49
RD
11559 arg3 = wxString_in_helper(obj2);
11560 if (arg3 == NULL) SWIG_fail;
11561 temp3 = true;
4f89f6a3 11562 }
0085ce49
RD
11563 }
11564 if (obj3) {
d14a1e28 11565 {
0085ce49
RD
11566 arg4 = &temp4;
11567 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 11568 }
0085ce49
RD
11569 }
11570 if (obj4) {
d14a1e28 11571 {
0085ce49
RD
11572 arg5 = &temp5;
11573 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 11574 }
0085ce49
RD
11575 }
11576 if (obj5) {
11577 ecode6 = SWIG_AsVal_long(obj5, &val6);
11578 if (!SWIG_IsOK(ecode6)) {
11579 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_TextCtrl" "', expected argument " "6"" of type '" "long""'");
11580 }
11581 arg6 = static_cast< long >(val6);
11582 }
11583 if (obj6) {
11584 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
11585 if (!SWIG_IsOK(res7)) {
11586 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 11587 }
0085ce49
RD
11588 if (!argp7) {
11589 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
093d3ff1 11590 }
0085ce49
RD
11591 arg7 = reinterpret_cast< wxValidator * >(argp7);
11592 }
11593 if (obj7) {
d14a1e28 11594 {
0085ce49
RD
11595 arg8 = wxString_in_helper(obj7);
11596 if (arg8 == NULL) SWIG_fail;
11597 temp8 = true;
d14a1e28 11598 }
0085ce49
RD
11599 }
11600 {
11601 if (!wxPyCheckForApp()) SWIG_fail;
11602 PyThreadState* __tstate = wxPyBeginAllowThreads();
11603 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
11604 wxPyEndAllowThreads(__tstate);
11605 if (PyErr_Occurred()) SWIG_fail;
11606 }
11607 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_NEW | 0 );
11608 {
11609 if (temp3)
11610 delete arg3;
11611 }
11612 {
11613 if (temp8)
11614 delete arg8;
11615 }
11616 return resultobj;
11617fail:
11618 {
11619 if (temp3)
11620 delete arg3;
11621 }
11622 {
11623 if (temp8)
11624 delete arg8;
11625 }
11626 return NULL;
d14a1e28
RD
11627}
11628
11629
0085ce49
RD
11630SWIGINTERN PyObject *_wrap_new_PreTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11631 PyObject *resultobj = 0;
11632 wxTextCtrl *result = 0 ;
11633
11634 if (!SWIG_Python_UnpackTuple(args,"new_PreTextCtrl",0,0,0)) SWIG_fail;
11635 {
11636 if (!wxPyCheckForApp()) SWIG_fail;
11637 PyThreadState* __tstate = wxPyBeginAllowThreads();
11638 result = (wxTextCtrl *)new wxTextCtrl();
11639 wxPyEndAllowThreads(__tstate);
11640 if (PyErr_Occurred()) SWIG_fail;
11641 }
11642 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_OWN | 0 );
11643 return resultobj;
11644fail:
11645 return NULL;
11646}
11647
11648
11649SWIGINTERN PyObject *_wrap_TextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11650 PyObject *resultobj = 0;
11651 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11652 wxWindow *arg2 = (wxWindow *) 0 ;
11653 int arg3 = (int) -1 ;
11654 wxString const &arg4_defvalue = wxPyEmptyString ;
11655 wxString *arg4 = (wxString *) &arg4_defvalue ;
11656 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11657 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11658 wxSize const &arg6_defvalue = wxDefaultSize ;
11659 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11660 long arg7 = (long) 0 ;
11661 wxValidator const &arg8_defvalue = wxDefaultValidator ;
11662 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
11663 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
11664 wxString *arg9 = (wxString *) &arg9_defvalue ;
11665 bool result;
11666 void *argp1 = 0 ;
11667 int res1 = 0 ;
11668 void *argp2 = 0 ;
11669 int res2 = 0 ;
11670 int val3 ;
11671 int ecode3 = 0 ;
11672 bool temp4 = false ;
11673 wxPoint temp5 ;
11674 wxSize temp6 ;
11675 long val7 ;
11676 int ecode7 = 0 ;
11677 void *argp8 = 0 ;
11678 int res8 = 0 ;
11679 bool temp9 = false ;
11680 PyObject * obj0 = 0 ;
11681 PyObject * obj1 = 0 ;
11682 PyObject * obj2 = 0 ;
11683 PyObject * obj3 = 0 ;
11684 PyObject * obj4 = 0 ;
11685 PyObject * obj5 = 0 ;
11686 PyObject * obj6 = 0 ;
11687 PyObject * obj7 = 0 ;
11688 PyObject * obj8 = 0 ;
11689 char * kwnames[] = {
11690 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11691 };
11692
11693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
11694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11695 if (!SWIG_IsOK(res1)) {
11696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Create" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11697 }
11698 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11699 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11700 if (!SWIG_IsOK(res2)) {
11701 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
11702 }
11703 arg2 = reinterpret_cast< wxWindow * >(argp2);
11704 if (obj2) {
11705 ecode3 = SWIG_AsVal_int(obj2, &val3);
11706 if (!SWIG_IsOK(ecode3)) {
11707 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Create" "', expected argument " "3"" of type '" "int""'");
11708 }
11709 arg3 = static_cast< int >(val3);
11710 }
11711 if (obj3) {
d14a1e28 11712 {
0085ce49
RD
11713 arg4 = wxString_in_helper(obj3);
11714 if (arg4 == NULL) SWIG_fail;
11715 temp4 = true;
d14a1e28 11716 }
0085ce49
RD
11717 }
11718 if (obj4) {
d14a1e28 11719 {
0085ce49
RD
11720 arg5 = &temp5;
11721 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 11722 }
0085ce49
RD
11723 }
11724 if (obj5) {
d14a1e28 11725 {
0085ce49
RD
11726 arg6 = &temp6;
11727 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d14a1e28 11728 }
0085ce49
RD
11729 }
11730 if (obj6) {
11731 ecode7 = SWIG_AsVal_long(obj6, &val7);
11732 if (!SWIG_IsOK(ecode7)) {
11733 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "TextCtrl_Create" "', expected argument " "7"" of type '" "long""'");
11734 }
11735 arg7 = static_cast< long >(val7);
11736 }
11737 if (obj7) {
11738 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
11739 if (!SWIG_IsOK(res8)) {
11740 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 11741 }
0085ce49
RD
11742 if (!argp8) {
11743 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
093d3ff1 11744 }
0085ce49
RD
11745 arg8 = reinterpret_cast< wxValidator * >(argp8);
11746 }
11747 if (obj8) {
d14a1e28 11748 {
0085ce49
RD
11749 arg9 = wxString_in_helper(obj8);
11750 if (arg9 == NULL) SWIG_fail;
11751 temp9 = true;
d14a1e28 11752 }
0085ce49
RD
11753 }
11754 {
11755 PyThreadState* __tstate = wxPyBeginAllowThreads();
11756 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
11757 wxPyEndAllowThreads(__tstate);
11758 if (PyErr_Occurred()) SWIG_fail;
11759 }
11760 {
11761 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11762 }
11763 {
11764 if (temp4)
11765 delete arg4;
11766 }
11767 {
11768 if (temp9)
11769 delete arg9;
11770 }
11771 return resultobj;
11772fail:
11773 {
11774 if (temp4)
11775 delete arg4;
11776 }
11777 {
11778 if (temp9)
11779 delete arg9;
11780 }
11781 return NULL;
d14a1e28
RD
11782}
11783
11784
0085ce49
RD
11785SWIGINTERN PyObject *_wrap_TextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11786 PyObject *resultobj = 0;
11787 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11788 wxString result;
11789 void *argp1 = 0 ;
11790 int res1 = 0 ;
11791 PyObject *swig_obj[1] ;
11792
11793 if (!args) SWIG_fail;
11794 swig_obj[0] = args;
11795 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11796 if (!SWIG_IsOK(res1)) {
11797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetValue" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11798 }
11799 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11800 {
11801 PyThreadState* __tstate = wxPyBeginAllowThreads();
11802 result = ((wxTextCtrl const *)arg1)->GetValue();
11803 wxPyEndAllowThreads(__tstate);
11804 if (PyErr_Occurred()) SWIG_fail;
11805 }
11806 {
11807#if wxUSE_UNICODE
11808 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11809#else
11810 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11811#endif
11812 }
11813 return resultobj;
11814fail:
11815 return NULL;
11816}
11817
11818
11819SWIGINTERN PyObject *_wrap_TextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11820 PyObject *resultobj = 0;
11821 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11822 wxString *arg2 = 0 ;
11823 void *argp1 = 0 ;
11824 int res1 = 0 ;
11825 bool temp2 = false ;
11826 PyObject * obj0 = 0 ;
11827 PyObject * obj1 = 0 ;
11828 char * kwnames[] = {
11829 (char *) "self",(char *) "value", NULL
11830 };
11831
11832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
11833 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11834 if (!SWIG_IsOK(res1)) {
11835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11836 }
11837 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11838 {
11839 arg2 = wxString_in_helper(obj1);
11840 if (arg2 == NULL) SWIG_fail;
11841 temp2 = true;
11842 }
11843 {
11844 PyThreadState* __tstate = wxPyBeginAllowThreads();
11845 (arg1)->SetValue((wxString const &)*arg2);
11846 wxPyEndAllowThreads(__tstate);
11847 if (PyErr_Occurred()) SWIG_fail;
11848 }
11849 resultobj = SWIG_Py_Void();
11850 {
11851 if (temp2)
11852 delete arg2;
11853 }
11854 return resultobj;
11855fail:
11856 {
11857 if (temp2)
11858 delete arg2;
11859 }
11860 return NULL;
11861}
11862
11863
11864SWIGINTERN PyObject *_wrap_TextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11865 PyObject *resultobj = 0;
11866 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11867 long arg2 ;
11868 long arg3 ;
11869 wxString result;
11870 void *argp1 = 0 ;
11871 int res1 = 0 ;
11872 long val2 ;
11873 int ecode2 = 0 ;
11874 long val3 ;
11875 int ecode3 = 0 ;
11876 PyObject * obj0 = 0 ;
11877 PyObject * obj1 = 0 ;
11878 PyObject * obj2 = 0 ;
11879 char * kwnames[] = {
11880 (char *) "self",(char *) "_from",(char *) "to", NULL
11881 };
11882
11883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11885 if (!SWIG_IsOK(res1)) {
11886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetRange" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11887 }
11888 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11889 ecode2 = SWIG_AsVal_long(obj1, &val2);
11890 if (!SWIG_IsOK(ecode2)) {
11891 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'");
11892 }
11893 arg2 = static_cast< long >(val2);
11894 ecode3 = SWIG_AsVal_long(obj2, &val3);
11895 if (!SWIG_IsOK(ecode3)) {
11896 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'");
11897 }
11898 arg3 = static_cast< long >(val3);
11899 {
11900 PyThreadState* __tstate = wxPyBeginAllowThreads();
11901 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
11902 wxPyEndAllowThreads(__tstate);
11903 if (PyErr_Occurred()) SWIG_fail;
11904 }
11905 {
11906#if wxUSE_UNICODE
11907 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11908#else
11909 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11910#endif
11911 }
11912 return resultobj;
11913fail:
11914 return NULL;
11915}
11916
11917
11918SWIGINTERN PyObject *_wrap_TextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11919 PyObject *resultobj = 0;
11920 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11921 long arg2 ;
11922 int result;
11923 void *argp1 = 0 ;
11924 int res1 = 0 ;
11925 long val2 ;
11926 int ecode2 = 0 ;
11927 PyObject * obj0 = 0 ;
11928 PyObject * obj1 = 0 ;
11929 char * kwnames[] = {
11930 (char *) "self",(char *) "lineNo", NULL
11931 };
11932
11933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail;
11934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11935 if (!SWIG_IsOK(res1)) {
11936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11937 }
11938 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11939 ecode2 = SWIG_AsVal_long(obj1, &val2);
11940 if (!SWIG_IsOK(ecode2)) {
11941 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'");
11942 }
11943 arg2 = static_cast< long >(val2);
11944 {
11945 PyThreadState* __tstate = wxPyBeginAllowThreads();
11946 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
11947 wxPyEndAllowThreads(__tstate);
11948 if (PyErr_Occurred()) SWIG_fail;
11949 }
11950 resultobj = SWIG_From_int(static_cast< int >(result));
11951 return resultobj;
11952fail:
11953 return NULL;
11954}
11955
11956
11957SWIGINTERN PyObject *_wrap_TextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11958 PyObject *resultobj = 0;
11959 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11960 long arg2 ;
11961 wxString result;
11962 void *argp1 = 0 ;
11963 int res1 = 0 ;
11964 long val2 ;
11965 int ecode2 = 0 ;
11966 PyObject * obj0 = 0 ;
11967 PyObject * obj1 = 0 ;
11968 char * kwnames[] = {
11969 (char *) "self",(char *) "lineNo", NULL
11970 };
11971
11972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail;
11973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11974 if (!SWIG_IsOK(res1)) {
11975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11976 }
11977 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11978 ecode2 = SWIG_AsVal_long(obj1, &val2);
11979 if (!SWIG_IsOK(ecode2)) {
11980 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'");
11981 }
11982 arg2 = static_cast< long >(val2);
11983 {
11984 PyThreadState* __tstate = wxPyBeginAllowThreads();
11985 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
11986 wxPyEndAllowThreads(__tstate);
11987 if (PyErr_Occurred()) SWIG_fail;
11988 }
11989 {
11990#if wxUSE_UNICODE
11991 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11992#else
11993 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11994#endif
11995 }
11996 return resultobj;
11997fail:
11998 return NULL;
d14a1e28
RD
11999}
12000
12001
0085ce49
RD
12002SWIGINTERN PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12003 PyObject *resultobj = 0;
12004 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12005 int result;
12006 void *argp1 = 0 ;
12007 int res1 = 0 ;
12008 PyObject *swig_obj[1] ;
12009
12010 if (!args) SWIG_fail;
12011 swig_obj[0] = args;
12012 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12013 if (!SWIG_IsOK(res1)) {
12014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12015 }
12016 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12017 {
12018 PyThreadState* __tstate = wxPyBeginAllowThreads();
12019 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
12020 wxPyEndAllowThreads(__tstate);
12021 if (PyErr_Occurred()) SWIG_fail;
12022 }
12023 resultobj = SWIG_From_int(static_cast< int >(result));
12024 return resultobj;
12025fail:
12026 return NULL;
d14a1e28
RD
12027}
12028
12029
0085ce49
RD
12030SWIGINTERN PyObject *_wrap_TextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12031 PyObject *resultobj = 0;
12032 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12033 bool result;
12034 void *argp1 = 0 ;
12035 int res1 = 0 ;
12036 PyObject *swig_obj[1] ;
12037
12038 if (!args) SWIG_fail;
12039 swig_obj[0] = args;
12040 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12041 if (!SWIG_IsOK(res1)) {
12042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsModified" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12043 }
12044 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12045 {
12046 PyThreadState* __tstate = wxPyBeginAllowThreads();
12047 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
12048 wxPyEndAllowThreads(__tstate);
12049 if (PyErr_Occurred()) SWIG_fail;
12050 }
12051 {
12052 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12053 }
12054 return resultobj;
12055fail:
12056 return NULL;
c3eb6258
RD
12057}
12058
12059
0085ce49
RD
12060SWIGINTERN PyObject *_wrap_TextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12061 PyObject *resultobj = 0;
12062 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12063 bool result;
12064 void *argp1 = 0 ;
12065 int res1 = 0 ;
12066 PyObject *swig_obj[1] ;
12067
12068 if (!args) SWIG_fail;
12069 swig_obj[0] = args;
12070 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12071 if (!SWIG_IsOK(res1)) {
12072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12073 }
12074 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12075 {
12076 PyThreadState* __tstate = wxPyBeginAllowThreads();
12077 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
12078 wxPyEndAllowThreads(__tstate);
12079 if (PyErr_Occurred()) SWIG_fail;
12080 }
12081 {
12082 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12083 }
12084 return resultobj;
12085fail:
12086 return NULL;
74a57fcd
RD
12087}
12088
12089
0085ce49
RD
12090SWIGINTERN PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12091 PyObject *resultobj = 0;
12092 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12093 bool result;
12094 void *argp1 = 0 ;
12095 int res1 = 0 ;
12096 PyObject *swig_obj[1] ;
12097
12098 if (!args) SWIG_fail;
12099 swig_obj[0] = args;
12100 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12101 if (!SWIG_IsOK(res1)) {
12102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12103 }
12104 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12105 {
12106 PyThreadState* __tstate = wxPyBeginAllowThreads();
12107 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
12108 wxPyEndAllowThreads(__tstate);
12109 if (PyErr_Occurred()) SWIG_fail;
12110 }
12111 {
12112 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12113 }
12114 return resultobj;
12115fail:
12116 return NULL;
d14a1e28
RD
12117}
12118
12119
0085ce49
RD
12120SWIGINTERN PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12121 PyObject *resultobj = 0;
12122 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12123 bool result;
12124 void *argp1 = 0 ;
12125 int res1 = 0 ;
12126 PyObject *swig_obj[1] ;
12127
12128 if (!args) SWIG_fail;
12129 swig_obj[0] = args;
12130 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12131 if (!SWIG_IsOK(res1)) {
12132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12133 }
12134 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12135 {
12136 PyThreadState* __tstate = wxPyBeginAllowThreads();
12137 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
12138 wxPyEndAllowThreads(__tstate);
12139 if (PyErr_Occurred()) SWIG_fail;
12140 }
12141 {
12142 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12143 }
12144 return resultobj;
12145fail:
12146 return NULL;
12147}
12148
12149
12150SWIGINTERN PyObject *_wrap_TextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12151 PyObject *resultobj = 0;
12152 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12153 long *arg2 = (long *) 0 ;
12154 long *arg3 = (long *) 0 ;
12155 void *argp1 = 0 ;
12156 int res1 = 0 ;
12157 long temp2 ;
12158 int res2 = SWIG_TMPOBJ ;
12159 long temp3 ;
12160 int res3 = SWIG_TMPOBJ ;
12161 PyObject *swig_obj[1] ;
12162
12163 arg2 = &temp2;
12164 arg3 = &temp3;
12165 if (!args) SWIG_fail;
12166 swig_obj[0] = args;
12167 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12168 if (!SWIG_IsOK(res1)) {
12169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12170 }
12171 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12172 {
12173 PyThreadState* __tstate = wxPyBeginAllowThreads();
12174 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
12175 wxPyEndAllowThreads(__tstate);
12176 if (PyErr_Occurred()) SWIG_fail;
12177 }
12178 resultobj = SWIG_Py_Void();
12179 if (SWIG_IsTmpObj(res2)) {
12180 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
12181 } else {
12182 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12183 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
12184 }
12185 if (SWIG_IsTmpObj(res3)) {
12186 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12187 } else {
12188 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12189 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
12190 }
12191 return resultobj;
12192fail:
12193 return NULL;
d14a1e28
RD
12194}
12195
12196
0085ce49
RD
12197SWIGINTERN PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12198 PyObject *resultobj = 0;
12199 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12200 wxString result;
12201 void *argp1 = 0 ;
12202 int res1 = 0 ;
12203 PyObject *swig_obj[1] ;
12204
12205 if (!args) SWIG_fail;
12206 swig_obj[0] = args;
12207 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12208 if (!SWIG_IsOK(res1)) {
12209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12210 }
12211 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12212 {
12213 PyThreadState* __tstate = wxPyBeginAllowThreads();
12214 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
12215 wxPyEndAllowThreads(__tstate);
12216 if (PyErr_Occurred()) SWIG_fail;
12217 }
12218 {
12219#if wxUSE_UNICODE
12220 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12221#else
12222 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12223#endif
12224 }
12225 return resultobj;
12226fail:
12227 return NULL;
d14a1e28
RD
12228}
12229
12230
0085ce49
RD
12231SWIGINTERN PyObject *_wrap_TextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12232 PyObject *resultobj = 0;
12233 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12234 void *argp1 = 0 ;
12235 int res1 = 0 ;
12236 PyObject *swig_obj[1] ;
12237
12238 if (!args) SWIG_fail;
12239 swig_obj[0] = args;
12240 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12241 if (!SWIG_IsOK(res1)) {
12242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Clear" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12243 }
12244 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12245 {
12246 PyThreadState* __tstate = wxPyBeginAllowThreads();
12247 (arg1)->Clear();
12248 wxPyEndAllowThreads(__tstate);
12249 if (PyErr_Occurred()) SWIG_fail;
12250 }
12251 resultobj = SWIG_Py_Void();
12252 return resultobj;
12253fail:
12254 return NULL;
12255}
12256
12257
12258SWIGINTERN PyObject *_wrap_TextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12259 PyObject *resultobj = 0;
12260 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12261 long arg2 ;
12262 long arg3 ;
12263 wxString *arg4 = 0 ;
12264 void *argp1 = 0 ;
12265 int res1 = 0 ;
12266 long val2 ;
12267 int ecode2 = 0 ;
12268 long val3 ;
12269 int ecode3 = 0 ;
12270 bool temp4 = false ;
12271 PyObject * obj0 = 0 ;
12272 PyObject * obj1 = 0 ;
12273 PyObject * obj2 = 0 ;
12274 PyObject * obj3 = 0 ;
12275 char * kwnames[] = {
12276 (char *) "self",(char *) "_from",(char *) "to",(char *) "value", NULL
12277 };
12278
12279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12281 if (!SWIG_IsOK(res1)) {
12282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Replace" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12283 }
12284 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12285 ecode2 = SWIG_AsVal_long(obj1, &val2);
12286 if (!SWIG_IsOK(ecode2)) {
12287 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Replace" "', expected argument " "2"" of type '" "long""'");
12288 }
12289 arg2 = static_cast< long >(val2);
12290 ecode3 = SWIG_AsVal_long(obj2, &val3);
12291 if (!SWIG_IsOK(ecode3)) {
12292 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Replace" "', expected argument " "3"" of type '" "long""'");
12293 }
12294 arg3 = static_cast< long >(val3);
12295 {
12296 arg4 = wxString_in_helper(obj3);
12297 if (arg4 == NULL) SWIG_fail;
12298 temp4 = true;
12299 }
12300 {
12301 PyThreadState* __tstate = wxPyBeginAllowThreads();
12302 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
12303 wxPyEndAllowThreads(__tstate);
12304 if (PyErr_Occurred()) SWIG_fail;
12305 }
12306 resultobj = SWIG_Py_Void();
12307 {
12308 if (temp4)
12309 delete arg4;
12310 }
12311 return resultobj;
12312fail:
12313 {
12314 if (temp4)
12315 delete arg4;
12316 }
12317 return NULL;
12318}
12319
12320
12321SWIGINTERN PyObject *_wrap_TextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12322 PyObject *resultobj = 0;
12323 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12324 long arg2 ;
12325 long arg3 ;
12326 void *argp1 = 0 ;
12327 int res1 = 0 ;
12328 long val2 ;
12329 int ecode2 = 0 ;
12330 long val3 ;
12331 int ecode3 = 0 ;
12332 PyObject * obj0 = 0 ;
12333 PyObject * obj1 = 0 ;
12334 PyObject * obj2 = 0 ;
12335 char * kwnames[] = {
12336 (char *) "self",(char *) "_from",(char *) "to", NULL
12337 };
12338
12339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12340 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12341 if (!SWIG_IsOK(res1)) {
12342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Remove" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12343 }
12344 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12345 ecode2 = SWIG_AsVal_long(obj1, &val2);
12346 if (!SWIG_IsOK(ecode2)) {
12347 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Remove" "', expected argument " "2"" of type '" "long""'");
12348 }
12349 arg2 = static_cast< long >(val2);
12350 ecode3 = SWIG_AsVal_long(obj2, &val3);
12351 if (!SWIG_IsOK(ecode3)) {
12352 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Remove" "', expected argument " "3"" of type '" "long""'");
12353 }
12354 arg3 = static_cast< long >(val3);
12355 {
12356 PyThreadState* __tstate = wxPyBeginAllowThreads();
12357 (arg1)->Remove(arg2,arg3);
12358 wxPyEndAllowThreads(__tstate);
12359 if (PyErr_Occurred()) SWIG_fail;
12360 }
12361 resultobj = SWIG_Py_Void();
12362 return resultobj;
12363fail:
12364 return NULL;
12365}
12366
12367
12368SWIGINTERN PyObject *_wrap_TextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12369 PyObject *resultobj = 0;
12370 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12371 wxString *arg2 = 0 ;
12372 bool result;
12373 void *argp1 = 0 ;
12374 int res1 = 0 ;
12375 bool temp2 = false ;
12376 PyObject * obj0 = 0 ;
12377 PyObject * obj1 = 0 ;
12378 char * kwnames[] = {
12379 (char *) "self",(char *) "file", NULL
12380 };
12381
12382 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) SWIG_fail;
12383 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12384 if (!SWIG_IsOK(res1)) {
12385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12386 }
12387 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12388 {
12389 arg2 = wxString_in_helper(obj1);
12390 if (arg2 == NULL) SWIG_fail;
12391 temp2 = true;
12392 }
12393 {
12394 PyThreadState* __tstate = wxPyBeginAllowThreads();
12395 result = (bool)(arg1)->LoadFile((wxString const &)*arg2);
12396 wxPyEndAllowThreads(__tstate);
12397 if (PyErr_Occurred()) SWIG_fail;
12398 }
12399 {
12400 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12401 }
12402 {
12403 if (temp2)
12404 delete arg2;
12405 }
12406 return resultobj;
12407fail:
12408 {
12409 if (temp2)
12410 delete arg2;
12411 }
12412 return NULL;
12413}
12414
12415
12416SWIGINTERN PyObject *_wrap_TextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12417 PyObject *resultobj = 0;
12418 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12419 wxString const &arg2_defvalue = wxPyEmptyString ;
12420 wxString *arg2 = (wxString *) &arg2_defvalue ;
12421 bool result;
12422 void *argp1 = 0 ;
12423 int res1 = 0 ;
12424 bool temp2 = false ;
12425 PyObject * obj0 = 0 ;
12426 PyObject * obj1 = 0 ;
12427 char * kwnames[] = {
12428 (char *) "self",(char *) "file", NULL
12429 };
12430
12431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) SWIG_fail;
12432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12433 if (!SWIG_IsOK(res1)) {
12434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12435 }
12436 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12437 if (obj1) {
4f89f6a3 12438 {
0085ce49
RD
12439 arg2 = wxString_in_helper(obj1);
12440 if (arg2 == NULL) SWIG_fail;
12441 temp2 = true;
4f89f6a3 12442 }
0085ce49
RD
12443 }
12444 {
12445 PyThreadState* __tstate = wxPyBeginAllowThreads();
12446 result = (bool)(arg1)->SaveFile((wxString const &)*arg2);
12447 wxPyEndAllowThreads(__tstate);
12448 if (PyErr_Occurred()) SWIG_fail;
12449 }
12450 {
12451 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12452 }
12453 {
12454 if (temp2)
12455 delete arg2;
12456 }
12457 return resultobj;
12458fail:
12459 {
12460 if (temp2)
12461 delete arg2;
12462 }
12463 return NULL;
d14a1e28
RD
12464}
12465
12466
0085ce49
RD
12467SWIGINTERN PyObject *_wrap_TextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12468 PyObject *resultobj = 0;
12469 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12470 void *argp1 = 0 ;
12471 int res1 = 0 ;
12472 PyObject *swig_obj[1] ;
12473
12474 if (!args) SWIG_fail;
12475 swig_obj[0] = args;
12476 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12477 if (!SWIG_IsOK(res1)) {
12478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12479 }
12480 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12481 {
12482 PyThreadState* __tstate = wxPyBeginAllowThreads();
12483 (arg1)->MarkDirty();
12484 wxPyEndAllowThreads(__tstate);
12485 if (PyErr_Occurred()) SWIG_fail;
12486 }
12487 resultobj = SWIG_Py_Void();
12488 return resultobj;
12489fail:
12490 return NULL;
d14a1e28
RD
12491}
12492
12493
0085ce49
RD
12494SWIGINTERN PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12495 PyObject *resultobj = 0;
12496 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12497 void *argp1 = 0 ;
12498 int res1 = 0 ;
12499 PyObject *swig_obj[1] ;
12500
12501 if (!args) SWIG_fail;
12502 swig_obj[0] = args;
12503 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12504 if (!SWIG_IsOK(res1)) {
12505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12506 }
12507 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12508 {
12509 PyThreadState* __tstate = wxPyBeginAllowThreads();
12510 (arg1)->DiscardEdits();
12511 wxPyEndAllowThreads(__tstate);
12512 if (PyErr_Occurred()) SWIG_fail;
12513 }
12514 resultobj = SWIG_Py_Void();
12515 return resultobj;
12516fail:
12517 return NULL;
12518}
12519
12520
12521SWIGINTERN PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12522 PyObject *resultobj = 0;
12523 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12524 unsigned long arg2 ;
12525 void *argp1 = 0 ;
12526 int res1 = 0 ;
12527 unsigned long val2 ;
12528 int ecode2 = 0 ;
12529 PyObject * obj0 = 0 ;
12530 PyObject * obj1 = 0 ;
12531 char * kwnames[] = {
12532 (char *) "self",(char *) "len", NULL
12533 };
12534
12535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail;
12536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12537 if (!SWIG_IsOK(res1)) {
12538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12539 }
12540 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12541 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
12542 if (!SWIG_IsOK(ecode2)) {
12543 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'");
12544 }
12545 arg2 = static_cast< unsigned long >(val2);
12546 {
12547 PyThreadState* __tstate = wxPyBeginAllowThreads();
12548 (arg1)->SetMaxLength(arg2);
12549 wxPyEndAllowThreads(__tstate);
12550 if (PyErr_Occurred()) SWIG_fail;
12551 }
12552 resultobj = SWIG_Py_Void();
12553 return resultobj;
12554fail:
12555 return NULL;
12556}
12557
12558
12559SWIGINTERN PyObject *_wrap_TextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12560 PyObject *resultobj = 0;
12561 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12562 wxString *arg2 = 0 ;
12563 void *argp1 = 0 ;
12564 int res1 = 0 ;
12565 bool temp2 = false ;
12566 PyObject * obj0 = 0 ;
12567 PyObject * obj1 = 0 ;
12568 char * kwnames[] = {
12569 (char *) "self",(char *) "text", NULL
12570 };
12571
12572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail;
12573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12574 if (!SWIG_IsOK(res1)) {
12575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_WriteText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12576 }
12577 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12578 {
12579 arg2 = wxString_in_helper(obj1);
12580 if (arg2 == NULL) SWIG_fail;
12581 temp2 = true;
12582 }
12583 {
12584 PyThreadState* __tstate = wxPyBeginAllowThreads();
12585 (arg1)->WriteText((wxString const &)*arg2);
12586 wxPyEndAllowThreads(__tstate);
12587 if (PyErr_Occurred()) SWIG_fail;
12588 }
12589 resultobj = SWIG_Py_Void();
12590 {
12591 if (temp2)
12592 delete arg2;
12593 }
12594 return resultobj;
12595fail:
12596 {
12597 if (temp2)
12598 delete arg2;
12599 }
12600 return NULL;
d14a1e28
RD
12601}
12602
12603
0085ce49
RD
12604SWIGINTERN PyObject *_wrap_TextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12605 PyObject *resultobj = 0;
12606 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12607 wxString *arg2 = 0 ;
12608 void *argp1 = 0 ;
12609 int res1 = 0 ;
12610 bool temp2 = false ;
12611 PyObject * obj0 = 0 ;
12612 PyObject * obj1 = 0 ;
12613 char * kwnames[] = {
12614 (char *) "self",(char *) "text", NULL
12615 };
12616
12617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail;
12618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12619 if (!SWIG_IsOK(res1)) {
12620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_AppendText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12621 }
12622 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12623 {
12624 arg2 = wxString_in_helper(obj1);
12625 if (arg2 == NULL) SWIG_fail;
12626 temp2 = true;
12627 }
12628 {
12629 PyThreadState* __tstate = wxPyBeginAllowThreads();
12630 (arg1)->AppendText((wxString const &)*arg2);
12631 wxPyEndAllowThreads(__tstate);
12632 if (PyErr_Occurred()) SWIG_fail;
12633 }
12634 resultobj = SWIG_Py_Void();
12635 {
12636 if (temp2)
12637 delete arg2;
12638 }
12639 return resultobj;
12640fail:
12641 {
12642 if (temp2)
12643 delete arg2;
12644 }
12645 return NULL;
12646}
12647
12648
12649SWIGINTERN PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12650 PyObject *resultobj = 0;
12651 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12652 wxKeyEvent *arg2 = 0 ;
12653 bool result;
12654 void *argp1 = 0 ;
12655 int res1 = 0 ;
12656 void *argp2 = 0 ;
12657 int res2 = 0 ;
12658 PyObject * obj0 = 0 ;
12659 PyObject * obj1 = 0 ;
12660 char * kwnames[] = {
12661 (char *) "self",(char *) "event", NULL
12662 };
12663
12664 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) SWIG_fail;
12665 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12666 if (!SWIG_IsOK(res1)) {
12667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12668 }
12669 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12670 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
12671 if (!SWIG_IsOK(res2)) {
12672 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12673 }
12674 if (!argp2) {
12675 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12676 }
12677 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
12678 {
12679 PyThreadState* __tstate = wxPyBeginAllowThreads();
12680 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
12681 wxPyEndAllowThreads(__tstate);
12682 if (PyErr_Occurred()) SWIG_fail;
12683 }
12684 {
12685 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12686 }
12687 return resultobj;
12688fail:
12689 return NULL;
12690}
12691
12692
12693SWIGINTERN PyObject *_wrap_TextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12694 PyObject *resultobj = 0;
12695 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12696 long arg2 ;
12697 long arg3 ;
12698 wxTextAttr *arg4 = 0 ;
12699 bool result;
12700 void *argp1 = 0 ;
12701 int res1 = 0 ;
12702 long val2 ;
12703 int ecode2 = 0 ;
12704 long val3 ;
12705 int ecode3 = 0 ;
12706 void *argp4 = 0 ;
12707 int res4 = 0 ;
12708 PyObject * obj0 = 0 ;
12709 PyObject * obj1 = 0 ;
12710 PyObject * obj2 = 0 ;
12711 PyObject * obj3 = 0 ;
12712 char * kwnames[] = {
12713 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
12714 };
12715
12716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12718 if (!SWIG_IsOK(res1)) {
12719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12720 }
12721 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12722 ecode2 = SWIG_AsVal_long(obj1, &val2);
12723 if (!SWIG_IsOK(ecode2)) {
12724 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetStyle" "', expected argument " "2"" of type '" "long""'");
12725 }
12726 arg2 = static_cast< long >(val2);
12727 ecode3 = SWIG_AsVal_long(obj2, &val3);
12728 if (!SWIG_IsOK(ecode3)) {
12729 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetStyle" "', expected argument " "3"" of type '" "long""'");
12730 }
12731 arg3 = static_cast< long >(val3);
12732 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxTextAttr, 0 | 0);
12733 if (!SWIG_IsOK(res4)) {
12734 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12735 }
12736 if (!argp4) {
12737 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12738 }
12739 arg4 = reinterpret_cast< wxTextAttr * >(argp4);
12740 {
12741 PyThreadState* __tstate = wxPyBeginAllowThreads();
12742 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
12743 wxPyEndAllowThreads(__tstate);
12744 if (PyErr_Occurred()) SWIG_fail;
12745 }
12746 {
12747 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12748 }
12749 return resultobj;
12750fail:
12751 return NULL;
12752}
12753
12754
12755SWIGINTERN PyObject *_wrap_TextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12756 PyObject *resultobj = 0;
12757 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12758 long arg2 ;
12759 wxTextAttr *arg3 = 0 ;
12760 bool result;
12761 void *argp1 = 0 ;
12762 int res1 = 0 ;
12763 long val2 ;
12764 int ecode2 = 0 ;
12765 void *argp3 = 0 ;
12766 int res3 = 0 ;
12767 PyObject * obj0 = 0 ;
12768 PyObject * obj1 = 0 ;
12769 PyObject * obj2 = 0 ;
12770 char * kwnames[] = {
12771 (char *) "self",(char *) "position",(char *) "style", NULL
12772 };
12773
12774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12776 if (!SWIG_IsOK(res1)) {
12777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12778 }
12779 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12780 ecode2 = SWIG_AsVal_long(obj1, &val2);
12781 if (!SWIG_IsOK(ecode2)) {
12782 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'");
12783 }
12784 arg2 = static_cast< long >(val2);
12785 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTextAttr, 0 );
12786 if (!SWIG_IsOK(res3)) {
12787 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12788 }
12789 if (!argp3) {
12790 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12791 }
12792 arg3 = reinterpret_cast< wxTextAttr * >(argp3);
12793 {
12794 PyThreadState* __tstate = wxPyBeginAllowThreads();
12795 result = (bool)(arg1)->GetStyle(arg2,*arg3);
12796 wxPyEndAllowThreads(__tstate);
12797 if (PyErr_Occurred()) SWIG_fail;
12798 }
12799 {
12800 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12801 }
12802 return resultobj;
12803fail:
12804 return NULL;
12805}
12806
12807
12808SWIGINTERN PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12809 PyObject *resultobj = 0;
12810 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12811 wxTextAttr *arg2 = 0 ;
12812 bool result;
12813 void *argp1 = 0 ;
12814 int res1 = 0 ;
12815 void *argp2 = 0 ;
12816 int res2 = 0 ;
12817 PyObject * obj0 = 0 ;
12818 PyObject * obj1 = 0 ;
12819 char * kwnames[] = {
12820 (char *) "self",(char *) "style", NULL
12821 };
12822
12823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12825 if (!SWIG_IsOK(res1)) {
12826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12827 }
12828 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12829 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
12830 if (!SWIG_IsOK(res2)) {
12831 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12832 }
12833 if (!argp2) {
12834 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12835 }
12836 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
12837 {
12838 PyThreadState* __tstate = wxPyBeginAllowThreads();
12839 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
12840 wxPyEndAllowThreads(__tstate);
12841 if (PyErr_Occurred()) SWIG_fail;
12842 }
12843 {
12844 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12845 }
12846 return resultobj;
12847fail:
12848 return NULL;
d14a1e28
RD
12849}
12850
12851
0085ce49
RD
12852SWIGINTERN PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12853 PyObject *resultobj = 0;
12854 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12855 wxTextAttr *result = 0 ;
12856 void *argp1 = 0 ;
12857 int res1 = 0 ;
12858 PyObject *swig_obj[1] ;
12859
12860 if (!args) SWIG_fail;
12861 swig_obj[0] = args;
12862 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12863 if (!SWIG_IsOK(res1)) {
12864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12865 }
12866 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12867 {
12868 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 12869 {
0085ce49
RD
12870 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
12871 result = (wxTextAttr *) &_result_ref;
093d3ff1 12872 }
0085ce49
RD
12873 wxPyEndAllowThreads(__tstate);
12874 if (PyErr_Occurred()) SWIG_fail;
12875 }
12876 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, 0 | 0 );
12877 return resultobj;
12878fail:
12879 return NULL;
12880}
12881
12882
12883SWIGINTERN PyObject *_wrap_TextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12884 PyObject *resultobj = 0;
12885 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12886 long arg2 ;
12887 long arg3 ;
12888 long result;
12889 void *argp1 = 0 ;
12890 int res1 = 0 ;
12891 long val2 ;
12892 int ecode2 = 0 ;
12893 long val3 ;
12894 int ecode3 = 0 ;
12895 PyObject * obj0 = 0 ;
12896 PyObject * obj1 = 0 ;
12897 PyObject * obj2 = 0 ;
12898 char * kwnames[] = {
12899 (char *) "self",(char *) "x",(char *) "y", NULL
12900 };
12901
12902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12904 if (!SWIG_IsOK(res1)) {
12905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12906 }
12907 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12908 ecode2 = SWIG_AsVal_long(obj1, &val2);
12909 if (!SWIG_IsOK(ecode2)) {
12910 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'");
12911 }
12912 arg2 = static_cast< long >(val2);
12913 ecode3 = SWIG_AsVal_long(obj2, &val3);
12914 if (!SWIG_IsOK(ecode3)) {
12915 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'");
12916 }
12917 arg3 = static_cast< long >(val3);
12918 {
12919 PyThreadState* __tstate = wxPyBeginAllowThreads();
12920 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
12921 wxPyEndAllowThreads(__tstate);
12922 if (PyErr_Occurred()) SWIG_fail;
12923 }
12924 resultobj = SWIG_From_long(static_cast< long >(result));
12925 return resultobj;
12926fail:
12927 return NULL;
12928}
12929
12930
12931SWIGINTERN PyObject *_wrap_TextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12932 PyObject *resultobj = 0;
12933 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12934 long arg2 ;
12935 long *arg3 = (long *) 0 ;
12936 long *arg4 = (long *) 0 ;
12937 void *argp1 = 0 ;
12938 int res1 = 0 ;
12939 long val2 ;
12940 int ecode2 = 0 ;
12941 long temp3 ;
12942 int res3 = SWIG_TMPOBJ ;
12943 long temp4 ;
12944 int res4 = SWIG_TMPOBJ ;
12945 PyObject * obj0 = 0 ;
12946 PyObject * obj1 = 0 ;
12947 char * kwnames[] = {
12948 (char *) "self",(char *) "pos", NULL
12949 };
12950
12951 arg3 = &temp3;
12952 arg4 = &temp4;
12953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail;
12954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12955 if (!SWIG_IsOK(res1)) {
12956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12957 }
12958 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12959 ecode2 = SWIG_AsVal_long(obj1, &val2);
12960 if (!SWIG_IsOK(ecode2)) {
12961 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'");
12962 }
12963 arg2 = static_cast< long >(val2);
12964 {
12965 PyThreadState* __tstate = wxPyBeginAllowThreads();
12966 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
12967 wxPyEndAllowThreads(__tstate);
12968 if (PyErr_Occurred()) SWIG_fail;
12969 }
12970 resultobj = SWIG_Py_Void();
12971 if (SWIG_IsTmpObj(res3)) {
12972 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12973 } else {
12974 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12975 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
12976 }
12977 if (SWIG_IsTmpObj(res4)) {
12978 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
12979 } else {
12980 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12981 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
12982 }
12983 return resultobj;
12984fail:
12985 return NULL;
12986}
12987
12988
12989SWIGINTERN PyObject *_wrap_TextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12990 PyObject *resultobj = 0;
12991 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12992 long arg2 ;
12993 void *argp1 = 0 ;
12994 int res1 = 0 ;
12995 long val2 ;
12996 int ecode2 = 0 ;
12997 PyObject * obj0 = 0 ;
12998 PyObject * obj1 = 0 ;
12999 char * kwnames[] = {
13000 (char *) "self",(char *) "pos", NULL
13001 };
13002
13003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail;
13004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13005 if (!SWIG_IsOK(res1)) {
13006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13007 }
13008 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13009 ecode2 = SWIG_AsVal_long(obj1, &val2);
13010 if (!SWIG_IsOK(ecode2)) {
13011 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'");
13012 }
13013 arg2 = static_cast< long >(val2);
13014 {
13015 PyThreadState* __tstate = wxPyBeginAllowThreads();
13016 (arg1)->ShowPosition(arg2);
13017 wxPyEndAllowThreads(__tstate);
13018 if (PyErr_Occurred()) SWIG_fail;
13019 }
13020 resultobj = SWIG_Py_Void();
13021 return resultobj;
13022fail:
13023 return NULL;
13024}
13025
13026
13027SWIGINTERN PyObject *_wrap_TextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13028 PyObject *resultobj = 0;
13029 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13030 wxPoint *arg2 = 0 ;
13031 long *arg3 = (long *) 0 ;
13032 long *arg4 = (long *) 0 ;
13033 wxTextCtrlHitTestResult result;
13034 void *argp1 = 0 ;
13035 int res1 = 0 ;
13036 wxPoint temp2 ;
13037 long temp3 ;
13038 int res3 = SWIG_TMPOBJ ;
13039 long temp4 ;
13040 int res4 = SWIG_TMPOBJ ;
13041 PyObject * obj0 = 0 ;
13042 PyObject * obj1 = 0 ;
13043 char * kwnames[] = {
13044 (char *) "self",(char *) "pt", NULL
13045 };
13046
13047 arg3 = &temp3;
13048 arg4 = &temp4;
13049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
13050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13051 if (!SWIG_IsOK(res1)) {
13052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTest" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13053 }
13054 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13055 {
13056 arg2 = &temp2;
13057 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13058 }
13059 {
13060 PyThreadState* __tstate = wxPyBeginAllowThreads();
13061 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
13062 wxPyEndAllowThreads(__tstate);
13063 if (PyErr_Occurred()) SWIG_fail;
13064 }
13065 resultobj = SWIG_From_int(static_cast< int >(result));
13066 if (SWIG_IsTmpObj(res3)) {
13067 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13068 } else {
13069 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13070 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13071 }
13072 if (SWIG_IsTmpObj(res4)) {
13073 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13074 } else {
13075 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13076 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13077 }
13078 return resultobj;
13079fail:
13080 return NULL;
13081}
13082
13083
13084SWIGINTERN PyObject *_wrap_TextCtrl_HitTestPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13085 PyObject *resultobj = 0;
13086 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13087 wxPoint *arg2 = 0 ;
13088 long *arg3 = (long *) 0 ;
13089 wxTextCtrlHitTestResult result;
13090 void *argp1 = 0 ;
13091 int res1 = 0 ;
13092 wxPoint temp2 ;
13093 long temp3 ;
13094 int res3 = SWIG_TMPOBJ ;
13095 PyObject * obj0 = 0 ;
13096 PyObject * obj1 = 0 ;
13097 char * kwnames[] = {
13098 (char *) "self",(char *) "pt", NULL
13099 };
13100
13101 arg3 = &temp3;
13102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) SWIG_fail;
13103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13104 if (!SWIG_IsOK(res1)) {
13105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTestPos" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13106 }
13107 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13108 {
13109 arg2 = &temp2;
13110 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13111 }
13112 {
13113 PyThreadState* __tstate = wxPyBeginAllowThreads();
13114 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
13115 wxPyEndAllowThreads(__tstate);
13116 if (PyErr_Occurred()) SWIG_fail;
13117 }
13118 resultobj = SWIG_From_int(static_cast< int >(result));
13119 if (SWIG_IsTmpObj(res3)) {
13120 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13121 } else {
13122 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13123 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13124 }
13125 return resultobj;
13126fail:
13127 return NULL;
d14a1e28
RD
13128}
13129
13130
0085ce49
RD
13131SWIGINTERN PyObject *_wrap_TextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13132 PyObject *resultobj = 0;
13133 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13134 void *argp1 = 0 ;
13135 int res1 = 0 ;
13136 PyObject *swig_obj[1] ;
13137
13138 if (!args) SWIG_fail;
13139 swig_obj[0] = args;
13140 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13141 if (!SWIG_IsOK(res1)) {
13142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Copy" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13143 }
13144 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13145 {
13146 PyThreadState* __tstate = wxPyBeginAllowThreads();
13147 (arg1)->Copy();
13148 wxPyEndAllowThreads(__tstate);
13149 if (PyErr_Occurred()) SWIG_fail;
13150 }
13151 resultobj = SWIG_Py_Void();
13152 return resultobj;
13153fail:
13154 return NULL;
d14a1e28 13155}
0085ce49
RD
13156
13157
13158SWIGINTERN PyObject *_wrap_TextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13159 PyObject *resultobj = 0;
13160 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13161 void *argp1 = 0 ;
13162 int res1 = 0 ;
13163 PyObject *swig_obj[1] ;
13164
13165 if (!args) SWIG_fail;
13166 swig_obj[0] = args;
13167 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13168 if (!SWIG_IsOK(res1)) {
13169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Cut" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13170 }
13171 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13172 {
13173 PyThreadState* __tstate = wxPyBeginAllowThreads();
13174 (arg1)->Cut();
13175 wxPyEndAllowThreads(__tstate);
13176 if (PyErr_Occurred()) SWIG_fail;
13177 }
13178 resultobj = SWIG_Py_Void();
13179 return resultobj;
13180fail:
13181 return NULL;
b2dc1044
RD
13182}
13183
13184
0085ce49
RD
13185SWIGINTERN PyObject *_wrap_TextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13186 PyObject *resultobj = 0;
13187 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13188 void *argp1 = 0 ;
13189 int res1 = 0 ;
13190 PyObject *swig_obj[1] ;
13191
13192 if (!args) SWIG_fail;
13193 swig_obj[0] = args;
13194 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13195 if (!SWIG_IsOK(res1)) {
13196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Paste" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13197 }
13198 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13199 {
13200 PyThreadState* __tstate = wxPyBeginAllowThreads();
13201 (arg1)->Paste();
13202 wxPyEndAllowThreads(__tstate);
13203 if (PyErr_Occurred()) SWIG_fail;
13204 }
13205 resultobj = SWIG_Py_Void();
13206 return resultobj;
13207fail:
13208 return NULL;
d14a1e28
RD
13209}
13210
13211
0085ce49
RD
13212SWIGINTERN PyObject *_wrap_TextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13213 PyObject *resultobj = 0;
13214 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13215 bool result;
13216 void *argp1 = 0 ;
13217 int res1 = 0 ;
13218 PyObject *swig_obj[1] ;
13219
13220 if (!args) SWIG_fail;
13221 swig_obj[0] = args;
13222 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13223 if (!SWIG_IsOK(res1)) {
13224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13225 }
13226 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13227 {
13228 PyThreadState* __tstate = wxPyBeginAllowThreads();
13229 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
13230 wxPyEndAllowThreads(__tstate);
13231 if (PyErr_Occurred()) SWIG_fail;
13232 }
13233 {
13234 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13235 }
13236 return resultobj;
13237fail:
13238 return NULL;
d14a1e28
RD
13239}
13240
13241
0085ce49
RD
13242SWIGINTERN PyObject *_wrap_TextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13243 PyObject *resultobj = 0;
13244 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13245 bool result;
13246 void *argp1 = 0 ;
13247 int res1 = 0 ;
13248 PyObject *swig_obj[1] ;
13249
13250 if (!args) SWIG_fail;
13251 swig_obj[0] = args;
13252 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13253 if (!SWIG_IsOK(res1)) {
13254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCut" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13255 }
13256 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13257 {
13258 PyThreadState* __tstate = wxPyBeginAllowThreads();
13259 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
13260 wxPyEndAllowThreads(__tstate);
13261 if (PyErr_Occurred()) SWIG_fail;
13262 }
13263 {
13264 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13265 }
13266 return resultobj;
13267fail:
13268 return NULL;
994141e6
RD
13269}
13270
13271
0085ce49
RD
13272SWIGINTERN PyObject *_wrap_TextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13273 PyObject *resultobj = 0;
13274 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13275 bool result;
13276 void *argp1 = 0 ;
13277 int res1 = 0 ;
13278 PyObject *swig_obj[1] ;
13279
13280 if (!args) SWIG_fail;
13281 swig_obj[0] = args;
13282 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13283 if (!SWIG_IsOK(res1)) {
13284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13285 }
13286 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13287 {
13288 PyThreadState* __tstate = wxPyBeginAllowThreads();
13289 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
13290 wxPyEndAllowThreads(__tstate);
13291 if (PyErr_Occurred()) SWIG_fail;
13292 }
13293 {
13294 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13295 }
13296 return resultobj;
13297fail:
13298 return NULL;
d14a1e28
RD
13299}
13300
13301
0085ce49
RD
13302SWIGINTERN PyObject *_wrap_TextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13303 PyObject *resultobj = 0;
13304 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13305 void *argp1 = 0 ;
13306 int res1 = 0 ;
13307 PyObject *swig_obj[1] ;
13308
13309 if (!args) SWIG_fail;
13310 swig_obj[0] = args;
13311 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13312 if (!SWIG_IsOK(res1)) {
13313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Undo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13314 }
13315 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13316 {
13317 PyThreadState* __tstate = wxPyBeginAllowThreads();
13318 (arg1)->Undo();
13319 wxPyEndAllowThreads(__tstate);
13320 if (PyErr_Occurred()) SWIG_fail;
13321 }
13322 resultobj = SWIG_Py_Void();
13323 return resultobj;
13324fail:
13325 return NULL;
d14a1e28
RD
13326}
13327
13328
0085ce49
RD
13329SWIGINTERN PyObject *_wrap_TextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13330 PyObject *resultobj = 0;
13331 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13332 void *argp1 = 0 ;
13333 int res1 = 0 ;
13334 PyObject *swig_obj[1] ;
13335
13336 if (!args) SWIG_fail;
13337 swig_obj[0] = args;
13338 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13339 if (!SWIG_IsOK(res1)) {
13340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Redo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13341 }
13342 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13343 {
13344 PyThreadState* __tstate = wxPyBeginAllowThreads();
13345 (arg1)->Redo();
13346 wxPyEndAllowThreads(__tstate);
13347 if (PyErr_Occurred()) SWIG_fail;
13348 }
13349 resultobj = SWIG_Py_Void();
13350 return resultobj;
13351fail:
13352 return NULL;
d14a1e28
RD
13353}
13354
13355
0085ce49
RD
13356SWIGINTERN PyObject *_wrap_TextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13357 PyObject *resultobj = 0;
13358 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13359 bool result;
13360 void *argp1 = 0 ;
13361 int res1 = 0 ;
13362 PyObject *swig_obj[1] ;
13363
13364 if (!args) SWIG_fail;
13365 swig_obj[0] = args;
13366 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13367 if (!SWIG_IsOK(res1)) {
13368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13369 }
13370 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13371 {
13372 PyThreadState* __tstate = wxPyBeginAllowThreads();
13373 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
13374 wxPyEndAllowThreads(__tstate);
13375 if (PyErr_Occurred()) SWIG_fail;
13376 }
13377 {
13378 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13379 }
13380 return resultobj;
13381fail:
13382 return NULL;
d14a1e28
RD
13383}
13384
13385
0085ce49
RD
13386SWIGINTERN PyObject *_wrap_TextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13387 PyObject *resultobj = 0;
13388 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13389 bool result;
13390 void *argp1 = 0 ;
13391 int res1 = 0 ;
13392 PyObject *swig_obj[1] ;
13393
13394 if (!args) SWIG_fail;
13395 swig_obj[0] = args;
13396 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13397 if (!SWIG_IsOK(res1)) {
13398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13399 }
13400 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13401 {
13402 PyThreadState* __tstate = wxPyBeginAllowThreads();
13403 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
13404 wxPyEndAllowThreads(__tstate);
13405 if (PyErr_Occurred()) SWIG_fail;
13406 }
13407 {
13408 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13409 }
13410 return resultobj;
13411fail:
13412 return NULL;
13413}
13414
13415
13416SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13417 PyObject *resultobj = 0;
13418 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13419 long arg2 ;
13420 void *argp1 = 0 ;
13421 int res1 = 0 ;
13422 long val2 ;
13423 int ecode2 = 0 ;
13424 PyObject * obj0 = 0 ;
13425 PyObject * obj1 = 0 ;
13426 char * kwnames[] = {
13427 (char *) "self",(char *) "pos", NULL
13428 };
13429
13430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
13431 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13432 if (!SWIG_IsOK(res1)) {
13433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13434 }
13435 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13436 ecode2 = SWIG_AsVal_long(obj1, &val2);
13437 if (!SWIG_IsOK(ecode2)) {
13438 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
13439 }
13440 arg2 = static_cast< long >(val2);
13441 {
13442 PyThreadState* __tstate = wxPyBeginAllowThreads();
13443 (arg1)->SetInsertionPoint(arg2);
13444 wxPyEndAllowThreads(__tstate);
13445 if (PyErr_Occurred()) SWIG_fail;
13446 }
13447 resultobj = SWIG_Py_Void();
13448 return resultobj;
13449fail:
13450 return NULL;
d14a1e28
RD
13451}
13452
13453
0085ce49
RD
13454SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13455 PyObject *resultobj = 0;
13456 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13457 void *argp1 = 0 ;
13458 int res1 = 0 ;
13459 PyObject *swig_obj[1] ;
13460
13461 if (!args) SWIG_fail;
13462 swig_obj[0] = args;
13463 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13464 if (!SWIG_IsOK(res1)) {
13465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13466 }
13467 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13468 {
13469 PyThreadState* __tstate = wxPyBeginAllowThreads();
13470 (arg1)->SetInsertionPointEnd();
13471 wxPyEndAllowThreads(__tstate);
13472 if (PyErr_Occurred()) SWIG_fail;
13473 }
13474 resultobj = SWIG_Py_Void();
13475 return resultobj;
13476fail:
13477 return NULL;
d14a1e28
RD
13478}
13479
13480
0085ce49
RD
13481SWIGINTERN PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13482 PyObject *resultobj = 0;
13483 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13484 long result;
13485 void *argp1 = 0 ;
13486 int res1 = 0 ;
13487 PyObject *swig_obj[1] ;
13488
13489 if (!args) SWIG_fail;
13490 swig_obj[0] = args;
13491 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13492 if (!SWIG_IsOK(res1)) {
13493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13494 }
13495 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13496 {
13497 PyThreadState* __tstate = wxPyBeginAllowThreads();
13498 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
13499 wxPyEndAllowThreads(__tstate);
13500 if (PyErr_Occurred()) SWIG_fail;
13501 }
13502 resultobj = SWIG_From_long(static_cast< long >(result));
13503 return resultobj;
13504fail:
13505 return NULL;
d14a1e28
RD
13506}
13507
13508
0085ce49
RD
13509SWIGINTERN PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13510 PyObject *resultobj = 0;
13511 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13512 long result;
13513 void *argp1 = 0 ;
13514 int res1 = 0 ;
13515 PyObject *swig_obj[1] ;
13516
13517 if (!args) SWIG_fail;
13518 swig_obj[0] = args;
13519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13520 if (!SWIG_IsOK(res1)) {
13521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13522 }
13523 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13524 {
13525 PyThreadState* __tstate = wxPyBeginAllowThreads();
13526 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
13527 wxPyEndAllowThreads(__tstate);
13528 if (PyErr_Occurred()) SWIG_fail;
13529 }
13530 resultobj = SWIG_From_long(static_cast< long >(result));
13531 return resultobj;
13532fail:
13533 return NULL;
13534}
13535
13536
13537SWIGINTERN PyObject *_wrap_TextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13538 PyObject *resultobj = 0;
13539 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13540 long arg2 ;
13541 long arg3 ;
13542 void *argp1 = 0 ;
13543 int res1 = 0 ;
13544 long val2 ;
13545 int ecode2 = 0 ;
13546 long val3 ;
13547 int ecode3 = 0 ;
13548 PyObject * obj0 = 0 ;
13549 PyObject * obj1 = 0 ;
13550 PyObject * obj2 = 0 ;
13551 char * kwnames[] = {
13552 (char *) "self",(char *) "_from",(char *) "to", NULL
13553 };
13554
13555 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13556 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13557 if (!SWIG_IsOK(res1)) {
13558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13559 }
13560 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13561 ecode2 = SWIG_AsVal_long(obj1, &val2);
13562 if (!SWIG_IsOK(ecode2)) {
13563 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
13564 }
13565 arg2 = static_cast< long >(val2);
13566 ecode3 = SWIG_AsVal_long(obj2, &val3);
13567 if (!SWIG_IsOK(ecode3)) {
13568 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
13569 }
13570 arg3 = static_cast< long >(val3);
13571 {
13572 PyThreadState* __tstate = wxPyBeginAllowThreads();
13573 (arg1)->SetSelection(arg2,arg3);
13574 wxPyEndAllowThreads(__tstate);
13575 if (PyErr_Occurred()) SWIG_fail;
13576 }
13577 resultobj = SWIG_Py_Void();
13578 return resultobj;
13579fail:
13580 return NULL;
d14a1e28
RD
13581}
13582
13583
0085ce49
RD
13584SWIGINTERN PyObject *_wrap_TextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13585 PyObject *resultobj = 0;
13586 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13587 void *argp1 = 0 ;
13588 int res1 = 0 ;
13589 PyObject *swig_obj[1] ;
13590
13591 if (!args) SWIG_fail;
13592 swig_obj[0] = args;
13593 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13594 if (!SWIG_IsOK(res1)) {
13595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13596 }
13597 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13598 {
13599 PyThreadState* __tstate = wxPyBeginAllowThreads();
13600 (arg1)->SelectAll();
13601 wxPyEndAllowThreads(__tstate);
13602 if (PyErr_Occurred()) SWIG_fail;
13603 }
13604 resultobj = SWIG_Py_Void();
13605 return resultobj;
13606fail:
13607 return NULL;
13608}
13609
13610
13611SWIGINTERN PyObject *_wrap_TextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13612 PyObject *resultobj = 0;
13613 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13614 bool arg2 ;
13615 void *argp1 = 0 ;
13616 int res1 = 0 ;
13617 bool val2 ;
13618 int ecode2 = 0 ;
13619 PyObject * obj0 = 0 ;
13620 PyObject * obj1 = 0 ;
13621 char * kwnames[] = {
13622 (char *) "self",(char *) "editable", NULL
13623 };
13624
13625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
13626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13627 if (!SWIG_IsOK(res1)) {
13628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13629 }
13630 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13631 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13632 if (!SWIG_IsOK(ecode2)) {
13633 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'");
13634 }
13635 arg2 = static_cast< bool >(val2);
13636 {
13637 PyThreadState* __tstate = wxPyBeginAllowThreads();
13638 (arg1)->SetEditable(arg2);
13639 wxPyEndAllowThreads(__tstate);
13640 if (PyErr_Occurred()) SWIG_fail;
13641 }
13642 resultobj = SWIG_Py_Void();
13643 return resultobj;
13644fail:
13645 return NULL;
13646}
13647
13648
13649SWIGINTERN PyObject *_wrap_TextCtrl_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13650 PyObject *resultobj = 0;
13651 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13652 wxString *arg2 = 0 ;
13653 void *argp1 = 0 ;
13654 int res1 = 0 ;
13655 bool temp2 = false ;
13656 PyObject * obj0 = 0 ;
13657 PyObject * obj1 = 0 ;
13658 char * kwnames[] = {
13659 (char *) "self",(char *) "text", NULL
13660 };
13661
13662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) SWIG_fail;
13663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13664 if (!SWIG_IsOK(res1)) {
13665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_write" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13666 }
13667 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13668 {
13669 arg2 = wxString_in_helper(obj1);
13670 if (arg2 == NULL) SWIG_fail;
13671 temp2 = true;
13672 }
13673 {
13674 PyThreadState* __tstate = wxPyBeginAllowThreads();
13675 wxTextCtrl_write(arg1,(wxString const &)*arg2);
13676 wxPyEndAllowThreads(__tstate);
13677 if (PyErr_Occurred()) SWIG_fail;
13678 }
13679 resultobj = SWIG_Py_Void();
13680 {
13681 if (temp2)
13682 delete arg2;
13683 }
13684 return resultobj;
13685fail:
13686 {
13687 if (temp2)
13688 delete arg2;
13689 }
13690 return NULL;
13691}
13692
13693
13694SWIGINTERN PyObject *_wrap_TextCtrl_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13695 PyObject *resultobj = 0;
13696 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13697 long arg2 ;
13698 long arg3 ;
13699 wxString result;
13700 void *argp1 = 0 ;
13701 int res1 = 0 ;
13702 long val2 ;
13703 int ecode2 = 0 ;
13704 long val3 ;
13705 int ecode3 = 0 ;
13706 PyObject * obj0 = 0 ;
13707 PyObject * obj1 = 0 ;
13708 PyObject * obj2 = 0 ;
13709 char * kwnames[] = {
13710 (char *) "self",(char *) "_from",(char *) "to", NULL
13711 };
13712
13713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13714 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13715 if (!SWIG_IsOK(res1)) {
13716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetString" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13717 }
13718 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13719 ecode2 = SWIG_AsVal_long(obj1, &val2);
13720 if (!SWIG_IsOK(ecode2)) {
13721 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetString" "', expected argument " "2"" of type '" "long""'");
13722 }
13723 arg2 = static_cast< long >(val2);
13724 ecode3 = SWIG_AsVal_long(obj2, &val3);
13725 if (!SWIG_IsOK(ecode3)) {
13726 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetString" "', expected argument " "3"" of type '" "long""'");
13727 }
13728 arg3 = static_cast< long >(val3);
13729 {
13730 PyThreadState* __tstate = wxPyBeginAllowThreads();
13731 result = wxTextCtrl_GetString(arg1,arg2,arg3);
13732 wxPyEndAllowThreads(__tstate);
13733 if (PyErr_Occurred()) SWIG_fail;
13734 }
13735 {
13736#if wxUSE_UNICODE
13737 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13738#else
13739 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13740#endif
13741 }
13742 return resultobj;
13743fail:
13744 return NULL;
d14a1e28
RD
13745}
13746
13747
0085ce49
RD
13748SWIGINTERN PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13749 PyObject *resultobj = 0;
13750 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
13751 SwigValueWrapper<wxVisualAttributes > result;
13752 int val1 ;
13753 int ecode1 = 0 ;
13754 PyObject * obj0 = 0 ;
13755 char * kwnames[] = {
13756 (char *) "variant", NULL
13757 };
13758
13759 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
13760 if (obj0) {
13761 ecode1 = SWIG_AsVal_int(obj0, &val1);
13762 if (!SWIG_IsOK(ecode1)) {
13763 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TextCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
13764 }
13765 arg1 = static_cast< wxWindowVariant >(val1);
13766 }
13767 {
13768 if (!wxPyCheckForApp()) SWIG_fail;
13769 PyThreadState* __tstate = wxPyBeginAllowThreads();
13770 result = wxTextCtrl::GetClassDefaultAttributes(arg1);
13771 wxPyEndAllowThreads(__tstate);
13772 if (PyErr_Occurred()) SWIG_fail;
13773 }
13774 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
13775 return resultobj;
13776fail:
13777 return NULL;
13778}
13779
13780
13781SWIGINTERN PyObject *TextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13782 PyObject *obj;
13783 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13784 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextCtrl, SWIG_NewClientData(obj));
13785 return SWIG_Py_Void();
13786}
13787
13788SWIGINTERN PyObject *TextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13789 return SWIG_Python_InitShadowInstance(args);
13790}
13791
13792SWIGINTERN PyObject *_wrap_new_TextUrlEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13793 PyObject *resultobj = 0;
13794 int arg1 ;
13795 wxMouseEvent *arg2 = 0 ;
13796 long arg3 ;
13797 long arg4 ;
13798 wxTextUrlEvent *result = 0 ;
13799 int val1 ;
13800 int ecode1 = 0 ;
13801 void *argp2 = 0 ;
13802 int res2 = 0 ;
13803 long val3 ;
13804 int ecode3 = 0 ;
13805 long val4 ;
13806 int ecode4 = 0 ;
13807 PyObject * obj0 = 0 ;
13808 PyObject * obj1 = 0 ;
13809 PyObject * obj2 = 0 ;
13810 PyObject * obj3 = 0 ;
13811 char * kwnames[] = {
13812 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
13813 };
13814
13815 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13816 ecode1 = SWIG_AsVal_int(obj0, &val1);
13817 if (!SWIG_IsOK(ecode1)) {
13818 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TextUrlEvent" "', expected argument " "1"" of type '" "int""'");
13819 }
13820 arg1 = static_cast< int >(val1);
13821 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxMouseEvent, 0 | 0);
13822 if (!SWIG_IsOK(res2)) {
13823 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
13824 }
13825 if (!argp2) {
13826 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
13827 }
13828 arg2 = reinterpret_cast< wxMouseEvent * >(argp2);
13829 ecode3 = SWIG_AsVal_long(obj2, &val3);
13830 if (!SWIG_IsOK(ecode3)) {
13831 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TextUrlEvent" "', expected argument " "3"" of type '" "long""'");
13832 }
13833 arg3 = static_cast< long >(val3);
13834 ecode4 = SWIG_AsVal_long(obj3, &val4);
13835 if (!SWIG_IsOK(ecode4)) {
13836 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextUrlEvent" "', expected argument " "4"" of type '" "long""'");
13837 }
13838 arg4 = static_cast< long >(val4);
13839 {
13840 PyThreadState* __tstate = wxPyBeginAllowThreads();
13841 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
13842 wxPyEndAllowThreads(__tstate);
13843 if (PyErr_Occurred()) SWIG_fail;
13844 }
13845 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_NEW | 0 );
13846 return resultobj;
13847fail:
13848 return NULL;
d14a1e28
RD
13849}
13850
13851
0085ce49
RD
13852SWIGINTERN PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13853 PyObject *resultobj = 0;
13854 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13855 wxMouseEvent *result = 0 ;
13856 void *argp1 = 0 ;
13857 int res1 = 0 ;
13858 PyObject *swig_obj[1] ;
13859
13860 if (!args) SWIG_fail;
13861 swig_obj[0] = args;
13862 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
13863 if (!SWIG_IsOK(res1)) {
13864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetMouseEvent" "', expected argument " "1"" of type '" "wxTextUrlEvent *""'");
13865 }
13866 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
13867 {
13868 PyThreadState* __tstate = wxPyBeginAllowThreads();
4f89f6a3 13869 {
0085ce49
RD
13870 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
13871 result = (wxMouseEvent *) &_result_ref;
4f89f6a3 13872 }
0085ce49
RD
13873 wxPyEndAllowThreads(__tstate);
13874 if (PyErr_Occurred()) SWIG_fail;
13875 }
13876 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseEvent, 0 | 0 );
13877 return resultobj;
13878fail:
13879 return NULL;
d14a1e28
RD
13880}
13881
13882
0085ce49
RD
13883SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13884 PyObject *resultobj = 0;
13885 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13886 long result;
13887 void *argp1 = 0 ;
13888 int res1 = 0 ;
13889 PyObject *swig_obj[1] ;
13890
13891 if (!args) SWIG_fail;
13892 swig_obj[0] = args;
13893 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
13894 if (!SWIG_IsOK(res1)) {
13895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLStart" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
13896 }
13897 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
13898 {
13899 PyThreadState* __tstate = wxPyBeginAllowThreads();
13900 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
13901 wxPyEndAllowThreads(__tstate);
13902 if (PyErr_Occurred()) SWIG_fail;
13903 }
13904 resultobj = SWIG_From_long(static_cast< long >(result));
13905 return resultobj;
13906fail:
13907 return NULL;
d14a1e28
RD
13908}
13909
13910
0085ce49
RD
13911SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13912 PyObject *resultobj = 0;
13913 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13914 long result;
13915 void *argp1 = 0 ;
13916 int res1 = 0 ;
13917 PyObject *swig_obj[1] ;
13918
13919 if (!args) SWIG_fail;
13920 swig_obj[0] = args;
13921 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
13922 if (!SWIG_IsOK(res1)) {
13923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLEnd" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
13924 }
13925 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
13926 {
13927 PyThreadState* __tstate = wxPyBeginAllowThreads();
13928 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
13929 wxPyEndAllowThreads(__tstate);
13930 if (PyErr_Occurred()) SWIG_fail;
13931 }
13932 resultobj = SWIG_From_long(static_cast< long >(result));
13933 return resultobj;
13934fail:
13935 return NULL;
d14a1e28
RD
13936}
13937
13938
0085ce49
RD
13939SWIGINTERN PyObject *TextUrlEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13940 PyObject *obj;
13941 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13942 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextUrlEvent, SWIG_NewClientData(obj));
13943 return SWIG_Py_Void();
d14a1e28
RD
13944}
13945
0085ce49
RD
13946SWIGINTERN PyObject *TextUrlEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13947 return SWIG_Python_InitShadowInstance(args);
13948}
d14a1e28 13949
0085ce49
RD
13950SWIGINTERN int ScrollBarNameStr_set(PyObject *) {
13951 SWIG_Error(SWIG_AttributeError,"Variable ScrollBarNameStr is read-only.");
13952 return 1;
13953}
13954
13955
13956SWIGINTERN PyObject *ScrollBarNameStr_get(void) {
13957 PyObject *pyobj = 0;
13958
13959 {
13960#if wxUSE_UNICODE
13961 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
13962#else
13963 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
13964#endif
13965 }
13966 return pyobj;
13967}
13968
13969
13970SWIGINTERN PyObject *_wrap_new_ScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13971 PyObject *resultobj = 0;
13972 wxWindow *arg1 = (wxWindow *) 0 ;
13973 int arg2 = (int) -1 ;
13974 wxPoint const &arg3_defvalue = wxDefaultPosition ;
13975 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
13976 wxSize const &arg4_defvalue = wxDefaultSize ;
13977 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
13978 long arg5 = (long) wxSB_HORIZONTAL ;
13979 wxValidator const &arg6_defvalue = wxDefaultValidator ;
13980 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
13981 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
13982 wxString *arg7 = (wxString *) &arg7_defvalue ;
13983 wxScrollBar *result = 0 ;
13984 void *argp1 = 0 ;
13985 int res1 = 0 ;
13986 int val2 ;
13987 int ecode2 = 0 ;
13988 wxPoint temp3 ;
13989 wxSize temp4 ;
13990 long val5 ;
13991 int ecode5 = 0 ;
13992 void *argp6 = 0 ;
13993 int res6 = 0 ;
13994 bool temp7 = false ;
13995 PyObject * obj0 = 0 ;
13996 PyObject * obj1 = 0 ;
13997 PyObject * obj2 = 0 ;
13998 PyObject * obj3 = 0 ;
13999 PyObject * obj4 = 0 ;
14000 PyObject * obj5 = 0 ;
14001 PyObject * obj6 = 0 ;
14002 char * kwnames[] = {
14003 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14004 };
14005
14006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14008 if (!SWIG_IsOK(res1)) {
14009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrollBar" "', expected argument " "1"" of type '" "wxWindow *""'");
14010 }
14011 arg1 = reinterpret_cast< wxWindow * >(argp1);
14012 if (obj1) {
14013 ecode2 = SWIG_AsVal_int(obj1, &val2);
14014 if (!SWIG_IsOK(ecode2)) {
14015 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollBar" "', expected argument " "2"" of type '" "int""'");
14016 }
14017 arg2 = static_cast< int >(val2);
14018 }
14019 if (obj2) {
d14a1e28 14020 {
0085ce49
RD
14021 arg3 = &temp3;
14022 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 14023 }
0085ce49
RD
14024 }
14025 if (obj3) {
4f89f6a3 14026 {
0085ce49
RD
14027 arg4 = &temp4;
14028 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 14029 }
0085ce49
RD
14030 }
14031 if (obj4) {
14032 ecode5 = SWIG_AsVal_long(obj4, &val5);
14033 if (!SWIG_IsOK(ecode5)) {
14034 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrollBar" "', expected argument " "5"" of type '" "long""'");
14035 }
14036 arg5 = static_cast< long >(val5);
14037 }
14038 if (obj5) {
14039 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
14040 if (!SWIG_IsOK(res6)) {
14041 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14042 }
14043 if (!argp6) {
14044 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14045 }
14046 arg6 = reinterpret_cast< wxValidator * >(argp6);
14047 }
14048 if (obj6) {
14049 {
14050 arg7 = wxString_in_helper(obj6);
14051 if (arg7 == NULL) SWIG_fail;
14052 temp7 = true;
14053 }
14054 }
14055 {
14056 if (!wxPyCheckForApp()) SWIG_fail;
14057 PyThreadState* __tstate = wxPyBeginAllowThreads();
14058 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
14059 wxPyEndAllowThreads(__tstate);
14060 if (PyErr_Occurred()) SWIG_fail;
14061 }
14062 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_NEW | 0 );
14063 {
14064 if (temp7)
14065 delete arg7;
14066 }
14067 return resultobj;
14068fail:
14069 {
14070 if (temp7)
14071 delete arg7;
14072 }
14073 return NULL;
d14a1e28
RD
14074}
14075
14076
0085ce49
RD
14077SWIGINTERN PyObject *_wrap_new_PreScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14078 PyObject *resultobj = 0;
14079 wxScrollBar *result = 0 ;
14080
14081 if (!SWIG_Python_UnpackTuple(args,"new_PreScrollBar",0,0,0)) SWIG_fail;
14082 {
14083 if (!wxPyCheckForApp()) SWIG_fail;
14084 PyThreadState* __tstate = wxPyBeginAllowThreads();
14085 result = (wxScrollBar *)new wxScrollBar();
14086 wxPyEndAllowThreads(__tstate);
14087 if (PyErr_Occurred()) SWIG_fail;
14088 }
14089 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_OWN | 0 );
14090 return resultobj;
14091fail:
14092 return NULL;
14093}
14094
14095
14096SWIGINTERN PyObject *_wrap_ScrollBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14097 PyObject *resultobj = 0;
14098 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14099 wxWindow *arg2 = (wxWindow *) 0 ;
14100 int arg3 = (int) -1 ;
14101 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14102 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14103 wxSize const &arg5_defvalue = wxDefaultSize ;
14104 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14105 long arg6 = (long) wxSB_HORIZONTAL ;
14106 wxValidator const &arg7_defvalue = wxDefaultValidator ;
14107 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
14108 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
14109 wxString *arg8 = (wxString *) &arg8_defvalue ;
14110 bool result;
14111 void *argp1 = 0 ;
14112 int res1 = 0 ;
14113 void *argp2 = 0 ;
14114 int res2 = 0 ;
14115 int val3 ;
14116 int ecode3 = 0 ;
14117 wxPoint temp4 ;
14118 wxSize temp5 ;
14119 long val6 ;
14120 int ecode6 = 0 ;
14121 void *argp7 = 0 ;
14122 int res7 = 0 ;
14123 bool temp8 = false ;
14124 PyObject * obj0 = 0 ;
14125 PyObject * obj1 = 0 ;
14126 PyObject * obj2 = 0 ;
14127 PyObject * obj3 = 0 ;
14128 PyObject * obj4 = 0 ;
14129 PyObject * obj5 = 0 ;
14130 PyObject * obj6 = 0 ;
14131 PyObject * obj7 = 0 ;
14132 char * kwnames[] = {
14133 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14134 };
14135
14136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
14137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14138 if (!SWIG_IsOK(res1)) {
14139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_Create" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14140 }
14141 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14142 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14143 if (!SWIG_IsOK(res2)) {
14144 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrollBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14145 }
14146 arg2 = reinterpret_cast< wxWindow * >(argp2);
14147 if (obj2) {
14148 ecode3 = SWIG_AsVal_int(obj2, &val3);
14149 if (!SWIG_IsOK(ecode3)) {
14150 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrollBar_Create" "', expected argument " "3"" of type '" "int""'");
14151 }
14152 arg3 = static_cast< int >(val3);
14153 }
14154 if (obj3) {
093d3ff1 14155 {
0085ce49
RD
14156 arg4 = &temp4;
14157 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 14158 }
0085ce49
RD
14159 }
14160 if (obj4) {
d14a1e28 14161 {
0085ce49
RD
14162 arg5 = &temp5;
14163 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14164 }
14165 }
14166 if (obj5) {
14167 ecode6 = SWIG_AsVal_long(obj5, &val6);
14168 if (!SWIG_IsOK(ecode6)) {
14169 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrollBar_Create" "', expected argument " "6"" of type '" "long""'");
14170 }
14171 arg6 = static_cast< long >(val6);
14172 }
14173 if (obj6) {
14174 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
14175 if (!SWIG_IsOK(res7)) {
14176 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 14177 }
0085ce49
RD
14178 if (!argp7) {
14179 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14180 }
14181 arg7 = reinterpret_cast< wxValidator * >(argp7);
14182 }
14183 if (obj7) {
4f89f6a3 14184 {
0085ce49
RD
14185 arg8 = wxString_in_helper(obj7);
14186 if (arg8 == NULL) SWIG_fail;
14187 temp8 = true;
4f89f6a3 14188 }
0085ce49
RD
14189 }
14190 {
14191 PyThreadState* __tstate = wxPyBeginAllowThreads();
14192 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
14193 wxPyEndAllowThreads(__tstate);
14194 if (PyErr_Occurred()) SWIG_fail;
14195 }
14196 {
14197 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14198 }
14199 {
14200 if (temp8)
14201 delete arg8;
14202 }
14203 return resultobj;
14204fail:
14205 {
14206 if (temp8)
14207 delete arg8;
14208 }
14209 return NULL;
d14a1e28
RD
14210}
14211
14212
0085ce49
RD
14213SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14214 PyObject *resultobj = 0;
14215 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14216 int result;
14217 void *argp1 = 0 ;
14218 int res1 = 0 ;
14219 PyObject *swig_obj[1] ;
14220
14221 if (!args) SWIG_fail;
14222 swig_obj[0] = args;
14223 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14224 if (!SWIG_IsOK(res1)) {
14225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14226 }
14227 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14228 {
14229 PyThreadState* __tstate = wxPyBeginAllowThreads();
14230 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
14231 wxPyEndAllowThreads(__tstate);
14232 if (PyErr_Occurred()) SWIG_fail;
14233 }
14234 resultobj = SWIG_From_int(static_cast< int >(result));
14235 return resultobj;
14236fail:
14237 return NULL;
d14a1e28
RD
14238}
14239
14240
0085ce49
RD
14241SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14242 PyObject *resultobj = 0;
14243 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14244 int result;
14245 void *argp1 = 0 ;
14246 int res1 = 0 ;
14247 PyObject *swig_obj[1] ;
14248
14249 if (!args) SWIG_fail;
14250 swig_obj[0] = args;
14251 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14252 if (!SWIG_IsOK(res1)) {
14253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14254 }
14255 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14256 {
14257 PyThreadState* __tstate = wxPyBeginAllowThreads();
14258 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
14259 wxPyEndAllowThreads(__tstate);
14260 if (PyErr_Occurred()) SWIG_fail;
14261 }
14262 resultobj = SWIG_From_int(static_cast< int >(result));
14263 return resultobj;
14264fail:
14265 return NULL;
d14a1e28
RD
14266}
14267
14268
0085ce49
RD
14269SWIGINTERN PyObject *_wrap_ScrollBar_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14270 PyObject *resultobj = 0;
14271 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14272 int result;
14273 void *argp1 = 0 ;
14274 int res1 = 0 ;
14275 PyObject *swig_obj[1] ;
14276
14277 if (!args) SWIG_fail;
14278 swig_obj[0] = args;
14279 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14280 if (!SWIG_IsOK(res1)) {
14281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetPageSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14282 }
14283 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14284 {
14285 PyThreadState* __tstate = wxPyBeginAllowThreads();
14286 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
14287 wxPyEndAllowThreads(__tstate);
14288 if (PyErr_Occurred()) SWIG_fail;
14289 }
14290 resultobj = SWIG_From_int(static_cast< int >(result));
14291 return resultobj;
14292fail:
14293 return NULL;
d14a1e28
RD
14294}
14295
14296
0085ce49
RD
14297SWIGINTERN PyObject *_wrap_ScrollBar_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14298 PyObject *resultobj = 0;
14299 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14300 int result;
14301 void *argp1 = 0 ;
14302 int res1 = 0 ;
14303 PyObject *swig_obj[1] ;
14304
14305 if (!args) SWIG_fail;
14306 swig_obj[0] = args;
14307 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14308 if (!SWIG_IsOK(res1)) {
14309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetRange" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14310 }
14311 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14312 {
14313 PyThreadState* __tstate = wxPyBeginAllowThreads();
14314 result = (int)((wxScrollBar const *)arg1)->GetRange();
14315 wxPyEndAllowThreads(__tstate);
14316 if (PyErr_Occurred()) SWIG_fail;
14317 }
14318 resultobj = SWIG_From_int(static_cast< int >(result));
14319 return resultobj;
14320fail:
14321 return NULL;
d14a1e28
RD
14322}
14323
14324
0085ce49
RD
14325SWIGINTERN PyObject *_wrap_ScrollBar_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14326 PyObject *resultobj = 0;
14327 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14328 bool result;
14329 void *argp1 = 0 ;
14330 int res1 = 0 ;
14331 PyObject *swig_obj[1] ;
14332
14333 if (!args) SWIG_fail;
14334 swig_obj[0] = args;
14335 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14336 if (!SWIG_IsOK(res1)) {
14337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_IsVertical" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14338 }
14339 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14340 {
14341 PyThreadState* __tstate = wxPyBeginAllowThreads();
14342 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
14343 wxPyEndAllowThreads(__tstate);
14344 if (PyErr_Occurred()) SWIG_fail;
14345 }
14346 {
14347 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14348 }
14349 return resultobj;
14350fail:
14351 return NULL;
14352}
14353
14354
14355SWIGINTERN PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14356 PyObject *resultobj = 0;
14357 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14358 int arg2 ;
14359 void *argp1 = 0 ;
14360 int res1 = 0 ;
14361 int val2 ;
14362 int ecode2 = 0 ;
14363 PyObject * obj0 = 0 ;
14364 PyObject * obj1 = 0 ;
14365 char * kwnames[] = {
14366 (char *) "self",(char *) "viewStart", NULL
14367 };
14368
14369 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) SWIG_fail;
14370 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14371 if (!SWIG_IsOK(res1)) {
14372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14373 }
14374 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14375 ecode2 = SWIG_AsVal_int(obj1, &val2);
14376 if (!SWIG_IsOK(ecode2)) {
14377 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "2"" of type '" "int""'");
14378 }
14379 arg2 = static_cast< int >(val2);
14380 {
14381 PyThreadState* __tstate = wxPyBeginAllowThreads();
14382 (arg1)->SetThumbPosition(arg2);
14383 wxPyEndAllowThreads(__tstate);
14384 if (PyErr_Occurred()) SWIG_fail;
14385 }
14386 resultobj = SWIG_Py_Void();
14387 return resultobj;
14388fail:
14389 return NULL;
14390}
14391
14392
14393SWIGINTERN PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14394 PyObject *resultobj = 0;
14395 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14396 SwigValueWrapper<wxVisualAttributes > result;
14397 int val1 ;
14398 int ecode1 = 0 ;
14399 PyObject * obj0 = 0 ;
14400 char * kwnames[] = {
14401 (char *) "variant", NULL
14402 };
14403
14404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14405 if (obj0) {
14406 ecode1 = SWIG_AsVal_int(obj0, &val1);
14407 if (!SWIG_IsOK(ecode1)) {
14408 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrollBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14409 }
14410 arg1 = static_cast< wxWindowVariant >(val1);
14411 }
14412 {
14413 if (!wxPyCheckForApp()) SWIG_fail;
14414 PyThreadState* __tstate = wxPyBeginAllowThreads();
14415 result = wxScrollBar::GetClassDefaultAttributes(arg1);
14416 wxPyEndAllowThreads(__tstate);
14417 if (PyErr_Occurred()) SWIG_fail;
14418 }
14419 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14420 return resultobj;
14421fail:
14422 return NULL;
d14a1e28
RD
14423}
14424
14425
0085ce49
RD
14426SWIGINTERN PyObject *ScrollBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14427 PyObject *obj;
14428 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14429 SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollBar, SWIG_NewClientData(obj));
14430 return SWIG_Py_Void();
d14a1e28
RD
14431}
14432
0085ce49
RD
14433SWIGINTERN PyObject *ScrollBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14434 return SWIG_Python_InitShadowInstance(args);
14435}
d14a1e28 14436
0085ce49
RD
14437SWIGINTERN int SPIN_BUTTON_NAME_set(PyObject *) {
14438 SWIG_Error(SWIG_AttributeError,"Variable SPIN_BUTTON_NAME is read-only.");
14439 return 1;
d14a1e28
RD
14440}
14441
14442
0085ce49
RD
14443SWIGINTERN PyObject *SPIN_BUTTON_NAME_get(void) {
14444 PyObject *pyobj = 0;
14445
14446 {
14447#if wxUSE_UNICODE
14448 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14449#else
14450 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14451#endif
14452 }
14453 return pyobj;
d14a1e28
RD
14454}
14455
14456
0085ce49
RD
14457SWIGINTERN int SpinCtrlNameStr_set(PyObject *) {
14458 SWIG_Error(SWIG_AttributeError,"Variable SpinCtrlNameStr is read-only.");
14459 return 1;
d14a1e28
RD
14460}
14461
14462
0085ce49
RD
14463SWIGINTERN PyObject *SpinCtrlNameStr_get(void) {
14464 PyObject *pyobj = 0;
14465
14466 {
14467#if wxUSE_UNICODE
14468 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14469#else
14470 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14471#endif
14472 }
14473 return pyobj;
14474}
14475
14476
14477SWIGINTERN PyObject *_wrap_new_SpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14478 PyObject *resultobj = 0;
14479 wxWindow *arg1 = (wxWindow *) 0 ;
14480 int arg2 = (int) -1 ;
14481 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14482 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14483 wxSize const &arg4_defvalue = wxDefaultSize ;
14484 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14485 long arg5 = (long) wxSP_HORIZONTAL ;
14486 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
14487 wxString *arg6 = (wxString *) &arg6_defvalue ;
14488 wxSpinButton *result = 0 ;
14489 void *argp1 = 0 ;
14490 int res1 = 0 ;
14491 int val2 ;
14492 int ecode2 = 0 ;
14493 wxPoint temp3 ;
14494 wxSize temp4 ;
14495 long val5 ;
14496 int ecode5 = 0 ;
14497 bool temp6 = false ;
14498 PyObject * obj0 = 0 ;
14499 PyObject * obj1 = 0 ;
14500 PyObject * obj2 = 0 ;
14501 PyObject * obj3 = 0 ;
14502 PyObject * obj4 = 0 ;
14503 PyObject * obj5 = 0 ;
14504 char * kwnames[] = {
14505 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14506 };
14507
14508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
14509 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14510 if (!SWIG_IsOK(res1)) {
14511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinButton" "', expected argument " "1"" of type '" "wxWindow *""'");
14512 }
14513 arg1 = reinterpret_cast< wxWindow * >(argp1);
14514 if (obj1) {
14515 ecode2 = SWIG_AsVal_int(obj1, &val2);
14516 if (!SWIG_IsOK(ecode2)) {
14517 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinButton" "', expected argument " "2"" of type '" "int""'");
14518 }
14519 arg2 = static_cast< int >(val2);
14520 }
14521 if (obj2) {
093d3ff1 14522 {
0085ce49
RD
14523 arg3 = &temp3;
14524 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 14525 }
0085ce49
RD
14526 }
14527 if (obj3) {
d14a1e28 14528 {
0085ce49
RD
14529 arg4 = &temp4;
14530 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 14531 }
0085ce49
RD
14532 }
14533 if (obj4) {
14534 ecode5 = SWIG_AsVal_long(obj4, &val5);
14535 if (!SWIG_IsOK(ecode5)) {
14536 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpinButton" "', expected argument " "5"" of type '" "long""'");
14537 }
14538 arg5 = static_cast< long >(val5);
14539 }
14540 if (obj5) {
d14a1e28 14541 {
0085ce49
RD
14542 arg6 = wxString_in_helper(obj5);
14543 if (arg6 == NULL) SWIG_fail;
14544 temp6 = true;
d14a1e28 14545 }
0085ce49
RD
14546 }
14547 {
14548 if (!wxPyCheckForApp()) SWIG_fail;
14549 PyThreadState* __tstate = wxPyBeginAllowThreads();
14550 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14551 wxPyEndAllowThreads(__tstate);
14552 if (PyErr_Occurred()) SWIG_fail;
14553 }
14554 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_NEW | 0 );
14555 {
14556 if (temp6)
14557 delete arg6;
14558 }
14559 return resultobj;
14560fail:
14561 {
14562 if (temp6)
14563 delete arg6;
14564 }
14565 return NULL;
d14a1e28
RD
14566}
14567
14568
0085ce49
RD
14569SWIGINTERN PyObject *_wrap_new_PreSpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14570 PyObject *resultobj = 0;
14571 wxSpinButton *result = 0 ;
14572
14573 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinButton",0,0,0)) SWIG_fail;
14574 {
14575 if (!wxPyCheckForApp()) SWIG_fail;
14576 PyThreadState* __tstate = wxPyBeginAllowThreads();
14577 result = (wxSpinButton *)new wxSpinButton();
14578 wxPyEndAllowThreads(__tstate);
14579 if (PyErr_Occurred()) SWIG_fail;
14580 }
14581 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_OWN | 0 );
14582 return resultobj;
14583fail:
14584 return NULL;
14585}
14586
14587
14588SWIGINTERN PyObject *_wrap_SpinButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14589 PyObject *resultobj = 0;
14590 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14591 wxWindow *arg2 = (wxWindow *) 0 ;
14592 int arg3 = (int) -1 ;
14593 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14594 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14595 wxSize const &arg5_defvalue = wxDefaultSize ;
14596 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14597 long arg6 = (long) wxSP_HORIZONTAL ;
14598 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
14599 wxString *arg7 = (wxString *) &arg7_defvalue ;
14600 bool result;
14601 void *argp1 = 0 ;
14602 int res1 = 0 ;
14603 void *argp2 = 0 ;
14604 int res2 = 0 ;
14605 int val3 ;
14606 int ecode3 = 0 ;
14607 wxPoint temp4 ;
14608 wxSize temp5 ;
14609 long val6 ;
14610 int ecode6 = 0 ;
14611 bool temp7 = false ;
14612 PyObject * obj0 = 0 ;
14613 PyObject * obj1 = 0 ;
14614 PyObject * obj2 = 0 ;
14615 PyObject * obj3 = 0 ;
14616 PyObject * obj4 = 0 ;
14617 PyObject * obj5 = 0 ;
14618 PyObject * obj6 = 0 ;
14619 char * kwnames[] = {
14620 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14621 };
14622
14623 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14624 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14625 if (!SWIG_IsOK(res1)) {
14626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_Create" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14627 }
14628 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14629 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14630 if (!SWIG_IsOK(res2)) {
14631 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14632 }
14633 arg2 = reinterpret_cast< wxWindow * >(argp2);
14634 if (obj2) {
14635 ecode3 = SWIG_AsVal_int(obj2, &val3);
14636 if (!SWIG_IsOK(ecode3)) {
14637 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_Create" "', expected argument " "3"" of type '" "int""'");
14638 }
14639 arg3 = static_cast< int >(val3);
14640 }
14641 if (obj3) {
d14a1e28 14642 {
0085ce49
RD
14643 arg4 = &temp4;
14644 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 14645 }
0085ce49
RD
14646 }
14647 if (obj4) {
d14a1e28 14648 {
0085ce49
RD
14649 arg5 = &temp5;
14650 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 14651 }
0085ce49
RD
14652 }
14653 if (obj5) {
14654 ecode6 = SWIG_AsVal_long(obj5, &val6);
14655 if (!SWIG_IsOK(ecode6)) {
14656 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SpinButton_Create" "', expected argument " "6"" of type '" "long""'");
14657 }
14658 arg6 = static_cast< long >(val6);
14659 }
14660 if (obj6) {
d14a1e28 14661 {
0085ce49
RD
14662 arg7 = wxString_in_helper(obj6);
14663 if (arg7 == NULL) SWIG_fail;
14664 temp7 = true;
d14a1e28 14665 }
0085ce49
RD
14666 }
14667 {
14668 PyThreadState* __tstate = wxPyBeginAllowThreads();
14669 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
14670 wxPyEndAllowThreads(__tstate);
14671 if (PyErr_Occurred()) SWIG_fail;
14672 }
14673 {
14674 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14675 }
14676 {
14677 if (temp7)
14678 delete arg7;
14679 }
14680 return resultobj;
14681fail:
14682 {
14683 if (temp7)
14684 delete arg7;
14685 }
14686 return NULL;
d14a1e28
RD
14687}
14688
14689
0085ce49
RD
14690SWIGINTERN PyObject *_wrap_SpinButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14691 PyObject *resultobj = 0;
14692 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14693 int result;
14694 void *argp1 = 0 ;
14695 int res1 = 0 ;
14696 PyObject *swig_obj[1] ;
14697
14698 if (!args) SWIG_fail;
14699 swig_obj[0] = args;
14700 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14701 if (!SWIG_IsOK(res1)) {
14702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetValue" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14703 }
14704 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14705 {
14706 PyThreadState* __tstate = wxPyBeginAllowThreads();
14707 result = (int)((wxSpinButton const *)arg1)->GetValue();
14708 wxPyEndAllowThreads(__tstate);
14709 if (PyErr_Occurred()) SWIG_fail;
14710 }
14711 resultobj = SWIG_From_int(static_cast< int >(result));
14712 return resultobj;
14713fail:
14714 return NULL;
d14a1e28
RD
14715}
14716
14717
0085ce49
RD
14718SWIGINTERN PyObject *_wrap_SpinButton_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14719 PyObject *resultobj = 0;
14720 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14721 int result;
14722 void *argp1 = 0 ;
14723 int res1 = 0 ;
14724 PyObject *swig_obj[1] ;
14725
14726 if (!args) SWIG_fail;
14727 swig_obj[0] = args;
14728 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14729 if (!SWIG_IsOK(res1)) {
14730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMin" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14731 }
14732 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14733 {
14734 PyThreadState* __tstate = wxPyBeginAllowThreads();
14735 result = (int)((wxSpinButton const *)arg1)->GetMin();
14736 wxPyEndAllowThreads(__tstate);
14737 if (PyErr_Occurred()) SWIG_fail;
14738 }
14739 resultobj = SWIG_From_int(static_cast< int >(result));
14740 return resultobj;
14741fail:
14742 return NULL;
d14a1e28
RD
14743}
14744
14745
0085ce49
RD
14746SWIGINTERN PyObject *_wrap_SpinButton_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14747 PyObject *resultobj = 0;
14748 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14749 int result;
14750 void *argp1 = 0 ;
14751 int res1 = 0 ;
14752 PyObject *swig_obj[1] ;
14753
14754 if (!args) SWIG_fail;
14755 swig_obj[0] = args;
14756 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14757 if (!SWIG_IsOK(res1)) {
14758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMax" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14759 }
14760 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14761 {
14762 PyThreadState* __tstate = wxPyBeginAllowThreads();
14763 result = (int)((wxSpinButton const *)arg1)->GetMax();
14764 wxPyEndAllowThreads(__tstate);
14765 if (PyErr_Occurred()) SWIG_fail;
14766 }
14767 resultobj = SWIG_From_int(static_cast< int >(result));
14768 return resultobj;
14769fail:
14770 return NULL;
14771}
14772
14773
14774SWIGINTERN PyObject *_wrap_SpinButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14775 PyObject *resultobj = 0;
14776 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14777 int arg2 ;
14778 void *argp1 = 0 ;
14779 int res1 = 0 ;
14780 int val2 ;
14781 int ecode2 = 0 ;
14782 PyObject * obj0 = 0 ;
14783 PyObject * obj1 = 0 ;
14784 char * kwnames[] = {
14785 (char *) "self",(char *) "val", NULL
14786 };
14787
14788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
14789 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14790 if (!SWIG_IsOK(res1)) {
14791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetValue" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14792 }
14793 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14794 ecode2 = SWIG_AsVal_int(obj1, &val2);
14795 if (!SWIG_IsOK(ecode2)) {
14796 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetValue" "', expected argument " "2"" of type '" "int""'");
14797 }
14798 arg2 = static_cast< int >(val2);
14799 {
14800 PyThreadState* __tstate = wxPyBeginAllowThreads();
14801 (arg1)->SetValue(arg2);
14802 wxPyEndAllowThreads(__tstate);
14803 if (PyErr_Occurred()) SWIG_fail;
14804 }
14805 resultobj = SWIG_Py_Void();
14806 return resultobj;
14807fail:
14808 return NULL;
14809}
14810
14811
14812SWIGINTERN PyObject *_wrap_SpinButton_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14813 PyObject *resultobj = 0;
14814 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14815 int arg2 ;
14816 void *argp1 = 0 ;
14817 int res1 = 0 ;
14818 int val2 ;
14819 int ecode2 = 0 ;
14820 PyObject * obj0 = 0 ;
14821 PyObject * obj1 = 0 ;
14822 char * kwnames[] = {
14823 (char *) "self",(char *) "minVal", NULL
14824 };
14825
14826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
14827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14828 if (!SWIG_IsOK(res1)) {
14829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMin" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14830 }
14831 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14832 ecode2 = SWIG_AsVal_int(obj1, &val2);
14833 if (!SWIG_IsOK(ecode2)) {
14834 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMin" "', expected argument " "2"" of type '" "int""'");
14835 }
14836 arg2 = static_cast< int >(val2);
14837 {
14838 PyThreadState* __tstate = wxPyBeginAllowThreads();
14839 (arg1)->SetMin(arg2);
14840 wxPyEndAllowThreads(__tstate);
14841 if (PyErr_Occurred()) SWIG_fail;
14842 }
14843 resultobj = SWIG_Py_Void();
14844 return resultobj;
14845fail:
14846 return NULL;
14847}
14848
14849
14850SWIGINTERN PyObject *_wrap_SpinButton_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14851 PyObject *resultobj = 0;
14852 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14853 int arg2 ;
14854 void *argp1 = 0 ;
14855 int res1 = 0 ;
14856 int val2 ;
14857 int ecode2 = 0 ;
14858 PyObject * obj0 = 0 ;
14859 PyObject * obj1 = 0 ;
14860 char * kwnames[] = {
14861 (char *) "self",(char *) "maxVal", NULL
14862 };
14863
14864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
14865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14866 if (!SWIG_IsOK(res1)) {
14867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMax" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14868 }
14869 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14870 ecode2 = SWIG_AsVal_int(obj1, &val2);
14871 if (!SWIG_IsOK(ecode2)) {
14872 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMax" "', expected argument " "2"" of type '" "int""'");
14873 }
14874 arg2 = static_cast< int >(val2);
14875 {
14876 PyThreadState* __tstate = wxPyBeginAllowThreads();
14877 (arg1)->SetMax(arg2);
14878 wxPyEndAllowThreads(__tstate);
14879 if (PyErr_Occurred()) SWIG_fail;
14880 }
14881 resultobj = SWIG_Py_Void();
14882 return resultobj;
14883fail:
14884 return NULL;
14885}
14886
14887
14888SWIGINTERN PyObject *_wrap_SpinButton_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14889 PyObject *resultobj = 0;
14890 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14891 int arg2 ;
14892 int arg3 ;
14893 void *argp1 = 0 ;
14894 int res1 = 0 ;
14895 int val2 ;
14896 int ecode2 = 0 ;
14897 int val3 ;
14898 int ecode3 = 0 ;
14899 PyObject * obj0 = 0 ;
14900 PyObject * obj1 = 0 ;
14901 PyObject * obj2 = 0 ;
14902 char * kwnames[] = {
14903 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
14904 };
14905
14906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14908 if (!SWIG_IsOK(res1)) {
14909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetRange" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14910 }
14911 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14912 ecode2 = SWIG_AsVal_int(obj1, &val2);
14913 if (!SWIG_IsOK(ecode2)) {
14914 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetRange" "', expected argument " "2"" of type '" "int""'");
14915 }
14916 arg2 = static_cast< int >(val2);
14917 ecode3 = SWIG_AsVal_int(obj2, &val3);
14918 if (!SWIG_IsOK(ecode3)) {
14919 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_SetRange" "', expected argument " "3"" of type '" "int""'");
14920 }
14921 arg3 = static_cast< int >(val3);
14922 {
14923 PyThreadState* __tstate = wxPyBeginAllowThreads();
14924 (arg1)->SetRange(arg2,arg3);
14925 wxPyEndAllowThreads(__tstate);
14926 if (PyErr_Occurred()) SWIG_fail;
14927 }
14928 resultobj = SWIG_Py_Void();
14929 return resultobj;
14930fail:
14931 return NULL;
d14a1e28
RD
14932}
14933
14934
0085ce49
RD
14935SWIGINTERN PyObject *_wrap_SpinButton_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14936 PyObject *resultobj = 0;
14937 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14938 bool result;
14939 void *argp1 = 0 ;
14940 int res1 = 0 ;
14941 PyObject *swig_obj[1] ;
14942
14943 if (!args) SWIG_fail;
14944 swig_obj[0] = args;
14945 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14946 if (!SWIG_IsOK(res1)) {
14947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_IsVertical" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14948 }
14949 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14950 {
14951 PyThreadState* __tstate = wxPyBeginAllowThreads();
14952 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
14953 wxPyEndAllowThreads(__tstate);
14954 if (PyErr_Occurred()) SWIG_fail;
14955 }
14956 {
14957 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14958 }
14959 return resultobj;
14960fail:
14961 return NULL;
d14a1e28
RD
14962}
14963
14964
0085ce49
RD
14965SWIGINTERN PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14966 PyObject *resultobj = 0;
14967 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14968 SwigValueWrapper<wxVisualAttributes > result;
14969 int val1 ;
14970 int ecode1 = 0 ;
14971 PyObject * obj0 = 0 ;
14972 char * kwnames[] = {
14973 (char *) "variant", NULL
14974 };
14975
14976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14977 if (obj0) {
14978 ecode1 = SWIG_AsVal_int(obj0, &val1);
14979 if (!SWIG_IsOK(ecode1)) {
14980 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14981 }
14982 arg1 = static_cast< wxWindowVariant >(val1);
14983 }
14984 {
14985 if (!wxPyCheckForApp()) SWIG_fail;
14986 PyThreadState* __tstate = wxPyBeginAllowThreads();
14987 result = wxSpinButton::GetClassDefaultAttributes(arg1);
14988 wxPyEndAllowThreads(__tstate);
14989 if (PyErr_Occurred()) SWIG_fail;
14990 }
14991 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14992 return resultobj;
14993fail:
14994 return NULL;
14995}
14996
14997
14998SWIGINTERN PyObject *SpinButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14999 PyObject *obj;
15000 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15001 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinButton, SWIG_NewClientData(obj));
15002 return SWIG_Py_Void();
15003}
15004
15005SWIGINTERN PyObject *SpinButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15006 return SWIG_Python_InitShadowInstance(args);
15007}
15008
15009SWIGINTERN PyObject *_wrap_new_SpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15010 PyObject *resultobj = 0;
15011 wxWindow *arg1 = (wxWindow *) 0 ;
15012 int arg2 = (int) -1 ;
15013 wxString const &arg3_defvalue = wxPyEmptyString ;
15014 wxString *arg3 = (wxString *) &arg3_defvalue ;
15015 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15016 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15017 wxSize const &arg5_defvalue = wxDefaultSize ;
15018 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15019 long arg6 = (long) wxSP_ARROW_KEYS ;
15020 int arg7 = (int) 0 ;
15021 int arg8 = (int) 100 ;
15022 int arg9 = (int) 0 ;
15023 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
15024 wxString *arg10 = (wxString *) &arg10_defvalue ;
15025 wxSpinCtrl *result = 0 ;
15026 void *argp1 = 0 ;
15027 int res1 = 0 ;
15028 int val2 ;
15029 int ecode2 = 0 ;
15030 bool temp3 = false ;
15031 wxPoint temp4 ;
15032 wxSize temp5 ;
15033 long val6 ;
15034 int ecode6 = 0 ;
15035 int val7 ;
15036 int ecode7 = 0 ;
15037 int val8 ;
15038 int ecode8 = 0 ;
15039 int val9 ;
15040 int ecode9 = 0 ;
15041 bool temp10 = false ;
15042 PyObject * obj0 = 0 ;
15043 PyObject * obj1 = 0 ;
15044 PyObject * obj2 = 0 ;
15045 PyObject * obj3 = 0 ;
15046 PyObject * obj4 = 0 ;
15047 PyObject * obj5 = 0 ;
15048 PyObject * obj6 = 0 ;
15049 PyObject * obj7 = 0 ;
15050 PyObject * obj8 = 0 ;
15051 PyObject * obj9 = 0 ;
15052 char * kwnames[] = {
15053 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15054 };
15055
15056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15058 if (!SWIG_IsOK(res1)) {
15059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
15060 }
15061 arg1 = reinterpret_cast< wxWindow * >(argp1);
15062 if (obj1) {
15063 ecode2 = SWIG_AsVal_int(obj1, &val2);
15064 if (!SWIG_IsOK(ecode2)) {
15065 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinCtrl" "', expected argument " "2"" of type '" "int""'");
15066 }
15067 arg2 = static_cast< int >(val2);
15068 }
15069 if (obj2) {
093d3ff1 15070 {
0085ce49
RD
15071 arg3 = wxString_in_helper(obj2);
15072 if (arg3 == NULL) SWIG_fail;
15073 temp3 = true;
093d3ff1 15074 }
0085ce49
RD
15075 }
15076 if (obj3) {
093d3ff1 15077 {
0085ce49
RD
15078 arg4 = &temp4;
15079 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 15080 }
0085ce49
RD
15081 }
15082 if (obj4) {
d14a1e28 15083 {
0085ce49
RD
15084 arg5 = &temp5;
15085 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 15086 }
0085ce49
RD
15087 }
15088 if (obj5) {
15089 ecode6 = SWIG_AsVal_long(obj5, &val6);
15090 if (!SWIG_IsOK(ecode6)) {
15091 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpinCtrl" "', expected argument " "6"" of type '" "long""'");
15092 }
15093 arg6 = static_cast< long >(val6);
15094 }
15095 if (obj6) {
15096 ecode7 = SWIG_AsVal_int(obj6, &val7);
15097 if (!SWIG_IsOK(ecode7)) {
15098 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpinCtrl" "', expected argument " "7"" of type '" "int""'");
15099 }
15100 arg7 = static_cast< int >(val7);
15101 }
15102 if (obj7) {
15103 ecode8 = SWIG_AsVal_int(obj7, &val8);
15104 if (!SWIG_IsOK(ecode8)) {
15105 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SpinCtrl" "', expected argument " "8"" of type '" "int""'");
15106 }
15107 arg8 = static_cast< int >(val8);
15108 }
15109 if (obj8) {
15110 ecode9 = SWIG_AsVal_int(obj8, &val9);
15111 if (!SWIG_IsOK(ecode9)) {
15112 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpinCtrl" "', expected argument " "9"" of type '" "int""'");
15113 }
15114 arg9 = static_cast< int >(val9);
15115 }
15116 if (obj9) {
d14a1e28 15117 {
0085ce49
RD
15118 arg10 = wxString_in_helper(obj9);
15119 if (arg10 == NULL) SWIG_fail;
15120 temp10 = true;
d14a1e28 15121 }
0085ce49
RD
15122 }
15123 {
15124 if (!wxPyCheckForApp()) SWIG_fail;
15125 PyThreadState* __tstate = wxPyBeginAllowThreads();
15126 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
15127 wxPyEndAllowThreads(__tstate);
15128 if (PyErr_Occurred()) SWIG_fail;
15129 }
15130 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_NEW | 0 );
15131 {
15132 if (temp3)
15133 delete arg3;
15134 }
15135 {
15136 if (temp10)
15137 delete arg10;
15138 }
15139 return resultobj;
15140fail:
15141 {
15142 if (temp3)
15143 delete arg3;
15144 }
15145 {
15146 if (temp10)
15147 delete arg10;
15148 }
15149 return NULL;
d14a1e28
RD
15150}
15151
15152
0085ce49
RD
15153SWIGINTERN PyObject *_wrap_new_PreSpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15154 PyObject *resultobj = 0;
15155 wxSpinCtrl *result = 0 ;
15156
15157 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinCtrl",0,0,0)) SWIG_fail;
15158 {
15159 if (!wxPyCheckForApp()) SWIG_fail;
15160 PyThreadState* __tstate = wxPyBeginAllowThreads();
15161 result = (wxSpinCtrl *)new wxSpinCtrl();
15162 wxPyEndAllowThreads(__tstate);
15163 if (PyErr_Occurred()) SWIG_fail;
15164 }
15165 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_OWN | 0 );
15166 return resultobj;
15167fail:
15168 return NULL;
15169}
15170
15171
15172SWIGINTERN PyObject *_wrap_SpinCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15173 PyObject *resultobj = 0;
15174 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15175 wxWindow *arg2 = (wxWindow *) 0 ;
15176 int arg3 = (int) -1 ;
15177 wxString const &arg4_defvalue = wxPyEmptyString ;
15178 wxString *arg4 = (wxString *) &arg4_defvalue ;
15179 wxPoint const &arg5_defvalue = wxDefaultPosition ;
15180 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
15181 wxSize const &arg6_defvalue = wxDefaultSize ;
15182 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
15183 long arg7 = (long) wxSP_ARROW_KEYS ;
15184 int arg8 = (int) 0 ;
15185 int arg9 = (int) 100 ;
15186 int arg10 = (int) 0 ;
15187 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
15188 wxString *arg11 = (wxString *) &arg11_defvalue ;
15189 bool result;
15190 void *argp1 = 0 ;
15191 int res1 = 0 ;
15192 void *argp2 = 0 ;
15193 int res2 = 0 ;
15194 int val3 ;
15195 int ecode3 = 0 ;
15196 bool temp4 = false ;
15197 wxPoint temp5 ;
15198 wxSize temp6 ;
15199 long val7 ;
15200 int ecode7 = 0 ;
15201 int val8 ;
15202 int ecode8 = 0 ;
15203 int val9 ;
15204 int ecode9 = 0 ;
15205 int val10 ;
15206 int ecode10 = 0 ;
15207 bool temp11 = false ;
15208 PyObject * obj0 = 0 ;
15209 PyObject * obj1 = 0 ;
15210 PyObject * obj2 = 0 ;
15211 PyObject * obj3 = 0 ;
15212 PyObject * obj4 = 0 ;
15213 PyObject * obj5 = 0 ;
15214 PyObject * obj6 = 0 ;
15215 PyObject * obj7 = 0 ;
15216 PyObject * obj8 = 0 ;
15217 PyObject * obj9 = 0 ;
15218 PyObject * obj10 = 0 ;
15219 char * kwnames[] = {
15220 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15221 };
15222
15223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
15224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15225 if (!SWIG_IsOK(res1)) {
15226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_Create" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15227 }
15228 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15229 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
15230 if (!SWIG_IsOK(res2)) {
15231 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
15232 }
15233 arg2 = reinterpret_cast< wxWindow * >(argp2);
15234 if (obj2) {
15235 ecode3 = SWIG_AsVal_int(obj2, &val3);
15236 if (!SWIG_IsOK(ecode3)) {
15237 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_Create" "', expected argument " "3"" of type '" "int""'");
15238 }
15239 arg3 = static_cast< int >(val3);
15240 }
15241 if (obj3) {
093d3ff1 15242 {
0085ce49
RD
15243 arg4 = wxString_in_helper(obj3);
15244 if (arg4 == NULL) SWIG_fail;
15245 temp4 = true;
093d3ff1 15246 }
0085ce49
RD
15247 }
15248 if (obj4) {
d14a1e28 15249 {
0085ce49
RD
15250 arg5 = &temp5;
15251 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 15252 }
0085ce49
RD
15253 }
15254 if (obj5) {
093d3ff1 15255 {
0085ce49
RD
15256 arg6 = &temp6;
15257 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d14a1e28 15258 }
0085ce49
RD
15259 }
15260 if (obj6) {
15261 ecode7 = SWIG_AsVal_long(obj6, &val7);
15262 if (!SWIG_IsOK(ecode7)) {
15263 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SpinCtrl_Create" "', expected argument " "7"" of type '" "long""'");
15264 }
15265 arg7 = static_cast< long >(val7);
15266 }
15267 if (obj7) {
15268 ecode8 = SWIG_AsVal_int(obj7, &val8);
15269 if (!SWIG_IsOK(ecode8)) {
15270 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "SpinCtrl_Create" "', expected argument " "8"" of type '" "int""'");
15271 }
15272 arg8 = static_cast< int >(val8);
15273 }
15274 if (obj8) {
15275 ecode9 = SWIG_AsVal_int(obj8, &val9);
15276 if (!SWIG_IsOK(ecode9)) {
15277 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "SpinCtrl_Create" "', expected argument " "9"" of type '" "int""'");
15278 }
15279 arg9 = static_cast< int >(val9);
15280 }
15281 if (obj9) {
15282 ecode10 = SWIG_AsVal_int(obj9, &val10);
15283 if (!SWIG_IsOK(ecode10)) {
15284 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "SpinCtrl_Create" "', expected argument " "10"" of type '" "int""'");
15285 }
15286 arg10 = static_cast< int >(val10);
15287 }
15288 if (obj10) {
d14a1e28 15289 {
0085ce49
RD
15290 arg11 = wxString_in_helper(obj10);
15291 if (arg11 == NULL) SWIG_fail;
15292 temp11 = true;
d14a1e28 15293 }
0085ce49
RD
15294 }
15295 {
15296 PyThreadState* __tstate = wxPyBeginAllowThreads();
15297 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
15298 wxPyEndAllowThreads(__tstate);
15299 if (PyErr_Occurred()) SWIG_fail;
15300 }
15301 {
15302 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15303 }
15304 {
15305 if (temp4)
15306 delete arg4;
15307 }
15308 {
15309 if (temp11)
15310 delete arg11;
15311 }
15312 return resultobj;
15313fail:
15314 {
15315 if (temp4)
15316 delete arg4;
15317 }
15318 {
15319 if (temp11)
15320 delete arg11;
15321 }
15322 return NULL;
d14a1e28
RD
15323}
15324
15325
0085ce49
RD
15326SWIGINTERN PyObject *_wrap_SpinCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15327 PyObject *resultobj = 0;
15328 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15329 int result;
15330 void *argp1 = 0 ;
15331 int res1 = 0 ;
15332 PyObject *swig_obj[1] ;
15333
15334 if (!args) SWIG_fail;
15335 swig_obj[0] = args;
15336 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15337 if (!SWIG_IsOK(res1)) {
15338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetValue" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15339 }
15340 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15341 {
15342 PyThreadState* __tstate = wxPyBeginAllowThreads();
15343 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
15344 wxPyEndAllowThreads(__tstate);
15345 if (PyErr_Occurred()) SWIG_fail;
15346 }
15347 resultobj = SWIG_From_int(static_cast< int >(result));
15348 return resultobj;
15349fail:
15350 return NULL;
15351}
15352
15353
15354SWIGINTERN PyObject *_wrap_SpinCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15355 PyObject *resultobj = 0;
15356 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15357 int arg2 ;
15358 void *argp1 = 0 ;
15359 int res1 = 0 ;
15360 int val2 ;
15361 int ecode2 = 0 ;
15362 PyObject * obj0 = 0 ;
15363 PyObject * obj1 = 0 ;
15364 char * kwnames[] = {
15365 (char *) "self",(char *) "value", NULL
15366 };
15367
15368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15370 if (!SWIG_IsOK(res1)) {
15371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValue" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15372 }
15373 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15374 ecode2 = SWIG_AsVal_int(obj1, &val2);
15375 if (!SWIG_IsOK(ecode2)) {
15376 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetValue" "', expected argument " "2"" of type '" "int""'");
15377 }
15378 arg2 = static_cast< int >(val2);
15379 {
15380 PyThreadState* __tstate = wxPyBeginAllowThreads();
15381 (arg1)->SetValue(arg2);
15382 wxPyEndAllowThreads(__tstate);
15383 if (PyErr_Occurred()) SWIG_fail;
15384 }
15385 resultobj = SWIG_Py_Void();
15386 return resultobj;
15387fail:
15388 return NULL;
15389}
15390
15391
15392SWIGINTERN PyObject *_wrap_SpinCtrl_SetValueString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15393 PyObject *resultobj = 0;
15394 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15395 wxString *arg2 = 0 ;
15396 void *argp1 = 0 ;
15397 int res1 = 0 ;
15398 bool temp2 = false ;
15399 PyObject * obj0 = 0 ;
15400 PyObject * obj1 = 0 ;
15401 char * kwnames[] = {
15402 (char *) "self",(char *) "text", NULL
15403 };
15404
15405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) SWIG_fail;
15406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15407 if (!SWIG_IsOK(res1)) {
15408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValueString" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15409 }
15410 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15411 {
15412 arg2 = wxString_in_helper(obj1);
15413 if (arg2 == NULL) SWIG_fail;
15414 temp2 = true;
15415 }
15416 {
15417 PyThreadState* __tstate = wxPyBeginAllowThreads();
15418 (arg1)->SetValue((wxString const &)*arg2);
15419 wxPyEndAllowThreads(__tstate);
15420 if (PyErr_Occurred()) SWIG_fail;
15421 }
15422 resultobj = SWIG_Py_Void();
15423 {
15424 if (temp2)
15425 delete arg2;
15426 }
15427 return resultobj;
15428fail:
15429 {
15430 if (temp2)
15431 delete arg2;
15432 }
15433 return NULL;
15434}
15435
15436
15437SWIGINTERN PyObject *_wrap_SpinCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15438 PyObject *resultobj = 0;
15439 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15440 int arg2 ;
15441 int arg3 ;
15442 void *argp1 = 0 ;
15443 int res1 = 0 ;
15444 int val2 ;
15445 int ecode2 = 0 ;
15446 int val3 ;
15447 int ecode3 = 0 ;
15448 PyObject * obj0 = 0 ;
15449 PyObject * obj1 = 0 ;
15450 PyObject * obj2 = 0 ;
15451 char * kwnames[] = {
15452 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15453 };
15454
15455 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15456 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15457 if (!SWIG_IsOK(res1)) {
15458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetRange" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15459 }
15460 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15461 ecode2 = SWIG_AsVal_int(obj1, &val2);
15462 if (!SWIG_IsOK(ecode2)) {
15463 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetRange" "', expected argument " "2"" of type '" "int""'");
15464 }
15465 arg2 = static_cast< int >(val2);
15466 ecode3 = SWIG_AsVal_int(obj2, &val3);
15467 if (!SWIG_IsOK(ecode3)) {
15468 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetRange" "', expected argument " "3"" of type '" "int""'");
15469 }
15470 arg3 = static_cast< int >(val3);
15471 {
15472 PyThreadState* __tstate = wxPyBeginAllowThreads();
15473 (arg1)->SetRange(arg2,arg3);
15474 wxPyEndAllowThreads(__tstate);
15475 if (PyErr_Occurred()) SWIG_fail;
15476 }
15477 resultobj = SWIG_Py_Void();
15478 return resultobj;
15479fail:
15480 return NULL;
d14a1e28
RD
15481}
15482
15483
0085ce49
RD
15484SWIGINTERN PyObject *_wrap_SpinCtrl_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15485 PyObject *resultobj = 0;
15486 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15487 int result;
15488 void *argp1 = 0 ;
15489 int res1 = 0 ;
15490 PyObject *swig_obj[1] ;
15491
15492 if (!args) SWIG_fail;
15493 swig_obj[0] = args;
15494 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15495 if (!SWIG_IsOK(res1)) {
15496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMin" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15497 }
15498 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15499 {
15500 PyThreadState* __tstate = wxPyBeginAllowThreads();
15501 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
15502 wxPyEndAllowThreads(__tstate);
15503 if (PyErr_Occurred()) SWIG_fail;
15504 }
15505 resultobj = SWIG_From_int(static_cast< int >(result));
15506 return resultobj;
15507fail:
15508 return NULL;
d14a1e28
RD
15509}
15510
15511
0085ce49
RD
15512SWIGINTERN PyObject *_wrap_SpinCtrl_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15513 PyObject *resultobj = 0;
15514 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15515 int result;
15516 void *argp1 = 0 ;
15517 int res1 = 0 ;
15518 PyObject *swig_obj[1] ;
15519
15520 if (!args) SWIG_fail;
15521 swig_obj[0] = args;
15522 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15523 if (!SWIG_IsOK(res1)) {
15524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMax" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15525 }
15526 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15527 {
15528 PyThreadState* __tstate = wxPyBeginAllowThreads();
15529 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
15530 wxPyEndAllowThreads(__tstate);
15531 if (PyErr_Occurred()) SWIG_fail;
15532 }
15533 resultobj = SWIG_From_int(static_cast< int >(result));
15534 return resultobj;
15535fail:
15536 return NULL;
15537}
15538
15539
15540SWIGINTERN PyObject *_wrap_SpinCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15541 PyObject *resultobj = 0;
15542 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15543 long arg2 ;
15544 long arg3 ;
15545 void *argp1 = 0 ;
15546 int res1 = 0 ;
15547 long val2 ;
15548 int ecode2 = 0 ;
15549 long val3 ;
15550 int ecode3 = 0 ;
15551 PyObject * obj0 = 0 ;
15552 PyObject * obj1 = 0 ;
15553 PyObject * obj2 = 0 ;
15554 char * kwnames[] = {
15555 (char *) "self",(char *) "_from",(char *) "to", NULL
15556 };
15557
15558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15560 if (!SWIG_IsOK(res1)) {
15561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetSelection" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15562 }
15563 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15564 ecode2 = SWIG_AsVal_long(obj1, &val2);
15565 if (!SWIG_IsOK(ecode2)) {
15566 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
15567 }
15568 arg2 = static_cast< long >(val2);
15569 ecode3 = SWIG_AsVal_long(obj2, &val3);
15570 if (!SWIG_IsOK(ecode3)) {
15571 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
15572 }
15573 arg3 = static_cast< long >(val3);
15574 {
15575 PyThreadState* __tstate = wxPyBeginAllowThreads();
15576 (arg1)->SetSelection(arg2,arg3);
15577 wxPyEndAllowThreads(__tstate);
15578 if (PyErr_Occurred()) SWIG_fail;
15579 }
15580 resultobj = SWIG_Py_Void();
15581 return resultobj;
15582fail:
15583 return NULL;
15584}
15585
15586
15587SWIGINTERN PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15588 PyObject *resultobj = 0;
15589 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15590 SwigValueWrapper<wxVisualAttributes > result;
15591 int val1 ;
15592 int ecode1 = 0 ;
15593 PyObject * obj0 = 0 ;
15594 char * kwnames[] = {
15595 (char *) "variant", NULL
15596 };
15597
15598 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15599 if (obj0) {
15600 ecode1 = SWIG_AsVal_int(obj0, &val1);
15601 if (!SWIG_IsOK(ecode1)) {
15602 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15603 }
15604 arg1 = static_cast< wxWindowVariant >(val1);
15605 }
15606 {
15607 if (!wxPyCheckForApp()) SWIG_fail;
15608 PyThreadState* __tstate = wxPyBeginAllowThreads();
15609 result = wxSpinCtrl::GetClassDefaultAttributes(arg1);
15610 wxPyEndAllowThreads(__tstate);
15611 if (PyErr_Occurred()) SWIG_fail;
15612 }
15613 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15614 return resultobj;
15615fail:
15616 return NULL;
d14a1e28
RD
15617}
15618
15619
0085ce49
RD
15620SWIGINTERN PyObject *SpinCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15621 PyObject *obj;
15622 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15623 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinCtrl, SWIG_NewClientData(obj));
15624 return SWIG_Py_Void();
d14a1e28
RD
15625}
15626
0085ce49
RD
15627SWIGINTERN PyObject *SpinCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15628 return SWIG_Python_InitShadowInstance(args);
15629}
d14a1e28 15630
0085ce49
RD
15631SWIGINTERN PyObject *_wrap_new_SpinEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15632 PyObject *resultobj = 0;
15633 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15634 int arg2 = (int) 0 ;
15635 wxSpinEvent *result = 0 ;
15636 int val1 ;
15637 int ecode1 = 0 ;
15638 int val2 ;
15639 int ecode2 = 0 ;
15640 PyObject * obj0 = 0 ;
15641 PyObject * obj1 = 0 ;
15642 char * kwnames[] = {
15643 (char *) "commandType",(char *) "winid", NULL
15644 };
15645
15646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) SWIG_fail;
15647 if (obj0) {
15648 ecode1 = SWIG_AsVal_int(obj0, &val1);
15649 if (!SWIG_IsOK(ecode1)) {
15650 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SpinEvent" "', expected argument " "1"" of type '" "wxEventType""'");
15651 }
15652 arg1 = static_cast< wxEventType >(val1);
15653 }
15654 if (obj1) {
15655 ecode2 = SWIG_AsVal_int(obj1, &val2);
15656 if (!SWIG_IsOK(ecode2)) {
15657 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinEvent" "', expected argument " "2"" of type '" "int""'");
15658 }
15659 arg2 = static_cast< int >(val2);
15660 }
15661 {
15662 PyThreadState* __tstate = wxPyBeginAllowThreads();
15663 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
15664 wxPyEndAllowThreads(__tstate);
15665 if (PyErr_Occurred()) SWIG_fail;
15666 }
15667 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_NEW | 0 );
15668 return resultobj;
15669fail:
15670 return NULL;
d14a1e28
RD
15671}
15672
15673
0085ce49
RD
15674SWIGINTERN PyObject *_wrap_SpinEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15675 PyObject *resultobj = 0;
15676 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15677 int result;
15678 void *argp1 = 0 ;
15679 int res1 = 0 ;
15680 PyObject *swig_obj[1] ;
15681
15682 if (!args) SWIG_fail;
15683 swig_obj[0] = args;
15684 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15685 if (!SWIG_IsOK(res1)) {
15686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_GetPosition" "', expected argument " "1"" of type '" "wxSpinEvent const *""'");
15687 }
15688 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15689 {
15690 PyThreadState* __tstate = wxPyBeginAllowThreads();
15691 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
15692 wxPyEndAllowThreads(__tstate);
15693 if (PyErr_Occurred()) SWIG_fail;
15694 }
15695 resultobj = SWIG_From_int(static_cast< int >(result));
15696 return resultobj;
15697fail:
15698 return NULL;
15699}
15700
15701
15702SWIGINTERN PyObject *_wrap_SpinEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15703 PyObject *resultobj = 0;
15704 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15705 int arg2 ;
15706 void *argp1 = 0 ;
15707 int res1 = 0 ;
15708 int val2 ;
15709 int ecode2 = 0 ;
15710 PyObject * obj0 = 0 ;
15711 PyObject * obj1 = 0 ;
15712 char * kwnames[] = {
15713 (char *) "self",(char *) "pos", NULL
15714 };
15715
15716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
15717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15718 if (!SWIG_IsOK(res1)) {
15719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_SetPosition" "', expected argument " "1"" of type '" "wxSpinEvent *""'");
15720 }
15721 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15722 ecode2 = SWIG_AsVal_int(obj1, &val2);
15723 if (!SWIG_IsOK(ecode2)) {
15724 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinEvent_SetPosition" "', expected argument " "2"" of type '" "int""'");
15725 }
15726 arg2 = static_cast< int >(val2);
15727 {
15728 PyThreadState* __tstate = wxPyBeginAllowThreads();
15729 (arg1)->SetPosition(arg2);
15730 wxPyEndAllowThreads(__tstate);
15731 if (PyErr_Occurred()) SWIG_fail;
15732 }
15733 resultobj = SWIG_Py_Void();
15734 return resultobj;
15735fail:
15736 return NULL;
d14a1e28
RD
15737}
15738
15739
0085ce49
RD
15740SWIGINTERN PyObject *SpinEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15741 PyObject *obj;
15742 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15743 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinEvent, SWIG_NewClientData(obj));
15744 return SWIG_Py_Void();
15745}
15746
15747SWIGINTERN PyObject *SpinEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15748 return SWIG_Python_InitShadowInstance(args);
15749}
15750
15751SWIGINTERN int RadioBoxNameStr_set(PyObject *) {
15752 SWIG_Error(SWIG_AttributeError,"Variable RadioBoxNameStr is read-only.");
15753 return 1;
15754}
15755
15756
15757SWIGINTERN PyObject *RadioBoxNameStr_get(void) {
15758 PyObject *pyobj = 0;
15759
15760 {
d14a1e28 15761#if wxUSE_UNICODE
0085ce49 15762 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
d14a1e28 15763#else
0085ce49 15764 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
d14a1e28 15765#endif
0085ce49
RD
15766 }
15767 return pyobj;
d14a1e28
RD
15768}
15769
15770
0085ce49
RD
15771SWIGINTERN int RadioButtonNameStr_set(PyObject *) {
15772 SWIG_Error(SWIG_AttributeError,"Variable RadioButtonNameStr is read-only.");
15773 return 1;
d14a1e28
RD
15774}
15775
15776
0085ce49
RD
15777SWIGINTERN PyObject *RadioButtonNameStr_get(void) {
15778 PyObject *pyobj = 0;
15779
15780 {
15781#if wxUSE_UNICODE
15782 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15783#else
15784 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15785#endif
15786 }
15787 return pyobj;
15788}
15789
15790
15791SWIGINTERN PyObject *_wrap_new_RadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15792 PyObject *resultobj = 0;
15793 wxWindow *arg1 = (wxWindow *) 0 ;
15794 int arg2 = (int) -1 ;
15795 wxString const &arg3_defvalue = wxPyEmptyString ;
15796 wxString *arg3 = (wxString *) &arg3_defvalue ;
15797 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15798 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15799 wxSize const &arg5_defvalue = wxDefaultSize ;
15800 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15801 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
15802 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
15803 int arg7 = (int) 0 ;
15804 long arg8 = (long) wxRA_HORIZONTAL ;
15805 wxValidator const &arg9_defvalue = wxDefaultValidator ;
15806 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
15807 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
15808 wxString *arg10 = (wxString *) &arg10_defvalue ;
15809 wxRadioBox *result = 0 ;
15810 void *argp1 = 0 ;
15811 int res1 = 0 ;
15812 int val2 ;
15813 int ecode2 = 0 ;
15814 bool temp3 = false ;
15815 wxPoint temp4 ;
15816 wxSize temp5 ;
15817 bool temp6 = false ;
15818 int val7 ;
15819 int ecode7 = 0 ;
15820 long val8 ;
15821 int ecode8 = 0 ;
15822 void *argp9 = 0 ;
15823 int res9 = 0 ;
15824 bool temp10 = false ;
15825 PyObject * obj0 = 0 ;
15826 PyObject * obj1 = 0 ;
15827 PyObject * obj2 = 0 ;
15828 PyObject * obj3 = 0 ;
15829 PyObject * obj4 = 0 ;
15830 PyObject * obj5 = 0 ;
15831 PyObject * obj6 = 0 ;
15832 PyObject * obj7 = 0 ;
15833 PyObject * obj8 = 0 ;
15834 PyObject * obj9 = 0 ;
15835 char * kwnames[] = {
15836 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
15837 };
15838
15839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15841 if (!SWIG_IsOK(res1)) {
15842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioBox" "', expected argument " "1"" of type '" "wxWindow *""'");
15843 }
15844 arg1 = reinterpret_cast< wxWindow * >(argp1);
15845 if (obj1) {
15846 ecode2 = SWIG_AsVal_int(obj1, &val2);
15847 if (!SWIG_IsOK(ecode2)) {
15848 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioBox" "', expected argument " "2"" of type '" "int""'");
15849 }
15850 arg2 = static_cast< int >(val2);
15851 }
15852 if (obj2) {
093d3ff1 15853 {
0085ce49
RD
15854 arg3 = wxString_in_helper(obj2);
15855 if (arg3 == NULL) SWIG_fail;
15856 temp3 = true;
093d3ff1 15857 }
0085ce49
RD
15858 }
15859 if (obj3) {
093d3ff1 15860 {
0085ce49
RD
15861 arg4 = &temp4;
15862 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 15863 }
0085ce49
RD
15864 }
15865 if (obj4) {
d14a1e28 15866 {
0085ce49
RD
15867 arg5 = &temp5;
15868 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 15869 }
0085ce49
RD
15870 }
15871 if (obj5) {
d14a1e28 15872 {
0085ce49
RD
15873 if (! PySequence_Check(obj5)) {
15874 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
15875 SWIG_fail;
15876 }
15877 arg6 = new wxArrayString;
15878 temp6 = true;
15879 int i, len=PySequence_Length(obj5);
15880 for (i=0; i<len; i++) {
15881 PyObject* item = PySequence_GetItem(obj5, i);
15882 wxString* s = wxString_in_helper(item);
15883 if (PyErr_Occurred()) SWIG_fail;
15884 arg6->Add(*s);
15885 delete s;
15886 Py_DECREF(item);
15887 }
d14a1e28 15888 }
0085ce49
RD
15889 }
15890 if (obj6) {
15891 ecode7 = SWIG_AsVal_int(obj6, &val7);
15892 if (!SWIG_IsOK(ecode7)) {
15893 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_RadioBox" "', expected argument " "7"" of type '" "int""'");
15894 }
15895 arg7 = static_cast< int >(val7);
15896 }
15897 if (obj7) {
15898 ecode8 = SWIG_AsVal_long(obj7, &val8);
15899 if (!SWIG_IsOK(ecode8)) {
15900 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_RadioBox" "', expected argument " "8"" of type '" "long""'");
15901 }
15902 arg8 = static_cast< long >(val8);
15903 }
15904 if (obj8) {
15905 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
15906 if (!SWIG_IsOK(res9)) {
15907 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
15908 }
15909 if (!argp9) {
15910 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
d14a1e28 15911 }
0085ce49
RD
15912 arg9 = reinterpret_cast< wxValidator * >(argp9);
15913 }
15914 if (obj9) {
d14a1e28 15915 {
0085ce49
RD
15916 arg10 = wxString_in_helper(obj9);
15917 if (arg10 == NULL) SWIG_fail;
15918 temp10 = true;
d14a1e28 15919 }
0085ce49
RD
15920 }
15921 {
15922 if (!wxPyCheckForApp()) SWIG_fail;
15923 PyThreadState* __tstate = wxPyBeginAllowThreads();
15924 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);
15925 wxPyEndAllowThreads(__tstate);
15926 if (PyErr_Occurred()) SWIG_fail;
15927 }
15928 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_NEW | 0 );
15929 {
15930 if (temp3)
15931 delete arg3;
15932 }
15933 {
15934 if (temp6) delete arg6;
15935 }
15936 {
15937 if (temp10)
15938 delete arg10;
15939 }
15940 return resultobj;
15941fail:
15942 {
15943 if (temp3)
15944 delete arg3;
15945 }
15946 {
15947 if (temp6) delete arg6;
15948 }
15949 {
15950 if (temp10)
15951 delete arg10;
15952 }
15953 return NULL;
d14a1e28
RD
15954}
15955
15956
0085ce49
RD
15957SWIGINTERN PyObject *_wrap_new_PreRadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15958 PyObject *resultobj = 0;
15959 wxRadioBox *result = 0 ;
15960
15961 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioBox",0,0,0)) SWIG_fail;
15962 {
15963 if (!wxPyCheckForApp()) SWIG_fail;
15964 PyThreadState* __tstate = wxPyBeginAllowThreads();
15965 result = (wxRadioBox *)new wxRadioBox();
15966 wxPyEndAllowThreads(__tstate);
15967 if (PyErr_Occurred()) SWIG_fail;
15968 }
15969 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_OWN | 0 );
15970 return resultobj;
15971fail:
15972 return NULL;
15973}
15974
15975
15976SWIGINTERN PyObject *_wrap_RadioBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15977 PyObject *resultobj = 0;
15978 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
15979 wxWindow *arg2 = (wxWindow *) 0 ;
15980 int arg3 = (int) -1 ;
15981 wxString const &arg4_defvalue = wxPyEmptyString ;
15982 wxString *arg4 = (wxString *) &arg4_defvalue ;
15983 wxPoint const &arg5_defvalue = wxDefaultPosition ;
15984 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
15985 wxSize const &arg6_defvalue = wxDefaultSize ;
15986 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
15987 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
15988 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
15989 int arg8 = (int) 0 ;
15990 long arg9 = (long) wxRA_HORIZONTAL ;
15991 wxValidator const &arg10_defvalue = wxDefaultValidator ;
15992 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
15993 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
15994 wxString *arg11 = (wxString *) &arg11_defvalue ;
15995 bool result;
15996 void *argp1 = 0 ;
15997 int res1 = 0 ;
15998 void *argp2 = 0 ;
15999 int res2 = 0 ;
16000 int val3 ;
16001 int ecode3 = 0 ;
16002 bool temp4 = false ;
16003 wxPoint temp5 ;
16004 wxSize temp6 ;
16005 bool temp7 = false ;
16006 int val8 ;
16007 int ecode8 = 0 ;
16008 long val9 ;
16009 int ecode9 = 0 ;
16010 void *argp10 = 0 ;
16011 int res10 = 0 ;
16012 bool temp11 = false ;
16013 PyObject * obj0 = 0 ;
16014 PyObject * obj1 = 0 ;
16015 PyObject * obj2 = 0 ;
16016 PyObject * obj3 = 0 ;
16017 PyObject * obj4 = 0 ;
16018 PyObject * obj5 = 0 ;
16019 PyObject * obj6 = 0 ;
16020 PyObject * obj7 = 0 ;
16021 PyObject * obj8 = 0 ;
16022 PyObject * obj9 = 0 ;
16023 PyObject * obj10 = 0 ;
16024 char * kwnames[] = {
16025 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16026 };
16027
16028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
16029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16030 if (!SWIG_IsOK(res1)) {
16031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_Create" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16032 }
16033 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16034 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
16035 if (!SWIG_IsOK(res2)) {
16036 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
16037 }
16038 arg2 = reinterpret_cast< wxWindow * >(argp2);
16039 if (obj2) {
16040 ecode3 = SWIG_AsVal_int(obj2, &val3);
16041 if (!SWIG_IsOK(ecode3)) {
16042 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_Create" "', expected argument " "3"" of type '" "int""'");
16043 }
16044 arg3 = static_cast< int >(val3);
16045 }
16046 if (obj3) {
093d3ff1 16047 {
0085ce49
RD
16048 arg4 = wxString_in_helper(obj3);
16049 if (arg4 == NULL) SWIG_fail;
16050 temp4 = true;
093d3ff1 16051 }
0085ce49
RD
16052 }
16053 if (obj4) {
d14a1e28 16054 {
0085ce49
RD
16055 arg5 = &temp5;
16056 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 16057 }
0085ce49
RD
16058 }
16059 if (obj5) {
d14a1e28 16060 {
0085ce49
RD
16061 arg6 = &temp6;
16062 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d14a1e28 16063 }
0085ce49
RD
16064 }
16065 if (obj6) {
d14a1e28 16066 {
0085ce49
RD
16067 if (! PySequence_Check(obj6)) {
16068 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16069 SWIG_fail;
16070 }
16071 arg7 = new wxArrayString;
16072 temp7 = true;
16073 int i, len=PySequence_Length(obj6);
16074 for (i=0; i<len; i++) {
16075 PyObject* item = PySequence_GetItem(obj6, i);
16076 wxString* s = wxString_in_helper(item);
16077 if (PyErr_Occurred()) SWIG_fail;
16078 arg7->Add(*s);
16079 delete s;
16080 Py_DECREF(item);
16081 }
d14a1e28 16082 }
0085ce49
RD
16083 }
16084 if (obj7) {
16085 ecode8 = SWIG_AsVal_int(obj7, &val8);
16086 if (!SWIG_IsOK(ecode8)) {
16087 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "RadioBox_Create" "', expected argument " "8"" of type '" "int""'");
16088 }
16089 arg8 = static_cast< int >(val8);
16090 }
16091 if (obj8) {
16092 ecode9 = SWIG_AsVal_long(obj8, &val9);
16093 if (!SWIG_IsOK(ecode9)) {
16094 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "RadioBox_Create" "', expected argument " "9"" of type '" "long""'");
16095 }
16096 arg9 = static_cast< long >(val9);
16097 }
16098 if (obj9) {
16099 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
16100 if (!SWIG_IsOK(res10)) {
16101 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
4f89f6a3 16102 }
0085ce49
RD
16103 if (!argp10) {
16104 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
d14a1e28 16105 }
0085ce49
RD
16106 arg10 = reinterpret_cast< wxValidator * >(argp10);
16107 }
16108 if (obj10) {
d14a1e28 16109 {
0085ce49
RD
16110 arg11 = wxString_in_helper(obj10);
16111 if (arg11 == NULL) SWIG_fail;
16112 temp11 = true;
d14a1e28 16113 }
0085ce49
RD
16114 }
16115 {
16116 PyThreadState* __tstate = wxPyBeginAllowThreads();
16117 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);
16118 wxPyEndAllowThreads(__tstate);
16119 if (PyErr_Occurred()) SWIG_fail;
16120 }
16121 {
16122 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16123 }
16124 {
16125 if (temp4)
16126 delete arg4;
16127 }
16128 {
16129 if (temp7) delete arg7;
16130 }
16131 {
16132 if (temp11)
16133 delete arg11;
16134 }
16135 return resultobj;
16136fail:
16137 {
16138 if (temp4)
16139 delete arg4;
16140 }
16141 {
16142 if (temp7) delete arg7;
16143 }
16144 {
16145 if (temp11)
16146 delete arg11;
16147 }
16148 return NULL;
16149}
16150
16151
16152SWIGINTERN PyObject *_wrap_RadioBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16153 PyObject *resultobj = 0;
16154 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16155 int arg2 ;
16156 void *argp1 = 0 ;
16157 int res1 = 0 ;
16158 int val2 ;
16159 int ecode2 = 0 ;
16160 PyObject * obj0 = 0 ;
16161 PyObject * obj1 = 0 ;
16162 char * kwnames[] = {
16163 (char *) "self",(char *) "n", NULL
16164 };
16165
16166 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16167 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16168 if (!SWIG_IsOK(res1)) {
16169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16170 }
16171 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16172 ecode2 = SWIG_AsVal_int(obj1, &val2);
16173 if (!SWIG_IsOK(ecode2)) {
16174 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
16175 }
16176 arg2 = static_cast< int >(val2);
16177 {
16178 PyThreadState* __tstate = wxPyBeginAllowThreads();
16179 (arg1)->SetSelection(arg2);
16180 wxPyEndAllowThreads(__tstate);
16181 if (PyErr_Occurred()) SWIG_fail;
16182 }
16183 resultobj = SWIG_Py_Void();
16184 return resultobj;
16185fail:
16186 return NULL;
d14a1e28
RD
16187}
16188
16189
0085ce49
RD
16190SWIGINTERN PyObject *_wrap_RadioBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16191 PyObject *resultobj = 0;
16192 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16193 int result;
16194 void *argp1 = 0 ;
16195 int res1 = 0 ;
16196 PyObject *swig_obj[1] ;
16197
16198 if (!args) SWIG_fail;
16199 swig_obj[0] = args;
16200 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16201 if (!SWIG_IsOK(res1)) {
16202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16203 }
16204 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16205 {
16206 PyThreadState* __tstate = wxPyBeginAllowThreads();
16207 result = (int)((wxRadioBox const *)arg1)->GetSelection();
16208 wxPyEndAllowThreads(__tstate);
16209 if (PyErr_Occurred()) SWIG_fail;
16210 }
16211 resultobj = SWIG_From_int(static_cast< int >(result));
16212 return resultobj;
16213fail:
16214 return NULL;
d14a1e28
RD
16215}
16216
16217
0085ce49
RD
16218SWIGINTERN PyObject *_wrap_RadioBox_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16219 PyObject *resultobj = 0;
16220 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16221 wxString result;
16222 void *argp1 = 0 ;
16223 int res1 = 0 ;
16224 PyObject *swig_obj[1] ;
16225
16226 if (!args) SWIG_fail;
16227 swig_obj[0] = args;
16228 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16229 if (!SWIG_IsOK(res1)) {
16230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16231 }
16232 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16233 {
16234 PyThreadState* __tstate = wxPyBeginAllowThreads();
16235 result = ((wxRadioBox const *)arg1)->GetStringSelection();
16236 wxPyEndAllowThreads(__tstate);
16237 if (PyErr_Occurred()) SWIG_fail;
16238 }
16239 {
16240#if wxUSE_UNICODE
16241 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16242#else
16243 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16244#endif
16245 }
16246 return resultobj;
16247fail:
16248 return NULL;
16249}
16250
16251
16252SWIGINTERN PyObject *_wrap_RadioBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16253 PyObject *resultobj = 0;
16254 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16255 wxString *arg2 = 0 ;
16256 bool result;
16257 void *argp1 = 0 ;
16258 int res1 = 0 ;
16259 bool temp2 = false ;
16260 PyObject * obj0 = 0 ;
16261 PyObject * obj1 = 0 ;
16262 char * kwnames[] = {
16263 (char *) "self",(char *) "s", NULL
16264 };
16265
16266 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16267 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16268 if (!SWIG_IsOK(res1)) {
16269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16270 }
16271 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16272 {
16273 arg2 = wxString_in_helper(obj1);
16274 if (arg2 == NULL) SWIG_fail;
16275 temp2 = true;
16276 }
16277 {
16278 PyThreadState* __tstate = wxPyBeginAllowThreads();
16279 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
16280 wxPyEndAllowThreads(__tstate);
16281 if (PyErr_Occurred()) SWIG_fail;
16282 }
16283 {
16284 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16285 }
16286 {
16287 if (temp2)
16288 delete arg2;
16289 }
16290 return resultobj;
16291fail:
16292 {
16293 if (temp2)
16294 delete arg2;
16295 }
16296 return NULL;
d14a1e28
RD
16297}
16298
16299
0085ce49
RD
16300SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16301 PyObject *resultobj = 0;
16302 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
75219dcb 16303 size_t result;
0085ce49
RD
16304 void *argp1 = 0 ;
16305 int res1 = 0 ;
16306 PyObject *swig_obj[1] ;
16307
16308 if (!args) SWIG_fail;
16309 swig_obj[0] = args;
16310 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16311 if (!SWIG_IsOK(res1)) {
16312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16313 }
16314 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16315 {
16316 PyThreadState* __tstate = wxPyBeginAllowThreads();
75219dcb 16317 result = (size_t)((wxRadioBox const *)arg1)->GetCount();
0085ce49
RD
16318 wxPyEndAllowThreads(__tstate);
16319 if (PyErr_Occurred()) SWIG_fail;
16320 }
75219dcb 16321 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
0085ce49
RD
16322 return resultobj;
16323fail:
16324 return NULL;
16325}
16326
16327
16328SWIGINTERN PyObject *_wrap_RadioBox_FindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16329 PyObject *resultobj = 0;
16330 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16331 wxString *arg2 = 0 ;
16332 int result;
16333 void *argp1 = 0 ;
16334 int res1 = 0 ;
16335 bool temp2 = false ;
16336 PyObject * obj0 = 0 ;
16337 PyObject * obj1 = 0 ;
16338 char * kwnames[] = {
16339 (char *) "self",(char *) "s", NULL
16340 };
16341
16342 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) SWIG_fail;
16343 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16344 if (!SWIG_IsOK(res1)) {
16345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_FindString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16346 }
16347 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16348 {
16349 arg2 = wxString_in_helper(obj1);
16350 if (arg2 == NULL) SWIG_fail;
16351 temp2 = true;
16352 }
16353 {
16354 PyThreadState* __tstate = wxPyBeginAllowThreads();
16355 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
16356 wxPyEndAllowThreads(__tstate);
16357 if (PyErr_Occurred()) SWIG_fail;
16358 }
16359 resultobj = SWIG_From_int(static_cast< int >(result));
16360 {
16361 if (temp2)
16362 delete arg2;
16363 }
16364 return resultobj;
16365fail:
16366 {
16367 if (temp2)
16368 delete arg2;
16369 }
16370 return NULL;
16371}
16372
16373
16374SWIGINTERN PyObject *_wrap_RadioBox_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16375 PyObject *resultobj = 0;
16376 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16377 int arg2 ;
16378 wxString result;
16379 void *argp1 = 0 ;
16380 int res1 = 0 ;
16381 int val2 ;
16382 int ecode2 = 0 ;
16383 PyObject * obj0 = 0 ;
16384 PyObject * obj1 = 0 ;
16385 char * kwnames[] = {
16386 (char *) "self",(char *) "n", NULL
16387 };
16388
16389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) SWIG_fail;
16390 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16391 if (!SWIG_IsOK(res1)) {
16392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16393 }
16394 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16395 ecode2 = SWIG_AsVal_int(obj1, &val2);
16396 if (!SWIG_IsOK(ecode2)) {
16397 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetString" "', expected argument " "2"" of type '" "int""'");
16398 }
16399 arg2 = static_cast< int >(val2);
16400 {
16401 PyThreadState* __tstate = wxPyBeginAllowThreads();
16402 result = ((wxRadioBox const *)arg1)->GetString(arg2);
16403 wxPyEndAllowThreads(__tstate);
16404 if (PyErr_Occurred()) SWIG_fail;
16405 }
16406 {
16407#if wxUSE_UNICODE
16408 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16409#else
16410 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16411#endif
16412 }
16413 return resultobj;
16414fail:
16415 return NULL;
16416}
16417
16418
16419SWIGINTERN PyObject *_wrap_RadioBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16420 PyObject *resultobj = 0;
16421 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16422 int arg2 ;
16423 wxString *arg3 = 0 ;
16424 void *argp1 = 0 ;
16425 int res1 = 0 ;
16426 int val2 ;
16427 int ecode2 = 0 ;
16428 bool temp3 = false ;
16429 PyObject * obj0 = 0 ;
16430 PyObject * obj1 = 0 ;
16431 PyObject * obj2 = 0 ;
16432 char * kwnames[] = {
16433 (char *) "self",(char *) "n",(char *) "label", NULL
16434 };
16435
16436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16438 if (!SWIG_IsOK(res1)) {
16439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetString" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16440 }
16441 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16442 ecode2 = SWIG_AsVal_int(obj1, &val2);
16443 if (!SWIG_IsOK(ecode2)) {
16444 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetString" "', expected argument " "2"" of type '" "int""'");
16445 }
16446 arg2 = static_cast< int >(val2);
16447 {
16448 arg3 = wxString_in_helper(obj2);
16449 if (arg3 == NULL) SWIG_fail;
16450 temp3 = true;
16451 }
16452 {
16453 PyThreadState* __tstate = wxPyBeginAllowThreads();
16454 (arg1)->SetString(arg2,(wxString const &)*arg3);
16455 wxPyEndAllowThreads(__tstate);
16456 if (PyErr_Occurred()) SWIG_fail;
16457 }
16458 resultobj = SWIG_Py_Void();
16459 {
16460 if (temp3)
16461 delete arg3;
16462 }
16463 return resultobj;
16464fail:
16465 {
16466 if (temp3)
16467 delete arg3;
16468 }
16469 return NULL;
16470}
16471
16472
16473SWIGINTERN PyObject *_wrap_RadioBox_EnableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16474 PyObject *resultobj = 0;
16475 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16476 unsigned int arg2 ;
0085ce49
RD
16477 bool arg3 = (bool) true ;
16478 void *argp1 = 0 ;
16479 int res1 = 0 ;
50f151d7 16480 unsigned int val2 ;
0085ce49
RD
16481 int ecode2 = 0 ;
16482 bool val3 ;
16483 int ecode3 = 0 ;
16484 PyObject * obj0 = 0 ;
16485 PyObject * obj1 = 0 ;
16486 PyObject * obj2 = 0 ;
16487 char * kwnames[] = {
16488 (char *) "self",(char *) "n",(char *) "enable", NULL
16489 };
16490
16491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16493 if (!SWIG_IsOK(res1)) {
16494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_EnableItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16495 }
16496 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
50f151d7 16497 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
0085ce49 16498 if (!SWIG_IsOK(ecode2)) {
50f151d7 16499 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_EnableItem" "', expected argument " "2"" of type '" "unsigned int""'");
0085ce49 16500 }
50f151d7 16501 arg2 = static_cast< unsigned int >(val2);
0085ce49
RD
16502 if (obj2) {
16503 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16504 if (!SWIG_IsOK(ecode3)) {
16505 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_EnableItem" "', expected argument " "3"" of type '" "bool""'");
16506 }
16507 arg3 = static_cast< bool >(val3);
16508 }
16509 {
16510 PyThreadState* __tstate = wxPyBeginAllowThreads();
16511 (arg1)->Enable(arg2,arg3);
16512 wxPyEndAllowThreads(__tstate);
16513 if (PyErr_Occurred()) SWIG_fail;
16514 }
16515 resultobj = SWIG_Py_Void();
16516 return resultobj;
16517fail:
16518 return NULL;
16519}
16520
16521
16522SWIGINTERN PyObject *_wrap_RadioBox_ShowItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16523 PyObject *resultobj = 0;
16524 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16525 unsigned int arg2 ;
0085ce49
RD
16526 bool arg3 = (bool) true ;
16527 void *argp1 = 0 ;
16528 int res1 = 0 ;
50f151d7 16529 unsigned int val2 ;
0085ce49
RD
16530 int ecode2 = 0 ;
16531 bool val3 ;
16532 int ecode3 = 0 ;
16533 PyObject * obj0 = 0 ;
16534 PyObject * obj1 = 0 ;
16535 PyObject * obj2 = 0 ;
16536 char * kwnames[] = {
16537 (char *) "self",(char *) "n",(char *) "show", NULL
16538 };
16539
16540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16541 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16542 if (!SWIG_IsOK(res1)) {
16543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_ShowItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16544 }
16545 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
50f151d7 16546 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
0085ce49 16547 if (!SWIG_IsOK(ecode2)) {
50f151d7 16548 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_ShowItem" "', expected argument " "2"" of type '" "unsigned int""'");
0085ce49 16549 }
50f151d7 16550 arg2 = static_cast< unsigned int >(val2);
0085ce49
RD
16551 if (obj2) {
16552 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16553 if (!SWIG_IsOK(ecode3)) {
16554 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_ShowItem" "', expected argument " "3"" of type '" "bool""'");
16555 }
16556 arg3 = static_cast< bool >(val3);
16557 }
16558 {
16559 PyThreadState* __tstate = wxPyBeginAllowThreads();
16560 (arg1)->Show(arg2,arg3);
16561 wxPyEndAllowThreads(__tstate);
16562 if (PyErr_Occurred()) SWIG_fail;
16563 }
16564 resultobj = SWIG_Py_Void();
16565 return resultobj;
16566fail:
16567 return NULL;
d14a1e28
RD
16568}
16569
16570
50f151d7
RD
16571SWIGINTERN PyObject *_wrap_RadioBox_IsItemEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16572 PyObject *resultobj = 0;
16573 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16574 unsigned int arg2 ;
16575 bool result;
16576 void *argp1 = 0 ;
16577 int res1 = 0 ;
16578 unsigned int val2 ;
16579 int ecode2 = 0 ;
16580 PyObject * obj0 = 0 ;
16581 PyObject * obj1 = 0 ;
16582 char * kwnames[] = {
16583 (char *) "self",(char *) "n", NULL
16584 };
16585
16586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
16587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16588 if (!SWIG_IsOK(res1)) {
16589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16590 }
16591 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16592 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16593 if (!SWIG_IsOK(ecode2)) {
16594 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "2"" of type '" "unsigned int""'");
16595 }
16596 arg2 = static_cast< unsigned int >(val2);
16597 {
16598 PyThreadState* __tstate = wxPyBeginAllowThreads();
16599 result = (bool)((wxRadioBox const *)arg1)->IsItemEnabled(arg2);
16600 wxPyEndAllowThreads(__tstate);
16601 if (PyErr_Occurred()) SWIG_fail;
16602 }
16603 {
16604 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16605 }
16606 return resultobj;
16607fail:
16608 return NULL;
16609}
16610
16611
16612SWIGINTERN PyObject *_wrap_RadioBox_IsItemShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16613 PyObject *resultobj = 0;
16614 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16615 unsigned int arg2 ;
16616 bool result;
16617 void *argp1 = 0 ;
16618 int res1 = 0 ;
16619 unsigned int val2 ;
16620 int ecode2 = 0 ;
16621 PyObject * obj0 = 0 ;
16622 PyObject * obj1 = 0 ;
16623 char * kwnames[] = {
16624 (char *) "self",(char *) "n", NULL
16625 };
16626
16627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemShown",kwnames,&obj0,&obj1)) SWIG_fail;
16628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16629 if (!SWIG_IsOK(res1)) {
16630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemShown" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16631 }
16632 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16633 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16634 if (!SWIG_IsOK(ecode2)) {
16635 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemShown" "', expected argument " "2"" of type '" "unsigned int""'");
16636 }
16637 arg2 = static_cast< unsigned int >(val2);
16638 {
16639 PyThreadState* __tstate = wxPyBeginAllowThreads();
16640 result = (bool)((wxRadioBox const *)arg1)->IsItemShown(arg2);
16641 wxPyEndAllowThreads(__tstate);
16642 if (PyErr_Occurred()) SWIG_fail;
16643 }
16644 {
16645 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16646 }
16647 return resultobj;
16648fail:
16649 return NULL;
16650}
16651
16652
0085ce49
RD
16653SWIGINTERN PyObject *_wrap_RadioBox_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16654 PyObject *resultobj = 0;
16655 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16656 unsigned int result;
0085ce49
RD
16657 void *argp1 = 0 ;
16658 int res1 = 0 ;
16659 PyObject *swig_obj[1] ;
16660
16661 if (!args) SWIG_fail;
16662 swig_obj[0] = args;
16663 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16664 if (!SWIG_IsOK(res1)) {
16665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetColumnCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16666 }
16667 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16668 {
16669 PyThreadState* __tstate = wxPyBeginAllowThreads();
50f151d7 16670 result = (unsigned int)((wxRadioBox const *)arg1)->GetColumnCount();
0085ce49
RD
16671 wxPyEndAllowThreads(__tstate);
16672 if (PyErr_Occurred()) SWIG_fail;
16673 }
50f151d7 16674 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
0085ce49
RD
16675 return resultobj;
16676fail:
16677 return NULL;
d14a1e28
RD
16678}
16679
16680
0085ce49
RD
16681SWIGINTERN PyObject *_wrap_RadioBox_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16682 PyObject *resultobj = 0;
16683 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16684 unsigned int result;
0085ce49
RD
16685 void *argp1 = 0 ;
16686 int res1 = 0 ;
16687 PyObject *swig_obj[1] ;
16688
16689 if (!args) SWIG_fail;
16690 swig_obj[0] = args;
16691 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16692 if (!SWIG_IsOK(res1)) {
16693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetRowCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16694 }
16695 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16696 {
16697 PyThreadState* __tstate = wxPyBeginAllowThreads();
50f151d7 16698 result = (unsigned int)((wxRadioBox const *)arg1)->GetRowCount();
0085ce49
RD
16699 wxPyEndAllowThreads(__tstate);
16700 if (PyErr_Occurred()) SWIG_fail;
16701 }
50f151d7 16702 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
0085ce49
RD
16703 return resultobj;
16704fail:
16705 return NULL;
16706}
16707
16708
16709SWIGINTERN PyObject *_wrap_RadioBox_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16710 PyObject *resultobj = 0;
16711 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16712 int arg2 ;
16713 wxDirection arg3 ;
16714 long arg4 ;
16715 int result;
16716 void *argp1 = 0 ;
16717 int res1 = 0 ;
16718 int val2 ;
16719 int ecode2 = 0 ;
16720 int val3 ;
16721 int ecode3 = 0 ;
16722 long val4 ;
16723 int ecode4 = 0 ;
16724 PyObject * obj0 = 0 ;
16725 PyObject * obj1 = 0 ;
16726 PyObject * obj2 = 0 ;
16727 PyObject * obj3 = 0 ;
16728 char * kwnames[] = {
16729 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
16730 };
16731
16732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16734 if (!SWIG_IsOK(res1)) {
16735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetNextItem" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16736 }
16737 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16738 ecode2 = SWIG_AsVal_int(obj1, &val2);
16739 if (!SWIG_IsOK(ecode2)) {
16740 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetNextItem" "', expected argument " "2"" of type '" "int""'");
16741 }
16742 arg2 = static_cast< int >(val2);
16743 ecode3 = SWIG_AsVal_int(obj2, &val3);
16744 if (!SWIG_IsOK(ecode3)) {
16745 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_GetNextItem" "', expected argument " "3"" of type '" "wxDirection""'");
16746 }
16747 arg3 = static_cast< wxDirection >(val3);
16748 ecode4 = SWIG_AsVal_long(obj3, &val4);
16749 if (!SWIG_IsOK(ecode4)) {
16750 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RadioBox_GetNextItem" "', expected argument " "4"" of type '" "long""'");
16751 }
16752 arg4 = static_cast< long >(val4);
16753 {
16754 PyThreadState* __tstate = wxPyBeginAllowThreads();
50f151d7 16755 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,arg3,arg4);
0085ce49
RD
16756 wxPyEndAllowThreads(__tstate);
16757 if (PyErr_Occurred()) SWIG_fail;
16758 }
16759 resultobj = SWIG_From_int(static_cast< int >(result));
16760 return resultobj;
16761fail:
16762 return NULL;
16763}
16764
16765
16766SWIGINTERN PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16767 PyObject *resultobj = 0;
16768 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
16769 SwigValueWrapper<wxVisualAttributes > result;
16770 int val1 ;
16771 int ecode1 = 0 ;
16772 PyObject * obj0 = 0 ;
16773 char * kwnames[] = {
16774 (char *) "variant", NULL
16775 };
16776
16777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
16778 if (obj0) {
16779 ecode1 = SWIG_AsVal_int(obj0, &val1);
16780 if (!SWIG_IsOK(ecode1)) {
16781 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
16782 }
16783 arg1 = static_cast< wxWindowVariant >(val1);
16784 }
16785 {
16786 if (!wxPyCheckForApp()) SWIG_fail;
16787 PyThreadState* __tstate = wxPyBeginAllowThreads();
16788 result = wxRadioBox::GetClassDefaultAttributes(arg1);
16789 wxPyEndAllowThreads(__tstate);
16790 if (PyErr_Occurred()) SWIG_fail;
16791 }
16792 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
16793 return resultobj;
16794fail:
16795 return NULL;
16796}
16797
16798
16799SWIGINTERN PyObject *RadioBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16800 PyObject *obj;
16801 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16802 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioBox, SWIG_NewClientData(obj));
16803 return SWIG_Py_Void();
16804}
16805
16806SWIGINTERN PyObject *RadioBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16807 return SWIG_Python_InitShadowInstance(args);
16808}
16809
16810SWIGINTERN PyObject *_wrap_new_RadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16811 PyObject *resultobj = 0;
16812 wxWindow *arg1 = (wxWindow *) 0 ;
16813 int arg2 = (int) -1 ;
16814 wxString const &arg3_defvalue = wxPyEmptyString ;
16815 wxString *arg3 = (wxString *) &arg3_defvalue ;
16816 wxPoint const &arg4_defvalue = wxDefaultPosition ;
16817 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
16818 wxSize const &arg5_defvalue = wxDefaultSize ;
16819 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
16820 long arg6 = (long) 0 ;
16821 wxValidator const &arg7_defvalue = wxDefaultValidator ;
16822 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
16823 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
16824 wxString *arg8 = (wxString *) &arg8_defvalue ;
16825 wxRadioButton *result = 0 ;
16826 void *argp1 = 0 ;
16827 int res1 = 0 ;
16828 int val2 ;
16829 int ecode2 = 0 ;
16830 bool temp3 = false ;
16831 wxPoint temp4 ;
16832 wxSize temp5 ;
16833 long val6 ;
16834 int ecode6 = 0 ;
16835 void *argp7 = 0 ;
16836 int res7 = 0 ;
16837 bool temp8 = false ;
16838 PyObject * obj0 = 0 ;
16839 PyObject * obj1 = 0 ;
16840 PyObject * obj2 = 0 ;
16841 PyObject * obj3 = 0 ;
16842 PyObject * obj4 = 0 ;
16843 PyObject * obj5 = 0 ;
16844 PyObject * obj6 = 0 ;
16845 PyObject * obj7 = 0 ;
16846 char * kwnames[] = {
16847 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
16848 };
16849
16850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
16851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
16852 if (!SWIG_IsOK(res1)) {
16853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioButton" "', expected argument " "1"" of type '" "wxWindow *""'");
16854 }
16855 arg1 = reinterpret_cast< wxWindow * >(argp1);
16856 if (obj1) {
16857 ecode2 = SWIG_AsVal_int(obj1, &val2);
16858 if (!SWIG_IsOK(ecode2)) {
16859 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioButton" "', expected argument " "2"" of type '" "int""'");
16860 }
16861 arg2 = static_cast< int >(val2);
16862 }
16863 if (obj2) {
d14a1e28 16864 {
0085ce49
RD
16865 arg3 = wxString_in_helper(obj2);
16866 if (arg3 == NULL) SWIG_fail;
16867 temp3 = true;
d14a1e28 16868 }
0085ce49
RD
16869 }
16870 if (obj3) {
d14a1e28 16871 {
0085ce49
RD
16872 arg4 = &temp4;
16873 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 16874 }
0085ce49
RD
16875 }
16876 if (obj4) {
d14a1e28 16877 {
0085ce49
RD
16878 arg5 = &temp5;
16879 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
16880 }
16881 }
16882 if (obj5) {
16883 ecode6 = SWIG_AsVal_long(obj5, &val6);
16884 if (!SWIG_IsOK(ecode6)) {
16885 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RadioButton" "', expected argument " "6"" of type '" "long""'");
16886 }
16887 arg6 = static_cast< long >(val6);
16888 }
16889 if (obj6) {
16890 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
16891 if (!SWIG_IsOK(res7)) {
16892 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 16893 }
0085ce49
RD
16894 if (!argp7) {
16895 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
16896 }
16897 arg7 = reinterpret_cast< wxValidator * >(argp7);
16898 }
16899 if (obj7) {
d14a1e28 16900 {
0085ce49
RD
16901 arg8 = wxString_in_helper(obj7);
16902 if (arg8 == NULL) SWIG_fail;
16903 temp8 = true;
d14a1e28 16904 }
0085ce49
RD
16905 }
16906 {
16907 if (!wxPyCheckForApp()) SWIG_fail;
16908 PyThreadState* __tstate = wxPyBeginAllowThreads();
16909 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
16910 wxPyEndAllowThreads(__tstate);
16911 if (PyErr_Occurred()) SWIG_fail;
16912 }
16913 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_NEW | 0 );
16914 {
16915 if (temp3)
16916 delete arg3;
16917 }
16918 {
16919 if (temp8)
16920 delete arg8;
16921 }
16922 return resultobj;
16923fail:
16924 {
16925 if (temp3)
16926 delete arg3;
16927 }
16928 {
16929 if (temp8)
16930 delete arg8;
16931 }
16932 return NULL;
d14a1e28
RD
16933}
16934
16935
0085ce49
RD
16936SWIGINTERN PyObject *_wrap_new_PreRadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16937 PyObject *resultobj = 0;
16938 wxRadioButton *result = 0 ;
16939
16940 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioButton",0,0,0)) SWIG_fail;
16941 {
16942 if (!wxPyCheckForApp()) SWIG_fail;
16943 PyThreadState* __tstate = wxPyBeginAllowThreads();
16944 result = (wxRadioButton *)new wxRadioButton();
16945 wxPyEndAllowThreads(__tstate);
16946 if (PyErr_Occurred()) SWIG_fail;
16947 }
16948 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_OWN | 0 );
16949 return resultobj;
16950fail:
16951 return NULL;
16952}
16953
16954
16955SWIGINTERN PyObject *_wrap_RadioButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16956 PyObject *resultobj = 0;
16957 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
16958 wxWindow *arg2 = (wxWindow *) 0 ;
16959 int arg3 = (int) -1 ;
16960 wxString const &arg4_defvalue = wxPyEmptyString ;
16961 wxString *arg4 = (wxString *) &arg4_defvalue ;
16962 wxPoint const &arg5_defvalue = wxDefaultPosition ;
16963 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
16964 wxSize const &arg6_defvalue = wxDefaultSize ;
16965 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
16966 long arg7 = (long) 0 ;
16967 wxValidator const &arg8_defvalue = wxDefaultValidator ;
16968 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
16969 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
16970 wxString *arg9 = (wxString *) &arg9_defvalue ;
16971 bool result;
16972 void *argp1 = 0 ;
16973 int res1 = 0 ;
16974 void *argp2 = 0 ;
16975 int res2 = 0 ;
16976 int val3 ;
16977 int ecode3 = 0 ;
16978 bool temp4 = false ;
16979 wxPoint temp5 ;
16980 wxSize temp6 ;
16981 long val7 ;
16982 int ecode7 = 0 ;
16983 void *argp8 = 0 ;
16984 int res8 = 0 ;
16985 bool temp9 = false ;
16986 PyObject * obj0 = 0 ;
16987 PyObject * obj1 = 0 ;
16988 PyObject * obj2 = 0 ;
16989 PyObject * obj3 = 0 ;
16990 PyObject * obj4 = 0 ;
16991 PyObject * obj5 = 0 ;
16992 PyObject * obj6 = 0 ;
16993 PyObject * obj7 = 0 ;
16994 PyObject * obj8 = 0 ;
16995 char * kwnames[] = {
16996 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
16997 };
16998
16999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
17000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17001 if (!SWIG_IsOK(res1)) {
17002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_Create" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17003 }
17004 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17005 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17006 if (!SWIG_IsOK(res2)) {
17007 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17008 }
17009 arg2 = reinterpret_cast< wxWindow * >(argp2);
17010 if (obj2) {
17011 ecode3 = SWIG_AsVal_int(obj2, &val3);
17012 if (!SWIG_IsOK(ecode3)) {
17013 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioButton_Create" "', expected argument " "3"" of type '" "int""'");
17014 }
17015 arg3 = static_cast< int >(val3);
17016 }
17017 if (obj3) {
d14a1e28 17018 {
0085ce49
RD
17019 arg4 = wxString_in_helper(obj3);
17020 if (arg4 == NULL) SWIG_fail;
17021 temp4 = true;
d14a1e28 17022 }
0085ce49
RD
17023 }
17024 if (obj4) {
d14a1e28 17025 {
0085ce49
RD
17026 arg5 = &temp5;
17027 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 17028 }
0085ce49
RD
17029 }
17030 if (obj5) {
d14a1e28 17031 {
0085ce49
RD
17032 arg6 = &temp6;
17033 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
17034 }
17035 }
17036 if (obj6) {
17037 ecode7 = SWIG_AsVal_long(obj6, &val7);
17038 if (!SWIG_IsOK(ecode7)) {
17039 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RadioButton_Create" "', expected argument " "7"" of type '" "long""'");
17040 }
17041 arg7 = static_cast< long >(val7);
17042 }
17043 if (obj7) {
17044 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
17045 if (!SWIG_IsOK(res8)) {
17046 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17047 }
17048 if (!argp8) {
17049 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 17050 }
0085ce49
RD
17051 arg8 = reinterpret_cast< wxValidator * >(argp8);
17052 }
17053 if (obj8) {
d14a1e28 17054 {
0085ce49
RD
17055 arg9 = wxString_in_helper(obj8);
17056 if (arg9 == NULL) SWIG_fail;
17057 temp9 = true;
d14a1e28 17058 }
0085ce49
RD
17059 }
17060 {
17061 PyThreadState* __tstate = wxPyBeginAllowThreads();
17062 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
17063 wxPyEndAllowThreads(__tstate);
17064 if (PyErr_Occurred()) SWIG_fail;
17065 }
17066 {
17067 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17068 }
17069 {
17070 if (temp4)
17071 delete arg4;
17072 }
17073 {
17074 if (temp9)
17075 delete arg9;
17076 }
17077 return resultobj;
17078fail:
17079 {
17080 if (temp4)
17081 delete arg4;
17082 }
17083 {
17084 if (temp9)
17085 delete arg9;
17086 }
17087 return NULL;
d14a1e28
RD
17088}
17089
17090
0085ce49
RD
17091SWIGINTERN PyObject *_wrap_RadioButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17092 PyObject *resultobj = 0;
17093 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17094 bool result;
17095 void *argp1 = 0 ;
17096 int res1 = 0 ;
17097 PyObject *swig_obj[1] ;
17098
17099 if (!args) SWIG_fail;
17100 swig_obj[0] = args;
17101 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17102 if (!SWIG_IsOK(res1)) {
17103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_GetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17104 }
17105 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17106 {
17107 PyThreadState* __tstate = wxPyBeginAllowThreads();
17108 result = (bool)(arg1)->GetValue();
17109 wxPyEndAllowThreads(__tstate);
17110 if (PyErr_Occurred()) SWIG_fail;
17111 }
17112 {
17113 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17114 }
17115 return resultobj;
17116fail:
17117 return NULL;
17118}
17119
17120
17121SWIGINTERN PyObject *_wrap_RadioButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17122 PyObject *resultobj = 0;
17123 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17124 bool arg2 ;
17125 void *argp1 = 0 ;
17126 int res1 = 0 ;
17127 bool val2 ;
17128 int ecode2 = 0 ;
17129 PyObject * obj0 = 0 ;
17130 PyObject * obj1 = 0 ;
17131 char * kwnames[] = {
17132 (char *) "self",(char *) "value", NULL
17133 };
17134
17135 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17136 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17137 if (!SWIG_IsOK(res1)) {
17138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_SetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17139 }
17140 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17141 ecode2 = SWIG_AsVal_bool(obj1, &val2);
17142 if (!SWIG_IsOK(ecode2)) {
17143 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
17144 }
17145 arg2 = static_cast< bool >(val2);
17146 {
17147 PyThreadState* __tstate = wxPyBeginAllowThreads();
17148 (arg1)->SetValue(arg2);
17149 wxPyEndAllowThreads(__tstate);
17150 if (PyErr_Occurred()) SWIG_fail;
17151 }
17152 resultobj = SWIG_Py_Void();
17153 return resultobj;
17154fail:
17155 return NULL;
17156}
17157
17158
17159SWIGINTERN PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17160 PyObject *resultobj = 0;
17161 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17162 SwigValueWrapper<wxVisualAttributes > result;
17163 int val1 ;
17164 int ecode1 = 0 ;
17165 PyObject * obj0 = 0 ;
17166 char * kwnames[] = {
17167 (char *) "variant", NULL
17168 };
17169
17170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17171 if (obj0) {
17172 ecode1 = SWIG_AsVal_int(obj0, &val1);
17173 if (!SWIG_IsOK(ecode1)) {
17174 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17175 }
17176 arg1 = static_cast< wxWindowVariant >(val1);
17177 }
17178 {
17179 if (!wxPyCheckForApp()) SWIG_fail;
17180 PyThreadState* __tstate = wxPyBeginAllowThreads();
17181 result = wxRadioButton::GetClassDefaultAttributes(arg1);
17182 wxPyEndAllowThreads(__tstate);
17183 if (PyErr_Occurred()) SWIG_fail;
17184 }
17185 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17186 return resultobj;
17187fail:
17188 return NULL;
d14a1e28
RD
17189}
17190
17191
0085ce49
RD
17192SWIGINTERN PyObject *RadioButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17193 PyObject *obj;
17194 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17195 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioButton, SWIG_NewClientData(obj));
17196 return SWIG_Py_Void();
17197}
17198
17199SWIGINTERN PyObject *RadioButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17200 return SWIG_Python_InitShadowInstance(args);
17201}
17202
17203SWIGINTERN int SliderNameStr_set(PyObject *) {
17204 SWIG_Error(SWIG_AttributeError,"Variable SliderNameStr is read-only.");
17205 return 1;
17206}
17207
17208
17209SWIGINTERN PyObject *SliderNameStr_get(void) {
17210 PyObject *pyobj = 0;
17211
17212 {
17213#if wxUSE_UNICODE
17214 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17215#else
17216 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17217#endif
17218 }
17219 return pyobj;
17220}
17221
17222
17223SWIGINTERN PyObject *_wrap_new_Slider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17224 PyObject *resultobj = 0;
17225 wxWindow *arg1 = (wxWindow *) 0 ;
17226 int arg2 = (int) -1 ;
17227 int arg3 = (int) 0 ;
17228 int arg4 = (int) 0 ;
17229 int arg5 = (int) 100 ;
17230 wxPoint const &arg6_defvalue = wxDefaultPosition ;
17231 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
17232 wxSize const &arg7_defvalue = wxDefaultSize ;
17233 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
17234 long arg8 = (long) wxSL_HORIZONTAL ;
17235 wxValidator const &arg9_defvalue = wxDefaultValidator ;
17236 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
17237 wxString const &arg10_defvalue = wxPySliderNameStr ;
17238 wxString *arg10 = (wxString *) &arg10_defvalue ;
17239 wxSlider *result = 0 ;
17240 void *argp1 = 0 ;
17241 int res1 = 0 ;
17242 int val2 ;
17243 int ecode2 = 0 ;
17244 int val3 ;
17245 int ecode3 = 0 ;
17246 int val4 ;
17247 int ecode4 = 0 ;
17248 int val5 ;
17249 int ecode5 = 0 ;
17250 wxPoint temp6 ;
17251 wxSize temp7 ;
17252 long val8 ;
17253 int ecode8 = 0 ;
17254 void *argp9 = 0 ;
17255 int res9 = 0 ;
17256 bool temp10 = false ;
17257 PyObject * obj0 = 0 ;
17258 PyObject * obj1 = 0 ;
17259 PyObject * obj2 = 0 ;
17260 PyObject * obj3 = 0 ;
17261 PyObject * obj4 = 0 ;
17262 PyObject * obj5 = 0 ;
17263 PyObject * obj6 = 0 ;
17264 PyObject * obj7 = 0 ;
17265 PyObject * obj8 = 0 ;
17266 PyObject * obj9 = 0 ;
17267 char * kwnames[] = {
17268 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17269 };
17270
17271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
17272 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17273 if (!SWIG_IsOK(res1)) {
17274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Slider" "', expected argument " "1"" of type '" "wxWindow *""'");
17275 }
17276 arg1 = reinterpret_cast< wxWindow * >(argp1);
17277 if (obj1) {
17278 ecode2 = SWIG_AsVal_int(obj1, &val2);
17279 if (!SWIG_IsOK(ecode2)) {
17280 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Slider" "', expected argument " "2"" of type '" "int""'");
17281 }
17282 arg2 = static_cast< int >(val2);
17283 }
17284 if (obj2) {
17285 ecode3 = SWIG_AsVal_int(obj2, &val3);
17286 if (!SWIG_IsOK(ecode3)) {
17287 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Slider" "', expected argument " "3"" of type '" "int""'");
17288 }
17289 arg3 = static_cast< int >(val3);
17290 }
17291 if (obj3) {
17292 ecode4 = SWIG_AsVal_int(obj3, &val4);
17293 if (!SWIG_IsOK(ecode4)) {
17294 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Slider" "', expected argument " "4"" of type '" "int""'");
17295 }
17296 arg4 = static_cast< int >(val4);
17297 }
17298 if (obj4) {
17299 ecode5 = SWIG_AsVal_int(obj4, &val5);
17300 if (!SWIG_IsOK(ecode5)) {
17301 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Slider" "', expected argument " "5"" of type '" "int""'");
17302 }
17303 arg5 = static_cast< int >(val5);
17304 }
17305 if (obj5) {
093d3ff1 17306 {
0085ce49
RD
17307 arg6 = &temp6;
17308 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
093d3ff1 17309 }
0085ce49
RD
17310 }
17311 if (obj6) {
093d3ff1 17312 {
0085ce49
RD
17313 arg7 = &temp7;
17314 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
093d3ff1 17315 }
0085ce49
RD
17316 }
17317 if (obj7) {
17318 ecode8 = SWIG_AsVal_long(obj7, &val8);
17319 if (!SWIG_IsOK(ecode8)) {
17320 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Slider" "', expected argument " "8"" of type '" "long""'");
17321 }
17322 arg8 = static_cast< long >(val8);
17323 }
17324 if (obj8) {
17325 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
17326 if (!SWIG_IsOK(res9)) {
17327 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
d14a1e28 17328 }
0085ce49
RD
17329 if (!argp9) {
17330 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
d14a1e28 17331 }
0085ce49
RD
17332 arg9 = reinterpret_cast< wxValidator * >(argp9);
17333 }
17334 if (obj9) {
4f89f6a3 17335 {
0085ce49
RD
17336 arg10 = wxString_in_helper(obj9);
17337 if (arg10 == NULL) SWIG_fail;
17338 temp10 = true;
4f89f6a3 17339 }
0085ce49
RD
17340 }
17341 {
17342 if (!wxPyCheckForApp()) SWIG_fail;
17343 PyThreadState* __tstate = wxPyBeginAllowThreads();
17344 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
17345 wxPyEndAllowThreads(__tstate);
17346 if (PyErr_Occurred()) SWIG_fail;
17347 }
17348 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_NEW | 0 );
17349 {
17350 if (temp10)
17351 delete arg10;
17352 }
17353 return resultobj;
17354fail:
17355 {
17356 if (temp10)
17357 delete arg10;
17358 }
17359 return NULL;
d14a1e28
RD
17360}
17361
17362
0085ce49
RD
17363SWIGINTERN PyObject *_wrap_new_PreSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17364 PyObject *resultobj = 0;
17365 wxSlider *result = 0 ;
17366
17367 if (!SWIG_Python_UnpackTuple(args,"new_PreSlider",0,0,0)) SWIG_fail;
17368 {
17369 if (!wxPyCheckForApp()) SWIG_fail;
17370 PyThreadState* __tstate = wxPyBeginAllowThreads();
17371 result = (wxSlider *)new wxSlider();
17372 wxPyEndAllowThreads(__tstate);
17373 if (PyErr_Occurred()) SWIG_fail;
17374 }
17375 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_OWN | 0 );
17376 return resultobj;
17377fail:
17378 return NULL;
17379}
17380
17381
17382SWIGINTERN PyObject *_wrap_Slider_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17383 PyObject *resultobj = 0;
17384 wxSlider *arg1 = (wxSlider *) 0 ;
17385 wxWindow *arg2 = (wxWindow *) 0 ;
17386 int arg3 = (int) -1 ;
17387 int arg4 = (int) 0 ;
17388 int arg5 = (int) 0 ;
17389 int arg6 = (int) 100 ;
17390 wxPoint const &arg7_defvalue = wxDefaultPosition ;
17391 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
17392 wxSize const &arg8_defvalue = wxDefaultSize ;
17393 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
17394 long arg9 = (long) wxSL_HORIZONTAL ;
17395 wxValidator const &arg10_defvalue = wxDefaultValidator ;
17396 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
17397 wxString const &arg11_defvalue = wxPySliderNameStr ;
17398 wxString *arg11 = (wxString *) &arg11_defvalue ;
17399 bool result;
17400 void *argp1 = 0 ;
17401 int res1 = 0 ;
17402 void *argp2 = 0 ;
17403 int res2 = 0 ;
17404 int val3 ;
17405 int ecode3 = 0 ;
17406 int val4 ;
17407 int ecode4 = 0 ;
17408 int val5 ;
17409 int ecode5 = 0 ;
17410 int val6 ;
17411 int ecode6 = 0 ;
17412 wxPoint temp7 ;
17413 wxSize temp8 ;
17414 long val9 ;
17415 int ecode9 = 0 ;
17416 void *argp10 = 0 ;
17417 int res10 = 0 ;
17418 bool temp11 = false ;
17419 PyObject * obj0 = 0 ;
17420 PyObject * obj1 = 0 ;
17421 PyObject * obj2 = 0 ;
17422 PyObject * obj3 = 0 ;
17423 PyObject * obj4 = 0 ;
17424 PyObject * obj5 = 0 ;
17425 PyObject * obj6 = 0 ;
17426 PyObject * obj7 = 0 ;
17427 PyObject * obj8 = 0 ;
17428 PyObject * obj9 = 0 ;
17429 PyObject * obj10 = 0 ;
17430 char * kwnames[] = {
17431 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17432 };
17433
17434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
17435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17436 if (!SWIG_IsOK(res1)) {
17437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_Create" "', expected argument " "1"" of type '" "wxSlider *""'");
17438 }
17439 arg1 = reinterpret_cast< wxSlider * >(argp1);
17440 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17441 if (!SWIG_IsOK(res2)) {
17442 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Slider_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17443 }
17444 arg2 = reinterpret_cast< wxWindow * >(argp2);
17445 if (obj2) {
17446 ecode3 = SWIG_AsVal_int(obj2, &val3);
17447 if (!SWIG_IsOK(ecode3)) {
17448 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_Create" "', expected argument " "3"" of type '" "int""'");
17449 }
17450 arg3 = static_cast< int >(val3);
17451 }
17452 if (obj3) {
17453 ecode4 = SWIG_AsVal_int(obj3, &val4);
17454 if (!SWIG_IsOK(ecode4)) {
17455 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Slider_Create" "', expected argument " "4"" of type '" "int""'");
17456 }
17457 arg4 = static_cast< int >(val4);
17458 }
17459 if (obj4) {
17460 ecode5 = SWIG_AsVal_int(obj4, &val5);
17461 if (!SWIG_IsOK(ecode5)) {
17462 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Slider_Create" "', expected argument " "5"" of type '" "int""'");
17463 }
17464 arg5 = static_cast< int >(val5);
17465 }
17466 if (obj5) {
17467 ecode6 = SWIG_AsVal_int(obj5, &val6);
17468 if (!SWIG_IsOK(ecode6)) {
17469 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Slider_Create" "', expected argument " "6"" of type '" "int""'");
17470 }
17471 arg6 = static_cast< int >(val6);
17472 }
17473 if (obj6) {
093d3ff1 17474 {
0085ce49
RD
17475 arg7 = &temp7;
17476 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
d14a1e28 17477 }
0085ce49
RD
17478 }
17479 if (obj7) {
d14a1e28 17480 {
0085ce49
RD
17481 arg8 = &temp8;
17482 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
d14a1e28 17483 }
0085ce49
RD
17484 }
17485 if (obj8) {
17486 ecode9 = SWIG_AsVal_long(obj8, &val9);
17487 if (!SWIG_IsOK(ecode9)) {
17488 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "Slider_Create" "', expected argument " "9"" of type '" "long""'");
17489 }
17490 arg9 = static_cast< long >(val9);
17491 }
17492 if (obj9) {
17493 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
17494 if (!SWIG_IsOK(res10)) {
17495 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
d14a1e28 17496 }
0085ce49
RD
17497 if (!argp10) {
17498 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
d14a1e28 17499 }
0085ce49
RD
17500 arg10 = reinterpret_cast< wxValidator * >(argp10);
17501 }
17502 if (obj10) {
4f89f6a3 17503 {
0085ce49
RD
17504 arg11 = wxString_in_helper(obj10);
17505 if (arg11 == NULL) SWIG_fail;
17506 temp11 = true;
4f89f6a3 17507 }
0085ce49
RD
17508 }
17509 {
17510 PyThreadState* __tstate = wxPyBeginAllowThreads();
17511 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
17512 wxPyEndAllowThreads(__tstate);
17513 if (PyErr_Occurred()) SWIG_fail;
17514 }
17515 {
17516 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17517 }
17518 {
17519 if (temp11)
17520 delete arg11;
17521 }
17522 return resultobj;
17523fail:
17524 {
17525 if (temp11)
17526 delete arg11;
17527 }
17528 return NULL;
d14a1e28
RD
17529}
17530
17531
0085ce49
RD
17532SWIGINTERN PyObject *_wrap_Slider_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17533 PyObject *resultobj = 0;
17534 wxSlider *arg1 = (wxSlider *) 0 ;
17535 int result;
17536 void *argp1 = 0 ;
17537 int res1 = 0 ;
17538 PyObject *swig_obj[1] ;
17539
17540 if (!args) SWIG_fail;
17541 swig_obj[0] = args;
17542 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17543 if (!SWIG_IsOK(res1)) {
17544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetValue" "', expected argument " "1"" of type '" "wxSlider const *""'");
17545 }
17546 arg1 = reinterpret_cast< wxSlider * >(argp1);
17547 {
17548 PyThreadState* __tstate = wxPyBeginAllowThreads();
17549 result = (int)((wxSlider const *)arg1)->GetValue();
17550 wxPyEndAllowThreads(__tstate);
17551 if (PyErr_Occurred()) SWIG_fail;
17552 }
17553 resultobj = SWIG_From_int(static_cast< int >(result));
17554 return resultobj;
17555fail:
17556 return NULL;
17557}
17558
17559
17560SWIGINTERN PyObject *_wrap_Slider_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17561 PyObject *resultobj = 0;
17562 wxSlider *arg1 = (wxSlider *) 0 ;
17563 int arg2 ;
17564 void *argp1 = 0 ;
17565 int res1 = 0 ;
17566 int val2 ;
17567 int ecode2 = 0 ;
17568 PyObject * obj0 = 0 ;
17569 PyObject * obj1 = 0 ;
17570 char * kwnames[] = {
17571 (char *) "self",(char *) "value", NULL
17572 };
17573
17574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17576 if (!SWIG_IsOK(res1)) {
17577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetValue" "', expected argument " "1"" of type '" "wxSlider *""'");
17578 }
17579 arg1 = reinterpret_cast< wxSlider * >(argp1);
17580 ecode2 = SWIG_AsVal_int(obj1, &val2);
17581 if (!SWIG_IsOK(ecode2)) {
17582 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetValue" "', expected argument " "2"" of type '" "int""'");
17583 }
17584 arg2 = static_cast< int >(val2);
17585 {
17586 PyThreadState* __tstate = wxPyBeginAllowThreads();
17587 (arg1)->SetValue(arg2);
17588 wxPyEndAllowThreads(__tstate);
17589 if (PyErr_Occurred()) SWIG_fail;
17590 }
17591 resultobj = SWIG_Py_Void();
17592 return resultobj;
17593fail:
17594 return NULL;
17595}
17596
17597
17598SWIGINTERN PyObject *_wrap_Slider_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17599 PyObject *resultobj = 0;
17600 wxSlider *arg1 = (wxSlider *) 0 ;
17601 int arg2 ;
17602 int arg3 ;
17603 void *argp1 = 0 ;
17604 int res1 = 0 ;
17605 int val2 ;
17606 int ecode2 = 0 ;
17607 int val3 ;
17608 int ecode3 = 0 ;
17609 PyObject * obj0 = 0 ;
17610 PyObject * obj1 = 0 ;
17611 PyObject * obj2 = 0 ;
17612 char * kwnames[] = {
17613 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
17614 };
17615
17616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17618 if (!SWIG_IsOK(res1)) {
17619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetRange" "', expected argument " "1"" of type '" "wxSlider *""'");
17620 }
17621 arg1 = reinterpret_cast< wxSlider * >(argp1);
17622 ecode2 = SWIG_AsVal_int(obj1, &val2);
17623 if (!SWIG_IsOK(ecode2)) {
17624 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetRange" "', expected argument " "2"" of type '" "int""'");
17625 }
17626 arg2 = static_cast< int >(val2);
17627 ecode3 = SWIG_AsVal_int(obj2, &val3);
17628 if (!SWIG_IsOK(ecode3)) {
17629 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetRange" "', expected argument " "3"" of type '" "int""'");
17630 }
17631 arg3 = static_cast< int >(val3);
17632 {
17633 PyThreadState* __tstate = wxPyBeginAllowThreads();
17634 (arg1)->SetRange(arg2,arg3);
17635 wxPyEndAllowThreads(__tstate);
17636 if (PyErr_Occurred()) SWIG_fail;
17637 }
17638 resultobj = SWIG_Py_Void();
17639 return resultobj;
17640fail:
17641 return NULL;
d14a1e28
RD
17642}
17643
17644
0085ce49
RD
17645SWIGINTERN PyObject *_wrap_Slider_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17646 PyObject *resultobj = 0;
17647 wxSlider *arg1 = (wxSlider *) 0 ;
17648 int result;
17649 void *argp1 = 0 ;
17650 int res1 = 0 ;
17651 PyObject *swig_obj[1] ;
17652
17653 if (!args) SWIG_fail;
17654 swig_obj[0] = args;
17655 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17656 if (!SWIG_IsOK(res1)) {
17657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMin" "', expected argument " "1"" of type '" "wxSlider const *""'");
17658 }
17659 arg1 = reinterpret_cast< wxSlider * >(argp1);
17660 {
17661 PyThreadState* __tstate = wxPyBeginAllowThreads();
17662 result = (int)((wxSlider const *)arg1)->GetMin();
17663 wxPyEndAllowThreads(__tstate);
17664 if (PyErr_Occurred()) SWIG_fail;
17665 }
17666 resultobj = SWIG_From_int(static_cast< int >(result));
17667 return resultobj;
17668fail:
17669 return NULL;
d14a1e28
RD
17670}
17671
17672
0085ce49
RD
17673SWIGINTERN PyObject *_wrap_Slider_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17674 PyObject *resultobj = 0;
17675 wxSlider *arg1 = (wxSlider *) 0 ;
17676 int result;
17677 void *argp1 = 0 ;
17678 int res1 = 0 ;
17679 PyObject *swig_obj[1] ;
17680
17681 if (!args) SWIG_fail;
17682 swig_obj[0] = args;
17683 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17684 if (!SWIG_IsOK(res1)) {
17685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMax" "', expected argument " "1"" of type '" "wxSlider const *""'");
17686 }
17687 arg1 = reinterpret_cast< wxSlider * >(argp1);
17688 {
17689 PyThreadState* __tstate = wxPyBeginAllowThreads();
17690 result = (int)((wxSlider const *)arg1)->GetMax();
17691 wxPyEndAllowThreads(__tstate);
17692 if (PyErr_Occurred()) SWIG_fail;
17693 }
17694 resultobj = SWIG_From_int(static_cast< int >(result));
17695 return resultobj;
17696fail:
17697 return NULL;
17698}
17699
17700
17701SWIGINTERN PyObject *_wrap_Slider_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17702 PyObject *resultobj = 0;
17703 wxSlider *arg1 = (wxSlider *) 0 ;
17704 int arg2 ;
17705 void *argp1 = 0 ;
17706 int res1 = 0 ;
17707 int val2 ;
17708 int ecode2 = 0 ;
17709 PyObject * obj0 = 0 ;
17710 PyObject * obj1 = 0 ;
17711 char * kwnames[] = {
17712 (char *) "self",(char *) "minValue", NULL
17713 };
17714
17715 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
17716 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17717 if (!SWIG_IsOK(res1)) {
17718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMin" "', expected argument " "1"" of type '" "wxSlider *""'");
17719 }
17720 arg1 = reinterpret_cast< wxSlider * >(argp1);
17721 ecode2 = SWIG_AsVal_int(obj1, &val2);
17722 if (!SWIG_IsOK(ecode2)) {
17723 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMin" "', expected argument " "2"" of type '" "int""'");
17724 }
17725 arg2 = static_cast< int >(val2);
17726 {
17727 PyThreadState* __tstate = wxPyBeginAllowThreads();
17728 (arg1)->SetMin(arg2);
17729 wxPyEndAllowThreads(__tstate);
17730 if (PyErr_Occurred()) SWIG_fail;
17731 }
17732 resultobj = SWIG_Py_Void();
17733 return resultobj;
17734fail:
17735 return NULL;
17736}
17737
17738
17739SWIGINTERN PyObject *_wrap_Slider_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17740 PyObject *resultobj = 0;
17741 wxSlider *arg1 = (wxSlider *) 0 ;
17742 int arg2 ;
17743 void *argp1 = 0 ;
17744 int res1 = 0 ;
17745 int val2 ;
17746 int ecode2 = 0 ;
17747 PyObject * obj0 = 0 ;
17748 PyObject * obj1 = 0 ;
17749 char * kwnames[] = {
17750 (char *) "self",(char *) "maxValue", NULL
17751 };
17752
17753 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
17754 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17755 if (!SWIG_IsOK(res1)) {
17756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMax" "', expected argument " "1"" of type '" "wxSlider *""'");
17757 }
17758 arg1 = reinterpret_cast< wxSlider * >(argp1);
17759 ecode2 = SWIG_AsVal_int(obj1, &val2);
17760 if (!SWIG_IsOK(ecode2)) {
17761 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMax" "', expected argument " "2"" of type '" "int""'");
17762 }
17763 arg2 = static_cast< int >(val2);
17764 {
17765 PyThreadState* __tstate = wxPyBeginAllowThreads();
17766 (arg1)->SetMax(arg2);
17767 wxPyEndAllowThreads(__tstate);
17768 if (PyErr_Occurred()) SWIG_fail;
17769 }
17770 resultobj = SWIG_Py_Void();
17771 return resultobj;
17772fail:
17773 return NULL;
17774}
17775
17776
17777SWIGINTERN PyObject *_wrap_Slider_SetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17778 PyObject *resultobj = 0;
17779 wxSlider *arg1 = (wxSlider *) 0 ;
17780 int arg2 ;
17781 void *argp1 = 0 ;
17782 int res1 = 0 ;
17783 int val2 ;
17784 int ecode2 = 0 ;
17785 PyObject * obj0 = 0 ;
17786 PyObject * obj1 = 0 ;
17787 char * kwnames[] = {
17788 (char *) "self",(char *) "lineSize", NULL
17789 };
17790
17791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) SWIG_fail;
17792 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17793 if (!SWIG_IsOK(res1)) {
17794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetLineSize" "', expected argument " "1"" of type '" "wxSlider *""'");
17795 }
17796 arg1 = reinterpret_cast< wxSlider * >(argp1);
17797 ecode2 = SWIG_AsVal_int(obj1, &val2);
17798 if (!SWIG_IsOK(ecode2)) {
17799 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetLineSize" "', expected argument " "2"" of type '" "int""'");
17800 }
17801 arg2 = static_cast< int >(val2);
17802 {
17803 PyThreadState* __tstate = wxPyBeginAllowThreads();
17804 (arg1)->SetLineSize(arg2);
17805 wxPyEndAllowThreads(__tstate);
17806 if (PyErr_Occurred()) SWIG_fail;
17807 }
17808 resultobj = SWIG_Py_Void();
17809 return resultobj;
17810fail:
17811 return NULL;
17812}
17813
17814
17815SWIGINTERN PyObject *_wrap_Slider_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17816 PyObject *resultobj = 0;
17817 wxSlider *arg1 = (wxSlider *) 0 ;
17818 int arg2 ;
17819 void *argp1 = 0 ;
17820 int res1 = 0 ;
17821 int val2 ;
17822 int ecode2 = 0 ;
17823 PyObject * obj0 = 0 ;
17824 PyObject * obj1 = 0 ;
17825 char * kwnames[] = {
17826 (char *) "self",(char *) "pageSize", NULL
17827 };
17828
17829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
17830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17831 if (!SWIG_IsOK(res1)) {
17832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetPageSize" "', expected argument " "1"" of type '" "wxSlider *""'");
17833 }
17834 arg1 = reinterpret_cast< wxSlider * >(argp1);
17835 ecode2 = SWIG_AsVal_int(obj1, &val2);
17836 if (!SWIG_IsOK(ecode2)) {
17837 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetPageSize" "', expected argument " "2"" of type '" "int""'");
17838 }
17839 arg2 = static_cast< int >(val2);
17840 {
17841 PyThreadState* __tstate = wxPyBeginAllowThreads();
17842 (arg1)->SetPageSize(arg2);
17843 wxPyEndAllowThreads(__tstate);
17844 if (PyErr_Occurred()) SWIG_fail;
17845 }
17846 resultobj = SWIG_Py_Void();
17847 return resultobj;
17848fail:
17849 return NULL;
d14a1e28
RD
17850}
17851
17852
0085ce49
RD
17853SWIGINTERN PyObject *_wrap_Slider_GetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17854 PyObject *resultobj = 0;
17855 wxSlider *arg1 = (wxSlider *) 0 ;
17856 int result;
17857 void *argp1 = 0 ;
17858 int res1 = 0 ;
17859 PyObject *swig_obj[1] ;
17860
17861 if (!args) SWIG_fail;
17862 swig_obj[0] = args;
17863 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17864 if (!SWIG_IsOK(res1)) {
17865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetLineSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
17866 }
17867 arg1 = reinterpret_cast< wxSlider * >(argp1);
17868 {
17869 PyThreadState* __tstate = wxPyBeginAllowThreads();
17870 result = (int)((wxSlider const *)arg1)->GetLineSize();
17871 wxPyEndAllowThreads(__tstate);
17872 if (PyErr_Occurred()) SWIG_fail;
17873 }
17874 resultobj = SWIG_From_int(static_cast< int >(result));
17875 return resultobj;
17876fail:
17877 return NULL;
d14a1e28
RD
17878}
17879
17880
0085ce49
RD
17881SWIGINTERN PyObject *_wrap_Slider_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17882 PyObject *resultobj = 0;
17883 wxSlider *arg1 = (wxSlider *) 0 ;
17884 int result;
17885 void *argp1 = 0 ;
17886 int res1 = 0 ;
17887 PyObject *swig_obj[1] ;
17888
17889 if (!args) SWIG_fail;
17890 swig_obj[0] = args;
17891 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17892 if (!SWIG_IsOK(res1)) {
17893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetPageSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
17894 }
17895 arg1 = reinterpret_cast< wxSlider * >(argp1);
17896 {
17897 PyThreadState* __tstate = wxPyBeginAllowThreads();
17898 result = (int)((wxSlider const *)arg1)->GetPageSize();
17899 wxPyEndAllowThreads(__tstate);
17900 if (PyErr_Occurred()) SWIG_fail;
17901 }
17902 resultobj = SWIG_From_int(static_cast< int >(result));
17903 return resultobj;
17904fail:
17905 return NULL;
17906}
17907
17908
17909SWIGINTERN PyObject *_wrap_Slider_SetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17910 PyObject *resultobj = 0;
17911 wxSlider *arg1 = (wxSlider *) 0 ;
17912 int arg2 ;
17913 void *argp1 = 0 ;
17914 int res1 = 0 ;
17915 int val2 ;
17916 int ecode2 = 0 ;
17917 PyObject * obj0 = 0 ;
17918 PyObject * obj1 = 0 ;
17919 char * kwnames[] = {
17920 (char *) "self",(char *) "lenPixels", NULL
17921 };
17922
17923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) SWIG_fail;
17924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17925 if (!SWIG_IsOK(res1)) {
17926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetThumbLength" "', expected argument " "1"" of type '" "wxSlider *""'");
17927 }
17928 arg1 = reinterpret_cast< wxSlider * >(argp1);
17929 ecode2 = SWIG_AsVal_int(obj1, &val2);
17930 if (!SWIG_IsOK(ecode2)) {
17931 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetThumbLength" "', expected argument " "2"" of type '" "int""'");
17932 }
17933 arg2 = static_cast< int >(val2);
17934 {
17935 PyThreadState* __tstate = wxPyBeginAllowThreads();
17936 (arg1)->SetThumbLength(arg2);
17937 wxPyEndAllowThreads(__tstate);
17938 if (PyErr_Occurred()) SWIG_fail;
17939 }
17940 resultobj = SWIG_Py_Void();
17941 return resultobj;
17942fail:
17943 return NULL;
4d5c3d91
RD
17944}
17945
17946
0085ce49
RD
17947SWIGINTERN PyObject *_wrap_Slider_GetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17948 PyObject *resultobj = 0;
17949 wxSlider *arg1 = (wxSlider *) 0 ;
17950 int result;
17951 void *argp1 = 0 ;
17952 int res1 = 0 ;
17953 PyObject *swig_obj[1] ;
17954
17955 if (!args) SWIG_fail;
17956 swig_obj[0] = args;
17957 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17958 if (!SWIG_IsOK(res1)) {
17959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetThumbLength" "', expected argument " "1"" of type '" "wxSlider const *""'");
17960 }
17961 arg1 = reinterpret_cast< wxSlider * >(argp1);
17962 {
17963 PyThreadState* __tstate = wxPyBeginAllowThreads();
17964 result = (int)((wxSlider const *)arg1)->GetThumbLength();
17965 wxPyEndAllowThreads(__tstate);
17966 if (PyErr_Occurred()) SWIG_fail;
17967 }
17968 resultobj = SWIG_From_int(static_cast< int >(result));
17969 return resultobj;
17970fail:
17971 return NULL;
17972}
17973
17974
17975SWIGINTERN PyObject *_wrap_Slider_SetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17976 PyObject *resultobj = 0;
17977 wxSlider *arg1 = (wxSlider *) 0 ;
17978 int arg2 ;
17979 int arg3 = (int) 1 ;
17980 void *argp1 = 0 ;
17981 int res1 = 0 ;
17982 int val2 ;
17983 int ecode2 = 0 ;
17984 int val3 ;
17985 int ecode3 = 0 ;
17986 PyObject * obj0 = 0 ;
17987 PyObject * obj1 = 0 ;
17988 PyObject * obj2 = 0 ;
17989 char * kwnames[] = {
17990 (char *) "self",(char *) "n",(char *) "pos", NULL
17991 };
17992
17993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17995 if (!SWIG_IsOK(res1)) {
17996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTickFreq" "', expected argument " "1"" of type '" "wxSlider *""'");
17997 }
17998 arg1 = reinterpret_cast< wxSlider * >(argp1);
17999 ecode2 = SWIG_AsVal_int(obj1, &val2);
18000 if (!SWIG_IsOK(ecode2)) {
18001 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTickFreq" "', expected argument " "2"" of type '" "int""'");
18002 }
18003 arg2 = static_cast< int >(val2);
18004 if (obj2) {
18005 ecode3 = SWIG_AsVal_int(obj2, &val3);
18006 if (!SWIG_IsOK(ecode3)) {
18007 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetTickFreq" "', expected argument " "3"" of type '" "int""'");
18008 }
18009 arg3 = static_cast< int >(val3);
18010 }
18011 {
18012 PyThreadState* __tstate = wxPyBeginAllowThreads();
18013 (arg1)->SetTickFreq(arg2,arg3);
18014 wxPyEndAllowThreads(__tstate);
18015 if (PyErr_Occurred()) SWIG_fail;
18016 }
18017 resultobj = SWIG_Py_Void();
18018 return resultobj;
18019fail:
18020 return NULL;
4896ac9e
RD
18021}
18022
18023
0085ce49
RD
18024SWIGINTERN PyObject *_wrap_Slider_GetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18025 PyObject *resultobj = 0;
18026 wxSlider *arg1 = (wxSlider *) 0 ;
18027 int result;
18028 void *argp1 = 0 ;
18029 int res1 = 0 ;
18030 PyObject *swig_obj[1] ;
18031
18032 if (!args) SWIG_fail;
18033 swig_obj[0] = args;
18034 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18035 if (!SWIG_IsOK(res1)) {
18036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetTickFreq" "', expected argument " "1"" of type '" "wxSlider const *""'");
18037 }
18038 arg1 = reinterpret_cast< wxSlider * >(argp1);
18039 {
18040 PyThreadState* __tstate = wxPyBeginAllowThreads();
18041 result = (int)((wxSlider const *)arg1)->GetTickFreq();
18042 wxPyEndAllowThreads(__tstate);
18043 if (PyErr_Occurred()) SWIG_fail;
18044 }
18045 resultobj = SWIG_From_int(static_cast< int >(result));
18046 return resultobj;
18047fail:
18048 return NULL;
d14a1e28
RD
18049}
18050
18051
0085ce49
RD
18052SWIGINTERN PyObject *_wrap_Slider_ClearTicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18053 PyObject *resultobj = 0;
18054 wxSlider *arg1 = (wxSlider *) 0 ;
18055 void *argp1 = 0 ;
18056 int res1 = 0 ;
18057 PyObject *swig_obj[1] ;
18058
18059 if (!args) SWIG_fail;
18060 swig_obj[0] = args;
18061 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18062 if (!SWIG_IsOK(res1)) {
18063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearTicks" "', expected argument " "1"" of type '" "wxSlider *""'");
18064 }
18065 arg1 = reinterpret_cast< wxSlider * >(argp1);
18066 {
18067 PyThreadState* __tstate = wxPyBeginAllowThreads();
18068 (arg1)->ClearTicks();
18069 wxPyEndAllowThreads(__tstate);
18070 if (PyErr_Occurred()) SWIG_fail;
18071 }
18072 resultobj = SWIG_Py_Void();
18073 return resultobj;
18074fail:
18075 return NULL;
18076}
18077
18078
18079SWIGINTERN PyObject *_wrap_Slider_SetTick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18080 PyObject *resultobj = 0;
18081 wxSlider *arg1 = (wxSlider *) 0 ;
18082 int arg2 ;
18083 void *argp1 = 0 ;
18084 int res1 = 0 ;
18085 int val2 ;
18086 int ecode2 = 0 ;
18087 PyObject * obj0 = 0 ;
18088 PyObject * obj1 = 0 ;
18089 char * kwnames[] = {
18090 (char *) "self",(char *) "tickPos", NULL
18091 };
18092
18093 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) SWIG_fail;
18094 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18095 if (!SWIG_IsOK(res1)) {
18096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTick" "', expected argument " "1"" of type '" "wxSlider *""'");
18097 }
18098 arg1 = reinterpret_cast< wxSlider * >(argp1);
18099 ecode2 = SWIG_AsVal_int(obj1, &val2);
18100 if (!SWIG_IsOK(ecode2)) {
18101 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTick" "', expected argument " "2"" of type '" "int""'");
18102 }
18103 arg2 = static_cast< int >(val2);
18104 {
18105 PyThreadState* __tstate = wxPyBeginAllowThreads();
18106 (arg1)->SetTick(arg2);
18107 wxPyEndAllowThreads(__tstate);
18108 if (PyErr_Occurred()) SWIG_fail;
18109 }
18110 resultobj = SWIG_Py_Void();
18111 return resultobj;
18112fail:
18113 return NULL;
d14a1e28
RD
18114}
18115
18116
0085ce49
RD
18117SWIGINTERN PyObject *_wrap_Slider_ClearSel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18118 PyObject *resultobj = 0;
18119 wxSlider *arg1 = (wxSlider *) 0 ;
18120 void *argp1 = 0 ;
18121 int res1 = 0 ;
18122 PyObject *swig_obj[1] ;
18123
18124 if (!args) SWIG_fail;
18125 swig_obj[0] = args;
18126 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18127 if (!SWIG_IsOK(res1)) {
18128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearSel" "', expected argument " "1"" of type '" "wxSlider *""'");
18129 }
18130 arg1 = reinterpret_cast< wxSlider * >(argp1);
18131 {
18132 PyThreadState* __tstate = wxPyBeginAllowThreads();
18133 (arg1)->ClearSel();
18134 wxPyEndAllowThreads(__tstate);
18135 if (PyErr_Occurred()) SWIG_fail;
18136 }
18137 resultobj = SWIG_Py_Void();
18138 return resultobj;
18139fail:
18140 return NULL;
d14a1e28
RD
18141}
18142
18143
0085ce49
RD
18144SWIGINTERN PyObject *_wrap_Slider_GetSelEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18145 PyObject *resultobj = 0;
18146 wxSlider *arg1 = (wxSlider *) 0 ;
18147 int result;
18148 void *argp1 = 0 ;
18149 int res1 = 0 ;
18150 PyObject *swig_obj[1] ;
18151
18152 if (!args) SWIG_fail;
18153 swig_obj[0] = args;
18154 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18155 if (!SWIG_IsOK(res1)) {
18156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelEnd" "', expected argument " "1"" of type '" "wxSlider const *""'");
18157 }
18158 arg1 = reinterpret_cast< wxSlider * >(argp1);
18159 {
18160 PyThreadState* __tstate = wxPyBeginAllowThreads();
18161 result = (int)((wxSlider const *)arg1)->GetSelEnd();
18162 wxPyEndAllowThreads(__tstate);
18163 if (PyErr_Occurred()) SWIG_fail;
18164 }
18165 resultobj = SWIG_From_int(static_cast< int >(result));
18166 return resultobj;
18167fail:
18168 return NULL;
d14a1e28
RD
18169}
18170
18171
0085ce49
RD
18172SWIGINTERN PyObject *_wrap_Slider_GetSelStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18173 PyObject *resultobj = 0;
18174 wxSlider *arg1 = (wxSlider *) 0 ;
18175 int result;
18176 void *argp1 = 0 ;
18177 int res1 = 0 ;
18178 PyObject *swig_obj[1] ;
18179
18180 if (!args) SWIG_fail;
18181 swig_obj[0] = args;
18182 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18183 if (!SWIG_IsOK(res1)) {
18184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelStart" "', expected argument " "1"" of type '" "wxSlider const *""'");
18185 }
18186 arg1 = reinterpret_cast< wxSlider * >(argp1);
18187 {
18188 PyThreadState* __tstate = wxPyBeginAllowThreads();
18189 result = (int)((wxSlider const *)arg1)->GetSelStart();
18190 wxPyEndAllowThreads(__tstate);
18191 if (PyErr_Occurred()) SWIG_fail;
18192 }
18193 resultobj = SWIG_From_int(static_cast< int >(result));
18194 return resultobj;
18195fail:
18196 return NULL;
18197}
18198
18199
18200SWIGINTERN PyObject *_wrap_Slider_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18201 PyObject *resultobj = 0;
18202 wxSlider *arg1 = (wxSlider *) 0 ;
18203 int arg2 ;
18204 int arg3 ;
18205 void *argp1 = 0 ;
18206 int res1 = 0 ;
18207 int val2 ;
18208 int ecode2 = 0 ;
18209 int val3 ;
18210 int ecode3 = 0 ;
18211 PyObject * obj0 = 0 ;
18212 PyObject * obj1 = 0 ;
18213 PyObject * obj2 = 0 ;
18214 char * kwnames[] = {
18215 (char *) "self",(char *) "min",(char *) "max", NULL
18216 };
18217
18218 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18220 if (!SWIG_IsOK(res1)) {
18221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetSelection" "', expected argument " "1"" of type '" "wxSlider *""'");
18222 }
18223 arg1 = reinterpret_cast< wxSlider * >(argp1);
18224 ecode2 = SWIG_AsVal_int(obj1, &val2);
18225 if (!SWIG_IsOK(ecode2)) {
18226 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetSelection" "', expected argument " "2"" of type '" "int""'");
18227 }
18228 arg2 = static_cast< int >(val2);
18229 ecode3 = SWIG_AsVal_int(obj2, &val3);
18230 if (!SWIG_IsOK(ecode3)) {
18231 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetSelection" "', expected argument " "3"" of type '" "int""'");
18232 }
18233 arg3 = static_cast< int >(val3);
18234 {
18235 PyThreadState* __tstate = wxPyBeginAllowThreads();
18236 (arg1)->SetSelection(arg2,arg3);
18237 wxPyEndAllowThreads(__tstate);
18238 if (PyErr_Occurred()) SWIG_fail;
18239 }
18240 resultobj = SWIG_Py_Void();
18241 return resultobj;
18242fail:
18243 return NULL;
18244}
18245
18246
18247SWIGINTERN PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18248 PyObject *resultobj = 0;
18249 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18250 SwigValueWrapper<wxVisualAttributes > result;
18251 int val1 ;
18252 int ecode1 = 0 ;
18253 PyObject * obj0 = 0 ;
18254 char * kwnames[] = {
18255 (char *) "variant", NULL
18256 };
18257
18258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18259 if (obj0) {
18260 ecode1 = SWIG_AsVal_int(obj0, &val1);
18261 if (!SWIG_IsOK(ecode1)) {
18262 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Slider_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18263 }
18264 arg1 = static_cast< wxWindowVariant >(val1);
18265 }
18266 {
18267 if (!wxPyCheckForApp()) SWIG_fail;
18268 PyThreadState* __tstate = wxPyBeginAllowThreads();
18269 result = wxSlider::GetClassDefaultAttributes(arg1);
18270 wxPyEndAllowThreads(__tstate);
18271 if (PyErr_Occurred()) SWIG_fail;
18272 }
18273 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18274 return resultobj;
18275fail:
18276 return NULL;
d14a1e28
RD
18277}
18278
18279
0085ce49
RD
18280SWIGINTERN PyObject *Slider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18281 PyObject *obj;
18282 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18283 SWIG_TypeNewClientData(SWIGTYPE_p_wxSlider, SWIG_NewClientData(obj));
18284 return SWIG_Py_Void();
d14a1e28
RD
18285}
18286
0085ce49
RD
18287SWIGINTERN PyObject *Slider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18288 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
18289}
18290
0085ce49
RD
18291SWIGINTERN int ToggleButtonNameStr_set(PyObject *) {
18292 SWIG_Error(SWIG_AttributeError,"Variable ToggleButtonNameStr is read-only.");
18293 return 1;
d14a1e28
RD
18294}
18295
18296
0085ce49
RD
18297SWIGINTERN PyObject *ToggleButtonNameStr_get(void) {
18298 PyObject *pyobj = 0;
18299
18300 {
18301#if wxUSE_UNICODE
18302 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18303#else
18304 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18305#endif
18306 }
18307 return pyobj;
18308}
18309
18310
18311SWIGINTERN PyObject *_wrap_new_ToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18312 PyObject *resultobj = 0;
18313 wxWindow *arg1 = (wxWindow *) 0 ;
18314 int arg2 = (int) -1 ;
18315 wxString const &arg3_defvalue = wxPyEmptyString ;
18316 wxString *arg3 = (wxString *) &arg3_defvalue ;
18317 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18318 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18319 wxSize const &arg5_defvalue = wxDefaultSize ;
18320 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18321 long arg6 = (long) 0 ;
18322 wxValidator const &arg7_defvalue = wxDefaultValidator ;
18323 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
18324 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
18325 wxString *arg8 = (wxString *) &arg8_defvalue ;
18326 wxToggleButton *result = 0 ;
18327 void *argp1 = 0 ;
18328 int res1 = 0 ;
18329 int val2 ;
18330 int ecode2 = 0 ;
18331 bool temp3 = false ;
18332 wxPoint temp4 ;
18333 wxSize temp5 ;
18334 long val6 ;
18335 int ecode6 = 0 ;
18336 void *argp7 = 0 ;
18337 int res7 = 0 ;
18338 bool temp8 = false ;
18339 PyObject * obj0 = 0 ;
18340 PyObject * obj1 = 0 ;
18341 PyObject * obj2 = 0 ;
18342 PyObject * obj3 = 0 ;
18343 PyObject * obj4 = 0 ;
18344 PyObject * obj5 = 0 ;
18345 PyObject * obj6 = 0 ;
18346 PyObject * obj7 = 0 ;
18347 char * kwnames[] = {
18348 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18349 };
18350
18351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
18352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
18353 if (!SWIG_IsOK(res1)) {
18354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToggleButton" "', expected argument " "1"" of type '" "wxWindow *""'");
18355 }
18356 arg1 = reinterpret_cast< wxWindow * >(argp1);
18357 if (obj1) {
18358 ecode2 = SWIG_AsVal_int(obj1, &val2);
18359 if (!SWIG_IsOK(ecode2)) {
18360 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToggleButton" "', expected argument " "2"" of type '" "int""'");
18361 }
18362 arg2 = static_cast< int >(val2);
18363 }
18364 if (obj2) {
d14a1e28 18365 {
0085ce49
RD
18366 arg3 = wxString_in_helper(obj2);
18367 if (arg3 == NULL) SWIG_fail;
18368 temp3 = true;
d14a1e28 18369 }
0085ce49
RD
18370 }
18371 if (obj3) {
4f89f6a3 18372 {
0085ce49
RD
18373 arg4 = &temp4;
18374 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 18375 }
0085ce49
RD
18376 }
18377 if (obj4) {
d14a1e28 18378 {
0085ce49
RD
18379 arg5 = &temp5;
18380 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 18381 }
0085ce49
RD
18382 }
18383 if (obj5) {
18384 ecode6 = SWIG_AsVal_long(obj5, &val6);
18385 if (!SWIG_IsOK(ecode6)) {
18386 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ToggleButton" "', expected argument " "6"" of type '" "long""'");
18387 }
18388 arg6 = static_cast< long >(val6);
18389 }
18390 if (obj6) {
18391 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
18392 if (!SWIG_IsOK(res7)) {
18393 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
4f89f6a3 18394 }
0085ce49
RD
18395 if (!argp7) {
18396 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
093d3ff1 18397 }
0085ce49
RD
18398 arg7 = reinterpret_cast< wxValidator * >(argp7);
18399 }
18400 if (obj7) {
d14a1e28 18401 {
0085ce49
RD
18402 arg8 = wxString_in_helper(obj7);
18403 if (arg8 == NULL) SWIG_fail;
18404 temp8 = true;
d14a1e28 18405 }
0085ce49
RD
18406 }
18407 {
18408 if (!wxPyCheckForApp()) SWIG_fail;
18409 PyThreadState* __tstate = wxPyBeginAllowThreads();
18410 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
18411 wxPyEndAllowThreads(__tstate);
18412 if (PyErr_Occurred()) SWIG_fail;
18413 }
18414 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_NEW | 0 );
18415 {
18416 if (temp3)
18417 delete arg3;
18418 }
18419 {
18420 if (temp8)
18421 delete arg8;
18422 }
18423 return resultobj;
18424fail:
18425 {
18426 if (temp3)
18427 delete arg3;
18428 }
18429 {
18430 if (temp8)
18431 delete arg8;
18432 }
18433 return NULL;
d14a1e28
RD
18434}
18435
18436
0085ce49
RD
18437SWIGINTERN PyObject *_wrap_new_PreToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18438 PyObject *resultobj = 0;
18439 wxToggleButton *result = 0 ;
18440
18441 if (!SWIG_Python_UnpackTuple(args,"new_PreToggleButton",0,0,0)) SWIG_fail;
18442 {
18443 if (!wxPyCheckForApp()) SWIG_fail;
18444 PyThreadState* __tstate = wxPyBeginAllowThreads();
18445 result = (wxToggleButton *)new wxToggleButton();
18446 wxPyEndAllowThreads(__tstate);
18447 if (PyErr_Occurred()) SWIG_fail;
18448 }
18449 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_OWN | 0 );
18450 return resultobj;
18451fail:
18452 return NULL;
18453}
18454
18455
18456SWIGINTERN PyObject *_wrap_ToggleButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18457 PyObject *resultobj = 0;
18458 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18459 wxWindow *arg2 = (wxWindow *) 0 ;
18460 int arg3 = (int) -1 ;
18461 wxString const &arg4_defvalue = wxPyEmptyString ;
18462 wxString *arg4 = (wxString *) &arg4_defvalue ;
18463 wxPoint const &arg5_defvalue = wxDefaultPosition ;
18464 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
18465 wxSize const &arg6_defvalue = wxDefaultSize ;
18466 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
18467 long arg7 = (long) 0 ;
18468 wxValidator const &arg8_defvalue = wxDefaultValidator ;
18469 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
18470 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
18471 wxString *arg9 = (wxString *) &arg9_defvalue ;
18472 bool result;
18473 void *argp1 = 0 ;
18474 int res1 = 0 ;
18475 void *argp2 = 0 ;
18476 int res2 = 0 ;
18477 int val3 ;
18478 int ecode3 = 0 ;
18479 bool temp4 = false ;
18480 wxPoint temp5 ;
18481 wxSize temp6 ;
18482 long val7 ;
18483 int ecode7 = 0 ;
18484 void *argp8 = 0 ;
18485 int res8 = 0 ;
18486 bool temp9 = false ;
18487 PyObject * obj0 = 0 ;
18488 PyObject * obj1 = 0 ;
18489 PyObject * obj2 = 0 ;
18490 PyObject * obj3 = 0 ;
18491 PyObject * obj4 = 0 ;
18492 PyObject * obj5 = 0 ;
18493 PyObject * obj6 = 0 ;
18494 PyObject * obj7 = 0 ;
18495 PyObject * obj8 = 0 ;
18496 char * kwnames[] = {
18497 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18498 };
18499
18500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
18501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18502 if (!SWIG_IsOK(res1)) {
18503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_Create" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18504 }
18505 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18506 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
18507 if (!SWIG_IsOK(res2)) {
18508 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToggleButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
18509 }
18510 arg2 = reinterpret_cast< wxWindow * >(argp2);
18511 if (obj2) {
18512 ecode3 = SWIG_AsVal_int(obj2, &val3);
18513 if (!SWIG_IsOK(ecode3)) {
18514 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToggleButton_Create" "', expected argument " "3"" of type '" "int""'");
18515 }
18516 arg3 = static_cast< int >(val3);
18517 }
18518 if (obj3) {
d14a1e28 18519 {
0085ce49
RD
18520 arg4 = wxString_in_helper(obj3);
18521 if (arg4 == NULL) SWIG_fail;
18522 temp4 = true;
d14a1e28 18523 }
0085ce49
RD
18524 }
18525 if (obj4) {
d14a1e28 18526 {
0085ce49
RD
18527 arg5 = &temp5;
18528 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 18529 }
0085ce49
RD
18530 }
18531 if (obj5) {
093d3ff1 18532 {
0085ce49
RD
18533 arg6 = &temp6;
18534 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
093d3ff1 18535 }
0085ce49
RD
18536 }
18537 if (obj6) {
18538 ecode7 = SWIG_AsVal_long(obj6, &val7);
18539 if (!SWIG_IsOK(ecode7)) {
18540 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToggleButton_Create" "', expected argument " "7"" of type '" "long""'");
18541 }
18542 arg7 = static_cast< long >(val7);
18543 }
18544 if (obj7) {
18545 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
18546 if (!SWIG_IsOK(res8)) {
18547 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
18548 }
18549 if (!argp8) {
18550 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 18551 }
0085ce49
RD
18552 arg8 = reinterpret_cast< wxValidator * >(argp8);
18553 }
18554 if (obj8) {
093d3ff1 18555 {
0085ce49
RD
18556 arg9 = wxString_in_helper(obj8);
18557 if (arg9 == NULL) SWIG_fail;
18558 temp9 = true;
093d3ff1 18559 }
0085ce49
RD
18560 }
18561 {
18562 PyThreadState* __tstate = wxPyBeginAllowThreads();
18563 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
18564 wxPyEndAllowThreads(__tstate);
18565 if (PyErr_Occurred()) SWIG_fail;
18566 }
18567 {
18568 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18569 }
18570 {
18571 if (temp4)
18572 delete arg4;
18573 }
18574 {
18575 if (temp9)
18576 delete arg9;
18577 }
18578 return resultobj;
18579fail:
18580 {
18581 if (temp4)
18582 delete arg4;
18583 }
18584 {
18585 if (temp9)
18586 delete arg9;
18587 }
18588 return NULL;
18589}
18590
18591
18592SWIGINTERN PyObject *_wrap_ToggleButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18593 PyObject *resultobj = 0;
18594 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18595 bool arg2 ;
18596 void *argp1 = 0 ;
18597 int res1 = 0 ;
18598 bool val2 ;
18599 int ecode2 = 0 ;
18600 PyObject * obj0 = 0 ;
18601 PyObject * obj1 = 0 ;
18602 char * kwnames[] = {
18603 (char *) "self",(char *) "value", NULL
18604 };
18605
18606 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
18607 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18608 if (!SWIG_IsOK(res1)) {
18609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_SetValue" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18610 }
18611 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18612 ecode2 = SWIG_AsVal_bool(obj1, &val2);
18613 if (!SWIG_IsOK(ecode2)) {
18614 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToggleButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
18615 }
18616 arg2 = static_cast< bool >(val2);
18617 {
18618 PyThreadState* __tstate = wxPyBeginAllowThreads();
18619 (arg1)->SetValue(arg2);
18620 wxPyEndAllowThreads(__tstate);
18621 if (PyErr_Occurred()) SWIG_fail;
18622 }
18623 resultobj = SWIG_Py_Void();
18624 return resultobj;
18625fail:
18626 return NULL;
d14a1e28
RD
18627}
18628
18629
0085ce49
RD
18630SWIGINTERN PyObject *_wrap_ToggleButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18631 PyObject *resultobj = 0;
18632 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18633 bool result;
18634 void *argp1 = 0 ;
18635 int res1 = 0 ;
18636 PyObject *swig_obj[1] ;
18637
18638 if (!args) SWIG_fail;
18639 swig_obj[0] = args;
18640 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18641 if (!SWIG_IsOK(res1)) {
18642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_GetValue" "', expected argument " "1"" of type '" "wxToggleButton const *""'");
18643 }
18644 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18645 {
18646 PyThreadState* __tstate = wxPyBeginAllowThreads();
18647 result = (bool)((wxToggleButton const *)arg1)->GetValue();
18648 wxPyEndAllowThreads(__tstate);
18649 if (PyErr_Occurred()) SWIG_fail;
18650 }
18651 {
18652 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18653 }
18654 return resultobj;
18655fail:
18656 return NULL;
d14a1e28
RD
18657}
18658
18659
0085ce49
RD
18660SWIGINTERN PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18661 PyObject *resultobj = 0;
18662 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18663 SwigValueWrapper<wxVisualAttributes > result;
18664 int val1 ;
18665 int ecode1 = 0 ;
18666 PyObject * obj0 = 0 ;
18667 char * kwnames[] = {
18668 (char *) "variant", NULL
18669 };
18670
18671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18672 if (obj0) {
18673 ecode1 = SWIG_AsVal_int(obj0, &val1);
18674 if (!SWIG_IsOK(ecode1)) {
18675 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToggleButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18676 }
18677 arg1 = static_cast< wxWindowVariant >(val1);
18678 }
18679 {
18680 if (!wxPyCheckForApp()) SWIG_fail;
18681 PyThreadState* __tstate = wxPyBeginAllowThreads();
18682 result = wxToggleButton::GetClassDefaultAttributes(arg1);
18683 wxPyEndAllowThreads(__tstate);
18684 if (PyErr_Occurred()) SWIG_fail;
18685 }
18686 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18687 return resultobj;
18688fail:
18689 return NULL;
d14a1e28
RD
18690}
18691
18692
0085ce49
RD
18693SWIGINTERN PyObject *ToggleButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18694 PyObject *obj;
18695 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18696 SWIG_TypeNewClientData(SWIGTYPE_p_wxToggleButton, SWIG_NewClientData(obj));
18697 return SWIG_Py_Void();
d14a1e28
RD
18698}
18699
0085ce49
RD
18700SWIGINTERN PyObject *ToggleButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18701 return SWIG_Python_InitShadowInstance(args);
18702}
d14a1e28 18703
0085ce49
RD
18704SWIGINTERN int NotebookNameStr_set(PyObject *) {
18705 SWIG_Error(SWIG_AttributeError,"Variable NotebookNameStr is read-only.");
18706 return 1;
d14a1e28
RD
18707}
18708
18709
0085ce49
RD
18710SWIGINTERN PyObject *NotebookNameStr_get(void) {
18711 PyObject *pyobj = 0;
18712
18713 {
d14a1e28 18714#if wxUSE_UNICODE
0085ce49 18715 pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
d14a1e28 18716#else
0085ce49 18717 pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
d14a1e28 18718#endif
0085ce49
RD
18719 }
18720 return pyobj;
d14a1e28
RD
18721}
18722
18723
0085ce49
RD
18724SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18725 PyObject *resultobj = 0;
18726 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18727 size_t result;
18728 void *argp1 = 0 ;
18729 int res1 = 0 ;
18730 PyObject *swig_obj[1] ;
18731
18732 if (!args) SWIG_fail;
18733 swig_obj[0] = args;
18734 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18735 if (!SWIG_IsOK(res1)) {
18736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageCount" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
18737 }
18738 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18739 {
18740 PyThreadState* __tstate = wxPyBeginAllowThreads();
18741 result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount();
18742 wxPyEndAllowThreads(__tstate);
18743 if (PyErr_Occurred()) SWIG_fail;
18744 }
18745 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
18746 return resultobj;
18747fail:
18748 return NULL;
18749}
18750
18751
18752SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18753 PyObject *resultobj = 0;
18754 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18755 size_t arg2 ;
18756 wxWindow *result = 0 ;
18757 void *argp1 = 0 ;
18758 int res1 = 0 ;
18759 size_t val2 ;
18760 int ecode2 = 0 ;
18761 PyObject * obj0 = 0 ;
18762 PyObject * obj1 = 0 ;
18763 char * kwnames[] = {
18764 (char *) "self",(char *) "n", NULL
18765 };
18766
18767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) SWIG_fail;
18768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18769 if (!SWIG_IsOK(res1)) {
18770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
18771 }
18772 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18773 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
18774 if (!SWIG_IsOK(ecode2)) {
18775 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPage" "', expected argument " "2"" of type '" "size_t""'");
18776 }
18777 arg2 = static_cast< size_t >(val2);
18778 {
18779 PyThreadState* __tstate = wxPyBeginAllowThreads();
18780 result = (wxWindow *)(arg1)->GetPage(arg2);
18781 wxPyEndAllowThreads(__tstate);
18782 if (PyErr_Occurred()) SWIG_fail;
18783 }
18784 {
18785 resultobj = wxPyMake_wxObject(result, 0);
18786 }
18787 return resultobj;
18788fail:
18789 return NULL;
22bfe96c
RD
18790}
18791
18792
0085ce49
RD
18793SWIGINTERN PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18794 PyObject *resultobj = 0;
18795 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18796 wxWindow *result = 0 ;
18797 void *argp1 = 0 ;
18798 int res1 = 0 ;
18799 PyObject *swig_obj[1] ;
18800
18801 if (!args) SWIG_fail;
18802 swig_obj[0] = args;
18803 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18804 if (!SWIG_IsOK(res1)) {
18805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
18806 }
18807 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18808 {
18809 PyThreadState* __tstate = wxPyBeginAllowThreads();
18810 result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage();
18811 wxPyEndAllowThreads(__tstate);
18812 if (PyErr_Occurred()) SWIG_fail;
18813 }
18814 {
18815 resultobj = wxPyMake_wxObject(result, 0);
18816 }
18817 return resultobj;
18818fail:
18819 return NULL;
d14a1e28
RD
18820}
18821
18822
0085ce49
RD
18823SWIGINTERN PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18824 PyObject *resultobj = 0;
18825 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18826 int result;
18827 void *argp1 = 0 ;
18828 int res1 = 0 ;
18829 PyObject *swig_obj[1] ;
18830
18831 if (!args) SWIG_fail;
18832 swig_obj[0] = args;
18833 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18834 if (!SWIG_IsOK(res1)) {
18835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
18836 }
18837 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18838 {
18839 PyThreadState* __tstate = wxPyBeginAllowThreads();
18840 result = (int)((wxBookCtrlBase const *)arg1)->GetSelection();
18841 wxPyEndAllowThreads(__tstate);
18842 if (PyErr_Occurred()) SWIG_fail;
18843 }
18844 resultobj = SWIG_From_int(static_cast< int >(result));
18845 return resultobj;
18846fail:
18847 return NULL;
18848}
18849
18850
18851SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18852 PyObject *resultobj = 0;
18853 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18854 size_t arg2 ;
18855 wxString *arg3 = 0 ;
18856 bool result;
18857 void *argp1 = 0 ;
18858 int res1 = 0 ;
18859 size_t val2 ;
18860 int ecode2 = 0 ;
18861 bool temp3 = false ;
18862 PyObject * obj0 = 0 ;
18863 PyObject * obj1 = 0 ;
18864 PyObject * obj2 = 0 ;
18865 char * kwnames[] = {
18866 (char *) "self",(char *) "n",(char *) "strText", NULL
18867 };
18868
18869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18871 if (!SWIG_IsOK(res1)) {
18872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
18873 }
18874 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18875 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
18876 if (!SWIG_IsOK(ecode2)) {
18877 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "2"" of type '" "size_t""'");
18878 }
18879 arg2 = static_cast< size_t >(val2);
18880 {
18881 arg3 = wxString_in_helper(obj2);
18882 if (arg3 == NULL) SWIG_fail;
18883 temp3 = true;
18884 }
18885 {
18886 PyThreadState* __tstate = wxPyBeginAllowThreads();
18887 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
18888 wxPyEndAllowThreads(__tstate);
18889 if (PyErr_Occurred()) SWIG_fail;
18890 }
18891 {
18892 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18893 }
18894 {
18895 if (temp3)
18896 delete arg3;
18897 }
18898 return resultobj;
18899fail:
18900 {
18901 if (temp3)
18902 delete arg3;
18903 }
18904 return NULL;
18905}
18906
18907
18908SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18909 PyObject *resultobj = 0;
18910 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18911 size_t arg2 ;
18912 wxString result;
18913 void *argp1 = 0 ;
18914 int res1 = 0 ;
18915 size_t val2 ;
18916 int ecode2 = 0 ;
18917 PyObject * obj0 = 0 ;
18918 PyObject * obj1 = 0 ;
18919 char * kwnames[] = {
18920 (char *) "self",(char *) "n", NULL
18921 };
18922
18923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) SWIG_fail;
18924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18925 if (!SWIG_IsOK(res1)) {
18926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
18927 }
18928 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18929 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
18930 if (!SWIG_IsOK(ecode2)) {
18931 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "2"" of type '" "size_t""'");
18932 }
18933 arg2 = static_cast< size_t >(val2);
18934 {
18935 PyThreadState* __tstate = wxPyBeginAllowThreads();
18936 result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2);
18937 wxPyEndAllowThreads(__tstate);
18938 if (PyErr_Occurred()) SWIG_fail;
18939 }
18940 {
18941#if wxUSE_UNICODE
18942 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
18943#else
18944 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
18945#endif
18946 }
18947 return resultobj;
18948fail:
18949 return NULL;
18950}
18951
18952
18953SWIGINTERN PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18954 PyObject *resultobj = 0;
18955 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18956 wxImageList *arg2 = (wxImageList *) 0 ;
18957 void *argp1 = 0 ;
18958 int res1 = 0 ;
18959 void *argp2 = 0 ;
18960 int res2 = 0 ;
18961 PyObject * obj0 = 0 ;
18962 PyObject * obj1 = 0 ;
18963 char * kwnames[] = {
18964 (char *) "self",(char *) "imageList", NULL
18965 };
18966
18967 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
18968 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18969 if (!SWIG_IsOK(res1)) {
18970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
18971 }
18972 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18973 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
18974 if (!SWIG_IsOK(res2)) {
18975 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
18976 }
18977 arg2 = reinterpret_cast< wxImageList * >(argp2);
18978 {
18979 PyThreadState* __tstate = wxPyBeginAllowThreads();
18980 (arg1)->SetImageList(arg2);
18981 wxPyEndAllowThreads(__tstate);
18982 if (PyErr_Occurred()) SWIG_fail;
18983 }
18984 resultobj = SWIG_Py_Void();
18985 return resultobj;
18986fail:
18987 return NULL;
18988}
18989
18990
18991SWIGINTERN PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18992 PyObject *resultobj = 0;
18993 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18994 wxImageList *arg2 = (wxImageList *) 0 ;
18995 void *argp1 = 0 ;
18996 int res1 = 0 ;
18997 int res2 = 0 ;
18998 PyObject * obj0 = 0 ;
18999 PyObject * obj1 = 0 ;
19000 char * kwnames[] = {
19001 (char *) "self",(char *) "imageList", NULL
19002 };
19003
19004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19006 if (!SWIG_IsOK(res1)) {
19007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19008 }
19009 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19010 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
19011 if (!SWIG_IsOK(res2)) {
19012 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19013 }
19014 {
19015 PyThreadState* __tstate = wxPyBeginAllowThreads();
19016 (arg1)->AssignImageList(arg2);
19017 wxPyEndAllowThreads(__tstate);
19018 if (PyErr_Occurred()) SWIG_fail;
19019 }
19020 resultobj = SWIG_Py_Void();
19021 return resultobj;
19022fail:
19023 return NULL;
d14a1e28
RD
19024}
19025
19026
0085ce49
RD
19027SWIGINTERN PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19028 PyObject *resultobj = 0;
19029 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19030 wxImageList *result = 0 ;
19031 void *argp1 = 0 ;
19032 int res1 = 0 ;
19033 PyObject *swig_obj[1] ;
19034
19035 if (!args) SWIG_fail;
19036 swig_obj[0] = args;
19037 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19038 if (!SWIG_IsOK(res1)) {
19039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19040 }
19041 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19042 {
19043 PyThreadState* __tstate = wxPyBeginAllowThreads();
19044 result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList();
19045 wxPyEndAllowThreads(__tstate);
19046 if (PyErr_Occurred()) SWIG_fail;
19047 }
19048 {
19049 resultobj = wxPyMake_wxObject(result, (bool)0);
19050 }
19051 return resultobj;
19052fail:
19053 return NULL;
19054}
19055
19056
19057SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19058 PyObject *resultobj = 0;
19059 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19060 size_t arg2 ;
19061 int result;
19062 void *argp1 = 0 ;
19063 int res1 = 0 ;
19064 size_t val2 ;
19065 int ecode2 = 0 ;
19066 PyObject * obj0 = 0 ;
19067 PyObject * obj1 = 0 ;
19068 char * kwnames[] = {
19069 (char *) "self",(char *) "n", NULL
19070 };
19071
19072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) SWIG_fail;
19073 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19074 if (!SWIG_IsOK(res1)) {
19075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19076 }
19077 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19078 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19079 if (!SWIG_IsOK(ecode2)) {
19080 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19081 }
19082 arg2 = static_cast< size_t >(val2);
19083 {
19084 PyThreadState* __tstate = wxPyBeginAllowThreads();
19085 result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2);
19086 wxPyEndAllowThreads(__tstate);
19087 if (PyErr_Occurred()) SWIG_fail;
19088 }
19089 resultobj = SWIG_From_int(static_cast< int >(result));
19090 return resultobj;
19091fail:
19092 return NULL;
19093}
19094
19095
19096SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19097 PyObject *resultobj = 0;
19098 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19099 size_t arg2 ;
19100 int arg3 ;
19101 bool result;
19102 void *argp1 = 0 ;
19103 int res1 = 0 ;
19104 size_t val2 ;
19105 int ecode2 = 0 ;
19106 int val3 ;
19107 int ecode3 = 0 ;
19108 PyObject * obj0 = 0 ;
19109 PyObject * obj1 = 0 ;
19110 PyObject * obj2 = 0 ;
19111 char * kwnames[] = {
19112 (char *) "self",(char *) "n",(char *) "imageId", NULL
19113 };
19114
19115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19117 if (!SWIG_IsOK(res1)) {
19118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19119 }
19120 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19121 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19122 if (!SWIG_IsOK(ecode2)) {
19123 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19124 }
19125 arg2 = static_cast< size_t >(val2);
19126 ecode3 = SWIG_AsVal_int(obj2, &val3);
19127 if (!SWIG_IsOK(ecode3)) {
19128 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "3"" of type '" "int""'");
19129 }
19130 arg3 = static_cast< int >(val3);
19131 {
19132 PyThreadState* __tstate = wxPyBeginAllowThreads();
19133 result = (bool)(arg1)->SetPageImage(arg2,arg3);
19134 wxPyEndAllowThreads(__tstate);
19135 if (PyErr_Occurred()) SWIG_fail;
19136 }
19137 {
19138 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19139 }
19140 return resultobj;
19141fail:
19142 return NULL;
19143}
19144
19145
19146SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19147 PyObject *resultobj = 0;
19148 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19149 wxSize *arg2 = 0 ;
19150 void *argp1 = 0 ;
19151 int res1 = 0 ;
19152 wxSize temp2 ;
19153 PyObject * obj0 = 0 ;
19154 PyObject * obj1 = 0 ;
19155 char * kwnames[] = {
19156 (char *) "self",(char *) "size", NULL
19157 };
19158
19159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
19160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19161 if (!SWIG_IsOK(res1)) {
19162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageSize" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19163 }
19164 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19165 {
19166 arg2 = &temp2;
19167 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19168 }
19169 {
19170 PyThreadState* __tstate = wxPyBeginAllowThreads();
19171 (arg1)->SetPageSize((wxSize const &)*arg2);
19172 wxPyEndAllowThreads(__tstate);
19173 if (PyErr_Occurred()) SWIG_fail;
19174 }
19175 resultobj = SWIG_Py_Void();
19176 return resultobj;
19177fail:
19178 return NULL;
19179}
19180
19181
19182SWIGINTERN PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19183 PyObject *resultobj = 0;
19184 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19185 wxSize *arg2 = 0 ;
19186 wxSize result;
19187 void *argp1 = 0 ;
19188 int res1 = 0 ;
19189 wxSize temp2 ;
19190 PyObject * obj0 = 0 ;
19191 PyObject * obj1 = 0 ;
19192 char * kwnames[] = {
19193 (char *) "self",(char *) "sizePage", NULL
19194 };
19195
19196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",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_CalcSizeFromPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19200 }
19201 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19202 {
19203 arg2 = &temp2;
19204 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19205 }
19206 {
19207 PyThreadState* __tstate = wxPyBeginAllowThreads();
19208 result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
19209 wxPyEndAllowThreads(__tstate);
19210 if (PyErr_Occurred()) SWIG_fail;
19211 }
19212 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
19213 return resultobj;
19214fail:
19215 return NULL;
d14a1e28
RD
19216}
19217
19218
0085ce49
RD
19219SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19220 PyObject *resultobj = 0;
19221 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
75219dcb 19222 size_t result;
0085ce49
RD
19223 void *argp1 = 0 ;
19224 int res1 = 0 ;
19225 PyObject *swig_obj[1] ;
19226
19227 if (!args) SWIG_fail;
19228 swig_obj[0] = args;
19229 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19230 if (!SWIG_IsOK(res1)) {
19231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19232 }
19233 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19234 {
19235 PyThreadState* __tstate = wxPyBeginAllowThreads();
75219dcb 19236 result = (size_t)((wxBookCtrlBase const *)arg1)->GetInternalBorder();
0085ce49
RD
19237 wxPyEndAllowThreads(__tstate);
19238 if (PyErr_Occurred()) SWIG_fail;
19239 }
75219dcb 19240 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
0085ce49
RD
19241 return resultobj;
19242fail:
19243 return NULL;
19244}
19245
19246
19247SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19248 PyObject *resultobj = 0;
19249 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
75219dcb 19250 size_t arg2 ;
0085ce49
RD
19251 void *argp1 = 0 ;
19252 int res1 = 0 ;
75219dcb 19253 size_t val2 ;
0085ce49
RD
19254 int ecode2 = 0 ;
19255 PyObject * obj0 = 0 ;
19256 PyObject * obj1 = 0 ;
19257 char * kwnames[] = {
19258 (char *) "self",(char *) "internalBorder", NULL
19259 };
19260
19261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetInternalBorder",kwnames,&obj0,&obj1)) SWIG_fail;
19262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19263 if (!SWIG_IsOK(res1)) {
19264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19265 }
19266 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
75219dcb 19267 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
0085ce49 19268 if (!SWIG_IsOK(ecode2)) {
75219dcb 19269 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "size_t""'");
0085ce49 19270 }
75219dcb 19271 arg2 = static_cast< size_t >(val2);
0085ce49
RD
19272 {
19273 PyThreadState* __tstate = wxPyBeginAllowThreads();
19274 (arg1)->SetInternalBorder(arg2);
19275 wxPyEndAllowThreads(__tstate);
19276 if (PyErr_Occurred()) SWIG_fail;
19277 }
19278 resultobj = SWIG_Py_Void();
19279 return resultobj;
19280fail:
19281 return NULL;
b2dc1044
RD
19282}
19283
19284
0085ce49
RD
19285SWIGINTERN PyObject *_wrap_BookCtrlBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19286 PyObject *resultobj = 0;
19287 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19288 bool result;
19289 void *argp1 = 0 ;
19290 int res1 = 0 ;
19291 PyObject *swig_obj[1] ;
19292
19293 if (!args) SWIG_fail;
19294 swig_obj[0] = args;
19295 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19296 if (!SWIG_IsOK(res1)) {
19297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_IsVertical" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19298 }
19299 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19300 {
19301 PyThreadState* __tstate = wxPyBeginAllowThreads();
19302 result = (bool)((wxBookCtrlBase const *)arg1)->IsVertical();
19303 wxPyEndAllowThreads(__tstate);
19304 if (PyErr_Occurred()) SWIG_fail;
19305 }
19306 {
19307 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19308 }
19309 return resultobj;
19310fail:
19311 return NULL;
19312}
19313
19314
19315SWIGINTERN PyObject *_wrap_BookCtrlBase_SetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19316 PyObject *resultobj = 0;
19317 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19318 bool arg2 ;
19319 void *argp1 = 0 ;
19320 int res1 = 0 ;
19321 bool val2 ;
19322 int ecode2 = 0 ;
19323 PyObject * obj0 = 0 ;
19324 PyObject * obj1 = 0 ;
19325 char * kwnames[] = {
19326 (char *) "self",(char *) "fit", NULL
19327 };
19328
19329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetFitToCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail;
19330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19331 if (!SWIG_IsOK(res1)) {
19332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19333 }
19334 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19335 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19336 if (!SWIG_IsOK(ecode2)) {
19337 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "2"" of type '" "bool""'");
19338 }
19339 arg2 = static_cast< bool >(val2);
19340 {
19341 PyThreadState* __tstate = wxPyBeginAllowThreads();
19342 (arg1)->SetFitToCurrentPage(arg2);
19343 wxPyEndAllowThreads(__tstate);
19344 if (PyErr_Occurred()) SWIG_fail;
19345 }
19346 resultobj = SWIG_Py_Void();
19347 return resultobj;
19348fail:
19349 return NULL;
d14a1e28
RD
19350}
19351
19352
0085ce49
RD
19353SWIGINTERN PyObject *_wrap_BookCtrlBase_GetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19354 PyObject *resultobj = 0;
19355 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19356 bool result;
19357 void *argp1 = 0 ;
19358 int res1 = 0 ;
19359 PyObject *swig_obj[1] ;
19360
19361 if (!args) SWIG_fail;
19362 swig_obj[0] = args;
19363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19364 if (!SWIG_IsOK(res1)) {
19365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19366 }
19367 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19368 {
19369 PyThreadState* __tstate = wxPyBeginAllowThreads();
19370 result = (bool)((wxBookCtrlBase const *)arg1)->GetFitToCurrentPage();
19371 wxPyEndAllowThreads(__tstate);
19372 if (PyErr_Occurred()) SWIG_fail;
19373 }
19374 {
19375 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19376 }
19377 return resultobj;
19378fail:
19379 return NULL;
19380}
19381
19382
19383SWIGINTERN PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19384 PyObject *resultobj = 0;
19385 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19386 size_t arg2 ;
19387 bool result;
19388 void *argp1 = 0 ;
19389 int res1 = 0 ;
19390 size_t val2 ;
19391 int ecode2 = 0 ;
19392 PyObject * obj0 = 0 ;
19393 PyObject * obj1 = 0 ;
19394 char * kwnames[] = {
19395 (char *) "self",(char *) "n", NULL
19396 };
19397
19398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) SWIG_fail;
19399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19400 if (!SWIG_IsOK(res1)) {
19401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19402 }
19403 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19404 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19405 if (!SWIG_IsOK(ecode2)) {
19406 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "2"" of type '" "size_t""'");
19407 }
19408 arg2 = static_cast< size_t >(val2);
19409 {
19410 PyThreadState* __tstate = wxPyBeginAllowThreads();
19411 result = (bool)(arg1)->DeletePage(arg2);
19412 wxPyEndAllowThreads(__tstate);
19413 if (PyErr_Occurred()) SWIG_fail;
19414 }
19415 {
19416 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19417 }
19418 return resultobj;
19419fail:
19420 return NULL;
19421}
19422
19423
19424SWIGINTERN PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19425 PyObject *resultobj = 0;
19426 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19427 size_t arg2 ;
19428 bool result;
19429 void *argp1 = 0 ;
19430 int res1 = 0 ;
19431 size_t val2 ;
19432 int ecode2 = 0 ;
19433 PyObject * obj0 = 0 ;
19434 PyObject * obj1 = 0 ;
19435 char * kwnames[] = {
19436 (char *) "self",(char *) "n", NULL
19437 };
19438
19439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) SWIG_fail;
19440 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19441 if (!SWIG_IsOK(res1)) {
19442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19443 }
19444 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19445 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19446 if (!SWIG_IsOK(ecode2)) {
19447 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "2"" of type '" "size_t""'");
19448 }
19449 arg2 = static_cast< size_t >(val2);
19450 {
19451 PyThreadState* __tstate = wxPyBeginAllowThreads();
19452 result = (bool)(arg1)->RemovePage(arg2);
19453 wxPyEndAllowThreads(__tstate);
19454 if (PyErr_Occurred()) SWIG_fail;
19455 }
19456 {
19457 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19458 }
19459 return resultobj;
19460fail:
19461 return NULL;
d14a1e28
RD
19462}
19463
19464
0085ce49
RD
19465SWIGINTERN PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19466 PyObject *resultobj = 0;
19467 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19468 bool result;
19469 void *argp1 = 0 ;
19470 int res1 = 0 ;
19471 PyObject *swig_obj[1] ;
19472
19473 if (!args) SWIG_fail;
19474 swig_obj[0] = args;
19475 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19476 if (!SWIG_IsOK(res1)) {
19477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeleteAllPages" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19478 }
19479 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19480 {
19481 PyThreadState* __tstate = wxPyBeginAllowThreads();
19482 result = (bool)(arg1)->DeleteAllPages();
19483 wxPyEndAllowThreads(__tstate);
19484 if (PyErr_Occurred()) SWIG_fail;
19485 }
19486 {
19487 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19488 }
19489 return resultobj;
19490fail:
19491 return NULL;
19492}
19493
19494
19495SWIGINTERN PyObject *_wrap_BookCtrlBase_AddPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19496 PyObject *resultobj = 0;
19497 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19498 wxWindow *arg2 = (wxWindow *) 0 ;
19499 wxString *arg3 = 0 ;
19500 bool arg4 = (bool) false ;
19501 int arg5 = (int) -1 ;
19502 bool result;
19503 void *argp1 = 0 ;
19504 int res1 = 0 ;
19505 void *argp2 = 0 ;
19506 int res2 = 0 ;
19507 bool temp3 = false ;
19508 bool val4 ;
19509 int ecode4 = 0 ;
19510 int val5 ;
19511 int ecode5 = 0 ;
19512 PyObject * obj0 = 0 ;
19513 PyObject * obj1 = 0 ;
19514 PyObject * obj2 = 0 ;
19515 PyObject * obj3 = 0 ;
19516 PyObject * obj4 = 0 ;
19517 char * kwnames[] = {
19518 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
19519 };
19520
19521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19523 if (!SWIG_IsOK(res1)) {
19524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AddPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19525 }
19526 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19527 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
19528 if (!SWIG_IsOK(res2)) {
19529 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AddPage" "', expected argument " "2"" of type '" "wxWindow *""'");
19530 }
19531 arg2 = reinterpret_cast< wxWindow * >(argp2);
19532 {
19533 arg3 = wxString_in_helper(obj2);
19534 if (arg3 == NULL) SWIG_fail;
19535 temp3 = true;
19536 }
19537 if (obj3) {
19538 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19539 if (!SWIG_IsOK(ecode4)) {
19540 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BookCtrlBase_AddPage" "', expected argument " "4"" of type '" "bool""'");
19541 }
19542 arg4 = static_cast< bool >(val4);
19543 }
19544 if (obj4) {
19545 ecode5 = SWIG_AsVal_int(obj4, &val5);
19546 if (!SWIG_IsOK(ecode5)) {
19547 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_AddPage" "', expected argument " "5"" of type '" "int""'");
19548 }
19549 arg5 = static_cast< int >(val5);
19550 }
19551 {
19552 PyThreadState* __tstate = wxPyBeginAllowThreads();
19553 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
19554 wxPyEndAllowThreads(__tstate);
19555 if (PyErr_Occurred()) SWIG_fail;
19556 }
19557 {
19558 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19559 }
19560 {
19561 if (temp3)
19562 delete arg3;
19563 }
19564 return resultobj;
19565fail:
19566 {
19567 if (temp3)
19568 delete arg3;
19569 }
19570 return NULL;
19571}
19572
19573
19574SWIGINTERN PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19575 PyObject *resultobj = 0;
19576 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19577 size_t arg2 ;
19578 wxWindow *arg3 = (wxWindow *) 0 ;
19579 wxString *arg4 = 0 ;
19580 bool arg5 = (bool) false ;
19581 int arg6 = (int) -1 ;
19582 bool result;
19583 void *argp1 = 0 ;
19584 int res1 = 0 ;
19585 size_t val2 ;
19586 int ecode2 = 0 ;
19587 void *argp3 = 0 ;
19588 int res3 = 0 ;
19589 bool temp4 = false ;
19590 bool val5 ;
19591 int ecode5 = 0 ;
19592 int val6 ;
19593 int ecode6 = 0 ;
19594 PyObject * obj0 = 0 ;
19595 PyObject * obj1 = 0 ;
19596 PyObject * obj2 = 0 ;
19597 PyObject * obj3 = 0 ;
19598 PyObject * obj4 = 0 ;
19599 PyObject * obj5 = 0 ;
19600 char * kwnames[] = {
19601 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
19602 };
19603
19604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19606 if (!SWIG_IsOK(res1)) {
19607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19608 }
19609 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19610 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19611 if (!SWIG_IsOK(ecode2)) {
19612 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "2"" of type '" "size_t""'");
19613 }
19614 arg2 = static_cast< size_t >(val2);
19615 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
19616 if (!SWIG_IsOK(res3)) {
19617 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "3"" of type '" "wxWindow *""'");
19618 }
19619 arg3 = reinterpret_cast< wxWindow * >(argp3);
19620 {
19621 arg4 = wxString_in_helper(obj3);
19622 if (arg4 == NULL) SWIG_fail;
19623 temp4 = true;
19624 }
19625 if (obj4) {
19626 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19627 if (!SWIG_IsOK(ecode5)) {
19628 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "5"" of type '" "bool""'");
19629 }
19630 arg5 = static_cast< bool >(val5);
19631 }
19632 if (obj5) {
19633 ecode6 = SWIG_AsVal_int(obj5, &val6);
19634 if (!SWIG_IsOK(ecode6)) {
19635 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "6"" of type '" "int""'");
19636 }
19637 arg6 = static_cast< int >(val6);
19638 }
19639 {
19640 PyThreadState* __tstate = wxPyBeginAllowThreads();
19641 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
19642 wxPyEndAllowThreads(__tstate);
19643 if (PyErr_Occurred()) SWIG_fail;
19644 }
19645 {
19646 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19647 }
19648 {
19649 if (temp4)
19650 delete arg4;
19651 }
19652 return resultobj;
19653fail:
19654 {
19655 if (temp4)
19656 delete arg4;
19657 }
19658 return NULL;
19659}
19660
19661
19662SWIGINTERN PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19663 PyObject *resultobj = 0;
19664 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19665 size_t arg2 ;
19666 int result;
19667 void *argp1 = 0 ;
19668 int res1 = 0 ;
19669 size_t val2 ;
19670 int ecode2 = 0 ;
19671 PyObject * obj0 = 0 ;
19672 PyObject * obj1 = 0 ;
19673 char * kwnames[] = {
19674 (char *) "self",(char *) "n", NULL
19675 };
19676
19677 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
19678 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19679 if (!SWIG_IsOK(res1)) {
19680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19681 }
19682 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19683 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19684 if (!SWIG_IsOK(ecode2)) {
19685 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "2"" of type '" "size_t""'");
19686 }
19687 arg2 = static_cast< size_t >(val2);
19688 {
19689 PyThreadState* __tstate = wxPyBeginAllowThreads();
19690 result = (int)(arg1)->SetSelection(arg2);
19691 wxPyEndAllowThreads(__tstate);
19692 if (PyErr_Occurred()) SWIG_fail;
19693 }
19694 resultobj = SWIG_From_int(static_cast< int >(result));
19695 return resultobj;
19696fail:
19697 return NULL;
19698}
19699
19700
19701SWIGINTERN PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19702 PyObject *resultobj = 0;
19703 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19704 bool arg2 = (bool) true ;
19705 void *argp1 = 0 ;
19706 int res1 = 0 ;
19707 bool val2 ;
19708 int ecode2 = 0 ;
19709 PyObject * obj0 = 0 ;
19710 PyObject * obj1 = 0 ;
19711 char * kwnames[] = {
19712 (char *) "self",(char *) "forward", NULL
19713 };
19714
19715 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) SWIG_fail;
19716 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19717 if (!SWIG_IsOK(res1)) {
19718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19719 }
19720 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19721 if (obj1) {
19722 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19723 if (!SWIG_IsOK(ecode2)) {
19724 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "2"" of type '" "bool""'");
19725 }
19726 arg2 = static_cast< bool >(val2);
19727 }
19728 {
19729 PyThreadState* __tstate = wxPyBeginAllowThreads();
19730 (arg1)->AdvanceSelection(arg2);
19731 wxPyEndAllowThreads(__tstate);
19732 if (PyErr_Occurred()) SWIG_fail;
19733 }
19734 resultobj = SWIG_Py_Void();
19735 return resultobj;
19736fail:
19737 return NULL;
19738}
19739
19740
19741SWIGINTERN PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19742 PyObject *resultobj = 0;
19743 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
19744 SwigValueWrapper<wxVisualAttributes > result;
19745 int val1 ;
19746 int ecode1 = 0 ;
19747 PyObject * obj0 = 0 ;
19748 char * kwnames[] = {
19749 (char *) "variant", NULL
19750 };
19751
19752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
19753 if (obj0) {
19754 ecode1 = SWIG_AsVal_int(obj0, &val1);
19755 if (!SWIG_IsOK(ecode1)) {
19756 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BookCtrlBase_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
19757 }
19758 arg1 = static_cast< wxWindowVariant >(val1);
19759 }
19760 {
19761 if (!wxPyCheckForApp()) SWIG_fail;
19762 PyThreadState* __tstate = wxPyBeginAllowThreads();
19763 result = wxBookCtrlBase::GetClassDefaultAttributes(arg1);
19764 wxPyEndAllowThreads(__tstate);
19765 if (PyErr_Occurred()) SWIG_fail;
19766 }
19767 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
19768 return resultobj;
19769fail:
19770 return NULL;
19771}
19772
19773
19774SWIGINTERN PyObject *BookCtrlBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19775 PyObject *obj;
19776 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
19777 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBase, SWIG_NewClientData(obj));
19778 return SWIG_Py_Void();
19779}
19780
19781SWIGINTERN PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19782 PyObject *resultobj = 0;
19783 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
19784 int arg2 = (int) 0 ;
19785 int arg3 = (int) -1 ;
19786 int arg4 = (int) -1 ;
19787 wxBookCtrlBaseEvent *result = 0 ;
19788 int val1 ;
19789 int ecode1 = 0 ;
19790 int val2 ;
19791 int ecode2 = 0 ;
19792 int val3 ;
19793 int ecode3 = 0 ;
19794 int val4 ;
19795 int ecode4 = 0 ;
19796 PyObject * obj0 = 0 ;
19797 PyObject * obj1 = 0 ;
19798 PyObject * obj2 = 0 ;
19799 PyObject * obj3 = 0 ;
19800 char * kwnames[] = {
19801 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
19802 };
19803
19804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19805 if (obj0) {
19806 ecode1 = SWIG_AsVal_int(obj0, &val1);
19807 if (!SWIG_IsOK(ecode1)) {
19808 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "1"" of type '" "wxEventType""'");
19809 }
19810 arg1 = static_cast< wxEventType >(val1);
19811 }
19812 if (obj1) {
19813 ecode2 = SWIG_AsVal_int(obj1, &val2);
19814 if (!SWIG_IsOK(ecode2)) {
19815 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "2"" of type '" "int""'");
19816 }
19817 arg2 = static_cast< int >(val2);
19818 }
19819 if (obj2) {
19820 ecode3 = SWIG_AsVal_int(obj2, &val3);
19821 if (!SWIG_IsOK(ecode3)) {
19822 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "3"" of type '" "int""'");
19823 }
19824 arg3 = static_cast< int >(val3);
19825 }
19826 if (obj3) {
19827 ecode4 = SWIG_AsVal_int(obj3, &val4);
19828 if (!SWIG_IsOK(ecode4)) {
19829 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "4"" of type '" "int""'");
19830 }
19831 arg4 = static_cast< int >(val4);
19832 }
19833 {
19834 PyThreadState* __tstate = wxPyBeginAllowThreads();
19835 result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4);
19836 wxPyEndAllowThreads(__tstate);
19837 if (PyErr_Occurred()) SWIG_fail;
19838 }
19839 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_NEW | 0 );
19840 return resultobj;
19841fail:
19842 return NULL;
d14a1e28
RD
19843}
19844
19845
0085ce49
RD
19846SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19847 PyObject *resultobj = 0;
19848 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
19849 int result;
19850 void *argp1 = 0 ;
19851 int res1 = 0 ;
19852 PyObject *swig_obj[1] ;
19853
19854 if (!args) SWIG_fail;
19855 swig_obj[0] = args;
19856 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
19857 if (!SWIG_IsOK(res1)) {
19858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
19859 }
19860 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
19861 {
19862 PyThreadState* __tstate = wxPyBeginAllowThreads();
19863 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection();
19864 wxPyEndAllowThreads(__tstate);
19865 if (PyErr_Occurred()) SWIG_fail;
19866 }
19867 resultobj = SWIG_From_int(static_cast< int >(result));
19868 return resultobj;
19869fail:
19870 return NULL;
19871}
19872
19873
19874SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19875 PyObject *resultobj = 0;
19876 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
19877 int arg2 ;
19878 void *argp1 = 0 ;
19879 int res1 = 0 ;
19880 int val2 ;
19881 int ecode2 = 0 ;
19882 PyObject * obj0 = 0 ;
19883 PyObject * obj1 = 0 ;
19884 char * kwnames[] = {
19885 (char *) "self",(char *) "nSel", NULL
19886 };
19887
19888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
19889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
19890 if (!SWIG_IsOK(res1)) {
19891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
19892 }
19893 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
19894 ecode2 = SWIG_AsVal_int(obj1, &val2);
19895 if (!SWIG_IsOK(ecode2)) {
19896 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "2"" of type '" "int""'");
19897 }
19898 arg2 = static_cast< int >(val2);
19899 {
19900 PyThreadState* __tstate = wxPyBeginAllowThreads();
19901 (arg1)->SetSelection(arg2);
19902 wxPyEndAllowThreads(__tstate);
19903 if (PyErr_Occurred()) SWIG_fail;
19904 }
19905 resultobj = SWIG_Py_Void();
19906 return resultobj;
19907fail:
19908 return NULL;
d14a1e28
RD
19909}
19910
19911
0085ce49
RD
19912SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19913 PyObject *resultobj = 0;
19914 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
19915 int result;
19916 void *argp1 = 0 ;
19917 int res1 = 0 ;
19918 PyObject *swig_obj[1] ;
19919
19920 if (!args) SWIG_fail;
19921 swig_obj[0] = args;
19922 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
19923 if (!SWIG_IsOK(res1)) {
19924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
19925 }
19926 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
19927 {
19928 PyThreadState* __tstate = wxPyBeginAllowThreads();
19929 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection();
19930 wxPyEndAllowThreads(__tstate);
19931 if (PyErr_Occurred()) SWIG_fail;
19932 }
19933 resultobj = SWIG_From_int(static_cast< int >(result));
19934 return resultobj;
19935fail:
19936 return NULL;
19937}
19938
19939
19940SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19941 PyObject *resultobj = 0;
19942 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
19943 int arg2 ;
19944 void *argp1 = 0 ;
19945 int res1 = 0 ;
19946 int val2 ;
19947 int ecode2 = 0 ;
19948 PyObject * obj0 = 0 ;
19949 PyObject * obj1 = 0 ;
19950 char * kwnames[] = {
19951 (char *) "self",(char *) "nOldSel", NULL
19952 };
19953
19954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) SWIG_fail;
19955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
19956 if (!SWIG_IsOK(res1)) {
19957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
19958 }
19959 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
19960 ecode2 = SWIG_AsVal_int(obj1, &val2);
19961 if (!SWIG_IsOK(ecode2)) {
19962 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "2"" of type '" "int""'");
19963 }
19964 arg2 = static_cast< int >(val2);
19965 {
19966 PyThreadState* __tstate = wxPyBeginAllowThreads();
19967 (arg1)->SetOldSelection(arg2);
19968 wxPyEndAllowThreads(__tstate);
19969 if (PyErr_Occurred()) SWIG_fail;
19970 }
19971 resultobj = SWIG_Py_Void();
19972 return resultobj;
19973fail:
19974 return NULL;
19975}
19976
19977
19978SWIGINTERN PyObject *BookCtrlBaseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19979 PyObject *obj;
19980 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
19981 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_NewClientData(obj));
19982 return SWIG_Py_Void();
19983}
19984
19985SWIGINTERN PyObject *BookCtrlBaseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19986 return SWIG_Python_InitShadowInstance(args);
19987}
19988
19989SWIGINTERN PyObject *_wrap_new_Notebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19990 PyObject *resultobj = 0;
19991 wxWindow *arg1 = (wxWindow *) 0 ;
19992 int arg2 = (int) -1 ;
19993 wxPoint const &arg3_defvalue = wxDefaultPosition ;
19994 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
19995 wxSize const &arg4_defvalue = wxDefaultSize ;
19996 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
19997 long arg5 = (long) 0 ;
19998 wxString const &arg6_defvalue = wxPyNotebookNameStr ;
19999 wxString *arg6 = (wxString *) &arg6_defvalue ;
20000 wxNotebook *result = 0 ;
20001 void *argp1 = 0 ;
20002 int res1 = 0 ;
20003 int val2 ;
20004 int ecode2 = 0 ;
20005 wxPoint temp3 ;
20006 wxSize temp4 ;
20007 long val5 ;
20008 int ecode5 = 0 ;
20009 bool temp6 = false ;
20010 PyObject * obj0 = 0 ;
20011 PyObject * obj1 = 0 ;
20012 PyObject * obj2 = 0 ;
20013 PyObject * obj3 = 0 ;
20014 PyObject * obj4 = 0 ;
20015 PyObject * obj5 = 0 ;
20016 char * kwnames[] = {
20017 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20018 };
20019
20020 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20022 if (!SWIG_IsOK(res1)) {
20023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Notebook" "', expected argument " "1"" of type '" "wxWindow *""'");
20024 }
20025 arg1 = reinterpret_cast< wxWindow * >(argp1);
20026 if (obj1) {
20027 ecode2 = SWIG_AsVal_int(obj1, &val2);
20028 if (!SWIG_IsOK(ecode2)) {
20029 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Notebook" "', expected argument " "2"" of type '" "int""'");
20030 }
20031 arg2 = static_cast< int >(val2);
20032 }
20033 if (obj2) {
093d3ff1 20034 {
0085ce49
RD
20035 arg3 = &temp3;
20036 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 20037 }
0085ce49
RD
20038 }
20039 if (obj3) {
d14a1e28 20040 {
0085ce49
RD
20041 arg4 = &temp4;
20042 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 20043 }
0085ce49
RD
20044 }
20045 if (obj4) {
20046 ecode5 = SWIG_AsVal_long(obj4, &val5);
20047 if (!SWIG_IsOK(ecode5)) {
20048 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Notebook" "', expected argument " "5"" of type '" "long""'");
20049 }
20050 arg5 = static_cast< long >(val5);
20051 }
20052 if (obj5) {
093d3ff1 20053 {
0085ce49
RD
20054 arg6 = wxString_in_helper(obj5);
20055 if (arg6 == NULL) SWIG_fail;
20056 temp6 = true;
093d3ff1 20057 }
0085ce49
RD
20058 }
20059 {
20060 if (!wxPyCheckForApp()) SWIG_fail;
20061 PyThreadState* __tstate = wxPyBeginAllowThreads();
20062 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20063 wxPyEndAllowThreads(__tstate);
20064 if (PyErr_Occurred()) SWIG_fail;
20065 }
20066 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_NEW | 0 );
20067 {
20068 if (temp6)
20069 delete arg6;
20070 }
20071 return resultobj;
20072fail:
20073 {
20074 if (temp6)
20075 delete arg6;
20076 }
20077 return NULL;
d14a1e28
RD
20078}
20079
20080
0085ce49
RD
20081SWIGINTERN PyObject *_wrap_new_PreNotebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20082 PyObject *resultobj = 0;
20083 wxNotebook *result = 0 ;
20084
20085 if (!SWIG_Python_UnpackTuple(args,"new_PreNotebook",0,0,0)) SWIG_fail;
20086 {
20087 if (!wxPyCheckForApp()) SWIG_fail;
20088 PyThreadState* __tstate = wxPyBeginAllowThreads();
20089 result = (wxNotebook *)new wxNotebook();
20090 wxPyEndAllowThreads(__tstate);
20091 if (PyErr_Occurred()) SWIG_fail;
20092 }
20093 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_OWN | 0 );
20094 return resultobj;
20095fail:
20096 return NULL;
20097}
20098
20099
20100SWIGINTERN PyObject *_wrap_Notebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20101 PyObject *resultobj = 0;
20102 wxNotebook *arg1 = (wxNotebook *) 0 ;
20103 wxWindow *arg2 = (wxWindow *) 0 ;
20104 int arg3 = (int) -1 ;
20105 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20106 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20107 wxSize const &arg5_defvalue = wxDefaultSize ;
20108 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20109 long arg6 = (long) 0 ;
20110 wxString const &arg7_defvalue = wxPyNotebookNameStr ;
20111 wxString *arg7 = (wxString *) &arg7_defvalue ;
20112 bool result;
20113 void *argp1 = 0 ;
20114 int res1 = 0 ;
20115 void *argp2 = 0 ;
20116 int res2 = 0 ;
20117 int val3 ;
20118 int ecode3 = 0 ;
20119 wxPoint temp4 ;
20120 wxSize temp5 ;
20121 long val6 ;
20122 int ecode6 = 0 ;
20123 bool temp7 = false ;
20124 PyObject * obj0 = 0 ;
20125 PyObject * obj1 = 0 ;
20126 PyObject * obj2 = 0 ;
20127 PyObject * obj3 = 0 ;
20128 PyObject * obj4 = 0 ;
20129 PyObject * obj5 = 0 ;
20130 PyObject * obj6 = 0 ;
20131 char * kwnames[] = {
20132 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20133 };
20134
20135 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20136 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20137 if (!SWIG_IsOK(res1)) {
20138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_Create" "', expected argument " "1"" of type '" "wxNotebook *""'");
20139 }
20140 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20141 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20142 if (!SWIG_IsOK(res2)) {
20143 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Notebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20144 }
20145 arg2 = reinterpret_cast< wxWindow * >(argp2);
20146 if (obj2) {
20147 ecode3 = SWIG_AsVal_int(obj2, &val3);
20148 if (!SWIG_IsOK(ecode3)) {
20149 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_Create" "', expected argument " "3"" of type '" "int""'");
20150 }
20151 arg3 = static_cast< int >(val3);
20152 }
20153 if (obj3) {
093d3ff1 20154 {
0085ce49
RD
20155 arg4 = &temp4;
20156 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 20157 }
0085ce49
RD
20158 }
20159 if (obj4) {
d14a1e28 20160 {
0085ce49
RD
20161 arg5 = &temp5;
20162 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 20163 }
0085ce49
RD
20164 }
20165 if (obj5) {
20166 ecode6 = SWIG_AsVal_long(obj5, &val6);
20167 if (!SWIG_IsOK(ecode6)) {
20168 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Notebook_Create" "', expected argument " "6"" of type '" "long""'");
20169 }
20170 arg6 = static_cast< long >(val6);
20171 }
20172 if (obj6) {
4f89f6a3 20173 {
0085ce49
RD
20174 arg7 = wxString_in_helper(obj6);
20175 if (arg7 == NULL) SWIG_fail;
20176 temp7 = true;
4f89f6a3 20177 }
0085ce49
RD
20178 }
20179 {
20180 PyThreadState* __tstate = wxPyBeginAllowThreads();
20181 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20182 wxPyEndAllowThreads(__tstate);
20183 if (PyErr_Occurred()) SWIG_fail;
20184 }
20185 {
20186 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20187 }
20188 {
20189 if (temp7)
20190 delete arg7;
20191 }
20192 return resultobj;
20193fail:
20194 {
20195 if (temp7)
20196 delete arg7;
20197 }
20198 return NULL;
d14a1e28
RD
20199}
20200
20201
0085ce49
RD
20202SWIGINTERN PyObject *_wrap_Notebook_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20203 PyObject *resultobj = 0;
20204 wxNotebook *arg1 = (wxNotebook *) 0 ;
20205 int result;
20206 void *argp1 = 0 ;
20207 int res1 = 0 ;
20208 PyObject *swig_obj[1] ;
20209
20210 if (!args) SWIG_fail;
20211 swig_obj[0] = args;
20212 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20213 if (!SWIG_IsOK(res1)) {
20214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetRowCount" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20215 }
20216 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20217 {
20218 PyThreadState* __tstate = wxPyBeginAllowThreads();
20219 result = (int)((wxNotebook const *)arg1)->GetRowCount();
20220 wxPyEndAllowThreads(__tstate);
20221 if (PyErr_Occurred()) SWIG_fail;
20222 }
20223 resultobj = SWIG_From_int(static_cast< int >(result));
20224 return resultobj;
20225fail:
20226 return NULL;
20227}
20228
20229
20230SWIGINTERN PyObject *_wrap_Notebook_SetPadding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20231 PyObject *resultobj = 0;
20232 wxNotebook *arg1 = (wxNotebook *) 0 ;
20233 wxSize *arg2 = 0 ;
20234 void *argp1 = 0 ;
20235 int res1 = 0 ;
20236 wxSize temp2 ;
20237 PyObject * obj0 = 0 ;
20238 PyObject * obj1 = 0 ;
20239 char * kwnames[] = {
20240 (char *) "self",(char *) "padding", NULL
20241 };
20242
20243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) SWIG_fail;
20244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20245 if (!SWIG_IsOK(res1)) {
20246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetPadding" "', expected argument " "1"" of type '" "wxNotebook *""'");
20247 }
20248 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20249 {
20250 arg2 = &temp2;
20251 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20252 }
20253 {
20254 PyThreadState* __tstate = wxPyBeginAllowThreads();
20255 (arg1)->SetPadding((wxSize const &)*arg2);
20256 wxPyEndAllowThreads(__tstate);
20257 if (PyErr_Occurred()) SWIG_fail;
20258 }
20259 resultobj = SWIG_Py_Void();
20260 return resultobj;
20261fail:
20262 return NULL;
20263}
20264
20265
20266SWIGINTERN PyObject *_wrap_Notebook_SetTabSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20267 PyObject *resultobj = 0;
20268 wxNotebook *arg1 = (wxNotebook *) 0 ;
20269 wxSize *arg2 = 0 ;
20270 void *argp1 = 0 ;
20271 int res1 = 0 ;
20272 wxSize temp2 ;
20273 PyObject * obj0 = 0 ;
20274 PyObject * obj1 = 0 ;
20275 char * kwnames[] = {
20276 (char *) "self",(char *) "sz", NULL
20277 };
20278
20279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) SWIG_fail;
20280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20281 if (!SWIG_IsOK(res1)) {
20282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetTabSize" "', expected argument " "1"" of type '" "wxNotebook *""'");
20283 }
20284 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20285 {
20286 arg2 = &temp2;
20287 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20288 }
20289 {
20290 PyThreadState* __tstate = wxPyBeginAllowThreads();
20291 (arg1)->SetTabSize((wxSize const &)*arg2);
20292 wxPyEndAllowThreads(__tstate);
20293 if (PyErr_Occurred()) SWIG_fail;
20294 }
20295 resultobj = SWIG_Py_Void();
20296 return resultobj;
20297fail:
20298 return NULL;
20299}
20300
20301
20302SWIGINTERN PyObject *_wrap_Notebook_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20303 PyObject *resultobj = 0;
20304 wxNotebook *arg1 = (wxNotebook *) 0 ;
20305 wxPoint *arg2 = 0 ;
20306 long *arg3 = (long *) 0 ;
20307 int result;
20308 void *argp1 = 0 ;
20309 int res1 = 0 ;
20310 wxPoint temp2 ;
20311 long temp3 ;
20312 int res3 = SWIG_TMPOBJ ;
20313 PyObject * obj0 = 0 ;
20314 PyObject * obj1 = 0 ;
20315 char * kwnames[] = {
20316 (char *) "self",(char *) "pt", NULL
20317 };
20318
20319 arg3 = &temp3;
20320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
20321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20322 if (!SWIG_IsOK(res1)) {
20323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_HitTest" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20324 }
20325 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20326 {
20327 arg2 = &temp2;
20328 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20329 }
20330 {
20331 PyThreadState* __tstate = wxPyBeginAllowThreads();
20332 result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
20333 wxPyEndAllowThreads(__tstate);
20334 if (PyErr_Occurred()) SWIG_fail;
20335 }
20336 resultobj = SWIG_From_int(static_cast< int >(result));
20337 if (SWIG_IsTmpObj(res3)) {
20338 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
20339 } else {
20340 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20341 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
20342 }
20343 return resultobj;
20344fail:
20345 return NULL;
d14a1e28
RD
20346}
20347
20348
0085ce49
RD
20349SWIGINTERN PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20350 PyObject *resultobj = 0;
20351 wxNotebook *arg1 = (wxNotebook *) 0 ;
20352 wxColour result;
20353 void *argp1 = 0 ;
20354 int res1 = 0 ;
20355 PyObject *swig_obj[1] ;
20356
20357 if (!args) SWIG_fail;
20358 swig_obj[0] = args;
20359 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20360 if (!SWIG_IsOK(res1)) {
20361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetThemeBackgroundColour" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20362 }
20363 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20364 {
20365 PyThreadState* __tstate = wxPyBeginAllowThreads();
20366 result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour();
20367 wxPyEndAllowThreads(__tstate);
20368 if (PyErr_Occurred()) SWIG_fail;
20369 }
20370 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
20371 return resultobj;
20372fail:
20373 return NULL;
20374}
20375
20376
20377SWIGINTERN PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20378 PyObject *resultobj = 0;
20379 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20380 SwigValueWrapper<wxVisualAttributes > result;
20381 int val1 ;
20382 int ecode1 = 0 ;
20383 PyObject * obj0 = 0 ;
20384 char * kwnames[] = {
20385 (char *) "variant", NULL
20386 };
20387
20388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20389 if (obj0) {
20390 ecode1 = SWIG_AsVal_int(obj0, &val1);
20391 if (!SWIG_IsOK(ecode1)) {
20392 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Notebook_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20393 }
20394 arg1 = static_cast< wxWindowVariant >(val1);
20395 }
20396 {
20397 if (!wxPyCheckForApp()) SWIG_fail;
20398 PyThreadState* __tstate = wxPyBeginAllowThreads();
20399 result = wxNotebook::GetClassDefaultAttributes(arg1);
20400 wxPyEndAllowThreads(__tstate);
20401 if (PyErr_Occurred()) SWIG_fail;
20402 }
20403 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20404 return resultobj;
20405fail:
20406 return NULL;
20407}
20408
20409
20410SWIGINTERN PyObject *Notebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20411 PyObject *obj;
20412 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20413 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebook, SWIG_NewClientData(obj));
20414 return SWIG_Py_Void();
20415}
20416
20417SWIGINTERN PyObject *Notebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20418 return SWIG_Python_InitShadowInstance(args);
20419}
20420
20421SWIGINTERN PyObject *_wrap_new_NotebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20422 PyObject *resultobj = 0;
20423 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20424 int arg2 = (int) 0 ;
20425 int arg3 = (int) -1 ;
20426 int arg4 = (int) -1 ;
20427 wxNotebookEvent *result = 0 ;
20428 int val1 ;
20429 int ecode1 = 0 ;
20430 int val2 ;
20431 int ecode2 = 0 ;
20432 int val3 ;
20433 int ecode3 = 0 ;
20434 int val4 ;
20435 int ecode4 = 0 ;
20436 PyObject * obj0 = 0 ;
20437 PyObject * obj1 = 0 ;
20438 PyObject * obj2 = 0 ;
20439 PyObject * obj3 = 0 ;
20440 char * kwnames[] = {
20441 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20442 };
20443
20444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20445 if (obj0) {
20446 ecode1 = SWIG_AsVal_int(obj0, &val1);
20447 if (!SWIG_IsOK(ecode1)) {
20448 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NotebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20449 }
20450 arg1 = static_cast< wxEventType >(val1);
20451 }
20452 if (obj1) {
20453 ecode2 = SWIG_AsVal_int(obj1, &val2);
20454 if (!SWIG_IsOK(ecode2)) {
20455 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NotebookEvent" "', expected argument " "2"" of type '" "int""'");
20456 }
20457 arg2 = static_cast< int >(val2);
20458 }
20459 if (obj2) {
20460 ecode3 = SWIG_AsVal_int(obj2, &val3);
20461 if (!SWIG_IsOK(ecode3)) {
20462 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NotebookEvent" "', expected argument " "3"" of type '" "int""'");
20463 }
20464 arg3 = static_cast< int >(val3);
20465 }
20466 if (obj3) {
20467 ecode4 = SWIG_AsVal_int(obj3, &val4);
20468 if (!SWIG_IsOK(ecode4)) {
20469 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NotebookEvent" "', expected argument " "4"" of type '" "int""'");
20470 }
20471 arg4 = static_cast< int >(val4);
20472 }
20473 {
20474 PyThreadState* __tstate = wxPyBeginAllowThreads();
20475 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
20476 wxPyEndAllowThreads(__tstate);
20477 if (PyErr_Occurred()) SWIG_fail;
20478 }
20479 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebookEvent, SWIG_POINTER_NEW | 0 );
20480 return resultobj;
20481fail:
20482 return NULL;
20483}
20484
20485
20486SWIGINTERN PyObject *NotebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20487 PyObject *obj;
20488 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20489 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebookEvent, SWIG_NewClientData(obj));
20490 return SWIG_Py_Void();
20491}
20492
20493SWIGINTERN PyObject *NotebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20494 return SWIG_Python_InitShadowInstance(args);
20495}
20496
20497SWIGINTERN PyObject *_wrap_new_Listbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20498 PyObject *resultobj = 0;
20499 wxWindow *arg1 = (wxWindow *) 0 ;
20500 int arg2 = (int) -1 ;
20501 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20502 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20503 wxSize const &arg4_defvalue = wxDefaultSize ;
20504 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20505 long arg5 = (long) 0 ;
20506 wxString const &arg6_defvalue = wxPyEmptyString ;
20507 wxString *arg6 = (wxString *) &arg6_defvalue ;
20508 wxListbook *result = 0 ;
20509 void *argp1 = 0 ;
20510 int res1 = 0 ;
20511 int val2 ;
20512 int ecode2 = 0 ;
20513 wxPoint temp3 ;
20514 wxSize temp4 ;
20515 long val5 ;
20516 int ecode5 = 0 ;
20517 bool temp6 = false ;
20518 PyObject * obj0 = 0 ;
20519 PyObject * obj1 = 0 ;
20520 PyObject * obj2 = 0 ;
20521 PyObject * obj3 = 0 ;
20522 PyObject * obj4 = 0 ;
20523 PyObject * obj5 = 0 ;
20524 char * kwnames[] = {
20525 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20526 };
20527
20528 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20529 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20530 if (!SWIG_IsOK(res1)) {
20531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Listbook" "', expected argument " "1"" of type '" "wxWindow *""'");
20532 }
20533 arg1 = reinterpret_cast< wxWindow * >(argp1);
20534 if (obj1) {
20535 ecode2 = SWIG_AsVal_int(obj1, &val2);
20536 if (!SWIG_IsOK(ecode2)) {
20537 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Listbook" "', expected argument " "2"" of type '" "int""'");
20538 }
20539 arg2 = static_cast< int >(val2);
20540 }
20541 if (obj2) {
093d3ff1 20542 {
0085ce49
RD
20543 arg3 = &temp3;
20544 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 20545 }
0085ce49
RD
20546 }
20547 if (obj3) {
093d3ff1 20548 {
0085ce49
RD
20549 arg4 = &temp4;
20550 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 20551 }
0085ce49
RD
20552 }
20553 if (obj4) {
20554 ecode5 = SWIG_AsVal_long(obj4, &val5);
20555 if (!SWIG_IsOK(ecode5)) {
20556 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Listbook" "', expected argument " "5"" of type '" "long""'");
20557 }
20558 arg5 = static_cast< long >(val5);
20559 }
20560 if (obj5) {
d14a1e28 20561 {
0085ce49
RD
20562 arg6 = wxString_in_helper(obj5);
20563 if (arg6 == NULL) SWIG_fail;
20564 temp6 = true;
d14a1e28 20565 }
0085ce49
RD
20566 }
20567 {
20568 if (!wxPyCheckForApp()) SWIG_fail;
20569 PyThreadState* __tstate = wxPyBeginAllowThreads();
20570 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20571 wxPyEndAllowThreads(__tstate);
20572 if (PyErr_Occurred()) SWIG_fail;
20573 }
20574 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_NEW | 0 );
20575 {
20576 if (temp6)
20577 delete arg6;
20578 }
20579 return resultobj;
20580fail:
20581 {
20582 if (temp6)
20583 delete arg6;
20584 }
20585 return NULL;
d14a1e28
RD
20586}
20587
20588
0085ce49
RD
20589SWIGINTERN PyObject *_wrap_new_PreListbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20590 PyObject *resultobj = 0;
20591 wxListbook *result = 0 ;
20592
20593 if (!SWIG_Python_UnpackTuple(args,"new_PreListbook",0,0,0)) SWIG_fail;
20594 {
20595 if (!wxPyCheckForApp()) SWIG_fail;
20596 PyThreadState* __tstate = wxPyBeginAllowThreads();
20597 result = (wxListbook *)new wxListbook();
20598 wxPyEndAllowThreads(__tstate);
20599 if (PyErr_Occurred()) SWIG_fail;
20600 }
20601 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_OWN | 0 );
20602 return resultobj;
20603fail:
20604 return NULL;
20605}
20606
20607
20608SWIGINTERN PyObject *_wrap_Listbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20609 PyObject *resultobj = 0;
20610 wxListbook *arg1 = (wxListbook *) 0 ;
20611 wxWindow *arg2 = (wxWindow *) 0 ;
20612 int arg3 = (int) -1 ;
20613 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20614 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20615 wxSize const &arg5_defvalue = wxDefaultSize ;
20616 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20617 long arg6 = (long) 0 ;
20618 wxString const &arg7_defvalue = wxPyEmptyString ;
20619 wxString *arg7 = (wxString *) &arg7_defvalue ;
20620 bool result;
20621 void *argp1 = 0 ;
20622 int res1 = 0 ;
20623 void *argp2 = 0 ;
20624 int res2 = 0 ;
20625 int val3 ;
20626 int ecode3 = 0 ;
20627 wxPoint temp4 ;
20628 wxSize temp5 ;
20629 long val6 ;
20630 int ecode6 = 0 ;
20631 bool temp7 = false ;
20632 PyObject * obj0 = 0 ;
20633 PyObject * obj1 = 0 ;
20634 PyObject * obj2 = 0 ;
20635 PyObject * obj3 = 0 ;
20636 PyObject * obj4 = 0 ;
20637 PyObject * obj5 = 0 ;
20638 PyObject * obj6 = 0 ;
20639 char * kwnames[] = {
20640 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20641 };
20642
20643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
20645 if (!SWIG_IsOK(res1)) {
20646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_Create" "', expected argument " "1"" of type '" "wxListbook *""'");
20647 }
20648 arg1 = reinterpret_cast< wxListbook * >(argp1);
20649 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20650 if (!SWIG_IsOK(res2)) {
20651 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Listbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20652 }
20653 arg2 = reinterpret_cast< wxWindow * >(argp2);
20654 if (obj2) {
20655 ecode3 = SWIG_AsVal_int(obj2, &val3);
20656 if (!SWIG_IsOK(ecode3)) {
20657 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Listbook_Create" "', expected argument " "3"" of type '" "int""'");
20658 }
20659 arg3 = static_cast< int >(val3);
20660 }
20661 if (obj3) {
22bfe96c 20662 {
0085ce49
RD
20663 arg4 = &temp4;
20664 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
22bfe96c 20665 }
0085ce49
RD
20666 }
20667 if (obj4) {
22bfe96c 20668 {
0085ce49
RD
20669 arg5 = &temp5;
20670 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
22bfe96c 20671 }
0085ce49
RD
20672 }
20673 if (obj5) {
20674 ecode6 = SWIG_AsVal_long(obj5, &val6);
20675 if (!SWIG_IsOK(ecode6)) {
20676 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Listbook_Create" "', expected argument " "6"" of type '" "long""'");
20677 }
20678 arg6 = static_cast< long >(val6);
20679 }
20680 if (obj6) {
b2dc1044 20681 {
0085ce49
RD
20682 arg7 = wxString_in_helper(obj6);
20683 if (arg7 == NULL) SWIG_fail;
20684 temp7 = true;
b2dc1044 20685 }
0085ce49
RD
20686 }
20687 {
20688 PyThreadState* __tstate = wxPyBeginAllowThreads();
20689 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20690 wxPyEndAllowThreads(__tstate);
20691 if (PyErr_Occurred()) SWIG_fail;
20692 }
20693 {
20694 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20695 }
20696 {
20697 if (temp7)
20698 delete arg7;
20699 }
20700 return resultobj;
20701fail:
20702 {
20703 if (temp7)
20704 delete arg7;
20705 }
20706 return NULL;
b2dc1044
RD
20707}
20708
20709
0085ce49
RD
20710SWIGINTERN PyObject *_wrap_Listbook_GetListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20711 PyObject *resultobj = 0;
20712 wxListbook *arg1 = (wxListbook *) 0 ;
20713 wxListView *result = 0 ;
20714 void *argp1 = 0 ;
20715 int res1 = 0 ;
20716 PyObject *swig_obj[1] ;
20717
20718 if (!args) SWIG_fail;
20719 swig_obj[0] = args;
20720 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
20721 if (!SWIG_IsOK(res1)) {
20722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_GetListView" "', expected argument " "1"" of type '" "wxListbook *""'");
20723 }
20724 arg1 = reinterpret_cast< wxListbook * >(argp1);
20725 {
20726 PyThreadState* __tstate = wxPyBeginAllowThreads();
20727 result = (wxListView *)(arg1)->GetListView();
20728 wxPyEndAllowThreads(__tstate);
20729 if (PyErr_Occurred()) SWIG_fail;
20730 }
20731 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, 0 | 0 );
20732 return resultobj;
20733fail:
20734 return NULL;
20735}
20736
20737
20738SWIGINTERN PyObject *Listbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20739 PyObject *obj;
20740 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20741 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbook, SWIG_NewClientData(obj));
20742 return SWIG_Py_Void();
20743}
20744
20745SWIGINTERN PyObject *Listbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20746 return SWIG_Python_InitShadowInstance(args);
20747}
20748
20749SWIGINTERN PyObject *_wrap_new_ListbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20750 PyObject *resultobj = 0;
20751 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20752 int arg2 = (int) 0 ;
20753 int arg3 = (int) -1 ;
20754 int arg4 = (int) -1 ;
20755 wxListbookEvent *result = 0 ;
20756 int val1 ;
20757 int ecode1 = 0 ;
20758 int val2 ;
20759 int ecode2 = 0 ;
20760 int val3 ;
20761 int ecode3 = 0 ;
20762 int val4 ;
20763 int ecode4 = 0 ;
20764 PyObject * obj0 = 0 ;
20765 PyObject * obj1 = 0 ;
20766 PyObject * obj2 = 0 ;
20767 PyObject * obj3 = 0 ;
20768 char * kwnames[] = {
20769 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20770 };
20771
20772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20773 if (obj0) {
20774 ecode1 = SWIG_AsVal_int(obj0, &val1);
20775 if (!SWIG_IsOK(ecode1)) {
20776 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20777 }
20778 arg1 = static_cast< wxEventType >(val1);
20779 }
20780 if (obj1) {
20781 ecode2 = SWIG_AsVal_int(obj1, &val2);
20782 if (!SWIG_IsOK(ecode2)) {
20783 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListbookEvent" "', expected argument " "2"" of type '" "int""'");
20784 }
20785 arg2 = static_cast< int >(val2);
20786 }
20787 if (obj2) {
20788 ecode3 = SWIG_AsVal_int(obj2, &val3);
20789 if (!SWIG_IsOK(ecode3)) {
20790 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ListbookEvent" "', expected argument " "3"" of type '" "int""'");
20791 }
20792 arg3 = static_cast< int >(val3);
20793 }
20794 if (obj3) {
20795 ecode4 = SWIG_AsVal_int(obj3, &val4);
20796 if (!SWIG_IsOK(ecode4)) {
20797 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ListbookEvent" "', expected argument " "4"" of type '" "int""'");
20798 }
20799 arg4 = static_cast< int >(val4);
20800 }
20801 {
20802 PyThreadState* __tstate = wxPyBeginAllowThreads();
20803 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
20804 wxPyEndAllowThreads(__tstate);
20805 if (PyErr_Occurred()) SWIG_fail;
20806 }
20807 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbookEvent, SWIG_POINTER_NEW | 0 );
20808 return resultobj;
20809fail:
20810 return NULL;
20811}
20812
20813
20814SWIGINTERN PyObject *ListbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20815 PyObject *obj;
20816 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20817 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbookEvent, SWIG_NewClientData(obj));
20818 return SWIG_Py_Void();
20819}
20820
20821SWIGINTERN PyObject *ListbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20822 return SWIG_Python_InitShadowInstance(args);
20823}
20824
20825SWIGINTERN PyObject *_wrap_new_Choicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20826 PyObject *resultobj = 0;
20827 wxWindow *arg1 = (wxWindow *) 0 ;
20828 int arg2 ;
20829 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20830 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20831 wxSize const &arg4_defvalue = wxDefaultSize ;
20832 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20833 long arg5 = (long) 0 ;
20834 wxString const &arg6_defvalue = wxPyEmptyString ;
20835 wxString *arg6 = (wxString *) &arg6_defvalue ;
20836 wxChoicebook *result = 0 ;
20837 void *argp1 = 0 ;
20838 int res1 = 0 ;
20839 int val2 ;
20840 int ecode2 = 0 ;
20841 wxPoint temp3 ;
20842 wxSize temp4 ;
20843 long val5 ;
20844 int ecode5 = 0 ;
20845 bool temp6 = false ;
20846 PyObject * obj0 = 0 ;
20847 PyObject * obj1 = 0 ;
20848 PyObject * obj2 = 0 ;
20849 PyObject * obj3 = 0 ;
20850 PyObject * obj4 = 0 ;
20851 PyObject * obj5 = 0 ;
20852 char * kwnames[] = {
20853 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20854 };
20855
20856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20858 if (!SWIG_IsOK(res1)) {
20859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choicebook" "', expected argument " "1"" of type '" "wxWindow *""'");
20860 }
20861 arg1 = reinterpret_cast< wxWindow * >(argp1);
20862 ecode2 = SWIG_AsVal_int(obj1, &val2);
20863 if (!SWIG_IsOK(ecode2)) {
20864 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choicebook" "', expected argument " "2"" of type '" "int""'");
20865 }
20866 arg2 = static_cast< int >(val2);
20867 if (obj2) {
d14a1e28 20868 {
0085ce49
RD
20869 arg3 = &temp3;
20870 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 20871 }
0085ce49
RD
20872 }
20873 if (obj3) {
d14a1e28 20874 {
0085ce49
RD
20875 arg4 = &temp4;
20876 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 20877 }
0085ce49
RD
20878 }
20879 if (obj4) {
20880 ecode5 = SWIG_AsVal_long(obj4, &val5);
20881 if (!SWIG_IsOK(ecode5)) {
20882 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Choicebook" "', expected argument " "5"" of type '" "long""'");
20883 }
20884 arg5 = static_cast< long >(val5);
20885 }
20886 if (obj5) {
d14a1e28 20887 {
0085ce49
RD
20888 arg6 = wxString_in_helper(obj5);
20889 if (arg6 == NULL) SWIG_fail;
20890 temp6 = true;
d14a1e28 20891 }
0085ce49
RD
20892 }
20893 {
20894 if (!wxPyCheckForApp()) SWIG_fail;
20895 PyThreadState* __tstate = wxPyBeginAllowThreads();
20896 result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20897 wxPyEndAllowThreads(__tstate);
20898 if (PyErr_Occurred()) SWIG_fail;
20899 }
20900 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_NEW | 0 );
20901 {
20902 if (temp6)
20903 delete arg6;
20904 }
20905 return resultobj;
20906fail:
20907 {
20908 if (temp6)
20909 delete arg6;
20910 }
20911 return NULL;
d14a1e28
RD
20912}
20913
20914
0085ce49
RD
20915SWIGINTERN PyObject *_wrap_new_PreChoicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20916 PyObject *resultobj = 0;
20917 wxChoicebook *result = 0 ;
20918
20919 if (!SWIG_Python_UnpackTuple(args,"new_PreChoicebook",0,0,0)) SWIG_fail;
20920 {
20921 if (!wxPyCheckForApp()) SWIG_fail;
20922 PyThreadState* __tstate = wxPyBeginAllowThreads();
20923 result = (wxChoicebook *)new wxChoicebook();
20924 wxPyEndAllowThreads(__tstate);
20925 if (PyErr_Occurred()) SWIG_fail;
20926 }
20927 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_OWN | 0 );
20928 return resultobj;
20929fail:
20930 return NULL;
20931}
20932
20933
20934SWIGINTERN PyObject *_wrap_Choicebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20935 PyObject *resultobj = 0;
20936 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
20937 wxWindow *arg2 = (wxWindow *) 0 ;
20938 int arg3 ;
20939 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20940 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20941 wxSize const &arg5_defvalue = wxDefaultSize ;
20942 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20943 long arg6 = (long) 0 ;
20944 wxString const &arg7_defvalue = wxPyEmptyString ;
20945 wxString *arg7 = (wxString *) &arg7_defvalue ;
20946 bool result;
20947 void *argp1 = 0 ;
20948 int res1 = 0 ;
20949 void *argp2 = 0 ;
20950 int res2 = 0 ;
20951 int val3 ;
20952 int ecode3 = 0 ;
20953 wxPoint temp4 ;
20954 wxSize temp5 ;
20955 long val6 ;
20956 int ecode6 = 0 ;
20957 bool temp7 = false ;
20958 PyObject * obj0 = 0 ;
20959 PyObject * obj1 = 0 ;
20960 PyObject * obj2 = 0 ;
20961 PyObject * obj3 = 0 ;
20962 PyObject * obj4 = 0 ;
20963 PyObject * obj5 = 0 ;
20964 PyObject * obj6 = 0 ;
20965 char * kwnames[] = {
20966 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20967 };
20968
20969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
20971 if (!SWIG_IsOK(res1)) {
20972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_Create" "', expected argument " "1"" of type '" "wxChoicebook *""'");
20973 }
20974 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
20975 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20976 if (!SWIG_IsOK(res2)) {
20977 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choicebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20978 }
20979 arg2 = reinterpret_cast< wxWindow * >(argp2);
20980 ecode3 = SWIG_AsVal_int(obj2, &val3);
20981 if (!SWIG_IsOK(ecode3)) {
20982 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choicebook_Create" "', expected argument " "3"" of type '" "int""'");
20983 }
20984 arg3 = static_cast< int >(val3);
20985 if (obj3) {
4f89f6a3 20986 {
0085ce49
RD
20987 arg4 = &temp4;
20988 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 20989 }
0085ce49
RD
20990 }
20991 if (obj4) {
d14a1e28 20992 {
0085ce49
RD
20993 arg5 = &temp5;
20994 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 20995 }
0085ce49
RD
20996 }
20997 if (obj5) {
20998 ecode6 = SWIG_AsVal_long(obj5, &val6);
20999 if (!SWIG_IsOK(ecode6)) {
21000 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Choicebook_Create" "', expected argument " "6"" of type '" "long""'");
21001 }
21002 arg6 = static_cast< long >(val6);
21003 }
21004 if (obj6) {
d14a1e28 21005 {
0085ce49
RD
21006 arg7 = wxString_in_helper(obj6);
21007 if (arg7 == NULL) SWIG_fail;
21008 temp7 = true;
d14a1e28 21009 }
0085ce49
RD
21010 }
21011 {
21012 PyThreadState* __tstate = wxPyBeginAllowThreads();
21013 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21014 wxPyEndAllowThreads(__tstate);
21015 if (PyErr_Occurred()) SWIG_fail;
21016 }
21017 {
21018 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21019 }
21020 {
21021 if (temp7)
21022 delete arg7;
21023 }
21024 return resultobj;
21025fail:
21026 {
21027 if (temp7)
21028 delete arg7;
21029 }
21030 return NULL;
d14a1e28
RD
21031}
21032
21033
0085ce49
RD
21034SWIGINTERN PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21035 PyObject *resultobj = 0;
21036 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21037 wxChoice *result = 0 ;
21038 void *argp1 = 0 ;
21039 int res1 = 0 ;
21040 PyObject *swig_obj[1] ;
21041
21042 if (!args) SWIG_fail;
21043 swig_obj[0] = args;
21044 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21045 if (!SWIG_IsOK(res1)) {
21046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_GetChoiceCtrl" "', expected argument " "1"" of type '" "wxChoicebook const *""'");
21047 }
21048 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21049 {
21050 PyThreadState* __tstate = wxPyBeginAllowThreads();
21051 result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl();
21052 wxPyEndAllowThreads(__tstate);
21053 if (PyErr_Occurred()) SWIG_fail;
21054 }
21055 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, 0 | 0 );
21056 return resultobj;
21057fail:
21058 return NULL;
21059}
21060
21061
21062SWIGINTERN PyObject *Choicebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21063 PyObject *obj;
21064 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21065 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebook, SWIG_NewClientData(obj));
21066 return SWIG_Py_Void();
21067}
21068
21069SWIGINTERN PyObject *Choicebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21070 return SWIG_Python_InitShadowInstance(args);
21071}
21072
21073SWIGINTERN PyObject *_wrap_new_ChoicebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21074 PyObject *resultobj = 0;
21075 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21076 int arg2 = (int) 0 ;
21077 int arg3 = (int) -1 ;
21078 int arg4 = (int) -1 ;
21079 wxChoicebookEvent *result = 0 ;
21080 int val1 ;
21081 int ecode1 = 0 ;
21082 int val2 ;
21083 int ecode2 = 0 ;
21084 int val3 ;
21085 int ecode3 = 0 ;
21086 int val4 ;
21087 int ecode4 = 0 ;
21088 PyObject * obj0 = 0 ;
21089 PyObject * obj1 = 0 ;
21090 PyObject * obj2 = 0 ;
21091 PyObject * obj3 = 0 ;
21092 char * kwnames[] = {
21093 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21094 };
21095
21096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21097 if (obj0) {
21098 ecode1 = SWIG_AsVal_int(obj0, &val1);
21099 if (!SWIG_IsOK(ecode1)) {
21100 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ChoicebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21101 }
21102 arg1 = static_cast< wxEventType >(val1);
21103 }
21104 if (obj1) {
21105 ecode2 = SWIG_AsVal_int(obj1, &val2);
21106 if (!SWIG_IsOK(ecode2)) {
21107 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ChoicebookEvent" "', expected argument " "2"" of type '" "int""'");
21108 }
21109 arg2 = static_cast< int >(val2);
21110 }
21111 if (obj2) {
21112 ecode3 = SWIG_AsVal_int(obj2, &val3);
21113 if (!SWIG_IsOK(ecode3)) {
21114 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ChoicebookEvent" "', expected argument " "3"" of type '" "int""'");
21115 }
21116 arg3 = static_cast< int >(val3);
21117 }
21118 if (obj3) {
21119 ecode4 = SWIG_AsVal_int(obj3, &val4);
21120 if (!SWIG_IsOK(ecode4)) {
21121 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ChoicebookEvent" "', expected argument " "4"" of type '" "int""'");
21122 }
21123 arg4 = static_cast< int >(val4);
21124 }
21125 {
21126 PyThreadState* __tstate = wxPyBeginAllowThreads();
21127 result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4);
21128 wxPyEndAllowThreads(__tstate);
21129 if (PyErr_Occurred()) SWIG_fail;
21130 }
21131 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebookEvent, SWIG_POINTER_NEW | 0 );
21132 return resultobj;
21133fail:
21134 return NULL;
21135}
21136
21137
21138SWIGINTERN PyObject *ChoicebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21139 PyObject *obj;
21140 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21141 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebookEvent, SWIG_NewClientData(obj));
21142 return SWIG_Py_Void();
21143}
21144
21145SWIGINTERN PyObject *ChoicebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21146 return SWIG_Python_InitShadowInstance(args);
21147}
21148
21149SWIGINTERN PyObject *_wrap_new_Treebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21150 PyObject *resultobj = 0;
21151 wxWindow *arg1 = (wxWindow *) 0 ;
21152 int arg2 ;
21153 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21154 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21155 wxSize const &arg4_defvalue = wxDefaultSize ;
21156 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21157 long arg5 = (long) wxBK_DEFAULT ;
21158 wxString const &arg6_defvalue = wxPyEmptyString ;
21159 wxString *arg6 = (wxString *) &arg6_defvalue ;
21160 wxTreebook *result = 0 ;
21161 void *argp1 = 0 ;
21162 int res1 = 0 ;
21163 int val2 ;
21164 int ecode2 = 0 ;
21165 wxPoint temp3 ;
21166 wxSize temp4 ;
21167 long val5 ;
21168 int ecode5 = 0 ;
21169 bool temp6 = false ;
21170 PyObject * obj0 = 0 ;
21171 PyObject * obj1 = 0 ;
21172 PyObject * obj2 = 0 ;
21173 PyObject * obj3 = 0 ;
21174 PyObject * obj4 = 0 ;
21175 PyObject * obj5 = 0 ;
21176 char * kwnames[] = {
21177 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21178 };
21179
21180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Treebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21182 if (!SWIG_IsOK(res1)) {
21183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Treebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21184 }
21185 arg1 = reinterpret_cast< wxWindow * >(argp1);
21186 ecode2 = SWIG_AsVal_int(obj1, &val2);
21187 if (!SWIG_IsOK(ecode2)) {
21188 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Treebook" "', expected argument " "2"" of type '" "int""'");
21189 }
21190 arg2 = static_cast< int >(val2);
21191 if (obj2) {
093d3ff1 21192 {
0085ce49
RD
21193 arg3 = &temp3;
21194 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 21195 }
0085ce49
RD
21196 }
21197 if (obj3) {
d14a1e28 21198 {
0085ce49
RD
21199 arg4 = &temp4;
21200 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 21201 }
0085ce49
RD
21202 }
21203 if (obj4) {
21204 ecode5 = SWIG_AsVal_long(obj4, &val5);
21205 if (!SWIG_IsOK(ecode5)) {
21206 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Treebook" "', expected argument " "5"" of type '" "long""'");
21207 }
21208 arg5 = static_cast< long >(val5);
21209 }
21210 if (obj5) {
093d3ff1 21211 {
0085ce49
RD
21212 arg6 = wxString_in_helper(obj5);
21213 if (arg6 == NULL) SWIG_fail;
21214 temp6 = true;
093d3ff1 21215 }
0085ce49
RD
21216 }
21217 {
21218 if (!wxPyCheckForApp()) SWIG_fail;
21219 PyThreadState* __tstate = wxPyBeginAllowThreads();
21220 result = (wxTreebook *)new wxTreebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21221 wxPyEndAllowThreads(__tstate);
21222 if (PyErr_Occurred()) SWIG_fail;
21223 }
21224 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_NEW | 0 );
21225 {
21226 if (temp6)
21227 delete arg6;
21228 }
21229 return resultobj;
21230fail:
21231 {
21232 if (temp6)
21233 delete arg6;
21234 }
21235 return NULL;
d14a1e28
RD
21236}
21237
21238
0085ce49
RD
21239SWIGINTERN PyObject *_wrap_new_PreTreebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21240 PyObject *resultobj = 0;
21241 wxTreebook *result = 0 ;
21242
21243 if (!SWIG_Python_UnpackTuple(args,"new_PreTreebook",0,0,0)) SWIG_fail;
21244 {
21245 if (!wxPyCheckForApp()) SWIG_fail;
21246 PyThreadState* __tstate = wxPyBeginAllowThreads();
21247 result = (wxTreebook *)new wxTreebook();
21248 wxPyEndAllowThreads(__tstate);
21249 if (PyErr_Occurred()) SWIG_fail;
21250 }
21251 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_OWN | 0 );
21252 return resultobj;
21253fail:
21254 return NULL;
21255}
21256
21257
21258SWIGINTERN PyObject *_wrap_Treebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21259 PyObject *resultobj = 0;
21260 wxTreebook *arg1 = (wxTreebook *) 0 ;
21261 wxWindow *arg2 = (wxWindow *) 0 ;
21262 int arg3 ;
21263 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21264 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21265 wxSize const &arg5_defvalue = wxDefaultSize ;
21266 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21267 long arg6 = (long) wxBK_DEFAULT ;
21268 wxString const &arg7_defvalue = wxPyEmptyString ;
21269 wxString *arg7 = (wxString *) &arg7_defvalue ;
21270 bool result;
21271 void *argp1 = 0 ;
21272 int res1 = 0 ;
21273 void *argp2 = 0 ;
21274 int res2 = 0 ;
21275 int val3 ;
21276 int ecode3 = 0 ;
21277 wxPoint temp4 ;
21278 wxSize temp5 ;
21279 long val6 ;
21280 int ecode6 = 0 ;
21281 bool temp7 = false ;
21282 PyObject * obj0 = 0 ;
21283 PyObject * obj1 = 0 ;
21284 PyObject * obj2 = 0 ;
21285 PyObject * obj3 = 0 ;
21286 PyObject * obj4 = 0 ;
21287 PyObject * obj5 = 0 ;
21288 PyObject * obj6 = 0 ;
21289 char * kwnames[] = {
21290 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21291 };
21292
21293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Treebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21295 if (!SWIG_IsOK(res1)) {
21296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_Create" "', expected argument " "1"" of type '" "wxTreebook *""'");
21297 }
21298 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21299 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21300 if (!SWIG_IsOK(res2)) {
21301 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21302 }
21303 arg2 = reinterpret_cast< wxWindow * >(argp2);
21304 ecode3 = SWIG_AsVal_int(obj2, &val3);
21305 if (!SWIG_IsOK(ecode3)) {
21306 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_Create" "', expected argument " "3"" of type '" "int""'");
21307 }
21308 arg3 = static_cast< int >(val3);
21309 if (obj3) {
d14a1e28 21310 {
0085ce49
RD
21311 arg4 = &temp4;
21312 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 21313 }
0085ce49
RD
21314 }
21315 if (obj4) {
093d3ff1 21316 {
0085ce49
RD
21317 arg5 = &temp5;
21318 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 21319 }
0085ce49
RD
21320 }
21321 if (obj5) {
21322 ecode6 = SWIG_AsVal_long(obj5, &val6);
21323 if (!SWIG_IsOK(ecode6)) {
21324 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_Create" "', expected argument " "6"" of type '" "long""'");
21325 }
21326 arg6 = static_cast< long >(val6);
21327 }
21328 if (obj6) {
093d3ff1 21329 {
0085ce49
RD
21330 arg7 = wxString_in_helper(obj6);
21331 if (arg7 == NULL) SWIG_fail;
21332 temp7 = true;
093d3ff1 21333 }
0085ce49
RD
21334 }
21335 {
21336 PyThreadState* __tstate = wxPyBeginAllowThreads();
21337 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21338 wxPyEndAllowThreads(__tstate);
21339 if (PyErr_Occurred()) SWIG_fail;
21340 }
21341 {
21342 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21343 }
21344 {
21345 if (temp7)
21346 delete arg7;
21347 }
21348 return resultobj;
21349fail:
21350 {
21351 if (temp7)
21352 delete arg7;
21353 }
21354 return NULL;
21355}
21356
21357
21358SWIGINTERN PyObject *_wrap_Treebook_InsertSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21359 PyObject *resultobj = 0;
21360 wxTreebook *arg1 = (wxTreebook *) 0 ;
21361 size_t arg2 ;
21362 wxWindow *arg3 = (wxWindow *) 0 ;
21363 wxString *arg4 = 0 ;
21364 bool arg5 = (bool) false ;
21365 int arg6 = (int) wxNOT_FOUND ;
21366 bool result;
21367 void *argp1 = 0 ;
21368 int res1 = 0 ;
21369 size_t val2 ;
21370 int ecode2 = 0 ;
21371 void *argp3 = 0 ;
21372 int res3 = 0 ;
21373 bool temp4 = false ;
21374 bool val5 ;
21375 int ecode5 = 0 ;
21376 int val6 ;
21377 int ecode6 = 0 ;
21378 PyObject * obj0 = 0 ;
21379 PyObject * obj1 = 0 ;
21380 PyObject * obj2 = 0 ;
21381 PyObject * obj3 = 0 ;
21382 PyObject * obj4 = 0 ;
21383 PyObject * obj5 = 0 ;
21384 char * kwnames[] = {
21385 (char *) "self",(char *) "pos",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21386 };
21387
21388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Treebook_InsertSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21390 if (!SWIG_IsOK(res1)) {
21391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_InsertSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21392 }
21393 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21394 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21395 if (!SWIG_IsOK(ecode2)) {
21396 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_InsertSubPage" "', expected argument " "2"" of type '" "size_t""'");
21397 }
21398 arg2 = static_cast< size_t >(val2);
21399 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
21400 if (!SWIG_IsOK(res3)) {
21401 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Treebook_InsertSubPage" "', expected argument " "3"" of type '" "wxWindow *""'");
21402 }
21403 arg3 = reinterpret_cast< wxWindow * >(argp3);
21404 {
21405 arg4 = wxString_in_helper(obj3);
21406 if (arg4 == NULL) SWIG_fail;
21407 temp4 = true;
21408 }
21409 if (obj4) {
21410 ecode5 = SWIG_AsVal_bool(obj4, &val5);
21411 if (!SWIG_IsOK(ecode5)) {
21412 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_InsertSubPage" "', expected argument " "5"" of type '" "bool""'");
21413 }
21414 arg5 = static_cast< bool >(val5);
21415 }
21416 if (obj5) {
21417 ecode6 = SWIG_AsVal_int(obj5, &val6);
21418 if (!SWIG_IsOK(ecode6)) {
21419 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_InsertSubPage" "', expected argument " "6"" of type '" "int""'");
21420 }
21421 arg6 = static_cast< int >(val6);
21422 }
21423 {
21424 PyThreadState* __tstate = wxPyBeginAllowThreads();
21425 result = (bool)(arg1)->InsertSubPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
21426 wxPyEndAllowThreads(__tstate);
21427 if (PyErr_Occurred()) SWIG_fail;
21428 }
21429 {
21430 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21431 }
21432 {
21433 if (temp4)
21434 delete arg4;
21435 }
21436 return resultobj;
21437fail:
21438 {
21439 if (temp4)
21440 delete arg4;
21441 }
21442 return NULL;
21443}
21444
21445
21446SWIGINTERN PyObject *_wrap_Treebook_AddSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21447 PyObject *resultobj = 0;
21448 wxTreebook *arg1 = (wxTreebook *) 0 ;
21449 wxWindow *arg2 = (wxWindow *) 0 ;
21450 wxString *arg3 = 0 ;
21451 bool arg4 = (bool) false ;
21452 int arg5 = (int) wxNOT_FOUND ;
21453 bool result;
21454 void *argp1 = 0 ;
21455 int res1 = 0 ;
21456 void *argp2 = 0 ;
21457 int res2 = 0 ;
21458 bool temp3 = false ;
21459 bool val4 ;
21460 int ecode4 = 0 ;
21461 int val5 ;
21462 int ecode5 = 0 ;
21463 PyObject * obj0 = 0 ;
21464 PyObject * obj1 = 0 ;
21465 PyObject * obj2 = 0 ;
21466 PyObject * obj3 = 0 ;
21467 PyObject * obj4 = 0 ;
21468 char * kwnames[] = {
21469 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21470 };
21471
21472 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Treebook_AddSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
21473 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21474 if (!SWIG_IsOK(res1)) {
21475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_AddSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21476 }
21477 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21478 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21479 if (!SWIG_IsOK(res2)) {
21480 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_AddSubPage" "', expected argument " "2"" of type '" "wxWindow *""'");
21481 }
21482 arg2 = reinterpret_cast< wxWindow * >(argp2);
21483 {
21484 arg3 = wxString_in_helper(obj2);
21485 if (arg3 == NULL) SWIG_fail;
21486 temp3 = true;
21487 }
21488 if (obj3) {
21489 ecode4 = SWIG_AsVal_bool(obj3, &val4);
21490 if (!SWIG_IsOK(ecode4)) {
21491 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Treebook_AddSubPage" "', expected argument " "4"" of type '" "bool""'");
21492 }
21493 arg4 = static_cast< bool >(val4);
21494 }
21495 if (obj4) {
21496 ecode5 = SWIG_AsVal_int(obj4, &val5);
21497 if (!SWIG_IsOK(ecode5)) {
21498 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_AddSubPage" "', expected argument " "5"" of type '" "int""'");
21499 }
21500 arg5 = static_cast< int >(val5);
21501 }
21502 {
21503 PyThreadState* __tstate = wxPyBeginAllowThreads();
21504 result = (bool)(arg1)->AddSubPage(arg2,(wxString const &)*arg3,arg4,arg5);
21505 wxPyEndAllowThreads(__tstate);
21506 if (PyErr_Occurred()) SWIG_fail;
21507 }
21508 {
21509 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21510 }
21511 {
21512 if (temp3)
21513 delete arg3;
21514 }
21515 return resultobj;
21516fail:
21517 {
21518 if (temp3)
21519 delete arg3;
21520 }
21521 return NULL;
21522}
21523
21524
21525SWIGINTERN PyObject *_wrap_Treebook_IsNodeExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21526 PyObject *resultobj = 0;
21527 wxTreebook *arg1 = (wxTreebook *) 0 ;
21528 size_t arg2 ;
21529 bool result;
21530 void *argp1 = 0 ;
21531 int res1 = 0 ;
21532 size_t val2 ;
21533 int ecode2 = 0 ;
21534 PyObject * obj0 = 0 ;
21535 PyObject * obj1 = 0 ;
21536 char * kwnames[] = {
21537 (char *) "self",(char *) "pos", NULL
21538 };
21539
21540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_IsNodeExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
21541 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21542 if (!SWIG_IsOK(res1)) {
21543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "1"" of type '" "wxTreebook const *""'");
21544 }
21545 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21546 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21547 if (!SWIG_IsOK(ecode2)) {
21548 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "2"" of type '" "size_t""'");
21549 }
21550 arg2 = static_cast< size_t >(val2);
21551 {
21552 PyThreadState* __tstate = wxPyBeginAllowThreads();
21553 result = (bool)((wxTreebook const *)arg1)->IsNodeExpanded(arg2);
21554 wxPyEndAllowThreads(__tstate);
21555 if (PyErr_Occurred()) SWIG_fail;
21556 }
21557 {
21558 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21559 }
21560 return resultobj;
21561fail:
21562 return NULL;
21563}
21564
21565
21566SWIGINTERN PyObject *_wrap_Treebook_ExpandNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21567 PyObject *resultobj = 0;
21568 wxTreebook *arg1 = (wxTreebook *) 0 ;
21569 size_t arg2 ;
21570 bool arg3 = (bool) true ;
21571 bool result;
21572 void *argp1 = 0 ;
21573 int res1 = 0 ;
21574 size_t val2 ;
21575 int ecode2 = 0 ;
21576 bool val3 ;
21577 int ecode3 = 0 ;
21578 PyObject * obj0 = 0 ;
21579 PyObject * obj1 = 0 ;
21580 PyObject * obj2 = 0 ;
21581 char * kwnames[] = {
21582 (char *) "self",(char *) "pos",(char *) "expand", NULL
21583 };
21584
21585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Treebook_ExpandNode",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21587 if (!SWIG_IsOK(res1)) {
21588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_ExpandNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
21589 }
21590 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21591 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21592 if (!SWIG_IsOK(ecode2)) {
21593 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_ExpandNode" "', expected argument " "2"" of type '" "size_t""'");
21594 }
21595 arg2 = static_cast< size_t >(val2);
21596 if (obj2) {
21597 ecode3 = SWIG_AsVal_bool(obj2, &val3);
21598 if (!SWIG_IsOK(ecode3)) {
21599 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_ExpandNode" "', expected argument " "3"" of type '" "bool""'");
21600 }
21601 arg3 = static_cast< bool >(val3);
21602 }
21603 {
21604 PyThreadState* __tstate = wxPyBeginAllowThreads();
21605 result = (bool)(arg1)->ExpandNode(arg2,arg3);
21606 wxPyEndAllowThreads(__tstate);
21607 if (PyErr_Occurred()) SWIG_fail;
21608 }
21609 {
21610 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21611 }
21612 return resultobj;
21613fail:
21614 return NULL;
21615}
21616
21617
21618SWIGINTERN PyObject *_wrap_Treebook_CollapseNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21619 PyObject *resultobj = 0;
21620 wxTreebook *arg1 = (wxTreebook *) 0 ;
21621 size_t arg2 ;
21622 bool result;
21623 void *argp1 = 0 ;
21624 int res1 = 0 ;
21625 size_t val2 ;
21626 int ecode2 = 0 ;
21627 PyObject * obj0 = 0 ;
21628 PyObject * obj1 = 0 ;
21629 char * kwnames[] = {
21630 (char *) "self",(char *) "pos", NULL
21631 };
21632
21633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_CollapseNode",kwnames,&obj0,&obj1)) SWIG_fail;
21634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21635 if (!SWIG_IsOK(res1)) {
21636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_CollapseNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
21637 }
21638 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21639 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21640 if (!SWIG_IsOK(ecode2)) {
21641 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_CollapseNode" "', expected argument " "2"" of type '" "size_t""'");
21642 }
21643 arg2 = static_cast< size_t >(val2);
21644 {
21645 PyThreadState* __tstate = wxPyBeginAllowThreads();
21646 result = (bool)(arg1)->CollapseNode(arg2);
21647 wxPyEndAllowThreads(__tstate);
21648 if (PyErr_Occurred()) SWIG_fail;
21649 }
21650 {
21651 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21652 }
21653 return resultobj;
21654fail:
21655 return NULL;
21656}
21657
21658
21659SWIGINTERN PyObject *_wrap_Treebook_GetPageParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21660 PyObject *resultobj = 0;
21661 wxTreebook *arg1 = (wxTreebook *) 0 ;
21662 size_t arg2 ;
21663 int result;
21664 void *argp1 = 0 ;
21665 int res1 = 0 ;
21666 size_t val2 ;
21667 int ecode2 = 0 ;
21668 PyObject * obj0 = 0 ;
21669 PyObject * obj1 = 0 ;
21670 char * kwnames[] = {
21671 (char *) "self",(char *) "pos", NULL
21672 };
21673
21674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_GetPageParent",kwnames,&obj0,&obj1)) SWIG_fail;
21675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21676 if (!SWIG_IsOK(res1)) {
21677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetPageParent" "', expected argument " "1"" of type '" "wxTreebook const *""'");
21678 }
21679 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21680 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21681 if (!SWIG_IsOK(ecode2)) {
21682 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_GetPageParent" "', expected argument " "2"" of type '" "size_t""'");
21683 }
21684 arg2 = static_cast< size_t >(val2);
21685 {
21686 PyThreadState* __tstate = wxPyBeginAllowThreads();
21687 result = (int)((wxTreebook const *)arg1)->GetPageParent(arg2);
21688 wxPyEndAllowThreads(__tstate);
21689 if (PyErr_Occurred()) SWIG_fail;
21690 }
21691 resultobj = SWIG_From_int(static_cast< int >(result));
21692 return resultobj;
21693fail:
21694 return NULL;
d14a1e28
RD
21695}
21696
21697
0085ce49
RD
21698SWIGINTERN PyObject *_wrap_Treebook_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21699 PyObject *resultobj = 0;
21700 wxTreebook *arg1 = (wxTreebook *) 0 ;
21701 wxTreeCtrl *result = 0 ;
21702 void *argp1 = 0 ;
21703 int res1 = 0 ;
21704 PyObject *swig_obj[1] ;
21705
21706 if (!args) SWIG_fail;
21707 swig_obj[0] = args;
21708 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21709 if (!SWIG_IsOK(res1)) {
21710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetTreeCtrl" "', expected argument " "1"" of type '" "wxTreebook const *""'");
21711 }
21712 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21713 {
21714 PyThreadState* __tstate = wxPyBeginAllowThreads();
21715 result = (wxTreeCtrl *)((wxTreebook const *)arg1)->GetTreeCtrl();
21716 wxPyEndAllowThreads(__tstate);
21717 if (PyErr_Occurred()) SWIG_fail;
21718 }
21719 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeCtrl, 0 | 0 );
21720 return resultobj;
21721fail:
21722 return NULL;
21723}
21724
21725
21726SWIGINTERN PyObject *Treebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21727 PyObject *obj;
21728 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21729 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebook, SWIG_NewClientData(obj));
21730 return SWIG_Py_Void();
21731}
21732
21733SWIGINTERN PyObject *Treebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21734 return SWIG_Python_InitShadowInstance(args);
21735}
21736
21737SWIGINTERN PyObject *_wrap_new_TreebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21738 PyObject *resultobj = 0;
21739 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21740 int arg2 = (int) 0 ;
21741 int arg3 = (int) wxNOT_FOUND ;
21742 int arg4 = (int) wxNOT_FOUND ;
21743 wxTreebookEvent *result = 0 ;
21744 int val1 ;
21745 int ecode1 = 0 ;
21746 int val2 ;
21747 int ecode2 = 0 ;
21748 int val3 ;
21749 int ecode3 = 0 ;
21750 int val4 ;
21751 int ecode4 = 0 ;
21752 PyObject * obj0 = 0 ;
21753 PyObject * obj1 = 0 ;
21754 PyObject * obj2 = 0 ;
21755 PyObject * obj3 = 0 ;
21756 char * kwnames[] = {
21757 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21758 };
21759
21760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TreebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21761 if (obj0) {
21762 ecode1 = SWIG_AsVal_int(obj0, &val1);
21763 if (!SWIG_IsOK(ecode1)) {
21764 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21765 }
21766 arg1 = static_cast< wxEventType >(val1);
21767 }
21768 if (obj1) {
21769 ecode2 = SWIG_AsVal_int(obj1, &val2);
21770 if (!SWIG_IsOK(ecode2)) {
21771 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreebookEvent" "', expected argument " "2"" of type '" "int""'");
21772 }
21773 arg2 = static_cast< int >(val2);
21774 }
21775 if (obj2) {
21776 ecode3 = SWIG_AsVal_int(obj2, &val3);
21777 if (!SWIG_IsOK(ecode3)) {
21778 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TreebookEvent" "', expected argument " "3"" of type '" "int""'");
21779 }
21780 arg3 = static_cast< int >(val3);
21781 }
21782 if (obj3) {
21783 ecode4 = SWIG_AsVal_int(obj3, &val4);
21784 if (!SWIG_IsOK(ecode4)) {
21785 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TreebookEvent" "', expected argument " "4"" of type '" "int""'");
21786 }
21787 arg4 = static_cast< int >(val4);
21788 }
21789 {
21790 PyThreadState* __tstate = wxPyBeginAllowThreads();
21791 result = (wxTreebookEvent *)new wxTreebookEvent(arg1,arg2,arg3,arg4);
21792 wxPyEndAllowThreads(__tstate);
21793 if (PyErr_Occurred()) SWIG_fail;
21794 }
21795 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebookEvent, SWIG_POINTER_NEW | 0 );
21796 return resultobj;
21797fail:
21798 return NULL;
21799}
21800
21801
21802SWIGINTERN PyObject *TreebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21803 PyObject *obj;
21804 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21805 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebookEvent, SWIG_NewClientData(obj));
21806 return SWIG_Py_Void();
21807}
21808
21809SWIGINTERN PyObject *TreebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21810 return SWIG_Python_InitShadowInstance(args);
21811}
21812
21813SWIGINTERN PyObject *_wrap_new_Toolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21814 PyObject *resultobj = 0;
21815 wxWindow *arg1 = (wxWindow *) 0 ;
21816 int arg2 ;
21817 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21818 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21819 wxSize const &arg4_defvalue = wxDefaultSize ;
21820 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21821 long arg5 = (long) wxBK_DEFAULT ;
21822 wxString const &arg6_defvalue = wxPyEmptyString ;
21823 wxString *arg6 = (wxString *) &arg6_defvalue ;
21824 wxToolbook *result = 0 ;
21825 void *argp1 = 0 ;
21826 int res1 = 0 ;
21827 int val2 ;
21828 int ecode2 = 0 ;
21829 wxPoint temp3 ;
21830 wxSize temp4 ;
21831 long val5 ;
21832 int ecode5 = 0 ;
21833 bool temp6 = false ;
21834 PyObject * obj0 = 0 ;
21835 PyObject * obj1 = 0 ;
21836 PyObject * obj2 = 0 ;
21837 PyObject * obj3 = 0 ;
21838 PyObject * obj4 = 0 ;
21839 PyObject * obj5 = 0 ;
21840 char * kwnames[] = {
21841 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21842 };
21843
21844 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Toolbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21845 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21846 if (!SWIG_IsOK(res1)) {
21847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Toolbook" "', expected argument " "1"" of type '" "wxWindow *""'");
21848 }
21849 arg1 = reinterpret_cast< wxWindow * >(argp1);
21850 ecode2 = SWIG_AsVal_int(obj1, &val2);
21851 if (!SWIG_IsOK(ecode2)) {
21852 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Toolbook" "', expected argument " "2"" of type '" "int""'");
21853 }
21854 arg2 = static_cast< int >(val2);
21855 if (obj2) {
d14a1e28 21856 {
0085ce49
RD
21857 arg3 = &temp3;
21858 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 21859 }
0085ce49
RD
21860 }
21861 if (obj3) {
093d3ff1 21862 {
0085ce49
RD
21863 arg4 = &temp4;
21864 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 21865 }
0085ce49
RD
21866 }
21867 if (obj4) {
21868 ecode5 = SWIG_AsVal_long(obj4, &val5);
21869 if (!SWIG_IsOK(ecode5)) {
21870 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Toolbook" "', expected argument " "5"" of type '" "long""'");
21871 }
21872 arg5 = static_cast< long >(val5);
21873 }
21874 if (obj5) {
d14a1e28 21875 {
0085ce49
RD
21876 arg6 = wxString_in_helper(obj5);
21877 if (arg6 == NULL) SWIG_fail;
21878 temp6 = true;
d14a1e28 21879 }
0085ce49
RD
21880 }
21881 {
21882 PyThreadState* __tstate = wxPyBeginAllowThreads();
21883 result = (wxToolbook *)new wxToolbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21884 wxPyEndAllowThreads(__tstate);
21885 if (PyErr_Occurred()) SWIG_fail;
21886 }
21887 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_NEW | 0 );
21888 {
21889 if (temp6)
21890 delete arg6;
21891 }
21892 return resultobj;
21893fail:
21894 {
21895 if (temp6)
21896 delete arg6;
21897 }
21898 return NULL;
d14a1e28
RD
21899}
21900
21901
0085ce49
RD
21902SWIGINTERN PyObject *_wrap_new_PreToolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21903 PyObject *resultobj = 0;
21904 wxToolbook *result = 0 ;
21905
21906 if (!SWIG_Python_UnpackTuple(args,"new_PreToolbook",0,0,0)) SWIG_fail;
21907 {
21908 PyThreadState* __tstate = wxPyBeginAllowThreads();
21909 result = (wxToolbook *)new wxToolbook();
21910 wxPyEndAllowThreads(__tstate);
21911 if (PyErr_Occurred()) SWIG_fail;
21912 }
21913 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_OWN | 0 );
21914 return resultobj;
21915fail:
21916 return NULL;
21917}
21918
21919
21920SWIGINTERN PyObject *_wrap_Toolbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21921 PyObject *resultobj = 0;
21922 wxToolbook *arg1 = (wxToolbook *) 0 ;
21923 wxWindow *arg2 = (wxWindow *) 0 ;
21924 int arg3 ;
21925 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21926 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21927 wxSize const &arg5_defvalue = wxDefaultSize ;
21928 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21929 long arg6 = (long) 0 ;
21930 wxString const &arg7_defvalue = wxEmptyString ;
21931 wxString *arg7 = (wxString *) &arg7_defvalue ;
21932 bool result;
21933 void *argp1 = 0 ;
21934 int res1 = 0 ;
21935 void *argp2 = 0 ;
21936 int res2 = 0 ;
21937 int val3 ;
21938 int ecode3 = 0 ;
21939 wxPoint temp4 ;
21940 wxSize temp5 ;
21941 long val6 ;
21942 int ecode6 = 0 ;
21943 bool temp7 = false ;
21944 PyObject * obj0 = 0 ;
21945 PyObject * obj1 = 0 ;
21946 PyObject * obj2 = 0 ;
21947 PyObject * obj3 = 0 ;
21948 PyObject * obj4 = 0 ;
21949 PyObject * obj5 = 0 ;
21950 PyObject * obj6 = 0 ;
21951 char * kwnames[] = {
21952 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21953 };
21954
21955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Toolbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
21957 if (!SWIG_IsOK(res1)) {
21958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Create" "', expected argument " "1"" of type '" "wxToolbook *""'");
21959 }
21960 arg1 = reinterpret_cast< wxToolbook * >(argp1);
21961 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21962 if (!SWIG_IsOK(res2)) {
21963 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Toolbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21964 }
21965 arg2 = reinterpret_cast< wxWindow * >(argp2);
21966 ecode3 = SWIG_AsVal_int(obj2, &val3);
21967 if (!SWIG_IsOK(ecode3)) {
21968 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Toolbook_Create" "', expected argument " "3"" of type '" "int""'");
21969 }
21970 arg3 = static_cast< int >(val3);
21971 if (obj3) {
093d3ff1 21972 {
0085ce49
RD
21973 arg4 = &temp4;
21974 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 21975 }
0085ce49
RD
21976 }
21977 if (obj4) {
093d3ff1 21978 {
0085ce49
RD
21979 arg5 = &temp5;
21980 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 21981 }
0085ce49
RD
21982 }
21983 if (obj5) {
21984 ecode6 = SWIG_AsVal_long(obj5, &val6);
21985 if (!SWIG_IsOK(ecode6)) {
21986 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Toolbook_Create" "', expected argument " "6"" of type '" "long""'");
21987 }
21988 arg6 = static_cast< long >(val6);
21989 }
21990 if (obj6) {
994141e6 21991 {
0085ce49
RD
21992 arg7 = wxString_in_helper(obj6);
21993 if (arg7 == NULL) SWIG_fail;
21994 temp7 = true;
d14a1e28 21995 }
0085ce49
RD
21996 }
21997 {
21998 PyThreadState* __tstate = wxPyBeginAllowThreads();
21999 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22000 wxPyEndAllowThreads(__tstate);
22001 if (PyErr_Occurred()) SWIG_fail;
22002 }
22003 {
22004 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22005 }
22006 {
22007 if (temp7)
22008 delete arg7;
22009 }
22010 return resultobj;
22011fail:
22012 {
22013 if (temp7)
22014 delete arg7;
22015 }
22016 return NULL;
22bfe96c
RD
22017}
22018
22019
0085ce49
RD
22020SWIGINTERN PyObject *_wrap_Toolbook_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22021 PyObject *resultobj = 0;
22022 wxToolbook *arg1 = (wxToolbook *) 0 ;
22023 wxToolBarBase *result = 0 ;
22024 void *argp1 = 0 ;
22025 int res1 = 0 ;
22026 PyObject *swig_obj[1] ;
22027
22028 if (!args) SWIG_fail;
22029 swig_obj[0] = args;
22030 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22031 if (!SWIG_IsOK(res1)) {
22032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_GetToolBar" "', expected argument " "1"" of type '" "wxToolbook const *""'");
22033 }
22034 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22035 {
22036 PyThreadState* __tstate = wxPyBeginAllowThreads();
22037 result = (wxToolBarBase *)((wxToolbook const *)arg1)->GetToolBar();
22038 wxPyEndAllowThreads(__tstate);
22039 if (PyErr_Occurred()) SWIG_fail;
22040 }
22041 {
22042 resultobj = wxPyMake_wxObject(result, (bool)0);
22043 }
22044 return resultobj;
22045fail:
22046 return NULL;
d14a1e28
RD
22047}
22048
22049
0085ce49
RD
22050SWIGINTERN PyObject *_wrap_Toolbook_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22051 PyObject *resultobj = 0;
22052 wxToolbook *arg1 = (wxToolbook *) 0 ;
22053 void *argp1 = 0 ;
22054 int res1 = 0 ;
22055 PyObject *swig_obj[1] ;
22056
22057 if (!args) SWIG_fail;
22058 swig_obj[0] = args;
22059 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22060 if (!SWIG_IsOK(res1)) {
22061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Realize" "', expected argument " "1"" of type '" "wxToolbook *""'");
22062 }
22063 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22064 {
22065 PyThreadState* __tstate = wxPyBeginAllowThreads();
22066 (arg1)->Realize();
22067 wxPyEndAllowThreads(__tstate);
22068 if (PyErr_Occurred()) SWIG_fail;
22069 }
22070 resultobj = SWIG_Py_Void();
22071 return resultobj;
22072fail:
22073 return NULL;
22074}
22075
22076
22077SWIGINTERN PyObject *Toolbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22078 PyObject *obj;
22079 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22080 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbook, SWIG_NewClientData(obj));
22081 return SWIG_Py_Void();
22082}
22083
22084SWIGINTERN PyObject *Toolbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22085 return SWIG_Python_InitShadowInstance(args);
22086}
22087
22088SWIGINTERN PyObject *_wrap_new_ToolbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22089 PyObject *resultobj = 0;
22090 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22091 int arg2 = (int) 0 ;
22092 int arg3 = (int) wxNOT_FOUND ;
22093 int arg4 = (int) wxNOT_FOUND ;
22094 wxToolbookEvent *result = 0 ;
22095 int val1 ;
22096 int ecode1 = 0 ;
22097 int val2 ;
22098 int ecode2 = 0 ;
22099 int val3 ;
22100 int ecode3 = 0 ;
22101 int val4 ;
22102 int ecode4 = 0 ;
22103 PyObject * obj0 = 0 ;
22104 PyObject * obj1 = 0 ;
22105 PyObject * obj2 = 0 ;
22106 PyObject * obj3 = 0 ;
22107 char * kwnames[] = {
22108 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22109 };
22110
22111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ToolbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22112 if (obj0) {
22113 ecode1 = SWIG_AsVal_int(obj0, &val1);
22114 if (!SWIG_IsOK(ecode1)) {
22115 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ToolbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22116 }
22117 arg1 = static_cast< wxEventType >(val1);
22118 }
22119 if (obj1) {
22120 ecode2 = SWIG_AsVal_int(obj1, &val2);
22121 if (!SWIG_IsOK(ecode2)) {
22122 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolbookEvent" "', expected argument " "2"" of type '" "int""'");
22123 }
22124 arg2 = static_cast< int >(val2);
22125 }
22126 if (obj2) {
22127 ecode3 = SWIG_AsVal_int(obj2, &val3);
22128 if (!SWIG_IsOK(ecode3)) {
22129 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ToolbookEvent" "', expected argument " "3"" of type '" "int""'");
22130 }
22131 arg3 = static_cast< int >(val3);
22132 }
22133 if (obj3) {
22134 ecode4 = SWIG_AsVal_int(obj3, &val4);
22135 if (!SWIG_IsOK(ecode4)) {
22136 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ToolbookEvent" "', expected argument " "4"" of type '" "int""'");
22137 }
22138 arg4 = static_cast< int >(val4);
22139 }
22140 {
22141 PyThreadState* __tstate = wxPyBeginAllowThreads();
22142 result = (wxToolbookEvent *)new wxToolbookEvent(arg1,arg2,arg3,arg4);
22143 wxPyEndAllowThreads(__tstate);
22144 if (PyErr_Occurred()) SWIG_fail;
22145 }
22146 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbookEvent, SWIG_POINTER_NEW | 0 );
22147 return resultobj;
22148fail:
22149 return NULL;
d14a1e28
RD
22150}
22151
22152
0085ce49
RD
22153SWIGINTERN PyObject *ToolbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22154 PyObject *obj;
22155 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22156 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbookEvent, SWIG_NewClientData(obj));
22157 return SWIG_Py_Void();
d14a1e28
RD
22158}
22159
0085ce49
RD
22160SWIGINTERN PyObject *ToolbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22161 return SWIG_Python_InitShadowInstance(args);
22162}
d14a1e28 22163
0085ce49
RD
22164SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22165 PyObject *resultobj = 0;
22166 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22167 int result;
22168 void *argp1 = 0 ;
22169 int res1 = 0 ;
22170 PyObject *swig_obj[1] ;
22171
22172 if (!args) SWIG_fail;
22173 swig_obj[0] = args;
22174 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22175 if (!SWIG_IsOK(res1)) {
22176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetId" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22177 }
22178 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22179 {
22180 PyThreadState* __tstate = wxPyBeginAllowThreads();
22181 result = (int)(arg1)->GetId();
22182 wxPyEndAllowThreads(__tstate);
22183 if (PyErr_Occurred()) SWIG_fail;
22184 }
22185 resultobj = SWIG_From_int(static_cast< int >(result));
22186 return resultobj;
22187fail:
22188 return NULL;
d14a1e28
RD
22189}
22190
22191
0085ce49
RD
22192SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22193 PyObject *resultobj = 0;
22194 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22195 wxControl *result = 0 ;
22196 void *argp1 = 0 ;
22197 int res1 = 0 ;
22198 PyObject *swig_obj[1] ;
22199
22200 if (!args) SWIG_fail;
22201 swig_obj[0] = args;
22202 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22203 if (!SWIG_IsOK(res1)) {
22204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22205 }
22206 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22207 {
22208 PyThreadState* __tstate = wxPyBeginAllowThreads();
22209 result = (wxControl *)(arg1)->GetControl();
22210 wxPyEndAllowThreads(__tstate);
22211 if (PyErr_Occurred()) SWIG_fail;
22212 }
22213 {
22214 resultobj = wxPyMake_wxObject(result, 0);
22215 }
22216 return resultobj;
22217fail:
22218 return NULL;
d14a1e28
RD
22219}
22220
22221
0085ce49
RD
22222SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22223 PyObject *resultobj = 0;
22224 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22225 wxToolBarBase *result = 0 ;
22226 void *argp1 = 0 ;
22227 int res1 = 0 ;
22228 PyObject *swig_obj[1] ;
22229
22230 if (!args) SWIG_fail;
22231 swig_obj[0] = args;
22232 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22233 if (!SWIG_IsOK(res1)) {
22234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetToolBar" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22235 }
22236 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22237 {
22238 PyThreadState* __tstate = wxPyBeginAllowThreads();
22239 result = (wxToolBarBase *)(arg1)->GetToolBar();
22240 wxPyEndAllowThreads(__tstate);
22241 if (PyErr_Occurred()) SWIG_fail;
22242 }
22243 {
22244 resultobj = wxPyMake_wxObject(result, (bool)0);
22245 }
22246 return resultobj;
22247fail:
22248 return NULL;
d14a1e28
RD
22249}
22250
22251
0085ce49
RD
22252SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22253 PyObject *resultobj = 0;
22254 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22255 int result;
22256 void *argp1 = 0 ;
22257 int res1 = 0 ;
22258 PyObject *swig_obj[1] ;
22259
22260 if (!args) SWIG_fail;
22261 swig_obj[0] = args;
22262 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22263 if (!SWIG_IsOK(res1)) {
22264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsButton" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22265 }
22266 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22267 {
22268 PyThreadState* __tstate = wxPyBeginAllowThreads();
22269 result = (int)(arg1)->IsButton();
22270 wxPyEndAllowThreads(__tstate);
22271 if (PyErr_Occurred()) SWIG_fail;
22272 }
22273 resultobj = SWIG_From_int(static_cast< int >(result));
22274 return resultobj;
22275fail:
22276 return NULL;
d14a1e28
RD
22277}
22278
22279
0085ce49
RD
22280SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22281 PyObject *resultobj = 0;
22282 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22283 int result;
22284 void *argp1 = 0 ;
22285 int res1 = 0 ;
22286 PyObject *swig_obj[1] ;
22287
22288 if (!args) SWIG_fail;
22289 swig_obj[0] = args;
22290 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22291 if (!SWIG_IsOK(res1)) {
22292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22293 }
22294 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22295 {
22296 PyThreadState* __tstate = wxPyBeginAllowThreads();
22297 result = (int)(arg1)->IsControl();
22298 wxPyEndAllowThreads(__tstate);
22299 if (PyErr_Occurred()) SWIG_fail;
22300 }
22301 resultobj = SWIG_From_int(static_cast< int >(result));
22302 return resultobj;
22303fail:
22304 return NULL;
d14a1e28
RD
22305}
22306
22307
0085ce49
RD
22308SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22309 PyObject *resultobj = 0;
22310 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22311 int result;
22312 void *argp1 = 0 ;
22313 int res1 = 0 ;
22314 PyObject *swig_obj[1] ;
22315
22316 if (!args) SWIG_fail;
22317 swig_obj[0] = args;
22318 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22319 if (!SWIG_IsOK(res1)) {
22320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsSeparator" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22321 }
22322 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22323 {
22324 PyThreadState* __tstate = wxPyBeginAllowThreads();
22325 result = (int)(arg1)->IsSeparator();
22326 wxPyEndAllowThreads(__tstate);
22327 if (PyErr_Occurred()) SWIG_fail;
22328 }
22329 resultobj = SWIG_From_int(static_cast< int >(result));
22330 return resultobj;
22331fail:
22332 return NULL;
d14a1e28
RD
22333}
22334
22335
0085ce49
RD
22336SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22337 PyObject *resultobj = 0;
22338 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22339 int result;
22340 void *argp1 = 0 ;
22341 int res1 = 0 ;
22342 PyObject *swig_obj[1] ;
22343
22344 if (!args) SWIG_fail;
22345 swig_obj[0] = args;
22346 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22347 if (!SWIG_IsOK(res1)) {
22348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetStyle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22349 }
22350 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22351 {
22352 PyThreadState* __tstate = wxPyBeginAllowThreads();
22353 result = (int)(arg1)->GetStyle();
22354 wxPyEndAllowThreads(__tstate);
22355 if (PyErr_Occurred()) SWIG_fail;
22356 }
22357 resultobj = SWIG_From_int(static_cast< int >(result));
22358 return resultobj;
22359fail:
22360 return NULL;
d14a1e28
RD
22361}
22362
22363
0085ce49
RD
22364SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22365 PyObject *resultobj = 0;
22366 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22367 wxItemKind result;
22368 void *argp1 = 0 ;
22369 int res1 = 0 ;
22370 PyObject *swig_obj[1] ;
22371
22372 if (!args) SWIG_fail;
22373 swig_obj[0] = args;
22374 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22375 if (!SWIG_IsOK(res1)) {
22376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetKind" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22377 }
22378 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22379 {
22380 PyThreadState* __tstate = wxPyBeginAllowThreads();
22381 result = (wxItemKind)(arg1)->GetKind();
22382 wxPyEndAllowThreads(__tstate);
22383 if (PyErr_Occurred()) SWIG_fail;
22384 }
22385 resultobj = SWIG_From_int(static_cast< int >(result));
22386 return resultobj;
22387fail:
22388 return NULL;
d14a1e28
RD
22389}
22390
22391
0085ce49
RD
22392SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22393 PyObject *resultobj = 0;
22394 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22395 bool result;
22396 void *argp1 = 0 ;
22397 int res1 = 0 ;
22398 PyObject *swig_obj[1] ;
22399
22400 if (!args) SWIG_fail;
22401 swig_obj[0] = args;
22402 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22403 if (!SWIG_IsOK(res1)) {
22404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsEnabled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22405 }
22406 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22407 {
22408 PyThreadState* __tstate = wxPyBeginAllowThreads();
22409 result = (bool)(arg1)->IsEnabled();
22410 wxPyEndAllowThreads(__tstate);
22411 if (PyErr_Occurred()) SWIG_fail;
22412 }
22413 {
22414 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22415 }
22416 return resultobj;
22417fail:
22418 return NULL;
d14a1e28
RD
22419}
22420
22421
0085ce49
RD
22422SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22423 PyObject *resultobj = 0;
22424 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22425 bool result;
22426 void *argp1 = 0 ;
22427 int res1 = 0 ;
22428 PyObject *swig_obj[1] ;
22429
22430 if (!args) SWIG_fail;
22431 swig_obj[0] = args;
22432 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22433 if (!SWIG_IsOK(res1)) {
22434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22435 }
22436 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22437 {
22438 PyThreadState* __tstate = wxPyBeginAllowThreads();
22439 result = (bool)(arg1)->IsToggled();
22440 wxPyEndAllowThreads(__tstate);
22441 if (PyErr_Occurred()) SWIG_fail;
22442 }
22443 {
22444 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22445 }
22446 return resultobj;
22447fail:
22448 return NULL;
22bfe96c
RD
22449}
22450
22451
0085ce49
RD
22452SWIGINTERN PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22453 PyObject *resultobj = 0;
22454 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22455 bool result;
22456 void *argp1 = 0 ;
22457 int res1 = 0 ;
22458 PyObject *swig_obj[1] ;
22459
22460 if (!args) SWIG_fail;
22461 swig_obj[0] = args;
22462 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22463 if (!SWIG_IsOK(res1)) {
22464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_CanBeToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22465 }
22466 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22467 {
22468 PyThreadState* __tstate = wxPyBeginAllowThreads();
22469 result = (bool)(arg1)->CanBeToggled();
22470 wxPyEndAllowThreads(__tstate);
22471 if (PyErr_Occurred()) SWIG_fail;
22472 }
22473 {
22474 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22475 }
22476 return resultobj;
22477fail:
22478 return NULL;
d1e20054
RD
22479}
22480
22481
0085ce49
RD
22482SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22483 PyObject *resultobj = 0;
22484 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22485 wxBitmap *result = 0 ;
22486 void *argp1 = 0 ;
22487 int res1 = 0 ;
22488 PyObject *swig_obj[1] ;
22489
22490 if (!args) SWIG_fail;
22491 swig_obj[0] = args;
22492 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22493 if (!SWIG_IsOK(res1)) {
22494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22495 }
22496 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22497 {
22498 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22499 {
0085ce49
RD
22500 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
22501 result = (wxBitmap *) &_result_ref;
093d3ff1 22502 }
0085ce49
RD
22503 wxPyEndAllowThreads(__tstate);
22504 if (PyErr_Occurred()) SWIG_fail;
22505 }
22506 {
22507 wxBitmap* resultptr = new wxBitmap(*result);
22508 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
22509 }
22510 return resultobj;
22511fail:
22512 return NULL;
d1e20054
RD
22513}
22514
22515
0085ce49
RD
22516SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22517 PyObject *resultobj = 0;
22518 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22519 wxBitmap *result = 0 ;
22520 void *argp1 = 0 ;
22521 int res1 = 0 ;
22522 PyObject *swig_obj[1] ;
22523
22524 if (!args) SWIG_fail;
22525 swig_obj[0] = args;
22526 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22527 if (!SWIG_IsOK(res1)) {
22528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22529 }
22530 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22531 {
22532 PyThreadState* __tstate = wxPyBeginAllowThreads();
d1e20054 22533 {
0085ce49
RD
22534 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
22535 result = (wxBitmap *) &_result_ref;
d1e20054 22536 }
0085ce49
RD
22537 wxPyEndAllowThreads(__tstate);
22538 if (PyErr_Occurred()) SWIG_fail;
22539 }
22540 {
22541 wxBitmap* resultptr = new wxBitmap(*result);
22542 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
22543 }
22544 return resultobj;
22545fail:
22546 return NULL;
d1e20054
RD
22547}
22548
22549
0085ce49
RD
22550SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22551 PyObject *resultobj = 0;
22552 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22553 wxBitmap result;
22554 void *argp1 = 0 ;
22555 int res1 = 0 ;
22556 PyObject *swig_obj[1] ;
22557
22558 if (!args) SWIG_fail;
22559 swig_obj[0] = args;
22560 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22561 if (!SWIG_IsOK(res1)) {
22562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22563 }
22564 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22565 {
22566 PyThreadState* __tstate = wxPyBeginAllowThreads();
22567 result = (arg1)->GetBitmap();
22568 wxPyEndAllowThreads(__tstate);
22569 if (PyErr_Occurred()) SWIG_fail;
22570 }
22571 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
22572 return resultobj;
22573fail:
22574 return NULL;
b2dc1044
RD
22575}
22576
22577
0085ce49
RD
22578SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22579 PyObject *resultobj = 0;
22580 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22581 wxString result;
22582 void *argp1 = 0 ;
22583 int res1 = 0 ;
22584 PyObject *swig_obj[1] ;
22585
22586 if (!args) SWIG_fail;
22587 swig_obj[0] = args;
22588 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22589 if (!SWIG_IsOK(res1)) {
22590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22591 }
22592 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22593 {
22594 PyThreadState* __tstate = wxPyBeginAllowThreads();
22595 result = (arg1)->GetLabel();
22596 wxPyEndAllowThreads(__tstate);
22597 if (PyErr_Occurred()) SWIG_fail;
22598 }
22599 {
b2dc1044 22600#if wxUSE_UNICODE
0085ce49 22601 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
b2dc1044 22602#else
0085ce49 22603 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
b2dc1044 22604#endif
0085ce49
RD
22605 }
22606 return resultobj;
22607fail:
22608 return NULL;
b2dc1044
RD
22609}
22610
22611
0085ce49
RD
22612SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22613 PyObject *resultobj = 0;
22614 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22615 wxString result;
22616 void *argp1 = 0 ;
22617 int res1 = 0 ;
22618 PyObject *swig_obj[1] ;
22619
22620 if (!args) SWIG_fail;
22621 swig_obj[0] = args;
22622 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22623 if (!SWIG_IsOK(res1)) {
22624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22625 }
22626 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22627 {
22628 PyThreadState* __tstate = wxPyBeginAllowThreads();
22629 result = (arg1)->GetShortHelp();
22630 wxPyEndAllowThreads(__tstate);
22631 if (PyErr_Occurred()) SWIG_fail;
22632 }
22633 {
b2dc1044 22634#if wxUSE_UNICODE
0085ce49 22635 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
b2dc1044 22636#else
0085ce49 22637 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
b2dc1044 22638#endif
0085ce49
RD
22639 }
22640 return resultobj;
22641fail:
22642 return NULL;
d14a1e28
RD
22643}
22644
22645
0085ce49
RD
22646SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22647 PyObject *resultobj = 0;
22648 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22649 wxString result;
22650 void *argp1 = 0 ;
22651 int res1 = 0 ;
22652 PyObject *swig_obj[1] ;
22653
22654 if (!args) SWIG_fail;
22655 swig_obj[0] = args;
22656 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22657 if (!SWIG_IsOK(res1)) {
22658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22659 }
22660 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22661 {
22662 PyThreadState* __tstate = wxPyBeginAllowThreads();
22663 result = (arg1)->GetLongHelp();
22664 wxPyEndAllowThreads(__tstate);
22665 if (PyErr_Occurred()) SWIG_fail;
22666 }
22667 {
22668#if wxUSE_UNICODE
22669 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22670#else
22671 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22672#endif
22673 }
22674 return resultobj;
22675fail:
22676 return NULL;
22677}
22678
22679
22680SWIGINTERN PyObject *_wrap_ToolBarToolBase_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22681 PyObject *resultobj = 0;
22682 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22683 bool arg2 ;
22684 bool result;
22685 void *argp1 = 0 ;
22686 int res1 = 0 ;
22687 bool val2 ;
22688 int ecode2 = 0 ;
22689 PyObject * obj0 = 0 ;
22690 PyObject * obj1 = 0 ;
22691 char * kwnames[] = {
22692 (char *) "self",(char *) "enable", NULL
22693 };
22694
22695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) SWIG_fail;
22696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22697 if (!SWIG_IsOK(res1)) {
22698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Enable" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22699 }
22700 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22701 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22702 if (!SWIG_IsOK(ecode2)) {
22703 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_Enable" "', expected argument " "2"" of type '" "bool""'");
22704 }
22705 arg2 = static_cast< bool >(val2);
22706 {
22707 PyThreadState* __tstate = wxPyBeginAllowThreads();
22708 result = (bool)(arg1)->Enable(arg2);
22709 wxPyEndAllowThreads(__tstate);
22710 if (PyErr_Occurred()) SWIG_fail;
22711 }
22712 {
22713 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22714 }
22715 return resultobj;
22716fail:
22717 return NULL;
d14a1e28
RD
22718}
22719
22720
0085ce49
RD
22721SWIGINTERN PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22722 PyObject *resultobj = 0;
22723 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22724 void *argp1 = 0 ;
22725 int res1 = 0 ;
22726 PyObject *swig_obj[1] ;
22727
22728 if (!args) SWIG_fail;
22729 swig_obj[0] = args;
22730 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22731 if (!SWIG_IsOK(res1)) {
22732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Toggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22733 }
22734 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22735 {
22736 PyThreadState* __tstate = wxPyBeginAllowThreads();
22737 (arg1)->Toggle();
22738 wxPyEndAllowThreads(__tstate);
22739 if (PyErr_Occurred()) SWIG_fail;
22740 }
22741 resultobj = SWIG_Py_Void();
22742 return resultobj;
22743fail:
22744 return NULL;
22745}
22746
22747
22748SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22749 PyObject *resultobj = 0;
22750 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22751 bool arg2 ;
22752 bool result;
22753 void *argp1 = 0 ;
22754 int res1 = 0 ;
22755 bool val2 ;
22756 int ecode2 = 0 ;
22757 PyObject * obj0 = 0 ;
22758 PyObject * obj1 = 0 ;
22759 char * kwnames[] = {
22760 (char *) "self",(char *) "toggle", NULL
22761 };
22762
22763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) SWIG_fail;
22764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22765 if (!SWIG_IsOK(res1)) {
22766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22767 }
22768 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22769 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22770 if (!SWIG_IsOK(ecode2)) {
22771 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "2"" of type '" "bool""'");
22772 }
22773 arg2 = static_cast< bool >(val2);
22774 {
22775 PyThreadState* __tstate = wxPyBeginAllowThreads();
22776 result = (bool)(arg1)->SetToggle(arg2);
22777 wxPyEndAllowThreads(__tstate);
22778 if (PyErr_Occurred()) SWIG_fail;
22779 }
22780 {
22781 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22782 }
22783 return resultobj;
22784fail:
22785 return NULL;
22786}
22787
22788
22789SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22790 PyObject *resultobj = 0;
22791 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22792 wxString *arg2 = 0 ;
22793 bool result;
22794 void *argp1 = 0 ;
22795 int res1 = 0 ;
22796 bool temp2 = false ;
22797 PyObject * obj0 = 0 ;
22798 PyObject * obj1 = 0 ;
22799 char * kwnames[] = {
22800 (char *) "self",(char *) "help", NULL
22801 };
22802
22803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
22804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22805 if (!SWIG_IsOK(res1)) {
22806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22807 }
22808 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22809 {
22810 arg2 = wxString_in_helper(obj1);
22811 if (arg2 == NULL) SWIG_fail;
22812 temp2 = true;
22813 }
22814 {
22815 PyThreadState* __tstate = wxPyBeginAllowThreads();
22816 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
22817 wxPyEndAllowThreads(__tstate);
22818 if (PyErr_Occurred()) SWIG_fail;
22819 }
22820 {
22821 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22822 }
22823 {
22824 if (temp2)
22825 delete arg2;
22826 }
22827 return resultobj;
22828fail:
22829 {
22830 if (temp2)
22831 delete arg2;
22832 }
22833 return NULL;
22834}
22835
22836
22837SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22838 PyObject *resultobj = 0;
22839 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22840 wxString *arg2 = 0 ;
22841 bool result;
22842 void *argp1 = 0 ;
22843 int res1 = 0 ;
22844 bool temp2 = false ;
22845 PyObject * obj0 = 0 ;
22846 PyObject * obj1 = 0 ;
22847 char * kwnames[] = {
22848 (char *) "self",(char *) "help", NULL
22849 };
22850
22851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
22852 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22853 if (!SWIG_IsOK(res1)) {
22854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22855 }
22856 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22857 {
22858 arg2 = wxString_in_helper(obj1);
22859 if (arg2 == NULL) SWIG_fail;
22860 temp2 = true;
22861 }
22862 {
22863 PyThreadState* __tstate = wxPyBeginAllowThreads();
22864 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
22865 wxPyEndAllowThreads(__tstate);
22866 if (PyErr_Occurred()) SWIG_fail;
22867 }
22868 {
22869 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22870 }
22871 {
22872 if (temp2)
22873 delete arg2;
22874 }
22875 return resultobj;
22876fail:
22877 {
22878 if (temp2)
22879 delete arg2;
22880 }
22881 return NULL;
22882}
22883
22884
22885SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22886 PyObject *resultobj = 0;
22887 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22888 wxBitmap *arg2 = 0 ;
22889 void *argp1 = 0 ;
22890 int res1 = 0 ;
22891 void *argp2 = 0 ;
22892 int res2 = 0 ;
22893 PyObject * obj0 = 0 ;
22894 PyObject * obj1 = 0 ;
22895 char * kwnames[] = {
22896 (char *) "self",(char *) "bmp", NULL
22897 };
22898
22899 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
22900 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22901 if (!SWIG_IsOK(res1)) {
22902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22903 }
22904 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22905 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
22906 if (!SWIG_IsOK(res2)) {
22907 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22908 }
22909 if (!argp2) {
22910 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22911 }
22912 arg2 = reinterpret_cast< wxBitmap * >(argp2);
22913 {
22914 PyThreadState* __tstate = wxPyBeginAllowThreads();
22915 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
22916 wxPyEndAllowThreads(__tstate);
22917 if (PyErr_Occurred()) SWIG_fail;
22918 }
22919 resultobj = SWIG_Py_Void();
22920 return resultobj;
22921fail:
22922 return NULL;
22923}
22924
22925
22926SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22927 PyObject *resultobj = 0;
22928 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22929 wxBitmap *arg2 = 0 ;
22930 void *argp1 = 0 ;
22931 int res1 = 0 ;
22932 void *argp2 = 0 ;
22933 int res2 = 0 ;
22934 PyObject * obj0 = 0 ;
22935 PyObject * obj1 = 0 ;
22936 char * kwnames[] = {
22937 (char *) "self",(char *) "bmp", NULL
22938 };
22939
22940 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
22941 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22942 if (!SWIG_IsOK(res1)) {
22943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22944 }
22945 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22946 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
22947 if (!SWIG_IsOK(res2)) {
22948 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22949 }
22950 if (!argp2) {
22951 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22952 }
22953 arg2 = reinterpret_cast< wxBitmap * >(argp2);
22954 {
22955 PyThreadState* __tstate = wxPyBeginAllowThreads();
22956 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
22957 wxPyEndAllowThreads(__tstate);
22958 if (PyErr_Occurred()) SWIG_fail;
22959 }
22960 resultobj = SWIG_Py_Void();
22961 return resultobj;
22962fail:
22963 return NULL;
22964}
22965
22966
22967SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22968 PyObject *resultobj = 0;
22969 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22970 wxString *arg2 = 0 ;
22971 void *argp1 = 0 ;
22972 int res1 = 0 ;
22973 bool temp2 = false ;
22974 PyObject * obj0 = 0 ;
22975 PyObject * obj1 = 0 ;
22976 char * kwnames[] = {
22977 (char *) "self",(char *) "label", NULL
22978 };
22979
22980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
22981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22982 if (!SWIG_IsOK(res1)) {
22983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22984 }
22985 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22986 {
22987 arg2 = wxString_in_helper(obj1);
22988 if (arg2 == NULL) SWIG_fail;
22989 temp2 = true;
22990 }
22991 {
22992 PyThreadState* __tstate = wxPyBeginAllowThreads();
22993 (arg1)->SetLabel((wxString const &)*arg2);
22994 wxPyEndAllowThreads(__tstate);
22995 if (PyErr_Occurred()) SWIG_fail;
22996 }
22997 resultobj = SWIG_Py_Void();
22998 {
22999 if (temp2)
23000 delete arg2;
23001 }
23002 return resultobj;
23003fail:
23004 {
23005 if (temp2)
23006 delete arg2;
23007 }
23008 return NULL;
d14a1e28
RD
23009}
23010
23011
0085ce49
RD
23012SWIGINTERN PyObject *_wrap_ToolBarToolBase_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23013 PyObject *resultobj = 0;
23014 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23015 void *argp1 = 0 ;
23016 int res1 = 0 ;
23017 PyObject *swig_obj[1] ;
23018
23019 if (!args) SWIG_fail;
23020 swig_obj[0] = args;
23021 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23022 if (!SWIG_IsOK(res1)) {
23023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Detach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23024 }
23025 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23026 {
23027 PyThreadState* __tstate = wxPyBeginAllowThreads();
23028 (arg1)->Detach();
23029 wxPyEndAllowThreads(__tstate);
23030 if (PyErr_Occurred()) SWIG_fail;
23031 }
23032 resultobj = SWIG_Py_Void();
23033 return resultobj;
23034fail:
23035 return NULL;
23036}
23037
23038
23039SWIGINTERN PyObject *_wrap_ToolBarToolBase_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23040 PyObject *resultobj = 0;
23041 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23042 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
23043 void *argp1 = 0 ;
23044 int res1 = 0 ;
23045 void *argp2 = 0 ;
23046 int res2 = 0 ;
23047 PyObject * obj0 = 0 ;
23048 PyObject * obj1 = 0 ;
23049 char * kwnames[] = {
23050 (char *) "self",(char *) "tbar", NULL
23051 };
23052
23053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) SWIG_fail;
23054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23055 if (!SWIG_IsOK(res1)) {
23056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Attach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23057 }
23058 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23059 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23060 if (!SWIG_IsOK(res2)) {
23061 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_Attach" "', expected argument " "2"" of type '" "wxToolBarBase *""'");
23062 }
23063 arg2 = reinterpret_cast< wxToolBarBase * >(argp2);
23064 {
23065 PyThreadState* __tstate = wxPyBeginAllowThreads();
23066 (arg1)->Attach(arg2);
23067 wxPyEndAllowThreads(__tstate);
23068 if (PyErr_Occurred()) SWIG_fail;
23069 }
23070 resultobj = SWIG_Py_Void();
23071 return resultobj;
23072fail:
23073 return NULL;
d14a1e28
RD
23074}
23075
23076
0085ce49
RD
23077SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23078 PyObject *resultobj = 0;
23079 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23080 PyObject *result = 0 ;
23081 void *argp1 = 0 ;
23082 int res1 = 0 ;
23083 PyObject *swig_obj[1] ;
23084
23085 if (!args) SWIG_fail;
23086 swig_obj[0] = args;
23087 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23088 if (!SWIG_IsOK(res1)) {
23089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23090 }
23091 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23092 {
23093 PyThreadState* __tstate = wxPyBeginAllowThreads();
23094 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
23095 wxPyEndAllowThreads(__tstate);
23096 if (PyErr_Occurred()) SWIG_fail;
23097 }
23098 resultobj = result;
23099 return resultobj;
23100fail:
23101 return NULL;
23102}
23103
23104
23105SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23106 PyObject *resultobj = 0;
23107 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23108 PyObject *arg2 = (PyObject *) 0 ;
23109 void *argp1 = 0 ;
23110 int res1 = 0 ;
23111 PyObject * obj0 = 0 ;
23112 PyObject * obj1 = 0 ;
23113 char * kwnames[] = {
23114 (char *) "self",(char *) "clientData", NULL
23115 };
23116
23117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) SWIG_fail;
23118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23119 if (!SWIG_IsOK(res1)) {
23120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23121 }
23122 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23123 arg2 = obj1;
23124 {
23125 PyThreadState* __tstate = wxPyBeginAllowThreads();
23126 wxToolBarToolBase_SetClientData(arg1,arg2);
23127 wxPyEndAllowThreads(__tstate);
23128 if (PyErr_Occurred()) SWIG_fail;
23129 }
23130 resultobj = SWIG_Py_Void();
23131 return resultobj;
23132fail:
23133 return NULL;
23134}
23135
23136
23137SWIGINTERN PyObject *ToolBarToolBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23138 PyObject *obj;
23139 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23140 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarToolBase, SWIG_NewClientData(obj));
23141 return SWIG_Py_Void();
23142}
23143
23144SWIGINTERN PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23145 PyObject *resultobj = 0;
23146 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23147 int arg2 ;
23148 wxString *arg3 = 0 ;
23149 wxBitmap *arg4 = 0 ;
23150 wxBitmap const &arg5_defvalue = wxNullBitmap ;
23151 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
23152 wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ;
23153 wxString const &arg7_defvalue = wxPyEmptyString ;
23154 wxString *arg7 = (wxString *) &arg7_defvalue ;
23155 wxString const &arg8_defvalue = wxPyEmptyString ;
23156 wxString *arg8 = (wxString *) &arg8_defvalue ;
23157 PyObject *arg9 = (PyObject *) NULL ;
23158 wxToolBarToolBase *result = 0 ;
23159 void *argp1 = 0 ;
23160 int res1 = 0 ;
23161 int val2 ;
23162 int ecode2 = 0 ;
23163 bool temp3 = false ;
23164 void *argp4 = 0 ;
23165 int res4 = 0 ;
23166 void *argp5 = 0 ;
23167 int res5 = 0 ;
23168 int val6 ;
23169 int ecode6 = 0 ;
23170 bool temp7 = false ;
23171 bool temp8 = false ;
23172 PyObject * obj0 = 0 ;
23173 PyObject * obj1 = 0 ;
23174 PyObject * obj2 = 0 ;
23175 PyObject * obj3 = 0 ;
23176 PyObject * obj4 = 0 ;
23177 PyObject * obj5 = 0 ;
23178 PyObject * obj6 = 0 ;
23179 PyObject * obj7 = 0 ;
23180 PyObject * obj8 = 0 ;
23181 char * kwnames[] = {
23182 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23183 };
23184
23185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
23186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23187 if (!SWIG_IsOK(res1)) {
23188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23189 }
23190 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23191 ecode2 = SWIG_AsVal_int(obj1, &val2);
23192 if (!SWIG_IsOK(ecode2)) {
23193 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "2"" of type '" "int""'");
23194 }
23195 arg2 = static_cast< int >(val2);
23196 {
23197 arg3 = wxString_in_helper(obj2);
23198 if (arg3 == NULL) SWIG_fail;
23199 temp3 = true;
23200 }
23201 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
23202 if (!SWIG_IsOK(res4)) {
23203 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23204 }
23205 if (!argp4) {
23206 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23207 }
23208 arg4 = reinterpret_cast< wxBitmap * >(argp4);
23209 if (obj4) {
23210 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23211 if (!SWIG_IsOK(res5)) {
23212 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
d14a1e28 23213 }
0085ce49
RD
23214 if (!argp5) {
23215 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
d14a1e28 23216 }
0085ce49
RD
23217 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23218 }
23219 if (obj5) {
23220 ecode6 = SWIG_AsVal_int(obj5, &val6);
23221 if (!SWIG_IsOK(ecode6)) {
23222 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "6"" of type '" "wxItemKind""'");
23223 }
23224 arg6 = static_cast< wxItemKind >(val6);
23225 }
23226 if (obj6) {
093d3ff1 23227 {
0085ce49
RD
23228 arg7 = wxString_in_helper(obj6);
23229 if (arg7 == NULL) SWIG_fail;
23230 temp7 = true;
093d3ff1 23231 }
0085ce49
RD
23232 }
23233 if (obj7) {
d14a1e28 23234 {
0085ce49
RD
23235 arg8 = wxString_in_helper(obj7);
23236 if (arg8 == NULL) SWIG_fail;
23237 temp8 = true;
d14a1e28 23238 }
0085ce49
RD
23239 }
23240 if (obj8) {
23241 arg9 = obj8;
23242 }
23243 {
23244 PyThreadState* __tstate = wxPyBeginAllowThreads();
23245 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
23246 wxPyEndAllowThreads(__tstate);
23247 if (PyErr_Occurred()) SWIG_fail;
23248 }
23249 {
23250 resultobj = wxPyMake_wxObject(result, (bool)0);
23251 }
23252 {
23253 if (temp3)
23254 delete arg3;
23255 }
23256 {
23257 if (temp7)
23258 delete arg7;
23259 }
23260 {
23261 if (temp8)
23262 delete arg8;
23263 }
23264 return resultobj;
23265fail:
23266 {
23267 if (temp3)
23268 delete arg3;
23269 }
23270 {
23271 if (temp7)
23272 delete arg7;
23273 }
23274 {
23275 if (temp8)
23276 delete arg8;
23277 }
23278 return NULL;
23279}
23280
23281
23282SWIGINTERN PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23283 PyObject *resultobj = 0;
23284 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23285 size_t arg2 ;
23286 int arg3 ;
23287 wxString *arg4 = 0 ;
23288 wxBitmap *arg5 = 0 ;
23289 wxBitmap const &arg6_defvalue = wxNullBitmap ;
23290 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
23291 wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ;
23292 wxString const &arg8_defvalue = wxPyEmptyString ;
23293 wxString *arg8 = (wxString *) &arg8_defvalue ;
23294 wxString const &arg9_defvalue = wxPyEmptyString ;
23295 wxString *arg9 = (wxString *) &arg9_defvalue ;
23296 PyObject *arg10 = (PyObject *) NULL ;
23297 wxToolBarToolBase *result = 0 ;
23298 void *argp1 = 0 ;
23299 int res1 = 0 ;
23300 size_t val2 ;
23301 int ecode2 = 0 ;
23302 int val3 ;
23303 int ecode3 = 0 ;
23304 bool temp4 = false ;
23305 void *argp5 = 0 ;
23306 int res5 = 0 ;
23307 void *argp6 = 0 ;
23308 int res6 = 0 ;
23309 int val7 ;
23310 int ecode7 = 0 ;
23311 bool temp8 = false ;
23312 bool temp9 = false ;
23313 PyObject * obj0 = 0 ;
23314 PyObject * obj1 = 0 ;
23315 PyObject * obj2 = 0 ;
23316 PyObject * obj3 = 0 ;
23317 PyObject * obj4 = 0 ;
23318 PyObject * obj5 = 0 ;
23319 PyObject * obj6 = 0 ;
23320 PyObject * obj7 = 0 ;
23321 PyObject * obj8 = 0 ;
23322 PyObject * obj9 = 0 ;
23323 char * kwnames[] = {
23324 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23325 };
23326
23327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
23328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23329 if (!SWIG_IsOK(res1)) {
23330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23331 }
23332 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23333 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23334 if (!SWIG_IsOK(ecode2)) {
23335 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "2"" of type '" "size_t""'");
23336 }
23337 arg2 = static_cast< size_t >(val2);
23338 ecode3 = SWIG_AsVal_int(obj2, &val3);
23339 if (!SWIG_IsOK(ecode3)) {
23340 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "3"" of type '" "int""'");
23341 }
23342 arg3 = static_cast< int >(val3);
23343 {
23344 arg4 = wxString_in_helper(obj3);
23345 if (arg4 == NULL) SWIG_fail;
23346 temp4 = true;
23347 }
23348 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23349 if (!SWIG_IsOK(res5)) {
23350 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23351 }
23352 if (!argp5) {
23353 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23354 }
23355 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23356 if (obj5) {
23357 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxBitmap, 0 | 0);
23358 if (!SWIG_IsOK(res6)) {
23359 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
d14a1e28 23360 }
0085ce49
RD
23361 if (!argp6) {
23362 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
093d3ff1 23363 }
0085ce49
RD
23364 arg6 = reinterpret_cast< wxBitmap * >(argp6);
23365 }
23366 if (obj6) {
23367 ecode7 = SWIG_AsVal_int(obj6, &val7);
23368 if (!SWIG_IsOK(ecode7)) {
23369 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "7"" of type '" "wxItemKind""'");
23370 }
23371 arg7 = static_cast< wxItemKind >(val7);
23372 }
23373 if (obj7) {
d14a1e28 23374 {
0085ce49
RD
23375 arg8 = wxString_in_helper(obj7);
23376 if (arg8 == NULL) SWIG_fail;
23377 temp8 = true;
d14a1e28 23378 }
0085ce49
RD
23379 }
23380 if (obj8) {
d14a1e28 23381 {
0085ce49
RD
23382 arg9 = wxString_in_helper(obj8);
23383 if (arg9 == NULL) SWIG_fail;
23384 temp9 = true;
d14a1e28 23385 }
0085ce49
RD
23386 }
23387 if (obj9) {
23388 arg10 = obj9;
23389 }
23390 {
23391 PyThreadState* __tstate = wxPyBeginAllowThreads();
23392 result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10);
23393 wxPyEndAllowThreads(__tstate);
23394 if (PyErr_Occurred()) SWIG_fail;
23395 }
23396 {
23397 resultobj = wxPyMake_wxObject(result, (bool)0);
23398 }
23399 {
23400 if (temp4)
23401 delete arg4;
23402 }
23403 {
23404 if (temp8)
23405 delete arg8;
23406 }
23407 {
23408 if (temp9)
23409 delete arg9;
23410 }
23411 return resultobj;
23412fail:
23413 {
23414 if (temp4)
23415 delete arg4;
23416 }
23417 {
23418 if (temp8)
23419 delete arg8;
23420 }
23421 {
23422 if (temp9)
23423 delete arg9;
23424 }
23425 return NULL;
23426}
23427
23428
23429SWIGINTERN PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23430 PyObject *resultobj = 0;
23431 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23432 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
23433 wxToolBarToolBase *result = 0 ;
23434 void *argp1 = 0 ;
23435 int res1 = 0 ;
23436 void *argp2 = 0 ;
23437 int res2 = 0 ;
23438 PyObject * obj0 = 0 ;
23439 PyObject * obj1 = 0 ;
23440 char * kwnames[] = {
23441 (char *) "self",(char *) "tool", NULL
23442 };
23443
23444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) SWIG_fail;
23445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23446 if (!SWIG_IsOK(res1)) {
23447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23448 }
23449 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23450 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23451 if (!SWIG_IsOK(res2)) {
23452 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "2"" of type '" "wxToolBarToolBase *""'");
23453 }
23454 arg2 = reinterpret_cast< wxToolBarToolBase * >(argp2);
23455 {
23456 PyThreadState* __tstate = wxPyBeginAllowThreads();
23457 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
23458 wxPyEndAllowThreads(__tstate);
23459 if (PyErr_Occurred()) SWIG_fail;
23460 }
23461 {
23462 resultobj = wxPyMake_wxObject(result, (bool)0);
23463 }
23464 return resultobj;
23465fail:
23466 return NULL;
23467}
23468
23469
23470SWIGINTERN PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23471 PyObject *resultobj = 0;
23472 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23473 size_t arg2 ;
23474 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
23475 wxToolBarToolBase *result = 0 ;
23476 void *argp1 = 0 ;
23477 int res1 = 0 ;
23478 size_t val2 ;
23479 int ecode2 = 0 ;
23480 void *argp3 = 0 ;
23481 int res3 = 0 ;
23482 PyObject * obj0 = 0 ;
23483 PyObject * obj1 = 0 ;
23484 PyObject * obj2 = 0 ;
23485 char * kwnames[] = {
23486 (char *) "self",(char *) "pos",(char *) "tool", NULL
23487 };
23488
23489 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23490 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23491 if (!SWIG_IsOK(res1)) {
23492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23493 }
23494 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23495 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23496 if (!SWIG_IsOK(ecode2)) {
23497 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "2"" of type '" "size_t""'");
23498 }
23499 arg2 = static_cast< size_t >(val2);
23500 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23501 if (!SWIG_IsOK(res3)) {
23502 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "3"" of type '" "wxToolBarToolBase *""'");
23503 }
23504 arg3 = reinterpret_cast< wxToolBarToolBase * >(argp3);
23505 {
23506 PyThreadState* __tstate = wxPyBeginAllowThreads();
23507 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
23508 wxPyEndAllowThreads(__tstate);
23509 if (PyErr_Occurred()) SWIG_fail;
23510 }
23511 {
23512 resultobj = wxPyMake_wxObject(result, (bool)0);
23513 }
23514 return resultobj;
23515fail:
23516 return NULL;
23517}
23518
23519
23520SWIGINTERN PyObject *_wrap_ToolBarBase_AddControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23521 PyObject *resultobj = 0;
23522 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23523 wxControl *arg2 = (wxControl *) 0 ;
23524 wxToolBarToolBase *result = 0 ;
23525 void *argp1 = 0 ;
23526 int res1 = 0 ;
23527 void *argp2 = 0 ;
23528 int res2 = 0 ;
23529 PyObject * obj0 = 0 ;
23530 PyObject * obj1 = 0 ;
23531 char * kwnames[] = {
23532 (char *) "self",(char *) "control", NULL
23533 };
23534
23535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) SWIG_fail;
23536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23537 if (!SWIG_IsOK(res1)) {
23538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23539 }
23540 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23541 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxControl, 0 | 0 );
23542 if (!SWIG_IsOK(res2)) {
23543 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddControl" "', expected argument " "2"" of type '" "wxControl *""'");
23544 }
23545 arg2 = reinterpret_cast< wxControl * >(argp2);
23546 {
23547 PyThreadState* __tstate = wxPyBeginAllowThreads();
23548 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
23549 wxPyEndAllowThreads(__tstate);
23550 if (PyErr_Occurred()) SWIG_fail;
23551 }
23552 {
23553 resultobj = wxPyMake_wxObject(result, (bool)0);
23554 }
23555 return resultobj;
23556fail:
23557 return NULL;
23558}
23559
23560
23561SWIGINTERN PyObject *_wrap_ToolBarBase_InsertControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23562 PyObject *resultobj = 0;
23563 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23564 size_t arg2 ;
23565 wxControl *arg3 = (wxControl *) 0 ;
23566 wxToolBarToolBase *result = 0 ;
23567 void *argp1 = 0 ;
23568 int res1 = 0 ;
23569 size_t val2 ;
23570 int ecode2 = 0 ;
23571 void *argp3 = 0 ;
23572 int res3 = 0 ;
23573 PyObject * obj0 = 0 ;
23574 PyObject * obj1 = 0 ;
23575 PyObject * obj2 = 0 ;
23576 char * kwnames[] = {
23577 (char *) "self",(char *) "pos",(char *) "control", NULL
23578 };
23579
23580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23582 if (!SWIG_IsOK(res1)) {
23583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23584 }
23585 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23586 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23587 if (!SWIG_IsOK(ecode2)) {
23588 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertControl" "', expected argument " "2"" of type '" "size_t""'");
23589 }
23590 arg2 = static_cast< size_t >(val2);
23591 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxControl, 0 | 0 );
23592 if (!SWIG_IsOK(res3)) {
23593 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertControl" "', expected argument " "3"" of type '" "wxControl *""'");
23594 }
23595 arg3 = reinterpret_cast< wxControl * >(argp3);
23596 {
23597 PyThreadState* __tstate = wxPyBeginAllowThreads();
23598 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
23599 wxPyEndAllowThreads(__tstate);
23600 if (PyErr_Occurred()) SWIG_fail;
23601 }
23602 {
23603 resultobj = wxPyMake_wxObject(result, (bool)0);
23604 }
23605 return resultobj;
23606fail:
23607 return NULL;
23608}
23609
23610
23611SWIGINTERN PyObject *_wrap_ToolBarBase_FindControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23612 PyObject *resultobj = 0;
23613 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23614 int arg2 ;
23615 wxControl *result = 0 ;
23616 void *argp1 = 0 ;
23617 int res1 = 0 ;
23618 int val2 ;
23619 int ecode2 = 0 ;
23620 PyObject * obj0 = 0 ;
23621 PyObject * obj1 = 0 ;
23622 char * kwnames[] = {
23623 (char *) "self",(char *) "id", NULL
23624 };
23625
23626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) SWIG_fail;
23627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23628 if (!SWIG_IsOK(res1)) {
23629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23630 }
23631 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23632 ecode2 = SWIG_AsVal_int(obj1, &val2);
23633 if (!SWIG_IsOK(ecode2)) {
23634 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindControl" "', expected argument " "2"" of type '" "int""'");
23635 }
23636 arg2 = static_cast< int >(val2);
23637 {
23638 PyThreadState* __tstate = wxPyBeginAllowThreads();
23639 result = (wxControl *)(arg1)->FindControl(arg2);
23640 wxPyEndAllowThreads(__tstate);
23641 if (PyErr_Occurred()) SWIG_fail;
23642 }
23643 {
23644 resultobj = wxPyMake_wxObject(result, 0);
23645 }
23646 return resultobj;
23647fail:
23648 return NULL;
d14a1e28
RD
23649}
23650
23651
0085ce49
RD
23652SWIGINTERN PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23653 PyObject *resultobj = 0;
23654 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23655 wxToolBarToolBase *result = 0 ;
23656 void *argp1 = 0 ;
23657 int res1 = 0 ;
23658 PyObject *swig_obj[1] ;
23659
23660 if (!args) SWIG_fail;
23661 swig_obj[0] = args;
23662 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23663 if (!SWIG_IsOK(res1)) {
23664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23665 }
23666 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23667 {
23668 PyThreadState* __tstate = wxPyBeginAllowThreads();
23669 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
23670 wxPyEndAllowThreads(__tstate);
23671 if (PyErr_Occurred()) SWIG_fail;
23672 }
23673 {
23674 resultobj = wxPyMake_wxObject(result, (bool)0);
23675 }
23676 return resultobj;
23677fail:
23678 return NULL;
23679}
23680
23681
23682SWIGINTERN PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23683 PyObject *resultobj = 0;
23684 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23685 size_t arg2 ;
23686 wxToolBarToolBase *result = 0 ;
23687 void *argp1 = 0 ;
23688 int res1 = 0 ;
23689 size_t val2 ;
23690 int ecode2 = 0 ;
23691 PyObject * obj0 = 0 ;
23692 PyObject * obj1 = 0 ;
23693 char * kwnames[] = {
23694 (char *) "self",(char *) "pos", NULL
23695 };
23696
23697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) SWIG_fail;
23698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23699 if (!SWIG_IsOK(res1)) {
23700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23701 }
23702 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23703 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23704 if (!SWIG_IsOK(ecode2)) {
23705 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "2"" of type '" "size_t""'");
23706 }
23707 arg2 = static_cast< size_t >(val2);
23708 {
23709 PyThreadState* __tstate = wxPyBeginAllowThreads();
23710 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
23711 wxPyEndAllowThreads(__tstate);
23712 if (PyErr_Occurred()) SWIG_fail;
23713 }
23714 {
23715 resultobj = wxPyMake_wxObject(result, (bool)0);
23716 }
23717 return resultobj;
23718fail:
23719 return NULL;
23720}
23721
23722
23723SWIGINTERN PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23724 PyObject *resultobj = 0;
23725 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23726 int arg2 ;
23727 wxToolBarToolBase *result = 0 ;
23728 void *argp1 = 0 ;
23729 int res1 = 0 ;
23730 int val2 ;
23731 int ecode2 = 0 ;
23732 PyObject * obj0 = 0 ;
23733 PyObject * obj1 = 0 ;
23734 char * kwnames[] = {
23735 (char *) "self",(char *) "id", NULL
23736 };
23737
23738 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) SWIG_fail;
23739 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23740 if (!SWIG_IsOK(res1)) {
23741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23742 }
23743 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23744 ecode2 = SWIG_AsVal_int(obj1, &val2);
23745 if (!SWIG_IsOK(ecode2)) {
23746 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "2"" of type '" "int""'");
23747 }
23748 arg2 = static_cast< int >(val2);
23749 {
23750 PyThreadState* __tstate = wxPyBeginAllowThreads();
23751 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
23752 wxPyEndAllowThreads(__tstate);
23753 if (PyErr_Occurred()) SWIG_fail;
23754 }
23755 {
23756 resultobj = wxPyMake_wxObject(result, (bool)0);
23757 }
23758 return resultobj;
23759fail:
23760 return NULL;
23761}
23762
23763
23764SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23765 PyObject *resultobj = 0;
23766 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23767 size_t arg2 ;
23768 bool result;
23769 void *argp1 = 0 ;
23770 int res1 = 0 ;
23771 size_t val2 ;
23772 int ecode2 = 0 ;
23773 PyObject * obj0 = 0 ;
23774 PyObject * obj1 = 0 ;
23775 char * kwnames[] = {
23776 (char *) "self",(char *) "pos", NULL
23777 };
23778
23779 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) SWIG_fail;
23780 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23781 if (!SWIG_IsOK(res1)) {
23782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23783 }
23784 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23785 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23786 if (!SWIG_IsOK(ecode2)) {
23787 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "2"" of type '" "size_t""'");
23788 }
23789 arg2 = static_cast< size_t >(val2);
23790 {
23791 PyThreadState* __tstate = wxPyBeginAllowThreads();
23792 result = (bool)(arg1)->DeleteToolByPos(arg2);
23793 wxPyEndAllowThreads(__tstate);
23794 if (PyErr_Occurred()) SWIG_fail;
23795 }
23796 {
23797 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23798 }
23799 return resultobj;
23800fail:
23801 return NULL;
23802}
23803
23804
23805SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23806 PyObject *resultobj = 0;
23807 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23808 int arg2 ;
23809 bool result;
23810 void *argp1 = 0 ;
23811 int res1 = 0 ;
23812 int val2 ;
23813 int ecode2 = 0 ;
23814 PyObject * obj0 = 0 ;
23815 PyObject * obj1 = 0 ;
23816 char * kwnames[] = {
23817 (char *) "self",(char *) "id", NULL
23818 };
23819
23820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) SWIG_fail;
23821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23822 if (!SWIG_IsOK(res1)) {
23823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23824 }
23825 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23826 ecode2 = SWIG_AsVal_int(obj1, &val2);
23827 if (!SWIG_IsOK(ecode2)) {
23828 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "2"" of type '" "int""'");
23829 }
23830 arg2 = static_cast< int >(val2);
23831 {
23832 PyThreadState* __tstate = wxPyBeginAllowThreads();
23833 result = (bool)(arg1)->DeleteTool(arg2);
23834 wxPyEndAllowThreads(__tstate);
23835 if (PyErr_Occurred()) SWIG_fail;
23836 }
23837 {
23838 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23839 }
23840 return resultobj;
23841fail:
23842 return NULL;
d14a1e28
RD
23843}
23844
23845
0085ce49
RD
23846SWIGINTERN PyObject *_wrap_ToolBarBase_ClearTools(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23847 PyObject *resultobj = 0;
23848 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23849 void *argp1 = 0 ;
23850 int res1 = 0 ;
23851 PyObject *swig_obj[1] ;
23852
23853 if (!args) SWIG_fail;
23854 swig_obj[0] = args;
23855 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23856 if (!SWIG_IsOK(res1)) {
23857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ClearTools" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23858 }
23859 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23860 {
23861 PyThreadState* __tstate = wxPyBeginAllowThreads();
23862 (arg1)->ClearTools();
23863 wxPyEndAllowThreads(__tstate);
23864 if (PyErr_Occurred()) SWIG_fail;
23865 }
23866 resultobj = SWIG_Py_Void();
23867 return resultobj;
23868fail:
23869 return NULL;
d14a1e28
RD
23870}
23871
23872
0085ce49
RD
23873SWIGINTERN PyObject *_wrap_ToolBarBase_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23874 PyObject *resultobj = 0;
23875 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23876 bool result;
23877 void *argp1 = 0 ;
23878 int res1 = 0 ;
23879 PyObject *swig_obj[1] ;
23880
23881 if (!args) SWIG_fail;
23882 swig_obj[0] = args;
23883 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23884 if (!SWIG_IsOK(res1)) {
23885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_Realize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23886 }
23887 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23888 {
23889 PyThreadState* __tstate = wxPyBeginAllowThreads();
23890 result = (bool)(arg1)->Realize();
23891 wxPyEndAllowThreads(__tstate);
23892 if (PyErr_Occurred()) SWIG_fail;
23893 }
23894 {
23895 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23896 }
23897 return resultobj;
23898fail:
23899 return NULL;
23900}
23901
23902
23903SWIGINTERN PyObject *_wrap_ToolBarBase_EnableTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23904 PyObject *resultobj = 0;
23905 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23906 int arg2 ;
23907 bool arg3 ;
23908 void *argp1 = 0 ;
23909 int res1 = 0 ;
23910 int val2 ;
23911 int ecode2 = 0 ;
23912 bool val3 ;
23913 int ecode3 = 0 ;
23914 PyObject * obj0 = 0 ;
23915 PyObject * obj1 = 0 ;
23916 PyObject * obj2 = 0 ;
23917 char * kwnames[] = {
23918 (char *) "self",(char *) "id",(char *) "enable", NULL
23919 };
23920
23921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23923 if (!SWIG_IsOK(res1)) {
23924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_EnableTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23925 }
23926 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23927 ecode2 = SWIG_AsVal_int(obj1, &val2);
23928 if (!SWIG_IsOK(ecode2)) {
23929 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_EnableTool" "', expected argument " "2"" of type '" "int""'");
23930 }
23931 arg2 = static_cast< int >(val2);
23932 ecode3 = SWIG_AsVal_bool(obj2, &val3);
23933 if (!SWIG_IsOK(ecode3)) {
23934 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_EnableTool" "', expected argument " "3"" of type '" "bool""'");
23935 }
23936 arg3 = static_cast< bool >(val3);
23937 {
23938 PyThreadState* __tstate = wxPyBeginAllowThreads();
23939 (arg1)->EnableTool(arg2,arg3);
23940 wxPyEndAllowThreads(__tstate);
23941 if (PyErr_Occurred()) SWIG_fail;
23942 }
23943 resultobj = SWIG_Py_Void();
23944 return resultobj;
23945fail:
23946 return NULL;
23947}
23948
23949
23950SWIGINTERN PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23951 PyObject *resultobj = 0;
23952 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23953 int arg2 ;
23954 bool arg3 ;
23955 void *argp1 = 0 ;
23956 int res1 = 0 ;
23957 int val2 ;
23958 int ecode2 = 0 ;
23959 bool val3 ;
23960 int ecode3 = 0 ;
23961 PyObject * obj0 = 0 ;
23962 PyObject * obj1 = 0 ;
23963 PyObject * obj2 = 0 ;
23964 char * kwnames[] = {
23965 (char *) "self",(char *) "id",(char *) "toggle", NULL
23966 };
23967
23968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23970 if (!SWIG_IsOK(res1)) {
23971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23972 }
23973 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23974 ecode2 = SWIG_AsVal_int(obj1, &val2);
23975 if (!SWIG_IsOK(ecode2)) {
23976 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "2"" of type '" "int""'");
23977 }
23978 arg2 = static_cast< int >(val2);
23979 ecode3 = SWIG_AsVal_bool(obj2, &val3);
23980 if (!SWIG_IsOK(ecode3)) {
23981 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "3"" of type '" "bool""'");
23982 }
23983 arg3 = static_cast< bool >(val3);
23984 {
23985 PyThreadState* __tstate = wxPyBeginAllowThreads();
23986 (arg1)->ToggleTool(arg2,arg3);
23987 wxPyEndAllowThreads(__tstate);
23988 if (PyErr_Occurred()) SWIG_fail;
23989 }
23990 resultobj = SWIG_Py_Void();
23991 return resultobj;
23992fail:
23993 return NULL;
23994}
23995
23996
23997SWIGINTERN PyObject *_wrap_ToolBarBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23998 PyObject *resultobj = 0;
23999 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24000 int arg2 ;
24001 bool arg3 ;
24002 void *argp1 = 0 ;
24003 int res1 = 0 ;
24004 int val2 ;
24005 int ecode2 = 0 ;
24006 bool val3 ;
24007 int ecode3 = 0 ;
24008 PyObject * obj0 = 0 ;
24009 PyObject * obj1 = 0 ;
24010 PyObject * obj2 = 0 ;
24011 char * kwnames[] = {
24012 (char *) "self",(char *) "id",(char *) "toggle", NULL
24013 };
24014
24015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24017 if (!SWIG_IsOK(res1)) {
24018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24019 }
24020 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24021 ecode2 = SWIG_AsVal_int(obj1, &val2);
24022 if (!SWIG_IsOK(ecode2)) {
24023 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToggle" "', expected argument " "2"" of type '" "int""'");
24024 }
24025 arg2 = static_cast< int >(val2);
24026 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24027 if (!SWIG_IsOK(ecode3)) {
24028 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetToggle" "', expected argument " "3"" of type '" "bool""'");
24029 }
24030 arg3 = static_cast< bool >(val3);
24031 {
24032 PyThreadState* __tstate = wxPyBeginAllowThreads();
24033 (arg1)->SetToggle(arg2,arg3);
24034 wxPyEndAllowThreads(__tstate);
24035 if (PyErr_Occurred()) SWIG_fail;
24036 }
24037 resultobj = SWIG_Py_Void();
24038 return resultobj;
24039fail:
24040 return NULL;
24041}
24042
24043
24044SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24045 PyObject *resultobj = 0;
24046 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24047 int arg2 ;
24048 PyObject *result = 0 ;
24049 void *argp1 = 0 ;
24050 int res1 = 0 ;
24051 int val2 ;
24052 int ecode2 = 0 ;
24053 PyObject * obj0 = 0 ;
24054 PyObject * obj1 = 0 ;
24055 char * kwnames[] = {
24056 (char *) "self",(char *) "id", NULL
24057 };
24058
24059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) SWIG_fail;
24060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24061 if (!SWIG_IsOK(res1)) {
24062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24063 }
24064 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24065 ecode2 = SWIG_AsVal_int(obj1, &val2);
24066 if (!SWIG_IsOK(ecode2)) {
24067 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "2"" of type '" "int""'");
24068 }
24069 arg2 = static_cast< int >(val2);
24070 {
24071 PyThreadState* __tstate = wxPyBeginAllowThreads();
24072 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
24073 wxPyEndAllowThreads(__tstate);
24074 if (PyErr_Occurred()) SWIG_fail;
24075 }
24076 resultobj = result;
24077 return resultobj;
24078fail:
24079 return NULL;
24080}
24081
24082
24083SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24084 PyObject *resultobj = 0;
24085 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24086 int arg2 ;
24087 PyObject *arg3 = (PyObject *) 0 ;
24088 void *argp1 = 0 ;
24089 int res1 = 0 ;
24090 int val2 ;
24091 int ecode2 = 0 ;
24092 PyObject * obj0 = 0 ;
24093 PyObject * obj1 = 0 ;
24094 PyObject * obj2 = 0 ;
24095 char * kwnames[] = {
24096 (char *) "self",(char *) "id",(char *) "clientData", NULL
24097 };
24098
24099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24101 if (!SWIG_IsOK(res1)) {
24102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24103 }
24104 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24105 ecode2 = SWIG_AsVal_int(obj1, &val2);
24106 if (!SWIG_IsOK(ecode2)) {
24107 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "2"" of type '" "int""'");
24108 }
24109 arg2 = static_cast< int >(val2);
24110 arg3 = obj2;
24111 {
24112 PyThreadState* __tstate = wxPyBeginAllowThreads();
24113 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
24114 wxPyEndAllowThreads(__tstate);
24115 if (PyErr_Occurred()) SWIG_fail;
24116 }
24117 resultobj = SWIG_Py_Void();
24118 return resultobj;
24119fail:
24120 return NULL;
24121}
24122
24123
24124SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24125 PyObject *resultobj = 0;
24126 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24127 int arg2 ;
24128 int result;
24129 void *argp1 = 0 ;
24130 int res1 = 0 ;
24131 int val2 ;
24132 int ecode2 = 0 ;
24133 PyObject * obj0 = 0 ;
24134 PyObject * obj1 = 0 ;
24135 char * kwnames[] = {
24136 (char *) "self",(char *) "id", NULL
24137 };
24138
24139 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) SWIG_fail;
24140 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24141 if (!SWIG_IsOK(res1)) {
24142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
24143 }
24144 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24145 ecode2 = SWIG_AsVal_int(obj1, &val2);
24146 if (!SWIG_IsOK(ecode2)) {
24147 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "2"" of type '" "int""'");
24148 }
24149 arg2 = static_cast< int >(val2);
24150 {
24151 PyThreadState* __tstate = wxPyBeginAllowThreads();
24152 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
24153 wxPyEndAllowThreads(__tstate);
24154 if (PyErr_Occurred()) SWIG_fail;
24155 }
24156 resultobj = SWIG_From_int(static_cast< int >(result));
24157 return resultobj;
24158fail:
24159 return NULL;
24160}
24161
24162
24163SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24164 PyObject *resultobj = 0;
24165 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24166 int arg2 ;
24167 bool result;
24168 void *argp1 = 0 ;
24169 int res1 = 0 ;
24170 int val2 ;
24171 int ecode2 = 0 ;
24172 PyObject * obj0 = 0 ;
24173 PyObject * obj1 = 0 ;
24174 char * kwnames[] = {
24175 (char *) "self",(char *) "id", NULL
24176 };
24177
24178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) SWIG_fail;
24179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24180 if (!SWIG_IsOK(res1)) {
24181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolState" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24182 }
24183 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24184 ecode2 = SWIG_AsVal_int(obj1, &val2);
24185 if (!SWIG_IsOK(ecode2)) {
24186 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolState" "', expected argument " "2"" of type '" "int""'");
24187 }
24188 arg2 = static_cast< int >(val2);
24189 {
24190 PyThreadState* __tstate = wxPyBeginAllowThreads();
24191 result = (bool)(arg1)->GetToolState(arg2);
24192 wxPyEndAllowThreads(__tstate);
24193 if (PyErr_Occurred()) SWIG_fail;
24194 }
24195 {
24196 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24197 }
24198 return resultobj;
24199fail:
24200 return NULL;
24201}
24202
24203
24204SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24205 PyObject *resultobj = 0;
24206 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24207 int arg2 ;
24208 bool result;
24209 void *argp1 = 0 ;
24210 int res1 = 0 ;
24211 int val2 ;
24212 int ecode2 = 0 ;
24213 PyObject * obj0 = 0 ;
24214 PyObject * obj1 = 0 ;
24215 char * kwnames[] = {
24216 (char *) "self",(char *) "id", NULL
24217 };
24218
24219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
24220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24221 if (!SWIG_IsOK(res1)) {
24222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24223 }
24224 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24225 ecode2 = SWIG_AsVal_int(obj1, &val2);
24226 if (!SWIG_IsOK(ecode2)) {
24227 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "2"" of type '" "int""'");
24228 }
24229 arg2 = static_cast< int >(val2);
24230 {
24231 PyThreadState* __tstate = wxPyBeginAllowThreads();
24232 result = (bool)(arg1)->GetToolEnabled(arg2);
24233 wxPyEndAllowThreads(__tstate);
24234 if (PyErr_Occurred()) SWIG_fail;
24235 }
24236 {
24237 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24238 }
24239 return resultobj;
24240fail:
24241 return NULL;
24242}
24243
24244
24245SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24246 PyObject *resultobj = 0;
24247 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24248 int arg2 ;
24249 wxString *arg3 = 0 ;
24250 void *argp1 = 0 ;
24251 int res1 = 0 ;
24252 int val2 ;
24253 int ecode2 = 0 ;
24254 bool temp3 = false ;
24255 PyObject * obj0 = 0 ;
24256 PyObject * obj1 = 0 ;
24257 PyObject * obj2 = 0 ;
24258 char * kwnames[] = {
24259 (char *) "self",(char *) "id",(char *) "helpString", NULL
24260 };
24261
24262 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24263 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24264 if (!SWIG_IsOK(res1)) {
24265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24266 }
24267 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24268 ecode2 = SWIG_AsVal_int(obj1, &val2);
24269 if (!SWIG_IsOK(ecode2)) {
24270 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24271 }
24272 arg2 = static_cast< int >(val2);
24273 {
24274 arg3 = wxString_in_helper(obj2);
24275 if (arg3 == NULL) SWIG_fail;
24276 temp3 = true;
24277 }
24278 {
24279 PyThreadState* __tstate = wxPyBeginAllowThreads();
24280 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
24281 wxPyEndAllowThreads(__tstate);
24282 if (PyErr_Occurred()) SWIG_fail;
24283 }
24284 resultobj = SWIG_Py_Void();
24285 {
24286 if (temp3)
24287 delete arg3;
24288 }
24289 return resultobj;
24290fail:
24291 {
24292 if (temp3)
24293 delete arg3;
24294 }
24295 return NULL;
24296}
24297
24298
24299SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24300 PyObject *resultobj = 0;
24301 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24302 int arg2 ;
24303 wxString result;
24304 void *argp1 = 0 ;
24305 int res1 = 0 ;
24306 int val2 ;
24307 int ecode2 = 0 ;
24308 PyObject * obj0 = 0 ;
24309 PyObject * obj1 = 0 ;
24310 char * kwnames[] = {
24311 (char *) "self",(char *) "id", NULL
24312 };
24313
24314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24316 if (!SWIG_IsOK(res1)) {
24317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24318 }
24319 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24320 ecode2 = SWIG_AsVal_int(obj1, &val2);
24321 if (!SWIG_IsOK(ecode2)) {
24322 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24323 }
24324 arg2 = static_cast< int >(val2);
24325 {
24326 PyThreadState* __tstate = wxPyBeginAllowThreads();
24327 result = (arg1)->GetToolShortHelp(arg2);
24328 wxPyEndAllowThreads(__tstate);
24329 if (PyErr_Occurred()) SWIG_fail;
24330 }
24331 {
24332#if wxUSE_UNICODE
24333 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24334#else
24335 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24336#endif
24337 }
24338 return resultobj;
24339fail:
24340 return NULL;
24341}
24342
24343
24344SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24345 PyObject *resultobj = 0;
24346 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24347 int arg2 ;
24348 wxString *arg3 = 0 ;
24349 void *argp1 = 0 ;
24350 int res1 = 0 ;
24351 int val2 ;
24352 int ecode2 = 0 ;
24353 bool temp3 = false ;
24354 PyObject * obj0 = 0 ;
24355 PyObject * obj1 = 0 ;
24356 PyObject * obj2 = 0 ;
24357 char * kwnames[] = {
24358 (char *) "self",(char *) "id",(char *) "helpString", NULL
24359 };
24360
24361 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24362 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24363 if (!SWIG_IsOK(res1)) {
24364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24365 }
24366 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24367 ecode2 = SWIG_AsVal_int(obj1, &val2);
24368 if (!SWIG_IsOK(ecode2)) {
24369 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24370 }
24371 arg2 = static_cast< int >(val2);
24372 {
24373 arg3 = wxString_in_helper(obj2);
24374 if (arg3 == NULL) SWIG_fail;
24375 temp3 = true;
24376 }
24377 {
24378 PyThreadState* __tstate = wxPyBeginAllowThreads();
24379 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
24380 wxPyEndAllowThreads(__tstate);
24381 if (PyErr_Occurred()) SWIG_fail;
24382 }
24383 resultobj = SWIG_Py_Void();
24384 {
24385 if (temp3)
24386 delete arg3;
24387 }
24388 return resultobj;
24389fail:
24390 {
24391 if (temp3)
24392 delete arg3;
24393 }
24394 return NULL;
24395}
24396
24397
24398SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24399 PyObject *resultobj = 0;
24400 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24401 int arg2 ;
24402 wxString result;
24403 void *argp1 = 0 ;
24404 int res1 = 0 ;
24405 int val2 ;
24406 int ecode2 = 0 ;
24407 PyObject * obj0 = 0 ;
24408 PyObject * obj1 = 0 ;
24409 char * kwnames[] = {
24410 (char *) "self",(char *) "id", NULL
24411 };
24412
24413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24415 if (!SWIG_IsOK(res1)) {
24416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24417 }
24418 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24419 ecode2 = SWIG_AsVal_int(obj1, &val2);
24420 if (!SWIG_IsOK(ecode2)) {
24421 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24422 }
24423 arg2 = static_cast< int >(val2);
24424 {
24425 PyThreadState* __tstate = wxPyBeginAllowThreads();
24426 result = (arg1)->GetToolLongHelp(arg2);
24427 wxPyEndAllowThreads(__tstate);
24428 if (PyErr_Occurred()) SWIG_fail;
24429 }
24430 {
24431#if wxUSE_UNICODE
24432 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24433#else
24434 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24435#endif
24436 }
24437 return resultobj;
24438fail:
24439 return NULL;
24440}
24441
24442
24443SWIGINTERN PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24444 PyObject *resultobj = 0;
24445 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24446 int arg2 ;
24447 int arg3 ;
24448 void *argp1 = 0 ;
24449 int res1 = 0 ;
24450 int val2 ;
24451 int ecode2 = 0 ;
24452 int val3 ;
24453 int ecode3 = 0 ;
24454 PyObject * obj0 = 0 ;
24455 PyObject * obj1 = 0 ;
24456 PyObject * obj2 = 0 ;
24457 char * kwnames[] = {
24458 (char *) "self",(char *) "x",(char *) "y", NULL
24459 };
24460
24461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24462 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24463 if (!SWIG_IsOK(res1)) {
24464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24465 }
24466 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24467 ecode2 = SWIG_AsVal_int(obj1, &val2);
24468 if (!SWIG_IsOK(ecode2)) {
24469 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "2"" of type '" "int""'");
24470 }
24471 arg2 = static_cast< int >(val2);
24472 ecode3 = SWIG_AsVal_int(obj2, &val3);
24473 if (!SWIG_IsOK(ecode3)) {
24474 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "3"" of type '" "int""'");
24475 }
24476 arg3 = static_cast< int >(val3);
24477 {
24478 PyThreadState* __tstate = wxPyBeginAllowThreads();
24479 (arg1)->SetMargins(arg2,arg3);
24480 wxPyEndAllowThreads(__tstate);
24481 if (PyErr_Occurred()) SWIG_fail;
24482 }
24483 resultobj = SWIG_Py_Void();
24484 return resultobj;
24485fail:
24486 return NULL;
24487}
24488
24489
24490SWIGINTERN PyObject *_wrap_ToolBarBase_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24491 PyObject *resultobj = 0;
24492 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24493 wxSize *arg2 = 0 ;
24494 void *argp1 = 0 ;
24495 int res1 = 0 ;
24496 wxSize temp2 ;
24497 PyObject * obj0 = 0 ;
24498 PyObject * obj1 = 0 ;
24499 char * kwnames[] = {
24500 (char *) "self",(char *) "size", NULL
24501 };
24502
24503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",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_SetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24507 }
24508 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24509 {
24510 arg2 = &temp2;
24511 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
24512 }
24513 {
24514 PyThreadState* __tstate = wxPyBeginAllowThreads();
24515 (arg1)->SetMargins((wxSize const &)*arg2);
24516 wxPyEndAllowThreads(__tstate);
24517 if (PyErr_Occurred()) SWIG_fail;
24518 }
24519 resultobj = SWIG_Py_Void();
24520 return resultobj;
24521fail:
24522 return NULL;
24523}
24524
24525
24526SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24527 PyObject *resultobj = 0;
24528 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24529 int arg2 ;
24530 void *argp1 = 0 ;
24531 int res1 = 0 ;
24532 int val2 ;
24533 int ecode2 = 0 ;
24534 PyObject * obj0 = 0 ;
24535 PyObject * obj1 = 0 ;
24536 char * kwnames[] = {
24537 (char *) "self",(char *) "packing", NULL
24538 };
24539
24540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) SWIG_fail;
24541 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24542 if (!SWIG_IsOK(res1)) {
24543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24544 }
24545 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24546 ecode2 = SWIG_AsVal_int(obj1, &val2);
24547 if (!SWIG_IsOK(ecode2)) {
24548 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "2"" of type '" "int""'");
24549 }
24550 arg2 = static_cast< int >(val2);
24551 {
24552 PyThreadState* __tstate = wxPyBeginAllowThreads();
24553 (arg1)->SetToolPacking(arg2);
24554 wxPyEndAllowThreads(__tstate);
24555 if (PyErr_Occurred()) SWIG_fail;
24556 }
24557 resultobj = SWIG_Py_Void();
24558 return resultobj;
24559fail:
24560 return NULL;
24561}
24562
24563
24564SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24565 PyObject *resultobj = 0;
24566 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24567 int arg2 ;
24568 void *argp1 = 0 ;
24569 int res1 = 0 ;
24570 int val2 ;
24571 int ecode2 = 0 ;
24572 PyObject * obj0 = 0 ;
24573 PyObject * obj1 = 0 ;
24574 char * kwnames[] = {
24575 (char *) "self",(char *) "separation", NULL
24576 };
24577
24578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) SWIG_fail;
24579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24580 if (!SWIG_IsOK(res1)) {
24581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24582 }
24583 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24584 ecode2 = SWIG_AsVal_int(obj1, &val2);
24585 if (!SWIG_IsOK(ecode2)) {
24586 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "2"" of type '" "int""'");
24587 }
24588 arg2 = static_cast< int >(val2);
24589 {
24590 PyThreadState* __tstate = wxPyBeginAllowThreads();
24591 (arg1)->SetToolSeparation(arg2);
24592 wxPyEndAllowThreads(__tstate);
24593 if (PyErr_Occurred()) SWIG_fail;
24594 }
24595 resultobj = SWIG_Py_Void();
24596 return resultobj;
24597fail:
24598 return NULL;
d14a1e28
RD
24599}
24600
24601
0085ce49
RD
24602SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24603 PyObject *resultobj = 0;
24604 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24605 wxSize result;
24606 void *argp1 = 0 ;
24607 int res1 = 0 ;
24608 PyObject *swig_obj[1] ;
24609
24610 if (!args) SWIG_fail;
24611 swig_obj[0] = args;
24612 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24613 if (!SWIG_IsOK(res1)) {
24614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24615 }
24616 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24617 {
24618 PyThreadState* __tstate = wxPyBeginAllowThreads();
24619 result = (arg1)->GetToolMargins();
24620 wxPyEndAllowThreads(__tstate);
24621 if (PyErr_Occurred()) SWIG_fail;
24622 }
24623 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24624 return resultobj;
24625fail:
24626 return NULL;
d14a1e28
RD
24627}
24628
24629
0085ce49
RD
24630SWIGINTERN PyObject *_wrap_ToolBarBase_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24631 PyObject *resultobj = 0;
24632 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24633 wxSize result;
24634 void *argp1 = 0 ;
24635 int res1 = 0 ;
24636 PyObject *swig_obj[1] ;
24637
24638 if (!args) SWIG_fail;
24639 swig_obj[0] = args;
24640 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24641 if (!SWIG_IsOK(res1)) {
24642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24643 }
24644 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24645 {
24646 PyThreadState* __tstate = wxPyBeginAllowThreads();
24647 result = (arg1)->GetMargins();
24648 wxPyEndAllowThreads(__tstate);
24649 if (PyErr_Occurred()) SWIG_fail;
24650 }
24651 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24652 return resultobj;
24653fail:
24654 return NULL;
d14a1e28
RD
24655}
24656
24657
0085ce49
RD
24658SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24659 PyObject *resultobj = 0;
24660 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24661 int result;
24662 void *argp1 = 0 ;
24663 int res1 = 0 ;
24664 PyObject *swig_obj[1] ;
24665
24666 if (!args) SWIG_fail;
24667 swig_obj[0] = args;
24668 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24669 if (!SWIG_IsOK(res1)) {
24670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24671 }
24672 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24673 {
24674 PyThreadState* __tstate = wxPyBeginAllowThreads();
24675 result = (int)(arg1)->GetToolPacking();
24676 wxPyEndAllowThreads(__tstate);
24677 if (PyErr_Occurred()) SWIG_fail;
24678 }
24679 resultobj = SWIG_From_int(static_cast< int >(result));
24680 return resultobj;
24681fail:
24682 return NULL;
d14a1e28
RD
24683}
24684
24685
0085ce49
RD
24686SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24687 PyObject *resultobj = 0;
24688 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24689 int result;
24690 void *argp1 = 0 ;
24691 int res1 = 0 ;
24692 PyObject *swig_obj[1] ;
24693
24694 if (!args) SWIG_fail;
24695 swig_obj[0] = args;
24696 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24697 if (!SWIG_IsOK(res1)) {
24698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24699 }
24700 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24701 {
24702 PyThreadState* __tstate = wxPyBeginAllowThreads();
24703 result = (int)(arg1)->GetToolSeparation();
24704 wxPyEndAllowThreads(__tstate);
24705 if (PyErr_Occurred()) SWIG_fail;
24706 }
24707 resultobj = SWIG_From_int(static_cast< int >(result));
24708 return resultobj;
24709fail:
24710 return NULL;
24711}
24712
24713
24714SWIGINTERN PyObject *_wrap_ToolBarBase_SetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24715 PyObject *resultobj = 0;
24716 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24717 int arg2 ;
24718 void *argp1 = 0 ;
24719 int res1 = 0 ;
24720 int val2 ;
24721 int ecode2 = 0 ;
24722 PyObject * obj0 = 0 ;
24723 PyObject * obj1 = 0 ;
24724 char * kwnames[] = {
24725 (char *) "self",(char *) "nRows", NULL
24726 };
24727
24728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) SWIG_fail;
24729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24730 if (!SWIG_IsOK(res1)) {
24731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24732 }
24733 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24734 ecode2 = SWIG_AsVal_int(obj1, &val2);
24735 if (!SWIG_IsOK(ecode2)) {
24736 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetRows" "', expected argument " "2"" of type '" "int""'");
24737 }
24738 arg2 = static_cast< int >(val2);
24739 {
24740 PyThreadState* __tstate = wxPyBeginAllowThreads();
24741 (arg1)->SetRows(arg2);
24742 wxPyEndAllowThreads(__tstate);
24743 if (PyErr_Occurred()) SWIG_fail;
24744 }
24745 resultobj = SWIG_Py_Void();
24746 return resultobj;
24747fail:
24748 return NULL;
24749}
24750
24751
24752SWIGINTERN PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24753 PyObject *resultobj = 0;
24754 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24755 int arg2 ;
24756 int arg3 ;
24757 void *argp1 = 0 ;
24758 int res1 = 0 ;
24759 int val2 ;
24760 int ecode2 = 0 ;
24761 int val3 ;
24762 int ecode3 = 0 ;
24763 PyObject * obj0 = 0 ;
24764 PyObject * obj1 = 0 ;
24765 PyObject * obj2 = 0 ;
24766 char * kwnames[] = {
24767 (char *) "self",(char *) "rows",(char *) "cols", NULL
24768 };
24769
24770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24772 if (!SWIG_IsOK(res1)) {
24773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24774 }
24775 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24776 ecode2 = SWIG_AsVal_int(obj1, &val2);
24777 if (!SWIG_IsOK(ecode2)) {
24778 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "2"" of type '" "int""'");
24779 }
24780 arg2 = static_cast< int >(val2);
24781 ecode3 = SWIG_AsVal_int(obj2, &val3);
24782 if (!SWIG_IsOK(ecode3)) {
24783 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "3"" of type '" "int""'");
24784 }
24785 arg3 = static_cast< int >(val3);
24786 {
24787 PyThreadState* __tstate = wxPyBeginAllowThreads();
24788 (arg1)->SetMaxRowsCols(arg2,arg3);
24789 wxPyEndAllowThreads(__tstate);
24790 if (PyErr_Occurred()) SWIG_fail;
24791 }
24792 resultobj = SWIG_Py_Void();
24793 return resultobj;
24794fail:
24795 return NULL;
22bfe96c
RD
24796}
24797
24798
0085ce49
RD
24799SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24800 PyObject *resultobj = 0;
24801 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24802 int result;
24803 void *argp1 = 0 ;
24804 int res1 = 0 ;
24805 PyObject *swig_obj[1] ;
24806
24807 if (!args) SWIG_fail;
24808 swig_obj[0] = args;
24809 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24810 if (!SWIG_IsOK(res1)) {
24811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24812 }
24813 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24814 {
24815 PyThreadState* __tstate = wxPyBeginAllowThreads();
24816 result = (int)(arg1)->GetMaxRows();
24817 wxPyEndAllowThreads(__tstate);
24818 if (PyErr_Occurred()) SWIG_fail;
24819 }
24820 resultobj = SWIG_From_int(static_cast< int >(result));
24821 return resultobj;
24822fail:
24823 return NULL;
d14a1e28
RD
24824}
24825
24826
0085ce49
RD
24827SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24828 PyObject *resultobj = 0;
24829 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24830 int result;
24831 void *argp1 = 0 ;
24832 int res1 = 0 ;
24833 PyObject *swig_obj[1] ;
24834
24835 if (!args) SWIG_fail;
24836 swig_obj[0] = args;
24837 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24838 if (!SWIG_IsOK(res1)) {
24839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24840 }
24841 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24842 {
24843 PyThreadState* __tstate = wxPyBeginAllowThreads();
24844 result = (int)(arg1)->GetMaxCols();
24845 wxPyEndAllowThreads(__tstate);
24846 if (PyErr_Occurred()) SWIG_fail;
24847 }
24848 resultobj = SWIG_From_int(static_cast< int >(result));
24849 return resultobj;
24850fail:
24851 return NULL;
24852}
24853
24854
24855SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24856 PyObject *resultobj = 0;
24857 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24858 wxSize *arg2 = 0 ;
24859 void *argp1 = 0 ;
24860 int res1 = 0 ;
24861 wxSize temp2 ;
24862 PyObject * obj0 = 0 ;
24863 PyObject * obj1 = 0 ;
24864 char * kwnames[] = {
24865 (char *) "self",(char *) "size", NULL
24866 };
24867
24868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) SWIG_fail;
24869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24870 if (!SWIG_IsOK(res1)) {
24871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24872 }
24873 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24874 {
24875 arg2 = &temp2;
24876 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
24877 }
24878 {
24879 PyThreadState* __tstate = wxPyBeginAllowThreads();
24880 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
24881 wxPyEndAllowThreads(__tstate);
24882 if (PyErr_Occurred()) SWIG_fail;
24883 }
24884 resultobj = SWIG_Py_Void();
24885 return resultobj;
24886fail:
24887 return NULL;
d14a1e28
RD
24888}
24889
24890
0085ce49
RD
24891SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24892 PyObject *resultobj = 0;
24893 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24894 wxSize result;
24895 void *argp1 = 0 ;
24896 int res1 = 0 ;
24897 PyObject *swig_obj[1] ;
24898
24899 if (!args) SWIG_fail;
24900 swig_obj[0] = args;
24901 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24902 if (!SWIG_IsOK(res1)) {
24903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24904 }
24905 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24906 {
24907 PyThreadState* __tstate = wxPyBeginAllowThreads();
24908 result = (arg1)->GetToolBitmapSize();
24909 wxPyEndAllowThreads(__tstate);
24910 if (PyErr_Occurred()) SWIG_fail;
24911 }
24912 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24913 return resultobj;
24914fail:
24915 return NULL;
d14a1e28
RD
24916}
24917
24918
0085ce49
RD
24919SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24920 PyObject *resultobj = 0;
24921 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24922 wxSize result;
24923 void *argp1 = 0 ;
24924 int res1 = 0 ;
24925 PyObject *swig_obj[1] ;
24926
24927 if (!args) SWIG_fail;
24928 swig_obj[0] = args;
24929 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24930 if (!SWIG_IsOK(res1)) {
24931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24932 }
24933 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24934 {
24935 PyThreadState* __tstate = wxPyBeginAllowThreads();
24936 result = (arg1)->GetToolSize();
24937 wxPyEndAllowThreads(__tstate);
24938 if (PyErr_Occurred()) SWIG_fail;
24939 }
24940 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24941 return resultobj;
24942fail:
24943 return NULL;
24944}
24945
24946
24947SWIGINTERN PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24948 PyObject *resultobj = 0;
24949 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24950 int arg2 ;
24951 int arg3 ;
24952 wxToolBarToolBase *result = 0 ;
24953 void *argp1 = 0 ;
24954 int res1 = 0 ;
24955 int val2 ;
24956 int ecode2 = 0 ;
24957 int val3 ;
24958 int ecode3 = 0 ;
24959 PyObject * obj0 = 0 ;
24960 PyObject * obj1 = 0 ;
24961 PyObject * obj2 = 0 ;
24962 char * kwnames[] = {
24963 (char *) "self",(char *) "x",(char *) "y", NULL
24964 };
24965
24966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24968 if (!SWIG_IsOK(res1)) {
24969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24970 }
24971 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24972 ecode2 = SWIG_AsVal_int(obj1, &val2);
24973 if (!SWIG_IsOK(ecode2)) {
24974 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "2"" of type '" "int""'");
24975 }
24976 arg2 = static_cast< int >(val2);
24977 ecode3 = SWIG_AsVal_int(obj2, &val3);
24978 if (!SWIG_IsOK(ecode3)) {
24979 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "3"" of type '" "int""'");
24980 }
24981 arg3 = static_cast< int >(val3);
24982 {
24983 PyThreadState* __tstate = wxPyBeginAllowThreads();
24984 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
24985 wxPyEndAllowThreads(__tstate);
24986 if (PyErr_Occurred()) SWIG_fail;
24987 }
24988 {
24989 resultobj = wxPyMake_wxObject(result, (bool)0);
24990 }
24991 return resultobj;
24992fail:
24993 return NULL;
24994}
24995
24996
24997SWIGINTERN PyObject *_wrap_ToolBarBase_FindById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24998 PyObject *resultobj = 0;
24999 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25000 int arg2 ;
25001 wxToolBarToolBase *result = 0 ;
25002 void *argp1 = 0 ;
25003 int res1 = 0 ;
25004 int val2 ;
25005 int ecode2 = 0 ;
25006 PyObject * obj0 = 0 ;
25007 PyObject * obj1 = 0 ;
25008 char * kwnames[] = {
25009 (char *) "self",(char *) "toolid", NULL
25010 };
25011
25012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) SWIG_fail;
25013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25014 if (!SWIG_IsOK(res1)) {
25015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindById" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25016 }
25017 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25018 ecode2 = SWIG_AsVal_int(obj1, &val2);
25019 if (!SWIG_IsOK(ecode2)) {
25020 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindById" "', expected argument " "2"" of type '" "int""'");
25021 }
25022 arg2 = static_cast< int >(val2);
25023 {
25024 PyThreadState* __tstate = wxPyBeginAllowThreads();
25025 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
25026 wxPyEndAllowThreads(__tstate);
25027 if (PyErr_Occurred()) SWIG_fail;
25028 }
25029 {
25030 resultobj = wxPyMake_wxObject(result, (bool)0);
25031 }
25032 return resultobj;
25033fail:
25034 return NULL;
d14a1e28
RD
25035}
25036
25037
0085ce49
RD
25038SWIGINTERN PyObject *_wrap_ToolBarBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25039 PyObject *resultobj = 0;
25040 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25041 bool result;
25042 void *argp1 = 0 ;
25043 int res1 = 0 ;
25044 PyObject *swig_obj[1] ;
25045
25046 if (!args) SWIG_fail;
25047 swig_obj[0] = args;
25048 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25049 if (!SWIG_IsOK(res1)) {
25050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_IsVertical" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25051 }
25052 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25053 {
25054 PyThreadState* __tstate = wxPyBeginAllowThreads();
25055 result = (bool)(arg1)->IsVertical();
25056 wxPyEndAllowThreads(__tstate);
25057 if (PyErr_Occurred()) SWIG_fail;
25058 }
25059 {
25060 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25061 }
25062 return resultobj;
25063fail:
25064 return NULL;
25065}
25066
25067
25068SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25069 PyObject *resultobj = 0;
25070 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25071 size_t result;
25072 void *argp1 = 0 ;
25073 int res1 = 0 ;
25074 PyObject *swig_obj[1] ;
25075
25076 if (!args) SWIG_fail;
25077 swig_obj[0] = args;
25078 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25079 if (!SWIG_IsOK(res1)) {
25080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolsCount" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25081 }
25082 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25083 {
25084 PyThreadState* __tstate = wxPyBeginAllowThreads();
25085 result = (size_t)((wxToolBarBase const *)arg1)->GetToolsCount();
25086 wxPyEndAllowThreads(__tstate);
25087 if (PyErr_Occurred()) SWIG_fail;
25088 }
25089 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
25090 return resultobj;
25091fail:
25092 return NULL;
25093}
25094
25095
25096SWIGINTERN PyObject *ToolBarBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25097 PyObject *obj;
25098 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25099 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarBase, SWIG_NewClientData(obj));
25100 return SWIG_Py_Void();
25101}
25102
25103SWIGINTERN PyObject *_wrap_new_ToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25104 PyObject *resultobj = 0;
25105 wxWindow *arg1 = (wxWindow *) 0 ;
25106 int arg2 = (int) -1 ;
25107 wxPoint const &arg3_defvalue = wxDefaultPosition ;
25108 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
25109 wxSize const &arg4_defvalue = wxDefaultSize ;
25110 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
25111 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25112 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
25113 wxString *arg6 = (wxString *) &arg6_defvalue ;
25114 wxToolBar *result = 0 ;
25115 void *argp1 = 0 ;
25116 int res1 = 0 ;
25117 int val2 ;
25118 int ecode2 = 0 ;
25119 wxPoint temp3 ;
25120 wxSize temp4 ;
25121 long val5 ;
25122 int ecode5 = 0 ;
25123 bool temp6 = false ;
25124 PyObject * obj0 = 0 ;
25125 PyObject * obj1 = 0 ;
25126 PyObject * obj2 = 0 ;
25127 PyObject * obj3 = 0 ;
25128 PyObject * obj4 = 0 ;
25129 PyObject * obj5 = 0 ;
25130 char * kwnames[] = {
25131 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25132 };
25133
25134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25136 if (!SWIG_IsOK(res1)) {
25137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToolBar" "', expected argument " "1"" of type '" "wxWindow *""'");
25138 }
25139 arg1 = reinterpret_cast< wxWindow * >(argp1);
25140 if (obj1) {
25141 ecode2 = SWIG_AsVal_int(obj1, &val2);
25142 if (!SWIG_IsOK(ecode2)) {
25143 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolBar" "', expected argument " "2"" of type '" "int""'");
25144 }
25145 arg2 = static_cast< int >(val2);
25146 }
25147 if (obj2) {
25148 {
25149 arg3 = &temp3;
25150 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
25151 }
25152 }
25153 if (obj3) {
093d3ff1 25154 {
0085ce49
RD
25155 arg4 = &temp4;
25156 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 25157 }
0085ce49
RD
25158 }
25159 if (obj4) {
25160 ecode5 = SWIG_AsVal_long(obj4, &val5);
25161 if (!SWIG_IsOK(ecode5)) {
25162 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ToolBar" "', expected argument " "5"" of type '" "long""'");
25163 }
25164 arg5 = static_cast< long >(val5);
25165 }
25166 if (obj5) {
d14a1e28 25167 {
0085ce49
RD
25168 arg6 = wxString_in_helper(obj5);
25169 if (arg6 == NULL) SWIG_fail;
25170 temp6 = true;
d14a1e28 25171 }
0085ce49
RD
25172 }
25173 {
25174 if (!wxPyCheckForApp()) SWIG_fail;
25175 PyThreadState* __tstate = wxPyBeginAllowThreads();
25176 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
25177 wxPyEndAllowThreads(__tstate);
25178 if (PyErr_Occurred()) SWIG_fail;
25179 }
25180 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_NEW | 0 );
25181 {
25182 if (temp6)
25183 delete arg6;
25184 }
25185 return resultobj;
25186fail:
25187 {
25188 if (temp6)
25189 delete arg6;
25190 }
25191 return NULL;
d14a1e28
RD
25192}
25193
25194
0085ce49
RD
25195SWIGINTERN PyObject *_wrap_new_PreToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25196 PyObject *resultobj = 0;
25197 wxToolBar *result = 0 ;
25198
25199 if (!SWIG_Python_UnpackTuple(args,"new_PreToolBar",0,0,0)) SWIG_fail;
25200 {
25201 if (!wxPyCheckForApp()) SWIG_fail;
25202 PyThreadState* __tstate = wxPyBeginAllowThreads();
25203 result = (wxToolBar *)new wxToolBar();
25204 wxPyEndAllowThreads(__tstate);
25205 if (PyErr_Occurred()) SWIG_fail;
25206 }
25207 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_OWN | 0 );
25208 return resultobj;
25209fail:
25210 return NULL;
25211}
25212
25213
25214SWIGINTERN PyObject *_wrap_ToolBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25215 PyObject *resultobj = 0;
25216 wxToolBar *arg1 = (wxToolBar *) 0 ;
25217 wxWindow *arg2 = (wxWindow *) 0 ;
25218 int arg3 = (int) -1 ;
25219 wxPoint const &arg4_defvalue = wxDefaultPosition ;
25220 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
25221 wxSize const &arg5_defvalue = wxDefaultSize ;
25222 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
25223 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25224 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
25225 wxString *arg7 = (wxString *) &arg7_defvalue ;
25226 bool result;
25227 void *argp1 = 0 ;
25228 int res1 = 0 ;
25229 void *argp2 = 0 ;
25230 int res2 = 0 ;
25231 int val3 ;
25232 int ecode3 = 0 ;
25233 wxPoint temp4 ;
25234 wxSize temp5 ;
25235 long val6 ;
25236 int ecode6 = 0 ;
25237 bool temp7 = false ;
25238 PyObject * obj0 = 0 ;
25239 PyObject * obj1 = 0 ;
25240 PyObject * obj2 = 0 ;
25241 PyObject * obj3 = 0 ;
25242 PyObject * obj4 = 0 ;
25243 PyObject * obj5 = 0 ;
25244 PyObject * obj6 = 0 ;
25245 char * kwnames[] = {
25246 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25247 };
25248
25249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
25251 if (!SWIG_IsOK(res1)) {
25252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_Create" "', expected argument " "1"" of type '" "wxToolBar *""'");
25253 }
25254 arg1 = reinterpret_cast< wxToolBar * >(argp1);
25255 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25256 if (!SWIG_IsOK(res2)) {
25257 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
25258 }
25259 arg2 = reinterpret_cast< wxWindow * >(argp2);
25260 if (obj2) {
25261 ecode3 = SWIG_AsVal_int(obj2, &val3);
25262 if (!SWIG_IsOK(ecode3)) {
25263 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_Create" "', expected argument " "3"" of type '" "int""'");
25264 }
25265 arg3 = static_cast< int >(val3);
25266 }
25267 if (obj3) {
25268 {
25269 arg4 = &temp4;
25270 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
22bfe96c 25271 }
0085ce49
RD
25272 }
25273 if (obj4) {
22bfe96c 25274 {
0085ce49
RD
25275 arg5 = &temp5;
25276 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
22bfe96c 25277 }
0085ce49
RD
25278 }
25279 if (obj5) {
25280 ecode6 = SWIG_AsVal_long(obj5, &val6);
25281 if (!SWIG_IsOK(ecode6)) {
25282 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBar_Create" "', expected argument " "6"" of type '" "long""'");
25283 }
25284 arg6 = static_cast< long >(val6);
25285 }
25286 if (obj6) {
22bfe96c 25287 {
0085ce49
RD
25288 arg7 = wxString_in_helper(obj6);
25289 if (arg7 == NULL) SWIG_fail;
25290 temp7 = true;
22bfe96c 25291 }
0085ce49
RD
25292 }
25293 {
25294 PyThreadState* __tstate = wxPyBeginAllowThreads();
25295 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
25296 wxPyEndAllowThreads(__tstate);
25297 if (PyErr_Occurred()) SWIG_fail;
25298 }
25299 {
25300 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25301 }
25302 {
25303 if (temp7)
25304 delete arg7;
25305 }
25306 return resultobj;
25307fail:
25308 {
25309 if (temp7)
25310 delete arg7;
25311 }
25312 return NULL;
25313}
25314
25315
25316SWIGINTERN PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25317 PyObject *resultobj = 0;
25318 wxToolBar *arg1 = (wxToolBar *) 0 ;
25319 int arg2 ;
25320 int arg3 ;
25321 wxToolBarToolBase *result = 0 ;
25322 void *argp1 = 0 ;
25323 int res1 = 0 ;
25324 int val2 ;
25325 int ecode2 = 0 ;
25326 int val3 ;
25327 int ecode3 = 0 ;
25328 PyObject * obj0 = 0 ;
25329 PyObject * obj1 = 0 ;
25330 PyObject * obj2 = 0 ;
25331 char * kwnames[] = {
25332 (char *) "self",(char *) "x",(char *) "y", NULL
25333 };
25334
25335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
25337 if (!SWIG_IsOK(res1)) {
25338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBar *""'");
25339 }
25340 arg1 = reinterpret_cast< wxToolBar * >(argp1);
25341 ecode2 = SWIG_AsVal_int(obj1, &val2);
25342 if (!SWIG_IsOK(ecode2)) {
25343 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBar_FindToolForPosition" "', expected argument " "2"" of type '" "int""'");
25344 }
25345 arg2 = static_cast< int >(val2);
25346 ecode3 = SWIG_AsVal_int(obj2, &val3);
25347 if (!SWIG_IsOK(ecode3)) {
25348 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_FindToolForPosition" "', expected argument " "3"" of type '" "int""'");
25349 }
25350 arg3 = static_cast< int >(val3);
25351 {
25352 PyThreadState* __tstate = wxPyBeginAllowThreads();
25353 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
25354 wxPyEndAllowThreads(__tstate);
25355 if (PyErr_Occurred()) SWIG_fail;
25356 }
25357 {
25358 resultobj = wxPyMake_wxObject(result, (bool)0);
25359 }
25360 return resultobj;
25361fail:
25362 return NULL;
25363}
25364
25365
25366SWIGINTERN PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25367 PyObject *resultobj = 0;
25368 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
25369 SwigValueWrapper<wxVisualAttributes > result;
25370 int val1 ;
25371 int ecode1 = 0 ;
25372 PyObject * obj0 = 0 ;
25373 char * kwnames[] = {
25374 (char *) "variant", NULL
25375 };
25376
25377 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
25378 if (obj0) {
25379 ecode1 = SWIG_AsVal_int(obj0, &val1);
25380 if (!SWIG_IsOK(ecode1)) {
25381 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
25382 }
25383 arg1 = static_cast< wxWindowVariant >(val1);
25384 }
25385 {
25386 if (!wxPyCheckForApp()) SWIG_fail;
25387 PyThreadState* __tstate = wxPyBeginAllowThreads();
25388 result = wxToolBar::GetClassDefaultAttributes(arg1);
25389 wxPyEndAllowThreads(__tstate);
25390 if (PyErr_Occurred()) SWIG_fail;
25391 }
25392 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
25393 return resultobj;
25394fail:
25395 return NULL;
22bfe96c
RD
25396}
25397
25398
0085ce49
RD
25399SWIGINTERN PyObject *ToolBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25400 PyObject *obj;
25401 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25402 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBar, SWIG_NewClientData(obj));
25403 return SWIG_Py_Void();
d14a1e28 25404}
0085ce49
RD
25405
25406SWIGINTERN PyObject *ToolBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25407 return SWIG_Python_InitShadowInstance(args);
b2dc1044
RD
25408}
25409
0085ce49
RD
25410SWIGINTERN int ListCtrlNameStr_set(PyObject *) {
25411 SWIG_Error(SWIG_AttributeError,"Variable ListCtrlNameStr is read-only.");
25412 return 1;
25413}
b2dc1044 25414
0085ce49
RD
25415
25416SWIGINTERN PyObject *ListCtrlNameStr_get(void) {
25417 PyObject *pyobj = 0;
25418
25419 {
b2dc1044 25420#if wxUSE_UNICODE
0085ce49 25421 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
b2dc1044 25422#else
0085ce49 25423 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
b2dc1044 25424#endif
0085ce49
RD
25425 }
25426 return pyobj;
25427}
25428
25429
25430SWIGINTERN PyObject *_wrap_new_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25431 PyObject *resultobj = 0;
25432 wxColour const &arg1_defvalue = wxNullColour ;
25433 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
25434 wxColour const &arg2_defvalue = wxNullColour ;
25435 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
25436 wxFont const &arg3_defvalue = wxNullFont ;
25437 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
25438 wxListItemAttr *result = 0 ;
25439 wxColour temp1 ;
25440 wxColour temp2 ;
25441 void *argp3 = 0 ;
25442 int res3 = 0 ;
25443 PyObject * obj0 = 0 ;
25444 PyObject * obj1 = 0 ;
25445 PyObject * obj2 = 0 ;
25446 char * kwnames[] = {
25447 (char *) "colText",(char *) "colBack",(char *) "font", NULL
25448 };
25449
25450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25451 if (obj0) {
d14a1e28 25452 {
0085ce49
RD
25453 arg1 = &temp1;
25454 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
d14a1e28 25455 }
0085ce49
RD
25456 }
25457 if (obj1) {
d14a1e28 25458 {
0085ce49
RD
25459 arg2 = &temp2;
25460 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d14a1e28 25461 }
0085ce49
RD
25462 }
25463 if (obj2) {
25464 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
25465 if (!SWIG_IsOK(res3)) {
25466 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
d14a1e28 25467 }
0085ce49
RD
25468 if (!argp3) {
25469 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
d14a1e28 25470 }
0085ce49
RD
25471 arg3 = reinterpret_cast< wxFont * >(argp3);
25472 }
25473 {
25474 PyThreadState* __tstate = wxPyBeginAllowThreads();
25475 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
25476 wxPyEndAllowThreads(__tstate);
25477 if (PyErr_Occurred()) SWIG_fail;
25478 }
25479 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_NEW | 0 );
25480 return resultobj;
25481fail:
25482 return NULL;
d14a1e28
RD
25483}
25484
25485
0085ce49
RD
25486SWIGINTERN PyObject *_wrap_delete_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25487 PyObject *resultobj = 0;
25488 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25489 void *argp1 = 0 ;
25490 int res1 = 0 ;
25491 PyObject *swig_obj[1] ;
25492
25493 if (!args) SWIG_fail;
25494 swig_obj[0] = args;
25495 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_DISOWN | 0 );
25496 if (!SWIG_IsOK(res1)) {
25497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItemAttr" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25498 }
25499 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25500 {
25501 PyThreadState* __tstate = wxPyBeginAllowThreads();
25502 delete arg1;
d14a1e28 25503
0085ce49
RD
25504 wxPyEndAllowThreads(__tstate);
25505 if (PyErr_Occurred()) SWIG_fail;
25506 }
25507 resultobj = SWIG_Py_Void();
25508 return resultobj;
25509fail:
25510 return NULL;
25511}
25512
25513
25514SWIGINTERN PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25515 PyObject *resultobj = 0;
25516 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25517 wxColour *arg2 = 0 ;
25518 void *argp1 = 0 ;
25519 int res1 = 0 ;
25520 wxColour temp2 ;
25521 PyObject * obj0 = 0 ;
25522 PyObject * obj1 = 0 ;
25523 char * kwnames[] = {
25524 (char *) "self",(char *) "colText", NULL
25525 };
25526
25527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
25528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25529 if (!SWIG_IsOK(res1)) {
25530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25531 }
25532 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25533 {
25534 arg2 = &temp2;
25535 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25536 }
25537 {
25538 PyThreadState* __tstate = wxPyBeginAllowThreads();
25539 (arg1)->SetTextColour((wxColour const &)*arg2);
25540 wxPyEndAllowThreads(__tstate);
25541 if (PyErr_Occurred()) SWIG_fail;
25542 }
25543 resultobj = SWIG_Py_Void();
25544 return resultobj;
25545fail:
25546 return NULL;
25547}
25548
25549
25550SWIGINTERN PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25551 PyObject *resultobj = 0;
25552 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25553 wxColour *arg2 = 0 ;
25554 void *argp1 = 0 ;
25555 int res1 = 0 ;
25556 wxColour temp2 ;
25557 PyObject * obj0 = 0 ;
25558 PyObject * obj1 = 0 ;
25559 char * kwnames[] = {
25560 (char *) "self",(char *) "colBack", NULL
25561 };
25562
25563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
25564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25565 if (!SWIG_IsOK(res1)) {
25566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25567 }
25568 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25569 {
25570 arg2 = &temp2;
25571 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25572 }
25573 {
25574 PyThreadState* __tstate = wxPyBeginAllowThreads();
25575 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
25576 wxPyEndAllowThreads(__tstate);
25577 if (PyErr_Occurred()) SWIG_fail;
25578 }
25579 resultobj = SWIG_Py_Void();
25580 return resultobj;
25581fail:
25582 return NULL;
25583}
25584
25585
25586SWIGINTERN PyObject *_wrap_ListItemAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25587 PyObject *resultobj = 0;
25588 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25589 wxFont *arg2 = 0 ;
25590 void *argp1 = 0 ;
25591 int res1 = 0 ;
25592 void *argp2 = 0 ;
25593 int res2 = 0 ;
25594 PyObject * obj0 = 0 ;
25595 PyObject * obj1 = 0 ;
25596 char * kwnames[] = {
25597 (char *) "self",(char *) "font", NULL
25598 };
25599
25600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
25601 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25602 if (!SWIG_IsOK(res1)) {
25603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25604 }
25605 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25606 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
25607 if (!SWIG_IsOK(res2)) {
25608 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25609 }
25610 if (!argp2) {
25611 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25612 }
25613 arg2 = reinterpret_cast< wxFont * >(argp2);
25614 {
25615 PyThreadState* __tstate = wxPyBeginAllowThreads();
25616 (arg1)->SetFont((wxFont const &)*arg2);
25617 wxPyEndAllowThreads(__tstate);
25618 if (PyErr_Occurred()) SWIG_fail;
25619 }
25620 resultobj = SWIG_Py_Void();
25621 return resultobj;
25622fail:
25623 return NULL;
d14a1e28
RD
25624}
25625
25626
0085ce49
RD
25627SWIGINTERN PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25628 PyObject *resultobj = 0;
25629 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25630 bool result;
25631 void *argp1 = 0 ;
25632 int res1 = 0 ;
25633 PyObject *swig_obj[1] ;
25634
25635 if (!args) SWIG_fail;
25636 swig_obj[0] = args;
25637 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25638 if (!SWIG_IsOK(res1)) {
25639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25640 }
25641 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25642 {
25643 PyThreadState* __tstate = wxPyBeginAllowThreads();
25644 result = (bool)(arg1)->HasTextColour();
25645 wxPyEndAllowThreads(__tstate);
25646 if (PyErr_Occurred()) SWIG_fail;
25647 }
25648 {
25649 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25650 }
25651 return resultobj;
25652fail:
25653 return NULL;
d14a1e28
RD
25654}
25655
25656
0085ce49
RD
25657SWIGINTERN PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25658 PyObject *resultobj = 0;
25659 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25660 bool result;
25661 void *argp1 = 0 ;
25662 int res1 = 0 ;
25663 PyObject *swig_obj[1] ;
25664
25665 if (!args) SWIG_fail;
25666 swig_obj[0] = args;
25667 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25668 if (!SWIG_IsOK(res1)) {
25669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25670 }
25671 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25672 {
25673 PyThreadState* __tstate = wxPyBeginAllowThreads();
25674 result = (bool)(arg1)->HasBackgroundColour();
25675 wxPyEndAllowThreads(__tstate);
25676 if (PyErr_Occurred()) SWIG_fail;
25677 }
25678 {
25679 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25680 }
25681 return resultobj;
25682fail:
25683 return NULL;
d14a1e28
RD
25684}
25685
25686
0085ce49
RD
25687SWIGINTERN PyObject *_wrap_ListItemAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25688 PyObject *resultobj = 0;
25689 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25690 bool result;
25691 void *argp1 = 0 ;
25692 int res1 = 0 ;
25693 PyObject *swig_obj[1] ;
25694
25695 if (!args) SWIG_fail;
25696 swig_obj[0] = args;
25697 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25698 if (!SWIG_IsOK(res1)) {
25699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25700 }
25701 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25702 {
25703 PyThreadState* __tstate = wxPyBeginAllowThreads();
25704 result = (bool)(arg1)->HasFont();
25705 wxPyEndAllowThreads(__tstate);
25706 if (PyErr_Occurred()) SWIG_fail;
25707 }
25708 {
25709 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25710 }
25711 return resultobj;
25712fail:
25713 return NULL;
d14a1e28
RD
25714}
25715
25716
0085ce49
RD
25717SWIGINTERN PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25718 PyObject *resultobj = 0;
25719 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25720 wxColour result;
25721 void *argp1 = 0 ;
25722 int res1 = 0 ;
25723 PyObject *swig_obj[1] ;
25724
25725 if (!args) SWIG_fail;
25726 swig_obj[0] = args;
25727 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25728 if (!SWIG_IsOK(res1)) {
25729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25730 }
25731 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25732 {
25733 PyThreadState* __tstate = wxPyBeginAllowThreads();
25734 result = (arg1)->GetTextColour();
25735 wxPyEndAllowThreads(__tstate);
25736 if (PyErr_Occurred()) SWIG_fail;
25737 }
25738 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
25739 return resultobj;
25740fail:
25741 return NULL;
d14a1e28
RD
25742}
25743
25744
0085ce49
RD
25745SWIGINTERN PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25746 PyObject *resultobj = 0;
25747 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25748 wxColour result;
25749 void *argp1 = 0 ;
25750 int res1 = 0 ;
25751 PyObject *swig_obj[1] ;
25752
25753 if (!args) SWIG_fail;
25754 swig_obj[0] = args;
25755 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25756 if (!SWIG_IsOK(res1)) {
25757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25758 }
25759 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25760 {
25761 PyThreadState* __tstate = wxPyBeginAllowThreads();
25762 result = (arg1)->GetBackgroundColour();
25763 wxPyEndAllowThreads(__tstate);
25764 if (PyErr_Occurred()) SWIG_fail;
25765 }
25766 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
25767 return resultobj;
25768fail:
25769 return NULL;
d14a1e28
RD
25770}
25771
25772
0085ce49
RD
25773SWIGINTERN PyObject *_wrap_ListItemAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25774 PyObject *resultobj = 0;
25775 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25776 wxFont result;
25777 void *argp1 = 0 ;
25778 int res1 = 0 ;
25779 PyObject *swig_obj[1] ;
25780
25781 if (!args) SWIG_fail;
25782 swig_obj[0] = args;
25783 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25784 if (!SWIG_IsOK(res1)) {
25785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25786 }
25787 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25788 {
25789 PyThreadState* __tstate = wxPyBeginAllowThreads();
25790 result = (arg1)->GetFont();
25791 wxPyEndAllowThreads(__tstate);
25792 if (PyErr_Occurred()) SWIG_fail;
25793 }
25794 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
25795 return resultobj;
25796fail:
25797 return NULL;
25798}
25799
25800
25801SWIGINTERN PyObject *_wrap_ListItemAttr_AssignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25802 PyObject *resultobj = 0;
25803 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25804 wxListItemAttr *arg2 = 0 ;
25805 void *argp1 = 0 ;
25806 int res1 = 0 ;
25807 void *argp2 = 0 ;
25808 int res2 = 0 ;
25809 PyObject * obj0 = 0 ;
25810 PyObject * obj1 = 0 ;
25811 char * kwnames[] = {
25812 (char *) "self",(char *) "source", NULL
25813 };
25814
25815 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_AssignFrom",kwnames,&obj0,&obj1)) SWIG_fail;
25816 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25817 if (!SWIG_IsOK(res1)) {
25818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25819 }
25820 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25821 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItemAttr, 0 | 0);
25822 if (!SWIG_IsOK(res2)) {
25823 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
25824 }
25825 if (!argp2) {
25826 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
25827 }
25828 arg2 = reinterpret_cast< wxListItemAttr * >(argp2);
25829 {
25830 PyThreadState* __tstate = wxPyBeginAllowThreads();
25831 (arg1)->AssignFrom((wxListItemAttr const &)*arg2);
25832 wxPyEndAllowThreads(__tstate);
25833 if (PyErr_Occurred()) SWIG_fail;
25834 }
25835 resultobj = SWIG_Py_Void();
25836 return resultobj;
25837fail:
25838 return NULL;
d14a1e28
RD
25839}
25840
25841
0085ce49
RD
25842SWIGINTERN PyObject *_wrap_ListItemAttr_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25843 PyObject *resultobj = 0;
25844 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25845 void *argp1 = 0 ;
25846 int res1 = 0 ;
25847 PyObject *swig_obj[1] ;
25848
25849 if (!args) SWIG_fail;
25850 swig_obj[0] = args;
25851 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25852 if (!SWIG_IsOK(res1)) {
25853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_Destroy" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25854 }
25855 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25856 {
25857 PyThreadState* __tstate = wxPyBeginAllowThreads();
25858 wxListItemAttr_Destroy(arg1);
25859 wxPyEndAllowThreads(__tstate);
25860 if (PyErr_Occurred()) SWIG_fail;
25861 }
25862 resultobj = SWIG_Py_Void();
25863 return resultobj;
25864fail:
25865 return NULL;
d14a1e28
RD
25866}
25867
25868
0085ce49
RD
25869SWIGINTERN PyObject *ListItemAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25870 PyObject *obj;
25871 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25872 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItemAttr, SWIG_NewClientData(obj));
25873 return SWIG_Py_Void();
d14a1e28
RD
25874}
25875
0085ce49
RD
25876SWIGINTERN PyObject *ListItemAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25877 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
25878}
25879
0085ce49
RD
25880SWIGINTERN PyObject *_wrap_new_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25881 PyObject *resultobj = 0;
25882 wxListItem *result = 0 ;
25883
25884 if (!SWIG_Python_UnpackTuple(args,"new_ListItem",0,0,0)) SWIG_fail;
25885 {
25886 PyThreadState* __tstate = wxPyBeginAllowThreads();
25887 result = (wxListItem *)new wxListItem();
25888 wxPyEndAllowThreads(__tstate);
25889 if (PyErr_Occurred()) SWIG_fail;
25890 }
25891 {
25892 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
25893 }
25894 return resultobj;
25895fail:
25896 return NULL;
d14a1e28
RD
25897}
25898
25899
0085ce49
RD
25900SWIGINTERN PyObject *_wrap_delete_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25901 PyObject *resultobj = 0;
25902 wxListItem *arg1 = (wxListItem *) 0 ;
25903 void *argp1 = 0 ;
25904 int res1 = 0 ;
25905 PyObject *swig_obj[1] ;
25906
25907 if (!args) SWIG_fail;
25908 swig_obj[0] = args;
25909 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, SWIG_POINTER_DISOWN | 0 );
25910 if (!SWIG_IsOK(res1)) {
25911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItem" "', expected argument " "1"" of type '" "wxListItem *""'");
25912 }
25913 arg1 = reinterpret_cast< wxListItem * >(argp1);
25914 {
25915 PyThreadState* __tstate = wxPyBeginAllowThreads();
25916 delete arg1;
d14a1e28 25917
0085ce49
RD
25918 wxPyEndAllowThreads(__tstate);
25919 if (PyErr_Occurred()) SWIG_fail;
25920 }
25921 resultobj = SWIG_Py_Void();
25922 return resultobj;
25923fail:
25924 return NULL;
d14a1e28
RD
25925}
25926
25927
0085ce49
RD
25928SWIGINTERN PyObject *_wrap_ListItem_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25929 PyObject *resultobj = 0;
25930 wxListItem *arg1 = (wxListItem *) 0 ;
25931 void *argp1 = 0 ;
25932 int res1 = 0 ;
25933 PyObject *swig_obj[1] ;
25934
25935 if (!args) SWIG_fail;
25936 swig_obj[0] = args;
25937 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
25938 if (!SWIG_IsOK(res1)) {
25939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_Clear" "', expected argument " "1"" of type '" "wxListItem *""'");
25940 }
25941 arg1 = reinterpret_cast< wxListItem * >(argp1);
25942 {
25943 PyThreadState* __tstate = wxPyBeginAllowThreads();
25944 (arg1)->Clear();
25945 wxPyEndAllowThreads(__tstate);
25946 if (PyErr_Occurred()) SWIG_fail;
25947 }
25948 resultobj = SWIG_Py_Void();
25949 return resultobj;
25950fail:
25951 return NULL;
d14a1e28
RD
25952}
25953
25954
0085ce49
RD
25955SWIGINTERN PyObject *_wrap_ListItem_ClearAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25956 PyObject *resultobj = 0;
25957 wxListItem *arg1 = (wxListItem *) 0 ;
25958 void *argp1 = 0 ;
25959 int res1 = 0 ;
25960 PyObject *swig_obj[1] ;
25961
25962 if (!args) SWIG_fail;
25963 swig_obj[0] = args;
25964 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
25965 if (!SWIG_IsOK(res1)) {
25966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_ClearAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
25967 }
25968 arg1 = reinterpret_cast< wxListItem * >(argp1);
25969 {
25970 PyThreadState* __tstate = wxPyBeginAllowThreads();
25971 (arg1)->ClearAttributes();
25972 wxPyEndAllowThreads(__tstate);
25973 if (PyErr_Occurred()) SWIG_fail;
25974 }
25975 resultobj = SWIG_Py_Void();
25976 return resultobj;
25977fail:
25978 return NULL;
25979}
25980
25981
25982SWIGINTERN PyObject *_wrap_ListItem_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25983 PyObject *resultobj = 0;
25984 wxListItem *arg1 = (wxListItem *) 0 ;
25985 long arg2 ;
25986 void *argp1 = 0 ;
25987 int res1 = 0 ;
25988 long val2 ;
25989 int ecode2 = 0 ;
25990 PyObject * obj0 = 0 ;
25991 PyObject * obj1 = 0 ;
25992 char * kwnames[] = {
25993 (char *) "self",(char *) "mask", NULL
25994 };
25995
25996 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
25997 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
25998 if (!SWIG_IsOK(res1)) {
25999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26000 }
26001 arg1 = reinterpret_cast< wxListItem * >(argp1);
26002 ecode2 = SWIG_AsVal_long(obj1, &val2);
26003 if (!SWIG_IsOK(ecode2)) {
26004 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetMask" "', expected argument " "2"" of type '" "long""'");
26005 }
26006 arg2 = static_cast< long >(val2);
26007 {
26008 PyThreadState* __tstate = wxPyBeginAllowThreads();
26009 (arg1)->SetMask(arg2);
26010 wxPyEndAllowThreads(__tstate);
26011 if (PyErr_Occurred()) SWIG_fail;
26012 }
26013 resultobj = SWIG_Py_Void();
26014 return resultobj;
26015fail:
26016 return NULL;
26017}
26018
26019
26020SWIGINTERN PyObject *_wrap_ListItem_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26021 PyObject *resultobj = 0;
26022 wxListItem *arg1 = (wxListItem *) 0 ;
26023 long arg2 ;
26024 void *argp1 = 0 ;
26025 int res1 = 0 ;
26026 long val2 ;
26027 int ecode2 = 0 ;
26028 PyObject * obj0 = 0 ;
26029 PyObject * obj1 = 0 ;
26030 char * kwnames[] = {
26031 (char *) "self",(char *) "id", NULL
26032 };
26033
26034 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
26035 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26036 if (!SWIG_IsOK(res1)) {
26037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26038 }
26039 arg1 = reinterpret_cast< wxListItem * >(argp1);
26040 ecode2 = SWIG_AsVal_long(obj1, &val2);
26041 if (!SWIG_IsOK(ecode2)) {
26042 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetId" "', expected argument " "2"" of type '" "long""'");
26043 }
26044 arg2 = static_cast< long >(val2);
26045 {
26046 PyThreadState* __tstate = wxPyBeginAllowThreads();
26047 (arg1)->SetId(arg2);
26048 wxPyEndAllowThreads(__tstate);
26049 if (PyErr_Occurred()) SWIG_fail;
26050 }
26051 resultobj = SWIG_Py_Void();
26052 return resultobj;
26053fail:
26054 return NULL;
26055}
26056
26057
26058SWIGINTERN PyObject *_wrap_ListItem_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26059 PyObject *resultobj = 0;
26060 wxListItem *arg1 = (wxListItem *) 0 ;
26061 int arg2 ;
26062 void *argp1 = 0 ;
26063 int res1 = 0 ;
26064 int val2 ;
26065 int ecode2 = 0 ;
26066 PyObject * obj0 = 0 ;
26067 PyObject * obj1 = 0 ;
26068 char * kwnames[] = {
26069 (char *) "self",(char *) "col", NULL
26070 };
26071
26072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
26073 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26074 if (!SWIG_IsOK(res1)) {
26075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26076 }
26077 arg1 = reinterpret_cast< wxListItem * >(argp1);
26078 ecode2 = SWIG_AsVal_int(obj1, &val2);
26079 if (!SWIG_IsOK(ecode2)) {
26080 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetColumn" "', expected argument " "2"" of type '" "int""'");
26081 }
26082 arg2 = static_cast< int >(val2);
26083 {
26084 PyThreadState* __tstate = wxPyBeginAllowThreads();
26085 (arg1)->SetColumn(arg2);
26086 wxPyEndAllowThreads(__tstate);
26087 if (PyErr_Occurred()) SWIG_fail;
26088 }
26089 resultobj = SWIG_Py_Void();
26090 return resultobj;
26091fail:
26092 return NULL;
26093}
26094
26095
26096SWIGINTERN PyObject *_wrap_ListItem_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26097 PyObject *resultobj = 0;
26098 wxListItem *arg1 = (wxListItem *) 0 ;
26099 long arg2 ;
26100 void *argp1 = 0 ;
26101 int res1 = 0 ;
26102 long val2 ;
26103 int ecode2 = 0 ;
26104 PyObject * obj0 = 0 ;
26105 PyObject * obj1 = 0 ;
26106 char * kwnames[] = {
26107 (char *) "self",(char *) "state", NULL
26108 };
26109
26110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) SWIG_fail;
26111 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26112 if (!SWIG_IsOK(res1)) {
26113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26114 }
26115 arg1 = reinterpret_cast< wxListItem * >(argp1);
26116 ecode2 = SWIG_AsVal_long(obj1, &val2);
26117 if (!SWIG_IsOK(ecode2)) {
26118 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetState" "', expected argument " "2"" of type '" "long""'");
26119 }
26120 arg2 = static_cast< long >(val2);
26121 {
26122 PyThreadState* __tstate = wxPyBeginAllowThreads();
26123 (arg1)->SetState(arg2);
26124 wxPyEndAllowThreads(__tstate);
26125 if (PyErr_Occurred()) SWIG_fail;
26126 }
26127 resultobj = SWIG_Py_Void();
26128 return resultobj;
26129fail:
26130 return NULL;
26131}
26132
26133
26134SWIGINTERN PyObject *_wrap_ListItem_SetStateMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26135 PyObject *resultobj = 0;
26136 wxListItem *arg1 = (wxListItem *) 0 ;
26137 long arg2 ;
26138 void *argp1 = 0 ;
26139 int res1 = 0 ;
26140 long val2 ;
26141 int ecode2 = 0 ;
26142 PyObject * obj0 = 0 ;
26143 PyObject * obj1 = 0 ;
26144 char * kwnames[] = {
26145 (char *) "self",(char *) "stateMask", NULL
26146 };
26147
26148 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) SWIG_fail;
26149 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26150 if (!SWIG_IsOK(res1)) {
26151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetStateMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26152 }
26153 arg1 = reinterpret_cast< wxListItem * >(argp1);
26154 ecode2 = SWIG_AsVal_long(obj1, &val2);
26155 if (!SWIG_IsOK(ecode2)) {
26156 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetStateMask" "', expected argument " "2"" of type '" "long""'");
26157 }
26158 arg2 = static_cast< long >(val2);
26159 {
26160 PyThreadState* __tstate = wxPyBeginAllowThreads();
26161 (arg1)->SetStateMask(arg2);
26162 wxPyEndAllowThreads(__tstate);
26163 if (PyErr_Occurred()) SWIG_fail;
26164 }
26165 resultobj = SWIG_Py_Void();
26166 return resultobj;
26167fail:
26168 return NULL;
26169}
26170
26171
26172SWIGINTERN PyObject *_wrap_ListItem_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26173 PyObject *resultobj = 0;
26174 wxListItem *arg1 = (wxListItem *) 0 ;
26175 wxString *arg2 = 0 ;
26176 void *argp1 = 0 ;
26177 int res1 = 0 ;
26178 bool temp2 = false ;
26179 PyObject * obj0 = 0 ;
26180 PyObject * obj1 = 0 ;
26181 char * kwnames[] = {
26182 (char *) "self",(char *) "text", NULL
26183 };
26184
26185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) SWIG_fail;
26186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26187 if (!SWIG_IsOK(res1)) {
26188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26189 }
26190 arg1 = reinterpret_cast< wxListItem * >(argp1);
26191 {
26192 arg2 = wxString_in_helper(obj1);
26193 if (arg2 == NULL) SWIG_fail;
26194 temp2 = true;
26195 }
26196 {
26197 PyThreadState* __tstate = wxPyBeginAllowThreads();
26198 (arg1)->SetText((wxString const &)*arg2);
26199 wxPyEndAllowThreads(__tstate);
26200 if (PyErr_Occurred()) SWIG_fail;
26201 }
26202 resultobj = SWIG_Py_Void();
26203 {
26204 if (temp2)
26205 delete arg2;
26206 }
26207 return resultobj;
26208fail:
26209 {
26210 if (temp2)
26211 delete arg2;
26212 }
26213 return NULL;
26214}
26215
26216
26217SWIGINTERN PyObject *_wrap_ListItem_SetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26218 PyObject *resultobj = 0;
26219 wxListItem *arg1 = (wxListItem *) 0 ;
26220 int arg2 ;
26221 void *argp1 = 0 ;
26222 int res1 = 0 ;
26223 int val2 ;
26224 int ecode2 = 0 ;
26225 PyObject * obj0 = 0 ;
26226 PyObject * obj1 = 0 ;
26227 char * kwnames[] = {
26228 (char *) "self",(char *) "image", NULL
26229 };
26230
26231 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) SWIG_fail;
26232 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26233 if (!SWIG_IsOK(res1)) {
26234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26235 }
26236 arg1 = reinterpret_cast< wxListItem * >(argp1);
26237 ecode2 = SWIG_AsVal_int(obj1, &val2);
26238 if (!SWIG_IsOK(ecode2)) {
26239 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetImage" "', expected argument " "2"" of type '" "int""'");
26240 }
26241 arg2 = static_cast< int >(val2);
26242 {
26243 PyThreadState* __tstate = wxPyBeginAllowThreads();
26244 (arg1)->SetImage(arg2);
26245 wxPyEndAllowThreads(__tstate);
26246 if (PyErr_Occurred()) SWIG_fail;
26247 }
26248 resultobj = SWIG_Py_Void();
26249 return resultobj;
26250fail:
26251 return NULL;
26252}
26253
26254
26255SWIGINTERN PyObject *_wrap_ListItem_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26256 PyObject *resultobj = 0;
26257 wxListItem *arg1 = (wxListItem *) 0 ;
26258 long arg2 ;
26259 void *argp1 = 0 ;
26260 int res1 = 0 ;
26261 long val2 ;
26262 int ecode2 = 0 ;
26263 PyObject * obj0 = 0 ;
26264 PyObject * obj1 = 0 ;
26265 char * kwnames[] = {
26266 (char *) "self",(char *) "data", NULL
26267 };
26268
26269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
26270 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26271 if (!SWIG_IsOK(res1)) {
26272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26273 }
26274 arg1 = reinterpret_cast< wxListItem * >(argp1);
26275 ecode2 = SWIG_AsVal_long(obj1, &val2);
26276 if (!SWIG_IsOK(ecode2)) {
26277 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetData" "', expected argument " "2"" of type '" "long""'");
26278 }
26279 arg2 = static_cast< long >(val2);
26280 {
26281 PyThreadState* __tstate = wxPyBeginAllowThreads();
26282 (arg1)->SetData(arg2);
26283 wxPyEndAllowThreads(__tstate);
26284 if (PyErr_Occurred()) SWIG_fail;
26285 }
26286 resultobj = SWIG_Py_Void();
26287 return resultobj;
26288fail:
26289 return NULL;
26290}
26291
26292
26293SWIGINTERN PyObject *_wrap_ListItem_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26294 PyObject *resultobj = 0;
26295 wxListItem *arg1 = (wxListItem *) 0 ;
26296 int arg2 ;
26297 void *argp1 = 0 ;
26298 int res1 = 0 ;
26299 int val2 ;
26300 int ecode2 = 0 ;
26301 PyObject * obj0 = 0 ;
26302 PyObject * obj1 = 0 ;
26303 char * kwnames[] = {
26304 (char *) "self",(char *) "width", NULL
26305 };
26306
26307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
26308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26309 if (!SWIG_IsOK(res1)) {
26310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26311 }
26312 arg1 = reinterpret_cast< wxListItem * >(argp1);
26313 ecode2 = SWIG_AsVal_int(obj1, &val2);
26314 if (!SWIG_IsOK(ecode2)) {
26315 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetWidth" "', expected argument " "2"" of type '" "int""'");
26316 }
26317 arg2 = static_cast< int >(val2);
26318 {
26319 PyThreadState* __tstate = wxPyBeginAllowThreads();
26320 (arg1)->SetWidth(arg2);
26321 wxPyEndAllowThreads(__tstate);
26322 if (PyErr_Occurred()) SWIG_fail;
26323 }
26324 resultobj = SWIG_Py_Void();
26325 return resultobj;
26326fail:
26327 return NULL;
26328}
26329
26330
26331SWIGINTERN PyObject *_wrap_ListItem_SetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26332 PyObject *resultobj = 0;
26333 wxListItem *arg1 = (wxListItem *) 0 ;
26334 wxListColumnFormat arg2 ;
26335 void *argp1 = 0 ;
26336 int res1 = 0 ;
26337 int val2 ;
26338 int ecode2 = 0 ;
26339 PyObject * obj0 = 0 ;
26340 PyObject * obj1 = 0 ;
26341 char * kwnames[] = {
26342 (char *) "self",(char *) "align", NULL
26343 };
26344
26345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) SWIG_fail;
26346 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26347 if (!SWIG_IsOK(res1)) {
26348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
26349 }
26350 arg1 = reinterpret_cast< wxListItem * >(argp1);
26351 ecode2 = SWIG_AsVal_int(obj1, &val2);
26352 if (!SWIG_IsOK(ecode2)) {
26353 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetAlign" "', expected argument " "2"" of type '" "wxListColumnFormat""'");
26354 }
26355 arg2 = static_cast< wxListColumnFormat >(val2);
26356 {
26357 PyThreadState* __tstate = wxPyBeginAllowThreads();
26358 (arg1)->SetAlign(arg2);
26359 wxPyEndAllowThreads(__tstate);
26360 if (PyErr_Occurred()) SWIG_fail;
26361 }
26362 resultobj = SWIG_Py_Void();
26363 return resultobj;
26364fail:
26365 return NULL;
26366}
26367
26368
26369SWIGINTERN PyObject *_wrap_ListItem_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26370 PyObject *resultobj = 0;
26371 wxListItem *arg1 = (wxListItem *) 0 ;
26372 wxColour *arg2 = 0 ;
26373 void *argp1 = 0 ;
26374 int res1 = 0 ;
26375 wxColour temp2 ;
26376 PyObject * obj0 = 0 ;
26377 PyObject * obj1 = 0 ;
26378 char * kwnames[] = {
26379 (char *) "self",(char *) "colText", NULL
26380 };
26381
26382 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
26383 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26384 if (!SWIG_IsOK(res1)) {
26385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetTextColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26386 }
26387 arg1 = reinterpret_cast< wxListItem * >(argp1);
26388 {
26389 arg2 = &temp2;
26390 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26391 }
26392 {
26393 PyThreadState* __tstate = wxPyBeginAllowThreads();
26394 (arg1)->SetTextColour((wxColour const &)*arg2);
26395 wxPyEndAllowThreads(__tstate);
26396 if (PyErr_Occurred()) SWIG_fail;
26397 }
26398 resultobj = SWIG_Py_Void();
26399 return resultobj;
26400fail:
26401 return NULL;
26402}
26403
26404
26405SWIGINTERN PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26406 PyObject *resultobj = 0;
26407 wxListItem *arg1 = (wxListItem *) 0 ;
26408 wxColour *arg2 = 0 ;
26409 void *argp1 = 0 ;
26410 int res1 = 0 ;
26411 wxColour temp2 ;
26412 PyObject * obj0 = 0 ;
26413 PyObject * obj1 = 0 ;
26414 char * kwnames[] = {
26415 (char *) "self",(char *) "colBack", NULL
26416 };
26417
26418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
26419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26420 if (!SWIG_IsOK(res1)) {
26421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26422 }
26423 arg1 = reinterpret_cast< wxListItem * >(argp1);
26424 {
26425 arg2 = &temp2;
26426 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26427 }
26428 {
26429 PyThreadState* __tstate = wxPyBeginAllowThreads();
26430 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
26431 wxPyEndAllowThreads(__tstate);
26432 if (PyErr_Occurred()) SWIG_fail;
26433 }
26434 resultobj = SWIG_Py_Void();
26435 return resultobj;
26436fail:
26437 return NULL;
26438}
26439
26440
26441SWIGINTERN PyObject *_wrap_ListItem_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26442 PyObject *resultobj = 0;
26443 wxListItem *arg1 = (wxListItem *) 0 ;
26444 wxFont *arg2 = 0 ;
26445 void *argp1 = 0 ;
26446 int res1 = 0 ;
26447 void *argp2 = 0 ;
26448 int res2 = 0 ;
26449 PyObject * obj0 = 0 ;
26450 PyObject * obj1 = 0 ;
26451 char * kwnames[] = {
26452 (char *) "self",(char *) "font", NULL
26453 };
26454
26455 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26456 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26457 if (!SWIG_IsOK(res1)) {
26458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetFont" "', expected argument " "1"" of type '" "wxListItem *""'");
26459 }
26460 arg1 = reinterpret_cast< wxListItem * >(argp1);
26461 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26462 if (!SWIG_IsOK(res2)) {
26463 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26464 }
26465 if (!argp2) {
26466 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26467 }
26468 arg2 = reinterpret_cast< wxFont * >(argp2);
26469 {
26470 PyThreadState* __tstate = wxPyBeginAllowThreads();
26471 (arg1)->SetFont((wxFont const &)*arg2);
26472 wxPyEndAllowThreads(__tstate);
26473 if (PyErr_Occurred()) SWIG_fail;
26474 }
26475 resultobj = SWIG_Py_Void();
26476 return resultobj;
26477fail:
26478 return NULL;
d14a1e28
RD
26479}
26480
26481
0085ce49
RD
26482SWIGINTERN PyObject *_wrap_ListItem_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26483 PyObject *resultobj = 0;
26484 wxListItem *arg1 = (wxListItem *) 0 ;
26485 long result;
26486 void *argp1 = 0 ;
26487 int res1 = 0 ;
26488 PyObject *swig_obj[1] ;
26489
26490 if (!args) SWIG_fail;
26491 swig_obj[0] = args;
26492 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26493 if (!SWIG_IsOK(res1)) {
26494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26495 }
26496 arg1 = reinterpret_cast< wxListItem * >(argp1);
26497 {
26498 PyThreadState* __tstate = wxPyBeginAllowThreads();
26499 result = (long)(arg1)->GetMask();
26500 wxPyEndAllowThreads(__tstate);
26501 if (PyErr_Occurred()) SWIG_fail;
26502 }
26503 resultobj = SWIG_From_long(static_cast< long >(result));
26504 return resultobj;
26505fail:
26506 return NULL;
d14a1e28
RD
26507}
26508
26509
0085ce49
RD
26510SWIGINTERN PyObject *_wrap_ListItem_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26511 PyObject *resultobj = 0;
26512 wxListItem *arg1 = (wxListItem *) 0 ;
26513 long result;
26514 void *argp1 = 0 ;
26515 int res1 = 0 ;
26516 PyObject *swig_obj[1] ;
26517
26518 if (!args) SWIG_fail;
26519 swig_obj[0] = args;
26520 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26521 if (!SWIG_IsOK(res1)) {
26522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26523 }
26524 arg1 = reinterpret_cast< wxListItem * >(argp1);
26525 {
26526 PyThreadState* __tstate = wxPyBeginAllowThreads();
26527 result = (long)(arg1)->GetId();
26528 wxPyEndAllowThreads(__tstate);
26529 if (PyErr_Occurred()) SWIG_fail;
26530 }
26531 resultobj = SWIG_From_long(static_cast< long >(result));
26532 return resultobj;
26533fail:
26534 return NULL;
d14a1e28
RD
26535}
26536
26537
0085ce49
RD
26538SWIGINTERN PyObject *_wrap_ListItem_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26539 PyObject *resultobj = 0;
26540 wxListItem *arg1 = (wxListItem *) 0 ;
26541 int result;
26542 void *argp1 = 0 ;
26543 int res1 = 0 ;
26544 PyObject *swig_obj[1] ;
26545
26546 if (!args) SWIG_fail;
26547 swig_obj[0] = args;
26548 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26549 if (!SWIG_IsOK(res1)) {
26550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26551 }
26552 arg1 = reinterpret_cast< wxListItem * >(argp1);
26553 {
26554 PyThreadState* __tstate = wxPyBeginAllowThreads();
26555 result = (int)(arg1)->GetColumn();
26556 wxPyEndAllowThreads(__tstate);
26557 if (PyErr_Occurred()) SWIG_fail;
26558 }
26559 resultobj = SWIG_From_int(static_cast< int >(result));
26560 return resultobj;
26561fail:
26562 return NULL;
22bfe96c
RD
26563}
26564
26565
0085ce49
RD
26566SWIGINTERN PyObject *_wrap_ListItem_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26567 PyObject *resultobj = 0;
26568 wxListItem *arg1 = (wxListItem *) 0 ;
26569 long result;
26570 void *argp1 = 0 ;
26571 int res1 = 0 ;
26572 PyObject *swig_obj[1] ;
26573
26574 if (!args) SWIG_fail;
26575 swig_obj[0] = args;
26576 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26577 if (!SWIG_IsOK(res1)) {
26578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26579 }
26580 arg1 = reinterpret_cast< wxListItem * >(argp1);
26581 {
26582 PyThreadState* __tstate = wxPyBeginAllowThreads();
26583 result = (long)(arg1)->GetState();
26584 wxPyEndAllowThreads(__tstate);
26585 if (PyErr_Occurred()) SWIG_fail;
26586 }
26587 resultobj = SWIG_From_long(static_cast< long >(result));
26588 return resultobj;
26589fail:
26590 return NULL;
b2dc1044
RD
26591}
26592
26593
0085ce49
RD
26594SWIGINTERN PyObject *_wrap_ListItem_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26595 PyObject *resultobj = 0;
26596 wxListItem *arg1 = (wxListItem *) 0 ;
26597 wxString *result = 0 ;
26598 void *argp1 = 0 ;
26599 int res1 = 0 ;
26600 PyObject *swig_obj[1] ;
26601
26602 if (!args) SWIG_fail;
26603 swig_obj[0] = args;
26604 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26605 if (!SWIG_IsOK(res1)) {
26606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26607 }
26608 arg1 = reinterpret_cast< wxListItem * >(argp1);
26609 {
26610 PyThreadState* __tstate = wxPyBeginAllowThreads();
b2dc1044 26611 {
0085ce49
RD
26612 wxString const &_result_ref = (arg1)->GetText();
26613 result = (wxString *) &_result_ref;
26614 }
26615 wxPyEndAllowThreads(__tstate);
26616 if (PyErr_Occurred()) SWIG_fail;
26617 }
26618 {
b2dc1044 26619#if wxUSE_UNICODE
0085ce49 26620 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
b2dc1044 26621#else
0085ce49 26622 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
b2dc1044 26623#endif
0085ce49
RD
26624 }
26625 return resultobj;
26626fail:
26627 return NULL;
d14a1e28
RD
26628}
26629
26630
0085ce49
RD
26631SWIGINTERN PyObject *_wrap_ListItem_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26632 PyObject *resultobj = 0;
26633 wxListItem *arg1 = (wxListItem *) 0 ;
26634 int result;
26635 void *argp1 = 0 ;
26636 int res1 = 0 ;
26637 PyObject *swig_obj[1] ;
26638
26639 if (!args) SWIG_fail;
26640 swig_obj[0] = args;
26641 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26642 if (!SWIG_IsOK(res1)) {
26643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26644 }
26645 arg1 = reinterpret_cast< wxListItem * >(argp1);
26646 {
26647 PyThreadState* __tstate = wxPyBeginAllowThreads();
26648 result = (int)(arg1)->GetImage();
26649 wxPyEndAllowThreads(__tstate);
26650 if (PyErr_Occurred()) SWIG_fail;
26651 }
26652 resultobj = SWIG_From_int(static_cast< int >(result));
26653 return resultobj;
26654fail:
26655 return NULL;
d14a1e28
RD
26656}
26657
26658
0085ce49
RD
26659SWIGINTERN PyObject *_wrap_ListItem_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26660 PyObject *resultobj = 0;
26661 wxListItem *arg1 = (wxListItem *) 0 ;
26662 long result;
26663 void *argp1 = 0 ;
26664 int res1 = 0 ;
26665 PyObject *swig_obj[1] ;
26666
26667 if (!args) SWIG_fail;
26668 swig_obj[0] = args;
26669 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26670 if (!SWIG_IsOK(res1)) {
26671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26672 }
26673 arg1 = reinterpret_cast< wxListItem * >(argp1);
26674 {
26675 PyThreadState* __tstate = wxPyBeginAllowThreads();
26676 result = (long)(arg1)->GetData();
26677 wxPyEndAllowThreads(__tstate);
26678 if (PyErr_Occurred()) SWIG_fail;
26679 }
26680 resultobj = SWIG_From_long(static_cast< long >(result));
26681 return resultobj;
26682fail:
26683 return NULL;
d14a1e28
RD
26684}
26685
26686
0085ce49
RD
26687SWIGINTERN PyObject *_wrap_ListItem_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26688 PyObject *resultobj = 0;
26689 wxListItem *arg1 = (wxListItem *) 0 ;
26690 int result;
26691 void *argp1 = 0 ;
26692 int res1 = 0 ;
26693 PyObject *swig_obj[1] ;
26694
26695 if (!args) SWIG_fail;
26696 swig_obj[0] = args;
26697 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26698 if (!SWIG_IsOK(res1)) {
26699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26700 }
26701 arg1 = reinterpret_cast< wxListItem * >(argp1);
26702 {
26703 PyThreadState* __tstate = wxPyBeginAllowThreads();
26704 result = (int)(arg1)->GetWidth();
26705 wxPyEndAllowThreads(__tstate);
26706 if (PyErr_Occurred()) SWIG_fail;
26707 }
26708 resultobj = SWIG_From_int(static_cast< int >(result));
26709 return resultobj;
26710fail:
26711 return NULL;
d14a1e28
RD
26712}
26713
26714
0085ce49
RD
26715SWIGINTERN PyObject *_wrap_ListItem_GetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26716 PyObject *resultobj = 0;
26717 wxListItem *arg1 = (wxListItem *) 0 ;
26718 wxListColumnFormat result;
26719 void *argp1 = 0 ;
26720 int res1 = 0 ;
26721 PyObject *swig_obj[1] ;
26722
26723 if (!args) SWIG_fail;
26724 swig_obj[0] = args;
26725 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26726 if (!SWIG_IsOK(res1)) {
26727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
26728 }
26729 arg1 = reinterpret_cast< wxListItem * >(argp1);
26730 {
26731 PyThreadState* __tstate = wxPyBeginAllowThreads();
26732 result = (wxListColumnFormat)(arg1)->GetAlign();
26733 wxPyEndAllowThreads(__tstate);
26734 if (PyErr_Occurred()) SWIG_fail;
26735 }
26736 resultobj = SWIG_From_int(static_cast< int >(result));
26737 return resultobj;
26738fail:
26739 return NULL;
d14a1e28
RD
26740}
26741
26742
0085ce49
RD
26743SWIGINTERN PyObject *_wrap_ListItem_GetAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26744 PyObject *resultobj = 0;
26745 wxListItem *arg1 = (wxListItem *) 0 ;
26746 wxListItemAttr *result = 0 ;
26747 void *argp1 = 0 ;
26748 int res1 = 0 ;
26749 PyObject *swig_obj[1] ;
26750
26751 if (!args) SWIG_fail;
26752 swig_obj[0] = args;
26753 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26754 if (!SWIG_IsOK(res1)) {
26755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26756 }
26757 arg1 = reinterpret_cast< wxListItem * >(argp1);
26758 {
26759 PyThreadState* __tstate = wxPyBeginAllowThreads();
26760 result = (wxListItemAttr *)(arg1)->GetAttributes();
26761 wxPyEndAllowThreads(__tstate);
26762 if (PyErr_Occurred()) SWIG_fail;
26763 }
26764 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26765 return resultobj;
26766fail:
26767 return NULL;
d14a1e28
RD
26768}
26769
26770
0085ce49
RD
26771SWIGINTERN PyObject *_wrap_ListItem_HasAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26772 PyObject *resultobj = 0;
26773 wxListItem *arg1 = (wxListItem *) 0 ;
26774 bool result;
26775 void *argp1 = 0 ;
26776 int res1 = 0 ;
26777 PyObject *swig_obj[1] ;
26778
26779 if (!args) SWIG_fail;
26780 swig_obj[0] = args;
26781 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26782 if (!SWIG_IsOK(res1)) {
26783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_HasAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26784 }
26785 arg1 = reinterpret_cast< wxListItem * >(argp1);
26786 {
26787 PyThreadState* __tstate = wxPyBeginAllowThreads();
26788 result = (bool)(arg1)->HasAttributes();
26789 wxPyEndAllowThreads(__tstate);
26790 if (PyErr_Occurred()) SWIG_fail;
26791 }
26792 {
26793 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26794 }
26795 return resultobj;
26796fail:
26797 return NULL;
22bfe96c
RD
26798}
26799
26800
0085ce49
RD
26801SWIGINTERN PyObject *_wrap_ListItem_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26802 PyObject *resultobj = 0;
26803 wxListItem *arg1 = (wxListItem *) 0 ;
26804 wxColour result;
26805 void *argp1 = 0 ;
26806 int res1 = 0 ;
26807 PyObject *swig_obj[1] ;
26808
26809 if (!args) SWIG_fail;
26810 swig_obj[0] = args;
26811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26812 if (!SWIG_IsOK(res1)) {
26813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetTextColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
26814 }
26815 arg1 = reinterpret_cast< wxListItem * >(argp1);
26816 {
26817 PyThreadState* __tstate = wxPyBeginAllowThreads();
26818 result = ((wxListItem const *)arg1)->GetTextColour();
26819 wxPyEndAllowThreads(__tstate);
26820 if (PyErr_Occurred()) SWIG_fail;
26821 }
26822 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26823 return resultobj;
26824fail:
26825 return NULL;
d14a1e28 26826}
0085ce49
RD
26827
26828
26829SWIGINTERN PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26830 PyObject *resultobj = 0;
26831 wxListItem *arg1 = (wxListItem *) 0 ;
26832 wxColour result;
26833 void *argp1 = 0 ;
26834 int res1 = 0 ;
26835 PyObject *swig_obj[1] ;
26836
26837 if (!args) SWIG_fail;
26838 swig_obj[0] = args;
26839 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26840 if (!SWIG_IsOK(res1)) {
26841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
26842 }
26843 arg1 = reinterpret_cast< wxListItem * >(argp1);
26844 {
26845 PyThreadState* __tstate = wxPyBeginAllowThreads();
26846 result = ((wxListItem const *)arg1)->GetBackgroundColour();
26847 wxPyEndAllowThreads(__tstate);
26848 if (PyErr_Occurred()) SWIG_fail;
26849 }
26850 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26851 return resultobj;
26852fail:
26853 return NULL;
b2dc1044
RD
26854}
26855
26856
0085ce49
RD
26857SWIGINTERN PyObject *_wrap_ListItem_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26858 PyObject *resultobj = 0;
26859 wxListItem *arg1 = (wxListItem *) 0 ;
26860 wxFont result;
26861 void *argp1 = 0 ;
26862 int res1 = 0 ;
26863 PyObject *swig_obj[1] ;
26864
26865 if (!args) SWIG_fail;
26866 swig_obj[0] = args;
26867 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26868 if (!SWIG_IsOK(res1)) {
26869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetFont" "', expected argument " "1"" of type '" "wxListItem const *""'");
26870 }
26871 arg1 = reinterpret_cast< wxListItem * >(argp1);
26872 {
26873 PyThreadState* __tstate = wxPyBeginAllowThreads();
26874 result = ((wxListItem const *)arg1)->GetFont();
26875 wxPyEndAllowThreads(__tstate);
26876 if (PyErr_Occurred()) SWIG_fail;
26877 }
26878 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
26879 return resultobj;
26880fail:
26881 return NULL;
26882}
26883
26884
26885SWIGINTERN PyObject *_wrap_ListItem_m_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26886 PyObject *resultobj = 0;
26887 wxListItem *arg1 = (wxListItem *) 0 ;
26888 long arg2 ;
26889 void *argp1 = 0 ;
26890 int res1 = 0 ;
26891 long val2 ;
26892 int ecode2 = 0 ;
26893 PyObject *swig_obj[2] ;
26894
26895 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_mask_set",2,2,swig_obj)) SWIG_fail;
26896 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26897 if (!SWIG_IsOK(res1)) {
26898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
26899 }
26900 arg1 = reinterpret_cast< wxListItem * >(argp1);
26901 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
26902 if (!SWIG_IsOK(ecode2)) {
26903 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_mask_set" "', expected argument " "2"" of type '" "long""'");
26904 }
26905 arg2 = static_cast< long >(val2);
26906 if (arg1) (arg1)->m_mask = arg2;
26907
26908 resultobj = SWIG_Py_Void();
26909 return resultobj;
26910fail:
26911 return NULL;
b2dc1044
RD
26912}
26913
26914
0085ce49
RD
26915SWIGINTERN PyObject *_wrap_ListItem_m_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26916 PyObject *resultobj = 0;
26917 wxListItem *arg1 = (wxListItem *) 0 ;
26918 long result;
26919 void *argp1 = 0 ;
26920 int res1 = 0 ;
26921 PyObject *swig_obj[1] ;
26922
26923 if (!args) SWIG_fail;
26924 swig_obj[0] = args;
26925 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26926 if (!SWIG_IsOK(res1)) {
26927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
26928 }
26929 arg1 = reinterpret_cast< wxListItem * >(argp1);
26930 result = (long) ((arg1)->m_mask);
26931 resultobj = SWIG_From_long(static_cast< long >(result));
26932 return resultobj;
26933fail:
26934 return NULL;
26935}
26936
26937
26938SWIGINTERN PyObject *_wrap_ListItem_m_itemId_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26939 PyObject *resultobj = 0;
26940 wxListItem *arg1 = (wxListItem *) 0 ;
26941 long arg2 ;
26942 void *argp1 = 0 ;
26943 int res1 = 0 ;
26944 long val2 ;
26945 int ecode2 = 0 ;
26946 PyObject *swig_obj[2] ;
26947
26948 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_itemId_set",2,2,swig_obj)) SWIG_fail;
26949 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26950 if (!SWIG_IsOK(res1)) {
26951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_set" "', expected argument " "1"" of type '" "wxListItem *""'");
26952 }
26953 arg1 = reinterpret_cast< wxListItem * >(argp1);
26954 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
26955 if (!SWIG_IsOK(ecode2)) {
26956 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_itemId_set" "', expected argument " "2"" of type '" "long""'");
26957 }
26958 arg2 = static_cast< long >(val2);
26959 if (arg1) (arg1)->m_itemId = arg2;
26960
26961 resultobj = SWIG_Py_Void();
26962 return resultobj;
26963fail:
26964 return NULL;
d14a1e28
RD
26965}
26966
26967
0085ce49
RD
26968SWIGINTERN PyObject *_wrap_ListItem_m_itemId_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26969 PyObject *resultobj = 0;
26970 wxListItem *arg1 = (wxListItem *) 0 ;
26971 long result;
26972 void *argp1 = 0 ;
26973 int res1 = 0 ;
26974 PyObject *swig_obj[1] ;
26975
26976 if (!args) SWIG_fail;
26977 swig_obj[0] = args;
26978 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26979 if (!SWIG_IsOK(res1)) {
26980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_get" "', expected argument " "1"" of type '" "wxListItem *""'");
26981 }
26982 arg1 = reinterpret_cast< wxListItem * >(argp1);
26983 result = (long) ((arg1)->m_itemId);
26984 resultobj = SWIG_From_long(static_cast< long >(result));
26985 return resultobj;
26986fail:
26987 return NULL;
26988}
26989
26990
26991SWIGINTERN PyObject *_wrap_ListItem_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26992 PyObject *resultobj = 0;
26993 wxListItem *arg1 = (wxListItem *) 0 ;
26994 int arg2 ;
26995 void *argp1 = 0 ;
26996 int res1 = 0 ;
26997 int val2 ;
26998 int ecode2 = 0 ;
26999 PyObject *swig_obj[2] ;
27000
27001 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_col_set",2,2,swig_obj)) SWIG_fail;
27002 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27003 if (!SWIG_IsOK(res1)) {
27004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27005 }
27006 arg1 = reinterpret_cast< wxListItem * >(argp1);
27007 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27008 if (!SWIG_IsOK(ecode2)) {
27009 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_col_set" "', expected argument " "2"" of type '" "int""'");
27010 }
27011 arg2 = static_cast< int >(val2);
27012 if (arg1) (arg1)->m_col = arg2;
27013
27014 resultobj = SWIG_Py_Void();
27015 return resultobj;
27016fail:
27017 return NULL;
d14a1e28
RD
27018}
27019
27020
0085ce49
RD
27021SWIGINTERN PyObject *_wrap_ListItem_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27022 PyObject *resultobj = 0;
27023 wxListItem *arg1 = (wxListItem *) 0 ;
27024 int result;
27025 void *argp1 = 0 ;
27026 int res1 = 0 ;
27027 PyObject *swig_obj[1] ;
27028
27029 if (!args) SWIG_fail;
27030 swig_obj[0] = args;
27031 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27032 if (!SWIG_IsOK(res1)) {
27033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27034 }
27035 arg1 = reinterpret_cast< wxListItem * >(argp1);
27036 result = (int) ((arg1)->m_col);
27037 resultobj = SWIG_From_int(static_cast< int >(result));
27038 return resultobj;
27039fail:
27040 return NULL;
27041}
27042
27043
27044SWIGINTERN PyObject *_wrap_ListItem_m_state_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27045 PyObject *resultobj = 0;
27046 wxListItem *arg1 = (wxListItem *) 0 ;
27047 long arg2 ;
27048 void *argp1 = 0 ;
27049 int res1 = 0 ;
27050 long val2 ;
27051 int ecode2 = 0 ;
27052 PyObject *swig_obj[2] ;
27053
27054 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_state_set",2,2,swig_obj)) SWIG_fail;
27055 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27056 if (!SWIG_IsOK(res1)) {
27057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27058 }
27059 arg1 = reinterpret_cast< wxListItem * >(argp1);
27060 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27061 if (!SWIG_IsOK(ecode2)) {
27062 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_state_set" "', expected argument " "2"" of type '" "long""'");
27063 }
27064 arg2 = static_cast< long >(val2);
27065 if (arg1) (arg1)->m_state = arg2;
27066
27067 resultobj = SWIG_Py_Void();
27068 return resultobj;
27069fail:
27070 return NULL;
8fb0e70a
RD
27071}
27072
27073
0085ce49
RD
27074SWIGINTERN PyObject *_wrap_ListItem_m_state_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27075 PyObject *resultobj = 0;
27076 wxListItem *arg1 = (wxListItem *) 0 ;
27077 long result;
27078 void *argp1 = 0 ;
27079 int res1 = 0 ;
27080 PyObject *swig_obj[1] ;
27081
27082 if (!args) SWIG_fail;
27083 swig_obj[0] = args;
27084 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27085 if (!SWIG_IsOK(res1)) {
27086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27087 }
27088 arg1 = reinterpret_cast< wxListItem * >(argp1);
27089 result = (long) ((arg1)->m_state);
27090 resultobj = SWIG_From_long(static_cast< long >(result));
27091 return resultobj;
27092fail:
27093 return NULL;
27094}
27095
27096
27097SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27098 PyObject *resultobj = 0;
27099 wxListItem *arg1 = (wxListItem *) 0 ;
27100 long arg2 ;
27101 void *argp1 = 0 ;
27102 int res1 = 0 ;
27103 long val2 ;
27104 int ecode2 = 0 ;
27105 PyObject *swig_obj[2] ;
27106
27107 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_stateMask_set",2,2,swig_obj)) SWIG_fail;
27108 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27109 if (!SWIG_IsOK(res1)) {
27110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27111 }
27112 arg1 = reinterpret_cast< wxListItem * >(argp1);
27113 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27114 if (!SWIG_IsOK(ecode2)) {
27115 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_stateMask_set" "', expected argument " "2"" of type '" "long""'");
27116 }
27117 arg2 = static_cast< long >(val2);
27118 if (arg1) (arg1)->m_stateMask = arg2;
27119
27120 resultobj = SWIG_Py_Void();
27121 return resultobj;
27122fail:
27123 return NULL;
d14a1e28
RD
27124}
27125
27126
0085ce49
RD
27127SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27128 PyObject *resultobj = 0;
27129 wxListItem *arg1 = (wxListItem *) 0 ;
27130 long result;
27131 void *argp1 = 0 ;
27132 int res1 = 0 ;
27133 PyObject *swig_obj[1] ;
27134
27135 if (!args) SWIG_fail;
27136 swig_obj[0] = args;
27137 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27138 if (!SWIG_IsOK(res1)) {
27139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27140 }
27141 arg1 = reinterpret_cast< wxListItem * >(argp1);
27142 result = (long) ((arg1)->m_stateMask);
27143 resultobj = SWIG_From_long(static_cast< long >(result));
27144 return resultobj;
27145fail:
27146 return NULL;
27147}
27148
27149
27150SWIGINTERN PyObject *_wrap_ListItem_m_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27151 PyObject *resultobj = 0;
27152 wxListItem *arg1 = (wxListItem *) 0 ;
27153 wxString *arg2 = (wxString *) 0 ;
27154 void *argp1 = 0 ;
27155 int res1 = 0 ;
27156 bool temp2 = false ;
27157 PyObject *swig_obj[2] ;
27158
27159 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_text_set",2,2,swig_obj)) SWIG_fail;
27160 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27161 if (!SWIG_IsOK(res1)) {
27162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27163 }
27164 arg1 = reinterpret_cast< wxListItem * >(argp1);
27165 {
27166 arg2 = wxString_in_helper(swig_obj[1]);
27167 if (arg2 == NULL) SWIG_fail;
27168 temp2 = true;
27169 }
27170 if (arg1) (arg1)->m_text = *arg2;
27171
27172 resultobj = SWIG_Py_Void();
27173 {
27174 if (temp2)
27175 delete arg2;
27176 }
27177 return resultobj;
27178fail:
27179 {
27180 if (temp2)
27181 delete arg2;
27182 }
27183 return NULL;
d14a1e28
RD
27184}
27185
27186
0085ce49
RD
27187SWIGINTERN PyObject *_wrap_ListItem_m_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27188 PyObject *resultobj = 0;
27189 wxListItem *arg1 = (wxListItem *) 0 ;
27190 wxString *result = 0 ;
27191 void *argp1 = 0 ;
27192 int res1 = 0 ;
27193 PyObject *swig_obj[1] ;
27194
27195 if (!args) SWIG_fail;
27196 swig_obj[0] = args;
27197 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27198 if (!SWIG_IsOK(res1)) {
27199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27200 }
27201 arg1 = reinterpret_cast< wxListItem * >(argp1);
27202 result = (wxString *)& ((arg1)->m_text);
27203 {
d14a1e28 27204#if wxUSE_UNICODE
0085ce49 27205 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
d14a1e28 27206#else
0085ce49 27207 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
d14a1e28 27208#endif
0085ce49
RD
27209 }
27210 return resultobj;
27211fail:
27212 return NULL;
d14a1e28
RD
27213}
27214
27215
0085ce49
RD
27216SWIGINTERN PyObject *_wrap_ListItem_m_image_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27217 PyObject *resultobj = 0;
27218 wxListItem *arg1 = (wxListItem *) 0 ;
27219 int arg2 ;
27220 void *argp1 = 0 ;
27221 int res1 = 0 ;
27222 int val2 ;
27223 int ecode2 = 0 ;
27224 PyObject *swig_obj[2] ;
27225
27226 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_image_set",2,2,swig_obj)) SWIG_fail;
27227 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27228 if (!SWIG_IsOK(res1)) {
27229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27230 }
27231 arg1 = reinterpret_cast< wxListItem * >(argp1);
27232 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27233 if (!SWIG_IsOK(ecode2)) {
27234 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_image_set" "', expected argument " "2"" of type '" "int""'");
27235 }
27236 arg2 = static_cast< int >(val2);
27237 if (arg1) (arg1)->m_image = arg2;
27238
27239 resultobj = SWIG_Py_Void();
27240 return resultobj;
27241fail:
27242 return NULL;
d14a1e28
RD
27243}
27244
27245
0085ce49
RD
27246SWIGINTERN PyObject *_wrap_ListItem_m_image_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27247 PyObject *resultobj = 0;
27248 wxListItem *arg1 = (wxListItem *) 0 ;
27249 int result;
27250 void *argp1 = 0 ;
27251 int res1 = 0 ;
27252 PyObject *swig_obj[1] ;
27253
27254 if (!args) SWIG_fail;
27255 swig_obj[0] = args;
27256 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27257 if (!SWIG_IsOK(res1)) {
27258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27259 }
27260 arg1 = reinterpret_cast< wxListItem * >(argp1);
27261 result = (int) ((arg1)->m_image);
27262 resultobj = SWIG_From_int(static_cast< int >(result));
27263 return resultobj;
27264fail:
27265 return NULL;
27266}
27267
27268
27269SWIGINTERN PyObject *_wrap_ListItem_m_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27270 PyObject *resultobj = 0;
27271 wxListItem *arg1 = (wxListItem *) 0 ;
27272 long arg2 ;
27273 void *argp1 = 0 ;
27274 int res1 = 0 ;
27275 long val2 ;
27276 int ecode2 = 0 ;
27277 PyObject *swig_obj[2] ;
27278
27279 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_data_set",2,2,swig_obj)) SWIG_fail;
27280 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27281 if (!SWIG_IsOK(res1)) {
27282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27283 }
27284 arg1 = reinterpret_cast< wxListItem * >(argp1);
27285 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27286 if (!SWIG_IsOK(ecode2)) {
27287 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_data_set" "', expected argument " "2"" of type '" "long""'");
27288 }
27289 arg2 = static_cast< long >(val2);
27290 if (arg1) (arg1)->m_data = arg2;
27291
27292 resultobj = SWIG_Py_Void();
27293 return resultobj;
27294fail:
27295 return NULL;
d14a1e28
RD
27296}
27297
27298
0085ce49
RD
27299SWIGINTERN PyObject *_wrap_ListItem_m_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27300 PyObject *resultobj = 0;
27301 wxListItem *arg1 = (wxListItem *) 0 ;
27302 long result;
27303 void *argp1 = 0 ;
27304 int res1 = 0 ;
27305 PyObject *swig_obj[1] ;
27306
27307 if (!args) SWIG_fail;
27308 swig_obj[0] = args;
27309 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27310 if (!SWIG_IsOK(res1)) {
27311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27312 }
27313 arg1 = reinterpret_cast< wxListItem * >(argp1);
27314 result = (long) ((arg1)->m_data);
27315 resultobj = SWIG_From_long(static_cast< long >(result));
27316 return resultobj;
27317fail:
27318 return NULL;
27319}
27320
27321
27322SWIGINTERN PyObject *_wrap_ListItem_m_format_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27323 PyObject *resultobj = 0;
27324 wxListItem *arg1 = (wxListItem *) 0 ;
27325 int arg2 ;
27326 void *argp1 = 0 ;
27327 int res1 = 0 ;
27328 int val2 ;
27329 int ecode2 = 0 ;
27330 PyObject *swig_obj[2] ;
27331
27332 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_format_set",2,2,swig_obj)) SWIG_fail;
27333 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27334 if (!SWIG_IsOK(res1)) {
27335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27336 }
27337 arg1 = reinterpret_cast< wxListItem * >(argp1);
27338 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27339 if (!SWIG_IsOK(ecode2)) {
27340 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_format_set" "', expected argument " "2"" of type '" "int""'");
27341 }
27342 arg2 = static_cast< int >(val2);
27343 if (arg1) (arg1)->m_format = arg2;
27344
27345 resultobj = SWIG_Py_Void();
27346 return resultobj;
27347fail:
27348 return NULL;
d14a1e28
RD
27349}
27350
27351
0085ce49
RD
27352SWIGINTERN PyObject *_wrap_ListItem_m_format_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27353 PyObject *resultobj = 0;
27354 wxListItem *arg1 = (wxListItem *) 0 ;
27355 int result;
27356 void *argp1 = 0 ;
27357 int res1 = 0 ;
27358 PyObject *swig_obj[1] ;
27359
27360 if (!args) SWIG_fail;
27361 swig_obj[0] = args;
27362 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27363 if (!SWIG_IsOK(res1)) {
27364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27365 }
27366 arg1 = reinterpret_cast< wxListItem * >(argp1);
27367 result = (int) ((arg1)->m_format);
27368 resultobj = SWIG_From_int(static_cast< int >(result));
27369 return resultobj;
27370fail:
27371 return NULL;
27372}
27373
27374
27375SWIGINTERN PyObject *_wrap_ListItem_m_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27376 PyObject *resultobj = 0;
27377 wxListItem *arg1 = (wxListItem *) 0 ;
27378 int arg2 ;
27379 void *argp1 = 0 ;
27380 int res1 = 0 ;
27381 int val2 ;
27382 int ecode2 = 0 ;
27383 PyObject *swig_obj[2] ;
27384
27385 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_width_set",2,2,swig_obj)) SWIG_fail;
27386 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27387 if (!SWIG_IsOK(res1)) {
27388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27389 }
27390 arg1 = reinterpret_cast< wxListItem * >(argp1);
27391 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27392 if (!SWIG_IsOK(ecode2)) {
27393 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_width_set" "', expected argument " "2"" of type '" "int""'");
27394 }
27395 arg2 = static_cast< int >(val2);
27396 if (arg1) (arg1)->m_width = arg2;
27397
27398 resultobj = SWIG_Py_Void();
27399 return resultobj;
27400fail:
27401 return NULL;
d14a1e28
RD
27402}
27403
27404
0085ce49
RD
27405SWIGINTERN PyObject *_wrap_ListItem_m_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27406 PyObject *resultobj = 0;
27407 wxListItem *arg1 = (wxListItem *) 0 ;
27408 int result;
27409 void *argp1 = 0 ;
27410 int res1 = 0 ;
27411 PyObject *swig_obj[1] ;
27412
27413 if (!args) SWIG_fail;
27414 swig_obj[0] = args;
27415 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27416 if (!SWIG_IsOK(res1)) {
27417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27418 }
27419 arg1 = reinterpret_cast< wxListItem * >(argp1);
27420 result = (int) ((arg1)->m_width);
27421 resultobj = SWIG_From_int(static_cast< int >(result));
27422 return resultobj;
27423fail:
27424 return NULL;
27425}
27426
27427
27428SWIGINTERN PyObject *ListItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27429 PyObject *obj;
27430 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27431 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItem, SWIG_NewClientData(obj));
27432 return SWIG_Py_Void();
27433}
27434
27435SWIGINTERN PyObject *ListItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27436 return SWIG_Python_InitShadowInstance(args);
27437}
27438
27439SWIGINTERN PyObject *_wrap_new_ListEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27440 PyObject *resultobj = 0;
27441 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
27442 int arg2 = (int) 0 ;
27443 wxListEvent *result = 0 ;
27444 int val1 ;
27445 int ecode1 = 0 ;
27446 int val2 ;
27447 int ecode2 = 0 ;
27448 PyObject * obj0 = 0 ;
27449 PyObject * obj1 = 0 ;
27450 char * kwnames[] = {
27451 (char *) "commandType",(char *) "id", NULL
27452 };
27453
27454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) SWIG_fail;
27455 if (obj0) {
27456 ecode1 = SWIG_AsVal_int(obj0, &val1);
27457 if (!SWIG_IsOK(ecode1)) {
27458 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListEvent" "', expected argument " "1"" of type '" "wxEventType""'");
27459 }
27460 arg1 = static_cast< wxEventType >(val1);
27461 }
27462 if (obj1) {
27463 ecode2 = SWIG_AsVal_int(obj1, &val2);
27464 if (!SWIG_IsOK(ecode2)) {
27465 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListEvent" "', expected argument " "2"" of type '" "int""'");
27466 }
27467 arg2 = static_cast< int >(val2);
27468 }
27469 {
27470 PyThreadState* __tstate = wxPyBeginAllowThreads();
27471 result = (wxListEvent *)new wxListEvent(arg1,arg2);
27472 wxPyEndAllowThreads(__tstate);
27473 if (PyErr_Occurred()) SWIG_fail;
27474 }
27475 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListEvent, SWIG_POINTER_NEW | 0 );
27476 return resultobj;
27477fail:
27478 return NULL;
27479}
27480
27481
27482SWIGINTERN PyObject *_wrap_ListEvent_m_code_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27483 PyObject *resultobj = 0;
27484 wxListEvent *arg1 = (wxListEvent *) 0 ;
27485 int arg2 ;
27486 void *argp1 = 0 ;
27487 int res1 = 0 ;
27488 int val2 ;
27489 int ecode2 = 0 ;
27490 PyObject *swig_obj[2] ;
27491
27492 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_code_set",2,2,swig_obj)) SWIG_fail;
27493 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27494 if (!SWIG_IsOK(res1)) {
27495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27496 }
27497 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27498 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27499 if (!SWIG_IsOK(ecode2)) {
27500 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_code_set" "', expected argument " "2"" of type '" "int""'");
27501 }
27502 arg2 = static_cast< int >(val2);
27503 if (arg1) (arg1)->m_code = arg2;
27504
27505 resultobj = SWIG_Py_Void();
27506 return resultobj;
27507fail:
27508 return NULL;
d14a1e28
RD
27509}
27510
27511
0085ce49
RD
27512SWIGINTERN PyObject *_wrap_ListEvent_m_code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27513 PyObject *resultobj = 0;
27514 wxListEvent *arg1 = (wxListEvent *) 0 ;
27515 int result;
27516 void *argp1 = 0 ;
27517 int res1 = 0 ;
27518 PyObject *swig_obj[1] ;
27519
27520 if (!args) SWIG_fail;
27521 swig_obj[0] = args;
27522 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27523 if (!SWIG_IsOK(res1)) {
27524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27525 }
27526 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27527 result = (int) ((arg1)->m_code);
27528 resultobj = SWIG_From_int(static_cast< int >(result));
27529 return resultobj;
27530fail:
27531 return NULL;
27532}
27533
27534
27535SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27536 PyObject *resultobj = 0;
27537 wxListEvent *arg1 = (wxListEvent *) 0 ;
27538 long arg2 ;
27539 void *argp1 = 0 ;
27540 int res1 = 0 ;
27541 long val2 ;
27542 int ecode2 = 0 ;
27543 PyObject *swig_obj[2] ;
27544
27545 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_oldItemIndex_set",2,2,swig_obj)) SWIG_fail;
27546 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27547 if (!SWIG_IsOK(res1)) {
27548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27549 }
27550 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27551 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27552 if (!SWIG_IsOK(ecode2)) {
27553 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "2"" of type '" "long""'");
27554 }
27555 arg2 = static_cast< long >(val2);
27556 if (arg1) (arg1)->m_oldItemIndex = arg2;
27557
27558 resultobj = SWIG_Py_Void();
27559 return resultobj;
27560fail:
27561 return NULL;
d14a1e28
RD
27562}
27563
27564
0085ce49
RD
27565SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27566 PyObject *resultobj = 0;
27567 wxListEvent *arg1 = (wxListEvent *) 0 ;
27568 long result;
27569 void *argp1 = 0 ;
27570 int res1 = 0 ;
27571 PyObject *swig_obj[1] ;
27572
27573 if (!args) SWIG_fail;
27574 swig_obj[0] = args;
27575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27576 if (!SWIG_IsOK(res1)) {
27577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27578 }
27579 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27580 result = (long) ((arg1)->m_oldItemIndex);
27581 resultobj = SWIG_From_long(static_cast< long >(result));
27582 return resultobj;
27583fail:
27584 return NULL;
27585}
27586
27587
27588SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27589 PyObject *resultobj = 0;
27590 wxListEvent *arg1 = (wxListEvent *) 0 ;
27591 long arg2 ;
27592 void *argp1 = 0 ;
27593 int res1 = 0 ;
27594 long val2 ;
27595 int ecode2 = 0 ;
27596 PyObject *swig_obj[2] ;
27597
27598 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_itemIndex_set",2,2,swig_obj)) SWIG_fail;
27599 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27600 if (!SWIG_IsOK(res1)) {
27601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27602 }
27603 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27604 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27605 if (!SWIG_IsOK(ecode2)) {
27606 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "2"" of type '" "long""'");
27607 }
27608 arg2 = static_cast< long >(val2);
27609 if (arg1) (arg1)->m_itemIndex = arg2;
27610
27611 resultobj = SWIG_Py_Void();
27612 return resultobj;
27613fail:
27614 return NULL;
d14a1e28
RD
27615}
27616
27617
0085ce49
RD
27618SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27619 PyObject *resultobj = 0;
27620 wxListEvent *arg1 = (wxListEvent *) 0 ;
27621 long result;
27622 void *argp1 = 0 ;
27623 int res1 = 0 ;
27624 PyObject *swig_obj[1] ;
27625
27626 if (!args) SWIG_fail;
27627 swig_obj[0] = args;
27628 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27629 if (!SWIG_IsOK(res1)) {
27630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27631 }
27632 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27633 result = (long) ((arg1)->m_itemIndex);
27634 resultobj = SWIG_From_long(static_cast< long >(result));
27635 return resultobj;
27636fail:
27637 return NULL;
27638}
27639
27640
27641SWIGINTERN PyObject *_wrap_ListEvent_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27642 PyObject *resultobj = 0;
27643 wxListEvent *arg1 = (wxListEvent *) 0 ;
27644 int arg2 ;
27645 void *argp1 = 0 ;
27646 int res1 = 0 ;
27647 int val2 ;
27648 int ecode2 = 0 ;
27649 PyObject *swig_obj[2] ;
27650
27651 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_col_set",2,2,swig_obj)) SWIG_fail;
27652 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27653 if (!SWIG_IsOK(res1)) {
27654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27655 }
27656 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27657 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27658 if (!SWIG_IsOK(ecode2)) {
27659 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_col_set" "', expected argument " "2"" of type '" "int""'");
27660 }
27661 arg2 = static_cast< int >(val2);
27662 if (arg1) (arg1)->m_col = arg2;
27663
27664 resultobj = SWIG_Py_Void();
27665 return resultobj;
27666fail:
27667 return NULL;
7e08d4ef
RD
27668}
27669
27670
0085ce49
RD
27671SWIGINTERN PyObject *_wrap_ListEvent_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27672 PyObject *resultobj = 0;
27673 wxListEvent *arg1 = (wxListEvent *) 0 ;
27674 int result;
27675 void *argp1 = 0 ;
27676 int res1 = 0 ;
27677 PyObject *swig_obj[1] ;
27678
27679 if (!args) SWIG_fail;
27680 swig_obj[0] = args;
27681 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27682 if (!SWIG_IsOK(res1)) {
27683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27684 }
27685 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27686 result = (int) ((arg1)->m_col);
27687 resultobj = SWIG_From_int(static_cast< int >(result));
27688 return resultobj;
27689fail:
27690 return NULL;
27691}
27692
27693
27694SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27695 PyObject *resultobj = 0;
27696 wxListEvent *arg1 = (wxListEvent *) 0 ;
27697 wxPoint *arg2 = (wxPoint *) 0 ;
27698 void *argp1 = 0 ;
27699 int res1 = 0 ;
27700 void *argp2 = 0 ;
27701 int res2 = 0 ;
27702 PyObject *swig_obj[2] ;
27703
27704 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_pointDrag_set",2,2,swig_obj)) SWIG_fail;
27705 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27706 if (!SWIG_IsOK(res1)) {
27707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27708 }
27709 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27710 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPoint, 0 | 0 );
27711 if (!SWIG_IsOK(res2)) {
27712 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "2"" of type '" "wxPoint *""'");
27713 }
27714 arg2 = reinterpret_cast< wxPoint * >(argp2);
27715 if (arg1) (arg1)->m_pointDrag = *arg2;
27716
27717 resultobj = SWIG_Py_Void();
27718 return resultobj;
27719fail:
27720 return NULL;
7e08d4ef
RD
27721}
27722
27723
0085ce49
RD
27724SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27725 PyObject *resultobj = 0;
27726 wxListEvent *arg1 = (wxListEvent *) 0 ;
27727 wxPoint *result = 0 ;
27728 void *argp1 = 0 ;
27729 int res1 = 0 ;
27730 PyObject *swig_obj[1] ;
27731
27732 if (!args) SWIG_fail;
27733 swig_obj[0] = args;
27734 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27735 if (!SWIG_IsOK(res1)) {
27736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27737 }
27738 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27739 result = (wxPoint *)& ((arg1)->m_pointDrag);
27740 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, 0 | 0 );
27741 return resultobj;
27742fail:
27743 return NULL;
27744}
27745
27746
27747SWIGINTERN PyObject *_wrap_ListEvent_m_item_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27748 PyObject *resultobj = 0;
27749 wxListEvent *arg1 = (wxListEvent *) 0 ;
27750 wxListItem *result = 0 ;
27751 void *argp1 = 0 ;
27752 int res1 = 0 ;
27753 PyObject *swig_obj[1] ;
27754
27755 if (!args) SWIG_fail;
27756 swig_obj[0] = args;
27757 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27758 if (!SWIG_IsOK(res1)) {
27759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_item_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27760 }
27761 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27762 result = (wxListItem *)& ((arg1)->m_item);
27763 {
27764 resultobj = wxPyMake_wxObject(result, (bool)0);
27765 }
27766 return resultobj;
27767fail:
27768 return NULL;
7e08d4ef
RD
27769}
27770
27771
0085ce49
RD
27772SWIGINTERN PyObject *_wrap_ListEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27773 PyObject *resultobj = 0;
27774 wxListEvent *arg1 = (wxListEvent *) 0 ;
27775 int result;
27776 void *argp1 = 0 ;
27777 int res1 = 0 ;
27778 PyObject *swig_obj[1] ;
27779
27780 if (!args) SWIG_fail;
27781 swig_obj[0] = args;
27782 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27783 if (!SWIG_IsOK(res1)) {
27784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxListEvent *""'");
27785 }
27786 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27787 {
27788 PyThreadState* __tstate = wxPyBeginAllowThreads();
27789 result = (int)(arg1)->GetKeyCode();
27790 wxPyEndAllowThreads(__tstate);
27791 if (PyErr_Occurred()) SWIG_fail;
27792 }
27793 resultobj = SWIG_From_int(static_cast< int >(result));
27794 return resultobj;
27795fail:
27796 return NULL;
7e08d4ef
RD
27797}
27798
27799
0085ce49
RD
27800SWIGINTERN PyObject *_wrap_ListEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27801 PyObject *resultobj = 0;
27802 wxListEvent *arg1 = (wxListEvent *) 0 ;
27803 long result;
27804 void *argp1 = 0 ;
27805 int res1 = 0 ;
27806 PyObject *swig_obj[1] ;
27807
27808 if (!args) SWIG_fail;
27809 swig_obj[0] = args;
27810 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27811 if (!SWIG_IsOK(res1)) {
27812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetIndex" "', expected argument " "1"" of type '" "wxListEvent *""'");
27813 }
27814 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27815 {
27816 PyThreadState* __tstate = wxPyBeginAllowThreads();
27817 result = (long)(arg1)->GetIndex();
27818 wxPyEndAllowThreads(__tstate);
27819 if (PyErr_Occurred()) SWIG_fail;
27820 }
27821 resultobj = SWIG_From_long(static_cast< long >(result));
27822 return resultobj;
27823fail:
27824 return NULL;
7e08d4ef
RD
27825}
27826
27827
0085ce49
RD
27828SWIGINTERN PyObject *_wrap_ListEvent_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27829 PyObject *resultobj = 0;
27830 wxListEvent *arg1 = (wxListEvent *) 0 ;
27831 int result;
27832 void *argp1 = 0 ;
27833 int res1 = 0 ;
27834 PyObject *swig_obj[1] ;
27835
27836 if (!args) SWIG_fail;
27837 swig_obj[0] = args;
27838 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27839 if (!SWIG_IsOK(res1)) {
27840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetColumn" "', expected argument " "1"" of type '" "wxListEvent *""'");
27841 }
27842 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27843 {
27844 PyThreadState* __tstate = wxPyBeginAllowThreads();
27845 result = (int)(arg1)->GetColumn();
27846 wxPyEndAllowThreads(__tstate);
27847 if (PyErr_Occurred()) SWIG_fail;
27848 }
27849 resultobj = SWIG_From_int(static_cast< int >(result));
27850 return resultobj;
27851fail:
27852 return NULL;
d14a1e28
RD
27853}
27854
27855
0085ce49
RD
27856SWIGINTERN PyObject *_wrap_ListEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27857 PyObject *resultobj = 0;
27858 wxListEvent *arg1 = (wxListEvent *) 0 ;
27859 wxPoint result;
27860 void *argp1 = 0 ;
27861 int res1 = 0 ;
27862 PyObject *swig_obj[1] ;
27863
27864 if (!args) SWIG_fail;
27865 swig_obj[0] = args;
27866 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27867 if (!SWIG_IsOK(res1)) {
27868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetPoint" "', expected argument " "1"" of type '" "wxListEvent *""'");
27869 }
27870 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27871 {
27872 PyThreadState* __tstate = wxPyBeginAllowThreads();
27873 result = (arg1)->GetPoint();
27874 wxPyEndAllowThreads(__tstate);
27875 if (PyErr_Occurred()) SWIG_fail;
27876 }
27877 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
27878 return resultobj;
27879fail:
27880 return NULL;
d14a1e28
RD
27881}
27882
27883
0085ce49
RD
27884SWIGINTERN PyObject *_wrap_ListEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27885 PyObject *resultobj = 0;
27886 wxListEvent *arg1 = (wxListEvent *) 0 ;
27887 wxString *result = 0 ;
27888 void *argp1 = 0 ;
27889 int res1 = 0 ;
27890 PyObject *swig_obj[1] ;
27891
27892 if (!args) SWIG_fail;
27893 swig_obj[0] = args;
27894 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27895 if (!SWIG_IsOK(res1)) {
27896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetLabel" "', expected argument " "1"" of type '" "wxListEvent *""'");
27897 }
27898 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27899 {
27900 PyThreadState* __tstate = wxPyBeginAllowThreads();
4f89f6a3 27901 {
0085ce49
RD
27902 wxString const &_result_ref = (arg1)->GetLabel();
27903 result = (wxString *) &_result_ref;
4f89f6a3 27904 }
0085ce49
RD
27905 wxPyEndAllowThreads(__tstate);
27906 if (PyErr_Occurred()) SWIG_fail;
27907 }
27908 {
27909#if wxUSE_UNICODE
27910 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27911#else
27912 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27913#endif
27914 }
27915 return resultobj;
27916fail:
27917 return NULL;
d14a1e28
RD
27918}
27919
27920
0085ce49
RD
27921SWIGINTERN PyObject *_wrap_ListEvent_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27922 PyObject *resultobj = 0;
27923 wxListEvent *arg1 = (wxListEvent *) 0 ;
27924 wxString *result = 0 ;
27925 void *argp1 = 0 ;
27926 int res1 = 0 ;
27927 PyObject *swig_obj[1] ;
27928
27929 if (!args) SWIG_fail;
27930 swig_obj[0] = args;
27931 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27932 if (!SWIG_IsOK(res1)) {
27933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetText" "', expected argument " "1"" of type '" "wxListEvent *""'");
27934 }
27935 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27936 {
27937 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 27938 {
0085ce49
RD
27939 wxString const &_result_ref = (arg1)->GetText();
27940 result = (wxString *) &_result_ref;
d14a1e28 27941 }
0085ce49
RD
27942 wxPyEndAllowThreads(__tstate);
27943 if (PyErr_Occurred()) SWIG_fail;
27944 }
27945 {
27946#if wxUSE_UNICODE
27947 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27948#else
27949 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27950#endif
27951 }
27952 return resultobj;
27953fail:
27954 return NULL;
d14a1e28
RD
27955}
27956
27957
0085ce49
RD
27958SWIGINTERN PyObject *_wrap_ListEvent_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27959 PyObject *resultobj = 0;
27960 wxListEvent *arg1 = (wxListEvent *) 0 ;
27961 int result;
27962 void *argp1 = 0 ;
27963 int res1 = 0 ;
27964 PyObject *swig_obj[1] ;
27965
27966 if (!args) SWIG_fail;
27967 swig_obj[0] = args;
27968 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27969 if (!SWIG_IsOK(res1)) {
27970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetImage" "', expected argument " "1"" of type '" "wxListEvent *""'");
27971 }
27972 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27973 {
27974 PyThreadState* __tstate = wxPyBeginAllowThreads();
27975 result = (int)(arg1)->GetImage();
27976 wxPyEndAllowThreads(__tstate);
27977 if (PyErr_Occurred()) SWIG_fail;
27978 }
27979 resultobj = SWIG_From_int(static_cast< int >(result));
27980 return resultobj;
27981fail:
27982 return NULL;
d14a1e28
RD
27983}
27984
27985
0085ce49
RD
27986SWIGINTERN PyObject *_wrap_ListEvent_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27987 PyObject *resultobj = 0;
27988 wxListEvent *arg1 = (wxListEvent *) 0 ;
27989 long result;
27990 void *argp1 = 0 ;
27991 int res1 = 0 ;
27992 PyObject *swig_obj[1] ;
27993
27994 if (!args) SWIG_fail;
27995 swig_obj[0] = args;
27996 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27997 if (!SWIG_IsOK(res1)) {
27998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetData" "', expected argument " "1"" of type '" "wxListEvent *""'");
27999 }
28000 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28001 {
28002 PyThreadState* __tstate = wxPyBeginAllowThreads();
28003 result = (long)(arg1)->GetData();
28004 wxPyEndAllowThreads(__tstate);
28005 if (PyErr_Occurred()) SWIG_fail;
28006 }
28007 resultobj = SWIG_From_long(static_cast< long >(result));
28008 return resultobj;
28009fail:
28010 return NULL;
d14a1e28
RD
28011}
28012
28013
0085ce49
RD
28014SWIGINTERN PyObject *_wrap_ListEvent_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28015 PyObject *resultobj = 0;
28016 wxListEvent *arg1 = (wxListEvent *) 0 ;
28017 long result;
28018 void *argp1 = 0 ;
28019 int res1 = 0 ;
28020 PyObject *swig_obj[1] ;
28021
28022 if (!args) SWIG_fail;
28023 swig_obj[0] = args;
28024 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28025 if (!SWIG_IsOK(res1)) {
28026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetMask" "', expected argument " "1"" of type '" "wxListEvent *""'");
28027 }
28028 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28029 {
28030 PyThreadState* __tstate = wxPyBeginAllowThreads();
28031 result = (long)(arg1)->GetMask();
28032 wxPyEndAllowThreads(__tstate);
28033 if (PyErr_Occurred()) SWIG_fail;
28034 }
28035 resultobj = SWIG_From_long(static_cast< long >(result));
28036 return resultobj;
28037fail:
28038 return NULL;
d14a1e28
RD
28039}
28040
28041
0085ce49
RD
28042SWIGINTERN PyObject *_wrap_ListEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28043 PyObject *resultobj = 0;
28044 wxListEvent *arg1 = (wxListEvent *) 0 ;
28045 wxListItem *result = 0 ;
28046 void *argp1 = 0 ;
28047 int res1 = 0 ;
28048 PyObject *swig_obj[1] ;
28049
28050 if (!args) SWIG_fail;
28051 swig_obj[0] = args;
28052 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28053 if (!SWIG_IsOK(res1)) {
28054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetItem" "', expected argument " "1"" of type '" "wxListEvent *""'");
28055 }
28056 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28057 {
28058 PyThreadState* __tstate = wxPyBeginAllowThreads();
22bfe96c 28059 {
0085ce49
RD
28060 wxListItem const &_result_ref = (arg1)->GetItem();
28061 result = (wxListItem *) &_result_ref;
22bfe96c 28062 }
0085ce49
RD
28063 wxPyEndAllowThreads(__tstate);
28064 if (PyErr_Occurred()) SWIG_fail;
28065 }
28066 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, 0 | 0 );
28067 return resultobj;
28068fail:
28069 return NULL;
22bfe96c
RD
28070}
28071
28072
0085ce49
RD
28073SWIGINTERN PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28074 PyObject *resultobj = 0;
28075 wxListEvent *arg1 = (wxListEvent *) 0 ;
28076 long result;
28077 void *argp1 = 0 ;
28078 int res1 = 0 ;
28079 PyObject *swig_obj[1] ;
28080
28081 if (!args) SWIG_fail;
28082 swig_obj[0] = args;
28083 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28084 if (!SWIG_IsOK(res1)) {
28085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheFrom" "', expected argument " "1"" of type '" "wxListEvent *""'");
28086 }
28087 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28088 {
28089 PyThreadState* __tstate = wxPyBeginAllowThreads();
28090 result = (long)(arg1)->GetCacheFrom();
28091 wxPyEndAllowThreads(__tstate);
28092 if (PyErr_Occurred()) SWIG_fail;
28093 }
28094 resultobj = SWIG_From_long(static_cast< long >(result));
28095 return resultobj;
28096fail:
28097 return NULL;
d14a1e28
RD
28098}
28099
28100
0085ce49
RD
28101SWIGINTERN PyObject *_wrap_ListEvent_GetCacheTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28102 PyObject *resultobj = 0;
28103 wxListEvent *arg1 = (wxListEvent *) 0 ;
28104 long result;
28105 void *argp1 = 0 ;
28106 int res1 = 0 ;
28107 PyObject *swig_obj[1] ;
28108
28109 if (!args) SWIG_fail;
28110 swig_obj[0] = args;
28111 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28112 if (!SWIG_IsOK(res1)) {
28113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheTo" "', expected argument " "1"" of type '" "wxListEvent *""'");
28114 }
28115 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28116 {
28117 PyThreadState* __tstate = wxPyBeginAllowThreads();
28118 result = (long)(arg1)->GetCacheTo();
28119 wxPyEndAllowThreads(__tstate);
28120 if (PyErr_Occurred()) SWIG_fail;
28121 }
28122 resultobj = SWIG_From_long(static_cast< long >(result));
28123 return resultobj;
28124fail:
28125 return NULL;
d14a1e28
RD
28126}
28127
28128
0085ce49
RD
28129SWIGINTERN PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28130 PyObject *resultobj = 0;
28131 wxListEvent *arg1 = (wxListEvent *) 0 ;
28132 bool result;
28133 void *argp1 = 0 ;
28134 int res1 = 0 ;
28135 PyObject *swig_obj[1] ;
28136
28137 if (!args) SWIG_fail;
28138 swig_obj[0] = args;
28139 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28140 if (!SWIG_IsOK(res1)) {
28141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxListEvent const *""'");
28142 }
28143 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28144 {
28145 PyThreadState* __tstate = wxPyBeginAllowThreads();
28146 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
28147 wxPyEndAllowThreads(__tstate);
28148 if (PyErr_Occurred()) SWIG_fail;
28149 }
28150 {
28151 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28152 }
28153 return resultobj;
28154fail:
28155 return NULL;
28156}
28157
28158
28159SWIGINTERN PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28160 PyObject *resultobj = 0;
28161 wxListEvent *arg1 = (wxListEvent *) 0 ;
28162 bool arg2 ;
28163 void *argp1 = 0 ;
28164 int res1 = 0 ;
28165 bool val2 ;
28166 int ecode2 = 0 ;
28167 PyObject * obj0 = 0 ;
28168 PyObject * obj1 = 0 ;
28169 char * kwnames[] = {
28170 (char *) "self",(char *) "editCancelled", NULL
28171 };
28172
28173 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
28174 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28175 if (!SWIG_IsOK(res1)) {
28176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxListEvent *""'");
28177 }
28178 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28179 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28180 if (!SWIG_IsOK(ecode2)) {
28181 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
28182 }
28183 arg2 = static_cast< bool >(val2);
28184 {
28185 PyThreadState* __tstate = wxPyBeginAllowThreads();
28186 (arg1)->SetEditCanceled(arg2);
28187 wxPyEndAllowThreads(__tstate);
28188 if (PyErr_Occurred()) SWIG_fail;
28189 }
28190 resultobj = SWIG_Py_Void();
28191 return resultobj;
28192fail:
28193 return NULL;
28194}
28195
28196
28197SWIGINTERN PyObject *ListEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28198 PyObject *obj;
28199 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28200 SWIG_TypeNewClientData(SWIGTYPE_p_wxListEvent, SWIG_NewClientData(obj));
28201 return SWIG_Py_Void();
28202}
28203
28204SWIGINTERN PyObject *ListEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28205 return SWIG_Python_InitShadowInstance(args);
28206}
28207
28208SWIGINTERN PyObject *_wrap_new_ListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28209 PyObject *resultobj = 0;
28210 wxWindow *arg1 = (wxWindow *) 0 ;
28211 int arg2 = (int) -1 ;
28212 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28213 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28214 wxSize const &arg4_defvalue = wxDefaultSize ;
28215 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28216 long arg5 = (long) wxLC_ICON ;
28217 wxValidator const &arg6_defvalue = wxDefaultValidator ;
28218 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
28219 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
28220 wxString *arg7 = (wxString *) &arg7_defvalue ;
28221 wxPyListCtrl *result = 0 ;
28222 void *argp1 = 0 ;
28223 int res1 = 0 ;
28224 int val2 ;
28225 int ecode2 = 0 ;
28226 wxPoint temp3 ;
28227 wxSize temp4 ;
28228 long val5 ;
28229 int ecode5 = 0 ;
28230 void *argp6 = 0 ;
28231 int res6 = 0 ;
28232 bool temp7 = false ;
28233 PyObject * obj0 = 0 ;
28234 PyObject * obj1 = 0 ;
28235 PyObject * obj2 = 0 ;
28236 PyObject * obj3 = 0 ;
28237 PyObject * obj4 = 0 ;
28238 PyObject * obj5 = 0 ;
28239 PyObject * obj6 = 0 ;
28240 char * kwnames[] = {
28241 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28242 };
28243
28244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28246 if (!SWIG_IsOK(res1)) {
28247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
28248 }
28249 arg1 = reinterpret_cast< wxWindow * >(argp1);
28250 if (obj1) {
28251 ecode2 = SWIG_AsVal_int(obj1, &val2);
28252 if (!SWIG_IsOK(ecode2)) {
28253 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListCtrl" "', expected argument " "2"" of type '" "int""'");
28254 }
28255 arg2 = static_cast< int >(val2);
28256 }
28257 if (obj2) {
093d3ff1 28258 {
0085ce49
RD
28259 arg3 = &temp3;
28260 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 28261 }
0085ce49
RD
28262 }
28263 if (obj3) {
d14a1e28 28264 {
0085ce49
RD
28265 arg4 = &temp4;
28266 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 28267 }
0085ce49
RD
28268 }
28269 if (obj4) {
28270 ecode5 = SWIG_AsVal_long(obj4, &val5);
28271 if (!SWIG_IsOK(ecode5)) {
28272 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListCtrl" "', expected argument " "5"" of type '" "long""'");
28273 }
28274 arg5 = static_cast< long >(val5);
28275 }
28276 if (obj5) {
28277 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
28278 if (!SWIG_IsOK(res6)) {
28279 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d14a1e28 28280 }
0085ce49
RD
28281 if (!argp6) {
28282 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
28283 }
28284 arg6 = reinterpret_cast< wxValidator * >(argp6);
28285 }
28286 if (obj6) {
093d3ff1 28287 {
0085ce49
RD
28288 arg7 = wxString_in_helper(obj6);
28289 if (arg7 == NULL) SWIG_fail;
28290 temp7 = true;
093d3ff1 28291 }
0085ce49
RD
28292 }
28293 {
28294 if (!wxPyCheckForApp()) SWIG_fail;
28295 PyThreadState* __tstate = wxPyBeginAllowThreads();
28296 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
28297 wxPyEndAllowThreads(__tstate);
28298 if (PyErr_Occurred()) SWIG_fail;
28299 }
28300 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_NEW | 0 );
28301 {
28302 if (temp7)
28303 delete arg7;
28304 }
28305 return resultobj;
28306fail:
28307 {
28308 if (temp7)
28309 delete arg7;
28310 }
28311 return NULL;
d14a1e28
RD
28312}
28313
28314
0085ce49
RD
28315SWIGINTERN PyObject *_wrap_new_PreListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28316 PyObject *resultobj = 0;
28317 wxPyListCtrl *result = 0 ;
28318
28319 if (!SWIG_Python_UnpackTuple(args,"new_PreListCtrl",0,0,0)) SWIG_fail;
28320 {
28321 if (!wxPyCheckForApp()) SWIG_fail;
28322 PyThreadState* __tstate = wxPyBeginAllowThreads();
28323 result = (wxPyListCtrl *)new wxPyListCtrl();
28324 wxPyEndAllowThreads(__tstate);
28325 if (PyErr_Occurred()) SWIG_fail;
28326 }
28327 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_OWN | 0 );
28328 return resultobj;
28329fail:
28330 return NULL;
28331}
28332
28333
28334SWIGINTERN PyObject *_wrap_ListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28335 PyObject *resultobj = 0;
28336 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28337 wxWindow *arg2 = (wxWindow *) 0 ;
28338 int arg3 = (int) -1 ;
28339 wxPoint const &arg4_defvalue = wxDefaultPosition ;
28340 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
28341 wxSize const &arg5_defvalue = wxDefaultSize ;
28342 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
28343 long arg6 = (long) wxLC_ICON ;
28344 wxValidator const &arg7_defvalue = wxDefaultValidator ;
28345 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
28346 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
28347 wxString *arg8 = (wxString *) &arg8_defvalue ;
28348 bool result;
28349 void *argp1 = 0 ;
28350 int res1 = 0 ;
28351 void *argp2 = 0 ;
28352 int res2 = 0 ;
28353 int val3 ;
28354 int ecode3 = 0 ;
28355 wxPoint temp4 ;
28356 wxSize temp5 ;
28357 long val6 ;
28358 int ecode6 = 0 ;
28359 void *argp7 = 0 ;
28360 int res7 = 0 ;
28361 bool temp8 = false ;
28362 PyObject * obj0 = 0 ;
28363 PyObject * obj1 = 0 ;
28364 PyObject * obj2 = 0 ;
28365 PyObject * obj3 = 0 ;
28366 PyObject * obj4 = 0 ;
28367 PyObject * obj5 = 0 ;
28368 PyObject * obj6 = 0 ;
28369 PyObject * obj7 = 0 ;
28370 char * kwnames[] = {
28371 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28372 };
28373
28374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28376 if (!SWIG_IsOK(res1)) {
28377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Create" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28378 }
28379 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28380 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28381 if (!SWIG_IsOK(res2)) {
28382 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
28383 }
28384 arg2 = reinterpret_cast< wxWindow * >(argp2);
28385 if (obj2) {
28386 ecode3 = SWIG_AsVal_int(obj2, &val3);
28387 if (!SWIG_IsOK(ecode3)) {
28388 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
28389 }
28390 arg3 = static_cast< int >(val3);
28391 }
28392 if (obj3) {
093d3ff1 28393 {
0085ce49
RD
28394 arg4 = &temp4;
28395 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 28396 }
0085ce49
RD
28397 }
28398 if (obj4) {
d14a1e28 28399 {
0085ce49
RD
28400 arg5 = &temp5;
28401 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 28402 }
0085ce49
RD
28403 }
28404 if (obj5) {
28405 ecode6 = SWIG_AsVal_long(obj5, &val6);
28406 if (!SWIG_IsOK(ecode6)) {
28407 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
28408 }
28409 arg6 = static_cast< long >(val6);
28410 }
28411 if (obj6) {
28412 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
28413 if (!SWIG_IsOK(res7)) {
28414 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 28415 }
0085ce49
RD
28416 if (!argp7) {
28417 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 28418 }
0085ce49
RD
28419 arg7 = reinterpret_cast< wxValidator * >(argp7);
28420 }
28421 if (obj7) {
d14a1e28 28422 {
0085ce49
RD
28423 arg8 = wxString_in_helper(obj7);
28424 if (arg8 == NULL) SWIG_fail;
28425 temp8 = true;
d14a1e28 28426 }
0085ce49
RD
28427 }
28428 {
28429 PyThreadState* __tstate = wxPyBeginAllowThreads();
28430 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
28431 wxPyEndAllowThreads(__tstate);
28432 if (PyErr_Occurred()) SWIG_fail;
28433 }
28434 {
28435 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28436 }
28437 {
28438 if (temp8)
28439 delete arg8;
28440 }
28441 return resultobj;
28442fail:
28443 {
28444 if (temp8)
28445 delete arg8;
28446 }
28447 return NULL;
28448}
28449
28450
28451SWIGINTERN PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28452 PyObject *resultobj = 0;
28453 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28454 PyObject *arg2 = (PyObject *) 0 ;
28455 PyObject *arg3 = (PyObject *) 0 ;
28456 void *argp1 = 0 ;
28457 int res1 = 0 ;
28458 PyObject * obj0 = 0 ;
28459 PyObject * obj1 = 0 ;
28460 PyObject * obj2 = 0 ;
28461 char * kwnames[] = {
28462 (char *) "self",(char *) "self",(char *) "_class", NULL
28463 };
28464
28465 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28466 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28467 if (!SWIG_IsOK(res1)) {
28468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28469 }
28470 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28471 arg2 = obj1;
28472 arg3 = obj2;
28473 {
28474 PyThreadState* __tstate = wxPyBeginAllowThreads();
28475 (arg1)->_setCallbackInfo(arg2,arg3);
28476 wxPyEndAllowThreads(__tstate);
28477 if (PyErr_Occurred()) SWIG_fail;
28478 }
28479 resultobj = SWIG_Py_Void();
28480 return resultobj;
28481fail:
28482 return NULL;
28483}
28484
28485
28486SWIGINTERN PyObject *_wrap_ListCtrl_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28487 PyObject *resultobj = 0;
28488 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28489 int arg2 ;
28490 wxListItem *result = 0 ;
28491 void *argp1 = 0 ;
28492 int res1 = 0 ;
28493 int val2 ;
28494 int ecode2 = 0 ;
28495 PyObject * obj0 = 0 ;
28496 PyObject * obj1 = 0 ;
28497 char * kwnames[] = {
28498 (char *) "self",(char *) "col", NULL
28499 };
28500
28501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
28502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28503 if (!SWIG_IsOK(res1)) {
28504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28505 }
28506 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28507 ecode2 = SWIG_AsVal_int(obj1, &val2);
28508 if (!SWIG_IsOK(ecode2)) {
28509 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumn" "', expected argument " "2"" of type '" "int""'");
28510 }
28511 arg2 = static_cast< int >(val2);
28512 {
28513 PyThreadState* __tstate = wxPyBeginAllowThreads();
28514 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
28515 wxPyEndAllowThreads(__tstate);
28516 if (PyErr_Occurred()) SWIG_fail;
28517 }
28518 {
28519 resultobj = wxPyMake_wxObject(result, (bool)0);
28520 }
28521 return resultobj;
28522fail:
28523 return NULL;
28524}
28525
28526
28527SWIGINTERN PyObject *_wrap_ListCtrl_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28528 PyObject *resultobj = 0;
28529 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28530 int arg2 ;
28531 wxListItem *arg3 = 0 ;
28532 bool result;
28533 void *argp1 = 0 ;
28534 int res1 = 0 ;
28535 int val2 ;
28536 int ecode2 = 0 ;
28537 void *argp3 = 0 ;
28538 int res3 = 0 ;
28539 PyObject * obj0 = 0 ;
28540 PyObject * obj1 = 0 ;
28541 PyObject * obj2 = 0 ;
28542 char * kwnames[] = {
28543 (char *) "self",(char *) "col",(char *) "item", NULL
28544 };
28545
28546 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28547 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28548 if (!SWIG_IsOK(res1)) {
28549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28550 }
28551 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28552 ecode2 = SWIG_AsVal_int(obj1, &val2);
28553 if (!SWIG_IsOK(ecode2)) {
28554 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumn" "', expected argument " "2"" of type '" "int""'");
28555 }
28556 arg2 = static_cast< int >(val2);
28557 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
28558 if (!SWIG_IsOK(res3)) {
28559 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
28560 }
28561 if (!argp3) {
28562 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
28563 }
28564 arg3 = reinterpret_cast< wxListItem * >(argp3);
28565 {
28566 PyThreadState* __tstate = wxPyBeginAllowThreads();
28567 result = (bool)(arg1)->SetColumn(arg2,*arg3);
28568 wxPyEndAllowThreads(__tstate);
28569 if (PyErr_Occurred()) SWIG_fail;
28570 }
28571 {
28572 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28573 }
28574 return resultobj;
28575fail:
28576 return NULL;
28577}
28578
28579
28580SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28581 PyObject *resultobj = 0;
28582 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28583 int arg2 ;
28584 int result;
28585 void *argp1 = 0 ;
28586 int res1 = 0 ;
28587 int val2 ;
28588 int ecode2 = 0 ;
28589 PyObject * obj0 = 0 ;
28590 PyObject * obj1 = 0 ;
28591 char * kwnames[] = {
28592 (char *) "self",(char *) "col", NULL
28593 };
28594
28595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) SWIG_fail;
28596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28597 if (!SWIG_IsOK(res1)) {
28598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28599 }
28600 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28601 ecode2 = SWIG_AsVal_int(obj1, &val2);
28602 if (!SWIG_IsOK(ecode2)) {
28603 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "2"" of type '" "int""'");
28604 }
28605 arg2 = static_cast< int >(val2);
28606 {
28607 PyThreadState* __tstate = wxPyBeginAllowThreads();
28608 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
28609 wxPyEndAllowThreads(__tstate);
28610 if (PyErr_Occurred()) SWIG_fail;
28611 }
28612 resultobj = SWIG_From_int(static_cast< int >(result));
28613 return resultobj;
28614fail:
28615 return NULL;
28616}
28617
28618
28619SWIGINTERN PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28620 PyObject *resultobj = 0;
28621 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28622 int arg2 ;
28623 int arg3 ;
28624 bool result;
28625 void *argp1 = 0 ;
28626 int res1 = 0 ;
28627 int val2 ;
28628 int ecode2 = 0 ;
28629 int val3 ;
28630 int ecode3 = 0 ;
28631 PyObject * obj0 = 0 ;
28632 PyObject * obj1 = 0 ;
28633 PyObject * obj2 = 0 ;
28634 char * kwnames[] = {
28635 (char *) "self",(char *) "col",(char *) "width", NULL
28636 };
28637
28638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28640 if (!SWIG_IsOK(res1)) {
28641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28642 }
28643 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28644 ecode2 = SWIG_AsVal_int(obj1, &val2);
28645 if (!SWIG_IsOK(ecode2)) {
28646 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "2"" of type '" "int""'");
28647 }
28648 arg2 = static_cast< int >(val2);
28649 ecode3 = SWIG_AsVal_int(obj2, &val3);
28650 if (!SWIG_IsOK(ecode3)) {
28651 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "3"" of type '" "int""'");
28652 }
28653 arg3 = static_cast< int >(val3);
28654 {
28655 PyThreadState* __tstate = wxPyBeginAllowThreads();
28656 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
28657 wxPyEndAllowThreads(__tstate);
28658 if (PyErr_Occurred()) SWIG_fail;
28659 }
28660 {
28661 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28662 }
28663 return resultobj;
28664fail:
28665 return NULL;
d14a1e28
RD
28666}
28667
28668
0085ce49
RD
28669SWIGINTERN PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28670 PyObject *resultobj = 0;
28671 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28672 int result;
28673 void *argp1 = 0 ;
28674 int res1 = 0 ;
28675 PyObject *swig_obj[1] ;
28676
28677 if (!args) SWIG_fail;
28678 swig_obj[0] = args;
28679 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28680 if (!SWIG_IsOK(res1)) {
28681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetCountPerPage" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28682 }
28683 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28684 {
28685 PyThreadState* __tstate = wxPyBeginAllowThreads();
28686 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
28687 wxPyEndAllowThreads(__tstate);
28688 if (PyErr_Occurred()) SWIG_fail;
28689 }
28690 resultobj = SWIG_From_int(static_cast< int >(result));
28691 return resultobj;
28692fail:
28693 return NULL;
d14a1e28
RD
28694}
28695
28696
0085ce49
RD
28697SWIGINTERN PyObject *_wrap_ListCtrl_GetViewRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28698 PyObject *resultobj = 0;
28699 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28700 wxRect result;
28701 void *argp1 = 0 ;
28702 int res1 = 0 ;
28703 PyObject *swig_obj[1] ;
28704
28705 if (!args) SWIG_fail;
28706 swig_obj[0] = args;
28707 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28708 if (!SWIG_IsOK(res1)) {
28709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetViewRect" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28710 }
28711 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28712 {
28713 PyThreadState* __tstate = wxPyBeginAllowThreads();
28714 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
28715 wxPyEndAllowThreads(__tstate);
28716 if (PyErr_Occurred()) SWIG_fail;
28717 }
28718 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
28719 return resultobj;
28720fail:
28721 return NULL;
d14a1e28
RD
28722}
28723
28724
0085ce49
RD
28725SWIGINTERN PyObject *_wrap_ListCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28726 PyObject *resultobj = 0;
28727 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28728 wxTextCtrl *result = 0 ;
28729 void *argp1 = 0 ;
28730 int res1 = 0 ;
28731 PyObject *swig_obj[1] ;
28732
28733 if (!args) SWIG_fail;
28734 swig_obj[0] = args;
28735 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28736 if (!SWIG_IsOK(res1)) {
28737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28738 }
28739 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28740 {
28741 PyThreadState* __tstate = wxPyBeginAllowThreads();
28742 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
28743 wxPyEndAllowThreads(__tstate);
28744 if (PyErr_Occurred()) SWIG_fail;
28745 }
28746 {
28747 resultobj = wxPyMake_wxObject(result, 0);
28748 }
28749 return resultobj;
28750fail:
28751 return NULL;
28752}
28753
28754
28755SWIGINTERN PyObject *_wrap_ListCtrl_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28756 PyObject *resultobj = 0;
28757 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28758 long arg2 ;
28759 int arg3 = (int) 0 ;
28760 wxListItem *result = 0 ;
28761 void *argp1 = 0 ;
28762 int res1 = 0 ;
28763 long val2 ;
28764 int ecode2 = 0 ;
28765 int val3 ;
28766 int ecode3 = 0 ;
28767 PyObject * obj0 = 0 ;
28768 PyObject * obj1 = 0 ;
28769 PyObject * obj2 = 0 ;
28770 char * kwnames[] = {
28771 (char *) "self",(char *) "itemId",(char *) "col", NULL
28772 };
28773
28774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28776 if (!SWIG_IsOK(res1)) {
28777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28778 }
28779 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28780 ecode2 = SWIG_AsVal_long(obj1, &val2);
28781 if (!SWIG_IsOK(ecode2)) {
28782 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItem" "', expected argument " "2"" of type '" "long""'");
28783 }
28784 arg2 = static_cast< long >(val2);
28785 if (obj2) {
28786 ecode3 = SWIG_AsVal_int(obj2, &val3);
28787 if (!SWIG_IsOK(ecode3)) {
28788 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItem" "', expected argument " "3"" of type '" "int""'");
28789 }
28790 arg3 = static_cast< int >(val3);
28791 }
28792 {
28793 PyThreadState* __tstate = wxPyBeginAllowThreads();
28794 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
28795 wxPyEndAllowThreads(__tstate);
28796 if (PyErr_Occurred()) SWIG_fail;
28797 }
28798 {
28799 resultobj = wxPyMake_wxObject(result, (bool)0);
28800 }
28801 return resultobj;
28802fail:
28803 return NULL;
28804}
28805
28806
28807SWIGINTERN PyObject *_wrap_ListCtrl_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28808 PyObject *resultobj = 0;
28809 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28810 wxListItem *arg2 = 0 ;
28811 bool result;
28812 void *argp1 = 0 ;
28813 int res1 = 0 ;
28814 void *argp2 = 0 ;
28815 int res2 = 0 ;
28816 PyObject * obj0 = 0 ;
28817 PyObject * obj1 = 0 ;
28818 char * kwnames[] = {
28819 (char *) "self",(char *) "info", NULL
28820 };
28821
28822 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
28823 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28824 if (!SWIG_IsOK(res1)) {
28825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28826 }
28827 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28828 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
28829 if (!SWIG_IsOK(res2)) {
28830 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
28831 }
28832 if (!argp2) {
28833 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
28834 }
28835 arg2 = reinterpret_cast< wxListItem * >(argp2);
28836 {
28837 PyThreadState* __tstate = wxPyBeginAllowThreads();
28838 result = (bool)(arg1)->SetItem(*arg2);
28839 wxPyEndAllowThreads(__tstate);
28840 if (PyErr_Occurred()) SWIG_fail;
28841 }
28842 {
28843 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28844 }
28845 return resultobj;
28846fail:
28847 return NULL;
28848}
28849
28850
28851SWIGINTERN PyObject *_wrap_ListCtrl_SetStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28852 PyObject *resultobj = 0;
28853 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28854 long arg2 ;
28855 int arg3 ;
28856 wxString *arg4 = 0 ;
28857 int arg5 = (int) -1 ;
28858 long result;
28859 void *argp1 = 0 ;
28860 int res1 = 0 ;
28861 long val2 ;
28862 int ecode2 = 0 ;
28863 int val3 ;
28864 int ecode3 = 0 ;
28865 bool temp4 = false ;
28866 int val5 ;
28867 int ecode5 = 0 ;
28868 PyObject * obj0 = 0 ;
28869 PyObject * obj1 = 0 ;
28870 PyObject * obj2 = 0 ;
28871 PyObject * obj3 = 0 ;
28872 PyObject * obj4 = 0 ;
28873 char * kwnames[] = {
28874 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
28875 };
28876
28877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28879 if (!SWIG_IsOK(res1)) {
28880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28881 }
28882 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28883 ecode2 = SWIG_AsVal_long(obj1, &val2);
28884 if (!SWIG_IsOK(ecode2)) {
28885 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetStringItem" "', expected argument " "2"" of type '" "long""'");
28886 }
28887 arg2 = static_cast< long >(val2);
28888 ecode3 = SWIG_AsVal_int(obj2, &val3);
28889 if (!SWIG_IsOK(ecode3)) {
28890 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetStringItem" "', expected argument " "3"" of type '" "int""'");
28891 }
28892 arg3 = static_cast< int >(val3);
28893 {
28894 arg4 = wxString_in_helper(obj3);
28895 if (arg4 == NULL) SWIG_fail;
28896 temp4 = true;
28897 }
28898 if (obj4) {
28899 ecode5 = SWIG_AsVal_int(obj4, &val5);
28900 if (!SWIG_IsOK(ecode5)) {
28901 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_SetStringItem" "', expected argument " "5"" of type '" "int""'");
28902 }
28903 arg5 = static_cast< int >(val5);
28904 }
28905 {
28906 PyThreadState* __tstate = wxPyBeginAllowThreads();
28907 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
28908 wxPyEndAllowThreads(__tstate);
28909 if (PyErr_Occurred()) SWIG_fail;
28910 }
28911 resultobj = SWIG_From_long(static_cast< long >(result));
28912 {
28913 if (temp4)
28914 delete arg4;
28915 }
28916 return resultobj;
28917fail:
28918 {
28919 if (temp4)
28920 delete arg4;
28921 }
28922 return NULL;
28923}
28924
28925
28926SWIGINTERN PyObject *_wrap_ListCtrl_GetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28927 PyObject *resultobj = 0;
28928 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28929 long arg2 ;
28930 long arg3 ;
28931 int result;
28932 void *argp1 = 0 ;
28933 int res1 = 0 ;
28934 long val2 ;
28935 int ecode2 = 0 ;
28936 long val3 ;
28937 int ecode3 = 0 ;
28938 PyObject * obj0 = 0 ;
28939 PyObject * obj1 = 0 ;
28940 PyObject * obj2 = 0 ;
28941 char * kwnames[] = {
28942 (char *) "self",(char *) "item",(char *) "stateMask", NULL
28943 };
28944
28945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28947 if (!SWIG_IsOK(res1)) {
28948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28949 }
28950 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28951 ecode2 = SWIG_AsVal_long(obj1, &val2);
28952 if (!SWIG_IsOK(ecode2)) {
28953 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemState" "', expected argument " "2"" of type '" "long""'");
28954 }
28955 arg2 = static_cast< long >(val2);
28956 ecode3 = SWIG_AsVal_long(obj2, &val3);
28957 if (!SWIG_IsOK(ecode3)) {
28958 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemState" "', expected argument " "3"" of type '" "long""'");
28959 }
28960 arg3 = static_cast< long >(val3);
28961 {
28962 PyThreadState* __tstate = wxPyBeginAllowThreads();
28963 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
28964 wxPyEndAllowThreads(__tstate);
28965 if (PyErr_Occurred()) SWIG_fail;
28966 }
28967 resultobj = SWIG_From_int(static_cast< int >(result));
28968 return resultobj;
28969fail:
28970 return NULL;
28971}
28972
28973
28974SWIGINTERN PyObject *_wrap_ListCtrl_SetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28975 PyObject *resultobj = 0;
28976 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28977 long arg2 ;
28978 long arg3 ;
28979 long arg4 ;
28980 bool result;
28981 void *argp1 = 0 ;
28982 int res1 = 0 ;
28983 long val2 ;
28984 int ecode2 = 0 ;
28985 long val3 ;
28986 int ecode3 = 0 ;
28987 long val4 ;
28988 int ecode4 = 0 ;
28989 PyObject * obj0 = 0 ;
28990 PyObject * obj1 = 0 ;
28991 PyObject * obj2 = 0 ;
28992 PyObject * obj3 = 0 ;
28993 char * kwnames[] = {
28994 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
28995 };
28996
28997 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28998 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28999 if (!SWIG_IsOK(res1)) {
29000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29001 }
29002 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29003 ecode2 = SWIG_AsVal_long(obj1, &val2);
29004 if (!SWIG_IsOK(ecode2)) {
29005 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemState" "', expected argument " "2"" of type '" "long""'");
29006 }
29007 arg2 = static_cast< long >(val2);
29008 ecode3 = SWIG_AsVal_long(obj2, &val3);
29009 if (!SWIG_IsOK(ecode3)) {
29010 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemState" "', expected argument " "3"" of type '" "long""'");
29011 }
29012 arg3 = static_cast< long >(val3);
29013 ecode4 = SWIG_AsVal_long(obj3, &val4);
29014 if (!SWIG_IsOK(ecode4)) {
29015 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemState" "', expected argument " "4"" of type '" "long""'");
29016 }
29017 arg4 = static_cast< long >(val4);
29018 {
29019 PyThreadState* __tstate = wxPyBeginAllowThreads();
29020 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
29021 wxPyEndAllowThreads(__tstate);
29022 if (PyErr_Occurred()) SWIG_fail;
29023 }
29024 {
29025 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29026 }
29027 return resultobj;
29028fail:
29029 return NULL;
29030}
29031
29032
29033SWIGINTERN PyObject *_wrap_ListCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29034 PyObject *resultobj = 0;
29035 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29036 long arg2 ;
29037 int arg3 ;
29038 int arg4 = (int) -1 ;
29039 bool result;
29040 void *argp1 = 0 ;
29041 int res1 = 0 ;
29042 long val2 ;
29043 int ecode2 = 0 ;
29044 int val3 ;
29045 int ecode3 = 0 ;
29046 int val4 ;
29047 int ecode4 = 0 ;
29048 PyObject * obj0 = 0 ;
29049 PyObject * obj1 = 0 ;
29050 PyObject * obj2 = 0 ;
29051 PyObject * obj3 = 0 ;
29052 char * kwnames[] = {
29053 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
29054 };
29055
29056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29058 if (!SWIG_IsOK(res1)) {
29059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29060 }
29061 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29062 ecode2 = SWIG_AsVal_long(obj1, &val2);
29063 if (!SWIG_IsOK(ecode2)) {
29064 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemImage" "', expected argument " "2"" of type '" "long""'");
29065 }
29066 arg2 = static_cast< long >(val2);
29067 ecode3 = SWIG_AsVal_int(obj2, &val3);
29068 if (!SWIG_IsOK(ecode3)) {
29069 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
29070 }
29071 arg3 = static_cast< int >(val3);
29072 if (obj3) {
29073 ecode4 = SWIG_AsVal_int(obj3, &val4);
29074 if (!SWIG_IsOK(ecode4)) {
29075 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemImage" "', expected argument " "4"" of type '" "int""'");
29076 }
29077 arg4 = static_cast< int >(val4);
29078 }
29079 {
29080 PyThreadState* __tstate = wxPyBeginAllowThreads();
29081 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
29082 wxPyEndAllowThreads(__tstate);
29083 if (PyErr_Occurred()) SWIG_fail;
29084 }
29085 {
29086 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29087 }
29088 return resultobj;
29089fail:
29090 return NULL;
29091}
29092
29093
29094SWIGINTERN PyObject *_wrap_ListCtrl_SetItemColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29095 PyObject *resultobj = 0;
29096 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29097 long arg2 ;
29098 long arg3 ;
29099 int arg4 ;
29100 bool result;
29101 void *argp1 = 0 ;
29102 int res1 = 0 ;
29103 long val2 ;
29104 int ecode2 = 0 ;
29105 long val3 ;
29106 int ecode3 = 0 ;
29107 int val4 ;
29108 int ecode4 = 0 ;
29109 PyObject * obj0 = 0 ;
29110 PyObject * obj1 = 0 ;
29111 PyObject * obj2 = 0 ;
29112 PyObject * obj3 = 0 ;
29113 char * kwnames[] = {
29114 (char *) "self",(char *) "item",(char *) "column",(char *) "image", NULL
29115 };
29116
29117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemColumnImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29119 if (!SWIG_IsOK(res1)) {
29120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29121 }
29122 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29123 ecode2 = SWIG_AsVal_long(obj1, &val2);
29124 if (!SWIG_IsOK(ecode2)) {
29125 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "2"" of type '" "long""'");
29126 }
29127 arg2 = static_cast< long >(val2);
29128 ecode3 = SWIG_AsVal_long(obj2, &val3);
29129 if (!SWIG_IsOK(ecode3)) {
29130 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "3"" of type '" "long""'");
29131 }
29132 arg3 = static_cast< long >(val3);
29133 ecode4 = SWIG_AsVal_int(obj3, &val4);
29134 if (!SWIG_IsOK(ecode4)) {
29135 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "4"" of type '" "int""'");
29136 }
29137 arg4 = static_cast< int >(val4);
29138 {
29139 PyThreadState* __tstate = wxPyBeginAllowThreads();
29140 result = (bool)(arg1)->SetItemColumnImage(arg2,arg3,arg4);
29141 wxPyEndAllowThreads(__tstate);
29142 if (PyErr_Occurred()) SWIG_fail;
29143 }
29144 {
29145 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29146 }
29147 return resultobj;
29148fail:
29149 return NULL;
29150}
29151
29152
29153SWIGINTERN PyObject *_wrap_ListCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29154 PyObject *resultobj = 0;
29155 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29156 long arg2 ;
29157 wxString result;
29158 void *argp1 = 0 ;
29159 int res1 = 0 ;
29160 long val2 ;
29161 int ecode2 = 0 ;
29162 PyObject * obj0 = 0 ;
29163 PyObject * obj1 = 0 ;
29164 char * kwnames[] = {
29165 (char *) "self",(char *) "item", NULL
29166 };
29167
29168 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
29169 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29170 if (!SWIG_IsOK(res1)) {
29171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29172 }
29173 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29174 ecode2 = SWIG_AsVal_long(obj1, &val2);
29175 if (!SWIG_IsOK(ecode2)) {
29176 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemText" "', expected argument " "2"" of type '" "long""'");
29177 }
29178 arg2 = static_cast< long >(val2);
29179 {
29180 PyThreadState* __tstate = wxPyBeginAllowThreads();
29181 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
29182 wxPyEndAllowThreads(__tstate);
29183 if (PyErr_Occurred()) SWIG_fail;
29184 }
29185 {
29186#if wxUSE_UNICODE
29187 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29188#else
29189 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29190#endif
29191 }
29192 return resultobj;
29193fail:
29194 return NULL;
29195}
29196
29197
29198SWIGINTERN PyObject *_wrap_ListCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29199 PyObject *resultobj = 0;
29200 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29201 long arg2 ;
29202 wxString *arg3 = 0 ;
29203 void *argp1 = 0 ;
29204 int res1 = 0 ;
29205 long val2 ;
29206 int ecode2 = 0 ;
29207 bool temp3 = false ;
29208 PyObject * obj0 = 0 ;
29209 PyObject * obj1 = 0 ;
29210 PyObject * obj2 = 0 ;
29211 char * kwnames[] = {
29212 (char *) "self",(char *) "item",(char *) "str", NULL
29213 };
29214
29215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29216 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29217 if (!SWIG_IsOK(res1)) {
29218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29219 }
29220 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29221 ecode2 = SWIG_AsVal_long(obj1, &val2);
29222 if (!SWIG_IsOK(ecode2)) {
29223 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemText" "', expected argument " "2"" of type '" "long""'");
29224 }
29225 arg2 = static_cast< long >(val2);
29226 {
29227 arg3 = wxString_in_helper(obj2);
29228 if (arg3 == NULL) SWIG_fail;
29229 temp3 = true;
29230 }
29231 {
29232 PyThreadState* __tstate = wxPyBeginAllowThreads();
29233 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
29234 wxPyEndAllowThreads(__tstate);
29235 if (PyErr_Occurred()) SWIG_fail;
29236 }
29237 resultobj = SWIG_Py_Void();
29238 {
29239 if (temp3)
29240 delete arg3;
29241 }
29242 return resultobj;
29243fail:
29244 {
29245 if (temp3)
29246 delete arg3;
29247 }
29248 return NULL;
29249}
29250
29251
29252SWIGINTERN PyObject *_wrap_ListCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29253 PyObject *resultobj = 0;
29254 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29255 long arg2 ;
29256 long result;
29257 void *argp1 = 0 ;
29258 int res1 = 0 ;
29259 long val2 ;
29260 int ecode2 = 0 ;
29261 PyObject * obj0 = 0 ;
29262 PyObject * obj1 = 0 ;
29263 char * kwnames[] = {
29264 (char *) "self",(char *) "item", NULL
29265 };
29266
29267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
29268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29269 if (!SWIG_IsOK(res1)) {
29270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29271 }
29272 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29273 ecode2 = SWIG_AsVal_long(obj1, &val2);
29274 if (!SWIG_IsOK(ecode2)) {
29275 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemData" "', expected argument " "2"" of type '" "long""'");
29276 }
29277 arg2 = static_cast< long >(val2);
29278 {
29279 PyThreadState* __tstate = wxPyBeginAllowThreads();
29280 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
29281 wxPyEndAllowThreads(__tstate);
29282 if (PyErr_Occurred()) SWIG_fail;
29283 }
29284 resultobj = SWIG_From_long(static_cast< long >(result));
29285 return resultobj;
29286fail:
29287 return NULL;
29288}
29289
29290
29291SWIGINTERN PyObject *_wrap_ListCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29292 PyObject *resultobj = 0;
29293 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29294 long arg2 ;
29295 long arg3 ;
29296 bool result;
29297 void *argp1 = 0 ;
29298 int res1 = 0 ;
29299 long val2 ;
29300 int ecode2 = 0 ;
29301 long val3 ;
29302 int ecode3 = 0 ;
29303 PyObject * obj0 = 0 ;
29304 PyObject * obj1 = 0 ;
29305 PyObject * obj2 = 0 ;
29306 char * kwnames[] = {
29307 (char *) "self",(char *) "item",(char *) "data", NULL
29308 };
29309
29310 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29311 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29312 if (!SWIG_IsOK(res1)) {
29313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29314 }
29315 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29316 ecode2 = SWIG_AsVal_long(obj1, &val2);
29317 if (!SWIG_IsOK(ecode2)) {
29318 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemData" "', expected argument " "2"" of type '" "long""'");
29319 }
29320 arg2 = static_cast< long >(val2);
29321 ecode3 = SWIG_AsVal_long(obj2, &val3);
29322 if (!SWIG_IsOK(ecode3)) {
29323 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemData" "', expected argument " "3"" of type '" "long""'");
29324 }
29325 arg3 = static_cast< long >(val3);
29326 {
29327 PyThreadState* __tstate = wxPyBeginAllowThreads();
29328 result = (bool)(arg1)->SetItemData(arg2,arg3);
29329 wxPyEndAllowThreads(__tstate);
29330 if (PyErr_Occurred()) SWIG_fail;
29331 }
29332 {
29333 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29334 }
29335 return resultobj;
29336fail:
29337 return NULL;
29338}
29339
29340
29341SWIGINTERN PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29342 PyObject *resultobj = 0;
29343 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29344 long arg2 ;
29345 wxPoint result;
29346 void *argp1 = 0 ;
29347 int res1 = 0 ;
29348 long val2 ;
29349 int ecode2 = 0 ;
29350 PyObject * obj0 = 0 ;
29351 PyObject * obj1 = 0 ;
29352 char * kwnames[] = {
29353 (char *) "self",(char *) "item", NULL
29354 };
29355
29356 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) SWIG_fail;
29357 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29358 if (!SWIG_IsOK(res1)) {
29359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29360 }
29361 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29362 ecode2 = SWIG_AsVal_long(obj1, &val2);
29363 if (!SWIG_IsOK(ecode2)) {
29364 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "2"" of type '" "long""'");
29365 }
29366 arg2 = static_cast< long >(val2);
29367 {
29368 PyThreadState* __tstate = wxPyBeginAllowThreads();
29369 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
29370 wxPyEndAllowThreads(__tstate);
29371 if (PyErr_Occurred()) SWIG_fail;
29372 }
29373 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
29374 return resultobj;
29375fail:
29376 return NULL;
29377}
29378
29379
29380SWIGINTERN PyObject *_wrap_ListCtrl_GetItemRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29381 PyObject *resultobj = 0;
29382 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29383 long arg2 ;
29384 int arg3 = (int) wxLIST_RECT_BOUNDS ;
29385 wxRect result;
29386 void *argp1 = 0 ;
29387 int res1 = 0 ;
29388 long val2 ;
29389 int ecode2 = 0 ;
29390 int val3 ;
29391 int ecode3 = 0 ;
29392 PyObject * obj0 = 0 ;
29393 PyObject * obj1 = 0 ;
29394 PyObject * obj2 = 0 ;
29395 char * kwnames[] = {
29396 (char *) "self",(char *) "item",(char *) "code", NULL
29397 };
29398
29399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29401 if (!SWIG_IsOK(res1)) {
29402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemRect" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29403 }
29404 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29405 ecode2 = SWIG_AsVal_long(obj1, &val2);
29406 if (!SWIG_IsOK(ecode2)) {
29407 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemRect" "', expected argument " "2"" of type '" "long""'");
29408 }
29409 arg2 = static_cast< long >(val2);
29410 if (obj2) {
29411 ecode3 = SWIG_AsVal_int(obj2, &val3);
29412 if (!SWIG_IsOK(ecode3)) {
29413 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemRect" "', expected argument " "3"" of type '" "int""'");
29414 }
29415 arg3 = static_cast< int >(val3);
29416 }
29417 {
29418 PyThreadState* __tstate = wxPyBeginAllowThreads();
29419 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
29420 wxPyEndAllowThreads(__tstate);
29421 if (PyErr_Occurred()) SWIG_fail;
29422 }
29423 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29424 return resultobj;
29425fail:
29426 return NULL;
29427}
29428
29429
29430SWIGINTERN PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29431 PyObject *resultobj = 0;
29432 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29433 long arg2 ;
29434 wxPoint *arg3 = 0 ;
29435 bool result;
29436 void *argp1 = 0 ;
29437 int res1 = 0 ;
29438 long val2 ;
29439 int ecode2 = 0 ;
29440 wxPoint temp3 ;
29441 PyObject * obj0 = 0 ;
29442 PyObject * obj1 = 0 ;
29443 PyObject * obj2 = 0 ;
29444 char * kwnames[] = {
29445 (char *) "self",(char *) "item",(char *) "pos", NULL
29446 };
29447
29448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29450 if (!SWIG_IsOK(res1)) {
29451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29452 }
29453 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29454 ecode2 = SWIG_AsVal_long(obj1, &val2);
29455 if (!SWIG_IsOK(ecode2)) {
29456 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "2"" of type '" "long""'");
29457 }
29458 arg2 = static_cast< long >(val2);
29459 {
29460 arg3 = &temp3;
29461 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29462 }
29463 {
29464 PyThreadState* __tstate = wxPyBeginAllowThreads();
29465 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
29466 wxPyEndAllowThreads(__tstate);
29467 if (PyErr_Occurred()) SWIG_fail;
29468 }
29469 {
29470 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29471 }
29472 return resultobj;
29473fail:
29474 return NULL;
d14a1e28
RD
29475}
29476
29477
0085ce49
RD
29478SWIGINTERN PyObject *_wrap_ListCtrl_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29479 PyObject *resultobj = 0;
29480 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29481 int result;
29482 void *argp1 = 0 ;
29483 int res1 = 0 ;
29484 PyObject *swig_obj[1] ;
29485
29486 if (!args) SWIG_fail;
29487 swig_obj[0] = args;
29488 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29489 if (!SWIG_IsOK(res1)) {
29490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29491 }
29492 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29493 {
29494 PyThreadState* __tstate = wxPyBeginAllowThreads();
29495 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
29496 wxPyEndAllowThreads(__tstate);
29497 if (PyErr_Occurred()) SWIG_fail;
29498 }
29499 resultobj = SWIG_From_int(static_cast< int >(result));
29500 return resultobj;
29501fail:
29502 return NULL;
d14a1e28
RD
29503}
29504
29505
0085ce49
RD
29506SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29507 PyObject *resultobj = 0;
29508 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29509 int result;
29510 void *argp1 = 0 ;
29511 int res1 = 0 ;
29512 PyObject *swig_obj[1] ;
29513
29514 if (!args) SWIG_fail;
29515 swig_obj[0] = args;
29516 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29517 if (!SWIG_IsOK(res1)) {
29518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29519 }
29520 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29521 {
29522 PyThreadState* __tstate = wxPyBeginAllowThreads();
29523 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
29524 wxPyEndAllowThreads(__tstate);
29525 if (PyErr_Occurred()) SWIG_fail;
29526 }
29527 resultobj = SWIG_From_int(static_cast< int >(result));
29528 return resultobj;
29529fail:
29530 return NULL;
d14a1e28
RD
29531}
29532
29533
0085ce49
RD
29534SWIGINTERN PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29535 PyObject *resultobj = 0;
29536 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29537 wxSize result;
29538 void *argp1 = 0 ;
29539 int res1 = 0 ;
29540 PyObject *swig_obj[1] ;
29541
29542 if (!args) SWIG_fail;
29543 swig_obj[0] = args;
29544 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29545 if (!SWIG_IsOK(res1)) {
29546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29547 }
29548 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29549 {
29550 PyThreadState* __tstate = wxPyBeginAllowThreads();
29551 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
29552 wxPyEndAllowThreads(__tstate);
29553 if (PyErr_Occurred()) SWIG_fail;
29554 }
29555 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
29556 return resultobj;
29557fail:
29558 return NULL;
29559}
29560
29561
29562SWIGINTERN PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29563 PyObject *resultobj = 0;
29564 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29565 int arg2 ;
29566 bool arg3 = (bool) false ;
29567 void *argp1 = 0 ;
29568 int res1 = 0 ;
29569 int val2 ;
29570 int ecode2 = 0 ;
29571 bool val3 ;
29572 int ecode3 = 0 ;
29573 PyObject * obj0 = 0 ;
29574 PyObject * obj1 = 0 ;
29575 PyObject * obj2 = 0 ;
29576 char * kwnames[] = {
29577 (char *) "self",(char *) "spacing",(char *) "isSmall", NULL
29578 };
29579
29580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29582 if (!SWIG_IsOK(res1)) {
29583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29584 }
29585 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29586 ecode2 = SWIG_AsVal_int(obj1, &val2);
29587 if (!SWIG_IsOK(ecode2)) {
29588 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "2"" of type '" "int""'");
29589 }
29590 arg2 = static_cast< int >(val2);
29591 if (obj2) {
29592 ecode3 = SWIG_AsVal_bool(obj2, &val3);
29593 if (!SWIG_IsOK(ecode3)) {
29594 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "3"" of type '" "bool""'");
29595 }
29596 arg3 = static_cast< bool >(val3);
29597 }
29598 {
29599 PyThreadState* __tstate = wxPyBeginAllowThreads();
29600 (arg1)->SetItemSpacing(arg2,arg3);
29601 wxPyEndAllowThreads(__tstate);
29602 if (PyErr_Occurred()) SWIG_fail;
29603 }
29604 resultobj = SWIG_Py_Void();
29605 return resultobj;
29606fail:
29607 return NULL;
22bfe96c
RD
29608}
29609
29610
0085ce49
RD
29611SWIGINTERN PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29612 PyObject *resultobj = 0;
29613 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29614 int result;
29615 void *argp1 = 0 ;
29616 int res1 = 0 ;
29617 PyObject *swig_obj[1] ;
29618
29619 if (!args) SWIG_fail;
29620 swig_obj[0] = args;
29621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29622 if (!SWIG_IsOK(res1)) {
29623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetSelectedItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29624 }
29625 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29626 {
29627 PyThreadState* __tstate = wxPyBeginAllowThreads();
29628 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
29629 wxPyEndAllowThreads(__tstate);
29630 if (PyErr_Occurred()) SWIG_fail;
29631 }
29632 resultobj = SWIG_From_int(static_cast< int >(result));
29633 return resultobj;
29634fail:
29635 return NULL;
d14a1e28
RD
29636}
29637
29638
0085ce49
RD
29639SWIGINTERN PyObject *_wrap_ListCtrl_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29640 PyObject *resultobj = 0;
29641 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29642 wxColour result;
29643 void *argp1 = 0 ;
29644 int res1 = 0 ;
29645 PyObject *swig_obj[1] ;
29646
29647 if (!args) SWIG_fail;
29648 swig_obj[0] = args;
29649 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29650 if (!SWIG_IsOK(res1)) {
29651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29652 }
29653 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29654 {
29655 PyThreadState* __tstate = wxPyBeginAllowThreads();
29656 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
29657 wxPyEndAllowThreads(__tstate);
29658 if (PyErr_Occurred()) SWIG_fail;
29659 }
29660 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29661 return resultobj;
29662fail:
29663 return NULL;
29664}
29665
29666
29667SWIGINTERN PyObject *_wrap_ListCtrl_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29668 PyObject *resultobj = 0;
29669 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29670 wxColour *arg2 = 0 ;
29671 void *argp1 = 0 ;
29672 int res1 = 0 ;
29673 wxColour temp2 ;
29674 PyObject * obj0 = 0 ;
29675 PyObject * obj1 = 0 ;
29676 char * kwnames[] = {
29677 (char *) "self",(char *) "col", NULL
29678 };
29679
29680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
29681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29682 if (!SWIG_IsOK(res1)) {
29683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29684 }
29685 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29686 {
29687 arg2 = &temp2;
29688 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29689 }
29690 {
29691 PyThreadState* __tstate = wxPyBeginAllowThreads();
29692 (arg1)->SetTextColour((wxColour const &)*arg2);
29693 wxPyEndAllowThreads(__tstate);
29694 if (PyErr_Occurred()) SWIG_fail;
29695 }
29696 resultobj = SWIG_Py_Void();
29697 return resultobj;
29698fail:
29699 return NULL;
d14a1e28
RD
29700}
29701
29702
0085ce49
RD
29703SWIGINTERN PyObject *_wrap_ListCtrl_GetTopItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29704 PyObject *resultobj = 0;
29705 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29706 long result;
29707 void *argp1 = 0 ;
29708 int res1 = 0 ;
29709 PyObject *swig_obj[1] ;
29710
29711 if (!args) SWIG_fail;
29712 swig_obj[0] = args;
29713 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29714 if (!SWIG_IsOK(res1)) {
29715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTopItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29716 }
29717 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29718 {
29719 PyThreadState* __tstate = wxPyBeginAllowThreads();
29720 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
29721 wxPyEndAllowThreads(__tstate);
29722 if (PyErr_Occurred()) SWIG_fail;
29723 }
29724 resultobj = SWIG_From_long(static_cast< long >(result));
29725 return resultobj;
29726fail:
29727 return NULL;
29728}
29729
29730
29731SWIGINTERN PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29732 PyObject *resultobj = 0;
29733 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29734 long arg2 ;
29735 bool arg3 = (bool) true ;
29736 void *argp1 = 0 ;
29737 int res1 = 0 ;
29738 long val2 ;
29739 int ecode2 = 0 ;
29740 bool val3 ;
29741 int ecode3 = 0 ;
29742 PyObject * obj0 = 0 ;
29743 PyObject * obj1 = 0 ;
29744 PyObject * obj2 = 0 ;
29745 char * kwnames[] = {
29746 (char *) "self",(char *) "style",(char *) "add", NULL
29747 };
29748
29749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29751 if (!SWIG_IsOK(res1)) {
29752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29753 }
29754 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29755 ecode2 = SWIG_AsVal_long(obj1, &val2);
29756 if (!SWIG_IsOK(ecode2)) {
29757 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "2"" of type '" "long""'");
29758 }
29759 arg2 = static_cast< long >(val2);
29760 if (obj2) {
29761 ecode3 = SWIG_AsVal_bool(obj2, &val3);
29762 if (!SWIG_IsOK(ecode3)) {
29763 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "3"" of type '" "bool""'");
29764 }
29765 arg3 = static_cast< bool >(val3);
29766 }
29767 {
29768 PyThreadState* __tstate = wxPyBeginAllowThreads();
29769 (arg1)->SetSingleStyle(arg2,arg3);
29770 wxPyEndAllowThreads(__tstate);
29771 if (PyErr_Occurred()) SWIG_fail;
29772 }
29773 resultobj = SWIG_Py_Void();
29774 return resultobj;
29775fail:
29776 return NULL;
29777}
29778
29779
29780SWIGINTERN PyObject *_wrap_ListCtrl_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29781 PyObject *resultobj = 0;
29782 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29783 long arg2 ;
29784 int arg3 = (int) wxLIST_NEXT_ALL ;
29785 int arg4 = (int) wxLIST_STATE_DONTCARE ;
29786 long result;
29787 void *argp1 = 0 ;
29788 int res1 = 0 ;
29789 long val2 ;
29790 int ecode2 = 0 ;
29791 int val3 ;
29792 int ecode3 = 0 ;
29793 int val4 ;
29794 int ecode4 = 0 ;
29795 PyObject * obj0 = 0 ;
29796 PyObject * obj1 = 0 ;
29797 PyObject * obj2 = 0 ;
29798 PyObject * obj3 = 0 ;
29799 char * kwnames[] = {
29800 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
29801 };
29802
29803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29805 if (!SWIG_IsOK(res1)) {
29806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetNextItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29807 }
29808 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29809 ecode2 = SWIG_AsVal_long(obj1, &val2);
29810 if (!SWIG_IsOK(ecode2)) {
29811 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetNextItem" "', expected argument " "2"" of type '" "long""'");
29812 }
29813 arg2 = static_cast< long >(val2);
29814 if (obj2) {
29815 ecode3 = SWIG_AsVal_int(obj2, &val3);
29816 if (!SWIG_IsOK(ecode3)) {
29817 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetNextItem" "', expected argument " "3"" of type '" "int""'");
29818 }
29819 arg3 = static_cast< int >(val3);
29820 }
29821 if (obj3) {
29822 ecode4 = SWIG_AsVal_int(obj3, &val4);
29823 if (!SWIG_IsOK(ecode4)) {
29824 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_GetNextItem" "', expected argument " "4"" of type '" "int""'");
29825 }
29826 arg4 = static_cast< int >(val4);
29827 }
29828 {
29829 PyThreadState* __tstate = wxPyBeginAllowThreads();
29830 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
29831 wxPyEndAllowThreads(__tstate);
29832 if (PyErr_Occurred()) SWIG_fail;
29833 }
29834 resultobj = SWIG_From_long(static_cast< long >(result));
29835 return resultobj;
29836fail:
29837 return NULL;
29838}
29839
29840
29841SWIGINTERN PyObject *_wrap_ListCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29842 PyObject *resultobj = 0;
29843 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29844 int arg2 ;
29845 wxImageList *result = 0 ;
29846 void *argp1 = 0 ;
29847 int res1 = 0 ;
29848 int val2 ;
29849 int ecode2 = 0 ;
29850 PyObject * obj0 = 0 ;
29851 PyObject * obj1 = 0 ;
29852 char * kwnames[] = {
29853 (char *) "self",(char *) "which", NULL
29854 };
29855
29856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
29857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29858 if (!SWIG_IsOK(res1)) {
29859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29860 }
29861 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29862 ecode2 = SWIG_AsVal_int(obj1, &val2);
29863 if (!SWIG_IsOK(ecode2)) {
29864 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetImageList" "', expected argument " "2"" of type '" "int""'");
29865 }
29866 arg2 = static_cast< int >(val2);
29867 {
29868 PyThreadState* __tstate = wxPyBeginAllowThreads();
29869 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
29870 wxPyEndAllowThreads(__tstate);
29871 if (PyErr_Occurred()) SWIG_fail;
29872 }
29873 {
29874 resultobj = wxPyMake_wxObject(result, (bool)0);
29875 }
29876 return resultobj;
29877fail:
29878 return NULL;
29879}
29880
29881
29882SWIGINTERN PyObject *_wrap_ListCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29883 PyObject *resultobj = 0;
29884 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29885 wxImageList *arg2 = (wxImageList *) 0 ;
29886 int arg3 ;
29887 void *argp1 = 0 ;
29888 int res1 = 0 ;
29889 void *argp2 = 0 ;
29890 int res2 = 0 ;
29891 int val3 ;
29892 int ecode3 = 0 ;
29893 PyObject * obj0 = 0 ;
29894 PyObject * obj1 = 0 ;
29895 PyObject * obj2 = 0 ;
29896 char * kwnames[] = {
29897 (char *) "self",(char *) "imageList",(char *) "which", NULL
29898 };
29899
29900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29901 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29902 if (!SWIG_IsOK(res1)) {
29903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29904 }
29905 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29906 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
29907 if (!SWIG_IsOK(res2)) {
29908 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
29909 }
29910 arg2 = reinterpret_cast< wxImageList * >(argp2);
29911 ecode3 = SWIG_AsVal_int(obj2, &val3);
29912 if (!SWIG_IsOK(ecode3)) {
29913 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetImageList" "', expected argument " "3"" of type '" "int""'");
29914 }
29915 arg3 = static_cast< int >(val3);
29916 {
29917 PyThreadState* __tstate = wxPyBeginAllowThreads();
29918 (arg1)->SetImageList(arg2,arg3);
29919 wxPyEndAllowThreads(__tstate);
29920 if (PyErr_Occurred()) SWIG_fail;
29921 }
29922 resultobj = SWIG_Py_Void();
29923 return resultobj;
29924fail:
29925 return NULL;
29926}
29927
29928
29929SWIGINTERN PyObject *_wrap_ListCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29930 PyObject *resultobj = 0;
29931 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29932 wxImageList *arg2 = (wxImageList *) 0 ;
29933 int arg3 ;
29934 void *argp1 = 0 ;
29935 int res1 = 0 ;
29936 int res2 = 0 ;
29937 int val3 ;
29938 int ecode3 = 0 ;
29939 PyObject * obj0 = 0 ;
29940 PyObject * obj1 = 0 ;
29941 PyObject * obj2 = 0 ;
29942 char * kwnames[] = {
29943 (char *) "self",(char *) "imageList",(char *) "which", NULL
29944 };
29945
29946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29948 if (!SWIG_IsOK(res1)) {
29949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29950 }
29951 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29952 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
29953 if (!SWIG_IsOK(res2)) {
29954 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
29955 }
29956 ecode3 = SWIG_AsVal_int(obj2, &val3);
29957 if (!SWIG_IsOK(ecode3)) {
29958 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_AssignImageList" "', expected argument " "3"" of type '" "int""'");
29959 }
29960 arg3 = static_cast< int >(val3);
29961 {
29962 PyThreadState* __tstate = wxPyBeginAllowThreads();
29963 (arg1)->AssignImageList(arg2,arg3);
29964 wxPyEndAllowThreads(__tstate);
29965 if (PyErr_Occurred()) SWIG_fail;
29966 }
29967 resultobj = SWIG_Py_Void();
29968 return resultobj;
29969fail:
29970 return NULL;
d14a1e28
RD
29971}
29972
29973
0085ce49
RD
29974SWIGINTERN PyObject *_wrap_ListCtrl_InReportView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29975 PyObject *resultobj = 0;
29976 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29977 bool result;
29978 void *argp1 = 0 ;
29979 int res1 = 0 ;
29980 PyObject *swig_obj[1] ;
29981
29982 if (!args) SWIG_fail;
29983 swig_obj[0] = args;
29984 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29985 if (!SWIG_IsOK(res1)) {
29986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InReportView" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29987 }
29988 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29989 {
29990 PyThreadState* __tstate = wxPyBeginAllowThreads();
29991 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
29992 wxPyEndAllowThreads(__tstate);
29993 if (PyErr_Occurred()) SWIG_fail;
29994 }
29995 {
29996 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29997 }
29998 return resultobj;
29999fail:
30000 return NULL;
d14a1e28
RD
30001}
30002
30003
0085ce49
RD
30004SWIGINTERN PyObject *_wrap_ListCtrl_IsVirtual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30005 PyObject *resultobj = 0;
30006 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30007 bool result;
30008 void *argp1 = 0 ;
30009 int res1 = 0 ;
30010 PyObject *swig_obj[1] ;
30011
30012 if (!args) SWIG_fail;
30013 swig_obj[0] = args;
30014 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30015 if (!SWIG_IsOK(res1)) {
30016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_IsVirtual" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30017 }
30018 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30019 {
30020 PyThreadState* __tstate = wxPyBeginAllowThreads();
30021 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
30022 wxPyEndAllowThreads(__tstate);
30023 if (PyErr_Occurred()) SWIG_fail;
30024 }
30025 {
30026 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30027 }
30028 return resultobj;
30029fail:
30030 return NULL;
30031}
30032
30033
30034SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30035 PyObject *resultobj = 0;
30036 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30037 long arg2 ;
30038 void *argp1 = 0 ;
30039 int res1 = 0 ;
30040 long val2 ;
30041 int ecode2 = 0 ;
30042 PyObject * obj0 = 0 ;
30043 PyObject * obj1 = 0 ;
30044 char * kwnames[] = {
30045 (char *) "self",(char *) "item", NULL
30046 };
30047
30048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) SWIG_fail;
30049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30050 if (!SWIG_IsOK(res1)) {
30051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30052 }
30053 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30054 ecode2 = SWIG_AsVal_long(obj1, &val2);
30055 if (!SWIG_IsOK(ecode2)) {
30056 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItem" "', expected argument " "2"" of type '" "long""'");
30057 }
30058 arg2 = static_cast< long >(val2);
30059 {
30060 PyThreadState* __tstate = wxPyBeginAllowThreads();
30061 (arg1)->RefreshItem(arg2);
30062 wxPyEndAllowThreads(__tstate);
30063 if (PyErr_Occurred()) SWIG_fail;
30064 }
30065 resultobj = SWIG_Py_Void();
30066 return resultobj;
30067fail:
30068 return NULL;
30069}
30070
30071
30072SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30073 PyObject *resultobj = 0;
30074 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30075 long arg2 ;
30076 long arg3 ;
30077 void *argp1 = 0 ;
30078 int res1 = 0 ;
30079 long val2 ;
30080 int ecode2 = 0 ;
30081 long val3 ;
30082 int ecode3 = 0 ;
30083 PyObject * obj0 = 0 ;
30084 PyObject * obj1 = 0 ;
30085 PyObject * obj2 = 0 ;
30086 char * kwnames[] = {
30087 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
30088 };
30089
30090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30092 if (!SWIG_IsOK(res1)) {
30093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30094 }
30095 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30096 ecode2 = SWIG_AsVal_long(obj1, &val2);
30097 if (!SWIG_IsOK(ecode2)) {
30098 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItems" "', expected argument " "2"" of type '" "long""'");
30099 }
30100 arg2 = static_cast< long >(val2);
30101 ecode3 = SWIG_AsVal_long(obj2, &val3);
30102 if (!SWIG_IsOK(ecode3)) {
30103 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_RefreshItems" "', expected argument " "3"" of type '" "long""'");
30104 }
30105 arg3 = static_cast< long >(val3);
30106 {
30107 PyThreadState* __tstate = wxPyBeginAllowThreads();
30108 (arg1)->RefreshItems(arg2,arg3);
30109 wxPyEndAllowThreads(__tstate);
30110 if (PyErr_Occurred()) SWIG_fail;
30111 }
30112 resultobj = SWIG_Py_Void();
30113 return resultobj;
30114fail:
30115 return NULL;
30116}
30117
30118
30119SWIGINTERN PyObject *_wrap_ListCtrl_Arrange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30120 PyObject *resultobj = 0;
30121 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30122 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
30123 bool result;
30124 void *argp1 = 0 ;
30125 int res1 = 0 ;
30126 int val2 ;
30127 int ecode2 = 0 ;
30128 PyObject * obj0 = 0 ;
30129 PyObject * obj1 = 0 ;
30130 char * kwnames[] = {
30131 (char *) "self",(char *) "flag", NULL
30132 };
30133
30134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) SWIG_fail;
30135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30136 if (!SWIG_IsOK(res1)) {
30137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Arrange" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30138 }
30139 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30140 if (obj1) {
30141 ecode2 = SWIG_AsVal_int(obj1, &val2);
30142 if (!SWIG_IsOK(ecode2)) {
30143 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_Arrange" "', expected argument " "2"" of type '" "int""'");
30144 }
30145 arg2 = static_cast< int >(val2);
30146 }
30147 {
30148 PyThreadState* __tstate = wxPyBeginAllowThreads();
30149 result = (bool)(arg1)->Arrange(arg2);
30150 wxPyEndAllowThreads(__tstate);
30151 if (PyErr_Occurred()) SWIG_fail;
30152 }
30153 {
30154 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30155 }
30156 return resultobj;
30157fail:
30158 return NULL;
30159}
30160
30161
30162SWIGINTERN PyObject *_wrap_ListCtrl_DeleteItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30163 PyObject *resultobj = 0;
30164 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30165 long arg2 ;
30166 bool result;
30167 void *argp1 = 0 ;
30168 int res1 = 0 ;
30169 long val2 ;
30170 int ecode2 = 0 ;
30171 PyObject * obj0 = 0 ;
30172 PyObject * obj1 = 0 ;
30173 char * kwnames[] = {
30174 (char *) "self",(char *) "item", NULL
30175 };
30176
30177 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) SWIG_fail;
30178 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30179 if (!SWIG_IsOK(res1)) {
30180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30181 }
30182 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30183 ecode2 = SWIG_AsVal_long(obj1, &val2);
30184 if (!SWIG_IsOK(ecode2)) {
30185 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteItem" "', expected argument " "2"" of type '" "long""'");
30186 }
30187 arg2 = static_cast< long >(val2);
30188 {
30189 PyThreadState* __tstate = wxPyBeginAllowThreads();
30190 result = (bool)(arg1)->DeleteItem(arg2);
30191 wxPyEndAllowThreads(__tstate);
30192 if (PyErr_Occurred()) SWIG_fail;
30193 }
30194 {
30195 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30196 }
30197 return resultobj;
30198fail:
30199 return NULL;
7e08d4ef
RD
30200}
30201
30202
0085ce49
RD
30203SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30204 PyObject *resultobj = 0;
30205 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30206 bool result;
30207 void *argp1 = 0 ;
30208 int res1 = 0 ;
30209 PyObject *swig_obj[1] ;
30210
30211 if (!args) SWIG_fail;
30212 swig_obj[0] = args;
30213 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30214 if (!SWIG_IsOK(res1)) {
30215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30216 }
30217 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30218 {
30219 PyThreadState* __tstate = wxPyBeginAllowThreads();
30220 result = (bool)(arg1)->DeleteAllItems();
30221 wxPyEndAllowThreads(__tstate);
30222 if (PyErr_Occurred()) SWIG_fail;
30223 }
30224 {
30225 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30226 }
30227 return resultobj;
30228fail:
30229 return NULL;
30230}
30231
30232
30233SWIGINTERN PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30234 PyObject *resultobj = 0;
30235 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30236 int arg2 ;
30237 bool result;
30238 void *argp1 = 0 ;
30239 int res1 = 0 ;
30240 int val2 ;
30241 int ecode2 = 0 ;
30242 PyObject * obj0 = 0 ;
30243 PyObject * obj1 = 0 ;
30244 char * kwnames[] = {
30245 (char *) "self",(char *) "col", NULL
30246 };
30247
30248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) SWIG_fail;
30249 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30250 if (!SWIG_IsOK(res1)) {
30251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30252 }
30253 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30254 ecode2 = SWIG_AsVal_int(obj1, &val2);
30255 if (!SWIG_IsOK(ecode2)) {
30256 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "2"" of type '" "int""'");
30257 }
30258 arg2 = static_cast< int >(val2);
30259 {
30260 PyThreadState* __tstate = wxPyBeginAllowThreads();
30261 result = (bool)(arg1)->DeleteColumn(arg2);
30262 wxPyEndAllowThreads(__tstate);
30263 if (PyErr_Occurred()) SWIG_fail;
30264 }
30265 {
30266 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30267 }
30268 return resultobj;
30269fail:
30270 return NULL;
7e08d4ef
RD
30271}
30272
30273
0085ce49
RD
30274SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30275 PyObject *resultobj = 0;
30276 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30277 bool result;
30278 void *argp1 = 0 ;
30279 int res1 = 0 ;
30280 PyObject *swig_obj[1] ;
30281
30282 if (!args) SWIG_fail;
30283 swig_obj[0] = args;
30284 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30285 if (!SWIG_IsOK(res1)) {
30286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllColumns" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30287 }
30288 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30289 {
30290 PyThreadState* __tstate = wxPyBeginAllowThreads();
30291 result = (bool)(arg1)->DeleteAllColumns();
30292 wxPyEndAllowThreads(__tstate);
30293 if (PyErr_Occurred()) SWIG_fail;
30294 }
30295 {
30296 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30297 }
30298 return resultobj;
30299fail:
30300 return NULL;
7e08d4ef
RD
30301}
30302
30303
0085ce49
RD
30304SWIGINTERN PyObject *_wrap_ListCtrl_ClearAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30305 PyObject *resultobj = 0;
30306 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30307 void *argp1 = 0 ;
30308 int res1 = 0 ;
30309 PyObject *swig_obj[1] ;
30310
30311 if (!args) SWIG_fail;
30312 swig_obj[0] = args;
30313 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30314 if (!SWIG_IsOK(res1)) {
30315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ClearAll" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30316 }
30317 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30318 {
30319 PyThreadState* __tstate = wxPyBeginAllowThreads();
30320 (arg1)->ClearAll();
30321 wxPyEndAllowThreads(__tstate);
30322 if (PyErr_Occurred()) SWIG_fail;
30323 }
30324 resultobj = SWIG_Py_Void();
30325 return resultobj;
30326fail:
30327 return NULL;
30328}
30329
30330
30331SWIGINTERN PyObject *_wrap_ListCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30332 PyObject *resultobj = 0;
30333 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30334 long arg2 ;
30335 void *argp1 = 0 ;
30336 int res1 = 0 ;
30337 long val2 ;
30338 int ecode2 = 0 ;
30339 PyObject * obj0 = 0 ;
30340 PyObject * obj1 = 0 ;
30341 char * kwnames[] = {
30342 (char *) "self",(char *) "item", NULL
30343 };
30344
30345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
30346 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30347 if (!SWIG_IsOK(res1)) {
30348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30349 }
30350 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30351 ecode2 = SWIG_AsVal_long(obj1, &val2);
30352 if (!SWIG_IsOK(ecode2)) {
30353 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EditLabel" "', expected argument " "2"" of type '" "long""'");
30354 }
30355 arg2 = static_cast< long >(val2);
30356 {
30357 PyThreadState* __tstate = wxPyBeginAllowThreads();
30358 (arg1)->EditLabel(arg2);
30359 wxPyEndAllowThreads(__tstate);
30360 if (PyErr_Occurred()) SWIG_fail;
30361 }
30362 resultobj = SWIG_Py_Void();
30363 return resultobj;
30364fail:
30365 return NULL;
30366}
30367
30368
30369SWIGINTERN PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30370 PyObject *resultobj = 0;
30371 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30372 long arg2 ;
30373 bool result;
30374 void *argp1 = 0 ;
30375 int res1 = 0 ;
30376 long val2 ;
30377 int ecode2 = 0 ;
30378 PyObject * obj0 = 0 ;
30379 PyObject * obj1 = 0 ;
30380 char * kwnames[] = {
30381 (char *) "self",(char *) "item", NULL
30382 };
30383
30384 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
30385 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30386 if (!SWIG_IsOK(res1)) {
30387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30388 }
30389 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30390 ecode2 = SWIG_AsVal_long(obj1, &val2);
30391 if (!SWIG_IsOK(ecode2)) {
30392 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "2"" of type '" "long""'");
30393 }
30394 arg2 = static_cast< long >(val2);
30395 {
30396 PyThreadState* __tstate = wxPyBeginAllowThreads();
30397 result = (bool)(arg1)->EnsureVisible(arg2);
30398 wxPyEndAllowThreads(__tstate);
30399 if (PyErr_Occurred()) SWIG_fail;
30400 }
30401 {
30402 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30403 }
30404 return resultobj;
30405fail:
30406 return NULL;
30407}
30408
30409
30410SWIGINTERN PyObject *_wrap_ListCtrl_FindItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30411 PyObject *resultobj = 0;
30412 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30413 long arg2 ;
30414 wxString *arg3 = 0 ;
30415 bool arg4 = (bool) false ;
30416 long result;
30417 void *argp1 = 0 ;
30418 int res1 = 0 ;
30419 long val2 ;
30420 int ecode2 = 0 ;
30421 bool temp3 = false ;
30422 bool val4 ;
30423 int ecode4 = 0 ;
30424 PyObject * obj0 = 0 ;
30425 PyObject * obj1 = 0 ;
30426 PyObject * obj2 = 0 ;
30427 PyObject * obj3 = 0 ;
30428 char * kwnames[] = {
30429 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
30430 };
30431
30432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30433 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30434 if (!SWIG_IsOK(res1)) {
30435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30436 }
30437 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30438 ecode2 = SWIG_AsVal_long(obj1, &val2);
30439 if (!SWIG_IsOK(ecode2)) {
30440 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItem" "', expected argument " "2"" of type '" "long""'");
30441 }
30442 arg2 = static_cast< long >(val2);
30443 {
30444 arg3 = wxString_in_helper(obj2);
30445 if (arg3 == NULL) SWIG_fail;
30446 temp3 = true;
30447 }
30448 if (obj3) {
30449 ecode4 = SWIG_AsVal_bool(obj3, &val4);
30450 if (!SWIG_IsOK(ecode4)) {
30451 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItem" "', expected argument " "4"" of type '" "bool""'");
30452 }
30453 arg4 = static_cast< bool >(val4);
30454 }
30455 {
30456 PyThreadState* __tstate = wxPyBeginAllowThreads();
30457 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
30458 wxPyEndAllowThreads(__tstate);
30459 if (PyErr_Occurred()) SWIG_fail;
30460 }
30461 resultobj = SWIG_From_long(static_cast< long >(result));
30462 {
30463 if (temp3)
30464 delete arg3;
30465 }
30466 return resultobj;
30467fail:
30468 {
30469 if (temp3)
30470 delete arg3;
30471 }
30472 return NULL;
30473}
30474
30475
30476SWIGINTERN PyObject *_wrap_ListCtrl_FindItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30477 PyObject *resultobj = 0;
30478 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30479 long arg2 ;
30480 long arg3 ;
30481 long result;
30482 void *argp1 = 0 ;
30483 int res1 = 0 ;
30484 long val2 ;
30485 int ecode2 = 0 ;
30486 long val3 ;
30487 int ecode3 = 0 ;
30488 PyObject * obj0 = 0 ;
30489 PyObject * obj1 = 0 ;
30490 PyObject * obj2 = 0 ;
30491 char * kwnames[] = {
30492 (char *) "self",(char *) "start",(char *) "data", NULL
30493 };
30494
30495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30497 if (!SWIG_IsOK(res1)) {
30498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30499 }
30500 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30501 ecode2 = SWIG_AsVal_long(obj1, &val2);
30502 if (!SWIG_IsOK(ecode2)) {
30503 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemData" "', expected argument " "2"" of type '" "long""'");
30504 }
30505 arg2 = static_cast< long >(val2);
30506 ecode3 = SWIG_AsVal_long(obj2, &val3);
30507 if (!SWIG_IsOK(ecode3)) {
30508 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_FindItemData" "', expected argument " "3"" of type '" "long""'");
30509 }
30510 arg3 = static_cast< long >(val3);
30511 {
30512 PyThreadState* __tstate = wxPyBeginAllowThreads();
30513 result = (long)(arg1)->FindItem(arg2,arg3);
30514 wxPyEndAllowThreads(__tstate);
30515 if (PyErr_Occurred()) SWIG_fail;
30516 }
30517 resultobj = SWIG_From_long(static_cast< long >(result));
30518 return resultobj;
30519fail:
30520 return NULL;
30521}
30522
30523
30524SWIGINTERN PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30525 PyObject *resultobj = 0;
30526 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30527 long arg2 ;
30528 wxPoint *arg3 = 0 ;
30529 int arg4 ;
30530 long result;
30531 void *argp1 = 0 ;
30532 int res1 = 0 ;
30533 long val2 ;
30534 int ecode2 = 0 ;
30535 wxPoint temp3 ;
30536 int val4 ;
30537 int ecode4 = 0 ;
30538 PyObject * obj0 = 0 ;
30539 PyObject * obj1 = 0 ;
30540 PyObject * obj2 = 0 ;
30541 PyObject * obj3 = 0 ;
30542 char * kwnames[] = {
30543 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
30544 };
30545
30546 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30547 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30548 if (!SWIG_IsOK(res1)) {
30549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30550 }
30551 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30552 ecode2 = SWIG_AsVal_long(obj1, &val2);
30553 if (!SWIG_IsOK(ecode2)) {
30554 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "2"" of type '" "long""'");
30555 }
30556 arg2 = static_cast< long >(val2);
30557 {
30558 arg3 = &temp3;
30559 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30560 }
30561 ecode4 = SWIG_AsVal_int(obj3, &val4);
30562 if (!SWIG_IsOK(ecode4)) {
30563 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "4"" of type '" "int""'");
30564 }
30565 arg4 = static_cast< int >(val4);
30566 {
30567 PyThreadState* __tstate = wxPyBeginAllowThreads();
30568 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
30569 wxPyEndAllowThreads(__tstate);
30570 if (PyErr_Occurred()) SWIG_fail;
30571 }
30572 resultobj = SWIG_From_long(static_cast< long >(result));
30573 return resultobj;
30574fail:
30575 return NULL;
30576}
30577
30578
30579SWIGINTERN PyObject *_wrap_ListCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30580 PyObject *resultobj = 0;
30581 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30582 wxPoint *arg2 = 0 ;
30583 int *arg3 = 0 ;
30584 long result;
30585 void *argp1 = 0 ;
30586 int res1 = 0 ;
30587 wxPoint temp2 ;
30588 int temp3 ;
30589 int res3 = SWIG_TMPOBJ ;
30590 PyObject * obj0 = 0 ;
30591 PyObject * obj1 = 0 ;
30592 char * kwnames[] = {
30593 (char *) "self",(char *) "point", NULL
30594 };
30595
30596 arg3 = &temp3;
30597 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
30598 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30599 if (!SWIG_IsOK(res1)) {
30600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30601 }
30602 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30603 {
30604 arg2 = &temp2;
30605 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30606 }
30607 {
30608 PyThreadState* __tstate = wxPyBeginAllowThreads();
30609 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
30610 wxPyEndAllowThreads(__tstate);
30611 if (PyErr_Occurred()) SWIG_fail;
30612 }
30613 resultobj = SWIG_From_long(static_cast< long >(result));
30614 if (SWIG_IsTmpObj(res3)) {
30615 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
30616 } else {
30617 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30618 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
30619 }
30620 return resultobj;
30621fail:
30622 return NULL;
30623}
30624
30625
30626SWIGINTERN PyObject *_wrap_ListCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30627 PyObject *resultobj = 0;
30628 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30629 wxListItem *arg2 = 0 ;
30630 long result;
30631 void *argp1 = 0 ;
30632 int res1 = 0 ;
30633 void *argp2 = 0 ;
30634 int res2 = 0 ;
30635 PyObject * obj0 = 0 ;
30636 PyObject * obj1 = 0 ;
30637 char * kwnames[] = {
30638 (char *) "self",(char *) "info", NULL
30639 };
30640
30641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) SWIG_fail;
30642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30643 if (!SWIG_IsOK(res1)) {
30644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30645 }
30646 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30647 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
30648 if (!SWIG_IsOK(res2)) {
30649 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
30650 }
30651 if (!argp2) {
30652 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
30653 }
30654 arg2 = reinterpret_cast< wxListItem * >(argp2);
30655 {
30656 PyThreadState* __tstate = wxPyBeginAllowThreads();
30657 result = (long)(arg1)->InsertItem(*arg2);
30658 wxPyEndAllowThreads(__tstate);
30659 if (PyErr_Occurred()) SWIG_fail;
30660 }
30661 resultobj = SWIG_From_long(static_cast< long >(result));
30662 return resultobj;
30663fail:
30664 return NULL;
30665}
30666
30667
30668SWIGINTERN PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30669 PyObject *resultobj = 0;
30670 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30671 long arg2 ;
30672 wxString *arg3 = 0 ;
30673 int arg4 = (int) -1 ;
30674 long result;
30675 void *argp1 = 0 ;
30676 int res1 = 0 ;
30677 long val2 ;
30678 int ecode2 = 0 ;
30679 bool temp3 = false ;
30680 int val4 ;
30681 int ecode4 = 0 ;
30682 PyObject * obj0 = 0 ;
30683 PyObject * obj1 = 0 ;
30684 PyObject * obj2 = 0 ;
30685 PyObject * obj3 = 0 ;
30686 char * kwnames[] = {
30687 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
30688 };
30689
30690 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30691 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30692 if (!SWIG_IsOK(res1)) {
30693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30694 }
30695 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30696 ecode2 = SWIG_AsVal_long(obj1, &val2);
30697 if (!SWIG_IsOK(ecode2)) {
30698 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "2"" of type '" "long""'");
30699 }
30700 arg2 = static_cast< long >(val2);
30701 {
30702 arg3 = wxString_in_helper(obj2);
30703 if (arg3 == NULL) SWIG_fail;
30704 temp3 = true;
30705 }
30706 if (obj3) {
30707 ecode4 = SWIG_AsVal_int(obj3, &val4);
30708 if (!SWIG_IsOK(ecode4)) {
30709 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "4"" of type '" "int""'");
30710 }
30711 arg4 = static_cast< int >(val4);
30712 }
30713 {
30714 PyThreadState* __tstate = wxPyBeginAllowThreads();
30715 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
30716 wxPyEndAllowThreads(__tstate);
30717 if (PyErr_Occurred()) SWIG_fail;
30718 }
30719 resultobj = SWIG_From_long(static_cast< long >(result));
30720 {
30721 if (temp3)
30722 delete arg3;
30723 }
30724 return resultobj;
30725fail:
30726 {
30727 if (temp3)
30728 delete arg3;
30729 }
30730 return NULL;
30731}
30732
30733
30734SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30735 PyObject *resultobj = 0;
30736 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30737 long arg2 ;
30738 int arg3 ;
30739 long result;
30740 void *argp1 = 0 ;
30741 int res1 = 0 ;
30742 long val2 ;
30743 int ecode2 = 0 ;
30744 int val3 ;
30745 int ecode3 = 0 ;
30746 PyObject * obj0 = 0 ;
30747 PyObject * obj1 = 0 ;
30748 PyObject * obj2 = 0 ;
30749 char * kwnames[] = {
30750 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
30751 };
30752
30753 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30754 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30755 if (!SWIG_IsOK(res1)) {
30756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30757 }
30758 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30759 ecode2 = SWIG_AsVal_long(obj1, &val2);
30760 if (!SWIG_IsOK(ecode2)) {
30761 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "2"" of type '" "long""'");
30762 }
30763 arg2 = static_cast< long >(val2);
30764 ecode3 = SWIG_AsVal_int(obj2, &val3);
30765 if (!SWIG_IsOK(ecode3)) {
30766 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "3"" of type '" "int""'");
30767 }
30768 arg3 = static_cast< int >(val3);
30769 {
30770 PyThreadState* __tstate = wxPyBeginAllowThreads();
30771 result = (long)(arg1)->InsertItem(arg2,arg3);
30772 wxPyEndAllowThreads(__tstate);
30773 if (PyErr_Occurred()) SWIG_fail;
30774 }
30775 resultobj = SWIG_From_long(static_cast< long >(result));
30776 return resultobj;
30777fail:
30778 return NULL;
30779}
30780
30781
30782SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30783 PyObject *resultobj = 0;
30784 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30785 long arg2 ;
30786 wxString *arg3 = 0 ;
30787 int arg4 ;
30788 long result;
30789 void *argp1 = 0 ;
30790 int res1 = 0 ;
30791 long val2 ;
30792 int ecode2 = 0 ;
30793 bool temp3 = false ;
30794 int val4 ;
30795 int ecode4 = 0 ;
30796 PyObject * obj0 = 0 ;
30797 PyObject * obj1 = 0 ;
30798 PyObject * obj2 = 0 ;
30799 PyObject * obj3 = 0 ;
30800 char * kwnames[] = {
30801 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
30802 };
30803
30804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30806 if (!SWIG_IsOK(res1)) {
30807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30808 }
30809 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30810 ecode2 = SWIG_AsVal_long(obj1, &val2);
30811 if (!SWIG_IsOK(ecode2)) {
30812 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "2"" of type '" "long""'");
30813 }
30814 arg2 = static_cast< long >(val2);
30815 {
30816 arg3 = wxString_in_helper(obj2);
30817 if (arg3 == NULL) SWIG_fail;
30818 temp3 = true;
30819 }
30820 ecode4 = SWIG_AsVal_int(obj3, &val4);
30821 if (!SWIG_IsOK(ecode4)) {
30822 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "4"" of type '" "int""'");
30823 }
30824 arg4 = static_cast< int >(val4);
30825 {
30826 PyThreadState* __tstate = wxPyBeginAllowThreads();
30827 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
30828 wxPyEndAllowThreads(__tstate);
30829 if (PyErr_Occurred()) SWIG_fail;
30830 }
30831 resultobj = SWIG_From_long(static_cast< long >(result));
30832 {
30833 if (temp3)
30834 delete arg3;
30835 }
30836 return resultobj;
30837fail:
30838 {
30839 if (temp3)
30840 delete arg3;
30841 }
30842 return NULL;
30843}
30844
30845
30846SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30847 PyObject *resultobj = 0;
30848 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30849 long arg2 ;
30850 wxListItem *arg3 = 0 ;
30851 long result;
30852 void *argp1 = 0 ;
30853 int res1 = 0 ;
30854 long val2 ;
30855 int ecode2 = 0 ;
30856 void *argp3 = 0 ;
30857 int res3 = 0 ;
30858 PyObject * obj0 = 0 ;
30859 PyObject * obj1 = 0 ;
30860 PyObject * obj2 = 0 ;
30861 char * kwnames[] = {
30862 (char *) "self",(char *) "col",(char *) "info", NULL
30863 };
30864
30865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30866 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30867 if (!SWIG_IsOK(res1)) {
30868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30869 }
30870 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30871 ecode2 = SWIG_AsVal_long(obj1, &val2);
30872 if (!SWIG_IsOK(ecode2)) {
30873 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "2"" of type '" "long""'");
30874 }
30875 arg2 = static_cast< long >(val2);
30876 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
30877 if (!SWIG_IsOK(res3)) {
30878 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
30879 }
30880 if (!argp3) {
30881 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
30882 }
30883 arg3 = reinterpret_cast< wxListItem * >(argp3);
30884 {
30885 PyThreadState* __tstate = wxPyBeginAllowThreads();
30886 result = (long)(arg1)->InsertColumn(arg2,*arg3);
30887 wxPyEndAllowThreads(__tstate);
30888 if (PyErr_Occurred()) SWIG_fail;
30889 }
30890 resultobj = SWIG_From_long(static_cast< long >(result));
30891 return resultobj;
30892fail:
30893 return NULL;
30894}
30895
30896
30897SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30898 PyObject *resultobj = 0;
30899 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30900 long arg2 ;
30901 wxString *arg3 = 0 ;
30902 int arg4 = (int) wxLIST_FORMAT_LEFT ;
30903 int arg5 = (int) -1 ;
30904 long result;
30905 void *argp1 = 0 ;
30906 int res1 = 0 ;
30907 long val2 ;
30908 int ecode2 = 0 ;
30909 bool temp3 = false ;
30910 int val4 ;
30911 int ecode4 = 0 ;
30912 int val5 ;
30913 int ecode5 = 0 ;
30914 PyObject * obj0 = 0 ;
30915 PyObject * obj1 = 0 ;
30916 PyObject * obj2 = 0 ;
30917 PyObject * obj3 = 0 ;
30918 PyObject * obj4 = 0 ;
30919 char * kwnames[] = {
30920 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
30921 };
30922
30923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) 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_InsertColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30927 }
30928 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30929 ecode2 = SWIG_AsVal_long(obj1, &val2);
30930 if (!SWIG_IsOK(ecode2)) {
30931 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumn" "', expected argument " "2"" of type '" "long""'");
30932 }
30933 arg2 = static_cast< long >(val2);
30934 {
30935 arg3 = wxString_in_helper(obj2);
30936 if (arg3 == NULL) SWIG_fail;
30937 temp3 = true;
30938 }
30939 if (obj3) {
30940 ecode4 = SWIG_AsVal_int(obj3, &val4);
30941 if (!SWIG_IsOK(ecode4)) {
30942 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertColumn" "', expected argument " "4"" of type '" "int""'");
30943 }
30944 arg4 = static_cast< int >(val4);
30945 }
30946 if (obj4) {
30947 ecode5 = SWIG_AsVal_int(obj4, &val5);
30948 if (!SWIG_IsOK(ecode5)) {
30949 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_InsertColumn" "', expected argument " "5"" of type '" "int""'");
30950 }
30951 arg5 = static_cast< int >(val5);
30952 }
30953 {
30954 PyThreadState* __tstate = wxPyBeginAllowThreads();
30955 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
30956 wxPyEndAllowThreads(__tstate);
30957 if (PyErr_Occurred()) SWIG_fail;
30958 }
30959 resultobj = SWIG_From_long(static_cast< long >(result));
30960 {
30961 if (temp3)
30962 delete arg3;
30963 }
30964 return resultobj;
30965fail:
30966 {
30967 if (temp3)
30968 delete arg3;
30969 }
30970 return NULL;
30971}
30972
30973
30974SWIGINTERN PyObject *_wrap_ListCtrl_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30975 PyObject *resultobj = 0;
30976 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30977 long arg2 ;
30978 void *argp1 = 0 ;
30979 int res1 = 0 ;
30980 long val2 ;
30981 int ecode2 = 0 ;
30982 PyObject * obj0 = 0 ;
30983 PyObject * obj1 = 0 ;
30984 char * kwnames[] = {
30985 (char *) "self",(char *) "count", NULL
30986 };
30987
30988 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail;
30989 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30990 if (!SWIG_IsOK(res1)) {
30991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30992 }
30993 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30994 ecode2 = SWIG_AsVal_long(obj1, &val2);
30995 if (!SWIG_IsOK(ecode2)) {
30996 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemCount" "', expected argument " "2"" of type '" "long""'");
30997 }
30998 arg2 = static_cast< long >(val2);
30999 {
31000 PyThreadState* __tstate = wxPyBeginAllowThreads();
31001 (arg1)->SetItemCount(arg2);
31002 wxPyEndAllowThreads(__tstate);
31003 if (PyErr_Occurred()) SWIG_fail;
31004 }
31005 resultobj = SWIG_Py_Void();
31006 return resultobj;
31007fail:
31008 return NULL;
31009}
31010
31011
31012SWIGINTERN PyObject *_wrap_ListCtrl_ScrollList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31013 PyObject *resultobj = 0;
31014 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31015 int arg2 ;
31016 int arg3 ;
31017 bool result;
31018 void *argp1 = 0 ;
31019 int res1 = 0 ;
31020 int val2 ;
31021 int ecode2 = 0 ;
31022 int val3 ;
31023 int ecode3 = 0 ;
31024 PyObject * obj0 = 0 ;
31025 PyObject * obj1 = 0 ;
31026 PyObject * obj2 = 0 ;
31027 char * kwnames[] = {
31028 (char *) "self",(char *) "dx",(char *) "dy", NULL
31029 };
31030
31031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31033 if (!SWIG_IsOK(res1)) {
31034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ScrollList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31035 }
31036 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31037 ecode2 = SWIG_AsVal_int(obj1, &val2);
31038 if (!SWIG_IsOK(ecode2)) {
31039 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_ScrollList" "', expected argument " "2"" of type '" "int""'");
31040 }
31041 arg2 = static_cast< int >(val2);
31042 ecode3 = SWIG_AsVal_int(obj2, &val3);
31043 if (!SWIG_IsOK(ecode3)) {
31044 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_ScrollList" "', expected argument " "3"" of type '" "int""'");
31045 }
31046 arg3 = static_cast< int >(val3);
31047 {
31048 PyThreadState* __tstate = wxPyBeginAllowThreads();
31049 result = (bool)(arg1)->ScrollList(arg2,arg3);
31050 wxPyEndAllowThreads(__tstate);
31051 if (PyErr_Occurred()) SWIG_fail;
31052 }
31053 {
31054 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31055 }
31056 return resultobj;
31057fail:
31058 return NULL;
31059}
31060
31061
31062SWIGINTERN PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31063 PyObject *resultobj = 0;
31064 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31065 long arg2 ;
31066 wxColour *arg3 = 0 ;
31067 void *argp1 = 0 ;
31068 int res1 = 0 ;
31069 long val2 ;
31070 int ecode2 = 0 ;
31071 wxColour temp3 ;
31072 PyObject * obj0 = 0 ;
31073 PyObject * obj1 = 0 ;
31074 PyObject * obj2 = 0 ;
31075 char * kwnames[] = {
31076 (char *) "self",(char *) "item",(char *) "col", NULL
31077 };
31078
31079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31080 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31081 if (!SWIG_IsOK(res1)) {
31082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31083 }
31084 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31085 ecode2 = SWIG_AsVal_long(obj1, &val2);
31086 if (!SWIG_IsOK(ecode2)) {
31087 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31088 }
31089 arg2 = static_cast< long >(val2);
31090 {
31091 arg3 = &temp3;
31092 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31093 }
31094 {
31095 PyThreadState* __tstate = wxPyBeginAllowThreads();
31096 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
31097 wxPyEndAllowThreads(__tstate);
31098 if (PyErr_Occurred()) SWIG_fail;
31099 }
31100 resultobj = SWIG_Py_Void();
31101 return resultobj;
31102fail:
31103 return NULL;
31104}
31105
31106
31107SWIGINTERN PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31108 PyObject *resultobj = 0;
31109 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31110 long arg2 ;
31111 wxColour result;
31112 void *argp1 = 0 ;
31113 int res1 = 0 ;
31114 long val2 ;
31115 int ecode2 = 0 ;
31116 PyObject * obj0 = 0 ;
31117 PyObject * obj1 = 0 ;
31118 char * kwnames[] = {
31119 (char *) "self",(char *) "item", NULL
31120 };
31121
31122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
31123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31124 if (!SWIG_IsOK(res1)) {
31125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31126 }
31127 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31128 ecode2 = SWIG_AsVal_long(obj1, &val2);
31129 if (!SWIG_IsOK(ecode2)) {
31130 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31131 }
31132 arg2 = static_cast< long >(val2);
31133 {
31134 PyThreadState* __tstate = wxPyBeginAllowThreads();
31135 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
31136 wxPyEndAllowThreads(__tstate);
31137 if (PyErr_Occurred()) SWIG_fail;
31138 }
31139 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31140 return resultobj;
31141fail:
31142 return NULL;
31143}
31144
31145
31146SWIGINTERN PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31147 PyObject *resultobj = 0;
31148 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31149 long arg2 ;
31150 wxColour *arg3 = 0 ;
31151 void *argp1 = 0 ;
31152 int res1 = 0 ;
31153 long val2 ;
31154 int ecode2 = 0 ;
31155 wxColour temp3 ;
31156 PyObject * obj0 = 0 ;
31157 PyObject * obj1 = 0 ;
31158 PyObject * obj2 = 0 ;
31159 char * kwnames[] = {
31160 (char *) "self",(char *) "item",(char *) "col", NULL
31161 };
31162
31163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31165 if (!SWIG_IsOK(res1)) {
31166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31167 }
31168 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31169 ecode2 = SWIG_AsVal_long(obj1, &val2);
31170 if (!SWIG_IsOK(ecode2)) {
31171 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31172 }
31173 arg2 = static_cast< long >(val2);
31174 {
31175 arg3 = &temp3;
31176 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31177 }
31178 {
31179 PyThreadState* __tstate = wxPyBeginAllowThreads();
31180 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
31181 wxPyEndAllowThreads(__tstate);
31182 if (PyErr_Occurred()) SWIG_fail;
31183 }
31184 resultobj = SWIG_Py_Void();
31185 return resultobj;
31186fail:
31187 return NULL;
31188}
31189
31190
31191SWIGINTERN PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31192 PyObject *resultobj = 0;
31193 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31194 long arg2 ;
31195 wxColour result;
31196 void *argp1 = 0 ;
31197 int res1 = 0 ;
31198 long val2 ;
31199 int ecode2 = 0 ;
31200 PyObject * obj0 = 0 ;
31201 PyObject * obj1 = 0 ;
31202 char * kwnames[] = {
31203 (char *) "self",(char *) "item", NULL
31204 };
31205
31206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
31207 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31208 if (!SWIG_IsOK(res1)) {
31209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31210 }
31211 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31212 ecode2 = SWIG_AsVal_long(obj1, &val2);
31213 if (!SWIG_IsOK(ecode2)) {
31214 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31215 }
31216 arg2 = static_cast< long >(val2);
31217 {
31218 PyThreadState* __tstate = wxPyBeginAllowThreads();
31219 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
31220 wxPyEndAllowThreads(__tstate);
31221 if (PyErr_Occurred()) SWIG_fail;
31222 }
31223 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31224 return resultobj;
31225fail:
31226 return NULL;
31227}
31228
31229
31230SWIGINTERN PyObject *_wrap_ListCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31231 PyObject *resultobj = 0;
31232 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31233 long arg2 ;
31234 wxFont *arg3 = 0 ;
31235 void *argp1 = 0 ;
31236 int res1 = 0 ;
31237 long val2 ;
31238 int ecode2 = 0 ;
31239 void *argp3 = 0 ;
31240 int res3 = 0 ;
31241 PyObject * obj0 = 0 ;
31242 PyObject * obj1 = 0 ;
31243 PyObject * obj2 = 0 ;
31244 char * kwnames[] = {
31245 (char *) "self",(char *) "item",(char *) "f", NULL
31246 };
31247
31248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31249 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31250 if (!SWIG_IsOK(res1)) {
31251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31252 }
31253 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31254 ecode2 = SWIG_AsVal_long(obj1, &val2);
31255 if (!SWIG_IsOK(ecode2)) {
31256 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemFont" "', expected argument " "2"" of type '" "long""'");
31257 }
31258 arg2 = static_cast< long >(val2);
31259 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
31260 if (!SWIG_IsOK(res3)) {
31261 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31262 }
31263 if (!argp3) {
31264 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31265 }
31266 arg3 = reinterpret_cast< wxFont * >(argp3);
31267 {
31268 PyThreadState* __tstate = wxPyBeginAllowThreads();
31269 (arg1)->SetItemFont(arg2,(wxFont const &)*arg3);
31270 wxPyEndAllowThreads(__tstate);
31271 if (PyErr_Occurred()) SWIG_fail;
31272 }
31273 resultobj = SWIG_Py_Void();
31274 return resultobj;
31275fail:
31276 return NULL;
31277}
31278
31279
31280SWIGINTERN PyObject *_wrap_ListCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31281 PyObject *resultobj = 0;
31282 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31283 long arg2 ;
31284 wxFont result;
31285 void *argp1 = 0 ;
31286 int res1 = 0 ;
31287 long val2 ;
31288 int ecode2 = 0 ;
31289 PyObject * obj0 = 0 ;
31290 PyObject * obj1 = 0 ;
31291 char * kwnames[] = {
31292 (char *) "self",(char *) "item", NULL
31293 };
31294
31295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
31296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31297 if (!SWIG_IsOK(res1)) {
31298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31299 }
31300 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31301 ecode2 = SWIG_AsVal_long(obj1, &val2);
31302 if (!SWIG_IsOK(ecode2)) {
31303 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemFont" "', expected argument " "2"" of type '" "long""'");
31304 }
31305 arg2 = static_cast< long >(val2);
31306 {
31307 PyThreadState* __tstate = wxPyBeginAllowThreads();
31308 result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2);
31309 wxPyEndAllowThreads(__tstate);
31310 if (PyErr_Occurred()) SWIG_fail;
31311 }
31312 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
31313 return resultobj;
31314fail:
31315 return NULL;
31316}
31317
31318
31319SWIGINTERN PyObject *_wrap_ListCtrl_SortItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31320 PyObject *resultobj = 0;
31321 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31322 PyObject *arg2 = (PyObject *) 0 ;
31323 bool result;
31324 void *argp1 = 0 ;
31325 int res1 = 0 ;
31326 PyObject * obj0 = 0 ;
31327 PyObject * obj1 = 0 ;
31328 char * kwnames[] = {
31329 (char *) "self",(char *) "func", NULL
31330 };
31331
31332 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) SWIG_fail;
31333 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31334 if (!SWIG_IsOK(res1)) {
31335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SortItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31336 }
31337 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31338 arg2 = obj1;
31339 {
31340 PyThreadState* __tstate = wxPyBeginAllowThreads();
31341 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
31342 wxPyEndAllowThreads(__tstate);
31343 if (PyErr_Occurred()) SWIG_fail;
31344 }
31345 {
31346 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31347 }
31348 return resultobj;
31349fail:
31350 return NULL;
7e08d4ef
RD
31351}
31352
31353
0085ce49
RD
31354SWIGINTERN PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31355 PyObject *resultobj = 0;
31356 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31357 wxWindow *result = 0 ;
31358 void *argp1 = 0 ;
31359 int res1 = 0 ;
31360 PyObject *swig_obj[1] ;
31361
31362 if (!args) SWIG_fail;
31363 swig_obj[0] = args;
31364 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31365 if (!SWIG_IsOK(res1)) {
31366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetMainWindow" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31367 }
31368 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31369 {
31370 PyThreadState* __tstate = wxPyBeginAllowThreads();
31371 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
31372 wxPyEndAllowThreads(__tstate);
31373 if (PyErr_Occurred()) SWIG_fail;
31374 }
31375 {
31376 resultobj = wxPyMake_wxObject(result, 0);
31377 }
31378 return resultobj;
31379fail:
31380 return NULL;
31381}
31382
31383
31384SWIGINTERN PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31385 PyObject *resultobj = 0;
31386 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
31387 SwigValueWrapper<wxVisualAttributes > result;
31388 int val1 ;
31389 int ecode1 = 0 ;
31390 PyObject * obj0 = 0 ;
31391 char * kwnames[] = {
31392 (char *) "variant", NULL
31393 };
31394
31395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
31396 if (obj0) {
31397 ecode1 = SWIG_AsVal_int(obj0, &val1);
31398 if (!SWIG_IsOK(ecode1)) {
31399 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
31400 }
31401 arg1 = static_cast< wxWindowVariant >(val1);
31402 }
31403 {
31404 if (!wxPyCheckForApp()) SWIG_fail;
31405 PyThreadState* __tstate = wxPyBeginAllowThreads();
31406 result = wxPyListCtrl::GetClassDefaultAttributes(arg1);
31407 wxPyEndAllowThreads(__tstate);
31408 if (PyErr_Occurred()) SWIG_fail;
31409 }
31410 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
31411 return resultobj;
31412fail:
31413 return NULL;
31414}
31415
31416
31417SWIGINTERN PyObject *ListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31418 PyObject *obj;
31419 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31420 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyListCtrl, SWIG_NewClientData(obj));
31421 return SWIG_Py_Void();
31422}
31423
31424SWIGINTERN PyObject *ListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31425 return SWIG_Python_InitShadowInstance(args);
31426}
31427
31428SWIGINTERN PyObject *_wrap_new_ListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31429 PyObject *resultobj = 0;
31430 wxWindow *arg1 = (wxWindow *) 0 ;
31431 int arg2 = (int) -1 ;
31432 wxPoint const &arg3_defvalue = wxDefaultPosition ;
31433 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
31434 wxSize const &arg4_defvalue = wxDefaultSize ;
31435 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
31436 long arg5 = (long) wxLC_REPORT ;
31437 wxValidator const &arg6_defvalue = wxDefaultValidator ;
31438 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
31439 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
31440 wxString *arg7 = (wxString *) &arg7_defvalue ;
31441 wxListView *result = 0 ;
31442 void *argp1 = 0 ;
31443 int res1 = 0 ;
31444 int val2 ;
31445 int ecode2 = 0 ;
31446 wxPoint temp3 ;
31447 wxSize temp4 ;
31448 long val5 ;
31449 int ecode5 = 0 ;
31450 void *argp6 = 0 ;
31451 int res6 = 0 ;
31452 bool temp7 = false ;
31453 PyObject * obj0 = 0 ;
31454 PyObject * obj1 = 0 ;
31455 PyObject * obj2 = 0 ;
31456 PyObject * obj3 = 0 ;
31457 PyObject * obj4 = 0 ;
31458 PyObject * obj5 = 0 ;
31459 PyObject * obj6 = 0 ;
31460 char * kwnames[] = {
31461 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
31462 };
31463
31464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
31466 if (!SWIG_IsOK(res1)) {
31467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListView" "', expected argument " "1"" of type '" "wxWindow *""'");
31468 }
31469 arg1 = reinterpret_cast< wxWindow * >(argp1);
31470 if (obj1) {
31471 ecode2 = SWIG_AsVal_int(obj1, &val2);
31472 if (!SWIG_IsOK(ecode2)) {
31473 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListView" "', expected argument " "2"" of type '" "int""'");
31474 }
31475 arg2 = static_cast< int >(val2);
31476 }
31477 if (obj2) {
7e08d4ef 31478 {
0085ce49
RD
31479 arg3 = &temp3;
31480 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
7e08d4ef 31481 }
0085ce49
RD
31482 }
31483 if (obj3) {
7e08d4ef 31484 {
0085ce49
RD
31485 arg4 = &temp4;
31486 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
7e08d4ef 31487 }
0085ce49
RD
31488 }
31489 if (obj4) {
31490 ecode5 = SWIG_AsVal_long(obj4, &val5);
31491 if (!SWIG_IsOK(ecode5)) {
31492 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListView" "', expected argument " "5"" of type '" "long""'");
31493 }
31494 arg5 = static_cast< long >(val5);
31495 }
31496 if (obj5) {
31497 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
31498 if (!SWIG_IsOK(res6)) {
31499 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
7e08d4ef 31500 }
0085ce49
RD
31501 if (!argp6) {
31502 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
7e08d4ef 31503 }
0085ce49
RD
31504 arg6 = reinterpret_cast< wxValidator * >(argp6);
31505 }
31506 if (obj6) {
7e08d4ef 31507 {
0085ce49
RD
31508 arg7 = wxString_in_helper(obj6);
31509 if (arg7 == NULL) SWIG_fail;
31510 temp7 = true;
7e08d4ef 31511 }
0085ce49
RD
31512 }
31513 {
31514 if (!wxPyCheckForApp()) SWIG_fail;
31515 PyThreadState* __tstate = wxPyBeginAllowThreads();
31516 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
31517 wxPyEndAllowThreads(__tstate);
31518 if (PyErr_Occurred()) SWIG_fail;
31519 }
31520 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_NEW | 0 );
31521 {
31522 if (temp7)
31523 delete arg7;
31524 }
31525 return resultobj;
31526fail:
31527 {
31528 if (temp7)
31529 delete arg7;
31530 }
31531 return NULL;
7e08d4ef
RD
31532}
31533
31534
0085ce49
RD
31535SWIGINTERN PyObject *_wrap_new_PreListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31536 PyObject *resultobj = 0;
31537 wxListView *result = 0 ;
31538
31539 if (!SWIG_Python_UnpackTuple(args,"new_PreListView",0,0,0)) SWIG_fail;
31540 {
31541 if (!wxPyCheckForApp()) SWIG_fail;
31542 PyThreadState* __tstate = wxPyBeginAllowThreads();
31543 result = (wxListView *)new wxListView();
31544 wxPyEndAllowThreads(__tstate);
31545 if (PyErr_Occurred()) SWIG_fail;
31546 }
31547 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_OWN | 0 );
31548 return resultobj;
31549fail:
31550 return NULL;
31551}
31552
31553
31554SWIGINTERN PyObject *_wrap_ListView_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31555 PyObject *resultobj = 0;
31556 wxListView *arg1 = (wxListView *) 0 ;
31557 wxWindow *arg2 = (wxWindow *) 0 ;
31558 int arg3 = (int) -1 ;
31559 wxPoint const &arg4_defvalue = wxDefaultPosition ;
31560 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
31561 wxSize const &arg5_defvalue = wxDefaultSize ;
31562 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
31563 long arg6 = (long) wxLC_REPORT ;
31564 wxValidator const &arg7_defvalue = wxDefaultValidator ;
31565 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
31566 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
31567 wxString *arg8 = (wxString *) &arg8_defvalue ;
31568 bool result;
31569 void *argp1 = 0 ;
31570 int res1 = 0 ;
31571 void *argp2 = 0 ;
31572 int res2 = 0 ;
31573 int val3 ;
31574 int ecode3 = 0 ;
31575 wxPoint temp4 ;
31576 wxSize temp5 ;
31577 long val6 ;
31578 int ecode6 = 0 ;
31579 void *argp7 = 0 ;
31580 int res7 = 0 ;
31581 bool temp8 = false ;
31582 PyObject * obj0 = 0 ;
31583 PyObject * obj1 = 0 ;
31584 PyObject * obj2 = 0 ;
31585 PyObject * obj3 = 0 ;
31586 PyObject * obj4 = 0 ;
31587 PyObject * obj5 = 0 ;
31588 PyObject * obj6 = 0 ;
31589 PyObject * obj7 = 0 ;
31590 char * kwnames[] = {
31591 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
31592 };
31593
31594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
31595 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31596 if (!SWIG_IsOK(res1)) {
31597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Create" "', expected argument " "1"" of type '" "wxListView *""'");
31598 }
31599 arg1 = reinterpret_cast< wxListView * >(argp1);
31600 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31601 if (!SWIG_IsOK(res2)) {
31602 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListView_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
31603 }
31604 arg2 = reinterpret_cast< wxWindow * >(argp2);
31605 if (obj2) {
31606 ecode3 = SWIG_AsVal_int(obj2, &val3);
31607 if (!SWIG_IsOK(ecode3)) {
31608 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Create" "', expected argument " "3"" of type '" "int""'");
31609 }
31610 arg3 = static_cast< int >(val3);
31611 }
31612 if (obj3) {
7e08d4ef 31613 {
0085ce49
RD
31614 arg4 = &temp4;
31615 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7e08d4ef 31616 }
0085ce49
RD
31617 }
31618 if (obj4) {
7e08d4ef 31619 {
0085ce49
RD
31620 arg5 = &temp5;
31621 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7e08d4ef 31622 }
0085ce49
RD
31623 }
31624 if (obj5) {
31625 ecode6 = SWIG_AsVal_long(obj5, &val6);
31626 if (!SWIG_IsOK(ecode6)) {
31627 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListView_Create" "', expected argument " "6"" of type '" "long""'");
31628 }
31629 arg6 = static_cast< long >(val6);
31630 }
31631 if (obj6) {
31632 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
31633 if (!SWIG_IsOK(res7)) {
31634 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
7e08d4ef 31635 }
0085ce49
RD
31636 if (!argp7) {
31637 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
7e08d4ef 31638 }
0085ce49
RD
31639 arg7 = reinterpret_cast< wxValidator * >(argp7);
31640 }
31641 if (obj7) {
7e08d4ef 31642 {
0085ce49
RD
31643 arg8 = wxString_in_helper(obj7);
31644 if (arg8 == NULL) SWIG_fail;
31645 temp8 = true;
7e08d4ef 31646 }
0085ce49
RD
31647 }
31648 {
31649 PyThreadState* __tstate = wxPyBeginAllowThreads();
31650 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
31651 wxPyEndAllowThreads(__tstate);
31652 if (PyErr_Occurred()) SWIG_fail;
31653 }
31654 {
31655 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31656 }
31657 {
31658 if (temp8)
31659 delete arg8;
31660 }
31661 return resultobj;
31662fail:
31663 {
31664 if (temp8)
31665 delete arg8;
31666 }
31667 return NULL;
31668}
31669
31670
31671SWIGINTERN PyObject *_wrap_ListView_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31672 PyObject *resultobj = 0;
31673 wxListView *arg1 = (wxListView *) 0 ;
31674 long arg2 ;
31675 bool arg3 = (bool) true ;
31676 void *argp1 = 0 ;
31677 int res1 = 0 ;
31678 long val2 ;
31679 int ecode2 = 0 ;
31680 bool val3 ;
31681 int ecode3 = 0 ;
31682 PyObject * obj0 = 0 ;
31683 PyObject * obj1 = 0 ;
31684 PyObject * obj2 = 0 ;
31685 char * kwnames[] = {
31686 (char *) "self",(char *) "n",(char *) "on", NULL
31687 };
31688
31689 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31690 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31691 if (!SWIG_IsOK(res1)) {
31692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Select" "', expected argument " "1"" of type '" "wxListView *""'");
31693 }
31694 arg1 = reinterpret_cast< wxListView * >(argp1);
31695 ecode2 = SWIG_AsVal_long(obj1, &val2);
31696 if (!SWIG_IsOK(ecode2)) {
31697 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Select" "', expected argument " "2"" of type '" "long""'");
31698 }
31699 arg2 = static_cast< long >(val2);
31700 if (obj2) {
31701 ecode3 = SWIG_AsVal_bool(obj2, &val3);
31702 if (!SWIG_IsOK(ecode3)) {
31703 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Select" "', expected argument " "3"" of type '" "bool""'");
31704 }
31705 arg3 = static_cast< bool >(val3);
31706 }
31707 {
31708 PyThreadState* __tstate = wxPyBeginAllowThreads();
31709 (arg1)->Select(arg2,arg3);
31710 wxPyEndAllowThreads(__tstate);
31711 if (PyErr_Occurred()) SWIG_fail;
31712 }
31713 resultobj = SWIG_Py_Void();
31714 return resultobj;
31715fail:
31716 return NULL;
31717}
31718
31719
31720SWIGINTERN PyObject *_wrap_ListView_Focus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31721 PyObject *resultobj = 0;
31722 wxListView *arg1 = (wxListView *) 0 ;
31723 long arg2 ;
31724 void *argp1 = 0 ;
31725 int res1 = 0 ;
31726 long val2 ;
31727 int ecode2 = 0 ;
31728 PyObject * obj0 = 0 ;
31729 PyObject * obj1 = 0 ;
31730 char * kwnames[] = {
31731 (char *) "self",(char *) "index", NULL
31732 };
31733
31734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) SWIG_fail;
31735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31736 if (!SWIG_IsOK(res1)) {
31737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Focus" "', expected argument " "1"" of type '" "wxListView *""'");
31738 }
31739 arg1 = reinterpret_cast< wxListView * >(argp1);
31740 ecode2 = SWIG_AsVal_long(obj1, &val2);
31741 if (!SWIG_IsOK(ecode2)) {
31742 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Focus" "', expected argument " "2"" of type '" "long""'");
31743 }
31744 arg2 = static_cast< long >(val2);
31745 {
31746 PyThreadState* __tstate = wxPyBeginAllowThreads();
31747 (arg1)->Focus(arg2);
31748 wxPyEndAllowThreads(__tstate);
31749 if (PyErr_Occurred()) SWIG_fail;
31750 }
31751 resultobj = SWIG_Py_Void();
31752 return resultobj;
31753fail:
31754 return NULL;
7e08d4ef
RD
31755}
31756
31757
0085ce49
RD
31758SWIGINTERN PyObject *_wrap_ListView_GetFocusedItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31759 PyObject *resultobj = 0;
31760 wxListView *arg1 = (wxListView *) 0 ;
31761 long result;
31762 void *argp1 = 0 ;
31763 int res1 = 0 ;
31764 PyObject *swig_obj[1] ;
31765
31766 if (!args) SWIG_fail;
31767 swig_obj[0] = args;
31768 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31769 if (!SWIG_IsOK(res1)) {
31770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFocusedItem" "', expected argument " "1"" of type '" "wxListView const *""'");
31771 }
31772 arg1 = reinterpret_cast< wxListView * >(argp1);
31773 {
31774 PyThreadState* __tstate = wxPyBeginAllowThreads();
31775 result = (long)((wxListView const *)arg1)->GetFocusedItem();
31776 wxPyEndAllowThreads(__tstate);
31777 if (PyErr_Occurred()) SWIG_fail;
31778 }
31779 resultobj = SWIG_From_long(static_cast< long >(result));
31780 return resultobj;
31781fail:
31782 return NULL;
31783}
31784
31785
31786SWIGINTERN PyObject *_wrap_ListView_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31787 PyObject *resultobj = 0;
31788 wxListView *arg1 = (wxListView *) 0 ;
31789 long arg2 ;
31790 long result;
31791 void *argp1 = 0 ;
31792 int res1 = 0 ;
31793 long val2 ;
31794 int ecode2 = 0 ;
31795 PyObject * obj0 = 0 ;
31796 PyObject * obj1 = 0 ;
31797 char * kwnames[] = {
31798 (char *) "self",(char *) "item", NULL
31799 };
31800
31801 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail;
31802 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31803 if (!SWIG_IsOK(res1)) {
31804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetNextSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
31805 }
31806 arg1 = reinterpret_cast< wxListView * >(argp1);
31807 ecode2 = SWIG_AsVal_long(obj1, &val2);
31808 if (!SWIG_IsOK(ecode2)) {
31809 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_GetNextSelected" "', expected argument " "2"" of type '" "long""'");
31810 }
31811 arg2 = static_cast< long >(val2);
31812 {
31813 PyThreadState* __tstate = wxPyBeginAllowThreads();
31814 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
31815 wxPyEndAllowThreads(__tstate);
31816 if (PyErr_Occurred()) SWIG_fail;
31817 }
31818 resultobj = SWIG_From_long(static_cast< long >(result));
31819 return resultobj;
31820fail:
31821 return NULL;
7e08d4ef
RD
31822}
31823
31824
0085ce49
RD
31825SWIGINTERN PyObject *_wrap_ListView_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31826 PyObject *resultobj = 0;
31827 wxListView *arg1 = (wxListView *) 0 ;
31828 long result;
31829 void *argp1 = 0 ;
31830 int res1 = 0 ;
31831 PyObject *swig_obj[1] ;
31832
31833 if (!args) SWIG_fail;
31834 swig_obj[0] = args;
31835 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31836 if (!SWIG_IsOK(res1)) {
31837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFirstSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
31838 }
31839 arg1 = reinterpret_cast< wxListView * >(argp1);
31840 {
31841 PyThreadState* __tstate = wxPyBeginAllowThreads();
31842 result = (long)((wxListView const *)arg1)->GetFirstSelected();
31843 wxPyEndAllowThreads(__tstate);
31844 if (PyErr_Occurred()) SWIG_fail;
31845 }
31846 resultobj = SWIG_From_long(static_cast< long >(result));
31847 return resultobj;
31848fail:
31849 return NULL;
31850}
31851
31852
31853SWIGINTERN PyObject *_wrap_ListView_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31854 PyObject *resultobj = 0;
31855 wxListView *arg1 = (wxListView *) 0 ;
31856 long arg2 ;
31857 bool result;
31858 void *argp1 = 0 ;
31859 int res1 = 0 ;
31860 long val2 ;
31861 int ecode2 = 0 ;
31862 PyObject * obj0 = 0 ;
31863 PyObject * obj1 = 0 ;
31864 char * kwnames[] = {
31865 (char *) "self",(char *) "index", NULL
31866 };
31867
31868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
31869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31870 if (!SWIG_IsOK(res1)) {
31871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_IsSelected" "', expected argument " "1"" of type '" "wxListView *""'");
31872 }
31873 arg1 = reinterpret_cast< wxListView * >(argp1);
31874 ecode2 = SWIG_AsVal_long(obj1, &val2);
31875 if (!SWIG_IsOK(ecode2)) {
31876 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_IsSelected" "', expected argument " "2"" of type '" "long""'");
31877 }
31878 arg2 = static_cast< long >(val2);
31879 {
31880 PyThreadState* __tstate = wxPyBeginAllowThreads();
31881 result = (bool)(arg1)->IsSelected(arg2);
31882 wxPyEndAllowThreads(__tstate);
31883 if (PyErr_Occurred()) SWIG_fail;
31884 }
31885 {
31886 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31887 }
31888 return resultobj;
31889fail:
31890 return NULL;
31891}
31892
31893
31894SWIGINTERN PyObject *_wrap_ListView_SetColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31895 PyObject *resultobj = 0;
31896 wxListView *arg1 = (wxListView *) 0 ;
31897 int arg2 ;
31898 int arg3 ;
31899 void *argp1 = 0 ;
31900 int res1 = 0 ;
31901 int val2 ;
31902 int ecode2 = 0 ;
31903 int val3 ;
31904 int ecode3 = 0 ;
31905 PyObject * obj0 = 0 ;
31906 PyObject * obj1 = 0 ;
31907 PyObject * obj2 = 0 ;
31908 char * kwnames[] = {
31909 (char *) "self",(char *) "col",(char *) "image", NULL
31910 };
31911
31912 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31913 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31914 if (!SWIG_IsOK(res1)) {
31915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_SetColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
31916 }
31917 arg1 = reinterpret_cast< wxListView * >(argp1);
31918 ecode2 = SWIG_AsVal_int(obj1, &val2);
31919 if (!SWIG_IsOK(ecode2)) {
31920 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_SetColumnImage" "', expected argument " "2"" of type '" "int""'");
31921 }
31922 arg2 = static_cast< int >(val2);
31923 ecode3 = SWIG_AsVal_int(obj2, &val3);
31924 if (!SWIG_IsOK(ecode3)) {
31925 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_SetColumnImage" "', expected argument " "3"" of type '" "int""'");
31926 }
31927 arg3 = static_cast< int >(val3);
31928 {
31929 PyThreadState* __tstate = wxPyBeginAllowThreads();
31930 (arg1)->SetColumnImage(arg2,arg3);
31931 wxPyEndAllowThreads(__tstate);
31932 if (PyErr_Occurred()) SWIG_fail;
31933 }
31934 resultobj = SWIG_Py_Void();
31935 return resultobj;
31936fail:
31937 return NULL;
31938}
31939
31940
31941SWIGINTERN PyObject *_wrap_ListView_ClearColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31942 PyObject *resultobj = 0;
31943 wxListView *arg1 = (wxListView *) 0 ;
31944 int arg2 ;
31945 void *argp1 = 0 ;
31946 int res1 = 0 ;
31947 int val2 ;
31948 int ecode2 = 0 ;
31949 PyObject * obj0 = 0 ;
31950 PyObject * obj1 = 0 ;
31951 char * kwnames[] = {
31952 (char *) "self",(char *) "col", NULL
31953 };
31954
31955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) SWIG_fail;
31956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31957 if (!SWIG_IsOK(res1)) {
31958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_ClearColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
31959 }
31960 arg1 = reinterpret_cast< wxListView * >(argp1);
31961 ecode2 = SWIG_AsVal_int(obj1, &val2);
31962 if (!SWIG_IsOK(ecode2)) {
31963 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_ClearColumnImage" "', expected argument " "2"" of type '" "int""'");
31964 }
31965 arg2 = static_cast< int >(val2);
31966 {
31967 PyThreadState* __tstate = wxPyBeginAllowThreads();
31968 (arg1)->ClearColumnImage(arg2);
31969 wxPyEndAllowThreads(__tstate);
31970 if (PyErr_Occurred()) SWIG_fail;
31971 }
31972 resultobj = SWIG_Py_Void();
31973 return resultobj;
31974fail:
31975 return NULL;
7e08d4ef
RD
31976}
31977
31978
0085ce49
RD
31979SWIGINTERN PyObject *ListView_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31980 PyObject *obj;
31981 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31982 SWIG_TypeNewClientData(SWIGTYPE_p_wxListView, SWIG_NewClientData(obj));
31983 return SWIG_Py_Void();
7e08d4ef
RD
31984}
31985
0085ce49
RD
31986SWIGINTERN PyObject *ListView_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31987 return SWIG_Python_InitShadowInstance(args);
31988}
7e08d4ef 31989
0085ce49
RD
31990SWIGINTERN int TreeCtrlNameStr_set(PyObject *) {
31991 SWIG_Error(SWIG_AttributeError,"Variable TreeCtrlNameStr is read-only.");
31992 return 1;
7e08d4ef
RD
31993}
31994
31995
0085ce49
RD
31996SWIGINTERN PyObject *TreeCtrlNameStr_get(void) {
31997 PyObject *pyobj = 0;
31998
31999 {
32000#if wxUSE_UNICODE
32001 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32002#else
32003 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32004#endif
32005 }
32006 return pyobj;
7e08d4ef
RD
32007}
32008
32009
0085ce49
RD
32010SWIGINTERN PyObject *_wrap_new_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32011 PyObject *resultobj = 0;
32012 wxTreeItemId *result = 0 ;
32013
32014 if (!SWIG_Python_UnpackTuple(args,"new_TreeItemId",0,0,0)) SWIG_fail;
32015 {
32016 PyThreadState* __tstate = wxPyBeginAllowThreads();
32017 result = (wxTreeItemId *)new wxTreeItemId();
32018 wxPyEndAllowThreads(__tstate);
32019 if (PyErr_Occurred()) SWIG_fail;
32020 }
32021 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_NEW | 0 );
32022 return resultobj;
32023fail:
32024 return NULL;
d14a1e28
RD
32025}
32026
32027
0085ce49
RD
32028SWIGINTERN PyObject *_wrap_delete_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32029 PyObject *resultobj = 0;
32030 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32031 void *argp1 = 0 ;
32032 int res1 = 0 ;
32033 PyObject *swig_obj[1] ;
32034
32035 if (!args) SWIG_fail;
32036 swig_obj[0] = args;
32037 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_DISOWN | 0 );
32038 if (!SWIG_IsOK(res1)) {
32039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemId" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32040 }
32041 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32042 {
32043 PyThreadState* __tstate = wxPyBeginAllowThreads();
32044 delete arg1;
7e08d4ef 32045
0085ce49
RD
32046 wxPyEndAllowThreads(__tstate);
32047 if (PyErr_Occurred()) SWIG_fail;
32048 }
32049 resultobj = SWIG_Py_Void();
32050 return resultobj;
32051fail:
32052 return NULL;
7e08d4ef
RD
32053}
32054
32055
0085ce49
RD
32056SWIGINTERN PyObject *_wrap_TreeItemId_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32057 PyObject *resultobj = 0;
32058 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32059 bool result;
32060 void *argp1 = 0 ;
32061 int res1 = 0 ;
32062 PyObject *swig_obj[1] ;
32063
32064 if (!args) SWIG_fail;
32065 swig_obj[0] = args;
32066 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32067 if (!SWIG_IsOK(res1)) {
32068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_IsOk" "', expected argument " "1"" of type '" "wxTreeItemId const *""'");
32069 }
32070 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32071 {
32072 PyThreadState* __tstate = wxPyBeginAllowThreads();
32073 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
32074 wxPyEndAllowThreads(__tstate);
32075 if (PyErr_Occurred()) SWIG_fail;
32076 }
32077 {
32078 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32079 }
32080 return resultobj;
32081fail:
32082 return NULL;
32083}
32084
32085
32086SWIGINTERN PyObject *_wrap_TreeItemId___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32087 PyObject *resultobj = 0;
32088 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32089 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32090 bool result;
32091 void *argp1 = 0 ;
32092 int res1 = 0 ;
32093 void *argp2 = 0 ;
32094 int res2 = 0 ;
32095 PyObject * obj0 = 0 ;
32096 PyObject * obj1 = 0 ;
32097 char * kwnames[] = {
32098 (char *) "self",(char *) "other", NULL
32099 };
32100
32101 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
32102 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32103 if (!SWIG_IsOK(res1)) {
32104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___eq__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32105 }
32106 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32107 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32108 if (!SWIG_IsOK(res2)) {
32109 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___eq__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32110 }
32111 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32112 {
32113 PyThreadState* __tstate = wxPyBeginAllowThreads();
32114 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
32115 wxPyEndAllowThreads(__tstate);
32116 if (PyErr_Occurred()) SWIG_fail;
32117 }
32118 {
32119 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32120 }
32121 return resultobj;
32122fail:
32123 return NULL;
32124}
32125
32126
32127SWIGINTERN PyObject *_wrap_TreeItemId___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32128 PyObject *resultobj = 0;
32129 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32130 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32131 bool result;
32132 void *argp1 = 0 ;
32133 int res1 = 0 ;
32134 void *argp2 = 0 ;
32135 int res2 = 0 ;
32136 PyObject * obj0 = 0 ;
32137 PyObject * obj1 = 0 ;
32138 char * kwnames[] = {
32139 (char *) "self",(char *) "other", NULL
32140 };
32141
32142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
32143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32144 if (!SWIG_IsOK(res1)) {
32145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___ne__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32146 }
32147 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32148 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32149 if (!SWIG_IsOK(res2)) {
32150 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___ne__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32151 }
32152 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32153 {
32154 PyThreadState* __tstate = wxPyBeginAllowThreads();
32155 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
32156 wxPyEndAllowThreads(__tstate);
32157 if (PyErr_Occurred()) SWIG_fail;
32158 }
32159 {
32160 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32161 }
32162 return resultobj;
32163fail:
32164 return NULL;
7e08d4ef
RD
32165}
32166
32167
0085ce49
RD
32168SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32169 PyObject *resultobj = 0;
32170 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32171 void *arg2 = (void *) 0 ;
32172 void *argp1 = 0 ;
32173 int res1 = 0 ;
32174 int res2 ;
32175 PyObject *swig_obj[2] ;
32176
32177 if (!SWIG_Python_UnpackTuple(args,"TreeItemId_m_pItem_set",2,2,swig_obj)) SWIG_fail;
32178 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32179 if (!SWIG_IsOK(res1)) {
32180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32181 }
32182 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32183 res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
32184 if (!SWIG_IsOK(res2)) {
32185 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "2"" of type '" "void *""'");
32186 }
32187 if (arg1) (arg1)->m_pItem = arg2;
32188
32189 resultobj = SWIG_Py_Void();
32190 return resultobj;
32191fail:
32192 return NULL;
7e08d4ef
RD
32193}
32194
32195
0085ce49
RD
32196SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32197 PyObject *resultobj = 0;
32198 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32199 void *result = 0 ;
32200 void *argp1 = 0 ;
32201 int res1 = 0 ;
32202 PyObject *swig_obj[1] ;
32203
32204 if (!args) SWIG_fail;
32205 swig_obj[0] = args;
32206 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32207 if (!SWIG_IsOK(res1)) {
32208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_get" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32209 }
32210 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32211 result = (void *) ((arg1)->m_pItem);
32212 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
32213 return resultobj;
32214fail:
32215 return NULL;
7e08d4ef
RD
32216}
32217
32218
0085ce49
RD
32219SWIGINTERN PyObject *TreeItemId_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32220 PyObject *obj;
32221 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32222 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeItemId, SWIG_NewClientData(obj));
32223 return SWIG_Py_Void();
7e08d4ef
RD
32224}
32225
0085ce49
RD
32226SWIGINTERN PyObject *TreeItemId_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32227 return SWIG_Python_InitShadowInstance(args);
32228}
7e08d4ef 32229
0085ce49
RD
32230SWIGINTERN PyObject *_wrap_new_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32231 PyObject *resultobj = 0;
32232 PyObject *arg1 = (PyObject *) NULL ;
32233 wxPyTreeItemData *result = 0 ;
32234 PyObject * obj0 = 0 ;
32235 char * kwnames[] = {
32236 (char *) "obj", NULL
32237 };
32238
32239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) SWIG_fail;
32240 if (obj0) {
32241 arg1 = obj0;
32242 }
32243 {
32244 PyThreadState* __tstate = wxPyBeginAllowThreads();
32245 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
32246 wxPyEndAllowThreads(__tstate);
32247 if (PyErr_Occurred()) SWIG_fail;
32248 }
32249 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_NEW | 0 );
32250 return resultobj;
32251fail:
32252 return NULL;
7e08d4ef
RD
32253}
32254
32255
0085ce49
RD
32256SWIGINTERN PyObject *_wrap_delete_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32257 PyObject *resultobj = 0;
32258 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32259 void *argp1 = 0 ;
32260 int res1 = 0 ;
32261 PyObject *swig_obj[1] ;
32262
32263 if (!args) SWIG_fail;
32264 swig_obj[0] = args;
32265 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
32266 if (!SWIG_IsOK(res1)) {
32267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32268 }
32269 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32270 {
32271 PyThreadState* __tstate = wxPyBeginAllowThreads();
32272 delete arg1;
1fbf26be 32273
0085ce49
RD
32274 wxPyEndAllowThreads(__tstate);
32275 if (PyErr_Occurred()) SWIG_fail;
32276 }
32277 resultobj = SWIG_Py_Void();
32278 return resultobj;
32279fail:
32280 return NULL;
1fbf26be
RD
32281}
32282
32283
0085ce49
RD
32284SWIGINTERN PyObject *_wrap_TreeItemData_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32285 PyObject *resultobj = 0;
32286 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32287 PyObject *result = 0 ;
32288 void *argp1 = 0 ;
32289 int res1 = 0 ;
32290 PyObject *swig_obj[1] ;
32291
32292 if (!args) SWIG_fail;
32293 swig_obj[0] = args;
32294 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32295 if (!SWIG_IsOK(res1)) {
32296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32297 }
32298 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32299 {
32300 PyThreadState* __tstate = wxPyBeginAllowThreads();
32301 result = (PyObject *)(arg1)->GetData();
32302 wxPyEndAllowThreads(__tstate);
32303 if (PyErr_Occurred()) SWIG_fail;
32304 }
32305 resultobj = result;
32306 return resultobj;
32307fail:
32308 return NULL;
32309}
32310
32311
32312SWIGINTERN PyObject *_wrap_TreeItemData_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32313 PyObject *resultobj = 0;
32314 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32315 PyObject *arg2 = (PyObject *) 0 ;
32316 void *argp1 = 0 ;
32317 int res1 = 0 ;
32318 PyObject * obj0 = 0 ;
32319 PyObject * obj1 = 0 ;
32320 char * kwnames[] = {
32321 (char *) "self",(char *) "obj", NULL
32322 };
32323
32324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
32325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32326 if (!SWIG_IsOK(res1)) {
32327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32328 }
32329 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32330 arg2 = obj1;
32331 {
32332 PyThreadState* __tstate = wxPyBeginAllowThreads();
32333 (arg1)->SetData(arg2);
32334 wxPyEndAllowThreads(__tstate);
32335 if (PyErr_Occurred()) SWIG_fail;
32336 }
32337 resultobj = SWIG_Py_Void();
32338 return resultobj;
32339fail:
32340 return NULL;
d14a1e28
RD
32341}
32342
32343
0085ce49
RD
32344SWIGINTERN PyObject *_wrap_TreeItemData_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32345 PyObject *resultobj = 0;
32346 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32347 wxTreeItemId *result = 0 ;
32348 void *argp1 = 0 ;
32349 int res1 = 0 ;
32350 PyObject *swig_obj[1] ;
32351
32352 if (!args) SWIG_fail;
32353 swig_obj[0] = args;
32354 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32355 if (!SWIG_IsOK(res1)) {
32356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32357 }
32358 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32359 {
32360 PyThreadState* __tstate = wxPyBeginAllowThreads();
2ef75293 32361 {
0085ce49
RD
32362 wxTreeItemId const &_result_ref = (arg1)->GetId();
32363 result = (wxTreeItemId *) &_result_ref;
2ef75293 32364 }
0085ce49
RD
32365 wxPyEndAllowThreads(__tstate);
32366 if (PyErr_Occurred()) SWIG_fail;
32367 }
32368 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32369 return resultobj;
32370fail:
32371 return NULL;
32372}
32373
32374
32375SWIGINTERN PyObject *_wrap_TreeItemData_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32376 PyObject *resultobj = 0;
32377 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32378 wxTreeItemId *arg2 = 0 ;
32379 void *argp1 = 0 ;
32380 int res1 = 0 ;
32381 void *argp2 = 0 ;
32382 int res2 = 0 ;
32383 PyObject * obj0 = 0 ;
32384 PyObject * obj1 = 0 ;
32385 char * kwnames[] = {
32386 (char *) "self",(char *) "id", NULL
32387 };
32388
32389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
32390 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32391 if (!SWIG_IsOK(res1)) {
32392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32393 }
32394 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32395 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32396 if (!SWIG_IsOK(res2)) {
32397 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32398 }
32399 if (!argp2) {
32400 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32401 }
32402 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32403 {
32404 PyThreadState* __tstate = wxPyBeginAllowThreads();
32405 (arg1)->SetId((wxTreeItemId const &)*arg2);
32406 wxPyEndAllowThreads(__tstate);
32407 if (PyErr_Occurred()) SWIG_fail;
32408 }
32409 resultobj = SWIG_Py_Void();
32410 return resultobj;
32411fail:
32412 return NULL;
2ef75293
RD
32413}
32414
32415
0085ce49
RD
32416SWIGINTERN PyObject *_wrap_TreeItemData_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32417 PyObject *resultobj = 0;
32418 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32419 void *argp1 = 0 ;
32420 int res1 = 0 ;
32421 PyObject *swig_obj[1] ;
32422
32423 if (!args) SWIG_fail;
32424 swig_obj[0] = args;
32425 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32426 if (!SWIG_IsOK(res1)) {
32427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_Destroy" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32428 }
32429 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32430 {
32431 PyThreadState* __tstate = wxPyBeginAllowThreads();
32432 wxPyTreeItemData_Destroy(arg1);
32433 wxPyEndAllowThreads(__tstate);
32434 if (PyErr_Occurred()) SWIG_fail;
32435 }
32436 resultobj = SWIG_Py_Void();
32437 return resultobj;
32438fail:
32439 return NULL;
2ef75293
RD
32440}
32441
32442
0085ce49
RD
32443SWIGINTERN PyObject *TreeItemData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32444 PyObject *obj;
32445 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32446 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeItemData, SWIG_NewClientData(obj));
32447 return SWIG_Py_Void();
2ef75293
RD
32448}
32449
0085ce49
RD
32450SWIGINTERN PyObject *TreeItemData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32451 return SWIG_Python_InitShadowInstance(args);
32452}
2ef75293 32453
0085ce49
RD
32454SWIGINTERN PyObject *_wrap_new_TreeEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32455 PyObject *resultobj = 0;
32456 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
32457 int arg2 = (int) 0 ;
32458 wxTreeEvent *result = 0 ;
32459 int val1 ;
32460 int ecode1 = 0 ;
32461 int val2 ;
32462 int ecode2 = 0 ;
32463 PyObject * obj0 = 0 ;
32464 PyObject * obj1 = 0 ;
32465 char * kwnames[] = {
32466 (char *) "commandType",(char *) "id", NULL
32467 };
32468
32469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) SWIG_fail;
32470 if (obj0) {
32471 ecode1 = SWIG_AsVal_int(obj0, &val1);
32472 if (!SWIG_IsOK(ecode1)) {
32473 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
32474 }
32475 arg1 = static_cast< wxEventType >(val1);
32476 }
32477 if (obj1) {
32478 ecode2 = SWIG_AsVal_int(obj1, &val2);
32479 if (!SWIG_IsOK(ecode2)) {
32480 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "int""'");
32481 }
32482 arg2 = static_cast< int >(val2);
32483 }
32484 {
32485 PyThreadState* __tstate = wxPyBeginAllowThreads();
32486 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
32487 wxPyEndAllowThreads(__tstate);
32488 if (PyErr_Occurred()) SWIG_fail;
32489 }
32490 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
32491 return resultobj;
32492fail:
32493 return NULL;
70b7a5fe
RD
32494}
32495
32496
0085ce49
RD
32497SWIGINTERN PyObject *_wrap_TreeEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32498 PyObject *resultobj = 0;
32499 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32500 wxTreeItemId result;
32501 void *argp1 = 0 ;
32502 int res1 = 0 ;
32503 PyObject *swig_obj[1] ;
32504
32505 if (!args) SWIG_fail;
32506 swig_obj[0] = args;
32507 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32508 if (!SWIG_IsOK(res1)) {
32509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32510 }
32511 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32512 {
32513 PyThreadState* __tstate = wxPyBeginAllowThreads();
32514 result = ((wxTreeEvent const *)arg1)->GetItem();
32515 wxPyEndAllowThreads(__tstate);
32516 if (PyErr_Occurred()) SWIG_fail;
32517 }
32518 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
32519 return resultobj;
32520fail:
32521 return NULL;
32522}
32523
32524
32525SWIGINTERN PyObject *_wrap_TreeEvent_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32526 PyObject *resultobj = 0;
32527 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32528 wxTreeItemId *arg2 = 0 ;
32529 void *argp1 = 0 ;
32530 int res1 = 0 ;
32531 void *argp2 = 0 ;
32532 int res2 = 0 ;
32533 PyObject * obj0 = 0 ;
32534 PyObject * obj1 = 0 ;
32535 char * kwnames[] = {
32536 (char *) "self",(char *) "item", NULL
32537 };
32538
32539 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
32540 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32541 if (!SWIG_IsOK(res1)) {
32542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32543 }
32544 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32545 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32546 if (!SWIG_IsOK(res2)) {
32547 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32548 }
32549 if (!argp2) {
32550 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32551 }
32552 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32553 {
32554 PyThreadState* __tstate = wxPyBeginAllowThreads();
32555 (arg1)->SetItem((wxTreeItemId const &)*arg2);
32556 wxPyEndAllowThreads(__tstate);
32557 if (PyErr_Occurred()) SWIG_fail;
32558 }
32559 resultobj = SWIG_Py_Void();
32560 return resultobj;
32561fail:
32562 return NULL;
2ef75293
RD
32563}
32564
32565
0085ce49
RD
32566SWIGINTERN PyObject *_wrap_TreeEvent_GetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32567 PyObject *resultobj = 0;
32568 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32569 wxTreeItemId result;
32570 void *argp1 = 0 ;
32571 int res1 = 0 ;
32572 PyObject *swig_obj[1] ;
32573
32574 if (!args) SWIG_fail;
32575 swig_obj[0] = args;
32576 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32577 if (!SWIG_IsOK(res1)) {
32578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32579 }
32580 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32581 {
32582 PyThreadState* __tstate = wxPyBeginAllowThreads();
32583 result = ((wxTreeEvent const *)arg1)->GetOldItem();
32584 wxPyEndAllowThreads(__tstate);
32585 if (PyErr_Occurred()) SWIG_fail;
32586 }
32587 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
32588 return resultobj;
32589fail:
32590 return NULL;
32591}
32592
32593
32594SWIGINTERN PyObject *_wrap_TreeEvent_SetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32595 PyObject *resultobj = 0;
32596 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32597 wxTreeItemId *arg2 = 0 ;
32598 void *argp1 = 0 ;
32599 int res1 = 0 ;
32600 void *argp2 = 0 ;
32601 int res2 = 0 ;
32602 PyObject * obj0 = 0 ;
32603 PyObject * obj1 = 0 ;
32604 char * kwnames[] = {
32605 (char *) "self",(char *) "item", NULL
32606 };
32607
32608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) SWIG_fail;
32609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32610 if (!SWIG_IsOK(res1)) {
32611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32612 }
32613 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32614 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32615 if (!SWIG_IsOK(res2)) {
32616 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32617 }
32618 if (!argp2) {
32619 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32620 }
32621 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32622 {
32623 PyThreadState* __tstate = wxPyBeginAllowThreads();
32624 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
32625 wxPyEndAllowThreads(__tstate);
32626 if (PyErr_Occurred()) SWIG_fail;
32627 }
32628 resultobj = SWIG_Py_Void();
32629 return resultobj;
32630fail:
32631 return NULL;
2ef75293
RD
32632}
32633
32634
0085ce49
RD
32635SWIGINTERN PyObject *_wrap_TreeEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32636 PyObject *resultobj = 0;
32637 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32638 wxPoint result;
32639 void *argp1 = 0 ;
32640 int res1 = 0 ;
32641 PyObject *swig_obj[1] ;
32642
32643 if (!args) SWIG_fail;
32644 swig_obj[0] = args;
32645 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32646 if (!SWIG_IsOK(res1)) {
32647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetPoint" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32648 }
32649 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32650 {
32651 PyThreadState* __tstate = wxPyBeginAllowThreads();
32652 result = ((wxTreeEvent const *)arg1)->GetPoint();
32653 wxPyEndAllowThreads(__tstate);
32654 if (PyErr_Occurred()) SWIG_fail;
32655 }
32656 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
32657 return resultobj;
32658fail:
32659 return NULL;
32660}
32661
32662
32663SWIGINTERN PyObject *_wrap_TreeEvent_SetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32664 PyObject *resultobj = 0;
32665 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32666 wxPoint *arg2 = 0 ;
32667 void *argp1 = 0 ;
32668 int res1 = 0 ;
32669 wxPoint temp2 ;
32670 PyObject * obj0 = 0 ;
32671 PyObject * obj1 = 0 ;
32672 char * kwnames[] = {
32673 (char *) "self",(char *) "pt", NULL
32674 };
32675
32676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) SWIG_fail;
32677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32678 if (!SWIG_IsOK(res1)) {
32679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetPoint" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32680 }
32681 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32682 {
32683 arg2 = &temp2;
32684 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32685 }
32686 {
32687 PyThreadState* __tstate = wxPyBeginAllowThreads();
32688 (arg1)->SetPoint((wxPoint const &)*arg2);
32689 wxPyEndAllowThreads(__tstate);
32690 if (PyErr_Occurred()) SWIG_fail;
32691 }
32692 resultobj = SWIG_Py_Void();
32693 return resultobj;
32694fail:
32695 return NULL;
d14a1e28
RD
32696}
32697
32698
0085ce49
RD
32699SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32700 PyObject *resultobj = 0;
32701 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32702 wxKeyEvent *result = 0 ;
32703 void *argp1 = 0 ;
32704 int res1 = 0 ;
32705 PyObject *swig_obj[1] ;
32706
32707 if (!args) SWIG_fail;
32708 swig_obj[0] = args;
32709 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32710 if (!SWIG_IsOK(res1)) {
32711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32712 }
32713 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32714 {
32715 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 32716 {
0085ce49
RD
32717 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
32718 result = (wxKeyEvent *) &_result_ref;
d14a1e28 32719 }
0085ce49
RD
32720 wxPyEndAllowThreads(__tstate);
32721 if (PyErr_Occurred()) SWIG_fail;
32722 }
32723 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxKeyEvent, 0 | 0 );
32724 return resultobj;
32725fail:
32726 return NULL;
d14a1e28
RD
32727}
32728
32729
0085ce49
RD
32730SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32731 PyObject *resultobj = 0;
32732 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32733 int result;
32734 void *argp1 = 0 ;
32735 int res1 = 0 ;
32736 PyObject *swig_obj[1] ;
32737
32738 if (!args) SWIG_fail;
32739 swig_obj[0] = args;
32740 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32741 if (!SWIG_IsOK(res1)) {
32742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32743 }
32744 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32745 {
32746 PyThreadState* __tstate = wxPyBeginAllowThreads();
32747 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
32748 wxPyEndAllowThreads(__tstate);
32749 if (PyErr_Occurred()) SWIG_fail;
32750 }
32751 resultobj = SWIG_From_int(static_cast< int >(result));
32752 return resultobj;
32753fail:
32754 return NULL;
32755}
32756
32757
32758SWIGINTERN PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32759 PyObject *resultobj = 0;
32760 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32761 wxKeyEvent *arg2 = 0 ;
32762 void *argp1 = 0 ;
32763 int res1 = 0 ;
32764 void *argp2 = 0 ;
32765 int res2 = 0 ;
32766 PyObject * obj0 = 0 ;
32767 PyObject * obj1 = 0 ;
32768 char * kwnames[] = {
32769 (char *) "self",(char *) "evt", NULL
32770 };
32771
32772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) SWIG_fail;
32773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32774 if (!SWIG_IsOK(res1)) {
32775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32776 }
32777 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32778 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
32779 if (!SWIG_IsOK(res2)) {
32780 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
32781 }
32782 if (!argp2) {
32783 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
32784 }
32785 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
32786 {
32787 PyThreadState* __tstate = wxPyBeginAllowThreads();
32788 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
32789 wxPyEndAllowThreads(__tstate);
32790 if (PyErr_Occurred()) SWIG_fail;
32791 }
32792 resultobj = SWIG_Py_Void();
32793 return resultobj;
32794fail:
32795 return NULL;
d14a1e28
RD
32796}
32797
32798
0085ce49
RD
32799SWIGINTERN PyObject *_wrap_TreeEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32800 PyObject *resultobj = 0;
32801 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32802 wxString *result = 0 ;
32803 void *argp1 = 0 ;
32804 int res1 = 0 ;
32805 PyObject *swig_obj[1] ;
32806
32807 if (!args) SWIG_fail;
32808 swig_obj[0] = args;
32809 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32810 if (!SWIG_IsOK(res1)) {
32811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetLabel" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32812 }
32813 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32814 {
32815 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 32816 {
0085ce49
RD
32817 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
32818 result = (wxString *) &_result_ref;
093d3ff1 32819 }
0085ce49
RD
32820 wxPyEndAllowThreads(__tstate);
32821 if (PyErr_Occurred()) SWIG_fail;
32822 }
32823 {
32824#if wxUSE_UNICODE
32825 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
32826#else
32827 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
32828#endif
32829 }
32830 return resultobj;
32831fail:
32832 return NULL;
32833}
32834
32835
32836SWIGINTERN PyObject *_wrap_TreeEvent_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32837 PyObject *resultobj = 0;
32838 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32839 wxString *arg2 = 0 ;
32840 void *argp1 = 0 ;
32841 int res1 = 0 ;
32842 bool temp2 = false ;
32843 PyObject * obj0 = 0 ;
32844 PyObject * obj1 = 0 ;
32845 char * kwnames[] = {
32846 (char *) "self",(char *) "label", NULL
32847 };
32848
32849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
32850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32851 if (!SWIG_IsOK(res1)) {
32852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetLabel" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32853 }
32854 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32855 {
32856 arg2 = wxString_in_helper(obj1);
32857 if (arg2 == NULL) SWIG_fail;
32858 temp2 = true;
32859 }
32860 {
32861 PyThreadState* __tstate = wxPyBeginAllowThreads();
32862 (arg1)->SetLabel((wxString const &)*arg2);
32863 wxPyEndAllowThreads(__tstate);
32864 if (PyErr_Occurred()) SWIG_fail;
32865 }
32866 resultobj = SWIG_Py_Void();
32867 {
32868 if (temp2)
32869 delete arg2;
32870 }
32871 return resultobj;
32872fail:
32873 {
32874 if (temp2)
32875 delete arg2;
32876 }
32877 return NULL;
d14a1e28
RD
32878}
32879
32880
0085ce49
RD
32881SWIGINTERN PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32882 PyObject *resultobj = 0;
32883 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32884 bool result;
32885 void *argp1 = 0 ;
32886 int res1 = 0 ;
32887 PyObject *swig_obj[1] ;
32888
32889 if (!args) SWIG_fail;
32890 swig_obj[0] = args;
32891 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32892 if (!SWIG_IsOK(res1)) {
32893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32894 }
32895 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32896 {
32897 PyThreadState* __tstate = wxPyBeginAllowThreads();
32898 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
32899 wxPyEndAllowThreads(__tstate);
32900 if (PyErr_Occurred()) SWIG_fail;
32901 }
32902 {
32903 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32904 }
32905 return resultobj;
32906fail:
32907 return NULL;
32908}
32909
32910
32911SWIGINTERN PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32912 PyObject *resultobj = 0;
32913 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32914 bool arg2 ;
32915 void *argp1 = 0 ;
32916 int res1 = 0 ;
32917 bool val2 ;
32918 int ecode2 = 0 ;
32919 PyObject * obj0 = 0 ;
32920 PyObject * obj1 = 0 ;
32921 char * kwnames[] = {
32922 (char *) "self",(char *) "editCancelled", NULL
32923 };
32924
32925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
32926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32927 if (!SWIG_IsOK(res1)) {
32928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32929 }
32930 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32931 ecode2 = SWIG_AsVal_bool(obj1, &val2);
32932 if (!SWIG_IsOK(ecode2)) {
32933 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
32934 }
32935 arg2 = static_cast< bool >(val2);
32936 {
32937 PyThreadState* __tstate = wxPyBeginAllowThreads();
32938 (arg1)->SetEditCanceled(arg2);
32939 wxPyEndAllowThreads(__tstate);
32940 if (PyErr_Occurred()) SWIG_fail;
32941 }
32942 resultobj = SWIG_Py_Void();
32943 return resultobj;
32944fail:
32945 return NULL;
32946}
32947
32948
32949SWIGINTERN PyObject *_wrap_TreeEvent_SetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32950 PyObject *resultobj = 0;
32951 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32952 wxString *arg2 = 0 ;
32953 void *argp1 = 0 ;
32954 int res1 = 0 ;
32955 bool temp2 = false ;
32956 PyObject * obj0 = 0 ;
32957 PyObject * obj1 = 0 ;
32958 char * kwnames[] = {
32959 (char *) "self",(char *) "toolTip", NULL
32960 };
32961
32962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
32963 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32964 if (!SWIG_IsOK(res1)) {
32965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32966 }
32967 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32968 {
32969 arg2 = wxString_in_helper(obj1);
32970 if (arg2 == NULL) SWIG_fail;
32971 temp2 = true;
32972 }
32973 {
32974 PyThreadState* __tstate = wxPyBeginAllowThreads();
32975 (arg1)->SetToolTip((wxString const &)*arg2);
32976 wxPyEndAllowThreads(__tstate);
32977 if (PyErr_Occurred()) SWIG_fail;
32978 }
32979 resultobj = SWIG_Py_Void();
32980 {
32981 if (temp2)
32982 delete arg2;
32983 }
32984 return resultobj;
32985fail:
32986 {
32987 if (temp2)
32988 delete arg2;
32989 }
32990 return NULL;
d14a1e28
RD
32991}
32992
32993
0085ce49
RD
32994SWIGINTERN PyObject *_wrap_TreeEvent_GetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32995 PyObject *resultobj = 0;
32996 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32997 wxString result;
32998 void *argp1 = 0 ;
32999 int res1 = 0 ;
33000 PyObject *swig_obj[1] ;
33001
33002 if (!args) SWIG_fail;
33003 swig_obj[0] = args;
33004 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33005 if (!SWIG_IsOK(res1)) {
33006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33007 }
33008 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33009 {
33010 PyThreadState* __tstate = wxPyBeginAllowThreads();
33011 result = (arg1)->GetToolTip();
33012 wxPyEndAllowThreads(__tstate);
33013 if (PyErr_Occurred()) SWIG_fail;
33014 }
33015 {
33016#if wxUSE_UNICODE
33017 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33018#else
33019 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33020#endif
33021 }
33022 return resultobj;
33023fail:
33024 return NULL;
33025}
33026
33027
33028SWIGINTERN PyObject *TreeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33029 PyObject *obj;
33030 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33031 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeEvent, SWIG_NewClientData(obj));
33032 return SWIG_Py_Void();
33033}
33034
33035SWIGINTERN PyObject *TreeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33036 return SWIG_Python_InitShadowInstance(args);
33037}
33038
33039SWIGINTERN PyObject *_wrap_new_TreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33040 PyObject *resultobj = 0;
33041 wxWindow *arg1 = (wxWindow *) 0 ;
33042 int arg2 = (int) -1 ;
33043 wxPoint const &arg3_defvalue = wxDefaultPosition ;
33044 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
33045 wxSize const &arg4_defvalue = wxDefaultSize ;
33046 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
33047 long arg5 = (long) wxTR_DEFAULT_STYLE ;
33048 wxValidator const &arg6_defvalue = wxDefaultValidator ;
33049 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
33050 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
33051 wxString *arg7 = (wxString *) &arg7_defvalue ;
33052 wxPyTreeCtrl *result = 0 ;
33053 void *argp1 = 0 ;
33054 int res1 = 0 ;
33055 int val2 ;
33056 int ecode2 = 0 ;
33057 wxPoint temp3 ;
33058 wxSize temp4 ;
33059 long val5 ;
33060 int ecode5 = 0 ;
33061 void *argp6 = 0 ;
33062 int res6 = 0 ;
33063 bool temp7 = false ;
33064 PyObject * obj0 = 0 ;
33065 PyObject * obj1 = 0 ;
33066 PyObject * obj2 = 0 ;
33067 PyObject * obj3 = 0 ;
33068 PyObject * obj4 = 0 ;
33069 PyObject * obj5 = 0 ;
33070 PyObject * obj6 = 0 ;
33071 char * kwnames[] = {
33072 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33073 };
33074
33075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33077 if (!SWIG_IsOK(res1)) {
33078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
33079 }
33080 arg1 = reinterpret_cast< wxWindow * >(argp1);
33081 if (obj1) {
33082 ecode2 = SWIG_AsVal_int(obj1, &val2);
33083 if (!SWIG_IsOK(ecode2)) {
33084 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCtrl" "', expected argument " "2"" of type '" "int""'");
33085 }
33086 arg2 = static_cast< int >(val2);
33087 }
33088 if (obj2) {
d14a1e28 33089 {
0085ce49
RD
33090 arg3 = &temp3;
33091 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 33092 }
0085ce49
RD
33093 }
33094 if (obj3) {
093d3ff1 33095 {
0085ce49
RD
33096 arg4 = &temp4;
33097 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 33098 }
0085ce49
RD
33099 }
33100 if (obj4) {
33101 ecode5 = SWIG_AsVal_long(obj4, &val5);
33102 if (!SWIG_IsOK(ecode5)) {
33103 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TreeCtrl" "', expected argument " "5"" of type '" "long""'");
33104 }
33105 arg5 = static_cast< long >(val5);
33106 }
33107 if (obj5) {
33108 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
33109 if (!SWIG_IsOK(res6)) {
33110 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d14a1e28 33111 }
0085ce49
RD
33112 if (!argp6) {
33113 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d14a1e28 33114 }
0085ce49
RD
33115 arg6 = reinterpret_cast< wxValidator * >(argp6);
33116 }
33117 if (obj6) {
4f89f6a3 33118 {
0085ce49
RD
33119 arg7 = wxString_in_helper(obj6);
33120 if (arg7 == NULL) SWIG_fail;
33121 temp7 = true;
4f89f6a3 33122 }
0085ce49
RD
33123 }
33124 {
33125 if (!wxPyCheckForApp()) SWIG_fail;
33126 PyThreadState* __tstate = wxPyBeginAllowThreads();
33127 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
33128 wxPyEndAllowThreads(__tstate);
33129 if (PyErr_Occurred()) SWIG_fail;
33130 }
33131 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_NEW | 0 );
33132 {
33133 if (temp7)
33134 delete arg7;
33135 }
33136 return resultobj;
33137fail:
33138 {
33139 if (temp7)
33140 delete arg7;
33141 }
33142 return NULL;
d14a1e28
RD
33143}
33144
33145
0085ce49
RD
33146SWIGINTERN PyObject *_wrap_new_PreTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33147 PyObject *resultobj = 0;
33148 wxPyTreeCtrl *result = 0 ;
33149
33150 if (!SWIG_Python_UnpackTuple(args,"new_PreTreeCtrl",0,0,0)) SWIG_fail;
33151 {
33152 if (!wxPyCheckForApp()) SWIG_fail;
33153 PyThreadState* __tstate = wxPyBeginAllowThreads();
33154 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
33155 wxPyEndAllowThreads(__tstate);
33156 if (PyErr_Occurred()) SWIG_fail;
33157 }
33158 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_OWN | 0 );
33159 return resultobj;
33160fail:
33161 return NULL;
33162}
33163
33164
33165SWIGINTERN PyObject *_wrap_TreeCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33166 PyObject *resultobj = 0;
33167 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33168 wxWindow *arg2 = (wxWindow *) 0 ;
33169 int arg3 = (int) -1 ;
33170 wxPoint const &arg4_defvalue = wxDefaultPosition ;
33171 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
33172 wxSize const &arg5_defvalue = wxDefaultSize ;
33173 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
33174 long arg6 = (long) wxTR_DEFAULT_STYLE ;
33175 wxValidator const &arg7_defvalue = wxDefaultValidator ;
33176 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
33177 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
33178 wxString *arg8 = (wxString *) &arg8_defvalue ;
33179 bool result;
33180 void *argp1 = 0 ;
33181 int res1 = 0 ;
33182 void *argp2 = 0 ;
33183 int res2 = 0 ;
33184 int val3 ;
33185 int ecode3 = 0 ;
33186 wxPoint temp4 ;
33187 wxSize temp5 ;
33188 long val6 ;
33189 int ecode6 = 0 ;
33190 void *argp7 = 0 ;
33191 int res7 = 0 ;
33192 bool temp8 = false ;
33193 PyObject * obj0 = 0 ;
33194 PyObject * obj1 = 0 ;
33195 PyObject * obj2 = 0 ;
33196 PyObject * obj3 = 0 ;
33197 PyObject * obj4 = 0 ;
33198 PyObject * obj5 = 0 ;
33199 PyObject * obj6 = 0 ;
33200 PyObject * obj7 = 0 ;
33201 char * kwnames[] = {
33202 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33203 };
33204
33205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
33206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33207 if (!SWIG_IsOK(res1)) {
33208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Create" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33209 }
33210 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33211 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33212 if (!SWIG_IsOK(res2)) {
33213 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
33214 }
33215 arg2 = reinterpret_cast< wxWindow * >(argp2);
33216 if (obj2) {
33217 ecode3 = SWIG_AsVal_int(obj2, &val3);
33218 if (!SWIG_IsOK(ecode3)) {
33219 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_Create" "', expected argument " "3"" of type '" "int""'");
33220 }
33221 arg3 = static_cast< int >(val3);
33222 }
33223 if (obj3) {
4f89f6a3 33224 {
0085ce49
RD
33225 arg4 = &temp4;
33226 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 33227 }
0085ce49
RD
33228 }
33229 if (obj4) {
d14a1e28 33230 {
0085ce49
RD
33231 arg5 = &temp5;
33232 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 33233 }
0085ce49
RD
33234 }
33235 if (obj5) {
33236 ecode6 = SWIG_AsVal_long(obj5, &val6);
33237 if (!SWIG_IsOK(ecode6)) {
33238 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_Create" "', expected argument " "6"" of type '" "long""'");
33239 }
33240 arg6 = static_cast< long >(val6);
33241 }
33242 if (obj6) {
33243 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
33244 if (!SWIG_IsOK(res7)) {
33245 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
4f89f6a3 33246 }
0085ce49
RD
33247 if (!argp7) {
33248 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 33249 }
0085ce49
RD
33250 arg7 = reinterpret_cast< wxValidator * >(argp7);
33251 }
33252 if (obj7) {
4276dc52 33253 {
0085ce49
RD
33254 arg8 = wxString_in_helper(obj7);
33255 if (arg8 == NULL) SWIG_fail;
33256 temp8 = true;
4276dc52 33257 }
0085ce49
RD
33258 }
33259 {
33260 PyThreadState* __tstate = wxPyBeginAllowThreads();
33261 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
33262 wxPyEndAllowThreads(__tstate);
33263 if (PyErr_Occurred()) SWIG_fail;
33264 }
33265 {
33266 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33267 }
33268 {
33269 if (temp8)
33270 delete arg8;
33271 }
33272 return resultobj;
33273fail:
33274 {
33275 if (temp8)
33276 delete arg8;
33277 }
33278 return NULL;
33279}
33280
33281
33282SWIGINTERN PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33283 PyObject *resultobj = 0;
33284 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33285 PyObject *arg2 = (PyObject *) 0 ;
33286 PyObject *arg3 = (PyObject *) 0 ;
33287 void *argp1 = 0 ;
33288 int res1 = 0 ;
33289 PyObject * obj0 = 0 ;
33290 PyObject * obj1 = 0 ;
33291 PyObject * obj2 = 0 ;
33292 char * kwnames[] = {
33293 (char *) "self",(char *) "self",(char *) "_class", NULL
33294 };
33295
33296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33298 if (!SWIG_IsOK(res1)) {
33299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33300 }
33301 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33302 arg2 = obj1;
33303 arg3 = obj2;
33304 {
33305 PyThreadState* __tstate = wxPyBeginAllowThreads();
33306 (arg1)->_setCallbackInfo(arg2,arg3);
33307 wxPyEndAllowThreads(__tstate);
33308 if (PyErr_Occurred()) SWIG_fail;
33309 }
33310 resultobj = SWIG_Py_Void();
33311 return resultobj;
33312fail:
33313 return NULL;
d14a1e28
RD
33314}
33315
33316
0085ce49
RD
33317SWIGINTERN PyObject *_wrap_TreeCtrl_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33318 PyObject *resultobj = 0;
33319 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33320 size_t 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_wxPyTreeCtrl, 0 | 0 );
33328 if (!SWIG_IsOK(res1)) {
33329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33330 }
33331 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33332 {
33333 PyThreadState* __tstate = wxPyBeginAllowThreads();
33334 result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount();
33335 wxPyEndAllowThreads(__tstate);
33336 if (PyErr_Occurred()) SWIG_fail;
33337 }
33338 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
33339 return resultobj;
33340fail:
33341 return NULL;
d14a1e28
RD
33342}
33343
33344
0085ce49
RD
33345SWIGINTERN PyObject *_wrap_TreeCtrl_GetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33346 PyObject *resultobj = 0;
33347 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33348 unsigned int result;
33349 void *argp1 = 0 ;
33350 int res1 = 0 ;
33351 PyObject *swig_obj[1] ;
33352
33353 if (!args) SWIG_fail;
33354 swig_obj[0] = args;
33355 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33356 if (!SWIG_IsOK(res1)) {
33357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33358 }
33359 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33360 {
33361 PyThreadState* __tstate = wxPyBeginAllowThreads();
33362 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
33363 wxPyEndAllowThreads(__tstate);
33364 if (PyErr_Occurred()) SWIG_fail;
33365 }
33366 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33367 return resultobj;
33368fail:
33369 return NULL;
33370}
33371
33372
33373SWIGINTERN PyObject *_wrap_TreeCtrl_SetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33374 PyObject *resultobj = 0;
33375 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33376 unsigned int arg2 ;
33377 void *argp1 = 0 ;
33378 int res1 = 0 ;
33379 unsigned int val2 ;
33380 int ecode2 = 0 ;
33381 PyObject * obj0 = 0 ;
33382 PyObject * obj1 = 0 ;
33383 char * kwnames[] = {
33384 (char *) "self",(char *) "indent", NULL
33385 };
33386
33387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) SWIG_fail;
33388 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33389 if (!SWIG_IsOK(res1)) {
33390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33391 }
33392 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33393 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
33394 if (!SWIG_IsOK(ecode2)) {
33395 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetIndent" "', expected argument " "2"" of type '" "unsigned int""'");
33396 }
33397 arg2 = static_cast< unsigned int >(val2);
33398 {
33399 PyThreadState* __tstate = wxPyBeginAllowThreads();
33400 (arg1)->SetIndent(arg2);
33401 wxPyEndAllowThreads(__tstate);
33402 if (PyErr_Occurred()) SWIG_fail;
33403 }
33404 resultobj = SWIG_Py_Void();
33405 return resultobj;
33406fail:
33407 return NULL;
d14a1e28
RD
33408}
33409
33410
0085ce49
RD
33411SWIGINTERN PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33412 PyObject *resultobj = 0;
33413 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33414 unsigned int result;
33415 void *argp1 = 0 ;
33416 int res1 = 0 ;
33417 PyObject *swig_obj[1] ;
33418
33419 if (!args) SWIG_fail;
33420 swig_obj[0] = args;
33421 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33422 if (!SWIG_IsOK(res1)) {
33423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33424 }
33425 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33426 {
33427 PyThreadState* __tstate = wxPyBeginAllowThreads();
33428 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
33429 wxPyEndAllowThreads(__tstate);
33430 if (PyErr_Occurred()) SWIG_fail;
33431 }
33432 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33433 return resultobj;
33434fail:
33435 return NULL;
33436}
33437
33438
33439SWIGINTERN PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33440 PyObject *resultobj = 0;
33441 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33442 unsigned int arg2 ;
33443 void *argp1 = 0 ;
33444 int res1 = 0 ;
33445 unsigned int val2 ;
33446 int ecode2 = 0 ;
33447 PyObject * obj0 = 0 ;
33448 PyObject * obj1 = 0 ;
33449 char * kwnames[] = {
33450 (char *) "self",(char *) "spacing", NULL
33451 };
33452
33453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
33454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33455 if (!SWIG_IsOK(res1)) {
33456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33457 }
33458 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33459 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
33460 if (!SWIG_IsOK(ecode2)) {
33461 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "2"" of type '" "unsigned int""'");
33462 }
33463 arg2 = static_cast< unsigned int >(val2);
33464 {
33465 PyThreadState* __tstate = wxPyBeginAllowThreads();
33466 (arg1)->SetSpacing(arg2);
33467 wxPyEndAllowThreads(__tstate);
33468 if (PyErr_Occurred()) SWIG_fail;
33469 }
33470 resultobj = SWIG_Py_Void();
33471 return resultobj;
33472fail:
33473 return NULL;
d14a1e28
RD
33474}
33475
33476
0085ce49
RD
33477SWIGINTERN PyObject *_wrap_TreeCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33478 PyObject *resultobj = 0;
33479 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33480 wxImageList *result = 0 ;
33481 void *argp1 = 0 ;
33482 int res1 = 0 ;
33483 PyObject *swig_obj[1] ;
33484
33485 if (!args) SWIG_fail;
33486 swig_obj[0] = args;
33487 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33488 if (!SWIG_IsOK(res1)) {
33489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33490 }
33491 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33492 {
33493 PyThreadState* __tstate = wxPyBeginAllowThreads();
33494 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
33495 wxPyEndAllowThreads(__tstate);
33496 if (PyErr_Occurred()) SWIG_fail;
33497 }
33498 {
33499 resultobj = wxPyMake_wxObject(result, (bool)0);
33500 }
33501 return resultobj;
33502fail:
33503 return NULL;
d14a1e28
RD
33504}
33505
33506
0085ce49
RD
33507SWIGINTERN PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33508 PyObject *resultobj = 0;
33509 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33510 wxImageList *result = 0 ;
33511 void *argp1 = 0 ;
33512 int res1 = 0 ;
33513 PyObject *swig_obj[1] ;
33514
33515 if (!args) SWIG_fail;
33516 swig_obj[0] = args;
33517 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33518 if (!SWIG_IsOK(res1)) {
33519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33520 }
33521 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33522 {
33523 PyThreadState* __tstate = wxPyBeginAllowThreads();
33524 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
33525 wxPyEndAllowThreads(__tstate);
33526 if (PyErr_Occurred()) SWIG_fail;
33527 }
33528 {
33529 resultobj = wxPyMake_wxObject(result, (bool)0);
33530 }
33531 return resultobj;
33532fail:
33533 return NULL;
33534}
33535
33536
33537SWIGINTERN PyObject *_wrap_TreeCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33538 PyObject *resultobj = 0;
33539 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33540 wxImageList *arg2 = (wxImageList *) 0 ;
33541 void *argp1 = 0 ;
33542 int res1 = 0 ;
33543 void *argp2 = 0 ;
33544 int res2 = 0 ;
33545 PyObject * obj0 = 0 ;
33546 PyObject * obj1 = 0 ;
33547 char * kwnames[] = {
33548 (char *) "self",(char *) "imageList", NULL
33549 };
33550
33551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33553 if (!SWIG_IsOK(res1)) {
33554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33555 }
33556 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33557 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
33558 if (!SWIG_IsOK(res2)) {
33559 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33560 }
33561 arg2 = reinterpret_cast< wxImageList * >(argp2);
33562 {
33563 PyThreadState* __tstate = wxPyBeginAllowThreads();
33564 (arg1)->SetImageList(arg2);
33565 wxPyEndAllowThreads(__tstate);
33566 if (PyErr_Occurred()) SWIG_fail;
33567 }
33568 resultobj = SWIG_Py_Void();
33569 return resultobj;
33570fail:
33571 return NULL;
33572}
33573
33574
33575SWIGINTERN PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33576 PyObject *resultobj = 0;
33577 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33578 wxImageList *arg2 = (wxImageList *) 0 ;
33579 void *argp1 = 0 ;
33580 int res1 = 0 ;
33581 void *argp2 = 0 ;
33582 int res2 = 0 ;
33583 PyObject * obj0 = 0 ;
33584 PyObject * obj1 = 0 ;
33585 char * kwnames[] = {
33586 (char *) "self",(char *) "imageList", NULL
33587 };
33588
33589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33591 if (!SWIG_IsOK(res1)) {
33592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33593 }
33594 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33595 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
33596 if (!SWIG_IsOK(res2)) {
33597 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33598 }
33599 arg2 = reinterpret_cast< wxImageList * >(argp2);
33600 {
33601 PyThreadState* __tstate = wxPyBeginAllowThreads();
33602 (arg1)->SetStateImageList(arg2);
33603 wxPyEndAllowThreads(__tstate);
33604 if (PyErr_Occurred()) SWIG_fail;
33605 }
33606 resultobj = SWIG_Py_Void();
33607 return resultobj;
33608fail:
33609 return NULL;
33610}
33611
33612
33613SWIGINTERN PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33614 PyObject *resultobj = 0;
33615 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33616 wxImageList *arg2 = (wxImageList *) 0 ;
33617 void *argp1 = 0 ;
33618 int res1 = 0 ;
33619 int res2 = 0 ;
33620 PyObject * obj0 = 0 ;
33621 PyObject * obj1 = 0 ;
33622 char * kwnames[] = {
33623 (char *) "self",(char *) "imageList", NULL
33624 };
33625
33626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33628 if (!SWIG_IsOK(res1)) {
33629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33630 }
33631 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33632 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
33633 if (!SWIG_IsOK(res2)) {
33634 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33635 }
33636 {
33637 PyThreadState* __tstate = wxPyBeginAllowThreads();
33638 (arg1)->AssignImageList(arg2);
33639 wxPyEndAllowThreads(__tstate);
33640 if (PyErr_Occurred()) SWIG_fail;
33641 }
33642 resultobj = SWIG_Py_Void();
33643 return resultobj;
33644fail:
33645 return NULL;
33646}
33647
33648
33649SWIGINTERN PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33650 PyObject *resultobj = 0;
33651 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33652 wxImageList *arg2 = (wxImageList *) 0 ;
33653 void *argp1 = 0 ;
33654 int res1 = 0 ;
33655 int res2 = 0 ;
33656 PyObject * obj0 = 0 ;
33657 PyObject * obj1 = 0 ;
33658 char * kwnames[] = {
33659 (char *) "self",(char *) "imageList", NULL
33660 };
33661
33662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33664 if (!SWIG_IsOK(res1)) {
33665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33666 }
33667 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33668 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
33669 if (!SWIG_IsOK(res2)) {
33670 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33671 }
33672 {
33673 PyThreadState* __tstate = wxPyBeginAllowThreads();
33674 (arg1)->AssignStateImageList(arg2);
33675 wxPyEndAllowThreads(__tstate);
33676 if (PyErr_Occurred()) SWIG_fail;
33677 }
33678 resultobj = SWIG_Py_Void();
33679 return resultobj;
33680fail:
33681 return NULL;
33682}
33683
33684
33685SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33686 PyObject *resultobj = 0;
33687 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33688 wxTreeItemId *arg2 = 0 ;
33689 wxString result;
33690 void *argp1 = 0 ;
33691 int res1 = 0 ;
33692 void *argp2 = 0 ;
33693 int res2 = 0 ;
33694 PyObject * obj0 = 0 ;
33695 PyObject * obj1 = 0 ;
33696 char * kwnames[] = {
33697 (char *) "self",(char *) "item", NULL
33698 };
33699
33700 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
33701 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33702 if (!SWIG_IsOK(res1)) {
33703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33704 }
33705 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33706 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33707 if (!SWIG_IsOK(res2)) {
33708 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33709 }
33710 if (!argp2) {
33711 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33712 }
33713 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33714 {
33715 PyThreadState* __tstate = wxPyBeginAllowThreads();
33716 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
33717 wxPyEndAllowThreads(__tstate);
33718 if (PyErr_Occurred()) SWIG_fail;
33719 }
33720 {
d14a1e28 33721#if wxUSE_UNICODE
0085ce49 33722 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d14a1e28 33723#else
0085ce49 33724 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d14a1e28 33725#endif
0085ce49
RD
33726 }
33727 return resultobj;
33728fail:
33729 return NULL;
33730}
33731
33732
33733SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33734 PyObject *resultobj = 0;
33735 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33736 wxTreeItemId *arg2 = 0 ;
33737 wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
33738 int result;
33739 void *argp1 = 0 ;
33740 int res1 = 0 ;
33741 void *argp2 = 0 ;
33742 int res2 = 0 ;
33743 int val3 ;
33744 int ecode3 = 0 ;
33745 PyObject * obj0 = 0 ;
33746 PyObject * obj1 = 0 ;
33747 PyObject * obj2 = 0 ;
33748 char * kwnames[] = {
33749 (char *) "self",(char *) "item",(char *) "which", NULL
33750 };
33751
33752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33754 if (!SWIG_IsOK(res1)) {
33755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33756 }
33757 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33758 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33759 if (!SWIG_IsOK(res2)) {
33760 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33761 }
33762 if (!argp2) {
33763 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33764 }
33765 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33766 if (obj2) {
33767 ecode3 = SWIG_AsVal_int(obj2, &val3);
33768 if (!SWIG_IsOK(ecode3)) {
33769 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "3"" of type '" "wxTreeItemIcon""'");
33770 }
33771 arg3 = static_cast< wxTreeItemIcon >(val3);
33772 }
33773 {
33774 PyThreadState* __tstate = wxPyBeginAllowThreads();
33775 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,arg3);
33776 wxPyEndAllowThreads(__tstate);
33777 if (PyErr_Occurred()) SWIG_fail;
33778 }
33779 resultobj = SWIG_From_int(static_cast< int >(result));
33780 return resultobj;
33781fail:
33782 return NULL;
33783}
33784
33785
33786SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33787 PyObject *resultobj = 0;
33788 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33789 wxTreeItemId *arg2 = 0 ;
33790 wxPyTreeItemData *result = 0 ;
33791 void *argp1 = 0 ;
33792 int res1 = 0 ;
33793 void *argp2 = 0 ;
33794 int res2 = 0 ;
33795 PyObject * obj0 = 0 ;
33796 PyObject * obj1 = 0 ;
33797 char * kwnames[] = {
33798 (char *) "self",(char *) "item", NULL
33799 };
33800
33801 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
33802 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33803 if (!SWIG_IsOK(res1)) {
33804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33805 }
33806 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33807 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33808 if (!SWIG_IsOK(res2)) {
33809 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33810 }
33811 if (!argp2) {
33812 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33813 }
33814 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33815 {
33816 PyThreadState* __tstate = wxPyBeginAllowThreads();
33817 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
33818 wxPyEndAllowThreads(__tstate);
33819 if (PyErr_Occurred()) SWIG_fail;
33820 }
33821 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33822 return resultobj;
33823fail:
33824 return NULL;
33825}
33826
33827
33828SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33829 PyObject *resultobj = 0;
33830 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33831 wxTreeItemId *arg2 = 0 ;
33832 PyObject *result = 0 ;
33833 void *argp1 = 0 ;
33834 int res1 = 0 ;
33835 void *argp2 = 0 ;
33836 int res2 = 0 ;
33837 PyObject * obj0 = 0 ;
33838 PyObject * obj1 = 0 ;
33839 char * kwnames[] = {
33840 (char *) "self",(char *) "item", NULL
33841 };
33842
33843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) SWIG_fail;
33844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33845 if (!SWIG_IsOK(res1)) {
33846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33847 }
33848 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33849 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33850 if (!SWIG_IsOK(res2)) {
33851 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33852 }
33853 if (!argp2) {
33854 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33855 }
33856 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33857 {
33858 PyThreadState* __tstate = wxPyBeginAllowThreads();
33859 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
33860 wxPyEndAllowThreads(__tstate);
33861 if (PyErr_Occurred()) SWIG_fail;
33862 }
33863 resultobj = result;
33864 return resultobj;
33865fail:
33866 return NULL;
33867}
33868
33869
33870SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33871 PyObject *resultobj = 0;
33872 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33873 wxTreeItemId *arg2 = 0 ;
33874 wxColour result;
33875 void *argp1 = 0 ;
33876 int res1 = 0 ;
33877 void *argp2 = 0 ;
33878 int res2 = 0 ;
33879 PyObject * obj0 = 0 ;
33880 PyObject * obj1 = 0 ;
33881 char * kwnames[] = {
33882 (char *) "self",(char *) "item", NULL
33883 };
33884
33885 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
33886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33887 if (!SWIG_IsOK(res1)) {
33888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33889 }
33890 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33891 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33892 if (!SWIG_IsOK(res2)) {
33893 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33894 }
33895 if (!argp2) {
33896 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33897 }
33898 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33899 {
33900 PyThreadState* __tstate = wxPyBeginAllowThreads();
33901 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
33902 wxPyEndAllowThreads(__tstate);
33903 if (PyErr_Occurred()) SWIG_fail;
33904 }
33905 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33906 return resultobj;
33907fail:
33908 return NULL;
33909}
33910
33911
33912SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33913 PyObject *resultobj = 0;
33914 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33915 wxTreeItemId *arg2 = 0 ;
33916 wxColour result;
33917 void *argp1 = 0 ;
33918 int res1 = 0 ;
33919 void *argp2 = 0 ;
33920 int res2 = 0 ;
33921 PyObject * obj0 = 0 ;
33922 PyObject * obj1 = 0 ;
33923 char * kwnames[] = {
33924 (char *) "self",(char *) "item", NULL
33925 };
33926
33927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
33928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33929 if (!SWIG_IsOK(res1)) {
33930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33931 }
33932 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33933 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33934 if (!SWIG_IsOK(res2)) {
33935 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33936 }
33937 if (!argp2) {
33938 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33939 }
33940 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33941 {
33942 PyThreadState* __tstate = wxPyBeginAllowThreads();
33943 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
33944 wxPyEndAllowThreads(__tstate);
33945 if (PyErr_Occurred()) SWIG_fail;
33946 }
33947 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33948 return resultobj;
33949fail:
33950 return NULL;
33951}
33952
33953
33954SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33955 PyObject *resultobj = 0;
33956 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33957 wxTreeItemId *arg2 = 0 ;
33958 wxFont result;
33959 void *argp1 = 0 ;
33960 int res1 = 0 ;
33961 void *argp2 = 0 ;
33962 int res2 = 0 ;
33963 PyObject * obj0 = 0 ;
33964 PyObject * obj1 = 0 ;
33965 char * kwnames[] = {
33966 (char *) "self",(char *) "item", NULL
33967 };
33968
33969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
33970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33971 if (!SWIG_IsOK(res1)) {
33972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33973 }
33974 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33975 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33976 if (!SWIG_IsOK(res2)) {
33977 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33978 }
33979 if (!argp2) {
33980 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33981 }
33982 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33983 {
33984 PyThreadState* __tstate = wxPyBeginAllowThreads();
33985 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
33986 wxPyEndAllowThreads(__tstate);
33987 if (PyErr_Occurred()) SWIG_fail;
33988 }
33989 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
33990 return resultobj;
33991fail:
33992 return NULL;
33993}
33994
33995
33996SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33997 PyObject *resultobj = 0;
33998 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33999 wxTreeItemId *arg2 = 0 ;
34000 wxString *arg3 = 0 ;
34001 void *argp1 = 0 ;
34002 int res1 = 0 ;
34003 void *argp2 = 0 ;
34004 int res2 = 0 ;
34005 bool temp3 = false ;
34006 PyObject * obj0 = 0 ;
34007 PyObject * obj1 = 0 ;
34008 PyObject * obj2 = 0 ;
34009 char * kwnames[] = {
34010 (char *) "self",(char *) "item",(char *) "text", NULL
34011 };
34012
34013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34015 if (!SWIG_IsOK(res1)) {
34016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34017 }
34018 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34019 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34020 if (!SWIG_IsOK(res2)) {
34021 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34022 }
34023 if (!argp2) {
34024 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34025 }
34026 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34027 {
34028 arg3 = wxString_in_helper(obj2);
34029 if (arg3 == NULL) SWIG_fail;
34030 temp3 = true;
34031 }
34032 {
34033 PyThreadState* __tstate = wxPyBeginAllowThreads();
34034 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
34035 wxPyEndAllowThreads(__tstate);
34036 if (PyErr_Occurred()) SWIG_fail;
34037 }
34038 resultobj = SWIG_Py_Void();
34039 {
34040 if (temp3)
34041 delete arg3;
34042 }
34043 return resultobj;
34044fail:
34045 {
34046 if (temp3)
34047 delete arg3;
34048 }
34049 return NULL;
34050}
34051
34052
34053SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34054 PyObject *resultobj = 0;
34055 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34056 wxTreeItemId *arg2 = 0 ;
34057 int arg3 ;
34058 wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34059 void *argp1 = 0 ;
34060 int res1 = 0 ;
34061 void *argp2 = 0 ;
34062 int res2 = 0 ;
34063 int val3 ;
34064 int ecode3 = 0 ;
34065 int val4 ;
34066 int ecode4 = 0 ;
34067 PyObject * obj0 = 0 ;
34068 PyObject * obj1 = 0 ;
34069 PyObject * obj2 = 0 ;
34070 PyObject * obj3 = 0 ;
34071 char * kwnames[] = {
34072 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
34073 };
34074
34075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34077 if (!SWIG_IsOK(res1)) {
34078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34079 }
34080 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34081 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34082 if (!SWIG_IsOK(res2)) {
34083 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34084 }
34085 if (!argp2) {
34086 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34087 }
34088 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34089 ecode3 = SWIG_AsVal_int(obj2, &val3);
34090 if (!SWIG_IsOK(ecode3)) {
34091 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
34092 }
34093 arg3 = static_cast< int >(val3);
34094 if (obj3) {
34095 ecode4 = SWIG_AsVal_int(obj3, &val4);
34096 if (!SWIG_IsOK(ecode4)) {
34097 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "4"" of type '" "wxTreeItemIcon""'");
34098 }
34099 arg4 = static_cast< wxTreeItemIcon >(val4);
34100 }
34101 {
34102 PyThreadState* __tstate = wxPyBeginAllowThreads();
34103 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,arg4);
34104 wxPyEndAllowThreads(__tstate);
34105 if (PyErr_Occurred()) SWIG_fail;
34106 }
34107 resultobj = SWIG_Py_Void();
34108 return resultobj;
34109fail:
34110 return NULL;
34111}
34112
34113
34114SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34115 PyObject *resultobj = 0;
34116 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34117 wxTreeItemId *arg2 = 0 ;
34118 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
34119 void *argp1 = 0 ;
34120 int res1 = 0 ;
34121 void *argp2 = 0 ;
34122 int res2 = 0 ;
34123 int res3 = 0 ;
34124 PyObject * obj0 = 0 ;
34125 PyObject * obj1 = 0 ;
34126 PyObject * obj2 = 0 ;
34127 char * kwnames[] = {
34128 (char *) "self",(char *) "item",(char *) "data", NULL
34129 };
34130
34131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34132 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34133 if (!SWIG_IsOK(res1)) {
34134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34135 }
34136 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34137 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34138 if (!SWIG_IsOK(res2)) {
34139 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34140 }
34141 if (!argp2) {
34142 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34143 }
34144 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34145 res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
34146 if (!SWIG_IsOK(res3)) {
34147 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemData" "', expected argument " "3"" of type '" "wxPyTreeItemData *""'");
34148 }
34149 {
34150 PyThreadState* __tstate = wxPyBeginAllowThreads();
34151 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
34152 wxPyEndAllowThreads(__tstate);
34153 if (PyErr_Occurred()) SWIG_fail;
34154 }
34155 resultobj = SWIG_Py_Void();
34156 return resultobj;
34157fail:
34158 return NULL;
34159}
34160
34161
34162SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34163 PyObject *resultobj = 0;
34164 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34165 wxTreeItemId *arg2 = 0 ;
34166 PyObject *arg3 = (PyObject *) 0 ;
34167 void *argp1 = 0 ;
34168 int res1 = 0 ;
34169 void *argp2 = 0 ;
34170 int res2 = 0 ;
34171 PyObject * obj0 = 0 ;
34172 PyObject * obj1 = 0 ;
34173 PyObject * obj2 = 0 ;
34174 char * kwnames[] = {
34175 (char *) "self",(char *) "item",(char *) "obj", NULL
34176 };
34177
34178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34180 if (!SWIG_IsOK(res1)) {
34181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34182 }
34183 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34184 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34185 if (!SWIG_IsOK(res2)) {
34186 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34187 }
34188 if (!argp2) {
34189 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34190 }
34191 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34192 arg3 = obj2;
34193 {
34194 PyThreadState* __tstate = wxPyBeginAllowThreads();
34195 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
34196 wxPyEndAllowThreads(__tstate);
34197 if (PyErr_Occurred()) SWIG_fail;
34198 }
34199 resultobj = SWIG_Py_Void();
34200 return resultobj;
34201fail:
34202 return NULL;
34203}
34204
34205
34206SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34207 PyObject *resultobj = 0;
34208 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34209 wxTreeItemId *arg2 = 0 ;
34210 bool arg3 = (bool) true ;
34211 void *argp1 = 0 ;
34212 int res1 = 0 ;
34213 void *argp2 = 0 ;
34214 int res2 = 0 ;
34215 bool val3 ;
34216 int ecode3 = 0 ;
34217 PyObject * obj0 = 0 ;
34218 PyObject * obj1 = 0 ;
34219 PyObject * obj2 = 0 ;
34220 char * kwnames[] = {
34221 (char *) "self",(char *) "item",(char *) "has", NULL
34222 };
34223
34224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34226 if (!SWIG_IsOK(res1)) {
34227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34228 }
34229 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34230 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34231 if (!SWIG_IsOK(res2)) {
34232 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34233 }
34234 if (!argp2) {
34235 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34236 }
34237 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34238 if (obj2) {
34239 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34240 if (!SWIG_IsOK(ecode3)) {
34241 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "3"" of type '" "bool""'");
34242 }
34243 arg3 = static_cast< bool >(val3);
34244 }
34245 {
34246 PyThreadState* __tstate = wxPyBeginAllowThreads();
34247 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
34248 wxPyEndAllowThreads(__tstate);
34249 if (PyErr_Occurred()) SWIG_fail;
34250 }
34251 resultobj = SWIG_Py_Void();
34252 return resultobj;
34253fail:
34254 return NULL;
34255}
34256
34257
34258SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34259 PyObject *resultobj = 0;
34260 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34261 wxTreeItemId *arg2 = 0 ;
34262 bool arg3 = (bool) true ;
34263 void *argp1 = 0 ;
34264 int res1 = 0 ;
34265 void *argp2 = 0 ;
34266 int res2 = 0 ;
34267 bool val3 ;
34268 int ecode3 = 0 ;
34269 PyObject * obj0 = 0 ;
34270 PyObject * obj1 = 0 ;
34271 PyObject * obj2 = 0 ;
34272 char * kwnames[] = {
34273 (char *) "self",(char *) "item",(char *) "bold", NULL
34274 };
34275
34276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34278 if (!SWIG_IsOK(res1)) {
34279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34280 }
34281 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34282 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34283 if (!SWIG_IsOK(res2)) {
34284 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34285 }
34286 if (!argp2) {
34287 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34288 }
34289 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34290 if (obj2) {
34291 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34292 if (!SWIG_IsOK(ecode3)) {
34293 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "3"" of type '" "bool""'");
34294 }
34295 arg3 = static_cast< bool >(val3);
34296 }
34297 {
34298 PyThreadState* __tstate = wxPyBeginAllowThreads();
34299 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
34300 wxPyEndAllowThreads(__tstate);
34301 if (PyErr_Occurred()) SWIG_fail;
34302 }
34303 resultobj = SWIG_Py_Void();
34304 return resultobj;
34305fail:
34306 return NULL;
34307}
34308
34309
34310SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34311 PyObject *resultobj = 0;
34312 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34313 wxTreeItemId *arg2 = 0 ;
34314 bool arg3 = (bool) true ;
34315 void *argp1 = 0 ;
34316 int res1 = 0 ;
34317 void *argp2 = 0 ;
34318 int res2 = 0 ;
34319 bool val3 ;
34320 int ecode3 = 0 ;
34321 PyObject * obj0 = 0 ;
34322 PyObject * obj1 = 0 ;
34323 PyObject * obj2 = 0 ;
34324 char * kwnames[] = {
34325 (char *) "self",(char *) "item",(char *) "highlight", NULL
34326 };
34327
34328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34330 if (!SWIG_IsOK(res1)) {
34331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34332 }
34333 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34334 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34335 if (!SWIG_IsOK(res2)) {
34336 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34337 }
34338 if (!argp2) {
34339 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34340 }
34341 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34342 if (obj2) {
34343 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34344 if (!SWIG_IsOK(ecode3)) {
34345 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "3"" of type '" "bool""'");
34346 }
34347 arg3 = static_cast< bool >(val3);
34348 }
34349 {
34350 PyThreadState* __tstate = wxPyBeginAllowThreads();
34351 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
34352 wxPyEndAllowThreads(__tstate);
34353 if (PyErr_Occurred()) SWIG_fail;
34354 }
34355 resultobj = SWIG_Py_Void();
34356 return resultobj;
34357fail:
34358 return NULL;
34359}
34360
34361
34362SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34363 PyObject *resultobj = 0;
34364 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34365 wxTreeItemId *arg2 = 0 ;
34366 wxColour *arg3 = 0 ;
34367 void *argp1 = 0 ;
34368 int res1 = 0 ;
34369 void *argp2 = 0 ;
34370 int res2 = 0 ;
34371 wxColour temp3 ;
34372 PyObject * obj0 = 0 ;
34373 PyObject * obj1 = 0 ;
34374 PyObject * obj2 = 0 ;
34375 char * kwnames[] = {
34376 (char *) "self",(char *) "item",(char *) "col", NULL
34377 };
34378
34379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34381 if (!SWIG_IsOK(res1)) {
34382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34383 }
34384 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34385 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34386 if (!SWIG_IsOK(res2)) {
34387 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34388 }
34389 if (!argp2) {
34390 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34391 }
34392 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34393 {
34394 arg3 = &temp3;
34395 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34396 }
34397 {
34398 PyThreadState* __tstate = wxPyBeginAllowThreads();
34399 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
34400 wxPyEndAllowThreads(__tstate);
34401 if (PyErr_Occurred()) SWIG_fail;
34402 }
34403 resultobj = SWIG_Py_Void();
34404 return resultobj;
34405fail:
34406 return NULL;
34407}
34408
34409
34410SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34411 PyObject *resultobj = 0;
34412 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34413 wxTreeItemId *arg2 = 0 ;
34414 wxColour *arg3 = 0 ;
34415 void *argp1 = 0 ;
34416 int res1 = 0 ;
34417 void *argp2 = 0 ;
34418 int res2 = 0 ;
34419 wxColour temp3 ;
34420 PyObject * obj0 = 0 ;
34421 PyObject * obj1 = 0 ;
34422 PyObject * obj2 = 0 ;
34423 char * kwnames[] = {
34424 (char *) "self",(char *) "item",(char *) "col", NULL
34425 };
34426
34427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34429 if (!SWIG_IsOK(res1)) {
34430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34431 }
34432 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34433 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34434 if (!SWIG_IsOK(res2)) {
34435 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34436 }
34437 if (!argp2) {
34438 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34439 }
34440 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34441 {
34442 arg3 = &temp3;
34443 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34444 }
34445 {
34446 PyThreadState* __tstate = wxPyBeginAllowThreads();
34447 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
34448 wxPyEndAllowThreads(__tstate);
34449 if (PyErr_Occurred()) SWIG_fail;
34450 }
34451 resultobj = SWIG_Py_Void();
34452 return resultobj;
34453fail:
34454 return NULL;
34455}
34456
34457
34458SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34459 PyObject *resultobj = 0;
34460 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34461 wxTreeItemId *arg2 = 0 ;
34462 wxFont *arg3 = 0 ;
34463 void *argp1 = 0 ;
34464 int res1 = 0 ;
34465 void *argp2 = 0 ;
34466 int res2 = 0 ;
34467 void *argp3 = 0 ;
34468 int res3 = 0 ;
34469 PyObject * obj0 = 0 ;
34470 PyObject * obj1 = 0 ;
34471 PyObject * obj2 = 0 ;
34472 char * kwnames[] = {
34473 (char *) "self",(char *) "item",(char *) "font", NULL
34474 };
34475
34476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34477 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34478 if (!SWIG_IsOK(res1)) {
34479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34480 }
34481 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34482 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34483 if (!SWIG_IsOK(res2)) {
34484 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34485 }
34486 if (!argp2) {
34487 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34488 }
34489 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34490 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
34491 if (!SWIG_IsOK(res3)) {
34492 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
34493 }
34494 if (!argp3) {
34495 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
34496 }
34497 arg3 = reinterpret_cast< wxFont * >(argp3);
34498 {
34499 PyThreadState* __tstate = wxPyBeginAllowThreads();
34500 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
34501 wxPyEndAllowThreads(__tstate);
34502 if (PyErr_Occurred()) SWIG_fail;
34503 }
34504 resultobj = SWIG_Py_Void();
34505 return resultobj;
34506fail:
34507 return NULL;
34508}
34509
34510
34511SWIGINTERN PyObject *_wrap_TreeCtrl_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34512 PyObject *resultobj = 0;
34513 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34514 wxTreeItemId *arg2 = 0 ;
34515 bool result;
34516 void *argp1 = 0 ;
34517 int res1 = 0 ;
34518 void *argp2 = 0 ;
34519 int res2 = 0 ;
34520 PyObject * obj0 = 0 ;
34521 PyObject * obj1 = 0 ;
34522 char * kwnames[] = {
34523 (char *) "self",(char *) "item", NULL
34524 };
34525
34526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail;
34527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34528 if (!SWIG_IsOK(res1)) {
34529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34530 }
34531 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34532 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34533 if (!SWIG_IsOK(res2)) {
34534 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34535 }
34536 if (!argp2) {
34537 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34538 }
34539 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34540 {
34541 PyThreadState* __tstate = wxPyBeginAllowThreads();
34542 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
34543 wxPyEndAllowThreads(__tstate);
34544 if (PyErr_Occurred()) SWIG_fail;
34545 }
34546 {
34547 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34548 }
34549 return resultobj;
34550fail:
34551 return NULL;
34552}
34553
34554
34555SWIGINTERN PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34556 PyObject *resultobj = 0;
34557 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34558 wxTreeItemId *arg2 = 0 ;
34559 bool result;
34560 void *argp1 = 0 ;
34561 int res1 = 0 ;
34562 void *argp2 = 0 ;
34563 int res2 = 0 ;
34564 PyObject * obj0 = 0 ;
34565 PyObject * obj1 = 0 ;
34566 char * kwnames[] = {
34567 (char *) "self",(char *) "item", NULL
34568 };
34569
34570 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) SWIG_fail;
34571 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34572 if (!SWIG_IsOK(res1)) {
34573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34574 }
34575 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34576 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34577 if (!SWIG_IsOK(res2)) {
34578 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34579 }
34580 if (!argp2) {
34581 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34582 }
34583 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34584 {
34585 PyThreadState* __tstate = wxPyBeginAllowThreads();
34586 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
34587 wxPyEndAllowThreads(__tstate);
34588 if (PyErr_Occurred()) SWIG_fail;
34589 }
34590 {
34591 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34592 }
34593 return resultobj;
34594fail:
34595 return NULL;
34596}
34597
34598
34599SWIGINTERN PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34600 PyObject *resultobj = 0;
34601 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34602 wxTreeItemId *arg2 = 0 ;
34603 bool result;
34604 void *argp1 = 0 ;
34605 int res1 = 0 ;
34606 void *argp2 = 0 ;
34607 int res2 = 0 ;
34608 PyObject * obj0 = 0 ;
34609 PyObject * obj1 = 0 ;
34610 char * kwnames[] = {
34611 (char *) "self",(char *) "item", NULL
34612 };
34613
34614 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) 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_IsExpanded" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
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_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34623 }
34624 if (!argp2) {
34625 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34626 }
34627 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34628 {
34629 PyThreadState* __tstate = wxPyBeginAllowThreads();
34630 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
34631 wxPyEndAllowThreads(__tstate);
34632 if (PyErr_Occurred()) SWIG_fail;
34633 }
34634 {
34635 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34636 }
34637 return resultobj;
34638fail:
34639 return NULL;
34640}
34641
34642
34643SWIGINTERN PyObject *_wrap_TreeCtrl_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34644 PyObject *resultobj = 0;
34645 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34646 wxTreeItemId *arg2 = 0 ;
34647 bool result;
34648 void *argp1 = 0 ;
34649 int res1 = 0 ;
34650 void *argp2 = 0 ;
34651 int res2 = 0 ;
34652 PyObject * obj0 = 0 ;
34653 PyObject * obj1 = 0 ;
34654 char * kwnames[] = {
34655 (char *) "self",(char *) "item", NULL
34656 };
34657
34658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
34659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34660 if (!SWIG_IsOK(res1)) {
34661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsSelected" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34662 }
34663 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34664 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34665 if (!SWIG_IsOK(res2)) {
34666 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34667 }
34668 if (!argp2) {
34669 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34670 }
34671 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34672 {
34673 PyThreadState* __tstate = wxPyBeginAllowThreads();
34674 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
34675 wxPyEndAllowThreads(__tstate);
34676 if (PyErr_Occurred()) SWIG_fail;
34677 }
34678 {
34679 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34680 }
34681 return resultobj;
34682fail:
34683 return NULL;
34684}
34685
34686
34687SWIGINTERN PyObject *_wrap_TreeCtrl_IsBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34688 PyObject *resultobj = 0;
34689 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34690 wxTreeItemId *arg2 = 0 ;
34691 bool result;
34692 void *argp1 = 0 ;
34693 int res1 = 0 ;
34694 void *argp2 = 0 ;
34695 int res2 = 0 ;
34696 PyObject * obj0 = 0 ;
34697 PyObject * obj1 = 0 ;
34698 char * kwnames[] = {
34699 (char *) "self",(char *) "item", NULL
34700 };
34701
34702 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) SWIG_fail;
34703 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34704 if (!SWIG_IsOK(res1)) {
34705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34706 }
34707 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34708 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34709 if (!SWIG_IsOK(res2)) {
34710 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34711 }
34712 if (!argp2) {
34713 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34714 }
34715 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34716 {
34717 PyThreadState* __tstate = wxPyBeginAllowThreads();
34718 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
34719 wxPyEndAllowThreads(__tstate);
34720 if (PyErr_Occurred()) SWIG_fail;
34721 }
34722 {
34723 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34724 }
34725 return resultobj;
34726fail:
34727 return NULL;
34728}
34729
34730
34731SWIGINTERN PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34732 PyObject *resultobj = 0;
34733 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34734 wxTreeItemId *arg2 = 0 ;
34735 bool arg3 = (bool) true ;
34736 size_t result;
34737 void *argp1 = 0 ;
34738 int res1 = 0 ;
34739 void *argp2 = 0 ;
34740 int res2 = 0 ;
34741 bool val3 ;
34742 int ecode3 = 0 ;
34743 PyObject * obj0 = 0 ;
34744 PyObject * obj1 = 0 ;
34745 PyObject * obj2 = 0 ;
34746 char * kwnames[] = {
34747 (char *) "self",(char *) "item",(char *) "recursively", NULL
34748 };
34749
34750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34752 if (!SWIG_IsOK(res1)) {
34753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34754 }
34755 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34756 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34757 if (!SWIG_IsOK(res2)) {
34758 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34759 }
34760 if (!argp2) {
34761 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34762 }
34763 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34764 if (obj2) {
34765 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34766 if (!SWIG_IsOK(ecode3)) {
34767 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "3"" of type '" "bool""'");
34768 }
34769 arg3 = static_cast< bool >(val3);
34770 }
34771 {
34772 PyThreadState* __tstate = wxPyBeginAllowThreads();
34773 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
34774 wxPyEndAllowThreads(__tstate);
34775 if (PyErr_Occurred()) SWIG_fail;
34776 }
34777 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
34778 return resultobj;
34779fail:
34780 return NULL;
d14a1e28
RD
34781}
34782
34783
0085ce49
RD
34784SWIGINTERN PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34785 PyObject *resultobj = 0;
34786 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34787 wxTreeItemId result;
34788 void *argp1 = 0 ;
34789 int res1 = 0 ;
34790 PyObject *swig_obj[1] ;
34791
34792 if (!args) SWIG_fail;
34793 swig_obj[0] = args;
34794 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34795 if (!SWIG_IsOK(res1)) {
34796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetRootItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34797 }
34798 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34799 {
34800 PyThreadState* __tstate = wxPyBeginAllowThreads();
34801 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
34802 wxPyEndAllowThreads(__tstate);
34803 if (PyErr_Occurred()) SWIG_fail;
34804 }
34805 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
34806 return resultobj;
34807fail:
34808 return NULL;
d14a1e28
RD
34809}
34810
34811
0085ce49
RD
34812SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34813 PyObject *resultobj = 0;
34814 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34815 wxTreeItemId result;
34816 void *argp1 = 0 ;
34817 int res1 = 0 ;
34818 PyObject *swig_obj[1] ;
34819
34820 if (!args) SWIG_fail;
34821 swig_obj[0] = args;
34822 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34823 if (!SWIG_IsOK(res1)) {
34824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34825 }
34826 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34827 {
34828 PyThreadState* __tstate = wxPyBeginAllowThreads();
34829 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
34830 wxPyEndAllowThreads(__tstate);
34831 if (PyErr_Occurred()) SWIG_fail;
34832 }
34833 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
34834 return resultobj;
34835fail:
34836 return NULL;
d14a1e28
RD
34837}
34838
34839
0085ce49
RD
34840SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34841 PyObject *resultobj = 0;
34842 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34843 PyObject *result = 0 ;
34844 void *argp1 = 0 ;
34845 int res1 = 0 ;
34846 PyObject *swig_obj[1] ;
34847
34848 if (!args) SWIG_fail;
34849 swig_obj[0] = args;
34850 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34851 if (!SWIG_IsOK(res1)) {
34852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelections" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34853 }
34854 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34855 {
34856 PyThreadState* __tstate = wxPyBeginAllowThreads();
34857 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
34858 wxPyEndAllowThreads(__tstate);
34859 if (PyErr_Occurred()) SWIG_fail;
34860 }
34861 resultobj = result;
34862 return resultobj;
34863fail:
34864 return NULL;
34865}
34866
34867
34868SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34869 PyObject *resultobj = 0;
34870 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34871 wxTreeItemId *arg2 = 0 ;
34872 wxTreeItemId result;
34873 void *argp1 = 0 ;
34874 int res1 = 0 ;
34875 void *argp2 = 0 ;
34876 int res2 = 0 ;
34877 PyObject * obj0 = 0 ;
34878 PyObject * obj1 = 0 ;
34879 char * kwnames[] = {
34880 (char *) "self",(char *) "item", NULL
34881 };
34882
34883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) SWIG_fail;
34884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34885 if (!SWIG_IsOK(res1)) {
34886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34887 }
34888 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34889 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34890 if (!SWIG_IsOK(res2)) {
34891 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34892 }
34893 if (!argp2) {
34894 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34895 }
34896 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34897 {
34898 PyThreadState* __tstate = wxPyBeginAllowThreads();
34899 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
34900 wxPyEndAllowThreads(__tstate);
34901 if (PyErr_Occurred()) SWIG_fail;
34902 }
34903 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
34904 return resultobj;
34905fail:
34906 return NULL;
34907}
34908
34909
34910SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34911 PyObject *resultobj = 0;
34912 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34913 wxTreeItemId *arg2 = 0 ;
34914 PyObject *result = 0 ;
34915 void *argp1 = 0 ;
34916 int res1 = 0 ;
34917 void *argp2 = 0 ;
34918 int res2 = 0 ;
34919 PyObject * obj0 = 0 ;
34920 PyObject * obj1 = 0 ;
34921 char * kwnames[] = {
34922 (char *) "self",(char *) "item", NULL
34923 };
34924
34925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) SWIG_fail;
34926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34927 if (!SWIG_IsOK(res1)) {
34928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34929 }
34930 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34931 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34932 if (!SWIG_IsOK(res2)) {
34933 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34934 }
34935 if (!argp2) {
34936 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34937 }
34938 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34939 {
34940 PyThreadState* __tstate = wxPyBeginAllowThreads();
34941 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
34942 wxPyEndAllowThreads(__tstate);
34943 if (PyErr_Occurred()) SWIG_fail;
34944 }
34945 resultobj = result;
34946 return resultobj;
34947fail:
34948 return NULL;
34949}
34950
34951
34952SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34953 PyObject *resultobj = 0;
34954 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34955 wxTreeItemId *arg2 = 0 ;
34956 void *arg3 = (void *) 0 ;
34957 PyObject *result = 0 ;
34958 void *argp1 = 0 ;
34959 int res1 = 0 ;
34960 void *argp2 = 0 ;
34961 int res2 = 0 ;
34962 int res3 ;
34963 PyObject * obj0 = 0 ;
34964 PyObject * obj1 = 0 ;
34965 PyObject * obj2 = 0 ;
34966 char * kwnames[] = {
34967 (char *) "self",(char *) "item",(char *) "cookie", NULL
34968 };
34969
34970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34972 if (!SWIG_IsOK(res1)) {
34973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34974 }
34975 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34976 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34977 if (!SWIG_IsOK(res2)) {
34978 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34979 }
34980 if (!argp2) {
34981 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34982 }
34983 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34984 res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
34985 if (!SWIG_IsOK(res3)) {
34986 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "3"" of type '" "void *""'");
34987 }
34988 {
34989 PyThreadState* __tstate = wxPyBeginAllowThreads();
34990 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
34991 wxPyEndAllowThreads(__tstate);
34992 if (PyErr_Occurred()) SWIG_fail;
34993 }
34994 resultobj = result;
34995 return resultobj;
34996fail:
34997 return NULL;
34998}
34999
35000
35001SWIGINTERN PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35002 PyObject *resultobj = 0;
35003 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35004 wxTreeItemId *arg2 = 0 ;
35005 wxTreeItemId result;
35006 void *argp1 = 0 ;
35007 int res1 = 0 ;
35008 void *argp2 = 0 ;
35009 int res2 = 0 ;
35010 PyObject * obj0 = 0 ;
35011 PyObject * obj1 = 0 ;
35012 char * kwnames[] = {
35013 (char *) "self",(char *) "item", NULL
35014 };
35015
35016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) SWIG_fail;
35017 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35018 if (!SWIG_IsOK(res1)) {
35019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35020 }
35021 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35022 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35023 if (!SWIG_IsOK(res2)) {
35024 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35025 }
35026 if (!argp2) {
35027 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35028 }
35029 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35030 {
35031 PyThreadState* __tstate = wxPyBeginAllowThreads();
35032 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
35033 wxPyEndAllowThreads(__tstate);
35034 if (PyErr_Occurred()) SWIG_fail;
35035 }
35036 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35037 return resultobj;
35038fail:
35039 return NULL;
35040}
35041
35042
35043SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35044 PyObject *resultobj = 0;
35045 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35046 wxTreeItemId *arg2 = 0 ;
35047 wxTreeItemId result;
35048 void *argp1 = 0 ;
35049 int res1 = 0 ;
35050 void *argp2 = 0 ;
35051 int res2 = 0 ;
35052 PyObject * obj0 = 0 ;
35053 PyObject * obj1 = 0 ;
35054 char * kwnames[] = {
35055 (char *) "self",(char *) "item", NULL
35056 };
35057
35058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35059 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35060 if (!SWIG_IsOK(res1)) {
35061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35062 }
35063 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35064 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35065 if (!SWIG_IsOK(res2)) {
35066 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35067 }
35068 if (!argp2) {
35069 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35070 }
35071 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35072 {
35073 PyThreadState* __tstate = wxPyBeginAllowThreads();
35074 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
35075 wxPyEndAllowThreads(__tstate);
35076 if (PyErr_Occurred()) SWIG_fail;
35077 }
35078 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35079 return resultobj;
35080fail:
35081 return NULL;
35082}
35083
35084
35085SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35086 PyObject *resultobj = 0;
35087 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35088 wxTreeItemId *arg2 = 0 ;
35089 wxTreeItemId result;
35090 void *argp1 = 0 ;
35091 int res1 = 0 ;
35092 void *argp2 = 0 ;
35093 int res2 = 0 ;
35094 PyObject * obj0 = 0 ;
35095 PyObject * obj1 = 0 ;
35096 char * kwnames[] = {
35097 (char *) "self",(char *) "item", NULL
35098 };
35099
35100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35102 if (!SWIG_IsOK(res1)) {
35103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35104 }
35105 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35106 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35107 if (!SWIG_IsOK(res2)) {
35108 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35109 }
35110 if (!argp2) {
35111 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35112 }
35113 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35114 {
35115 PyThreadState* __tstate = wxPyBeginAllowThreads();
35116 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
35117 wxPyEndAllowThreads(__tstate);
35118 if (PyErr_Occurred()) SWIG_fail;
35119 }
35120 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35121 return resultobj;
35122fail:
35123 return NULL;
d14a1e28
RD
35124}
35125
35126
0085ce49
RD
35127SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35128 PyObject *resultobj = 0;
35129 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35130 wxTreeItemId result;
35131 void *argp1 = 0 ;
35132 int res1 = 0 ;
35133 PyObject *swig_obj[1] ;
35134
35135 if (!args) SWIG_fail;
35136 swig_obj[0] = args;
35137 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35138 if (!SWIG_IsOK(res1)) {
35139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstVisibleItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35140 }
35141 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35142 {
35143 PyThreadState* __tstate = wxPyBeginAllowThreads();
35144 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
35145 wxPyEndAllowThreads(__tstate);
35146 if (PyErr_Occurred()) SWIG_fail;
35147 }
35148 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35149 return resultobj;
35150fail:
35151 return NULL;
35152}
35153
35154
35155SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35156 PyObject *resultobj = 0;
35157 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35158 wxTreeItemId *arg2 = 0 ;
35159 wxTreeItemId result;
35160 void *argp1 = 0 ;
35161 int res1 = 0 ;
35162 void *argp2 = 0 ;
35163 int res2 = 0 ;
35164 PyObject * obj0 = 0 ;
35165 PyObject * obj1 = 0 ;
35166 char * kwnames[] = {
35167 (char *) "self",(char *) "item", NULL
35168 };
35169
35170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35172 if (!SWIG_IsOK(res1)) {
35173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35174 }
35175 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35176 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35177 if (!SWIG_IsOK(res2)) {
35178 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35179 }
35180 if (!argp2) {
35181 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35182 }
35183 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35184 {
35185 PyThreadState* __tstate = wxPyBeginAllowThreads();
35186 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
35187 wxPyEndAllowThreads(__tstate);
35188 if (PyErr_Occurred()) SWIG_fail;
35189 }
35190 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35191 return resultobj;
35192fail:
35193 return NULL;
35194}
35195
35196
35197SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35198 PyObject *resultobj = 0;
35199 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35200 wxTreeItemId *arg2 = 0 ;
35201 wxTreeItemId result;
35202 void *argp1 = 0 ;
35203 int res1 = 0 ;
35204 void *argp2 = 0 ;
35205 int res2 = 0 ;
35206 PyObject * obj0 = 0 ;
35207 PyObject * obj1 = 0 ;
35208 char * kwnames[] = {
35209 (char *) "self",(char *) "item", NULL
35210 };
35211
35212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35214 if (!SWIG_IsOK(res1)) {
35215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35216 }
35217 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35218 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35219 if (!SWIG_IsOK(res2)) {
35220 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35221 }
35222 if (!argp2) {
35223 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35224 }
35225 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35226 {
35227 PyThreadState* __tstate = wxPyBeginAllowThreads();
35228 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
35229 wxPyEndAllowThreads(__tstate);
35230 if (PyErr_Occurred()) SWIG_fail;
35231 }
35232 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35233 return resultobj;
35234fail:
35235 return NULL;
35236}
35237
35238
35239SWIGINTERN PyObject *_wrap_TreeCtrl_AddRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35240 PyObject *resultobj = 0;
35241 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35242 wxString *arg2 = 0 ;
35243 int arg3 = (int) -1 ;
35244 int arg4 = (int) -1 ;
35245 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
35246 wxTreeItemId result;
35247 void *argp1 = 0 ;
35248 int res1 = 0 ;
35249 bool temp2 = false ;
35250 int val3 ;
35251 int ecode3 = 0 ;
35252 int val4 ;
35253 int ecode4 = 0 ;
35254 int res5 = 0 ;
35255 PyObject * obj0 = 0 ;
35256 PyObject * obj1 = 0 ;
35257 PyObject * obj2 = 0 ;
35258 PyObject * obj3 = 0 ;
35259 PyObject * obj4 = 0 ;
35260 char * kwnames[] = {
35261 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35262 };
35263
35264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35266 if (!SWIG_IsOK(res1)) {
35267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AddRoot" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35268 }
35269 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35270 {
35271 arg2 = wxString_in_helper(obj1);
35272 if (arg2 == NULL) SWIG_fail;
35273 temp2 = true;
35274 }
35275 if (obj2) {
35276 ecode3 = SWIG_AsVal_int(obj2, &val3);
35277 if (!SWIG_IsOK(ecode3)) {
35278 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_AddRoot" "', expected argument " "3"" of type '" "int""'");
35279 }
35280 arg3 = static_cast< int >(val3);
35281 }
35282 if (obj3) {
35283 ecode4 = SWIG_AsVal_int(obj3, &val4);
35284 if (!SWIG_IsOK(ecode4)) {
35285 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AddRoot" "', expected argument " "4"" of type '" "int""'");
35286 }
35287 arg4 = static_cast< int >(val4);
35288 }
35289 if (obj4) {
35290 res5 = SWIG_ConvertPtr(obj4, SWIG_as_voidptrptr(&arg5), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35291 if (!SWIG_IsOK(res5)) {
35292 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "TreeCtrl_AddRoot" "', expected argument " "5"" of type '" "wxPyTreeItemData *""'");
3a04f143 35293 }
0085ce49
RD
35294 }
35295 {
35296 PyThreadState* __tstate = wxPyBeginAllowThreads();
35297 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
35298 wxPyEndAllowThreads(__tstate);
35299 if (PyErr_Occurred()) SWIG_fail;
35300 }
35301 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35302 {
35303 if (temp2)
35304 delete arg2;
35305 }
35306 return resultobj;
35307fail:
35308 {
35309 if (temp2)
35310 delete arg2;
35311 }
35312 return NULL;
35313}
35314
35315
35316SWIGINTERN PyObject *_wrap_TreeCtrl_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35317 PyObject *resultobj = 0;
35318 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35319 wxTreeItemId *arg2 = 0 ;
35320 wxString *arg3 = 0 ;
35321 int arg4 = (int) -1 ;
35322 int arg5 = (int) -1 ;
35323 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
35324 wxTreeItemId result;
35325 void *argp1 = 0 ;
35326 int res1 = 0 ;
35327 void *argp2 = 0 ;
35328 int res2 = 0 ;
35329 bool temp3 = false ;
35330 int val4 ;
35331 int ecode4 = 0 ;
35332 int val5 ;
35333 int ecode5 = 0 ;
35334 int res6 = 0 ;
35335 PyObject * obj0 = 0 ;
35336 PyObject * obj1 = 0 ;
35337 PyObject * obj2 = 0 ;
35338 PyObject * obj3 = 0 ;
35339 PyObject * obj4 = 0 ;
35340 PyObject * obj5 = 0 ;
35341 char * kwnames[] = {
35342 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35343 };
35344
35345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
35346 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35347 if (!SWIG_IsOK(res1)) {
35348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_PrependItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35349 }
35350 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35351 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35352 if (!SWIG_IsOK(res2)) {
35353 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35354 }
35355 if (!argp2) {
35356 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35357 }
35358 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35359 {
35360 arg3 = wxString_in_helper(obj2);
35361 if (arg3 == NULL) SWIG_fail;
35362 temp3 = true;
35363 }
35364 if (obj3) {
35365 ecode4 = SWIG_AsVal_int(obj3, &val4);
35366 if (!SWIG_IsOK(ecode4)) {
35367 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_PrependItem" "', expected argument " "4"" of type '" "int""'");
35368 }
35369 arg4 = static_cast< int >(val4);
35370 }
35371 if (obj4) {
35372 ecode5 = SWIG_AsVal_int(obj4, &val5);
35373 if (!SWIG_IsOK(ecode5)) {
35374 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_PrependItem" "', expected argument " "5"" of type '" "int""'");
35375 }
35376 arg5 = static_cast< int >(val5);
35377 }
35378 if (obj5) {
35379 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35380 if (!SWIG_IsOK(res6)) {
35381 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_PrependItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
3a04f143 35382 }
0085ce49
RD
35383 }
35384 {
35385 PyThreadState* __tstate = wxPyBeginAllowThreads();
35386 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
35387 wxPyEndAllowThreads(__tstate);
35388 if (PyErr_Occurred()) SWIG_fail;
35389 }
35390 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35391 {
35392 if (temp3)
35393 delete arg3;
35394 }
35395 return resultobj;
35396fail:
35397 {
35398 if (temp3)
35399 delete arg3;
35400 }
35401 return NULL;
35402}
35403
35404
35405SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35406 PyObject *resultobj = 0;
35407 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35408 wxTreeItemId *arg2 = 0 ;
35409 wxTreeItemId *arg3 = 0 ;
35410 wxString *arg4 = 0 ;
35411 int arg5 = (int) -1 ;
35412 int arg6 = (int) -1 ;
35413 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
35414 wxTreeItemId result;
35415 void *argp1 = 0 ;
35416 int res1 = 0 ;
35417 void *argp2 = 0 ;
35418 int res2 = 0 ;
35419 void *argp3 = 0 ;
35420 int res3 = 0 ;
35421 bool temp4 = false ;
35422 int val5 ;
35423 int ecode5 = 0 ;
35424 int val6 ;
35425 int ecode6 = 0 ;
35426 int res7 = 0 ;
35427 PyObject * obj0 = 0 ;
35428 PyObject * obj1 = 0 ;
35429 PyObject * obj2 = 0 ;
35430 PyObject * obj3 = 0 ;
35431 PyObject * obj4 = 0 ;
35432 PyObject * obj5 = 0 ;
35433 PyObject * obj6 = 0 ;
35434 char * kwnames[] = {
35435 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35436 };
35437
35438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35440 if (!SWIG_IsOK(res1)) {
35441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35442 }
35443 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35444 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35445 if (!SWIG_IsOK(res2)) {
35446 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35447 }
35448 if (!argp2) {
35449 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35450 }
35451 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35452 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35453 if (!SWIG_IsOK(res3)) {
35454 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
35455 }
35456 if (!argp3) {
35457 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
35458 }
35459 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
35460 {
35461 arg4 = wxString_in_helper(obj3);
35462 if (arg4 == NULL) SWIG_fail;
35463 temp4 = true;
35464 }
35465 if (obj4) {
35466 ecode5 = SWIG_AsVal_int(obj4, &val5);
35467 if (!SWIG_IsOK(ecode5)) {
35468 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItem" "', expected argument " "5"" of type '" "int""'");
35469 }
35470 arg5 = static_cast< int >(val5);
35471 }
35472 if (obj5) {
35473 ecode6 = SWIG_AsVal_int(obj5, &val6);
35474 if (!SWIG_IsOK(ecode6)) {
35475 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItem" "', expected argument " "6"" of type '" "int""'");
35476 }
35477 arg6 = static_cast< int >(val6);
35478 }
35479 if (obj6) {
35480 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35481 if (!SWIG_IsOK(res7)) {
35482 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItem" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
093d3ff1 35483 }
0085ce49
RD
35484 }
35485 {
35486 PyThreadState* __tstate = wxPyBeginAllowThreads();
35487 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
35488 wxPyEndAllowThreads(__tstate);
35489 if (PyErr_Occurred()) SWIG_fail;
35490 }
35491 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35492 {
35493 if (temp4)
35494 delete arg4;
35495 }
35496 return resultobj;
35497fail:
35498 {
35499 if (temp4)
35500 delete arg4;
35501 }
35502 return NULL;
35503}
35504
35505
35506SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35507 PyObject *resultobj = 0;
35508 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35509 wxTreeItemId *arg2 = 0 ;
35510 size_t arg3 ;
35511 wxString *arg4 = 0 ;
35512 int arg5 = (int) -1 ;
35513 int arg6 = (int) -1 ;
35514 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
35515 wxTreeItemId result;
35516 void *argp1 = 0 ;
35517 int res1 = 0 ;
35518 void *argp2 = 0 ;
35519 int res2 = 0 ;
35520 size_t val3 ;
35521 int ecode3 = 0 ;
35522 bool temp4 = false ;
35523 int val5 ;
35524 int ecode5 = 0 ;
35525 int val6 ;
35526 int ecode6 = 0 ;
35527 int res7 = 0 ;
35528 PyObject * obj0 = 0 ;
35529 PyObject * obj1 = 0 ;
35530 PyObject * obj2 = 0 ;
35531 PyObject * obj3 = 0 ;
35532 PyObject * obj4 = 0 ;
35533 PyObject * obj5 = 0 ;
35534 PyObject * obj6 = 0 ;
35535 char * kwnames[] = {
35536 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35537 };
35538
35539 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35540 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35541 if (!SWIG_IsOK(res1)) {
35542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35543 }
35544 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35545 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35546 if (!SWIG_IsOK(res2)) {
35547 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35548 }
35549 if (!argp2) {
35550 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35551 }
35552 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35553 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
35554 if (!SWIG_IsOK(ecode3)) {
35555 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "3"" of type '" "size_t""'");
35556 }
35557 arg3 = static_cast< size_t >(val3);
35558 {
35559 arg4 = wxString_in_helper(obj3);
35560 if (arg4 == NULL) SWIG_fail;
35561 temp4 = true;
35562 }
35563 if (obj4) {
35564 ecode5 = SWIG_AsVal_int(obj4, &val5);
35565 if (!SWIG_IsOK(ecode5)) {
35566 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "5"" of type '" "int""'");
35567 }
35568 arg5 = static_cast< int >(val5);
35569 }
35570 if (obj5) {
35571 ecode6 = SWIG_AsVal_int(obj5, &val6);
35572 if (!SWIG_IsOK(ecode6)) {
35573 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "6"" of type '" "int""'");
35574 }
35575 arg6 = static_cast< int >(val6);
35576 }
35577 if (obj6) {
35578 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35579 if (!SWIG_IsOK(res7)) {
35580 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
3a04f143 35581 }
0085ce49
RD
35582 }
35583 {
35584 PyThreadState* __tstate = wxPyBeginAllowThreads();
35585 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
35586 wxPyEndAllowThreads(__tstate);
35587 if (PyErr_Occurred()) SWIG_fail;
35588 }
35589 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35590 {
35591 if (temp4)
35592 delete arg4;
35593 }
35594 return resultobj;
35595fail:
35596 {
35597 if (temp4)
35598 delete arg4;
35599 }
35600 return NULL;
35601}
35602
35603
35604SWIGINTERN PyObject *_wrap_TreeCtrl_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35605 PyObject *resultobj = 0;
35606 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35607 wxTreeItemId *arg2 = 0 ;
35608 wxString *arg3 = 0 ;
35609 int arg4 = (int) -1 ;
35610 int arg5 = (int) -1 ;
35611 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
35612 wxTreeItemId result;
35613 void *argp1 = 0 ;
35614 int res1 = 0 ;
35615 void *argp2 = 0 ;
35616 int res2 = 0 ;
35617 bool temp3 = false ;
35618 int val4 ;
35619 int ecode4 = 0 ;
35620 int val5 ;
35621 int ecode5 = 0 ;
35622 int res6 = 0 ;
35623 PyObject * obj0 = 0 ;
35624 PyObject * obj1 = 0 ;
35625 PyObject * obj2 = 0 ;
35626 PyObject * obj3 = 0 ;
35627 PyObject * obj4 = 0 ;
35628 PyObject * obj5 = 0 ;
35629 char * kwnames[] = {
35630 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35631 };
35632
35633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
35634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35635 if (!SWIG_IsOK(res1)) {
35636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AppendItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35637 }
35638 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35639 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35640 if (!SWIG_IsOK(res2)) {
35641 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35642 }
35643 if (!argp2) {
35644 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35645 }
35646 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35647 {
35648 arg3 = wxString_in_helper(obj2);
35649 if (arg3 == NULL) SWIG_fail;
35650 temp3 = true;
35651 }
35652 if (obj3) {
35653 ecode4 = SWIG_AsVal_int(obj3, &val4);
35654 if (!SWIG_IsOK(ecode4)) {
35655 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AppendItem" "', expected argument " "4"" of type '" "int""'");
35656 }
35657 arg4 = static_cast< int >(val4);
35658 }
35659 if (obj4) {
35660 ecode5 = SWIG_AsVal_int(obj4, &val5);
35661 if (!SWIG_IsOK(ecode5)) {
35662 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_AppendItem" "', expected argument " "5"" of type '" "int""'");
35663 }
35664 arg5 = static_cast< int >(val5);
35665 }
35666 if (obj5) {
35667 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35668 if (!SWIG_IsOK(res6)) {
35669 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_AppendItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
3a04f143 35670 }
0085ce49
RD
35671 }
35672 {
35673 PyThreadState* __tstate = wxPyBeginAllowThreads();
35674 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
35675 wxPyEndAllowThreads(__tstate);
35676 if (PyErr_Occurred()) SWIG_fail;
35677 }
35678 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35679 {
35680 if (temp3)
35681 delete arg3;
35682 }
35683 return resultobj;
35684fail:
35685 {
35686 if (temp3)
35687 delete arg3;
35688 }
35689 return NULL;
35690}
35691
35692
35693SWIGINTERN PyObject *_wrap_TreeCtrl_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35694 PyObject *resultobj = 0;
35695 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35696 wxTreeItemId *arg2 = 0 ;
35697 void *argp1 = 0 ;
35698 int res1 = 0 ;
35699 void *argp2 = 0 ;
35700 int res2 = 0 ;
35701 PyObject * obj0 = 0 ;
35702 PyObject * obj1 = 0 ;
35703 char * kwnames[] = {
35704 (char *) "self",(char *) "item", NULL
35705 };
35706
35707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) SWIG_fail;
35708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35709 if (!SWIG_IsOK(res1)) {
35710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Delete" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35711 }
35712 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35713 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35714 if (!SWIG_IsOK(res2)) {
35715 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35716 }
35717 if (!argp2) {
35718 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35719 }
35720 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35721 {
35722 PyThreadState* __tstate = wxPyBeginAllowThreads();
35723 (arg1)->Delete((wxTreeItemId const &)*arg2);
35724 wxPyEndAllowThreads(__tstate);
35725 if (PyErr_Occurred()) SWIG_fail;
35726 }
35727 resultobj = SWIG_Py_Void();
35728 return resultobj;
35729fail:
35730 return NULL;
35731}
35732
35733
35734SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35735 PyObject *resultobj = 0;
35736 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35737 wxTreeItemId *arg2 = 0 ;
35738 void *argp1 = 0 ;
35739 int res1 = 0 ;
35740 void *argp2 = 0 ;
35741 int res2 = 0 ;
35742 PyObject * obj0 = 0 ;
35743 PyObject * obj1 = 0 ;
35744 char * kwnames[] = {
35745 (char *) "self",(char *) "item", NULL
35746 };
35747
35748 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) SWIG_fail;
35749 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35750 if (!SWIG_IsOK(res1)) {
35751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35752 }
35753 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35754 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35755 if (!SWIG_IsOK(res2)) {
35756 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35757 }
35758 if (!argp2) {
35759 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35760 }
35761 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35762 {
35763 PyThreadState* __tstate = wxPyBeginAllowThreads();
35764 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
35765 wxPyEndAllowThreads(__tstate);
35766 if (PyErr_Occurred()) SWIG_fail;
35767 }
35768 resultobj = SWIG_Py_Void();
35769 return resultobj;
35770fail:
35771 return NULL;
3a04f143
RD
35772}
35773
35774
0085ce49
RD
35775SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35776 PyObject *resultobj = 0;
35777 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35778 void *argp1 = 0 ;
35779 int res1 = 0 ;
35780 PyObject *swig_obj[1] ;
35781
35782 if (!args) SWIG_fail;
35783 swig_obj[0] = args;
35784 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35785 if (!SWIG_IsOK(res1)) {
35786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35787 }
35788 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35789 {
35790 PyThreadState* __tstate = wxPyBeginAllowThreads();
35791 (arg1)->DeleteAllItems();
35792 wxPyEndAllowThreads(__tstate);
35793 if (PyErr_Occurred()) SWIG_fail;
35794 }
35795 resultobj = SWIG_Py_Void();
35796 return resultobj;
35797fail:
35798 return NULL;
35799}
35800
35801
35802SWIGINTERN PyObject *_wrap_TreeCtrl_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35803 PyObject *resultobj = 0;
35804 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35805 wxTreeItemId *arg2 = 0 ;
35806 void *argp1 = 0 ;
35807 int res1 = 0 ;
35808 void *argp2 = 0 ;
35809 int res2 = 0 ;
35810 PyObject * obj0 = 0 ;
35811 PyObject * obj1 = 0 ;
35812 char * kwnames[] = {
35813 (char *) "self",(char *) "item", NULL
35814 };
35815
35816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) SWIG_fail;
35817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35818 if (!SWIG_IsOK(res1)) {
35819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Expand" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35820 }
35821 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35822 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35823 if (!SWIG_IsOK(res2)) {
35824 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35825 }
35826 if (!argp2) {
35827 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35828 }
35829 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35830 {
35831 PyThreadState* __tstate = wxPyBeginAllowThreads();
35832 (arg1)->Expand((wxTreeItemId const &)*arg2);
35833 wxPyEndAllowThreads(__tstate);
35834 if (PyErr_Occurred()) SWIG_fail;
35835 }
35836 resultobj = SWIG_Py_Void();
35837 return resultobj;
35838fail:
35839 return NULL;
35840}
35841
35842
35843SWIGINTERN PyObject *_wrap_TreeCtrl_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35844 PyObject *resultobj = 0;
35845 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35846 wxTreeItemId *arg2 = 0 ;
35847 void *argp1 = 0 ;
35848 int res1 = 0 ;
35849 void *argp2 = 0 ;
35850 int res2 = 0 ;
35851 PyObject * obj0 = 0 ;
35852 PyObject * obj1 = 0 ;
35853 char * kwnames[] = {
35854 (char *) "self",(char *) "item", NULL
35855 };
35856
35857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
35858 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35859 if (!SWIG_IsOK(res1)) {
35860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Collapse" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35861 }
35862 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35863 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35864 if (!SWIG_IsOK(res2)) {
35865 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35866 }
35867 if (!argp2) {
35868 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35869 }
35870 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35871 {
35872 PyThreadState* __tstate = wxPyBeginAllowThreads();
35873 (arg1)->Collapse((wxTreeItemId const &)*arg2);
35874 wxPyEndAllowThreads(__tstate);
35875 if (PyErr_Occurred()) SWIG_fail;
35876 }
35877 resultobj = SWIG_Py_Void();
35878 return resultobj;
35879fail:
35880 return NULL;
35881}
35882
35883
35884SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35885 PyObject *resultobj = 0;
35886 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35887 wxTreeItemId *arg2 = 0 ;
35888 void *argp1 = 0 ;
35889 int res1 = 0 ;
35890 void *argp2 = 0 ;
35891 int res2 = 0 ;
35892 PyObject * obj0 = 0 ;
35893 PyObject * obj1 = 0 ;
35894 char * kwnames[] = {
35895 (char *) "self",(char *) "item", NULL
35896 };
35897
35898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) SWIG_fail;
35899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35900 if (!SWIG_IsOK(res1)) {
35901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35902 }
35903 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35904 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35905 if (!SWIG_IsOK(res2)) {
35906 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35907 }
35908 if (!argp2) {
35909 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35910 }
35911 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35912 {
35913 PyThreadState* __tstate = wxPyBeginAllowThreads();
35914 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
35915 wxPyEndAllowThreads(__tstate);
35916 if (PyErr_Occurred()) SWIG_fail;
35917 }
35918 resultobj = SWIG_Py_Void();
35919 return resultobj;
35920fail:
35921 return NULL;
35922}
35923
35924
35925SWIGINTERN PyObject *_wrap_TreeCtrl_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35926 PyObject *resultobj = 0;
35927 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35928 wxTreeItemId *arg2 = 0 ;
35929 void *argp1 = 0 ;
35930 int res1 = 0 ;
35931 void *argp2 = 0 ;
35932 int res2 = 0 ;
35933 PyObject * obj0 = 0 ;
35934 PyObject * obj1 = 0 ;
35935 char * kwnames[] = {
35936 (char *) "self",(char *) "item", NULL
35937 };
35938
35939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) SWIG_fail;
35940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35941 if (!SWIG_IsOK(res1)) {
35942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Toggle" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35943 }
35944 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35945 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35946 if (!SWIG_IsOK(res2)) {
35947 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35948 }
35949 if (!argp2) {
35950 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35951 }
35952 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35953 {
35954 PyThreadState* __tstate = wxPyBeginAllowThreads();
35955 (arg1)->Toggle((wxTreeItemId const &)*arg2);
35956 wxPyEndAllowThreads(__tstate);
35957 if (PyErr_Occurred()) SWIG_fail;
35958 }
35959 resultobj = SWIG_Py_Void();
35960 return resultobj;
35961fail:
35962 return NULL;
d14a1e28
RD
35963}
35964
35965
0085ce49
RD
35966SWIGINTERN PyObject *_wrap_TreeCtrl_Unselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35967 PyObject *resultobj = 0;
35968 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35969 void *argp1 = 0 ;
35970 int res1 = 0 ;
35971 PyObject *swig_obj[1] ;
35972
35973 if (!args) SWIG_fail;
35974 swig_obj[0] = args;
35975 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35976 if (!SWIG_IsOK(res1)) {
35977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Unselect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35978 }
35979 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35980 {
35981 PyThreadState* __tstate = wxPyBeginAllowThreads();
35982 (arg1)->Unselect();
35983 wxPyEndAllowThreads(__tstate);
35984 if (PyErr_Occurred()) SWIG_fail;
35985 }
35986 resultobj = SWIG_Py_Void();
35987 return resultobj;
35988fail:
35989 return NULL;
35990}
35991
35992
35993SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35994 PyObject *resultobj = 0;
35995 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35996 wxTreeItemId *arg2 = 0 ;
35997 void *argp1 = 0 ;
35998 int res1 = 0 ;
35999 void *argp2 = 0 ;
36000 int res2 = 0 ;
36001 PyObject * obj0 = 0 ;
36002 PyObject * obj1 = 0 ;
36003 char * kwnames[] = {
36004 (char *) "self",(char *) "item", NULL
36005 };
36006
36007 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) SWIG_fail;
36008 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36009 if (!SWIG_IsOK(res1)) {
36010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36011 }
36012 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36013 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36014 if (!SWIG_IsOK(res2)) {
36015 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36016 }
36017 if (!argp2) {
36018 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36019 }
36020 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36021 {
36022 PyThreadState* __tstate = wxPyBeginAllowThreads();
36023 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
36024 wxPyEndAllowThreads(__tstate);
36025 if (PyErr_Occurred()) SWIG_fail;
36026 }
36027 resultobj = SWIG_Py_Void();
36028 return resultobj;
36029fail:
36030 return NULL;
d14a1e28
RD
36031}
36032
36033
0085ce49
RD
36034SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36035 PyObject *resultobj = 0;
36036 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36037 void *argp1 = 0 ;
36038 int res1 = 0 ;
36039 PyObject *swig_obj[1] ;
36040
36041 if (!args) SWIG_fail;
36042 swig_obj[0] = args;
36043 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36044 if (!SWIG_IsOK(res1)) {
36045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36046 }
36047 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36048 {
36049 PyThreadState* __tstate = wxPyBeginAllowThreads();
36050 (arg1)->UnselectAll();
36051 wxPyEndAllowThreads(__tstate);
36052 if (PyErr_Occurred()) SWIG_fail;
36053 }
36054 resultobj = SWIG_Py_Void();
36055 return resultobj;
36056fail:
36057 return NULL;
36058}
36059
36060
36061SWIGINTERN PyObject *_wrap_TreeCtrl_SelectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36062 PyObject *resultobj = 0;
36063 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36064 wxTreeItemId *arg2 = 0 ;
36065 bool arg3 = (bool) true ;
36066 void *argp1 = 0 ;
36067 int res1 = 0 ;
36068 void *argp2 = 0 ;
36069 int res2 = 0 ;
36070 bool val3 ;
36071 int ecode3 = 0 ;
36072 PyObject * obj0 = 0 ;
36073 PyObject * obj1 = 0 ;
36074 PyObject * obj2 = 0 ;
36075 char * kwnames[] = {
36076 (char *) "self",(char *) "item",(char *) "select", NULL
36077 };
36078
36079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36080 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36081 if (!SWIG_IsOK(res1)) {
36082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SelectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36083 }
36084 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36085 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36086 if (!SWIG_IsOK(res2)) {
36087 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36088 }
36089 if (!argp2) {
36090 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36091 }
36092 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36093 if (obj2) {
36094 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36095 if (!SWIG_IsOK(ecode3)) {
36096 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SelectItem" "', expected argument " "3"" of type '" "bool""'");
36097 }
36098 arg3 = static_cast< bool >(val3);
36099 }
36100 {
36101 PyThreadState* __tstate = wxPyBeginAllowThreads();
36102 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
36103 wxPyEndAllowThreads(__tstate);
36104 if (PyErr_Occurred()) SWIG_fail;
36105 }
36106 resultobj = SWIG_Py_Void();
36107 return resultobj;
36108fail:
36109 return NULL;
36110}
36111
36112
36113SWIGINTERN PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36114 PyObject *resultobj = 0;
36115 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36116 wxTreeItemId *arg2 = 0 ;
36117 void *argp1 = 0 ;
36118 int res1 = 0 ;
36119 void *argp2 = 0 ;
36120 int res2 = 0 ;
36121 PyObject * obj0 = 0 ;
36122 PyObject * obj1 = 0 ;
36123 char * kwnames[] = {
36124 (char *) "self",(char *) "item", NULL
36125 };
36126
36127 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) SWIG_fail;
36128 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36129 if (!SWIG_IsOK(res1)) {
36130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36131 }
36132 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36133 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36134 if (!SWIG_IsOK(res2)) {
36135 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36136 }
36137 if (!argp2) {
36138 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36139 }
36140 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36141 {
36142 PyThreadState* __tstate = wxPyBeginAllowThreads();
36143 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
36144 wxPyEndAllowThreads(__tstate);
36145 if (PyErr_Occurred()) SWIG_fail;
36146 }
36147 resultobj = SWIG_Py_Void();
36148 return resultobj;
36149fail:
36150 return NULL;
36151}
36152
36153
36154SWIGINTERN PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36155 PyObject *resultobj = 0;
36156 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36157 wxTreeItemId *arg2 = 0 ;
36158 void *argp1 = 0 ;
36159 int res1 = 0 ;
36160 void *argp2 = 0 ;
36161 int res2 = 0 ;
36162 PyObject * obj0 = 0 ;
36163 PyObject * obj1 = 0 ;
36164 char * kwnames[] = {
36165 (char *) "self",(char *) "item", NULL
36166 };
36167
36168 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
36169 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36170 if (!SWIG_IsOK(res1)) {
36171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36172 }
36173 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36174 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36175 if (!SWIG_IsOK(res2)) {
36176 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36177 }
36178 if (!argp2) {
36179 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36180 }
36181 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36182 {
36183 PyThreadState* __tstate = wxPyBeginAllowThreads();
36184 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
36185 wxPyEndAllowThreads(__tstate);
36186 if (PyErr_Occurred()) SWIG_fail;
36187 }
36188 resultobj = SWIG_Py_Void();
36189 return resultobj;
36190fail:
36191 return NULL;
36192}
36193
36194
36195SWIGINTERN PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36196 PyObject *resultobj = 0;
36197 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36198 wxTreeItemId *arg2 = 0 ;
36199 void *argp1 = 0 ;
36200 int res1 = 0 ;
36201 void *argp2 = 0 ;
36202 int res2 = 0 ;
36203 PyObject * obj0 = 0 ;
36204 PyObject * obj1 = 0 ;
36205 char * kwnames[] = {
36206 (char *) "self",(char *) "item", NULL
36207 };
36208
36209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) SWIG_fail;
36210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36211 if (!SWIG_IsOK(res1)) {
36212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36213 }
36214 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36215 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36216 if (!SWIG_IsOK(res2)) {
36217 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36218 }
36219 if (!argp2) {
36220 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36221 }
36222 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36223 {
36224 PyThreadState* __tstate = wxPyBeginAllowThreads();
36225 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
36226 wxPyEndAllowThreads(__tstate);
36227 if (PyErr_Occurred()) SWIG_fail;
36228 }
36229 resultobj = SWIG_Py_Void();
36230 return resultobj;
36231fail:
36232 return NULL;
36233}
36234
36235
36236SWIGINTERN PyObject *_wrap_TreeCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36237 PyObject *resultobj = 0;
36238 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36239 wxTreeItemId *arg2 = 0 ;
36240 void *argp1 = 0 ;
36241 int res1 = 0 ;
36242 void *argp2 = 0 ;
36243 int res2 = 0 ;
36244 PyObject * obj0 = 0 ;
36245 PyObject * obj1 = 0 ;
36246 char * kwnames[] = {
36247 (char *) "self",(char *) "item", NULL
36248 };
36249
36250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
36251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36252 if (!SWIG_IsOK(res1)) {
36253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36254 }
36255 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36256 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36257 if (!SWIG_IsOK(res2)) {
36258 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36259 }
36260 if (!argp2) {
36261 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36262 }
36263 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36264 {
36265 PyThreadState* __tstate = wxPyBeginAllowThreads();
36266 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
36267 wxPyEndAllowThreads(__tstate);
36268 if (PyErr_Occurred()) SWIG_fail;
36269 }
36270 resultobj = SWIG_Py_Void();
36271 return resultobj;
36272fail:
36273 return NULL;
d14a1e28
RD
36274}
36275
36276
0085ce49
RD
36277SWIGINTERN PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36278 PyObject *resultobj = 0;
36279 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36280 wxTextCtrl *result = 0 ;
36281 void *argp1 = 0 ;
36282 int res1 = 0 ;
36283 PyObject *swig_obj[1] ;
36284
36285 if (!args) SWIG_fail;
36286 swig_obj[0] = args;
36287 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36288 if (!SWIG_IsOK(res1)) {
36289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36290 }
36291 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36292 {
36293 PyThreadState* __tstate = wxPyBeginAllowThreads();
36294 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
36295 wxPyEndAllowThreads(__tstate);
36296 if (PyErr_Occurred()) SWIG_fail;
36297 }
36298 {
36299 resultobj = wxPyMake_wxObject(result, 0);
36300 }
36301 return resultobj;
36302fail:
36303 return NULL;
36304}
36305
36306
36307SWIGINTERN PyObject *_wrap_TreeCtrl_SortChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36308 PyObject *resultobj = 0;
36309 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36310 wxTreeItemId *arg2 = 0 ;
36311 void *argp1 = 0 ;
36312 int res1 = 0 ;
36313 void *argp2 = 0 ;
36314 int res2 = 0 ;
36315 PyObject * obj0 = 0 ;
36316 PyObject * obj1 = 0 ;
36317 char * kwnames[] = {
36318 (char *) "self",(char *) "item", NULL
36319 };
36320
36321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36323 if (!SWIG_IsOK(res1)) {
36324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SortChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36325 }
36326 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36327 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36328 if (!SWIG_IsOK(res2)) {
36329 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36330 }
36331 if (!argp2) {
36332 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36333 }
36334 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36335 {
36336 PyThreadState* __tstate = wxPyBeginAllowThreads();
36337 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
36338 wxPyEndAllowThreads(__tstate);
36339 if (PyErr_Occurred()) SWIG_fail;
36340 }
36341 resultobj = SWIG_Py_Void();
36342 return resultobj;
36343fail:
36344 return NULL;
36345}
36346
36347
36348SWIGINTERN PyObject *_wrap_TreeCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36349 PyObject *resultobj = 0;
36350 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36351 wxPoint *arg2 = 0 ;
36352 int *arg3 = 0 ;
36353 wxTreeItemId result;
36354 void *argp1 = 0 ;
36355 int res1 = 0 ;
36356 wxPoint temp2 ;
36357 int temp3 ;
36358 int res3 = SWIG_TMPOBJ ;
36359 PyObject * obj0 = 0 ;
36360 PyObject * obj1 = 0 ;
36361 char * kwnames[] = {
36362 (char *) "self",(char *) "point", NULL
36363 };
36364
36365 arg3 = &temp3;
36366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
36367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36368 if (!SWIG_IsOK(res1)) {
36369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36370 }
36371 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36372 {
36373 arg2 = &temp2;
36374 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36375 }
36376 {
36377 PyThreadState* __tstate = wxPyBeginAllowThreads();
36378 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
36379 wxPyEndAllowThreads(__tstate);
36380 if (PyErr_Occurred()) SWIG_fail;
36381 }
36382 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36383 if (SWIG_IsTmpObj(res3)) {
36384 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
36385 } else {
36386 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
36387 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
36388 }
36389 return resultobj;
36390fail:
36391 return NULL;
36392}
36393
36394
36395SWIGINTERN PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36396 PyObject *resultobj = 0;
36397 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36398 wxTreeItemId *arg2 = 0 ;
36399 bool arg3 = (bool) false ;
36400 PyObject *result = 0 ;
36401 void *argp1 = 0 ;
36402 int res1 = 0 ;
36403 void *argp2 = 0 ;
36404 int res2 = 0 ;
36405 bool val3 ;
36406 int ecode3 = 0 ;
36407 PyObject * obj0 = 0 ;
36408 PyObject * obj1 = 0 ;
36409 PyObject * obj2 = 0 ;
36410 char * kwnames[] = {
36411 (char *) "self",(char *) "item",(char *) "textOnly", NULL
36412 };
36413
36414 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36415 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36416 if (!SWIG_IsOK(res1)) {
36417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36418 }
36419 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36420 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36421 if (!SWIG_IsOK(res2)) {
36422 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36423 }
36424 if (!argp2) {
36425 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36426 }
36427 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36428 if (obj2) {
36429 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36430 if (!SWIG_IsOK(ecode3)) {
36431 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "3"" of type '" "bool""'");
36432 }
36433 arg3 = static_cast< bool >(val3);
36434 }
36435 {
36436 PyThreadState* __tstate = wxPyBeginAllowThreads();
36437 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
36438 wxPyEndAllowThreads(__tstate);
36439 if (PyErr_Occurred()) SWIG_fail;
36440 }
36441 resultobj = result;
36442 return resultobj;
36443fail:
36444 return NULL;
36445}
36446
36447
36448SWIGINTERN PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36449 PyObject *resultobj = 0;
36450 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
36451 SwigValueWrapper<wxVisualAttributes > result;
36452 int val1 ;
36453 int ecode1 = 0 ;
36454 PyObject * obj0 = 0 ;
36455 char * kwnames[] = {
36456 (char *) "variant", NULL
36457 };
36458
36459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
36460 if (obj0) {
36461 ecode1 = SWIG_AsVal_int(obj0, &val1);
36462 if (!SWIG_IsOK(ecode1)) {
36463 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TreeCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
36464 }
36465 arg1 = static_cast< wxWindowVariant >(val1);
36466 }
36467 {
36468 if (!wxPyCheckForApp()) SWIG_fail;
36469 PyThreadState* __tstate = wxPyBeginAllowThreads();
36470 result = wxPyTreeCtrl::GetClassDefaultAttributes(arg1);
36471 wxPyEndAllowThreads(__tstate);
36472 if (PyErr_Occurred()) SWIG_fail;
36473 }
36474 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
36475 return resultobj;
36476fail:
36477 return NULL;
d14a1e28
RD
36478}
36479
36480
0085ce49
RD
36481SWIGINTERN PyObject *TreeCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36482 PyObject *obj;
36483 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
36484 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeCtrl, SWIG_NewClientData(obj));
36485 return SWIG_Py_Void();
d14a1e28
RD
36486}
36487
0085ce49
RD
36488SWIGINTERN PyObject *TreeCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36489 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
36490}
36491
0085ce49
RD
36492SWIGINTERN int DirDialogDefaultFolderStr_set(PyObject *) {
36493 SWIG_Error(SWIG_AttributeError,"Variable DirDialogDefaultFolderStr is read-only.");
36494 return 1;
d14a1e28
RD
36495}
36496
36497
0085ce49
RD
36498SWIGINTERN PyObject *DirDialogDefaultFolderStr_get(void) {
36499 PyObject *pyobj = 0;
36500
36501 {
36502#if wxUSE_UNICODE
36503 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
36504#else
36505 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
36506#endif
36507 }
36508 return pyobj;
36509}
36510
36511
36512SWIGINTERN PyObject *_wrap_new_GenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36513 PyObject *resultobj = 0;
36514 wxWindow *arg1 = (wxWindow *) 0 ;
36515 int arg2 = (int) (int)-1 ;
36516 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
36517 wxString *arg3 = (wxString *) &arg3_defvalue ;
36518 wxPoint const &arg4_defvalue = wxDefaultPosition ;
36519 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
36520 wxSize const &arg5_defvalue = wxDefaultSize ;
36521 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
36522 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
36523 wxString const &arg7_defvalue = wxPyEmptyString ;
36524 wxString *arg7 = (wxString *) &arg7_defvalue ;
36525 int arg8 = (int) 0 ;
36526 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
36527 wxString *arg9 = (wxString *) &arg9_defvalue ;
36528 wxGenericDirCtrl *result = 0 ;
36529 void *argp1 = 0 ;
36530 int res1 = 0 ;
36531 int val2 ;
36532 int ecode2 = 0 ;
36533 bool temp3 = false ;
36534 wxPoint temp4 ;
36535 wxSize temp5 ;
36536 long val6 ;
36537 int ecode6 = 0 ;
36538 bool temp7 = false ;
36539 int val8 ;
36540 int ecode8 = 0 ;
36541 bool temp9 = false ;
36542 PyObject * obj0 = 0 ;
36543 PyObject * obj1 = 0 ;
36544 PyObject * obj2 = 0 ;
36545 PyObject * obj3 = 0 ;
36546 PyObject * obj4 = 0 ;
36547 PyObject * obj5 = 0 ;
36548 PyObject * obj6 = 0 ;
36549 PyObject * obj7 = 0 ;
36550 PyObject * obj8 = 0 ;
36551 char * kwnames[] = {
36552 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
36553 };
36554
36555 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
36556 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36557 if (!SWIG_IsOK(res1)) {
36558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GenericDirCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
36559 }
36560 arg1 = reinterpret_cast< wxWindow * >(argp1);
36561 if (obj1) {
36562 ecode2 = SWIG_AsVal_int(obj1, &val2);
36563 if (!SWIG_IsOK(ecode2)) {
36564 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GenericDirCtrl" "', expected argument " "2"" of type '" "int""'");
36565 }
36566 arg2 = static_cast< int >(val2);
36567 }
36568 if (obj2) {
d14a1e28 36569 {
0085ce49
RD
36570 arg3 = wxString_in_helper(obj2);
36571 if (arg3 == NULL) SWIG_fail;
36572 temp3 = true;
d14a1e28 36573 }
0085ce49
RD
36574 }
36575 if (obj3) {
4f89f6a3 36576 {
0085ce49
RD
36577 arg4 = &temp4;
36578 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 36579 }
0085ce49
RD
36580 }
36581 if (obj4) {
093d3ff1 36582 {
0085ce49
RD
36583 arg5 = &temp5;
36584 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 36585 }
0085ce49
RD
36586 }
36587 if (obj5) {
36588 ecode6 = SWIG_AsVal_long(obj5, &val6);
36589 if (!SWIG_IsOK(ecode6)) {
36590 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GenericDirCtrl" "', expected argument " "6"" of type '" "long""'");
36591 }
36592 arg6 = static_cast< long >(val6);
36593 }
36594 if (obj6) {
093d3ff1 36595 {
0085ce49
RD
36596 arg7 = wxString_in_helper(obj6);
36597 if (arg7 == NULL) SWIG_fail;
36598 temp7 = true;
093d3ff1 36599 }
0085ce49
RD
36600 }
36601 if (obj7) {
36602 ecode8 = SWIG_AsVal_int(obj7, &val8);
36603 if (!SWIG_IsOK(ecode8)) {
36604 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GenericDirCtrl" "', expected argument " "8"" of type '" "int""'");
36605 }
36606 arg8 = static_cast< int >(val8);
36607 }
36608 if (obj8) {
d14a1e28 36609 {
0085ce49
RD
36610 arg9 = wxString_in_helper(obj8);
36611 if (arg9 == NULL) SWIG_fail;
36612 temp9 = true;
d14a1e28 36613 }
0085ce49
RD
36614 }
36615 {
36616 if (!wxPyCheckForApp()) SWIG_fail;
36617 PyThreadState* __tstate = wxPyBeginAllowThreads();
36618 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
36619 wxPyEndAllowThreads(__tstate);
36620 if (PyErr_Occurred()) SWIG_fail;
36621 }
36622 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_NEW | 0 );
36623 {
36624 if (temp3)
36625 delete arg3;
36626 }
36627 {
36628 if (temp7)
36629 delete arg7;
36630 }
36631 {
36632 if (temp9)
36633 delete arg9;
36634 }
36635 return resultobj;
36636fail:
36637 {
36638 if (temp3)
36639 delete arg3;
36640 }
36641 {
36642 if (temp7)
36643 delete arg7;
36644 }
36645 {
36646 if (temp9)
36647 delete arg9;
36648 }
36649 return NULL;
d14a1e28
RD
36650}
36651
36652
0085ce49
RD
36653SWIGINTERN PyObject *_wrap_new_PreGenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36654 PyObject *resultobj = 0;
36655 wxGenericDirCtrl *result = 0 ;
36656
36657 if (!SWIG_Python_UnpackTuple(args,"new_PreGenericDirCtrl",0,0,0)) SWIG_fail;
36658 {
36659 if (!wxPyCheckForApp()) SWIG_fail;
36660 PyThreadState* __tstate = wxPyBeginAllowThreads();
36661 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
36662 wxPyEndAllowThreads(__tstate);
36663 if (PyErr_Occurred()) SWIG_fail;
36664 }
36665 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_OWN | 0 );
36666 return resultobj;
36667fail:
36668 return NULL;
36669}
36670
36671
36672SWIGINTERN PyObject *_wrap_GenericDirCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36673 PyObject *resultobj = 0;
36674 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
36675 wxWindow *arg2 = (wxWindow *) 0 ;
36676 int arg3 = (int) (int)-1 ;
36677 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
36678 wxString *arg4 = (wxString *) &arg4_defvalue ;
36679 wxPoint const &arg5_defvalue = wxDefaultPosition ;
36680 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
36681 wxSize const &arg6_defvalue = wxDefaultSize ;
36682 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
36683 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
36684 wxString const &arg8_defvalue = wxPyEmptyString ;
36685 wxString *arg8 = (wxString *) &arg8_defvalue ;
36686 int arg9 = (int) 0 ;
36687 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
36688 wxString *arg10 = (wxString *) &arg10_defvalue ;
36689 bool result;
36690 void *argp1 = 0 ;
36691 int res1 = 0 ;
36692 void *argp2 = 0 ;
36693 int res2 = 0 ;
36694 int val3 ;
36695 int ecode3 = 0 ;
36696 bool temp4 = false ;
36697 wxPoint temp5 ;
36698 wxSize temp6 ;
36699 long val7 ;
36700 int ecode7 = 0 ;
36701 bool temp8 = false ;
36702 int val9 ;
36703 int ecode9 = 0 ;
36704 bool temp10 = false ;
36705 PyObject * obj0 = 0 ;
36706 PyObject * obj1 = 0 ;
36707 PyObject * obj2 = 0 ;
36708 PyObject * obj3 = 0 ;
36709 PyObject * obj4 = 0 ;
36710 PyObject * obj5 = 0 ;
36711 PyObject * obj6 = 0 ;
36712 PyObject * obj7 = 0 ;
36713 PyObject * obj8 = 0 ;
36714 PyObject * obj9 = 0 ;
36715 char * kwnames[] = {
36716 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
36717 };
36718
36719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
36720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
36721 if (!SWIG_IsOK(res1)) {
36722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_Create" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
36723 }
36724 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
36725 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
36726 if (!SWIG_IsOK(res2)) {
36727 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
36728 }
36729 arg2 = reinterpret_cast< wxWindow * >(argp2);
36730 if (obj2) {
36731 ecode3 = SWIG_AsVal_int(obj2, &val3);
36732 if (!SWIG_IsOK(ecode3)) {
36733 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GenericDirCtrl_Create" "', expected argument " "3"" of type '" "int""'");
36734 }
36735 arg3 = static_cast< int >(val3);
36736 }
36737 if (obj3) {
093d3ff1 36738 {
0085ce49
RD
36739 arg4 = wxString_in_helper(obj3);
36740 if (arg4 == NULL) SWIG_fail;
36741 temp4 = true;
093d3ff1 36742 }
0085ce49
RD
36743 }
36744 if (obj4) {
093d3ff1 36745 {
0085ce49
RD
36746 arg5 = &temp5;
36747 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 36748 }
0085ce49
RD
36749 }
36750 if (obj5) {
d14a1e28 36751 {
0085ce49
RD
36752 arg6 = &temp6;
36753 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d14a1e28 36754 }
0085ce49
RD
36755 }
36756 if (obj6) {
36757 ecode7 = SWIG_AsVal_long(obj6, &val7);
36758 if (!SWIG_IsOK(ecode7)) {
36759 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GenericDirCtrl_Create" "', expected argument " "7"" of type '" "long""'");
36760 }
36761 arg7 = static_cast< long >(val7);
36762 }
36763 if (obj7) {
093d3ff1 36764 {
0085ce49
RD
36765 arg8 = wxString_in_helper(obj7);
36766 if (arg8 == NULL) SWIG_fail;
36767 temp8 = true;
093d3ff1 36768 }
0085ce49
RD
36769 }
36770 if (obj8) {
36771 ecode9 = SWIG_AsVal_int(obj8, &val9);
36772 if (!SWIG_IsOK(ecode9)) {
36773 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GenericDirCtrl_Create" "', expected argument " "9"" of type '" "int""'");
36774 }
36775 arg9 = static_cast< int >(val9);
36776 }
36777 if (obj9) {
093d3ff1 36778 {
0085ce49
RD
36779 arg10 = wxString_in_helper(obj9);
36780 if (arg10 == NULL) SWIG_fail;
36781 temp10 = true;
093d3ff1 36782 }
0085ce49
RD
36783 }
36784 {
36785 PyThreadState* __tstate = wxPyBeginAllowThreads();
36786 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
36787 wxPyEndAllowThreads(__tstate);
36788 if (PyErr_Occurred()) SWIG_fail;
36789 }
36790 {
36791 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36792 }
36793 {
36794 if (temp4)
36795 delete arg4;
36796 }
36797 {
36798 if (temp8)
36799 delete arg8;
36800 }
36801 {
36802 if (temp10)
36803 delete arg10;
36804 }
36805 return resultobj;
36806fail:
36807 {
36808 if (temp4)
36809 delete arg4;
36810 }
36811 {
36812 if (temp8)
36813 delete arg8;
36814 }
36815 {
36816 if (temp10)
36817 delete arg10;
36818 }
36819 return NULL;
36820}
36821
36822
36823SWIGINTERN PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36824 PyObject *resultobj = 0;
36825 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
36826 wxString *arg2 = 0 ;
36827 bool result;
36828 void *argp1 = 0 ;
36829 int res1 = 0 ;
36830 bool temp2 = false ;
36831 PyObject * obj0 = 0 ;
36832 PyObject * obj1 = 0 ;
36833 char * kwnames[] = {
36834 (char *) "self",(char *) "path", NULL
36835 };
36836
36837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) SWIG_fail;
36838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
36839 if (!SWIG_IsOK(res1)) {
36840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ExpandPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
36841 }
36842 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
36843 {
36844 arg2 = wxString_in_helper(obj1);
36845 if (arg2 == NULL) SWIG_fail;
36846 temp2 = true;
36847 }
36848 {
36849 PyThreadState* __tstate = wxPyBeginAllowThreads();
36850 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
36851 wxPyEndAllowThreads(__tstate);
36852 if (PyErr_Occurred()) SWIG_fail;
36853 }
36854 {
36855 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36856 }
36857 {
36858 if (temp2)
36859 delete arg2;
36860 }
36861 return resultobj;
36862fail:
36863 {
36864 if (temp2)
36865 delete arg2;
36866 }
36867 return NULL;
d14a1e28
RD
36868}
36869
36870
0085ce49
RD
36871SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36872 PyObject *resultobj = 0;
36873 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
36874 wxString result;
36875 void *argp1 = 0 ;
36876 int res1 = 0 ;
36877 PyObject *swig_obj[1] ;
36878
36879 if (!args) SWIG_fail;
36880 swig_obj[0] = args;
36881 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
36882 if (!SWIG_IsOK(res1)) {
36883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
36884 }
36885 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
36886 {
36887 PyThreadState* __tstate = wxPyBeginAllowThreads();
36888 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
36889 wxPyEndAllowThreads(__tstate);
36890 if (PyErr_Occurred()) SWIG_fail;
36891 }
36892 {
36893#if wxUSE_UNICODE
36894 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36895#else
36896 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36897#endif
36898 }
36899 return resultobj;
36900fail:
36901 return NULL;
36902}
36903
36904
36905SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36906 PyObject *resultobj = 0;
36907 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
36908 wxString *arg2 = 0 ;
36909 void *argp1 = 0 ;
36910 int res1 = 0 ;
36911 bool temp2 = false ;
36912 PyObject * obj0 = 0 ;
36913 PyObject * obj1 = 0 ;
36914 char * kwnames[] = {
36915 (char *) "self",(char *) "path", NULL
36916 };
36917
36918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) SWIG_fail;
36919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
36920 if (!SWIG_IsOK(res1)) {
36921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
36922 }
36923 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
36924 {
36925 arg2 = wxString_in_helper(obj1);
36926 if (arg2 == NULL) SWIG_fail;
36927 temp2 = true;
36928 }
36929 {
36930 PyThreadState* __tstate = wxPyBeginAllowThreads();
36931 (arg1)->SetDefaultPath((wxString const &)*arg2);
36932 wxPyEndAllowThreads(__tstate);
36933 if (PyErr_Occurred()) SWIG_fail;
36934 }
36935 resultobj = SWIG_Py_Void();
36936 {
36937 if (temp2)
36938 delete arg2;
36939 }
36940 return resultobj;
36941fail:
36942 {
36943 if (temp2)
36944 delete arg2;
36945 }
36946 return NULL;
d14a1e28
RD
36947}
36948
36949
0085ce49
RD
36950SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36951 PyObject *resultobj = 0;
36952 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
36953 wxString result;
36954 void *argp1 = 0 ;
36955 int res1 = 0 ;
36956 PyObject *swig_obj[1] ;
36957
36958 if (!args) SWIG_fail;
36959 swig_obj[0] = args;
36960 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
36961 if (!SWIG_IsOK(res1)) {
36962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
36963 }
36964 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
36965 {
36966 PyThreadState* __tstate = wxPyBeginAllowThreads();
36967 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
36968 wxPyEndAllowThreads(__tstate);
36969 if (PyErr_Occurred()) SWIG_fail;
36970 }
36971 {
36972#if wxUSE_UNICODE
36973 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36974#else
36975 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36976#endif
36977 }
36978 return resultobj;
36979fail:
36980 return NULL;
d14a1e28
RD
36981}
36982
36983
0085ce49
RD
36984SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36985 PyObject *resultobj = 0;
36986 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
36987 wxString result;
36988 void *argp1 = 0 ;
36989 int res1 = 0 ;
36990 PyObject *swig_obj[1] ;
36991
36992 if (!args) SWIG_fail;
36993 swig_obj[0] = args;
36994 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
36995 if (!SWIG_IsOK(res1)) {
36996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
36997 }
36998 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
36999 {
37000 PyThreadState* __tstate = wxPyBeginAllowThreads();
37001 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
37002 wxPyEndAllowThreads(__tstate);
37003 if (PyErr_Occurred()) SWIG_fail;
37004 }
37005 {
37006#if wxUSE_UNICODE
37007 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37008#else
37009 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37010#endif
37011 }
37012 return resultobj;
37013fail:
37014 return NULL;
37015}
37016
37017
37018SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37019 PyObject *resultobj = 0;
37020 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37021 wxString *arg2 = 0 ;
37022 void *argp1 = 0 ;
37023 int res1 = 0 ;
37024 bool temp2 = false ;
37025 PyObject * obj0 = 0 ;
37026 PyObject * obj1 = 0 ;
37027 char * kwnames[] = {
37028 (char *) "self",(char *) "path", NULL
37029 };
37030
37031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
37032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37033 if (!SWIG_IsOK(res1)) {
37034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37035 }
37036 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37037 {
37038 arg2 = wxString_in_helper(obj1);
37039 if (arg2 == NULL) SWIG_fail;
37040 temp2 = true;
37041 }
37042 {
37043 PyThreadState* __tstate = wxPyBeginAllowThreads();
37044 (arg1)->SetPath((wxString const &)*arg2);
37045 wxPyEndAllowThreads(__tstate);
37046 if (PyErr_Occurred()) SWIG_fail;
37047 }
37048 resultobj = SWIG_Py_Void();
37049 {
37050 if (temp2)
37051 delete arg2;
37052 }
37053 return resultobj;
37054fail:
37055 {
37056 if (temp2)
37057 delete arg2;
37058 }
37059 return NULL;
37060}
37061
37062
37063SWIGINTERN PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37064 PyObject *resultobj = 0;
37065 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37066 bool arg2 ;
37067 void *argp1 = 0 ;
37068 int res1 = 0 ;
37069 bool val2 ;
37070 int ecode2 = 0 ;
37071 PyObject * obj0 = 0 ;
37072 PyObject * obj1 = 0 ;
37073 char * kwnames[] = {
37074 (char *) "self",(char *) "show", NULL
37075 };
37076
37077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) SWIG_fail;
37078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37079 if (!SWIG_IsOK(res1)) {
37080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37081 }
37082 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37083 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37084 if (!SWIG_IsOK(ecode2)) {
37085 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "2"" of type '" "bool""'");
37086 }
37087 arg2 = static_cast< bool >(val2);
37088 {
37089 PyThreadState* __tstate = wxPyBeginAllowThreads();
37090 (arg1)->ShowHidden(arg2);
37091 wxPyEndAllowThreads(__tstate);
37092 if (PyErr_Occurred()) SWIG_fail;
37093 }
37094 resultobj = SWIG_Py_Void();
37095 return resultobj;
37096fail:
37097 return NULL;
d14a1e28
RD
37098}
37099
37100
0085ce49
RD
37101SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37102 PyObject *resultobj = 0;
37103 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37104 bool result;
37105 void *argp1 = 0 ;
37106 int res1 = 0 ;
37107 PyObject *swig_obj[1] ;
37108
37109 if (!args) SWIG_fail;
37110 swig_obj[0] = args;
37111 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37112 if (!SWIG_IsOK(res1)) {
37113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37114 }
37115 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37116 {
37117 PyThreadState* __tstate = wxPyBeginAllowThreads();
37118 result = (bool)(arg1)->GetShowHidden();
37119 wxPyEndAllowThreads(__tstate);
37120 if (PyErr_Occurred()) SWIG_fail;
37121 }
37122 {
37123 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37124 }
37125 return resultobj;
37126fail:
37127 return NULL;
d14a1e28
RD
37128}
37129
37130
0085ce49
RD
37131SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37132 PyObject *resultobj = 0;
37133 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37134 wxString result;
37135 void *argp1 = 0 ;
37136 int res1 = 0 ;
37137 PyObject *swig_obj[1] ;
37138
37139 if (!args) SWIG_fail;
37140 swig_obj[0] = args;
37141 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37142 if (!SWIG_IsOK(res1)) {
37143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37144 }
37145 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37146 {
37147 PyThreadState* __tstate = wxPyBeginAllowThreads();
37148 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
37149 wxPyEndAllowThreads(__tstate);
37150 if (PyErr_Occurred()) SWIG_fail;
37151 }
37152 {
37153#if wxUSE_UNICODE
37154 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37155#else
37156 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37157#endif
37158 }
37159 return resultobj;
37160fail:
37161 return NULL;
37162}
37163
37164
37165SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37166 PyObject *resultobj = 0;
37167 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37168 wxString *arg2 = 0 ;
37169 void *argp1 = 0 ;
37170 int res1 = 0 ;
37171 bool temp2 = false ;
37172 PyObject * obj0 = 0 ;
37173 PyObject * obj1 = 0 ;
37174 char * kwnames[] = {
37175 (char *) "self",(char *) "filter", NULL
37176 };
37177
37178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) SWIG_fail;
37179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37180 if (!SWIG_IsOK(res1)) {
37181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37182 }
37183 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37184 {
37185 arg2 = wxString_in_helper(obj1);
37186 if (arg2 == NULL) SWIG_fail;
37187 temp2 = true;
37188 }
37189 {
37190 PyThreadState* __tstate = wxPyBeginAllowThreads();
37191 (arg1)->SetFilter((wxString const &)*arg2);
37192 wxPyEndAllowThreads(__tstate);
37193 if (PyErr_Occurred()) SWIG_fail;
37194 }
37195 resultobj = SWIG_Py_Void();
37196 {
37197 if (temp2)
37198 delete arg2;
37199 }
37200 return resultobj;
37201fail:
37202 {
37203 if (temp2)
37204 delete arg2;
37205 }
37206 return NULL;
d14a1e28
RD
37207}
37208
37209
0085ce49
RD
37210SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37211 PyObject *resultobj = 0;
37212 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37213 int result;
37214 void *argp1 = 0 ;
37215 int res1 = 0 ;
37216 PyObject *swig_obj[1] ;
37217
37218 if (!args) SWIG_fail;
37219 swig_obj[0] = args;
37220 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37221 if (!SWIG_IsOK(res1)) {
37222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37223 }
37224 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37225 {
37226 PyThreadState* __tstate = wxPyBeginAllowThreads();
37227 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
37228 wxPyEndAllowThreads(__tstate);
37229 if (PyErr_Occurred()) SWIG_fail;
37230 }
37231 resultobj = SWIG_From_int(static_cast< int >(result));
37232 return resultobj;
37233fail:
37234 return NULL;
37235}
37236
37237
37238SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37239 PyObject *resultobj = 0;
37240 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37241 int arg2 ;
37242 void *argp1 = 0 ;
37243 int res1 = 0 ;
37244 int val2 ;
37245 int ecode2 = 0 ;
37246 PyObject * obj0 = 0 ;
37247 PyObject * obj1 = 0 ;
37248 char * kwnames[] = {
37249 (char *) "self",(char *) "n", NULL
37250 };
37251
37252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail;
37253 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37254 if (!SWIG_IsOK(res1)) {
37255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37256 }
37257 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37258 ecode2 = SWIG_AsVal_int(obj1, &val2);
37259 if (!SWIG_IsOK(ecode2)) {
37260 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "2"" of type '" "int""'");
37261 }
37262 arg2 = static_cast< int >(val2);
37263 {
37264 PyThreadState* __tstate = wxPyBeginAllowThreads();
37265 (arg1)->SetFilterIndex(arg2);
37266 wxPyEndAllowThreads(__tstate);
37267 if (PyErr_Occurred()) SWIG_fail;
37268 }
37269 resultobj = SWIG_Py_Void();
37270 return resultobj;
37271fail:
37272 return NULL;
d14a1e28
RD
37273}
37274
37275
0085ce49
RD
37276SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37277 PyObject *resultobj = 0;
37278 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37279 wxTreeItemId result;
37280 void *argp1 = 0 ;
37281 int res1 = 0 ;
37282 PyObject *swig_obj[1] ;
37283
37284 if (!args) SWIG_fail;
37285 swig_obj[0] = args;
37286 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37287 if (!SWIG_IsOK(res1)) {
37288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetRootId" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37289 }
37290 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37291 {
37292 PyThreadState* __tstate = wxPyBeginAllowThreads();
37293 result = (arg1)->GetRootId();
37294 wxPyEndAllowThreads(__tstate);
37295 if (PyErr_Occurred()) SWIG_fail;
37296 }
37297 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37298 return resultobj;
37299fail:
37300 return NULL;
d14a1e28
RD
37301}
37302
37303
0085ce49
RD
37304SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37305 PyObject *resultobj = 0;
37306 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37307 wxPyTreeCtrl *result = 0 ;
37308 void *argp1 = 0 ;
37309 int res1 = 0 ;
37310 PyObject *swig_obj[1] ;
37311
37312 if (!args) SWIG_fail;
37313 swig_obj[0] = args;
37314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37315 if (!SWIG_IsOK(res1)) {
37316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetTreeCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37317 }
37318 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37319 {
37320 PyThreadState* __tstate = wxPyBeginAllowThreads();
37321 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
37322 wxPyEndAllowThreads(__tstate);
37323 if (PyErr_Occurred()) SWIG_fail;
37324 }
37325 {
37326 resultobj = wxPyMake_wxObject(result, 0);
37327 }
37328 return resultobj;
37329fail:
37330 return NULL;
d14a1e28
RD
37331}
37332
37333
0085ce49
RD
37334SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37335 PyObject *resultobj = 0;
37336 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37337 wxDirFilterListCtrl *result = 0 ;
37338 void *argp1 = 0 ;
37339 int res1 = 0 ;
37340 PyObject *swig_obj[1] ;
37341
37342 if (!args) SWIG_fail;
37343 swig_obj[0] = args;
37344 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37345 if (!SWIG_IsOK(res1)) {
37346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37347 }
37348 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37349 {
37350 PyThreadState* __tstate = wxPyBeginAllowThreads();
37351 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
37352 wxPyEndAllowThreads(__tstate);
37353 if (PyErr_Occurred()) SWIG_fail;
37354 }
37355 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
37356 return resultobj;
37357fail:
37358 return NULL;
37359}
37360
37361
37362SWIGINTERN PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37363 PyObject *resultobj = 0;
37364 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37365 wxTreeItemId arg2 ;
37366 wxString *arg3 = 0 ;
37367 bool *arg4 = 0 ;
37368 wxTreeItemId result;
37369 void *argp1 = 0 ;
37370 int res1 = 0 ;
37371 void *argp2 ;
37372 int res2 = 0 ;
37373 bool temp3 = false ;
37374 bool temp4 ;
37375 int res4 = SWIG_TMPOBJ ;
37376 PyObject * obj0 = 0 ;
37377 PyObject * obj1 = 0 ;
37378 PyObject * obj2 = 0 ;
37379 char * kwnames[] = {
37380 (char *) "self",(char *) "parentId",(char *) "path", NULL
37381 };
37382
37383 arg4 = &temp4;
37384 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37385 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37386 if (!SWIG_IsOK(res1)) {
37387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37388 }
37389 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37390 {
37391 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37392 if (!SWIG_IsOK(res2)) {
37393 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
37394 }
37395 if (!argp2) {
37396 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
37397 } else {
37398 wxTreeItemId * temp = reinterpret_cast< wxTreeItemId * >(argp2);
37399 arg2 = *temp;
37400 if (SWIG_IsNewObj(res2)) delete temp;
d14a1e28 37401 }
0085ce49
RD
37402 }
37403 {
37404 arg3 = wxString_in_helper(obj2);
37405 if (arg3 == NULL) SWIG_fail;
37406 temp3 = true;
37407 }
37408 {
37409 PyThreadState* __tstate = wxPyBeginAllowThreads();
37410 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
37411 wxPyEndAllowThreads(__tstate);
37412 if (PyErr_Occurred()) SWIG_fail;
37413 }
37414 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37415 if (SWIG_IsTmpObj(res4)) {
37416 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4)));
37417 } else {
37418 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
37419 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags));
37420 }
37421 {
37422 if (temp3)
37423 delete arg3;
37424 }
37425 return resultobj;
37426fail:
37427 {
37428 if (temp3)
37429 delete arg3;
37430 }
37431 return NULL;
d14a1e28
RD
37432}
37433
37434
0085ce49
RD
37435SWIGINTERN PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37436 PyObject *resultobj = 0;
37437 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37438 void *argp1 = 0 ;
37439 int res1 = 0 ;
37440 PyObject *swig_obj[1] ;
37441
37442 if (!args) SWIG_fail;
37443 swig_obj[0] = args;
37444 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37445 if (!SWIG_IsOK(res1)) {
37446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_DoResize" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37447 }
37448 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37449 {
37450 PyThreadState* __tstate = wxPyBeginAllowThreads();
37451 (arg1)->DoResize();
37452 wxPyEndAllowThreads(__tstate);
37453 if (PyErr_Occurred()) SWIG_fail;
37454 }
37455 resultobj = SWIG_Py_Void();
37456 return resultobj;
37457fail:
37458 return NULL;
d14a1e28
RD
37459}
37460
37461
0085ce49
RD
37462SWIGINTERN PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37463 PyObject *resultobj = 0;
37464 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37465 void *argp1 = 0 ;
37466 int res1 = 0 ;
37467 PyObject *swig_obj[1] ;
37468
37469 if (!args) SWIG_fail;
37470 swig_obj[0] = args;
37471 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37472 if (!SWIG_IsOK(res1)) {
37473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ReCreateTree" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37474 }
37475 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37476 {
37477 PyThreadState* __tstate = wxPyBeginAllowThreads();
37478 (arg1)->ReCreateTree();
37479 wxPyEndAllowThreads(__tstate);
37480 if (PyErr_Occurred()) SWIG_fail;
37481 }
37482 resultobj = SWIG_Py_Void();
37483 return resultobj;
37484fail:
37485 return NULL;
37486}
37487
37488
37489SWIGINTERN PyObject *GenericDirCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37490 PyObject *obj;
37491 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37492 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDirCtrl, SWIG_NewClientData(obj));
37493 return SWIG_Py_Void();
37494}
37495
37496SWIGINTERN PyObject *GenericDirCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37497 return SWIG_Python_InitShadowInstance(args);
37498}
37499
37500SWIGINTERN PyObject *_wrap_new_DirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37501 PyObject *resultobj = 0;
37502 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37503 int arg2 = (int) (int)-1 ;
37504 wxPoint const &arg3_defvalue = wxDefaultPosition ;
37505 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
37506 wxSize const &arg4_defvalue = wxDefaultSize ;
37507 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
37508 long arg5 = (long) 0 ;
37509 wxDirFilterListCtrl *result = 0 ;
37510 void *argp1 = 0 ;
37511 int res1 = 0 ;
37512 int val2 ;
37513 int ecode2 = 0 ;
37514 wxPoint temp3 ;
37515 wxSize temp4 ;
37516 long val5 ;
37517 int ecode5 = 0 ;
37518 PyObject * obj0 = 0 ;
37519 PyObject * obj1 = 0 ;
37520 PyObject * obj2 = 0 ;
37521 PyObject * obj3 = 0 ;
37522 PyObject * obj4 = 0 ;
37523 char * kwnames[] = {
37524 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
37525 };
37526
37527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37529 if (!SWIG_IsOK(res1)) {
37530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37531 }
37532 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37533 if (obj1) {
37534 ecode2 = SWIG_AsVal_int(obj1, &val2);
37535 if (!SWIG_IsOK(ecode2)) {
37536 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirFilterListCtrl" "', expected argument " "2"" of type '" "int""'");
37537 }
37538 arg2 = static_cast< int >(val2);
37539 }
37540 if (obj2) {
d14a1e28 37541 {
0085ce49
RD
37542 arg3 = &temp3;
37543 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 37544 }
0085ce49
RD
37545 }
37546 if (obj3) {
d14a1e28 37547 {
0085ce49
RD
37548 arg4 = &temp4;
37549 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 37550 }
0085ce49
RD
37551 }
37552 if (obj4) {
37553 ecode5 = SWIG_AsVal_long(obj4, &val5);
37554 if (!SWIG_IsOK(ecode5)) {
37555 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DirFilterListCtrl" "', expected argument " "5"" of type '" "long""'");
37556 }
37557 arg5 = static_cast< long >(val5);
37558 }
37559 {
37560 if (!wxPyCheckForApp()) SWIG_fail;
37561 PyThreadState* __tstate = wxPyBeginAllowThreads();
37562 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
37563 wxPyEndAllowThreads(__tstate);
37564 if (PyErr_Occurred()) SWIG_fail;
37565 }
37566 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_NEW | 0 );
37567 return resultobj;
37568fail:
37569 return NULL;
d14a1e28
RD
37570}
37571
37572
0085ce49
RD
37573SWIGINTERN PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37574 PyObject *resultobj = 0;
37575 wxDirFilterListCtrl *result = 0 ;
37576
37577 if (!SWIG_Python_UnpackTuple(args,"new_PreDirFilterListCtrl",0,0,0)) SWIG_fail;
37578 {
37579 if (!wxPyCheckForApp()) SWIG_fail;
37580 PyThreadState* __tstate = wxPyBeginAllowThreads();
37581 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
37582 wxPyEndAllowThreads(__tstate);
37583 if (PyErr_Occurred()) SWIG_fail;
37584 }
37585 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_OWN | 0 );
37586 return resultobj;
37587fail:
37588 return NULL;
37589}
37590
37591
37592SWIGINTERN PyObject *_wrap_DirFilterListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37593 PyObject *resultobj = 0;
37594 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
37595 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
37596 int arg3 = (int) (int)-1 ;
37597 wxPoint const &arg4_defvalue = wxDefaultPosition ;
37598 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
37599 wxSize const &arg5_defvalue = wxDefaultSize ;
37600 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
37601 long arg6 = (long) 0 ;
37602 bool result;
37603 void *argp1 = 0 ;
37604 int res1 = 0 ;
37605 void *argp2 = 0 ;
37606 int res2 = 0 ;
37607 int val3 ;
37608 int ecode3 = 0 ;
37609 wxPoint temp4 ;
37610 wxSize temp5 ;
37611 long val6 ;
37612 int ecode6 = 0 ;
37613 PyObject * obj0 = 0 ;
37614 PyObject * obj1 = 0 ;
37615 PyObject * obj2 = 0 ;
37616 PyObject * obj3 = 0 ;
37617 PyObject * obj4 = 0 ;
37618 PyObject * obj5 = 0 ;
37619 char * kwnames[] = {
37620 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
37621 };
37622
37623 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
37624 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
37625 if (!SWIG_IsOK(res1)) {
37626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_Create" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
37627 }
37628 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
37629 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37630 if (!SWIG_IsOK(res2)) {
37631 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirFilterListCtrl_Create" "', expected argument " "2"" of type '" "wxGenericDirCtrl *""'");
37632 }
37633 arg2 = reinterpret_cast< wxGenericDirCtrl * >(argp2);
37634 if (obj2) {
37635 ecode3 = SWIG_AsVal_int(obj2, &val3);
37636 if (!SWIG_IsOK(ecode3)) {
37637 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
37638 }
37639 arg3 = static_cast< int >(val3);
37640 }
37641 if (obj3) {
093d3ff1 37642 {
0085ce49
RD
37643 arg4 = &temp4;
37644 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 37645 }
0085ce49
RD
37646 }
37647 if (obj4) {
d14a1e28 37648 {
0085ce49
RD
37649 arg5 = &temp5;
37650 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 37651 }
0085ce49
RD
37652 }
37653 if (obj5) {
37654 ecode6 = SWIG_AsVal_long(obj5, &val6);
37655 if (!SWIG_IsOK(ecode6)) {
37656 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DirFilterListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
37657 }
37658 arg6 = static_cast< long >(val6);
37659 }
37660 {
37661 PyThreadState* __tstate = wxPyBeginAllowThreads();
37662 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
37663 wxPyEndAllowThreads(__tstate);
37664 if (PyErr_Occurred()) SWIG_fail;
37665 }
37666 {
37667 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37668 }
37669 return resultobj;
37670fail:
37671 return NULL;
37672}
37673
37674
37675SWIGINTERN PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37676 PyObject *resultobj = 0;
37677 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
37678 wxString *arg2 = 0 ;
37679 int arg3 ;
37680 void *argp1 = 0 ;
37681 int res1 = 0 ;
37682 bool temp2 = false ;
37683 int val3 ;
37684 int ecode3 = 0 ;
37685 PyObject * obj0 = 0 ;
37686 PyObject * obj1 = 0 ;
37687 PyObject * obj2 = 0 ;
37688 char * kwnames[] = {
37689 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
37690 };
37691
37692 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37693 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
37694 if (!SWIG_IsOK(res1)) {
37695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
37696 }
37697 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
37698 {
37699 arg2 = wxString_in_helper(obj1);
37700 if (arg2 == NULL) SWIG_fail;
37701 temp2 = true;
37702 }
37703 ecode3 = SWIG_AsVal_int(obj2, &val3);
37704 if (!SWIG_IsOK(ecode3)) {
37705 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "3"" of type '" "int""'");
37706 }
37707 arg3 = static_cast< int >(val3);
37708 {
37709 PyThreadState* __tstate = wxPyBeginAllowThreads();
37710 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
37711 wxPyEndAllowThreads(__tstate);
37712 if (PyErr_Occurred()) SWIG_fail;
37713 }
37714 resultobj = SWIG_Py_Void();
37715 {
37716 if (temp2)
37717 delete arg2;
37718 }
37719 return resultobj;
37720fail:
37721 {
37722 if (temp2)
37723 delete arg2;
37724 }
37725 return NULL;
37726}
37727
37728
37729SWIGINTERN PyObject *DirFilterListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37730 PyObject *obj;
37731 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37732 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirFilterListCtrl, SWIG_NewClientData(obj));
37733 return SWIG_Py_Void();
37734}
37735
37736SWIGINTERN PyObject *DirFilterListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37737 return SWIG_Python_InitShadowInstance(args);
37738}
37739
37740SWIGINTERN PyObject *_wrap_new_PyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37741 PyObject *resultobj = 0;
37742 wxWindow *arg1 = (wxWindow *) 0 ;
37743 int arg2 = (int) (int)-1 ;
37744 wxPoint const &arg3_defvalue = wxDefaultPosition ;
37745 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
37746 wxSize const &arg4_defvalue = wxDefaultSize ;
37747 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
37748 long arg5 = (long) 0 ;
37749 wxValidator const &arg6_defvalue = wxDefaultValidator ;
37750 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
37751 wxString const &arg7_defvalue = wxPyControlNameStr ;
37752 wxString *arg7 = (wxString *) &arg7_defvalue ;
37753 wxPyControl *result = 0 ;
37754 void *argp1 = 0 ;
37755 int res1 = 0 ;
37756 int val2 ;
37757 int ecode2 = 0 ;
37758 wxPoint temp3 ;
37759 wxSize temp4 ;
37760 long val5 ;
37761 int ecode5 = 0 ;
37762 void *argp6 = 0 ;
37763 int res6 = 0 ;
37764 bool temp7 = false ;
37765 PyObject * obj0 = 0 ;
37766 PyObject * obj1 = 0 ;
37767 PyObject * obj2 = 0 ;
37768 PyObject * obj3 = 0 ;
37769 PyObject * obj4 = 0 ;
37770 PyObject * obj5 = 0 ;
37771 PyObject * obj6 = 0 ;
37772 char * kwnames[] = {
37773 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
37774 };
37775
37776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
37777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37778 if (!SWIG_IsOK(res1)) {
37779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyControl" "', expected argument " "1"" of type '" "wxWindow *""'");
37780 }
37781 arg1 = reinterpret_cast< wxWindow * >(argp1);
37782 if (obj1) {
37783 ecode2 = SWIG_AsVal_int(obj1, &val2);
37784 if (!SWIG_IsOK(ecode2)) {
37785 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyControl" "', expected argument " "2"" of type '" "int""'");
37786 }
37787 arg2 = static_cast< int >(val2);
37788 }
37789 if (obj2) {
093d3ff1 37790 {
0085ce49
RD
37791 arg3 = &temp3;
37792 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 37793 }
0085ce49
RD
37794 }
37795 if (obj3) {
d14a1e28 37796 {
0085ce49
RD
37797 arg4 = &temp4;
37798 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 37799 }
0085ce49
RD
37800 }
37801 if (obj4) {
37802 ecode5 = SWIG_AsVal_long(obj4, &val5);
37803 if (!SWIG_IsOK(ecode5)) {
37804 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyControl" "', expected argument " "5"" of type '" "long""'");
37805 }
37806 arg5 = static_cast< long >(val5);
37807 }
37808 if (obj5) {
37809 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
37810 if (!SWIG_IsOK(res6)) {
37811 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
37812 }
37813 if (!argp6) {
37814 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d14a1e28 37815 }
0085ce49
RD
37816 arg6 = reinterpret_cast< wxValidator * >(argp6);
37817 }
37818 if (obj6) {
d14a1e28 37819 {
0085ce49
RD
37820 arg7 = wxString_in_helper(obj6);
37821 if (arg7 == NULL) SWIG_fail;
37822 temp7 = true;
d14a1e28 37823 }
0085ce49
RD
37824 }
37825 {
37826 if (!wxPyCheckForApp()) SWIG_fail;
37827 PyThreadState* __tstate = wxPyBeginAllowThreads();
37828 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
37829 wxPyEndAllowThreads(__tstate);
37830 if (PyErr_Occurred()) SWIG_fail;
37831 }
37832 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_NEW | 0 );
37833 {
37834 if (temp7)
37835 delete arg7;
37836 }
37837 return resultobj;
37838fail:
37839 {
37840 if (temp7)
37841 delete arg7;
37842 }
37843 return NULL;
d14a1e28
RD
37844}
37845
37846
0085ce49
RD
37847SWIGINTERN PyObject *_wrap_new_PrePyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37848 PyObject *resultobj = 0;
37849 wxPyControl *result = 0 ;
37850
37851 if (!SWIG_Python_UnpackTuple(args,"new_PrePyControl",0,0,0)) SWIG_fail;
37852 {
37853 if (!wxPyCheckForApp()) SWIG_fail;
37854 PyThreadState* __tstate = wxPyBeginAllowThreads();
37855 result = (wxPyControl *)new wxPyControl();
37856 wxPyEndAllowThreads(__tstate);
37857 if (PyErr_Occurred()) SWIG_fail;
37858 }
37859 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_OWN | 0 );
37860 return resultobj;
37861fail:
37862 return NULL;
37863}
37864
37865
37866SWIGINTERN PyObject *_wrap_PyControl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37867 PyObject *resultobj = 0;
37868 wxPyControl *arg1 = (wxPyControl *) 0 ;
37869 PyObject *arg2 = (PyObject *) 0 ;
37870 PyObject *arg3 = (PyObject *) 0 ;
37871 void *argp1 = 0 ;
37872 int res1 = 0 ;
37873 PyObject * obj0 = 0 ;
37874 PyObject * obj1 = 0 ;
37875 PyObject * obj2 = 0 ;
37876 char * kwnames[] = {
37877 (char *) "self",(char *) "self",(char *) "_class", NULL
37878 };
37879
37880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
37882 if (!SWIG_IsOK(res1)) {
37883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyControl *""'");
37884 }
37885 arg1 = reinterpret_cast< wxPyControl * >(argp1);
37886 arg2 = obj1;
37887 arg3 = obj2;
37888 {
37889 PyThreadState* __tstate = wxPyBeginAllowThreads();
37890 (arg1)->_setCallbackInfo(arg2,arg3);
37891 wxPyEndAllowThreads(__tstate);
37892 if (PyErr_Occurred()) SWIG_fail;
37893 }
37894 resultobj = SWIG_Py_Void();
37895 return resultobj;
37896fail:
37897 return NULL;
37898}
37899
37900
37901SWIGINTERN PyObject *_wrap_PyControl_SetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37902 PyObject *resultobj = 0;
37903 wxPyControl *arg1 = (wxPyControl *) 0 ;
37904 wxSize *arg2 = 0 ;
37905 void *argp1 = 0 ;
37906 int res1 = 0 ;
37907 wxSize temp2 ;
37908 PyObject * obj0 = 0 ;
37909 PyObject * obj1 = 0 ;
37910 char * kwnames[] = {
37911 (char *) "self",(char *) "size", NULL
37912 };
37913
37914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
37915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
37916 if (!SWIG_IsOK(res1)) {
37917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_SetBestSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
37918 }
37919 arg1 = reinterpret_cast< wxPyControl * >(argp1);
37920 {
37921 arg2 = &temp2;
37922 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
37923 }
37924 {
37925 PyThreadState* __tstate = wxPyBeginAllowThreads();
37926 (arg1)->SetBestSize((wxSize const &)*arg2);
37927 wxPyEndAllowThreads(__tstate);
37928 if (PyErr_Occurred()) SWIG_fail;
37929 }
37930 resultobj = SWIG_Py_Void();
37931 return resultobj;
37932fail:
37933 return NULL;
37934}
37935
37936
37937SWIGINTERN PyObject *_wrap_PyControl_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37938 PyObject *resultobj = 0;
37939 wxPyControl *arg1 = (wxPyControl *) 0 ;
37940 wxDC *arg2 = (wxDC *) 0 ;
37941 bool result;
37942 void *argp1 = 0 ;
37943 int res1 = 0 ;
37944 void *argp2 = 0 ;
37945 int res2 = 0 ;
37946 PyObject * obj0 = 0 ;
37947 PyObject * obj1 = 0 ;
37948 char * kwnames[] = {
37949 (char *) "self",(char *) "dc", NULL
37950 };
37951
37952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail;
37953 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
37954 if (!SWIG_IsOK(res1)) {
37955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyControl *""'");
37956 }
37957 arg1 = reinterpret_cast< wxPyControl * >(argp1);
37958 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
37959 if (!SWIG_IsOK(res2)) {
37960 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyControl_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'");
37961 }
37962 arg2 = reinterpret_cast< wxDC * >(argp2);
37963 {
37964 PyThreadState* __tstate = wxPyBeginAllowThreads();
37965 result = (bool)(arg1)->DoEraseBackground(arg2);
37966 wxPyEndAllowThreads(__tstate);
37967 if (PyErr_Occurred()) SWIG_fail;
37968 }
37969 {
37970 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37971 }
37972 return resultobj;
37973fail:
37974 return NULL;
37975}
37976
37977
37978SWIGINTERN PyObject *_wrap_PyControl_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37979 PyObject *resultobj = 0;
37980 wxPyControl *arg1 = (wxPyControl *) 0 ;
37981 int arg2 ;
37982 int arg3 ;
37983 int arg4 ;
37984 int arg5 ;
37985 void *argp1 = 0 ;
37986 int res1 = 0 ;
37987 int val2 ;
37988 int ecode2 = 0 ;
37989 int val3 ;
37990 int ecode3 = 0 ;
37991 int val4 ;
37992 int ecode4 = 0 ;
37993 int val5 ;
37994 int ecode5 = 0 ;
37995 PyObject * obj0 = 0 ;
37996 PyObject * obj1 = 0 ;
37997 PyObject * obj2 = 0 ;
37998 PyObject * obj3 = 0 ;
37999 PyObject * obj4 = 0 ;
38000 char * kwnames[] = {
38001 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
38002 };
38003
38004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38006 if (!SWIG_IsOK(res1)) {
38007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyControl *""'");
38008 }
38009 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38010 ecode2 = SWIG_AsVal_int(obj1, &val2);
38011 if (!SWIG_IsOK(ecode2)) {
38012 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoMoveWindow" "', expected argument " "2"" of type '" "int""'");
38013 }
38014 arg2 = static_cast< int >(val2);
38015 ecode3 = SWIG_AsVal_int(obj2, &val3);
38016 if (!SWIG_IsOK(ecode3)) {
38017 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoMoveWindow" "', expected argument " "3"" of type '" "int""'");
38018 }
38019 arg3 = static_cast< int >(val3);
38020 ecode4 = SWIG_AsVal_int(obj3, &val4);
38021 if (!SWIG_IsOK(ecode4)) {
38022 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoMoveWindow" "', expected argument " "4"" of type '" "int""'");
38023 }
38024 arg4 = static_cast< int >(val4);
38025 ecode5 = SWIG_AsVal_int(obj4, &val5);
38026 if (!SWIG_IsOK(ecode5)) {
38027 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoMoveWindow" "', expected argument " "5"" of type '" "int""'");
38028 }
38029 arg5 = static_cast< int >(val5);
38030 {
38031 PyThreadState* __tstate = wxPyBeginAllowThreads();
38032 (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5);
38033 wxPyEndAllowThreads(__tstate);
38034 if (PyErr_Occurred()) SWIG_fail;
38035 }
38036 resultobj = SWIG_Py_Void();
38037 return resultobj;
38038fail:
38039 return NULL;
38040}
38041
38042
38043SWIGINTERN PyObject *_wrap_PyControl_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38044 PyObject *resultobj = 0;
38045 wxPyControl *arg1 = (wxPyControl *) 0 ;
38046 int arg2 ;
38047 int arg3 ;
38048 int arg4 ;
38049 int arg5 ;
38050 int arg6 = (int) wxSIZE_AUTO ;
38051 void *argp1 = 0 ;
38052 int res1 = 0 ;
38053 int val2 ;
38054 int ecode2 = 0 ;
38055 int val3 ;
38056 int ecode3 = 0 ;
38057 int val4 ;
38058 int ecode4 = 0 ;
38059 int val5 ;
38060 int ecode5 = 0 ;
38061 int val6 ;
38062 int ecode6 = 0 ;
38063 PyObject * obj0 = 0 ;
38064 PyObject * obj1 = 0 ;
38065 PyObject * obj2 = 0 ;
38066 PyObject * obj3 = 0 ;
38067 PyObject * obj4 = 0 ;
38068 PyObject * obj5 = 0 ;
38069 char * kwnames[] = {
38070 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
38071 };
38072
38073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38075 if (!SWIG_IsOK(res1)) {
38076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38077 }
38078 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38079 ecode2 = SWIG_AsVal_int(obj1, &val2);
38080 if (!SWIG_IsOK(ecode2)) {
38081 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetSize" "', expected argument " "2"" of type '" "int""'");
38082 }
38083 arg2 = static_cast< int >(val2);
38084 ecode3 = SWIG_AsVal_int(obj2, &val3);
38085 if (!SWIG_IsOK(ecode3)) {
38086 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetSize" "', expected argument " "3"" of type '" "int""'");
38087 }
38088 arg3 = static_cast< int >(val3);
38089 ecode4 = SWIG_AsVal_int(obj3, &val4);
38090 if (!SWIG_IsOK(ecode4)) {
38091 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoSetSize" "', expected argument " "4"" of type '" "int""'");
38092 }
38093 arg4 = static_cast< int >(val4);
38094 ecode5 = SWIG_AsVal_int(obj4, &val5);
38095 if (!SWIG_IsOK(ecode5)) {
38096 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoSetSize" "', expected argument " "5"" of type '" "int""'");
38097 }
38098 arg5 = static_cast< int >(val5);
38099 if (obj5) {
38100 ecode6 = SWIG_AsVal_int(obj5, &val6);
38101 if (!SWIG_IsOK(ecode6)) {
38102 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyControl_DoSetSize" "', expected argument " "6"" of type '" "int""'");
38103 }
38104 arg6 = static_cast< int >(val6);
38105 }
38106 {
38107 PyThreadState* __tstate = wxPyBeginAllowThreads();
38108 (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6);
38109 wxPyEndAllowThreads(__tstate);
38110 if (PyErr_Occurred()) SWIG_fail;
38111 }
38112 resultobj = SWIG_Py_Void();
38113 return resultobj;
38114fail:
38115 return NULL;
38116}
38117
38118
38119SWIGINTERN PyObject *_wrap_PyControl_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38120 PyObject *resultobj = 0;
38121 wxPyControl *arg1 = (wxPyControl *) 0 ;
38122 int arg2 ;
38123 int arg3 ;
38124 void *argp1 = 0 ;
38125 int res1 = 0 ;
38126 int val2 ;
38127 int ecode2 = 0 ;
38128 int val3 ;
38129 int ecode3 = 0 ;
38130 PyObject * obj0 = 0 ;
38131 PyObject * obj1 = 0 ;
38132 PyObject * obj2 = 0 ;
38133 char * kwnames[] = {
38134 (char *) "self",(char *) "width",(char *) "height", NULL
38135 };
38136
38137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38139 if (!SWIG_IsOK(res1)) {
38140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38141 }
38142 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38143 ecode2 = SWIG_AsVal_int(obj1, &val2);
38144 if (!SWIG_IsOK(ecode2)) {
38145 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetClientSize" "', expected argument " "2"" of type '" "int""'");
38146 }
38147 arg2 = static_cast< int >(val2);
38148 ecode3 = SWIG_AsVal_int(obj2, &val3);
38149 if (!SWIG_IsOK(ecode3)) {
38150 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetClientSize" "', expected argument " "3"" of type '" "int""'");
38151 }
38152 arg3 = static_cast< int >(val3);
38153 {
38154 PyThreadState* __tstate = wxPyBeginAllowThreads();
38155 (arg1)->DoSetClientSize(arg2,arg3);
38156 wxPyEndAllowThreads(__tstate);
38157 if (PyErr_Occurred()) SWIG_fail;
38158 }
38159 resultobj = SWIG_Py_Void();
38160 return resultobj;
38161fail:
38162 return NULL;
38163}
38164
38165
38166SWIGINTERN PyObject *_wrap_PyControl_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38167 PyObject *resultobj = 0;
38168 wxPyControl *arg1 = (wxPyControl *) 0 ;
38169 int arg2 ;
38170 int arg3 ;
38171 void *argp1 = 0 ;
38172 int res1 = 0 ;
38173 int val2 ;
38174 int ecode2 = 0 ;
38175 int val3 ;
38176 int ecode3 = 0 ;
38177 PyObject * obj0 = 0 ;
38178 PyObject * obj1 = 0 ;
38179 PyObject * obj2 = 0 ;
38180 char * kwnames[] = {
38181 (char *) "self",(char *) "x",(char *) "y", NULL
38182 };
38183
38184 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38185 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38186 if (!SWIG_IsOK(res1)) {
38187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38188 }
38189 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38190 ecode2 = SWIG_AsVal_int(obj1, &val2);
38191 if (!SWIG_IsOK(ecode2)) {
38192 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'");
38193 }
38194 arg2 = static_cast< int >(val2);
38195 ecode3 = SWIG_AsVal_int(obj2, &val3);
38196 if (!SWIG_IsOK(ecode3)) {
38197 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'");
38198 }
38199 arg3 = static_cast< int >(val3);
38200 {
38201 PyThreadState* __tstate = wxPyBeginAllowThreads();
38202 (arg1)->DoSetVirtualSize(arg2,arg3);
38203 wxPyEndAllowThreads(__tstate);
38204 if (PyErr_Occurred()) SWIG_fail;
38205 }
38206 resultobj = SWIG_Py_Void();
38207 return resultobj;
38208fail:
38209 return NULL;
38210}
38211
38212
38213SWIGINTERN PyObject *_wrap_PyControl_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38214 PyObject *resultobj = 0;
38215 wxPyControl *arg1 = (wxPyControl *) 0 ;
38216 int *arg2 = (int *) 0 ;
38217 int *arg3 = (int *) 0 ;
38218 void *argp1 = 0 ;
38219 int res1 = 0 ;
38220 int temp2 ;
38221 int res2 = SWIG_TMPOBJ ;
38222 int temp3 ;
38223 int res3 = SWIG_TMPOBJ ;
38224 PyObject *swig_obj[1] ;
38225
38226 arg2 = &temp2;
38227 arg3 = &temp3;
38228 if (!args) SWIG_fail;
38229 swig_obj[0] = args;
38230 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38231 if (!SWIG_IsOK(res1)) {
38232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38233 }
38234 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38235 {
38236 PyThreadState* __tstate = wxPyBeginAllowThreads();
38237 ((wxPyControl const *)arg1)->DoGetSize(arg2,arg3);
38238 wxPyEndAllowThreads(__tstate);
38239 if (PyErr_Occurred()) SWIG_fail;
38240 }
38241 resultobj = SWIG_Py_Void();
38242 if (SWIG_IsTmpObj(res2)) {
38243 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38244 } else {
38245 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38246 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38247 }
38248 if (SWIG_IsTmpObj(res3)) {
38249 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38250 } else {
38251 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38252 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38253 }
38254 return resultobj;
38255fail:
38256 return NULL;
38257}
38258
38259
38260SWIGINTERN PyObject *_wrap_PyControl_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38261 PyObject *resultobj = 0;
38262 wxPyControl *arg1 = (wxPyControl *) 0 ;
38263 int *arg2 = (int *) 0 ;
38264 int *arg3 = (int *) 0 ;
38265 void *argp1 = 0 ;
38266 int res1 = 0 ;
38267 int temp2 ;
38268 int res2 = SWIG_TMPOBJ ;
38269 int temp3 ;
38270 int res3 = SWIG_TMPOBJ ;
38271 PyObject *swig_obj[1] ;
38272
38273 arg2 = &temp2;
38274 arg3 = &temp3;
38275 if (!args) SWIG_fail;
38276 swig_obj[0] = args;
38277 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38278 if (!SWIG_IsOK(res1)) {
38279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38280 }
38281 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38282 {
38283 PyThreadState* __tstate = wxPyBeginAllowThreads();
38284 ((wxPyControl const *)arg1)->DoGetClientSize(arg2,arg3);
38285 wxPyEndAllowThreads(__tstate);
38286 if (PyErr_Occurred()) SWIG_fail;
38287 }
38288 resultobj = SWIG_Py_Void();
38289 if (SWIG_IsTmpObj(res2)) {
38290 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38291 } else {
38292 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38293 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38294 }
38295 if (SWIG_IsTmpObj(res3)) {
38296 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38297 } else {
38298 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38299 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38300 }
38301 return resultobj;
38302fail:
38303 return NULL;
38304}
38305
38306
38307SWIGINTERN PyObject *_wrap_PyControl_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38308 PyObject *resultobj = 0;
38309 wxPyControl *arg1 = (wxPyControl *) 0 ;
38310 int *arg2 = (int *) 0 ;
38311 int *arg3 = (int *) 0 ;
38312 void *argp1 = 0 ;
38313 int res1 = 0 ;
38314 int temp2 ;
38315 int res2 = SWIG_TMPOBJ ;
38316 int temp3 ;
38317 int res3 = SWIG_TMPOBJ ;
38318 PyObject *swig_obj[1] ;
38319
38320 arg2 = &temp2;
38321 arg3 = &temp3;
38322 if (!args) SWIG_fail;
38323 swig_obj[0] = args;
38324 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38325 if (!SWIG_IsOK(res1)) {
38326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetPosition" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38327 }
38328 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38329 {
38330 PyThreadState* __tstate = wxPyBeginAllowThreads();
38331 ((wxPyControl const *)arg1)->DoGetPosition(arg2,arg3);
38332 wxPyEndAllowThreads(__tstate);
38333 if (PyErr_Occurred()) SWIG_fail;
38334 }
38335 resultobj = SWIG_Py_Void();
38336 if (SWIG_IsTmpObj(res2)) {
38337 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38338 } else {
38339 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38340 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38341 }
38342 if (SWIG_IsTmpObj(res3)) {
38343 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38344 } else {
38345 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38346 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38347 }
38348 return resultobj;
38349fail:
38350 return NULL;
d14a1e28
RD
38351}
38352
38353
0085ce49
RD
38354SWIGINTERN PyObject *_wrap_PyControl_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38355 PyObject *resultobj = 0;
38356 wxPyControl *arg1 = (wxPyControl *) 0 ;
38357 wxSize result;
38358 void *argp1 = 0 ;
38359 int res1 = 0 ;
38360 PyObject *swig_obj[1] ;
38361
38362 if (!args) SWIG_fail;
38363 swig_obj[0] = args;
38364 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38365 if (!SWIG_IsOK(res1)) {
38366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38367 }
38368 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38369 {
38370 PyThreadState* __tstate = wxPyBeginAllowThreads();
38371 result = ((wxPyControl const *)arg1)->DoGetVirtualSize();
38372 wxPyEndAllowThreads(__tstate);
38373 if (PyErr_Occurred()) SWIG_fail;
38374 }
38375 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
38376 return resultobj;
38377fail:
38378 return NULL;
d14a1e28
RD
38379}
38380
38381
0085ce49
RD
38382SWIGINTERN PyObject *_wrap_PyControl_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38383 PyObject *resultobj = 0;
38384 wxPyControl *arg1 = (wxPyControl *) 0 ;
38385 wxSize result;
38386 void *argp1 = 0 ;
38387 int res1 = 0 ;
38388 PyObject *swig_obj[1] ;
38389
38390 if (!args) SWIG_fail;
38391 swig_obj[0] = args;
38392 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38393 if (!SWIG_IsOK(res1)) {
38394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38395 }
38396 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38397 {
38398 PyThreadState* __tstate = wxPyBeginAllowThreads();
38399 result = ((wxPyControl const *)arg1)->DoGetBestSize();
38400 wxPyEndAllowThreads(__tstate);
38401 if (PyErr_Occurred()) SWIG_fail;
38402 }
38403 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
38404 return resultobj;
38405fail:
38406 return NULL;
d14a1e28
RD
38407}
38408
38409
0085ce49
RD
38410SWIGINTERN PyObject *_wrap_PyControl_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38411 PyObject *resultobj = 0;
38412 wxPyControl *arg1 = (wxPyControl *) 0 ;
38413 SwigValueWrapper<wxVisualAttributes > result;
38414 void *argp1 = 0 ;
38415 int res1 = 0 ;
38416 PyObject *swig_obj[1] ;
38417
38418 if (!args) SWIG_fail;
38419 swig_obj[0] = args;
38420 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38421 if (!SWIG_IsOK(res1)) {
38422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyControl *""'");
38423 }
38424 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38425 {
38426 PyThreadState* __tstate = wxPyBeginAllowThreads();
38427 result = (arg1)->GetDefaultAttributes();
38428 wxPyEndAllowThreads(__tstate);
38429 if (PyErr_Occurred()) SWIG_fail;
38430 }
38431 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
38432 return resultobj;
38433fail:
38434 return NULL;
d14a1e28
RD
38435}
38436
38437
0085ce49
RD
38438SWIGINTERN PyObject *_wrap_PyControl_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38439 PyObject *resultobj = 0;
38440 wxPyControl *arg1 = (wxPyControl *) 0 ;
38441 void *argp1 = 0 ;
38442 int res1 = 0 ;
38443 PyObject *swig_obj[1] ;
38444
38445 if (!args) SWIG_fail;
38446 swig_obj[0] = args;
38447 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38448 if (!SWIG_IsOK(res1)) {
38449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyControl *""'");
38450 }
38451 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38452 {
38453 PyThreadState* __tstate = wxPyBeginAllowThreads();
38454 (arg1)->OnInternalIdle();
38455 wxPyEndAllowThreads(__tstate);
38456 if (PyErr_Occurred()) SWIG_fail;
38457 }
38458 resultobj = SWIG_Py_Void();
38459 return resultobj;
38460fail:
38461 return NULL;
38462}
38463
38464
38465SWIGINTERN PyObject *PyControl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38466 PyObject *obj;
38467 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38468 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyControl, SWIG_NewClientData(obj));
38469 return SWIG_Py_Void();
38470}
38471
38472SWIGINTERN PyObject *PyControl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38473 return SWIG_Python_InitShadowInstance(args);
38474}
38475
38476SWIGINTERN PyObject *_wrap_new_HelpEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38477 PyObject *resultobj = 0;
38478 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
38479 int arg2 = (int) 0 ;
38480 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38481 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38482 wxHelpEvent *result = 0 ;
38483 int val1 ;
38484 int ecode1 = 0 ;
38485 int val2 ;
38486 int ecode2 = 0 ;
38487 wxPoint temp3 ;
38488 PyObject * obj0 = 0 ;
38489 PyObject * obj1 = 0 ;
38490 PyObject * obj2 = 0 ;
38491 char * kwnames[] = {
38492 (char *) "type",(char *) "winid",(char *) "pt", NULL
38493 };
38494
38495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38496 if (obj0) {
38497 ecode1 = SWIG_AsVal_int(obj0, &val1);
38498 if (!SWIG_IsOK(ecode1)) {
38499 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HelpEvent" "', expected argument " "1"" of type '" "wxEventType""'");
38500 }
38501 arg1 = static_cast< wxEventType >(val1);
38502 }
38503 if (obj1) {
38504 ecode2 = SWIG_AsVal_int(obj1, &val2);
38505 if (!SWIG_IsOK(ecode2)) {
38506 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HelpEvent" "', expected argument " "2"" of type '" "int""'");
38507 }
38508 arg2 = static_cast< int >(val2);
38509 }
38510 if (obj2) {
d14a1e28 38511 {
0085ce49
RD
38512 arg3 = &temp3;
38513 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 38514 }
0085ce49
RD
38515 }
38516 {
38517 PyThreadState* __tstate = wxPyBeginAllowThreads();
38518 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3);
38519 wxPyEndAllowThreads(__tstate);
38520 if (PyErr_Occurred()) SWIG_fail;
38521 }
38522 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_NEW | 0 );
38523 return resultobj;
38524fail:
38525 return NULL;
d14a1e28
RD
38526}
38527
38528
0085ce49
RD
38529SWIGINTERN PyObject *_wrap_HelpEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38530 PyObject *resultobj = 0;
38531 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38532 wxPoint result;
38533 void *argp1 = 0 ;
38534 int res1 = 0 ;
38535 PyObject *swig_obj[1] ;
38536
38537 if (!args) SWIG_fail;
38538 swig_obj[0] = args;
38539 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38540 if (!SWIG_IsOK(res1)) {
38541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetPosition" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
38542 }
38543 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38544 {
38545 PyThreadState* __tstate = wxPyBeginAllowThreads();
38546 result = ((wxHelpEvent const *)arg1)->GetPosition();
38547 wxPyEndAllowThreads(__tstate);
38548 if (PyErr_Occurred()) SWIG_fail;
38549 }
38550 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
38551 return resultobj;
38552fail:
38553 return NULL;
38554}
38555
38556
38557SWIGINTERN PyObject *_wrap_HelpEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38558 PyObject *resultobj = 0;
38559 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38560 wxPoint *arg2 = 0 ;
38561 void *argp1 = 0 ;
38562 int res1 = 0 ;
38563 wxPoint temp2 ;
38564 PyObject * obj0 = 0 ;
38565 PyObject * obj1 = 0 ;
38566 char * kwnames[] = {
38567 (char *) "self",(char *) "pos", NULL
38568 };
38569
38570 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
38571 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38572 if (!SWIG_IsOK(res1)) {
38573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetPosition" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
38574 }
38575 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38576 {
38577 arg2 = &temp2;
38578 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
38579 }
38580 {
38581 PyThreadState* __tstate = wxPyBeginAllowThreads();
38582 (arg1)->SetPosition((wxPoint const &)*arg2);
38583 wxPyEndAllowThreads(__tstate);
38584 if (PyErr_Occurred()) SWIG_fail;
38585 }
38586 resultobj = SWIG_Py_Void();
38587 return resultobj;
38588fail:
38589 return NULL;
d14a1e28
RD
38590}
38591
38592
0085ce49
RD
38593SWIGINTERN PyObject *_wrap_HelpEvent_GetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38594 PyObject *resultobj = 0;
38595 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38596 wxString *result = 0 ;
38597 void *argp1 = 0 ;
38598 int res1 = 0 ;
38599 PyObject *swig_obj[1] ;
38600
38601 if (!args) SWIG_fail;
38602 swig_obj[0] = args;
38603 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38604 if (!SWIG_IsOK(res1)) {
38605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetLink" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
38606 }
38607 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38608 {
38609 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 38610 {
0085ce49
RD
38611 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
38612 result = (wxString *) &_result_ref;
093d3ff1 38613 }
0085ce49
RD
38614 wxPyEndAllowThreads(__tstate);
38615 if (PyErr_Occurred()) SWIG_fail;
38616 }
38617 {
38618#if wxUSE_UNICODE
38619 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
38620#else
38621 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
38622#endif
38623 }
38624 return resultobj;
38625fail:
38626 return NULL;
38627}
38628
38629
38630SWIGINTERN PyObject *_wrap_HelpEvent_SetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38631 PyObject *resultobj = 0;
38632 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38633 wxString *arg2 = 0 ;
38634 void *argp1 = 0 ;
38635 int res1 = 0 ;
38636 bool temp2 = false ;
38637 PyObject * obj0 = 0 ;
38638 PyObject * obj1 = 0 ;
38639 char * kwnames[] = {
38640 (char *) "self",(char *) "link", NULL
38641 };
38642
38643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) SWIG_fail;
38644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38645 if (!SWIG_IsOK(res1)) {
38646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetLink" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
38647 }
38648 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38649 {
38650 arg2 = wxString_in_helper(obj1);
38651 if (arg2 == NULL) SWIG_fail;
38652 temp2 = true;
38653 }
38654 {
38655 PyThreadState* __tstate = wxPyBeginAllowThreads();
38656 (arg1)->SetLink((wxString const &)*arg2);
38657 wxPyEndAllowThreads(__tstate);
38658 if (PyErr_Occurred()) SWIG_fail;
38659 }
38660 resultobj = SWIG_Py_Void();
38661 {
38662 if (temp2)
38663 delete arg2;
38664 }
38665 return resultobj;
38666fail:
38667 {
38668 if (temp2)
38669 delete arg2;
38670 }
38671 return NULL;
d14a1e28
RD
38672}
38673
38674
0085ce49
RD
38675SWIGINTERN PyObject *_wrap_HelpEvent_GetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38676 PyObject *resultobj = 0;
38677 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38678 wxString *result = 0 ;
38679 void *argp1 = 0 ;
38680 int res1 = 0 ;
38681 PyObject *swig_obj[1] ;
38682
38683 if (!args) SWIG_fail;
38684 swig_obj[0] = args;
38685 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38686 if (!SWIG_IsOK(res1)) {
38687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetTarget" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
38688 }
38689 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38690 {
38691 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 38692 {
0085ce49
RD
38693 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
38694 result = (wxString *) &_result_ref;
d14a1e28 38695 }
0085ce49
RD
38696 wxPyEndAllowThreads(__tstate);
38697 if (PyErr_Occurred()) SWIG_fail;
38698 }
38699 {
38700#if wxUSE_UNICODE
38701 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
38702#else
38703 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
38704#endif
38705 }
38706 return resultobj;
38707fail:
38708 return NULL;
38709}
38710
38711
38712SWIGINTERN PyObject *_wrap_HelpEvent_SetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38713 PyObject *resultobj = 0;
38714 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38715 wxString *arg2 = 0 ;
38716 void *argp1 = 0 ;
38717 int res1 = 0 ;
38718 bool temp2 = false ;
38719 PyObject * obj0 = 0 ;
38720 PyObject * obj1 = 0 ;
38721 char * kwnames[] = {
38722 (char *) "self",(char *) "target", NULL
38723 };
38724
38725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) SWIG_fail;
38726 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38727 if (!SWIG_IsOK(res1)) {
38728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetTarget" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
38729 }
38730 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38731 {
38732 arg2 = wxString_in_helper(obj1);
38733 if (arg2 == NULL) SWIG_fail;
38734 temp2 = true;
38735 }
38736 {
38737 PyThreadState* __tstate = wxPyBeginAllowThreads();
38738 (arg1)->SetTarget((wxString const &)*arg2);
38739 wxPyEndAllowThreads(__tstate);
38740 if (PyErr_Occurred()) SWIG_fail;
38741 }
38742 resultobj = SWIG_Py_Void();
38743 {
38744 if (temp2)
38745 delete arg2;
38746 }
38747 return resultobj;
38748fail:
38749 {
38750 if (temp2)
38751 delete arg2;
38752 }
38753 return NULL;
d14a1e28
RD
38754}
38755
38756
0085ce49
RD
38757SWIGINTERN PyObject *HelpEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38758 PyObject *obj;
38759 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38760 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpEvent, SWIG_NewClientData(obj));
38761 return SWIG_Py_Void();
d14a1e28
RD
38762}
38763
0085ce49
RD
38764SWIGINTERN PyObject *HelpEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38765 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
38766}
38767
0085ce49
RD
38768SWIGINTERN PyObject *_wrap_new_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38769 PyObject *resultobj = 0;
38770 wxWindow *arg1 = (wxWindow *) NULL ;
38771 bool arg2 = (bool) true ;
38772 wxContextHelp *result = 0 ;
38773 void *argp1 = 0 ;
38774 int res1 = 0 ;
38775 bool val2 ;
38776 int ecode2 = 0 ;
38777 PyObject * obj0 = 0 ;
38778 PyObject * obj1 = 0 ;
38779 char * kwnames[] = {
38780 (char *) "window",(char *) "doNow", NULL
38781 };
38782
38783 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
38784 if (obj0) {
38785 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38786 if (!SWIG_IsOK(res1)) {
38787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelp" "', expected argument " "1"" of type '" "wxWindow *""'");
d14a1e28 38788 }
0085ce49
RD
38789 arg1 = reinterpret_cast< wxWindow * >(argp1);
38790 }
38791 if (obj1) {
38792 ecode2 = SWIG_AsVal_bool(obj1, &val2);
38793 if (!SWIG_IsOK(ecode2)) {
38794 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelp" "', expected argument " "2"" of type '" "bool""'");
38795 }
38796 arg2 = static_cast< bool >(val2);
38797 }
38798 {
38799 if (!wxPyCheckForApp()) SWIG_fail;
38800 PyThreadState* __tstate = wxPyBeginAllowThreads();
38801 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
38802 wxPyEndAllowThreads(__tstate);
38803 if (PyErr_Occurred()) SWIG_fail;
38804 }
38805 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelp, SWIG_POINTER_NEW | 0 );
38806 return resultobj;
38807fail:
38808 return NULL;
d14a1e28
RD
38809}
38810
38811
0085ce49
RD
38812SWIGINTERN PyObject *_wrap_delete_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38813 PyObject *resultobj = 0;
38814 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
38815 void *argp1 = 0 ;
38816 int res1 = 0 ;
38817 PyObject *swig_obj[1] ;
38818
38819 if (!args) SWIG_fail;
38820 swig_obj[0] = args;
38821 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, SWIG_POINTER_DISOWN | 0 );
38822 if (!SWIG_IsOK(res1)) {
38823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
38824 }
38825 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
38826 {
38827 PyThreadState* __tstate = wxPyBeginAllowThreads();
38828 delete arg1;
3a04f143 38829
0085ce49
RD
38830 wxPyEndAllowThreads(__tstate);
38831 if (PyErr_Occurred()) SWIG_fail;
38832 }
38833 resultobj = SWIG_Py_Void();
38834 return resultobj;
38835fail:
38836 return NULL;
38837}
38838
38839
38840SWIGINTERN PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38841 PyObject *resultobj = 0;
38842 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
38843 wxWindow *arg2 = (wxWindow *) NULL ;
38844 bool result;
38845 void *argp1 = 0 ;
38846 int res1 = 0 ;
38847 void *argp2 = 0 ;
38848 int res2 = 0 ;
38849 PyObject * obj0 = 0 ;
38850 PyObject * obj1 = 0 ;
38851 char * kwnames[] = {
38852 (char *) "self",(char *) "window", NULL
38853 };
38854
38855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
38856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
38857 if (!SWIG_IsOK(res1)) {
38858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
38859 }
38860 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
38861 if (obj1) {
38862 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
38863 if (!SWIG_IsOK(res2)) {
38864 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
3a04f143 38865 }
0085ce49
RD
38866 arg2 = reinterpret_cast< wxWindow * >(argp2);
38867 }
38868 {
38869 PyThreadState* __tstate = wxPyBeginAllowThreads();
38870 result = (bool)(arg1)->BeginContextHelp(arg2);
38871 wxPyEndAllowThreads(__tstate);
38872 if (PyErr_Occurred()) SWIG_fail;
38873 }
38874 {
38875 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38876 }
38877 return resultobj;
38878fail:
38879 return NULL;
3a04f143
RD
38880}
38881
38882
0085ce49
RD
38883SWIGINTERN PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38884 PyObject *resultobj = 0;
38885 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
38886 bool result;
38887 void *argp1 = 0 ;
38888 int res1 = 0 ;
38889 PyObject *swig_obj[1] ;
38890
38891 if (!args) SWIG_fail;
38892 swig_obj[0] = args;
38893 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
38894 if (!SWIG_IsOK(res1)) {
38895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_EndContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
38896 }
38897 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
38898 {
38899 PyThreadState* __tstate = wxPyBeginAllowThreads();
38900 result = (bool)(arg1)->EndContextHelp();
38901 wxPyEndAllowThreads(__tstate);
38902 if (PyErr_Occurred()) SWIG_fail;
38903 }
38904 {
38905 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38906 }
38907 return resultobj;
38908fail:
38909 return NULL;
38910}
38911
38912
38913SWIGINTERN PyObject *ContextHelp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38914 PyObject *obj;
38915 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38916 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelp, SWIG_NewClientData(obj));
38917 return SWIG_Py_Void();
38918}
38919
38920SWIGINTERN PyObject *ContextHelp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38921 return SWIG_Python_InitShadowInstance(args);
38922}
38923
38924SWIGINTERN PyObject *_wrap_new_ContextHelpButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38925 PyObject *resultobj = 0;
38926 wxWindow *arg1 = (wxWindow *) 0 ;
38927 int arg2 = (int) wxID_CONTEXT_HELP ;
38928 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38929 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38930 wxSize const &arg4_defvalue = wxDefaultSize ;
38931 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38932 long arg5 = (long) wxBU_AUTODRAW ;
38933 wxContextHelpButton *result = 0 ;
38934 void *argp1 = 0 ;
38935 int res1 = 0 ;
38936 int val2 ;
38937 int ecode2 = 0 ;
38938 wxPoint temp3 ;
38939 wxSize temp4 ;
38940 long val5 ;
38941 int ecode5 = 0 ;
38942 PyObject * obj0 = 0 ;
38943 PyObject * obj1 = 0 ;
38944 PyObject * obj2 = 0 ;
38945 PyObject * obj3 = 0 ;
38946 PyObject * obj4 = 0 ;
38947 char * kwnames[] = {
38948 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38949 };
38950
38951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38953 if (!SWIG_IsOK(res1)) {
38954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelpButton" "', expected argument " "1"" of type '" "wxWindow *""'");
38955 }
38956 arg1 = reinterpret_cast< wxWindow * >(argp1);
38957 if (obj1) {
38958 ecode2 = SWIG_AsVal_int(obj1, &val2);
38959 if (!SWIG_IsOK(ecode2)) {
38960 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelpButton" "', expected argument " "2"" of type '" "int""'");
38961 }
38962 arg2 = static_cast< int >(val2);
38963 }
38964 if (obj2) {
d14a1e28 38965 {
0085ce49
RD
38966 arg3 = &temp3;
38967 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 38968 }
0085ce49
RD
38969 }
38970 if (obj3) {
4f89f6a3 38971 {
0085ce49
RD
38972 arg4 = &temp4;
38973 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 38974 }
0085ce49
RD
38975 }
38976 if (obj4) {
38977 ecode5 = SWIG_AsVal_long(obj4, &val5);
38978 if (!SWIG_IsOK(ecode5)) {
38979 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ContextHelpButton" "', expected argument " "5"" of type '" "long""'");
38980 }
38981 arg5 = static_cast< long >(val5);
38982 }
38983 {
38984 if (!wxPyCheckForApp()) SWIG_fail;
38985 PyThreadState* __tstate = wxPyBeginAllowThreads();
38986 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
38987 wxPyEndAllowThreads(__tstate);
38988 if (PyErr_Occurred()) SWIG_fail;
38989 }
38990 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelpButton, SWIG_POINTER_NEW | 0 );
38991 return resultobj;
38992fail:
38993 return NULL;
d14a1e28
RD
38994}
38995
38996
0085ce49
RD
38997SWIGINTERN PyObject *ContextHelpButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38998 PyObject *obj;
38999 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39000 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelpButton, SWIG_NewClientData(obj));
39001 return SWIG_Py_Void();
d14a1e28
RD
39002}
39003
0085ce49
RD
39004SWIGINTERN PyObject *ContextHelpButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39005 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
39006}
39007
f52cbe90
RD
39008SWIGINTERN PyObject *_wrap_delete_HelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39009 PyObject *resultobj = 0;
39010 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39011 void *argp1 = 0 ;
39012 int res1 = 0 ;
39013 PyObject *swig_obj[1] ;
39014
39015 if (!args) SWIG_fail;
39016 swig_obj[0] = args;
39017 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
39018 if (!SWIG_IsOK(res1)) {
39019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HelpProvider" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39020 }
39021 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39022 {
39023 PyThreadState* __tstate = wxPyBeginAllowThreads();
39024 delete arg1;
39025
39026 wxPyEndAllowThreads(__tstate);
39027 if (PyErr_Occurred()) SWIG_fail;
39028 }
39029 resultobj = SWIG_Py_Void();
39030 return resultobj;
39031fail:
39032 return NULL;
39033}
39034
39035
0085ce49
RD
39036SWIGINTERN PyObject *_wrap_HelpProvider_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39037 PyObject *resultobj = 0;
39038 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39039 wxHelpProvider *result = 0 ;
39040 int res1 = 0 ;
39041 PyObject * obj0 = 0 ;
39042 char * kwnames[] = {
39043 (char *) "helpProvider", NULL
39044 };
39045
39046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) SWIG_fail;
39047 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
39048 if (!SWIG_IsOK(res1)) {
39049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Set" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39050 }
39051 {
39052 PyThreadState* __tstate = wxPyBeginAllowThreads();
39053 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
39054 wxPyEndAllowThreads(__tstate);
39055 if (PyErr_Occurred()) SWIG_fail;
39056 }
39057 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_OWN | 0 );
39058 return resultobj;
39059fail:
39060 return NULL;
d14a1e28
RD
39061}
39062
39063
0085ce49
RD
39064SWIGINTERN PyObject *_wrap_HelpProvider_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39065 PyObject *resultobj = 0;
39066 wxHelpProvider *result = 0 ;
39067
39068 if (!SWIG_Python_UnpackTuple(args,"HelpProvider_Get",0,0,0)) SWIG_fail;
39069 {
39070 PyThreadState* __tstate = wxPyBeginAllowThreads();
39071 result = (wxHelpProvider *)wxHelpProvider::Get();
39072 wxPyEndAllowThreads(__tstate);
39073 if (PyErr_Occurred()) SWIG_fail;
39074 }
39075 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39076 return resultobj;
39077fail:
39078 return NULL;
39079}
39080
39081
39082SWIGINTERN PyObject *_wrap_HelpProvider_GetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39083 PyObject *resultobj = 0;
39084 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39085 wxWindow *arg2 = (wxWindow *) 0 ;
39086 wxString result;
39087 void *argp1 = 0 ;
39088 int res1 = 0 ;
39089 void *argp2 = 0 ;
39090 int res2 = 0 ;
39091 PyObject * obj0 = 0 ;
39092 PyObject * obj1 = 0 ;
39093 char * kwnames[] = {
39094 (char *) "self",(char *) "window", NULL
39095 };
39096
39097 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39099 if (!SWIG_IsOK(res1)) {
39100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_GetHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39101 }
39102 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39103 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39104 if (!SWIG_IsOK(res2)) {
39105 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_GetHelp" "', expected argument " "2"" of type '" "wxWindow const *""'");
39106 }
39107 arg2 = reinterpret_cast< wxWindow * >(argp2);
39108 {
39109 PyThreadState* __tstate = wxPyBeginAllowThreads();
39110 result = (arg1)->GetHelp((wxWindow const *)arg2);
39111 wxPyEndAllowThreads(__tstate);
39112 if (PyErr_Occurred()) SWIG_fail;
39113 }
39114 {
39115#if wxUSE_UNICODE
39116 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
39117#else
39118 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
39119#endif
39120 }
39121 return resultobj;
39122fail:
39123 return NULL;
39124}
39125
39126
39127SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39128 PyObject *resultobj = 0;
39129 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39130 wxWindow *arg2 = (wxWindow *) 0 ;
39131 bool result;
39132 void *argp1 = 0 ;
39133 int res1 = 0 ;
39134 void *argp2 = 0 ;
39135 int res2 = 0 ;
39136 PyObject * obj0 = 0 ;
39137 PyObject * obj1 = 0 ;
39138 char * kwnames[] = {
39139 (char *) "self",(char *) "window", NULL
39140 };
39141
39142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39144 if (!SWIG_IsOK(res1)) {
39145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39146 }
39147 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39148 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39149 if (!SWIG_IsOK(res2)) {
39150 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39151 }
39152 arg2 = reinterpret_cast< wxWindow * >(argp2);
39153 {
39154 PyThreadState* __tstate = wxPyBeginAllowThreads();
39155 result = (bool)(arg1)->ShowHelp(arg2);
39156 wxPyEndAllowThreads(__tstate);
39157 if (PyErr_Occurred()) SWIG_fail;
39158 }
39159 {
39160 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39161 }
39162 return resultobj;
39163fail:
39164 return NULL;
39165}
39166
39167
39168SWIGINTERN PyObject *_wrap_HelpProvider_AddHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39169 PyObject *resultobj = 0;
39170 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39171 wxWindow *arg2 = (wxWindow *) 0 ;
39172 wxString *arg3 = 0 ;
39173 void *argp1 = 0 ;
39174 int res1 = 0 ;
39175 void *argp2 = 0 ;
39176 int res2 = 0 ;
39177 bool temp3 = false ;
39178 PyObject * obj0 = 0 ;
39179 PyObject * obj1 = 0 ;
39180 PyObject * obj2 = 0 ;
39181 char * kwnames[] = {
39182 (char *) "self",(char *) "window",(char *) "text", NULL
39183 };
39184
39185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39187 if (!SWIG_IsOK(res1)) {
39188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39189 }
39190 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39191 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39192 if (!SWIG_IsOK(res2)) {
39193 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_AddHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39194 }
39195 arg2 = reinterpret_cast< wxWindow * >(argp2);
39196 {
39197 arg3 = wxString_in_helper(obj2);
39198 if (arg3 == NULL) SWIG_fail;
39199 temp3 = true;
39200 }
39201 {
39202 PyThreadState* __tstate = wxPyBeginAllowThreads();
39203 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
39204 wxPyEndAllowThreads(__tstate);
39205 if (PyErr_Occurred()) SWIG_fail;
39206 }
39207 resultobj = SWIG_Py_Void();
39208 {
39209 if (temp3)
39210 delete arg3;
39211 }
39212 return resultobj;
39213fail:
39214 {
39215 if (temp3)
39216 delete arg3;
39217 }
39218 return NULL;
39219}
39220
39221
39222SWIGINTERN PyObject *_wrap_HelpProvider_AddHelpById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39223 PyObject *resultobj = 0;
39224 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39225 int arg2 ;
39226 wxString *arg3 = 0 ;
39227 void *argp1 = 0 ;
39228 int res1 = 0 ;
39229 int val2 ;
39230 int ecode2 = 0 ;
39231 bool temp3 = false ;
39232 PyObject * obj0 = 0 ;
39233 PyObject * obj1 = 0 ;
39234 PyObject * obj2 = 0 ;
39235 char * kwnames[] = {
39236 (char *) "self",(char *) "id",(char *) "text", NULL
39237 };
39238
39239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39240 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39241 if (!SWIG_IsOK(res1)) {
39242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelpById" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39243 }
39244 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39245 ecode2 = SWIG_AsVal_int(obj1, &val2);
39246 if (!SWIG_IsOK(ecode2)) {
39247 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpProvider_AddHelpById" "', expected argument " "2"" of type '" "int""'");
39248 }
39249 arg2 = static_cast< int >(val2);
39250 {
39251 arg3 = wxString_in_helper(obj2);
39252 if (arg3 == NULL) SWIG_fail;
39253 temp3 = true;
39254 }
39255 {
39256 PyThreadState* __tstate = wxPyBeginAllowThreads();
39257 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
39258 wxPyEndAllowThreads(__tstate);
39259 if (PyErr_Occurred()) SWIG_fail;
39260 }
39261 resultobj = SWIG_Py_Void();
39262 {
39263 if (temp3)
39264 delete arg3;
39265 }
39266 return resultobj;
39267fail:
39268 {
39269 if (temp3)
39270 delete arg3;
39271 }
39272 return NULL;
39273}
39274
39275
39276SWIGINTERN PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39277 PyObject *resultobj = 0;
39278 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39279 wxWindow *arg2 = (wxWindow *) 0 ;
39280 void *argp1 = 0 ;
39281 int res1 = 0 ;
39282 void *argp2 = 0 ;
39283 int res2 = 0 ;
39284 PyObject * obj0 = 0 ;
39285 PyObject * obj1 = 0 ;
39286 char * kwnames[] = {
39287 (char *) "self",(char *) "window", NULL
39288 };
39289
39290 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39291 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39292 if (!SWIG_IsOK(res1)) {
39293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39294 }
39295 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39296 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39297 if (!SWIG_IsOK(res2)) {
39298 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39299 }
39300 arg2 = reinterpret_cast< wxWindow * >(argp2);
39301 {
39302 PyThreadState* __tstate = wxPyBeginAllowThreads();
39303 (arg1)->RemoveHelp(arg2);
39304 wxPyEndAllowThreads(__tstate);
39305 if (PyErr_Occurred()) SWIG_fail;
39306 }
39307 resultobj = SWIG_Py_Void();
39308 return resultobj;
39309fail:
39310 return NULL;
d14a1e28
RD
39311}
39312
39313
0085ce49
RD
39314SWIGINTERN PyObject *_wrap_HelpProvider_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39315 PyObject *resultobj = 0;
39316 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39317 void *argp1 = 0 ;
39318 int res1 = 0 ;
39319 PyObject *swig_obj[1] ;
39320
39321 if (!args) SWIG_fail;
39322 swig_obj[0] = args;
39323 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39324 if (!SWIG_IsOK(res1)) {
39325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Destroy" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39326 }
39327 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39328 {
39329 PyThreadState* __tstate = wxPyBeginAllowThreads();
39330 wxHelpProvider_Destroy(arg1);
39331 wxPyEndAllowThreads(__tstate);
39332 if (PyErr_Occurred()) SWIG_fail;
39333 }
39334 resultobj = SWIG_Py_Void();
39335 return resultobj;
39336fail:
39337 return NULL;
22bfe96c
RD
39338}
39339
39340
0085ce49
RD
39341SWIGINTERN PyObject *HelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39342 PyObject *obj;
39343 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39344 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpProvider, SWIG_NewClientData(obj));
39345 return SWIG_Py_Void();
b2dc1044
RD
39346}
39347
0085ce49
RD
39348SWIGINTERN PyObject *_wrap_new_SimpleHelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39349 PyObject *resultobj = 0;
39350 wxSimpleHelpProvider *result = 0 ;
39351
39352 if (!SWIG_Python_UnpackTuple(args,"new_SimpleHelpProvider",0,0,0)) SWIG_fail;
39353 {
39354 PyThreadState* __tstate = wxPyBeginAllowThreads();
39355 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
39356 wxPyEndAllowThreads(__tstate);
39357 if (PyErr_Occurred()) SWIG_fail;
39358 }
39359 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSimpleHelpProvider, SWIG_POINTER_NEW | 0 );
39360 return resultobj;
39361fail:
39362 return NULL;
39363}
39364
39365
39366SWIGINTERN PyObject *SimpleHelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39367 PyObject *obj;
39368 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39369 SWIG_TypeNewClientData(SWIGTYPE_p_wxSimpleHelpProvider, SWIG_NewClientData(obj));
39370 return SWIG_Py_Void();
39371}
39372
39373SWIGINTERN PyObject *SimpleHelpProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39374 return SWIG_Python_InitShadowInstance(args);
39375}
39376
39377SWIGINTERN PyObject *_wrap_new_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39378 PyObject *resultobj = 0;
39379 wxBitmap *arg1 = 0 ;
39380 wxCursor const &arg2_defvalue = wxNullCursor ;
39381 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
39382 wxGenericDragImage *result = 0 ;
39383 void *argp1 = 0 ;
39384 int res1 = 0 ;
39385 void *argp2 = 0 ;
39386 int res2 = 0 ;
39387 PyObject * obj0 = 0 ;
39388 PyObject * obj1 = 0 ;
39389 char * kwnames[] = {
39390 (char *) "image",(char *) "cursor", NULL
39391 };
39392
39393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) SWIG_fail;
39394 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
39395 if (!SWIG_IsOK(res1)) {
39396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
39397 }
39398 if (!argp1) {
39399 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
39400 }
39401 arg1 = reinterpret_cast< wxBitmap * >(argp1);
39402 if (obj1) {
39403 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
39404 if (!SWIG_IsOK(res2)) {
39405 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
d14a1e28 39406 }
0085ce49
RD
39407 if (!argp2) {
39408 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
d14a1e28 39409 }
0085ce49
RD
39410 arg2 = reinterpret_cast< wxCursor * >(argp2);
39411 }
39412 {
39413 if (!wxPyCheckForApp()) SWIG_fail;
39414 PyThreadState* __tstate = wxPyBeginAllowThreads();
39415 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
39416 wxPyEndAllowThreads(__tstate);
39417 if (PyErr_Occurred()) SWIG_fail;
39418 }
39419 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_NEW | 0 );
39420 return resultobj;
39421fail:
39422 return NULL;
39423}
39424
39425
39426SWIGINTERN PyObject *_wrap_new_DragIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39427 PyObject *resultobj = 0;
39428 wxIcon *arg1 = 0 ;
39429 wxCursor const &arg2_defvalue = wxNullCursor ;
39430 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
39431 wxGenericDragImage *result = 0 ;
39432 void *argp1 = 0 ;
39433 int res1 = 0 ;
39434 void *argp2 = 0 ;
39435 int res2 = 0 ;
39436 PyObject * obj0 = 0 ;
39437 PyObject * obj1 = 0 ;
39438 char * kwnames[] = {
39439 (char *) "image",(char *) "cursor", NULL
39440 };
39441
39442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) SWIG_fail;
39443 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
39444 if (!SWIG_IsOK(res1)) {
39445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
39446 }
39447 if (!argp1) {
39448 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
39449 }
39450 arg1 = reinterpret_cast< wxIcon * >(argp1);
39451 if (obj1) {
39452 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
39453 if (!SWIG_IsOK(res2)) {
39454 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
d14a1e28 39455 }
0085ce49
RD
39456 if (!argp2) {
39457 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
d14a1e28 39458 }
0085ce49
RD
39459 arg2 = reinterpret_cast< wxCursor * >(argp2);
39460 }
39461 {
39462 if (!wxPyCheckForApp()) SWIG_fail;
39463 PyThreadState* __tstate = wxPyBeginAllowThreads();
39464 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
39465 wxPyEndAllowThreads(__tstate);
39466 if (PyErr_Occurred()) SWIG_fail;
39467 }
39468 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
39469 return resultobj;
39470fail:
39471 return NULL;
39472}
39473
39474
39475SWIGINTERN PyObject *_wrap_new_DragString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39476 PyObject *resultobj = 0;
39477 wxString *arg1 = 0 ;
39478 wxCursor const &arg2_defvalue = wxNullCursor ;
39479 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
39480 wxGenericDragImage *result = 0 ;
39481 bool temp1 = false ;
39482 void *argp2 = 0 ;
39483 int res2 = 0 ;
39484 PyObject * obj0 = 0 ;
39485 PyObject * obj1 = 0 ;
39486 char * kwnames[] = {
39487 (char *) "str",(char *) "cursor", NULL
39488 };
39489
39490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) SWIG_fail;
39491 {
39492 arg1 = wxString_in_helper(obj0);
39493 if (arg1 == NULL) SWIG_fail;
39494 temp1 = true;
39495 }
39496 if (obj1) {
39497 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
39498 if (!SWIG_IsOK(res2)) {
39499 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
7e08d4ef 39500 }
0085ce49
RD
39501 if (!argp2) {
39502 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
39503 }
39504 arg2 = reinterpret_cast< wxCursor * >(argp2);
39505 }
39506 {
39507 if (!wxPyCheckForApp()) SWIG_fail;
39508 PyThreadState* __tstate = wxPyBeginAllowThreads();
39509 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
39510 wxPyEndAllowThreads(__tstate);
39511 if (PyErr_Occurred()) SWIG_fail;
39512 }
39513 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
39514 {
39515 if (temp1)
39516 delete arg1;
39517 }
39518 return resultobj;
39519fail:
39520 {
39521 if (temp1)
39522 delete arg1;
39523 }
39524 return NULL;
39525}
39526
39527
39528SWIGINTERN PyObject *_wrap_new_DragTreeItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39529 PyObject *resultobj = 0;
39530 wxPyTreeCtrl *arg1 = 0 ;
39531 wxTreeItemId *arg2 = 0 ;
39532 wxGenericDragImage *result = 0 ;
39533 void *argp1 = 0 ;
39534 int res1 = 0 ;
39535 void *argp2 = 0 ;
39536 int res2 = 0 ;
39537 PyObject * obj0 = 0 ;
39538 PyObject * obj1 = 0 ;
39539 char * kwnames[] = {
39540 (char *) "treeCtrl",(char *) "id", NULL
39541 };
39542
39543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) SWIG_fail;
39544 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyTreeCtrl, 0 | 0);
39545 if (!SWIG_IsOK(res1)) {
39546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
39547 }
39548 if (!argp1) {
39549 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
39550 }
39551 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
39552 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 );
39553 if (!SWIG_IsOK(res2)) {
39554 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
39555 }
39556 if (!argp2) {
39557 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
39558 }
39559 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
39560 {
39561 if (!wxPyCheckForApp()) SWIG_fail;
39562 PyThreadState* __tstate = wxPyBeginAllowThreads();
39563 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
39564 wxPyEndAllowThreads(__tstate);
39565 if (PyErr_Occurred()) SWIG_fail;
39566 }
39567 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
39568 return resultobj;
39569fail:
39570 return NULL;
39571}
39572
39573
39574SWIGINTERN PyObject *_wrap_new_DragListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39575 PyObject *resultobj = 0;
39576 wxPyListCtrl *arg1 = 0 ;
39577 long arg2 ;
39578 wxGenericDragImage *result = 0 ;
39579 void *argp1 = 0 ;
39580 int res1 = 0 ;
39581 long val2 ;
39582 int ecode2 = 0 ;
39583 PyObject * obj0 = 0 ;
39584 PyObject * obj1 = 0 ;
39585 char * kwnames[] = {
39586 (char *) "listCtrl",(char *) "id", NULL
39587 };
39588
39589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) SWIG_fail;
39590 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyListCtrl, 0 | 0);
39591 if (!SWIG_IsOK(res1)) {
39592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
39593 }
39594 if (!argp1) {
39595 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
39596 }
39597 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
39598 ecode2 = SWIG_AsVal_long(obj1, &val2);
39599 if (!SWIG_IsOK(ecode2)) {
39600 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DragListItem" "', expected argument " "2"" of type '" "long""'");
39601 }
39602 arg2 = static_cast< long >(val2);
39603 {
39604 if (!wxPyCheckForApp()) SWIG_fail;
39605 PyThreadState* __tstate = wxPyBeginAllowThreads();
39606 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
39607 wxPyEndAllowThreads(__tstate);
39608 if (PyErr_Occurred()) SWIG_fail;
39609 }
39610 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
39611 return resultobj;
39612fail:
39613 return NULL;
7e08d4ef
RD
39614}
39615
39616
0085ce49
RD
39617SWIGINTERN PyObject *_wrap_delete_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39618 PyObject *resultobj = 0;
39619 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
39620 void *argp1 = 0 ;
39621 int res1 = 0 ;
39622 PyObject *swig_obj[1] ;
39623
39624 if (!args) SWIG_fail;
39625 swig_obj[0] = args;
39626 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_DISOWN | 0 );
39627 if (!SWIG_IsOK(res1)) {
39628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DragImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
39629 }
39630 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
39631 {
39632 PyThreadState* __tstate = wxPyBeginAllowThreads();
39633 delete arg1;
d14a1e28 39634
0085ce49
RD
39635 wxPyEndAllowThreads(__tstate);
39636 if (PyErr_Occurred()) SWIG_fail;
39637 }
39638 resultobj = SWIG_Py_Void();
39639 return resultobj;
39640fail:
39641 return NULL;
39642}
39643
39644
39645SWIGINTERN PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39646 PyObject *resultobj = 0;
39647 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
39648 wxBitmap *arg2 = (wxBitmap *) 0 ;
39649 void *argp1 = 0 ;
39650 int res1 = 0 ;
39651 void *argp2 = 0 ;
39652 int res2 = 0 ;
39653 PyObject * obj0 = 0 ;
39654 PyObject * obj1 = 0 ;
39655 char * kwnames[] = {
39656 (char *) "self",(char *) "bitmap", NULL
39657 };
39658
39659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
39660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
39661 if (!SWIG_IsOK(res1)) {
39662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
39663 }
39664 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
39665 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
39666 if (!SWIG_IsOK(res2)) {
39667 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "2"" of type '" "wxBitmap *""'");
39668 }
39669 arg2 = reinterpret_cast< wxBitmap * >(argp2);
39670 {
39671 PyThreadState* __tstate = wxPyBeginAllowThreads();
39672 (arg1)->SetBackingBitmap(arg2);
39673 wxPyEndAllowThreads(__tstate);
39674 if (PyErr_Occurred()) SWIG_fail;
39675 }
39676 resultobj = SWIG_Py_Void();
39677 return resultobj;
39678fail:
39679 return NULL;
39680}
39681
39682
39683SWIGINTERN PyObject *_wrap_DragImage_BeginDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39684 PyObject *resultobj = 0;
39685 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
39686 wxPoint *arg2 = 0 ;
39687 wxWindow *arg3 = (wxWindow *) 0 ;
39688 bool arg4 = (bool) false ;
39689 wxRect *arg5 = (wxRect *) NULL ;
39690 bool result;
39691 void *argp1 = 0 ;
39692 int res1 = 0 ;
39693 wxPoint temp2 ;
39694 void *argp3 = 0 ;
39695 int res3 = 0 ;
39696 bool val4 ;
39697 int ecode4 = 0 ;
39698 void *argp5 = 0 ;
39699 int res5 = 0 ;
39700 PyObject * obj0 = 0 ;
39701 PyObject * obj1 = 0 ;
39702 PyObject * obj2 = 0 ;
39703 PyObject * obj3 = 0 ;
39704 PyObject * obj4 = 0 ;
39705 char * kwnames[] = {
39706 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
39707 };
39708
39709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
39711 if (!SWIG_IsOK(res1)) {
39712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
39713 }
39714 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
39715 {
39716 arg2 = &temp2;
39717 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39718 }
39719 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
39720 if (!SWIG_IsOK(res3)) {
39721 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDrag" "', expected argument " "3"" of type '" "wxWindow *""'");
39722 }
39723 arg3 = reinterpret_cast< wxWindow * >(argp3);
39724 if (obj3) {
39725 ecode4 = SWIG_AsVal_bool(obj3, &val4);
39726 if (!SWIG_IsOK(ecode4)) {
39727 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_BeginDrag" "', expected argument " "4"" of type '" "bool""'");
39728 }
39729 arg4 = static_cast< bool >(val4);
39730 }
39731 if (obj4) {
39732 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxRect, 0 | 0 );
39733 if (!SWIG_IsOK(res5)) {
39734 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DragImage_BeginDrag" "', expected argument " "5"" of type '" "wxRect *""'");
d14a1e28 39735 }
0085ce49
RD
39736 arg5 = reinterpret_cast< wxRect * >(argp5);
39737 }
39738 {
39739 PyThreadState* __tstate = wxPyBeginAllowThreads();
39740 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
39741 wxPyEndAllowThreads(__tstate);
39742 if (PyErr_Occurred()) SWIG_fail;
39743 }
39744 {
39745 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39746 }
39747 return resultobj;
39748fail:
39749 return NULL;
39750}
39751
39752
39753SWIGINTERN PyObject *_wrap_DragImage_BeginDragBounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39754 PyObject *resultobj = 0;
39755 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
39756 wxPoint *arg2 = 0 ;
39757 wxWindow *arg3 = (wxWindow *) 0 ;
39758 wxWindow *arg4 = (wxWindow *) 0 ;
39759 bool result;
39760 void *argp1 = 0 ;
39761 int res1 = 0 ;
39762 wxPoint temp2 ;
39763 void *argp3 = 0 ;
39764 int res3 = 0 ;
39765 void *argp4 = 0 ;
39766 int res4 = 0 ;
39767 PyObject * obj0 = 0 ;
39768 PyObject * obj1 = 0 ;
39769 PyObject * obj2 = 0 ;
39770 PyObject * obj3 = 0 ;
39771 char * kwnames[] = {
39772 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
39773 };
39774
39775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
39776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
39777 if (!SWIG_IsOK(res1)) {
39778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDragBounded" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
39779 }
39780 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
39781 {
39782 arg2 = &temp2;
39783 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39784 }
39785 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
39786 if (!SWIG_IsOK(res3)) {
39787 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDragBounded" "', expected argument " "3"" of type '" "wxWindow *""'");
39788 }
39789 arg3 = reinterpret_cast< wxWindow * >(argp3);
39790 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
39791 if (!SWIG_IsOK(res4)) {
39792 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DragImage_BeginDragBounded" "', expected argument " "4"" of type '" "wxWindow *""'");
39793 }
39794 arg4 = reinterpret_cast< wxWindow * >(argp4);
39795 {
39796 PyThreadState* __tstate = wxPyBeginAllowThreads();
39797 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
39798 wxPyEndAllowThreads(__tstate);
39799 if (PyErr_Occurred()) SWIG_fail;
39800 }
39801 {
39802 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39803 }
39804 return resultobj;
39805fail:
39806 return NULL;
d14a1e28
RD
39807}
39808
39809
0085ce49
RD
39810SWIGINTERN PyObject *_wrap_DragImage_EndDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39811 PyObject *resultobj = 0;
39812 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
39813 bool result;
39814 void *argp1 = 0 ;
39815 int res1 = 0 ;
39816 PyObject *swig_obj[1] ;
39817
39818 if (!args) SWIG_fail;
39819 swig_obj[0] = args;
39820 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
39821 if (!SWIG_IsOK(res1)) {
39822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_EndDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
39823 }
39824 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
39825 {
39826 PyThreadState* __tstate = wxPyBeginAllowThreads();
39827 result = (bool)(arg1)->EndDrag();
39828 wxPyEndAllowThreads(__tstate);
39829 if (PyErr_Occurred()) SWIG_fail;
39830 }
39831 {
39832 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39833 }
39834 return resultobj;
39835fail:
39836 return NULL;
39837}
39838
39839
39840SWIGINTERN PyObject *_wrap_DragImage_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39841 PyObject *resultobj = 0;
39842 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
39843 wxPoint *arg2 = 0 ;
39844 bool result;
39845 void *argp1 = 0 ;
39846 int res1 = 0 ;
39847 wxPoint temp2 ;
39848 PyObject * obj0 = 0 ;
39849 PyObject * obj1 = 0 ;
39850 char * kwnames[] = {
39851 (char *) "self",(char *) "pt", NULL
39852 };
39853
39854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) SWIG_fail;
39855 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
39856 if (!SWIG_IsOK(res1)) {
39857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Move" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
39858 }
39859 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
39860 {
39861 arg2 = &temp2;
39862 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39863 }
39864 {
39865 PyThreadState* __tstate = wxPyBeginAllowThreads();
39866 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
39867 wxPyEndAllowThreads(__tstate);
39868 if (PyErr_Occurred()) SWIG_fail;
39869 }
39870 {
39871 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39872 }
39873 return resultobj;
39874fail:
39875 return NULL;
d14a1e28
RD
39876}
39877
39878
0085ce49
RD
39879SWIGINTERN PyObject *_wrap_DragImage_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39880 PyObject *resultobj = 0;
39881 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
39882 bool result;
39883 void *argp1 = 0 ;
39884 int res1 = 0 ;
39885 PyObject *swig_obj[1] ;
39886
39887 if (!args) SWIG_fail;
39888 swig_obj[0] = args;
39889 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
39890 if (!SWIG_IsOK(res1)) {
39891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Show" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
39892 }
39893 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
39894 {
39895 PyThreadState* __tstate = wxPyBeginAllowThreads();
39896 result = (bool)(arg1)->Show();
39897 wxPyEndAllowThreads(__tstate);
39898 if (PyErr_Occurred()) SWIG_fail;
39899 }
39900 {
39901 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39902 }
39903 return resultobj;
39904fail:
39905 return NULL;
d14a1e28
RD
39906}
39907
39908
0085ce49
RD
39909SWIGINTERN PyObject *_wrap_DragImage_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39910 PyObject *resultobj = 0;
39911 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
39912 bool result;
39913 void *argp1 = 0 ;
39914 int res1 = 0 ;
39915 PyObject *swig_obj[1] ;
39916
39917 if (!args) SWIG_fail;
39918 swig_obj[0] = args;
39919 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
39920 if (!SWIG_IsOK(res1)) {
39921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Hide" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
39922 }
39923 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
39924 {
39925 PyThreadState* __tstate = wxPyBeginAllowThreads();
39926 result = (bool)(arg1)->Hide();
39927 wxPyEndAllowThreads(__tstate);
39928 if (PyErr_Occurred()) SWIG_fail;
39929 }
39930 {
39931 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39932 }
39933 return resultobj;
39934fail:
39935 return NULL;
39936}
39937
39938
39939SWIGINTERN PyObject *_wrap_DragImage_GetImageRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39940 PyObject *resultobj = 0;
39941 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
39942 wxPoint *arg2 = 0 ;
39943 wxRect result;
39944 void *argp1 = 0 ;
39945 int res1 = 0 ;
39946 wxPoint temp2 ;
39947 PyObject * obj0 = 0 ;
39948 PyObject * obj1 = 0 ;
39949 char * kwnames[] = {
39950 (char *) "self",(char *) "pos", NULL
39951 };
39952
39953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) SWIG_fail;
39954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
39955 if (!SWIG_IsOK(res1)) {
39956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_GetImageRect" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
39957 }
39958 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
39959 {
39960 arg2 = &temp2;
39961 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39962 }
39963 {
39964 PyThreadState* __tstate = wxPyBeginAllowThreads();
39965 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
39966 wxPyEndAllowThreads(__tstate);
39967 if (PyErr_Occurred()) SWIG_fail;
39968 }
39969 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
39970 return resultobj;
39971fail:
39972 return NULL;
39973}
39974
39975
39976SWIGINTERN PyObject *_wrap_DragImage_DoDrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39977 PyObject *resultobj = 0;
39978 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
39979 wxDC *arg2 = 0 ;
39980 wxPoint *arg3 = 0 ;
39981 bool result;
39982 void *argp1 = 0 ;
39983 int res1 = 0 ;
39984 void *argp2 = 0 ;
39985 int res2 = 0 ;
39986 wxPoint temp3 ;
39987 PyObject * obj0 = 0 ;
39988 PyObject * obj1 = 0 ;
39989 PyObject * obj2 = 0 ;
39990 char * kwnames[] = {
39991 (char *) "self",(char *) "dc",(char *) "pos", NULL
39992 };
39993
39994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
39996 if (!SWIG_IsOK(res1)) {
39997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_DoDrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
39998 }
39999 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40000 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
40001 if (!SWIG_IsOK(res2)) {
40002 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
40003 }
40004 if (!argp2) {
40005 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
40006 }
40007 arg2 = reinterpret_cast< wxDC * >(argp2);
40008 {
40009 arg3 = &temp3;
40010 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40011 }
40012 {
40013 PyThreadState* __tstate = wxPyBeginAllowThreads();
40014 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
40015 wxPyEndAllowThreads(__tstate);
40016 if (PyErr_Occurred()) SWIG_fail;
40017 }
40018 {
40019 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40020 }
40021 return resultobj;
40022fail:
40023 return NULL;
40024}
40025
40026
40027SWIGINTERN PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40028 PyObject *resultobj = 0;
40029 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40030 wxDC *arg2 = 0 ;
40031 wxMemoryDC *arg3 = 0 ;
40032 wxRect *arg4 = 0 ;
40033 wxRect *arg5 = 0 ;
40034 bool result;
40035 void *argp1 = 0 ;
40036 int res1 = 0 ;
40037 void *argp2 = 0 ;
40038 int res2 = 0 ;
40039 void *argp3 = 0 ;
40040 int res3 = 0 ;
40041 wxRect temp4 ;
40042 wxRect temp5 ;
40043 PyObject * obj0 = 0 ;
40044 PyObject * obj1 = 0 ;
40045 PyObject * obj2 = 0 ;
40046 PyObject * obj3 = 0 ;
40047 PyObject * obj4 = 0 ;
40048 char * kwnames[] = {
40049 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
40050 };
40051
40052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40054 if (!SWIG_IsOK(res1)) {
40055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40056 }
40057 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40058 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
40059 if (!SWIG_IsOK(res2)) {
40060 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
40061 }
40062 if (!argp2) {
40063 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
40064 }
40065 arg2 = reinterpret_cast< wxDC * >(argp2);
40066 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxMemoryDC, 0 );
40067 if (!SWIG_IsOK(res3)) {
40068 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
40069 }
40070 if (!argp3) {
40071 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
40072 }
40073 arg3 = reinterpret_cast< wxMemoryDC * >(argp3);
40074 {
40075 arg4 = &temp4;
40076 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
40077 }
40078 {
40079 arg5 = &temp5;
40080 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
40081 }
40082 {
40083 PyThreadState* __tstate = wxPyBeginAllowThreads();
40084 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
40085 wxPyEndAllowThreads(__tstate);
40086 if (PyErr_Occurred()) SWIG_fail;
40087 }
40088 {
40089 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40090 }
40091 return resultobj;
40092fail:
40093 return NULL;
40094}
40095
40096
40097SWIGINTERN PyObject *_wrap_DragImage_RedrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40098 PyObject *resultobj = 0;
40099 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40100 wxPoint *arg2 = 0 ;
40101 wxPoint *arg3 = 0 ;
40102 bool arg4 ;
40103 bool arg5 ;
40104 bool result;
40105 void *argp1 = 0 ;
40106 int res1 = 0 ;
40107 wxPoint temp2 ;
40108 wxPoint temp3 ;
40109 bool val4 ;
40110 int ecode4 = 0 ;
40111 bool val5 ;
40112 int ecode5 = 0 ;
40113 PyObject * obj0 = 0 ;
40114 PyObject * obj1 = 0 ;
40115 PyObject * obj2 = 0 ;
40116 PyObject * obj3 = 0 ;
40117 PyObject * obj4 = 0 ;
40118 char * kwnames[] = {
40119 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
40120 };
40121
40122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40124 if (!SWIG_IsOK(res1)) {
40125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_RedrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40126 }
40127 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40128 {
40129 arg2 = &temp2;
40130 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40131 }
40132 {
40133 arg3 = &temp3;
40134 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40135 }
40136 ecode4 = SWIG_AsVal_bool(obj3, &val4);
40137 if (!SWIG_IsOK(ecode4)) {
40138 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_RedrawImage" "', expected argument " "4"" of type '" "bool""'");
40139 }
40140 arg4 = static_cast< bool >(val4);
40141 ecode5 = SWIG_AsVal_bool(obj4, &val5);
40142 if (!SWIG_IsOK(ecode5)) {
40143 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DragImage_RedrawImage" "', expected argument " "5"" of type '" "bool""'");
40144 }
40145 arg5 = static_cast< bool >(val5);
40146 {
40147 PyThreadState* __tstate = wxPyBeginAllowThreads();
40148 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
40149 wxPyEndAllowThreads(__tstate);
40150 if (PyErr_Occurred()) SWIG_fail;
40151 }
40152 {
40153 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40154 }
40155 return resultobj;
40156fail:
40157 return NULL;
d14a1e28
RD
40158}
40159
40160
0085ce49
RD
40161SWIGINTERN PyObject *DragImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40162 PyObject *obj;
40163 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40164 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDragImage, SWIG_NewClientData(obj));
40165 return SWIG_Py_Void();
d14a1e28
RD
40166}
40167
0085ce49
RD
40168SWIGINTERN PyObject *DragImage_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40169 return SWIG_Python_InitShadowInstance(args);
40170}
d14a1e28 40171
0085ce49
RD
40172SWIGINTERN int DatePickerCtrlNameStr_set(PyObject *) {
40173 SWIG_Error(SWIG_AttributeError,"Variable DatePickerCtrlNameStr is read-only.");
40174 return 1;
d14a1e28
RD
40175}
40176
40177
0085ce49
RD
40178SWIGINTERN PyObject *DatePickerCtrlNameStr_get(void) {
40179 PyObject *pyobj = 0;
40180
40181 {
40182#if wxUSE_UNICODE
40183 pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
40184#else
40185 pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
40186#endif
40187 }
40188 return pyobj;
40189}
40190
40191
40192SWIGINTERN PyObject *_wrap_new_DatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40193 PyObject *resultobj = 0;
40194 wxWindow *arg1 = (wxWindow *) 0 ;
40195 int arg2 = (int) -1 ;
40196 wxDateTime const &arg3_defvalue = wxDefaultDateTime ;
40197 wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ;
40198 wxPoint const &arg4_defvalue = wxDefaultPosition ;
40199 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
40200 wxSize const &arg5_defvalue = wxDefaultSize ;
40201 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
40202 long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
40203 wxValidator const &arg7_defvalue = wxDefaultValidator ;
40204 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
40205 wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ;
40206 wxString *arg8 = (wxString *) &arg8_defvalue ;
40207 wxDatePickerCtrl *result = 0 ;
40208 void *argp1 = 0 ;
40209 int res1 = 0 ;
40210 int val2 ;
40211 int ecode2 = 0 ;
40212 void *argp3 = 0 ;
40213 int res3 = 0 ;
40214 wxPoint temp4 ;
40215 wxSize temp5 ;
40216 long val6 ;
40217 int ecode6 = 0 ;
40218 void *argp7 = 0 ;
40219 int res7 = 0 ;
40220 bool temp8 = false ;
40221 PyObject * obj0 = 0 ;
40222 PyObject * obj1 = 0 ;
40223 PyObject * obj2 = 0 ;
40224 PyObject * obj3 = 0 ;
40225 PyObject * obj4 = 0 ;
40226 PyObject * obj5 = 0 ;
40227 PyObject * obj6 = 0 ;
40228 PyObject * obj7 = 0 ;
40229 char * kwnames[] = {
40230 (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
40231 };
40232
40233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
40234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40235 if (!SWIG_IsOK(res1)) {
40236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
40237 }
40238 arg1 = reinterpret_cast< wxWindow * >(argp1);
40239 if (obj1) {
40240 ecode2 = SWIG_AsVal_int(obj1, &val2);
40241 if (!SWIG_IsOK(ecode2)) {
40242 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatePickerCtrl" "', expected argument " "2"" of type '" "int""'");
40243 }
40244 arg2 = static_cast< int >(val2);
40245 }
40246 if (obj2) {
40247 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
40248 if (!SWIG_IsOK(res3)) {
40249 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
d14a1e28 40250 }
0085ce49
RD
40251 if (!argp3) {
40252 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
d14a1e28 40253 }
0085ce49
RD
40254 arg3 = reinterpret_cast< wxDateTime * >(argp3);
40255 }
40256 if (obj3) {
d14a1e28 40257 {
0085ce49
RD
40258 arg4 = &temp4;
40259 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 40260 }
0085ce49
RD
40261 }
40262 if (obj4) {
d14a1e28 40263 {
0085ce49
RD
40264 arg5 = &temp5;
40265 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 40266 }
0085ce49
RD
40267 }
40268 if (obj5) {
40269 ecode6 = SWIG_AsVal_long(obj5, &val6);
40270 if (!SWIG_IsOK(ecode6)) {
40271 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DatePickerCtrl" "', expected argument " "6"" of type '" "long""'");
40272 }
40273 arg6 = static_cast< long >(val6);
40274 }
40275 if (obj6) {
40276 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
40277 if (!SWIG_IsOK(res7)) {
40278 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
40279 }
40280 if (!argp7) {
40281 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 40282 }
0085ce49
RD
40283 arg7 = reinterpret_cast< wxValidator * >(argp7);
40284 }
40285 if (obj7) {
d14a1e28 40286 {
0085ce49
RD
40287 arg8 = wxString_in_helper(obj7);
40288 if (arg8 == NULL) SWIG_fail;
40289 temp8 = true;
d14a1e28 40290 }
0085ce49
RD
40291 }
40292 {
40293 if (!wxPyCheckForApp()) SWIG_fail;
40294 PyThreadState* __tstate = wxPyBeginAllowThreads();
40295 result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
40296 wxPyEndAllowThreads(__tstate);
40297 if (PyErr_Occurred()) SWIG_fail;
40298 }
40299 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_NEW | 0 );
40300 {
40301 if (temp8)
40302 delete arg8;
40303 }
40304 return resultobj;
40305fail:
40306 {
40307 if (temp8)
40308 delete arg8;
40309 }
40310 return NULL;
d14a1e28
RD
40311}
40312
40313
0085ce49
RD
40314SWIGINTERN PyObject *_wrap_new_PreDatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40315 PyObject *resultobj = 0;
40316 wxDatePickerCtrl *result = 0 ;
40317
40318 if (!SWIG_Python_UnpackTuple(args,"new_PreDatePickerCtrl",0,0,0)) SWIG_fail;
40319 {
40320 if (!wxPyCheckForApp()) SWIG_fail;
40321 PyThreadState* __tstate = wxPyBeginAllowThreads();
40322 result = (wxDatePickerCtrl *)new wxDatePickerCtrl();
40323 wxPyEndAllowThreads(__tstate);
40324 if (PyErr_Occurred()) SWIG_fail;
40325 }
40326 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_OWN | 0 );
40327 return resultobj;
40328fail:
40329 return NULL;
40330}
40331
40332
40333SWIGINTERN PyObject *_wrap_DatePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40334 PyObject *resultobj = 0;
40335 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40336 wxWindow *arg2 = (wxWindow *) 0 ;
40337 int arg3 = (int) -1 ;
40338 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
40339 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
40340 wxPoint const &arg5_defvalue = wxDefaultPosition ;
40341 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
40342 wxSize const &arg6_defvalue = wxDefaultSize ;
40343 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
40344 long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
40345 wxValidator const &arg8_defvalue = wxDefaultValidator ;
40346 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
40347 wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ;
40348 wxString *arg9 = (wxString *) &arg9_defvalue ;
40349 bool result;
40350 void *argp1 = 0 ;
40351 int res1 = 0 ;
40352 void *argp2 = 0 ;
40353 int res2 = 0 ;
40354 int val3 ;
40355 int ecode3 = 0 ;
40356 void *argp4 = 0 ;
40357 int res4 = 0 ;
40358 wxPoint temp5 ;
40359 wxSize temp6 ;
40360 long val7 ;
40361 int ecode7 = 0 ;
40362 void *argp8 = 0 ;
40363 int res8 = 0 ;
40364 bool temp9 = false ;
40365 PyObject * obj0 = 0 ;
40366 PyObject * obj1 = 0 ;
40367 PyObject * obj2 = 0 ;
40368 PyObject * obj3 = 0 ;
40369 PyObject * obj4 = 0 ;
40370 PyObject * obj5 = 0 ;
40371 PyObject * obj6 = 0 ;
40372 PyObject * obj7 = 0 ;
40373 PyObject * obj8 = 0 ;
40374 char * kwnames[] = {
40375 (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
40376 };
40377
40378 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
40379 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40380 if (!SWIG_IsOK(res1)) {
40381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_Create" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
40382 }
40383 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40384 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40385 if (!SWIG_IsOK(res2)) {
40386 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
40387 }
40388 arg2 = reinterpret_cast< wxWindow * >(argp2);
40389 if (obj2) {
40390 ecode3 = SWIG_AsVal_int(obj2, &val3);
40391 if (!SWIG_IsOK(ecode3)) {
40392 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DatePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
40393 }
40394 arg3 = static_cast< int >(val3);
40395 }
40396 if (obj3) {
40397 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDateTime, 0 | 0);
40398 if (!SWIG_IsOK(res4)) {
40399 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
7e08d4ef 40400 }
0085ce49
RD
40401 if (!argp4) {
40402 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
7e08d4ef 40403 }
0085ce49
RD
40404 arg4 = reinterpret_cast< wxDateTime * >(argp4);
40405 }
40406 if (obj4) {
d14a1e28 40407 {
0085ce49
RD
40408 arg5 = &temp5;
40409 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 40410 }
0085ce49
RD
40411 }
40412 if (obj5) {
d14a1e28 40413 {
0085ce49
RD
40414 arg6 = &temp6;
40415 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
40416 }
40417 }
40418 if (obj6) {
40419 ecode7 = SWIG_AsVal_long(obj6, &val7);
40420 if (!SWIG_IsOK(ecode7)) {
40421 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DatePickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
40422 }
40423 arg7 = static_cast< long >(val7);
40424 }
40425 if (obj7) {
40426 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
40427 if (!SWIG_IsOK(res8)) {
40428 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
40429 }
40430 if (!argp8) {
40431 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 40432 }
0085ce49
RD
40433 arg8 = reinterpret_cast< wxValidator * >(argp8);
40434 }
40435 if (obj8) {
d14a1e28 40436 {
0085ce49
RD
40437 arg9 = wxString_in_helper(obj8);
40438 if (arg9 == NULL) SWIG_fail;
40439 temp9 = true;
d14a1e28 40440 }
0085ce49
RD
40441 }
40442 {
40443 PyThreadState* __tstate = wxPyBeginAllowThreads();
40444 result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
40445 wxPyEndAllowThreads(__tstate);
40446 if (PyErr_Occurred()) SWIG_fail;
40447 }
40448 {
40449 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40450 }
40451 {
40452 if (temp9)
40453 delete arg9;
40454 }
40455 return resultobj;
40456fail:
40457 {
40458 if (temp9)
40459 delete arg9;
40460 }
40461 return NULL;
40462}
40463
40464
40465SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40466 PyObject *resultobj = 0;
40467 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40468 wxDateTime *arg2 = 0 ;
40469 void *argp1 = 0 ;
40470 int res1 = 0 ;
40471 void *argp2 = 0 ;
40472 int res2 = 0 ;
40473 PyObject * obj0 = 0 ;
40474 PyObject * obj1 = 0 ;
40475 char * kwnames[] = {
40476 (char *) "self",(char *) "dt", NULL
40477 };
40478
40479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
40480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40481 if (!SWIG_IsOK(res1)) {
40482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
40483 }
40484 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40485 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
40486 if (!SWIG_IsOK(res2)) {
40487 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
40488 }
40489 if (!argp2) {
40490 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
40491 }
40492 arg2 = reinterpret_cast< wxDateTime * >(argp2);
40493 {
40494 PyThreadState* __tstate = wxPyBeginAllowThreads();
40495 (arg1)->SetValue((wxDateTime const &)*arg2);
40496 wxPyEndAllowThreads(__tstate);
40497 if (PyErr_Occurred()) SWIG_fail;
40498 }
40499 resultobj = SWIG_Py_Void();
40500 return resultobj;
40501fail:
40502 return NULL;
d14a1e28
RD
40503}
40504
40505
0085ce49
RD
40506SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40507 PyObject *resultobj = 0;
40508 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40509 wxDateTime result;
40510 void *argp1 = 0 ;
40511 int res1 = 0 ;
40512 PyObject *swig_obj[1] ;
40513
40514 if (!args) SWIG_fail;
40515 swig_obj[0] = args;
40516 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40517 if (!SWIG_IsOK(res1)) {
40518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl const *""'");
40519 }
40520 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40521 {
40522 PyThreadState* __tstate = wxPyBeginAllowThreads();
40523 result = ((wxDatePickerCtrl const *)arg1)->GetValue();
40524 wxPyEndAllowThreads(__tstate);
40525 if (PyErr_Occurred()) SWIG_fail;
40526 }
40527 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
40528 return resultobj;
40529fail:
40530 return NULL;
40531}
40532
40533
40534SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40535 PyObject *resultobj = 0;
40536 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40537 wxDateTime *arg2 = 0 ;
40538 wxDateTime *arg3 = 0 ;
40539 void *argp1 = 0 ;
40540 int res1 = 0 ;
40541 void *argp2 = 0 ;
40542 int res2 = 0 ;
40543 void *argp3 = 0 ;
40544 int res3 = 0 ;
40545 PyObject * obj0 = 0 ;
40546 PyObject * obj1 = 0 ;
40547 PyObject * obj2 = 0 ;
40548 char * kwnames[] = {
40549 (char *) "self",(char *) "dt1",(char *) "dt2", NULL
40550 };
40551
40552 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40553 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40554 if (!SWIG_IsOK(res1)) {
40555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
40556 }
40557 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40558 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
40559 if (!SWIG_IsOK(res2)) {
40560 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
40561 }
40562 if (!argp2) {
40563 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
40564 }
40565 arg2 = reinterpret_cast< wxDateTime * >(argp2);
40566 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
40567 if (!SWIG_IsOK(res3)) {
40568 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
40569 }
40570 if (!argp3) {
40571 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
40572 }
40573 arg3 = reinterpret_cast< wxDateTime * >(argp3);
40574 {
40575 PyThreadState* __tstate = wxPyBeginAllowThreads();
40576 (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
40577 wxPyEndAllowThreads(__tstate);
40578 if (PyErr_Occurred()) SWIG_fail;
40579 }
40580 resultobj = SWIG_Py_Void();
40581 return resultobj;
40582fail:
40583 return NULL;
d14a1e28
RD
40584}
40585
40586
0085ce49
RD
40587SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40588 PyObject *resultobj = 0;
40589 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40590 wxDateTime result;
40591 void *argp1 = 0 ;
40592 int res1 = 0 ;
40593 PyObject *swig_obj[1] ;
40594
40595 if (!args) SWIG_fail;
40596 swig_obj[0] = args;
40597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40598 if (!SWIG_IsOK(res1)) {
40599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetLowerLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
40600 }
40601 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40602 {
40603 PyThreadState* __tstate = wxPyBeginAllowThreads();
40604 result = wxDatePickerCtrl_GetLowerLimit(arg1);
40605 wxPyEndAllowThreads(__tstate);
40606 if (PyErr_Occurred()) SWIG_fail;
40607 }
40608 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
40609 return resultobj;
40610fail:
40611 return NULL;
d14a1e28
RD
40612}
40613
40614
0085ce49
RD
40615SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40616 PyObject *resultobj = 0;
40617 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40618 wxDateTime result;
40619 void *argp1 = 0 ;
40620 int res1 = 0 ;
40621 PyObject *swig_obj[1] ;
40622
40623 if (!args) SWIG_fail;
40624 swig_obj[0] = args;
40625 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40626 if (!SWIG_IsOK(res1)) {
40627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetUpperLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
40628 }
40629 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40630 {
40631 PyThreadState* __tstate = wxPyBeginAllowThreads();
40632 result = wxDatePickerCtrl_GetUpperLimit(arg1);
40633 wxPyEndAllowThreads(__tstate);
40634 if (PyErr_Occurred()) SWIG_fail;
40635 }
40636 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
40637 return resultobj;
40638fail:
40639 return NULL;
d14a1e28
RD
40640}
40641
40642
0085ce49
RD
40643SWIGINTERN PyObject *DatePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40644 PyObject *obj;
40645 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40646 SWIG_TypeNewClientData(SWIGTYPE_p_wxDatePickerCtrl, SWIG_NewClientData(obj));
40647 return SWIG_Py_Void();
d14a1e28
RD
40648}
40649
0085ce49
RD
40650SWIGINTERN PyObject *DatePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40651 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
40652}
40653
0085ce49
RD
40654static PyMethodDef SwigMethods[] = {
40655 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL},
40656 { (char *)"new_PreButton", (PyCFunction)_wrap_new_PreButton, METH_NOARGS, NULL},
40657 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40658 { (char *)"Button_SetDefault", (PyCFunction)_wrap_Button_SetDefault, METH_O, NULL},
40659 { (char *)"Button_GetDefaultSize", (PyCFunction)_wrap_Button_GetDefaultSize, METH_NOARGS, NULL},
40660 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40661 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL},
40662 { (char *)"Button_swiginit", Button_swiginit, METH_VARARGS, NULL},
40663 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL},
40664 { (char *)"new_PreBitmapButton", (PyCFunction)_wrap_new_PreBitmapButton, METH_NOARGS, NULL},
40665 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40666 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction)_wrap_BitmapButton_GetBitmapLabel, METH_O, NULL},
40667 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction)_wrap_BitmapButton_GetBitmapDisabled, METH_O, NULL},
40668 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction)_wrap_BitmapButton_GetBitmapFocus, METH_O, NULL},
40669 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction)_wrap_BitmapButton_GetBitmapSelected, METH_O, NULL},
40670 { (char *)"BitmapButton_GetBitmapHover", (PyCFunction)_wrap_BitmapButton_GetBitmapHover, METH_O, NULL},
40671 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL},
40672 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL},
40673 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL},
40674 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL},
40675 { (char *)"BitmapButton_SetBitmapHover", (PyCFunction) _wrap_BitmapButton_SetBitmapHover, METH_VARARGS | METH_KEYWORDS, NULL},
40676 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
40677 { (char *)"BitmapButton_GetMarginX", (PyCFunction)_wrap_BitmapButton_GetMarginX, METH_O, NULL},
40678 { (char *)"BitmapButton_GetMarginY", (PyCFunction)_wrap_BitmapButton_GetMarginY, METH_O, NULL},
40679 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL},
40680 { (char *)"BitmapButton_swiginit", BitmapButton_swiginit, METH_VARARGS, NULL},
40681 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
40682 { (char *)"new_PreCheckBox", (PyCFunction)_wrap_new_PreCheckBox, METH_NOARGS, NULL},
40683 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40684 { (char *)"CheckBox_GetValue", (PyCFunction)_wrap_CheckBox_GetValue, METH_O, NULL},
40685 { (char *)"CheckBox_IsChecked", (PyCFunction)_wrap_CheckBox_IsChecked, METH_O, NULL},
40686 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
40687 { (char *)"CheckBox_Get3StateValue", (PyCFunction)_wrap_CheckBox_Get3StateValue, METH_O, NULL},
40688 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL},
40689 { (char *)"CheckBox_Is3State", (PyCFunction)_wrap_CheckBox_Is3State, METH_O, NULL},
40690 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction)_wrap_CheckBox_Is3rdStateAllowedForUser, METH_O, NULL},
40691 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40692 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL},
40693 { (char *)"CheckBox_swiginit", CheckBox_swiginit, METH_VARARGS, NULL},
40694 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL},
40695 { (char *)"new_PreChoice", (PyCFunction)_wrap_new_PreChoice, METH_NOARGS, NULL},
40696 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40697 { (char *)"Choice_GetCurrentSelection", (PyCFunction)_wrap_Choice_GetCurrentSelection, METH_O, NULL},
40698 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40699 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL},
40700 { (char *)"Choice_swiginit", Choice_swiginit, METH_VARARGS, NULL},
40701 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL},
40702 { (char *)"new_PreComboBox", (PyCFunction)_wrap_new_PreComboBox, METH_NOARGS, NULL},
40703 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40704 { (char *)"ComboBox_GetValue", (PyCFunction)_wrap_ComboBox_GetValue, METH_O, NULL},
40705 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
40706 { (char *)"ComboBox_Copy", (PyCFunction)_wrap_ComboBox_Copy, METH_O, NULL},
40707 { (char *)"ComboBox_Cut", (PyCFunction)_wrap_ComboBox_Cut, METH_O, NULL},
40708 { (char *)"ComboBox_Paste", (PyCFunction)_wrap_ComboBox_Paste, METH_O, NULL},
40709 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40710 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction)_wrap_ComboBox_GetInsertionPoint, METH_O, NULL},
40711 { (char *)"ComboBox_GetLastPosition", (PyCFunction)_wrap_ComboBox_GetLastPosition, METH_O, NULL},
40712 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
40713 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL},
40714 { (char *)"ComboBox_GetMark", (PyCFunction)_wrap_ComboBox_GetMark, METH_O, NULL},
40715 { (char *)"ComboBox_GetCurrentSelection", (PyCFunction)_wrap_ComboBox_GetCurrentSelection, METH_O, NULL},
40716 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
50f151d7 40717 { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
40718 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
40719 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction)_wrap_ComboBox_SetInsertionPointEnd, METH_O, NULL},
40720 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
40721 { (char *)"ComboBox_IsEditable", (PyCFunction)_wrap_ComboBox_IsEditable, METH_O, NULL},
40722 { (char *)"ComboBox_Undo", (PyCFunction)_wrap_ComboBox_Undo, METH_O, NULL},
40723 { (char *)"ComboBox_Redo", (PyCFunction)_wrap_ComboBox_Redo, METH_O, NULL},
40724 { (char *)"ComboBox_SelectAll", (PyCFunction)_wrap_ComboBox_SelectAll, METH_O, NULL},
40725 { (char *)"ComboBox_CanCopy", (PyCFunction)_wrap_ComboBox_CanCopy, METH_O, NULL},
40726 { (char *)"ComboBox_CanCut", (PyCFunction)_wrap_ComboBox_CanCut, METH_O, NULL},
40727 { (char *)"ComboBox_CanPaste", (PyCFunction)_wrap_ComboBox_CanPaste, METH_O, NULL},
40728 { (char *)"ComboBox_CanUndo", (PyCFunction)_wrap_ComboBox_CanUndo, METH_O, NULL},
40729 { (char *)"ComboBox_CanRedo", (PyCFunction)_wrap_ComboBox_CanRedo, METH_O, NULL},
40730 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40731 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL},
40732 { (char *)"ComboBox_swiginit", ComboBox_swiginit, METH_VARARGS, NULL},
40733 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL},
40734 { (char *)"new_PreGauge", (PyCFunction)_wrap_new_PreGauge, METH_NOARGS, NULL},
40735 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40736 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
40737 { (char *)"Gauge_GetRange", (PyCFunction)_wrap_Gauge_GetRange, METH_O, NULL},
40738 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
40739 { (char *)"Gauge_GetValue", (PyCFunction)_wrap_Gauge_GetValue, METH_O, NULL},
40740 { (char *)"Gauge_IsVertical", (PyCFunction)_wrap_Gauge_IsVertical, METH_O, NULL},
40741 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL},
40742 { (char *)"Gauge_GetShadowWidth", (PyCFunction)_wrap_Gauge_GetShadowWidth, METH_O, NULL},
40743 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL},
40744 { (char *)"Gauge_GetBezelFace", (PyCFunction)_wrap_Gauge_GetBezelFace, METH_O, NULL},
40745 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40746 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL},
40747 { (char *)"Gauge_swiginit", Gauge_swiginit, METH_VARARGS, NULL},
40748 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL},
40749 { (char *)"new_PreStaticBox", (PyCFunction)_wrap_new_PreStaticBox, METH_NOARGS, NULL},
40750 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40751 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40752 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL},
40753 { (char *)"StaticBox_swiginit", StaticBox_swiginit, METH_VARARGS, NULL},
40754 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL},
40755 { (char *)"new_PreStaticLine", (PyCFunction)_wrap_new_PreStaticLine, METH_NOARGS, NULL},
40756 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40757 { (char *)"StaticLine_IsVertical", (PyCFunction)_wrap_StaticLine_IsVertical, METH_O, NULL},
40758 { (char *)"StaticLine_GetDefaultSize", (PyCFunction)_wrap_StaticLine_GetDefaultSize, METH_NOARGS, NULL},
40759 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40760 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL},
40761 { (char *)"StaticLine_swiginit", StaticLine_swiginit, METH_VARARGS, NULL},
40762 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL},
40763 { (char *)"new_PreStaticText", (PyCFunction)_wrap_new_PreStaticText, METH_NOARGS, NULL},
40764 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40765 { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL},
40766 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40767 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL},
40768 { (char *)"StaticText_swiginit", StaticText_swiginit, METH_VARARGS, NULL},
40769 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
40770 { (char *)"new_PreStaticBitmap", (PyCFunction)_wrap_new_PreStaticBitmap, METH_NOARGS, NULL},
40771 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40772 { (char *)"StaticBitmap_GetBitmap", (PyCFunction)_wrap_StaticBitmap_GetBitmap, METH_O, NULL},
40773 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
40774 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
40775 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40776 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL},
40777 { (char *)"StaticBitmap_swiginit", StaticBitmap_swiginit, METH_VARARGS, NULL},
40778 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL},
40779 { (char *)"new_PreListBox", (PyCFunction)_wrap_new_PreListBox, METH_NOARGS, NULL},
40780 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40781 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
40782 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL},
40783 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL},
40784 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
40785 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
40786 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL},
40787 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL},
40788 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL},
40789 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
40790 { (char *)"ListBox_GetSelections", (PyCFunction)_wrap_ListBox_GetSelections, METH_O, NULL},
40791 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL},
40792 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL},
40793 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
40794 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
40795 { (char *)"ListBox_IsSorted", (PyCFunction)_wrap_ListBox_IsSorted, METH_O, NULL},
40796 { (char *)"ListBox_HitTest", (PyCFunction) _wrap_ListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
40797 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
40798 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
40799 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
40800 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40801 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL},
40802 { (char *)"ListBox_swiginit", ListBox_swiginit, METH_VARARGS, NULL},
40803 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL},
40804 { (char *)"new_PreCheckListBox", (PyCFunction)_wrap_new_PreCheckListBox, METH_NOARGS, NULL},
40805 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40806 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
40807 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL},
40808 { (char *)"CheckListBox_GetItemHeight", (PyCFunction)_wrap_CheckListBox_GetItemHeight, METH_O, NULL},
40809 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL},
40810 { (char *)"CheckListBox_swiginit", CheckListBox_swiginit, METH_VARARGS, NULL},
40811 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL},
40812 { (char *)"delete_TextAttr", (PyCFunction)_wrap_delete_TextAttr, METH_O, NULL},
40813 { (char *)"TextAttr_Init", (PyCFunction)_wrap_TextAttr_Init, METH_O, NULL},
40814 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
40815 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
40816 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
40817 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
40818 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL},
40819 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
40820 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
40821 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
40822 { (char *)"TextAttr_HasTextColour", (PyCFunction)_wrap_TextAttr_HasTextColour, METH_O, NULL},
40823 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction)_wrap_TextAttr_HasBackgroundColour, METH_O, NULL},
40824 { (char *)"TextAttr_HasFont", (PyCFunction)_wrap_TextAttr_HasFont, METH_O, NULL},
40825 { (char *)"TextAttr_HasAlignment", (PyCFunction)_wrap_TextAttr_HasAlignment, METH_O, NULL},
40826 { (char *)"TextAttr_HasTabs", (PyCFunction)_wrap_TextAttr_HasTabs, METH_O, NULL},
40827 { (char *)"TextAttr_HasLeftIndent", (PyCFunction)_wrap_TextAttr_HasLeftIndent, METH_O, NULL},
40828 { (char *)"TextAttr_HasRightIndent", (PyCFunction)_wrap_TextAttr_HasRightIndent, METH_O, NULL},
40829 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL},
40830 { (char *)"TextAttr_GetTextColour", (PyCFunction)_wrap_TextAttr_GetTextColour, METH_O, NULL},
40831 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction)_wrap_TextAttr_GetBackgroundColour, METH_O, NULL},
40832 { (char *)"TextAttr_GetFont", (PyCFunction)_wrap_TextAttr_GetFont, METH_O, NULL},
40833 { (char *)"TextAttr_GetAlignment", (PyCFunction)_wrap_TextAttr_GetAlignment, METH_O, NULL},
40834 { (char *)"TextAttr_GetTabs", (PyCFunction)_wrap_TextAttr_GetTabs, METH_O, NULL},
40835 { (char *)"TextAttr_GetLeftIndent", (PyCFunction)_wrap_TextAttr_GetLeftIndent, METH_O, NULL},
40836 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction)_wrap_TextAttr_GetLeftSubIndent, METH_O, NULL},
40837 { (char *)"TextAttr_GetRightIndent", (PyCFunction)_wrap_TextAttr_GetRightIndent, METH_O, NULL},
40838 { (char *)"TextAttr_GetFlags", (PyCFunction)_wrap_TextAttr_GetFlags, METH_O, NULL},
40839 { (char *)"TextAttr_IsDefault", (PyCFunction)_wrap_TextAttr_IsDefault, METH_O, NULL},
40840 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL},
40841 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL},
40842 { (char *)"TextAttr_swiginit", TextAttr_swiginit, METH_VARARGS, NULL},
40843 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
40844 { (char *)"new_PreTextCtrl", (PyCFunction)_wrap_new_PreTextCtrl, METH_NOARGS, NULL},
40845 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40846 { (char *)"TextCtrl_GetValue", (PyCFunction)_wrap_TextCtrl_GetValue, METH_O, NULL},
40847 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
40848 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL},
40849 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL},
40850 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL},
40851 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction)_wrap_TextCtrl_GetNumberOfLines, METH_O, NULL},
40852 { (char *)"TextCtrl_IsModified", (PyCFunction)_wrap_TextCtrl_IsModified, METH_O, NULL},
40853 { (char *)"TextCtrl_IsEditable", (PyCFunction)_wrap_TextCtrl_IsEditable, METH_O, NULL},
40854 { (char *)"TextCtrl_IsSingleLine", (PyCFunction)_wrap_TextCtrl_IsSingleLine, METH_O, NULL},
40855 { (char *)"TextCtrl_IsMultiLine", (PyCFunction)_wrap_TextCtrl_IsMultiLine, METH_O, NULL},
40856 { (char *)"TextCtrl_GetSelection", (PyCFunction)_wrap_TextCtrl_GetSelection, METH_O, NULL},
40857 { (char *)"TextCtrl_GetStringSelection", (PyCFunction)_wrap_TextCtrl_GetStringSelection, METH_O, NULL},
40858 { (char *)"TextCtrl_Clear", (PyCFunction)_wrap_TextCtrl_Clear, METH_O, NULL},
40859 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
40860 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
40861 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
40862 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
40863 { (char *)"TextCtrl_MarkDirty", (PyCFunction)_wrap_TextCtrl_MarkDirty, METH_O, NULL},
40864 { (char *)"TextCtrl_DiscardEdits", (PyCFunction)_wrap_TextCtrl_DiscardEdits, METH_O, NULL},
40865 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL},
40866 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL},
40867 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL},
40868 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL},
40869 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
40870 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
40871 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL},
40872 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction)_wrap_TextCtrl_GetDefaultStyle, METH_O, NULL},
40873 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL},
40874 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL},
40875 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL},
40876 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
40877 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL},
40878 { (char *)"TextCtrl_Copy", (PyCFunction)_wrap_TextCtrl_Copy, METH_O, NULL},
40879 { (char *)"TextCtrl_Cut", (PyCFunction)_wrap_TextCtrl_Cut, METH_O, NULL},
40880 { (char *)"TextCtrl_Paste", (PyCFunction)_wrap_TextCtrl_Paste, METH_O, NULL},
40881 { (char *)"TextCtrl_CanCopy", (PyCFunction)_wrap_TextCtrl_CanCopy, METH_O, NULL},
40882 { (char *)"TextCtrl_CanCut", (PyCFunction)_wrap_TextCtrl_CanCut, METH_O, NULL},
40883 { (char *)"TextCtrl_CanPaste", (PyCFunction)_wrap_TextCtrl_CanPaste, METH_O, NULL},
40884 { (char *)"TextCtrl_Undo", (PyCFunction)_wrap_TextCtrl_Undo, METH_O, NULL},
40885 { (char *)"TextCtrl_Redo", (PyCFunction)_wrap_TextCtrl_Redo, METH_O, NULL},
40886 { (char *)"TextCtrl_CanUndo", (PyCFunction)_wrap_TextCtrl_CanUndo, METH_O, NULL},
40887 { (char *)"TextCtrl_CanRedo", (PyCFunction)_wrap_TextCtrl_CanRedo, METH_O, NULL},
40888 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40889 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_TextCtrl_SetInsertionPointEnd, METH_O, NULL},
40890 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction)_wrap_TextCtrl_GetInsertionPoint, METH_O, NULL},
40891 { (char *)"TextCtrl_GetLastPosition", (PyCFunction)_wrap_TextCtrl_GetLastPosition, METH_O, NULL},
40892 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
40893 { (char *)"TextCtrl_SelectAll", (PyCFunction)_wrap_TextCtrl_SelectAll, METH_O, NULL},
40894 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
40895 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL},
40896 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
40897 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40898 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL},
40899 { (char *)"TextCtrl_swiginit", TextCtrl_swiginit, METH_VARARGS, NULL},
40900 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL},
40901 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction)_wrap_TextUrlEvent_GetMouseEvent, METH_O, NULL},
40902 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction)_wrap_TextUrlEvent_GetURLStart, METH_O, NULL},
40903 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction)_wrap_TextUrlEvent_GetURLEnd, METH_O, NULL},
40904 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL},
40905 { (char *)"TextUrlEvent_swiginit", TextUrlEvent_swiginit, METH_VARARGS, NULL},
40906 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL},
40907 { (char *)"new_PreScrollBar", (PyCFunction)_wrap_new_PreScrollBar, METH_NOARGS, NULL},
40908 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40909 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction)_wrap_ScrollBar_GetThumbPosition, METH_O, NULL},
40910 { (char *)"ScrollBar_GetThumbSize", (PyCFunction)_wrap_ScrollBar_GetThumbSize, METH_O, NULL},
40911 { (char *)"ScrollBar_GetPageSize", (PyCFunction)_wrap_ScrollBar_GetPageSize, METH_O, NULL},
40912 { (char *)"ScrollBar_GetRange", (PyCFunction)_wrap_ScrollBar_GetRange, METH_O, NULL},
40913 { (char *)"ScrollBar_IsVertical", (PyCFunction)_wrap_ScrollBar_IsVertical, METH_O, NULL},
40914 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL},
40915 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40916 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL},
40917 { (char *)"ScrollBar_swiginit", ScrollBar_swiginit, METH_VARARGS, NULL},
40918 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL},
40919 { (char *)"new_PreSpinButton", (PyCFunction)_wrap_new_PreSpinButton, METH_NOARGS, NULL},
40920 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40921 { (char *)"SpinButton_GetValue", (PyCFunction)_wrap_SpinButton_GetValue, METH_O, NULL},
40922 { (char *)"SpinButton_GetMin", (PyCFunction)_wrap_SpinButton_GetMin, METH_O, NULL},
40923 { (char *)"SpinButton_GetMax", (PyCFunction)_wrap_SpinButton_GetMax, METH_O, NULL},
40924 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
40925 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
40926 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
40927 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
40928 { (char *)"SpinButton_IsVertical", (PyCFunction)_wrap_SpinButton_IsVertical, METH_O, NULL},
40929 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40930 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL},
40931 { (char *)"SpinButton_swiginit", SpinButton_swiginit, METH_VARARGS, NULL},
40932 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
40933 { (char *)"new_PreSpinCtrl", (PyCFunction)_wrap_new_PreSpinCtrl, METH_NOARGS, NULL},
40934 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40935 { (char *)"SpinCtrl_GetValue", (PyCFunction)_wrap_SpinCtrl_GetValue, METH_O, NULL},
40936 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
40937 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL},
40938 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
40939 { (char *)"SpinCtrl_GetMin", (PyCFunction)_wrap_SpinCtrl_GetMin, METH_O, NULL},
40940 { (char *)"SpinCtrl_GetMax", (PyCFunction)_wrap_SpinCtrl_GetMax, METH_O, NULL},
40941 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
40942 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40943 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL},
40944 { (char *)"SpinCtrl_swiginit", SpinCtrl_swiginit, METH_VARARGS, NULL},
40945 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL},
40946 { (char *)"SpinEvent_GetPosition", (PyCFunction)_wrap_SpinEvent_GetPosition, METH_O, NULL},
40947 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
40948 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL},
40949 { (char *)"SpinEvent_swiginit", SpinEvent_swiginit, METH_VARARGS, NULL},
40950 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL},
40951 { (char *)"new_PreRadioBox", (PyCFunction)_wrap_new_PreRadioBox, METH_NOARGS, NULL},
40952 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40953 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
40954 { (char *)"RadioBox_GetSelection", (PyCFunction)_wrap_RadioBox_GetSelection, METH_O, NULL},
40955 { (char *)"RadioBox_GetStringSelection", (PyCFunction)_wrap_RadioBox_GetStringSelection, METH_O, NULL},
40956 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
40957 { (char *)"RadioBox_GetCount", (PyCFunction)_wrap_RadioBox_GetCount, METH_O, NULL},
40958 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL},
40959 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
40960 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
40961 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL},
40962 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL},
50f151d7
RD
40963 { (char *)"RadioBox_IsItemEnabled", (PyCFunction) _wrap_RadioBox_IsItemEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
40964 { (char *)"RadioBox_IsItemShown", (PyCFunction) _wrap_RadioBox_IsItemShown, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
40965 { (char *)"RadioBox_GetColumnCount", (PyCFunction)_wrap_RadioBox_GetColumnCount, METH_O, NULL},
40966 { (char *)"RadioBox_GetRowCount", (PyCFunction)_wrap_RadioBox_GetRowCount, METH_O, NULL},
40967 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
40968 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40969 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL},
40970 { (char *)"RadioBox_swiginit", RadioBox_swiginit, METH_VARARGS, NULL},
40971 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL},
40972 { (char *)"new_PreRadioButton", (PyCFunction)_wrap_new_PreRadioButton, METH_NOARGS, NULL},
40973 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40974 { (char *)"RadioButton_GetValue", (PyCFunction)_wrap_RadioButton_GetValue, METH_O, NULL},
40975 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
40976 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40977 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL},
40978 { (char *)"RadioButton_swiginit", RadioButton_swiginit, METH_VARARGS, NULL},
40979 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL},
40980 { (char *)"new_PreSlider", (PyCFunction)_wrap_new_PreSlider, METH_NOARGS, NULL},
40981 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40982 { (char *)"Slider_GetValue", (PyCFunction)_wrap_Slider_GetValue, METH_O, NULL},
40983 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
40984 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
40985 { (char *)"Slider_GetMin", (PyCFunction)_wrap_Slider_GetMin, METH_O, NULL},
40986 { (char *)"Slider_GetMax", (PyCFunction)_wrap_Slider_GetMax, METH_O, NULL},
40987 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
40988 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
40989 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL},
40990 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
40991 { (char *)"Slider_GetLineSize", (PyCFunction)_wrap_Slider_GetLineSize, METH_O, NULL},
40992 { (char *)"Slider_GetPageSize", (PyCFunction)_wrap_Slider_GetPageSize, METH_O, NULL},
40993 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL},
40994 { (char *)"Slider_GetThumbLength", (PyCFunction)_wrap_Slider_GetThumbLength, METH_O, NULL},
40995 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL},
40996 { (char *)"Slider_GetTickFreq", (PyCFunction)_wrap_Slider_GetTickFreq, METH_O, NULL},
40997 { (char *)"Slider_ClearTicks", (PyCFunction)_wrap_Slider_ClearTicks, METH_O, NULL},
40998 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL},
40999 { (char *)"Slider_ClearSel", (PyCFunction)_wrap_Slider_ClearSel, METH_O, NULL},
41000 { (char *)"Slider_GetSelEnd", (PyCFunction)_wrap_Slider_GetSelEnd, METH_O, NULL},
41001 { (char *)"Slider_GetSelStart", (PyCFunction)_wrap_Slider_GetSelStart, METH_O, NULL},
41002 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41003 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41004 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL},
41005 { (char *)"Slider_swiginit", Slider_swiginit, METH_VARARGS, NULL},
41006 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL},
41007 { (char *)"new_PreToggleButton", (PyCFunction)_wrap_new_PreToggleButton, METH_NOARGS, NULL},
41008 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41009 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41010 { (char *)"ToggleButton_GetValue", (PyCFunction)_wrap_ToggleButton_GetValue, METH_O, NULL},
41011 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41012 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL},
41013 { (char *)"ToggleButton_swiginit", ToggleButton_swiginit, METH_VARARGS, NULL},
41014 { (char *)"BookCtrlBase_GetPageCount", (PyCFunction)_wrap_BookCtrlBase_GetPageCount, METH_O, NULL},
41015 { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL},
41016 { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetCurrentPage, METH_O, NULL},
41017 { (char *)"BookCtrlBase_GetSelection", (PyCFunction)_wrap_BookCtrlBase_GetSelection, METH_O, NULL},
41018 { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
41019 { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
41020 { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41021 { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41022 { (char *)"BookCtrlBase_GetImageList", (PyCFunction)_wrap_BookCtrlBase_GetImageList, METH_O, NULL},
41023 { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
41024 { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
41025 { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
41026 { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL},
41027 { (char *)"BookCtrlBase_GetInternalBorder", (PyCFunction)_wrap_BookCtrlBase_GetInternalBorder, METH_O, NULL},
41028 { (char *)"BookCtrlBase_SetInternalBorder", (PyCFunction) _wrap_BookCtrlBase_SetInternalBorder, METH_VARARGS | METH_KEYWORDS, NULL},
41029 { (char *)"BookCtrlBase_IsVertical", (PyCFunction)_wrap_BookCtrlBase_IsVertical, METH_O, NULL},
41030 { (char *)"BookCtrlBase_SetFitToCurrentPage", (PyCFunction) _wrap_BookCtrlBase_SetFitToCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL},
41031 { (char *)"BookCtrlBase_GetFitToCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetFitToCurrentPage, METH_O, NULL},
41032 { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL},
41033 { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL},
41034 { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction)_wrap_BookCtrlBase_DeleteAllPages, METH_O, NULL},
41035 { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL},
41036 { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL},
41037 { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41038 { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41039 { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41040 { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL},
41041 { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41042 { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetSelection, METH_O, NULL},
41043 { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41044 { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetOldSelection, METH_O, NULL},
41045 { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41046 { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL},
41047 { (char *)"BookCtrlBaseEvent_swiginit", BookCtrlBaseEvent_swiginit, METH_VARARGS, NULL},
41048 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL},
41049 { (char *)"new_PreNotebook", (PyCFunction)_wrap_new_PreNotebook, METH_NOARGS, NULL},
41050 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41051 { (char *)"Notebook_GetRowCount", (PyCFunction)_wrap_Notebook_GetRowCount, METH_O, NULL},
41052 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL},
41053 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL},
41054 { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
41055 { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction)_wrap_Notebook_GetThemeBackgroundColour, METH_O, NULL},
41056 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41057 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL},
41058 { (char *)"Notebook_swiginit", Notebook_swiginit, METH_VARARGS, NULL},
41059 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41060 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL},
41061 { (char *)"NotebookEvent_swiginit", NotebookEvent_swiginit, METH_VARARGS, NULL},
41062 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL},
41063 { (char *)"new_PreListbook", (PyCFunction)_wrap_new_PreListbook, METH_NOARGS, NULL},
41064 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41065 { (char *)"Listbook_GetListView", (PyCFunction)_wrap_Listbook_GetListView, METH_O, NULL},
41066 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL},
41067 { (char *)"Listbook_swiginit", Listbook_swiginit, METH_VARARGS, NULL},
41068 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41069 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL},
41070 { (char *)"ListbookEvent_swiginit", ListbookEvent_swiginit, METH_VARARGS, NULL},
41071 { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL},
41072 { (char *)"new_PreChoicebook", (PyCFunction)_wrap_new_PreChoicebook, METH_NOARGS, NULL},
41073 { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41074 { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction)_wrap_Choicebook_GetChoiceCtrl, METH_O, NULL},
41075 { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL},
41076 { (char *)"Choicebook_swiginit", Choicebook_swiginit, METH_VARARGS, NULL},
41077 { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41078 { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL},
41079 { (char *)"ChoicebookEvent_swiginit", ChoicebookEvent_swiginit, METH_VARARGS, NULL},
41080 { (char *)"new_Treebook", (PyCFunction) _wrap_new_Treebook, METH_VARARGS | METH_KEYWORDS, NULL},
41081 { (char *)"new_PreTreebook", (PyCFunction)_wrap_new_PreTreebook, METH_NOARGS, NULL},
41082 { (char *)"Treebook_Create", (PyCFunction) _wrap_Treebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41083 { (char *)"Treebook_InsertSubPage", (PyCFunction) _wrap_Treebook_InsertSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
41084 { (char *)"Treebook_AddSubPage", (PyCFunction) _wrap_Treebook_AddSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
41085 { (char *)"Treebook_IsNodeExpanded", (PyCFunction) _wrap_Treebook_IsNodeExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
41086 { (char *)"Treebook_ExpandNode", (PyCFunction) _wrap_Treebook_ExpandNode, METH_VARARGS | METH_KEYWORDS, NULL},
41087 { (char *)"Treebook_CollapseNode", (PyCFunction) _wrap_Treebook_CollapseNode, METH_VARARGS | METH_KEYWORDS, NULL},
41088 { (char *)"Treebook_GetPageParent", (PyCFunction) _wrap_Treebook_GetPageParent, METH_VARARGS | METH_KEYWORDS, NULL},
41089 { (char *)"Treebook_GetTreeCtrl", (PyCFunction)_wrap_Treebook_GetTreeCtrl, METH_O, NULL},
41090 { (char *)"Treebook_swigregister", Treebook_swigregister, METH_VARARGS, NULL},
41091 { (char *)"Treebook_swiginit", Treebook_swiginit, METH_VARARGS, NULL},
41092 { (char *)"new_TreebookEvent", (PyCFunction) _wrap_new_TreebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41093 { (char *)"TreebookEvent_swigregister", TreebookEvent_swigregister, METH_VARARGS, NULL},
41094 { (char *)"TreebookEvent_swiginit", TreebookEvent_swiginit, METH_VARARGS, NULL},
41095 { (char *)"new_Toolbook", (PyCFunction) _wrap_new_Toolbook, METH_VARARGS | METH_KEYWORDS, NULL},
41096 { (char *)"new_PreToolbook", (PyCFunction)_wrap_new_PreToolbook, METH_NOARGS, NULL},
41097 { (char *)"Toolbook_Create", (PyCFunction) _wrap_Toolbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41098 { (char *)"Toolbook_GetToolBar", (PyCFunction)_wrap_Toolbook_GetToolBar, METH_O, NULL},
41099 { (char *)"Toolbook_Realize", (PyCFunction)_wrap_Toolbook_Realize, METH_O, NULL},
41100 { (char *)"Toolbook_swigregister", Toolbook_swigregister, METH_VARARGS, NULL},
41101 { (char *)"Toolbook_swiginit", Toolbook_swiginit, METH_VARARGS, NULL},
41102 { (char *)"new_ToolbookEvent", (PyCFunction) _wrap_new_ToolbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41103 { (char *)"ToolbookEvent_swigregister", ToolbookEvent_swigregister, METH_VARARGS, NULL},
41104 { (char *)"ToolbookEvent_swiginit", ToolbookEvent_swiginit, METH_VARARGS, NULL},
41105 { (char *)"ToolBarToolBase_GetId", (PyCFunction)_wrap_ToolBarToolBase_GetId, METH_O, NULL},
41106 { (char *)"ToolBarToolBase_GetControl", (PyCFunction)_wrap_ToolBarToolBase_GetControl, METH_O, NULL},
41107 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction)_wrap_ToolBarToolBase_GetToolBar, METH_O, NULL},
41108 { (char *)"ToolBarToolBase_IsButton", (PyCFunction)_wrap_ToolBarToolBase_IsButton, METH_O, NULL},
41109 { (char *)"ToolBarToolBase_IsControl", (PyCFunction)_wrap_ToolBarToolBase_IsControl, METH_O, NULL},
41110 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction)_wrap_ToolBarToolBase_IsSeparator, METH_O, NULL},
41111 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction)_wrap_ToolBarToolBase_GetStyle, METH_O, NULL},
41112 { (char *)"ToolBarToolBase_GetKind", (PyCFunction)_wrap_ToolBarToolBase_GetKind, METH_O, NULL},
41113 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction)_wrap_ToolBarToolBase_IsEnabled, METH_O, NULL},
41114 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction)_wrap_ToolBarToolBase_IsToggled, METH_O, NULL},
41115 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction)_wrap_ToolBarToolBase_CanBeToggled, METH_O, NULL},
41116 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetNormalBitmap, METH_O, NULL},
41117 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetDisabledBitmap, METH_O, NULL},
41118 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetBitmap, METH_O, NULL},
41119 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction)_wrap_ToolBarToolBase_GetLabel, METH_O, NULL},
41120 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction)_wrap_ToolBarToolBase_GetShortHelp, METH_O, NULL},
41121 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction)_wrap_ToolBarToolBase_GetLongHelp, METH_O, NULL},
41122 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
41123 { (char *)"ToolBarToolBase_Toggle", (PyCFunction)_wrap_ToolBarToolBase_Toggle, METH_O, NULL},
41124 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
41125 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41126 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41127 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
41128 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
41129 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
41130 { (char *)"ToolBarToolBase_Detach", (PyCFunction)_wrap_ToolBarToolBase_Detach, METH_O, NULL},
41131 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL},
41132 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction)_wrap_ToolBarToolBase_GetClientData, METH_O, NULL},
41133 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
41134 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL},
41135 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL},
41136 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL},
41137 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
41138 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
41139 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL},
41140 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL},
41141 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL},
41142 { (char *)"ToolBarBase_AddSeparator", (PyCFunction)_wrap_ToolBarBase_AddSeparator, METH_O, NULL},
41143 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL},
41144 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL},
41145 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL},
41146 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL},
41147 { (char *)"ToolBarBase_ClearTools", (PyCFunction)_wrap_ToolBarBase_ClearTools, METH_O, NULL},
41148 { (char *)"ToolBarBase_Realize", (PyCFunction)_wrap_ToolBarBase_Realize, METH_O, NULL},
41149 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL},
41150 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL},
41151 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
41152 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
41153 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
41154 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL},
41155 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL},
41156 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
41157 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41158 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41159 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41160 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41161 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL},
41162 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
41163 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL},
41164 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL},
41165 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction)_wrap_ToolBarBase_GetToolMargins, METH_O, NULL},
41166 { (char *)"ToolBarBase_GetMargins", (PyCFunction)_wrap_ToolBarBase_GetMargins, METH_O, NULL},
41167 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction)_wrap_ToolBarBase_GetToolPacking, METH_O, NULL},
41168 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction)_wrap_ToolBarBase_GetToolSeparation, METH_O, NULL},
41169 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL},
41170 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL},
41171 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction)_wrap_ToolBarBase_GetMaxRows, METH_O, NULL},
41172 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction)_wrap_ToolBarBase_GetMaxCols, METH_O, NULL},
41173 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL},
41174 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction)_wrap_ToolBarBase_GetToolBitmapSize, METH_O, NULL},
41175 { (char *)"ToolBarBase_GetToolSize", (PyCFunction)_wrap_ToolBarBase_GetToolSize, METH_O, NULL},
41176 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41177 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL},
41178 { (char *)"ToolBarBase_IsVertical", (PyCFunction)_wrap_ToolBarBase_IsVertical, METH_O, NULL},
41179 { (char *)"ToolBarBase_GetToolsCount", (PyCFunction)_wrap_ToolBarBase_GetToolsCount, METH_O, NULL},
41180 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL},
41181 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL},
41182 { (char *)"new_PreToolBar", (PyCFunction)_wrap_new_PreToolBar, METH_NOARGS, NULL},
41183 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41184 { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41185 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41186 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL},
41187 { (char *)"ToolBar_swiginit", ToolBar_swiginit, METH_VARARGS, NULL},
41188 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL},
41189 { (char *)"delete_ListItemAttr", (PyCFunction)_wrap_delete_ListItemAttr, METH_O, NULL},
41190 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41191 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41192 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
41193 { (char *)"ListItemAttr_HasTextColour", (PyCFunction)_wrap_ListItemAttr_HasTextColour, METH_O, NULL},
41194 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction)_wrap_ListItemAttr_HasBackgroundColour, METH_O, NULL},
41195 { (char *)"ListItemAttr_HasFont", (PyCFunction)_wrap_ListItemAttr_HasFont, METH_O, NULL},
41196 { (char *)"ListItemAttr_GetTextColour", (PyCFunction)_wrap_ListItemAttr_GetTextColour, METH_O, NULL},
41197 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction)_wrap_ListItemAttr_GetBackgroundColour, METH_O, NULL},
41198 { (char *)"ListItemAttr_GetFont", (PyCFunction)_wrap_ListItemAttr_GetFont, METH_O, NULL},
41199 { (char *)"ListItemAttr_AssignFrom", (PyCFunction) _wrap_ListItemAttr_AssignFrom, METH_VARARGS | METH_KEYWORDS, NULL},
41200 { (char *)"ListItemAttr_Destroy", (PyCFunction)_wrap_ListItemAttr_Destroy, METH_O, NULL},
41201 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL},
41202 { (char *)"ListItemAttr_swiginit", ListItemAttr_swiginit, METH_VARARGS, NULL},
41203 { (char *)"new_ListItem", (PyCFunction)_wrap_new_ListItem, METH_NOARGS, NULL},
41204 { (char *)"delete_ListItem", (PyCFunction)_wrap_delete_ListItem, METH_O, NULL},
41205 { (char *)"ListItem_Clear", (PyCFunction)_wrap_ListItem_Clear, METH_O, NULL},
41206 { (char *)"ListItem_ClearAttributes", (PyCFunction)_wrap_ListItem_ClearAttributes, METH_O, NULL},
41207 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
41208 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
41209 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
41210 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
41211 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL},
41212 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
41213 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL},
41214 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
41215 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
41216 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL},
41217 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41218 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41219 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
41220 { (char *)"ListItem_GetMask", (PyCFunction)_wrap_ListItem_GetMask, METH_O, NULL},
41221 { (char *)"ListItem_GetId", (PyCFunction)_wrap_ListItem_GetId, METH_O, NULL},
41222 { (char *)"ListItem_GetColumn", (PyCFunction)_wrap_ListItem_GetColumn, METH_O, NULL},
41223 { (char *)"ListItem_GetState", (PyCFunction)_wrap_ListItem_GetState, METH_O, NULL},
41224 { (char *)"ListItem_GetText", (PyCFunction)_wrap_ListItem_GetText, METH_O, NULL},
41225 { (char *)"ListItem_GetImage", (PyCFunction)_wrap_ListItem_GetImage, METH_O, NULL},
41226 { (char *)"ListItem_GetData", (PyCFunction)_wrap_ListItem_GetData, METH_O, NULL},
41227 { (char *)"ListItem_GetWidth", (PyCFunction)_wrap_ListItem_GetWidth, METH_O, NULL},
41228 { (char *)"ListItem_GetAlign", (PyCFunction)_wrap_ListItem_GetAlign, METH_O, NULL},
41229 { (char *)"ListItem_GetAttributes", (PyCFunction)_wrap_ListItem_GetAttributes, METH_O, NULL},
41230 { (char *)"ListItem_HasAttributes", (PyCFunction)_wrap_ListItem_HasAttributes, METH_O, NULL},
41231 { (char *)"ListItem_GetTextColour", (PyCFunction)_wrap_ListItem_GetTextColour, METH_O, NULL},
41232 { (char *)"ListItem_GetBackgroundColour", (PyCFunction)_wrap_ListItem_GetBackgroundColour, METH_O, NULL},
41233 { (char *)"ListItem_GetFont", (PyCFunction)_wrap_ListItem_GetFont, METH_O, NULL},
41234 { (char *)"ListItem_m_mask_set", _wrap_ListItem_m_mask_set, METH_VARARGS, NULL},
41235 { (char *)"ListItem_m_mask_get", (PyCFunction)_wrap_ListItem_m_mask_get, METH_O, NULL},
41236 { (char *)"ListItem_m_itemId_set", _wrap_ListItem_m_itemId_set, METH_VARARGS, NULL},
41237 { (char *)"ListItem_m_itemId_get", (PyCFunction)_wrap_ListItem_m_itemId_get, METH_O, NULL},
41238 { (char *)"ListItem_m_col_set", _wrap_ListItem_m_col_set, METH_VARARGS, NULL},
41239 { (char *)"ListItem_m_col_get", (PyCFunction)_wrap_ListItem_m_col_get, METH_O, NULL},
41240 { (char *)"ListItem_m_state_set", _wrap_ListItem_m_state_set, METH_VARARGS, NULL},
41241 { (char *)"ListItem_m_state_get", (PyCFunction)_wrap_ListItem_m_state_get, METH_O, NULL},
41242 { (char *)"ListItem_m_stateMask_set", _wrap_ListItem_m_stateMask_set, METH_VARARGS, NULL},
41243 { (char *)"ListItem_m_stateMask_get", (PyCFunction)_wrap_ListItem_m_stateMask_get, METH_O, NULL},
41244 { (char *)"ListItem_m_text_set", _wrap_ListItem_m_text_set, METH_VARARGS, NULL},
41245 { (char *)"ListItem_m_text_get", (PyCFunction)_wrap_ListItem_m_text_get, METH_O, NULL},
41246 { (char *)"ListItem_m_image_set", _wrap_ListItem_m_image_set, METH_VARARGS, NULL},
41247 { (char *)"ListItem_m_image_get", (PyCFunction)_wrap_ListItem_m_image_get, METH_O, NULL},
41248 { (char *)"ListItem_m_data_set", _wrap_ListItem_m_data_set, METH_VARARGS, NULL},
41249 { (char *)"ListItem_m_data_get", (PyCFunction)_wrap_ListItem_m_data_get, METH_O, NULL},
41250 { (char *)"ListItem_m_format_set", _wrap_ListItem_m_format_set, METH_VARARGS, NULL},
41251 { (char *)"ListItem_m_format_get", (PyCFunction)_wrap_ListItem_m_format_get, METH_O, NULL},
41252 { (char *)"ListItem_m_width_set", _wrap_ListItem_m_width_set, METH_VARARGS, NULL},
41253 { (char *)"ListItem_m_width_get", (PyCFunction)_wrap_ListItem_m_width_get, METH_O, NULL},
41254 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL},
41255 { (char *)"ListItem_swiginit", ListItem_swiginit, METH_VARARGS, NULL},
41256 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41257 { (char *)"ListEvent_m_code_set", _wrap_ListEvent_m_code_set, METH_VARARGS, NULL},
41258 { (char *)"ListEvent_m_code_get", (PyCFunction)_wrap_ListEvent_m_code_get, METH_O, NULL},
41259 { (char *)"ListEvent_m_oldItemIndex_set", _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS, NULL},
41260 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction)_wrap_ListEvent_m_oldItemIndex_get, METH_O, NULL},
41261 { (char *)"ListEvent_m_itemIndex_set", _wrap_ListEvent_m_itemIndex_set, METH_VARARGS, NULL},
41262 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction)_wrap_ListEvent_m_itemIndex_get, METH_O, NULL},
41263 { (char *)"ListEvent_m_col_set", _wrap_ListEvent_m_col_set, METH_VARARGS, NULL},
41264 { (char *)"ListEvent_m_col_get", (PyCFunction)_wrap_ListEvent_m_col_get, METH_O, NULL},
41265 { (char *)"ListEvent_m_pointDrag_set", _wrap_ListEvent_m_pointDrag_set, METH_VARARGS, NULL},
41266 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction)_wrap_ListEvent_m_pointDrag_get, METH_O, NULL},
41267 { (char *)"ListEvent_m_item_get", (PyCFunction)_wrap_ListEvent_m_item_get, METH_O, NULL},
41268 { (char *)"ListEvent_GetKeyCode", (PyCFunction)_wrap_ListEvent_GetKeyCode, METH_O, NULL},
41269 { (char *)"ListEvent_GetIndex", (PyCFunction)_wrap_ListEvent_GetIndex, METH_O, NULL},
41270 { (char *)"ListEvent_GetColumn", (PyCFunction)_wrap_ListEvent_GetColumn, METH_O, NULL},
41271 { (char *)"ListEvent_GetPoint", (PyCFunction)_wrap_ListEvent_GetPoint, METH_O, NULL},
41272 { (char *)"ListEvent_GetLabel", (PyCFunction)_wrap_ListEvent_GetLabel, METH_O, NULL},
41273 { (char *)"ListEvent_GetText", (PyCFunction)_wrap_ListEvent_GetText, METH_O, NULL},
41274 { (char *)"ListEvent_GetImage", (PyCFunction)_wrap_ListEvent_GetImage, METH_O, NULL},
41275 { (char *)"ListEvent_GetData", (PyCFunction)_wrap_ListEvent_GetData, METH_O, NULL},
41276 { (char *)"ListEvent_GetMask", (PyCFunction)_wrap_ListEvent_GetMask, METH_O, NULL},
41277 { (char *)"ListEvent_GetItem", (PyCFunction)_wrap_ListEvent_GetItem, METH_O, NULL},
41278 { (char *)"ListEvent_GetCacheFrom", (PyCFunction)_wrap_ListEvent_GetCacheFrom, METH_O, NULL},
41279 { (char *)"ListEvent_GetCacheTo", (PyCFunction)_wrap_ListEvent_GetCacheTo, METH_O, NULL},
41280 { (char *)"ListEvent_IsEditCancelled", (PyCFunction)_wrap_ListEvent_IsEditCancelled, METH_O, NULL},
41281 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
41282 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL},
41283 { (char *)"ListEvent_swiginit", ListEvent_swiginit, METH_VARARGS, NULL},
41284 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41285 { (char *)"new_PreListCtrl", (PyCFunction)_wrap_new_PreListCtrl, METH_NOARGS, NULL},
41286 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41287 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
41288 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
41289 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
41290 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
41291 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
41292 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction)_wrap_ListCtrl_GetCountPerPage, METH_O, NULL},
41293 { (char *)"ListCtrl_GetViewRect", (PyCFunction)_wrap_ListCtrl_GetViewRect, METH_O, NULL},
41294 { (char *)"ListCtrl_GetEditControl", (PyCFunction)_wrap_ListCtrl_GetEditControl, METH_O, NULL},
41295 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL},
41296 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
41297 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
41298 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
41299 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
41300 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
41301 { (char *)"ListCtrl_SetItemColumnImage", (PyCFunction) _wrap_ListCtrl_SetItemColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
41302 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
41303 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
41304 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41305 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41306 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41307 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL},
41308 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41309 { (char *)"ListCtrl_GetItemCount", (PyCFunction)_wrap_ListCtrl_GetItemCount, METH_O, NULL},
41310 { (char *)"ListCtrl_GetColumnCount", (PyCFunction)_wrap_ListCtrl_GetColumnCount, METH_O, NULL},
41311 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction)_wrap_ListCtrl_GetItemSpacing, METH_O, NULL},
41312 { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
41313 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction)_wrap_ListCtrl_GetSelectedItemCount, METH_O, NULL},
41314 { (char *)"ListCtrl_GetTextColour", (PyCFunction)_wrap_ListCtrl_GetTextColour, METH_O, NULL},
41315 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41316 { (char *)"ListCtrl_GetTopItem", (PyCFunction)_wrap_ListCtrl_GetTopItem, METH_O, NULL},
41317 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL},
41318 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
41319 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41320 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41321 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41322 { (char *)"ListCtrl_InReportView", (PyCFunction)_wrap_ListCtrl_InReportView, METH_O, NULL},
41323 { (char *)"ListCtrl_IsVirtual", (PyCFunction)_wrap_ListCtrl_IsVirtual, METH_O, NULL},
41324 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL},
41325 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL},
41326 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL},
41327 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL},
41328 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction)_wrap_ListCtrl_DeleteAllItems, METH_O, NULL},
41329 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL},
41330 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction)_wrap_ListCtrl_DeleteAllColumns, METH_O, NULL},
41331 { (char *)"ListCtrl_ClearAll", (PyCFunction)_wrap_ListCtrl_ClearAll, METH_O, NULL},
41332 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
41333 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41334 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL},
41335 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41336 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL},
41337 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
41338 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
41339 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
41340 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL},
41341 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
41342 { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL},
41343 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL},
41344 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL},
41345 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL},
41346 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41347 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41348 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41349 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41350 { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
41351 { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
41352 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL},
41353 { (char *)"ListCtrl_GetMainWindow", (PyCFunction)_wrap_ListCtrl_GetMainWindow, METH_O, NULL},
41354 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41355 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL},
41356 { (char *)"ListCtrl_swiginit", ListCtrl_swiginit, METH_VARARGS, NULL},
41357 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL},
41358 { (char *)"new_PreListView", (PyCFunction)_wrap_new_PreListView, METH_NOARGS, NULL},
41359 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41360 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL},
41361 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL},
41362 { (char *)"ListView_GetFocusedItem", (PyCFunction)_wrap_ListView_GetFocusedItem, METH_O, NULL},
41363 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL},
41364 { (char *)"ListView_GetFirstSelected", (PyCFunction)_wrap_ListView_GetFirstSelected, METH_O, NULL},
41365 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
41366 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
41367 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
41368 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL},
41369 { (char *)"ListView_swiginit", ListView_swiginit, METH_VARARGS, NULL},
41370 { (char *)"new_TreeItemId", (PyCFunction)_wrap_new_TreeItemId, METH_NOARGS, NULL},
41371 { (char *)"delete_TreeItemId", (PyCFunction)_wrap_delete_TreeItemId, METH_O, NULL},
41372 { (char *)"TreeItemId_IsOk", (PyCFunction)_wrap_TreeItemId_IsOk, METH_O, NULL},
41373 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
41374 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
41375 { (char *)"TreeItemId_m_pItem_set", _wrap_TreeItemId_m_pItem_set, METH_VARARGS, NULL},
41376 { (char *)"TreeItemId_m_pItem_get", (PyCFunction)_wrap_TreeItemId_m_pItem_get, METH_O, NULL},
41377 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL},
41378 { (char *)"TreeItemId_swiginit", TreeItemId_swiginit, METH_VARARGS, NULL},
41379 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41380 { (char *)"delete_TreeItemData", (PyCFunction)_wrap_delete_TreeItemData, METH_O, NULL},
41381 { (char *)"TreeItemData_GetData", (PyCFunction)_wrap_TreeItemData_GetData, METH_O, NULL},
41382 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
41383 { (char *)"TreeItemData_GetId", (PyCFunction)_wrap_TreeItemData_GetId, METH_O, NULL},
41384 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
41385 { (char *)"TreeItemData_Destroy", (PyCFunction)_wrap_TreeItemData_Destroy, METH_O, NULL},
41386 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL},
41387 { (char *)"TreeItemData_swiginit", TreeItemData_swiginit, METH_VARARGS, NULL},
41388 { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41389 { (char *)"TreeEvent_GetItem", (PyCFunction)_wrap_TreeEvent_GetItem, METH_O, NULL},
41390 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
41391 { (char *)"TreeEvent_GetOldItem", (PyCFunction)_wrap_TreeEvent_GetOldItem, METH_O, NULL},
41392 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL},
41393 { (char *)"TreeEvent_GetPoint", (PyCFunction)_wrap_TreeEvent_GetPoint, METH_O, NULL},
41394 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL},
41395 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction)_wrap_TreeEvent_GetKeyEvent, METH_O, NULL},
41396 { (char *)"TreeEvent_GetKeyCode", (PyCFunction)_wrap_TreeEvent_GetKeyCode, METH_O, NULL},
41397 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41398 { (char *)"TreeEvent_GetLabel", (PyCFunction)_wrap_TreeEvent_GetLabel, METH_O, NULL},
41399 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
41400 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction)_wrap_TreeEvent_IsEditCancelled, METH_O, NULL},
41401 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
41402 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
41403 { (char *)"TreeEvent_GetToolTip", (PyCFunction)_wrap_TreeEvent_GetToolTip, METH_O, NULL},
41404 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL},
41405 { (char *)"TreeEvent_swiginit", TreeEvent_swiginit, METH_VARARGS, NULL},
41406 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41407 { (char *)"new_PreTreeCtrl", (PyCFunction)_wrap_new_PreTreeCtrl, METH_NOARGS, NULL},
41408 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41409 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
41410 { (char *)"TreeCtrl_GetCount", (PyCFunction)_wrap_TreeCtrl_GetCount, METH_O, NULL},
41411 { (char *)"TreeCtrl_GetIndent", (PyCFunction)_wrap_TreeCtrl_GetIndent, METH_O, NULL},
41412 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL},
41413 { (char *)"TreeCtrl_GetSpacing", (PyCFunction)_wrap_TreeCtrl_GetSpacing, METH_O, NULL},
41414 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
41415 { (char *)"TreeCtrl_GetImageList", (PyCFunction)_wrap_TreeCtrl_GetImageList, METH_O, NULL},
41416 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction)_wrap_TreeCtrl_GetStateImageList, METH_O, NULL},
41417 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41418 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41419 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41420 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41421 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
41422 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
41423 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41424 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
41425 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41426 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41427 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
41428 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
41429 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
41430 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41431 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
41432 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
41433 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL},
41434 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL},
41435 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41436 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41437 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
41438 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41439 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
41440 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
41441 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
41442 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL},
41443 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL},
41444 { (char *)"TreeCtrl_GetRootItem", (PyCFunction)_wrap_TreeCtrl_GetRootItem, METH_O, NULL},
41445 { (char *)"TreeCtrl_GetSelection", (PyCFunction)_wrap_TreeCtrl_GetSelection, METH_O, NULL},
41446 { (char *)"TreeCtrl_GetSelections", (PyCFunction)_wrap_TreeCtrl_GetSelections, METH_O, NULL},
41447 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL},
41448 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL},
41449 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL},
41450 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL},
41451 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL},
41452 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL},
41453 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction)_wrap_TreeCtrl_GetFirstVisibleItem, METH_O, NULL},
41454 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41455 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41456 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL},
41457 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},
41458 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
41459 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL},
41460 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL},
41461 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
41462 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL},
41463 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction)_wrap_TreeCtrl_DeleteAllItems, METH_O, NULL},
41464 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL},
41465 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
41466 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL},
41467 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL},
41468 { (char *)"TreeCtrl_Unselect", (PyCFunction)_wrap_TreeCtrl_Unselect, METH_O, NULL},
41469 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL},
41470 { (char *)"TreeCtrl_UnselectAll", (PyCFunction)_wrap_TreeCtrl_UnselectAll, METH_O, NULL},
41471 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL},
41472 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41473 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41474 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL},
41475 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
41476 { (char *)"TreeCtrl_GetEditControl", (PyCFunction)_wrap_TreeCtrl_GetEditControl, METH_O, NULL},
41477 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL},
41478 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
41479 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL},
41480 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41481 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL},
41482 { (char *)"TreeCtrl_swiginit", TreeCtrl_swiginit, METH_VARARGS, NULL},
41483 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41484 { (char *)"new_PreGenericDirCtrl", (PyCFunction)_wrap_new_PreGenericDirCtrl, METH_NOARGS, NULL},
41485 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41486 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL},
41487 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction)_wrap_GenericDirCtrl_GetDefaultPath, METH_O, NULL},
41488 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL},
41489 { (char *)"GenericDirCtrl_GetPath", (PyCFunction)_wrap_GenericDirCtrl_GetPath, METH_O, NULL},
41490 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction)_wrap_GenericDirCtrl_GetFilePath, METH_O, NULL},
41491 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
41492 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL},
41493 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction)_wrap_GenericDirCtrl_GetShowHidden, METH_O, NULL},
41494 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction)_wrap_GenericDirCtrl_GetFilter, METH_O, NULL},
41495 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL},
41496 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction)_wrap_GenericDirCtrl_GetFilterIndex, METH_O, NULL},
41497 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL},
41498 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction)_wrap_GenericDirCtrl_GetRootId, METH_O, NULL},
41499 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetTreeCtrl, METH_O, NULL},
41500 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetFilterListCtrl, METH_O, NULL},
41501 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL},
41502 { (char *)"GenericDirCtrl_DoResize", (PyCFunction)_wrap_GenericDirCtrl_DoResize, METH_O, NULL},
41503 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction)_wrap_GenericDirCtrl_ReCreateTree, METH_O, NULL},
41504 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL},
41505 { (char *)"GenericDirCtrl_swiginit", GenericDirCtrl_swiginit, METH_VARARGS, NULL},
41506 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41507 { (char *)"new_PreDirFilterListCtrl", (PyCFunction)_wrap_new_PreDirFilterListCtrl, METH_NOARGS, NULL},
41508 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41509 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL},
41510 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL},
41511 { (char *)"DirFilterListCtrl_swiginit", DirFilterListCtrl_swiginit, METH_VARARGS, NULL},
41512 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL},
41513 { (char *)"new_PrePyControl", (PyCFunction)_wrap_new_PrePyControl, METH_NOARGS, NULL},
41514 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
41515 { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
41516 { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL},
41517 { (char *)"PyControl_DoMoveWindow", (PyCFunction) _wrap_PyControl_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL},
41518 { (char *)"PyControl_DoSetSize", (PyCFunction) _wrap_PyControl_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL},
41519 { (char *)"PyControl_DoSetClientSize", (PyCFunction) _wrap_PyControl_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL},
41520 { (char *)"PyControl_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL},
41521 { (char *)"PyControl_DoGetSize", (PyCFunction)_wrap_PyControl_DoGetSize, METH_O, NULL},
41522 { (char *)"PyControl_DoGetClientSize", (PyCFunction)_wrap_PyControl_DoGetClientSize, METH_O, NULL},
41523 { (char *)"PyControl_DoGetPosition", (PyCFunction)_wrap_PyControl_DoGetPosition, METH_O, NULL},
41524 { (char *)"PyControl_DoGetVirtualSize", (PyCFunction)_wrap_PyControl_DoGetVirtualSize, METH_O, NULL},
41525 { (char *)"PyControl_DoGetBestSize", (PyCFunction)_wrap_PyControl_DoGetBestSize, METH_O, NULL},
41526 { (char *)"PyControl_GetDefaultAttributes", (PyCFunction)_wrap_PyControl_GetDefaultAttributes, METH_O, NULL},
41527 { (char *)"PyControl_OnInternalIdle", (PyCFunction)_wrap_PyControl_OnInternalIdle, METH_O, NULL},
41528 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL},
41529 { (char *)"PyControl_swiginit", PyControl_swiginit, METH_VARARGS, NULL},
41530 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41531 { (char *)"HelpEvent_GetPosition", (PyCFunction)_wrap_HelpEvent_GetPosition, METH_O, NULL},
41532 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41533 { (char *)"HelpEvent_GetLink", (PyCFunction)_wrap_HelpEvent_GetLink, METH_O, NULL},
41534 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL},
41535 { (char *)"HelpEvent_GetTarget", (PyCFunction)_wrap_HelpEvent_GetTarget, METH_O, NULL},
41536 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL},
41537 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL},
41538 { (char *)"HelpEvent_swiginit", HelpEvent_swiginit, METH_VARARGS, NULL},
41539 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41540 { (char *)"delete_ContextHelp", (PyCFunction)_wrap_delete_ContextHelp, METH_O, NULL},
41541 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41542 { (char *)"ContextHelp_EndContextHelp", (PyCFunction)_wrap_ContextHelp_EndContextHelp, METH_O, NULL},
41543 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL},
41544 { (char *)"ContextHelp_swiginit", ContextHelp_swiginit, METH_VARARGS, NULL},
41545 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL},
41546 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL},
41547 { (char *)"ContextHelpButton_swiginit", ContextHelpButton_swiginit, METH_VARARGS, NULL},
f52cbe90 41548 { (char *)"delete_HelpProvider", (PyCFunction)_wrap_delete_HelpProvider, METH_O, NULL},
0085ce49
RD
41549 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL},
41550 { (char *)"HelpProvider_Get", (PyCFunction)_wrap_HelpProvider_Get, METH_NOARGS, NULL},
41551 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41552 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41553 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41554 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL},
41555 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41556 { (char *)"HelpProvider_Destroy", (PyCFunction)_wrap_HelpProvider_Destroy, METH_O, NULL},
41557 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL},
41558 { (char *)"new_SimpleHelpProvider", (PyCFunction)_wrap_new_SimpleHelpProvider, METH_NOARGS, NULL},
41559 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL},
41560 { (char *)"SimpleHelpProvider_swiginit", SimpleHelpProvider_swiginit, METH_VARARGS, NULL},
41561 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL},
41562 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL},
41563 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL},
41564 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL},
41565 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL},
41566 { (char *)"delete_DragImage", (PyCFunction)_wrap_delete_DragImage, METH_O, NULL},
41567 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
41568 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL},
41569 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL},
41570 { (char *)"DragImage_EndDrag", (PyCFunction)_wrap_DragImage_EndDrag, METH_O, NULL},
41571 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL},
41572 { (char *)"DragImage_Show", (PyCFunction)_wrap_DragImage_Show, METH_O, NULL},
41573 { (char *)"DragImage_Hide", (PyCFunction)_wrap_DragImage_Hide, METH_O, NULL},
41574 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL},
41575 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
41576 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL},
41577 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
41578 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL},
41579 { (char *)"DragImage_swiginit", DragImage_swiginit, METH_VARARGS, NULL},
41580 { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41581 { (char *)"new_PreDatePickerCtrl", (PyCFunction)_wrap_new_PreDatePickerCtrl, METH_NOARGS, NULL},
41582 { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41583 { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41584 { (char *)"DatePickerCtrl_GetValue", (PyCFunction)_wrap_DatePickerCtrl_GetValue, METH_O, NULL},
41585 { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
41586 { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction)_wrap_DatePickerCtrl_GetLowerLimit, METH_O, NULL},
41587 { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction)_wrap_DatePickerCtrl_GetUpperLimit, METH_O, NULL},
41588 { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL},
41589 { (char *)"DatePickerCtrl_swiginit", DatePickerCtrl_swiginit, METH_VARARGS, NULL},
41590 { NULL, NULL, 0, NULL }
41591};
41592
41593
41594/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
41595
41596static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
41597 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
41598}
41599static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
41600 return (void *)((wxEvent *) ((wxMenuEvent *) x));
41601}
41602static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
41603 return (void *)((wxEvent *) ((wxCloseEvent *) x));
41604}
41605static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
41606 return (void *)((wxEvent *) ((wxMouseEvent *) x));
41607}
41608static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
41609 return (void *)((wxEvent *) ((wxEraseEvent *) x));
41610}
41611static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) {
41612 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
41613}
41614static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
41615 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
41616}
41617static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
41618 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
41619}
41620static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
41621 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
41622}
41623static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
41624 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
41625}
41626static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
41627 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
41628}
41629static void *_p_wxPyEventTo_p_wxEvent(void *x) {
41630 return (void *)((wxEvent *) ((wxPyEvent *) x));
41631}
41632static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
41633 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
41634}
41635static void *_p_wxListEventTo_p_wxEvent(void *x) {
41636 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
41637}
41638static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
41639 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
41640}
41641static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
41642 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
41643}
41644static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) {
41645 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
41646}
41647static void *_p_wxTreebookEventTo_p_wxEvent(void *x) {
41648 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
41649}
41650static void *_p_wxToolbookEventTo_p_wxEvent(void *x) {
41651 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
41652}
41653static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
41654 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
41655}
41656static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
41657 return (void *)((wxEvent *) ((wxIdleEvent *) x));
41658}
41659static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
41660 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
41661}
41662static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
41663 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
41664}
41665static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
41666 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
41667}
41668static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
41669 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
41670}
41671static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
41672 return (void *)((wxEvent *) ((wxActivateEvent *) x));
41673}
41674static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
41675 return (void *)((wxEvent *) ((wxSizeEvent *) x));
41676}
41677static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
41678 return (void *)((wxEvent *) ((wxMoveEvent *) x));
41679}
41680static void *_p_wxDateEventTo_p_wxEvent(void *x) {
41681 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
41682}
41683static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
41684 return (void *)((wxEvent *) ((wxPaintEvent *) x));
41685}
41686static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
41687 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
41688}
41689static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
41690 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
41691}
41692static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
41693 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
41694}
41695static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
41696 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
41697}
41698static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
41699 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
41700}
41701static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
41702 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
41703}
41704static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
41705 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
41706}
41707static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
41708 return (void *)((wxEvent *) ((wxFocusEvent *) x));
41709}
41710static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
41711 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
41712}
41713static void *_p_wxShowEventTo_p_wxEvent(void *x) {
41714 return (void *)((wxEvent *) ((wxShowEvent *) x));
41715}
41716static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
41717 return (void *)((wxEvent *) ((wxCommandEvent *) x));
41718}
41719static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
41720 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
41721}
41722static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
41723 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
41724}
41725static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
41726 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
41727}
41728static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
41729 return (void *)((wxEvent *) ((wxKeyEvent *) x));
41730}
41731static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
41732 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
41733}
41734static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
41735 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
41736}
41737static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
41738 return (void *)((wxItemContainer *) ((wxComboBox *) x));
41739}
41740static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
41741 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
41742}
41743static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
41744 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
41745}
41746static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
41747 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
41748}
41749static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
41750 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
41751}
41752static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
41753 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
41754}
41755static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
41756 return (void *)((wxPyListCtrl *) ((wxListView *) x));
41757}
41758static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) {
41759 return (void *)((wxControl *) ((wxBookCtrlBase *) x));
41760}
41761static void *_p_wxToolBarTo_p_wxControl(void *x) {
41762 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
41763}
41764static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
41765 return (void *)((wxControl *) ((wxToggleButton *) x));
41766}
41767static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
41768 return (void *)((wxControl *) ((wxRadioButton *) x));
41769}
41770static void *_p_wxToolbookTo_p_wxControl(void *x) {
41771 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxToolbook *) x));
41772}
41773static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
41774 return (void *)((wxControl *) ((wxToolBarBase *) x));
41775}
41776static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
41777 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
41778}
41779static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
41780 return (void *)((wxControl *) ((wxPyListCtrl *) x));
41781}
41782static void *_p_wxComboBoxTo_p_wxControl(void *x) {
41783 return (void *)((wxControl *) ((wxComboBox *) x));
41784}
41785static void *_p_wxPyControlTo_p_wxControl(void *x) {
41786 return (void *)((wxControl *) ((wxPyControl *) x));
41787}
41788static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
41789 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
41790}
41791static void *_p_wxScrollBarTo_p_wxControl(void *x) {
41792 return (void *)((wxControl *) ((wxScrollBar *) x));
41793}
41794static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
41795 return (void *)((wxControl *) ((wxControlWithItems *) x));
41796}
41797static void *_p_wxGaugeTo_p_wxControl(void *x) {
41798 return (void *)((wxControl *) ((wxGauge *) x));
41799}
41800static void *_p_wxStaticLineTo_p_wxControl(void *x) {
41801 return (void *)((wxControl *) ((wxStaticLine *) x));
41802}
41803static void *_p_wxChoicebookTo_p_wxControl(void *x) {
41804 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x));
41805}
41806static void *_p_wxListbookTo_p_wxControl(void *x) {
41807 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x));
41808}
41809static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
41810 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
41811}
41812static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
41813 return (void *)((wxControl *) ((wxCheckBox *) x));
41814}
41815static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
41816 return (void *)((wxControl *) ((wxRadioBox *) x));
41817}
41818static void *_p_wxChoiceTo_p_wxControl(void *x) {
41819 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
41820}
41821static void *_p_wxListBoxTo_p_wxControl(void *x) {
41822 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
41823}
41824static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
41825 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
41826}
41827static void *_p_wxListViewTo_p_wxControl(void *x) {
41828 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
41829}
41830static void *_p_wxNotebookTo_p_wxControl(void *x) {
41831 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x));
41832}
41833static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
41834 return (void *)((wxControl *) ((wxStaticBitmap *) x));
41835}
41836static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
41837 return (void *)((wxControl *) ((wxSpinCtrl *) x));
41838}
41839static void *_p_wxStaticTextTo_p_wxControl(void *x) {
41840 return (void *)((wxControl *) ((wxStaticText *) x));
41841}
41842static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
41843 return (void *)((wxControl *) ((wxStaticBox *) x));
41844}
41845static void *_p_wxSliderTo_p_wxControl(void *x) {
41846 return (void *)((wxControl *) ((wxSlider *) x));
41847}
41848static void *_p_wxTreebookTo_p_wxControl(void *x) {
41849 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxTreebook *) x));
41850}
41851static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
41852 return (void *)((wxControl *) ((wxSpinButton *) x));
41853}
41854static void *_p_wxButtonTo_p_wxControl(void *x) {
41855 return (void *)((wxControl *) ((wxButton *) x));
41856}
41857static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
41858 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
41859}
41860static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
41861 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
41862}
41863static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) {
41864 return (void *)((wxControl *) ((wxDatePickerCtrl *) x));
41865}
41866static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
41867 return (void *)((wxControl *) ((wxTextCtrl *) x));
41868}
41869static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
41870 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
41871}
41872static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
41873 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
41874}
41875static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) {
41876 return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
41877}
41878static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
41879 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
41880}
41881static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
41882 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
41883}
41884static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
41885 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
41886}
41887static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
41888 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
41889}
41890static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
41891 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
41892}
41893static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) {
41894 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
41895}
41896static void *_p_wxTreebookEventTo_p_wxNotifyEvent(void *x) {
41897 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
41898}
41899static void *_p_wxToolbookEventTo_p_wxNotifyEvent(void *x) {
41900 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
41901}
41902static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) {
41903 return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x));
41904}
41905static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) {
41906 return (void *)((wxBookCtrlBase *) ((wxListbook *) x));
41907}
41908static void *_p_wxToolbookTo_p_wxBookCtrlBase(void *x) {
41909 return (void *)((wxBookCtrlBase *) ((wxToolbook *) x));
41910}
41911static void *_p_wxTreebookTo_p_wxBookCtrlBase(void *x) {
41912 return (void *)((wxBookCtrlBase *) ((wxTreebook *) x));
41913}
41914static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) {
41915 return (void *)((wxBookCtrlBase *) ((wxNotebook *) x));
41916}
41917static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
41918 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
41919}
41920static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) {
41921 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
41922}
41923static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
41924 return (void *)((wxEvtHandler *) ((wxValidator *) x));
41925}
41926static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
41927 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
41928}
41929static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
41930 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
41931}
41932static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
41933 return (void *)((wxEvtHandler *) ((wxMenu *) x));
41934}
41935static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
41936 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
41937}
41938static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
41939 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
41940}
41941static void *_p_wxToolbookTo_p_wxEvtHandler(void *x) {
41942 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
41943}
41944static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
41945 return (void *)((wxEvtHandler *) ((wxWindow *) x));
41946}
41947static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
41948 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
41949}
41950static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
41951 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x));
41952}
41953static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
41954 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
41955}
41956static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
41957 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
41958}
41959static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
41960 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
41961}
41962static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
41963 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
41964}
41965static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
41966 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
41967}
41968static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
41969 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
41970}
41971static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
41972 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
41973}
41974static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
41975 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
41976}
41977static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
41978 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
41979}
41980static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
41981 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
41982}
41983static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) {
41984 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
41985}
41986static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
41987 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
41988}
41989static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
41990 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
41991}
41992static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
41993 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
41994}
41995static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
41996 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
41997}
41998static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
41999 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
42000}
42001static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
42002 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
42003}
42004static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
42005 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
42006}
42007static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
42008 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
42009}
42010static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
42011 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
42012}
42013static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
42014 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
42015}
42016static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
42017 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
42018}
42019static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
42020 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
42021}
42022static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
42023 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
42024}
42025static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
42026 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
42027}
42028static void *_p_wxTreebookTo_p_wxEvtHandler(void *x) {
42029 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
42030}
42031static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
42032 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
42033}
42034static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
42035 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
42036}
42037static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
42038 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
42039}
42040static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
42041 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
42042}
42043static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) {
42044 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
42045}
42046static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
42047 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
42048}
42049static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
42050 return (void *)((wxListBox *) ((wxCheckListBox *) x));
42051}
42052static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
42053 return (void *)((wxButton *) ((wxBitmapButton *) x));
42054}
42055static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
42056 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
42057}
42058static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
42059 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
42060}
42061static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
42062 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
42063}
42064static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
42065 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
42066}
42067static void *_p_wxToolbookTo_p_wxObject(void *x) {
42068 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
42069}
42070static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
42071 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
42072}
42073static void *_p_wxSizerItemTo_p_wxObject(void *x) {
42074 return (void *)((wxObject *) ((wxSizerItem *) x));
42075}
42076static void *_p_wxScrollEventTo_p_wxObject(void *x) {
42077 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
42078}
42079static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
42080 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
42081}
42082static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
42083 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
42084}
42085static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
42086 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
42087}
42088static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
42089 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
42090}
42091static void *_p_wxSizerTo_p_wxObject(void *x) {
42092 return (void *)((wxObject *) ((wxSizer *) x));
42093}
42094static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
42095 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
42096}
42097static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
42098 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
42099}
42100static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
42101 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
42102}
42103static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
42104 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
42105}
42106static void *_p_wxEventTo_p_wxObject(void *x) {
42107 return (void *)((wxObject *) ((wxEvent *) x));
42108}
42109static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
42110 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
42111}
42112static void *_p_wxGridSizerTo_p_wxObject(void *x) {
42113 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
42114}
42115static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
42116 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
42117}
42118static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
42119 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
42120}
42121static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
42122 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
42123}
42124static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
42125 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
42126}
42127static void *_p_wxPaintEventTo_p_wxObject(void *x) {
42128 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
42129}
42130static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
42131 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
42132}
42133static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
42134 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
42135}
42136static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
42137 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
42138}
42139static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
42140 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
42141}
42142static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
42143 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
42144}
42145static void *_p_wxStaticLineTo_p_wxObject(void *x) {
42146 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
42147}
42148static void *_p_wxControlTo_p_wxObject(void *x) {
42149 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
42150}
42151static void *_p_wxPyControlTo_p_wxObject(void *x) {
42152 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
42153}
42154static void *_p_wxGaugeTo_p_wxObject(void *x) {
42155 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
42156}
42157static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
42158 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
42159}
42160static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
42161 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
42162}
42163static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
42164 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
42165}
42166static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
42167 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
42168}
42169static void *_p_wxChoiceTo_p_wxObject(void *x) {
42170 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
42171}
42172static void *_p_wxFSFileTo_p_wxObject(void *x) {
42173 return (void *)((wxObject *) ((wxFSFile *) x));
42174}
42175static void *_p_wxPySizerTo_p_wxObject(void *x) {
42176 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
42177}
42178static void *_p_wxTreebookTo_p_wxObject(void *x) {
42179 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
42180}
42181static void *_p_wxListViewTo_p_wxObject(void *x) {
42182 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
42183}
42184static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
42185 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
42186}
42187static void *_p_wxNotebookTo_p_wxObject(void *x) {
42188 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
42189}
42190static void *_p_wxPyEventTo_p_wxObject(void *x) {
42191 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
42192}
42193static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
42194 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
42195}
42196static void *_p_wxChoicebookTo_p_wxObject(void *x) {
42197 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
42198}
42199static void *_p_wxListbookTo_p_wxObject(void *x) {
42200 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
42201}
42202static void *_p_wxShowEventTo_p_wxObject(void *x) {
42203 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
42204}
42205static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
42206 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
42207}
42208static void *_p_wxSliderTo_p_wxObject(void *x) {
42209 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
42210}
42211static void *_p_wxMenuItemTo_p_wxObject(void *x) {
42212 return (void *)((wxObject *) ((wxMenuItem *) x));
42213}
42214static void *_p_wxDateEventTo_p_wxObject(void *x) {
42215 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
42216}
42217static void *_p_wxIdleEventTo_p_wxObject(void *x) {
42218 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
42219}
42220static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
42221 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
42222}
42223static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
42224 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
42225}
42226static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
42227 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
42228}
42229static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
42230 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
42231}
42232static void *_p_wxSizeEventTo_p_wxObject(void *x) {
42233 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
42234}
42235static void *_p_wxMoveEventTo_p_wxObject(void *x) {
42236 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
42237}
42238static void *_p_wxActivateEventTo_p_wxObject(void *x) {
42239 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
42240}
42241static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
42242 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
42243}
42244static void *_p_wxContextHelpTo_p_wxObject(void *x) {
42245 return (void *)((wxObject *) ((wxContextHelp *) x));
42246}
42247static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) {
42248 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
42249}
42250static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
42251 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
42252}
42253static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
42254 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
42255}
42256static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
42257 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
42258}
42259static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
42260 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
42261}
42262static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
42263 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
42264}
42265static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
42266 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
42267}
42268static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
42269 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
42270}
42271static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
42272 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
42273}
42274static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
42275 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
42276}
42277static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
42278 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
42279}
42280static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
42281 return (void *)((wxObject *) ((wxImageHandler *) x));
42282}
42283static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
42284 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
42285}
42286static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
42287 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
42288}
42289static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
42290 return (void *)((wxObject *) ((wxEvtHandler *) x));
42291}
42292static void *_p_wxListEventTo_p_wxObject(void *x) {
42293 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
42294}
42295static void *_p_wxListBoxTo_p_wxObject(void *x) {
42296 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
42297}
42298static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
42299 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
42300}
42301static void *_p_wxButtonTo_p_wxObject(void *x) {
42302 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
42303}
42304static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
42305 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
42306}
42307static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
42308 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
42309}
42310static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
42311 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
42312}
42313static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
42314 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
42315}
42316static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
42317 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
42318}
42319static void *_p_wxScrollBarTo_p_wxObject(void *x) {
42320 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
42321}
42322static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
42323 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
42324}
42325static void *_p_wxComboBoxTo_p_wxObject(void *x) {
42326 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x));
42327}
42328static void *_p_wxHelpEventTo_p_wxObject(void *x) {
42329 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
42330}
42331static void *_p_wxListItemTo_p_wxObject(void *x) {
42332 return (void *)((wxObject *) ((wxListItem *) x));
42333}
42334static void *_p_wxImageTo_p_wxObject(void *x) {
42335 return (void *)((wxObject *) ((wxImage *) x));
42336}
42337static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
42338 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
42339}
42340static void *_p_wxSpinEventTo_p_wxObject(void *x) {
42341 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
42342}
42343static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
42344 return (void *)((wxObject *) ((wxGenericDragImage *) x));
42345}
42346static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
42347 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
42348}
42349static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
42350 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
42351}
42352static void *_p_wxListbookEventTo_p_wxObject(void *x) {
42353 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
42354}
42355static void *_p_wxChoicebookEventTo_p_wxObject(void *x) {
42356 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
42357}
42358static void *_p_wxTreebookEventTo_p_wxObject(void *x) {
42359 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
42360}
42361static void *_p_wxToolbookEventTo_p_wxObject(void *x) {
42362 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
42363}
42364static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
42365 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
42366}
42367static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
42368 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
42369}
42370static void *_p_wxKeyEventTo_p_wxObject(void *x) {
42371 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
42372}
42373static void *_p_wxWindowTo_p_wxObject(void *x) {
42374 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
42375}
42376static void *_p_wxMenuTo_p_wxObject(void *x) {
42377 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
42378}
42379static void *_p_wxMenuBarTo_p_wxObject(void *x) {
42380 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
42381}
42382static void *_p_wxFileSystemTo_p_wxObject(void *x) {
42383 return (void *)((wxObject *) ((wxFileSystem *) x));
42384}
42385static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
42386 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
42387}
42388static void *_p_wxMenuEventTo_p_wxObject(void *x) {
42389 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
42390}
42391static void *_p_wxPyAppTo_p_wxObject(void *x) {
42392 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
42393}
42394static void *_p_wxCloseEventTo_p_wxObject(void *x) {
42395 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
42396}
42397static void *_p_wxMouseEventTo_p_wxObject(void *x) {
42398 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
42399}
42400static void *_p_wxEraseEventTo_p_wxObject(void *x) {
42401 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
42402}
42403static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) {
42404 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
42405}
42406static void *_p_wxTreeEventTo_p_wxObject(void *x) {
42407 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
42408}
42409static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
42410 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
42411}
42412static void *_p_wxCommandEventTo_p_wxObject(void *x) {
42413 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
42414}
42415static void *_p_wxStaticTextTo_p_wxObject(void *x) {
42416 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
42417}
42418static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
42419 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
42420}
42421static void *_p_wxFocusEventTo_p_wxObject(void *x) {
42422 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
42423}
42424static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
42425 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
42426}
42427static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) {
42428 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
42429}
42430static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
42431 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
42432}
42433static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
42434 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
42435}
42436static void *_p_wxToolBarTo_p_wxObject(void *x) {
42437 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
42438}
42439static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
42440 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
42441}
42442static void *_p_wxValidatorTo_p_wxObject(void *x) {
42443 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
42444}
42445static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
42446 return (void *)((wxWindow *) ((wxMenuBar *) x));
42447}
42448static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) {
42449 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x));
42450}
42451static void *_p_wxToolBarTo_p_wxWindow(void *x) {
42452 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
42453}
42454static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
42455 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
42456}
42457static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
42458 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
42459}
42460static void *_p_wxToolbookTo_p_wxWindow(void *x) {
42461 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
42462}
42463static void *_p_wxControlTo_p_wxWindow(void *x) {
42464 return (void *)((wxWindow *) ((wxControl *) x));
42465}
42466static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
42467 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
42468}
42469static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
42470 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
42471}
42472static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
42473 return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x));
42474}
42475static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
42476 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
42477}
42478static void *_p_wxPyControlTo_p_wxWindow(void *x) {
42479 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
42480}
42481static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
42482 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
42483}
42484static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
42485 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
42486}
42487static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
42488 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
42489}
42490static void *_p_wxGaugeTo_p_wxWindow(void *x) {
42491 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
42492}
42493static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
42494 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
42495}
42496static void *_p_wxChoicebookTo_p_wxWindow(void *x) {
42497 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
42498}
42499static void *_p_wxListbookTo_p_wxWindow(void *x) {
42500 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
42501}
42502static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
42503 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
42504}
42505static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
42506 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
42507}
42508static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
42509 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
42510}
42511static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
42512 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
42513}
42514static void *_p_wxChoiceTo_p_wxWindow(void *x) {
42515 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
42516}
42517static void *_p_wxListBoxTo_p_wxWindow(void *x) {
42518 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
42519}
42520static void *_p_wxListViewTo_p_wxWindow(void *x) {
42521 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
42522}
42523static void *_p_wxNotebookTo_p_wxWindow(void *x) {
42524 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
42525}
42526static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
42527 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
42528}
42529static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
42530 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
42531}
42532static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
42533 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
42534}
42535static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
42536 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
42537}
42538static void *_p_wxSliderTo_p_wxWindow(void *x) {
42539 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
42540}
42541static void *_p_wxTreebookTo_p_wxWindow(void *x) {
42542 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
42543}
42544static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
42545 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
42546}
42547static void *_p_wxButtonTo_p_wxWindow(void *x) {
42548 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
42549}
42550static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
42551 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
42552}
42553static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
42554 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
42555}
42556static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) {
42557 return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x));
42558}
42559static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
42560 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
42561}
42562static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
42563 return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
42564}
42565static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
42566 return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
42567}
42568static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
42569 return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
42570}
42571static void *_p_wxTreebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
42572 return (void *)((wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
42573}
42574static void *_p_wxToolbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
42575 return (void *)((wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
42576}
42577static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
42578 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
42579}
42580static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
42581 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
42582}
42583static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
42584 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
42585}
42586static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
42587 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
42588}
42589static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
42590 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
42591}
42592static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
42593 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
42594}
42595static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
42596 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
42597}
42598static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
42599 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
42600}
42601static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) {
42602 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
42603}
42604static void *_p_wxTreebookEventTo_p_wxCommandEvent(void *x) {
42605 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
42606}
42607static void *_p_wxToolbookEventTo_p_wxCommandEvent(void *x) {
42608 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
42609}
42610static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
42611 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
42612}
42613static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
42614 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
42615}
42616static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
42617 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
42618}
42619static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) {
42620 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
42621}
42622static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
42623 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
42624}
42625static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
42626 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
42627}
42628static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
42629 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
42630}
42631static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
42632 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
42633}
42634static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
42635 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
42636}
42637static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
42638 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
42639}
42640static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
42641 return (void *)((wxControlWithItems *) ((wxChoice *) x));
42642}
42643static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
42644 return (void *)((wxControlWithItems *) ((wxListBox *) x));
42645}
42646static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
42647 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
42648}
42649static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
42650 return (void *)((wxValidator *) ((wxPyValidator *) x));
42651}
42652static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0};
42653static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
42654static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
42655static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
42656static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
42657static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
42658static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
42659static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
42660static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
42661static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0};
42662static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0};
42663static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
42664static swig_type_info _swigt__p_wxBitmapButton = {"_p_wxBitmapButton", "wxBitmapButton *", 0, 0, (void*)0, 0};
42665static swig_type_info _swigt__p_wxBookCtrlBase = {"_p_wxBookCtrlBase", "wxBookCtrlBase *", 0, 0, (void*)0, 0};
42666static swig_type_info _swigt__p_wxBookCtrlBaseEvent = {"_p_wxBookCtrlBaseEvent", "wxBookCtrlBaseEvent *", 0, 0, (void*)0, 0};
42667static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, (void*)0, 0};
42668static swig_type_info _swigt__p_wxCheckBox = {"_p_wxCheckBox", "wxCheckBox *", 0, 0, (void*)0, 0};
42669static swig_type_info _swigt__p_wxCheckListBox = {"_p_wxCheckListBox", "wxCheckListBox *", 0, 0, (void*)0, 0};
42670static swig_type_info _swigt__p_wxChoice = {"_p_wxChoice", "wxChoice *", 0, 0, (void*)0, 0};
42671static swig_type_info _swigt__p_wxChoicebook = {"_p_wxChoicebook", "wxChoicebook *", 0, 0, (void*)0, 0};
42672static swig_type_info _swigt__p_wxChoicebookEvent = {"_p_wxChoicebookEvent", "wxChoicebookEvent *", 0, 0, (void*)0, 0};
42673static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
42674static swig_type_info _swigt__p_wxComboBox = {"_p_wxComboBox", "wxComboBox *", 0, 0, (void*)0, 0};
42675static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0};
42676static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
42677static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
42678static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
42679static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
42680static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
42681static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
42682static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
42683static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
42684static swig_type_info _swigt__p_wxContextHelp = {"_p_wxContextHelp", "wxContextHelp *", 0, 0, (void*)0, 0};
42685static swig_type_info _swigt__p_wxContextHelpButton = {"_p_wxContextHelpButton", "wxContextHelpButton *", 0, 0, (void*)0, 0};
42686static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, (void*)0, 0};
42687static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, (void*)0, 0};
42688static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
42689static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
42690static swig_type_info _swigt__p_wxDatePickerCtrl = {"_p_wxDatePickerCtrl", "wxDatePickerCtrl *", 0, 0, (void*)0, 0};
42691static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0};
42692static swig_type_info _swigt__p_wxDirFilterListCtrl = {"_p_wxDirFilterListCtrl", "wxDirFilterListCtrl *", 0, 0, (void*)0, 0};
42693static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
42694static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
42695static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
42696static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
42697static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
42698static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
42699static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
42700static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
42701static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
42702static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
42703static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
42704static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
42705static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
42706static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
42707static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
42708static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
42709static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
42710static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
42711static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
42712static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
42713static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
42714static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
42715static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
42716static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
42717static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
42718static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
42719static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
42720static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
42721static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
42722static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
42723static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
42724static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
42725static swig_type_info _swigt__p_wxGauge = {"_p_wxGauge", "wxGauge *", 0, 0, (void*)0, 0};
42726static swig_type_info _swigt__p_wxGenericDirCtrl = {"_p_wxGenericDirCtrl", "wxGenericDirCtrl *", 0, 0, (void*)0, 0};
42727static swig_type_info _swigt__p_wxGenericDragImage = {"_p_wxGenericDragImage", "wxGenericDragImage *", 0, 0, (void*)0, 0};
42728static swig_type_info _swigt__p_wxHelpEvent = {"_p_wxHelpEvent", "wxHelpEvent *", 0, 0, (void*)0, 0};
42729static swig_type_info _swigt__p_wxHelpProvider = {"_p_wxHelpProvider", "wxHelpProvider *", 0, 0, (void*)0, 0};
42730static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
42731static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
42732static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0};
42733static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, (void*)0, 0};
42734static swig_type_info _swigt__p_wxListBox = {"_p_wxListBox", "wxListBox *", 0, 0, (void*)0, 0};
42735static swig_type_info _swigt__p_wxListEvent = {"_p_wxListEvent", "wxListEvent *", 0, 0, (void*)0, 0};
42736static swig_type_info _swigt__p_wxListItem = {"_p_wxListItem", "wxListItem *", 0, 0, (void*)0, 0};
42737static swig_type_info _swigt__p_wxListItemAttr = {"_p_wxListItemAttr", "wxListItemAttr *", 0, 0, (void*)0, 0};
42738static swig_type_info _swigt__p_wxListView = {"_p_wxListView", "wxListView *", 0, 0, (void*)0, 0};
42739static swig_type_info _swigt__p_wxListbook = {"_p_wxListbook", "wxListbook *", 0, 0, (void*)0, 0};
42740static swig_type_info _swigt__p_wxListbookEvent = {"_p_wxListbookEvent", "wxListbookEvent *", 0, 0, (void*)0, 0};
42741static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
42742static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, (void*)0, 0};
42743static swig_type_info _swigt__p_wxNotebook = {"_p_wxNotebook", "wxNotebook *", 0, 0, (void*)0, 0};
42744static swig_type_info _swigt__p_wxNotebookEvent = {"_p_wxNotebookEvent", "wxNotebookEvent *", 0, 0, (void*)0, 0};
42745static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0};
42746static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
42747static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
42748static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
42749static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
42750static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
42751static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
42752static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
42753static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
42754static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
42755static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
42756static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
42757static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
42758static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
42759static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
42760static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
42761static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
42762static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
42763static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
42764static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
42765static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
42766static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
42767static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
42768static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
42769static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
42770static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
42771static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
42772static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
42773static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
42774static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
42775static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0};
42776static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
42777static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
42778static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
42779static swig_type_info _swigt__p_wxPyControl = {"_p_wxPyControl", "wxPyControl *", 0, 0, (void*)0, 0};
42780static swig_type_info _swigt__p_wxPyListCtrl = {"_p_wxPyListCtrl", "wxPyListCtrl *", 0, 0, (void*)0, 0};
42781static swig_type_info _swigt__p_wxPyTreeCtrl = {"_p_wxPyTreeCtrl", "wxPyTreeCtrl *", 0, 0, (void*)0, 0};
42782static swig_type_info _swigt__p_wxPyTreeItemData = {"_p_wxPyTreeItemData", "wxPyTreeItemData *", 0, 0, (void*)0, 0};
42783static swig_type_info _swigt__p_wxRadioBox = {"_p_wxRadioBox", "wxRadioBox *", 0, 0, (void*)0, 0};
42784static swig_type_info _swigt__p_wxRadioButton = {"_p_wxRadioButton", "wxRadioButton *", 0, 0, (void*)0, 0};
42785static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
42786static swig_type_info _swigt__p_wxScrollBar = {"_p_wxScrollBar", "wxScrollBar *", 0, 0, (void*)0, 0};
42787static swig_type_info _swigt__p_wxSimpleHelpProvider = {"_p_wxSimpleHelpProvider", "wxSimpleHelpProvider *", 0, 0, (void*)0, 0};
42788static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
42789static swig_type_info _swigt__p_wxSlider = {"_p_wxSlider", "wxSlider *", 0, 0, (void*)0, 0};
42790static swig_type_info _swigt__p_wxSpinButton = {"_p_wxSpinButton", "wxSpinButton *", 0, 0, (void*)0, 0};
42791static swig_type_info _swigt__p_wxSpinCtrl = {"_p_wxSpinCtrl", "wxSpinCtrl *", 0, 0, (void*)0, 0};
42792static swig_type_info _swigt__p_wxSpinEvent = {"_p_wxSpinEvent", "wxSpinEvent *", 0, 0, (void*)0, 0};
42793static swig_type_info _swigt__p_wxStaticBitmap = {"_p_wxStaticBitmap", "wxStaticBitmap *", 0, 0, (void*)0, 0};
42794static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, (void*)0, 0};
42795static swig_type_info _swigt__p_wxStaticLine = {"_p_wxStaticLine", "wxStaticLine *", 0, 0, (void*)0, 0};
42796static swig_type_info _swigt__p_wxStaticText = {"_p_wxStaticText", "wxStaticText *", 0, 0, (void*)0, 0};
42797static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
42798static swig_type_info _swigt__p_wxTextAttr = {"_p_wxTextAttr", "wxTextAttr *", 0, 0, (void*)0, 0};
42799static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, (void*)0, 0};
42800static swig_type_info _swigt__p_wxTextUrlEvent = {"_p_wxTextUrlEvent", "wxTextUrlEvent *", 0, 0, (void*)0, 0};
42801static swig_type_info _swigt__p_wxToggleButton = {"_p_wxToggleButton", "wxToggleButton *", 0, 0, (void*)0, 0};
42802static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0};
42803static swig_type_info _swigt__p_wxToolBarBase = {"_p_wxToolBarBase", "wxToolBarBase *", 0, 0, (void*)0, 0};
42804static swig_type_info _swigt__p_wxToolBarToolBase = {"_p_wxToolBarToolBase", "wxToolBarToolBase *", 0, 0, (void*)0, 0};
42805static swig_type_info _swigt__p_wxToolbook = {"_p_wxToolbook", "wxToolbook *", 0, 0, (void*)0, 0};
42806static swig_type_info _swigt__p_wxToolbookEvent = {"_p_wxToolbookEvent", "wxToolbookEvent *", 0, 0, (void*)0, 0};
42807static swig_type_info _swigt__p_wxTreeCtrl = {"_p_wxTreeCtrl", "wxTreeCtrl *", 0, 0, (void*)0, 0};
42808static swig_type_info _swigt__p_wxTreeEvent = {"_p_wxTreeEvent", "wxTreeEvent *", 0, 0, (void*)0, 0};
42809static swig_type_info _swigt__p_wxTreeItemId = {"_p_wxTreeItemId", "wxTreeItemId *", 0, 0, (void*)0, 0};
42810static swig_type_info _swigt__p_wxTreebook = {"_p_wxTreebook", "wxTreebook *", 0, 0, (void*)0, 0};
42811static swig_type_info _swigt__p_wxTreebookEvent = {"_p_wxTreebookEvent", "wxTreebookEvent *", 0, 0, (void*)0, 0};
42812static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0};
42813static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0};
42814static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
42815
42816static swig_type_info *swig_type_initial[] = {
42817 &_swigt__p_bool,
42818 &_swigt__p_char,
42819 &_swigt__p_form_ops_t,
42820 &_swigt__p_int,
42821 &_swigt__p_long,
42822 &_swigt__p_unsigned_char,
42823 &_swigt__p_unsigned_int,
42824 &_swigt__p_unsigned_long,
42825 &_swigt__p_void,
42826 &_swigt__p_wxANIHandler,
42827 &_swigt__p_wxAcceleratorTable,
42828 &_swigt__p_wxActivateEvent,
42829 &_swigt__p_wxArrayInt,
42830 &_swigt__p_wxArrayString,
42831 &_swigt__p_wxBMPHandler,
42832 &_swigt__p_wxBitmap,
42833 &_swigt__p_wxBitmapButton,
42834 &_swigt__p_wxBookCtrlBase,
42835 &_swigt__p_wxBookCtrlBaseEvent,
42836 &_swigt__p_wxBoxSizer,
42837 &_swigt__p_wxButton,
42838 &_swigt__p_wxCURHandler,
42839 &_swigt__p_wxCheckBox,
42840 &_swigt__p_wxCheckListBox,
42841 &_swigt__p_wxChildFocusEvent,
42842 &_swigt__p_wxChoice,
42843 &_swigt__p_wxChoicebook,
42844 &_swigt__p_wxChoicebookEvent,
42845 &_swigt__p_wxCloseEvent,
42846 &_swigt__p_wxColour,
42847 &_swigt__p_wxComboBox,
42848 &_swigt__p_wxCommandEvent,
42849 &_swigt__p_wxContextHelp,
42850 &_swigt__p_wxContextHelpButton,
42851 &_swigt__p_wxContextMenuEvent,
42852 &_swigt__p_wxControl,
42853 &_swigt__p_wxControlWithItems,
42854 &_swigt__p_wxCursor,
42855 &_swigt__p_wxDC,
42856 &_swigt__p_wxDateEvent,
42857 &_swigt__p_wxDatePickerCtrl,
42858 &_swigt__p_wxDateTime,
42859 &_swigt__p_wxDirFilterListCtrl,
42860 &_swigt__p_wxDisplayChangedEvent,
42861 &_swigt__p_wxDropFilesEvent,
42862 &_swigt__p_wxDuplexMode,
42863 &_swigt__p_wxEraseEvent,
42864 &_swigt__p_wxEvent,
42865 &_swigt__p_wxEvtHandler,
42866 &_swigt__p_wxFSFile,
42867 &_swigt__p_wxFileSystem,
42868 &_swigt__p_wxFlexGridSizer,
42869 &_swigt__p_wxFocusEvent,
42870 &_swigt__p_wxFont,
42871 &_swigt__p_wxGBSizerItem,
42872 &_swigt__p_wxGIFHandler,
42873 &_swigt__p_wxGauge,
42874 &_swigt__p_wxGenericDirCtrl,
42875 &_swigt__p_wxGenericDragImage,
42876 &_swigt__p_wxGridBagSizer,
42877 &_swigt__p_wxGridSizer,
42878 &_swigt__p_wxHelpEvent,
42879 &_swigt__p_wxHelpProvider,
42880 &_swigt__p_wxICOHandler,
42881 &_swigt__p_wxIcon,
42882 &_swigt__p_wxIconizeEvent,
42883 &_swigt__p_wxIdleEvent,
42884 &_swigt__p_wxImage,
42885 &_swigt__p_wxImageHandler,
42886 &_swigt__p_wxImageList,
42887 &_swigt__p_wxIndividualLayoutConstraint,
42888 &_swigt__p_wxInitDialogEvent,
42889 &_swigt__p_wxItemContainer,
42890 &_swigt__p_wxJPEGHandler,
42891 &_swigt__p_wxKeyEvent,
42892 &_swigt__p_wxLayoutConstraints,
42893 &_swigt__p_wxListBox,
42894 &_swigt__p_wxListEvent,
42895 &_swigt__p_wxListItem,
42896 &_swigt__p_wxListItemAttr,
42897 &_swigt__p_wxListView,
42898 &_swigt__p_wxListbook,
42899 &_swigt__p_wxListbookEvent,
42900 &_swigt__p_wxMaximizeEvent,
42901 &_swigt__p_wxMemoryDC,
42902 &_swigt__p_wxMenu,
42903 &_swigt__p_wxMenuBar,
42904 &_swigt__p_wxMenuEvent,
42905 &_swigt__p_wxMenuItem,
42906 &_swigt__p_wxMouseCaptureChangedEvent,
42907 &_swigt__p_wxMouseEvent,
42908 &_swigt__p_wxMoveEvent,
42909 &_swigt__p_wxNavigationKeyEvent,
42910 &_swigt__p_wxNcPaintEvent,
42911 &_swigt__p_wxNotebook,
42912 &_swigt__p_wxNotebookEvent,
42913 &_swigt__p_wxNotifyEvent,
42914 &_swigt__p_wxObject,
42915 &_swigt__p_wxPCXHandler,
42916 &_swigt__p_wxPNGHandler,
42917 &_swigt__p_wxPNMHandler,
42918 &_swigt__p_wxPaintEvent,
42919 &_swigt__p_wxPaletteChangedEvent,
42920 &_swigt__p_wxPaperSize,
42921 &_swigt__p_wxPoint,
42922 &_swigt__p_wxPyApp,
42923 &_swigt__p_wxPyCommandEvent,
42924 &_swigt__p_wxPyControl,
42925 &_swigt__p_wxPyEvent,
42926 &_swigt__p_wxPyImageHandler,
42927 &_swigt__p_wxPyListCtrl,
42928 &_swigt__p_wxPySizer,
42929 &_swigt__p_wxPyTreeCtrl,
42930 &_swigt__p_wxPyTreeItemData,
42931 &_swigt__p_wxPyValidator,
42932 &_swigt__p_wxQueryNewPaletteEvent,
42933 &_swigt__p_wxRadioBox,
42934 &_swigt__p_wxRadioButton,
42935 &_swigt__p_wxRect,
42936 &_swigt__p_wxScrollBar,
42937 &_swigt__p_wxScrollEvent,
42938 &_swigt__p_wxScrollWinEvent,
42939 &_swigt__p_wxSetCursorEvent,
42940 &_swigt__p_wxShowEvent,
42941 &_swigt__p_wxSimpleHelpProvider,
42942 &_swigt__p_wxSize,
42943 &_swigt__p_wxSizeEvent,
42944 &_swigt__p_wxSizer,
42945 &_swigt__p_wxSizerItem,
42946 &_swigt__p_wxSlider,
42947 &_swigt__p_wxSpinButton,
42948 &_swigt__p_wxSpinCtrl,
42949 &_swigt__p_wxSpinEvent,
42950 &_swigt__p_wxStaticBitmap,
42951 &_swigt__p_wxStaticBox,
42952 &_swigt__p_wxStaticBoxSizer,
42953 &_swigt__p_wxStaticLine,
42954 &_swigt__p_wxStaticText,
42955 &_swigt__p_wxStdDialogButtonSizer,
42956 &_swigt__p_wxString,
42957 &_swigt__p_wxSysColourChangedEvent,
42958 &_swigt__p_wxTIFFHandler,
42959 &_swigt__p_wxTextAttr,
42960 &_swigt__p_wxTextCtrl,
42961 &_swigt__p_wxTextUrlEvent,
42962 &_swigt__p_wxToggleButton,
42963 &_swigt__p_wxToolBar,
42964 &_swigt__p_wxToolBarBase,
42965 &_swigt__p_wxToolBarToolBase,
42966 &_swigt__p_wxToolbook,
42967 &_swigt__p_wxToolbookEvent,
42968 &_swigt__p_wxTreeCtrl,
42969 &_swigt__p_wxTreeEvent,
42970 &_swigt__p_wxTreeItemId,
42971 &_swigt__p_wxTreebook,
42972 &_swigt__p_wxTreebookEvent,
42973 &_swigt__p_wxUpdateUIEvent,
42974 &_swigt__p_wxValidator,
42975 &_swigt__p_wxVisualAttributes,
42976 &_swigt__p_wxWindow,
42977 &_swigt__p_wxWindowCreateEvent,
42978 &_swigt__p_wxWindowDestroyEvent,
42979 &_swigt__p_wxXPMHandler,
42980};
42981
42982static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}};
42983static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
42984static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
42985static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
42986static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
42987static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
42988static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
42989static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
42990static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
42991static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}};
42992static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}};
42993static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
42994static 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}};
42995static 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}};
42996static 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}};
42997static 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}};
42998static swig_cast_info _swigc__p_wxCheckBox[] = { {&_swigt__p_wxCheckBox, 0, 0, 0},{0, 0, 0, 0}};
42999static swig_cast_info _swigc__p_wxCheckListBox[] = { {&_swigt__p_wxCheckListBox, 0, 0, 0},{0, 0, 0, 0}};
43000static 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}};
43001static swig_cast_info _swigc__p_wxChoicebook[] = { {&_swigt__p_wxChoicebook, 0, 0, 0},{0, 0, 0, 0}};
43002static swig_cast_info _swigc__p_wxChoicebookEvent[] = { {&_swigt__p_wxChoicebookEvent, 0, 0, 0},{0, 0, 0, 0}};
43003static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
43004static swig_cast_info _swigc__p_wxComboBox[] = { {&_swigt__p_wxComboBox, 0, 0, 0},{0, 0, 0, 0}};
43005static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
43006static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
43007static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
43008static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
43009static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
43010static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
43011static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
43012static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
43013static swig_cast_info _swigc__p_wxCommandEvent[] = { {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_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_wxListbookEvent, _p_wxListbookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_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}};
43014static swig_cast_info _swigc__p_wxContextHelp[] = { {&_swigt__p_wxContextHelp, 0, 0, 0},{0, 0, 0, 0}};
43015static swig_cast_info _swigc__p_wxContextHelpButton[] = { {&_swigt__p_wxContextHelpButton, 0, 0, 0},{0, 0, 0, 0}};
43016static 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_wxToggleButton, _p_wxToggleButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxControl, 0, 0}, {&_swigt__p_wxControl, 0, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_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_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_wxBitmapButton, _p_wxBitmapButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_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}};
43017static 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}};
43018static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
43019static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}};
43020static swig_cast_info _swigc__p_wxDatePickerCtrl[] = { {&_swigt__p_wxDatePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
43021static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}};
43022static swig_cast_info _swigc__p_wxDirFilterListCtrl[] = { {&_swigt__p_wxDirFilterListCtrl, 0, 0, 0},{0, 0, 0, 0}};
43023static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
43024static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
43025static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
43026static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
43027static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
43028static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
43029static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
43030static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
43031static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
43032static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
43033static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
43034static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
43035static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
43036static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
43037static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
43038static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
43039static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
43040static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
43041static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
43042static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
43043static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
43044static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
43045static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
43046static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
43047static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
43048static 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_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_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_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_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}};
43049static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
43050static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
43051static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
43052static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
43053static 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_wxToggleButton, _p_wxToggleButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_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_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_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_wxSpinButton, _p_wxSpinButtonTo_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}};
43054static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
43055static swig_cast_info _swigc__p_wxGauge[] = { {&_swigt__p_wxGauge, 0, 0, 0},{0, 0, 0, 0}};
43056static swig_cast_info _swigc__p_wxGenericDirCtrl[] = { {&_swigt__p_wxGenericDirCtrl, 0, 0, 0},{0, 0, 0, 0}};
43057static swig_cast_info _swigc__p_wxGenericDragImage[] = { {&_swigt__p_wxGenericDragImage, 0, 0, 0},{0, 0, 0, 0}};
43058static swig_cast_info _swigc__p_wxHelpEvent[] = { {&_swigt__p_wxHelpEvent, 0, 0, 0},{0, 0, 0, 0}};
43059static 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}};
43060static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
43061static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
43062static 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}};
43063static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
43064static 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}};
43065static swig_cast_info _swigc__p_wxListEvent[] = { {&_swigt__p_wxListEvent, 0, 0, 0},{0, 0, 0, 0}};
43066static swig_cast_info _swigc__p_wxListItem[] = { {&_swigt__p_wxListItem, 0, 0, 0},{0, 0, 0, 0}};
43067static swig_cast_info _swigc__p_wxListItemAttr[] = { {&_swigt__p_wxListItemAttr, 0, 0, 0},{0, 0, 0, 0}};
43068static swig_cast_info _swigc__p_wxListView[] = { {&_swigt__p_wxListView, 0, 0, 0},{0, 0, 0, 0}};
43069static swig_cast_info _swigc__p_wxListbook[] = { {&_swigt__p_wxListbook, 0, 0, 0},{0, 0, 0, 0}};
43070static swig_cast_info _swigc__p_wxListbookEvent[] = { {&_swigt__p_wxListbookEvent, 0, 0, 0},{0, 0, 0, 0}};
43071static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}};
43072static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
43073static swig_cast_info _swigc__p_wxNotebook[] = { {&_swigt__p_wxNotebook, 0, 0, 0},{0, 0, 0, 0}};
43074static swig_cast_info _swigc__p_wxNotebookEvent[] = { {&_swigt__p_wxNotebookEvent, 0, 0, 0},{0, 0, 0, 0}};
43075static 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}};
43076static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
43077static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
43078static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
43079static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
43080static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
43081static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
43082static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
43083static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
43084static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
43085static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
43086static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
43087static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
43088static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
43089static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
43090static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
43091static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
43092static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
43093static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
43094static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
43095static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
43096static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
43097static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
43098static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
43099static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
43100static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
43101static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
43102static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
43103static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
43104static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
43105static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
43106static 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_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_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_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_wxTreebook, _p_wxTreebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_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_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_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_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_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_wxSpinButton, _p_wxSpinButtonTo_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_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_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}};
43107static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
43108static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
43109static swig_cast_info _swigc__p_wxPyControl[] = { {&_swigt__p_wxPyControl, 0, 0, 0},{0, 0, 0, 0}};
43110static 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}};
43111static swig_cast_info _swigc__p_wxPyTreeCtrl[] = { {&_swigt__p_wxPyTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
43112static swig_cast_info _swigc__p_wxPyTreeItemData[] = { {&_swigt__p_wxPyTreeItemData, 0, 0, 0},{0, 0, 0, 0}};
43113static swig_cast_info _swigc__p_wxRadioBox[] = { {&_swigt__p_wxRadioBox, 0, 0, 0},{0, 0, 0, 0}};
43114static swig_cast_info _swigc__p_wxRadioButton[] = { {&_swigt__p_wxRadioButton, 0, 0, 0},{0, 0, 0, 0}};
43115static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
43116static swig_cast_info _swigc__p_wxScrollBar[] = { {&_swigt__p_wxScrollBar, 0, 0, 0},{0, 0, 0, 0}};
43117static swig_cast_info _swigc__p_wxSimpleHelpProvider[] = { {&_swigt__p_wxSimpleHelpProvider, 0, 0, 0},{0, 0, 0, 0}};
43118static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
43119static swig_cast_info _swigc__p_wxSlider[] = { {&_swigt__p_wxSlider, 0, 0, 0},{0, 0, 0, 0}};
43120static swig_cast_info _swigc__p_wxSpinButton[] = { {&_swigt__p_wxSpinButton, 0, 0, 0},{0, 0, 0, 0}};
43121static swig_cast_info _swigc__p_wxSpinCtrl[] = { {&_swigt__p_wxSpinCtrl, 0, 0, 0},{0, 0, 0, 0}};
43122static swig_cast_info _swigc__p_wxSpinEvent[] = { {&_swigt__p_wxSpinEvent, 0, 0, 0},{0, 0, 0, 0}};
43123static swig_cast_info _swigc__p_wxStaticBitmap[] = { {&_swigt__p_wxStaticBitmap, 0, 0, 0},{0, 0, 0, 0}};
43124static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}};
43125static swig_cast_info _swigc__p_wxStaticLine[] = { {&_swigt__p_wxStaticLine, 0, 0, 0},{0, 0, 0, 0}};
43126static swig_cast_info _swigc__p_wxStaticText[] = { {&_swigt__p_wxStaticText, 0, 0, 0},{0, 0, 0, 0}};
43127static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
43128static swig_cast_info _swigc__p_wxTextAttr[] = { {&_swigt__p_wxTextAttr, 0, 0, 0},{0, 0, 0, 0}};
43129static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0},{0, 0, 0, 0}};
43130static swig_cast_info _swigc__p_wxTextUrlEvent[] = { {&_swigt__p_wxTextUrlEvent, 0, 0, 0},{0, 0, 0, 0}};
43131static swig_cast_info _swigc__p_wxToggleButton[] = { {&_swigt__p_wxToggleButton, 0, 0, 0},{0, 0, 0, 0}};
43132static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}};
43133static 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}};
43134static swig_cast_info _swigc__p_wxToolBarToolBase[] = { {&_swigt__p_wxToolBarToolBase, 0, 0, 0},{0, 0, 0, 0}};
43135static swig_cast_info _swigc__p_wxToolbook[] = { {&_swigt__p_wxToolbook, 0, 0, 0},{0, 0, 0, 0}};
43136static swig_cast_info _swigc__p_wxToolbookEvent[] = { {&_swigt__p_wxToolbookEvent, 0, 0, 0},{0, 0, 0, 0}};
43137static swig_cast_info _swigc__p_wxTreeCtrl[] = { {&_swigt__p_wxTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
43138static swig_cast_info _swigc__p_wxTreeEvent[] = { {&_swigt__p_wxTreeEvent, 0, 0, 0},{0, 0, 0, 0}};
43139static swig_cast_info _swigc__p_wxTreeItemId[] = { {&_swigt__p_wxTreeItemId, 0, 0, 0},{0, 0, 0, 0}};
43140static swig_cast_info _swigc__p_wxTreebook[] = { {&_swigt__p_wxTreebook, 0, 0, 0},{0, 0, 0, 0}};
43141static swig_cast_info _swigc__p_wxTreebookEvent[] = { {&_swigt__p_wxTreebookEvent, 0, 0, 0},{0, 0, 0, 0}};
43142static 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}};
43143static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}};
43144static 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_wxToggleButton, _p_wxToggleButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxWindow, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxWindow, 0, 0}, {&_swigt__p_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_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_wxSpinButton, _p_wxSpinButtonTo_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}};
43145
43146static swig_cast_info *swig_cast_initial[] = {
43147 _swigc__p_bool,
43148 _swigc__p_char,
43149 _swigc__p_form_ops_t,
43150 _swigc__p_int,
43151 _swigc__p_long,
43152 _swigc__p_unsigned_char,
43153 _swigc__p_unsigned_int,
43154 _swigc__p_unsigned_long,
43155 _swigc__p_void,
43156 _swigc__p_wxANIHandler,
43157 _swigc__p_wxAcceleratorTable,
43158 _swigc__p_wxActivateEvent,
43159 _swigc__p_wxArrayInt,
43160 _swigc__p_wxArrayString,
43161 _swigc__p_wxBMPHandler,
43162 _swigc__p_wxBitmap,
43163 _swigc__p_wxBitmapButton,
43164 _swigc__p_wxBookCtrlBase,
43165 _swigc__p_wxBookCtrlBaseEvent,
43166 _swigc__p_wxBoxSizer,
43167 _swigc__p_wxButton,
43168 _swigc__p_wxCURHandler,
43169 _swigc__p_wxCheckBox,
43170 _swigc__p_wxCheckListBox,
43171 _swigc__p_wxChildFocusEvent,
43172 _swigc__p_wxChoice,
43173 _swigc__p_wxChoicebook,
43174 _swigc__p_wxChoicebookEvent,
43175 _swigc__p_wxCloseEvent,
43176 _swigc__p_wxColour,
43177 _swigc__p_wxComboBox,
43178 _swigc__p_wxCommandEvent,
43179 _swigc__p_wxContextHelp,
43180 _swigc__p_wxContextHelpButton,
43181 _swigc__p_wxContextMenuEvent,
43182 _swigc__p_wxControl,
43183 _swigc__p_wxControlWithItems,
43184 _swigc__p_wxCursor,
43185 _swigc__p_wxDC,
43186 _swigc__p_wxDateEvent,
43187 _swigc__p_wxDatePickerCtrl,
43188 _swigc__p_wxDateTime,
43189 _swigc__p_wxDirFilterListCtrl,
43190 _swigc__p_wxDisplayChangedEvent,
43191 _swigc__p_wxDropFilesEvent,
43192 _swigc__p_wxDuplexMode,
43193 _swigc__p_wxEraseEvent,
43194 _swigc__p_wxEvent,
43195 _swigc__p_wxEvtHandler,
43196 _swigc__p_wxFSFile,
43197 _swigc__p_wxFileSystem,
43198 _swigc__p_wxFlexGridSizer,
43199 _swigc__p_wxFocusEvent,
43200 _swigc__p_wxFont,
43201 _swigc__p_wxGBSizerItem,
43202 _swigc__p_wxGIFHandler,
43203 _swigc__p_wxGauge,
43204 _swigc__p_wxGenericDirCtrl,
43205 _swigc__p_wxGenericDragImage,
43206 _swigc__p_wxGridBagSizer,
43207 _swigc__p_wxGridSizer,
43208 _swigc__p_wxHelpEvent,
43209 _swigc__p_wxHelpProvider,
43210 _swigc__p_wxICOHandler,
43211 _swigc__p_wxIcon,
43212 _swigc__p_wxIconizeEvent,
43213 _swigc__p_wxIdleEvent,
43214 _swigc__p_wxImage,
43215 _swigc__p_wxImageHandler,
43216 _swigc__p_wxImageList,
43217 _swigc__p_wxIndividualLayoutConstraint,
43218 _swigc__p_wxInitDialogEvent,
43219 _swigc__p_wxItemContainer,
43220 _swigc__p_wxJPEGHandler,
43221 _swigc__p_wxKeyEvent,
43222 _swigc__p_wxLayoutConstraints,
43223 _swigc__p_wxListBox,
43224 _swigc__p_wxListEvent,
43225 _swigc__p_wxListItem,
43226 _swigc__p_wxListItemAttr,
43227 _swigc__p_wxListView,
43228 _swigc__p_wxListbook,
43229 _swigc__p_wxListbookEvent,
43230 _swigc__p_wxMaximizeEvent,
43231 _swigc__p_wxMemoryDC,
43232 _swigc__p_wxMenu,
43233 _swigc__p_wxMenuBar,
43234 _swigc__p_wxMenuEvent,
43235 _swigc__p_wxMenuItem,
43236 _swigc__p_wxMouseCaptureChangedEvent,
43237 _swigc__p_wxMouseEvent,
43238 _swigc__p_wxMoveEvent,
43239 _swigc__p_wxNavigationKeyEvent,
43240 _swigc__p_wxNcPaintEvent,
43241 _swigc__p_wxNotebook,
43242 _swigc__p_wxNotebookEvent,
43243 _swigc__p_wxNotifyEvent,
43244 _swigc__p_wxObject,
43245 _swigc__p_wxPCXHandler,
43246 _swigc__p_wxPNGHandler,
43247 _swigc__p_wxPNMHandler,
43248 _swigc__p_wxPaintEvent,
43249 _swigc__p_wxPaletteChangedEvent,
43250 _swigc__p_wxPaperSize,
43251 _swigc__p_wxPoint,
43252 _swigc__p_wxPyApp,
43253 _swigc__p_wxPyCommandEvent,
43254 _swigc__p_wxPyControl,
43255 _swigc__p_wxPyEvent,
43256 _swigc__p_wxPyImageHandler,
43257 _swigc__p_wxPyListCtrl,
43258 _swigc__p_wxPySizer,
43259 _swigc__p_wxPyTreeCtrl,
43260 _swigc__p_wxPyTreeItemData,
43261 _swigc__p_wxPyValidator,
43262 _swigc__p_wxQueryNewPaletteEvent,
43263 _swigc__p_wxRadioBox,
43264 _swigc__p_wxRadioButton,
43265 _swigc__p_wxRect,
43266 _swigc__p_wxScrollBar,
43267 _swigc__p_wxScrollEvent,
43268 _swigc__p_wxScrollWinEvent,
43269 _swigc__p_wxSetCursorEvent,
43270 _swigc__p_wxShowEvent,
43271 _swigc__p_wxSimpleHelpProvider,
43272 _swigc__p_wxSize,
43273 _swigc__p_wxSizeEvent,
43274 _swigc__p_wxSizer,
43275 _swigc__p_wxSizerItem,
43276 _swigc__p_wxSlider,
43277 _swigc__p_wxSpinButton,
43278 _swigc__p_wxSpinCtrl,
43279 _swigc__p_wxSpinEvent,
43280 _swigc__p_wxStaticBitmap,
43281 _swigc__p_wxStaticBox,
43282 _swigc__p_wxStaticBoxSizer,
43283 _swigc__p_wxStaticLine,
43284 _swigc__p_wxStaticText,
43285 _swigc__p_wxStdDialogButtonSizer,
43286 _swigc__p_wxString,
43287 _swigc__p_wxSysColourChangedEvent,
43288 _swigc__p_wxTIFFHandler,
43289 _swigc__p_wxTextAttr,
43290 _swigc__p_wxTextCtrl,
43291 _swigc__p_wxTextUrlEvent,
43292 _swigc__p_wxToggleButton,
43293 _swigc__p_wxToolBar,
43294 _swigc__p_wxToolBarBase,
43295 _swigc__p_wxToolBarToolBase,
43296 _swigc__p_wxToolbook,
43297 _swigc__p_wxToolbookEvent,
43298 _swigc__p_wxTreeCtrl,
43299 _swigc__p_wxTreeEvent,
43300 _swigc__p_wxTreeItemId,
43301 _swigc__p_wxTreebook,
43302 _swigc__p_wxTreebookEvent,
43303 _swigc__p_wxUpdateUIEvent,
43304 _swigc__p_wxValidator,
43305 _swigc__p_wxVisualAttributes,
43306 _swigc__p_wxWindow,
43307 _swigc__p_wxWindowCreateEvent,
43308 _swigc__p_wxWindowDestroyEvent,
43309 _swigc__p_wxXPMHandler,
43310};
43311
43312
43313/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
43314
43315static swig_const_info swig_const_table[] = {
43316{0, 0, 0, 0.0, 0, 0}};
43317
43318#ifdef __cplusplus
43319}
43320#endif
43321/* -----------------------------------------------------------------------------
43322 * Type initialization:
43323 * This problem is tough by the requirement that no dynamic
43324 * memory is used. Also, since swig_type_info structures store pointers to
43325 * swig_cast_info structures and swig_cast_info structures store pointers back
43326 * to swig_type_info structures, we need some lookup code at initialization.
43327 * The idea is that swig generates all the structures that are needed.
43328 * The runtime then collects these partially filled structures.
43329 * The SWIG_InitializeModule function takes these initial arrays out of
43330 * swig_module, and does all the lookup, filling in the swig_module.types
43331 * array with the correct data and linking the correct swig_cast_info
43332 * structures together.
43333 *
43334 * The generated swig_type_info structures are assigned staticly to an initial
43335 * array. We just loop though that array, and handle each type individually.
43336 * First we lookup if this type has been already loaded, and if so, use the
43337 * loaded structure instead of the generated one. Then we have to fill in the
43338 * cast linked list. The cast data is initially stored in something like a
43339 * two-dimensional array. Each row corresponds to a type (there are the same
43340 * number of rows as there are in the swig_type_initial array). Each entry in
43341 * a column is one of the swig_cast_info structures for that type.
43342 * The cast_initial array is actually an array of arrays, because each row has
43343 * a variable number of columns. So to actually build the cast linked list,
43344 * we find the array of casts associated with the type, and loop through it
43345 * adding the casts to the list. The one last trick we need to do is making
43346 * sure the type pointer in the swig_cast_info struct is correct.
43347 *
43348 * First off, we lookup the cast->type name to see if it is already loaded.
43349 * There are three cases to handle:
43350 * 1) If the cast->type has already been loaded AND the type we are adding
43351 * casting info to has not been loaded (it is in this module), THEN we
43352 * replace the cast->type pointer with the type pointer that has already
43353 * been loaded.
43354 * 2) If BOTH types (the one we are adding casting info to, and the
43355 * cast->type) are loaded, THEN the cast info has already been loaded by
43356 * the previous module so we just ignore it.
43357 * 3) Finally, if cast->type has not already been loaded, then we add that
43358 * swig_cast_info to the linked list (because the cast->type) pointer will
43359 * be correct.
43360 * ----------------------------------------------------------------------------- */
43361
43362#ifdef __cplusplus
43363extern "C" {
43364#if 0
43365} /* c-mode */
43366#endif
43367#endif
43368
43369#if 0
43370#define SWIGRUNTIME_DEBUG
43371#endif
43372
43373SWIGRUNTIME void
43374SWIG_InitializeModule(void *clientdata) {
43375 size_t i;
43376 swig_module_info *module_head;
43377 static int init_run = 0;
43378
43379 clientdata = clientdata;
43380
43381 if (init_run) return;
43382 init_run = 1;
43383
43384 /* Initialize the swig_module */
43385 swig_module.type_initial = swig_type_initial;
43386 swig_module.cast_initial = swig_cast_initial;
43387
43388 /* Try and load any already created modules */
43389 module_head = SWIG_GetModule(clientdata);
43390 if (module_head) {
43391 swig_module.next = module_head->next;
43392 module_head->next = &swig_module;
43393 } else {
43394 /* This is the first module loaded */
43395 swig_module.next = &swig_module;
43396 SWIG_SetModule(clientdata, &swig_module);
43397 }
43398
43399 /* Now work on filling in swig_module.types */
43400#ifdef SWIGRUNTIME_DEBUG
43401 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
43402#endif
43403 for (i = 0; i < swig_module.size; ++i) {
43404 swig_type_info *type = 0;
43405 swig_type_info *ret;
43406 swig_cast_info *cast;
d14a1e28 43407
0085ce49
RD
43408#ifdef SWIGRUNTIME_DEBUG
43409 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
43410#endif
d14a1e28 43411
0085ce49
RD
43412 /* if there is another module already loaded */
43413 if (swig_module.next != &swig_module) {
43414 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
093d3ff1 43415 }
0085ce49
RD
43416 if (type) {
43417 /* Overwrite clientdata field */
43418#ifdef SWIGRUNTIME_DEBUG
43419 printf("SWIG_InitializeModule: found type %s\n", type->name);
43420#endif
43421 if (swig_module.type_initial[i]->clientdata) {
43422 type->clientdata = swig_module.type_initial[i]->clientdata;
43423#ifdef SWIGRUNTIME_DEBUG
43424 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
43425#endif
43426 }
43427 } else {
43428 type = swig_module.type_initial[i];
093d3ff1 43429 }
d14a1e28 43430
0085ce49
RD
43431 /* Insert casting types */
43432 cast = swig_module.cast_initial[i];
43433 while (cast->type) {
43434 /* Don't need to add information already in the list */
43435 ret = 0;
43436#ifdef SWIGRUNTIME_DEBUG
43437 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
43438#endif
43439 if (swig_module.next != &swig_module) {
43440 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
43441#ifdef SWIGRUNTIME_DEBUG
43442 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
43443#endif
43444 }
43445 if (ret) {
43446 if (type == swig_module.type_initial[i]) {
43447#ifdef SWIGRUNTIME_DEBUG
43448 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
43449#endif
43450 cast->type = ret;
43451 ret = 0;
43452 } else {
43453 /* Check for casting already in the list */
43454 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
43455#ifdef SWIGRUNTIME_DEBUG
43456 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
43457#endif
43458 if (!ocast) ret = 0;
43459 }
43460 }
43461
43462 if (!ret) {
43463#ifdef SWIGRUNTIME_DEBUG
43464 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
43465#endif
43466 if (type->cast) {
43467 type->cast->prev = cast;
43468 cast->next = type->cast;
43469 }
43470 type->cast = cast;
43471 }
43472 cast++;
093d3ff1 43473 }
0085ce49
RD
43474 /* Set entry in modules->types array equal to the type */
43475 swig_module.types[i] = type;
43476 }
43477 swig_module.types[i] = 0;
43478
43479#ifdef SWIGRUNTIME_DEBUG
43480 printf("**** SWIG_InitializeModule: Cast List ******\n");
43481 for (i = 0; i < swig_module.size; ++i) {
43482 int j = 0;
43483 swig_cast_info *cast = swig_module.cast_initial[i];
43484 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
43485 while (cast->type) {
43486 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
43487 cast++;
43488 ++j;
43489 }
43490 printf("---- Total casts: %d\n",j);
43491 }
43492 printf("**** SWIG_InitializeModule: Cast List ******\n");
43493#endif
43494}
43495
43496/* This function will propagate the clientdata field of type to
43497* any new swig_type_info structures that have been added into the list
43498* of equivalent types. It is like calling
43499* SWIG_TypeClientData(type, clientdata) a second time.
43500*/
43501SWIGRUNTIME void
43502SWIG_PropagateClientData(void) {
43503 size_t i;
43504 swig_cast_info *equiv;
43505 static int init_run = 0;
43506
43507 if (init_run) return;
43508 init_run = 1;
43509
43510 for (i = 0; i < swig_module.size; i++) {
43511 if (swig_module.types[i]->clientdata) {
43512 equiv = swig_module.types[i]->cast;
43513 while (equiv) {
43514 if (!equiv->converter) {
43515 if (equiv->type && !equiv->type->clientdata)
43516 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
43517 }
43518 equiv = equiv->next;
43519 }
093d3ff1 43520 }
0085ce49
RD
43521 }
43522}
43523
43524#ifdef __cplusplus
43525#if 0
43526{
43527 /* c-mode */
43528#endif
43529}
43530#endif
43531
43532
43533
43534#ifdef __cplusplus
43535extern "C" {
43536#endif
43537
43538 /* Python-specific SWIG API */
43539#define SWIG_newvarlink() SWIG_Python_newvarlink()
43540#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
43541#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
43542
43543 /* -----------------------------------------------------------------------------
43544 * global variable support code.
43545 * ----------------------------------------------------------------------------- */
43546
43547 typedef struct swig_globalvar {
43548 char *name; /* Name of global variable */
43549 PyObject *(*get_attr)(void); /* Return the current value */
43550 int (*set_attr)(PyObject *); /* Set the value */
43551 struct swig_globalvar *next;
43552 } swig_globalvar;
43553
43554 typedef struct swig_varlinkobject {
43555 PyObject_HEAD
43556 swig_globalvar *vars;
43557 } swig_varlinkobject;
43558
43559 SWIGINTERN PyObject *
43560 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
43561 return PyString_FromString("<Swig global variables>");
43562 }
43563
43564 SWIGINTERN PyObject *
43565 swig_varlink_str(swig_varlinkobject *v) {
43566 PyObject *str = PyString_FromString("(");
43567 swig_globalvar *var;
43568 for (var = v->vars; var; var=var->next) {
43569 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
43570 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
43571 }
43572 PyString_ConcatAndDel(&str,PyString_FromString(")"));
43573 return str;
43574 }
43575
43576 SWIGINTERN int
43577 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
43578 PyObject *str = swig_varlink_str(v);
43579 fprintf(fp,"Swig global variables ");
43580 fprintf(fp,"%s\n", PyString_AsString(str));
43581 Py_DECREF(str);
43582 return 0;
43583 }
43584
43585 SWIGINTERN void
43586 swig_varlink_dealloc(swig_varlinkobject *v) {
43587 swig_globalvar *var = v->vars;
43588 while (var) {
43589 swig_globalvar *n = var->next;
43590 free(var->name);
43591 free(var);
43592 var = n;
093d3ff1 43593 }
0085ce49
RD
43594 }
43595
43596 SWIGINTERN PyObject *
43597 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
43598 PyObject *res = NULL;
43599 swig_globalvar *var = v->vars;
43600 while (var) {
43601 if (strcmp(var->name,n) == 0) {
43602 res = (*var->get_attr)();
43603 break;
43604 }
43605 var = var->next;
093d3ff1 43606 }
0085ce49
RD
43607 if (res == NULL && !PyErr_Occurred()) {
43608 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
093d3ff1 43609 }
0085ce49
RD
43610 return res;
43611 }
43612
43613 SWIGINTERN int
43614 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
43615 int res = 1;
43616 swig_globalvar *var = v->vars;
43617 while (var) {
43618 if (strcmp(var->name,n) == 0) {
43619 res = (*var->set_attr)(p);
43620 break;
43621 }
43622 var = var->next;
093d3ff1 43623 }
0085ce49
RD
43624 if (res == 1 && !PyErr_Occurred()) {
43625 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
53aa7709 43626 }
0085ce49
RD
43627 return res;
43628 }
43629
43630 SWIGINTERN PyTypeObject*
43631 swig_varlink_type(void) {
43632 static char varlink__doc__[] = "Swig var link object";
43633 static PyTypeObject varlink_type;
43634 static int type_init = 0;
43635 if (!type_init) {
43636 const PyTypeObject tmp
43637 = {
43638 PyObject_HEAD_INIT(NULL)
43639 0, /* Number of items in variable part (ob_size) */
43640 (char *)"swigvarlink", /* Type name (tp_name) */
43641 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
43642 0, /* Itemsize (tp_itemsize) */
43643 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
43644 (printfunc) swig_varlink_print, /* Print (tp_print) */
43645 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
43646 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
43647 0, /* tp_compare */
43648 (reprfunc) swig_varlink_repr, /* tp_repr */
43649 0, /* tp_as_number */
43650 0, /* tp_as_sequence */
43651 0, /* tp_as_mapping */
43652 0, /* tp_hash */
43653 0, /* tp_call */
43654 (reprfunc)swig_varlink_str, /* tp_str */
43655 0, /* tp_getattro */
43656 0, /* tp_setattro */
43657 0, /* tp_as_buffer */
43658 0, /* tp_flags */
43659 varlink__doc__, /* tp_doc */
43660 0, /* tp_traverse */
43661 0, /* tp_clear */
43662 0, /* tp_richcompare */
43663 0, /* tp_weaklistoffset */
43664#if PY_VERSION_HEX >= 0x02020000
43665 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
43666#endif
43667#if PY_VERSION_HEX >= 0x02030000
43668 0, /* tp_del */
43669#endif
43670#ifdef COUNT_ALLOCS
43671 0,0,0,0 /* tp_alloc -> tp_next */
43672#endif
43673 };
43674 varlink_type = tmp;
43675 varlink_type.ob_type = &PyType_Type;
43676 type_init = 1;
53aa7709 43677 }
0085ce49
RD
43678 return &varlink_type;
43679 }
43680
43681 /* Create a variable linking object for use later */
43682 SWIGINTERN PyObject *
43683 SWIG_Python_newvarlink(void) {
43684 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
43685 if (result) {
43686 result->vars = 0;
43687 }
43688 return ((PyObject*) result);
43689 }
43690
43691 SWIGINTERN void
43692 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
43693 swig_varlinkobject *v = (swig_varlinkobject *) p;
43694 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
43695 if (gv) {
43696 size_t size = strlen(name)+1;
43697 gv->name = (char *)malloc(size);
43698 if (gv->name) {
43699 strncpy(gv->name,name,size);
43700 gv->get_attr = get_attr;
43701 gv->set_attr = set_attr;
43702 gv->next = v->vars;
43703 }
53aa7709 43704 }
0085ce49
RD
43705 v->vars = gv;
43706 }
43707
43708 SWIGINTERN PyObject *
43709 SWIG_globals() {
43710 static PyObject *_SWIG_globals = 0;
43711 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
43712 return _SWIG_globals;
43713 }
43714
43715 /* -----------------------------------------------------------------------------
43716 * constants/methods manipulation
43717 * ----------------------------------------------------------------------------- */
43718
43719 /* Install Constants */
43720 SWIGINTERN void
43721 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
43722 PyObject *obj = 0;
43723 size_t i;
43724 for (i = 0; constants[i].type; ++i) {
43725 switch(constants[i].type) {
43726 case SWIG_PY_POINTER:
43727 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
43728 break;
43729 case SWIG_PY_BINARY:
43730 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
43731 break;
43732 default:
43733 obj = 0;
43734 break;
43735 }
43736 if (obj) {
43737 PyDict_SetItemString(d, constants[i].name, obj);
43738 Py_DECREF(obj);
43739 }
53aa7709 43740 }
0085ce49
RD
43741 }
43742
43743 /* -----------------------------------------------------------------------------*/
43744 /* Fix SwigMethods to carry the callback ptrs when needed */
43745 /* -----------------------------------------------------------------------------*/
43746
43747 SWIGINTERN void
43748 SWIG_Python_FixMethods(PyMethodDef *methods,
43749 swig_const_info *const_table,
43750 swig_type_info **types,
43751 swig_type_info **types_initial) {
43752 size_t i;
43753 for (i = 0; methods[i].ml_name; ++i) {
43754 char *c = methods[i].ml_doc;
43755 if (c && (c = strstr(c, "swig_ptr: "))) {
43756 int j;
43757 swig_const_info *ci = 0;
43758 char *name = c + 10;
43759 for (j = 0; const_table[j].type; ++j) {
43760 if (strncmp(const_table[j].name, name,
43761 strlen(const_table[j].name)) == 0) {
43762 ci = &(const_table[j]);
43763 break;
43764 }
43765 }
43766 if (ci) {
43767 size_t shift = (ci->ptype) - types;
43768 swig_type_info *ty = types_initial[shift];
43769 size_t ldoc = (c - methods[i].ml_doc);
43770 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
43771 char *ndoc = (char*)malloc(ldoc + lptr + 10);
43772 if (ndoc) {
43773 char *buff = ndoc;
43774 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
43775 if (ptr) {
43776 strncpy(buff, methods[i].ml_doc, ldoc);
43777 buff += ldoc;
43778 strncpy(buff, "swig_ptr: ", 10);
43779 buff += 10;
43780 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
43781 methods[i].ml_doc = ndoc;
43782 }
43783 }
43784 }
43785 }
53aa7709 43786 }
0085ce49
RD
43787 }
43788
43789#ifdef __cplusplus
43790}
43791#endif
43792
43793/* -----------------------------------------------------------------------------*
43794 * Partial Init method
43795 * -----------------------------------------------------------------------------*/
43796
43797#ifdef __cplusplus
43798extern "C"
43799#endif
43800SWIGEXPORT void SWIG_init(void) {
43801 PyObject *m, *d;
43802
43803 /* Fix SwigMethods to carry the callback ptrs when needed */
43804 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
43805
43806 m = Py_InitModule((char *) SWIG_name, SwigMethods);
43807 d = PyModule_GetDict(m);
43808
43809 SWIG_InitializeModule(0);
43810 SWIG_InstallConstants(d,swig_const_table);
43811
43812
43813 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
43814 SWIG_addvarlink(SWIG_globals(),(char*)"ButtonNameStr",ButtonNameStr_get, ButtonNameStr_set);
43815 SWIG_Python_SetConstant(d, "BU_LEFT",SWIG_From_int(static_cast< int >(wxBU_LEFT)));
43816 SWIG_Python_SetConstant(d, "BU_TOP",SWIG_From_int(static_cast< int >(wxBU_TOP)));
43817 SWIG_Python_SetConstant(d, "BU_RIGHT",SWIG_From_int(static_cast< int >(wxBU_RIGHT)));
43818 SWIG_Python_SetConstant(d, "BU_BOTTOM",SWIG_From_int(static_cast< int >(wxBU_BOTTOM)));
43819 SWIG_Python_SetConstant(d, "BU_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBU_ALIGN_MASK)));
43820 SWIG_Python_SetConstant(d, "BU_EXACTFIT",SWIG_From_int(static_cast< int >(wxBU_EXACTFIT)));
43821 SWIG_Python_SetConstant(d, "BU_AUTODRAW",SWIG_From_int(static_cast< int >(wxBU_AUTODRAW)));
43822 SWIG_addvarlink(SWIG_globals(),(char*)"CheckBoxNameStr",CheckBoxNameStr_get, CheckBoxNameStr_set);
43823 SWIG_Python_SetConstant(d, "CHK_2STATE",SWIG_From_int(static_cast< int >(wxCHK_2STATE)));
43824 SWIG_Python_SetConstant(d, "CHK_3STATE",SWIG_From_int(static_cast< int >(wxCHK_3STATE)));
43825 SWIG_Python_SetConstant(d, "CHK_ALLOW_3RD_STATE_FOR_USER",SWIG_From_int(static_cast< int >(wxCHK_ALLOW_3RD_STATE_FOR_USER)));
43826 SWIG_Python_SetConstant(d, "CHK_UNCHECKED",SWIG_From_int(static_cast< int >(wxCHK_UNCHECKED)));
43827 SWIG_Python_SetConstant(d, "CHK_CHECKED",SWIG_From_int(static_cast< int >(wxCHK_CHECKED)));
43828 SWIG_Python_SetConstant(d, "CHK_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCHK_UNDETERMINED)));
43829 SWIG_addvarlink(SWIG_globals(),(char*)"ChoiceNameStr",ChoiceNameStr_get, ChoiceNameStr_set);
43830 SWIG_addvarlink(SWIG_globals(),(char*)"ComboBoxNameStr",ComboBoxNameStr_get, ComboBoxNameStr_set);
43831 SWIG_addvarlink(SWIG_globals(),(char*)"GaugeNameStr",GaugeNameStr_get, GaugeNameStr_set);
43832 SWIG_Python_SetConstant(d, "GA_HORIZONTAL",SWIG_From_int(static_cast< int >(wxGA_HORIZONTAL)));
43833 SWIG_Python_SetConstant(d, "GA_VERTICAL",SWIG_From_int(static_cast< int >(wxGA_VERTICAL)));
43834 SWIG_Python_SetConstant(d, "GA_SMOOTH",SWIG_From_int(static_cast< int >(wxGA_SMOOTH)));
43835 SWIG_Python_SetConstant(d, "GA_PROGRESSBAR",SWIG_From_int(static_cast< int >(wxGA_PROGRESSBAR)));
43836 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBitmapNameStr",StaticBitmapNameStr_get, StaticBitmapNameStr_set);
43837 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBoxNameStr",StaticBoxNameStr_get, StaticBoxNameStr_set);
43838 SWIG_addvarlink(SWIG_globals(),(char*)"StaticTextNameStr",StaticTextNameStr_get, StaticTextNameStr_set);
43839 SWIG_addvarlink(SWIG_globals(),(char*)"ListBoxNameStr",ListBoxNameStr_get, ListBoxNameStr_set);
43840 SWIG_addvarlink(SWIG_globals(),(char*)"TextCtrlNameStr",TextCtrlNameStr_get, TextCtrlNameStr_set);
43841 SWIG_Python_SetConstant(d, "TE_NO_VSCROLL",SWIG_From_int(static_cast< int >(wxTE_NO_VSCROLL)));
43842 SWIG_Python_SetConstant(d, "TE_AUTO_SCROLL",SWIG_From_int(static_cast< int >(wxTE_AUTO_SCROLL)));
43843 SWIG_Python_SetConstant(d, "TE_READONLY",SWIG_From_int(static_cast< int >(wxTE_READONLY)));
43844 SWIG_Python_SetConstant(d, "TE_MULTILINE",SWIG_From_int(static_cast< int >(wxTE_MULTILINE)));
43845 SWIG_Python_SetConstant(d, "TE_PROCESS_TAB",SWIG_From_int(static_cast< int >(wxTE_PROCESS_TAB)));
43846 SWIG_Python_SetConstant(d, "TE_LEFT",SWIG_From_int(static_cast< int >(wxTE_LEFT)));
43847 SWIG_Python_SetConstant(d, "TE_CENTER",SWIG_From_int(static_cast< int >(wxTE_CENTER)));
43848 SWIG_Python_SetConstant(d, "TE_RIGHT",SWIG_From_int(static_cast< int >(wxTE_RIGHT)));
43849 SWIG_Python_SetConstant(d, "TE_CENTRE",SWIG_From_int(static_cast< int >(wxTE_CENTRE)));
43850 SWIG_Python_SetConstant(d, "TE_RICH",SWIG_From_int(static_cast< int >(wxTE_RICH)));
43851 SWIG_Python_SetConstant(d, "TE_PROCESS_ENTER",SWIG_From_int(static_cast< int >(wxTE_PROCESS_ENTER)));
43852 SWIG_Python_SetConstant(d, "TE_PASSWORD",SWIG_From_int(static_cast< int >(wxTE_PASSWORD)));
43853 SWIG_Python_SetConstant(d, "TE_AUTO_URL",SWIG_From_int(static_cast< int >(wxTE_AUTO_URL)));
43854 SWIG_Python_SetConstant(d, "TE_NOHIDESEL",SWIG_From_int(static_cast< int >(wxTE_NOHIDESEL)));
43855 SWIG_Python_SetConstant(d, "TE_DONTWRAP",SWIG_From_int(static_cast< int >(wxTE_DONTWRAP)));
43856 SWIG_Python_SetConstant(d, "TE_CHARWRAP",SWIG_From_int(static_cast< int >(wxTE_CHARWRAP)));
43857 SWIG_Python_SetConstant(d, "TE_WORDWRAP",SWIG_From_int(static_cast< int >(wxTE_WORDWRAP)));
43858 SWIG_Python_SetConstant(d, "TE_BESTWRAP",SWIG_From_int(static_cast< int >(wxTE_BESTWRAP)));
43859 SWIG_Python_SetConstant(d, "TE_LINEWRAP",SWIG_From_int(static_cast< int >(wxTE_LINEWRAP)));
43860 SWIG_Python_SetConstant(d, "TE_RICH2",SWIG_From_int(static_cast< int >(wxTE_RICH2)));
43861 SWIG_Python_SetConstant(d, "TE_CAPITALIZE",SWIG_From_int(static_cast< int >(wxTE_CAPITALIZE)));
43862 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT)));
43863 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT)));
43864 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE)));
43865 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER)));
43866 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT)));
43867 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED)));
43868 SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR)));
43869 SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR)));
43870 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE)));
43871 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE)));
43872 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT)));
43873 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC)));
43874 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE)));
43875 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT)));
43876 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT)));
43877 SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT)));
43878 SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT)));
43879 SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS)));
43880 SWIG_Python_SetConstant(d, "TE_HT_UNKNOWN",SWIG_From_int(static_cast< int >(wxTE_HT_UNKNOWN)));
43881 SWIG_Python_SetConstant(d, "TE_HT_BEFORE",SWIG_From_int(static_cast< int >(wxTE_HT_BEFORE)));
43882 SWIG_Python_SetConstant(d, "TE_HT_ON_TEXT",SWIG_From_int(static_cast< int >(wxTE_HT_ON_TEXT)));
43883 SWIG_Python_SetConstant(d, "TE_HT_BELOW",SWIG_From_int(static_cast< int >(wxTE_HT_BELOW)));
43884 SWIG_Python_SetConstant(d, "TE_HT_BEYOND",SWIG_From_int(static_cast< int >(wxTE_HT_BEYOND)));
43885 SWIG_Python_SetConstant(d, "OutOfRangeTextCoord",SWIG_From_int(static_cast< int >(wxOutOfRangeTextCoord)));
43886 SWIG_Python_SetConstant(d, "InvalidTextCoord",SWIG_From_int(static_cast< int >(wxInvalidTextCoord)));
43887 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
43888 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
43889 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
43890 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
43891 SWIG_addvarlink(SWIG_globals(),(char*)"ScrollBarNameStr",ScrollBarNameStr_get, ScrollBarNameStr_set);
43892 SWIG_addvarlink(SWIG_globals(),(char*)"SPIN_BUTTON_NAME",SPIN_BUTTON_NAME_get, SPIN_BUTTON_NAME_set);
43893 SWIG_addvarlink(SWIG_globals(),(char*)"SpinCtrlNameStr",SpinCtrlNameStr_get, SpinCtrlNameStr_set);
43894 SWIG_Python_SetConstant(d, "SP_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSP_HORIZONTAL)));
43895 SWIG_Python_SetConstant(d, "SP_VERTICAL",SWIG_From_int(static_cast< int >(wxSP_VERTICAL)));
43896 SWIG_Python_SetConstant(d, "SP_ARROW_KEYS",SWIG_From_int(static_cast< int >(wxSP_ARROW_KEYS)));
43897 SWIG_Python_SetConstant(d, "SP_WRAP",SWIG_From_int(static_cast< int >(wxSP_WRAP)));
43898 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
43899 SWIG_addvarlink(SWIG_globals(),(char*)"RadioBoxNameStr",RadioBoxNameStr_get, RadioBoxNameStr_set);
43900 SWIG_addvarlink(SWIG_globals(),(char*)"RadioButtonNameStr",RadioButtonNameStr_get, RadioButtonNameStr_set);
43901 SWIG_addvarlink(SWIG_globals(),(char*)"SliderNameStr",SliderNameStr_get, SliderNameStr_set);
43902 SWIG_Python_SetConstant(d, "SL_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSL_HORIZONTAL)));
43903 SWIG_Python_SetConstant(d, "SL_VERTICAL",SWIG_From_int(static_cast< int >(wxSL_VERTICAL)));
43904 SWIG_Python_SetConstant(d, "SL_TICKS",SWIG_From_int(static_cast< int >(wxSL_TICKS)));
43905 SWIG_Python_SetConstant(d, "SL_AUTOTICKS",SWIG_From_int(static_cast< int >(wxSL_AUTOTICKS)));
43906 SWIG_Python_SetConstant(d, "SL_LABELS",SWIG_From_int(static_cast< int >(wxSL_LABELS)));
43907 SWIG_Python_SetConstant(d, "SL_LEFT",SWIG_From_int(static_cast< int >(wxSL_LEFT)));
43908 SWIG_Python_SetConstant(d, "SL_TOP",SWIG_From_int(static_cast< int >(wxSL_TOP)));
43909 SWIG_Python_SetConstant(d, "SL_RIGHT",SWIG_From_int(static_cast< int >(wxSL_RIGHT)));
43910 SWIG_Python_SetConstant(d, "SL_BOTTOM",SWIG_From_int(static_cast< int >(wxSL_BOTTOM)));
43911 SWIG_Python_SetConstant(d, "SL_BOTH",SWIG_From_int(static_cast< int >(wxSL_BOTH)));
43912 SWIG_Python_SetConstant(d, "SL_SELRANGE",SWIG_From_int(static_cast< int >(wxSL_SELRANGE)));
43913 SWIG_Python_SetConstant(d, "SL_INVERSE",SWIG_From_int(static_cast< int >(wxSL_INVERSE)));
43914 SWIG_addvarlink(SWIG_globals(),(char*)"ToggleButtonNameStr",ToggleButtonNameStr_get, ToggleButtonNameStr_set);
43915 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
43916 SWIG_addvarlink(SWIG_globals(),(char*)"NotebookNameStr",NotebookNameStr_get, NotebookNameStr_set);
43917 SWIG_Python_SetConstant(d, "BK_DEFAULT",SWIG_From_int(static_cast< int >(wxBK_DEFAULT)));
43918 SWIG_Python_SetConstant(d, "BK_TOP",SWIG_From_int(static_cast< int >(wxBK_TOP)));
43919 SWIG_Python_SetConstant(d, "BK_BOTTOM",SWIG_From_int(static_cast< int >(wxBK_BOTTOM)));
43920 SWIG_Python_SetConstant(d, "BK_LEFT",SWIG_From_int(static_cast< int >(wxBK_LEFT)));
43921 SWIG_Python_SetConstant(d, "BK_RIGHT",SWIG_From_int(static_cast< int >(wxBK_RIGHT)));
43922 SWIG_Python_SetConstant(d, "BK_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBK_ALIGN_MASK)));
43923 SWIG_Python_SetConstant(d, "NB_FIXEDWIDTH",SWIG_From_int(static_cast< int >(wxNB_FIXEDWIDTH)));
43924 SWIG_Python_SetConstant(d, "NB_TOP",SWIG_From_int(static_cast< int >(wxNB_TOP)));
43925 SWIG_Python_SetConstant(d, "NB_LEFT",SWIG_From_int(static_cast< int >(wxNB_LEFT)));
43926 SWIG_Python_SetConstant(d, "NB_RIGHT",SWIG_From_int(static_cast< int >(wxNB_RIGHT)));
43927 SWIG_Python_SetConstant(d, "NB_BOTTOM",SWIG_From_int(static_cast< int >(wxNB_BOTTOM)));
43928 SWIG_Python_SetConstant(d, "NB_MULTILINE",SWIG_From_int(static_cast< int >(wxNB_MULTILINE)));
43929 SWIG_Python_SetConstant(d, "NB_NOPAGETHEME",SWIG_From_int(static_cast< int >(wxNB_NOPAGETHEME)));
43930 SWIG_Python_SetConstant(d, "NB_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_NOWHERE)));
43931 SWIG_Python_SetConstant(d, "NB_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONICON)));
43932 SWIG_Python_SetConstant(d, "NB_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONLABEL)));
43933 SWIG_Python_SetConstant(d, "NB_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONITEM)));
43934 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
43935 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
43936 SWIG_Python_SetConstant(d, "LB_DEFAULT",SWIG_From_int(static_cast< int >(wxLB_DEFAULT)));
43937 SWIG_Python_SetConstant(d, "LB_TOP",SWIG_From_int(static_cast< int >(wxLB_TOP)));
43938 SWIG_Python_SetConstant(d, "LB_BOTTOM",SWIG_From_int(static_cast< int >(wxLB_BOTTOM)));
43939 SWIG_Python_SetConstant(d, "LB_LEFT",SWIG_From_int(static_cast< int >(wxLB_LEFT)));
43940 SWIG_Python_SetConstant(d, "LB_RIGHT",SWIG_From_int(static_cast< int >(wxLB_RIGHT)));
43941 SWIG_Python_SetConstant(d, "LB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxLB_ALIGN_MASK)));
43942 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
43943 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
43944 SWIG_Python_SetConstant(d, "CHB_DEFAULT",SWIG_From_int(static_cast< int >(wxCHB_DEFAULT)));
43945 SWIG_Python_SetConstant(d, "CHB_TOP",SWIG_From_int(static_cast< int >(wxCHB_TOP)));
43946 SWIG_Python_SetConstant(d, "CHB_BOTTOM",SWIG_From_int(static_cast< int >(wxCHB_BOTTOM)));
43947 SWIG_Python_SetConstant(d, "CHB_LEFT",SWIG_From_int(static_cast< int >(wxCHB_LEFT)));
43948 SWIG_Python_SetConstant(d, "CHB_RIGHT",SWIG_From_int(static_cast< int >(wxCHB_RIGHT)));
43949 SWIG_Python_SetConstant(d, "CHB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxCHB_ALIGN_MASK)));
43950 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED));
43951 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING));
43952 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED));
43953 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING));
43954 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED));
43955 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED));
43956 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED));
43957 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING));
43958 SWIG_Python_SetConstant(d, "TOOL_STYLE_BUTTON",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_BUTTON)));
43959 SWIG_Python_SetConstant(d, "TOOL_STYLE_SEPARATOR",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_SEPARATOR)));
43960 SWIG_Python_SetConstant(d, "TOOL_STYLE_CONTROL",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_CONTROL)));
43961 SWIG_Python_SetConstant(d, "TB_HORIZONTAL",SWIG_From_int(static_cast< int >(wxTB_HORIZONTAL)));
43962 SWIG_Python_SetConstant(d, "TB_VERTICAL",SWIG_From_int(static_cast< int >(wxTB_VERTICAL)));
43963 SWIG_Python_SetConstant(d, "TB_3DBUTTONS",SWIG_From_int(static_cast< int >(wxTB_3DBUTTONS)));
43964 SWIG_Python_SetConstant(d, "TB_FLAT",SWIG_From_int(static_cast< int >(wxTB_FLAT)));
43965 SWIG_Python_SetConstant(d, "TB_DOCKABLE",SWIG_From_int(static_cast< int >(wxTB_DOCKABLE)));
43966 SWIG_Python_SetConstant(d, "TB_NOICONS",SWIG_From_int(static_cast< int >(wxTB_NOICONS)));
43967 SWIG_Python_SetConstant(d, "TB_TEXT",SWIG_From_int(static_cast< int >(wxTB_TEXT)));
43968 SWIG_Python_SetConstant(d, "TB_NODIVIDER",SWIG_From_int(static_cast< int >(wxTB_NODIVIDER)));
43969 SWIG_Python_SetConstant(d, "TB_NOALIGN",SWIG_From_int(static_cast< int >(wxTB_NOALIGN)));
43970 SWIG_Python_SetConstant(d, "TB_HORZ_LAYOUT",SWIG_From_int(static_cast< int >(wxTB_HORZ_LAYOUT)));
43971 SWIG_Python_SetConstant(d, "TB_HORZ_TEXT",SWIG_From_int(static_cast< int >(wxTB_HORZ_TEXT)));
43972 SWIG_addvarlink(SWIG_globals(),(char*)"ListCtrlNameStr",ListCtrlNameStr_get, ListCtrlNameStr_set);
43973 SWIG_Python_SetConstant(d, "LC_VRULES",SWIG_From_int(static_cast< int >(wxLC_VRULES)));
43974 SWIG_Python_SetConstant(d, "LC_HRULES",SWIG_From_int(static_cast< int >(wxLC_HRULES)));
43975 SWIG_Python_SetConstant(d, "LC_ICON",SWIG_From_int(static_cast< int >(wxLC_ICON)));
43976 SWIG_Python_SetConstant(d, "LC_SMALL_ICON",SWIG_From_int(static_cast< int >(wxLC_SMALL_ICON)));
43977 SWIG_Python_SetConstant(d, "LC_LIST",SWIG_From_int(static_cast< int >(wxLC_LIST)));
43978 SWIG_Python_SetConstant(d, "LC_REPORT",SWIG_From_int(static_cast< int >(wxLC_REPORT)));
43979 SWIG_Python_SetConstant(d, "LC_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLC_ALIGN_TOP)));
43980 SWIG_Python_SetConstant(d, "LC_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLC_ALIGN_LEFT)));
43981 SWIG_Python_SetConstant(d, "LC_AUTOARRANGE",SWIG_From_int(static_cast< int >(wxLC_AUTOARRANGE)));
43982 SWIG_Python_SetConstant(d, "LC_VIRTUAL",SWIG_From_int(static_cast< int >(wxLC_VIRTUAL)));
43983 SWIG_Python_SetConstant(d, "LC_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxLC_EDIT_LABELS)));
43984 SWIG_Python_SetConstant(d, "LC_NO_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_HEADER)));
43985 SWIG_Python_SetConstant(d, "LC_NO_SORT_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_SORT_HEADER)));
43986 SWIG_Python_SetConstant(d, "LC_SINGLE_SEL",SWIG_From_int(static_cast< int >(wxLC_SINGLE_SEL)));
43987 SWIG_Python_SetConstant(d, "LC_SORT_ASCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_ASCENDING)));
43988 SWIG_Python_SetConstant(d, "LC_SORT_DESCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_DESCENDING)));
43989 SWIG_Python_SetConstant(d, "LC_MASK_TYPE",SWIG_From_int(static_cast< int >(wxLC_MASK_TYPE)));
43990 SWIG_Python_SetConstant(d, "LC_MASK_ALIGN",SWIG_From_int(static_cast< int >(wxLC_MASK_ALIGN)));
43991 SWIG_Python_SetConstant(d, "LC_MASK_SORT",SWIG_From_int(static_cast< int >(wxLC_MASK_SORT)));
43992 SWIG_Python_SetConstant(d, "LIST_MASK_STATE",SWIG_From_int(static_cast< int >(wxLIST_MASK_STATE)));
43993 SWIG_Python_SetConstant(d, "LIST_MASK_TEXT",SWIG_From_int(static_cast< int >(wxLIST_MASK_TEXT)));
43994 SWIG_Python_SetConstant(d, "LIST_MASK_IMAGE",SWIG_From_int(static_cast< int >(wxLIST_MASK_IMAGE)));
43995 SWIG_Python_SetConstant(d, "LIST_MASK_DATA",SWIG_From_int(static_cast< int >(wxLIST_MASK_DATA)));
43996 SWIG_Python_SetConstant(d, "LIST_SET_ITEM",SWIG_From_int(static_cast< int >(wxLIST_SET_ITEM)));
43997 SWIG_Python_SetConstant(d, "LIST_MASK_WIDTH",SWIG_From_int(static_cast< int >(wxLIST_MASK_WIDTH)));
43998 SWIG_Python_SetConstant(d, "LIST_MASK_FORMAT",SWIG_From_int(static_cast< int >(wxLIST_MASK_FORMAT)));
43999 SWIG_Python_SetConstant(d, "LIST_STATE_DONTCARE",SWIG_From_int(static_cast< int >(wxLIST_STATE_DONTCARE)));
44000 SWIG_Python_SetConstant(d, "LIST_STATE_DROPHILITED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DROPHILITED)));
44001 SWIG_Python_SetConstant(d, "LIST_STATE_FOCUSED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FOCUSED)));
44002 SWIG_Python_SetConstant(d, "LIST_STATE_SELECTED",SWIG_From_int(static_cast< int >(wxLIST_STATE_SELECTED)));
44003 SWIG_Python_SetConstant(d, "LIST_STATE_CUT",SWIG_From_int(static_cast< int >(wxLIST_STATE_CUT)));
44004 SWIG_Python_SetConstant(d, "LIST_STATE_DISABLED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DISABLED)));
44005 SWIG_Python_SetConstant(d, "LIST_STATE_FILTERED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FILTERED)));
44006 SWIG_Python_SetConstant(d, "LIST_STATE_INUSE",SWIG_From_int(static_cast< int >(wxLIST_STATE_INUSE)));
44007 SWIG_Python_SetConstant(d, "LIST_STATE_PICKED",SWIG_From_int(static_cast< int >(wxLIST_STATE_PICKED)));
44008 SWIG_Python_SetConstant(d, "LIST_STATE_SOURCE",SWIG_From_int(static_cast< int >(wxLIST_STATE_SOURCE)));
44009 SWIG_Python_SetConstant(d, "LIST_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ABOVE)));
44010 SWIG_Python_SetConstant(d, "LIST_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_BELOW)));
44011 SWIG_Python_SetConstant(d, "LIST_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_NOWHERE)));
44012 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMICON)));
44013 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMLABEL)));
44014 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMRIGHT)));
44015 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMSTATEICON)));
44016 SWIG_Python_SetConstant(d, "LIST_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TOLEFT)));
44017 SWIG_Python_SetConstant(d, "LIST_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TORIGHT)));
44018 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEM)));
44019 SWIG_Python_SetConstant(d, "LIST_NEXT_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ABOVE)));
44020 SWIG_Python_SetConstant(d, "LIST_NEXT_ALL",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ALL)));
44021 SWIG_Python_SetConstant(d, "LIST_NEXT_BELOW",SWIG_From_int(static_cast< int >(wxLIST_NEXT_BELOW)));
44022 SWIG_Python_SetConstant(d, "LIST_NEXT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_LEFT)));
44023 SWIG_Python_SetConstant(d, "LIST_NEXT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_RIGHT)));
44024 SWIG_Python_SetConstant(d, "LIST_ALIGN_DEFAULT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_DEFAULT)));
44025 SWIG_Python_SetConstant(d, "LIST_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_LEFT)));
44026 SWIG_Python_SetConstant(d, "LIST_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_TOP)));
44027 SWIG_Python_SetConstant(d, "LIST_ALIGN_SNAP_TO_GRID",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_SNAP_TO_GRID)));
44028 SWIG_Python_SetConstant(d, "LIST_FORMAT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_LEFT)));
44029 SWIG_Python_SetConstant(d, "LIST_FORMAT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_RIGHT)));
44030 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTRE",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTRE)));
44031 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTER",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTER)));
44032 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE)));
44033 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE_USEHEADER",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE_USEHEADER)));
44034 SWIG_Python_SetConstant(d, "LIST_RECT_BOUNDS",SWIG_From_int(static_cast< int >(wxLIST_RECT_BOUNDS)));
44035 SWIG_Python_SetConstant(d, "LIST_RECT_ICON",SWIG_From_int(static_cast< int >(wxLIST_RECT_ICON)));
44036 SWIG_Python_SetConstant(d, "LIST_RECT_LABEL",SWIG_From_int(static_cast< int >(wxLIST_RECT_LABEL)));
44037 SWIG_Python_SetConstant(d, "LIST_FIND_UP",SWIG_From_int(static_cast< int >(wxLIST_FIND_UP)));
44038 SWIG_Python_SetConstant(d, "LIST_FIND_DOWN",SWIG_From_int(static_cast< int >(wxLIST_FIND_DOWN)));
44039 SWIG_Python_SetConstant(d, "LIST_FIND_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FIND_LEFT)));
44040 SWIG_Python_SetConstant(d, "LIST_FIND_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FIND_RIGHT)));
44041 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
44042 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
44043 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
44044 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
44045 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
44046 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
44047 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
44048 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
44049 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
44050 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
44051 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
44052 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
44053 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
44054 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
44055 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
44056 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
44057 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
44058 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
44059 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
44060 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
44061
44062 // Map renamed classes back to their common name for OOR
44063 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
44064
44065 SWIG_addvarlink(SWIG_globals(),(char*)"TreeCtrlNameStr",TreeCtrlNameStr_get, TreeCtrlNameStr_set);
44066 SWIG_Python_SetConstant(d, "TR_NO_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_NO_BUTTONS)));
44067 SWIG_Python_SetConstant(d, "TR_HAS_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_HAS_BUTTONS)));
44068 SWIG_Python_SetConstant(d, "TR_NO_LINES",SWIG_From_int(static_cast< int >(wxTR_NO_LINES)));
44069 SWIG_Python_SetConstant(d, "TR_LINES_AT_ROOT",SWIG_From_int(static_cast< int >(wxTR_LINES_AT_ROOT)));
44070 SWIG_Python_SetConstant(d, "TR_SINGLE",SWIG_From_int(static_cast< int >(wxTR_SINGLE)));
44071 SWIG_Python_SetConstant(d, "TR_MULTIPLE",SWIG_From_int(static_cast< int >(wxTR_MULTIPLE)));
44072 SWIG_Python_SetConstant(d, "TR_EXTENDED",SWIG_From_int(static_cast< int >(wxTR_EXTENDED)));
44073 SWIG_Python_SetConstant(d, "TR_HAS_VARIABLE_ROW_HEIGHT",SWIG_From_int(static_cast< int >(wxTR_HAS_VARIABLE_ROW_HEIGHT)));
44074 SWIG_Python_SetConstant(d, "TR_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxTR_EDIT_LABELS)));
44075 SWIG_Python_SetConstant(d, "TR_HIDE_ROOT",SWIG_From_int(static_cast< int >(wxTR_HIDE_ROOT)));
44076 SWIG_Python_SetConstant(d, "TR_ROW_LINES",SWIG_From_int(static_cast< int >(wxTR_ROW_LINES)));
44077 SWIG_Python_SetConstant(d, "TR_FULL_ROW_HIGHLIGHT",SWIG_From_int(static_cast< int >(wxTR_FULL_ROW_HIGHLIGHT)));
44078 SWIG_Python_SetConstant(d, "TR_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxTR_DEFAULT_STYLE)));
44079 SWIG_Python_SetConstant(d, "TR_TWIST_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_TWIST_BUTTONS)));
44080 SWIG_Python_SetConstant(d, "TR_MAC_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_MAC_BUTTONS)));
44081 SWIG_Python_SetConstant(d, "TR_AQUA_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_AQUA_BUTTONS)));
44082 SWIG_Python_SetConstant(d, "TreeItemIcon_Normal",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Normal)));
44083 SWIG_Python_SetConstant(d, "TreeItemIcon_Selected",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Selected)));
44084 SWIG_Python_SetConstant(d, "TreeItemIcon_Expanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Expanded)));
44085 SWIG_Python_SetConstant(d, "TreeItemIcon_SelectedExpanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_SelectedExpanded)));
44086 SWIG_Python_SetConstant(d, "TreeItemIcon_Max",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Max)));
44087 SWIG_Python_SetConstant(d, "TREE_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ABOVE)));
44088 SWIG_Python_SetConstant(d, "TREE_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_BELOW)));
44089 SWIG_Python_SetConstant(d, "TREE_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_NOWHERE)));
44090 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMBUTTON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMBUTTON)));
44091 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMICON)));
44092 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMINDENT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMINDENT)));
44093 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLABEL)));
44094 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMRIGHT)));
44095 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMSTATEICON)));
44096 SWIG_Python_SetConstant(d, "TREE_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TOLEFT)));
44097 SWIG_Python_SetConstant(d, "TREE_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TORIGHT)));
44098 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMUPPERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMUPPERPART)));
44099 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLOWERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLOWERPART)));
44100 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEM)));
44101 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
44102 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
44103 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
44104 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
44105 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
44106 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
44107 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
44108 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
44109 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
44110 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
44111 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
44112 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
44113 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
44114 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
44115 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
44116 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
44117 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
44118 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
44119 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
44120 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
44121 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU));
44122
44123 // Map renamed classes back to their common name for OOR
44124 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
44125 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
44126
44127 SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogDefaultFolderStr",DirDialogDefaultFolderStr_get, DirDialogDefaultFolderStr_set);
44128 SWIG_Python_SetConstant(d, "DIRCTRL_DIR_ONLY",SWIG_From_int(static_cast< int >(wxDIRCTRL_DIR_ONLY)));
44129 SWIG_Python_SetConstant(d, "DIRCTRL_SELECT_FIRST",SWIG_From_int(static_cast< int >(wxDIRCTRL_SELECT_FIRST)));
44130 SWIG_Python_SetConstant(d, "DIRCTRL_SHOW_FILTERS",SWIG_From_int(static_cast< int >(wxDIRCTRL_SHOW_FILTERS)));
44131 SWIG_Python_SetConstant(d, "DIRCTRL_3D_INTERNAL",SWIG_From_int(static_cast< int >(wxDIRCTRL_3D_INTERNAL)));
44132 SWIG_Python_SetConstant(d, "DIRCTRL_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxDIRCTRL_EDIT_LABELS)));
44133 SWIG_Python_SetConstant(d, "FRAME_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxFRAME_EX_CONTEXTHELP)));
44134 SWIG_Python_SetConstant(d, "DIALOG_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxDIALOG_EX_CONTEXTHELP)));
44135 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
44136 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
44137
44138 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
44139
44140 SWIG_addvarlink(SWIG_globals(),(char*)"DatePickerCtrlNameStr",DatePickerCtrlNameStr_get, DatePickerCtrlNameStr_set);
44141 SWIG_Python_SetConstant(d, "DP_DEFAULT",SWIG_From_int(static_cast< int >(wxDP_DEFAULT)));
44142 SWIG_Python_SetConstant(d, "DP_SPIN",SWIG_From_int(static_cast< int >(wxDP_SPIN)));
44143 SWIG_Python_SetConstant(d, "DP_DROPDOWN",SWIG_From_int(static_cast< int >(wxDP_DROPDOWN)));
44144 SWIG_Python_SetConstant(d, "DP_SHOWCENTURY",SWIG_From_int(static_cast< int >(wxDP_SHOWCENTURY)));
44145 SWIG_Python_SetConstant(d, "DP_ALLOWNONE",SWIG_From_int(static_cast< int >(wxDP_ALLOWNONE)));
d14a1e28
RD
44146}
44147