]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/gtk/_controls_wrap.cpp
memory dc must have bitmap selected into it before it can be used for measuring
[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>
d14a1e28 2810
b2dc1044 2811 static const wxString wxPyListBoxNameStr(wxListBoxNameStr);
0085ce49 2812SWIGINTERN void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData=NULL){
e9d6f3a4
RD
2813 if (clientData)
2814 {
d14a1e28
RD
2815 wxPyClientData* data = new wxPyClientData(clientData);
2816 self->Insert(item, pos, data);
e9d6f3a4
RD
2817 }
2818 else
d14a1e28
RD
2819 self->Insert(item, pos);
2820 }
50f151d7
RD
2821
2822SWIGINTERN int
2823SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2824{
2825 long v = 0;
2826 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2827 return SWIG_TypeError;
2828 }
2829 else if (val)
2830 *val = (unsigned long)v;
2831 return SWIG_OK;
2832}
2833
2834
2835SWIGINTERN int
2836SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
2837{
2838 unsigned long v;
2839 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2840 if (SWIG_IsOK(res)) {
2841 if ((v > UINT_MAX)) {
2842 return SWIG_OverflowError;
2843 } else {
2844 if (val) *val = static_cast< unsigned int >(v);
2845 }
2846 }
2847 return res;
2848}
2849
0085ce49 2850SWIGINTERN PyObject *wxListBox_GetSelections(wxListBox *self){
e9d6f3a4 2851 wxPyBlock_t blocked = wxPyBeginBlockThreads();
7e08d4ef
RD
2852 wxArrayInt lst;
2853 self->GetSelections(lst);
2854 PyObject *tup = PyTuple_New(lst.GetCount());
e9d6f3a4
RD
2855 for (size_t i=0; i<lst.GetCount(); i++)
2856 {
7e08d4ef
RD
2857 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
2858 }
e9d6f3a4 2859 wxPyEndBlockThreads(blocked);
7e08d4ef
RD
2860 return tup;
2861 }
0085ce49 2862SWIGINTERN void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){
c3eb6258
RD
2863 #ifdef __WXMSW__
2864 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2865 self->GetItem(item)->SetTextColour(c);
2866 #endif
2867 }
0085ce49 2868SWIGINTERN void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){
c3eb6258
RD
2869 #ifdef __WXMSW__
2870 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2871 self->GetItem(item)->SetBackgroundColour(c);
2872 #endif
2873 }
0085ce49 2874SWIGINTERN void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){
c3eb6258
RD
2875 #ifdef __WXMSW__
2876 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2877 self->GetItem(item)->SetFont(f);
2878 #endif
2879 }
b2dc1044 2880 static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr);
0085ce49 2881SWIGINTERN void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
d14a1e28
RD
2882 self->AppendText(text);
2883 }
0085ce49 2884SWIGINTERN wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
d14a1e28
RD
2885 return self->GetValue().Mid(from, to - from);
2886 }
b2dc1044
RD
2887 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
2888 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
33b885b9 2889 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
b2dc1044
RD
2890 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
2891 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
75219dcb
RD
2892
2893SWIGINTERNINLINE PyObject*
2894SWIG_From_unsigned_SS_long (unsigned long value)
2895{
2896 return (value > LONG_MAX) ?
2897 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2898}
2899
2900
2901SWIGINTERNINLINE PyObject *
2902SWIG_From_size_t (size_t value)
2903{
2904 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
2905}
2906
50f151d7
RD
2907
2908SWIGINTERNINLINE PyObject *
2909SWIG_From_unsigned_SS_int (unsigned int value)
2910{
2911 return SWIG_From_unsigned_SS_long (value);
2912}
2913
d14a1e28
RD
2914
2915#include <wx/slider.h>
2916
d14a1e28 2917
b2dc1044 2918 static const wxString wxPySliderNameStr(wxSliderNameStr);
33b885b9 2919 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
d14a1e28 2920
15afbcd0
RD
2921#if !wxUSE_TOGGLEBTN
2922// implement dummy items for platforms that don't have this class
d14a1e28
RD
2923
2924#define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
2925
2926class wxToggleButton : public wxControl
2927{
2928public:
2929 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
2930 const wxPoint&, const wxSize&, long,
2931 const wxValidator&, const wxString&)
39f61e25 2932 { wxPyRaiseNotImplemented(); }
d14a1e28
RD
2933
2934 wxToggleButton()
39f61e25 2935 { wxPyRaiseNotImplemented(); }
d14a1e28
RD
2936};
2937#endif
2938
51b83b37 2939 static const wxString wxPyNotebookNameStr(wxNotebookNameStr);
994141e6 2940
7e08d4ef 2941SWIGINTERNINLINE int
0085ce49 2942SWIG_AsVal_size_t (PyObject * obj, size_t *val)
7e08d4ef 2943{
7e08d4ef 2944 unsigned long v;
0085ce49
RD
2945 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
2946 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
2947 return res;
7e08d4ef 2948}
7e08d4ef 2949
b2dc1044 2950 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
0085ce49 2951SWIGINTERN PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
d14a1e28
RD
2952 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
2953 if (udata) {
2954 Py_INCREF(udata->m_obj);
2955 return udata->m_obj;
2956 } else {
2957 Py_INCREF(Py_None);
2958 return Py_None;
2959 }
2960 }
0085ce49 2961SWIGINTERN void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
d14a1e28
RD
2962 self->SetClientData(new wxPyUserData(clientData));
2963 }
0085ce49 2964SWIGINTERN 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
2965 wxPyUserData* udata = NULL;
2966 if (clientData && clientData != Py_None)
2967 udata = new wxPyUserData(clientData);
2968 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
2969 shortHelp, longHelp, udata);
2970 }
0085ce49 2971SWIGINTERN 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
2972 wxPyUserData* udata = NULL;
2973 if (clientData && clientData != Py_None)
2974 udata = new wxPyUserData(clientData);
2975 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
2976 shortHelp, longHelp, udata);
2977 }
0085ce49 2978SWIGINTERN PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
d14a1e28
RD
2979 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
2980 if (udata) {
2981 Py_INCREF(udata->m_obj);
2982 return udata->m_obj;
2983 } else {
2984 Py_INCREF(Py_None);
2985 return Py_None;
2986 }
2987 }
0085ce49 2988SWIGINTERN void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
d14a1e28
RD
2989 self->SetToolClientData(id, new wxPyUserData(clientData));
2990 }
2991
2992#include <wx/listctrl.h>
2993
7557b9b5 2994 static const wxString wxPyListCtrlNameStr(wxListCtrlNameStr);
0085ce49 2995SWIGINTERN void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
d14a1e28
RD
2996 // Python aware sorting function for wxPyListCtrl
2997 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
2998 int retval = 0;
2999 PyObject* func = (PyObject*)funcPtr;
5a446332 3000 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d14a1e28
RD
3001
3002 PyObject* args = Py_BuildValue("(ii)", item1, item2);
3003 PyObject* result = PyEval_CallObject(func, args);
3004 Py_DECREF(args);
3005 if (result) {
3006 retval = PyInt_AsLong(result);
3007 Py_DECREF(result);
3008 }
3009
4f89f6a3 3010 wxPyEndBlockThreads(blocked);
d14a1e28
RD
3011 return retval;
3012 }
3013
3014 // C++ Version of a Python aware class
3015class wxPyListCtrl : public wxListCtrl {
32fe5131 3016 DECLARE_ABSTRACT_CLASS(wxPyListCtrl)
d14a1e28
RD
3017public:
3018 wxPyListCtrl() : wxListCtrl() {}
3019 wxPyListCtrl(wxWindow* parent, wxWindowID id,
3020 const wxPoint& pos,
3021 const wxSize& size,
3022 long style,
3023 const wxValidator& validator,
3024 const wxString& name) :
3025 wxListCtrl(parent, id, pos, size, style, validator, name) {}
3026
3027 bool Create(wxWindow* parent, wxWindowID id,
3028 const wxPoint& pos,
3029 const wxSize& size,
3030 long style,
3031 const wxValidator& validator,
3032 const wxString& name) {
3033 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
3034 }
3035
3036 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
d14a1e28
RD
3037 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
3038
84f85550
RD
3039 // use the virtual version to avoid a confusing assert in the base class
3040 DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage);
7e08d4ef 3041 DEC_PYCALLBACK_INT_LONGLONG(OnGetItemColumnImage);
84f85550 3042
d14a1e28
RD
3043 PYPRIVATE;
3044};
3045
3046IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
3047
3048IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
d14a1e28 3049IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
84f85550 3050IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage);
7e08d4ef
RD
3051IMP_PYCALLBACK_INT_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemColumnImage);
3052
d14a1e28 3053
0085ce49 3054SWIGINTERN wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
d14a1e28
RD
3055 wxListItem item;
3056 item.SetMask( wxLIST_MASK_STATE |
3057 wxLIST_MASK_TEXT |
3058 wxLIST_MASK_IMAGE |
3059 wxLIST_MASK_DATA |
3060 wxLIST_SET_ITEM |
3061 wxLIST_MASK_WIDTH |
3062 wxLIST_MASK_FORMAT
3063 );
3064 if (self->GetColumn(col, item))
3065 return new wxListItem(item);
3066 else
3067 return NULL;
3068 }
0085ce49 3069SWIGINTERN wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col=0){
d14a1e28
RD
3070 wxListItem* info = new wxListItem;
3071 info->m_itemId = itemId;
3072 info->m_col = col;
3073 info->m_mask = 0xFFFF;
3074 self->GetItem(*info);
3075 return info;
3076 }
0085ce49 3077SWIGINTERN wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
d14a1e28
RD
3078 wxPoint pos;
3079 self->GetItemPosition(item, pos);
3080 return pos;
3081 }
0085ce49 3082SWIGINTERN wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code=wxLIST_RECT_BOUNDS){
d14a1e28
RD
3083 wxRect rect;
3084 self->GetItemRect(item, rect, code);
3085 return rect;
3086 }
0085ce49 3087SWIGINTERN bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
d14a1e28 3088 if (!PyCallable_Check(func))
ae8162c8 3089 return false;
d14a1e28
RD
3090 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
3091 }
0085ce49 3092SWIGINTERN wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
d14a1e28
RD
3093
3094
3095
3096 return (wxWindow*)self->m_mainWin;
3097
3098 }
3099
3100#include <wx/treectrl.h>
3101#include "wx/wxPython/pytree.h"
d14a1e28 3102
33b885b9 3103 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
0085ce49
RD
3104SWIGINTERN bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; }
3105SWIGINTERN bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; }
3106SWIGINTERN void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
d14a1e28
RD
3107 // C++ version of Python aware wxTreeCtrl
3108class wxPyTreeCtrl : public wxTreeCtrl {
32fe5131 3109 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl)
d14a1e28
RD
3110public:
3111 wxPyTreeCtrl() : wxTreeCtrl() {}
3112 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
3113 const wxPoint& pos,
3114 const wxSize& size,
3115 long style,
3116 const wxValidator& validator,
3117 const wxString& name) :
3118 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
3119
3120 bool Create(wxWindow *parent, wxWindowID id,
3121 const wxPoint& pos,
3122 const wxSize& size,
3123 long style,
3124 const wxValidator& validator,
3125 const wxString& name) {
3126 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
3127 }
3128
3129
3130 int OnCompareItems(const wxTreeItemId& item1,
3131 const wxTreeItemId& item2) {
3132 int rval = 0;
3133 bool found;
5a446332 3134 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d14a1e28 3135 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
ae8162c8
RD
3136 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false);
3137 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false);
d14a1e28
RD
3138 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
3139 Py_DECREF(o1);
3140 Py_DECREF(o2);
3141 }
4f89f6a3 3142 wxPyEndBlockThreads(blocked);
d14a1e28
RD
3143 if (! found)
3144 rval = wxTreeCtrl::OnCompareItems(item1, item2);
3145 return rval;
3146 }
3147 PYPRIVATE;
3148};
3149
3150IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
3151
3152
0085ce49 3153SWIGINTERN wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
d14a1e28
RD
3154 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3155 if (data == NULL) {
3156 data = new wxPyTreeItemData();
3157 data->SetId(item); // set the id
3158 self->SetItemData(item, data);
3159 }
3160 return data;
3161 }
0085ce49 3162SWIGINTERN PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
d14a1e28
RD
3163 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3164 if (data == NULL) {
3165 data = new wxPyTreeItemData();
3166 data->SetId(item); // set the id
3167 self->SetItemData(item, data);
3168 }
3169 return data->GetData();
3170 }
0085ce49 3171SWIGINTERN void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
d14a1e28
RD
3172 data->SetId(item); // set the id
3173 self->SetItemData(item, data);
3174 }
0085ce49 3175SWIGINTERN void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
d14a1e28
RD
3176 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3177 if (data == NULL) {
3178 data = new wxPyTreeItemData(obj);
3179 data->SetId(item); // set the id
3180 self->SetItemData(item, data);
3181 } else
3182 data->SetData(obj);
3183 }
0085ce49 3184SWIGINTERN PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
5a446332 3185 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d14a1e28
RD
3186 PyObject* rval = PyList_New(0);
3187 wxArrayTreeItemIds array;
3188 size_t num, x;
3189 num = self->GetSelections(array);
3190 for (x=0; x < num; x++) {
3191 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
ae8162c8 3192 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true);
d14a1e28 3193 PyList_Append(rval, item);
1a10c483 3194 Py_DECREF(item);
d14a1e28 3195 }
4f89f6a3 3196 wxPyEndBlockThreads(blocked);
d14a1e28
RD
3197 return rval;
3198 }
0085ce49 3199SWIGINTERN PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
58203fa6
RD
3200 void* cookie = 0;
3201 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
5a446332 3202 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d14a1e28 3203 PyObject* tup = PyTuple_New(2);
ae8162c8 3204 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
58203fa6 3205 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
4f89f6a3 3206 wxPyEndBlockThreads(blocked);
d14a1e28
RD
3207 return tup;
3208 }
0085ce49 3209SWIGINTERN PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
58203fa6 3210 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
5a446332 3211 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d14a1e28 3212 PyObject* tup = PyTuple_New(2);
ae8162c8 3213 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
58203fa6 3214 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
4f89f6a3 3215 wxPyEndBlockThreads(blocked);
d14a1e28
RD
3216 return tup;
3217 }
0085ce49 3218SWIGINTERN PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly=false){
d14a1e28
RD
3219 wxRect rect;
3220 if (self->GetBoundingRect(item, rect, textOnly)) {
5a446332 3221 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d14a1e28 3222 wxRect* r = new wxRect(rect);
ae8162c8 3223 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true);
4f89f6a3 3224 wxPyEndBlockThreads(blocked);
d14a1e28
RD
3225 return val;
3226 }
3227 else
3228 RETURN_NONE();
3229 }
b2dc1044 3230 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
c32bde28 3231
32fe5131 3232SWIGINTERNINLINE PyObject*
0085ce49 3233 SWIG_From_bool (bool value)
c32bde28 3234{
0085ce49 3235 return PyBool_FromLong(value ? 1 : 0);
c32bde28
RD
3236}
3237
d14a1e28
RD
3238 // C++ version of Python aware wxControl
3239class wxPyControl : public wxControl
3240{
3241 DECLARE_DYNAMIC_CLASS(wxPyControl)
3242public:
3243 wxPyControl() : wxControl() {}
3244 wxPyControl(wxWindow* parent, const wxWindowID id,
3245 const wxPoint& pos = wxDefaultPosition,
3246 const wxSize& size = wxDefaultSize,
3247 long style = 0,
3248 const wxValidator& validator=wxDefaultValidator,
3249 const wxString& name = wxPyControlNameStr)
3250 : wxControl(parent, id, pos, size, style, validator, name) {}
3251
db3e571a 3252 void SetBestSize(const wxSize& size) { wxControl::SetBestSize(size); }
d14a1e28 3253
976dbff5
RD
3254 bool DoEraseBackground(wxDC* dc) {
3255#ifdef __WXMSW__
3256 return wxWindow::DoEraseBackground(dc->GetHDC());
3257#else
3258 dc->SetBackground(wxBrush(GetBackgroundColour()));
3259 dc->Clear();
3260 return true;
3261#endif
3262 }
3263
d14a1e28
RD
3264 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
3265 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
3266 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
3267 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
3268
3269 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
3270 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
3271 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
3272
3273 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
3274 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
3275
3276 DEC_PYCALLBACK__(InitDialog);
3277 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
3278 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
3279 DEC_PYCALLBACK_BOOL_(Validate);
3280
3281 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
3282 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
3283 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
3284
3285 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
3286 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
3287
db3e571a 3288 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
db3e571a 3289 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
4276dc52 3290
51b83b37
RD
3291 DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
3292
8d38bd1d
RD
3293 DEC_PYCALLBACK_VOID_(OnInternalIdle);
3294
d14a1e28
RD
3295 PYPRIVATE;
3296};
3297
3298IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
3299
3300IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
3301IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
3302IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
3303IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
3304
3305IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
3306IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
3307IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
3308
3309IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
3310IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
3311
3312IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
3313IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
3314IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
3315IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
3316
3317IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
3318IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
3319IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
3320
3321IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
3322IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
3323
db3e571a 3324IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
db3e571a 3325IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
d14a1e28 3326
51b83b37 3327IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground);
8d38bd1d
RD
3328
3329IMP_PYCALLBACK_VOID_(wxPyControl, wxControl, OnInternalIdle);
3330
d14a1e28
RD
3331
3332
0085ce49 3333SWIGINTERN void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
e811c8ce
RD
3334
3335#include <wx/generic/dragimgg.h>
3336
53aa7709 3337 static const wxString wxPyDatePickerCtrlNameStr(wxDatePickerCtrlNameStr);
0085ce49 3338SWIGINTERN wxDateTime wxDatePickerCtrl_GetLowerLimit(wxDatePickerCtrl *self){
53aa7709
RD
3339 wxDateTime rv;
3340 self->GetRange(&rv, NULL);
3341 return rv;
3342 }
0085ce49 3343SWIGINTERN wxDateTime wxDatePickerCtrl_GetUpperLimit(wxDatePickerCtrl *self){
53aa7709
RD
3344 wxDateTime rv;
3345 self->GetRange(NULL, &rv);
3346 return rv;
3347 }
d14a1e28
RD
3348#ifdef __cplusplus
3349extern "C" {
3350#endif
0085ce49
RD
3351SWIGINTERN int ButtonNameStr_set(PyObject *) {
3352 SWIG_Error(SWIG_AttributeError,"Variable ButtonNameStr is read-only.");
3353 return 1;
b2dc1044
RD
3354}
3355
3356
0085ce49
RD
3357SWIGINTERN PyObject *ButtonNameStr_get(void) {
3358 PyObject *pyobj = 0;
3359
3360 {
b2dc1044 3361#if wxUSE_UNICODE
0085ce49 3362 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
b2dc1044 3363#else
0085ce49 3364 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
b2dc1044 3365#endif
0085ce49
RD
3366 }
3367 return pyobj;
3368}
3369
3370
3371SWIGINTERN PyObject *_wrap_new_Button(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3372 PyObject *resultobj = 0;
3373 wxWindow *arg1 = (wxWindow *) 0 ;
3374 int arg2 = (int) -1 ;
3375 wxString const &arg3_defvalue = wxPyEmptyString ;
3376 wxString *arg3 = (wxString *) &arg3_defvalue ;
3377 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3378 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3379 wxSize const &arg5_defvalue = wxDefaultSize ;
3380 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3381 long arg6 = (long) 0 ;
3382 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3383 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3384 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3385 wxString *arg8 = (wxString *) &arg8_defvalue ;
3386 wxButton *result = 0 ;
3387 void *argp1 = 0 ;
3388 int res1 = 0 ;
3389 int val2 ;
3390 int ecode2 = 0 ;
3391 bool temp3 = false ;
3392 wxPoint temp4 ;
3393 wxSize temp5 ;
3394 long val6 ;
3395 int ecode6 = 0 ;
3396 void *argp7 = 0 ;
3397 int res7 = 0 ;
3398 bool temp8 = false ;
3399 PyObject * obj0 = 0 ;
3400 PyObject * obj1 = 0 ;
3401 PyObject * obj2 = 0 ;
3402 PyObject * obj3 = 0 ;
3403 PyObject * obj4 = 0 ;
3404 PyObject * obj5 = 0 ;
3405 PyObject * obj6 = 0 ;
3406 PyObject * obj7 = 0 ;
3407 char * kwnames[] = {
3408 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3409 };
3410
3411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3413 if (!SWIG_IsOK(res1)) {
3414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Button" "', expected argument " "1"" of type '" "wxWindow *""'");
3415 }
3416 arg1 = reinterpret_cast< wxWindow * >(argp1);
3417 if (obj1) {
3418 ecode2 = SWIG_AsVal_int(obj1, &val2);
3419 if (!SWIG_IsOK(ecode2)) {
3420 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Button" "', expected argument " "2"" of type '" "int""'");
3421 }
3422 arg2 = static_cast< int >(val2);
3423 }
3424 if (obj2) {
d14a1e28 3425 {
0085ce49
RD
3426 arg3 = wxString_in_helper(obj2);
3427 if (arg3 == NULL) SWIG_fail;
3428 temp3 = true;
d14a1e28 3429 }
0085ce49
RD
3430 }
3431 if (obj3) {
d14a1e28 3432 {
0085ce49
RD
3433 arg4 = &temp4;
3434 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 3435 }
0085ce49
RD
3436 }
3437 if (obj4) {
d14a1e28 3438 {
0085ce49
RD
3439 arg5 = &temp5;
3440 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 3441 }
0085ce49
RD
3442 }
3443 if (obj5) {
3444 ecode6 = SWIG_AsVal_long(obj5, &val6);
3445 if (!SWIG_IsOK(ecode6)) {
3446 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Button" "', expected argument " "6"" of type '" "long""'");
3447 }
3448 arg6 = static_cast< long >(val6);
3449 }
3450 if (obj6) {
3451 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3452 if (!SWIG_IsOK(res7)) {
3453 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 3454 }
0085ce49
RD
3455 if (!argp7) {
3456 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 3457 }
0085ce49
RD
3458 arg7 = reinterpret_cast< wxValidator * >(argp7);
3459 }
3460 if (obj7) {
d14a1e28 3461 {
0085ce49
RD
3462 arg8 = wxString_in_helper(obj7);
3463 if (arg8 == NULL) SWIG_fail;
3464 temp8 = true;
d14a1e28 3465 }
0085ce49
RD
3466 }
3467 {
3468 if (!wxPyCheckForApp()) SWIG_fail;
3469 PyThreadState* __tstate = wxPyBeginAllowThreads();
3470 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3471 wxPyEndAllowThreads(__tstate);
3472 if (PyErr_Occurred()) SWIG_fail;
3473 }
3474 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_NEW | 0 );
3475 {
3476 if (temp3)
3477 delete arg3;
3478 }
3479 {
3480 if (temp8)
3481 delete arg8;
3482 }
3483 return resultobj;
3484fail:
3485 {
3486 if (temp3)
3487 delete arg3;
3488 }
3489 {
3490 if (temp8)
3491 delete arg8;
3492 }
3493 return NULL;
d14a1e28
RD
3494}
3495
3496
0085ce49
RD
3497SWIGINTERN PyObject *_wrap_new_PreButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3498 PyObject *resultobj = 0;
3499 wxButton *result = 0 ;
3500
3501 if (!SWIG_Python_UnpackTuple(args,"new_PreButton",0,0,0)) SWIG_fail;
3502 {
3503 if (!wxPyCheckForApp()) SWIG_fail;
3504 PyThreadState* __tstate = wxPyBeginAllowThreads();
3505 result = (wxButton *)new wxButton();
3506 wxPyEndAllowThreads(__tstate);
3507 if (PyErr_Occurred()) SWIG_fail;
3508 }
3509 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_OWN | 0 );
3510 return resultobj;
3511fail:
3512 return NULL;
3513}
3514
3515
3516SWIGINTERN PyObject *_wrap_Button_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3517 PyObject *resultobj = 0;
3518 wxButton *arg1 = (wxButton *) 0 ;
3519 wxWindow *arg2 = (wxWindow *) 0 ;
3520 int arg3 = (int) -1 ;
3521 wxString const &arg4_defvalue = wxPyEmptyString ;
3522 wxString *arg4 = (wxString *) &arg4_defvalue ;
3523 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3524 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3525 wxSize const &arg6_defvalue = wxDefaultSize ;
3526 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3527 long arg7 = (long) 0 ;
3528 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3529 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3530 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3531 wxString *arg9 = (wxString *) &arg9_defvalue ;
3532 bool result;
3533 void *argp1 = 0 ;
3534 int res1 = 0 ;
3535 void *argp2 = 0 ;
3536 int res2 = 0 ;
3537 int val3 ;
3538 int ecode3 = 0 ;
3539 bool temp4 = false ;
3540 wxPoint temp5 ;
3541 wxSize temp6 ;
3542 long val7 ;
3543 int ecode7 = 0 ;
3544 void *argp8 = 0 ;
3545 int res8 = 0 ;
3546 bool temp9 = false ;
3547 PyObject * obj0 = 0 ;
3548 PyObject * obj1 = 0 ;
3549 PyObject * obj2 = 0 ;
3550 PyObject * obj3 = 0 ;
3551 PyObject * obj4 = 0 ;
3552 PyObject * obj5 = 0 ;
3553 PyObject * obj6 = 0 ;
3554 PyObject * obj7 = 0 ;
3555 PyObject * obj8 = 0 ;
3556 char * kwnames[] = {
3557 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3558 };
3559
3560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3562 if (!SWIG_IsOK(res1)) {
3563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_Create" "', expected argument " "1"" of type '" "wxButton *""'");
3564 }
3565 arg1 = reinterpret_cast< wxButton * >(argp1);
3566 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3567 if (!SWIG_IsOK(res2)) {
3568 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Button_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3569 }
3570 arg2 = reinterpret_cast< wxWindow * >(argp2);
3571 if (obj2) {
3572 ecode3 = SWIG_AsVal_int(obj2, &val3);
3573 if (!SWIG_IsOK(ecode3)) {
3574 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Button_Create" "', expected argument " "3"" of type '" "int""'");
3575 }
3576 arg3 = static_cast< int >(val3);
3577 }
3578 if (obj3) {
d14a1e28 3579 {
0085ce49
RD
3580 arg4 = wxString_in_helper(obj3);
3581 if (arg4 == NULL) SWIG_fail;
3582 temp4 = true;
d14a1e28 3583 }
0085ce49
RD
3584 }
3585 if (obj4) {
4f89f6a3 3586 {
0085ce49
RD
3587 arg5 = &temp5;
3588 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4f89f6a3 3589 }
0085ce49
RD
3590 }
3591 if (obj5) {
d14a1e28 3592 {
0085ce49
RD
3593 arg6 = &temp6;
3594 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d14a1e28 3595 }
0085ce49
RD
3596 }
3597 if (obj6) {
3598 ecode7 = SWIG_AsVal_long(obj6, &val7);
3599 if (!SWIG_IsOK(ecode7)) {
3600 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Button_Create" "', expected argument " "7"" of type '" "long""'");
3601 }
3602 arg7 = static_cast< long >(val7);
3603 }
3604 if (obj7) {
3605 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3606 if (!SWIG_IsOK(res8)) {
3607 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 3608 }
0085ce49
RD
3609 if (!argp8) {
3610 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 3611 }
0085ce49
RD
3612 arg8 = reinterpret_cast< wxValidator * >(argp8);
3613 }
3614 if (obj8) {
d14a1e28 3615 {
0085ce49
RD
3616 arg9 = wxString_in_helper(obj8);
3617 if (arg9 == NULL) SWIG_fail;
3618 temp9 = true;
d14a1e28 3619 }
0085ce49
RD
3620 }
3621 {
3622 PyThreadState* __tstate = wxPyBeginAllowThreads();
3623 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3624 wxPyEndAllowThreads(__tstate);
3625 if (PyErr_Occurred()) SWIG_fail;
3626 }
3627 {
3628 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3629 }
3630 {
3631 if (temp4)
3632 delete arg4;
3633 }
3634 {
3635 if (temp9)
3636 delete arg9;
3637 }
3638 return resultobj;
3639fail:
3640 {
3641 if (temp4)
3642 delete arg4;
3643 }
3644 {
3645 if (temp9)
3646 delete arg9;
3647 }
3648 return NULL;
d14a1e28
RD
3649}
3650
3651
0085ce49
RD
3652SWIGINTERN PyObject *_wrap_Button_SetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3653 PyObject *resultobj = 0;
3654 wxButton *arg1 = (wxButton *) 0 ;
3655 void *argp1 = 0 ;
3656 int res1 = 0 ;
3657 PyObject *swig_obj[1] ;
3658
3659 if (!args) SWIG_fail;
3660 swig_obj[0] = args;
3661 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3662 if (!SWIG_IsOK(res1)) {
3663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_SetDefault" "', expected argument " "1"" of type '" "wxButton *""'");
3664 }
3665 arg1 = reinterpret_cast< wxButton * >(argp1);
3666 {
3667 PyThreadState* __tstate = wxPyBeginAllowThreads();
3668 (arg1)->SetDefault();
3669 wxPyEndAllowThreads(__tstate);
3670 if (PyErr_Occurred()) SWIG_fail;
3671 }
3672 resultobj = SWIG_Py_Void();
3673 return resultobj;
3674fail:
3675 return NULL;
d14a1e28
RD
3676}
3677
3678
0085ce49
RD
3679SWIGINTERN PyObject *_wrap_Button_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3680 PyObject *resultobj = 0;
3681 wxSize result;
3682
3683 if (!SWIG_Python_UnpackTuple(args,"Button_GetDefaultSize",0,0,0)) SWIG_fail;
3684 {
3685 PyThreadState* __tstate = wxPyBeginAllowThreads();
3686 result = wxButton::GetDefaultSize();
3687 wxPyEndAllowThreads(__tstate);
3688 if (PyErr_Occurred()) SWIG_fail;
3689 }
3690 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
3691 return resultobj;
3692fail:
3693 return NULL;
3694}
3695
3696
3697SWIGINTERN PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3698 PyObject *resultobj = 0;
3699 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
3700 SwigValueWrapper<wxVisualAttributes > result;
3701 int val1 ;
3702 int ecode1 = 0 ;
3703 PyObject * obj0 = 0 ;
3704 char * kwnames[] = {
3705 (char *) "variant", NULL
3706 };
3707
3708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
3709 if (obj0) {
3710 ecode1 = SWIG_AsVal_int(obj0, &val1);
3711 if (!SWIG_IsOK(ecode1)) {
3712 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Button_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
3713 }
3714 arg1 = static_cast< wxWindowVariant >(val1);
3715 }
3716 {
3717 if (!wxPyCheckForApp()) SWIG_fail;
3718 PyThreadState* __tstate = wxPyBeginAllowThreads();
3719 result = wxButton::GetClassDefaultAttributes(arg1);
3720 wxPyEndAllowThreads(__tstate);
3721 if (PyErr_Occurred()) SWIG_fail;
3722 }
3723 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
3724 return resultobj;
3725fail:
3726 return NULL;
3727}
3728
3729
3730SWIGINTERN PyObject *Button_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3731 PyObject *obj;
3732 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3733 SWIG_TypeNewClientData(SWIGTYPE_p_wxButton, SWIG_NewClientData(obj));
3734 return SWIG_Py_Void();
3735}
3736
3737SWIGINTERN PyObject *Button_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3738 return SWIG_Python_InitShadowInstance(args);
3739}
3740
3741SWIGINTERN PyObject *_wrap_new_BitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3742 PyObject *resultobj = 0;
3743 wxWindow *arg1 = (wxWindow *) 0 ;
3744 int arg2 = (int) -1 ;
3745 wxBitmap const &arg3_defvalue = wxNullBitmap ;
3746 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
3747 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3748 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3749 wxSize const &arg5_defvalue = wxDefaultSize ;
3750 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3751 long arg6 = (long) wxBU_AUTODRAW ;
3752 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3753 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3754 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3755 wxString *arg8 = (wxString *) &arg8_defvalue ;
3756 wxBitmapButton *result = 0 ;
3757 void *argp1 = 0 ;
3758 int res1 = 0 ;
3759 int val2 ;
3760 int ecode2 = 0 ;
3761 void *argp3 = 0 ;
3762 int res3 = 0 ;
3763 wxPoint temp4 ;
3764 wxSize temp5 ;
3765 long val6 ;
3766 int ecode6 = 0 ;
3767 void *argp7 = 0 ;
3768 int res7 = 0 ;
3769 bool temp8 = false ;
3770 PyObject * obj0 = 0 ;
3771 PyObject * obj1 = 0 ;
3772 PyObject * obj2 = 0 ;
3773 PyObject * obj3 = 0 ;
3774 PyObject * obj4 = 0 ;
3775 PyObject * obj5 = 0 ;
3776 PyObject * obj6 = 0 ;
3777 PyObject * obj7 = 0 ;
3778 char * kwnames[] = {
3779 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3780 };
3781
3782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3784 if (!SWIG_IsOK(res1)) {
3785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapButton" "', expected argument " "1"" of type '" "wxWindow *""'");
3786 }
3787 arg1 = reinterpret_cast< wxWindow * >(argp1);
3788 if (obj1) {
3789 ecode2 = SWIG_AsVal_int(obj1, &val2);
3790 if (!SWIG_IsOK(ecode2)) {
3791 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapButton" "', expected argument " "2"" of type '" "int""'");
3792 }
3793 arg2 = static_cast< int >(val2);
3794 }
3795 if (obj2) {
3796 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
3797 if (!SWIG_IsOK(res3)) {
3798 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3799 }
3800 if (!argp3) {
3801 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3802 }
3803 arg3 = reinterpret_cast< wxBitmap * >(argp3);
3804 }
3805 if (obj3) {
d14a1e28 3806 {
0085ce49
RD
3807 arg4 = &temp4;
3808 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 3809 }
0085ce49
RD
3810 }
3811 if (obj4) {
d14a1e28 3812 {
0085ce49
RD
3813 arg5 = &temp5;
3814 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 3815 }
0085ce49
RD
3816 }
3817 if (obj5) {
3818 ecode6 = SWIG_AsVal_long(obj5, &val6);
3819 if (!SWIG_IsOK(ecode6)) {
3820 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_BitmapButton" "', expected argument " "6"" of type '" "long""'");
3821 }
3822 arg6 = static_cast< long >(val6);
3823 }
3824 if (obj6) {
3825 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3826 if (!SWIG_IsOK(res7)) {
3827 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
22bfe96c 3828 }
0085ce49
RD
3829 if (!argp7) {
3830 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
22bfe96c 3831 }
0085ce49
RD
3832 arg7 = reinterpret_cast< wxValidator * >(argp7);
3833 }
3834 if (obj7) {
22bfe96c 3835 {
0085ce49
RD
3836 arg8 = wxString_in_helper(obj7);
3837 if (arg8 == NULL) SWIG_fail;
3838 temp8 = true;
22bfe96c 3839 }
0085ce49
RD
3840 }
3841 {
3842 if (!wxPyCheckForApp()) SWIG_fail;
3843 PyThreadState* __tstate = wxPyBeginAllowThreads();
3844 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3845 wxPyEndAllowThreads(__tstate);
3846 if (PyErr_Occurred()) SWIG_fail;
3847 }
3848 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_NEW | 0 );
3849 {
3850 if (temp8)
3851 delete arg8;
3852 }
3853 return resultobj;
3854fail:
3855 {
3856 if (temp8)
3857 delete arg8;
3858 }
3859 return NULL;
22bfe96c
RD
3860}
3861
3862
0085ce49
RD
3863SWIGINTERN PyObject *_wrap_new_PreBitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3864 PyObject *resultobj = 0;
3865 wxBitmapButton *result = 0 ;
3866
3867 if (!SWIG_Python_UnpackTuple(args,"new_PreBitmapButton",0,0,0)) SWIG_fail;
3868 {
3869 if (!wxPyCheckForApp()) SWIG_fail;
3870 PyThreadState* __tstate = wxPyBeginAllowThreads();
3871 result = (wxBitmapButton *)new wxBitmapButton();
3872 wxPyEndAllowThreads(__tstate);
3873 if (PyErr_Occurred()) SWIG_fail;
3874 }
3875 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_OWN | 0 );
3876 return resultobj;
3877fail:
3878 return NULL;
3879}
3880
3881
3882SWIGINTERN PyObject *_wrap_BitmapButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3883 PyObject *resultobj = 0;
3884 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
3885 wxWindow *arg2 = (wxWindow *) 0 ;
3886 int arg3 = (int) -1 ;
3887 wxBitmap const &arg4_defvalue = wxNullBitmap ;
3888 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
3889 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3890 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3891 wxSize const &arg6_defvalue = wxDefaultSize ;
3892 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3893 long arg7 = (long) wxBU_AUTODRAW ;
3894 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3895 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3896 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3897 wxString *arg9 = (wxString *) &arg9_defvalue ;
3898 bool result;
3899 void *argp1 = 0 ;
3900 int res1 = 0 ;
3901 void *argp2 = 0 ;
3902 int res2 = 0 ;
3903 int val3 ;
3904 int ecode3 = 0 ;
3905 void *argp4 = 0 ;
3906 int res4 = 0 ;
3907 wxPoint temp5 ;
3908 wxSize temp6 ;
3909 long val7 ;
3910 int ecode7 = 0 ;
3911 void *argp8 = 0 ;
3912 int res8 = 0 ;
3913 bool temp9 = false ;
3914 PyObject * obj0 = 0 ;
3915 PyObject * obj1 = 0 ;
3916 PyObject * obj2 = 0 ;
3917 PyObject * obj3 = 0 ;
3918 PyObject * obj4 = 0 ;
3919 PyObject * obj5 = 0 ;
3920 PyObject * obj6 = 0 ;
3921 PyObject * obj7 = 0 ;
3922 PyObject * obj8 = 0 ;
3923 char * kwnames[] = {
3924 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3925 };
3926
3927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
3929 if (!SWIG_IsOK(res1)) {
3930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_Create" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
3931 }
3932 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
3933 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3934 if (!SWIG_IsOK(res2)) {
3935 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3936 }
3937 arg2 = reinterpret_cast< wxWindow * >(argp2);
3938 if (obj2) {
3939 ecode3 = SWIG_AsVal_int(obj2, &val3);
3940 if (!SWIG_IsOK(ecode3)) {
3941 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_Create" "', expected argument " "3"" of type '" "int""'");
3942 }
3943 arg3 = static_cast< int >(val3);
3944 }
3945 if (obj3) {
3946 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
3947 if (!SWIG_IsOK(res4)) {
3948 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
d14a1e28 3949 }
0085ce49
RD
3950 if (!argp4) {
3951 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
d14a1e28 3952 }
0085ce49
RD
3953 arg4 = reinterpret_cast< wxBitmap * >(argp4);
3954 }
3955 if (obj4) {
d14a1e28 3956 {
0085ce49
RD
3957 arg5 = &temp5;
3958 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 3959 }
0085ce49
RD
3960 }
3961 if (obj5) {
d14a1e28 3962 {
0085ce49
RD
3963 arg6 = &temp6;
3964 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3965 }
3966 }
3967 if (obj6) {
3968 ecode7 = SWIG_AsVal_long(obj6, &val7);
3969 if (!SWIG_IsOK(ecode7)) {
3970 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "BitmapButton_Create" "', expected argument " "7"" of type '" "long""'");
3971 }
3972 arg7 = static_cast< long >(val7);
3973 }
3974 if (obj7) {
3975 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3976 if (!SWIG_IsOK(res8)) {
3977 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3978 }
3979 if (!argp8) {
3980 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 3981 }
0085ce49
RD
3982 arg8 = reinterpret_cast< wxValidator * >(argp8);
3983 }
3984 if (obj8) {
d14a1e28 3985 {
0085ce49
RD
3986 arg9 = wxString_in_helper(obj8);
3987 if (arg9 == NULL) SWIG_fail;
3988 temp9 = true;
d14a1e28 3989 }
0085ce49
RD
3990 }
3991 {
3992 PyThreadState* __tstate = wxPyBeginAllowThreads();
3993 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3994 wxPyEndAllowThreads(__tstate);
3995 if (PyErr_Occurred()) SWIG_fail;
3996 }
3997 {
3998 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3999 }
4000 {
4001 if (temp9)
4002 delete arg9;
4003 }
4004 return resultobj;
4005fail:
4006 {
4007 if (temp9)
4008 delete arg9;
4009 }
4010 return NULL;
d14a1e28
RD
4011}
4012
4013
0085ce49
RD
4014SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4015 PyObject *resultobj = 0;
4016 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4017 wxBitmap result;
4018 void *argp1 = 0 ;
4019 int res1 = 0 ;
4020 PyObject *swig_obj[1] ;
4021
4022 if (!args) SWIG_fail;
4023 swig_obj[0] = args;
4024 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4025 if (!SWIG_IsOK(res1)) {
4026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4027 }
4028 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4029 {
4030 PyThreadState* __tstate = wxPyBeginAllowThreads();
4031 result = (arg1)->GetBitmapLabel();
4032 wxPyEndAllowThreads(__tstate);
4033 if (PyErr_Occurred()) SWIG_fail;
4034 }
4035 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4036 return resultobj;
4037fail:
4038 return NULL;
d14a1e28
RD
4039}
4040
4041
0085ce49
RD
4042SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4043 PyObject *resultobj = 0;
4044 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4045 wxBitmap result;
4046 void *argp1 = 0 ;
4047 int res1 = 0 ;
4048 PyObject *swig_obj[1] ;
4049
4050 if (!args) SWIG_fail;
4051 swig_obj[0] = args;
4052 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4053 if (!SWIG_IsOK(res1)) {
4054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4055 }
4056 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4057 {
4058 PyThreadState* __tstate = wxPyBeginAllowThreads();
4059 result = (arg1)->GetBitmapDisabled();
4060 wxPyEndAllowThreads(__tstate);
4061 if (PyErr_Occurred()) SWIG_fail;
4062 }
4063 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4064 return resultobj;
4065fail:
4066 return NULL;
d14a1e28
RD
4067}
4068
4069
0085ce49
RD
4070SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4071 PyObject *resultobj = 0;
4072 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4073 wxBitmap result;
4074 void *argp1 = 0 ;
4075 int res1 = 0 ;
4076 PyObject *swig_obj[1] ;
4077
4078 if (!args) SWIG_fail;
4079 swig_obj[0] = args;
4080 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4081 if (!SWIG_IsOK(res1)) {
4082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4083 }
4084 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4085 {
4086 PyThreadState* __tstate = wxPyBeginAllowThreads();
4087 result = (arg1)->GetBitmapFocus();
4088 wxPyEndAllowThreads(__tstate);
4089 if (PyErr_Occurred()) SWIG_fail;
4090 }
4091 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4092 return resultobj;
4093fail:
4094 return NULL;
d14a1e28
RD
4095}
4096
4097
0085ce49
RD
4098SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4099 PyObject *resultobj = 0;
4100 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4101 wxBitmap result;
4102 void *argp1 = 0 ;
4103 int res1 = 0 ;
4104 PyObject *swig_obj[1] ;
4105
4106 if (!args) SWIG_fail;
4107 swig_obj[0] = args;
4108 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4109 if (!SWIG_IsOK(res1)) {
4110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4111 }
4112 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4113 {
4114 PyThreadState* __tstate = wxPyBeginAllowThreads();
4115 result = (arg1)->GetBitmapSelected();
4116 wxPyEndAllowThreads(__tstate);
4117 if (PyErr_Occurred()) SWIG_fail;
4118 }
4119 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4120 return resultobj;
4121fail:
4122 return NULL;
d14a1e28
RD
4123}
4124
4125
0085ce49
RD
4126SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4127 PyObject *resultobj = 0;
4128 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4129 wxBitmap result;
4130 void *argp1 = 0 ;
4131 int res1 = 0 ;
4132 PyObject *swig_obj[1] ;
4133
4134 if (!args) SWIG_fail;
4135 swig_obj[0] = args;
4136 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4137 if (!SWIG_IsOK(res1)) {
4138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4139 }
4140 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4141 {
4142 PyThreadState* __tstate = wxPyBeginAllowThreads();
4143 result = (arg1)->GetBitmapHover();
4144 wxPyEndAllowThreads(__tstate);
4145 if (PyErr_Occurred()) SWIG_fail;
4146 }
4147 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4148 return resultobj;
4149fail:
4150 return NULL;
4151}
4152
4153
4154SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4155 PyObject *resultobj = 0;
4156 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4157 wxBitmap *arg2 = 0 ;
4158 void *argp1 = 0 ;
4159 int res1 = 0 ;
4160 void *argp2 = 0 ;
4161 int res2 = 0 ;
4162 PyObject * obj0 = 0 ;
4163 PyObject * obj1 = 0 ;
4164 char * kwnames[] = {
4165 (char *) "self",(char *) "bitmap", NULL
4166 };
4167
4168 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) SWIG_fail;
4169 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4170 if (!SWIG_IsOK(res1)) {
4171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4172 }
4173 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4174 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4175 if (!SWIG_IsOK(res2)) {
4176 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4177 }
4178 if (!argp2) {
4179 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4180 }
4181 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4182 {
4183 PyThreadState* __tstate = wxPyBeginAllowThreads();
4184 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
4185 wxPyEndAllowThreads(__tstate);
4186 if (PyErr_Occurred()) SWIG_fail;
4187 }
4188 resultobj = SWIG_Py_Void();
4189 return resultobj;
4190fail:
4191 return NULL;
4192}
4193
4194
4195SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4196 PyObject *resultobj = 0;
4197 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4198 wxBitmap *arg2 = 0 ;
4199 void *argp1 = 0 ;
4200 int res1 = 0 ;
4201 void *argp2 = 0 ;
4202 int res2 = 0 ;
4203 PyObject * obj0 = 0 ;
4204 PyObject * obj1 = 0 ;
4205 char * kwnames[] = {
4206 (char *) "self",(char *) "bitmap", NULL
4207 };
4208
4209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) SWIG_fail;
4210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4211 if (!SWIG_IsOK(res1)) {
4212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4213 }
4214 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4215 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4216 if (!SWIG_IsOK(res2)) {
4217 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4218 }
4219 if (!argp2) {
4220 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4221 }
4222 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4223 {
4224 PyThreadState* __tstate = wxPyBeginAllowThreads();
4225 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
4226 wxPyEndAllowThreads(__tstate);
4227 if (PyErr_Occurred()) SWIG_fail;
4228 }
4229 resultobj = SWIG_Py_Void();
4230 return resultobj;
4231fail:
4232 return NULL;
4233}
4234
4235
4236SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4237 PyObject *resultobj = 0;
4238 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4239 wxBitmap *arg2 = 0 ;
4240 void *argp1 = 0 ;
4241 int res1 = 0 ;
4242 void *argp2 = 0 ;
4243 int res2 = 0 ;
4244 PyObject * obj0 = 0 ;
4245 PyObject * obj1 = 0 ;
4246 char * kwnames[] = {
4247 (char *) "self",(char *) "bitmap", NULL
4248 };
4249
4250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) SWIG_fail;
4251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4252 if (!SWIG_IsOK(res1)) {
4253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4254 }
4255 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4256 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4257 if (!SWIG_IsOK(res2)) {
4258 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4259 }
4260 if (!argp2) {
4261 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4262 }
4263 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4264 {
4265 PyThreadState* __tstate = wxPyBeginAllowThreads();
4266 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
4267 wxPyEndAllowThreads(__tstate);
4268 if (PyErr_Occurred()) SWIG_fail;
4269 }
4270 resultobj = SWIG_Py_Void();
4271 return resultobj;
4272fail:
4273 return NULL;
4274}
4275
4276
4277SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4278 PyObject *resultobj = 0;
4279 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4280 wxBitmap *arg2 = 0 ;
4281 void *argp1 = 0 ;
4282 int res1 = 0 ;
4283 void *argp2 = 0 ;
4284 int res2 = 0 ;
4285 PyObject * obj0 = 0 ;
4286 PyObject * obj1 = 0 ;
4287 char * kwnames[] = {
4288 (char *) "self",(char *) "bitmap", NULL
4289 };
4290
4291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) SWIG_fail;
4292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4293 if (!SWIG_IsOK(res1)) {
4294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4295 }
4296 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4297 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4298 if (!SWIG_IsOK(res2)) {
4299 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4300 }
4301 if (!argp2) {
4302 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4303 }
4304 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4305 {
4306 PyThreadState* __tstate = wxPyBeginAllowThreads();
4307 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
4308 wxPyEndAllowThreads(__tstate);
4309 if (PyErr_Occurred()) SWIG_fail;
4310 }
4311 resultobj = SWIG_Py_Void();
4312 return resultobj;
4313fail:
4314 return NULL;
4315}
4316
4317
4318SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4319 PyObject *resultobj = 0;
4320 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4321 wxBitmap *arg2 = 0 ;
4322 void *argp1 = 0 ;
4323 int res1 = 0 ;
4324 void *argp2 = 0 ;
4325 int res2 = 0 ;
4326 PyObject * obj0 = 0 ;
4327 PyObject * obj1 = 0 ;
4328 char * kwnames[] = {
4329 (char *) "self",(char *) "hover", NULL
4330 };
4331
4332 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapHover",kwnames,&obj0,&obj1)) SWIG_fail;
4333 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4334 if (!SWIG_IsOK(res1)) {
4335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4336 }
4337 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4338 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4339 if (!SWIG_IsOK(res2)) {
4340 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4341 }
4342 if (!argp2) {
4343 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4344 }
4345 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4346 {
4347 PyThreadState* __tstate = wxPyBeginAllowThreads();
4348 (arg1)->SetBitmapHover((wxBitmap const &)*arg2);
4349 wxPyEndAllowThreads(__tstate);
4350 if (PyErr_Occurred()) SWIG_fail;
4351 }
4352 resultobj = SWIG_Py_Void();
4353 return resultobj;
4354fail:
4355 return NULL;
4356}
4357
4358
4359SWIGINTERN PyObject *_wrap_BitmapButton_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4360 PyObject *resultobj = 0;
4361 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4362 int arg2 ;
4363 int arg3 ;
4364 void *argp1 = 0 ;
4365 int res1 = 0 ;
4366 int val2 ;
4367 int ecode2 = 0 ;
4368 int val3 ;
4369 int ecode3 = 0 ;
4370 PyObject * obj0 = 0 ;
4371 PyObject * obj1 = 0 ;
4372 PyObject * obj2 = 0 ;
4373 char * kwnames[] = {
4374 (char *) "self",(char *) "x",(char *) "y", NULL
4375 };
4376
4377 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4378 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4379 if (!SWIG_IsOK(res1)) {
4380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetMargins" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4381 }
4382 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4383 ecode2 = SWIG_AsVal_int(obj1, &val2);
4384 if (!SWIG_IsOK(ecode2)) {
4385 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BitmapButton_SetMargins" "', expected argument " "2"" of type '" "int""'");
4386 }
4387 arg2 = static_cast< int >(val2);
4388 ecode3 = SWIG_AsVal_int(obj2, &val3);
4389 if (!SWIG_IsOK(ecode3)) {
4390 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_SetMargins" "', expected argument " "3"" of type '" "int""'");
4391 }
4392 arg3 = static_cast< int >(val3);
4393 {
4394 PyThreadState* __tstate = wxPyBeginAllowThreads();
4395 (arg1)->SetMargins(arg2,arg3);
4396 wxPyEndAllowThreads(__tstate);
4397 if (PyErr_Occurred()) SWIG_fail;
4398 }
4399 resultobj = SWIG_Py_Void();
4400 return resultobj;
4401fail:
4402 return NULL;
d14a1e28
RD
4403}
4404
4405
0085ce49
RD
4406SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4407 PyObject *resultobj = 0;
4408 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4409 int result;
4410 void *argp1 = 0 ;
4411 int res1 = 0 ;
4412 PyObject *swig_obj[1] ;
4413
4414 if (!args) SWIG_fail;
4415 swig_obj[0] = args;
4416 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4417 if (!SWIG_IsOK(res1)) {
4418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginX" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4419 }
4420 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4421 {
4422 PyThreadState* __tstate = wxPyBeginAllowThreads();
4423 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
4424 wxPyEndAllowThreads(__tstate);
4425 if (PyErr_Occurred()) SWIG_fail;
4426 }
4427 resultobj = SWIG_From_int(static_cast< int >(result));
4428 return resultobj;
4429fail:
4430 return NULL;
d14a1e28
RD
4431}
4432
4433
0085ce49
RD
4434SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4435 PyObject *resultobj = 0;
4436 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4437 int result;
4438 void *argp1 = 0 ;
4439 int res1 = 0 ;
4440 PyObject *swig_obj[1] ;
4441
4442 if (!args) SWIG_fail;
4443 swig_obj[0] = args;
4444 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4445 if (!SWIG_IsOK(res1)) {
4446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginY" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4447 }
4448 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4449 {
4450 PyThreadState* __tstate = wxPyBeginAllowThreads();
4451 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
4452 wxPyEndAllowThreads(__tstate);
4453 if (PyErr_Occurred()) SWIG_fail;
4454 }
4455 resultobj = SWIG_From_int(static_cast< int >(result));
4456 return resultobj;
4457fail:
4458 return NULL;
b1fcee84
RD
4459}
4460
4461
0085ce49
RD
4462SWIGINTERN PyObject *BitmapButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4463 PyObject *obj;
4464 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4465 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmapButton, SWIG_NewClientData(obj));
4466 return SWIG_Py_Void();
d14a1e28
RD
4467}
4468
0085ce49
RD
4469SWIGINTERN PyObject *BitmapButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4470 return SWIG_Python_InitShadowInstance(args);
4471}
d14a1e28 4472
0085ce49
RD
4473SWIGINTERN int CheckBoxNameStr_set(PyObject *) {
4474 SWIG_Error(SWIG_AttributeError,"Variable CheckBoxNameStr is read-only.");
4475 return 1;
d14a1e28
RD
4476}
4477
4478
0085ce49
RD
4479SWIGINTERN PyObject *CheckBoxNameStr_get(void) {
4480 PyObject *pyobj = 0;
4481
4482 {
4483#if wxUSE_UNICODE
4484 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4485#else
4486 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4487#endif
4488 }
4489 return pyobj;
4490}
4491
4492
4493SWIGINTERN PyObject *_wrap_new_CheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4494 PyObject *resultobj = 0;
4495 wxWindow *arg1 = (wxWindow *) 0 ;
4496 int arg2 = (int) -1 ;
4497 wxString const &arg3_defvalue = wxPyEmptyString ;
4498 wxString *arg3 = (wxString *) &arg3_defvalue ;
4499 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4500 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4501 wxSize const &arg5_defvalue = wxDefaultSize ;
4502 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4503 long arg6 = (long) 0 ;
4504 wxValidator const &arg7_defvalue = wxDefaultValidator ;
4505 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
4506 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
4507 wxString *arg8 = (wxString *) &arg8_defvalue ;
4508 wxCheckBox *result = 0 ;
4509 void *argp1 = 0 ;
4510 int res1 = 0 ;
4511 int val2 ;
4512 int ecode2 = 0 ;
4513 bool temp3 = false ;
4514 wxPoint temp4 ;
4515 wxSize temp5 ;
4516 long val6 ;
4517 int ecode6 = 0 ;
4518 void *argp7 = 0 ;
4519 int res7 = 0 ;
4520 bool temp8 = false ;
4521 PyObject * obj0 = 0 ;
4522 PyObject * obj1 = 0 ;
4523 PyObject * obj2 = 0 ;
4524 PyObject * obj3 = 0 ;
4525 PyObject * obj4 = 0 ;
4526 PyObject * obj5 = 0 ;
4527 PyObject * obj6 = 0 ;
4528 PyObject * obj7 = 0 ;
4529 char * kwnames[] = {
4530 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4531 };
4532
4533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
4534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
4535 if (!SWIG_IsOK(res1)) {
4536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckBox" "', expected argument " "1"" of type '" "wxWindow *""'");
4537 }
4538 arg1 = reinterpret_cast< wxWindow * >(argp1);
4539 if (obj1) {
4540 ecode2 = SWIG_AsVal_int(obj1, &val2);
4541 if (!SWIG_IsOK(ecode2)) {
4542 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckBox" "', expected argument " "2"" of type '" "int""'");
4543 }
4544 arg2 = static_cast< int >(val2);
4545 }
4546 if (obj2) {
d14a1e28 4547 {
0085ce49
RD
4548 arg3 = wxString_in_helper(obj2);
4549 if (arg3 == NULL) SWIG_fail;
4550 temp3 = true;
d14a1e28 4551 }
0085ce49
RD
4552 }
4553 if (obj3) {
4554 {
4555 arg4 = &temp4;
4556 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 4557 }
0085ce49
RD
4558 }
4559 if (obj4) {
d14a1e28 4560 {
0085ce49
RD
4561 arg5 = &temp5;
4562 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 4563 }
0085ce49
RD
4564 }
4565 if (obj5) {
4566 ecode6 = SWIG_AsVal_long(obj5, &val6);
4567 if (!SWIG_IsOK(ecode6)) {
4568 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckBox" "', expected argument " "6"" of type '" "long""'");
4569 }
4570 arg6 = static_cast< long >(val6);
4571 }
4572 if (obj6) {
4573 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
4574 if (!SWIG_IsOK(res7)) {
4575 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
b1fcee84 4576 }
0085ce49
RD
4577 if (!argp7) {
4578 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4579 }
4580 arg7 = reinterpret_cast< wxValidator * >(argp7);
4581 }
4582 if (obj7) {
b1fcee84 4583 {
0085ce49
RD
4584 arg8 = wxString_in_helper(obj7);
4585 if (arg8 == NULL) SWIG_fail;
4586 temp8 = true;
b1fcee84 4587 }
0085ce49
RD
4588 }
4589 {
4590 if (!wxPyCheckForApp()) SWIG_fail;
4591 PyThreadState* __tstate = wxPyBeginAllowThreads();
4592 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
4593 wxPyEndAllowThreads(__tstate);
4594 if (PyErr_Occurred()) SWIG_fail;
4595 }
4596 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_NEW | 0 );
4597 {
4598 if (temp3)
4599 delete arg3;
4600 }
4601 {
4602 if (temp8)
4603 delete arg8;
4604 }
4605 return resultobj;
4606fail:
4607 {
4608 if (temp3)
4609 delete arg3;
4610 }
4611 {
4612 if (temp8)
4613 delete arg8;
4614 }
4615 return NULL;
b1fcee84
RD
4616}
4617
4618
0085ce49
RD
4619SWIGINTERN PyObject *_wrap_new_PreCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4620 PyObject *resultobj = 0;
4621 wxCheckBox *result = 0 ;
4622
4623 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckBox",0,0,0)) SWIG_fail;
4624 {
4625 if (!wxPyCheckForApp()) SWIG_fail;
4626 PyThreadState* __tstate = wxPyBeginAllowThreads();
4627 result = (wxCheckBox *)new wxCheckBox();
4628 wxPyEndAllowThreads(__tstate);
4629 if (PyErr_Occurred()) SWIG_fail;
4630 }
4631 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_OWN | 0 );
4632 return resultobj;
4633fail:
4634 return NULL;
4635}
4636
4637
4638SWIGINTERN PyObject *_wrap_CheckBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4639 PyObject *resultobj = 0;
4640 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4641 wxWindow *arg2 = (wxWindow *) 0 ;
4642 int arg3 = (int) -1 ;
4643 wxString const &arg4_defvalue = wxPyEmptyString ;
4644 wxString *arg4 = (wxString *) &arg4_defvalue ;
4645 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4646 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4647 wxSize const &arg6_defvalue = wxDefaultSize ;
4648 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4649 long arg7 = (long) 0 ;
4650 wxValidator const &arg8_defvalue = wxDefaultValidator ;
4651 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
4652 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
4653 wxString *arg9 = (wxString *) &arg9_defvalue ;
4654 bool result;
4655 void *argp1 = 0 ;
4656 int res1 = 0 ;
4657 void *argp2 = 0 ;
4658 int res2 = 0 ;
4659 int val3 ;
4660 int ecode3 = 0 ;
4661 bool temp4 = false ;
4662 wxPoint temp5 ;
4663 wxSize temp6 ;
4664 long val7 ;
4665 int ecode7 = 0 ;
4666 void *argp8 = 0 ;
4667 int res8 = 0 ;
4668 bool temp9 = false ;
4669 PyObject * obj0 = 0 ;
4670 PyObject * obj1 = 0 ;
4671 PyObject * obj2 = 0 ;
4672 PyObject * obj3 = 0 ;
4673 PyObject * obj4 = 0 ;
4674 PyObject * obj5 = 0 ;
4675 PyObject * obj6 = 0 ;
4676 PyObject * obj7 = 0 ;
4677 PyObject * obj8 = 0 ;
4678 char * kwnames[] = {
4679 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4680 };
4681
4682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
4683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4684 if (!SWIG_IsOK(res1)) {
4685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Create" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4686 }
4687 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4688 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
4689 if (!SWIG_IsOK(res2)) {
4690 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
4691 }
4692 arg2 = reinterpret_cast< wxWindow * >(argp2);
4693 if (obj2) {
4694 ecode3 = SWIG_AsVal_int(obj2, &val3);
4695 if (!SWIG_IsOK(ecode3)) {
4696 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckBox_Create" "', expected argument " "3"" of type '" "int""'");
4697 }
4698 arg3 = static_cast< int >(val3);
4699 }
4700 if (obj3) {
093d3ff1 4701 {
0085ce49
RD
4702 arg4 = wxString_in_helper(obj3);
4703 if (arg4 == NULL) SWIG_fail;
4704 temp4 = true;
093d3ff1 4705 }
0085ce49
RD
4706 }
4707 if (obj4) {
093d3ff1 4708 {
0085ce49
RD
4709 arg5 = &temp5;
4710 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 4711 }
0085ce49
RD
4712 }
4713 if (obj5) {
d14a1e28 4714 {
0085ce49
RD
4715 arg6 = &temp6;
4716 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d14a1e28 4717 }
0085ce49
RD
4718 }
4719 if (obj6) {
4720 ecode7 = SWIG_AsVal_long(obj6, &val7);
4721 if (!SWIG_IsOK(ecode7)) {
4722 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckBox_Create" "', expected argument " "7"" of type '" "long""'");
4723 }
4724 arg7 = static_cast< long >(val7);
4725 }
4726 if (obj7) {
4727 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4728 if (!SWIG_IsOK(res8)) {
4729 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 4730 }
0085ce49
RD
4731 if (!argp8) {
4732 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4733 }
4734 arg8 = reinterpret_cast< wxValidator * >(argp8);
4735 }
4736 if (obj8) {
093d3ff1 4737 {
0085ce49
RD
4738 arg9 = wxString_in_helper(obj8);
4739 if (arg9 == NULL) SWIG_fail;
4740 temp9 = true;
093d3ff1 4741 }
0085ce49
RD
4742 }
4743 {
4744 PyThreadState* __tstate = wxPyBeginAllowThreads();
4745 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4746 wxPyEndAllowThreads(__tstate);
4747 if (PyErr_Occurred()) SWIG_fail;
4748 }
4749 {
4750 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4751 }
4752 {
4753 if (temp4)
4754 delete arg4;
4755 }
4756 {
4757 if (temp9)
4758 delete arg9;
4759 }
4760 return resultobj;
4761fail:
4762 {
4763 if (temp4)
4764 delete arg4;
4765 }
4766 {
4767 if (temp9)
4768 delete arg9;
4769 }
4770 return NULL;
d14a1e28
RD
4771}
4772
4773
0085ce49
RD
4774SWIGINTERN PyObject *_wrap_CheckBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4775 PyObject *resultobj = 0;
4776 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4777 bool result;
4778 void *argp1 = 0 ;
4779 int res1 = 0 ;
4780 PyObject *swig_obj[1] ;
4781
4782 if (!args) SWIG_fail;
4783 swig_obj[0] = args;
4784 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4785 if (!SWIG_IsOK(res1)) {
4786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_GetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4787 }
4788 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4789 {
4790 PyThreadState* __tstate = wxPyBeginAllowThreads();
4791 result = (bool)(arg1)->GetValue();
4792 wxPyEndAllowThreads(__tstate);
4793 if (PyErr_Occurred()) SWIG_fail;
4794 }
4795 {
4796 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4797 }
4798 return resultobj;
4799fail:
4800 return NULL;
d14a1e28
RD
4801}
4802
4803
0085ce49
RD
4804SWIGINTERN PyObject *_wrap_CheckBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4805 PyObject *resultobj = 0;
4806 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4807 bool result;
4808 void *argp1 = 0 ;
4809 int res1 = 0 ;
4810 PyObject *swig_obj[1] ;
4811
4812 if (!args) SWIG_fail;
4813 swig_obj[0] = args;
4814 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4815 if (!SWIG_IsOK(res1)) {
4816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4817 }
4818 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4819 {
4820 PyThreadState* __tstate = wxPyBeginAllowThreads();
4821 result = (bool)(arg1)->IsChecked();
4822 wxPyEndAllowThreads(__tstate);
4823 if (PyErr_Occurred()) SWIG_fail;
4824 }
4825 {
4826 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4827 }
4828 return resultobj;
4829fail:
4830 return NULL;
4831}
4832
4833
4834SWIGINTERN PyObject *_wrap_CheckBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4835 PyObject *resultobj = 0;
4836 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4837 bool arg2 ;
4838 void *argp1 = 0 ;
4839 int res1 = 0 ;
4840 bool val2 ;
4841 int ecode2 = 0 ;
4842 PyObject * obj0 = 0 ;
4843 PyObject * obj1 = 0 ;
4844 char * kwnames[] = {
4845 (char *) "self",(char *) "state", NULL
4846 };
4847
4848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
4849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4850 if (!SWIG_IsOK(res1)) {
4851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_SetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4852 }
4853 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4854 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4855 if (!SWIG_IsOK(ecode2)) {
4856 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_SetValue" "', expected argument " "2"" of type '" "bool""'");
4857 }
4858 arg2 = static_cast< bool >(val2);
4859 {
4860 PyThreadState* __tstate = wxPyBeginAllowThreads();
4861 (arg1)->SetValue(arg2);
4862 wxPyEndAllowThreads(__tstate);
4863 if (PyErr_Occurred()) SWIG_fail;
4864 }
4865 resultobj = SWIG_Py_Void();
4866 return resultobj;
4867fail:
4868 return NULL;
d14a1e28 4869}
0085ce49
RD
4870
4871
4872SWIGINTERN PyObject *_wrap_CheckBox_Get3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4873 PyObject *resultobj = 0;
4874 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4875 wxCheckBoxState result;
4876 void *argp1 = 0 ;
4877 int res1 = 0 ;
4878 PyObject *swig_obj[1] ;
4879
4880 if (!args) SWIG_fail;
4881 swig_obj[0] = args;
4882 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4883 if (!SWIG_IsOK(res1)) {
4884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Get3StateValue" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4885 }
4886 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4887 {
4888 PyThreadState* __tstate = wxPyBeginAllowThreads();
4889 result = (wxCheckBoxState)((wxCheckBox const *)arg1)->Get3StateValue();
4890 wxPyEndAllowThreads(__tstate);
4891 if (PyErr_Occurred()) SWIG_fail;
4892 }
4893 resultobj = SWIG_From_int(static_cast< int >(result));
4894 return resultobj;
4895fail:
4896 return NULL;
4897}
4898
4899
4900SWIGINTERN PyObject *_wrap_CheckBox_Set3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4901 PyObject *resultobj = 0;
4902 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4903 wxCheckBoxState arg2 ;
4904 void *argp1 = 0 ;
4905 int res1 = 0 ;
4906 int val2 ;
4907 int ecode2 = 0 ;
4908 PyObject * obj0 = 0 ;
4909 PyObject * obj1 = 0 ;
4910 char * kwnames[] = {
4911 (char *) "self",(char *) "state", NULL
4912 };
4913
4914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) SWIG_fail;
4915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4916 if (!SWIG_IsOK(res1)) {
4917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Set3StateValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4918 }
4919 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4920 ecode2 = SWIG_AsVal_int(obj1, &val2);
4921 if (!SWIG_IsOK(ecode2)) {
4922 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_Set3StateValue" "', expected argument " "2"" of type '" "wxCheckBoxState""'");
4923 }
4924 arg2 = static_cast< wxCheckBoxState >(val2);
4925 {
4926 PyThreadState* __tstate = wxPyBeginAllowThreads();
4927 (arg1)->Set3StateValue(arg2);
4928 wxPyEndAllowThreads(__tstate);
4929 if (PyErr_Occurred()) SWIG_fail;
4930 }
4931 resultobj = SWIG_Py_Void();
4932 return resultobj;
4933fail:
4934 return NULL;
b2dc1044
RD
4935}
4936
4937
0085ce49
RD
4938SWIGINTERN PyObject *_wrap_CheckBox_Is3State(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4939 PyObject *resultobj = 0;
4940 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4941 bool result;
4942 void *argp1 = 0 ;
4943 int res1 = 0 ;
4944 PyObject *swig_obj[1] ;
4945
4946 if (!args) SWIG_fail;
4947 swig_obj[0] = args;
4948 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4949 if (!SWIG_IsOK(res1)) {
4950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3State" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4951 }
4952 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4953 {
4954 PyThreadState* __tstate = wxPyBeginAllowThreads();
4955 result = (bool)((wxCheckBox const *)arg1)->Is3State();
4956 wxPyEndAllowThreads(__tstate);
4957 if (PyErr_Occurred()) SWIG_fail;
4958 }
4959 {
4960 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4961 }
4962 return resultobj;
4963fail:
4964 return NULL;
d14a1e28
RD
4965}
4966
4967
0085ce49
RD
4968SWIGINTERN PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4969 PyObject *resultobj = 0;
4970 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4971 bool result;
4972 void *argp1 = 0 ;
4973 int res1 = 0 ;
4974 PyObject *swig_obj[1] ;
4975
4976 if (!args) SWIG_fail;
4977 swig_obj[0] = args;
4978 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4979 if (!SWIG_IsOK(res1)) {
4980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3rdStateAllowedForUser" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4981 }
4982 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4983 {
4984 PyThreadState* __tstate = wxPyBeginAllowThreads();
4985 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
4986 wxPyEndAllowThreads(__tstate);
4987 if (PyErr_Occurred()) SWIG_fail;
4988 }
4989 {
4990 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4991 }
4992 return resultobj;
4993fail:
4994 return NULL;
d14a1e28
RD
4995}
4996
4997
0085ce49
RD
4998SWIGINTERN PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4999 PyObject *resultobj = 0;
5000 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5001 SwigValueWrapper<wxVisualAttributes > result;
5002 int val1 ;
5003 int ecode1 = 0 ;
5004 PyObject * obj0 = 0 ;
5005 char * kwnames[] = {
5006 (char *) "variant", NULL
5007 };
5008
5009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5010 if (obj0) {
5011 ecode1 = SWIG_AsVal_int(obj0, &val1);
5012 if (!SWIG_IsOK(ecode1)) {
5013 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CheckBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5014 }
5015 arg1 = static_cast< wxWindowVariant >(val1);
5016 }
5017 {
5018 if (!wxPyCheckForApp()) SWIG_fail;
5019 PyThreadState* __tstate = wxPyBeginAllowThreads();
5020 result = wxCheckBox::GetClassDefaultAttributes(arg1);
5021 wxPyEndAllowThreads(__tstate);
5022 if (PyErr_Occurred()) SWIG_fail;
5023 }
5024 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5025 return resultobj;
5026fail:
5027 return NULL;
d14a1e28
RD
5028}
5029
5030
0085ce49
RD
5031SWIGINTERN PyObject *CheckBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5032 PyObject *obj;
5033 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5034 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckBox, SWIG_NewClientData(obj));
5035 return SWIG_Py_Void();
d14a1e28
RD
5036}
5037
0085ce49
RD
5038SWIGINTERN PyObject *CheckBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5039 return SWIG_Python_InitShadowInstance(args);
5040}
d14a1e28 5041
0085ce49
RD
5042SWIGINTERN int ChoiceNameStr_set(PyObject *) {
5043 SWIG_Error(SWIG_AttributeError,"Variable ChoiceNameStr is read-only.");
5044 return 1;
d14a1e28
RD
5045}
5046
5047
0085ce49
RD
5048SWIGINTERN PyObject *ChoiceNameStr_get(void) {
5049 PyObject *pyobj = 0;
5050
5051 {
5052#if wxUSE_UNICODE
5053 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5054#else
5055 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5056#endif
5057 }
5058 return pyobj;
5059}
5060
5061
5062SWIGINTERN PyObject *_wrap_new_Choice(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5063 PyObject *resultobj = 0;
5064 wxWindow *arg1 = (wxWindow *) 0 ;
5065 int arg2 = (int) -1 ;
5066 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5067 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5068 wxSize const &arg4_defvalue = wxDefaultSize ;
5069 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5070 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5071 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5072 long arg6 = (long) 0 ;
5073 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5074 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5075 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
5076 wxString *arg8 = (wxString *) &arg8_defvalue ;
5077 wxChoice *result = 0 ;
5078 void *argp1 = 0 ;
5079 int res1 = 0 ;
5080 int val2 ;
5081 int ecode2 = 0 ;
5082 wxPoint temp3 ;
5083 wxSize temp4 ;
5084 bool temp5 = false ;
5085 long val6 ;
5086 int ecode6 = 0 ;
5087 void *argp7 = 0 ;
5088 int res7 = 0 ;
5089 bool temp8 = false ;
5090 PyObject * obj0 = 0 ;
5091 PyObject * obj1 = 0 ;
5092 PyObject * obj2 = 0 ;
5093 PyObject * obj3 = 0 ;
5094 PyObject * obj4 = 0 ;
5095 PyObject * obj5 = 0 ;
5096 PyObject * obj6 = 0 ;
5097 PyObject * obj7 = 0 ;
5098 char * kwnames[] = {
5099 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5100 };
5101
5102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
5103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5104 if (!SWIG_IsOK(res1)) {
5105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choice" "', expected argument " "1"" of type '" "wxWindow *""'");
5106 }
5107 arg1 = reinterpret_cast< wxWindow * >(argp1);
5108 if (obj1) {
5109 ecode2 = SWIG_AsVal_int(obj1, &val2);
5110 if (!SWIG_IsOK(ecode2)) {
5111 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choice" "', expected argument " "2"" of type '" "int""'");
5112 }
5113 arg2 = static_cast< int >(val2);
5114 }
5115 if (obj2) {
093d3ff1 5116 {
0085ce49
RD
5117 arg3 = &temp3;
5118 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 5119 }
0085ce49
RD
5120 }
5121 if (obj3) {
d14a1e28 5122 {
0085ce49
RD
5123 arg4 = &temp4;
5124 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 5125 }
0085ce49
RD
5126 }
5127 if (obj4) {
d14a1e28 5128 {
0085ce49
RD
5129 if (! PySequence_Check(obj4)) {
5130 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5131 SWIG_fail;
5132 }
5133 arg5 = new wxArrayString;
5134 temp5 = true;
5135 int i, len=PySequence_Length(obj4);
5136 for (i=0; i<len; i++) {
5137 PyObject* item = PySequence_GetItem(obj4, i);
5138 wxString* s = wxString_in_helper(item);
5139 if (PyErr_Occurred()) SWIG_fail;
5140 arg5->Add(*s);
5141 delete s;
5142 Py_DECREF(item);
5143 }
d14a1e28 5144 }
0085ce49
RD
5145 }
5146 if (obj5) {
5147 ecode6 = SWIG_AsVal_long(obj5, &val6);
5148 if (!SWIG_IsOK(ecode6)) {
5149 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Choice" "', expected argument " "6"" of type '" "long""'");
5150 }
5151 arg6 = static_cast< long >(val6);
5152 }
5153 if (obj6) {
5154 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
5155 if (!SWIG_IsOK(res7)) {
5156 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
093d3ff1 5157 }
0085ce49
RD
5158 if (!argp7) {
5159 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5160 }
5161 arg7 = reinterpret_cast< wxValidator * >(argp7);
5162 }
5163 if (obj7) {
d14a1e28 5164 {
0085ce49
RD
5165 arg8 = wxString_in_helper(obj7);
5166 if (arg8 == NULL) SWIG_fail;
5167 temp8 = true;
d14a1e28 5168 }
0085ce49
RD
5169 }
5170 {
5171 if (!wxPyCheckForApp()) SWIG_fail;
5172 PyThreadState* __tstate = wxPyBeginAllowThreads();
5173 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5174 wxPyEndAllowThreads(__tstate);
5175 if (PyErr_Occurred()) SWIG_fail;
5176 }
5177 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_NEW | 0 );
5178 {
5179 if (temp5) delete arg5;
5180 }
5181 {
5182 if (temp8)
5183 delete arg8;
5184 }
5185 return resultobj;
5186fail:
5187 {
5188 if (temp5) delete arg5;
5189 }
5190 {
5191 if (temp8)
5192 delete arg8;
5193 }
5194 return NULL;
d14a1e28
RD
5195}
5196
5197
0085ce49
RD
5198SWIGINTERN PyObject *_wrap_new_PreChoice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5199 PyObject *resultobj = 0;
5200 wxChoice *result = 0 ;
5201
5202 if (!SWIG_Python_UnpackTuple(args,"new_PreChoice",0,0,0)) SWIG_fail;
5203 {
5204 if (!wxPyCheckForApp()) SWIG_fail;
5205 PyThreadState* __tstate = wxPyBeginAllowThreads();
5206 result = (wxChoice *)new wxChoice();
5207 wxPyEndAllowThreads(__tstate);
5208 if (PyErr_Occurred()) SWIG_fail;
5209 }
5210 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_OWN | 0 );
5211 return resultobj;
5212fail:
5213 return NULL;
5214}
5215
5216
5217SWIGINTERN PyObject *_wrap_Choice_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5218 PyObject *resultobj = 0;
5219 wxChoice *arg1 = (wxChoice *) 0 ;
5220 wxWindow *arg2 = (wxWindow *) 0 ;
5221 int arg3 = (int) -1 ;
5222 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5223 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5224 wxSize const &arg5_defvalue = wxDefaultSize ;
5225 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5226 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5227 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5228 long arg7 = (long) 0 ;
5229 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5230 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5231 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
5232 wxString *arg9 = (wxString *) &arg9_defvalue ;
5233 bool result;
5234 void *argp1 = 0 ;
5235 int res1 = 0 ;
5236 void *argp2 = 0 ;
5237 int res2 = 0 ;
5238 int val3 ;
5239 int ecode3 = 0 ;
5240 wxPoint temp4 ;
5241 wxSize temp5 ;
5242 bool temp6 = false ;
5243 long val7 ;
5244 int ecode7 = 0 ;
5245 void *argp8 = 0 ;
5246 int res8 = 0 ;
5247 bool temp9 = false ;
5248 PyObject * obj0 = 0 ;
5249 PyObject * obj1 = 0 ;
5250 PyObject * obj2 = 0 ;
5251 PyObject * obj3 = 0 ;
5252 PyObject * obj4 = 0 ;
5253 PyObject * obj5 = 0 ;
5254 PyObject * obj6 = 0 ;
5255 PyObject * obj7 = 0 ;
5256 PyObject * obj8 = 0 ;
5257 char * kwnames[] = {
5258 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5259 };
5260
5261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5263 if (!SWIG_IsOK(res1)) {
5264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_Create" "', expected argument " "1"" of type '" "wxChoice *""'");
5265 }
5266 arg1 = reinterpret_cast< wxChoice * >(argp1);
5267 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5268 if (!SWIG_IsOK(res2)) {
5269 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choice_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5270 }
5271 arg2 = reinterpret_cast< wxWindow * >(argp2);
5272 if (obj2) {
5273 ecode3 = SWIG_AsVal_int(obj2, &val3);
5274 if (!SWIG_IsOK(ecode3)) {
5275 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choice_Create" "', expected argument " "3"" of type '" "int""'");
5276 }
5277 arg3 = static_cast< int >(val3);
5278 }
5279 if (obj3) {
d14a1e28 5280 {
0085ce49
RD
5281 arg4 = &temp4;
5282 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 5283 }
0085ce49
RD
5284 }
5285 if (obj4) {
4f89f6a3 5286 {
0085ce49
RD
5287 arg5 = &temp5;
5288 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4f89f6a3 5289 }
0085ce49
RD
5290 }
5291 if (obj5) {
d14a1e28 5292 {
0085ce49
RD
5293 if (! PySequence_Check(obj5)) {
5294 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5295 SWIG_fail;
5296 }
5297 arg6 = new wxArrayString;
5298 temp6 = true;
5299 int i, len=PySequence_Length(obj5);
5300 for (i=0; i<len; i++) {
5301 PyObject* item = PySequence_GetItem(obj5, i);
5302 wxString* s = wxString_in_helper(item);
5303 if (PyErr_Occurred()) SWIG_fail;
5304 arg6->Add(*s);
5305 delete s;
5306 Py_DECREF(item);
5307 }
5308 }
5309 }
5310 if (obj6) {
5311 ecode7 = SWIG_AsVal_long(obj6, &val7);
5312 if (!SWIG_IsOK(ecode7)) {
5313 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Choice_Create" "', expected argument " "7"" of type '" "long""'");
5314 }
5315 arg7 = static_cast< long >(val7);
5316 }
5317 if (obj7) {
5318 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5319 if (!SWIG_IsOK(res8)) {
5320 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 5321 }
0085ce49
RD
5322 if (!argp8) {
5323 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5324 }
5325 arg8 = reinterpret_cast< wxValidator * >(argp8);
5326 }
5327 if (obj8) {
4f89f6a3 5328 {
0085ce49
RD
5329 arg9 = wxString_in_helper(obj8);
5330 if (arg9 == NULL) SWIG_fail;
5331 temp9 = true;
4f89f6a3 5332 }
0085ce49
RD
5333 }
5334 {
5335 PyThreadState* __tstate = wxPyBeginAllowThreads();
5336 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5337 wxPyEndAllowThreads(__tstate);
5338 if (PyErr_Occurred()) SWIG_fail;
5339 }
5340 {
5341 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5342 }
5343 {
5344 if (temp6) delete arg6;
5345 }
5346 {
5347 if (temp9)
5348 delete arg9;
5349 }
5350 return resultobj;
5351fail:
5352 {
5353 if (temp6) delete arg6;
5354 }
5355 {
5356 if (temp9)
5357 delete arg9;
5358 }
5359 return NULL;
d14a1e28
RD
5360}
5361
5362
0085ce49
RD
5363SWIGINTERN PyObject *_wrap_Choice_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5364 PyObject *resultobj = 0;
5365 wxChoice *arg1 = (wxChoice *) 0 ;
5366 int result;
5367 void *argp1 = 0 ;
5368 int res1 = 0 ;
5369 PyObject *swig_obj[1] ;
5370
5371 if (!args) SWIG_fail;
5372 swig_obj[0] = args;
5373 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5374 if (!SWIG_IsOK(res1)) {
5375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_GetCurrentSelection" "', expected argument " "1"" of type '" "wxChoice const *""'");
5376 }
5377 arg1 = reinterpret_cast< wxChoice * >(argp1);
5378 {
5379 PyThreadState* __tstate = wxPyBeginAllowThreads();
5380 result = (int)((wxChoice const *)arg1)->GetCurrentSelection();
5381 wxPyEndAllowThreads(__tstate);
5382 if (PyErr_Occurred()) SWIG_fail;
5383 }
5384 resultobj = SWIG_From_int(static_cast< int >(result));
5385 return resultobj;
5386fail:
5387 return NULL;
5388}
5389
5390
5391SWIGINTERN PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5392 PyObject *resultobj = 0;
5393 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5394 SwigValueWrapper<wxVisualAttributes > result;
5395 int val1 ;
5396 int ecode1 = 0 ;
5397 PyObject * obj0 = 0 ;
5398 char * kwnames[] = {
5399 (char *) "variant", NULL
5400 };
5401
5402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5403 if (obj0) {
5404 ecode1 = SWIG_AsVal_int(obj0, &val1);
5405 if (!SWIG_IsOK(ecode1)) {
5406 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Choice_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5407 }
5408 arg1 = static_cast< wxWindowVariant >(val1);
5409 }
5410 {
5411 if (!wxPyCheckForApp()) SWIG_fail;
5412 PyThreadState* __tstate = wxPyBeginAllowThreads();
5413 result = wxChoice::GetClassDefaultAttributes(arg1);
5414 wxPyEndAllowThreads(__tstate);
5415 if (PyErr_Occurred()) SWIG_fail;
5416 }
5417 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5418 return resultobj;
5419fail:
5420 return NULL;
22bfe96c
RD
5421}
5422
5423
0085ce49
RD
5424SWIGINTERN PyObject *Choice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5425 PyObject *obj;
5426 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5427 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoice, SWIG_NewClientData(obj));
5428 return SWIG_Py_Void();
d14a1e28 5429}
0085ce49
RD
5430
5431SWIGINTERN PyObject *Choice_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5432 return SWIG_Python_InitShadowInstance(args);
5433}
5434
5435SWIGINTERN int ComboBoxNameStr_set(PyObject *) {
5436 SWIG_Error(SWIG_AttributeError,"Variable ComboBoxNameStr is read-only.");
5437 return 1;
b2dc1044
RD
5438}
5439
5440
0085ce49
RD
5441SWIGINTERN PyObject *ComboBoxNameStr_get(void) {
5442 PyObject *pyobj = 0;
5443
5444 {
b2dc1044 5445#if wxUSE_UNICODE
0085ce49 5446 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
b2dc1044 5447#else
0085ce49 5448 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
b2dc1044 5449#endif
0085ce49
RD
5450 }
5451 return pyobj;
5452}
5453
5454
5455SWIGINTERN PyObject *_wrap_new_ComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5456 PyObject *resultobj = 0;
5457 wxWindow *arg1 = (wxWindow *) 0 ;
5458 int arg2 = (int) -1 ;
5459 wxString const &arg3_defvalue = wxPyEmptyString ;
5460 wxString *arg3 = (wxString *) &arg3_defvalue ;
5461 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5462 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5463 wxSize const &arg5_defvalue = wxDefaultSize ;
5464 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5465 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5466 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5467 long arg7 = (long) 0 ;
5468 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5469 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5470 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
5471 wxString *arg9 = (wxString *) &arg9_defvalue ;
5472 wxComboBox *result = 0 ;
5473 void *argp1 = 0 ;
5474 int res1 = 0 ;
5475 int val2 ;
5476 int ecode2 = 0 ;
5477 bool temp3 = false ;
5478 wxPoint temp4 ;
5479 wxSize temp5 ;
5480 bool temp6 = false ;
5481 long val7 ;
5482 int ecode7 = 0 ;
5483 void *argp8 = 0 ;
5484 int res8 = 0 ;
5485 bool temp9 = false ;
5486 PyObject * obj0 = 0 ;
5487 PyObject * obj1 = 0 ;
5488 PyObject * obj2 = 0 ;
5489 PyObject * obj3 = 0 ;
5490 PyObject * obj4 = 0 ;
5491 PyObject * obj5 = 0 ;
5492 PyObject * obj6 = 0 ;
5493 PyObject * obj7 = 0 ;
5494 PyObject * obj8 = 0 ;
5495 char * kwnames[] = {
5496 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5497 };
5498
5499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5501 if (!SWIG_IsOK(res1)) {
5502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ComboBox" "', expected argument " "1"" of type '" "wxWindow *""'");
5503 }
5504 arg1 = reinterpret_cast< wxWindow * >(argp1);
5505 if (obj1) {
5506 ecode2 = SWIG_AsVal_int(obj1, &val2);
5507 if (!SWIG_IsOK(ecode2)) {
5508 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ComboBox" "', expected argument " "2"" of type '" "int""'");
5509 }
5510 arg2 = static_cast< int >(val2);
5511 }
5512 if (obj2) {
d14a1e28 5513 {
0085ce49
RD
5514 arg3 = wxString_in_helper(obj2);
5515 if (arg3 == NULL) SWIG_fail;
5516 temp3 = true;
d14a1e28 5517 }
0085ce49
RD
5518 }
5519 if (obj3) {
d14a1e28 5520 {
0085ce49
RD
5521 arg4 = &temp4;
5522 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 5523 }
0085ce49
RD
5524 }
5525 if (obj4) {
d14a1e28 5526 {
0085ce49
RD
5527 arg5 = &temp5;
5528 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 5529 }
0085ce49
RD
5530 }
5531 if (obj5) {
d14a1e28 5532 {
0085ce49
RD
5533 if (! PySequence_Check(obj5)) {
5534 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5535 SWIG_fail;
5536 }
5537 arg6 = new wxArrayString;
5538 temp6 = true;
5539 int i, len=PySequence_Length(obj5);
5540 for (i=0; i<len; i++) {
5541 PyObject* item = PySequence_GetItem(obj5, i);
5542 wxString* s = wxString_in_helper(item);
5543 if (PyErr_Occurred()) SWIG_fail;
5544 arg6->Add(*s);
5545 delete s;
5546 Py_DECREF(item);
5547 }
d14a1e28 5548 }
0085ce49
RD
5549 }
5550 if (obj6) {
5551 ecode7 = SWIG_AsVal_long(obj6, &val7);
5552 if (!SWIG_IsOK(ecode7)) {
5553 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ComboBox" "', expected argument " "7"" of type '" "long""'");
5554 }
5555 arg7 = static_cast< long >(val7);
5556 }
5557 if (obj7) {
5558 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5559 if (!SWIG_IsOK(res8)) {
5560 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5561 }
5562 if (!argp8) {
5563 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5564 }
5565 arg8 = reinterpret_cast< wxValidator * >(argp8);
5566 }
5567 if (obj8) {
d14a1e28 5568 {
0085ce49
RD
5569 arg9 = wxString_in_helper(obj8);
5570 if (arg9 == NULL) SWIG_fail;
5571 temp9 = true;
d14a1e28 5572 }
0085ce49
RD
5573 }
5574 {
5575 if (!wxPyCheckForApp()) SWIG_fail;
5576 PyThreadState* __tstate = wxPyBeginAllowThreads();
5577 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);
5578 wxPyEndAllowThreads(__tstate);
5579 if (PyErr_Occurred()) SWIG_fail;
5580 }
5581 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_NEW | 0 );
5582 {
5583 if (temp3)
5584 delete arg3;
5585 }
5586 {
5587 if (temp6) delete arg6;
5588 }
5589 {
5590 if (temp9)
5591 delete arg9;
5592 }
5593 return resultobj;
5594fail:
5595 {
5596 if (temp3)
5597 delete arg3;
5598 }
5599 {
5600 if (temp6) delete arg6;
5601 }
5602 {
5603 if (temp9)
5604 delete arg9;
5605 }
5606 return NULL;
d14a1e28
RD
5607}
5608
5609
0085ce49
RD
5610SWIGINTERN PyObject *_wrap_new_PreComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5611 PyObject *resultobj = 0;
5612 wxComboBox *result = 0 ;
5613
5614 if (!SWIG_Python_UnpackTuple(args,"new_PreComboBox",0,0,0)) SWIG_fail;
5615 {
5616 if (!wxPyCheckForApp()) SWIG_fail;
5617 PyThreadState* __tstate = wxPyBeginAllowThreads();
5618 result = (wxComboBox *)new wxComboBox();
5619 wxPyEndAllowThreads(__tstate);
5620 if (PyErr_Occurred()) SWIG_fail;
5621 }
5622 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_OWN | 0 );
5623 return resultobj;
5624fail:
5625 return NULL;
5626}
5627
5628
5629SWIGINTERN PyObject *_wrap_ComboBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5630 PyObject *resultobj = 0;
5631 wxComboBox *arg1 = (wxComboBox *) 0 ;
5632 wxWindow *arg2 = (wxWindow *) 0 ;
5633 int arg3 = (int) -1 ;
5634 wxString const &arg4_defvalue = wxPyEmptyString ;
5635 wxString *arg4 = (wxString *) &arg4_defvalue ;
5636 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5637 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5638 wxSize const &arg6_defvalue = wxDefaultSize ;
5639 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5640 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
5641 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
5642 long arg8 = (long) 0 ;
5643 wxValidator const &arg9_defvalue = wxDefaultValidator ;
5644 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
5645 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
5646 wxString *arg10 = (wxString *) &arg10_defvalue ;
5647 bool result;
5648 void *argp1 = 0 ;
5649 int res1 = 0 ;
5650 void *argp2 = 0 ;
5651 int res2 = 0 ;
5652 int val3 ;
5653 int ecode3 = 0 ;
5654 bool temp4 = false ;
5655 wxPoint temp5 ;
5656 wxSize temp6 ;
5657 bool temp7 = false ;
5658 long val8 ;
5659 int ecode8 = 0 ;
5660 void *argp9 = 0 ;
5661 int res9 = 0 ;
5662 bool temp10 = false ;
5663 PyObject * obj0 = 0 ;
5664 PyObject * obj1 = 0 ;
5665 PyObject * obj2 = 0 ;
5666 PyObject * obj3 = 0 ;
5667 PyObject * obj4 = 0 ;
5668 PyObject * obj5 = 0 ;
5669 PyObject * obj6 = 0 ;
5670 PyObject * obj7 = 0 ;
5671 PyObject * obj8 = 0 ;
5672 PyObject * obj9 = 0 ;
5673 char * kwnames[] = {
5674 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5675 };
5676
5677 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
5678 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5679 if (!SWIG_IsOK(res1)) {
5680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Create" "', expected argument " "1"" of type '" "wxComboBox *""'");
5681 }
5682 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5683 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5684 if (!SWIG_IsOK(res2)) {
5685 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ComboBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5686 }
5687 arg2 = reinterpret_cast< wxWindow * >(argp2);
5688 if (obj2) {
5689 ecode3 = SWIG_AsVal_int(obj2, &val3);
5690 if (!SWIG_IsOK(ecode3)) {
5691 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Create" "', expected argument " "3"" of type '" "int""'");
5692 }
5693 arg3 = static_cast< int >(val3);
5694 }
5695 if (obj3) {
4f89f6a3 5696 {
0085ce49
RD
5697 arg4 = wxString_in_helper(obj3);
5698 if (arg4 == NULL) SWIG_fail;
5699 temp4 = true;
4f89f6a3 5700 }
0085ce49
RD
5701 }
5702 if (obj4) {
d14a1e28 5703 {
0085ce49
RD
5704 arg5 = &temp5;
5705 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 5706 }
0085ce49
RD
5707 }
5708 if (obj5) {
d14a1e28 5709 {
0085ce49
RD
5710 arg6 = &temp6;
5711 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d14a1e28 5712 }
0085ce49
RD
5713 }
5714 if (obj6) {
d14a1e28 5715 {
0085ce49
RD
5716 if (! PySequence_Check(obj6)) {
5717 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5718 SWIG_fail;
5719 }
5720 arg7 = new wxArrayString;
5721 temp7 = true;
5722 int i, len=PySequence_Length(obj6);
5723 for (i=0; i<len; i++) {
5724 PyObject* item = PySequence_GetItem(obj6, i);
5725 wxString* s = wxString_in_helper(item);
5726 if (PyErr_Occurred()) SWIG_fail;
5727 arg7->Add(*s);
5728 delete s;
5729 Py_DECREF(item);
5730 }
d14a1e28 5731 }
0085ce49
RD
5732 }
5733 if (obj7) {
5734 ecode8 = SWIG_AsVal_long(obj7, &val8);
5735 if (!SWIG_IsOK(ecode8)) {
5736 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ComboBox_Create" "', expected argument " "8"" of type '" "long""'");
5737 }
5738 arg8 = static_cast< long >(val8);
5739 }
5740 if (obj8) {
5741 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
5742 if (!SWIG_IsOK(res9)) {
5743 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
d14a1e28 5744 }
0085ce49
RD
5745 if (!argp9) {
5746 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
d14a1e28 5747 }
0085ce49
RD
5748 arg9 = reinterpret_cast< wxValidator * >(argp9);
5749 }
5750 if (obj9) {
d14a1e28 5751 {
0085ce49
RD
5752 arg10 = wxString_in_helper(obj9);
5753 if (arg10 == NULL) SWIG_fail;
5754 temp10 = true;
d14a1e28 5755 }
0085ce49
RD
5756 }
5757 {
5758 PyThreadState* __tstate = wxPyBeginAllowThreads();
5759 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);
5760 wxPyEndAllowThreads(__tstate);
5761 if (PyErr_Occurred()) SWIG_fail;
5762 }
5763 {
5764 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5765 }
5766 {
5767 if (temp4)
5768 delete arg4;
5769 }
5770 {
5771 if (temp7) delete arg7;
5772 }
5773 {
5774 if (temp10)
5775 delete arg10;
5776 }
5777 return resultobj;
5778fail:
5779 {
5780 if (temp4)
5781 delete arg4;
5782 }
5783 {
5784 if (temp7) delete arg7;
5785 }
5786 {
5787 if (temp10)
5788 delete arg10;
5789 }
5790 return NULL;
d14a1e28
RD
5791}
5792
5793
0085ce49
RD
5794SWIGINTERN PyObject *_wrap_ComboBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5795 PyObject *resultobj = 0;
5796 wxComboBox *arg1 = (wxComboBox *) 0 ;
5797 wxString result;
5798 void *argp1 = 0 ;
5799 int res1 = 0 ;
5800 PyObject *swig_obj[1] ;
5801
5802 if (!args) SWIG_fail;
5803 swig_obj[0] = args;
5804 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5805 if (!SWIG_IsOK(res1)) {
5806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetValue" "', expected argument " "1"" of type '" "wxComboBox const *""'");
5807 }
5808 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5809 {
5810 PyThreadState* __tstate = wxPyBeginAllowThreads();
5811 result = ((wxComboBox const *)arg1)->GetValue();
5812 wxPyEndAllowThreads(__tstate);
5813 if (PyErr_Occurred()) SWIG_fail;
5814 }
5815 {
d14a1e28 5816#if wxUSE_UNICODE
0085ce49 5817 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d14a1e28 5818#else
0085ce49 5819 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d14a1e28 5820#endif
0085ce49
RD
5821 }
5822 return resultobj;
5823fail:
5824 return NULL;
5825}
5826
5827
5828SWIGINTERN PyObject *_wrap_ComboBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5829 PyObject *resultobj = 0;
5830 wxComboBox *arg1 = (wxComboBox *) 0 ;
5831 wxString *arg2 = 0 ;
5832 void *argp1 = 0 ;
5833 int res1 = 0 ;
5834 bool temp2 = false ;
5835 PyObject * obj0 = 0 ;
5836 PyObject * obj1 = 0 ;
5837 char * kwnames[] = {
5838 (char *) "self",(char *) "value", NULL
5839 };
5840
5841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
5842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5843 if (!SWIG_IsOK(res1)) {
5844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetValue" "', expected argument " "1"" of type '" "wxComboBox *""'");
5845 }
5846 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5847 {
5848 arg2 = wxString_in_helper(obj1);
5849 if (arg2 == NULL) SWIG_fail;
5850 temp2 = true;
5851 }
5852 {
5853 PyThreadState* __tstate = wxPyBeginAllowThreads();
5854 (arg1)->SetValue((wxString const &)*arg2);
5855 wxPyEndAllowThreads(__tstate);
5856 if (PyErr_Occurred()) SWIG_fail;
5857 }
5858 resultobj = SWIG_Py_Void();
5859 {
5860 if (temp2)
5861 delete arg2;
5862 }
5863 return resultobj;
5864fail:
5865 {
5866 if (temp2)
5867 delete arg2;
5868 }
5869 return NULL;
d14a1e28
RD
5870}
5871
5872
0085ce49
RD
5873SWIGINTERN PyObject *_wrap_ComboBox_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5874 PyObject *resultobj = 0;
5875 wxComboBox *arg1 = (wxComboBox *) 0 ;
5876 void *argp1 = 0 ;
5877 int res1 = 0 ;
5878 PyObject *swig_obj[1] ;
5879
5880 if (!args) SWIG_fail;
5881 swig_obj[0] = args;
5882 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5883 if (!SWIG_IsOK(res1)) {
5884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Copy" "', expected argument " "1"" of type '" "wxComboBox *""'");
5885 }
5886 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5887 {
5888 PyThreadState* __tstate = wxPyBeginAllowThreads();
5889 (arg1)->Copy();
5890 wxPyEndAllowThreads(__tstate);
5891 if (PyErr_Occurred()) SWIG_fail;
5892 }
5893 resultobj = SWIG_Py_Void();
5894 return resultobj;
5895fail:
5896 return NULL;
d14a1e28
RD
5897}
5898
5899
0085ce49
RD
5900SWIGINTERN PyObject *_wrap_ComboBox_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5901 PyObject *resultobj = 0;
5902 wxComboBox *arg1 = (wxComboBox *) 0 ;
5903 void *argp1 = 0 ;
5904 int res1 = 0 ;
5905 PyObject *swig_obj[1] ;
5906
5907 if (!args) SWIG_fail;
5908 swig_obj[0] = args;
5909 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5910 if (!SWIG_IsOK(res1)) {
5911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Cut" "', expected argument " "1"" of type '" "wxComboBox *""'");
5912 }
5913 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5914 {
5915 PyThreadState* __tstate = wxPyBeginAllowThreads();
5916 (arg1)->Cut();
5917 wxPyEndAllowThreads(__tstate);
5918 if (PyErr_Occurred()) SWIG_fail;
5919 }
5920 resultobj = SWIG_Py_Void();
5921 return resultobj;
5922fail:
5923 return NULL;
d14a1e28
RD
5924}
5925
5926
0085ce49
RD
5927SWIGINTERN PyObject *_wrap_ComboBox_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5928 PyObject *resultobj = 0;
5929 wxComboBox *arg1 = (wxComboBox *) 0 ;
5930 void *argp1 = 0 ;
5931 int res1 = 0 ;
5932 PyObject *swig_obj[1] ;
5933
5934 if (!args) SWIG_fail;
5935 swig_obj[0] = args;
5936 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5937 if (!SWIG_IsOK(res1)) {
5938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Paste" "', expected argument " "1"" of type '" "wxComboBox *""'");
5939 }
5940 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5941 {
5942 PyThreadState* __tstate = wxPyBeginAllowThreads();
5943 (arg1)->Paste();
5944 wxPyEndAllowThreads(__tstate);
5945 if (PyErr_Occurred()) SWIG_fail;
5946 }
5947 resultobj = SWIG_Py_Void();
5948 return resultobj;
5949fail:
5950 return NULL;
5951}
5952
5953
5954SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5955 PyObject *resultobj = 0;
5956 wxComboBox *arg1 = (wxComboBox *) 0 ;
5957 long arg2 ;
5958 void *argp1 = 0 ;
5959 int res1 = 0 ;
5960 long val2 ;
5961 int ecode2 = 0 ;
5962 PyObject * obj0 = 0 ;
5963 PyObject * obj1 = 0 ;
5964 char * kwnames[] = {
5965 (char *) "self",(char *) "pos", NULL
5966 };
5967
5968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
5969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5970 if (!SWIG_IsOK(res1)) {
5971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox *""'");
5972 }
5973 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5974 ecode2 = SWIG_AsVal_long(obj1, &val2);
5975 if (!SWIG_IsOK(ecode2)) {
5976 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
5977 }
5978 arg2 = static_cast< long >(val2);
5979 {
5980 PyThreadState* __tstate = wxPyBeginAllowThreads();
5981 (arg1)->SetInsertionPoint(arg2);
5982 wxPyEndAllowThreads(__tstate);
5983 if (PyErr_Occurred()) SWIG_fail;
5984 }
5985 resultobj = SWIG_Py_Void();
5986 return resultobj;
5987fail:
5988 return NULL;
d14a1e28
RD
5989}
5990
5991
0085ce49
RD
5992SWIGINTERN PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5993 PyObject *resultobj = 0;
5994 wxComboBox *arg1 = (wxComboBox *) 0 ;
5995 long result;
5996 void *argp1 = 0 ;
5997 int res1 = 0 ;
5998 PyObject *swig_obj[1] ;
5999
6000 if (!args) SWIG_fail;
6001 swig_obj[0] = args;
6002 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6003 if (!SWIG_IsOK(res1)) {
6004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6005 }
6006 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6007 {
6008 PyThreadState* __tstate = wxPyBeginAllowThreads();
6009 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
6010 wxPyEndAllowThreads(__tstate);
6011 if (PyErr_Occurred()) SWIG_fail;
6012 }
6013 resultobj = SWIG_From_long(static_cast< long >(result));
6014 return resultobj;
6015fail:
6016 return NULL;
d14a1e28
RD
6017}
6018
6019
0085ce49
RD
6020SWIGINTERN PyObject *_wrap_ComboBox_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6021 PyObject *resultobj = 0;
6022 wxComboBox *arg1 = (wxComboBox *) 0 ;
6023 long result;
6024 void *argp1 = 0 ;
6025 int res1 = 0 ;
6026 PyObject *swig_obj[1] ;
6027
6028 if (!args) SWIG_fail;
6029 swig_obj[0] = args;
6030 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6031 if (!SWIG_IsOK(res1)) {
6032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetLastPosition" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6033 }
6034 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6035 {
6036 PyThreadState* __tstate = wxPyBeginAllowThreads();
6037 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
6038 wxPyEndAllowThreads(__tstate);
6039 if (PyErr_Occurred()) SWIG_fail;
6040 }
6041 resultobj = SWIG_From_long(static_cast< long >(result));
6042 return resultobj;
6043fail:
6044 return NULL;
6045}
6046
6047
6048SWIGINTERN PyObject *_wrap_ComboBox_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6049 PyObject *resultobj = 0;
6050 wxComboBox *arg1 = (wxComboBox *) 0 ;
6051 long arg2 ;
6052 long arg3 ;
6053 wxString *arg4 = 0 ;
6054 void *argp1 = 0 ;
6055 int res1 = 0 ;
6056 long val2 ;
6057 int ecode2 = 0 ;
6058 long val3 ;
6059 int ecode3 = 0 ;
6060 bool temp4 = false ;
6061 PyObject * obj0 = 0 ;
6062 PyObject * obj1 = 0 ;
6063 PyObject * obj2 = 0 ;
6064 PyObject * obj3 = 0 ;
6065 char * kwnames[] = {
6066 (char *) "self",(char *) "_from",(char *) "to",(char *) "value", NULL
6067 };
6068
6069 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6070 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6071 if (!SWIG_IsOK(res1)) {
6072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Replace" "', expected argument " "1"" of type '" "wxComboBox *""'");
6073 }
6074 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6075 ecode2 = SWIG_AsVal_long(obj1, &val2);
6076 if (!SWIG_IsOK(ecode2)) {
6077 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Replace" "', expected argument " "2"" of type '" "long""'");
6078 }
6079 arg2 = static_cast< long >(val2);
6080 ecode3 = SWIG_AsVal_long(obj2, &val3);
6081 if (!SWIG_IsOK(ecode3)) {
6082 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Replace" "', expected argument " "3"" of type '" "long""'");
6083 }
6084 arg3 = static_cast< long >(val3);
6085 {
6086 arg4 = wxString_in_helper(obj3);
6087 if (arg4 == NULL) SWIG_fail;
6088 temp4 = true;
6089 }
6090 {
6091 PyThreadState* __tstate = wxPyBeginAllowThreads();
6092 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
6093 wxPyEndAllowThreads(__tstate);
6094 if (PyErr_Occurred()) SWIG_fail;
6095 }
6096 resultobj = SWIG_Py_Void();
6097 {
6098 if (temp4)
6099 delete arg4;
6100 }
6101 return resultobj;
6102fail:
6103 {
6104 if (temp4)
6105 delete arg4;
6106 }
6107 return NULL;
6108}
6109
6110
6111SWIGINTERN PyObject *_wrap_ComboBox_SetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6112 PyObject *resultobj = 0;
6113 wxComboBox *arg1 = (wxComboBox *) 0 ;
6114 long arg2 ;
6115 long arg3 ;
6116 void *argp1 = 0 ;
6117 int res1 = 0 ;
6118 long val2 ;
6119 int ecode2 = 0 ;
6120 long val3 ;
6121 int ecode3 = 0 ;
6122 PyObject * obj0 = 0 ;
6123 PyObject * obj1 = 0 ;
6124 PyObject * obj2 = 0 ;
6125 char * kwnames[] = {
6126 (char *) "self",(char *) "_from",(char *) "to", NULL
6127 };
6128
6129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6131 if (!SWIG_IsOK(res1)) {
6132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6133 }
6134 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6135 ecode2 = SWIG_AsVal_long(obj1, &val2);
6136 if (!SWIG_IsOK(ecode2)) {
6137 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetMark" "', expected argument " "2"" of type '" "long""'");
6138 }
6139 arg2 = static_cast< long >(val2);
6140 ecode3 = SWIG_AsVal_long(obj2, &val3);
6141 if (!SWIG_IsOK(ecode3)) {
6142 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_SetMark" "', expected argument " "3"" of type '" "long""'");
6143 }
6144 arg3 = static_cast< long >(val3);
6145 {
6146 PyThreadState* __tstate = wxPyBeginAllowThreads();
6147 (arg1)->SetSelection(arg2,arg3);
6148 wxPyEndAllowThreads(__tstate);
6149 if (PyErr_Occurred()) SWIG_fail;
6150 }
6151 resultobj = SWIG_Py_Void();
6152 return resultobj;
6153fail:
6154 return NULL;
6155}
6156
6157
6158SWIGINTERN PyObject *_wrap_ComboBox_GetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6159 PyObject *resultobj = 0;
6160 wxComboBox *arg1 = (wxComboBox *) 0 ;
6161 long *arg2 = (long *) 0 ;
6162 long *arg3 = (long *) 0 ;
6163 void *argp1 = 0 ;
6164 int res1 = 0 ;
6165 long temp2 ;
6166 int res2 = SWIG_TMPOBJ ;
6167 long temp3 ;
6168 int res3 = SWIG_TMPOBJ ;
6169 PyObject *swig_obj[1] ;
6170
6171 arg2 = &temp2;
6172 arg3 = &temp3;
6173 if (!args) SWIG_fail;
6174 swig_obj[0] = args;
6175 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6176 if (!SWIG_IsOK(res1)) {
6177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6178 }
6179 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6180 {
6181 PyThreadState* __tstate = wxPyBeginAllowThreads();
6182 (arg1)->GetSelection(arg2,arg3);
6183 wxPyEndAllowThreads(__tstate);
6184 if (PyErr_Occurred()) SWIG_fail;
6185 }
6186 resultobj = SWIG_Py_Void();
6187 if (SWIG_IsTmpObj(res2)) {
6188 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
6189 } else {
6190 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6191 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
6192 }
6193 if (SWIG_IsTmpObj(res3)) {
6194 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
6195 } else {
6196 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6197 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
6198 }
6199 return resultobj;
6200fail:
6201 return NULL;
d14a1e28
RD
6202}
6203
6204
0085ce49
RD
6205SWIGINTERN PyObject *_wrap_ComboBox_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6206 PyObject *resultobj = 0;
6207 wxComboBox *arg1 = (wxComboBox *) 0 ;
6208 int result;
6209 void *argp1 = 0 ;
6210 int res1 = 0 ;
6211 PyObject *swig_obj[1] ;
6212
6213 if (!args) SWIG_fail;
6214 swig_obj[0] = args;
6215 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6216 if (!SWIG_IsOK(res1)) {
6217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetCurrentSelection" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6218 }
6219 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6220 {
6221 PyThreadState* __tstate = wxPyBeginAllowThreads();
6222 result = (int)((wxComboBox const *)arg1)->GetCurrentSelection();
6223 wxPyEndAllowThreads(__tstate);
6224 if (PyErr_Occurred()) SWIG_fail;
6225 }
6226 resultobj = SWIG_From_int(static_cast< int >(result));
6227 return resultobj;
6228fail:
6229 return NULL;
6230}
6231
6232
6233SWIGINTERN PyObject *_wrap_ComboBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6234 PyObject *resultobj = 0;
6235 wxComboBox *arg1 = (wxComboBox *) 0 ;
6236 wxString *arg2 = 0 ;
6237 bool result;
6238 void *argp1 = 0 ;
6239 int res1 = 0 ;
6240 bool temp2 = false ;
6241 PyObject * obj0 = 0 ;
6242 PyObject * obj1 = 0 ;
6243 char * kwnames[] = {
6244 (char *) "self",(char *) "string", NULL
6245 };
6246
6247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
6248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6249 if (!SWIG_IsOK(res1)) {
6250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetStringSelection" "', expected argument " "1"" of type '" "wxComboBox *""'");
6251 }
6252 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6253 {
6254 arg2 = wxString_in_helper(obj1);
6255 if (arg2 == NULL) SWIG_fail;
6256 temp2 = true;
6257 }
6258 {
6259 PyThreadState* __tstate = wxPyBeginAllowThreads();
6260 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
6261 wxPyEndAllowThreads(__tstate);
6262 if (PyErr_Occurred()) SWIG_fail;
6263 }
6264 {
6265 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6266 }
6267 {
6268 if (temp2)
6269 delete arg2;
6270 }
6271 return resultobj;
6272fail:
6273 {
6274 if (temp2)
6275 delete arg2;
6276 }
6277 return NULL;
6278}
6279
6280
50f151d7
RD
6281SWIGINTERN PyObject *_wrap_ComboBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6282 PyObject *resultobj = 0;
6283 wxComboBox *arg1 = (wxComboBox *) 0 ;
6284 int arg2 ;
6285 wxString *arg3 = 0 ;
6286 void *argp1 = 0 ;
6287 int res1 = 0 ;
6288 int val2 ;
6289 int ecode2 = 0 ;
6290 bool temp3 = false ;
6291 PyObject * obj0 = 0 ;
6292 PyObject * obj1 = 0 ;
6293 PyObject * obj2 = 0 ;
6294 char * kwnames[] = {
6295 (char *) "self",(char *) "n",(char *) "string", NULL
6296 };
6297
6298 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6299 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6300 if (!SWIG_IsOK(res1)) {
6301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetString" "', expected argument " "1"" of type '" "wxComboBox *""'");
6302 }
6303 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6304 ecode2 = SWIG_AsVal_int(obj1, &val2);
6305 if (!SWIG_IsOK(ecode2)) {
6306 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetString" "', expected argument " "2"" of type '" "int""'");
6307 }
6308 arg2 = static_cast< int >(val2);
6309 {
6310 arg3 = wxString_in_helper(obj2);
6311 if (arg3 == NULL) SWIG_fail;
6312 temp3 = true;
6313 }
6314 {
6315 PyThreadState* __tstate = wxPyBeginAllowThreads();
6316 (arg1)->SetString(arg2,(wxString const &)*arg3);
6317 wxPyEndAllowThreads(__tstate);
6318 if (PyErr_Occurred()) SWIG_fail;
6319 }
6320 resultobj = SWIG_Py_Void();
6321 {
6322 if (temp3)
6323 delete arg3;
6324 }
6325 return resultobj;
6326fail:
6327 {
6328 if (temp3)
6329 delete arg3;
6330 }
6331 return NULL;
6332}
6333
6334
0085ce49
RD
6335SWIGINTERN PyObject *_wrap_ComboBox_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6336 PyObject *resultobj = 0;
6337 wxComboBox *arg1 = (wxComboBox *) 0 ;
6338 bool arg2 ;
6339 void *argp1 = 0 ;
6340 int res1 = 0 ;
6341 bool val2 ;
6342 int ecode2 = 0 ;
6343 PyObject * obj0 = 0 ;
6344 PyObject * obj1 = 0 ;
6345 char * kwnames[] = {
6346 (char *) "self",(char *) "editable", NULL
6347 };
6348
6349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
6350 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6351 if (!SWIG_IsOK(res1)) {
6352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetEditable" "', expected argument " "1"" of type '" "wxComboBox *""'");
6353 }
6354 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6355 ecode2 = SWIG_AsVal_bool(obj1, &val2);
6356 if (!SWIG_IsOK(ecode2)) {
6357 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetEditable" "', expected argument " "2"" of type '" "bool""'");
6358 }
6359 arg2 = static_cast< bool >(val2);
6360 {
6361 PyThreadState* __tstate = wxPyBeginAllowThreads();
6362 (arg1)->SetEditable(arg2);
6363 wxPyEndAllowThreads(__tstate);
6364 if (PyErr_Occurred()) SWIG_fail;
6365 }
6366 resultobj = SWIG_Py_Void();
6367 return resultobj;
6368fail:
6369 return NULL;
d14a1e28
RD
6370}
6371
6372
0085ce49
RD
6373SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6374 PyObject *resultobj = 0;
6375 wxComboBox *arg1 = (wxComboBox *) 0 ;
6376 void *argp1 = 0 ;
6377 int res1 = 0 ;
6378 PyObject *swig_obj[1] ;
6379
6380 if (!args) SWIG_fail;
6381 swig_obj[0] = args;
6382 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6383 if (!SWIG_IsOK(res1)) {
6384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxComboBox *""'");
6385 }
6386 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6387 {
6388 PyThreadState* __tstate = wxPyBeginAllowThreads();
6389 (arg1)->SetInsertionPointEnd();
6390 wxPyEndAllowThreads(__tstate);
6391 if (PyErr_Occurred()) SWIG_fail;
6392 }
6393 resultobj = SWIG_Py_Void();
6394 return resultobj;
6395fail:
6396 return NULL;
6397}
6398
6399
6400SWIGINTERN PyObject *_wrap_ComboBox_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6401 PyObject *resultobj = 0;
6402 wxComboBox *arg1 = (wxComboBox *) 0 ;
6403 long arg2 ;
6404 long arg3 ;
6405 void *argp1 = 0 ;
6406 int res1 = 0 ;
6407 long val2 ;
6408 int ecode2 = 0 ;
6409 long val3 ;
6410 int ecode3 = 0 ;
6411 PyObject * obj0 = 0 ;
6412 PyObject * obj1 = 0 ;
6413 PyObject * obj2 = 0 ;
6414 char * kwnames[] = {
6415 (char *) "self",(char *) "_from",(char *) "to", NULL
6416 };
6417
6418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6420 if (!SWIG_IsOK(res1)) {
6421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Remove" "', expected argument " "1"" of type '" "wxComboBox *""'");
6422 }
6423 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6424 ecode2 = SWIG_AsVal_long(obj1, &val2);
6425 if (!SWIG_IsOK(ecode2)) {
6426 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Remove" "', expected argument " "2"" of type '" "long""'");
6427 }
6428 arg2 = static_cast< long >(val2);
6429 ecode3 = SWIG_AsVal_long(obj2, &val3);
6430 if (!SWIG_IsOK(ecode3)) {
6431 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Remove" "', expected argument " "3"" of type '" "long""'");
6432 }
6433 arg3 = static_cast< long >(val3);
6434 {
6435 PyThreadState* __tstate = wxPyBeginAllowThreads();
6436 (arg1)->Remove(arg2,arg3);
6437 wxPyEndAllowThreads(__tstate);
6438 if (PyErr_Occurred()) SWIG_fail;
6439 }
6440 resultobj = SWIG_Py_Void();
6441 return resultobj;
6442fail:
6443 return NULL;
d14a1e28
RD
6444}
6445
6446
0085ce49
RD
6447SWIGINTERN PyObject *_wrap_ComboBox_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6448 PyObject *resultobj = 0;
6449 wxComboBox *arg1 = (wxComboBox *) 0 ;
6450 bool result;
6451 void *argp1 = 0 ;
6452 int res1 = 0 ;
6453 PyObject *swig_obj[1] ;
6454
6455 if (!args) SWIG_fail;
6456 swig_obj[0] = args;
6457 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6458 if (!SWIG_IsOK(res1)) {
6459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_IsEditable" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6460 }
6461 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6462 {
6463 PyThreadState* __tstate = wxPyBeginAllowThreads();
6464 result = (bool)((wxComboBox const *)arg1)->IsEditable();
6465 wxPyEndAllowThreads(__tstate);
6466 if (PyErr_Occurred()) SWIG_fail;
6467 }
6468 {
6469 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6470 }
6471 return resultobj;
6472fail:
6473 return NULL;
d14a1e28
RD
6474}
6475
6476
0085ce49
RD
6477SWIGINTERN PyObject *_wrap_ComboBox_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6478 PyObject *resultobj = 0;
6479 wxComboBox *arg1 = (wxComboBox *) 0 ;
6480 void *argp1 = 0 ;
6481 int res1 = 0 ;
6482 PyObject *swig_obj[1] ;
6483
6484 if (!args) SWIG_fail;
6485 swig_obj[0] = args;
6486 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6487 if (!SWIG_IsOK(res1)) {
6488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Undo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6489 }
6490 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6491 {
6492 PyThreadState* __tstate = wxPyBeginAllowThreads();
6493 (arg1)->Undo();
6494 wxPyEndAllowThreads(__tstate);
6495 if (PyErr_Occurred()) SWIG_fail;
6496 }
6497 resultobj = SWIG_Py_Void();
6498 return resultobj;
6499fail:
6500 return NULL;
fd3f2efe
RD
6501}
6502
6503
0085ce49
RD
6504SWIGINTERN PyObject *_wrap_ComboBox_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6505 PyObject *resultobj = 0;
6506 wxComboBox *arg1 = (wxComboBox *) 0 ;
6507 void *argp1 = 0 ;
6508 int res1 = 0 ;
6509 PyObject *swig_obj[1] ;
6510
6511 if (!args) SWIG_fail;
6512 swig_obj[0] = args;
6513 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6514 if (!SWIG_IsOK(res1)) {
6515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Redo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6516 }
6517 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6518 {
6519 PyThreadState* __tstate = wxPyBeginAllowThreads();
6520 (arg1)->Redo();
6521 wxPyEndAllowThreads(__tstate);
6522 if (PyErr_Occurred()) SWIG_fail;
6523 }
6524 resultobj = SWIG_Py_Void();
6525 return resultobj;
6526fail:
6527 return NULL;
d14a1e28
RD
6528}
6529
6530
0085ce49
RD
6531SWIGINTERN PyObject *_wrap_ComboBox_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6532 PyObject *resultobj = 0;
6533 wxComboBox *arg1 = (wxComboBox *) 0 ;
6534 void *argp1 = 0 ;
6535 int res1 = 0 ;
6536 PyObject *swig_obj[1] ;
6537
6538 if (!args) SWIG_fail;
6539 swig_obj[0] = args;
6540 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6541 if (!SWIG_IsOK(res1)) {
6542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SelectAll" "', expected argument " "1"" of type '" "wxComboBox *""'");
6543 }
6544 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6545 {
6546 PyThreadState* __tstate = wxPyBeginAllowThreads();
6547 (arg1)->SelectAll();
6548 wxPyEndAllowThreads(__tstate);
6549 if (PyErr_Occurred()) SWIG_fail;
6550 }
6551 resultobj = SWIG_Py_Void();
6552 return resultobj;
6553fail:
6554 return NULL;
b9d6a5f3
RD
6555}
6556
6557
0085ce49
RD
6558SWIGINTERN PyObject *_wrap_ComboBox_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6559 PyObject *resultobj = 0;
6560 wxComboBox *arg1 = (wxComboBox *) 0 ;
6561 bool result;
6562 void *argp1 = 0 ;
6563 int res1 = 0 ;
6564 PyObject *swig_obj[1] ;
6565
6566 if (!args) SWIG_fail;
6567 swig_obj[0] = args;
6568 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6569 if (!SWIG_IsOK(res1)) {
6570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCopy" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6571 }
6572 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6573 {
6574 PyThreadState* __tstate = wxPyBeginAllowThreads();
6575 result = (bool)((wxComboBox const *)arg1)->CanCopy();
6576 wxPyEndAllowThreads(__tstate);
6577 if (PyErr_Occurred()) SWIG_fail;
6578 }
6579 {
6580 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6581 }
6582 return resultobj;
6583fail:
6584 return NULL;
943e8dfd
RD
6585}
6586
6587
0085ce49
RD
6588SWIGINTERN PyObject *_wrap_ComboBox_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6589 PyObject *resultobj = 0;
6590 wxComboBox *arg1 = (wxComboBox *) 0 ;
6591 bool result;
6592 void *argp1 = 0 ;
6593 int res1 = 0 ;
6594 PyObject *swig_obj[1] ;
6595
6596 if (!args) SWIG_fail;
6597 swig_obj[0] = args;
6598 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6599 if (!SWIG_IsOK(res1)) {
6600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCut" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6601 }
6602 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6603 {
6604 PyThreadState* __tstate = wxPyBeginAllowThreads();
6605 result = (bool)((wxComboBox const *)arg1)->CanCut();
6606 wxPyEndAllowThreads(__tstate);
6607 if (PyErr_Occurred()) SWIG_fail;
6608 }
6609 {
6610 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6611 }
6612 return resultobj;
6613fail:
6614 return NULL;
121b9a67
RD
6615}
6616
6617
0085ce49
RD
6618SWIGINTERN PyObject *_wrap_ComboBox_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6619 PyObject *resultobj = 0;
6620 wxComboBox *arg1 = (wxComboBox *) 0 ;
6621 bool result;
6622 void *argp1 = 0 ;
6623 int res1 = 0 ;
6624 PyObject *swig_obj[1] ;
6625
6626 if (!args) SWIG_fail;
6627 swig_obj[0] = args;
6628 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6629 if (!SWIG_IsOK(res1)) {
6630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanPaste" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6631 }
6632 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6633 {
6634 PyThreadState* __tstate = wxPyBeginAllowThreads();
6635 result = (bool)((wxComboBox const *)arg1)->CanPaste();
6636 wxPyEndAllowThreads(__tstate);
6637 if (PyErr_Occurred()) SWIG_fail;
6638 }
6639 {
6640 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6641 }
6642 return resultobj;
6643fail:
6644 return NULL;
121b9a67
RD
6645}
6646
6647
0085ce49
RD
6648SWIGINTERN PyObject *_wrap_ComboBox_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6649 PyObject *resultobj = 0;
6650 wxComboBox *arg1 = (wxComboBox *) 0 ;
6651 bool result;
6652 void *argp1 = 0 ;
6653 int res1 = 0 ;
6654 PyObject *swig_obj[1] ;
6655
6656 if (!args) SWIG_fail;
6657 swig_obj[0] = args;
6658 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6659 if (!SWIG_IsOK(res1)) {
6660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanUndo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6661 }
6662 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6663 {
6664 PyThreadState* __tstate = wxPyBeginAllowThreads();
6665 result = (bool)((wxComboBox const *)arg1)->CanUndo();
6666 wxPyEndAllowThreads(__tstate);
6667 if (PyErr_Occurred()) SWIG_fail;
6668 }
6669 {
6670 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6671 }
6672 return resultobj;
6673fail:
6674 return NULL;
d14a1e28
RD
6675}
6676
6677
0085ce49
RD
6678SWIGINTERN PyObject *_wrap_ComboBox_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6679 PyObject *resultobj = 0;
6680 wxComboBox *arg1 = (wxComboBox *) 0 ;
6681 bool result;
6682 void *argp1 = 0 ;
6683 int res1 = 0 ;
6684 PyObject *swig_obj[1] ;
6685
6686 if (!args) SWIG_fail;
6687 swig_obj[0] = args;
6688 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6689 if (!SWIG_IsOK(res1)) {
6690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanRedo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6691 }
6692 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6693 {
6694 PyThreadState* __tstate = wxPyBeginAllowThreads();
6695 result = (bool)((wxComboBox const *)arg1)->CanRedo();
6696 wxPyEndAllowThreads(__tstate);
6697 if (PyErr_Occurred()) SWIG_fail;
6698 }
6699 {
6700 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6701 }
6702 return resultobj;
6703fail:
6704 return NULL;
d14a1e28
RD
6705}
6706
6707
0085ce49
RD
6708SWIGINTERN PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6709 PyObject *resultobj = 0;
6710 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
6711 SwigValueWrapper<wxVisualAttributes > result;
6712 int val1 ;
6713 int ecode1 = 0 ;
6714 PyObject * obj0 = 0 ;
6715 char * kwnames[] = {
6716 (char *) "variant", NULL
6717 };
6718
6719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
6720 if (obj0) {
6721 ecode1 = SWIG_AsVal_int(obj0, &val1);
6722 if (!SWIG_IsOK(ecode1)) {
6723 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ComboBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
6724 }
6725 arg1 = static_cast< wxWindowVariant >(val1);
6726 }
6727 {
6728 if (!wxPyCheckForApp()) SWIG_fail;
6729 PyThreadState* __tstate = wxPyBeginAllowThreads();
6730 result = wxComboBox::GetClassDefaultAttributes(arg1);
6731 wxPyEndAllowThreads(__tstate);
6732 if (PyErr_Occurred()) SWIG_fail;
6733 }
6734 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
6735 return resultobj;
6736fail:
6737 return NULL;
d14a1e28
RD
6738}
6739
6740
0085ce49
RD
6741SWIGINTERN PyObject *ComboBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6742 PyObject *obj;
6743 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6744 SWIG_TypeNewClientData(SWIGTYPE_p_wxComboBox, SWIG_NewClientData(obj));
6745 return SWIG_Py_Void();
5cbf236d
RD
6746}
6747
0085ce49
RD
6748SWIGINTERN PyObject *ComboBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6749 return SWIG_Python_InitShadowInstance(args);
6750}
5cbf236d 6751
0085ce49
RD
6752SWIGINTERN int GaugeNameStr_set(PyObject *) {
6753 SWIG_Error(SWIG_AttributeError,"Variable GaugeNameStr is read-only.");
6754 return 1;
5cbf236d
RD
6755}
6756
6757
0085ce49
RD
6758SWIGINTERN PyObject *GaugeNameStr_get(void) {
6759 PyObject *pyobj = 0;
6760
6761 {
6762#if wxUSE_UNICODE
6763 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6764#else
6765 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6766#endif
6767 }
6768 return pyobj;
6769}
6770
6771
6772SWIGINTERN PyObject *_wrap_new_Gauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6773 PyObject *resultobj = 0;
6774 wxWindow *arg1 = (wxWindow *) 0 ;
6775 int arg2 = (int) -1 ;
6776 int arg3 = (int) 100 ;
6777 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6778 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6779 wxSize const &arg5_defvalue = wxDefaultSize ;
6780 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6781 long arg6 = (long) wxGA_HORIZONTAL ;
6782 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6783 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6784 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
6785 wxString *arg8 = (wxString *) &arg8_defvalue ;
6786 wxGauge *result = 0 ;
6787 void *argp1 = 0 ;
6788 int res1 = 0 ;
6789 int val2 ;
6790 int ecode2 = 0 ;
6791 int val3 ;
6792 int ecode3 = 0 ;
6793 wxPoint temp4 ;
6794 wxSize temp5 ;
6795 long val6 ;
6796 int ecode6 = 0 ;
6797 void *argp7 = 0 ;
6798 int res7 = 0 ;
6799 bool temp8 = false ;
6800 PyObject * obj0 = 0 ;
6801 PyObject * obj1 = 0 ;
6802 PyObject * obj2 = 0 ;
6803 PyObject * obj3 = 0 ;
6804 PyObject * obj4 = 0 ;
6805 PyObject * obj5 = 0 ;
6806 PyObject * obj6 = 0 ;
6807 PyObject * obj7 = 0 ;
6808 char * kwnames[] = {
6809 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6810 };
6811
6812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
6813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
6814 if (!SWIG_IsOK(res1)) {
6815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gauge" "', expected argument " "1"" of type '" "wxWindow *""'");
6816 }
6817 arg1 = reinterpret_cast< wxWindow * >(argp1);
6818 if (obj1) {
6819 ecode2 = SWIG_AsVal_int(obj1, &val2);
6820 if (!SWIG_IsOK(ecode2)) {
6821 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gauge" "', expected argument " "2"" of type '" "int""'");
6822 }
6823 arg2 = static_cast< int >(val2);
6824 }
6825 if (obj2) {
6826 ecode3 = SWIG_AsVal_int(obj2, &val3);
6827 if (!SWIG_IsOK(ecode3)) {
6828 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gauge" "', expected argument " "3"" of type '" "int""'");
6829 }
6830 arg3 = static_cast< int >(val3);
6831 }
6832 if (obj3) {
5cbf236d 6833 {
0085ce49
RD
6834 arg4 = &temp4;
6835 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5cbf236d 6836 }
0085ce49
RD
6837 }
6838 if (obj4) {
5cbf236d 6839 {
0085ce49
RD
6840 arg5 = &temp5;
6841 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5cbf236d 6842 }
0085ce49
RD
6843 }
6844 if (obj5) {
6845 ecode6 = SWIG_AsVal_long(obj5, &val6);
6846 if (!SWIG_IsOK(ecode6)) {
6847 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Gauge" "', expected argument " "6"" of type '" "long""'");
6848 }
6849 arg6 = static_cast< long >(val6);
6850 }
6851 if (obj6) {
6852 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
6853 if (!SWIG_IsOK(res7)) {
6854 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6855 }
6856 if (!argp7) {
6857 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
5cbf236d 6858 }
0085ce49
RD
6859 arg7 = reinterpret_cast< wxValidator * >(argp7);
6860 }
6861 if (obj7) {
5cbf236d 6862 {
0085ce49
RD
6863 arg8 = wxString_in_helper(obj7);
6864 if (arg8 == NULL) SWIG_fail;
6865 temp8 = true;
5cbf236d 6866 }
0085ce49
RD
6867 }
6868 {
6869 if (!wxPyCheckForApp()) SWIG_fail;
6870 PyThreadState* __tstate = wxPyBeginAllowThreads();
6871 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6872 wxPyEndAllowThreads(__tstate);
6873 if (PyErr_Occurred()) SWIG_fail;
6874 }
6875 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_NEW | 0 );
6876 {
6877 if (temp8)
6878 delete arg8;
6879 }
6880 return resultobj;
6881fail:
6882 {
6883 if (temp8)
6884 delete arg8;
6885 }
6886 return NULL;
5cbf236d
RD
6887}
6888
6889
0085ce49
RD
6890SWIGINTERN PyObject *_wrap_new_PreGauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6891 PyObject *resultobj = 0;
6892 wxGauge *result = 0 ;
6893
6894 if (!SWIG_Python_UnpackTuple(args,"new_PreGauge",0,0,0)) SWIG_fail;
6895 {
6896 if (!wxPyCheckForApp()) SWIG_fail;
6897 PyThreadState* __tstate = wxPyBeginAllowThreads();
6898 result = (wxGauge *)new wxGauge();
6899 wxPyEndAllowThreads(__tstate);
6900 if (PyErr_Occurred()) SWIG_fail;
6901 }
6902 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_OWN | 0 );
6903 return resultobj;
6904fail:
6905 return NULL;
6906}
6907
6908
6909SWIGINTERN PyObject *_wrap_Gauge_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6910 PyObject *resultobj = 0;
6911 wxGauge *arg1 = (wxGauge *) 0 ;
6912 wxWindow *arg2 = (wxWindow *) 0 ;
6913 int arg3 = (int) -1 ;
6914 int arg4 = (int) 100 ;
6915 wxPoint const &arg5_defvalue = wxDefaultPosition ;
6916 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
6917 wxSize const &arg6_defvalue = wxDefaultSize ;
6918 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
6919 long arg7 = (long) wxGA_HORIZONTAL ;
6920 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6921 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6922 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
6923 wxString *arg9 = (wxString *) &arg9_defvalue ;
6924 bool result;
6925 void *argp1 = 0 ;
6926 int res1 = 0 ;
6927 void *argp2 = 0 ;
6928 int res2 = 0 ;
6929 int val3 ;
6930 int ecode3 = 0 ;
6931 int val4 ;
6932 int ecode4 = 0 ;
6933 wxPoint temp5 ;
6934 wxSize temp6 ;
6935 long val7 ;
6936 int ecode7 = 0 ;
6937 void *argp8 = 0 ;
6938 int res8 = 0 ;
6939 bool temp9 = false ;
6940 PyObject * obj0 = 0 ;
6941 PyObject * obj1 = 0 ;
6942 PyObject * obj2 = 0 ;
6943 PyObject * obj3 = 0 ;
6944 PyObject * obj4 = 0 ;
6945 PyObject * obj5 = 0 ;
6946 PyObject * obj6 = 0 ;
6947 PyObject * obj7 = 0 ;
6948 PyObject * obj8 = 0 ;
6949 char * kwnames[] = {
6950 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6951 };
6952
6953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
6954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
6955 if (!SWIG_IsOK(res1)) {
6956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Create" "', expected argument " "1"" of type '" "wxGauge *""'");
6957 }
6958 arg1 = reinterpret_cast< wxGauge * >(argp1);
6959 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
6960 if (!SWIG_IsOK(res2)) {
6961 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gauge_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
6962 }
6963 arg2 = reinterpret_cast< wxWindow * >(argp2);
6964 if (obj2) {
6965 ecode3 = SWIG_AsVal_int(obj2, &val3);
6966 if (!SWIG_IsOK(ecode3)) {
6967 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Gauge_Create" "', expected argument " "3"" of type '" "int""'");
6968 }
6969 arg3 = static_cast< int >(val3);
6970 }
6971 if (obj3) {
6972 ecode4 = SWIG_AsVal_int(obj3, &val4);
6973 if (!SWIG_IsOK(ecode4)) {
6974 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Gauge_Create" "', expected argument " "4"" of type '" "int""'");
6975 }
6976 arg4 = static_cast< int >(val4);
6977 }
6978 if (obj4) {
5cbf236d 6979 {
0085ce49
RD
6980 arg5 = &temp5;
6981 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5cbf236d 6982 }
0085ce49
RD
6983 }
6984 if (obj5) {
5cbf236d 6985 {
0085ce49
RD
6986 arg6 = &temp6;
6987 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5cbf236d 6988 }
0085ce49
RD
6989 }
6990 if (obj6) {
6991 ecode7 = SWIG_AsVal_long(obj6, &val7);
6992 if (!SWIG_IsOK(ecode7)) {
6993 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Gauge_Create" "', expected argument " "7"" of type '" "long""'");
6994 }
6995 arg7 = static_cast< long >(val7);
6996 }
6997 if (obj7) {
6998 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
6999 if (!SWIG_IsOK(res8)) {
7000 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5cbf236d 7001 }
0085ce49
RD
7002 if (!argp8) {
7003 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
7004 }
7005 arg8 = reinterpret_cast< wxValidator * >(argp8);
7006 }
7007 if (obj8) {
5cbf236d 7008 {
0085ce49
RD
7009 arg9 = wxString_in_helper(obj8);
7010 if (arg9 == NULL) SWIG_fail;
7011 temp9 = true;
5cbf236d 7012 }
0085ce49
RD
7013 }
7014 {
7015 PyThreadState* __tstate = wxPyBeginAllowThreads();
7016 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
7017 wxPyEndAllowThreads(__tstate);
7018 if (PyErr_Occurred()) SWIG_fail;
7019 }
7020 {
7021 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7022 }
7023 {
7024 if (temp9)
7025 delete arg9;
7026 }
7027 return resultobj;
7028fail:
7029 {
7030 if (temp9)
7031 delete arg9;
7032 }
7033 return NULL;
7034}
7035
7036
7037SWIGINTERN PyObject *_wrap_Gauge_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7038 PyObject *resultobj = 0;
7039 wxGauge *arg1 = (wxGauge *) 0 ;
7040 int arg2 ;
7041 void *argp1 = 0 ;
7042 int res1 = 0 ;
7043 int val2 ;
7044 int ecode2 = 0 ;
7045 PyObject * obj0 = 0 ;
7046 PyObject * obj1 = 0 ;
7047 char * kwnames[] = {
7048 (char *) "self",(char *) "range", NULL
7049 };
7050
7051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) SWIG_fail;
7052 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7053 if (!SWIG_IsOK(res1)) {
7054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetRange" "', expected argument " "1"" of type '" "wxGauge *""'");
7055 }
7056 arg1 = reinterpret_cast< wxGauge * >(argp1);
7057 ecode2 = SWIG_AsVal_int(obj1, &val2);
7058 if (!SWIG_IsOK(ecode2)) {
7059 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetRange" "', expected argument " "2"" of type '" "int""'");
7060 }
7061 arg2 = static_cast< int >(val2);
7062 {
7063 PyThreadState* __tstate = wxPyBeginAllowThreads();
7064 (arg1)->SetRange(arg2);
7065 wxPyEndAllowThreads(__tstate);
7066 if (PyErr_Occurred()) SWIG_fail;
7067 }
7068 resultobj = SWIG_Py_Void();
7069 return resultobj;
7070fail:
7071 return NULL;
5cbf236d
RD
7072}
7073
7074
0085ce49
RD
7075SWIGINTERN PyObject *_wrap_Gauge_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7076 PyObject *resultobj = 0;
7077 wxGauge *arg1 = (wxGauge *) 0 ;
7078 int result;
7079 void *argp1 = 0 ;
7080 int res1 = 0 ;
7081 PyObject *swig_obj[1] ;
7082
7083 if (!args) SWIG_fail;
7084 swig_obj[0] = args;
7085 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7086 if (!SWIG_IsOK(res1)) {
7087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetRange" "', expected argument " "1"" of type '" "wxGauge const *""'");
7088 }
7089 arg1 = reinterpret_cast< wxGauge * >(argp1);
7090 {
7091 PyThreadState* __tstate = wxPyBeginAllowThreads();
7092 result = (int)((wxGauge const *)arg1)->GetRange();
7093 wxPyEndAllowThreads(__tstate);
7094 if (PyErr_Occurred()) SWIG_fail;
7095 }
7096 resultobj = SWIG_From_int(static_cast< int >(result));
7097 return resultobj;
7098fail:
7099 return NULL;
7100}
7101
7102
7103SWIGINTERN PyObject *_wrap_Gauge_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7104 PyObject *resultobj = 0;
7105 wxGauge *arg1 = (wxGauge *) 0 ;
7106 int arg2 ;
7107 void *argp1 = 0 ;
7108 int res1 = 0 ;
7109 int val2 ;
7110 int ecode2 = 0 ;
7111 PyObject * obj0 = 0 ;
7112 PyObject * obj1 = 0 ;
7113 char * kwnames[] = {
7114 (char *) "self",(char *) "pos", NULL
7115 };
7116
7117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
7118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7119 if (!SWIG_IsOK(res1)) {
7120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetValue" "', expected argument " "1"" of type '" "wxGauge *""'");
7121 }
7122 arg1 = reinterpret_cast< wxGauge * >(argp1);
7123 ecode2 = SWIG_AsVal_int(obj1, &val2);
7124 if (!SWIG_IsOK(ecode2)) {
7125 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetValue" "', expected argument " "2"" of type '" "int""'");
7126 }
7127 arg2 = static_cast< int >(val2);
7128 {
7129 PyThreadState* __tstate = wxPyBeginAllowThreads();
7130 (arg1)->SetValue(arg2);
7131 wxPyEndAllowThreads(__tstate);
7132 if (PyErr_Occurred()) SWIG_fail;
7133 }
7134 resultobj = SWIG_Py_Void();
7135 return resultobj;
7136fail:
7137 return NULL;
5cbf236d
RD
7138}
7139
7140
0085ce49
RD
7141SWIGINTERN PyObject *_wrap_Gauge_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7142 PyObject *resultobj = 0;
7143 wxGauge *arg1 = (wxGauge *) 0 ;
7144 int result;
7145 void *argp1 = 0 ;
7146 int res1 = 0 ;
7147 PyObject *swig_obj[1] ;
7148
7149 if (!args) SWIG_fail;
7150 swig_obj[0] = args;
7151 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7152 if (!SWIG_IsOK(res1)) {
7153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetValue" "', expected argument " "1"" of type '" "wxGauge const *""'");
7154 }
7155 arg1 = reinterpret_cast< wxGauge * >(argp1);
7156 {
7157 PyThreadState* __tstate = wxPyBeginAllowThreads();
7158 result = (int)((wxGauge const *)arg1)->GetValue();
7159 wxPyEndAllowThreads(__tstate);
7160 if (PyErr_Occurred()) SWIG_fail;
7161 }
7162 resultobj = SWIG_From_int(static_cast< int >(result));
7163 return resultobj;
7164fail:
7165 return NULL;
5cbf236d
RD
7166}
7167
7168
0085ce49
RD
7169SWIGINTERN PyObject *_wrap_Gauge_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7170 PyObject *resultobj = 0;
7171 wxGauge *arg1 = (wxGauge *) 0 ;
7172 bool result;
7173 void *argp1 = 0 ;
7174 int res1 = 0 ;
7175 PyObject *swig_obj[1] ;
7176
7177 if (!args) SWIG_fail;
7178 swig_obj[0] = args;
7179 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7180 if (!SWIG_IsOK(res1)) {
7181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_IsVertical" "', expected argument " "1"" of type '" "wxGauge const *""'");
7182 }
7183 arg1 = reinterpret_cast< wxGauge * >(argp1);
7184 {
7185 PyThreadState* __tstate = wxPyBeginAllowThreads();
7186 result = (bool)((wxGauge const *)arg1)->IsVertical();
7187 wxPyEndAllowThreads(__tstate);
7188 if (PyErr_Occurred()) SWIG_fail;
7189 }
7190 {
7191 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7192 }
7193 return resultobj;
7194fail:
7195 return NULL;
7196}
7197
7198
7199SWIGINTERN PyObject *_wrap_Gauge_SetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7200 PyObject *resultobj = 0;
7201 wxGauge *arg1 = (wxGauge *) 0 ;
7202 int arg2 ;
7203 void *argp1 = 0 ;
7204 int res1 = 0 ;
7205 int val2 ;
7206 int ecode2 = 0 ;
7207 PyObject * obj0 = 0 ;
7208 PyObject * obj1 = 0 ;
7209 char * kwnames[] = {
7210 (char *) "self",(char *) "w", NULL
7211 };
7212
7213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7215 if (!SWIG_IsOK(res1)) {
7216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetShadowWidth" "', expected argument " "1"" of type '" "wxGauge *""'");
7217 }
7218 arg1 = reinterpret_cast< wxGauge * >(argp1);
7219 ecode2 = SWIG_AsVal_int(obj1, &val2);
7220 if (!SWIG_IsOK(ecode2)) {
7221 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetShadowWidth" "', expected argument " "2"" of type '" "int""'");
7222 }
7223 arg2 = static_cast< int >(val2);
7224 {
7225 PyThreadState* __tstate = wxPyBeginAllowThreads();
7226 (arg1)->SetShadowWidth(arg2);
7227 wxPyEndAllowThreads(__tstate);
7228 if (PyErr_Occurred()) SWIG_fail;
7229 }
7230 resultobj = SWIG_Py_Void();
7231 return resultobj;
7232fail:
7233 return NULL;
22bfe96c
RD
7234}
7235
7236
0085ce49
RD
7237SWIGINTERN PyObject *_wrap_Gauge_GetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7238 PyObject *resultobj = 0;
7239 wxGauge *arg1 = (wxGauge *) 0 ;
7240 int result;
7241 void *argp1 = 0 ;
7242 int res1 = 0 ;
7243 PyObject *swig_obj[1] ;
7244
7245 if (!args) SWIG_fail;
7246 swig_obj[0] = args;
7247 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7248 if (!SWIG_IsOK(res1)) {
7249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetShadowWidth" "', expected argument " "1"" of type '" "wxGauge const *""'");
7250 }
7251 arg1 = reinterpret_cast< wxGauge * >(argp1);
7252 {
7253 PyThreadState* __tstate = wxPyBeginAllowThreads();
7254 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
7255 wxPyEndAllowThreads(__tstate);
7256 if (PyErr_Occurred()) SWIG_fail;
7257 }
7258 resultobj = SWIG_From_int(static_cast< int >(result));
7259 return resultobj;
7260fail:
7261 return NULL;
7262}
7263
7264
7265SWIGINTERN PyObject *_wrap_Gauge_SetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7266 PyObject *resultobj = 0;
7267 wxGauge *arg1 = (wxGauge *) 0 ;
7268 int arg2 ;
7269 void *argp1 = 0 ;
7270 int res1 = 0 ;
7271 int val2 ;
7272 int ecode2 = 0 ;
7273 PyObject * obj0 = 0 ;
7274 PyObject * obj1 = 0 ;
7275 char * kwnames[] = {
7276 (char *) "self",(char *) "w", NULL
7277 };
7278
7279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) SWIG_fail;
7280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7281 if (!SWIG_IsOK(res1)) {
7282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetBezelFace" "', expected argument " "1"" of type '" "wxGauge *""'");
7283 }
7284 arg1 = reinterpret_cast< wxGauge * >(argp1);
7285 ecode2 = SWIG_AsVal_int(obj1, &val2);
7286 if (!SWIG_IsOK(ecode2)) {
7287 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetBezelFace" "', expected argument " "2"" of type '" "int""'");
7288 }
7289 arg2 = static_cast< int >(val2);
7290 {
7291 PyThreadState* __tstate = wxPyBeginAllowThreads();
7292 (arg1)->SetBezelFace(arg2);
7293 wxPyEndAllowThreads(__tstate);
7294 if (PyErr_Occurred()) SWIG_fail;
7295 }
7296 resultobj = SWIG_Py_Void();
7297 return resultobj;
7298fail:
7299 return NULL;
d14a1e28 7300}
0085ce49
RD
7301
7302
7303SWIGINTERN PyObject *_wrap_Gauge_GetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7304 PyObject *resultobj = 0;
7305 wxGauge *arg1 = (wxGauge *) 0 ;
7306 int result;
7307 void *argp1 = 0 ;
7308 int res1 = 0 ;
7309 PyObject *swig_obj[1] ;
7310
7311 if (!args) SWIG_fail;
7312 swig_obj[0] = args;
7313 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7314 if (!SWIG_IsOK(res1)) {
7315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetBezelFace" "', expected argument " "1"" of type '" "wxGauge const *""'");
7316 }
7317 arg1 = reinterpret_cast< wxGauge * >(argp1);
7318 {
7319 PyThreadState* __tstate = wxPyBeginAllowThreads();
7320 result = (int)((wxGauge const *)arg1)->GetBezelFace();
7321 wxPyEndAllowThreads(__tstate);
7322 if (PyErr_Occurred()) SWIG_fail;
7323 }
7324 resultobj = SWIG_From_int(static_cast< int >(result));
7325 return resultobj;
7326fail:
7327 return NULL;
7328}
7329
7330
7331SWIGINTERN PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7332 PyObject *resultobj = 0;
7333 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7334 SwigValueWrapper<wxVisualAttributes > result;
7335 int val1 ;
7336 int ecode1 = 0 ;
7337 PyObject * obj0 = 0 ;
7338 char * kwnames[] = {
7339 (char *) "variant", NULL
7340 };
7341
7342 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7343 if (obj0) {
7344 ecode1 = SWIG_AsVal_int(obj0, &val1);
7345 if (!SWIG_IsOK(ecode1)) {
7346 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Gauge_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7347 }
7348 arg1 = static_cast< wxWindowVariant >(val1);
7349 }
7350 {
7351 if (!wxPyCheckForApp()) SWIG_fail;
7352 PyThreadState* __tstate = wxPyBeginAllowThreads();
7353 result = wxGauge::GetClassDefaultAttributes(arg1);
7354 wxPyEndAllowThreads(__tstate);
7355 if (PyErr_Occurred()) SWIG_fail;
7356 }
7357 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7358 return resultobj;
7359fail:
7360 return NULL;
b2dc1044
RD
7361}
7362
7363
0085ce49
RD
7364SWIGINTERN PyObject *Gauge_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7365 PyObject *obj;
7366 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7367 SWIG_TypeNewClientData(SWIGTYPE_p_wxGauge, SWIG_NewClientData(obj));
7368 return SWIG_Py_Void();
7369}
7370
7371SWIGINTERN PyObject *Gauge_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7372 return SWIG_Python_InitShadowInstance(args);
7373}
7374
7375SWIGINTERN int StaticBitmapNameStr_set(PyObject *) {
7376 SWIG_Error(SWIG_AttributeError,"Variable StaticBitmapNameStr is read-only.");
7377 return 1;
7378}
7379
7380
7381SWIGINTERN PyObject *StaticBitmapNameStr_get(void) {
7382 PyObject *pyobj = 0;
7383
7384 {
b2dc1044 7385#if wxUSE_UNICODE
0085ce49 7386 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
b2dc1044 7387#else
0085ce49 7388 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
b2dc1044 7389#endif
0085ce49
RD
7390 }
7391 return pyobj;
d14a1e28
RD
7392}
7393
7394
0085ce49
RD
7395SWIGINTERN int StaticBoxNameStr_set(PyObject *) {
7396 SWIG_Error(SWIG_AttributeError,"Variable StaticBoxNameStr is read-only.");
7397 return 1;
d14a1e28
RD
7398}
7399
7400
0085ce49
RD
7401SWIGINTERN PyObject *StaticBoxNameStr_get(void) {
7402 PyObject *pyobj = 0;
7403
7404 {
7405#if wxUSE_UNICODE
7406 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7407#else
7408 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7409#endif
7410 }
7411 return pyobj;
7412}
7413
7414
7415SWIGINTERN int StaticTextNameStr_set(PyObject *) {
7416 SWIG_Error(SWIG_AttributeError,"Variable StaticTextNameStr is read-only.");
7417 return 1;
7418}
7419
7420
7421SWIGINTERN PyObject *StaticTextNameStr_get(void) {
7422 PyObject *pyobj = 0;
7423
7424 {
7425#if wxUSE_UNICODE
7426 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7427#else
7428 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7429#endif
7430 }
7431 return pyobj;
7432}
7433
7434
7435SWIGINTERN PyObject *_wrap_new_StaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7436 PyObject *resultobj = 0;
7437 wxWindow *arg1 = (wxWindow *) 0 ;
7438 int arg2 = (int) -1 ;
7439 wxString const &arg3_defvalue = wxPyEmptyString ;
7440 wxString *arg3 = (wxString *) &arg3_defvalue ;
7441 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7442 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7443 wxSize const &arg5_defvalue = wxDefaultSize ;
7444 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7445 long arg6 = (long) 0 ;
7446 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
7447 wxString *arg7 = (wxString *) &arg7_defvalue ;
7448 wxStaticBox *result = 0 ;
7449 void *argp1 = 0 ;
7450 int res1 = 0 ;
7451 int val2 ;
7452 int ecode2 = 0 ;
7453 bool temp3 = false ;
7454 wxPoint temp4 ;
7455 wxSize temp5 ;
7456 long val6 ;
7457 int ecode6 = 0 ;
7458 bool temp7 = false ;
7459 PyObject * obj0 = 0 ;
7460 PyObject * obj1 = 0 ;
7461 PyObject * obj2 = 0 ;
7462 PyObject * obj3 = 0 ;
7463 PyObject * obj4 = 0 ;
7464 PyObject * obj5 = 0 ;
7465 PyObject * obj6 = 0 ;
7466 char * kwnames[] = {
7467 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7468 };
7469
7470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7471 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7472 if (!SWIG_IsOK(res1)) {
7473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBox" "', expected argument " "1"" of type '" "wxWindow *""'");
7474 }
7475 arg1 = reinterpret_cast< wxWindow * >(argp1);
7476 if (obj1) {
7477 ecode2 = SWIG_AsVal_int(obj1, &val2);
7478 if (!SWIG_IsOK(ecode2)) {
7479 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBox" "', expected argument " "2"" of type '" "int""'");
7480 }
7481 arg2 = static_cast< int >(val2);
7482 }
7483 if (obj2) {
d14a1e28 7484 {
0085ce49
RD
7485 arg3 = wxString_in_helper(obj2);
7486 if (arg3 == NULL) SWIG_fail;
7487 temp3 = true;
d14a1e28 7488 }
0085ce49
RD
7489 }
7490 if (obj3) {
4f89f6a3 7491 {
0085ce49
RD
7492 arg4 = &temp4;
7493 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 7494 }
0085ce49
RD
7495 }
7496 if (obj4) {
d14a1e28 7497 {
0085ce49
RD
7498 arg5 = &temp5;
7499 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 7500 }
0085ce49
RD
7501 }
7502 if (obj5) {
7503 ecode6 = SWIG_AsVal_long(obj5, &val6);
7504 if (!SWIG_IsOK(ecode6)) {
7505 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBox" "', expected argument " "6"" of type '" "long""'");
7506 }
7507 arg6 = static_cast< long >(val6);
7508 }
7509 if (obj6) {
d14a1e28 7510 {
0085ce49
RD
7511 arg7 = wxString_in_helper(obj6);
7512 if (arg7 == NULL) SWIG_fail;
7513 temp7 = true;
d14a1e28 7514 }
0085ce49
RD
7515 }
7516 {
7517 if (!wxPyCheckForApp()) SWIG_fail;
7518 PyThreadState* __tstate = wxPyBeginAllowThreads();
7519 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7520 wxPyEndAllowThreads(__tstate);
7521 if (PyErr_Occurred()) SWIG_fail;
7522 }
7523 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_NEW | 0 );
7524 {
7525 if (temp3)
7526 delete arg3;
7527 }
7528 {
7529 if (temp7)
7530 delete arg7;
7531 }
7532 return resultobj;
7533fail:
7534 {
7535 if (temp3)
7536 delete arg3;
7537 }
7538 {
7539 if (temp7)
7540 delete arg7;
7541 }
7542 return NULL;
d14a1e28
RD
7543}
7544
7545
0085ce49
RD
7546SWIGINTERN PyObject *_wrap_new_PreStaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7547 PyObject *resultobj = 0;
7548 wxStaticBox *result = 0 ;
7549
7550 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBox",0,0,0)) SWIG_fail;
7551 {
7552 if (!wxPyCheckForApp()) SWIG_fail;
7553 PyThreadState* __tstate = wxPyBeginAllowThreads();
7554 result = (wxStaticBox *)new wxStaticBox();
7555 wxPyEndAllowThreads(__tstate);
7556 if (PyErr_Occurred()) SWIG_fail;
7557 }
7558 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_OWN | 0 );
7559 return resultobj;
7560fail:
7561 return NULL;
7562}
7563
7564
7565SWIGINTERN PyObject *_wrap_StaticBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7566 PyObject *resultobj = 0;
7567 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
7568 wxWindow *arg2 = (wxWindow *) 0 ;
7569 int arg3 = (int) -1 ;
7570 wxString const &arg4_defvalue = wxPyEmptyString ;
7571 wxString *arg4 = (wxString *) &arg4_defvalue ;
7572 wxPoint const &arg5_defvalue = wxDefaultPosition ;
7573 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
7574 wxSize const &arg6_defvalue = wxDefaultSize ;
7575 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
7576 long arg7 = (long) 0 ;
7577 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
7578 wxString *arg8 = (wxString *) &arg8_defvalue ;
7579 bool result;
7580 void *argp1 = 0 ;
7581 int res1 = 0 ;
7582 void *argp2 = 0 ;
7583 int res2 = 0 ;
7584 int val3 ;
7585 int ecode3 = 0 ;
7586 bool temp4 = false ;
7587 wxPoint temp5 ;
7588 wxSize temp6 ;
7589 long val7 ;
7590 int ecode7 = 0 ;
7591 bool temp8 = false ;
7592 PyObject * obj0 = 0 ;
7593 PyObject * obj1 = 0 ;
7594 PyObject * obj2 = 0 ;
7595 PyObject * obj3 = 0 ;
7596 PyObject * obj4 = 0 ;
7597 PyObject * obj5 = 0 ;
7598 PyObject * obj6 = 0 ;
7599 PyObject * obj7 = 0 ;
7600 char * kwnames[] = {
7601 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7602 };
7603
7604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
7605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBox, 0 | 0 );
7606 if (!SWIG_IsOK(res1)) {
7607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBox_Create" "', expected argument " "1"" of type '" "wxStaticBox *""'");
7608 }
7609 arg1 = reinterpret_cast< wxStaticBox * >(argp1);
7610 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7611 if (!SWIG_IsOK(res2)) {
7612 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7613 }
7614 arg2 = reinterpret_cast< wxWindow * >(argp2);
7615 if (obj2) {
7616 ecode3 = SWIG_AsVal_int(obj2, &val3);
7617 if (!SWIG_IsOK(ecode3)) {
7618 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBox_Create" "', expected argument " "3"" of type '" "int""'");
7619 }
7620 arg3 = static_cast< int >(val3);
7621 }
7622 if (obj3) {
093d3ff1 7623 {
0085ce49
RD
7624 arg4 = wxString_in_helper(obj3);
7625 if (arg4 == NULL) SWIG_fail;
7626 temp4 = true;
093d3ff1 7627 }
0085ce49
RD
7628 }
7629 if (obj4) {
d14a1e28 7630 {
0085ce49
RD
7631 arg5 = &temp5;
7632 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 7633 }
0085ce49
RD
7634 }
7635 if (obj5) {
d14a1e28 7636 {
0085ce49
RD
7637 arg6 = &temp6;
7638 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d14a1e28 7639 }
0085ce49
RD
7640 }
7641 if (obj6) {
7642 ecode7 = SWIG_AsVal_long(obj6, &val7);
7643 if (!SWIG_IsOK(ecode7)) {
7644 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBox_Create" "', expected argument " "7"" of type '" "long""'");
7645 }
7646 arg7 = static_cast< long >(val7);
7647 }
7648 if (obj7) {
093d3ff1 7649 {
0085ce49
RD
7650 arg8 = wxString_in_helper(obj7);
7651 if (arg8 == NULL) SWIG_fail;
7652 temp8 = true;
093d3ff1 7653 }
0085ce49
RD
7654 }
7655 {
7656 PyThreadState* __tstate = wxPyBeginAllowThreads();
7657 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
7658 wxPyEndAllowThreads(__tstate);
7659 if (PyErr_Occurred()) SWIG_fail;
7660 }
7661 {
7662 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7663 }
7664 {
7665 if (temp4)
7666 delete arg4;
7667 }
7668 {
7669 if (temp8)
7670 delete arg8;
7671 }
7672 return resultobj;
7673fail:
7674 {
7675 if (temp4)
7676 delete arg4;
7677 }
7678 {
7679 if (temp8)
7680 delete arg8;
7681 }
7682 return NULL;
7683}
d14a1e28 7684
0085ce49
RD
7685
7686SWIGINTERN PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7687 PyObject *resultobj = 0;
7688 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7689 SwigValueWrapper<wxVisualAttributes > result;
7690 int val1 ;
7691 int ecode1 = 0 ;
7692 PyObject * obj0 = 0 ;
7693 char * kwnames[] = {
7694 (char *) "variant", NULL
7695 };
7696
7697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7698 if (obj0) {
7699 ecode1 = SWIG_AsVal_int(obj0, &val1);
7700 if (!SWIG_IsOK(ecode1)) {
7701 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7702 }
7703 arg1 = static_cast< wxWindowVariant >(val1);
7704 }
7705 {
7706 if (!wxPyCheckForApp()) SWIG_fail;
7707 PyThreadState* __tstate = wxPyBeginAllowThreads();
7708 result = wxStaticBox::GetClassDefaultAttributes(arg1);
7709 wxPyEndAllowThreads(__tstate);
7710 if (PyErr_Occurred()) SWIG_fail;
7711 }
7712 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7713 return resultobj;
7714fail:
7715 return NULL;
7716}
7717
7718
7719SWIGINTERN PyObject *StaticBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7720 PyObject *obj;
7721 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7722 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBox, SWIG_NewClientData(obj));
7723 return SWIG_Py_Void();
7724}
7725
7726SWIGINTERN PyObject *StaticBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7727 return SWIG_Python_InitShadowInstance(args);
7728}
7729
7730SWIGINTERN PyObject *_wrap_new_StaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7731 PyObject *resultobj = 0;
7732 wxWindow *arg1 = (wxWindow *) 0 ;
7733 int arg2 = (int) -1 ;
7734 wxPoint const &arg3_defvalue = wxDefaultPosition ;
7735 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
7736 wxSize const &arg4_defvalue = wxDefaultSize ;
7737 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
7738 long arg5 = (long) wxLI_HORIZONTAL ;
7739 wxString const &arg6_defvalue = wxPyStaticTextNameStr ;
7740 wxString *arg6 = (wxString *) &arg6_defvalue ;
7741 wxStaticLine *result = 0 ;
7742 void *argp1 = 0 ;
7743 int res1 = 0 ;
7744 int val2 ;
7745 int ecode2 = 0 ;
7746 wxPoint temp3 ;
7747 wxSize temp4 ;
7748 long val5 ;
7749 int ecode5 = 0 ;
7750 bool temp6 = false ;
7751 PyObject * obj0 = 0 ;
7752 PyObject * obj1 = 0 ;
7753 PyObject * obj2 = 0 ;
7754 PyObject * obj3 = 0 ;
7755 PyObject * obj4 = 0 ;
7756 PyObject * obj5 = 0 ;
7757 char * kwnames[] = {
7758 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7759 };
7760
7761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
7762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7763 if (!SWIG_IsOK(res1)) {
7764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticLine" "', expected argument " "1"" of type '" "wxWindow *""'");
7765 }
7766 arg1 = reinterpret_cast< wxWindow * >(argp1);
7767 if (obj1) {
7768 ecode2 = SWIG_AsVal_int(obj1, &val2);
7769 if (!SWIG_IsOK(ecode2)) {
7770 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticLine" "', expected argument " "2"" of type '" "int""'");
7771 }
7772 arg2 = static_cast< int >(val2);
7773 }
7774 if (obj2) {
093d3ff1 7775 {
0085ce49
RD
7776 arg3 = &temp3;
7777 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 7778 }
0085ce49
RD
7779 }
7780 if (obj3) {
d14a1e28 7781 {
0085ce49
RD
7782 arg4 = &temp4;
7783 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 7784 }
0085ce49
RD
7785 }
7786 if (obj4) {
7787 ecode5 = SWIG_AsVal_long(obj4, &val5);
7788 if (!SWIG_IsOK(ecode5)) {
7789 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_StaticLine" "', expected argument " "5"" of type '" "long""'");
7790 }
7791 arg5 = static_cast< long >(val5);
7792 }
7793 if (obj5) {
7794 {
7795 arg6 = wxString_in_helper(obj5);
7796 if (arg6 == NULL) SWIG_fail;
7797 temp6 = true;
7798 }
7799 }
7800 {
7801 if (!wxPyCheckForApp()) SWIG_fail;
7802 PyThreadState* __tstate = wxPyBeginAllowThreads();
7803 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
7804 wxPyEndAllowThreads(__tstate);
7805 if (PyErr_Occurred()) SWIG_fail;
7806 }
7807 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_NEW | 0 );
7808 {
7809 if (temp6)
7810 delete arg6;
7811 }
7812 return resultobj;
7813fail:
7814 {
7815 if (temp6)
7816 delete arg6;
7817 }
7818 return NULL;
d14a1e28
RD
7819}
7820
7821
0085ce49
RD
7822SWIGINTERN PyObject *_wrap_new_PreStaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7823 PyObject *resultobj = 0;
7824 wxStaticLine *result = 0 ;
7825
7826 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticLine",0,0,0)) SWIG_fail;
7827 {
7828 if (!wxPyCheckForApp()) SWIG_fail;
7829 PyThreadState* __tstate = wxPyBeginAllowThreads();
7830 result = (wxStaticLine *)new wxStaticLine();
7831 wxPyEndAllowThreads(__tstate);
7832 if (PyErr_Occurred()) SWIG_fail;
7833 }
7834 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_OWN | 0 );
7835 return resultobj;
7836fail:
7837 return NULL;
7838}
7839
7840
7841SWIGINTERN PyObject *_wrap_StaticLine_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7842 PyObject *resultobj = 0;
7843 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7844 wxWindow *arg2 = (wxWindow *) 0 ;
7845 int arg3 = (int) -1 ;
7846 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7847 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7848 wxSize const &arg5_defvalue = wxDefaultSize ;
7849 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7850 long arg6 = (long) wxLI_HORIZONTAL ;
7851 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
7852 wxString *arg7 = (wxString *) &arg7_defvalue ;
7853 bool result;
7854 void *argp1 = 0 ;
7855 int res1 = 0 ;
7856 void *argp2 = 0 ;
7857 int res2 = 0 ;
7858 int val3 ;
7859 int ecode3 = 0 ;
7860 wxPoint temp4 ;
7861 wxSize temp5 ;
7862 long val6 ;
7863 int ecode6 = 0 ;
7864 bool temp7 = false ;
7865 PyObject * obj0 = 0 ;
7866 PyObject * obj1 = 0 ;
7867 PyObject * obj2 = 0 ;
7868 PyObject * obj3 = 0 ;
7869 PyObject * obj4 = 0 ;
7870 PyObject * obj5 = 0 ;
7871 PyObject * obj6 = 0 ;
7872 char * kwnames[] = {
7873 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7874 };
7875
7876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7878 if (!SWIG_IsOK(res1)) {
7879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_Create" "', expected argument " "1"" of type '" "wxStaticLine *""'");
7880 }
7881 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7882 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7883 if (!SWIG_IsOK(res2)) {
7884 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticLine_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7885 }
7886 arg2 = reinterpret_cast< wxWindow * >(argp2);
7887 if (obj2) {
7888 ecode3 = SWIG_AsVal_int(obj2, &val3);
7889 if (!SWIG_IsOK(ecode3)) {
7890 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticLine_Create" "', expected argument " "3"" of type '" "int""'");
7891 }
7892 arg3 = static_cast< int >(val3);
7893 }
7894 if (obj3) {
d14a1e28 7895 {
0085ce49
RD
7896 arg4 = &temp4;
7897 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 7898 }
0085ce49
RD
7899 }
7900 if (obj4) {
093d3ff1 7901 {
0085ce49
RD
7902 arg5 = &temp5;
7903 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 7904 }
0085ce49
RD
7905 }
7906 if (obj5) {
7907 ecode6 = SWIG_AsVal_long(obj5, &val6);
7908 if (!SWIG_IsOK(ecode6)) {
7909 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "StaticLine_Create" "', expected argument " "6"" of type '" "long""'");
7910 }
7911 arg6 = static_cast< long >(val6);
7912 }
7913 if (obj6) {
7914 {
7915 arg7 = wxString_in_helper(obj6);
7916 if (arg7 == NULL) SWIG_fail;
7917 temp7 = true;
7918 }
7919 }
7920 {
7921 PyThreadState* __tstate = wxPyBeginAllowThreads();
7922 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7923 wxPyEndAllowThreads(__tstate);
7924 if (PyErr_Occurred()) SWIG_fail;
7925 }
7926 {
7927 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7928 }
7929 {
7930 if (temp7)
7931 delete arg7;
7932 }
7933 return resultobj;
7934fail:
7935 {
7936 if (temp7)
7937 delete arg7;
7938 }
7939 return NULL;
d14a1e28
RD
7940}
7941
7942
0085ce49
RD
7943SWIGINTERN PyObject *_wrap_StaticLine_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7944 PyObject *resultobj = 0;
7945 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7946 bool result;
7947 void *argp1 = 0 ;
7948 int res1 = 0 ;
7949 PyObject *swig_obj[1] ;
7950
7951 if (!args) SWIG_fail;
7952 swig_obj[0] = args;
7953 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7954 if (!SWIG_IsOK(res1)) {
7955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_IsVertical" "', expected argument " "1"" of type '" "wxStaticLine const *""'");
7956 }
7957 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7958 {
7959 PyThreadState* __tstate = wxPyBeginAllowThreads();
7960 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
7961 wxPyEndAllowThreads(__tstate);
7962 if (PyErr_Occurred()) SWIG_fail;
7963 }
7964 {
7965 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7966 }
7967 return resultobj;
7968fail:
7969 return NULL;
7970}
7971
7972
7973SWIGINTERN PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7974 PyObject *resultobj = 0;
7975 int result;
7976
7977 if (!SWIG_Python_UnpackTuple(args,"StaticLine_GetDefaultSize",0,0,0)) SWIG_fail;
7978 {
7979 PyThreadState* __tstate = wxPyBeginAllowThreads();
7980 result = (int)wxStaticLine::GetDefaultSize();
7981 wxPyEndAllowThreads(__tstate);
7982 if (PyErr_Occurred()) SWIG_fail;
7983 }
7984 resultobj = SWIG_From_int(static_cast< int >(result));
7985 return resultobj;
7986fail:
7987 return NULL;
7988}
7989
7990
7991SWIGINTERN PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7992 PyObject *resultobj = 0;
7993 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7994 SwigValueWrapper<wxVisualAttributes > result;
7995 int val1 ;
7996 int ecode1 = 0 ;
7997 PyObject * obj0 = 0 ;
7998 char * kwnames[] = {
7999 (char *) "variant", NULL
8000 };
8001
8002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8003 if (obj0) {
8004 ecode1 = SWIG_AsVal_int(obj0, &val1);
8005 if (!SWIG_IsOK(ecode1)) {
8006 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticLine_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8007 }
8008 arg1 = static_cast< wxWindowVariant >(val1);
8009 }
8010 {
8011 if (!wxPyCheckForApp()) SWIG_fail;
8012 PyThreadState* __tstate = wxPyBeginAllowThreads();
8013 result = wxStaticLine::GetClassDefaultAttributes(arg1);
8014 wxPyEndAllowThreads(__tstate);
8015 if (PyErr_Occurred()) SWIG_fail;
8016 }
8017 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8018 return resultobj;
8019fail:
8020 return NULL;
8021}
8022
8023
8024SWIGINTERN PyObject *StaticLine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8025 PyObject *obj;
8026 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8027 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticLine, SWIG_NewClientData(obj));
8028 return SWIG_Py_Void();
8029}
8030
8031SWIGINTERN PyObject *StaticLine_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8032 return SWIG_Python_InitShadowInstance(args);
8033}
8034
8035SWIGINTERN PyObject *_wrap_new_StaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8036 PyObject *resultobj = 0;
8037 wxWindow *arg1 = (wxWindow *) 0 ;
8038 int arg2 = (int) -1 ;
8039 wxString const &arg3_defvalue = wxPyEmptyString ;
8040 wxString *arg3 = (wxString *) &arg3_defvalue ;
8041 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8042 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8043 wxSize const &arg5_defvalue = wxDefaultSize ;
8044 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8045 long arg6 = (long) 0 ;
8046 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
8047 wxString *arg7 = (wxString *) &arg7_defvalue ;
8048 wxStaticText *result = 0 ;
8049 void *argp1 = 0 ;
8050 int res1 = 0 ;
8051 int val2 ;
8052 int ecode2 = 0 ;
8053 bool temp3 = false ;
8054 wxPoint temp4 ;
8055 wxSize temp5 ;
8056 long val6 ;
8057 int ecode6 = 0 ;
8058 bool temp7 = false ;
8059 PyObject * obj0 = 0 ;
8060 PyObject * obj1 = 0 ;
8061 PyObject * obj2 = 0 ;
8062 PyObject * obj3 = 0 ;
8063 PyObject * obj4 = 0 ;
8064 PyObject * obj5 = 0 ;
8065 PyObject * obj6 = 0 ;
8066 char * kwnames[] = {
8067 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8068 };
8069
8070 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8071 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8072 if (!SWIG_IsOK(res1)) {
8073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticText" "', expected argument " "1"" of type '" "wxWindow *""'");
8074 }
8075 arg1 = reinterpret_cast< wxWindow * >(argp1);
8076 if (obj1) {
8077 ecode2 = SWIG_AsVal_int(obj1, &val2);
8078 if (!SWIG_IsOK(ecode2)) {
8079 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticText" "', expected argument " "2"" of type '" "int""'");
8080 }
8081 arg2 = static_cast< int >(val2);
8082 }
8083 if (obj2) {
d14a1e28 8084 {
0085ce49
RD
8085 arg3 = wxString_in_helper(obj2);
8086 if (arg3 == NULL) SWIG_fail;
8087 temp3 = true;
d14a1e28 8088 }
0085ce49
RD
8089 }
8090 if (obj3) {
4f89f6a3 8091 {
0085ce49
RD
8092 arg4 = &temp4;
8093 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 8094 }
0085ce49
RD
8095 }
8096 if (obj4) {
093d3ff1 8097 {
0085ce49
RD
8098 arg5 = &temp5;
8099 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 8100 }
0085ce49
RD
8101 }
8102 if (obj5) {
8103 ecode6 = SWIG_AsVal_long(obj5, &val6);
8104 if (!SWIG_IsOK(ecode6)) {
8105 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticText" "', expected argument " "6"" of type '" "long""'");
8106 }
8107 arg6 = static_cast< long >(val6);
8108 }
8109 if (obj6) {
d14a1e28 8110 {
0085ce49
RD
8111 arg7 = wxString_in_helper(obj6);
8112 if (arg7 == NULL) SWIG_fail;
8113 temp7 = true;
d14a1e28 8114 }
0085ce49
RD
8115 }
8116 {
8117 if (!wxPyCheckForApp()) SWIG_fail;
8118 PyThreadState* __tstate = wxPyBeginAllowThreads();
8119 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8120 wxPyEndAllowThreads(__tstate);
8121 if (PyErr_Occurred()) SWIG_fail;
8122 }
8123 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_NEW | 0 );
8124 {
8125 if (temp3)
8126 delete arg3;
8127 }
8128 {
8129 if (temp7)
8130 delete arg7;
8131 }
8132 return resultobj;
8133fail:
8134 {
8135 if (temp3)
8136 delete arg3;
8137 }
8138 {
8139 if (temp7)
8140 delete arg7;
8141 }
8142 return NULL;
d14a1e28
RD
8143}
8144
8145
0085ce49
RD
8146SWIGINTERN PyObject *_wrap_new_PreStaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8147 PyObject *resultobj = 0;
8148 wxStaticText *result = 0 ;
8149
8150 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticText",0,0,0)) SWIG_fail;
8151 {
8152 if (!wxPyCheckForApp()) SWIG_fail;
8153 PyThreadState* __tstate = wxPyBeginAllowThreads();
8154 result = (wxStaticText *)new wxStaticText();
8155 wxPyEndAllowThreads(__tstate);
8156 if (PyErr_Occurred()) SWIG_fail;
8157 }
8158 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_OWN | 0 );
8159 return resultobj;
8160fail:
8161 return NULL;
8162}
8163
8164
8165SWIGINTERN PyObject *_wrap_StaticText_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8166 PyObject *resultobj = 0;
8167 wxStaticText *arg1 = (wxStaticText *) 0 ;
8168 wxWindow *arg2 = (wxWindow *) 0 ;
8169 int arg3 = (int) -1 ;
8170 wxString const &arg4_defvalue = wxPyEmptyString ;
8171 wxString *arg4 = (wxString *) &arg4_defvalue ;
8172 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8173 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8174 wxSize const &arg6_defvalue = wxDefaultSize ;
8175 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8176 long arg7 = (long) 0 ;
8177 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
8178 wxString *arg8 = (wxString *) &arg8_defvalue ;
8179 bool result;
8180 void *argp1 = 0 ;
8181 int res1 = 0 ;
8182 void *argp2 = 0 ;
8183 int res2 = 0 ;
8184 int val3 ;
8185 int ecode3 = 0 ;
8186 bool temp4 = false ;
8187 wxPoint temp5 ;
8188 wxSize temp6 ;
8189 long val7 ;
8190 int ecode7 = 0 ;
8191 bool temp8 = false ;
8192 PyObject * obj0 = 0 ;
8193 PyObject * obj1 = 0 ;
8194 PyObject * obj2 = 0 ;
8195 PyObject * obj3 = 0 ;
8196 PyObject * obj4 = 0 ;
8197 PyObject * obj5 = 0 ;
8198 PyObject * obj6 = 0 ;
8199 PyObject * obj7 = 0 ;
8200 char * kwnames[] = {
8201 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8202 };
8203
8204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8205 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8206 if (!SWIG_IsOK(res1)) {
8207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Create" "', expected argument " "1"" of type '" "wxStaticText *""'");
8208 }
8209 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8210 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8211 if (!SWIG_IsOK(res2)) {
8212 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticText_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8213 }
8214 arg2 = reinterpret_cast< wxWindow * >(argp2);
8215 if (obj2) {
8216 ecode3 = SWIG_AsVal_int(obj2, &val3);
8217 if (!SWIG_IsOK(ecode3)) {
8218 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticText_Create" "', expected argument " "3"" of type '" "int""'");
8219 }
8220 arg3 = static_cast< int >(val3);
8221 }
8222 if (obj3) {
d14a1e28 8223 {
0085ce49
RD
8224 arg4 = wxString_in_helper(obj3);
8225 if (arg4 == NULL) SWIG_fail;
8226 temp4 = true;
8227 }
8228 }
8229 if (obj4) {
8230 {
8231 arg5 = &temp5;
8232 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 8233 }
0085ce49
RD
8234 }
8235 if (obj5) {
093d3ff1 8236 {
0085ce49
RD
8237 arg6 = &temp6;
8238 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
093d3ff1 8239 }
0085ce49
RD
8240 }
8241 if (obj6) {
8242 ecode7 = SWIG_AsVal_long(obj6, &val7);
8243 if (!SWIG_IsOK(ecode7)) {
8244 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticText_Create" "', expected argument " "7"" of type '" "long""'");
8245 }
8246 arg7 = static_cast< long >(val7);
8247 }
8248 if (obj7) {
093d3ff1 8249 {
0085ce49
RD
8250 arg8 = wxString_in_helper(obj7);
8251 if (arg8 == NULL) SWIG_fail;
8252 temp8 = true;
8253 }
8254 }
8255 {
8256 PyThreadState* __tstate = wxPyBeginAllowThreads();
8257 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8258 wxPyEndAllowThreads(__tstate);
8259 if (PyErr_Occurred()) SWIG_fail;
8260 }
8261 {
8262 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8263 }
8264 {
8265 if (temp4)
8266 delete arg4;
8267 }
8268 {
8269 if (temp8)
8270 delete arg8;
8271 }
8272 return resultobj;
8273fail:
8274 {
8275 if (temp4)
8276 delete arg4;
8277 }
8278 {
8279 if (temp8)
8280 delete arg8;
8281 }
8282 return NULL;
8283}
8284
8285
8286SWIGINTERN PyObject *_wrap_StaticText_Wrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8287 PyObject *resultobj = 0;
8288 wxStaticText *arg1 = (wxStaticText *) 0 ;
8289 int arg2 ;
8290 void *argp1 = 0 ;
8291 int res1 = 0 ;
8292 int val2 ;
8293 int ecode2 = 0 ;
8294 PyObject * obj0 = 0 ;
8295 PyObject * obj1 = 0 ;
8296 char * kwnames[] = {
8297 (char *) "self",(char *) "width", NULL
8298 };
8299
8300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticText_Wrap",kwnames,&obj0,&obj1)) SWIG_fail;
8301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8302 if (!SWIG_IsOK(res1)) {
8303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Wrap" "', expected argument " "1"" of type '" "wxStaticText *""'");
8304 }
8305 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8306 ecode2 = SWIG_AsVal_int(obj1, &val2);
8307 if (!SWIG_IsOK(ecode2)) {
8308 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StaticText_Wrap" "', expected argument " "2"" of type '" "int""'");
8309 }
8310 arg2 = static_cast< int >(val2);
8311 {
8312 PyThreadState* __tstate = wxPyBeginAllowThreads();
8313 (arg1)->Wrap(arg2);
8314 wxPyEndAllowThreads(__tstate);
8315 if (PyErr_Occurred()) SWIG_fail;
8316 }
8317 resultobj = SWIG_Py_Void();
8318 return resultobj;
8319fail:
8320 return NULL;
8321}
8322
8323
8324SWIGINTERN PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8325 PyObject *resultobj = 0;
8326 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8327 SwigValueWrapper<wxVisualAttributes > result;
8328 int val1 ;
8329 int ecode1 = 0 ;
8330 PyObject * obj0 = 0 ;
8331 char * kwnames[] = {
8332 (char *) "variant", NULL
8333 };
8334
8335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8336 if (obj0) {
8337 ecode1 = SWIG_AsVal_int(obj0, &val1);
8338 if (!SWIG_IsOK(ecode1)) {
8339 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticText_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8340 }
8341 arg1 = static_cast< wxWindowVariant >(val1);
8342 }
8343 {
8344 if (!wxPyCheckForApp()) SWIG_fail;
8345 PyThreadState* __tstate = wxPyBeginAllowThreads();
8346 result = wxStaticText::GetClassDefaultAttributes(arg1);
8347 wxPyEndAllowThreads(__tstate);
8348 if (PyErr_Occurred()) SWIG_fail;
8349 }
8350 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8351 return resultobj;
8352fail:
8353 return NULL;
8354}
8355
8356
8357SWIGINTERN PyObject *StaticText_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8358 PyObject *obj;
8359 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8360 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticText, SWIG_NewClientData(obj));
8361 return SWIG_Py_Void();
8362}
8363
8364SWIGINTERN PyObject *StaticText_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8365 return SWIG_Python_InitShadowInstance(args);
8366}
8367
8368SWIGINTERN PyObject *_wrap_new_StaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8369 PyObject *resultobj = 0;
8370 wxWindow *arg1 = (wxWindow *) 0 ;
8371 int arg2 = (int) -1 ;
8372 wxBitmap const &arg3_defvalue = wxNullBitmap ;
8373 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
8374 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8375 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8376 wxSize const &arg5_defvalue = wxDefaultSize ;
8377 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8378 long arg6 = (long) 0 ;
8379 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
8380 wxString *arg7 = (wxString *) &arg7_defvalue ;
8381 wxStaticBitmap *result = 0 ;
8382 void *argp1 = 0 ;
8383 int res1 = 0 ;
8384 int val2 ;
8385 int ecode2 = 0 ;
8386 void *argp3 = 0 ;
8387 int res3 = 0 ;
8388 wxPoint temp4 ;
8389 wxSize temp5 ;
8390 long val6 ;
8391 int ecode6 = 0 ;
8392 bool temp7 = false ;
8393 PyObject * obj0 = 0 ;
8394 PyObject * obj1 = 0 ;
8395 PyObject * obj2 = 0 ;
8396 PyObject * obj3 = 0 ;
8397 PyObject * obj4 = 0 ;
8398 PyObject * obj5 = 0 ;
8399 PyObject * obj6 = 0 ;
8400 char * kwnames[] = {
8401 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8402 };
8403
8404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8406 if (!SWIG_IsOK(res1)) {
8407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBitmap" "', expected argument " "1"" of type '" "wxWindow *""'");
8408 }
8409 arg1 = reinterpret_cast< wxWindow * >(argp1);
8410 if (obj1) {
8411 ecode2 = SWIG_AsVal_int(obj1, &val2);
8412 if (!SWIG_IsOK(ecode2)) {
8413 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBitmap" "', expected argument " "2"" of type '" "int""'");
8414 }
8415 arg2 = static_cast< int >(val2);
8416 }
8417 if (obj2) {
8418 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
8419 if (!SWIG_IsOK(res3)) {
8420 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8421 }
8422 if (!argp3) {
8423 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
093d3ff1 8424 }
0085ce49
RD
8425 arg3 = reinterpret_cast< wxBitmap * >(argp3);
8426 }
8427 if (obj3) {
d14a1e28 8428 {
0085ce49
RD
8429 arg4 = &temp4;
8430 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 8431 }
0085ce49
RD
8432 }
8433 if (obj4) {
d14a1e28 8434 {
0085ce49
RD
8435 arg5 = &temp5;
8436 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 8437 }
0085ce49
RD
8438 }
8439 if (obj5) {
8440 ecode6 = SWIG_AsVal_long(obj5, &val6);
8441 if (!SWIG_IsOK(ecode6)) {
8442 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBitmap" "', expected argument " "6"" of type '" "long""'");
8443 }
8444 arg6 = static_cast< long >(val6);
8445 }
8446 if (obj6) {
093d3ff1 8447 {
0085ce49
RD
8448 arg7 = wxString_in_helper(obj6);
8449 if (arg7 == NULL) SWIG_fail;
8450 temp7 = true;
093d3ff1 8451 }
0085ce49
RD
8452 }
8453 {
8454 if (!wxPyCheckForApp()) SWIG_fail;
8455 PyThreadState* __tstate = wxPyBeginAllowThreads();
8456 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8457 wxPyEndAllowThreads(__tstate);
8458 if (PyErr_Occurred()) SWIG_fail;
8459 }
8460 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_NEW | 0 );
8461 {
8462 if (temp7)
8463 delete arg7;
8464 }
8465 return resultobj;
8466fail:
8467 {
8468 if (temp7)
8469 delete arg7;
8470 }
8471 return NULL;
d14a1e28
RD
8472}
8473
8474
0085ce49
RD
8475SWIGINTERN PyObject *_wrap_new_PreStaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8476 PyObject *resultobj = 0;
8477 wxStaticBitmap *result = 0 ;
8478
8479 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBitmap",0,0,0)) SWIG_fail;
8480 {
8481 if (!wxPyCheckForApp()) SWIG_fail;
8482 PyThreadState* __tstate = wxPyBeginAllowThreads();
8483 result = (wxStaticBitmap *)new wxStaticBitmap();
8484 wxPyEndAllowThreads(__tstate);
8485 if (PyErr_Occurred()) SWIG_fail;
8486 }
8487 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_OWN | 0 );
8488 return resultobj;
8489fail:
8490 return NULL;
8491}
8492
8493
8494SWIGINTERN PyObject *_wrap_StaticBitmap_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8495 PyObject *resultobj = 0;
8496 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8497 wxWindow *arg2 = (wxWindow *) 0 ;
8498 int arg3 = (int) -1 ;
8499 wxBitmap const &arg4_defvalue = wxNullBitmap ;
8500 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
8501 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8502 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8503 wxSize const &arg6_defvalue = wxDefaultSize ;
8504 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8505 long arg7 = (long) 0 ;
8506 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
8507 wxString *arg8 = (wxString *) &arg8_defvalue ;
8508 bool result;
8509 void *argp1 = 0 ;
8510 int res1 = 0 ;
8511 void *argp2 = 0 ;
8512 int res2 = 0 ;
8513 int val3 ;
8514 int ecode3 = 0 ;
8515 void *argp4 = 0 ;
8516 int res4 = 0 ;
8517 wxPoint temp5 ;
8518 wxSize temp6 ;
8519 long val7 ;
8520 int ecode7 = 0 ;
8521 bool temp8 = false ;
8522 PyObject * obj0 = 0 ;
8523 PyObject * obj1 = 0 ;
8524 PyObject * obj2 = 0 ;
8525 PyObject * obj3 = 0 ;
8526 PyObject * obj4 = 0 ;
8527 PyObject * obj5 = 0 ;
8528 PyObject * obj6 = 0 ;
8529 PyObject * obj7 = 0 ;
8530 char * kwnames[] = {
8531 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8532 };
8533
8534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8536 if (!SWIG_IsOK(res1)) {
8537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_Create" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8538 }
8539 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8540 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8541 if (!SWIG_IsOK(res2)) {
8542 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8543 }
8544 arg2 = reinterpret_cast< wxWindow * >(argp2);
8545 if (obj2) {
8546 ecode3 = SWIG_AsVal_int(obj2, &val3);
8547 if (!SWIG_IsOK(ecode3)) {
8548 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBitmap_Create" "', expected argument " "3"" of type '" "int""'");
8549 }
8550 arg3 = static_cast< int >(val3);
8551 }
8552 if (obj3) {
8553 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
8554 if (!SWIG_IsOK(res4)) {
8555 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8556 }
8557 if (!argp4) {
8558 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
22bfe96c 8559 }
0085ce49
RD
8560 arg4 = reinterpret_cast< wxBitmap * >(argp4);
8561 }
8562 if (obj4) {
22bfe96c 8563 {
0085ce49
RD
8564 arg5 = &temp5;
8565 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
22bfe96c 8566 }
0085ce49
RD
8567 }
8568 if (obj5) {
22bfe96c 8569 {
0085ce49
RD
8570 arg6 = &temp6;
8571 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
22bfe96c 8572 }
0085ce49
RD
8573 }
8574 if (obj6) {
8575 ecode7 = SWIG_AsVal_long(obj6, &val7);
8576 if (!SWIG_IsOK(ecode7)) {
8577 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBitmap_Create" "', expected argument " "7"" of type '" "long""'");
8578 }
8579 arg7 = static_cast< long >(val7);
8580 }
8581 if (obj7) {
b2dc1044 8582 {
0085ce49
RD
8583 arg8 = wxString_in_helper(obj7);
8584 if (arg8 == NULL) SWIG_fail;
8585 temp8 = true;
b2dc1044 8586 }
0085ce49
RD
8587 }
8588 {
8589 PyThreadState* __tstate = wxPyBeginAllowThreads();
8590 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8591 wxPyEndAllowThreads(__tstate);
8592 if (PyErr_Occurred()) SWIG_fail;
8593 }
8594 {
8595 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8596 }
8597 {
8598 if (temp8)
8599 delete arg8;
8600 }
8601 return resultobj;
8602fail:
8603 {
8604 if (temp8)
8605 delete arg8;
8606 }
8607 return NULL;
b2dc1044
RD
8608}
8609
8610
0085ce49
RD
8611SWIGINTERN PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8612 PyObject *resultobj = 0;
8613 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8614 wxBitmap result;
8615 void *argp1 = 0 ;
8616 int res1 = 0 ;
8617 PyObject *swig_obj[1] ;
8618
8619 if (!args) SWIG_fail;
8620 swig_obj[0] = args;
8621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8622 if (!SWIG_IsOK(res1)) {
8623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_GetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8624 }
8625 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8626 {
8627 PyThreadState* __tstate = wxPyBeginAllowThreads();
8628 result = (arg1)->GetBitmap();
8629 wxPyEndAllowThreads(__tstate);
8630 if (PyErr_Occurred()) SWIG_fail;
8631 }
8632 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8633 return resultobj;
8634fail:
8635 return NULL;
8636}
8637
8638
8639SWIGINTERN PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8640 PyObject *resultobj = 0;
8641 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8642 wxBitmap *arg2 = 0 ;
8643 void *argp1 = 0 ;
8644 int res1 = 0 ;
8645 void *argp2 = 0 ;
8646 int res2 = 0 ;
8647 PyObject * obj0 = 0 ;
8648 PyObject * obj1 = 0 ;
8649 char * kwnames[] = {
8650 (char *) "self",(char *) "bitmap", NULL
8651 };
8652
8653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
8654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8655 if (!SWIG_IsOK(res1)) {
8656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8657 }
8658 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8659 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8660 if (!SWIG_IsOK(res2)) {
8661 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8662 }
8663 if (!argp2) {
8664 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8665 }
8666 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8667 {
8668 PyThreadState* __tstate = wxPyBeginAllowThreads();
8669 (arg1)->SetBitmap((wxBitmap const &)*arg2);
8670 wxPyEndAllowThreads(__tstate);
8671 if (PyErr_Occurred()) SWIG_fail;
8672 }
8673 resultobj = SWIG_Py_Void();
8674 return resultobj;
8675fail:
8676 return NULL;
8677}
8678
8679
8680SWIGINTERN PyObject *_wrap_StaticBitmap_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8681 PyObject *resultobj = 0;
8682 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8683 wxIcon *arg2 = 0 ;
8684 void *argp1 = 0 ;
8685 int res1 = 0 ;
8686 void *argp2 = 0 ;
8687 int res2 = 0 ;
8688 PyObject * obj0 = 0 ;
8689 PyObject * obj1 = 0 ;
8690 char * kwnames[] = {
8691 (char *) "self",(char *) "icon", NULL
8692 };
8693
8694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
8695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8696 if (!SWIG_IsOK(res1)) {
8697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetIcon" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8698 }
8699 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8700 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
8701 if (!SWIG_IsOK(res2)) {
8702 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8703 }
8704 if (!argp2) {
8705 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8706 }
8707 arg2 = reinterpret_cast< wxIcon * >(argp2);
8708 {
8709 PyThreadState* __tstate = wxPyBeginAllowThreads();
8710 (arg1)->SetIcon((wxIcon const &)*arg2);
8711 wxPyEndAllowThreads(__tstate);
8712 if (PyErr_Occurred()) SWIG_fail;
8713 }
8714 resultobj = SWIG_Py_Void();
8715 return resultobj;
8716fail:
8717 return NULL;
8718}
8719
8720
8721SWIGINTERN PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8722 PyObject *resultobj = 0;
8723 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8724 SwigValueWrapper<wxVisualAttributes > result;
8725 int val1 ;
8726 int ecode1 = 0 ;
8727 PyObject * obj0 = 0 ;
8728 char * kwnames[] = {
8729 (char *) "variant", NULL
8730 };
8731
8732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8733 if (obj0) {
8734 ecode1 = SWIG_AsVal_int(obj0, &val1);
8735 if (!SWIG_IsOK(ecode1)) {
8736 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBitmap_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8737 }
8738 arg1 = static_cast< wxWindowVariant >(val1);
8739 }
8740 {
8741 if (!wxPyCheckForApp()) SWIG_fail;
8742 PyThreadState* __tstate = wxPyBeginAllowThreads();
8743 result = wxStaticBitmap::GetClassDefaultAttributes(arg1);
8744 wxPyEndAllowThreads(__tstate);
8745 if (PyErr_Occurred()) SWIG_fail;
8746 }
8747 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8748 return resultobj;
8749fail:
8750 return NULL;
b2dc1044
RD
8751}
8752
8753
0085ce49
RD
8754SWIGINTERN PyObject *StaticBitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8755 PyObject *obj;
8756 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8757 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBitmap, SWIG_NewClientData(obj));
8758 return SWIG_Py_Void();
b2dc1044
RD
8759}
8760
0085ce49
RD
8761SWIGINTERN PyObject *StaticBitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8762 return SWIG_Python_InitShadowInstance(args);
8763}
b2dc1044 8764
0085ce49
RD
8765SWIGINTERN int ListBoxNameStr_set(PyObject *) {
8766 SWIG_Error(SWIG_AttributeError,"Variable ListBoxNameStr is read-only.");
8767 return 1;
b2dc1044
RD
8768}
8769
8770
0085ce49
RD
8771SWIGINTERN PyObject *ListBoxNameStr_get(void) {
8772 PyObject *pyobj = 0;
8773
8774 {
b2dc1044 8775#if wxUSE_UNICODE
0085ce49 8776 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
b2dc1044 8777#else
0085ce49 8778 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
b2dc1044 8779#endif
0085ce49
RD
8780 }
8781 return pyobj;
8782}
8783
8784
8785SWIGINTERN PyObject *_wrap_new_ListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8786 PyObject *resultobj = 0;
8787 wxWindow *arg1 = (wxWindow *) 0 ;
8788 int arg2 = (int) -1 ;
8789 wxPoint const &arg3_defvalue = wxDefaultPosition ;
8790 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
8791 wxSize const &arg4_defvalue = wxDefaultSize ;
8792 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
8793 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
8794 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
8795 long arg6 = (long) 0 ;
8796 wxValidator const &arg7_defvalue = wxDefaultValidator ;
8797 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
8798 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
8799 wxString *arg8 = (wxString *) &arg8_defvalue ;
8800 wxListBox *result = 0 ;
8801 void *argp1 = 0 ;
8802 int res1 = 0 ;
8803 int val2 ;
8804 int ecode2 = 0 ;
8805 wxPoint temp3 ;
8806 wxSize temp4 ;
8807 bool temp5 = false ;
8808 long val6 ;
8809 int ecode6 = 0 ;
8810 void *argp7 = 0 ;
8811 int res7 = 0 ;
8812 bool temp8 = false ;
8813 PyObject * obj0 = 0 ;
8814 PyObject * obj1 = 0 ;
8815 PyObject * obj2 = 0 ;
8816 PyObject * obj3 = 0 ;
8817 PyObject * obj4 = 0 ;
8818 PyObject * obj5 = 0 ;
8819 PyObject * obj6 = 0 ;
8820 PyObject * obj7 = 0 ;
8821 char * kwnames[] = {
8822 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8823 };
8824
8825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8827 if (!SWIG_IsOK(res1)) {
8828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
8829 }
8830 arg1 = reinterpret_cast< wxWindow * >(argp1);
8831 if (obj1) {
8832 ecode2 = SWIG_AsVal_int(obj1, &val2);
8833 if (!SWIG_IsOK(ecode2)) {
8834 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListBox" "', expected argument " "2"" of type '" "int""'");
8835 }
8836 arg2 = static_cast< int >(val2);
8837 }
8838 if (obj2) {
d14a1e28 8839 {
0085ce49
RD
8840 arg3 = &temp3;
8841 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 8842 }
0085ce49
RD
8843 }
8844 if (obj3) {
d14a1e28 8845 {
0085ce49
RD
8846 arg4 = &temp4;
8847 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 8848 }
0085ce49
RD
8849 }
8850 if (obj4) {
d14a1e28 8851 {
0085ce49
RD
8852 if (! PySequence_Check(obj4)) {
8853 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8854 SWIG_fail;
8855 }
8856 arg5 = new wxArrayString;
8857 temp5 = true;
8858 int i, len=PySequence_Length(obj4);
8859 for (i=0; i<len; i++) {
8860 PyObject* item = PySequence_GetItem(obj4, i);
8861 wxString* s = wxString_in_helper(item);
8862 if (PyErr_Occurred()) SWIG_fail;
8863 arg5->Add(*s);
8864 delete s;
8865 Py_DECREF(item);
8866 }
d14a1e28 8867 }
0085ce49
RD
8868 }
8869 if (obj5) {
8870 ecode6 = SWIG_AsVal_long(obj5, &val6);
8871 if (!SWIG_IsOK(ecode6)) {
8872 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ListBox" "', expected argument " "6"" of type '" "long""'");
8873 }
8874 arg6 = static_cast< long >(val6);
8875 }
8876 if (obj6) {
8877 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
8878 if (!SWIG_IsOK(res7)) {
8879 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 8880 }
0085ce49
RD
8881 if (!argp7) {
8882 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 8883 }
0085ce49
RD
8884 arg7 = reinterpret_cast< wxValidator * >(argp7);
8885 }
8886 if (obj7) {
d14a1e28 8887 {
0085ce49
RD
8888 arg8 = wxString_in_helper(obj7);
8889 if (arg8 == NULL) SWIG_fail;
8890 temp8 = true;
d14a1e28 8891 }
0085ce49
RD
8892 }
8893 {
8894 if (!wxPyCheckForApp()) SWIG_fail;
8895 PyThreadState* __tstate = wxPyBeginAllowThreads();
8896 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
8897 wxPyEndAllowThreads(__tstate);
8898 if (PyErr_Occurred()) SWIG_fail;
8899 }
8900 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_NEW | 0 );
8901 {
8902 if (temp5) delete arg5;
8903 }
8904 {
8905 if (temp8)
8906 delete arg8;
8907 }
8908 return resultobj;
8909fail:
8910 {
8911 if (temp5) delete arg5;
8912 }
8913 {
8914 if (temp8)
8915 delete arg8;
8916 }
8917 return NULL;
d14a1e28
RD
8918}
8919
8920
0085ce49
RD
8921SWIGINTERN PyObject *_wrap_new_PreListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8922 PyObject *resultobj = 0;
8923 wxListBox *result = 0 ;
8924
8925 if (!SWIG_Python_UnpackTuple(args,"new_PreListBox",0,0,0)) SWIG_fail;
8926 {
8927 if (!wxPyCheckForApp()) SWIG_fail;
8928 PyThreadState* __tstate = wxPyBeginAllowThreads();
8929 result = (wxListBox *)new wxListBox();
8930 wxPyEndAllowThreads(__tstate);
8931 if (PyErr_Occurred()) SWIG_fail;
8932 }
8933 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_OWN | 0 );
8934 return resultobj;
8935fail:
8936 return NULL;
8937}
8938
8939
8940SWIGINTERN PyObject *_wrap_ListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8941 PyObject *resultobj = 0;
8942 wxListBox *arg1 = (wxListBox *) 0 ;
8943 wxWindow *arg2 = (wxWindow *) 0 ;
8944 int arg3 = (int) -1 ;
8945 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8946 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8947 wxSize const &arg5_defvalue = wxDefaultSize ;
8948 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8949 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
8950 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
8951 long arg7 = (long) 0 ;
8952 wxValidator const &arg8_defvalue = wxDefaultValidator ;
8953 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
8954 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
8955 wxString *arg9 = (wxString *) &arg9_defvalue ;
8956 bool result;
8957 void *argp1 = 0 ;
8958 int res1 = 0 ;
8959 void *argp2 = 0 ;
8960 int res2 = 0 ;
8961 int val3 ;
8962 int ecode3 = 0 ;
8963 wxPoint temp4 ;
8964 wxSize temp5 ;
8965 bool temp6 = false ;
8966 long val7 ;
8967 int ecode7 = 0 ;
8968 void *argp8 = 0 ;
8969 int res8 = 0 ;
8970 bool temp9 = false ;
8971 PyObject * obj0 = 0 ;
8972 PyObject * obj1 = 0 ;
8973 PyObject * obj2 = 0 ;
8974 PyObject * obj3 = 0 ;
8975 PyObject * obj4 = 0 ;
8976 PyObject * obj5 = 0 ;
8977 PyObject * obj6 = 0 ;
8978 PyObject * obj7 = 0 ;
8979 PyObject * obj8 = 0 ;
8980 char * kwnames[] = {
8981 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8982 };
8983
8984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
8985 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
8986 if (!SWIG_IsOK(res1)) {
8987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Create" "', expected argument " "1"" of type '" "wxListBox *""'");
8988 }
8989 arg1 = reinterpret_cast< wxListBox * >(argp1);
8990 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8991 if (!SWIG_IsOK(res2)) {
8992 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8993 }
8994 arg2 = reinterpret_cast< wxWindow * >(argp2);
8995 if (obj2) {
8996 ecode3 = SWIG_AsVal_int(obj2, &val3);
8997 if (!SWIG_IsOK(ecode3)) {
8998 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Create" "', expected argument " "3"" of type '" "int""'");
8999 }
9000 arg3 = static_cast< int >(val3);
9001 }
9002 if (obj3) {
d14a1e28 9003 {
0085ce49
RD
9004 arg4 = &temp4;
9005 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 9006 }
0085ce49
RD
9007 }
9008 if (obj4) {
d14a1e28 9009 {
0085ce49
RD
9010 arg5 = &temp5;
9011 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 9012 }
0085ce49
RD
9013 }
9014 if (obj5) {
d14a1e28 9015 {
0085ce49
RD
9016 if (! PySequence_Check(obj5)) {
9017 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9018 SWIG_fail;
9019 }
9020 arg6 = new wxArrayString;
9021 temp6 = true;
9022 int i, len=PySequence_Length(obj5);
9023 for (i=0; i<len; i++) {
9024 PyObject* item = PySequence_GetItem(obj5, i);
9025 wxString* s = wxString_in_helper(item);
9026 if (PyErr_Occurred()) SWIG_fail;
9027 arg6->Add(*s);
9028 delete s;
9029 Py_DECREF(item);
9030 }
d14a1e28 9031 }
0085ce49
RD
9032 }
9033 if (obj6) {
9034 ecode7 = SWIG_AsVal_long(obj6, &val7);
9035 if (!SWIG_IsOK(ecode7)) {
9036 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ListBox_Create" "', expected argument " "7"" of type '" "long""'");
9037 }
9038 arg7 = static_cast< long >(val7);
9039 }
9040 if (obj7) {
9041 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
9042 if (!SWIG_IsOK(res8)) {
9043 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 9044 }
0085ce49
RD
9045 if (!argp8) {
9046 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
22bfe96c 9047 }
0085ce49
RD
9048 arg8 = reinterpret_cast< wxValidator * >(argp8);
9049 }
9050 if (obj8) {
22bfe96c 9051 {
0085ce49
RD
9052 arg9 = wxString_in_helper(obj8);
9053 if (arg9 == NULL) SWIG_fail;
9054 temp9 = true;
22bfe96c 9055 }
0085ce49
RD
9056 }
9057 {
9058 PyThreadState* __tstate = wxPyBeginAllowThreads();
9059 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
9060 wxPyEndAllowThreads(__tstate);
9061 if (PyErr_Occurred()) SWIG_fail;
9062 }
9063 {
9064 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9065 }
9066 {
9067 if (temp6) delete arg6;
9068 }
9069 {
9070 if (temp9)
9071 delete arg9;
9072 }
9073 return resultobj;
9074fail:
9075 {
9076 if (temp6) delete arg6;
9077 }
9078 {
9079 if (temp9)
9080 delete arg9;
9081 }
9082 return NULL;
9083}
9084
9085
9086SWIGINTERN PyObject *_wrap_ListBox_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9087 PyObject *resultobj = 0;
9088 wxListBox *arg1 = (wxListBox *) 0 ;
9089 wxString *arg2 = 0 ;
9090 int arg3 ;
9091 PyObject *arg4 = (PyObject *) NULL ;
9092 void *argp1 = 0 ;
9093 int res1 = 0 ;
9094 bool temp2 = false ;
9095 int val3 ;
9096 int ecode3 = 0 ;
9097 PyObject * obj0 = 0 ;
9098 PyObject * obj1 = 0 ;
9099 PyObject * obj2 = 0 ;
9100 PyObject * obj3 = 0 ;
9101 char * kwnames[] = {
9102 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
9103 };
9104
9105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9107 if (!SWIG_IsOK(res1)) {
9108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Insert" "', expected argument " "1"" of type '" "wxListBox *""'");
9109 }
9110 arg1 = reinterpret_cast< wxListBox * >(argp1);
9111 {
9112 arg2 = wxString_in_helper(obj1);
9113 if (arg2 == NULL) SWIG_fail;
9114 temp2 = true;
9115 }
9116 ecode3 = SWIG_AsVal_int(obj2, &val3);
9117 if (!SWIG_IsOK(ecode3)) {
9118 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Insert" "', expected argument " "3"" of type '" "int""'");
9119 }
9120 arg3 = static_cast< int >(val3);
9121 if (obj3) {
9122 arg4 = obj3;
9123 }
9124 {
9125 PyThreadState* __tstate = wxPyBeginAllowThreads();
9126 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
9127 wxPyEndAllowThreads(__tstate);
9128 if (PyErr_Occurred()) SWIG_fail;
9129 }
9130 resultobj = SWIG_Py_Void();
9131 {
9132 if (temp2)
9133 delete arg2;
9134 }
9135 return resultobj;
9136fail:
9137 {
9138 if (temp2)
9139 delete arg2;
9140 }
9141 return NULL;
9142}
9143
9144
9145SWIGINTERN PyObject *_wrap_ListBox_InsertItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9146 PyObject *resultobj = 0;
9147 wxListBox *arg1 = (wxListBox *) 0 ;
9148 wxArrayString *arg2 = 0 ;
50f151d7 9149 unsigned int arg3 ;
0085ce49
RD
9150 void *argp1 = 0 ;
9151 int res1 = 0 ;
9152 bool temp2 = false ;
50f151d7 9153 unsigned int val3 ;
0085ce49
RD
9154 int ecode3 = 0 ;
9155 PyObject * obj0 = 0 ;
9156 PyObject * obj1 = 0 ;
9157 PyObject * obj2 = 0 ;
9158 char * kwnames[] = {
9159 (char *) "self",(char *) "items",(char *) "pos", NULL
9160 };
9161
9162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9164 if (!SWIG_IsOK(res1)) {
9165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_InsertItems" "', expected argument " "1"" of type '" "wxListBox *""'");
9166 }
9167 arg1 = reinterpret_cast< wxListBox * >(argp1);
9168 {
9169 if (! PySequence_Check(obj1)) {
9170 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9171 SWIG_fail;
9172 }
9173 arg2 = new wxArrayString;
9174 temp2 = true;
9175 int i, len=PySequence_Length(obj1);
9176 for (i=0; i<len; i++) {
9177 PyObject* item = PySequence_GetItem(obj1, i);
9178 wxString* s = wxString_in_helper(item);
9179 if (PyErr_Occurred()) SWIG_fail;
9180 arg2->Add(*s);
9181 delete s;
9182 Py_DECREF(item);
22bfe96c 9183 }
0085ce49 9184 }
50f151d7 9185 ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
0085ce49 9186 if (!SWIG_IsOK(ecode3)) {
50f151d7 9187 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_InsertItems" "', expected argument " "3"" of type '" "unsigned int""'");
0085ce49 9188 }
50f151d7 9189 arg3 = static_cast< unsigned int >(val3);
0085ce49
RD
9190 {
9191 PyThreadState* __tstate = wxPyBeginAllowThreads();
9192 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
9193 wxPyEndAllowThreads(__tstate);
9194 if (PyErr_Occurred()) SWIG_fail;
9195 }
9196 resultobj = SWIG_Py_Void();
9197 {
9198 if (temp2) delete arg2;
9199 }
9200 return resultobj;
9201fail:
9202 {
9203 if (temp2) delete arg2;
9204 }
9205 return NULL;
22bfe96c
RD
9206}
9207
9208
0085ce49
RD
9209SWIGINTERN PyObject *_wrap_ListBox_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9210 PyObject *resultobj = 0;
9211 wxListBox *arg1 = (wxListBox *) 0 ;
9212 wxArrayString *arg2 = 0 ;
9213 void *argp1 = 0 ;
9214 int res1 = 0 ;
9215 bool temp2 = false ;
9216 PyObject * obj0 = 0 ;
9217 PyObject * obj1 = 0 ;
9218 char * kwnames[] = {
9219 (char *) "self",(char *) "items", NULL
9220 };
9221
9222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) SWIG_fail;
9223 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9224 if (!SWIG_IsOK(res1)) {
9225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Set" "', expected argument " "1"" of type '" "wxListBox *""'");
9226 }
9227 arg1 = reinterpret_cast< wxListBox * >(argp1);
9228 {
9229 if (! PySequence_Check(obj1)) {
9230 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9231 SWIG_fail;
9232 }
9233 arg2 = new wxArrayString;
9234 temp2 = true;
9235 int i, len=PySequence_Length(obj1);
9236 for (i=0; i<len; i++) {
9237 PyObject* item = PySequence_GetItem(obj1, i);
9238 wxString* s = wxString_in_helper(item);
9239 if (PyErr_Occurred()) SWIG_fail;
9240 arg2->Add(*s);
9241 delete s;
9242 Py_DECREF(item);
d14a1e28 9243 }
0085ce49
RD
9244 }
9245 {
9246 PyThreadState* __tstate = wxPyBeginAllowThreads();
9247 (arg1)->Set((wxArrayString const &)*arg2);
9248 wxPyEndAllowThreads(__tstate);
9249 if (PyErr_Occurred()) SWIG_fail;
9250 }
9251 resultobj = SWIG_Py_Void();
9252 {
9253 if (temp2) delete arg2;
9254 }
9255 return resultobj;
9256fail:
9257 {
9258 if (temp2) delete arg2;
9259 }
9260 return NULL;
9261}
9262
9263
9264SWIGINTERN PyObject *_wrap_ListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9265 PyObject *resultobj = 0;
9266 wxListBox *arg1 = (wxListBox *) 0 ;
9267 int arg2 ;
9268 bool result;
9269 void *argp1 = 0 ;
9270 int res1 = 0 ;
9271 int val2 ;
9272 int ecode2 = 0 ;
9273 PyObject * obj0 = 0 ;
9274 PyObject * obj1 = 0 ;
9275 char * kwnames[] = {
9276 (char *) "self",(char *) "n", NULL
9277 };
9278
9279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
9280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9281 if (!SWIG_IsOK(res1)) {
9282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSelected" "', expected argument " "1"" of type '" "wxListBox const *""'");
9283 }
9284 arg1 = reinterpret_cast< wxListBox * >(argp1);
9285 ecode2 = SWIG_AsVal_int(obj1, &val2);
9286 if (!SWIG_IsOK(ecode2)) {
9287 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_IsSelected" "', expected argument " "2"" of type '" "int""'");
9288 }
9289 arg2 = static_cast< int >(val2);
9290 {
9291 PyThreadState* __tstate = wxPyBeginAllowThreads();
9292 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
9293 wxPyEndAllowThreads(__tstate);
9294 if (PyErr_Occurred()) SWIG_fail;
9295 }
9296 {
9297 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9298 }
9299 return resultobj;
9300fail:
9301 return NULL;
9302}
9303
9304
9305SWIGINTERN PyObject *_wrap_ListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9306 PyObject *resultobj = 0;
9307 wxListBox *arg1 = (wxListBox *) 0 ;
9308 int arg2 ;
9309 bool arg3 = (bool) true ;
9310 void *argp1 = 0 ;
9311 int res1 = 0 ;
9312 int val2 ;
9313 int ecode2 = 0 ;
9314 bool val3 ;
9315 int ecode3 = 0 ;
9316 PyObject * obj0 = 0 ;
9317 PyObject * obj1 = 0 ;
9318 PyObject * obj2 = 0 ;
9319 char * kwnames[] = {
9320 (char *) "self",(char *) "n",(char *) "select", NULL
9321 };
9322
9323 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9324 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9325 if (!SWIG_IsOK(res1)) {
9326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9327 }
9328 arg1 = reinterpret_cast< wxListBox * >(argp1);
9329 ecode2 = SWIG_AsVal_int(obj1, &val2);
9330 if (!SWIG_IsOK(ecode2)) {
9331 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
9332 }
9333 arg2 = static_cast< int >(val2);
9334 if (obj2) {
9335 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9336 if (!SWIG_IsOK(ecode3)) {
9337 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetSelection" "', expected argument " "3"" of type '" "bool""'");
9338 }
9339 arg3 = static_cast< bool >(val3);
9340 }
9341 {
9342 PyThreadState* __tstate = wxPyBeginAllowThreads();
9343 (arg1)->SetSelection(arg2,arg3);
9344 wxPyEndAllowThreads(__tstate);
9345 if (PyErr_Occurred()) SWIG_fail;
9346 }
9347 resultobj = SWIG_Py_Void();
9348 return resultobj;
9349fail:
9350 return NULL;
9351}
9352
9353
9354SWIGINTERN PyObject *_wrap_ListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9355 PyObject *resultobj = 0;
9356 wxListBox *arg1 = (wxListBox *) 0 ;
9357 int arg2 ;
9358 void *argp1 = 0 ;
9359 int res1 = 0 ;
9360 int val2 ;
9361 int ecode2 = 0 ;
9362 PyObject * obj0 = 0 ;
9363 PyObject * obj1 = 0 ;
9364 char * kwnames[] = {
9365 (char *) "self",(char *) "n", NULL
9366 };
9367
9368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) SWIG_fail;
9369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9370 if (!SWIG_IsOK(res1)) {
9371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Select" "', expected argument " "1"" of type '" "wxListBox *""'");
9372 }
9373 arg1 = reinterpret_cast< wxListBox * >(argp1);
9374 ecode2 = SWIG_AsVal_int(obj1, &val2);
9375 if (!SWIG_IsOK(ecode2)) {
9376 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Select" "', expected argument " "2"" of type '" "int""'");
9377 }
9378 arg2 = static_cast< int >(val2);
9379 {
9380 PyThreadState* __tstate = wxPyBeginAllowThreads();
9381 (arg1)->Select(arg2);
9382 wxPyEndAllowThreads(__tstate);
9383 if (PyErr_Occurred()) SWIG_fail;
9384 }
9385 resultobj = SWIG_Py_Void();
9386 return resultobj;
9387fail:
9388 return NULL;
9389}
9390
9391
9392SWIGINTERN PyObject *_wrap_ListBox_Deselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9393 PyObject *resultobj = 0;
9394 wxListBox *arg1 = (wxListBox *) 0 ;
9395 int arg2 ;
9396 void *argp1 = 0 ;
9397 int res1 = 0 ;
9398 int val2 ;
9399 int ecode2 = 0 ;
9400 PyObject * obj0 = 0 ;
9401 PyObject * obj1 = 0 ;
9402 char * kwnames[] = {
9403 (char *) "self",(char *) "n", NULL
9404 };
9405
9406 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) SWIG_fail;
9407 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9408 if (!SWIG_IsOK(res1)) {
9409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Deselect" "', expected argument " "1"" of type '" "wxListBox *""'");
9410 }
9411 arg1 = reinterpret_cast< wxListBox * >(argp1);
9412 ecode2 = SWIG_AsVal_int(obj1, &val2);
9413 if (!SWIG_IsOK(ecode2)) {
9414 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Deselect" "', expected argument " "2"" of type '" "int""'");
9415 }
9416 arg2 = static_cast< int >(val2);
9417 {
9418 PyThreadState* __tstate = wxPyBeginAllowThreads();
9419 (arg1)->Deselect(arg2);
9420 wxPyEndAllowThreads(__tstate);
9421 if (PyErr_Occurred()) SWIG_fail;
9422 }
9423 resultobj = SWIG_Py_Void();
9424 return resultobj;
9425fail:
9426 return NULL;
9427}
9428
9429
9430SWIGINTERN PyObject *_wrap_ListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9431 PyObject *resultobj = 0;
9432 wxListBox *arg1 = (wxListBox *) 0 ;
9433 int arg2 = (int) -1 ;
9434 void *argp1 = 0 ;
9435 int res1 = 0 ;
9436 int val2 ;
9437 int ecode2 = 0 ;
9438 PyObject * obj0 = 0 ;
9439 PyObject * obj1 = 0 ;
9440 char * kwnames[] = {
9441 (char *) "self",(char *) "itemToLeaveSelected", NULL
9442 };
9443
9444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) SWIG_fail;
9445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9446 if (!SWIG_IsOK(res1)) {
9447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_DeselectAll" "', expected argument " "1"" of type '" "wxListBox *""'");
9448 }
9449 arg1 = reinterpret_cast< wxListBox * >(argp1);
9450 if (obj1) {
9451 ecode2 = SWIG_AsVal_int(obj1, &val2);
9452 if (!SWIG_IsOK(ecode2)) {
9453 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_DeselectAll" "', expected argument " "2"" of type '" "int""'");
9454 }
9455 arg2 = static_cast< int >(val2);
9456 }
9457 {
9458 PyThreadState* __tstate = wxPyBeginAllowThreads();
9459 (arg1)->DeselectAll(arg2);
9460 wxPyEndAllowThreads(__tstate);
9461 if (PyErr_Occurred()) SWIG_fail;
9462 }
9463 resultobj = SWIG_Py_Void();
9464 return resultobj;
9465fail:
9466 return NULL;
9467}
9468
9469
9470SWIGINTERN PyObject *_wrap_ListBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9471 PyObject *resultobj = 0;
9472 wxListBox *arg1 = (wxListBox *) 0 ;
9473 wxString *arg2 = 0 ;
9474 bool arg3 = (bool) true ;
9475 bool result;
9476 void *argp1 = 0 ;
9477 int res1 = 0 ;
9478 bool temp2 = false ;
9479 bool val3 ;
9480 int ecode3 = 0 ;
9481 PyObject * obj0 = 0 ;
9482 PyObject * obj1 = 0 ;
9483 PyObject * obj2 = 0 ;
9484 char * kwnames[] = {
9485 (char *) "self",(char *) "s",(char *) "select", NULL
9486 };
9487
9488 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9489 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9490 if (!SWIG_IsOK(res1)) {
9491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetStringSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9492 }
9493 arg1 = reinterpret_cast< wxListBox * >(argp1);
9494 {
9495 arg2 = wxString_in_helper(obj1);
9496 if (arg2 == NULL) SWIG_fail;
9497 temp2 = true;
9498 }
9499 if (obj2) {
9500 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9501 if (!SWIG_IsOK(ecode3)) {
9502 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetStringSelection" "', expected argument " "3"" of type '" "bool""'");
9503 }
9504 arg3 = static_cast< bool >(val3);
9505 }
9506 {
9507 PyThreadState* __tstate = wxPyBeginAllowThreads();
9508 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
9509 wxPyEndAllowThreads(__tstate);
9510 if (PyErr_Occurred()) SWIG_fail;
9511 }
9512 {
9513 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9514 }
9515 {
9516 if (temp2)
9517 delete arg2;
9518 }
9519 return resultobj;
9520fail:
9521 {
9522 if (temp2)
9523 delete arg2;
9524 }
9525 return NULL;
d14a1e28
RD
9526}
9527
9528
0085ce49
RD
9529SWIGINTERN PyObject *_wrap_ListBox_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9530 PyObject *resultobj = 0;
9531 wxListBox *arg1 = (wxListBox *) 0 ;
9532 PyObject *result = 0 ;
9533 void *argp1 = 0 ;
9534 int res1 = 0 ;
9535 PyObject *swig_obj[1] ;
9536
9537 if (!args) SWIG_fail;
9538 swig_obj[0] = args;
9539 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9540 if (!SWIG_IsOK(res1)) {
9541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_GetSelections" "', expected argument " "1"" of type '" "wxListBox *""'");
9542 }
9543 arg1 = reinterpret_cast< wxListBox * >(argp1);
9544 {
9545 PyThreadState* __tstate = wxPyBeginAllowThreads();
9546 result = (PyObject *)wxListBox_GetSelections(arg1);
9547 wxPyEndAllowThreads(__tstate);
9548 if (PyErr_Occurred()) SWIG_fail;
9549 }
9550 resultobj = result;
9551 return resultobj;
9552fail:
9553 return NULL;
9554}
9555
9556
9557SWIGINTERN PyObject *_wrap_ListBox_SetFirstItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9558 PyObject *resultobj = 0;
9559 wxListBox *arg1 = (wxListBox *) 0 ;
9560 int arg2 ;
9561 void *argp1 = 0 ;
9562 int res1 = 0 ;
9563 int val2 ;
9564 int ecode2 = 0 ;
9565 PyObject * obj0 = 0 ;
9566 PyObject * obj1 = 0 ;
9567 char * kwnames[] = {
9568 (char *) "self",(char *) "n", NULL
9569 };
9570
9571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) SWIG_fail;
9572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9573 if (!SWIG_IsOK(res1)) {
9574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItem" "', expected argument " "1"" of type '" "wxListBox *""'");
9575 }
9576 arg1 = reinterpret_cast< wxListBox * >(argp1);
9577 ecode2 = SWIG_AsVal_int(obj1, &val2);
9578 if (!SWIG_IsOK(ecode2)) {
9579 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetFirstItem" "', expected argument " "2"" of type '" "int""'");
9580 }
9581 arg2 = static_cast< int >(val2);
9582 {
9583 PyThreadState* __tstate = wxPyBeginAllowThreads();
9584 (arg1)->SetFirstItem(arg2);
9585 wxPyEndAllowThreads(__tstate);
9586 if (PyErr_Occurred()) SWIG_fail;
9587 }
9588 resultobj = SWIG_Py_Void();
9589 return resultobj;
9590fail:
9591 return NULL;
9592}
9593
9594
9595SWIGINTERN PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9596 PyObject *resultobj = 0;
9597 wxListBox *arg1 = (wxListBox *) 0 ;
9598 wxString *arg2 = 0 ;
9599 void *argp1 = 0 ;
9600 int res1 = 0 ;
9601 bool temp2 = false ;
9602 PyObject * obj0 = 0 ;
9603 PyObject * obj1 = 0 ;
9604 char * kwnames[] = {
9605 (char *) "self",(char *) "s", NULL
9606 };
9607
9608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) SWIG_fail;
9609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9610 if (!SWIG_IsOK(res1)) {
9611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItemStr" "', expected argument " "1"" of type '" "wxListBox *""'");
9612 }
9613 arg1 = reinterpret_cast< wxListBox * >(argp1);
9614 {
9615 arg2 = wxString_in_helper(obj1);
9616 if (arg2 == NULL) SWIG_fail;
9617 temp2 = true;
9618 }
9619 {
9620 PyThreadState* __tstate = wxPyBeginAllowThreads();
9621 (arg1)->SetFirstItem((wxString const &)*arg2);
9622 wxPyEndAllowThreads(__tstate);
9623 if (PyErr_Occurred()) SWIG_fail;
9624 }
9625 resultobj = SWIG_Py_Void();
9626 {
9627 if (temp2)
9628 delete arg2;
9629 }
9630 return resultobj;
9631fail:
9632 {
9633 if (temp2)
9634 delete arg2;
9635 }
9636 return NULL;
9637}
9638
9639
9640SWIGINTERN PyObject *_wrap_ListBox_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9641 PyObject *resultobj = 0;
9642 wxListBox *arg1 = (wxListBox *) 0 ;
9643 int arg2 ;
9644 void *argp1 = 0 ;
9645 int res1 = 0 ;
9646 int val2 ;
9647 int ecode2 = 0 ;
9648 PyObject * obj0 = 0 ;
9649 PyObject * obj1 = 0 ;
9650 char * kwnames[] = {
9651 (char *) "self",(char *) "n", NULL
9652 };
9653
9654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9656 if (!SWIG_IsOK(res1)) {
9657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_EnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9658 }
9659 arg1 = reinterpret_cast< wxListBox * >(argp1);
9660 ecode2 = SWIG_AsVal_int(obj1, &val2);
9661 if (!SWIG_IsOK(ecode2)) {
9662 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_EnsureVisible" "', expected argument " "2"" of type '" "int""'");
9663 }
9664 arg2 = static_cast< int >(val2);
9665 {
9666 PyThreadState* __tstate = wxPyBeginAllowThreads();
9667 (arg1)->EnsureVisible(arg2);
9668 wxPyEndAllowThreads(__tstate);
9669 if (PyErr_Occurred()) SWIG_fail;
9670 }
9671 resultobj = SWIG_Py_Void();
9672 return resultobj;
9673fail:
9674 return NULL;
9675}
9676
9677
9678SWIGINTERN PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9679 PyObject *resultobj = 0;
9680 wxListBox *arg1 = (wxListBox *) 0 ;
9681 wxString *arg2 = 0 ;
9682 void *argp1 = 0 ;
9683 int res1 = 0 ;
9684 bool temp2 = false ;
9685 PyObject * obj0 = 0 ;
9686 PyObject * obj1 = 0 ;
9687 char * kwnames[] = {
9688 (char *) "self",(char *) "s", NULL
9689 };
9690
9691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9693 if (!SWIG_IsOK(res1)) {
9694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_AppendAndEnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9695 }
9696 arg1 = reinterpret_cast< wxListBox * >(argp1);
9697 {
9698 arg2 = wxString_in_helper(obj1);
9699 if (arg2 == NULL) SWIG_fail;
9700 temp2 = true;
9701 }
9702 {
9703 PyThreadState* __tstate = wxPyBeginAllowThreads();
9704 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
9705 wxPyEndAllowThreads(__tstate);
9706 if (PyErr_Occurred()) SWIG_fail;
9707 }
9708 resultobj = SWIG_Py_Void();
9709 {
9710 if (temp2)
9711 delete arg2;
9712 }
9713 return resultobj;
9714fail:
9715 {
9716 if (temp2)
9717 delete arg2;
9718 }
9719 return NULL;
d14a1e28
RD
9720}
9721
9722
0085ce49
RD
9723SWIGINTERN PyObject *_wrap_ListBox_IsSorted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9724 PyObject *resultobj = 0;
9725 wxListBox *arg1 = (wxListBox *) 0 ;
9726 bool result;
9727 void *argp1 = 0 ;
9728 int res1 = 0 ;
9729 PyObject *swig_obj[1] ;
9730
9731 if (!args) SWIG_fail;
9732 swig_obj[0] = args;
9733 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9734 if (!SWIG_IsOK(res1)) {
9735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSorted" "', expected argument " "1"" of type '" "wxListBox const *""'");
9736 }
9737 arg1 = reinterpret_cast< wxListBox * >(argp1);
9738 {
9739 PyThreadState* __tstate = wxPyBeginAllowThreads();
9740 result = (bool)((wxListBox const *)arg1)->IsSorted();
9741 wxPyEndAllowThreads(__tstate);
9742 if (PyErr_Occurred()) SWIG_fail;
9743 }
9744 {
9745 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9746 }
9747 return resultobj;
9748fail:
9749 return NULL;
9750}
9751
9752
9753SWIGINTERN PyObject *_wrap_ListBox_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9754 PyObject *resultobj = 0;
9755 wxListBox *arg1 = (wxListBox *) 0 ;
9756 wxPoint *arg2 = 0 ;
9757 int result;
9758 void *argp1 = 0 ;
9759 int res1 = 0 ;
9760 wxPoint temp2 ;
9761 PyObject * obj0 = 0 ;
9762 PyObject * obj1 = 0 ;
9763 char * kwnames[] = {
9764 (char *) "self",(char *) "pt", NULL
9765 };
9766
9767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
9768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9769 if (!SWIG_IsOK(res1)) {
9770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_HitTest" "', expected argument " "1"" of type '" "wxListBox const *""'");
9771 }
9772 arg1 = reinterpret_cast< wxListBox * >(argp1);
9773 {
9774 arg2 = &temp2;
9775 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9776 }
9777 {
9778 PyThreadState* __tstate = wxPyBeginAllowThreads();
9779 result = (int)((wxListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
9780 wxPyEndAllowThreads(__tstate);
9781 if (PyErr_Occurred()) SWIG_fail;
9782 }
9783 resultobj = SWIG_From_int(static_cast< int >(result));
9784 return resultobj;
9785fail:
9786 return NULL;
9787}
9788
9789
9790SWIGINTERN PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9791 PyObject *resultobj = 0;
9792 wxListBox *arg1 = (wxListBox *) 0 ;
9793 int arg2 ;
9794 wxColour *arg3 = 0 ;
9795 void *argp1 = 0 ;
9796 int res1 = 0 ;
9797 int val2 ;
9798 int ecode2 = 0 ;
9799 wxColour temp3 ;
9800 PyObject * obj0 = 0 ;
9801 PyObject * obj1 = 0 ;
9802 PyObject * obj2 = 0 ;
9803 char * kwnames[] = {
9804 (char *) "self",(char *) "item",(char *) "c", NULL
9805 };
9806
9807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9808 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9809 if (!SWIG_IsOK(res1)) {
9810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9811 }
9812 arg1 = reinterpret_cast< wxListBox * >(argp1);
9813 ecode2 = SWIG_AsVal_int(obj1, &val2);
9814 if (!SWIG_IsOK(ecode2)) {
9815 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "2"" of type '" "int""'");
9816 }
9817 arg2 = static_cast< int >(val2);
9818 {
9819 arg3 = &temp3;
9820 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9821 }
9822 {
9823 PyThreadState* __tstate = wxPyBeginAllowThreads();
9824 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
9825 wxPyEndAllowThreads(__tstate);
9826 if (PyErr_Occurred()) SWIG_fail;
9827 }
9828 resultobj = SWIG_Py_Void();
9829 return resultobj;
9830fail:
9831 return NULL;
9832}
9833
9834
9835SWIGINTERN PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9836 PyObject *resultobj = 0;
9837 wxListBox *arg1 = (wxListBox *) 0 ;
9838 int arg2 ;
9839 wxColour *arg3 = 0 ;
9840 void *argp1 = 0 ;
9841 int res1 = 0 ;
9842 int val2 ;
9843 int ecode2 = 0 ;
9844 wxColour temp3 ;
9845 PyObject * obj0 = 0 ;
9846 PyObject * obj1 = 0 ;
9847 PyObject * obj2 = 0 ;
9848 char * kwnames[] = {
9849 (char *) "self",(char *) "item",(char *) "c", NULL
9850 };
9851
9852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9853 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9854 if (!SWIG_IsOK(res1)) {
9855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9856 }
9857 arg1 = reinterpret_cast< wxListBox * >(argp1);
9858 ecode2 = SWIG_AsVal_int(obj1, &val2);
9859 if (!SWIG_IsOK(ecode2)) {
9860 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "2"" of type '" "int""'");
9861 }
9862 arg2 = static_cast< int >(val2);
9863 {
9864 arg3 = &temp3;
9865 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9866 }
9867 {
9868 PyThreadState* __tstate = wxPyBeginAllowThreads();
9869 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
9870 wxPyEndAllowThreads(__tstate);
9871 if (PyErr_Occurred()) SWIG_fail;
9872 }
9873 resultobj = SWIG_Py_Void();
9874 return resultobj;
9875fail:
9876 return NULL;
9877}
9878
9879
9880SWIGINTERN PyObject *_wrap_ListBox_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9881 PyObject *resultobj = 0;
9882 wxListBox *arg1 = (wxListBox *) 0 ;
9883 int arg2 ;
9884 wxFont *arg3 = 0 ;
9885 void *argp1 = 0 ;
9886 int res1 = 0 ;
9887 int val2 ;
9888 int ecode2 = 0 ;
9889 void *argp3 = 0 ;
9890 int res3 = 0 ;
9891 PyObject * obj0 = 0 ;
9892 PyObject * obj1 = 0 ;
9893 PyObject * obj2 = 0 ;
9894 char * kwnames[] = {
9895 (char *) "self",(char *) "item",(char *) "f", NULL
9896 };
9897
9898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9900 if (!SWIG_IsOK(res1)) {
9901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemFont" "', expected argument " "1"" of type '" "wxListBox *""'");
9902 }
9903 arg1 = reinterpret_cast< wxListBox * >(argp1);
9904 ecode2 = SWIG_AsVal_int(obj1, &val2);
9905 if (!SWIG_IsOK(ecode2)) {
9906 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemFont" "', expected argument " "2"" of type '" "int""'");
9907 }
9908 arg2 = static_cast< int >(val2);
9909 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
9910 if (!SWIG_IsOK(res3)) {
9911 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9912 }
9913 if (!argp3) {
9914 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9915 }
9916 arg3 = reinterpret_cast< wxFont * >(argp3);
9917 {
9918 PyThreadState* __tstate = wxPyBeginAllowThreads();
9919 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
9920 wxPyEndAllowThreads(__tstate);
9921 if (PyErr_Occurred()) SWIG_fail;
9922 }
9923 resultobj = SWIG_Py_Void();
9924 return resultobj;
9925fail:
9926 return NULL;
9927}
9928
9929
9930SWIGINTERN PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9931 PyObject *resultobj = 0;
9932 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
9933 SwigValueWrapper<wxVisualAttributes > result;
9934 int val1 ;
9935 int ecode1 = 0 ;
9936 PyObject * obj0 = 0 ;
9937 char * kwnames[] = {
9938 (char *) "variant", NULL
9939 };
9940
9941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
9942 if (obj0) {
9943 ecode1 = SWIG_AsVal_int(obj0, &val1);
9944 if (!SWIG_IsOK(ecode1)) {
9945 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
9946 }
9947 arg1 = static_cast< wxWindowVariant >(val1);
9948 }
9949 {
9950 if (!wxPyCheckForApp()) SWIG_fail;
9951 PyThreadState* __tstate = wxPyBeginAllowThreads();
9952 result = wxListBox::GetClassDefaultAttributes(arg1);
9953 wxPyEndAllowThreads(__tstate);
9954 if (PyErr_Occurred()) SWIG_fail;
9955 }
9956 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
9957 return resultobj;
9958fail:
9959 return NULL;
9960}
9961
9962
9963SWIGINTERN PyObject *ListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9964 PyObject *obj;
9965 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9966 SWIG_TypeNewClientData(SWIGTYPE_p_wxListBox, SWIG_NewClientData(obj));
9967 return SWIG_Py_Void();
9968}
9969
9970SWIGINTERN PyObject *ListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9971 return SWIG_Python_InitShadowInstance(args);
9972}
9973
9974SWIGINTERN PyObject *_wrap_new_CheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9975 PyObject *resultobj = 0;
9976 wxWindow *arg1 = (wxWindow *) 0 ;
9977 int arg2 = (int) -1 ;
9978 wxPoint const &arg3_defvalue = wxDefaultPosition ;
9979 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
9980 wxSize const &arg4_defvalue = wxDefaultSize ;
9981 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
9982 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
9983 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
9984 long arg6 = (long) 0 ;
9985 wxValidator const &arg7_defvalue = wxDefaultValidator ;
9986 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
9987 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
9988 wxString *arg8 = (wxString *) &arg8_defvalue ;
9989 wxCheckListBox *result = 0 ;
9990 void *argp1 = 0 ;
9991 int res1 = 0 ;
9992 int val2 ;
9993 int ecode2 = 0 ;
9994 wxPoint temp3 ;
9995 wxSize temp4 ;
9996 bool temp5 = false ;
9997 long val6 ;
9998 int ecode6 = 0 ;
9999 void *argp7 = 0 ;
10000 int res7 = 0 ;
10001 bool temp8 = false ;
10002 PyObject * obj0 = 0 ;
10003 PyObject * obj1 = 0 ;
10004 PyObject * obj2 = 0 ;
10005 PyObject * obj3 = 0 ;
10006 PyObject * obj4 = 0 ;
10007 PyObject * obj5 = 0 ;
10008 PyObject * obj6 = 0 ;
10009 PyObject * obj7 = 0 ;
10010 char * kwnames[] = {
10011 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10012 };
10013
10014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
10015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
10016 if (!SWIG_IsOK(res1)) {
10017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
10018 }
10019 arg1 = reinterpret_cast< wxWindow * >(argp1);
10020 if (obj1) {
10021 ecode2 = SWIG_AsVal_int(obj1, &val2);
10022 if (!SWIG_IsOK(ecode2)) {
10023 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckListBox" "', expected argument " "2"" of type '" "int""'");
10024 }
10025 arg2 = static_cast< int >(val2);
10026 }
10027 if (obj2) {
d14a1e28 10028 {
0085ce49
RD
10029 arg3 = &temp3;
10030 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 10031 }
0085ce49
RD
10032 }
10033 if (obj3) {
d14a1e28 10034 {
0085ce49
RD
10035 arg4 = &temp4;
10036 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 10037 }
0085ce49
RD
10038 }
10039 if (obj4) {
d14a1e28 10040 {
0085ce49
RD
10041 if (! PySequence_Check(obj4)) {
10042 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10043 SWIG_fail;
10044 }
10045 arg5 = new wxArrayString;
10046 temp5 = true;
10047 int i, len=PySequence_Length(obj4);
10048 for (i=0; i<len; i++) {
10049 PyObject* item = PySequence_GetItem(obj4, i);
10050 wxString* s = wxString_in_helper(item);
10051 if (PyErr_Occurred()) SWIG_fail;
10052 arg5->Add(*s);
10053 delete s;
10054 Py_DECREF(item);
10055 }
d14a1e28 10056 }
0085ce49
RD
10057 }
10058 if (obj5) {
10059 ecode6 = SWIG_AsVal_long(obj5, &val6);
10060 if (!SWIG_IsOK(ecode6)) {
10061 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckListBox" "', expected argument " "6"" of type '" "long""'");
10062 }
10063 arg6 = static_cast< long >(val6);
10064 }
10065 if (obj6) {
10066 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
10067 if (!SWIG_IsOK(res7)) {
10068 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4f89f6a3 10069 }
0085ce49
RD
10070 if (!argp7) {
10071 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 10072 }
0085ce49
RD
10073 arg7 = reinterpret_cast< wxValidator * >(argp7);
10074 }
10075 if (obj7) {
093d3ff1 10076 {
0085ce49
RD
10077 arg8 = wxString_in_helper(obj7);
10078 if (arg8 == NULL) SWIG_fail;
10079 temp8 = true;
093d3ff1 10080 }
0085ce49
RD
10081 }
10082 {
10083 if (!wxPyCheckForApp()) SWIG_fail;
10084 PyThreadState* __tstate = wxPyBeginAllowThreads();
10085 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10086 wxPyEndAllowThreads(__tstate);
10087 if (PyErr_Occurred()) SWIG_fail;
10088 }
10089 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_NEW | 0 );
10090 {
10091 if (temp5) delete arg5;
10092 }
10093 {
10094 if (temp8)
10095 delete arg8;
10096 }
10097 return resultobj;
10098fail:
10099 {
10100 if (temp5) delete arg5;
10101 }
10102 {
10103 if (temp8)
10104 delete arg8;
10105 }
10106 return NULL;
d14a1e28
RD
10107}
10108
10109
0085ce49
RD
10110SWIGINTERN PyObject *_wrap_new_PreCheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10111 PyObject *resultobj = 0;
10112 wxCheckListBox *result = 0 ;
10113
10114 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckListBox",0,0,0)) SWIG_fail;
10115 {
10116 if (!wxPyCheckForApp()) SWIG_fail;
10117 PyThreadState* __tstate = wxPyBeginAllowThreads();
10118 result = (wxCheckListBox *)new wxCheckListBox();
10119 wxPyEndAllowThreads(__tstate);
10120 if (PyErr_Occurred()) SWIG_fail;
10121 }
10122 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_OWN | 0 );
10123 return resultobj;
10124fail:
10125 return NULL;
10126}
10127
10128
10129SWIGINTERN PyObject *_wrap_CheckListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10130 PyObject *resultobj = 0;
10131 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10132 wxWindow *arg2 = (wxWindow *) 0 ;
10133 int arg3 = (int) -1 ;
10134 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10135 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10136 wxSize const &arg5_defvalue = wxDefaultSize ;
10137 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10138 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
10139 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
10140 long arg7 = (long) 0 ;
10141 wxValidator const &arg8_defvalue = wxDefaultValidator ;
10142 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
10143 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
10144 wxString *arg9 = (wxString *) &arg9_defvalue ;
10145 bool result;
10146 void *argp1 = 0 ;
10147 int res1 = 0 ;
10148 void *argp2 = 0 ;
10149 int res2 = 0 ;
10150 int val3 ;
10151 int ecode3 = 0 ;
10152 wxPoint temp4 ;
10153 wxSize temp5 ;
10154 bool temp6 = false ;
10155 long val7 ;
10156 int ecode7 = 0 ;
10157 void *argp8 = 0 ;
10158 int res8 = 0 ;
10159 bool temp9 = false ;
10160 PyObject * obj0 = 0 ;
10161 PyObject * obj1 = 0 ;
10162 PyObject * obj2 = 0 ;
10163 PyObject * obj3 = 0 ;
10164 PyObject * obj4 = 0 ;
10165 PyObject * obj5 = 0 ;
10166 PyObject * obj6 = 0 ;
10167 PyObject * obj7 = 0 ;
10168 PyObject * obj8 = 0 ;
10169 char * kwnames[] = {
10170 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10171 };
10172
10173 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
10174 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10175 if (!SWIG_IsOK(res1)) {
10176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Create" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10177 }
10178 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10179 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
10180 if (!SWIG_IsOK(res2)) {
10181 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
10182 }
10183 arg2 = reinterpret_cast< wxWindow * >(argp2);
10184 if (obj2) {
10185 ecode3 = SWIG_AsVal_int(obj2, &val3);
10186 if (!SWIG_IsOK(ecode3)) {
10187 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Create" "', expected argument " "3"" of type '" "int""'");
10188 }
10189 arg3 = static_cast< int >(val3);
10190 }
10191 if (obj3) {
22bfe96c 10192 {
0085ce49
RD
10193 arg4 = &temp4;
10194 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 10195 }
0085ce49
RD
10196 }
10197 if (obj4) {
d14a1e28 10198 {
0085ce49
RD
10199 arg5 = &temp5;
10200 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 10201 }
0085ce49
RD
10202 }
10203 if (obj5) {
d14a1e28 10204 {
0085ce49
RD
10205 if (! PySequence_Check(obj5)) {
10206 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10207 SWIG_fail;
10208 }
10209 arg6 = new wxArrayString;
10210 temp6 = true;
10211 int i, len=PySequence_Length(obj5);
10212 for (i=0; i<len; i++) {
10213 PyObject* item = PySequence_GetItem(obj5, i);
10214 wxString* s = wxString_in_helper(item);
10215 if (PyErr_Occurred()) SWIG_fail;
10216 arg6->Add(*s);
10217 delete s;
10218 Py_DECREF(item);
10219 }
d14a1e28 10220 }
0085ce49
RD
10221 }
10222 if (obj6) {
10223 ecode7 = SWIG_AsVal_long(obj6, &val7);
10224 if (!SWIG_IsOK(ecode7)) {
10225 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckListBox_Create" "', expected argument " "7"" of type '" "long""'");
10226 }
10227 arg7 = static_cast< long >(val7);
10228 }
10229 if (obj7) {
10230 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
10231 if (!SWIG_IsOK(res8)) {
10232 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 10233 }
0085ce49
RD
10234 if (!argp8) {
10235 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 10236 }
0085ce49
RD
10237 arg8 = reinterpret_cast< wxValidator * >(argp8);
10238 }
10239 if (obj8) {
d14a1e28 10240 {
0085ce49
RD
10241 arg9 = wxString_in_helper(obj8);
10242 if (arg9 == NULL) SWIG_fail;
10243 temp9 = true;
d14a1e28 10244 }
0085ce49
RD
10245 }
10246 {
10247 PyThreadState* __tstate = wxPyBeginAllowThreads();
10248 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
10249 wxPyEndAllowThreads(__tstate);
10250 if (PyErr_Occurred()) SWIG_fail;
10251 }
10252 {
10253 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10254 }
10255 {
10256 if (temp6) delete arg6;
10257 }
10258 {
10259 if (temp9)
10260 delete arg9;
10261 }
10262 return resultobj;
10263fail:
10264 {
10265 if (temp6) delete arg6;
10266 }
10267 {
10268 if (temp9)
10269 delete arg9;
10270 }
10271 return NULL;
10272}
10273
10274
10275SWIGINTERN PyObject *_wrap_CheckListBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10276 PyObject *resultobj = 0;
10277 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
50f151d7 10278 unsigned int arg2 ;
0085ce49
RD
10279 bool result;
10280 void *argp1 = 0 ;
10281 int res1 = 0 ;
50f151d7 10282 unsigned int val2 ;
0085ce49
RD
10283 int ecode2 = 0 ;
10284 PyObject * obj0 = 0 ;
10285 PyObject * obj1 = 0 ;
10286 char * kwnames[] = {
10287 (char *) "self",(char *) "index", NULL
10288 };
10289
10290 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail;
10291 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10292 if (!SWIG_IsOK(res1)) {
10293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10294 }
10295 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
50f151d7 10296 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
0085ce49 10297 if (!SWIG_IsOK(ecode2)) {
50f151d7 10298 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_IsChecked" "', expected argument " "2"" of type '" "unsigned int""'");
0085ce49 10299 }
50f151d7 10300 arg2 = static_cast< unsigned int >(val2);
0085ce49
RD
10301 {
10302 PyThreadState* __tstate = wxPyBeginAllowThreads();
10303 result = (bool)(arg1)->IsChecked(arg2);
10304 wxPyEndAllowThreads(__tstate);
10305 if (PyErr_Occurred()) SWIG_fail;
10306 }
10307 {
10308 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10309 }
10310 return resultobj;
10311fail:
10312 return NULL;
10313}
10314
10315
10316SWIGINTERN PyObject *_wrap_CheckListBox_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10317 PyObject *resultobj = 0;
10318 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
50f151d7 10319 unsigned int arg2 ;
0085ce49
RD
10320 int arg3 = (int) true ;
10321 void *argp1 = 0 ;
10322 int res1 = 0 ;
50f151d7 10323 unsigned int val2 ;
0085ce49
RD
10324 int ecode2 = 0 ;
10325 int val3 ;
10326 int ecode3 = 0 ;
10327 PyObject * obj0 = 0 ;
10328 PyObject * obj1 = 0 ;
10329 PyObject * obj2 = 0 ;
10330 char * kwnames[] = {
10331 (char *) "self",(char *) "index",(char *) "check", NULL
10332 };
10333
10334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10336 if (!SWIG_IsOK(res1)) {
10337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Check" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10338 }
10339 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
50f151d7 10340 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
0085ce49 10341 if (!SWIG_IsOK(ecode2)) {
50f151d7 10342 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_Check" "', expected argument " "2"" of type '" "unsigned int""'");
0085ce49 10343 }
50f151d7 10344 arg2 = static_cast< unsigned int >(val2);
0085ce49
RD
10345 if (obj2) {
10346 ecode3 = SWIG_AsVal_int(obj2, &val3);
10347 if (!SWIG_IsOK(ecode3)) {
10348 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Check" "', expected argument " "3"" of type '" "int""'");
10349 }
10350 arg3 = static_cast< int >(val3);
10351 }
10352 {
10353 PyThreadState* __tstate = wxPyBeginAllowThreads();
10354 (arg1)->Check(arg2,arg3);
10355 wxPyEndAllowThreads(__tstate);
10356 if (PyErr_Occurred()) SWIG_fail;
10357 }
10358 resultobj = SWIG_Py_Void();
10359 return resultobj;
10360fail:
10361 return NULL;
d14a1e28
RD
10362}
10363
10364
0085ce49
RD
10365SWIGINTERN PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10366 PyObject *resultobj = 0;
10367 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10368 int result;
10369 void *argp1 = 0 ;
10370 int res1 = 0 ;
10371 PyObject *swig_obj[1] ;
10372
10373 if (!args) SWIG_fail;
10374 swig_obj[0] = args;
10375 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10376 if (!SWIG_IsOK(res1)) {
10377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_GetItemHeight" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10378 }
10379 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10380 {
10381 PyThreadState* __tstate = wxPyBeginAllowThreads();
10382 result = (int)(arg1)->GetItemHeight();
10383 wxPyEndAllowThreads(__tstate);
10384 if (PyErr_Occurred()) SWIG_fail;
10385 }
10386 resultobj = SWIG_From_int(static_cast< int >(result));
10387 return resultobj;
10388fail:
10389 return NULL;
d14a1e28
RD
10390}
10391
10392
0085ce49
RD
10393SWIGINTERN PyObject *CheckListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10394 PyObject *obj;
10395 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10396 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckListBox, SWIG_NewClientData(obj));
10397 return SWIG_Py_Void();
d14a1e28
RD
10398}
10399
0085ce49
RD
10400SWIGINTERN PyObject *CheckListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10401 return SWIG_Python_InitShadowInstance(args);
943e8dfd
RD
10402}
10403
0085ce49
RD
10404SWIGINTERN int TextCtrlNameStr_set(PyObject *) {
10405 SWIG_Error(SWIG_AttributeError,"Variable TextCtrlNameStr is read-only.");
10406 return 1;
22bfe96c
RD
10407}
10408
10409
0085ce49
RD
10410SWIGINTERN PyObject *TextCtrlNameStr_get(void) {
10411 PyObject *pyobj = 0;
10412
10413 {
10414#if wxUSE_UNICODE
10415 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10416#else
10417 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10418#endif
10419 }
10420 return pyobj;
10421}
10422
10423
10424SWIGINTERN PyObject *_wrap_new_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10425 PyObject *resultobj = 0;
10426 wxColour const &arg1_defvalue = wxNullColour ;
10427 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
10428 wxColour const &arg2_defvalue = wxNullColour ;
10429 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
10430 wxFont const &arg3_defvalue = wxNullFont ;
10431 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
10432 wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ;
10433 wxTextAttr *result = 0 ;
10434 wxColour temp1 ;
10435 wxColour temp2 ;
10436 void *argp3 = 0 ;
10437 int res3 = 0 ;
10438 int val4 ;
10439 int ecode4 = 0 ;
10440 PyObject * obj0 = 0 ;
10441 PyObject * obj1 = 0 ;
10442 PyObject * obj2 = 0 ;
10443 PyObject * obj3 = 0 ;
10444 char * kwnames[] = {
10445 (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL
10446 };
10447
10448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10449 if (obj0) {
d14a1e28 10450 {
0085ce49
RD
10451 arg1 = &temp1;
10452 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
d14a1e28 10453 }
0085ce49
RD
10454 }
10455 if (obj1) {
d14a1e28 10456 {
0085ce49
RD
10457 arg2 = &temp2;
10458 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d14a1e28 10459 }
0085ce49
RD
10460 }
10461 if (obj2) {
10462 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
10463 if (!SWIG_IsOK(res3)) {
10464 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
d14a1e28 10465 }
0085ce49
RD
10466 if (!argp3) {
10467 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10468 }
10469 arg3 = reinterpret_cast< wxFont * >(argp3);
10470 }
10471 if (obj3) {
10472 ecode4 = SWIG_AsVal_int(obj3, &val4);
10473 if (!SWIG_IsOK(ecode4)) {
10474 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextAttr" "', expected argument " "4"" of type '" "wxTextAttrAlignment""'");
10475 }
10476 arg4 = static_cast< wxTextAttrAlignment >(val4);
10477 }
10478 {
10479 PyThreadState* __tstate = wxPyBeginAllowThreads();
10480 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,arg4);
10481 wxPyEndAllowThreads(__tstate);
10482 if (PyErr_Occurred()) SWIG_fail;
10483 }
10484 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_NEW | 0 );
10485 return resultobj;
10486fail:
10487 return NULL;
d14a1e28
RD
10488}
10489
10490
0085ce49
RD
10491SWIGINTERN PyObject *_wrap_delete_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10492 PyObject *resultobj = 0;
10493 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10494 void *argp1 = 0 ;
10495 int res1 = 0 ;
10496 PyObject *swig_obj[1] ;
10497
10498 if (!args) SWIG_fail;
10499 swig_obj[0] = args;
10500 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, SWIG_POINTER_DISOWN | 0 );
10501 if (!SWIG_IsOK(res1)) {
10502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TextAttr" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10503 }
10504 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10505 {
10506 PyThreadState* __tstate = wxPyBeginAllowThreads();
10507 delete arg1;
d14a1e28 10508
0085ce49
RD
10509 wxPyEndAllowThreads(__tstate);
10510 if (PyErr_Occurred()) SWIG_fail;
10511 }
10512 resultobj = SWIG_Py_Void();
10513 return resultobj;
10514fail:
10515 return NULL;
d14a1e28
RD
10516}
10517
10518
0085ce49
RD
10519SWIGINTERN PyObject *_wrap_TextAttr_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10520 PyObject *resultobj = 0;
10521 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10522 void *argp1 = 0 ;
10523 int res1 = 0 ;
10524 PyObject *swig_obj[1] ;
10525
10526 if (!args) SWIG_fail;
10527 swig_obj[0] = args;
10528 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10529 if (!SWIG_IsOK(res1)) {
10530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Init" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10531 }
10532 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10533 {
10534 PyThreadState* __tstate = wxPyBeginAllowThreads();
10535 (arg1)->Init();
10536 wxPyEndAllowThreads(__tstate);
10537 if (PyErr_Occurred()) SWIG_fail;
10538 }
10539 resultobj = SWIG_Py_Void();
10540 return resultobj;
10541fail:
10542 return NULL;
10543}
10544
10545
01f6b6d3
RD
10546SWIGINTERN PyObject *_wrap_TextAttr_Merge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10547 PyObject *resultobj = 0;
10548 wxTextAttr *arg1 = 0 ;
10549 wxTextAttr *arg2 = 0 ;
10550 wxTextAttr result;
10551 void *argp1 = 0 ;
10552 int res1 = 0 ;
10553 void *argp2 = 0 ;
10554 int res2 = 0 ;
10555 PyObject * obj0 = 0 ;
10556 PyObject * obj1 = 0 ;
10557 char * kwnames[] = {
10558 (char *) "base",(char *) "overlay", NULL
10559 };
10560
10561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_Merge",kwnames,&obj0,&obj1)) SWIG_fail;
10562 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
10563 if (!SWIG_IsOK(res1)) {
10564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10565 }
10566 if (!argp1) {
10567 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10568 }
10569 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10570 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
10571 if (!SWIG_IsOK(res2)) {
10572 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10573 }
10574 if (!argp2) {
10575 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10576 }
10577 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
10578 {
10579 PyThreadState* __tstate = wxPyBeginAllowThreads();
10580 result = wxTextAttr::Merge((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2);
10581 wxPyEndAllowThreads(__tstate);
10582 if (PyErr_Occurred()) SWIG_fail;
10583 }
10584 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
10585 return resultobj;
10586fail:
10587 return NULL;
10588}
10589
10590
0085ce49
RD
10591SWIGINTERN PyObject *_wrap_TextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10592 PyObject *resultobj = 0;
10593 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10594 wxColour *arg2 = 0 ;
10595 void *argp1 = 0 ;
10596 int res1 = 0 ;
10597 wxColour temp2 ;
10598 PyObject * obj0 = 0 ;
10599 PyObject * obj1 = 0 ;
10600 char * kwnames[] = {
10601 (char *) "self",(char *) "colText", NULL
10602 };
10603
10604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
10605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10606 if (!SWIG_IsOK(res1)) {
10607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10608 }
10609 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10610 {
10611 arg2 = &temp2;
10612 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10613 }
10614 {
10615 PyThreadState* __tstate = wxPyBeginAllowThreads();
10616 (arg1)->SetTextColour((wxColour const &)*arg2);
10617 wxPyEndAllowThreads(__tstate);
10618 if (PyErr_Occurred()) SWIG_fail;
10619 }
10620 resultobj = SWIG_Py_Void();
10621 return resultobj;
10622fail:
10623 return NULL;
10624}
10625
10626
10627SWIGINTERN PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10628 PyObject *resultobj = 0;
10629 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10630 wxColour *arg2 = 0 ;
10631 void *argp1 = 0 ;
10632 int res1 = 0 ;
10633 wxColour temp2 ;
10634 PyObject * obj0 = 0 ;
10635 PyObject * obj1 = 0 ;
10636 char * kwnames[] = {
10637 (char *) "self",(char *) "colBack", NULL
10638 };
10639
10640 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
10641 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10642 if (!SWIG_IsOK(res1)) {
10643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10644 }
10645 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10646 {
10647 arg2 = &temp2;
10648 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10649 }
10650 {
10651 PyThreadState* __tstate = wxPyBeginAllowThreads();
10652 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
10653 wxPyEndAllowThreads(__tstate);
10654 if (PyErr_Occurred()) SWIG_fail;
10655 }
10656 resultobj = SWIG_Py_Void();
10657 return resultobj;
10658fail:
10659 return NULL;
10660}
10661
10662
10663SWIGINTERN PyObject *_wrap_TextAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10664 PyObject *resultobj = 0;
10665 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10666 wxFont *arg2 = 0 ;
10667 long arg3 = (long) wxTEXT_ATTR_FONT ;
10668 void *argp1 = 0 ;
10669 int res1 = 0 ;
10670 void *argp2 = 0 ;
10671 int res2 = 0 ;
10672 long val3 ;
10673 int ecode3 = 0 ;
10674 PyObject * obj0 = 0 ;
10675 PyObject * obj1 = 0 ;
10676 PyObject * obj2 = 0 ;
10677 char * kwnames[] = {
10678 (char *) "self",(char *) "font",(char *) "flags", NULL
10679 };
10680
10681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10683 if (!SWIG_IsOK(res1)) {
10684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFont" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10685 }
10686 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10687 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
10688 if (!SWIG_IsOK(res2)) {
10689 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10690 }
10691 if (!argp2) {
10692 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10693 }
10694 arg2 = reinterpret_cast< wxFont * >(argp2);
10695 if (obj2) {
10696 ecode3 = SWIG_AsVal_long(obj2, &val3);
10697 if (!SWIG_IsOK(ecode3)) {
10698 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetFont" "', expected argument " "3"" of type '" "long""'");
10699 }
10700 arg3 = static_cast< long >(val3);
10701 }
10702 {
10703 PyThreadState* __tstate = wxPyBeginAllowThreads();
10704 (arg1)->SetFont((wxFont const &)*arg2,arg3);
10705 wxPyEndAllowThreads(__tstate);
10706 if (PyErr_Occurred()) SWIG_fail;
10707 }
10708 resultobj = SWIG_Py_Void();
10709 return resultobj;
10710fail:
10711 return NULL;
10712}
10713
10714
10715SWIGINTERN PyObject *_wrap_TextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10716 PyObject *resultobj = 0;
10717 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10718 wxTextAttrAlignment arg2 ;
10719 void *argp1 = 0 ;
10720 int res1 = 0 ;
10721 int val2 ;
10722 int ecode2 = 0 ;
10723 PyObject * obj0 = 0 ;
10724 PyObject * obj1 = 0 ;
10725 char * kwnames[] = {
10726 (char *) "self",(char *) "alignment", NULL
10727 };
10728
10729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail;
10730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10731 if (!SWIG_IsOK(res1)) {
10732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10733 }
10734 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10735 ecode2 = SWIG_AsVal_int(obj1, &val2);
10736 if (!SWIG_IsOK(ecode2)) {
10737 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
10738 }
10739 arg2 = static_cast< wxTextAttrAlignment >(val2);
10740 {
10741 PyThreadState* __tstate = wxPyBeginAllowThreads();
10742 (arg1)->SetAlignment(arg2);
10743 wxPyEndAllowThreads(__tstate);
10744 if (PyErr_Occurred()) SWIG_fail;
10745 }
10746 resultobj = SWIG_Py_Void();
10747 return resultobj;
10748fail:
10749 return NULL;
10750}
10751
10752
10753SWIGINTERN PyObject *_wrap_TextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10754 PyObject *resultobj = 0;
10755 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10756 wxArrayInt *arg2 = 0 ;
10757 void *argp1 = 0 ;
10758 int res1 = 0 ;
10759 bool temp2 = false ;
10760 PyObject * obj0 = 0 ;
10761 PyObject * obj1 = 0 ;
10762 char * kwnames[] = {
10763 (char *) "self",(char *) "tabs", NULL
10764 };
10765
10766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail;
10767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10768 if (!SWIG_IsOK(res1)) {
10769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTabs" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10770 }
10771 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10772 {
10773 if (! PySequence_Check(obj1)) {
10774 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10775 SWIG_fail;
10776 }
10777 arg2 = new wxArrayInt;
10778 temp2 = true;
10779 int i, len=PySequence_Length(obj1);
10780 for (i=0; i<len; i++) {
10781 PyObject* item = PySequence_GetItem(obj1, i);
10782 PyObject* number = PyNumber_Int(item);
10783 arg2->Add(PyInt_AS_LONG(number));
10784 Py_DECREF(item);
10785 Py_DECREF(number);
d14a1e28 10786 }
0085ce49
RD
10787 }
10788 {
10789 PyThreadState* __tstate = wxPyBeginAllowThreads();
10790 (arg1)->SetTabs((wxArrayInt const &)*arg2);
10791 wxPyEndAllowThreads(__tstate);
10792 if (PyErr_Occurred()) SWIG_fail;
10793 }
10794 resultobj = SWIG_Py_Void();
10795 {
10796 if (temp2) delete arg2;
10797 }
10798 return resultobj;
10799fail:
10800 {
10801 if (temp2) delete arg2;
10802 }
10803 return NULL;
10804}
10805
10806
10807SWIGINTERN PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10808 PyObject *resultobj = 0;
10809 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10810 int arg2 ;
10811 int arg3 = (int) 0 ;
10812 void *argp1 = 0 ;
10813 int res1 = 0 ;
10814 int val2 ;
10815 int ecode2 = 0 ;
10816 int val3 ;
10817 int ecode3 = 0 ;
10818 PyObject * obj0 = 0 ;
10819 PyObject * obj1 = 0 ;
10820 PyObject * obj2 = 0 ;
10821 char * kwnames[] = {
10822 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
10823 };
10824
10825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10827 if (!SWIG_IsOK(res1)) {
10828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10829 }
10830 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10831 ecode2 = SWIG_AsVal_int(obj1, &val2);
10832 if (!SWIG_IsOK(ecode2)) {
10833 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'");
10834 }
10835 arg2 = static_cast< int >(val2);
10836 if (obj2) {
10837 ecode3 = SWIG_AsVal_int(obj2, &val3);
10838 if (!SWIG_IsOK(ecode3)) {
10839 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'");
10840 }
10841 arg3 = static_cast< int >(val3);
10842 }
10843 {
10844 PyThreadState* __tstate = wxPyBeginAllowThreads();
10845 (arg1)->SetLeftIndent(arg2,arg3);
10846 wxPyEndAllowThreads(__tstate);
10847 if (PyErr_Occurred()) SWIG_fail;
10848 }
10849 resultobj = SWIG_Py_Void();
10850 return resultobj;
10851fail:
10852 return NULL;
10853}
10854
10855
10856SWIGINTERN PyObject *_wrap_TextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10857 PyObject *resultobj = 0;
10858 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10859 int arg2 ;
10860 void *argp1 = 0 ;
10861 int res1 = 0 ;
10862 int val2 ;
10863 int ecode2 = 0 ;
10864 PyObject * obj0 = 0 ;
10865 PyObject * obj1 = 0 ;
10866 char * kwnames[] = {
10867 (char *) "self",(char *) "indent", NULL
10868 };
10869
10870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail;
10871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10872 if (!SWIG_IsOK(res1)) {
10873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10874 }
10875 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10876 ecode2 = SWIG_AsVal_int(obj1, &val2);
10877 if (!SWIG_IsOK(ecode2)) {
10878 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'");
10879 }
10880 arg2 = static_cast< int >(val2);
10881 {
10882 PyThreadState* __tstate = wxPyBeginAllowThreads();
10883 (arg1)->SetRightIndent(arg2);
10884 wxPyEndAllowThreads(__tstate);
10885 if (PyErr_Occurred()) SWIG_fail;
10886 }
10887 resultobj = SWIG_Py_Void();
10888 return resultobj;
10889fail:
10890 return NULL;
10891}
10892
10893
10894SWIGINTERN PyObject *_wrap_TextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10895 PyObject *resultobj = 0;
10896 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10897 long arg2 ;
10898 void *argp1 = 0 ;
10899 int res1 = 0 ;
10900 long val2 ;
10901 int ecode2 = 0 ;
10902 PyObject * obj0 = 0 ;
10903 PyObject * obj1 = 0 ;
10904 char * kwnames[] = {
10905 (char *) "self",(char *) "flags", NULL
10906 };
10907
10908 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
10909 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10910 if (!SWIG_IsOK(res1)) {
10911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFlags" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10912 }
10913 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10914 ecode2 = SWIG_AsVal_long(obj1, &val2);
10915 if (!SWIG_IsOK(ecode2)) {
10916 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'");
10917 }
10918 arg2 = static_cast< long >(val2);
10919 {
10920 PyThreadState* __tstate = wxPyBeginAllowThreads();
10921 (arg1)->SetFlags(arg2);
10922 wxPyEndAllowThreads(__tstate);
10923 if (PyErr_Occurred()) SWIG_fail;
10924 }
10925 resultobj = SWIG_Py_Void();
10926 return resultobj;
10927fail:
10928 return NULL;
d14a1e28
RD
10929}
10930
10931
0085ce49
RD
10932SWIGINTERN PyObject *_wrap_TextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10933 PyObject *resultobj = 0;
10934 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10935 bool result;
10936 void *argp1 = 0 ;
10937 int res1 = 0 ;
10938 PyObject *swig_obj[1] ;
10939
10940 if (!args) SWIG_fail;
10941 swig_obj[0] = args;
10942 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10943 if (!SWIG_IsOK(res1)) {
10944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10945 }
10946 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10947 {
10948 PyThreadState* __tstate = wxPyBeginAllowThreads();
10949 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
10950 wxPyEndAllowThreads(__tstate);
10951 if (PyErr_Occurred()) SWIG_fail;
10952 }
10953 {
10954 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10955 }
10956 return resultobj;
10957fail:
10958 return NULL;
d14a1e28
RD
10959}
10960
10961
0085ce49
RD
10962SWIGINTERN PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10963 PyObject *resultobj = 0;
10964 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10965 bool result;
10966 void *argp1 = 0 ;
10967 int res1 = 0 ;
10968 PyObject *swig_obj[1] ;
10969
10970 if (!args) SWIG_fail;
10971 swig_obj[0] = args;
10972 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10973 if (!SWIG_IsOK(res1)) {
10974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10975 }
10976 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10977 {
10978 PyThreadState* __tstate = wxPyBeginAllowThreads();
10979 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
10980 wxPyEndAllowThreads(__tstate);
10981 if (PyErr_Occurred()) SWIG_fail;
10982 }
10983 {
10984 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10985 }
10986 return resultobj;
10987fail:
10988 return NULL;
d14a1e28
RD
10989}
10990
10991
0085ce49
RD
10992SWIGINTERN PyObject *_wrap_TextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10993 PyObject *resultobj = 0;
10994 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10995 bool result;
10996 void *argp1 = 0 ;
10997 int res1 = 0 ;
10998 PyObject *swig_obj[1] ;
10999
11000 if (!args) SWIG_fail;
11001 swig_obj[0] = args;
11002 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11003 if (!SWIG_IsOK(res1)) {
11004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11005 }
11006 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11007 {
11008 PyThreadState* __tstate = wxPyBeginAllowThreads();
11009 result = (bool)((wxTextAttr const *)arg1)->HasFont();
11010 wxPyEndAllowThreads(__tstate);
11011 if (PyErr_Occurred()) SWIG_fail;
11012 }
11013 {
11014 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11015 }
11016 return resultobj;
11017fail:
11018 return NULL;
d14a1e28
RD
11019}
11020
11021
0085ce49
RD
11022SWIGINTERN PyObject *_wrap_TextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11023 PyObject *resultobj = 0;
11024 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11025 bool result;
11026 void *argp1 = 0 ;
11027 int res1 = 0 ;
11028 PyObject *swig_obj[1] ;
11029
11030 if (!args) SWIG_fail;
11031 swig_obj[0] = args;
11032 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11033 if (!SWIG_IsOK(res1)) {
11034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11035 }
11036 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11037 {
11038 PyThreadState* __tstate = wxPyBeginAllowThreads();
11039 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
11040 wxPyEndAllowThreads(__tstate);
11041 if (PyErr_Occurred()) SWIG_fail;
11042 }
11043 {
11044 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11045 }
11046 return resultobj;
11047fail:
11048 return NULL;
22bfe96c
RD
11049}
11050
11051
0085ce49
RD
11052SWIGINTERN PyObject *_wrap_TextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11053 PyObject *resultobj = 0;
11054 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11055 bool result;
11056 void *argp1 = 0 ;
11057 int res1 = 0 ;
11058 PyObject *swig_obj[1] ;
11059
11060 if (!args) SWIG_fail;
11061 swig_obj[0] = args;
11062 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11063 if (!SWIG_IsOK(res1)) {
11064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11065 }
11066 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11067 {
11068 PyThreadState* __tstate = wxPyBeginAllowThreads();
11069 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
11070 wxPyEndAllowThreads(__tstate);
11071 if (PyErr_Occurred()) SWIG_fail;
11072 }
11073 {
11074 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11075 }
11076 return resultobj;
11077fail:
11078 return NULL;
b2dc1044
RD
11079}
11080
11081
0085ce49
RD
11082SWIGINTERN PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11083 PyObject *resultobj = 0;
11084 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11085 bool result;
11086 void *argp1 = 0 ;
11087 int res1 = 0 ;
11088 PyObject *swig_obj[1] ;
11089
11090 if (!args) SWIG_fail;
11091 swig_obj[0] = args;
11092 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11093 if (!SWIG_IsOK(res1)) {
11094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11095 }
11096 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11097 {
11098 PyThreadState* __tstate = wxPyBeginAllowThreads();
11099 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
11100 wxPyEndAllowThreads(__tstate);
11101 if (PyErr_Occurred()) SWIG_fail;
11102 }
11103 {
11104 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11105 }
11106 return resultobj;
11107fail:
11108 return NULL;
d14a1e28
RD
11109}
11110
11111
0085ce49
RD
11112SWIGINTERN PyObject *_wrap_TextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11113 PyObject *resultobj = 0;
11114 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11115 bool result;
11116 void *argp1 = 0 ;
11117 int res1 = 0 ;
11118 PyObject *swig_obj[1] ;
11119
11120 if (!args) SWIG_fail;
11121 swig_obj[0] = args;
11122 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11123 if (!SWIG_IsOK(res1)) {
11124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11125 }
11126 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11127 {
11128 PyThreadState* __tstate = wxPyBeginAllowThreads();
11129 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
11130 wxPyEndAllowThreads(__tstate);
11131 if (PyErr_Occurred()) SWIG_fail;
11132 }
11133 {
11134 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11135 }
11136 return resultobj;
11137fail:
11138 return NULL;
11139}
11140
11141
11142SWIGINTERN PyObject *_wrap_TextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11143 PyObject *resultobj = 0;
11144 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11145 long arg2 ;
11146 bool result;
11147 void *argp1 = 0 ;
11148 int res1 = 0 ;
11149 long val2 ;
11150 int ecode2 = 0 ;
11151 PyObject * obj0 = 0 ;
11152 PyObject * obj1 = 0 ;
11153 char * kwnames[] = {
11154 (char *) "self",(char *) "flag", NULL
11155 };
11156
11157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail;
11158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11159 if (!SWIG_IsOK(res1)) {
11160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFlag" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11161 }
11162 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11163 ecode2 = SWIG_AsVal_long(obj1, &val2);
11164 if (!SWIG_IsOK(ecode2)) {
11165 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'");
11166 }
11167 arg2 = static_cast< long >(val2);
11168 {
11169 PyThreadState* __tstate = wxPyBeginAllowThreads();
11170 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
11171 wxPyEndAllowThreads(__tstate);
11172 if (PyErr_Occurred()) SWIG_fail;
11173 }
11174 {
11175 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11176 }
11177 return resultobj;
11178fail:
11179 return NULL;
d14a1e28
RD
11180}
11181
11182
0085ce49
RD
11183SWIGINTERN PyObject *_wrap_TextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11184 PyObject *resultobj = 0;
11185 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11186 wxColour *result = 0 ;
11187 void *argp1 = 0 ;
11188 int res1 = 0 ;
11189 PyObject *swig_obj[1] ;
11190
11191 if (!args) SWIG_fail;
11192 swig_obj[0] = args;
11193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11194 if (!SWIG_IsOK(res1)) {
11195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11196 }
11197 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11198 {
11199 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 11200 {
0085ce49
RD
11201 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
11202 result = (wxColour *) &_result_ref;
d14a1e28 11203 }
0085ce49
RD
11204 wxPyEndAllowThreads(__tstate);
11205 if (PyErr_Occurred()) SWIG_fail;
11206 }
11207 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11208 return resultobj;
11209fail:
11210 return NULL;
d14a1e28
RD
11211}
11212
11213
0085ce49
RD
11214SWIGINTERN PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11215 PyObject *resultobj = 0;
11216 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11217 wxColour *result = 0 ;
11218 void *argp1 = 0 ;
11219 int res1 = 0 ;
11220 PyObject *swig_obj[1] ;
11221
11222 if (!args) SWIG_fail;
11223 swig_obj[0] = args;
11224 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11225 if (!SWIG_IsOK(res1)) {
11226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11227 }
11228 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11229 {
11230 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 11231 {
0085ce49
RD
11232 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
11233 result = (wxColour *) &_result_ref;
d14a1e28 11234 }
0085ce49
RD
11235 wxPyEndAllowThreads(__tstate);
11236 if (PyErr_Occurred()) SWIG_fail;
11237 }
11238 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11239 return resultobj;
11240fail:
11241 return NULL;
d14a1e28
RD
11242}
11243
11244
0085ce49
RD
11245SWIGINTERN PyObject *_wrap_TextAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11246 PyObject *resultobj = 0;
11247 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11248 wxFont *result = 0 ;
11249 void *argp1 = 0 ;
11250 int res1 = 0 ;
11251 PyObject *swig_obj[1] ;
11252
11253 if (!args) SWIG_fail;
11254 swig_obj[0] = args;
11255 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11256 if (!SWIG_IsOK(res1)) {
11257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11258 }
11259 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11260 {
11261 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 11262 {
0085ce49
RD
11263 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
11264 result = (wxFont *) &_result_ref;
d14a1e28 11265 }
0085ce49
RD
11266 wxPyEndAllowThreads(__tstate);
11267 if (PyErr_Occurred()) SWIG_fail;
11268 }
11269 {
11270 wxFont* resultptr = new wxFont(*result);
11271 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
11272 }
11273 return resultobj;
11274fail:
11275 return NULL;
d14a1e28
RD
11276}
11277
11278
0085ce49
RD
11279SWIGINTERN PyObject *_wrap_TextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11280 PyObject *resultobj = 0;
11281 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11282 wxTextAttrAlignment result;
11283 void *argp1 = 0 ;
11284 int res1 = 0 ;
11285 PyObject *swig_obj[1] ;
11286
11287 if (!args) SWIG_fail;
11288 swig_obj[0] = args;
11289 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11290 if (!SWIG_IsOK(res1)) {
11291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11292 }
11293 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11294 {
11295 PyThreadState* __tstate = wxPyBeginAllowThreads();
11296 result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment();
11297 wxPyEndAllowThreads(__tstate);
11298 if (PyErr_Occurred()) SWIG_fail;
11299 }
11300 resultobj = SWIG_From_int(static_cast< int >(result));
11301 return resultobj;
11302fail:
11303 return NULL;
d14a1e28
RD
11304}
11305
11306
0085ce49
RD
11307SWIGINTERN PyObject *_wrap_TextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11308 PyObject *resultobj = 0;
11309 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11310 wxArrayInt *result = 0 ;
11311 void *argp1 = 0 ;
11312 int res1 = 0 ;
11313 PyObject *swig_obj[1] ;
11314
11315 if (!args) SWIG_fail;
11316 swig_obj[0] = args;
11317 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11318 if (!SWIG_IsOK(res1)) {
11319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11320 }
11321 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11322 {
11323 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 11324 {
0085ce49
RD
11325 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
11326 result = (wxArrayInt *) &_result_ref;
d14a1e28 11327 }
0085ce49
RD
11328 wxPyEndAllowThreads(__tstate);
11329 if (PyErr_Occurred()) SWIG_fail;
11330 }
11331 {
11332 resultobj = PyList_New(0);
11333 size_t idx;
11334 for (idx = 0; idx < result->GetCount(); idx += 1) {
11335 PyObject* val = PyInt_FromLong( result->Item(idx) );
11336 PyList_Append(resultobj, val);
11337 Py_DECREF(val);
4f89f6a3 11338 }
0085ce49
RD
11339 }
11340 return resultobj;
11341fail:
11342 return NULL;
d14a1e28
RD
11343}
11344
11345
0085ce49
RD
11346SWIGINTERN PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11347 PyObject *resultobj = 0;
11348 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11349 long result;
11350 void *argp1 = 0 ;
11351 int res1 = 0 ;
11352 PyObject *swig_obj[1] ;
11353
11354 if (!args) SWIG_fail;
11355 swig_obj[0] = args;
11356 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11357 if (!SWIG_IsOK(res1)) {
11358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11359 }
11360 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11361 {
11362 PyThreadState* __tstate = wxPyBeginAllowThreads();
11363 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
11364 wxPyEndAllowThreads(__tstate);
11365 if (PyErr_Occurred()) SWIG_fail;
11366 }
11367 resultobj = SWIG_From_long(static_cast< long >(result));
11368 return resultobj;
11369fail:
11370 return NULL;
d14a1e28
RD
11371}
11372
11373
0085ce49
RD
11374SWIGINTERN PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11375 PyObject *resultobj = 0;
11376 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11377 long result;
11378 void *argp1 = 0 ;
11379 int res1 = 0 ;
11380 PyObject *swig_obj[1] ;
11381
11382 if (!args) SWIG_fail;
11383 swig_obj[0] = args;
11384 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11385 if (!SWIG_IsOK(res1)) {
11386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11387 }
11388 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11389 {
11390 PyThreadState* __tstate = wxPyBeginAllowThreads();
11391 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
11392 wxPyEndAllowThreads(__tstate);
11393 if (PyErr_Occurred()) SWIG_fail;
11394 }
11395 resultobj = SWIG_From_long(static_cast< long >(result));
11396 return resultobj;
11397fail:
11398 return NULL;
d14a1e28
RD
11399}
11400
11401
0085ce49
RD
11402SWIGINTERN PyObject *_wrap_TextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11403 PyObject *resultobj = 0;
11404 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11405 long result;
11406 void *argp1 = 0 ;
11407 int res1 = 0 ;
11408 PyObject *swig_obj[1] ;
11409
11410 if (!args) SWIG_fail;
11411 swig_obj[0] = args;
11412 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11413 if (!SWIG_IsOK(res1)) {
11414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11415 }
11416 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11417 {
11418 PyThreadState* __tstate = wxPyBeginAllowThreads();
11419 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
11420 wxPyEndAllowThreads(__tstate);
11421 if (PyErr_Occurred()) SWIG_fail;
11422 }
11423 resultobj = SWIG_From_long(static_cast< long >(result));
11424 return resultobj;
11425fail:
11426 return NULL;
d14a1e28
RD
11427}
11428
11429
0085ce49
RD
11430SWIGINTERN PyObject *_wrap_TextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11431 PyObject *resultobj = 0;
11432 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11433 long result;
11434 void *argp1 = 0 ;
11435 int res1 = 0 ;
11436 PyObject *swig_obj[1] ;
11437
11438 if (!args) SWIG_fail;
11439 swig_obj[0] = args;
11440 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11441 if (!SWIG_IsOK(res1)) {
11442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFlags" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11443 }
11444 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11445 {
11446 PyThreadState* __tstate = wxPyBeginAllowThreads();
11447 result = (long)((wxTextAttr const *)arg1)->GetFlags();
11448 wxPyEndAllowThreads(__tstate);
11449 if (PyErr_Occurred()) SWIG_fail;
11450 }
11451 resultobj = SWIG_From_long(static_cast< long >(result));
11452 return resultobj;
11453fail:
11454 return NULL;
d14a1e28
RD
11455}
11456
11457
0085ce49
RD
11458SWIGINTERN PyObject *_wrap_TextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11459 PyObject *resultobj = 0;
11460 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11461 bool result;
11462 void *argp1 = 0 ;
11463 int res1 = 0 ;
11464 PyObject *swig_obj[1] ;
11465
11466 if (!args) SWIG_fail;
11467 swig_obj[0] = args;
11468 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11469 if (!SWIG_IsOK(res1)) {
11470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_IsDefault" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11471 }
11472 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11473 {
11474 PyThreadState* __tstate = wxPyBeginAllowThreads();
11475 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
11476 wxPyEndAllowThreads(__tstate);
11477 if (PyErr_Occurred()) SWIG_fail;
11478 }
11479 {
11480 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11481 }
11482 return resultobj;
11483fail:
11484 return NULL;
11485}
11486
11487
11488SWIGINTERN PyObject *_wrap_TextAttr_Combine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11489 PyObject *resultobj = 0;
11490 wxTextAttr *arg1 = 0 ;
11491 wxTextAttr *arg2 = 0 ;
11492 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
11493 wxTextAttr result;
11494 void *argp1 = 0 ;
11495 int res1 = 0 ;
11496 void *argp2 = 0 ;
11497 int res2 = 0 ;
11498 void *argp3 = 0 ;
11499 int res3 = 0 ;
11500 PyObject * obj0 = 0 ;
11501 PyObject * obj1 = 0 ;
11502 PyObject * obj2 = 0 ;
11503 char * kwnames[] = {
11504 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
11505 };
11506
11507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11508 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
11509 if (!SWIG_IsOK(res1)) {
11510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11511 }
11512 if (!argp1) {
11513 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11514 }
11515 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11516 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
11517 if (!SWIG_IsOK(res2)) {
11518 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11519 }
11520 if (!argp2) {
11521 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11522 }
11523 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
11524 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11525 if (!SWIG_IsOK(res3)) {
11526 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextAttr_Combine" "', expected argument " "3"" of type '" "wxTextCtrl const *""'");
11527 }
11528 arg3 = reinterpret_cast< wxTextCtrl * >(argp3);
11529 {
11530 PyThreadState* __tstate = wxPyBeginAllowThreads();
11531 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
11532 wxPyEndAllowThreads(__tstate);
11533 if (PyErr_Occurred()) SWIG_fail;
11534 }
11535 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
11536 return resultobj;
11537fail:
11538 return NULL;
11539}
11540
11541
11542SWIGINTERN PyObject *TextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11543 PyObject *obj;
11544 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11545 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextAttr, SWIG_NewClientData(obj));
11546 return SWIG_Py_Void();
11547}
11548
11549SWIGINTERN PyObject *TextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11550 return SWIG_Python_InitShadowInstance(args);
11551}
11552
11553SWIGINTERN PyObject *_wrap_new_TextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11554 PyObject *resultobj = 0;
11555 wxWindow *arg1 = (wxWindow *) 0 ;
11556 int arg2 = (int) -1 ;
11557 wxString const &arg3_defvalue = wxPyEmptyString ;
11558 wxString *arg3 = (wxString *) &arg3_defvalue ;
11559 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11560 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11561 wxSize const &arg5_defvalue = wxDefaultSize ;
11562 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11563 long arg6 = (long) 0 ;
11564 wxValidator const &arg7_defvalue = wxDefaultValidator ;
11565 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
11566 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
11567 wxString *arg8 = (wxString *) &arg8_defvalue ;
11568 wxTextCtrl *result = 0 ;
11569 void *argp1 = 0 ;
11570 int res1 = 0 ;
11571 int val2 ;
11572 int ecode2 = 0 ;
11573 bool temp3 = false ;
11574 wxPoint temp4 ;
11575 wxSize temp5 ;
11576 long val6 ;
11577 int ecode6 = 0 ;
11578 void *argp7 = 0 ;
11579 int res7 = 0 ;
11580 bool temp8 = false ;
11581 PyObject * obj0 = 0 ;
11582 PyObject * obj1 = 0 ;
11583 PyObject * obj2 = 0 ;
11584 PyObject * obj3 = 0 ;
11585 PyObject * obj4 = 0 ;
11586 PyObject * obj5 = 0 ;
11587 PyObject * obj6 = 0 ;
11588 PyObject * obj7 = 0 ;
11589 char * kwnames[] = {
11590 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11591 };
11592
11593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
11594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
11595 if (!SWIG_IsOK(res1)) {
11596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
11597 }
11598 arg1 = reinterpret_cast< wxWindow * >(argp1);
11599 if (obj1) {
11600 ecode2 = SWIG_AsVal_int(obj1, &val2);
11601 if (!SWIG_IsOK(ecode2)) {
11602 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TextCtrl" "', expected argument " "2"" of type '" "int""'");
11603 }
11604 arg2 = static_cast< int >(val2);
11605 }
11606 if (obj2) {
4f89f6a3 11607 {
0085ce49
RD
11608 arg3 = wxString_in_helper(obj2);
11609 if (arg3 == NULL) SWIG_fail;
11610 temp3 = true;
4f89f6a3 11611 }
0085ce49
RD
11612 }
11613 if (obj3) {
d14a1e28 11614 {
0085ce49
RD
11615 arg4 = &temp4;
11616 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 11617 }
0085ce49
RD
11618 }
11619 if (obj4) {
d14a1e28 11620 {
0085ce49
RD
11621 arg5 = &temp5;
11622 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 11623 }
0085ce49
RD
11624 }
11625 if (obj5) {
11626 ecode6 = SWIG_AsVal_long(obj5, &val6);
11627 if (!SWIG_IsOK(ecode6)) {
11628 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_TextCtrl" "', expected argument " "6"" of type '" "long""'");
11629 }
11630 arg6 = static_cast< long >(val6);
11631 }
11632 if (obj6) {
11633 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
11634 if (!SWIG_IsOK(res7)) {
11635 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 11636 }
0085ce49
RD
11637 if (!argp7) {
11638 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
093d3ff1 11639 }
0085ce49
RD
11640 arg7 = reinterpret_cast< wxValidator * >(argp7);
11641 }
11642 if (obj7) {
d14a1e28 11643 {
0085ce49
RD
11644 arg8 = wxString_in_helper(obj7);
11645 if (arg8 == NULL) SWIG_fail;
11646 temp8 = true;
d14a1e28 11647 }
0085ce49
RD
11648 }
11649 {
11650 if (!wxPyCheckForApp()) SWIG_fail;
11651 PyThreadState* __tstate = wxPyBeginAllowThreads();
11652 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
11653 wxPyEndAllowThreads(__tstate);
11654 if (PyErr_Occurred()) SWIG_fail;
11655 }
11656 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_NEW | 0 );
11657 {
11658 if (temp3)
11659 delete arg3;
11660 }
11661 {
11662 if (temp8)
11663 delete arg8;
11664 }
11665 return resultobj;
11666fail:
11667 {
11668 if (temp3)
11669 delete arg3;
11670 }
11671 {
11672 if (temp8)
11673 delete arg8;
11674 }
11675 return NULL;
d14a1e28
RD
11676}
11677
11678
0085ce49
RD
11679SWIGINTERN PyObject *_wrap_new_PreTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11680 PyObject *resultobj = 0;
11681 wxTextCtrl *result = 0 ;
11682
11683 if (!SWIG_Python_UnpackTuple(args,"new_PreTextCtrl",0,0,0)) SWIG_fail;
11684 {
11685 if (!wxPyCheckForApp()) SWIG_fail;
11686 PyThreadState* __tstate = wxPyBeginAllowThreads();
11687 result = (wxTextCtrl *)new wxTextCtrl();
11688 wxPyEndAllowThreads(__tstate);
11689 if (PyErr_Occurred()) SWIG_fail;
11690 }
11691 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_OWN | 0 );
11692 return resultobj;
11693fail:
11694 return NULL;
11695}
11696
11697
11698SWIGINTERN PyObject *_wrap_TextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11699 PyObject *resultobj = 0;
11700 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11701 wxWindow *arg2 = (wxWindow *) 0 ;
11702 int arg3 = (int) -1 ;
11703 wxString const &arg4_defvalue = wxPyEmptyString ;
11704 wxString *arg4 = (wxString *) &arg4_defvalue ;
11705 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11706 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11707 wxSize const &arg6_defvalue = wxDefaultSize ;
11708 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11709 long arg7 = (long) 0 ;
11710 wxValidator const &arg8_defvalue = wxDefaultValidator ;
11711 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
11712 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
11713 wxString *arg9 = (wxString *) &arg9_defvalue ;
11714 bool result;
11715 void *argp1 = 0 ;
11716 int res1 = 0 ;
11717 void *argp2 = 0 ;
11718 int res2 = 0 ;
11719 int val3 ;
11720 int ecode3 = 0 ;
11721 bool temp4 = false ;
11722 wxPoint temp5 ;
11723 wxSize temp6 ;
11724 long val7 ;
11725 int ecode7 = 0 ;
11726 void *argp8 = 0 ;
11727 int res8 = 0 ;
11728 bool temp9 = false ;
11729 PyObject * obj0 = 0 ;
11730 PyObject * obj1 = 0 ;
11731 PyObject * obj2 = 0 ;
11732 PyObject * obj3 = 0 ;
11733 PyObject * obj4 = 0 ;
11734 PyObject * obj5 = 0 ;
11735 PyObject * obj6 = 0 ;
11736 PyObject * obj7 = 0 ;
11737 PyObject * obj8 = 0 ;
11738 char * kwnames[] = {
11739 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11740 };
11741
11742 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
11743 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11744 if (!SWIG_IsOK(res1)) {
11745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Create" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11746 }
11747 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11748 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11749 if (!SWIG_IsOK(res2)) {
11750 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
11751 }
11752 arg2 = reinterpret_cast< wxWindow * >(argp2);
11753 if (obj2) {
11754 ecode3 = SWIG_AsVal_int(obj2, &val3);
11755 if (!SWIG_IsOK(ecode3)) {
11756 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Create" "', expected argument " "3"" of type '" "int""'");
11757 }
11758 arg3 = static_cast< int >(val3);
11759 }
11760 if (obj3) {
d14a1e28 11761 {
0085ce49
RD
11762 arg4 = wxString_in_helper(obj3);
11763 if (arg4 == NULL) SWIG_fail;
11764 temp4 = true;
d14a1e28 11765 }
0085ce49
RD
11766 }
11767 if (obj4) {
d14a1e28 11768 {
0085ce49
RD
11769 arg5 = &temp5;
11770 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 11771 }
0085ce49
RD
11772 }
11773 if (obj5) {
d14a1e28 11774 {
0085ce49
RD
11775 arg6 = &temp6;
11776 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d14a1e28 11777 }
0085ce49
RD
11778 }
11779 if (obj6) {
11780 ecode7 = SWIG_AsVal_long(obj6, &val7);
11781 if (!SWIG_IsOK(ecode7)) {
11782 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "TextCtrl_Create" "', expected argument " "7"" of type '" "long""'");
11783 }
11784 arg7 = static_cast< long >(val7);
11785 }
11786 if (obj7) {
11787 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
11788 if (!SWIG_IsOK(res8)) {
11789 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 11790 }
0085ce49
RD
11791 if (!argp8) {
11792 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
093d3ff1 11793 }
0085ce49
RD
11794 arg8 = reinterpret_cast< wxValidator * >(argp8);
11795 }
11796 if (obj8) {
d14a1e28 11797 {
0085ce49
RD
11798 arg9 = wxString_in_helper(obj8);
11799 if (arg9 == NULL) SWIG_fail;
11800 temp9 = true;
d14a1e28 11801 }
0085ce49
RD
11802 }
11803 {
11804 PyThreadState* __tstate = wxPyBeginAllowThreads();
11805 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
11806 wxPyEndAllowThreads(__tstate);
11807 if (PyErr_Occurred()) SWIG_fail;
11808 }
11809 {
11810 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11811 }
11812 {
11813 if (temp4)
11814 delete arg4;
11815 }
11816 {
11817 if (temp9)
11818 delete arg9;
11819 }
11820 return resultobj;
11821fail:
11822 {
11823 if (temp4)
11824 delete arg4;
11825 }
11826 {
11827 if (temp9)
11828 delete arg9;
11829 }
11830 return NULL;
d14a1e28
RD
11831}
11832
11833
0085ce49
RD
11834SWIGINTERN PyObject *_wrap_TextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11835 PyObject *resultobj = 0;
11836 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11837 wxString result;
11838 void *argp1 = 0 ;
11839 int res1 = 0 ;
11840 PyObject *swig_obj[1] ;
11841
11842 if (!args) SWIG_fail;
11843 swig_obj[0] = args;
11844 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11845 if (!SWIG_IsOK(res1)) {
11846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetValue" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11847 }
11848 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11849 {
11850 PyThreadState* __tstate = wxPyBeginAllowThreads();
11851 result = ((wxTextCtrl const *)arg1)->GetValue();
11852 wxPyEndAllowThreads(__tstate);
11853 if (PyErr_Occurred()) SWIG_fail;
11854 }
11855 {
11856#if wxUSE_UNICODE
11857 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11858#else
11859 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11860#endif
11861 }
11862 return resultobj;
11863fail:
11864 return NULL;
11865}
11866
11867
11868SWIGINTERN PyObject *_wrap_TextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11869 PyObject *resultobj = 0;
11870 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11871 wxString *arg2 = 0 ;
11872 void *argp1 = 0 ;
11873 int res1 = 0 ;
11874 bool temp2 = false ;
11875 PyObject * obj0 = 0 ;
11876 PyObject * obj1 = 0 ;
11877 char * kwnames[] = {
11878 (char *) "self",(char *) "value", NULL
11879 };
11880
11881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
11882 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11883 if (!SWIG_IsOK(res1)) {
11884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11885 }
11886 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11887 {
11888 arg2 = wxString_in_helper(obj1);
11889 if (arg2 == NULL) SWIG_fail;
11890 temp2 = true;
11891 }
11892 {
11893 PyThreadState* __tstate = wxPyBeginAllowThreads();
11894 (arg1)->SetValue((wxString const &)*arg2);
11895 wxPyEndAllowThreads(__tstate);
11896 if (PyErr_Occurred()) SWIG_fail;
11897 }
11898 resultobj = SWIG_Py_Void();
11899 {
11900 if (temp2)
11901 delete arg2;
11902 }
11903 return resultobj;
11904fail:
11905 {
11906 if (temp2)
11907 delete arg2;
11908 }
11909 return NULL;
11910}
11911
11912
11913SWIGINTERN PyObject *_wrap_TextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11914 PyObject *resultobj = 0;
11915 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11916 long arg2 ;
11917 long arg3 ;
11918 wxString result;
11919 void *argp1 = 0 ;
11920 int res1 = 0 ;
11921 long val2 ;
11922 int ecode2 = 0 ;
11923 long val3 ;
11924 int ecode3 = 0 ;
11925 PyObject * obj0 = 0 ;
11926 PyObject * obj1 = 0 ;
11927 PyObject * obj2 = 0 ;
11928 char * kwnames[] = {
11929 (char *) "self",(char *) "_from",(char *) "to", NULL
11930 };
11931
11932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11934 if (!SWIG_IsOK(res1)) {
11935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetRange" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11936 }
11937 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11938 ecode2 = SWIG_AsVal_long(obj1, &val2);
11939 if (!SWIG_IsOK(ecode2)) {
11940 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'");
11941 }
11942 arg2 = static_cast< long >(val2);
11943 ecode3 = SWIG_AsVal_long(obj2, &val3);
11944 if (!SWIG_IsOK(ecode3)) {
11945 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'");
11946 }
11947 arg3 = static_cast< long >(val3);
11948 {
11949 PyThreadState* __tstate = wxPyBeginAllowThreads();
11950 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
11951 wxPyEndAllowThreads(__tstate);
11952 if (PyErr_Occurred()) SWIG_fail;
11953 }
11954 {
11955#if wxUSE_UNICODE
11956 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11957#else
11958 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11959#endif
11960 }
11961 return resultobj;
11962fail:
11963 return NULL;
11964}
11965
11966
11967SWIGINTERN PyObject *_wrap_TextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11968 PyObject *resultobj = 0;
11969 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11970 long arg2 ;
11971 int result;
11972 void *argp1 = 0 ;
11973 int res1 = 0 ;
11974 long val2 ;
11975 int ecode2 = 0 ;
11976 PyObject * obj0 = 0 ;
11977 PyObject * obj1 = 0 ;
11978 char * kwnames[] = {
11979 (char *) "self",(char *) "lineNo", NULL
11980 };
11981
11982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail;
11983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11984 if (!SWIG_IsOK(res1)) {
11985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11986 }
11987 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11988 ecode2 = SWIG_AsVal_long(obj1, &val2);
11989 if (!SWIG_IsOK(ecode2)) {
11990 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'");
11991 }
11992 arg2 = static_cast< long >(val2);
11993 {
11994 PyThreadState* __tstate = wxPyBeginAllowThreads();
11995 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
11996 wxPyEndAllowThreads(__tstate);
11997 if (PyErr_Occurred()) SWIG_fail;
11998 }
11999 resultobj = SWIG_From_int(static_cast< int >(result));
12000 return resultobj;
12001fail:
12002 return NULL;
12003}
12004
12005
12006SWIGINTERN PyObject *_wrap_TextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12007 PyObject *resultobj = 0;
12008 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12009 long arg2 ;
12010 wxString result;
12011 void *argp1 = 0 ;
12012 int res1 = 0 ;
12013 long val2 ;
12014 int ecode2 = 0 ;
12015 PyObject * obj0 = 0 ;
12016 PyObject * obj1 = 0 ;
12017 char * kwnames[] = {
12018 (char *) "self",(char *) "lineNo", NULL
12019 };
12020
12021 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail;
12022 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12023 if (!SWIG_IsOK(res1)) {
12024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12025 }
12026 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12027 ecode2 = SWIG_AsVal_long(obj1, &val2);
12028 if (!SWIG_IsOK(ecode2)) {
12029 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'");
12030 }
12031 arg2 = static_cast< long >(val2);
12032 {
12033 PyThreadState* __tstate = wxPyBeginAllowThreads();
12034 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
12035 wxPyEndAllowThreads(__tstate);
12036 if (PyErr_Occurred()) SWIG_fail;
12037 }
12038 {
12039#if wxUSE_UNICODE
12040 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12041#else
12042 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12043#endif
12044 }
12045 return resultobj;
12046fail:
12047 return NULL;
d14a1e28
RD
12048}
12049
12050
0085ce49
RD
12051SWIGINTERN PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12052 PyObject *resultobj = 0;
12053 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12054 int result;
12055 void *argp1 = 0 ;
12056 int res1 = 0 ;
12057 PyObject *swig_obj[1] ;
12058
12059 if (!args) SWIG_fail;
12060 swig_obj[0] = args;
12061 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12062 if (!SWIG_IsOK(res1)) {
12063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12064 }
12065 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12066 {
12067 PyThreadState* __tstate = wxPyBeginAllowThreads();
12068 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
12069 wxPyEndAllowThreads(__tstate);
12070 if (PyErr_Occurred()) SWIG_fail;
12071 }
12072 resultobj = SWIG_From_int(static_cast< int >(result));
12073 return resultobj;
12074fail:
12075 return NULL;
d14a1e28
RD
12076}
12077
12078
0085ce49
RD
12079SWIGINTERN PyObject *_wrap_TextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12080 PyObject *resultobj = 0;
12081 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12082 bool result;
12083 void *argp1 = 0 ;
12084 int res1 = 0 ;
12085 PyObject *swig_obj[1] ;
12086
12087 if (!args) SWIG_fail;
12088 swig_obj[0] = args;
12089 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12090 if (!SWIG_IsOK(res1)) {
12091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsModified" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12092 }
12093 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12094 {
12095 PyThreadState* __tstate = wxPyBeginAllowThreads();
12096 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
12097 wxPyEndAllowThreads(__tstate);
12098 if (PyErr_Occurred()) SWIG_fail;
12099 }
12100 {
12101 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12102 }
12103 return resultobj;
12104fail:
12105 return NULL;
c3eb6258
RD
12106}
12107
12108
0085ce49
RD
12109SWIGINTERN PyObject *_wrap_TextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12110 PyObject *resultobj = 0;
12111 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12112 bool result;
12113 void *argp1 = 0 ;
12114 int res1 = 0 ;
12115 PyObject *swig_obj[1] ;
12116
12117 if (!args) SWIG_fail;
12118 swig_obj[0] = args;
12119 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12120 if (!SWIG_IsOK(res1)) {
12121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12122 }
12123 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12124 {
12125 PyThreadState* __tstate = wxPyBeginAllowThreads();
12126 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
12127 wxPyEndAllowThreads(__tstate);
12128 if (PyErr_Occurred()) SWIG_fail;
12129 }
12130 {
12131 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12132 }
12133 return resultobj;
12134fail:
12135 return NULL;
74a57fcd
RD
12136}
12137
12138
0085ce49
RD
12139SWIGINTERN PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12140 PyObject *resultobj = 0;
12141 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12142 bool result;
12143 void *argp1 = 0 ;
12144 int res1 = 0 ;
12145 PyObject *swig_obj[1] ;
12146
12147 if (!args) SWIG_fail;
12148 swig_obj[0] = args;
12149 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12150 if (!SWIG_IsOK(res1)) {
12151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12152 }
12153 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12154 {
12155 PyThreadState* __tstate = wxPyBeginAllowThreads();
12156 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
12157 wxPyEndAllowThreads(__tstate);
12158 if (PyErr_Occurred()) SWIG_fail;
12159 }
12160 {
12161 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12162 }
12163 return resultobj;
12164fail:
12165 return NULL;
d14a1e28
RD
12166}
12167
12168
0085ce49
RD
12169SWIGINTERN PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12170 PyObject *resultobj = 0;
12171 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12172 bool result;
12173 void *argp1 = 0 ;
12174 int res1 = 0 ;
12175 PyObject *swig_obj[1] ;
12176
12177 if (!args) SWIG_fail;
12178 swig_obj[0] = args;
12179 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12180 if (!SWIG_IsOK(res1)) {
12181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12182 }
12183 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12184 {
12185 PyThreadState* __tstate = wxPyBeginAllowThreads();
12186 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
12187 wxPyEndAllowThreads(__tstate);
12188 if (PyErr_Occurred()) SWIG_fail;
12189 }
12190 {
12191 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12192 }
12193 return resultobj;
12194fail:
12195 return NULL;
12196}
12197
12198
12199SWIGINTERN PyObject *_wrap_TextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12200 PyObject *resultobj = 0;
12201 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12202 long *arg2 = (long *) 0 ;
12203 long *arg3 = (long *) 0 ;
12204 void *argp1 = 0 ;
12205 int res1 = 0 ;
12206 long temp2 ;
12207 int res2 = SWIG_TMPOBJ ;
12208 long temp3 ;
12209 int res3 = SWIG_TMPOBJ ;
12210 PyObject *swig_obj[1] ;
12211
12212 arg2 = &temp2;
12213 arg3 = &temp3;
12214 if (!args) SWIG_fail;
12215 swig_obj[0] = args;
12216 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12217 if (!SWIG_IsOK(res1)) {
12218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12219 }
12220 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12221 {
12222 PyThreadState* __tstate = wxPyBeginAllowThreads();
12223 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
12224 wxPyEndAllowThreads(__tstate);
12225 if (PyErr_Occurred()) SWIG_fail;
12226 }
12227 resultobj = SWIG_Py_Void();
12228 if (SWIG_IsTmpObj(res2)) {
12229 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
12230 } else {
12231 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12232 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
12233 }
12234 if (SWIG_IsTmpObj(res3)) {
12235 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12236 } else {
12237 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12238 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
12239 }
12240 return resultobj;
12241fail:
12242 return NULL;
d14a1e28
RD
12243}
12244
12245
0085ce49
RD
12246SWIGINTERN PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12247 PyObject *resultobj = 0;
12248 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12249 wxString result;
12250 void *argp1 = 0 ;
12251 int res1 = 0 ;
12252 PyObject *swig_obj[1] ;
12253
12254 if (!args) SWIG_fail;
12255 swig_obj[0] = args;
12256 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12257 if (!SWIG_IsOK(res1)) {
12258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12259 }
12260 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12261 {
12262 PyThreadState* __tstate = wxPyBeginAllowThreads();
12263 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
12264 wxPyEndAllowThreads(__tstate);
12265 if (PyErr_Occurred()) SWIG_fail;
12266 }
12267 {
12268#if wxUSE_UNICODE
12269 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12270#else
12271 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12272#endif
12273 }
12274 return resultobj;
12275fail:
12276 return NULL;
d14a1e28
RD
12277}
12278
12279
0085ce49
RD
12280SWIGINTERN PyObject *_wrap_TextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12281 PyObject *resultobj = 0;
12282 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12283 void *argp1 = 0 ;
12284 int res1 = 0 ;
12285 PyObject *swig_obj[1] ;
12286
12287 if (!args) SWIG_fail;
12288 swig_obj[0] = args;
12289 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12290 if (!SWIG_IsOK(res1)) {
12291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Clear" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12292 }
12293 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12294 {
12295 PyThreadState* __tstate = wxPyBeginAllowThreads();
12296 (arg1)->Clear();
12297 wxPyEndAllowThreads(__tstate);
12298 if (PyErr_Occurred()) SWIG_fail;
12299 }
12300 resultobj = SWIG_Py_Void();
12301 return resultobj;
12302fail:
12303 return NULL;
12304}
12305
12306
12307SWIGINTERN PyObject *_wrap_TextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12308 PyObject *resultobj = 0;
12309 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12310 long arg2 ;
12311 long arg3 ;
12312 wxString *arg4 = 0 ;
12313 void *argp1 = 0 ;
12314 int res1 = 0 ;
12315 long val2 ;
12316 int ecode2 = 0 ;
12317 long val3 ;
12318 int ecode3 = 0 ;
12319 bool temp4 = false ;
12320 PyObject * obj0 = 0 ;
12321 PyObject * obj1 = 0 ;
12322 PyObject * obj2 = 0 ;
12323 PyObject * obj3 = 0 ;
12324 char * kwnames[] = {
12325 (char *) "self",(char *) "_from",(char *) "to",(char *) "value", NULL
12326 };
12327
12328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12330 if (!SWIG_IsOK(res1)) {
12331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Replace" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12332 }
12333 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12334 ecode2 = SWIG_AsVal_long(obj1, &val2);
12335 if (!SWIG_IsOK(ecode2)) {
12336 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Replace" "', expected argument " "2"" of type '" "long""'");
12337 }
12338 arg2 = static_cast< long >(val2);
12339 ecode3 = SWIG_AsVal_long(obj2, &val3);
12340 if (!SWIG_IsOK(ecode3)) {
12341 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Replace" "', expected argument " "3"" of type '" "long""'");
12342 }
12343 arg3 = static_cast< long >(val3);
12344 {
12345 arg4 = wxString_in_helper(obj3);
12346 if (arg4 == NULL) SWIG_fail;
12347 temp4 = true;
12348 }
12349 {
12350 PyThreadState* __tstate = wxPyBeginAllowThreads();
12351 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
12352 wxPyEndAllowThreads(__tstate);
12353 if (PyErr_Occurred()) SWIG_fail;
12354 }
12355 resultobj = SWIG_Py_Void();
12356 {
12357 if (temp4)
12358 delete arg4;
12359 }
12360 return resultobj;
12361fail:
12362 {
12363 if (temp4)
12364 delete arg4;
12365 }
12366 return NULL;
12367}
12368
12369
12370SWIGINTERN PyObject *_wrap_TextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12371 PyObject *resultobj = 0;
12372 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12373 long arg2 ;
12374 long arg3 ;
12375 void *argp1 = 0 ;
12376 int res1 = 0 ;
12377 long val2 ;
12378 int ecode2 = 0 ;
12379 long val3 ;
12380 int ecode3 = 0 ;
12381 PyObject * obj0 = 0 ;
12382 PyObject * obj1 = 0 ;
12383 PyObject * obj2 = 0 ;
12384 char * kwnames[] = {
12385 (char *) "self",(char *) "_from",(char *) "to", NULL
12386 };
12387
12388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12390 if (!SWIG_IsOK(res1)) {
12391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Remove" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12392 }
12393 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12394 ecode2 = SWIG_AsVal_long(obj1, &val2);
12395 if (!SWIG_IsOK(ecode2)) {
12396 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Remove" "', expected argument " "2"" of type '" "long""'");
12397 }
12398 arg2 = static_cast< long >(val2);
12399 ecode3 = SWIG_AsVal_long(obj2, &val3);
12400 if (!SWIG_IsOK(ecode3)) {
12401 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Remove" "', expected argument " "3"" of type '" "long""'");
12402 }
12403 arg3 = static_cast< long >(val3);
12404 {
12405 PyThreadState* __tstate = wxPyBeginAllowThreads();
12406 (arg1)->Remove(arg2,arg3);
12407 wxPyEndAllowThreads(__tstate);
12408 if (PyErr_Occurred()) SWIG_fail;
12409 }
12410 resultobj = SWIG_Py_Void();
12411 return resultobj;
12412fail:
12413 return NULL;
12414}
12415
12416
12417SWIGINTERN PyObject *_wrap_TextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12418 PyObject *resultobj = 0;
12419 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12420 wxString *arg2 = 0 ;
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 *)"OO:TextCtrl_LoadFile",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_LoadFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12435 }
12436 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12437 {
12438 arg2 = wxString_in_helper(obj1);
12439 if (arg2 == NULL) SWIG_fail;
12440 temp2 = true;
12441 }
12442 {
12443 PyThreadState* __tstate = wxPyBeginAllowThreads();
12444 result = (bool)(arg1)->LoadFile((wxString const &)*arg2);
12445 wxPyEndAllowThreads(__tstate);
12446 if (PyErr_Occurred()) SWIG_fail;
12447 }
12448 {
12449 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12450 }
12451 {
12452 if (temp2)
12453 delete arg2;
12454 }
12455 return resultobj;
12456fail:
12457 {
12458 if (temp2)
12459 delete arg2;
12460 }
12461 return NULL;
12462}
12463
12464
12465SWIGINTERN PyObject *_wrap_TextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12466 PyObject *resultobj = 0;
12467 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12468 wxString const &arg2_defvalue = wxPyEmptyString ;
12469 wxString *arg2 = (wxString *) &arg2_defvalue ;
12470 bool result;
12471 void *argp1 = 0 ;
12472 int res1 = 0 ;
12473 bool temp2 = false ;
12474 PyObject * obj0 = 0 ;
12475 PyObject * obj1 = 0 ;
12476 char * kwnames[] = {
12477 (char *) "self",(char *) "file", NULL
12478 };
12479
12480 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) SWIG_fail;
12481 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12482 if (!SWIG_IsOK(res1)) {
12483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12484 }
12485 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12486 if (obj1) {
4f89f6a3 12487 {
0085ce49
RD
12488 arg2 = wxString_in_helper(obj1);
12489 if (arg2 == NULL) SWIG_fail;
12490 temp2 = true;
4f89f6a3 12491 }
0085ce49
RD
12492 }
12493 {
12494 PyThreadState* __tstate = wxPyBeginAllowThreads();
12495 result = (bool)(arg1)->SaveFile((wxString const &)*arg2);
12496 wxPyEndAllowThreads(__tstate);
12497 if (PyErr_Occurred()) SWIG_fail;
12498 }
12499 {
12500 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12501 }
12502 {
12503 if (temp2)
12504 delete arg2;
12505 }
12506 return resultobj;
12507fail:
12508 {
12509 if (temp2)
12510 delete arg2;
12511 }
12512 return NULL;
d14a1e28
RD
12513}
12514
12515
0085ce49
RD
12516SWIGINTERN PyObject *_wrap_TextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12517 PyObject *resultobj = 0;
12518 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12519 void *argp1 = 0 ;
12520 int res1 = 0 ;
12521 PyObject *swig_obj[1] ;
12522
12523 if (!args) SWIG_fail;
12524 swig_obj[0] = args;
12525 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12526 if (!SWIG_IsOK(res1)) {
12527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12528 }
12529 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12530 {
12531 PyThreadState* __tstate = wxPyBeginAllowThreads();
12532 (arg1)->MarkDirty();
12533 wxPyEndAllowThreads(__tstate);
12534 if (PyErr_Occurred()) SWIG_fail;
12535 }
12536 resultobj = SWIG_Py_Void();
12537 return resultobj;
12538fail:
12539 return NULL;
d14a1e28
RD
12540}
12541
12542
0085ce49
RD
12543SWIGINTERN PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12544 PyObject *resultobj = 0;
12545 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12546 void *argp1 = 0 ;
12547 int res1 = 0 ;
12548 PyObject *swig_obj[1] ;
12549
12550 if (!args) SWIG_fail;
12551 swig_obj[0] = args;
12552 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12553 if (!SWIG_IsOK(res1)) {
12554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12555 }
12556 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12557 {
12558 PyThreadState* __tstate = wxPyBeginAllowThreads();
12559 (arg1)->DiscardEdits();
12560 wxPyEndAllowThreads(__tstate);
12561 if (PyErr_Occurred()) SWIG_fail;
12562 }
12563 resultobj = SWIG_Py_Void();
12564 return resultobj;
12565fail:
12566 return NULL;
12567}
12568
12569
12570SWIGINTERN PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12571 PyObject *resultobj = 0;
12572 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12573 unsigned long arg2 ;
12574 void *argp1 = 0 ;
12575 int res1 = 0 ;
12576 unsigned long val2 ;
12577 int ecode2 = 0 ;
12578 PyObject * obj0 = 0 ;
12579 PyObject * obj1 = 0 ;
12580 char * kwnames[] = {
12581 (char *) "self",(char *) "len", NULL
12582 };
12583
12584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail;
12585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12586 if (!SWIG_IsOK(res1)) {
12587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12588 }
12589 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12590 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
12591 if (!SWIG_IsOK(ecode2)) {
12592 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'");
12593 }
12594 arg2 = static_cast< unsigned long >(val2);
12595 {
12596 PyThreadState* __tstate = wxPyBeginAllowThreads();
12597 (arg1)->SetMaxLength(arg2);
12598 wxPyEndAllowThreads(__tstate);
12599 if (PyErr_Occurred()) SWIG_fail;
12600 }
12601 resultobj = SWIG_Py_Void();
12602 return resultobj;
12603fail:
12604 return NULL;
12605}
12606
12607
12608SWIGINTERN PyObject *_wrap_TextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12609 PyObject *resultobj = 0;
12610 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12611 wxString *arg2 = 0 ;
12612 void *argp1 = 0 ;
12613 int res1 = 0 ;
12614 bool temp2 = false ;
12615 PyObject * obj0 = 0 ;
12616 PyObject * obj1 = 0 ;
12617 char * kwnames[] = {
12618 (char *) "self",(char *) "text", NULL
12619 };
12620
12621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail;
12622 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12623 if (!SWIG_IsOK(res1)) {
12624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_WriteText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12625 }
12626 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12627 {
12628 arg2 = wxString_in_helper(obj1);
12629 if (arg2 == NULL) SWIG_fail;
12630 temp2 = true;
12631 }
12632 {
12633 PyThreadState* __tstate = wxPyBeginAllowThreads();
12634 (arg1)->WriteText((wxString const &)*arg2);
12635 wxPyEndAllowThreads(__tstate);
12636 if (PyErr_Occurred()) SWIG_fail;
12637 }
12638 resultobj = SWIG_Py_Void();
12639 {
12640 if (temp2)
12641 delete arg2;
12642 }
12643 return resultobj;
12644fail:
12645 {
12646 if (temp2)
12647 delete arg2;
12648 }
12649 return NULL;
d14a1e28
RD
12650}
12651
12652
0085ce49
RD
12653SWIGINTERN PyObject *_wrap_TextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12654 PyObject *resultobj = 0;
12655 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12656 wxString *arg2 = 0 ;
12657 void *argp1 = 0 ;
12658 int res1 = 0 ;
12659 bool temp2 = false ;
12660 PyObject * obj0 = 0 ;
12661 PyObject * obj1 = 0 ;
12662 char * kwnames[] = {
12663 (char *) "self",(char *) "text", NULL
12664 };
12665
12666 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail;
12667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12668 if (!SWIG_IsOK(res1)) {
12669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_AppendText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12670 }
12671 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12672 {
12673 arg2 = wxString_in_helper(obj1);
12674 if (arg2 == NULL) SWIG_fail;
12675 temp2 = true;
12676 }
12677 {
12678 PyThreadState* __tstate = wxPyBeginAllowThreads();
12679 (arg1)->AppendText((wxString const &)*arg2);
12680 wxPyEndAllowThreads(__tstate);
12681 if (PyErr_Occurred()) SWIG_fail;
12682 }
12683 resultobj = SWIG_Py_Void();
12684 {
12685 if (temp2)
12686 delete arg2;
12687 }
12688 return resultobj;
12689fail:
12690 {
12691 if (temp2)
12692 delete arg2;
12693 }
12694 return NULL;
12695}
12696
12697
12698SWIGINTERN PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12699 PyObject *resultobj = 0;
12700 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12701 wxKeyEvent *arg2 = 0 ;
12702 bool result;
12703 void *argp1 = 0 ;
12704 int res1 = 0 ;
12705 void *argp2 = 0 ;
12706 int res2 = 0 ;
12707 PyObject * obj0 = 0 ;
12708 PyObject * obj1 = 0 ;
12709 char * kwnames[] = {
12710 (char *) "self",(char *) "event", NULL
12711 };
12712
12713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) SWIG_fail;
12714 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12715 if (!SWIG_IsOK(res1)) {
12716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12717 }
12718 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12719 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
12720 if (!SWIG_IsOK(res2)) {
12721 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12722 }
12723 if (!argp2) {
12724 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12725 }
12726 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
12727 {
12728 PyThreadState* __tstate = wxPyBeginAllowThreads();
12729 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
12730 wxPyEndAllowThreads(__tstate);
12731 if (PyErr_Occurred()) SWIG_fail;
12732 }
12733 {
12734 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12735 }
12736 return resultobj;
12737fail:
12738 return NULL;
12739}
12740
12741
12742SWIGINTERN PyObject *_wrap_TextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12743 PyObject *resultobj = 0;
12744 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12745 long arg2 ;
12746 long arg3 ;
12747 wxTextAttr *arg4 = 0 ;
12748 bool result;
12749 void *argp1 = 0 ;
12750 int res1 = 0 ;
12751 long val2 ;
12752 int ecode2 = 0 ;
12753 long val3 ;
12754 int ecode3 = 0 ;
12755 void *argp4 = 0 ;
12756 int res4 = 0 ;
12757 PyObject * obj0 = 0 ;
12758 PyObject * obj1 = 0 ;
12759 PyObject * obj2 = 0 ;
12760 PyObject * obj3 = 0 ;
12761 char * kwnames[] = {
12762 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
12763 };
12764
12765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12767 if (!SWIG_IsOK(res1)) {
12768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12769 }
12770 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12771 ecode2 = SWIG_AsVal_long(obj1, &val2);
12772 if (!SWIG_IsOK(ecode2)) {
12773 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetStyle" "', expected argument " "2"" of type '" "long""'");
12774 }
12775 arg2 = static_cast< long >(val2);
12776 ecode3 = SWIG_AsVal_long(obj2, &val3);
12777 if (!SWIG_IsOK(ecode3)) {
12778 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetStyle" "', expected argument " "3"" of type '" "long""'");
12779 }
12780 arg3 = static_cast< long >(val3);
12781 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxTextAttr, 0 | 0);
12782 if (!SWIG_IsOK(res4)) {
12783 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12784 }
12785 if (!argp4) {
12786 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12787 }
12788 arg4 = reinterpret_cast< wxTextAttr * >(argp4);
12789 {
12790 PyThreadState* __tstate = wxPyBeginAllowThreads();
12791 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
12792 wxPyEndAllowThreads(__tstate);
12793 if (PyErr_Occurred()) SWIG_fail;
12794 }
12795 {
12796 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12797 }
12798 return resultobj;
12799fail:
12800 return NULL;
12801}
12802
12803
12804SWIGINTERN PyObject *_wrap_TextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12805 PyObject *resultobj = 0;
12806 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12807 long arg2 ;
12808 wxTextAttr *arg3 = 0 ;
12809 bool result;
12810 void *argp1 = 0 ;
12811 int res1 = 0 ;
12812 long val2 ;
12813 int ecode2 = 0 ;
12814 void *argp3 = 0 ;
12815 int res3 = 0 ;
12816 PyObject * obj0 = 0 ;
12817 PyObject * obj1 = 0 ;
12818 PyObject * obj2 = 0 ;
12819 char * kwnames[] = {
12820 (char *) "self",(char *) "position",(char *) "style", NULL
12821 };
12822
12823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) 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_GetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12827 }
12828 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12829 ecode2 = SWIG_AsVal_long(obj1, &val2);
12830 if (!SWIG_IsOK(ecode2)) {
12831 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'");
12832 }
12833 arg2 = static_cast< long >(val2);
12834 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTextAttr, 0 );
12835 if (!SWIG_IsOK(res3)) {
12836 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12837 }
12838 if (!argp3) {
12839 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12840 }
12841 arg3 = reinterpret_cast< wxTextAttr * >(argp3);
12842 {
12843 PyThreadState* __tstate = wxPyBeginAllowThreads();
12844 result = (bool)(arg1)->GetStyle(arg2,*arg3);
12845 wxPyEndAllowThreads(__tstate);
12846 if (PyErr_Occurred()) SWIG_fail;
12847 }
12848 {
12849 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12850 }
12851 return resultobj;
12852fail:
12853 return NULL;
12854}
12855
12856
12857SWIGINTERN PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12858 PyObject *resultobj = 0;
12859 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12860 wxTextAttr *arg2 = 0 ;
12861 bool result;
12862 void *argp1 = 0 ;
12863 int res1 = 0 ;
12864 void *argp2 = 0 ;
12865 int res2 = 0 ;
12866 PyObject * obj0 = 0 ;
12867 PyObject * obj1 = 0 ;
12868 char * kwnames[] = {
12869 (char *) "self",(char *) "style", NULL
12870 };
12871
12872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12874 if (!SWIG_IsOK(res1)) {
12875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12876 }
12877 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12878 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
12879 if (!SWIG_IsOK(res2)) {
12880 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12881 }
12882 if (!argp2) {
12883 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12884 }
12885 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
12886 {
12887 PyThreadState* __tstate = wxPyBeginAllowThreads();
12888 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
12889 wxPyEndAllowThreads(__tstate);
12890 if (PyErr_Occurred()) SWIG_fail;
12891 }
12892 {
12893 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12894 }
12895 return resultobj;
12896fail:
12897 return NULL;
d14a1e28
RD
12898}
12899
12900
0085ce49
RD
12901SWIGINTERN PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12902 PyObject *resultobj = 0;
12903 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12904 wxTextAttr *result = 0 ;
12905 void *argp1 = 0 ;
12906 int res1 = 0 ;
12907 PyObject *swig_obj[1] ;
12908
12909 if (!args) SWIG_fail;
12910 swig_obj[0] = args;
12911 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12912 if (!SWIG_IsOK(res1)) {
12913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12914 }
12915 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12916 {
12917 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 12918 {
0085ce49
RD
12919 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
12920 result = (wxTextAttr *) &_result_ref;
093d3ff1 12921 }
0085ce49
RD
12922 wxPyEndAllowThreads(__tstate);
12923 if (PyErr_Occurred()) SWIG_fail;
12924 }
12925 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, 0 | 0 );
12926 return resultobj;
12927fail:
12928 return NULL;
12929}
12930
12931
12932SWIGINTERN PyObject *_wrap_TextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12933 PyObject *resultobj = 0;
12934 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12935 long arg2 ;
12936 long arg3 ;
12937 long result;
12938 void *argp1 = 0 ;
12939 int res1 = 0 ;
12940 long val2 ;
12941 int ecode2 = 0 ;
12942 long val3 ;
12943 int ecode3 = 0 ;
12944 PyObject * obj0 = 0 ;
12945 PyObject * obj1 = 0 ;
12946 PyObject * obj2 = 0 ;
12947 char * kwnames[] = {
12948 (char *) "self",(char *) "x",(char *) "y", NULL
12949 };
12950
12951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12953 if (!SWIG_IsOK(res1)) {
12954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12955 }
12956 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12957 ecode2 = SWIG_AsVal_long(obj1, &val2);
12958 if (!SWIG_IsOK(ecode2)) {
12959 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'");
12960 }
12961 arg2 = static_cast< long >(val2);
12962 ecode3 = SWIG_AsVal_long(obj2, &val3);
12963 if (!SWIG_IsOK(ecode3)) {
12964 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'");
12965 }
12966 arg3 = static_cast< long >(val3);
12967 {
12968 PyThreadState* __tstate = wxPyBeginAllowThreads();
12969 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
12970 wxPyEndAllowThreads(__tstate);
12971 if (PyErr_Occurred()) SWIG_fail;
12972 }
12973 resultobj = SWIG_From_long(static_cast< long >(result));
12974 return resultobj;
12975fail:
12976 return NULL;
12977}
12978
12979
12980SWIGINTERN PyObject *_wrap_TextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12981 PyObject *resultobj = 0;
12982 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12983 long arg2 ;
12984 long *arg3 = (long *) 0 ;
12985 long *arg4 = (long *) 0 ;
12986 void *argp1 = 0 ;
12987 int res1 = 0 ;
12988 long val2 ;
12989 int ecode2 = 0 ;
12990 long temp3 ;
12991 int res3 = SWIG_TMPOBJ ;
12992 long temp4 ;
12993 int res4 = SWIG_TMPOBJ ;
12994 PyObject * obj0 = 0 ;
12995 PyObject * obj1 = 0 ;
12996 char * kwnames[] = {
12997 (char *) "self",(char *) "pos", NULL
12998 };
12999
13000 arg3 = &temp3;
13001 arg4 = &temp4;
13002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail;
13003 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13004 if (!SWIG_IsOK(res1)) {
13005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13006 }
13007 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13008 ecode2 = SWIG_AsVal_long(obj1, &val2);
13009 if (!SWIG_IsOK(ecode2)) {
13010 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'");
13011 }
13012 arg2 = static_cast< long >(val2);
13013 {
13014 PyThreadState* __tstate = wxPyBeginAllowThreads();
13015 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
13016 wxPyEndAllowThreads(__tstate);
13017 if (PyErr_Occurred()) SWIG_fail;
13018 }
13019 resultobj = SWIG_Py_Void();
13020 if (SWIG_IsTmpObj(res3)) {
13021 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13022 } else {
13023 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13024 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13025 }
13026 if (SWIG_IsTmpObj(res4)) {
13027 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13028 } else {
13029 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13030 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13031 }
13032 return resultobj;
13033fail:
13034 return NULL;
13035}
13036
13037
13038SWIGINTERN PyObject *_wrap_TextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13039 PyObject *resultobj = 0;
13040 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13041 long arg2 ;
13042 void *argp1 = 0 ;
13043 int res1 = 0 ;
13044 long val2 ;
13045 int ecode2 = 0 ;
13046 PyObject * obj0 = 0 ;
13047 PyObject * obj1 = 0 ;
13048 char * kwnames[] = {
13049 (char *) "self",(char *) "pos", NULL
13050 };
13051
13052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail;
13053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13054 if (!SWIG_IsOK(res1)) {
13055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13056 }
13057 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13058 ecode2 = SWIG_AsVal_long(obj1, &val2);
13059 if (!SWIG_IsOK(ecode2)) {
13060 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'");
13061 }
13062 arg2 = static_cast< long >(val2);
13063 {
13064 PyThreadState* __tstate = wxPyBeginAllowThreads();
13065 (arg1)->ShowPosition(arg2);
13066 wxPyEndAllowThreads(__tstate);
13067 if (PyErr_Occurred()) SWIG_fail;
13068 }
13069 resultobj = SWIG_Py_Void();
13070 return resultobj;
13071fail:
13072 return NULL;
13073}
13074
13075
13076SWIGINTERN PyObject *_wrap_TextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13077 PyObject *resultobj = 0;
13078 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13079 wxPoint *arg2 = 0 ;
13080 long *arg3 = (long *) 0 ;
13081 long *arg4 = (long *) 0 ;
13082 wxTextCtrlHitTestResult result;
13083 void *argp1 = 0 ;
13084 int res1 = 0 ;
13085 wxPoint temp2 ;
13086 long temp3 ;
13087 int res3 = SWIG_TMPOBJ ;
13088 long temp4 ;
13089 int res4 = SWIG_TMPOBJ ;
13090 PyObject * obj0 = 0 ;
13091 PyObject * obj1 = 0 ;
13092 char * kwnames[] = {
13093 (char *) "self",(char *) "pt", NULL
13094 };
13095
13096 arg3 = &temp3;
13097 arg4 = &temp4;
13098 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
13099 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13100 if (!SWIG_IsOK(res1)) {
13101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTest" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13102 }
13103 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13104 {
13105 arg2 = &temp2;
13106 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13107 }
13108 {
13109 PyThreadState* __tstate = wxPyBeginAllowThreads();
13110 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
13111 wxPyEndAllowThreads(__tstate);
13112 if (PyErr_Occurred()) SWIG_fail;
13113 }
13114 resultobj = SWIG_From_int(static_cast< int >(result));
13115 if (SWIG_IsTmpObj(res3)) {
13116 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13117 } else {
13118 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13119 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13120 }
13121 if (SWIG_IsTmpObj(res4)) {
13122 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13123 } else {
13124 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13125 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13126 }
13127 return resultobj;
13128fail:
13129 return NULL;
13130}
13131
13132
13133SWIGINTERN PyObject *_wrap_TextCtrl_HitTestPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13134 PyObject *resultobj = 0;
13135 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13136 wxPoint *arg2 = 0 ;
13137 long *arg3 = (long *) 0 ;
13138 wxTextCtrlHitTestResult result;
13139 void *argp1 = 0 ;
13140 int res1 = 0 ;
13141 wxPoint temp2 ;
13142 long temp3 ;
13143 int res3 = SWIG_TMPOBJ ;
13144 PyObject * obj0 = 0 ;
13145 PyObject * obj1 = 0 ;
13146 char * kwnames[] = {
13147 (char *) "self",(char *) "pt", NULL
13148 };
13149
13150 arg3 = &temp3;
13151 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) SWIG_fail;
13152 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13153 if (!SWIG_IsOK(res1)) {
13154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTestPos" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13155 }
13156 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13157 {
13158 arg2 = &temp2;
13159 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13160 }
13161 {
13162 PyThreadState* __tstate = wxPyBeginAllowThreads();
13163 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
13164 wxPyEndAllowThreads(__tstate);
13165 if (PyErr_Occurred()) SWIG_fail;
13166 }
13167 resultobj = SWIG_From_int(static_cast< int >(result));
13168 if (SWIG_IsTmpObj(res3)) {
13169 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13170 } else {
13171 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13172 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13173 }
13174 return resultobj;
13175fail:
13176 return NULL;
d14a1e28
RD
13177}
13178
13179
0085ce49
RD
13180SWIGINTERN PyObject *_wrap_TextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13181 PyObject *resultobj = 0;
13182 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13183 void *argp1 = 0 ;
13184 int res1 = 0 ;
13185 PyObject *swig_obj[1] ;
13186
13187 if (!args) SWIG_fail;
13188 swig_obj[0] = args;
13189 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13190 if (!SWIG_IsOK(res1)) {
13191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Copy" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13192 }
13193 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13194 {
13195 PyThreadState* __tstate = wxPyBeginAllowThreads();
13196 (arg1)->Copy();
13197 wxPyEndAllowThreads(__tstate);
13198 if (PyErr_Occurred()) SWIG_fail;
13199 }
13200 resultobj = SWIG_Py_Void();
13201 return resultobj;
13202fail:
13203 return NULL;
d14a1e28 13204}
0085ce49
RD
13205
13206
13207SWIGINTERN PyObject *_wrap_TextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13208 PyObject *resultobj = 0;
13209 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13210 void *argp1 = 0 ;
13211 int res1 = 0 ;
13212 PyObject *swig_obj[1] ;
13213
13214 if (!args) SWIG_fail;
13215 swig_obj[0] = args;
13216 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13217 if (!SWIG_IsOK(res1)) {
13218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Cut" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13219 }
13220 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13221 {
13222 PyThreadState* __tstate = wxPyBeginAllowThreads();
13223 (arg1)->Cut();
13224 wxPyEndAllowThreads(__tstate);
13225 if (PyErr_Occurred()) SWIG_fail;
13226 }
13227 resultobj = SWIG_Py_Void();
13228 return resultobj;
13229fail:
13230 return NULL;
b2dc1044
RD
13231}
13232
13233
0085ce49
RD
13234SWIGINTERN PyObject *_wrap_TextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13235 PyObject *resultobj = 0;
13236 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13237 void *argp1 = 0 ;
13238 int res1 = 0 ;
13239 PyObject *swig_obj[1] ;
13240
13241 if (!args) SWIG_fail;
13242 swig_obj[0] = args;
13243 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13244 if (!SWIG_IsOK(res1)) {
13245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Paste" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13246 }
13247 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13248 {
13249 PyThreadState* __tstate = wxPyBeginAllowThreads();
13250 (arg1)->Paste();
13251 wxPyEndAllowThreads(__tstate);
13252 if (PyErr_Occurred()) SWIG_fail;
13253 }
13254 resultobj = SWIG_Py_Void();
13255 return resultobj;
13256fail:
13257 return NULL;
d14a1e28
RD
13258}
13259
13260
0085ce49
RD
13261SWIGINTERN PyObject *_wrap_TextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13262 PyObject *resultobj = 0;
13263 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13264 bool result;
13265 void *argp1 = 0 ;
13266 int res1 = 0 ;
13267 PyObject *swig_obj[1] ;
13268
13269 if (!args) SWIG_fail;
13270 swig_obj[0] = args;
13271 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13272 if (!SWIG_IsOK(res1)) {
13273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13274 }
13275 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13276 {
13277 PyThreadState* __tstate = wxPyBeginAllowThreads();
13278 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
13279 wxPyEndAllowThreads(__tstate);
13280 if (PyErr_Occurred()) SWIG_fail;
13281 }
13282 {
13283 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13284 }
13285 return resultobj;
13286fail:
13287 return NULL;
d14a1e28
RD
13288}
13289
13290
0085ce49
RD
13291SWIGINTERN PyObject *_wrap_TextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13292 PyObject *resultobj = 0;
13293 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13294 bool result;
13295 void *argp1 = 0 ;
13296 int res1 = 0 ;
13297 PyObject *swig_obj[1] ;
13298
13299 if (!args) SWIG_fail;
13300 swig_obj[0] = args;
13301 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13302 if (!SWIG_IsOK(res1)) {
13303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCut" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13304 }
13305 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13306 {
13307 PyThreadState* __tstate = wxPyBeginAllowThreads();
13308 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
13309 wxPyEndAllowThreads(__tstate);
13310 if (PyErr_Occurred()) SWIG_fail;
13311 }
13312 {
13313 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13314 }
13315 return resultobj;
13316fail:
13317 return NULL;
994141e6
RD
13318}
13319
13320
0085ce49
RD
13321SWIGINTERN PyObject *_wrap_TextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13322 PyObject *resultobj = 0;
13323 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13324 bool result;
13325 void *argp1 = 0 ;
13326 int res1 = 0 ;
13327 PyObject *swig_obj[1] ;
13328
13329 if (!args) SWIG_fail;
13330 swig_obj[0] = args;
13331 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13332 if (!SWIG_IsOK(res1)) {
13333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13334 }
13335 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13336 {
13337 PyThreadState* __tstate = wxPyBeginAllowThreads();
13338 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
13339 wxPyEndAllowThreads(__tstate);
13340 if (PyErr_Occurred()) SWIG_fail;
13341 }
13342 {
13343 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13344 }
13345 return resultobj;
13346fail:
13347 return NULL;
d14a1e28
RD
13348}
13349
13350
0085ce49
RD
13351SWIGINTERN PyObject *_wrap_TextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13352 PyObject *resultobj = 0;
13353 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13354 void *argp1 = 0 ;
13355 int res1 = 0 ;
13356 PyObject *swig_obj[1] ;
13357
13358 if (!args) SWIG_fail;
13359 swig_obj[0] = args;
13360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13361 if (!SWIG_IsOK(res1)) {
13362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Undo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13363 }
13364 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13365 {
13366 PyThreadState* __tstate = wxPyBeginAllowThreads();
13367 (arg1)->Undo();
13368 wxPyEndAllowThreads(__tstate);
13369 if (PyErr_Occurred()) SWIG_fail;
13370 }
13371 resultobj = SWIG_Py_Void();
13372 return resultobj;
13373fail:
13374 return NULL;
d14a1e28
RD
13375}
13376
13377
0085ce49
RD
13378SWIGINTERN PyObject *_wrap_TextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13379 PyObject *resultobj = 0;
13380 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13381 void *argp1 = 0 ;
13382 int res1 = 0 ;
13383 PyObject *swig_obj[1] ;
13384
13385 if (!args) SWIG_fail;
13386 swig_obj[0] = args;
13387 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13388 if (!SWIG_IsOK(res1)) {
13389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Redo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13390 }
13391 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13392 {
13393 PyThreadState* __tstate = wxPyBeginAllowThreads();
13394 (arg1)->Redo();
13395 wxPyEndAllowThreads(__tstate);
13396 if (PyErr_Occurred()) SWIG_fail;
13397 }
13398 resultobj = SWIG_Py_Void();
13399 return resultobj;
13400fail:
13401 return NULL;
d14a1e28
RD
13402}
13403
13404
0085ce49
RD
13405SWIGINTERN PyObject *_wrap_TextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13406 PyObject *resultobj = 0;
13407 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13408 bool result;
13409 void *argp1 = 0 ;
13410 int res1 = 0 ;
13411 PyObject *swig_obj[1] ;
13412
13413 if (!args) SWIG_fail;
13414 swig_obj[0] = args;
13415 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13416 if (!SWIG_IsOK(res1)) {
13417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13418 }
13419 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13420 {
13421 PyThreadState* __tstate = wxPyBeginAllowThreads();
13422 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
13423 wxPyEndAllowThreads(__tstate);
13424 if (PyErr_Occurred()) SWIG_fail;
13425 }
13426 {
13427 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13428 }
13429 return resultobj;
13430fail:
13431 return NULL;
d14a1e28
RD
13432}
13433
13434
0085ce49
RD
13435SWIGINTERN PyObject *_wrap_TextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13436 PyObject *resultobj = 0;
13437 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13438 bool result;
13439 void *argp1 = 0 ;
13440 int res1 = 0 ;
13441 PyObject *swig_obj[1] ;
13442
13443 if (!args) SWIG_fail;
13444 swig_obj[0] = args;
13445 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13446 if (!SWIG_IsOK(res1)) {
13447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13448 }
13449 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13450 {
13451 PyThreadState* __tstate = wxPyBeginAllowThreads();
13452 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
13453 wxPyEndAllowThreads(__tstate);
13454 if (PyErr_Occurred()) SWIG_fail;
13455 }
13456 {
13457 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13458 }
13459 return resultobj;
13460fail:
13461 return NULL;
13462}
13463
13464
13465SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13466 PyObject *resultobj = 0;
13467 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13468 long arg2 ;
13469 void *argp1 = 0 ;
13470 int res1 = 0 ;
13471 long val2 ;
13472 int ecode2 = 0 ;
13473 PyObject * obj0 = 0 ;
13474 PyObject * obj1 = 0 ;
13475 char * kwnames[] = {
13476 (char *) "self",(char *) "pos", NULL
13477 };
13478
13479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
13480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13481 if (!SWIG_IsOK(res1)) {
13482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13483 }
13484 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13485 ecode2 = SWIG_AsVal_long(obj1, &val2);
13486 if (!SWIG_IsOK(ecode2)) {
13487 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
13488 }
13489 arg2 = static_cast< long >(val2);
13490 {
13491 PyThreadState* __tstate = wxPyBeginAllowThreads();
13492 (arg1)->SetInsertionPoint(arg2);
13493 wxPyEndAllowThreads(__tstate);
13494 if (PyErr_Occurred()) SWIG_fail;
13495 }
13496 resultobj = SWIG_Py_Void();
13497 return resultobj;
13498fail:
13499 return NULL;
d14a1e28
RD
13500}
13501
13502
0085ce49
RD
13503SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13504 PyObject *resultobj = 0;
13505 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13506 void *argp1 = 0 ;
13507 int res1 = 0 ;
13508 PyObject *swig_obj[1] ;
13509
13510 if (!args) SWIG_fail;
13511 swig_obj[0] = args;
13512 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13513 if (!SWIG_IsOK(res1)) {
13514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13515 }
13516 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13517 {
13518 PyThreadState* __tstate = wxPyBeginAllowThreads();
13519 (arg1)->SetInsertionPointEnd();
13520 wxPyEndAllowThreads(__tstate);
13521 if (PyErr_Occurred()) SWIG_fail;
13522 }
13523 resultobj = SWIG_Py_Void();
13524 return resultobj;
13525fail:
13526 return NULL;
d14a1e28
RD
13527}
13528
13529
0085ce49
RD
13530SWIGINTERN PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13531 PyObject *resultobj = 0;
13532 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13533 long result;
13534 void *argp1 = 0 ;
13535 int res1 = 0 ;
13536 PyObject *swig_obj[1] ;
13537
13538 if (!args) SWIG_fail;
13539 swig_obj[0] = args;
13540 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13541 if (!SWIG_IsOK(res1)) {
13542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13543 }
13544 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13545 {
13546 PyThreadState* __tstate = wxPyBeginAllowThreads();
13547 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
13548 wxPyEndAllowThreads(__tstate);
13549 if (PyErr_Occurred()) SWIG_fail;
13550 }
13551 resultobj = SWIG_From_long(static_cast< long >(result));
13552 return resultobj;
13553fail:
13554 return NULL;
d14a1e28
RD
13555}
13556
13557
0085ce49
RD
13558SWIGINTERN PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13559 PyObject *resultobj = 0;
13560 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13561 long result;
13562 void *argp1 = 0 ;
13563 int res1 = 0 ;
13564 PyObject *swig_obj[1] ;
13565
13566 if (!args) SWIG_fail;
13567 swig_obj[0] = args;
13568 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13569 if (!SWIG_IsOK(res1)) {
13570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13571 }
13572 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13573 {
13574 PyThreadState* __tstate = wxPyBeginAllowThreads();
13575 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
13576 wxPyEndAllowThreads(__tstate);
13577 if (PyErr_Occurred()) SWIG_fail;
13578 }
13579 resultobj = SWIG_From_long(static_cast< long >(result));
13580 return resultobj;
13581fail:
13582 return NULL;
13583}
13584
13585
13586SWIGINTERN PyObject *_wrap_TextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13587 PyObject *resultobj = 0;
13588 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13589 long arg2 ;
13590 long arg3 ;
13591 void *argp1 = 0 ;
13592 int res1 = 0 ;
13593 long val2 ;
13594 int ecode2 = 0 ;
13595 long val3 ;
13596 int ecode3 = 0 ;
13597 PyObject * obj0 = 0 ;
13598 PyObject * obj1 = 0 ;
13599 PyObject * obj2 = 0 ;
13600 char * kwnames[] = {
13601 (char *) "self",(char *) "_from",(char *) "to", NULL
13602 };
13603
13604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13606 if (!SWIG_IsOK(res1)) {
13607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13608 }
13609 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13610 ecode2 = SWIG_AsVal_long(obj1, &val2);
13611 if (!SWIG_IsOK(ecode2)) {
13612 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
13613 }
13614 arg2 = static_cast< long >(val2);
13615 ecode3 = SWIG_AsVal_long(obj2, &val3);
13616 if (!SWIG_IsOK(ecode3)) {
13617 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
13618 }
13619 arg3 = static_cast< long >(val3);
13620 {
13621 PyThreadState* __tstate = wxPyBeginAllowThreads();
13622 (arg1)->SetSelection(arg2,arg3);
13623 wxPyEndAllowThreads(__tstate);
13624 if (PyErr_Occurred()) SWIG_fail;
13625 }
13626 resultobj = SWIG_Py_Void();
13627 return resultobj;
13628fail:
13629 return NULL;
d14a1e28
RD
13630}
13631
13632
0085ce49
RD
13633SWIGINTERN PyObject *_wrap_TextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13634 PyObject *resultobj = 0;
13635 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13636 void *argp1 = 0 ;
13637 int res1 = 0 ;
13638 PyObject *swig_obj[1] ;
13639
13640 if (!args) SWIG_fail;
13641 swig_obj[0] = args;
13642 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13643 if (!SWIG_IsOK(res1)) {
13644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13645 }
13646 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13647 {
13648 PyThreadState* __tstate = wxPyBeginAllowThreads();
13649 (arg1)->SelectAll();
13650 wxPyEndAllowThreads(__tstate);
13651 if (PyErr_Occurred()) SWIG_fail;
13652 }
13653 resultobj = SWIG_Py_Void();
13654 return resultobj;
13655fail:
13656 return NULL;
13657}
13658
13659
13660SWIGINTERN PyObject *_wrap_TextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13661 PyObject *resultobj = 0;
13662 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13663 bool arg2 ;
13664 void *argp1 = 0 ;
13665 int res1 = 0 ;
13666 bool val2 ;
13667 int ecode2 = 0 ;
13668 PyObject * obj0 = 0 ;
13669 PyObject * obj1 = 0 ;
13670 char * kwnames[] = {
13671 (char *) "self",(char *) "editable", NULL
13672 };
13673
13674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
13675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13676 if (!SWIG_IsOK(res1)) {
13677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13678 }
13679 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13680 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13681 if (!SWIG_IsOK(ecode2)) {
13682 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'");
13683 }
13684 arg2 = static_cast< bool >(val2);
13685 {
13686 PyThreadState* __tstate = wxPyBeginAllowThreads();
13687 (arg1)->SetEditable(arg2);
13688 wxPyEndAllowThreads(__tstate);
13689 if (PyErr_Occurred()) SWIG_fail;
13690 }
13691 resultobj = SWIG_Py_Void();
13692 return resultobj;
13693fail:
13694 return NULL;
13695}
13696
13697
13698SWIGINTERN PyObject *_wrap_TextCtrl_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13699 PyObject *resultobj = 0;
13700 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13701 wxString *arg2 = 0 ;
13702 void *argp1 = 0 ;
13703 int res1 = 0 ;
13704 bool temp2 = false ;
13705 PyObject * obj0 = 0 ;
13706 PyObject * obj1 = 0 ;
13707 char * kwnames[] = {
13708 (char *) "self",(char *) "text", NULL
13709 };
13710
13711 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) SWIG_fail;
13712 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13713 if (!SWIG_IsOK(res1)) {
13714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_write" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13715 }
13716 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13717 {
13718 arg2 = wxString_in_helper(obj1);
13719 if (arg2 == NULL) SWIG_fail;
13720 temp2 = true;
13721 }
13722 {
13723 PyThreadState* __tstate = wxPyBeginAllowThreads();
13724 wxTextCtrl_write(arg1,(wxString const &)*arg2);
13725 wxPyEndAllowThreads(__tstate);
13726 if (PyErr_Occurred()) SWIG_fail;
13727 }
13728 resultobj = SWIG_Py_Void();
13729 {
13730 if (temp2)
13731 delete arg2;
13732 }
13733 return resultobj;
13734fail:
13735 {
13736 if (temp2)
13737 delete arg2;
13738 }
13739 return NULL;
13740}
13741
13742
13743SWIGINTERN PyObject *_wrap_TextCtrl_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13744 PyObject *resultobj = 0;
13745 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13746 long arg2 ;
13747 long arg3 ;
13748 wxString result;
13749 void *argp1 = 0 ;
13750 int res1 = 0 ;
13751 long val2 ;
13752 int ecode2 = 0 ;
13753 long val3 ;
13754 int ecode3 = 0 ;
13755 PyObject * obj0 = 0 ;
13756 PyObject * obj1 = 0 ;
13757 PyObject * obj2 = 0 ;
13758 char * kwnames[] = {
13759 (char *) "self",(char *) "_from",(char *) "to", NULL
13760 };
13761
13762 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13763 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13764 if (!SWIG_IsOK(res1)) {
13765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetString" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13766 }
13767 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13768 ecode2 = SWIG_AsVal_long(obj1, &val2);
13769 if (!SWIG_IsOK(ecode2)) {
13770 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetString" "', expected argument " "2"" of type '" "long""'");
13771 }
13772 arg2 = static_cast< long >(val2);
13773 ecode3 = SWIG_AsVal_long(obj2, &val3);
13774 if (!SWIG_IsOK(ecode3)) {
13775 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetString" "', expected argument " "3"" of type '" "long""'");
13776 }
13777 arg3 = static_cast< long >(val3);
13778 {
13779 PyThreadState* __tstate = wxPyBeginAllowThreads();
13780 result = wxTextCtrl_GetString(arg1,arg2,arg3);
13781 wxPyEndAllowThreads(__tstate);
13782 if (PyErr_Occurred()) SWIG_fail;
13783 }
13784 {
13785#if wxUSE_UNICODE
13786 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13787#else
13788 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13789#endif
13790 }
13791 return resultobj;
13792fail:
13793 return NULL;
d14a1e28
RD
13794}
13795
13796
0085ce49
RD
13797SWIGINTERN PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13798 PyObject *resultobj = 0;
13799 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
13800 SwigValueWrapper<wxVisualAttributes > result;
13801 int val1 ;
13802 int ecode1 = 0 ;
13803 PyObject * obj0 = 0 ;
13804 char * kwnames[] = {
13805 (char *) "variant", NULL
13806 };
13807
13808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
13809 if (obj0) {
13810 ecode1 = SWIG_AsVal_int(obj0, &val1);
13811 if (!SWIG_IsOK(ecode1)) {
13812 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TextCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
13813 }
13814 arg1 = static_cast< wxWindowVariant >(val1);
13815 }
13816 {
13817 if (!wxPyCheckForApp()) SWIG_fail;
13818 PyThreadState* __tstate = wxPyBeginAllowThreads();
13819 result = wxTextCtrl::GetClassDefaultAttributes(arg1);
13820 wxPyEndAllowThreads(__tstate);
13821 if (PyErr_Occurred()) SWIG_fail;
13822 }
13823 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
13824 return resultobj;
13825fail:
13826 return NULL;
13827}
13828
13829
13830SWIGINTERN PyObject *TextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13831 PyObject *obj;
13832 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13833 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextCtrl, SWIG_NewClientData(obj));
13834 return SWIG_Py_Void();
13835}
13836
13837SWIGINTERN PyObject *TextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13838 return SWIG_Python_InitShadowInstance(args);
13839}
13840
13841SWIGINTERN PyObject *_wrap_new_TextUrlEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13842 PyObject *resultobj = 0;
13843 int arg1 ;
13844 wxMouseEvent *arg2 = 0 ;
13845 long arg3 ;
13846 long arg4 ;
13847 wxTextUrlEvent *result = 0 ;
13848 int val1 ;
13849 int ecode1 = 0 ;
13850 void *argp2 = 0 ;
13851 int res2 = 0 ;
13852 long val3 ;
13853 int ecode3 = 0 ;
13854 long val4 ;
13855 int ecode4 = 0 ;
13856 PyObject * obj0 = 0 ;
13857 PyObject * obj1 = 0 ;
13858 PyObject * obj2 = 0 ;
13859 PyObject * obj3 = 0 ;
13860 char * kwnames[] = {
13861 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
13862 };
13863
13864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13865 ecode1 = SWIG_AsVal_int(obj0, &val1);
13866 if (!SWIG_IsOK(ecode1)) {
13867 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TextUrlEvent" "', expected argument " "1"" of type '" "int""'");
13868 }
13869 arg1 = static_cast< int >(val1);
13870 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxMouseEvent, 0 | 0);
13871 if (!SWIG_IsOK(res2)) {
13872 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
13873 }
13874 if (!argp2) {
13875 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
13876 }
13877 arg2 = reinterpret_cast< wxMouseEvent * >(argp2);
13878 ecode3 = SWIG_AsVal_long(obj2, &val3);
13879 if (!SWIG_IsOK(ecode3)) {
13880 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TextUrlEvent" "', expected argument " "3"" of type '" "long""'");
13881 }
13882 arg3 = static_cast< long >(val3);
13883 ecode4 = SWIG_AsVal_long(obj3, &val4);
13884 if (!SWIG_IsOK(ecode4)) {
13885 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextUrlEvent" "', expected argument " "4"" of type '" "long""'");
13886 }
13887 arg4 = static_cast< long >(val4);
13888 {
13889 PyThreadState* __tstate = wxPyBeginAllowThreads();
13890 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
13891 wxPyEndAllowThreads(__tstate);
13892 if (PyErr_Occurred()) SWIG_fail;
13893 }
13894 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_NEW | 0 );
13895 return resultobj;
13896fail:
13897 return NULL;
d14a1e28
RD
13898}
13899
13900
0085ce49
RD
13901SWIGINTERN PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13902 PyObject *resultobj = 0;
13903 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13904 wxMouseEvent *result = 0 ;
13905 void *argp1 = 0 ;
13906 int res1 = 0 ;
13907 PyObject *swig_obj[1] ;
13908
13909 if (!args) SWIG_fail;
13910 swig_obj[0] = args;
13911 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
13912 if (!SWIG_IsOK(res1)) {
13913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetMouseEvent" "', expected argument " "1"" of type '" "wxTextUrlEvent *""'");
13914 }
13915 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
13916 {
13917 PyThreadState* __tstate = wxPyBeginAllowThreads();
4f89f6a3 13918 {
0085ce49
RD
13919 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
13920 result = (wxMouseEvent *) &_result_ref;
4f89f6a3 13921 }
0085ce49
RD
13922 wxPyEndAllowThreads(__tstate);
13923 if (PyErr_Occurred()) SWIG_fail;
13924 }
13925 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseEvent, 0 | 0 );
13926 return resultobj;
13927fail:
13928 return NULL;
d14a1e28
RD
13929}
13930
13931
0085ce49
RD
13932SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13933 PyObject *resultobj = 0;
13934 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13935 long result;
13936 void *argp1 = 0 ;
13937 int res1 = 0 ;
13938 PyObject *swig_obj[1] ;
13939
13940 if (!args) SWIG_fail;
13941 swig_obj[0] = args;
13942 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
13943 if (!SWIG_IsOK(res1)) {
13944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLStart" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
13945 }
13946 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
13947 {
13948 PyThreadState* __tstate = wxPyBeginAllowThreads();
13949 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
13950 wxPyEndAllowThreads(__tstate);
13951 if (PyErr_Occurred()) SWIG_fail;
13952 }
13953 resultobj = SWIG_From_long(static_cast< long >(result));
13954 return resultobj;
13955fail:
13956 return NULL;
d14a1e28
RD
13957}
13958
13959
0085ce49
RD
13960SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13961 PyObject *resultobj = 0;
13962 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13963 long result;
13964 void *argp1 = 0 ;
13965 int res1 = 0 ;
13966 PyObject *swig_obj[1] ;
13967
13968 if (!args) SWIG_fail;
13969 swig_obj[0] = args;
13970 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
13971 if (!SWIG_IsOK(res1)) {
13972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLEnd" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
13973 }
13974 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
13975 {
13976 PyThreadState* __tstate = wxPyBeginAllowThreads();
13977 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
13978 wxPyEndAllowThreads(__tstate);
13979 if (PyErr_Occurred()) SWIG_fail;
13980 }
13981 resultobj = SWIG_From_long(static_cast< long >(result));
13982 return resultobj;
13983fail:
13984 return NULL;
d14a1e28
RD
13985}
13986
13987
0085ce49
RD
13988SWIGINTERN PyObject *TextUrlEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13989 PyObject *obj;
13990 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13991 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextUrlEvent, SWIG_NewClientData(obj));
13992 return SWIG_Py_Void();
d14a1e28
RD
13993}
13994
0085ce49
RD
13995SWIGINTERN PyObject *TextUrlEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13996 return SWIG_Python_InitShadowInstance(args);
13997}
d14a1e28 13998
0085ce49
RD
13999SWIGINTERN int ScrollBarNameStr_set(PyObject *) {
14000 SWIG_Error(SWIG_AttributeError,"Variable ScrollBarNameStr is read-only.");
14001 return 1;
14002}
14003
14004
14005SWIGINTERN PyObject *ScrollBarNameStr_get(void) {
14006 PyObject *pyobj = 0;
14007
14008 {
14009#if wxUSE_UNICODE
14010 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14011#else
14012 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14013#endif
14014 }
14015 return pyobj;
14016}
14017
14018
14019SWIGINTERN PyObject *_wrap_new_ScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14020 PyObject *resultobj = 0;
14021 wxWindow *arg1 = (wxWindow *) 0 ;
14022 int arg2 = (int) -1 ;
14023 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14024 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14025 wxSize const &arg4_defvalue = wxDefaultSize ;
14026 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14027 long arg5 = (long) wxSB_HORIZONTAL ;
14028 wxValidator const &arg6_defvalue = wxDefaultValidator ;
14029 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
14030 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
14031 wxString *arg7 = (wxString *) &arg7_defvalue ;
14032 wxScrollBar *result = 0 ;
14033 void *argp1 = 0 ;
14034 int res1 = 0 ;
14035 int val2 ;
14036 int ecode2 = 0 ;
14037 wxPoint temp3 ;
14038 wxSize temp4 ;
14039 long val5 ;
14040 int ecode5 = 0 ;
14041 void *argp6 = 0 ;
14042 int res6 = 0 ;
14043 bool temp7 = false ;
14044 PyObject * obj0 = 0 ;
14045 PyObject * obj1 = 0 ;
14046 PyObject * obj2 = 0 ;
14047 PyObject * obj3 = 0 ;
14048 PyObject * obj4 = 0 ;
14049 PyObject * obj5 = 0 ;
14050 PyObject * obj6 = 0 ;
14051 char * kwnames[] = {
14052 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14053 };
14054
14055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14057 if (!SWIG_IsOK(res1)) {
14058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrollBar" "', expected argument " "1"" of type '" "wxWindow *""'");
14059 }
14060 arg1 = reinterpret_cast< wxWindow * >(argp1);
14061 if (obj1) {
14062 ecode2 = SWIG_AsVal_int(obj1, &val2);
14063 if (!SWIG_IsOK(ecode2)) {
14064 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollBar" "', expected argument " "2"" of type '" "int""'");
14065 }
14066 arg2 = static_cast< int >(val2);
14067 }
14068 if (obj2) {
d14a1e28 14069 {
0085ce49
RD
14070 arg3 = &temp3;
14071 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 14072 }
0085ce49
RD
14073 }
14074 if (obj3) {
4f89f6a3 14075 {
0085ce49
RD
14076 arg4 = &temp4;
14077 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 14078 }
0085ce49
RD
14079 }
14080 if (obj4) {
14081 ecode5 = SWIG_AsVal_long(obj4, &val5);
14082 if (!SWIG_IsOK(ecode5)) {
14083 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrollBar" "', expected argument " "5"" of type '" "long""'");
14084 }
14085 arg5 = static_cast< long >(val5);
14086 }
14087 if (obj5) {
14088 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
14089 if (!SWIG_IsOK(res6)) {
14090 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14091 }
14092 if (!argp6) {
14093 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14094 }
14095 arg6 = reinterpret_cast< wxValidator * >(argp6);
14096 }
14097 if (obj6) {
14098 {
14099 arg7 = wxString_in_helper(obj6);
14100 if (arg7 == NULL) SWIG_fail;
14101 temp7 = true;
14102 }
14103 }
14104 {
14105 if (!wxPyCheckForApp()) SWIG_fail;
14106 PyThreadState* __tstate = wxPyBeginAllowThreads();
14107 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
14108 wxPyEndAllowThreads(__tstate);
14109 if (PyErr_Occurred()) SWIG_fail;
14110 }
14111 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_NEW | 0 );
14112 {
14113 if (temp7)
14114 delete arg7;
14115 }
14116 return resultobj;
14117fail:
14118 {
14119 if (temp7)
14120 delete arg7;
14121 }
14122 return NULL;
d14a1e28
RD
14123}
14124
14125
0085ce49
RD
14126SWIGINTERN PyObject *_wrap_new_PreScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14127 PyObject *resultobj = 0;
14128 wxScrollBar *result = 0 ;
14129
14130 if (!SWIG_Python_UnpackTuple(args,"new_PreScrollBar",0,0,0)) SWIG_fail;
14131 {
14132 if (!wxPyCheckForApp()) SWIG_fail;
14133 PyThreadState* __tstate = wxPyBeginAllowThreads();
14134 result = (wxScrollBar *)new wxScrollBar();
14135 wxPyEndAllowThreads(__tstate);
14136 if (PyErr_Occurred()) SWIG_fail;
14137 }
14138 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_OWN | 0 );
14139 return resultobj;
14140fail:
14141 return NULL;
14142}
14143
14144
14145SWIGINTERN PyObject *_wrap_ScrollBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14146 PyObject *resultobj = 0;
14147 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14148 wxWindow *arg2 = (wxWindow *) 0 ;
14149 int arg3 = (int) -1 ;
14150 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14151 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14152 wxSize const &arg5_defvalue = wxDefaultSize ;
14153 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14154 long arg6 = (long) wxSB_HORIZONTAL ;
14155 wxValidator const &arg7_defvalue = wxDefaultValidator ;
14156 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
14157 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
14158 wxString *arg8 = (wxString *) &arg8_defvalue ;
14159 bool result;
14160 void *argp1 = 0 ;
14161 int res1 = 0 ;
14162 void *argp2 = 0 ;
14163 int res2 = 0 ;
14164 int val3 ;
14165 int ecode3 = 0 ;
14166 wxPoint temp4 ;
14167 wxSize temp5 ;
14168 long val6 ;
14169 int ecode6 = 0 ;
14170 void *argp7 = 0 ;
14171 int res7 = 0 ;
14172 bool temp8 = false ;
14173 PyObject * obj0 = 0 ;
14174 PyObject * obj1 = 0 ;
14175 PyObject * obj2 = 0 ;
14176 PyObject * obj3 = 0 ;
14177 PyObject * obj4 = 0 ;
14178 PyObject * obj5 = 0 ;
14179 PyObject * obj6 = 0 ;
14180 PyObject * obj7 = 0 ;
14181 char * kwnames[] = {
14182 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14183 };
14184
14185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
14186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14187 if (!SWIG_IsOK(res1)) {
14188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_Create" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14189 }
14190 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14191 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14192 if (!SWIG_IsOK(res2)) {
14193 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrollBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14194 }
14195 arg2 = reinterpret_cast< wxWindow * >(argp2);
14196 if (obj2) {
14197 ecode3 = SWIG_AsVal_int(obj2, &val3);
14198 if (!SWIG_IsOK(ecode3)) {
14199 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrollBar_Create" "', expected argument " "3"" of type '" "int""'");
14200 }
14201 arg3 = static_cast< int >(val3);
14202 }
14203 if (obj3) {
093d3ff1 14204 {
0085ce49
RD
14205 arg4 = &temp4;
14206 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 14207 }
0085ce49
RD
14208 }
14209 if (obj4) {
d14a1e28 14210 {
0085ce49
RD
14211 arg5 = &temp5;
14212 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14213 }
14214 }
14215 if (obj5) {
14216 ecode6 = SWIG_AsVal_long(obj5, &val6);
14217 if (!SWIG_IsOK(ecode6)) {
14218 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrollBar_Create" "', expected argument " "6"" of type '" "long""'");
14219 }
14220 arg6 = static_cast< long >(val6);
14221 }
14222 if (obj6) {
14223 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
14224 if (!SWIG_IsOK(res7)) {
14225 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 14226 }
0085ce49
RD
14227 if (!argp7) {
14228 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14229 }
14230 arg7 = reinterpret_cast< wxValidator * >(argp7);
14231 }
14232 if (obj7) {
4f89f6a3 14233 {
0085ce49
RD
14234 arg8 = wxString_in_helper(obj7);
14235 if (arg8 == NULL) SWIG_fail;
14236 temp8 = true;
4f89f6a3 14237 }
0085ce49
RD
14238 }
14239 {
14240 PyThreadState* __tstate = wxPyBeginAllowThreads();
14241 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
14242 wxPyEndAllowThreads(__tstate);
14243 if (PyErr_Occurred()) SWIG_fail;
14244 }
14245 {
14246 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14247 }
14248 {
14249 if (temp8)
14250 delete arg8;
14251 }
14252 return resultobj;
14253fail:
14254 {
14255 if (temp8)
14256 delete arg8;
14257 }
14258 return NULL;
d14a1e28
RD
14259}
14260
14261
0085ce49
RD
14262SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14263 PyObject *resultobj = 0;
14264 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14265 int result;
14266 void *argp1 = 0 ;
14267 int res1 = 0 ;
14268 PyObject *swig_obj[1] ;
14269
14270 if (!args) SWIG_fail;
14271 swig_obj[0] = args;
14272 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14273 if (!SWIG_IsOK(res1)) {
14274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14275 }
14276 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14277 {
14278 PyThreadState* __tstate = wxPyBeginAllowThreads();
14279 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
14280 wxPyEndAllowThreads(__tstate);
14281 if (PyErr_Occurred()) SWIG_fail;
14282 }
14283 resultobj = SWIG_From_int(static_cast< int >(result));
14284 return resultobj;
14285fail:
14286 return NULL;
d14a1e28
RD
14287}
14288
14289
0085ce49
RD
14290SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14291 PyObject *resultobj = 0;
14292 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14293 int result;
14294 void *argp1 = 0 ;
14295 int res1 = 0 ;
14296 PyObject *swig_obj[1] ;
14297
14298 if (!args) SWIG_fail;
14299 swig_obj[0] = args;
14300 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14301 if (!SWIG_IsOK(res1)) {
14302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14303 }
14304 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14305 {
14306 PyThreadState* __tstate = wxPyBeginAllowThreads();
14307 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
14308 wxPyEndAllowThreads(__tstate);
14309 if (PyErr_Occurred()) SWIG_fail;
14310 }
14311 resultobj = SWIG_From_int(static_cast< int >(result));
14312 return resultobj;
14313fail:
14314 return NULL;
d14a1e28
RD
14315}
14316
14317
0085ce49
RD
14318SWIGINTERN PyObject *_wrap_ScrollBar_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14319 PyObject *resultobj = 0;
14320 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14321 int result;
14322 void *argp1 = 0 ;
14323 int res1 = 0 ;
14324 PyObject *swig_obj[1] ;
14325
14326 if (!args) SWIG_fail;
14327 swig_obj[0] = args;
14328 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14329 if (!SWIG_IsOK(res1)) {
14330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetPageSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14331 }
14332 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14333 {
14334 PyThreadState* __tstate = wxPyBeginAllowThreads();
14335 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
14336 wxPyEndAllowThreads(__tstate);
14337 if (PyErr_Occurred()) SWIG_fail;
14338 }
14339 resultobj = SWIG_From_int(static_cast< int >(result));
14340 return resultobj;
14341fail:
14342 return NULL;
d14a1e28
RD
14343}
14344
14345
0085ce49
RD
14346SWIGINTERN PyObject *_wrap_ScrollBar_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14347 PyObject *resultobj = 0;
14348 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14349 int result;
14350 void *argp1 = 0 ;
14351 int res1 = 0 ;
14352 PyObject *swig_obj[1] ;
14353
14354 if (!args) SWIG_fail;
14355 swig_obj[0] = args;
14356 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14357 if (!SWIG_IsOK(res1)) {
14358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetRange" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14359 }
14360 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14361 {
14362 PyThreadState* __tstate = wxPyBeginAllowThreads();
14363 result = (int)((wxScrollBar const *)arg1)->GetRange();
14364 wxPyEndAllowThreads(__tstate);
14365 if (PyErr_Occurred()) SWIG_fail;
14366 }
14367 resultobj = SWIG_From_int(static_cast< int >(result));
14368 return resultobj;
14369fail:
14370 return NULL;
d14a1e28
RD
14371}
14372
14373
0085ce49
RD
14374SWIGINTERN PyObject *_wrap_ScrollBar_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14375 PyObject *resultobj = 0;
14376 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14377 bool result;
14378 void *argp1 = 0 ;
14379 int res1 = 0 ;
14380 PyObject *swig_obj[1] ;
14381
14382 if (!args) SWIG_fail;
14383 swig_obj[0] = args;
14384 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14385 if (!SWIG_IsOK(res1)) {
14386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_IsVertical" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14387 }
14388 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14389 {
14390 PyThreadState* __tstate = wxPyBeginAllowThreads();
14391 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
14392 wxPyEndAllowThreads(__tstate);
14393 if (PyErr_Occurred()) SWIG_fail;
14394 }
14395 {
14396 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14397 }
14398 return resultobj;
14399fail:
14400 return NULL;
14401}
14402
14403
14404SWIGINTERN PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14405 PyObject *resultobj = 0;
14406 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14407 int arg2 ;
14408 void *argp1 = 0 ;
14409 int res1 = 0 ;
14410 int val2 ;
14411 int ecode2 = 0 ;
14412 PyObject * obj0 = 0 ;
14413 PyObject * obj1 = 0 ;
14414 char * kwnames[] = {
14415 (char *) "self",(char *) "viewStart", NULL
14416 };
14417
14418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) SWIG_fail;
14419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14420 if (!SWIG_IsOK(res1)) {
14421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14422 }
14423 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14424 ecode2 = SWIG_AsVal_int(obj1, &val2);
14425 if (!SWIG_IsOK(ecode2)) {
14426 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "2"" of type '" "int""'");
14427 }
14428 arg2 = static_cast< int >(val2);
14429 {
14430 PyThreadState* __tstate = wxPyBeginAllowThreads();
14431 (arg1)->SetThumbPosition(arg2);
14432 wxPyEndAllowThreads(__tstate);
14433 if (PyErr_Occurred()) SWIG_fail;
14434 }
14435 resultobj = SWIG_Py_Void();
14436 return resultobj;
14437fail:
14438 return NULL;
14439}
14440
14441
14442SWIGINTERN PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14443 PyObject *resultobj = 0;
14444 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14445 SwigValueWrapper<wxVisualAttributes > result;
14446 int val1 ;
14447 int ecode1 = 0 ;
14448 PyObject * obj0 = 0 ;
14449 char * kwnames[] = {
14450 (char *) "variant", NULL
14451 };
14452
14453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14454 if (obj0) {
14455 ecode1 = SWIG_AsVal_int(obj0, &val1);
14456 if (!SWIG_IsOK(ecode1)) {
14457 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrollBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14458 }
14459 arg1 = static_cast< wxWindowVariant >(val1);
14460 }
14461 {
14462 if (!wxPyCheckForApp()) SWIG_fail;
14463 PyThreadState* __tstate = wxPyBeginAllowThreads();
14464 result = wxScrollBar::GetClassDefaultAttributes(arg1);
14465 wxPyEndAllowThreads(__tstate);
14466 if (PyErr_Occurred()) SWIG_fail;
14467 }
14468 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14469 return resultobj;
14470fail:
14471 return NULL;
d14a1e28
RD
14472}
14473
14474
0085ce49
RD
14475SWIGINTERN PyObject *ScrollBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14476 PyObject *obj;
14477 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14478 SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollBar, SWIG_NewClientData(obj));
14479 return SWIG_Py_Void();
d14a1e28
RD
14480}
14481
0085ce49
RD
14482SWIGINTERN PyObject *ScrollBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14483 return SWIG_Python_InitShadowInstance(args);
14484}
d14a1e28 14485
0085ce49
RD
14486SWIGINTERN int SPIN_BUTTON_NAME_set(PyObject *) {
14487 SWIG_Error(SWIG_AttributeError,"Variable SPIN_BUTTON_NAME is read-only.");
14488 return 1;
d14a1e28
RD
14489}
14490
14491
0085ce49
RD
14492SWIGINTERN PyObject *SPIN_BUTTON_NAME_get(void) {
14493 PyObject *pyobj = 0;
14494
14495 {
14496#if wxUSE_UNICODE
14497 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14498#else
14499 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14500#endif
14501 }
14502 return pyobj;
d14a1e28
RD
14503}
14504
14505
0085ce49
RD
14506SWIGINTERN int SpinCtrlNameStr_set(PyObject *) {
14507 SWIG_Error(SWIG_AttributeError,"Variable SpinCtrlNameStr is read-only.");
14508 return 1;
d14a1e28
RD
14509}
14510
14511
0085ce49
RD
14512SWIGINTERN PyObject *SpinCtrlNameStr_get(void) {
14513 PyObject *pyobj = 0;
14514
14515 {
14516#if wxUSE_UNICODE
14517 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14518#else
14519 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14520#endif
14521 }
14522 return pyobj;
14523}
14524
14525
14526SWIGINTERN PyObject *_wrap_new_SpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14527 PyObject *resultobj = 0;
14528 wxWindow *arg1 = (wxWindow *) 0 ;
14529 int arg2 = (int) -1 ;
14530 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14531 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14532 wxSize const &arg4_defvalue = wxDefaultSize ;
14533 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14534 long arg5 = (long) wxSP_HORIZONTAL ;
14535 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
14536 wxString *arg6 = (wxString *) &arg6_defvalue ;
14537 wxSpinButton *result = 0 ;
14538 void *argp1 = 0 ;
14539 int res1 = 0 ;
14540 int val2 ;
14541 int ecode2 = 0 ;
14542 wxPoint temp3 ;
14543 wxSize temp4 ;
14544 long val5 ;
14545 int ecode5 = 0 ;
14546 bool temp6 = false ;
14547 PyObject * obj0 = 0 ;
14548 PyObject * obj1 = 0 ;
14549 PyObject * obj2 = 0 ;
14550 PyObject * obj3 = 0 ;
14551 PyObject * obj4 = 0 ;
14552 PyObject * obj5 = 0 ;
14553 char * kwnames[] = {
14554 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14555 };
14556
14557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
14558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14559 if (!SWIG_IsOK(res1)) {
14560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinButton" "', expected argument " "1"" of type '" "wxWindow *""'");
14561 }
14562 arg1 = reinterpret_cast< wxWindow * >(argp1);
14563 if (obj1) {
14564 ecode2 = SWIG_AsVal_int(obj1, &val2);
14565 if (!SWIG_IsOK(ecode2)) {
14566 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinButton" "', expected argument " "2"" of type '" "int""'");
14567 }
14568 arg2 = static_cast< int >(val2);
14569 }
14570 if (obj2) {
093d3ff1 14571 {
0085ce49
RD
14572 arg3 = &temp3;
14573 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 14574 }
0085ce49
RD
14575 }
14576 if (obj3) {
d14a1e28 14577 {
0085ce49
RD
14578 arg4 = &temp4;
14579 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 14580 }
0085ce49
RD
14581 }
14582 if (obj4) {
14583 ecode5 = SWIG_AsVal_long(obj4, &val5);
14584 if (!SWIG_IsOK(ecode5)) {
14585 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpinButton" "', expected argument " "5"" of type '" "long""'");
14586 }
14587 arg5 = static_cast< long >(val5);
14588 }
14589 if (obj5) {
d14a1e28 14590 {
0085ce49
RD
14591 arg6 = wxString_in_helper(obj5);
14592 if (arg6 == NULL) SWIG_fail;
14593 temp6 = true;
d14a1e28 14594 }
0085ce49
RD
14595 }
14596 {
14597 if (!wxPyCheckForApp()) SWIG_fail;
14598 PyThreadState* __tstate = wxPyBeginAllowThreads();
14599 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14600 wxPyEndAllowThreads(__tstate);
14601 if (PyErr_Occurred()) SWIG_fail;
14602 }
14603 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_NEW | 0 );
14604 {
14605 if (temp6)
14606 delete arg6;
14607 }
14608 return resultobj;
14609fail:
14610 {
14611 if (temp6)
14612 delete arg6;
14613 }
14614 return NULL;
d14a1e28
RD
14615}
14616
14617
0085ce49
RD
14618SWIGINTERN PyObject *_wrap_new_PreSpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14619 PyObject *resultobj = 0;
14620 wxSpinButton *result = 0 ;
14621
14622 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinButton",0,0,0)) SWIG_fail;
14623 {
14624 if (!wxPyCheckForApp()) SWIG_fail;
14625 PyThreadState* __tstate = wxPyBeginAllowThreads();
14626 result = (wxSpinButton *)new wxSpinButton();
14627 wxPyEndAllowThreads(__tstate);
14628 if (PyErr_Occurred()) SWIG_fail;
14629 }
14630 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_OWN | 0 );
14631 return resultobj;
14632fail:
14633 return NULL;
14634}
14635
14636
14637SWIGINTERN PyObject *_wrap_SpinButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14638 PyObject *resultobj = 0;
14639 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14640 wxWindow *arg2 = (wxWindow *) 0 ;
14641 int arg3 = (int) -1 ;
14642 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14643 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14644 wxSize const &arg5_defvalue = wxDefaultSize ;
14645 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14646 long arg6 = (long) wxSP_HORIZONTAL ;
14647 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
14648 wxString *arg7 = (wxString *) &arg7_defvalue ;
14649 bool result;
14650 void *argp1 = 0 ;
14651 int res1 = 0 ;
14652 void *argp2 = 0 ;
14653 int res2 = 0 ;
14654 int val3 ;
14655 int ecode3 = 0 ;
14656 wxPoint temp4 ;
14657 wxSize temp5 ;
14658 long val6 ;
14659 int ecode6 = 0 ;
14660 bool temp7 = false ;
14661 PyObject * obj0 = 0 ;
14662 PyObject * obj1 = 0 ;
14663 PyObject * obj2 = 0 ;
14664 PyObject * obj3 = 0 ;
14665 PyObject * obj4 = 0 ;
14666 PyObject * obj5 = 0 ;
14667 PyObject * obj6 = 0 ;
14668 char * kwnames[] = {
14669 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14670 };
14671
14672 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14673 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14674 if (!SWIG_IsOK(res1)) {
14675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_Create" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14676 }
14677 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14678 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14679 if (!SWIG_IsOK(res2)) {
14680 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14681 }
14682 arg2 = reinterpret_cast< wxWindow * >(argp2);
14683 if (obj2) {
14684 ecode3 = SWIG_AsVal_int(obj2, &val3);
14685 if (!SWIG_IsOK(ecode3)) {
14686 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_Create" "', expected argument " "3"" of type '" "int""'");
14687 }
14688 arg3 = static_cast< int >(val3);
14689 }
14690 if (obj3) {
d14a1e28 14691 {
0085ce49
RD
14692 arg4 = &temp4;
14693 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 14694 }
0085ce49
RD
14695 }
14696 if (obj4) {
d14a1e28 14697 {
0085ce49
RD
14698 arg5 = &temp5;
14699 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 14700 }
0085ce49
RD
14701 }
14702 if (obj5) {
14703 ecode6 = SWIG_AsVal_long(obj5, &val6);
14704 if (!SWIG_IsOK(ecode6)) {
14705 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SpinButton_Create" "', expected argument " "6"" of type '" "long""'");
14706 }
14707 arg6 = static_cast< long >(val6);
14708 }
14709 if (obj6) {
d14a1e28 14710 {
0085ce49
RD
14711 arg7 = wxString_in_helper(obj6);
14712 if (arg7 == NULL) SWIG_fail;
14713 temp7 = true;
d14a1e28 14714 }
0085ce49
RD
14715 }
14716 {
14717 PyThreadState* __tstate = wxPyBeginAllowThreads();
14718 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
14719 wxPyEndAllowThreads(__tstate);
14720 if (PyErr_Occurred()) SWIG_fail;
14721 }
14722 {
14723 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14724 }
14725 {
14726 if (temp7)
14727 delete arg7;
14728 }
14729 return resultobj;
14730fail:
14731 {
14732 if (temp7)
14733 delete arg7;
14734 }
14735 return NULL;
d14a1e28
RD
14736}
14737
14738
0085ce49
RD
14739SWIGINTERN PyObject *_wrap_SpinButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14740 PyObject *resultobj = 0;
14741 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14742 int result;
14743 void *argp1 = 0 ;
14744 int res1 = 0 ;
14745 PyObject *swig_obj[1] ;
14746
14747 if (!args) SWIG_fail;
14748 swig_obj[0] = args;
14749 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14750 if (!SWIG_IsOK(res1)) {
14751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetValue" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14752 }
14753 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14754 {
14755 PyThreadState* __tstate = wxPyBeginAllowThreads();
14756 result = (int)((wxSpinButton const *)arg1)->GetValue();
14757 wxPyEndAllowThreads(__tstate);
14758 if (PyErr_Occurred()) SWIG_fail;
14759 }
14760 resultobj = SWIG_From_int(static_cast< int >(result));
14761 return resultobj;
14762fail:
14763 return NULL;
d14a1e28
RD
14764}
14765
14766
0085ce49
RD
14767SWIGINTERN PyObject *_wrap_SpinButton_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14768 PyObject *resultobj = 0;
14769 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14770 int result;
14771 void *argp1 = 0 ;
14772 int res1 = 0 ;
14773 PyObject *swig_obj[1] ;
14774
14775 if (!args) SWIG_fail;
14776 swig_obj[0] = args;
14777 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14778 if (!SWIG_IsOK(res1)) {
14779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMin" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14780 }
14781 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14782 {
14783 PyThreadState* __tstate = wxPyBeginAllowThreads();
14784 result = (int)((wxSpinButton const *)arg1)->GetMin();
14785 wxPyEndAllowThreads(__tstate);
14786 if (PyErr_Occurred()) SWIG_fail;
14787 }
14788 resultobj = SWIG_From_int(static_cast< int >(result));
14789 return resultobj;
14790fail:
14791 return NULL;
d14a1e28
RD
14792}
14793
14794
0085ce49
RD
14795SWIGINTERN PyObject *_wrap_SpinButton_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14796 PyObject *resultobj = 0;
14797 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14798 int result;
14799 void *argp1 = 0 ;
14800 int res1 = 0 ;
14801 PyObject *swig_obj[1] ;
14802
14803 if (!args) SWIG_fail;
14804 swig_obj[0] = args;
14805 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14806 if (!SWIG_IsOK(res1)) {
14807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMax" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14808 }
14809 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14810 {
14811 PyThreadState* __tstate = wxPyBeginAllowThreads();
14812 result = (int)((wxSpinButton const *)arg1)->GetMax();
14813 wxPyEndAllowThreads(__tstate);
14814 if (PyErr_Occurred()) SWIG_fail;
14815 }
14816 resultobj = SWIG_From_int(static_cast< int >(result));
14817 return resultobj;
14818fail:
14819 return NULL;
14820}
14821
14822
14823SWIGINTERN PyObject *_wrap_SpinButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14824 PyObject *resultobj = 0;
14825 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14826 int arg2 ;
14827 void *argp1 = 0 ;
14828 int res1 = 0 ;
14829 int val2 ;
14830 int ecode2 = 0 ;
14831 PyObject * obj0 = 0 ;
14832 PyObject * obj1 = 0 ;
14833 char * kwnames[] = {
14834 (char *) "self",(char *) "val", NULL
14835 };
14836
14837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
14838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14839 if (!SWIG_IsOK(res1)) {
14840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetValue" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14841 }
14842 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14843 ecode2 = SWIG_AsVal_int(obj1, &val2);
14844 if (!SWIG_IsOK(ecode2)) {
14845 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetValue" "', expected argument " "2"" of type '" "int""'");
14846 }
14847 arg2 = static_cast< int >(val2);
14848 {
14849 PyThreadState* __tstate = wxPyBeginAllowThreads();
14850 (arg1)->SetValue(arg2);
14851 wxPyEndAllowThreads(__tstate);
14852 if (PyErr_Occurred()) SWIG_fail;
14853 }
14854 resultobj = SWIG_Py_Void();
14855 return resultobj;
14856fail:
14857 return NULL;
14858}
14859
14860
14861SWIGINTERN PyObject *_wrap_SpinButton_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14862 PyObject *resultobj = 0;
14863 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14864 int arg2 ;
14865 void *argp1 = 0 ;
14866 int res1 = 0 ;
14867 int val2 ;
14868 int ecode2 = 0 ;
14869 PyObject * obj0 = 0 ;
14870 PyObject * obj1 = 0 ;
14871 char * kwnames[] = {
14872 (char *) "self",(char *) "minVal", NULL
14873 };
14874
14875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
14876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14877 if (!SWIG_IsOK(res1)) {
14878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMin" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14879 }
14880 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14881 ecode2 = SWIG_AsVal_int(obj1, &val2);
14882 if (!SWIG_IsOK(ecode2)) {
14883 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMin" "', expected argument " "2"" of type '" "int""'");
14884 }
14885 arg2 = static_cast< int >(val2);
14886 {
14887 PyThreadState* __tstate = wxPyBeginAllowThreads();
14888 (arg1)->SetMin(arg2);
14889 wxPyEndAllowThreads(__tstate);
14890 if (PyErr_Occurred()) SWIG_fail;
14891 }
14892 resultobj = SWIG_Py_Void();
14893 return resultobj;
14894fail:
14895 return NULL;
14896}
14897
14898
14899SWIGINTERN PyObject *_wrap_SpinButton_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14900 PyObject *resultobj = 0;
14901 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14902 int arg2 ;
14903 void *argp1 = 0 ;
14904 int res1 = 0 ;
14905 int val2 ;
14906 int ecode2 = 0 ;
14907 PyObject * obj0 = 0 ;
14908 PyObject * obj1 = 0 ;
14909 char * kwnames[] = {
14910 (char *) "self",(char *) "maxVal", NULL
14911 };
14912
14913 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
14914 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14915 if (!SWIG_IsOK(res1)) {
14916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMax" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14917 }
14918 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14919 ecode2 = SWIG_AsVal_int(obj1, &val2);
14920 if (!SWIG_IsOK(ecode2)) {
14921 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMax" "', expected argument " "2"" of type '" "int""'");
14922 }
14923 arg2 = static_cast< int >(val2);
14924 {
14925 PyThreadState* __tstate = wxPyBeginAllowThreads();
14926 (arg1)->SetMax(arg2);
14927 wxPyEndAllowThreads(__tstate);
14928 if (PyErr_Occurred()) SWIG_fail;
14929 }
14930 resultobj = SWIG_Py_Void();
14931 return resultobj;
14932fail:
14933 return NULL;
14934}
14935
14936
14937SWIGINTERN PyObject *_wrap_SpinButton_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14938 PyObject *resultobj = 0;
14939 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14940 int arg2 ;
14941 int arg3 ;
14942 void *argp1 = 0 ;
14943 int res1 = 0 ;
14944 int val2 ;
14945 int ecode2 = 0 ;
14946 int val3 ;
14947 int ecode3 = 0 ;
14948 PyObject * obj0 = 0 ;
14949 PyObject * obj1 = 0 ;
14950 PyObject * obj2 = 0 ;
14951 char * kwnames[] = {
14952 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
14953 };
14954
14955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14957 if (!SWIG_IsOK(res1)) {
14958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetRange" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14959 }
14960 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14961 ecode2 = SWIG_AsVal_int(obj1, &val2);
14962 if (!SWIG_IsOK(ecode2)) {
14963 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetRange" "', expected argument " "2"" of type '" "int""'");
14964 }
14965 arg2 = static_cast< int >(val2);
14966 ecode3 = SWIG_AsVal_int(obj2, &val3);
14967 if (!SWIG_IsOK(ecode3)) {
14968 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_SetRange" "', expected argument " "3"" of type '" "int""'");
14969 }
14970 arg3 = static_cast< int >(val3);
14971 {
14972 PyThreadState* __tstate = wxPyBeginAllowThreads();
14973 (arg1)->SetRange(arg2,arg3);
14974 wxPyEndAllowThreads(__tstate);
14975 if (PyErr_Occurred()) SWIG_fail;
14976 }
14977 resultobj = SWIG_Py_Void();
14978 return resultobj;
14979fail:
14980 return NULL;
d14a1e28
RD
14981}
14982
14983
0085ce49
RD
14984SWIGINTERN PyObject *_wrap_SpinButton_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14985 PyObject *resultobj = 0;
14986 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14987 bool result;
14988 void *argp1 = 0 ;
14989 int res1 = 0 ;
14990 PyObject *swig_obj[1] ;
14991
14992 if (!args) SWIG_fail;
14993 swig_obj[0] = args;
14994 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14995 if (!SWIG_IsOK(res1)) {
14996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_IsVertical" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14997 }
14998 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14999 {
15000 PyThreadState* __tstate = wxPyBeginAllowThreads();
15001 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
15002 wxPyEndAllowThreads(__tstate);
15003 if (PyErr_Occurred()) SWIG_fail;
15004 }
15005 {
15006 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15007 }
15008 return resultobj;
15009fail:
15010 return NULL;
d14a1e28
RD
15011}
15012
15013
0085ce49
RD
15014SWIGINTERN PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15015 PyObject *resultobj = 0;
15016 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15017 SwigValueWrapper<wxVisualAttributes > result;
15018 int val1 ;
15019 int ecode1 = 0 ;
15020 PyObject * obj0 = 0 ;
15021 char * kwnames[] = {
15022 (char *) "variant", NULL
15023 };
15024
15025 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15026 if (obj0) {
15027 ecode1 = SWIG_AsVal_int(obj0, &val1);
15028 if (!SWIG_IsOK(ecode1)) {
15029 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15030 }
15031 arg1 = static_cast< wxWindowVariant >(val1);
15032 }
15033 {
15034 if (!wxPyCheckForApp()) SWIG_fail;
15035 PyThreadState* __tstate = wxPyBeginAllowThreads();
15036 result = wxSpinButton::GetClassDefaultAttributes(arg1);
15037 wxPyEndAllowThreads(__tstate);
15038 if (PyErr_Occurred()) SWIG_fail;
15039 }
15040 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15041 return resultobj;
15042fail:
15043 return NULL;
15044}
15045
15046
15047SWIGINTERN PyObject *SpinButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15048 PyObject *obj;
15049 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15050 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinButton, SWIG_NewClientData(obj));
15051 return SWIG_Py_Void();
15052}
15053
15054SWIGINTERN PyObject *SpinButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15055 return SWIG_Python_InitShadowInstance(args);
15056}
15057
15058SWIGINTERN PyObject *_wrap_new_SpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15059 PyObject *resultobj = 0;
15060 wxWindow *arg1 = (wxWindow *) 0 ;
15061 int arg2 = (int) -1 ;
15062 wxString const &arg3_defvalue = wxPyEmptyString ;
15063 wxString *arg3 = (wxString *) &arg3_defvalue ;
15064 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15065 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15066 wxSize const &arg5_defvalue = wxDefaultSize ;
15067 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15068 long arg6 = (long) wxSP_ARROW_KEYS ;
15069 int arg7 = (int) 0 ;
15070 int arg8 = (int) 100 ;
15071 int arg9 = (int) 0 ;
15072 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
15073 wxString *arg10 = (wxString *) &arg10_defvalue ;
15074 wxSpinCtrl *result = 0 ;
15075 void *argp1 = 0 ;
15076 int res1 = 0 ;
15077 int val2 ;
15078 int ecode2 = 0 ;
15079 bool temp3 = false ;
15080 wxPoint temp4 ;
15081 wxSize temp5 ;
15082 long val6 ;
15083 int ecode6 = 0 ;
15084 int val7 ;
15085 int ecode7 = 0 ;
15086 int val8 ;
15087 int ecode8 = 0 ;
15088 int val9 ;
15089 int ecode9 = 0 ;
15090 bool temp10 = false ;
15091 PyObject * obj0 = 0 ;
15092 PyObject * obj1 = 0 ;
15093 PyObject * obj2 = 0 ;
15094 PyObject * obj3 = 0 ;
15095 PyObject * obj4 = 0 ;
15096 PyObject * obj5 = 0 ;
15097 PyObject * obj6 = 0 ;
15098 PyObject * obj7 = 0 ;
15099 PyObject * obj8 = 0 ;
15100 PyObject * obj9 = 0 ;
15101 char * kwnames[] = {
15102 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15103 };
15104
15105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15107 if (!SWIG_IsOK(res1)) {
15108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
15109 }
15110 arg1 = reinterpret_cast< wxWindow * >(argp1);
15111 if (obj1) {
15112 ecode2 = SWIG_AsVal_int(obj1, &val2);
15113 if (!SWIG_IsOK(ecode2)) {
15114 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinCtrl" "', expected argument " "2"" of type '" "int""'");
15115 }
15116 arg2 = static_cast< int >(val2);
15117 }
15118 if (obj2) {
093d3ff1 15119 {
0085ce49
RD
15120 arg3 = wxString_in_helper(obj2);
15121 if (arg3 == NULL) SWIG_fail;
15122 temp3 = true;
093d3ff1 15123 }
0085ce49
RD
15124 }
15125 if (obj3) {
093d3ff1 15126 {
0085ce49
RD
15127 arg4 = &temp4;
15128 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 15129 }
0085ce49
RD
15130 }
15131 if (obj4) {
d14a1e28 15132 {
0085ce49
RD
15133 arg5 = &temp5;
15134 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 15135 }
0085ce49
RD
15136 }
15137 if (obj5) {
15138 ecode6 = SWIG_AsVal_long(obj5, &val6);
15139 if (!SWIG_IsOK(ecode6)) {
15140 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpinCtrl" "', expected argument " "6"" of type '" "long""'");
15141 }
15142 arg6 = static_cast< long >(val6);
15143 }
15144 if (obj6) {
15145 ecode7 = SWIG_AsVal_int(obj6, &val7);
15146 if (!SWIG_IsOK(ecode7)) {
15147 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpinCtrl" "', expected argument " "7"" of type '" "int""'");
15148 }
15149 arg7 = static_cast< int >(val7);
15150 }
15151 if (obj7) {
15152 ecode8 = SWIG_AsVal_int(obj7, &val8);
15153 if (!SWIG_IsOK(ecode8)) {
15154 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SpinCtrl" "', expected argument " "8"" of type '" "int""'");
15155 }
15156 arg8 = static_cast< int >(val8);
15157 }
15158 if (obj8) {
15159 ecode9 = SWIG_AsVal_int(obj8, &val9);
15160 if (!SWIG_IsOK(ecode9)) {
15161 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpinCtrl" "', expected argument " "9"" of type '" "int""'");
15162 }
15163 arg9 = static_cast< int >(val9);
15164 }
15165 if (obj9) {
d14a1e28 15166 {
0085ce49
RD
15167 arg10 = wxString_in_helper(obj9);
15168 if (arg10 == NULL) SWIG_fail;
15169 temp10 = true;
d14a1e28 15170 }
0085ce49
RD
15171 }
15172 {
15173 if (!wxPyCheckForApp()) SWIG_fail;
15174 PyThreadState* __tstate = wxPyBeginAllowThreads();
15175 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
15176 wxPyEndAllowThreads(__tstate);
15177 if (PyErr_Occurred()) SWIG_fail;
15178 }
15179 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_NEW | 0 );
15180 {
15181 if (temp3)
15182 delete arg3;
15183 }
15184 {
15185 if (temp10)
15186 delete arg10;
15187 }
15188 return resultobj;
15189fail:
15190 {
15191 if (temp3)
15192 delete arg3;
15193 }
15194 {
15195 if (temp10)
15196 delete arg10;
15197 }
15198 return NULL;
d14a1e28
RD
15199}
15200
15201
0085ce49
RD
15202SWIGINTERN PyObject *_wrap_new_PreSpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15203 PyObject *resultobj = 0;
15204 wxSpinCtrl *result = 0 ;
15205
15206 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinCtrl",0,0,0)) SWIG_fail;
15207 {
15208 if (!wxPyCheckForApp()) SWIG_fail;
15209 PyThreadState* __tstate = wxPyBeginAllowThreads();
15210 result = (wxSpinCtrl *)new wxSpinCtrl();
15211 wxPyEndAllowThreads(__tstate);
15212 if (PyErr_Occurred()) SWIG_fail;
15213 }
15214 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_OWN | 0 );
15215 return resultobj;
15216fail:
15217 return NULL;
15218}
15219
15220
15221SWIGINTERN PyObject *_wrap_SpinCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15222 PyObject *resultobj = 0;
15223 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15224 wxWindow *arg2 = (wxWindow *) 0 ;
15225 int arg3 = (int) -1 ;
15226 wxString const &arg4_defvalue = wxPyEmptyString ;
15227 wxString *arg4 = (wxString *) &arg4_defvalue ;
15228 wxPoint const &arg5_defvalue = wxDefaultPosition ;
15229 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
15230 wxSize const &arg6_defvalue = wxDefaultSize ;
15231 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
15232 long arg7 = (long) wxSP_ARROW_KEYS ;
15233 int arg8 = (int) 0 ;
15234 int arg9 = (int) 100 ;
15235 int arg10 = (int) 0 ;
15236 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
15237 wxString *arg11 = (wxString *) &arg11_defvalue ;
15238 bool result;
15239 void *argp1 = 0 ;
15240 int res1 = 0 ;
15241 void *argp2 = 0 ;
15242 int res2 = 0 ;
15243 int val3 ;
15244 int ecode3 = 0 ;
15245 bool temp4 = false ;
15246 wxPoint temp5 ;
15247 wxSize temp6 ;
15248 long val7 ;
15249 int ecode7 = 0 ;
15250 int val8 ;
15251 int ecode8 = 0 ;
15252 int val9 ;
15253 int ecode9 = 0 ;
15254 int val10 ;
15255 int ecode10 = 0 ;
15256 bool temp11 = false ;
15257 PyObject * obj0 = 0 ;
15258 PyObject * obj1 = 0 ;
15259 PyObject * obj2 = 0 ;
15260 PyObject * obj3 = 0 ;
15261 PyObject * obj4 = 0 ;
15262 PyObject * obj5 = 0 ;
15263 PyObject * obj6 = 0 ;
15264 PyObject * obj7 = 0 ;
15265 PyObject * obj8 = 0 ;
15266 PyObject * obj9 = 0 ;
15267 PyObject * obj10 = 0 ;
15268 char * kwnames[] = {
15269 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15270 };
15271
15272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
15273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15274 if (!SWIG_IsOK(res1)) {
15275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_Create" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15276 }
15277 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15278 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
15279 if (!SWIG_IsOK(res2)) {
15280 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
15281 }
15282 arg2 = reinterpret_cast< wxWindow * >(argp2);
15283 if (obj2) {
15284 ecode3 = SWIG_AsVal_int(obj2, &val3);
15285 if (!SWIG_IsOK(ecode3)) {
15286 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_Create" "', expected argument " "3"" of type '" "int""'");
15287 }
15288 arg3 = static_cast< int >(val3);
15289 }
15290 if (obj3) {
093d3ff1 15291 {
0085ce49
RD
15292 arg4 = wxString_in_helper(obj3);
15293 if (arg4 == NULL) SWIG_fail;
15294 temp4 = true;
093d3ff1 15295 }
0085ce49
RD
15296 }
15297 if (obj4) {
d14a1e28 15298 {
0085ce49
RD
15299 arg5 = &temp5;
15300 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 15301 }
0085ce49
RD
15302 }
15303 if (obj5) {
093d3ff1 15304 {
0085ce49
RD
15305 arg6 = &temp6;
15306 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d14a1e28 15307 }
0085ce49
RD
15308 }
15309 if (obj6) {
15310 ecode7 = SWIG_AsVal_long(obj6, &val7);
15311 if (!SWIG_IsOK(ecode7)) {
15312 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SpinCtrl_Create" "', expected argument " "7"" of type '" "long""'");
15313 }
15314 arg7 = static_cast< long >(val7);
15315 }
15316 if (obj7) {
15317 ecode8 = SWIG_AsVal_int(obj7, &val8);
15318 if (!SWIG_IsOK(ecode8)) {
15319 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "SpinCtrl_Create" "', expected argument " "8"" of type '" "int""'");
15320 }
15321 arg8 = static_cast< int >(val8);
15322 }
15323 if (obj8) {
15324 ecode9 = SWIG_AsVal_int(obj8, &val9);
15325 if (!SWIG_IsOK(ecode9)) {
15326 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "SpinCtrl_Create" "', expected argument " "9"" of type '" "int""'");
15327 }
15328 arg9 = static_cast< int >(val9);
15329 }
15330 if (obj9) {
15331 ecode10 = SWIG_AsVal_int(obj9, &val10);
15332 if (!SWIG_IsOK(ecode10)) {
15333 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "SpinCtrl_Create" "', expected argument " "10"" of type '" "int""'");
15334 }
15335 arg10 = static_cast< int >(val10);
15336 }
15337 if (obj10) {
d14a1e28 15338 {
0085ce49
RD
15339 arg11 = wxString_in_helper(obj10);
15340 if (arg11 == NULL) SWIG_fail;
15341 temp11 = true;
d14a1e28 15342 }
0085ce49
RD
15343 }
15344 {
15345 PyThreadState* __tstate = wxPyBeginAllowThreads();
15346 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
15347 wxPyEndAllowThreads(__tstate);
15348 if (PyErr_Occurred()) SWIG_fail;
15349 }
15350 {
15351 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15352 }
15353 {
15354 if (temp4)
15355 delete arg4;
15356 }
15357 {
15358 if (temp11)
15359 delete arg11;
15360 }
15361 return resultobj;
15362fail:
15363 {
15364 if (temp4)
15365 delete arg4;
15366 }
15367 {
15368 if (temp11)
15369 delete arg11;
15370 }
15371 return NULL;
d14a1e28
RD
15372}
15373
15374
0085ce49
RD
15375SWIGINTERN PyObject *_wrap_SpinCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15376 PyObject *resultobj = 0;
15377 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15378 int result;
15379 void *argp1 = 0 ;
15380 int res1 = 0 ;
15381 PyObject *swig_obj[1] ;
15382
15383 if (!args) SWIG_fail;
15384 swig_obj[0] = args;
15385 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15386 if (!SWIG_IsOK(res1)) {
15387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetValue" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15388 }
15389 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15390 {
15391 PyThreadState* __tstate = wxPyBeginAllowThreads();
15392 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
15393 wxPyEndAllowThreads(__tstate);
15394 if (PyErr_Occurred()) SWIG_fail;
15395 }
15396 resultobj = SWIG_From_int(static_cast< int >(result));
15397 return resultobj;
15398fail:
15399 return NULL;
15400}
15401
15402
15403SWIGINTERN PyObject *_wrap_SpinCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15404 PyObject *resultobj = 0;
15405 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15406 int arg2 ;
15407 void *argp1 = 0 ;
15408 int res1 = 0 ;
15409 int val2 ;
15410 int ecode2 = 0 ;
15411 PyObject * obj0 = 0 ;
15412 PyObject * obj1 = 0 ;
15413 char * kwnames[] = {
15414 (char *) "self",(char *) "value", NULL
15415 };
15416
15417 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15418 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15419 if (!SWIG_IsOK(res1)) {
15420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValue" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15421 }
15422 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15423 ecode2 = SWIG_AsVal_int(obj1, &val2);
15424 if (!SWIG_IsOK(ecode2)) {
15425 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetValue" "', expected argument " "2"" of type '" "int""'");
15426 }
15427 arg2 = static_cast< int >(val2);
15428 {
15429 PyThreadState* __tstate = wxPyBeginAllowThreads();
15430 (arg1)->SetValue(arg2);
15431 wxPyEndAllowThreads(__tstate);
15432 if (PyErr_Occurred()) SWIG_fail;
15433 }
15434 resultobj = SWIG_Py_Void();
15435 return resultobj;
15436fail:
15437 return NULL;
15438}
15439
15440
15441SWIGINTERN PyObject *_wrap_SpinCtrl_SetValueString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15442 PyObject *resultobj = 0;
15443 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15444 wxString *arg2 = 0 ;
15445 void *argp1 = 0 ;
15446 int res1 = 0 ;
15447 bool temp2 = false ;
15448 PyObject * obj0 = 0 ;
15449 PyObject * obj1 = 0 ;
15450 char * kwnames[] = {
15451 (char *) "self",(char *) "text", NULL
15452 };
15453
15454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) SWIG_fail;
15455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15456 if (!SWIG_IsOK(res1)) {
15457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValueString" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15458 }
15459 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15460 {
15461 arg2 = wxString_in_helper(obj1);
15462 if (arg2 == NULL) SWIG_fail;
15463 temp2 = true;
15464 }
15465 {
15466 PyThreadState* __tstate = wxPyBeginAllowThreads();
15467 (arg1)->SetValue((wxString const &)*arg2);
15468 wxPyEndAllowThreads(__tstate);
15469 if (PyErr_Occurred()) SWIG_fail;
15470 }
15471 resultobj = SWIG_Py_Void();
15472 {
15473 if (temp2)
15474 delete arg2;
15475 }
15476 return resultobj;
15477fail:
15478 {
15479 if (temp2)
15480 delete arg2;
15481 }
15482 return NULL;
15483}
15484
15485
15486SWIGINTERN PyObject *_wrap_SpinCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15487 PyObject *resultobj = 0;
15488 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15489 int arg2 ;
15490 int arg3 ;
15491 void *argp1 = 0 ;
15492 int res1 = 0 ;
15493 int val2 ;
15494 int ecode2 = 0 ;
15495 int val3 ;
15496 int ecode3 = 0 ;
15497 PyObject * obj0 = 0 ;
15498 PyObject * obj1 = 0 ;
15499 PyObject * obj2 = 0 ;
15500 char * kwnames[] = {
15501 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15502 };
15503
15504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15506 if (!SWIG_IsOK(res1)) {
15507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetRange" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15508 }
15509 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15510 ecode2 = SWIG_AsVal_int(obj1, &val2);
15511 if (!SWIG_IsOK(ecode2)) {
15512 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetRange" "', expected argument " "2"" of type '" "int""'");
15513 }
15514 arg2 = static_cast< int >(val2);
15515 ecode3 = SWIG_AsVal_int(obj2, &val3);
15516 if (!SWIG_IsOK(ecode3)) {
15517 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetRange" "', expected argument " "3"" of type '" "int""'");
15518 }
15519 arg3 = static_cast< int >(val3);
15520 {
15521 PyThreadState* __tstate = wxPyBeginAllowThreads();
15522 (arg1)->SetRange(arg2,arg3);
15523 wxPyEndAllowThreads(__tstate);
15524 if (PyErr_Occurred()) SWIG_fail;
15525 }
15526 resultobj = SWIG_Py_Void();
15527 return resultobj;
15528fail:
15529 return NULL;
d14a1e28
RD
15530}
15531
15532
0085ce49
RD
15533SWIGINTERN PyObject *_wrap_SpinCtrl_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15534 PyObject *resultobj = 0;
15535 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15536 int result;
15537 void *argp1 = 0 ;
15538 int res1 = 0 ;
15539 PyObject *swig_obj[1] ;
15540
15541 if (!args) SWIG_fail;
15542 swig_obj[0] = args;
15543 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15544 if (!SWIG_IsOK(res1)) {
15545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMin" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15546 }
15547 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15548 {
15549 PyThreadState* __tstate = wxPyBeginAllowThreads();
15550 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
15551 wxPyEndAllowThreads(__tstate);
15552 if (PyErr_Occurred()) SWIG_fail;
15553 }
15554 resultobj = SWIG_From_int(static_cast< int >(result));
15555 return resultobj;
15556fail:
15557 return NULL;
d14a1e28
RD
15558}
15559
15560
0085ce49
RD
15561SWIGINTERN PyObject *_wrap_SpinCtrl_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15562 PyObject *resultobj = 0;
15563 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15564 int result;
15565 void *argp1 = 0 ;
15566 int res1 = 0 ;
15567 PyObject *swig_obj[1] ;
15568
15569 if (!args) SWIG_fail;
15570 swig_obj[0] = args;
15571 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15572 if (!SWIG_IsOK(res1)) {
15573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMax" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15574 }
15575 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15576 {
15577 PyThreadState* __tstate = wxPyBeginAllowThreads();
15578 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
15579 wxPyEndAllowThreads(__tstate);
15580 if (PyErr_Occurred()) SWIG_fail;
15581 }
15582 resultobj = SWIG_From_int(static_cast< int >(result));
15583 return resultobj;
15584fail:
15585 return NULL;
15586}
15587
15588
15589SWIGINTERN PyObject *_wrap_SpinCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15590 PyObject *resultobj = 0;
15591 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15592 long arg2 ;
15593 long arg3 ;
15594 void *argp1 = 0 ;
15595 int res1 = 0 ;
15596 long val2 ;
15597 int ecode2 = 0 ;
15598 long val3 ;
15599 int ecode3 = 0 ;
15600 PyObject * obj0 = 0 ;
15601 PyObject * obj1 = 0 ;
15602 PyObject * obj2 = 0 ;
15603 char * kwnames[] = {
15604 (char *) "self",(char *) "_from",(char *) "to", NULL
15605 };
15606
15607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15609 if (!SWIG_IsOK(res1)) {
15610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetSelection" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15611 }
15612 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15613 ecode2 = SWIG_AsVal_long(obj1, &val2);
15614 if (!SWIG_IsOK(ecode2)) {
15615 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
15616 }
15617 arg2 = static_cast< long >(val2);
15618 ecode3 = SWIG_AsVal_long(obj2, &val3);
15619 if (!SWIG_IsOK(ecode3)) {
15620 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
15621 }
15622 arg3 = static_cast< long >(val3);
15623 {
15624 PyThreadState* __tstate = wxPyBeginAllowThreads();
15625 (arg1)->SetSelection(arg2,arg3);
15626 wxPyEndAllowThreads(__tstate);
15627 if (PyErr_Occurred()) SWIG_fail;
15628 }
15629 resultobj = SWIG_Py_Void();
15630 return resultobj;
15631fail:
15632 return NULL;
15633}
15634
15635
15636SWIGINTERN PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15637 PyObject *resultobj = 0;
15638 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15639 SwigValueWrapper<wxVisualAttributes > result;
15640 int val1 ;
15641 int ecode1 = 0 ;
15642 PyObject * obj0 = 0 ;
15643 char * kwnames[] = {
15644 (char *) "variant", NULL
15645 };
15646
15647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15648 if (obj0) {
15649 ecode1 = SWIG_AsVal_int(obj0, &val1);
15650 if (!SWIG_IsOK(ecode1)) {
15651 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15652 }
15653 arg1 = static_cast< wxWindowVariant >(val1);
15654 }
15655 {
15656 if (!wxPyCheckForApp()) SWIG_fail;
15657 PyThreadState* __tstate = wxPyBeginAllowThreads();
15658 result = wxSpinCtrl::GetClassDefaultAttributes(arg1);
15659 wxPyEndAllowThreads(__tstate);
15660 if (PyErr_Occurred()) SWIG_fail;
15661 }
15662 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15663 return resultobj;
15664fail:
15665 return NULL;
d14a1e28
RD
15666}
15667
15668
0085ce49
RD
15669SWIGINTERN PyObject *SpinCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15670 PyObject *obj;
15671 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15672 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinCtrl, SWIG_NewClientData(obj));
15673 return SWIG_Py_Void();
d14a1e28
RD
15674}
15675
0085ce49
RD
15676SWIGINTERN PyObject *SpinCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15677 return SWIG_Python_InitShadowInstance(args);
15678}
d14a1e28 15679
0085ce49
RD
15680SWIGINTERN PyObject *_wrap_new_SpinEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15681 PyObject *resultobj = 0;
15682 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15683 int arg2 = (int) 0 ;
15684 wxSpinEvent *result = 0 ;
15685 int val1 ;
15686 int ecode1 = 0 ;
15687 int val2 ;
15688 int ecode2 = 0 ;
15689 PyObject * obj0 = 0 ;
15690 PyObject * obj1 = 0 ;
15691 char * kwnames[] = {
15692 (char *) "commandType",(char *) "winid", NULL
15693 };
15694
15695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) SWIG_fail;
15696 if (obj0) {
15697 ecode1 = SWIG_AsVal_int(obj0, &val1);
15698 if (!SWIG_IsOK(ecode1)) {
15699 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SpinEvent" "', expected argument " "1"" of type '" "wxEventType""'");
15700 }
15701 arg1 = static_cast< wxEventType >(val1);
15702 }
15703 if (obj1) {
15704 ecode2 = SWIG_AsVal_int(obj1, &val2);
15705 if (!SWIG_IsOK(ecode2)) {
15706 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinEvent" "', expected argument " "2"" of type '" "int""'");
15707 }
15708 arg2 = static_cast< int >(val2);
15709 }
15710 {
15711 PyThreadState* __tstate = wxPyBeginAllowThreads();
15712 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
15713 wxPyEndAllowThreads(__tstate);
15714 if (PyErr_Occurred()) SWIG_fail;
15715 }
15716 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_NEW | 0 );
15717 return resultobj;
15718fail:
15719 return NULL;
d14a1e28
RD
15720}
15721
15722
0085ce49
RD
15723SWIGINTERN PyObject *_wrap_SpinEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15724 PyObject *resultobj = 0;
15725 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15726 int result;
15727 void *argp1 = 0 ;
15728 int res1 = 0 ;
15729 PyObject *swig_obj[1] ;
15730
15731 if (!args) SWIG_fail;
15732 swig_obj[0] = args;
15733 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15734 if (!SWIG_IsOK(res1)) {
15735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_GetPosition" "', expected argument " "1"" of type '" "wxSpinEvent const *""'");
15736 }
15737 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15738 {
15739 PyThreadState* __tstate = wxPyBeginAllowThreads();
15740 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
15741 wxPyEndAllowThreads(__tstate);
15742 if (PyErr_Occurred()) SWIG_fail;
15743 }
15744 resultobj = SWIG_From_int(static_cast< int >(result));
15745 return resultobj;
15746fail:
15747 return NULL;
15748}
15749
15750
15751SWIGINTERN PyObject *_wrap_SpinEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15752 PyObject *resultobj = 0;
15753 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15754 int arg2 ;
15755 void *argp1 = 0 ;
15756 int res1 = 0 ;
15757 int val2 ;
15758 int ecode2 = 0 ;
15759 PyObject * obj0 = 0 ;
15760 PyObject * obj1 = 0 ;
15761 char * kwnames[] = {
15762 (char *) "self",(char *) "pos", NULL
15763 };
15764
15765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
15766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15767 if (!SWIG_IsOK(res1)) {
15768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_SetPosition" "', expected argument " "1"" of type '" "wxSpinEvent *""'");
15769 }
15770 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15771 ecode2 = SWIG_AsVal_int(obj1, &val2);
15772 if (!SWIG_IsOK(ecode2)) {
15773 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinEvent_SetPosition" "', expected argument " "2"" of type '" "int""'");
15774 }
15775 arg2 = static_cast< int >(val2);
15776 {
15777 PyThreadState* __tstate = wxPyBeginAllowThreads();
15778 (arg1)->SetPosition(arg2);
15779 wxPyEndAllowThreads(__tstate);
15780 if (PyErr_Occurred()) SWIG_fail;
15781 }
15782 resultobj = SWIG_Py_Void();
15783 return resultobj;
15784fail:
15785 return NULL;
d14a1e28
RD
15786}
15787
15788
0085ce49
RD
15789SWIGINTERN PyObject *SpinEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15790 PyObject *obj;
15791 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15792 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinEvent, SWIG_NewClientData(obj));
15793 return SWIG_Py_Void();
15794}
15795
15796SWIGINTERN PyObject *SpinEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15797 return SWIG_Python_InitShadowInstance(args);
15798}
15799
15800SWIGINTERN int RadioBoxNameStr_set(PyObject *) {
15801 SWIG_Error(SWIG_AttributeError,"Variable RadioBoxNameStr is read-only.");
15802 return 1;
15803}
15804
15805
15806SWIGINTERN PyObject *RadioBoxNameStr_get(void) {
15807 PyObject *pyobj = 0;
15808
15809 {
d14a1e28 15810#if wxUSE_UNICODE
0085ce49 15811 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
d14a1e28 15812#else
0085ce49 15813 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
d14a1e28 15814#endif
0085ce49
RD
15815 }
15816 return pyobj;
d14a1e28
RD
15817}
15818
15819
0085ce49
RD
15820SWIGINTERN int RadioButtonNameStr_set(PyObject *) {
15821 SWIG_Error(SWIG_AttributeError,"Variable RadioButtonNameStr is read-only.");
15822 return 1;
d14a1e28
RD
15823}
15824
15825
0085ce49
RD
15826SWIGINTERN PyObject *RadioButtonNameStr_get(void) {
15827 PyObject *pyobj = 0;
15828
15829 {
15830#if wxUSE_UNICODE
15831 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15832#else
15833 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15834#endif
15835 }
15836 return pyobj;
15837}
15838
15839
15840SWIGINTERN PyObject *_wrap_new_RadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15841 PyObject *resultobj = 0;
15842 wxWindow *arg1 = (wxWindow *) 0 ;
15843 int arg2 = (int) -1 ;
15844 wxString const &arg3_defvalue = wxPyEmptyString ;
15845 wxString *arg3 = (wxString *) &arg3_defvalue ;
15846 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15847 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15848 wxSize const &arg5_defvalue = wxDefaultSize ;
15849 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15850 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
15851 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
15852 int arg7 = (int) 0 ;
15853 long arg8 = (long) wxRA_HORIZONTAL ;
15854 wxValidator const &arg9_defvalue = wxDefaultValidator ;
15855 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
15856 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
15857 wxString *arg10 = (wxString *) &arg10_defvalue ;
15858 wxRadioBox *result = 0 ;
15859 void *argp1 = 0 ;
15860 int res1 = 0 ;
15861 int val2 ;
15862 int ecode2 = 0 ;
15863 bool temp3 = false ;
15864 wxPoint temp4 ;
15865 wxSize temp5 ;
15866 bool temp6 = false ;
15867 int val7 ;
15868 int ecode7 = 0 ;
15869 long val8 ;
15870 int ecode8 = 0 ;
15871 void *argp9 = 0 ;
15872 int res9 = 0 ;
15873 bool temp10 = false ;
15874 PyObject * obj0 = 0 ;
15875 PyObject * obj1 = 0 ;
15876 PyObject * obj2 = 0 ;
15877 PyObject * obj3 = 0 ;
15878 PyObject * obj4 = 0 ;
15879 PyObject * obj5 = 0 ;
15880 PyObject * obj6 = 0 ;
15881 PyObject * obj7 = 0 ;
15882 PyObject * obj8 = 0 ;
15883 PyObject * obj9 = 0 ;
15884 char * kwnames[] = {
15885 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
15886 };
15887
15888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15890 if (!SWIG_IsOK(res1)) {
15891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioBox" "', expected argument " "1"" of type '" "wxWindow *""'");
15892 }
15893 arg1 = reinterpret_cast< wxWindow * >(argp1);
15894 if (obj1) {
15895 ecode2 = SWIG_AsVal_int(obj1, &val2);
15896 if (!SWIG_IsOK(ecode2)) {
15897 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioBox" "', expected argument " "2"" of type '" "int""'");
15898 }
15899 arg2 = static_cast< int >(val2);
15900 }
15901 if (obj2) {
093d3ff1 15902 {
0085ce49
RD
15903 arg3 = wxString_in_helper(obj2);
15904 if (arg3 == NULL) SWIG_fail;
15905 temp3 = true;
093d3ff1 15906 }
0085ce49
RD
15907 }
15908 if (obj3) {
093d3ff1 15909 {
0085ce49
RD
15910 arg4 = &temp4;
15911 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 15912 }
0085ce49
RD
15913 }
15914 if (obj4) {
d14a1e28 15915 {
0085ce49
RD
15916 arg5 = &temp5;
15917 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 15918 }
0085ce49
RD
15919 }
15920 if (obj5) {
d14a1e28 15921 {
0085ce49
RD
15922 if (! PySequence_Check(obj5)) {
15923 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
15924 SWIG_fail;
15925 }
15926 arg6 = new wxArrayString;
15927 temp6 = true;
15928 int i, len=PySequence_Length(obj5);
15929 for (i=0; i<len; i++) {
15930 PyObject* item = PySequence_GetItem(obj5, i);
15931 wxString* s = wxString_in_helper(item);
15932 if (PyErr_Occurred()) SWIG_fail;
15933 arg6->Add(*s);
15934 delete s;
15935 Py_DECREF(item);
15936 }
d14a1e28 15937 }
0085ce49
RD
15938 }
15939 if (obj6) {
15940 ecode7 = SWIG_AsVal_int(obj6, &val7);
15941 if (!SWIG_IsOK(ecode7)) {
15942 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_RadioBox" "', expected argument " "7"" of type '" "int""'");
15943 }
15944 arg7 = static_cast< int >(val7);
15945 }
15946 if (obj7) {
15947 ecode8 = SWIG_AsVal_long(obj7, &val8);
15948 if (!SWIG_IsOK(ecode8)) {
15949 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_RadioBox" "', expected argument " "8"" of type '" "long""'");
15950 }
15951 arg8 = static_cast< long >(val8);
15952 }
15953 if (obj8) {
15954 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
15955 if (!SWIG_IsOK(res9)) {
15956 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
15957 }
15958 if (!argp9) {
15959 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
d14a1e28 15960 }
0085ce49
RD
15961 arg9 = reinterpret_cast< wxValidator * >(argp9);
15962 }
15963 if (obj9) {
d14a1e28 15964 {
0085ce49
RD
15965 arg10 = wxString_in_helper(obj9);
15966 if (arg10 == NULL) SWIG_fail;
15967 temp10 = true;
d14a1e28 15968 }
0085ce49
RD
15969 }
15970 {
15971 if (!wxPyCheckForApp()) SWIG_fail;
15972 PyThreadState* __tstate = wxPyBeginAllowThreads();
15973 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);
15974 wxPyEndAllowThreads(__tstate);
15975 if (PyErr_Occurred()) SWIG_fail;
15976 }
15977 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_NEW | 0 );
15978 {
15979 if (temp3)
15980 delete arg3;
15981 }
15982 {
15983 if (temp6) delete arg6;
15984 }
15985 {
15986 if (temp10)
15987 delete arg10;
15988 }
15989 return resultobj;
15990fail:
15991 {
15992 if (temp3)
15993 delete arg3;
15994 }
15995 {
15996 if (temp6) delete arg6;
15997 }
15998 {
15999 if (temp10)
16000 delete arg10;
16001 }
16002 return NULL;
d14a1e28
RD
16003}
16004
16005
0085ce49
RD
16006SWIGINTERN PyObject *_wrap_new_PreRadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16007 PyObject *resultobj = 0;
16008 wxRadioBox *result = 0 ;
16009
16010 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioBox",0,0,0)) SWIG_fail;
16011 {
16012 if (!wxPyCheckForApp()) SWIG_fail;
16013 PyThreadState* __tstate = wxPyBeginAllowThreads();
16014 result = (wxRadioBox *)new wxRadioBox();
16015 wxPyEndAllowThreads(__tstate);
16016 if (PyErr_Occurred()) SWIG_fail;
16017 }
16018 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_OWN | 0 );
16019 return resultobj;
16020fail:
16021 return NULL;
16022}
16023
16024
16025SWIGINTERN PyObject *_wrap_RadioBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16026 PyObject *resultobj = 0;
16027 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16028 wxWindow *arg2 = (wxWindow *) 0 ;
16029 int arg3 = (int) -1 ;
16030 wxString const &arg4_defvalue = wxPyEmptyString ;
16031 wxString *arg4 = (wxString *) &arg4_defvalue ;
16032 wxPoint const &arg5_defvalue = wxDefaultPosition ;
16033 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
16034 wxSize const &arg6_defvalue = wxDefaultSize ;
16035 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
16036 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
16037 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
16038 int arg8 = (int) 0 ;
16039 long arg9 = (long) wxRA_HORIZONTAL ;
16040 wxValidator const &arg10_defvalue = wxDefaultValidator ;
16041 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
16042 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
16043 wxString *arg11 = (wxString *) &arg11_defvalue ;
16044 bool result;
16045 void *argp1 = 0 ;
16046 int res1 = 0 ;
16047 void *argp2 = 0 ;
16048 int res2 = 0 ;
16049 int val3 ;
16050 int ecode3 = 0 ;
16051 bool temp4 = false ;
16052 wxPoint temp5 ;
16053 wxSize temp6 ;
16054 bool temp7 = false ;
16055 int val8 ;
16056 int ecode8 = 0 ;
16057 long val9 ;
16058 int ecode9 = 0 ;
16059 void *argp10 = 0 ;
16060 int res10 = 0 ;
16061 bool temp11 = false ;
16062 PyObject * obj0 = 0 ;
16063 PyObject * obj1 = 0 ;
16064 PyObject * obj2 = 0 ;
16065 PyObject * obj3 = 0 ;
16066 PyObject * obj4 = 0 ;
16067 PyObject * obj5 = 0 ;
16068 PyObject * obj6 = 0 ;
16069 PyObject * obj7 = 0 ;
16070 PyObject * obj8 = 0 ;
16071 PyObject * obj9 = 0 ;
16072 PyObject * obj10 = 0 ;
16073 char * kwnames[] = {
16074 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16075 };
16076
16077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
16078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16079 if (!SWIG_IsOK(res1)) {
16080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_Create" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16081 }
16082 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16083 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
16084 if (!SWIG_IsOK(res2)) {
16085 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
16086 }
16087 arg2 = reinterpret_cast< wxWindow * >(argp2);
16088 if (obj2) {
16089 ecode3 = SWIG_AsVal_int(obj2, &val3);
16090 if (!SWIG_IsOK(ecode3)) {
16091 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_Create" "', expected argument " "3"" of type '" "int""'");
16092 }
16093 arg3 = static_cast< int >(val3);
16094 }
16095 if (obj3) {
093d3ff1 16096 {
0085ce49
RD
16097 arg4 = wxString_in_helper(obj3);
16098 if (arg4 == NULL) SWIG_fail;
16099 temp4 = true;
093d3ff1 16100 }
0085ce49
RD
16101 }
16102 if (obj4) {
d14a1e28 16103 {
0085ce49
RD
16104 arg5 = &temp5;
16105 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 16106 }
0085ce49
RD
16107 }
16108 if (obj5) {
d14a1e28 16109 {
0085ce49
RD
16110 arg6 = &temp6;
16111 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d14a1e28 16112 }
0085ce49
RD
16113 }
16114 if (obj6) {
d14a1e28 16115 {
0085ce49
RD
16116 if (! PySequence_Check(obj6)) {
16117 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16118 SWIG_fail;
16119 }
16120 arg7 = new wxArrayString;
16121 temp7 = true;
16122 int i, len=PySequence_Length(obj6);
16123 for (i=0; i<len; i++) {
16124 PyObject* item = PySequence_GetItem(obj6, i);
16125 wxString* s = wxString_in_helper(item);
16126 if (PyErr_Occurred()) SWIG_fail;
16127 arg7->Add(*s);
16128 delete s;
16129 Py_DECREF(item);
16130 }
d14a1e28 16131 }
0085ce49
RD
16132 }
16133 if (obj7) {
16134 ecode8 = SWIG_AsVal_int(obj7, &val8);
16135 if (!SWIG_IsOK(ecode8)) {
16136 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "RadioBox_Create" "', expected argument " "8"" of type '" "int""'");
16137 }
16138 arg8 = static_cast< int >(val8);
16139 }
16140 if (obj8) {
16141 ecode9 = SWIG_AsVal_long(obj8, &val9);
16142 if (!SWIG_IsOK(ecode9)) {
16143 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "RadioBox_Create" "', expected argument " "9"" of type '" "long""'");
16144 }
16145 arg9 = static_cast< long >(val9);
16146 }
16147 if (obj9) {
16148 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
16149 if (!SWIG_IsOK(res10)) {
16150 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
4f89f6a3 16151 }
0085ce49
RD
16152 if (!argp10) {
16153 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
d14a1e28 16154 }
0085ce49
RD
16155 arg10 = reinterpret_cast< wxValidator * >(argp10);
16156 }
16157 if (obj10) {
d14a1e28 16158 {
0085ce49
RD
16159 arg11 = wxString_in_helper(obj10);
16160 if (arg11 == NULL) SWIG_fail;
16161 temp11 = true;
d14a1e28 16162 }
0085ce49
RD
16163 }
16164 {
16165 PyThreadState* __tstate = wxPyBeginAllowThreads();
16166 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);
16167 wxPyEndAllowThreads(__tstate);
16168 if (PyErr_Occurred()) SWIG_fail;
16169 }
16170 {
16171 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16172 }
16173 {
16174 if (temp4)
16175 delete arg4;
16176 }
16177 {
16178 if (temp7) delete arg7;
16179 }
16180 {
16181 if (temp11)
16182 delete arg11;
16183 }
16184 return resultobj;
16185fail:
16186 {
16187 if (temp4)
16188 delete arg4;
16189 }
16190 {
16191 if (temp7) delete arg7;
16192 }
16193 {
16194 if (temp11)
16195 delete arg11;
16196 }
16197 return NULL;
16198}
16199
16200
16201SWIGINTERN PyObject *_wrap_RadioBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16202 PyObject *resultobj = 0;
16203 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16204 int arg2 ;
16205 void *argp1 = 0 ;
16206 int res1 = 0 ;
16207 int val2 ;
16208 int ecode2 = 0 ;
16209 PyObject * obj0 = 0 ;
16210 PyObject * obj1 = 0 ;
16211 char * kwnames[] = {
16212 (char *) "self",(char *) "n", NULL
16213 };
16214
16215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16216 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16217 if (!SWIG_IsOK(res1)) {
16218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16219 }
16220 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16221 ecode2 = SWIG_AsVal_int(obj1, &val2);
16222 if (!SWIG_IsOK(ecode2)) {
16223 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
16224 }
16225 arg2 = static_cast< int >(val2);
16226 {
16227 PyThreadState* __tstate = wxPyBeginAllowThreads();
16228 (arg1)->SetSelection(arg2);
16229 wxPyEndAllowThreads(__tstate);
16230 if (PyErr_Occurred()) SWIG_fail;
16231 }
16232 resultobj = SWIG_Py_Void();
16233 return resultobj;
16234fail:
16235 return NULL;
d14a1e28
RD
16236}
16237
16238
0085ce49
RD
16239SWIGINTERN PyObject *_wrap_RadioBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16240 PyObject *resultobj = 0;
16241 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16242 int result;
16243 void *argp1 = 0 ;
16244 int res1 = 0 ;
16245 PyObject *swig_obj[1] ;
16246
16247 if (!args) SWIG_fail;
16248 swig_obj[0] = args;
16249 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16250 if (!SWIG_IsOK(res1)) {
16251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16252 }
16253 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16254 {
16255 PyThreadState* __tstate = wxPyBeginAllowThreads();
16256 result = (int)((wxRadioBox const *)arg1)->GetSelection();
16257 wxPyEndAllowThreads(__tstate);
16258 if (PyErr_Occurred()) SWIG_fail;
16259 }
16260 resultobj = SWIG_From_int(static_cast< int >(result));
16261 return resultobj;
16262fail:
16263 return NULL;
d14a1e28
RD
16264}
16265
16266
0085ce49
RD
16267SWIGINTERN PyObject *_wrap_RadioBox_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16268 PyObject *resultobj = 0;
16269 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16270 wxString result;
16271 void *argp1 = 0 ;
16272 int res1 = 0 ;
16273 PyObject *swig_obj[1] ;
16274
16275 if (!args) SWIG_fail;
16276 swig_obj[0] = args;
16277 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16278 if (!SWIG_IsOK(res1)) {
16279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16280 }
16281 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16282 {
16283 PyThreadState* __tstate = wxPyBeginAllowThreads();
16284 result = ((wxRadioBox const *)arg1)->GetStringSelection();
16285 wxPyEndAllowThreads(__tstate);
16286 if (PyErr_Occurred()) SWIG_fail;
16287 }
16288 {
16289#if wxUSE_UNICODE
16290 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16291#else
16292 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16293#endif
16294 }
16295 return resultobj;
16296fail:
16297 return NULL;
16298}
16299
16300
16301SWIGINTERN PyObject *_wrap_RadioBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16302 PyObject *resultobj = 0;
16303 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16304 wxString *arg2 = 0 ;
16305 bool result;
16306 void *argp1 = 0 ;
16307 int res1 = 0 ;
16308 bool temp2 = false ;
16309 PyObject * obj0 = 0 ;
16310 PyObject * obj1 = 0 ;
16311 char * kwnames[] = {
16312 (char *) "self",(char *) "s", NULL
16313 };
16314
16315 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16316 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16317 if (!SWIG_IsOK(res1)) {
16318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16319 }
16320 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16321 {
16322 arg2 = wxString_in_helper(obj1);
16323 if (arg2 == NULL) SWIG_fail;
16324 temp2 = true;
16325 }
16326 {
16327 PyThreadState* __tstate = wxPyBeginAllowThreads();
16328 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
16329 wxPyEndAllowThreads(__tstate);
16330 if (PyErr_Occurred()) SWIG_fail;
16331 }
16332 {
16333 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16334 }
16335 {
16336 if (temp2)
16337 delete arg2;
16338 }
16339 return resultobj;
16340fail:
16341 {
16342 if (temp2)
16343 delete arg2;
16344 }
16345 return NULL;
d14a1e28
RD
16346}
16347
16348
0085ce49
RD
16349SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16350 PyObject *resultobj = 0;
16351 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
75219dcb 16352 size_t result;
0085ce49
RD
16353 void *argp1 = 0 ;
16354 int res1 = 0 ;
16355 PyObject *swig_obj[1] ;
16356
16357 if (!args) SWIG_fail;
16358 swig_obj[0] = args;
16359 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16360 if (!SWIG_IsOK(res1)) {
16361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16362 }
16363 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16364 {
16365 PyThreadState* __tstate = wxPyBeginAllowThreads();
75219dcb 16366 result = (size_t)((wxRadioBox const *)arg1)->GetCount();
0085ce49
RD
16367 wxPyEndAllowThreads(__tstate);
16368 if (PyErr_Occurred()) SWIG_fail;
16369 }
75219dcb 16370 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
0085ce49
RD
16371 return resultobj;
16372fail:
16373 return NULL;
16374}
16375
16376
16377SWIGINTERN PyObject *_wrap_RadioBox_FindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16378 PyObject *resultobj = 0;
16379 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16380 wxString *arg2 = 0 ;
16381 int result;
16382 void *argp1 = 0 ;
16383 int res1 = 0 ;
16384 bool temp2 = false ;
16385 PyObject * obj0 = 0 ;
16386 PyObject * obj1 = 0 ;
16387 char * kwnames[] = {
16388 (char *) "self",(char *) "s", NULL
16389 };
16390
16391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) SWIG_fail;
16392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16393 if (!SWIG_IsOK(res1)) {
16394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_FindString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16395 }
16396 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16397 {
16398 arg2 = wxString_in_helper(obj1);
16399 if (arg2 == NULL) SWIG_fail;
16400 temp2 = true;
16401 }
16402 {
16403 PyThreadState* __tstate = wxPyBeginAllowThreads();
16404 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
16405 wxPyEndAllowThreads(__tstate);
16406 if (PyErr_Occurred()) SWIG_fail;
16407 }
16408 resultobj = SWIG_From_int(static_cast< int >(result));
16409 {
16410 if (temp2)
16411 delete arg2;
16412 }
16413 return resultobj;
16414fail:
16415 {
16416 if (temp2)
16417 delete arg2;
16418 }
16419 return NULL;
16420}
16421
16422
16423SWIGINTERN PyObject *_wrap_RadioBox_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16424 PyObject *resultobj = 0;
16425 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16426 int arg2 ;
16427 wxString result;
16428 void *argp1 = 0 ;
16429 int res1 = 0 ;
16430 int val2 ;
16431 int ecode2 = 0 ;
16432 PyObject * obj0 = 0 ;
16433 PyObject * obj1 = 0 ;
16434 char * kwnames[] = {
16435 (char *) "self",(char *) "n", NULL
16436 };
16437
16438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) SWIG_fail;
16439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16440 if (!SWIG_IsOK(res1)) {
16441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16442 }
16443 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16444 ecode2 = SWIG_AsVal_int(obj1, &val2);
16445 if (!SWIG_IsOK(ecode2)) {
16446 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetString" "', expected argument " "2"" of type '" "int""'");
16447 }
16448 arg2 = static_cast< int >(val2);
16449 {
16450 PyThreadState* __tstate = wxPyBeginAllowThreads();
16451 result = ((wxRadioBox const *)arg1)->GetString(arg2);
16452 wxPyEndAllowThreads(__tstate);
16453 if (PyErr_Occurred()) SWIG_fail;
16454 }
16455 {
16456#if wxUSE_UNICODE
16457 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16458#else
16459 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16460#endif
16461 }
16462 return resultobj;
16463fail:
16464 return NULL;
16465}
16466
16467
16468SWIGINTERN PyObject *_wrap_RadioBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16469 PyObject *resultobj = 0;
16470 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16471 int arg2 ;
16472 wxString *arg3 = 0 ;
16473 void *argp1 = 0 ;
16474 int res1 = 0 ;
16475 int val2 ;
16476 int ecode2 = 0 ;
16477 bool temp3 = false ;
16478 PyObject * obj0 = 0 ;
16479 PyObject * obj1 = 0 ;
16480 PyObject * obj2 = 0 ;
16481 char * kwnames[] = {
16482 (char *) "self",(char *) "n",(char *) "label", NULL
16483 };
16484
16485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16486 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16487 if (!SWIG_IsOK(res1)) {
16488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetString" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16489 }
16490 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16491 ecode2 = SWIG_AsVal_int(obj1, &val2);
16492 if (!SWIG_IsOK(ecode2)) {
16493 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetString" "', expected argument " "2"" of type '" "int""'");
16494 }
16495 arg2 = static_cast< int >(val2);
16496 {
16497 arg3 = wxString_in_helper(obj2);
16498 if (arg3 == NULL) SWIG_fail;
16499 temp3 = true;
16500 }
16501 {
16502 PyThreadState* __tstate = wxPyBeginAllowThreads();
16503 (arg1)->SetString(arg2,(wxString const &)*arg3);
16504 wxPyEndAllowThreads(__tstate);
16505 if (PyErr_Occurred()) SWIG_fail;
16506 }
16507 resultobj = SWIG_Py_Void();
16508 {
16509 if (temp3)
16510 delete arg3;
16511 }
16512 return resultobj;
16513fail:
16514 {
16515 if (temp3)
16516 delete arg3;
16517 }
16518 return NULL;
16519}
16520
16521
16522SWIGINTERN PyObject *_wrap_RadioBox_EnableItem(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 *) "enable", NULL
16538 };
16539
16540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",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_EnableItem" "', 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_EnableItem" "', 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_EnableItem" "', expected argument " "3"" of type '" "bool""'");
16555 }
16556 arg3 = static_cast< bool >(val3);
16557 }
16558 {
16559 PyThreadState* __tstate = wxPyBeginAllowThreads();
16560 (arg1)->Enable(arg2,arg3);
16561 wxPyEndAllowThreads(__tstate);
16562 if (PyErr_Occurred()) SWIG_fail;
16563 }
16564 resultobj = SWIG_Py_Void();
16565 return resultobj;
16566fail:
16567 return NULL;
16568}
16569
16570
16571SWIGINTERN PyObject *_wrap_RadioBox_ShowItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16572 PyObject *resultobj = 0;
16573 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16574 unsigned int arg2 ;
0085ce49
RD
16575 bool arg3 = (bool) true ;
16576 void *argp1 = 0 ;
16577 int res1 = 0 ;
50f151d7 16578 unsigned int val2 ;
0085ce49
RD
16579 int ecode2 = 0 ;
16580 bool val3 ;
16581 int ecode3 = 0 ;
16582 PyObject * obj0 = 0 ;
16583 PyObject * obj1 = 0 ;
16584 PyObject * obj2 = 0 ;
16585 char * kwnames[] = {
16586 (char *) "self",(char *) "n",(char *) "show", NULL
16587 };
16588
16589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16591 if (!SWIG_IsOK(res1)) {
16592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_ShowItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16593 }
16594 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
50f151d7 16595 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
0085ce49 16596 if (!SWIG_IsOK(ecode2)) {
50f151d7 16597 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_ShowItem" "', expected argument " "2"" of type '" "unsigned int""'");
0085ce49 16598 }
50f151d7 16599 arg2 = static_cast< unsigned int >(val2);
0085ce49
RD
16600 if (obj2) {
16601 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16602 if (!SWIG_IsOK(ecode3)) {
16603 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_ShowItem" "', expected argument " "3"" of type '" "bool""'");
16604 }
16605 arg3 = static_cast< bool >(val3);
16606 }
16607 {
16608 PyThreadState* __tstate = wxPyBeginAllowThreads();
16609 (arg1)->Show(arg2,arg3);
16610 wxPyEndAllowThreads(__tstate);
16611 if (PyErr_Occurred()) SWIG_fail;
16612 }
16613 resultobj = SWIG_Py_Void();
16614 return resultobj;
16615fail:
16616 return NULL;
d14a1e28
RD
16617}
16618
16619
50f151d7
RD
16620SWIGINTERN PyObject *_wrap_RadioBox_IsItemEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16621 PyObject *resultobj = 0;
16622 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16623 unsigned int arg2 ;
16624 bool result;
16625 void *argp1 = 0 ;
16626 int res1 = 0 ;
16627 unsigned int val2 ;
16628 int ecode2 = 0 ;
16629 PyObject * obj0 = 0 ;
16630 PyObject * obj1 = 0 ;
16631 char * kwnames[] = {
16632 (char *) "self",(char *) "n", NULL
16633 };
16634
16635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
16636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16637 if (!SWIG_IsOK(res1)) {
16638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16639 }
16640 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16641 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16642 if (!SWIG_IsOK(ecode2)) {
16643 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "2"" of type '" "unsigned int""'");
16644 }
16645 arg2 = static_cast< unsigned int >(val2);
16646 {
16647 PyThreadState* __tstate = wxPyBeginAllowThreads();
16648 result = (bool)((wxRadioBox const *)arg1)->IsItemEnabled(arg2);
16649 wxPyEndAllowThreads(__tstate);
16650 if (PyErr_Occurred()) SWIG_fail;
16651 }
16652 {
16653 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16654 }
16655 return resultobj;
16656fail:
16657 return NULL;
16658}
16659
16660
16661SWIGINTERN PyObject *_wrap_RadioBox_IsItemShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16662 PyObject *resultobj = 0;
16663 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16664 unsigned int arg2 ;
16665 bool result;
16666 void *argp1 = 0 ;
16667 int res1 = 0 ;
16668 unsigned int val2 ;
16669 int ecode2 = 0 ;
16670 PyObject * obj0 = 0 ;
16671 PyObject * obj1 = 0 ;
16672 char * kwnames[] = {
16673 (char *) "self",(char *) "n", NULL
16674 };
16675
16676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemShown",kwnames,&obj0,&obj1)) SWIG_fail;
16677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16678 if (!SWIG_IsOK(res1)) {
16679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemShown" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16680 }
16681 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16682 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16683 if (!SWIG_IsOK(ecode2)) {
16684 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemShown" "', expected argument " "2"" of type '" "unsigned int""'");
16685 }
16686 arg2 = static_cast< unsigned int >(val2);
16687 {
16688 PyThreadState* __tstate = wxPyBeginAllowThreads();
16689 result = (bool)((wxRadioBox const *)arg1)->IsItemShown(arg2);
16690 wxPyEndAllowThreads(__tstate);
16691 if (PyErr_Occurred()) SWIG_fail;
16692 }
16693 {
16694 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16695 }
16696 return resultobj;
16697fail:
16698 return NULL;
16699}
16700
16701
0085ce49
RD
16702SWIGINTERN PyObject *_wrap_RadioBox_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16703 PyObject *resultobj = 0;
16704 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16705 unsigned int result;
0085ce49
RD
16706 void *argp1 = 0 ;
16707 int res1 = 0 ;
16708 PyObject *swig_obj[1] ;
16709
16710 if (!args) SWIG_fail;
16711 swig_obj[0] = args;
16712 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16713 if (!SWIG_IsOK(res1)) {
16714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetColumnCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16715 }
16716 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16717 {
16718 PyThreadState* __tstate = wxPyBeginAllowThreads();
50f151d7 16719 result = (unsigned int)((wxRadioBox const *)arg1)->GetColumnCount();
0085ce49
RD
16720 wxPyEndAllowThreads(__tstate);
16721 if (PyErr_Occurred()) SWIG_fail;
16722 }
50f151d7 16723 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
0085ce49
RD
16724 return resultobj;
16725fail:
16726 return NULL;
d14a1e28
RD
16727}
16728
16729
0085ce49
RD
16730SWIGINTERN PyObject *_wrap_RadioBox_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16731 PyObject *resultobj = 0;
16732 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16733 unsigned int result;
0085ce49
RD
16734 void *argp1 = 0 ;
16735 int res1 = 0 ;
16736 PyObject *swig_obj[1] ;
16737
16738 if (!args) SWIG_fail;
16739 swig_obj[0] = args;
16740 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16741 if (!SWIG_IsOK(res1)) {
16742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetRowCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16743 }
16744 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16745 {
16746 PyThreadState* __tstate = wxPyBeginAllowThreads();
50f151d7 16747 result = (unsigned int)((wxRadioBox const *)arg1)->GetRowCount();
0085ce49
RD
16748 wxPyEndAllowThreads(__tstate);
16749 if (PyErr_Occurred()) SWIG_fail;
16750 }
50f151d7 16751 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
0085ce49
RD
16752 return resultobj;
16753fail:
16754 return NULL;
16755}
16756
16757
16758SWIGINTERN PyObject *_wrap_RadioBox_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16759 PyObject *resultobj = 0;
16760 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16761 int arg2 ;
16762 wxDirection arg3 ;
16763 long arg4 ;
16764 int result;
16765 void *argp1 = 0 ;
16766 int res1 = 0 ;
16767 int val2 ;
16768 int ecode2 = 0 ;
16769 int val3 ;
16770 int ecode3 = 0 ;
16771 long val4 ;
16772 int ecode4 = 0 ;
16773 PyObject * obj0 = 0 ;
16774 PyObject * obj1 = 0 ;
16775 PyObject * obj2 = 0 ;
16776 PyObject * obj3 = 0 ;
16777 char * kwnames[] = {
16778 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
16779 };
16780
16781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16783 if (!SWIG_IsOK(res1)) {
16784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetNextItem" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16785 }
16786 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16787 ecode2 = SWIG_AsVal_int(obj1, &val2);
16788 if (!SWIG_IsOK(ecode2)) {
16789 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetNextItem" "', expected argument " "2"" of type '" "int""'");
16790 }
16791 arg2 = static_cast< int >(val2);
16792 ecode3 = SWIG_AsVal_int(obj2, &val3);
16793 if (!SWIG_IsOK(ecode3)) {
16794 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_GetNextItem" "', expected argument " "3"" of type '" "wxDirection""'");
16795 }
16796 arg3 = static_cast< wxDirection >(val3);
16797 ecode4 = SWIG_AsVal_long(obj3, &val4);
16798 if (!SWIG_IsOK(ecode4)) {
16799 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RadioBox_GetNextItem" "', expected argument " "4"" of type '" "long""'");
16800 }
16801 arg4 = static_cast< long >(val4);
16802 {
16803 PyThreadState* __tstate = wxPyBeginAllowThreads();
50f151d7 16804 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,arg3,arg4);
0085ce49
RD
16805 wxPyEndAllowThreads(__tstate);
16806 if (PyErr_Occurred()) SWIG_fail;
16807 }
16808 resultobj = SWIG_From_int(static_cast< int >(result));
16809 return resultobj;
16810fail:
16811 return NULL;
16812}
16813
16814
01f6b6d3
RD
16815SWIGINTERN PyObject *_wrap_RadioBox_SetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16816 PyObject *resultobj = 0;
16817 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16818 unsigned int arg2 ;
16819 wxString *arg3 = 0 ;
16820 void *argp1 = 0 ;
16821 int res1 = 0 ;
16822 unsigned int val2 ;
16823 int ecode2 = 0 ;
16824 bool temp3 = false ;
16825 PyObject * obj0 = 0 ;
16826 PyObject * obj1 = 0 ;
16827 PyObject * obj2 = 0 ;
16828 char * kwnames[] = {
16829 (char *) "self",(char *) "item",(char *) "text", NULL
16830 };
16831
16832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemToolTip",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16833 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16834 if (!SWIG_IsOK(res1)) {
16835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16836 }
16837 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16838 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16839 if (!SWIG_IsOK(ecode2)) {
16840 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
16841 }
16842 arg2 = static_cast< unsigned int >(val2);
16843 {
16844 arg3 = wxString_in_helper(obj2);
16845 if (arg3 == NULL) SWIG_fail;
16846 temp3 = true;
16847 }
16848 {
16849 PyThreadState* __tstate = wxPyBeginAllowThreads();
16850 (arg1)->SetItemToolTip(arg2,(wxString const &)*arg3);
16851 wxPyEndAllowThreads(__tstate);
16852 if (PyErr_Occurred()) SWIG_fail;
16853 }
16854 resultobj = SWIG_Py_Void();
16855 {
16856 if (temp3)
16857 delete arg3;
16858 }
16859 return resultobj;
16860fail:
16861 {
16862 if (temp3)
16863 delete arg3;
16864 }
16865 return NULL;
16866}
16867
16868
16869SWIGINTERN PyObject *_wrap_RadioBox_GetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16870 PyObject *resultobj = 0;
16871 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16872 unsigned int arg2 ;
16873 wxToolTip *result = 0 ;
16874 void *argp1 = 0 ;
16875 int res1 = 0 ;
16876 unsigned int val2 ;
16877 int ecode2 = 0 ;
16878 PyObject * obj0 = 0 ;
16879 PyObject * obj1 = 0 ;
16880 char * kwnames[] = {
16881 (char *) "self",(char *) "item", NULL
16882 };
16883
16884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
16885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16886 if (!SWIG_IsOK(res1)) {
16887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16888 }
16889 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16890 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16891 if (!SWIG_IsOK(ecode2)) {
16892 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
16893 }
16894 arg2 = static_cast< unsigned int >(val2);
16895 {
16896 PyThreadState* __tstate = wxPyBeginAllowThreads();
16897 result = (wxToolTip *)((wxRadioBox const *)arg1)->GetItemToolTip(arg2);
16898 wxPyEndAllowThreads(__tstate);
16899 if (PyErr_Occurred()) SWIG_fail;
16900 }
16901 {
16902 resultobj = wxPyMake_wxObject(result, (bool)0);
16903 }
16904 return resultobj;
16905fail:
16906 return NULL;
16907}
16908
16909
0085ce49
RD
16910SWIGINTERN PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16911 PyObject *resultobj = 0;
16912 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
16913 SwigValueWrapper<wxVisualAttributes > result;
16914 int val1 ;
16915 int ecode1 = 0 ;
16916 PyObject * obj0 = 0 ;
16917 char * kwnames[] = {
16918 (char *) "variant", NULL
16919 };
16920
16921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
16922 if (obj0) {
16923 ecode1 = SWIG_AsVal_int(obj0, &val1);
16924 if (!SWIG_IsOK(ecode1)) {
16925 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
16926 }
16927 arg1 = static_cast< wxWindowVariant >(val1);
16928 }
16929 {
16930 if (!wxPyCheckForApp()) SWIG_fail;
16931 PyThreadState* __tstate = wxPyBeginAllowThreads();
16932 result = wxRadioBox::GetClassDefaultAttributes(arg1);
16933 wxPyEndAllowThreads(__tstate);
16934 if (PyErr_Occurred()) SWIG_fail;
16935 }
16936 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
16937 return resultobj;
16938fail:
16939 return NULL;
16940}
16941
16942
16943SWIGINTERN PyObject *RadioBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16944 PyObject *obj;
16945 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16946 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioBox, SWIG_NewClientData(obj));
16947 return SWIG_Py_Void();
16948}
16949
16950SWIGINTERN PyObject *RadioBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16951 return SWIG_Python_InitShadowInstance(args);
16952}
16953
16954SWIGINTERN PyObject *_wrap_new_RadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16955 PyObject *resultobj = 0;
16956 wxWindow *arg1 = (wxWindow *) 0 ;
16957 int arg2 = (int) -1 ;
16958 wxString const &arg3_defvalue = wxPyEmptyString ;
16959 wxString *arg3 = (wxString *) &arg3_defvalue ;
16960 wxPoint const &arg4_defvalue = wxDefaultPosition ;
16961 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
16962 wxSize const &arg5_defvalue = wxDefaultSize ;
16963 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
16964 long arg6 = (long) 0 ;
16965 wxValidator const &arg7_defvalue = wxDefaultValidator ;
16966 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
16967 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
16968 wxString *arg8 = (wxString *) &arg8_defvalue ;
16969 wxRadioButton *result = 0 ;
16970 void *argp1 = 0 ;
16971 int res1 = 0 ;
16972 int val2 ;
16973 int ecode2 = 0 ;
16974 bool temp3 = false ;
16975 wxPoint temp4 ;
16976 wxSize temp5 ;
16977 long val6 ;
16978 int ecode6 = 0 ;
16979 void *argp7 = 0 ;
16980 int res7 = 0 ;
16981 bool temp8 = false ;
16982 PyObject * obj0 = 0 ;
16983 PyObject * obj1 = 0 ;
16984 PyObject * obj2 = 0 ;
16985 PyObject * obj3 = 0 ;
16986 PyObject * obj4 = 0 ;
16987 PyObject * obj5 = 0 ;
16988 PyObject * obj6 = 0 ;
16989 PyObject * obj7 = 0 ;
16990 char * kwnames[] = {
16991 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
16992 };
16993
16994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
16995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
16996 if (!SWIG_IsOK(res1)) {
16997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioButton" "', expected argument " "1"" of type '" "wxWindow *""'");
16998 }
16999 arg1 = reinterpret_cast< wxWindow * >(argp1);
17000 if (obj1) {
17001 ecode2 = SWIG_AsVal_int(obj1, &val2);
17002 if (!SWIG_IsOK(ecode2)) {
17003 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioButton" "', expected argument " "2"" of type '" "int""'");
17004 }
17005 arg2 = static_cast< int >(val2);
17006 }
17007 if (obj2) {
d14a1e28 17008 {
0085ce49
RD
17009 arg3 = wxString_in_helper(obj2);
17010 if (arg3 == NULL) SWIG_fail;
17011 temp3 = true;
d14a1e28 17012 }
0085ce49
RD
17013 }
17014 if (obj3) {
d14a1e28 17015 {
0085ce49
RD
17016 arg4 = &temp4;
17017 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 17018 }
0085ce49
RD
17019 }
17020 if (obj4) {
d14a1e28 17021 {
0085ce49
RD
17022 arg5 = &temp5;
17023 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
17024 }
17025 }
17026 if (obj5) {
17027 ecode6 = SWIG_AsVal_long(obj5, &val6);
17028 if (!SWIG_IsOK(ecode6)) {
17029 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RadioButton" "', expected argument " "6"" of type '" "long""'");
17030 }
17031 arg6 = static_cast< long >(val6);
17032 }
17033 if (obj6) {
17034 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
17035 if (!SWIG_IsOK(res7)) {
17036 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 17037 }
0085ce49
RD
17038 if (!argp7) {
17039 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17040 }
17041 arg7 = reinterpret_cast< wxValidator * >(argp7);
17042 }
17043 if (obj7) {
d14a1e28 17044 {
0085ce49
RD
17045 arg8 = wxString_in_helper(obj7);
17046 if (arg8 == NULL) SWIG_fail;
17047 temp8 = true;
d14a1e28 17048 }
0085ce49
RD
17049 }
17050 {
17051 if (!wxPyCheckForApp()) SWIG_fail;
17052 PyThreadState* __tstate = wxPyBeginAllowThreads();
17053 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
17054 wxPyEndAllowThreads(__tstate);
17055 if (PyErr_Occurred()) SWIG_fail;
17056 }
17057 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_NEW | 0 );
17058 {
17059 if (temp3)
17060 delete arg3;
17061 }
17062 {
17063 if (temp8)
17064 delete arg8;
17065 }
17066 return resultobj;
17067fail:
17068 {
17069 if (temp3)
17070 delete arg3;
17071 }
17072 {
17073 if (temp8)
17074 delete arg8;
17075 }
17076 return NULL;
d14a1e28
RD
17077}
17078
17079
0085ce49
RD
17080SWIGINTERN PyObject *_wrap_new_PreRadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17081 PyObject *resultobj = 0;
17082 wxRadioButton *result = 0 ;
17083
17084 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioButton",0,0,0)) SWIG_fail;
17085 {
17086 if (!wxPyCheckForApp()) SWIG_fail;
17087 PyThreadState* __tstate = wxPyBeginAllowThreads();
17088 result = (wxRadioButton *)new wxRadioButton();
17089 wxPyEndAllowThreads(__tstate);
17090 if (PyErr_Occurred()) SWIG_fail;
17091 }
17092 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_OWN | 0 );
17093 return resultobj;
17094fail:
17095 return NULL;
17096}
17097
17098
17099SWIGINTERN PyObject *_wrap_RadioButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17100 PyObject *resultobj = 0;
17101 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17102 wxWindow *arg2 = (wxWindow *) 0 ;
17103 int arg3 = (int) -1 ;
17104 wxString const &arg4_defvalue = wxPyEmptyString ;
17105 wxString *arg4 = (wxString *) &arg4_defvalue ;
17106 wxPoint const &arg5_defvalue = wxDefaultPosition ;
17107 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
17108 wxSize const &arg6_defvalue = wxDefaultSize ;
17109 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
17110 long arg7 = (long) 0 ;
17111 wxValidator const &arg8_defvalue = wxDefaultValidator ;
17112 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
17113 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
17114 wxString *arg9 = (wxString *) &arg9_defvalue ;
17115 bool result;
17116 void *argp1 = 0 ;
17117 int res1 = 0 ;
17118 void *argp2 = 0 ;
17119 int res2 = 0 ;
17120 int val3 ;
17121 int ecode3 = 0 ;
17122 bool temp4 = false ;
17123 wxPoint temp5 ;
17124 wxSize temp6 ;
17125 long val7 ;
17126 int ecode7 = 0 ;
17127 void *argp8 = 0 ;
17128 int res8 = 0 ;
17129 bool temp9 = false ;
17130 PyObject * obj0 = 0 ;
17131 PyObject * obj1 = 0 ;
17132 PyObject * obj2 = 0 ;
17133 PyObject * obj3 = 0 ;
17134 PyObject * obj4 = 0 ;
17135 PyObject * obj5 = 0 ;
17136 PyObject * obj6 = 0 ;
17137 PyObject * obj7 = 0 ;
17138 PyObject * obj8 = 0 ;
17139 char * kwnames[] = {
17140 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17141 };
17142
17143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
17144 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17145 if (!SWIG_IsOK(res1)) {
17146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_Create" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17147 }
17148 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17149 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17150 if (!SWIG_IsOK(res2)) {
17151 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17152 }
17153 arg2 = reinterpret_cast< wxWindow * >(argp2);
17154 if (obj2) {
17155 ecode3 = SWIG_AsVal_int(obj2, &val3);
17156 if (!SWIG_IsOK(ecode3)) {
17157 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioButton_Create" "', expected argument " "3"" of type '" "int""'");
17158 }
17159 arg3 = static_cast< int >(val3);
17160 }
17161 if (obj3) {
d14a1e28 17162 {
0085ce49
RD
17163 arg4 = wxString_in_helper(obj3);
17164 if (arg4 == NULL) SWIG_fail;
17165 temp4 = true;
d14a1e28 17166 }
0085ce49
RD
17167 }
17168 if (obj4) {
d14a1e28 17169 {
0085ce49
RD
17170 arg5 = &temp5;
17171 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 17172 }
0085ce49
RD
17173 }
17174 if (obj5) {
d14a1e28 17175 {
0085ce49
RD
17176 arg6 = &temp6;
17177 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
17178 }
17179 }
17180 if (obj6) {
17181 ecode7 = SWIG_AsVal_long(obj6, &val7);
17182 if (!SWIG_IsOK(ecode7)) {
17183 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RadioButton_Create" "', expected argument " "7"" of type '" "long""'");
17184 }
17185 arg7 = static_cast< long >(val7);
17186 }
17187 if (obj7) {
17188 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
17189 if (!SWIG_IsOK(res8)) {
17190 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17191 }
17192 if (!argp8) {
17193 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 17194 }
0085ce49
RD
17195 arg8 = reinterpret_cast< wxValidator * >(argp8);
17196 }
17197 if (obj8) {
d14a1e28 17198 {
0085ce49
RD
17199 arg9 = wxString_in_helper(obj8);
17200 if (arg9 == NULL) SWIG_fail;
17201 temp9 = true;
d14a1e28 17202 }
0085ce49
RD
17203 }
17204 {
17205 PyThreadState* __tstate = wxPyBeginAllowThreads();
17206 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
17207 wxPyEndAllowThreads(__tstate);
17208 if (PyErr_Occurred()) SWIG_fail;
17209 }
17210 {
17211 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17212 }
17213 {
17214 if (temp4)
17215 delete arg4;
17216 }
17217 {
17218 if (temp9)
17219 delete arg9;
17220 }
17221 return resultobj;
17222fail:
17223 {
17224 if (temp4)
17225 delete arg4;
17226 }
17227 {
17228 if (temp9)
17229 delete arg9;
17230 }
17231 return NULL;
d14a1e28
RD
17232}
17233
17234
0085ce49
RD
17235SWIGINTERN PyObject *_wrap_RadioButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17236 PyObject *resultobj = 0;
17237 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17238 bool result;
17239 void *argp1 = 0 ;
17240 int res1 = 0 ;
17241 PyObject *swig_obj[1] ;
17242
17243 if (!args) SWIG_fail;
17244 swig_obj[0] = args;
17245 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17246 if (!SWIG_IsOK(res1)) {
17247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_GetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17248 }
17249 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17250 {
17251 PyThreadState* __tstate = wxPyBeginAllowThreads();
17252 result = (bool)(arg1)->GetValue();
17253 wxPyEndAllowThreads(__tstate);
17254 if (PyErr_Occurred()) SWIG_fail;
17255 }
17256 {
17257 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17258 }
17259 return resultobj;
17260fail:
17261 return NULL;
17262}
17263
17264
17265SWIGINTERN PyObject *_wrap_RadioButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17266 PyObject *resultobj = 0;
17267 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17268 bool arg2 ;
17269 void *argp1 = 0 ;
17270 int res1 = 0 ;
17271 bool val2 ;
17272 int ecode2 = 0 ;
17273 PyObject * obj0 = 0 ;
17274 PyObject * obj1 = 0 ;
17275 char * kwnames[] = {
17276 (char *) "self",(char *) "value", NULL
17277 };
17278
17279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17281 if (!SWIG_IsOK(res1)) {
17282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_SetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17283 }
17284 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17285 ecode2 = SWIG_AsVal_bool(obj1, &val2);
17286 if (!SWIG_IsOK(ecode2)) {
17287 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
17288 }
17289 arg2 = static_cast< bool >(val2);
17290 {
17291 PyThreadState* __tstate = wxPyBeginAllowThreads();
17292 (arg1)->SetValue(arg2);
17293 wxPyEndAllowThreads(__tstate);
17294 if (PyErr_Occurred()) SWIG_fail;
17295 }
17296 resultobj = SWIG_Py_Void();
17297 return resultobj;
17298fail:
17299 return NULL;
17300}
17301
17302
17303SWIGINTERN PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17304 PyObject *resultobj = 0;
17305 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17306 SwigValueWrapper<wxVisualAttributes > result;
17307 int val1 ;
17308 int ecode1 = 0 ;
17309 PyObject * obj0 = 0 ;
17310 char * kwnames[] = {
17311 (char *) "variant", NULL
17312 };
17313
17314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17315 if (obj0) {
17316 ecode1 = SWIG_AsVal_int(obj0, &val1);
17317 if (!SWIG_IsOK(ecode1)) {
17318 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17319 }
17320 arg1 = static_cast< wxWindowVariant >(val1);
17321 }
17322 {
17323 if (!wxPyCheckForApp()) SWIG_fail;
17324 PyThreadState* __tstate = wxPyBeginAllowThreads();
17325 result = wxRadioButton::GetClassDefaultAttributes(arg1);
17326 wxPyEndAllowThreads(__tstate);
17327 if (PyErr_Occurred()) SWIG_fail;
17328 }
17329 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17330 return resultobj;
17331fail:
17332 return NULL;
d14a1e28
RD
17333}
17334
17335
0085ce49
RD
17336SWIGINTERN PyObject *RadioButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17337 PyObject *obj;
17338 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17339 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioButton, SWIG_NewClientData(obj));
17340 return SWIG_Py_Void();
17341}
17342
17343SWIGINTERN PyObject *RadioButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17344 return SWIG_Python_InitShadowInstance(args);
17345}
17346
17347SWIGINTERN int SliderNameStr_set(PyObject *) {
17348 SWIG_Error(SWIG_AttributeError,"Variable SliderNameStr is read-only.");
17349 return 1;
17350}
17351
17352
17353SWIGINTERN PyObject *SliderNameStr_get(void) {
17354 PyObject *pyobj = 0;
17355
17356 {
17357#if wxUSE_UNICODE
17358 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17359#else
17360 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17361#endif
17362 }
17363 return pyobj;
17364}
17365
17366
17367SWIGINTERN PyObject *_wrap_new_Slider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17368 PyObject *resultobj = 0;
17369 wxWindow *arg1 = (wxWindow *) 0 ;
17370 int arg2 = (int) -1 ;
17371 int arg3 = (int) 0 ;
17372 int arg4 = (int) 0 ;
17373 int arg5 = (int) 100 ;
17374 wxPoint const &arg6_defvalue = wxDefaultPosition ;
17375 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
17376 wxSize const &arg7_defvalue = wxDefaultSize ;
17377 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
17378 long arg8 = (long) wxSL_HORIZONTAL ;
17379 wxValidator const &arg9_defvalue = wxDefaultValidator ;
17380 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
17381 wxString const &arg10_defvalue = wxPySliderNameStr ;
17382 wxString *arg10 = (wxString *) &arg10_defvalue ;
17383 wxSlider *result = 0 ;
17384 void *argp1 = 0 ;
17385 int res1 = 0 ;
17386 int val2 ;
17387 int ecode2 = 0 ;
17388 int val3 ;
17389 int ecode3 = 0 ;
17390 int val4 ;
17391 int ecode4 = 0 ;
17392 int val5 ;
17393 int ecode5 = 0 ;
17394 wxPoint temp6 ;
17395 wxSize temp7 ;
17396 long val8 ;
17397 int ecode8 = 0 ;
17398 void *argp9 = 0 ;
17399 int res9 = 0 ;
17400 bool temp10 = false ;
17401 PyObject * obj0 = 0 ;
17402 PyObject * obj1 = 0 ;
17403 PyObject * obj2 = 0 ;
17404 PyObject * obj3 = 0 ;
17405 PyObject * obj4 = 0 ;
17406 PyObject * obj5 = 0 ;
17407 PyObject * obj6 = 0 ;
17408 PyObject * obj7 = 0 ;
17409 PyObject * obj8 = 0 ;
17410 PyObject * obj9 = 0 ;
17411 char * kwnames[] = {
17412 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17413 };
17414
17415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
17416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17417 if (!SWIG_IsOK(res1)) {
17418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Slider" "', expected argument " "1"" of type '" "wxWindow *""'");
17419 }
17420 arg1 = reinterpret_cast< wxWindow * >(argp1);
17421 if (obj1) {
17422 ecode2 = SWIG_AsVal_int(obj1, &val2);
17423 if (!SWIG_IsOK(ecode2)) {
17424 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Slider" "', expected argument " "2"" of type '" "int""'");
17425 }
17426 arg2 = static_cast< int >(val2);
17427 }
17428 if (obj2) {
17429 ecode3 = SWIG_AsVal_int(obj2, &val3);
17430 if (!SWIG_IsOK(ecode3)) {
17431 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Slider" "', expected argument " "3"" of type '" "int""'");
17432 }
17433 arg3 = static_cast< int >(val3);
17434 }
17435 if (obj3) {
17436 ecode4 = SWIG_AsVal_int(obj3, &val4);
17437 if (!SWIG_IsOK(ecode4)) {
17438 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Slider" "', expected argument " "4"" of type '" "int""'");
17439 }
17440 arg4 = static_cast< int >(val4);
17441 }
17442 if (obj4) {
17443 ecode5 = SWIG_AsVal_int(obj4, &val5);
17444 if (!SWIG_IsOK(ecode5)) {
17445 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Slider" "', expected argument " "5"" of type '" "int""'");
17446 }
17447 arg5 = static_cast< int >(val5);
17448 }
17449 if (obj5) {
093d3ff1 17450 {
0085ce49
RD
17451 arg6 = &temp6;
17452 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
093d3ff1 17453 }
0085ce49
RD
17454 }
17455 if (obj6) {
093d3ff1 17456 {
0085ce49
RD
17457 arg7 = &temp7;
17458 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
093d3ff1 17459 }
0085ce49
RD
17460 }
17461 if (obj7) {
17462 ecode8 = SWIG_AsVal_long(obj7, &val8);
17463 if (!SWIG_IsOK(ecode8)) {
17464 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Slider" "', expected argument " "8"" of type '" "long""'");
17465 }
17466 arg8 = static_cast< long >(val8);
17467 }
17468 if (obj8) {
17469 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
17470 if (!SWIG_IsOK(res9)) {
17471 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
d14a1e28 17472 }
0085ce49
RD
17473 if (!argp9) {
17474 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
d14a1e28 17475 }
0085ce49
RD
17476 arg9 = reinterpret_cast< wxValidator * >(argp9);
17477 }
17478 if (obj9) {
4f89f6a3 17479 {
0085ce49
RD
17480 arg10 = wxString_in_helper(obj9);
17481 if (arg10 == NULL) SWIG_fail;
17482 temp10 = true;
4f89f6a3 17483 }
0085ce49
RD
17484 }
17485 {
17486 if (!wxPyCheckForApp()) SWIG_fail;
17487 PyThreadState* __tstate = wxPyBeginAllowThreads();
17488 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
17489 wxPyEndAllowThreads(__tstate);
17490 if (PyErr_Occurred()) SWIG_fail;
17491 }
17492 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_NEW | 0 );
17493 {
17494 if (temp10)
17495 delete arg10;
17496 }
17497 return resultobj;
17498fail:
17499 {
17500 if (temp10)
17501 delete arg10;
17502 }
17503 return NULL;
d14a1e28
RD
17504}
17505
17506
0085ce49
RD
17507SWIGINTERN PyObject *_wrap_new_PreSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17508 PyObject *resultobj = 0;
17509 wxSlider *result = 0 ;
17510
17511 if (!SWIG_Python_UnpackTuple(args,"new_PreSlider",0,0,0)) SWIG_fail;
17512 {
17513 if (!wxPyCheckForApp()) SWIG_fail;
17514 PyThreadState* __tstate = wxPyBeginAllowThreads();
17515 result = (wxSlider *)new wxSlider();
17516 wxPyEndAllowThreads(__tstate);
17517 if (PyErr_Occurred()) SWIG_fail;
17518 }
17519 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_OWN | 0 );
17520 return resultobj;
17521fail:
17522 return NULL;
17523}
17524
17525
17526SWIGINTERN PyObject *_wrap_Slider_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17527 PyObject *resultobj = 0;
17528 wxSlider *arg1 = (wxSlider *) 0 ;
17529 wxWindow *arg2 = (wxWindow *) 0 ;
17530 int arg3 = (int) -1 ;
17531 int arg4 = (int) 0 ;
17532 int arg5 = (int) 0 ;
17533 int arg6 = (int) 100 ;
17534 wxPoint const &arg7_defvalue = wxDefaultPosition ;
17535 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
17536 wxSize const &arg8_defvalue = wxDefaultSize ;
17537 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
17538 long arg9 = (long) wxSL_HORIZONTAL ;
17539 wxValidator const &arg10_defvalue = wxDefaultValidator ;
17540 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
17541 wxString const &arg11_defvalue = wxPySliderNameStr ;
17542 wxString *arg11 = (wxString *) &arg11_defvalue ;
17543 bool result;
17544 void *argp1 = 0 ;
17545 int res1 = 0 ;
17546 void *argp2 = 0 ;
17547 int res2 = 0 ;
17548 int val3 ;
17549 int ecode3 = 0 ;
17550 int val4 ;
17551 int ecode4 = 0 ;
17552 int val5 ;
17553 int ecode5 = 0 ;
17554 int val6 ;
17555 int ecode6 = 0 ;
17556 wxPoint temp7 ;
17557 wxSize temp8 ;
17558 long val9 ;
17559 int ecode9 = 0 ;
17560 void *argp10 = 0 ;
17561 int res10 = 0 ;
17562 bool temp11 = false ;
17563 PyObject * obj0 = 0 ;
17564 PyObject * obj1 = 0 ;
17565 PyObject * obj2 = 0 ;
17566 PyObject * obj3 = 0 ;
17567 PyObject * obj4 = 0 ;
17568 PyObject * obj5 = 0 ;
17569 PyObject * obj6 = 0 ;
17570 PyObject * obj7 = 0 ;
17571 PyObject * obj8 = 0 ;
17572 PyObject * obj9 = 0 ;
17573 PyObject * obj10 = 0 ;
17574 char * kwnames[] = {
17575 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17576 };
17577
17578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
17579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17580 if (!SWIG_IsOK(res1)) {
17581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_Create" "', expected argument " "1"" of type '" "wxSlider *""'");
17582 }
17583 arg1 = reinterpret_cast< wxSlider * >(argp1);
17584 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17585 if (!SWIG_IsOK(res2)) {
17586 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Slider_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17587 }
17588 arg2 = reinterpret_cast< wxWindow * >(argp2);
17589 if (obj2) {
17590 ecode3 = SWIG_AsVal_int(obj2, &val3);
17591 if (!SWIG_IsOK(ecode3)) {
17592 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_Create" "', expected argument " "3"" of type '" "int""'");
17593 }
17594 arg3 = static_cast< int >(val3);
17595 }
17596 if (obj3) {
17597 ecode4 = SWIG_AsVal_int(obj3, &val4);
17598 if (!SWIG_IsOK(ecode4)) {
17599 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Slider_Create" "', expected argument " "4"" of type '" "int""'");
17600 }
17601 arg4 = static_cast< int >(val4);
17602 }
17603 if (obj4) {
17604 ecode5 = SWIG_AsVal_int(obj4, &val5);
17605 if (!SWIG_IsOK(ecode5)) {
17606 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Slider_Create" "', expected argument " "5"" of type '" "int""'");
17607 }
17608 arg5 = static_cast< int >(val5);
17609 }
17610 if (obj5) {
17611 ecode6 = SWIG_AsVal_int(obj5, &val6);
17612 if (!SWIG_IsOK(ecode6)) {
17613 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Slider_Create" "', expected argument " "6"" of type '" "int""'");
17614 }
17615 arg6 = static_cast< int >(val6);
17616 }
17617 if (obj6) {
093d3ff1 17618 {
0085ce49
RD
17619 arg7 = &temp7;
17620 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
d14a1e28 17621 }
0085ce49
RD
17622 }
17623 if (obj7) {
d14a1e28 17624 {
0085ce49
RD
17625 arg8 = &temp8;
17626 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
d14a1e28 17627 }
0085ce49
RD
17628 }
17629 if (obj8) {
17630 ecode9 = SWIG_AsVal_long(obj8, &val9);
17631 if (!SWIG_IsOK(ecode9)) {
17632 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "Slider_Create" "', expected argument " "9"" of type '" "long""'");
17633 }
17634 arg9 = static_cast< long >(val9);
17635 }
17636 if (obj9) {
17637 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
17638 if (!SWIG_IsOK(res10)) {
17639 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
d14a1e28 17640 }
0085ce49
RD
17641 if (!argp10) {
17642 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
d14a1e28 17643 }
0085ce49
RD
17644 arg10 = reinterpret_cast< wxValidator * >(argp10);
17645 }
17646 if (obj10) {
4f89f6a3 17647 {
0085ce49
RD
17648 arg11 = wxString_in_helper(obj10);
17649 if (arg11 == NULL) SWIG_fail;
17650 temp11 = true;
4f89f6a3 17651 }
0085ce49
RD
17652 }
17653 {
17654 PyThreadState* __tstate = wxPyBeginAllowThreads();
17655 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
17656 wxPyEndAllowThreads(__tstate);
17657 if (PyErr_Occurred()) SWIG_fail;
17658 }
17659 {
17660 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17661 }
17662 {
17663 if (temp11)
17664 delete arg11;
17665 }
17666 return resultobj;
17667fail:
17668 {
17669 if (temp11)
17670 delete arg11;
17671 }
17672 return NULL;
d14a1e28
RD
17673}
17674
17675
0085ce49
RD
17676SWIGINTERN PyObject *_wrap_Slider_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17677 PyObject *resultobj = 0;
17678 wxSlider *arg1 = (wxSlider *) 0 ;
17679 int result;
17680 void *argp1 = 0 ;
17681 int res1 = 0 ;
17682 PyObject *swig_obj[1] ;
17683
17684 if (!args) SWIG_fail;
17685 swig_obj[0] = args;
17686 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17687 if (!SWIG_IsOK(res1)) {
17688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetValue" "', expected argument " "1"" of type '" "wxSlider const *""'");
17689 }
17690 arg1 = reinterpret_cast< wxSlider * >(argp1);
17691 {
17692 PyThreadState* __tstate = wxPyBeginAllowThreads();
17693 result = (int)((wxSlider const *)arg1)->GetValue();
17694 wxPyEndAllowThreads(__tstate);
17695 if (PyErr_Occurred()) SWIG_fail;
17696 }
17697 resultobj = SWIG_From_int(static_cast< int >(result));
17698 return resultobj;
17699fail:
17700 return NULL;
17701}
17702
17703
17704SWIGINTERN PyObject *_wrap_Slider_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17705 PyObject *resultobj = 0;
17706 wxSlider *arg1 = (wxSlider *) 0 ;
17707 int arg2 ;
17708 void *argp1 = 0 ;
17709 int res1 = 0 ;
17710 int val2 ;
17711 int ecode2 = 0 ;
17712 PyObject * obj0 = 0 ;
17713 PyObject * obj1 = 0 ;
17714 char * kwnames[] = {
17715 (char *) "self",(char *) "value", NULL
17716 };
17717
17718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17720 if (!SWIG_IsOK(res1)) {
17721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetValue" "', expected argument " "1"" of type '" "wxSlider *""'");
17722 }
17723 arg1 = reinterpret_cast< wxSlider * >(argp1);
17724 ecode2 = SWIG_AsVal_int(obj1, &val2);
17725 if (!SWIG_IsOK(ecode2)) {
17726 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetValue" "', expected argument " "2"" of type '" "int""'");
17727 }
17728 arg2 = static_cast< int >(val2);
17729 {
17730 PyThreadState* __tstate = wxPyBeginAllowThreads();
17731 (arg1)->SetValue(arg2);
17732 wxPyEndAllowThreads(__tstate);
17733 if (PyErr_Occurred()) SWIG_fail;
17734 }
17735 resultobj = SWIG_Py_Void();
17736 return resultobj;
17737fail:
17738 return NULL;
17739}
17740
17741
17742SWIGINTERN PyObject *_wrap_Slider_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17743 PyObject *resultobj = 0;
17744 wxSlider *arg1 = (wxSlider *) 0 ;
17745 int arg2 ;
17746 int arg3 ;
17747 void *argp1 = 0 ;
17748 int res1 = 0 ;
17749 int val2 ;
17750 int ecode2 = 0 ;
17751 int val3 ;
17752 int ecode3 = 0 ;
17753 PyObject * obj0 = 0 ;
17754 PyObject * obj1 = 0 ;
17755 PyObject * obj2 = 0 ;
17756 char * kwnames[] = {
17757 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
17758 };
17759
17760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17762 if (!SWIG_IsOK(res1)) {
17763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetRange" "', expected argument " "1"" of type '" "wxSlider *""'");
17764 }
17765 arg1 = reinterpret_cast< wxSlider * >(argp1);
17766 ecode2 = SWIG_AsVal_int(obj1, &val2);
17767 if (!SWIG_IsOK(ecode2)) {
17768 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetRange" "', expected argument " "2"" of type '" "int""'");
17769 }
17770 arg2 = static_cast< int >(val2);
17771 ecode3 = SWIG_AsVal_int(obj2, &val3);
17772 if (!SWIG_IsOK(ecode3)) {
17773 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetRange" "', expected argument " "3"" of type '" "int""'");
17774 }
17775 arg3 = static_cast< int >(val3);
17776 {
17777 PyThreadState* __tstate = wxPyBeginAllowThreads();
17778 (arg1)->SetRange(arg2,arg3);
17779 wxPyEndAllowThreads(__tstate);
17780 if (PyErr_Occurred()) SWIG_fail;
17781 }
17782 resultobj = SWIG_Py_Void();
17783 return resultobj;
17784fail:
17785 return NULL;
d14a1e28
RD
17786}
17787
17788
0085ce49
RD
17789SWIGINTERN PyObject *_wrap_Slider_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17790 PyObject *resultobj = 0;
17791 wxSlider *arg1 = (wxSlider *) 0 ;
17792 int result;
17793 void *argp1 = 0 ;
17794 int res1 = 0 ;
17795 PyObject *swig_obj[1] ;
17796
17797 if (!args) SWIG_fail;
17798 swig_obj[0] = args;
17799 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17800 if (!SWIG_IsOK(res1)) {
17801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMin" "', expected argument " "1"" of type '" "wxSlider const *""'");
17802 }
17803 arg1 = reinterpret_cast< wxSlider * >(argp1);
17804 {
17805 PyThreadState* __tstate = wxPyBeginAllowThreads();
17806 result = (int)((wxSlider const *)arg1)->GetMin();
17807 wxPyEndAllowThreads(__tstate);
17808 if (PyErr_Occurred()) SWIG_fail;
17809 }
17810 resultobj = SWIG_From_int(static_cast< int >(result));
17811 return resultobj;
17812fail:
17813 return NULL;
d14a1e28
RD
17814}
17815
17816
0085ce49
RD
17817SWIGINTERN PyObject *_wrap_Slider_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17818 PyObject *resultobj = 0;
17819 wxSlider *arg1 = (wxSlider *) 0 ;
17820 int result;
17821 void *argp1 = 0 ;
17822 int res1 = 0 ;
17823 PyObject *swig_obj[1] ;
17824
17825 if (!args) SWIG_fail;
17826 swig_obj[0] = args;
17827 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17828 if (!SWIG_IsOK(res1)) {
17829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMax" "', expected argument " "1"" of type '" "wxSlider const *""'");
17830 }
17831 arg1 = reinterpret_cast< wxSlider * >(argp1);
17832 {
17833 PyThreadState* __tstate = wxPyBeginAllowThreads();
17834 result = (int)((wxSlider const *)arg1)->GetMax();
17835 wxPyEndAllowThreads(__tstate);
17836 if (PyErr_Occurred()) SWIG_fail;
17837 }
17838 resultobj = SWIG_From_int(static_cast< int >(result));
17839 return resultobj;
17840fail:
17841 return NULL;
17842}
17843
17844
17845SWIGINTERN PyObject *_wrap_Slider_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17846 PyObject *resultobj = 0;
17847 wxSlider *arg1 = (wxSlider *) 0 ;
17848 int arg2 ;
17849 void *argp1 = 0 ;
17850 int res1 = 0 ;
17851 int val2 ;
17852 int ecode2 = 0 ;
17853 PyObject * obj0 = 0 ;
17854 PyObject * obj1 = 0 ;
17855 char * kwnames[] = {
17856 (char *) "self",(char *) "minValue", NULL
17857 };
17858
17859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
17860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17861 if (!SWIG_IsOK(res1)) {
17862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMin" "', expected argument " "1"" of type '" "wxSlider *""'");
17863 }
17864 arg1 = reinterpret_cast< wxSlider * >(argp1);
17865 ecode2 = SWIG_AsVal_int(obj1, &val2);
17866 if (!SWIG_IsOK(ecode2)) {
17867 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMin" "', expected argument " "2"" of type '" "int""'");
17868 }
17869 arg2 = static_cast< int >(val2);
17870 {
17871 PyThreadState* __tstate = wxPyBeginAllowThreads();
17872 (arg1)->SetMin(arg2);
17873 wxPyEndAllowThreads(__tstate);
17874 if (PyErr_Occurred()) SWIG_fail;
17875 }
17876 resultobj = SWIG_Py_Void();
17877 return resultobj;
17878fail:
17879 return NULL;
17880}
17881
17882
17883SWIGINTERN PyObject *_wrap_Slider_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17884 PyObject *resultobj = 0;
17885 wxSlider *arg1 = (wxSlider *) 0 ;
17886 int arg2 ;
17887 void *argp1 = 0 ;
17888 int res1 = 0 ;
17889 int val2 ;
17890 int ecode2 = 0 ;
17891 PyObject * obj0 = 0 ;
17892 PyObject * obj1 = 0 ;
17893 char * kwnames[] = {
17894 (char *) "self",(char *) "maxValue", NULL
17895 };
17896
17897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
17898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17899 if (!SWIG_IsOK(res1)) {
17900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMax" "', expected argument " "1"" of type '" "wxSlider *""'");
17901 }
17902 arg1 = reinterpret_cast< wxSlider * >(argp1);
17903 ecode2 = SWIG_AsVal_int(obj1, &val2);
17904 if (!SWIG_IsOK(ecode2)) {
17905 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMax" "', expected argument " "2"" of type '" "int""'");
17906 }
17907 arg2 = static_cast< int >(val2);
17908 {
17909 PyThreadState* __tstate = wxPyBeginAllowThreads();
17910 (arg1)->SetMax(arg2);
17911 wxPyEndAllowThreads(__tstate);
17912 if (PyErr_Occurred()) SWIG_fail;
17913 }
17914 resultobj = SWIG_Py_Void();
17915 return resultobj;
17916fail:
17917 return NULL;
17918}
17919
17920
17921SWIGINTERN PyObject *_wrap_Slider_SetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17922 PyObject *resultobj = 0;
17923 wxSlider *arg1 = (wxSlider *) 0 ;
17924 int arg2 ;
17925 void *argp1 = 0 ;
17926 int res1 = 0 ;
17927 int val2 ;
17928 int ecode2 = 0 ;
17929 PyObject * obj0 = 0 ;
17930 PyObject * obj1 = 0 ;
17931 char * kwnames[] = {
17932 (char *) "self",(char *) "lineSize", NULL
17933 };
17934
17935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) SWIG_fail;
17936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17937 if (!SWIG_IsOK(res1)) {
17938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetLineSize" "', expected argument " "1"" of type '" "wxSlider *""'");
17939 }
17940 arg1 = reinterpret_cast< wxSlider * >(argp1);
17941 ecode2 = SWIG_AsVal_int(obj1, &val2);
17942 if (!SWIG_IsOK(ecode2)) {
17943 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetLineSize" "', expected argument " "2"" of type '" "int""'");
17944 }
17945 arg2 = static_cast< int >(val2);
17946 {
17947 PyThreadState* __tstate = wxPyBeginAllowThreads();
17948 (arg1)->SetLineSize(arg2);
17949 wxPyEndAllowThreads(__tstate);
17950 if (PyErr_Occurred()) SWIG_fail;
17951 }
17952 resultobj = SWIG_Py_Void();
17953 return resultobj;
17954fail:
17955 return NULL;
17956}
17957
17958
17959SWIGINTERN PyObject *_wrap_Slider_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17960 PyObject *resultobj = 0;
17961 wxSlider *arg1 = (wxSlider *) 0 ;
17962 int arg2 ;
17963 void *argp1 = 0 ;
17964 int res1 = 0 ;
17965 int val2 ;
17966 int ecode2 = 0 ;
17967 PyObject * obj0 = 0 ;
17968 PyObject * obj1 = 0 ;
17969 char * kwnames[] = {
17970 (char *) "self",(char *) "pageSize", NULL
17971 };
17972
17973 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
17974 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17975 if (!SWIG_IsOK(res1)) {
17976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetPageSize" "', expected argument " "1"" of type '" "wxSlider *""'");
17977 }
17978 arg1 = reinterpret_cast< wxSlider * >(argp1);
17979 ecode2 = SWIG_AsVal_int(obj1, &val2);
17980 if (!SWIG_IsOK(ecode2)) {
17981 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetPageSize" "', expected argument " "2"" of type '" "int""'");
17982 }
17983 arg2 = static_cast< int >(val2);
17984 {
17985 PyThreadState* __tstate = wxPyBeginAllowThreads();
17986 (arg1)->SetPageSize(arg2);
17987 wxPyEndAllowThreads(__tstate);
17988 if (PyErr_Occurred()) SWIG_fail;
17989 }
17990 resultobj = SWIG_Py_Void();
17991 return resultobj;
17992fail:
17993 return NULL;
d14a1e28
RD
17994}
17995
17996
0085ce49
RD
17997SWIGINTERN PyObject *_wrap_Slider_GetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17998 PyObject *resultobj = 0;
17999 wxSlider *arg1 = (wxSlider *) 0 ;
18000 int result;
18001 void *argp1 = 0 ;
18002 int res1 = 0 ;
18003 PyObject *swig_obj[1] ;
18004
18005 if (!args) SWIG_fail;
18006 swig_obj[0] = args;
18007 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18008 if (!SWIG_IsOK(res1)) {
18009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetLineSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18010 }
18011 arg1 = reinterpret_cast< wxSlider * >(argp1);
18012 {
18013 PyThreadState* __tstate = wxPyBeginAllowThreads();
18014 result = (int)((wxSlider const *)arg1)->GetLineSize();
18015 wxPyEndAllowThreads(__tstate);
18016 if (PyErr_Occurred()) SWIG_fail;
18017 }
18018 resultobj = SWIG_From_int(static_cast< int >(result));
18019 return resultobj;
18020fail:
18021 return NULL;
d14a1e28
RD
18022}
18023
18024
0085ce49
RD
18025SWIGINTERN PyObject *_wrap_Slider_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18026 PyObject *resultobj = 0;
18027 wxSlider *arg1 = (wxSlider *) 0 ;
18028 int result;
18029 void *argp1 = 0 ;
18030 int res1 = 0 ;
18031 PyObject *swig_obj[1] ;
18032
18033 if (!args) SWIG_fail;
18034 swig_obj[0] = args;
18035 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18036 if (!SWIG_IsOK(res1)) {
18037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetPageSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18038 }
18039 arg1 = reinterpret_cast< wxSlider * >(argp1);
18040 {
18041 PyThreadState* __tstate = wxPyBeginAllowThreads();
18042 result = (int)((wxSlider const *)arg1)->GetPageSize();
18043 wxPyEndAllowThreads(__tstate);
18044 if (PyErr_Occurred()) SWIG_fail;
18045 }
18046 resultobj = SWIG_From_int(static_cast< int >(result));
18047 return resultobj;
18048fail:
18049 return NULL;
18050}
18051
18052
18053SWIGINTERN PyObject *_wrap_Slider_SetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18054 PyObject *resultobj = 0;
18055 wxSlider *arg1 = (wxSlider *) 0 ;
18056 int arg2 ;
18057 void *argp1 = 0 ;
18058 int res1 = 0 ;
18059 int val2 ;
18060 int ecode2 = 0 ;
18061 PyObject * obj0 = 0 ;
18062 PyObject * obj1 = 0 ;
18063 char * kwnames[] = {
18064 (char *) "self",(char *) "lenPixels", NULL
18065 };
18066
18067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) SWIG_fail;
18068 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18069 if (!SWIG_IsOK(res1)) {
18070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetThumbLength" "', expected argument " "1"" of type '" "wxSlider *""'");
18071 }
18072 arg1 = reinterpret_cast< wxSlider * >(argp1);
18073 ecode2 = SWIG_AsVal_int(obj1, &val2);
18074 if (!SWIG_IsOK(ecode2)) {
18075 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetThumbLength" "', expected argument " "2"" of type '" "int""'");
18076 }
18077 arg2 = static_cast< int >(val2);
18078 {
18079 PyThreadState* __tstate = wxPyBeginAllowThreads();
18080 (arg1)->SetThumbLength(arg2);
18081 wxPyEndAllowThreads(__tstate);
18082 if (PyErr_Occurred()) SWIG_fail;
18083 }
18084 resultobj = SWIG_Py_Void();
18085 return resultobj;
18086fail:
18087 return NULL;
4d5c3d91
RD
18088}
18089
18090
0085ce49
RD
18091SWIGINTERN PyObject *_wrap_Slider_GetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18092 PyObject *resultobj = 0;
18093 wxSlider *arg1 = (wxSlider *) 0 ;
18094 int result;
18095 void *argp1 = 0 ;
18096 int res1 = 0 ;
18097 PyObject *swig_obj[1] ;
18098
18099 if (!args) SWIG_fail;
18100 swig_obj[0] = args;
18101 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18102 if (!SWIG_IsOK(res1)) {
18103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetThumbLength" "', expected argument " "1"" of type '" "wxSlider const *""'");
18104 }
18105 arg1 = reinterpret_cast< wxSlider * >(argp1);
18106 {
18107 PyThreadState* __tstate = wxPyBeginAllowThreads();
18108 result = (int)((wxSlider const *)arg1)->GetThumbLength();
18109 wxPyEndAllowThreads(__tstate);
18110 if (PyErr_Occurred()) SWIG_fail;
18111 }
18112 resultobj = SWIG_From_int(static_cast< int >(result));
18113 return resultobj;
18114fail:
18115 return NULL;
18116}
18117
18118
18119SWIGINTERN PyObject *_wrap_Slider_SetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18120 PyObject *resultobj = 0;
18121 wxSlider *arg1 = (wxSlider *) 0 ;
18122 int arg2 ;
18123 int arg3 = (int) 1 ;
18124 void *argp1 = 0 ;
18125 int res1 = 0 ;
18126 int val2 ;
18127 int ecode2 = 0 ;
18128 int val3 ;
18129 int ecode3 = 0 ;
18130 PyObject * obj0 = 0 ;
18131 PyObject * obj1 = 0 ;
18132 PyObject * obj2 = 0 ;
18133 char * kwnames[] = {
18134 (char *) "self",(char *) "n",(char *) "pos", NULL
18135 };
18136
18137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18139 if (!SWIG_IsOK(res1)) {
18140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTickFreq" "', expected argument " "1"" of type '" "wxSlider *""'");
18141 }
18142 arg1 = reinterpret_cast< wxSlider * >(argp1);
18143 ecode2 = SWIG_AsVal_int(obj1, &val2);
18144 if (!SWIG_IsOK(ecode2)) {
18145 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTickFreq" "', expected argument " "2"" of type '" "int""'");
18146 }
18147 arg2 = static_cast< int >(val2);
18148 if (obj2) {
18149 ecode3 = SWIG_AsVal_int(obj2, &val3);
18150 if (!SWIG_IsOK(ecode3)) {
18151 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetTickFreq" "', expected argument " "3"" of type '" "int""'");
18152 }
18153 arg3 = static_cast< int >(val3);
18154 }
18155 {
18156 PyThreadState* __tstate = wxPyBeginAllowThreads();
18157 (arg1)->SetTickFreq(arg2,arg3);
18158 wxPyEndAllowThreads(__tstate);
18159 if (PyErr_Occurred()) SWIG_fail;
18160 }
18161 resultobj = SWIG_Py_Void();
18162 return resultobj;
18163fail:
18164 return NULL;
4896ac9e
RD
18165}
18166
18167
0085ce49
RD
18168SWIGINTERN PyObject *_wrap_Slider_GetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18169 PyObject *resultobj = 0;
18170 wxSlider *arg1 = (wxSlider *) 0 ;
18171 int result;
18172 void *argp1 = 0 ;
18173 int res1 = 0 ;
18174 PyObject *swig_obj[1] ;
18175
18176 if (!args) SWIG_fail;
18177 swig_obj[0] = args;
18178 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18179 if (!SWIG_IsOK(res1)) {
18180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetTickFreq" "', expected argument " "1"" of type '" "wxSlider const *""'");
18181 }
18182 arg1 = reinterpret_cast< wxSlider * >(argp1);
18183 {
18184 PyThreadState* __tstate = wxPyBeginAllowThreads();
18185 result = (int)((wxSlider const *)arg1)->GetTickFreq();
18186 wxPyEndAllowThreads(__tstate);
18187 if (PyErr_Occurred()) SWIG_fail;
18188 }
18189 resultobj = SWIG_From_int(static_cast< int >(result));
18190 return resultobj;
18191fail:
18192 return NULL;
d14a1e28
RD
18193}
18194
18195
0085ce49
RD
18196SWIGINTERN PyObject *_wrap_Slider_ClearTicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18197 PyObject *resultobj = 0;
18198 wxSlider *arg1 = (wxSlider *) 0 ;
18199 void *argp1 = 0 ;
18200 int res1 = 0 ;
18201 PyObject *swig_obj[1] ;
18202
18203 if (!args) SWIG_fail;
18204 swig_obj[0] = args;
18205 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18206 if (!SWIG_IsOK(res1)) {
18207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearTicks" "', expected argument " "1"" of type '" "wxSlider *""'");
18208 }
18209 arg1 = reinterpret_cast< wxSlider * >(argp1);
18210 {
18211 PyThreadState* __tstate = wxPyBeginAllowThreads();
18212 (arg1)->ClearTicks();
18213 wxPyEndAllowThreads(__tstate);
18214 if (PyErr_Occurred()) SWIG_fail;
18215 }
18216 resultobj = SWIG_Py_Void();
18217 return resultobj;
18218fail:
18219 return NULL;
18220}
18221
18222
18223SWIGINTERN PyObject *_wrap_Slider_SetTick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18224 PyObject *resultobj = 0;
18225 wxSlider *arg1 = (wxSlider *) 0 ;
18226 int arg2 ;
18227 void *argp1 = 0 ;
18228 int res1 = 0 ;
18229 int val2 ;
18230 int ecode2 = 0 ;
18231 PyObject * obj0 = 0 ;
18232 PyObject * obj1 = 0 ;
18233 char * kwnames[] = {
18234 (char *) "self",(char *) "tickPos", NULL
18235 };
18236
18237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) SWIG_fail;
18238 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18239 if (!SWIG_IsOK(res1)) {
18240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTick" "', expected argument " "1"" of type '" "wxSlider *""'");
18241 }
18242 arg1 = reinterpret_cast< wxSlider * >(argp1);
18243 ecode2 = SWIG_AsVal_int(obj1, &val2);
18244 if (!SWIG_IsOK(ecode2)) {
18245 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTick" "', expected argument " "2"" of type '" "int""'");
18246 }
18247 arg2 = static_cast< int >(val2);
18248 {
18249 PyThreadState* __tstate = wxPyBeginAllowThreads();
18250 (arg1)->SetTick(arg2);
18251 wxPyEndAllowThreads(__tstate);
18252 if (PyErr_Occurred()) SWIG_fail;
18253 }
18254 resultobj = SWIG_Py_Void();
18255 return resultobj;
18256fail:
18257 return NULL;
d14a1e28
RD
18258}
18259
18260
0085ce49
RD
18261SWIGINTERN PyObject *_wrap_Slider_ClearSel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18262 PyObject *resultobj = 0;
18263 wxSlider *arg1 = (wxSlider *) 0 ;
18264 void *argp1 = 0 ;
18265 int res1 = 0 ;
18266 PyObject *swig_obj[1] ;
18267
18268 if (!args) SWIG_fail;
18269 swig_obj[0] = args;
18270 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18271 if (!SWIG_IsOK(res1)) {
18272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearSel" "', expected argument " "1"" of type '" "wxSlider *""'");
18273 }
18274 arg1 = reinterpret_cast< wxSlider * >(argp1);
18275 {
18276 PyThreadState* __tstate = wxPyBeginAllowThreads();
18277 (arg1)->ClearSel();
18278 wxPyEndAllowThreads(__tstate);
18279 if (PyErr_Occurred()) SWIG_fail;
18280 }
18281 resultobj = SWIG_Py_Void();
18282 return resultobj;
18283fail:
18284 return NULL;
d14a1e28
RD
18285}
18286
18287
0085ce49
RD
18288SWIGINTERN PyObject *_wrap_Slider_GetSelEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18289 PyObject *resultobj = 0;
18290 wxSlider *arg1 = (wxSlider *) 0 ;
18291 int result;
18292 void *argp1 = 0 ;
18293 int res1 = 0 ;
18294 PyObject *swig_obj[1] ;
18295
18296 if (!args) SWIG_fail;
18297 swig_obj[0] = args;
18298 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18299 if (!SWIG_IsOK(res1)) {
18300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelEnd" "', expected argument " "1"" of type '" "wxSlider const *""'");
18301 }
18302 arg1 = reinterpret_cast< wxSlider * >(argp1);
18303 {
18304 PyThreadState* __tstate = wxPyBeginAllowThreads();
18305 result = (int)((wxSlider const *)arg1)->GetSelEnd();
18306 wxPyEndAllowThreads(__tstate);
18307 if (PyErr_Occurred()) SWIG_fail;
18308 }
18309 resultobj = SWIG_From_int(static_cast< int >(result));
18310 return resultobj;
18311fail:
18312 return NULL;
d14a1e28
RD
18313}
18314
18315
0085ce49
RD
18316SWIGINTERN PyObject *_wrap_Slider_GetSelStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18317 PyObject *resultobj = 0;
18318 wxSlider *arg1 = (wxSlider *) 0 ;
18319 int result;
18320 void *argp1 = 0 ;
18321 int res1 = 0 ;
18322 PyObject *swig_obj[1] ;
18323
18324 if (!args) SWIG_fail;
18325 swig_obj[0] = args;
18326 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18327 if (!SWIG_IsOK(res1)) {
18328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelStart" "', expected argument " "1"" of type '" "wxSlider const *""'");
18329 }
18330 arg1 = reinterpret_cast< wxSlider * >(argp1);
18331 {
18332 PyThreadState* __tstate = wxPyBeginAllowThreads();
18333 result = (int)((wxSlider const *)arg1)->GetSelStart();
18334 wxPyEndAllowThreads(__tstate);
18335 if (PyErr_Occurred()) SWIG_fail;
18336 }
18337 resultobj = SWIG_From_int(static_cast< int >(result));
18338 return resultobj;
18339fail:
18340 return NULL;
18341}
18342
18343
18344SWIGINTERN PyObject *_wrap_Slider_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18345 PyObject *resultobj = 0;
18346 wxSlider *arg1 = (wxSlider *) 0 ;
18347 int arg2 ;
18348 int arg3 ;
18349 void *argp1 = 0 ;
18350 int res1 = 0 ;
18351 int val2 ;
18352 int ecode2 = 0 ;
18353 int val3 ;
18354 int ecode3 = 0 ;
18355 PyObject * obj0 = 0 ;
18356 PyObject * obj1 = 0 ;
18357 PyObject * obj2 = 0 ;
18358 char * kwnames[] = {
18359 (char *) "self",(char *) "min",(char *) "max", NULL
18360 };
18361
18362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18364 if (!SWIG_IsOK(res1)) {
18365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetSelection" "', expected argument " "1"" of type '" "wxSlider *""'");
18366 }
18367 arg1 = reinterpret_cast< wxSlider * >(argp1);
18368 ecode2 = SWIG_AsVal_int(obj1, &val2);
18369 if (!SWIG_IsOK(ecode2)) {
18370 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetSelection" "', expected argument " "2"" of type '" "int""'");
18371 }
18372 arg2 = static_cast< int >(val2);
18373 ecode3 = SWIG_AsVal_int(obj2, &val3);
18374 if (!SWIG_IsOK(ecode3)) {
18375 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetSelection" "', expected argument " "3"" of type '" "int""'");
18376 }
18377 arg3 = static_cast< int >(val3);
18378 {
18379 PyThreadState* __tstate = wxPyBeginAllowThreads();
18380 (arg1)->SetSelection(arg2,arg3);
18381 wxPyEndAllowThreads(__tstate);
18382 if (PyErr_Occurred()) SWIG_fail;
18383 }
18384 resultobj = SWIG_Py_Void();
18385 return resultobj;
18386fail:
18387 return NULL;
18388}
18389
18390
18391SWIGINTERN PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18392 PyObject *resultobj = 0;
18393 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18394 SwigValueWrapper<wxVisualAttributes > result;
18395 int val1 ;
18396 int ecode1 = 0 ;
18397 PyObject * obj0 = 0 ;
18398 char * kwnames[] = {
18399 (char *) "variant", NULL
18400 };
18401
18402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18403 if (obj0) {
18404 ecode1 = SWIG_AsVal_int(obj0, &val1);
18405 if (!SWIG_IsOK(ecode1)) {
18406 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Slider_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18407 }
18408 arg1 = static_cast< wxWindowVariant >(val1);
18409 }
18410 {
18411 if (!wxPyCheckForApp()) SWIG_fail;
18412 PyThreadState* __tstate = wxPyBeginAllowThreads();
18413 result = wxSlider::GetClassDefaultAttributes(arg1);
18414 wxPyEndAllowThreads(__tstate);
18415 if (PyErr_Occurred()) SWIG_fail;
18416 }
18417 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18418 return resultobj;
18419fail:
18420 return NULL;
d14a1e28
RD
18421}
18422
18423
0085ce49
RD
18424SWIGINTERN PyObject *Slider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18425 PyObject *obj;
18426 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18427 SWIG_TypeNewClientData(SWIGTYPE_p_wxSlider, SWIG_NewClientData(obj));
18428 return SWIG_Py_Void();
d14a1e28
RD
18429}
18430
0085ce49
RD
18431SWIGINTERN PyObject *Slider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18432 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
18433}
18434
0085ce49
RD
18435SWIGINTERN int ToggleButtonNameStr_set(PyObject *) {
18436 SWIG_Error(SWIG_AttributeError,"Variable ToggleButtonNameStr is read-only.");
18437 return 1;
d14a1e28
RD
18438}
18439
18440
0085ce49
RD
18441SWIGINTERN PyObject *ToggleButtonNameStr_get(void) {
18442 PyObject *pyobj = 0;
18443
18444 {
18445#if wxUSE_UNICODE
18446 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18447#else
18448 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18449#endif
18450 }
18451 return pyobj;
18452}
18453
18454
18455SWIGINTERN PyObject *_wrap_new_ToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18456 PyObject *resultobj = 0;
18457 wxWindow *arg1 = (wxWindow *) 0 ;
18458 int arg2 = (int) -1 ;
18459 wxString const &arg3_defvalue = wxPyEmptyString ;
18460 wxString *arg3 = (wxString *) &arg3_defvalue ;
18461 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18462 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18463 wxSize const &arg5_defvalue = wxDefaultSize ;
18464 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18465 long arg6 = (long) 0 ;
18466 wxValidator const &arg7_defvalue = wxDefaultValidator ;
18467 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
18468 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
18469 wxString *arg8 = (wxString *) &arg8_defvalue ;
18470 wxToggleButton *result = 0 ;
18471 void *argp1 = 0 ;
18472 int res1 = 0 ;
18473 int val2 ;
18474 int ecode2 = 0 ;
18475 bool temp3 = false ;
18476 wxPoint temp4 ;
18477 wxSize temp5 ;
18478 long val6 ;
18479 int ecode6 = 0 ;
18480 void *argp7 = 0 ;
18481 int res7 = 0 ;
18482 bool temp8 = false ;
18483 PyObject * obj0 = 0 ;
18484 PyObject * obj1 = 0 ;
18485 PyObject * obj2 = 0 ;
18486 PyObject * obj3 = 0 ;
18487 PyObject * obj4 = 0 ;
18488 PyObject * obj5 = 0 ;
18489 PyObject * obj6 = 0 ;
18490 PyObject * obj7 = 0 ;
18491 char * kwnames[] = {
18492 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18493 };
18494
18495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
18496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
18497 if (!SWIG_IsOK(res1)) {
18498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToggleButton" "', expected argument " "1"" of type '" "wxWindow *""'");
18499 }
18500 arg1 = reinterpret_cast< wxWindow * >(argp1);
18501 if (obj1) {
18502 ecode2 = SWIG_AsVal_int(obj1, &val2);
18503 if (!SWIG_IsOK(ecode2)) {
18504 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToggleButton" "', expected argument " "2"" of type '" "int""'");
18505 }
18506 arg2 = static_cast< int >(val2);
18507 }
18508 if (obj2) {
d14a1e28 18509 {
0085ce49
RD
18510 arg3 = wxString_in_helper(obj2);
18511 if (arg3 == NULL) SWIG_fail;
18512 temp3 = true;
d14a1e28 18513 }
0085ce49
RD
18514 }
18515 if (obj3) {
4f89f6a3 18516 {
0085ce49
RD
18517 arg4 = &temp4;
18518 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 18519 }
0085ce49
RD
18520 }
18521 if (obj4) {
d14a1e28 18522 {
0085ce49
RD
18523 arg5 = &temp5;
18524 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 18525 }
0085ce49
RD
18526 }
18527 if (obj5) {
18528 ecode6 = SWIG_AsVal_long(obj5, &val6);
18529 if (!SWIG_IsOK(ecode6)) {
18530 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ToggleButton" "', expected argument " "6"" of type '" "long""'");
18531 }
18532 arg6 = static_cast< long >(val6);
18533 }
18534 if (obj6) {
18535 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
18536 if (!SWIG_IsOK(res7)) {
18537 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
4f89f6a3 18538 }
0085ce49
RD
18539 if (!argp7) {
18540 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
093d3ff1 18541 }
0085ce49
RD
18542 arg7 = reinterpret_cast< wxValidator * >(argp7);
18543 }
18544 if (obj7) {
d14a1e28 18545 {
0085ce49
RD
18546 arg8 = wxString_in_helper(obj7);
18547 if (arg8 == NULL) SWIG_fail;
18548 temp8 = true;
d14a1e28 18549 }
0085ce49
RD
18550 }
18551 {
18552 if (!wxPyCheckForApp()) SWIG_fail;
18553 PyThreadState* __tstate = wxPyBeginAllowThreads();
18554 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
18555 wxPyEndAllowThreads(__tstate);
18556 if (PyErr_Occurred()) SWIG_fail;
18557 }
18558 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_NEW | 0 );
18559 {
18560 if (temp3)
18561 delete arg3;
18562 }
18563 {
18564 if (temp8)
18565 delete arg8;
18566 }
18567 return resultobj;
18568fail:
18569 {
18570 if (temp3)
18571 delete arg3;
18572 }
18573 {
18574 if (temp8)
18575 delete arg8;
18576 }
18577 return NULL;
d14a1e28
RD
18578}
18579
18580
0085ce49
RD
18581SWIGINTERN PyObject *_wrap_new_PreToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18582 PyObject *resultobj = 0;
18583 wxToggleButton *result = 0 ;
18584
18585 if (!SWIG_Python_UnpackTuple(args,"new_PreToggleButton",0,0,0)) SWIG_fail;
18586 {
18587 if (!wxPyCheckForApp()) SWIG_fail;
18588 PyThreadState* __tstate = wxPyBeginAllowThreads();
18589 result = (wxToggleButton *)new wxToggleButton();
18590 wxPyEndAllowThreads(__tstate);
18591 if (PyErr_Occurred()) SWIG_fail;
18592 }
18593 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_OWN | 0 );
18594 return resultobj;
18595fail:
18596 return NULL;
18597}
18598
18599
18600SWIGINTERN PyObject *_wrap_ToggleButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18601 PyObject *resultobj = 0;
18602 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18603 wxWindow *arg2 = (wxWindow *) 0 ;
18604 int arg3 = (int) -1 ;
18605 wxString const &arg4_defvalue = wxPyEmptyString ;
18606 wxString *arg4 = (wxString *) &arg4_defvalue ;
18607 wxPoint const &arg5_defvalue = wxDefaultPosition ;
18608 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
18609 wxSize const &arg6_defvalue = wxDefaultSize ;
18610 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
18611 long arg7 = (long) 0 ;
18612 wxValidator const &arg8_defvalue = wxDefaultValidator ;
18613 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
18614 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
18615 wxString *arg9 = (wxString *) &arg9_defvalue ;
18616 bool result;
18617 void *argp1 = 0 ;
18618 int res1 = 0 ;
18619 void *argp2 = 0 ;
18620 int res2 = 0 ;
18621 int val3 ;
18622 int ecode3 = 0 ;
18623 bool temp4 = false ;
18624 wxPoint temp5 ;
18625 wxSize temp6 ;
18626 long val7 ;
18627 int ecode7 = 0 ;
18628 void *argp8 = 0 ;
18629 int res8 = 0 ;
18630 bool temp9 = false ;
18631 PyObject * obj0 = 0 ;
18632 PyObject * obj1 = 0 ;
18633 PyObject * obj2 = 0 ;
18634 PyObject * obj3 = 0 ;
18635 PyObject * obj4 = 0 ;
18636 PyObject * obj5 = 0 ;
18637 PyObject * obj6 = 0 ;
18638 PyObject * obj7 = 0 ;
18639 PyObject * obj8 = 0 ;
18640 char * kwnames[] = {
18641 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18642 };
18643
18644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
18645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18646 if (!SWIG_IsOK(res1)) {
18647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_Create" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18648 }
18649 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18650 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
18651 if (!SWIG_IsOK(res2)) {
18652 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToggleButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
18653 }
18654 arg2 = reinterpret_cast< wxWindow * >(argp2);
18655 if (obj2) {
18656 ecode3 = SWIG_AsVal_int(obj2, &val3);
18657 if (!SWIG_IsOK(ecode3)) {
18658 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToggleButton_Create" "', expected argument " "3"" of type '" "int""'");
18659 }
18660 arg3 = static_cast< int >(val3);
18661 }
18662 if (obj3) {
d14a1e28 18663 {
0085ce49
RD
18664 arg4 = wxString_in_helper(obj3);
18665 if (arg4 == NULL) SWIG_fail;
18666 temp4 = true;
d14a1e28 18667 }
0085ce49
RD
18668 }
18669 if (obj4) {
d14a1e28 18670 {
0085ce49
RD
18671 arg5 = &temp5;
18672 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 18673 }
0085ce49
RD
18674 }
18675 if (obj5) {
093d3ff1 18676 {
0085ce49
RD
18677 arg6 = &temp6;
18678 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
093d3ff1 18679 }
0085ce49
RD
18680 }
18681 if (obj6) {
18682 ecode7 = SWIG_AsVal_long(obj6, &val7);
18683 if (!SWIG_IsOK(ecode7)) {
18684 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToggleButton_Create" "', expected argument " "7"" of type '" "long""'");
18685 }
18686 arg7 = static_cast< long >(val7);
18687 }
18688 if (obj7) {
18689 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
18690 if (!SWIG_IsOK(res8)) {
18691 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
18692 }
18693 if (!argp8) {
18694 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 18695 }
0085ce49
RD
18696 arg8 = reinterpret_cast< wxValidator * >(argp8);
18697 }
18698 if (obj8) {
093d3ff1 18699 {
0085ce49
RD
18700 arg9 = wxString_in_helper(obj8);
18701 if (arg9 == NULL) SWIG_fail;
18702 temp9 = true;
093d3ff1 18703 }
0085ce49
RD
18704 }
18705 {
18706 PyThreadState* __tstate = wxPyBeginAllowThreads();
18707 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
18708 wxPyEndAllowThreads(__tstate);
18709 if (PyErr_Occurred()) SWIG_fail;
18710 }
18711 {
18712 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18713 }
18714 {
18715 if (temp4)
18716 delete arg4;
18717 }
18718 {
18719 if (temp9)
18720 delete arg9;
18721 }
18722 return resultobj;
18723fail:
18724 {
18725 if (temp4)
18726 delete arg4;
18727 }
18728 {
18729 if (temp9)
18730 delete arg9;
18731 }
18732 return NULL;
18733}
18734
18735
18736SWIGINTERN PyObject *_wrap_ToggleButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18737 PyObject *resultobj = 0;
18738 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18739 bool arg2 ;
18740 void *argp1 = 0 ;
18741 int res1 = 0 ;
18742 bool val2 ;
18743 int ecode2 = 0 ;
18744 PyObject * obj0 = 0 ;
18745 PyObject * obj1 = 0 ;
18746 char * kwnames[] = {
18747 (char *) "self",(char *) "value", NULL
18748 };
18749
18750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
18751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18752 if (!SWIG_IsOK(res1)) {
18753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_SetValue" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18754 }
18755 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18756 ecode2 = SWIG_AsVal_bool(obj1, &val2);
18757 if (!SWIG_IsOK(ecode2)) {
18758 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToggleButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
18759 }
18760 arg2 = static_cast< bool >(val2);
18761 {
18762 PyThreadState* __tstate = wxPyBeginAllowThreads();
18763 (arg1)->SetValue(arg2);
18764 wxPyEndAllowThreads(__tstate);
18765 if (PyErr_Occurred()) SWIG_fail;
18766 }
18767 resultobj = SWIG_Py_Void();
18768 return resultobj;
18769fail:
18770 return NULL;
d14a1e28
RD
18771}
18772
18773
0085ce49
RD
18774SWIGINTERN PyObject *_wrap_ToggleButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18775 PyObject *resultobj = 0;
18776 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18777 bool result;
18778 void *argp1 = 0 ;
18779 int res1 = 0 ;
18780 PyObject *swig_obj[1] ;
18781
18782 if (!args) SWIG_fail;
18783 swig_obj[0] = args;
18784 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18785 if (!SWIG_IsOK(res1)) {
18786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_GetValue" "', expected argument " "1"" of type '" "wxToggleButton const *""'");
18787 }
18788 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18789 {
18790 PyThreadState* __tstate = wxPyBeginAllowThreads();
18791 result = (bool)((wxToggleButton const *)arg1)->GetValue();
18792 wxPyEndAllowThreads(__tstate);
18793 if (PyErr_Occurred()) SWIG_fail;
18794 }
18795 {
18796 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18797 }
18798 return resultobj;
18799fail:
18800 return NULL;
d14a1e28
RD
18801}
18802
18803
0085ce49
RD
18804SWIGINTERN PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18805 PyObject *resultobj = 0;
18806 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18807 SwigValueWrapper<wxVisualAttributes > result;
18808 int val1 ;
18809 int ecode1 = 0 ;
18810 PyObject * obj0 = 0 ;
18811 char * kwnames[] = {
18812 (char *) "variant", NULL
18813 };
18814
18815 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18816 if (obj0) {
18817 ecode1 = SWIG_AsVal_int(obj0, &val1);
18818 if (!SWIG_IsOK(ecode1)) {
18819 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToggleButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18820 }
18821 arg1 = static_cast< wxWindowVariant >(val1);
18822 }
18823 {
18824 if (!wxPyCheckForApp()) SWIG_fail;
18825 PyThreadState* __tstate = wxPyBeginAllowThreads();
18826 result = wxToggleButton::GetClassDefaultAttributes(arg1);
18827 wxPyEndAllowThreads(__tstate);
18828 if (PyErr_Occurred()) SWIG_fail;
18829 }
18830 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18831 return resultobj;
18832fail:
18833 return NULL;
d14a1e28
RD
18834}
18835
18836
0085ce49
RD
18837SWIGINTERN PyObject *ToggleButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18838 PyObject *obj;
18839 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18840 SWIG_TypeNewClientData(SWIGTYPE_p_wxToggleButton, SWIG_NewClientData(obj));
18841 return SWIG_Py_Void();
d14a1e28
RD
18842}
18843
0085ce49
RD
18844SWIGINTERN PyObject *ToggleButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18845 return SWIG_Python_InitShadowInstance(args);
18846}
d14a1e28 18847
0085ce49
RD
18848SWIGINTERN int NotebookNameStr_set(PyObject *) {
18849 SWIG_Error(SWIG_AttributeError,"Variable NotebookNameStr is read-only.");
18850 return 1;
d14a1e28
RD
18851}
18852
18853
0085ce49
RD
18854SWIGINTERN PyObject *NotebookNameStr_get(void) {
18855 PyObject *pyobj = 0;
18856
18857 {
d14a1e28 18858#if wxUSE_UNICODE
0085ce49 18859 pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
d14a1e28 18860#else
0085ce49 18861 pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
d14a1e28 18862#endif
0085ce49
RD
18863 }
18864 return pyobj;
d14a1e28
RD
18865}
18866
18867
0085ce49
RD
18868SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18869 PyObject *resultobj = 0;
18870 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18871 size_t result;
18872 void *argp1 = 0 ;
18873 int res1 = 0 ;
18874 PyObject *swig_obj[1] ;
18875
18876 if (!args) SWIG_fail;
18877 swig_obj[0] = args;
18878 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18879 if (!SWIG_IsOK(res1)) {
18880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageCount" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
18881 }
18882 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18883 {
18884 PyThreadState* __tstate = wxPyBeginAllowThreads();
18885 result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount();
18886 wxPyEndAllowThreads(__tstate);
18887 if (PyErr_Occurred()) SWIG_fail;
18888 }
18889 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
18890 return resultobj;
18891fail:
18892 return NULL;
18893}
18894
18895
18896SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18897 PyObject *resultobj = 0;
18898 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18899 size_t arg2 ;
18900 wxWindow *result = 0 ;
18901 void *argp1 = 0 ;
18902 int res1 = 0 ;
18903 size_t val2 ;
18904 int ecode2 = 0 ;
18905 PyObject * obj0 = 0 ;
18906 PyObject * obj1 = 0 ;
18907 char * kwnames[] = {
18908 (char *) "self",(char *) "n", NULL
18909 };
18910
18911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) SWIG_fail;
18912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18913 if (!SWIG_IsOK(res1)) {
18914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
18915 }
18916 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18917 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
18918 if (!SWIG_IsOK(ecode2)) {
18919 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPage" "', expected argument " "2"" of type '" "size_t""'");
18920 }
18921 arg2 = static_cast< size_t >(val2);
18922 {
18923 PyThreadState* __tstate = wxPyBeginAllowThreads();
18924 result = (wxWindow *)(arg1)->GetPage(arg2);
18925 wxPyEndAllowThreads(__tstate);
18926 if (PyErr_Occurred()) SWIG_fail;
18927 }
18928 {
18929 resultobj = wxPyMake_wxObject(result, 0);
18930 }
18931 return resultobj;
18932fail:
18933 return NULL;
22bfe96c
RD
18934}
18935
18936
0085ce49
RD
18937SWIGINTERN PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18938 PyObject *resultobj = 0;
18939 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18940 wxWindow *result = 0 ;
18941 void *argp1 = 0 ;
18942 int res1 = 0 ;
18943 PyObject *swig_obj[1] ;
18944
18945 if (!args) SWIG_fail;
18946 swig_obj[0] = args;
18947 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18948 if (!SWIG_IsOK(res1)) {
18949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
18950 }
18951 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18952 {
18953 PyThreadState* __tstate = wxPyBeginAllowThreads();
18954 result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage();
18955 wxPyEndAllowThreads(__tstate);
18956 if (PyErr_Occurred()) SWIG_fail;
18957 }
18958 {
18959 resultobj = wxPyMake_wxObject(result, 0);
18960 }
18961 return resultobj;
18962fail:
18963 return NULL;
d14a1e28
RD
18964}
18965
18966
0085ce49
RD
18967SWIGINTERN PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18968 PyObject *resultobj = 0;
18969 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18970 int result;
18971 void *argp1 = 0 ;
18972 int res1 = 0 ;
18973 PyObject *swig_obj[1] ;
18974
18975 if (!args) SWIG_fail;
18976 swig_obj[0] = args;
18977 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18978 if (!SWIG_IsOK(res1)) {
18979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
18980 }
18981 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18982 {
18983 PyThreadState* __tstate = wxPyBeginAllowThreads();
18984 result = (int)((wxBookCtrlBase const *)arg1)->GetSelection();
18985 wxPyEndAllowThreads(__tstate);
18986 if (PyErr_Occurred()) SWIG_fail;
18987 }
18988 resultobj = SWIG_From_int(static_cast< int >(result));
18989 return resultobj;
18990fail:
18991 return NULL;
18992}
18993
18994
18995SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18996 PyObject *resultobj = 0;
18997 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18998 size_t arg2 ;
18999 wxString *arg3 = 0 ;
19000 bool result;
19001 void *argp1 = 0 ;
19002 int res1 = 0 ;
19003 size_t val2 ;
19004 int ecode2 = 0 ;
19005 bool temp3 = false ;
19006 PyObject * obj0 = 0 ;
19007 PyObject * obj1 = 0 ;
19008 PyObject * obj2 = 0 ;
19009 char * kwnames[] = {
19010 (char *) "self",(char *) "n",(char *) "strText", NULL
19011 };
19012
19013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19015 if (!SWIG_IsOK(res1)) {
19016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19017 }
19018 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19019 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19020 if (!SWIG_IsOK(ecode2)) {
19021 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "2"" of type '" "size_t""'");
19022 }
19023 arg2 = static_cast< size_t >(val2);
19024 {
19025 arg3 = wxString_in_helper(obj2);
19026 if (arg3 == NULL) SWIG_fail;
19027 temp3 = true;
19028 }
19029 {
19030 PyThreadState* __tstate = wxPyBeginAllowThreads();
19031 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
19032 wxPyEndAllowThreads(__tstate);
19033 if (PyErr_Occurred()) SWIG_fail;
19034 }
19035 {
19036 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19037 }
19038 {
19039 if (temp3)
19040 delete arg3;
19041 }
19042 return resultobj;
19043fail:
19044 {
19045 if (temp3)
19046 delete arg3;
19047 }
19048 return NULL;
19049}
19050
19051
19052SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19053 PyObject *resultobj = 0;
19054 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19055 size_t arg2 ;
19056 wxString result;
19057 void *argp1 = 0 ;
19058 int res1 = 0 ;
19059 size_t val2 ;
19060 int ecode2 = 0 ;
19061 PyObject * obj0 = 0 ;
19062 PyObject * obj1 = 0 ;
19063 char * kwnames[] = {
19064 (char *) "self",(char *) "n", NULL
19065 };
19066
19067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) SWIG_fail;
19068 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19069 if (!SWIG_IsOK(res1)) {
19070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19071 }
19072 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19073 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19074 if (!SWIG_IsOK(ecode2)) {
19075 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "2"" of type '" "size_t""'");
19076 }
19077 arg2 = static_cast< size_t >(val2);
19078 {
19079 PyThreadState* __tstate = wxPyBeginAllowThreads();
19080 result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2);
19081 wxPyEndAllowThreads(__tstate);
19082 if (PyErr_Occurred()) SWIG_fail;
19083 }
19084 {
19085#if wxUSE_UNICODE
19086 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19087#else
19088 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19089#endif
19090 }
19091 return resultobj;
19092fail:
19093 return NULL;
19094}
19095
19096
19097SWIGINTERN PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19098 PyObject *resultobj = 0;
19099 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19100 wxImageList *arg2 = (wxImageList *) 0 ;
19101 void *argp1 = 0 ;
19102 int res1 = 0 ;
19103 void *argp2 = 0 ;
19104 int res2 = 0 ;
19105 PyObject * obj0 = 0 ;
19106 PyObject * obj1 = 0 ;
19107 char * kwnames[] = {
19108 (char *) "self",(char *) "imageList", NULL
19109 };
19110
19111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19113 if (!SWIG_IsOK(res1)) {
19114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19115 }
19116 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19117 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
19118 if (!SWIG_IsOK(res2)) {
19119 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19120 }
19121 arg2 = reinterpret_cast< wxImageList * >(argp2);
19122 {
19123 PyThreadState* __tstate = wxPyBeginAllowThreads();
19124 (arg1)->SetImageList(arg2);
19125 wxPyEndAllowThreads(__tstate);
19126 if (PyErr_Occurred()) SWIG_fail;
19127 }
19128 resultobj = SWIG_Py_Void();
19129 return resultobj;
19130fail:
19131 return NULL;
19132}
19133
19134
19135SWIGINTERN PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19136 PyObject *resultobj = 0;
19137 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19138 wxImageList *arg2 = (wxImageList *) 0 ;
19139 void *argp1 = 0 ;
19140 int res1 = 0 ;
19141 int res2 = 0 ;
19142 PyObject * obj0 = 0 ;
19143 PyObject * obj1 = 0 ;
19144 char * kwnames[] = {
19145 (char *) "self",(char *) "imageList", NULL
19146 };
19147
19148 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19149 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19150 if (!SWIG_IsOK(res1)) {
19151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19152 }
19153 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19154 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
19155 if (!SWIG_IsOK(res2)) {
19156 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19157 }
19158 {
19159 PyThreadState* __tstate = wxPyBeginAllowThreads();
19160 (arg1)->AssignImageList(arg2);
19161 wxPyEndAllowThreads(__tstate);
19162 if (PyErr_Occurred()) SWIG_fail;
19163 }
19164 resultobj = SWIG_Py_Void();
19165 return resultobj;
19166fail:
19167 return NULL;
d14a1e28
RD
19168}
19169
19170
0085ce49
RD
19171SWIGINTERN PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19172 PyObject *resultobj = 0;
19173 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19174 wxImageList *result = 0 ;
19175 void *argp1 = 0 ;
19176 int res1 = 0 ;
19177 PyObject *swig_obj[1] ;
19178
19179 if (!args) SWIG_fail;
19180 swig_obj[0] = args;
19181 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19182 if (!SWIG_IsOK(res1)) {
19183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19184 }
19185 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19186 {
19187 PyThreadState* __tstate = wxPyBeginAllowThreads();
19188 result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList();
19189 wxPyEndAllowThreads(__tstate);
19190 if (PyErr_Occurred()) SWIG_fail;
19191 }
19192 {
19193 resultobj = wxPyMake_wxObject(result, (bool)0);
19194 }
19195 return resultobj;
19196fail:
19197 return NULL;
19198}
19199
19200
19201SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19202 PyObject *resultobj = 0;
19203 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19204 size_t arg2 ;
19205 int result;
19206 void *argp1 = 0 ;
19207 int res1 = 0 ;
19208 size_t val2 ;
19209 int ecode2 = 0 ;
19210 PyObject * obj0 = 0 ;
19211 PyObject * obj1 = 0 ;
19212 char * kwnames[] = {
19213 (char *) "self",(char *) "n", NULL
19214 };
19215
19216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) SWIG_fail;
19217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19218 if (!SWIG_IsOK(res1)) {
19219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19220 }
19221 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19222 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19223 if (!SWIG_IsOK(ecode2)) {
19224 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19225 }
19226 arg2 = static_cast< size_t >(val2);
19227 {
19228 PyThreadState* __tstate = wxPyBeginAllowThreads();
19229 result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2);
19230 wxPyEndAllowThreads(__tstate);
19231 if (PyErr_Occurred()) SWIG_fail;
19232 }
19233 resultobj = SWIG_From_int(static_cast< int >(result));
19234 return resultobj;
19235fail:
19236 return NULL;
19237}
19238
19239
19240SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19241 PyObject *resultobj = 0;
19242 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19243 size_t arg2 ;
19244 int arg3 ;
19245 bool result;
19246 void *argp1 = 0 ;
19247 int res1 = 0 ;
19248 size_t val2 ;
19249 int ecode2 = 0 ;
19250 int val3 ;
19251 int ecode3 = 0 ;
19252 PyObject * obj0 = 0 ;
19253 PyObject * obj1 = 0 ;
19254 PyObject * obj2 = 0 ;
19255 char * kwnames[] = {
19256 (char *) "self",(char *) "n",(char *) "imageId", NULL
19257 };
19258
19259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19260 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19261 if (!SWIG_IsOK(res1)) {
19262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19263 }
19264 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19265 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19266 if (!SWIG_IsOK(ecode2)) {
19267 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19268 }
19269 arg2 = static_cast< size_t >(val2);
19270 ecode3 = SWIG_AsVal_int(obj2, &val3);
19271 if (!SWIG_IsOK(ecode3)) {
19272 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "3"" of type '" "int""'");
19273 }
19274 arg3 = static_cast< int >(val3);
19275 {
19276 PyThreadState* __tstate = wxPyBeginAllowThreads();
19277 result = (bool)(arg1)->SetPageImage(arg2,arg3);
19278 wxPyEndAllowThreads(__tstate);
19279 if (PyErr_Occurred()) SWIG_fail;
19280 }
19281 {
19282 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19283 }
19284 return resultobj;
19285fail:
19286 return NULL;
19287}
19288
19289
19290SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19291 PyObject *resultobj = 0;
19292 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19293 wxSize *arg2 = 0 ;
19294 void *argp1 = 0 ;
19295 int res1 = 0 ;
19296 wxSize temp2 ;
19297 PyObject * obj0 = 0 ;
19298 PyObject * obj1 = 0 ;
19299 char * kwnames[] = {
19300 (char *) "self",(char *) "size", NULL
19301 };
19302
19303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
19304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19305 if (!SWIG_IsOK(res1)) {
19306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageSize" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19307 }
19308 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19309 {
19310 arg2 = &temp2;
19311 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19312 }
19313 {
19314 PyThreadState* __tstate = wxPyBeginAllowThreads();
19315 (arg1)->SetPageSize((wxSize const &)*arg2);
19316 wxPyEndAllowThreads(__tstate);
19317 if (PyErr_Occurred()) SWIG_fail;
19318 }
19319 resultobj = SWIG_Py_Void();
19320 return resultobj;
19321fail:
19322 return NULL;
19323}
19324
19325
19326SWIGINTERN PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19327 PyObject *resultobj = 0;
19328 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19329 wxSize *arg2 = 0 ;
19330 wxSize result;
19331 void *argp1 = 0 ;
19332 int res1 = 0 ;
19333 wxSize temp2 ;
19334 PyObject * obj0 = 0 ;
19335 PyObject * obj1 = 0 ;
19336 char * kwnames[] = {
19337 (char *) "self",(char *) "sizePage", NULL
19338 };
19339
19340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) SWIG_fail;
19341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19342 if (!SWIG_IsOK(res1)) {
19343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_CalcSizeFromPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19344 }
19345 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19346 {
19347 arg2 = &temp2;
19348 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19349 }
19350 {
19351 PyThreadState* __tstate = wxPyBeginAllowThreads();
19352 result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
19353 wxPyEndAllowThreads(__tstate);
19354 if (PyErr_Occurred()) SWIG_fail;
19355 }
19356 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
19357 return resultobj;
19358fail:
19359 return NULL;
d14a1e28
RD
19360}
19361
19362
0085ce49
RD
19363SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19364 PyObject *resultobj = 0;
19365 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
e9d6f3a4 19366 unsigned int result;
0085ce49
RD
19367 void *argp1 = 0 ;
19368 int res1 = 0 ;
19369 PyObject *swig_obj[1] ;
19370
19371 if (!args) SWIG_fail;
19372 swig_obj[0] = args;
19373 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19374 if (!SWIG_IsOK(res1)) {
19375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19376 }
19377 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19378 {
19379 PyThreadState* __tstate = wxPyBeginAllowThreads();
e9d6f3a4 19380 result = (unsigned int)((wxBookCtrlBase const *)arg1)->GetInternalBorder();
0085ce49
RD
19381 wxPyEndAllowThreads(__tstate);
19382 if (PyErr_Occurred()) SWIG_fail;
19383 }
e9d6f3a4 19384 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
0085ce49
RD
19385 return resultobj;
19386fail:
19387 return NULL;
19388}
19389
19390
19391SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19392 PyObject *resultobj = 0;
19393 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
e9d6f3a4 19394 unsigned int arg2 ;
0085ce49
RD
19395 void *argp1 = 0 ;
19396 int res1 = 0 ;
e9d6f3a4 19397 unsigned int val2 ;
0085ce49
RD
19398 int ecode2 = 0 ;
19399 PyObject * obj0 = 0 ;
19400 PyObject * obj1 = 0 ;
19401 char * kwnames[] = {
19402 (char *) "self",(char *) "internalBorder", NULL
19403 };
19404
19405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetInternalBorder",kwnames,&obj0,&obj1)) SWIG_fail;
19406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19407 if (!SWIG_IsOK(res1)) {
19408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19409 }
19410 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
e9d6f3a4 19411 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
0085ce49 19412 if (!SWIG_IsOK(ecode2)) {
e9d6f3a4 19413 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "unsigned int""'");
0085ce49 19414 }
e9d6f3a4 19415 arg2 = static_cast< unsigned int >(val2);
0085ce49
RD
19416 {
19417 PyThreadState* __tstate = wxPyBeginAllowThreads();
19418 (arg1)->SetInternalBorder(arg2);
19419 wxPyEndAllowThreads(__tstate);
19420 if (PyErr_Occurred()) SWIG_fail;
19421 }
19422 resultobj = SWIG_Py_Void();
19423 return resultobj;
19424fail:
19425 return NULL;
b2dc1044
RD
19426}
19427
19428
0085ce49
RD
19429SWIGINTERN PyObject *_wrap_BookCtrlBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19430 PyObject *resultobj = 0;
19431 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19432 bool result;
19433 void *argp1 = 0 ;
19434 int res1 = 0 ;
19435 PyObject *swig_obj[1] ;
19436
19437 if (!args) SWIG_fail;
19438 swig_obj[0] = args;
19439 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19440 if (!SWIG_IsOK(res1)) {
19441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_IsVertical" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19442 }
19443 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19444 {
19445 PyThreadState* __tstate = wxPyBeginAllowThreads();
19446 result = (bool)((wxBookCtrlBase const *)arg1)->IsVertical();
19447 wxPyEndAllowThreads(__tstate);
19448 if (PyErr_Occurred()) SWIG_fail;
19449 }
19450 {
19451 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19452 }
19453 return resultobj;
19454fail:
19455 return NULL;
19456}
19457
19458
e9d6f3a4
RD
19459SWIGINTERN PyObject *_wrap_BookCtrlBase_SetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19460 PyObject *resultobj = 0;
19461 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19462 int arg2 ;
19463 void *argp1 = 0 ;
19464 int res1 = 0 ;
19465 int val2 ;
19466 int ecode2 = 0 ;
19467 PyObject * obj0 = 0 ;
19468 PyObject * obj1 = 0 ;
19469 char * kwnames[] = {
19470 (char *) "self",(char *) "margin", NULL
19471 };
19472
19473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetControlMargin",kwnames,&obj0,&obj1)) SWIG_fail;
19474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19475 if (!SWIG_IsOK(res1)) {
19476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19477 }
19478 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19479 ecode2 = SWIG_AsVal_int(obj1, &val2);
19480 if (!SWIG_IsOK(ecode2)) {
19481 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "2"" of type '" "int""'");
19482 }
19483 arg2 = static_cast< int >(val2);
19484 {
19485 PyThreadState* __tstate = wxPyBeginAllowThreads();
19486 (arg1)->SetControlMargin(arg2);
19487 wxPyEndAllowThreads(__tstate);
19488 if (PyErr_Occurred()) SWIG_fail;
19489 }
19490 resultobj = SWIG_Py_Void();
19491 return resultobj;
19492fail:
19493 return NULL;
19494}
19495
19496
19497SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19498 PyObject *resultobj = 0;
19499 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19500 int result;
19501 void *argp1 = 0 ;
19502 int res1 = 0 ;
19503 PyObject *swig_obj[1] ;
19504
19505 if (!args) SWIG_fail;
19506 swig_obj[0] = args;
19507 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19508 if (!SWIG_IsOK(res1)) {
19509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19510 }
19511 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19512 {
19513 PyThreadState* __tstate = wxPyBeginAllowThreads();
19514 result = (int)((wxBookCtrlBase const *)arg1)->GetControlMargin();
19515 wxPyEndAllowThreads(__tstate);
19516 if (PyErr_Occurred()) SWIG_fail;
19517 }
19518 resultobj = SWIG_From_int(static_cast< int >(result));
19519 return resultobj;
19520fail:
19521 return NULL;
19522}
19523
19524
0085ce49
RD
19525SWIGINTERN PyObject *_wrap_BookCtrlBase_SetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19526 PyObject *resultobj = 0;
19527 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19528 bool arg2 ;
19529 void *argp1 = 0 ;
19530 int res1 = 0 ;
19531 bool val2 ;
19532 int ecode2 = 0 ;
19533 PyObject * obj0 = 0 ;
19534 PyObject * obj1 = 0 ;
19535 char * kwnames[] = {
19536 (char *) "self",(char *) "fit", NULL
19537 };
19538
19539 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetFitToCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail;
19540 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19541 if (!SWIG_IsOK(res1)) {
19542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19543 }
19544 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19545 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19546 if (!SWIG_IsOK(ecode2)) {
19547 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "2"" of type '" "bool""'");
19548 }
19549 arg2 = static_cast< bool >(val2);
19550 {
19551 PyThreadState* __tstate = wxPyBeginAllowThreads();
19552 (arg1)->SetFitToCurrentPage(arg2);
19553 wxPyEndAllowThreads(__tstate);
19554 if (PyErr_Occurred()) SWIG_fail;
19555 }
19556 resultobj = SWIG_Py_Void();
19557 return resultobj;
19558fail:
19559 return NULL;
d14a1e28
RD
19560}
19561
19562
0085ce49
RD
19563SWIGINTERN PyObject *_wrap_BookCtrlBase_GetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19564 PyObject *resultobj = 0;
19565 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19566 bool result;
19567 void *argp1 = 0 ;
19568 int res1 = 0 ;
19569 PyObject *swig_obj[1] ;
19570
19571 if (!args) SWIG_fail;
19572 swig_obj[0] = args;
19573 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19574 if (!SWIG_IsOK(res1)) {
19575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19576 }
19577 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19578 {
19579 PyThreadState* __tstate = wxPyBeginAllowThreads();
19580 result = (bool)((wxBookCtrlBase const *)arg1)->GetFitToCurrentPage();
19581 wxPyEndAllowThreads(__tstate);
19582 if (PyErr_Occurred()) SWIG_fail;
19583 }
19584 {
19585 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19586 }
19587 return resultobj;
19588fail:
19589 return NULL;
19590}
19591
19592
e9d6f3a4
RD
19593SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19594 PyObject *resultobj = 0;
19595 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19596 wxSizer *result = 0 ;
19597 void *argp1 = 0 ;
19598 int res1 = 0 ;
19599 PyObject *swig_obj[1] ;
19600
19601 if (!args) SWIG_fail;
19602 swig_obj[0] = args;
19603 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19604 if (!SWIG_IsOK(res1)) {
19605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlSizer" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19606 }
19607 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19608 {
19609 PyThreadState* __tstate = wxPyBeginAllowThreads();
19610 result = (wxSizer *)((wxBookCtrlBase const *)arg1)->GetControlSizer();
19611 wxPyEndAllowThreads(__tstate);
19612 if (PyErr_Occurred()) SWIG_fail;
19613 }
19614 {
19615 resultobj = wxPyMake_wxObject(result, (bool)0);
19616 }
19617 return resultobj;
19618fail:
19619 return NULL;
19620}
19621
19622
0085ce49
RD
19623SWIGINTERN PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19624 PyObject *resultobj = 0;
19625 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19626 size_t arg2 ;
19627 bool result;
19628 void *argp1 = 0 ;
19629 int res1 = 0 ;
19630 size_t val2 ;
19631 int ecode2 = 0 ;
19632 PyObject * obj0 = 0 ;
19633 PyObject * obj1 = 0 ;
19634 char * kwnames[] = {
19635 (char *) "self",(char *) "n", NULL
19636 };
19637
19638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) SWIG_fail;
19639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19640 if (!SWIG_IsOK(res1)) {
19641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19642 }
19643 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19644 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19645 if (!SWIG_IsOK(ecode2)) {
19646 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "2"" of type '" "size_t""'");
19647 }
19648 arg2 = static_cast< size_t >(val2);
19649 {
19650 PyThreadState* __tstate = wxPyBeginAllowThreads();
19651 result = (bool)(arg1)->DeletePage(arg2);
19652 wxPyEndAllowThreads(__tstate);
19653 if (PyErr_Occurred()) SWIG_fail;
19654 }
19655 {
19656 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19657 }
19658 return resultobj;
19659fail:
19660 return NULL;
19661}
19662
19663
19664SWIGINTERN PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19665 PyObject *resultobj = 0;
19666 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19667 size_t arg2 ;
19668 bool result;
19669 void *argp1 = 0 ;
19670 int res1 = 0 ;
19671 size_t val2 ;
19672 int ecode2 = 0 ;
19673 PyObject * obj0 = 0 ;
19674 PyObject * obj1 = 0 ;
19675 char * kwnames[] = {
19676 (char *) "self",(char *) "n", NULL
19677 };
19678
19679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) SWIG_fail;
19680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19681 if (!SWIG_IsOK(res1)) {
19682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19683 }
19684 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19685 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19686 if (!SWIG_IsOK(ecode2)) {
19687 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "2"" of type '" "size_t""'");
19688 }
19689 arg2 = static_cast< size_t >(val2);
19690 {
19691 PyThreadState* __tstate = wxPyBeginAllowThreads();
19692 result = (bool)(arg1)->RemovePage(arg2);
19693 wxPyEndAllowThreads(__tstate);
19694 if (PyErr_Occurred()) SWIG_fail;
19695 }
19696 {
19697 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19698 }
19699 return resultobj;
19700fail:
19701 return NULL;
d14a1e28
RD
19702}
19703
19704
0085ce49
RD
19705SWIGINTERN PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19706 PyObject *resultobj = 0;
19707 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19708 bool result;
19709 void *argp1 = 0 ;
19710 int res1 = 0 ;
19711 PyObject *swig_obj[1] ;
19712
19713 if (!args) SWIG_fail;
19714 swig_obj[0] = args;
19715 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19716 if (!SWIG_IsOK(res1)) {
19717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeleteAllPages" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19718 }
19719 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19720 {
19721 PyThreadState* __tstate = wxPyBeginAllowThreads();
19722 result = (bool)(arg1)->DeleteAllPages();
19723 wxPyEndAllowThreads(__tstate);
19724 if (PyErr_Occurred()) SWIG_fail;
19725 }
19726 {
19727 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19728 }
19729 return resultobj;
19730fail:
19731 return NULL;
19732}
19733
19734
19735SWIGINTERN PyObject *_wrap_BookCtrlBase_AddPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19736 PyObject *resultobj = 0;
19737 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19738 wxWindow *arg2 = (wxWindow *) 0 ;
19739 wxString *arg3 = 0 ;
19740 bool arg4 = (bool) false ;
19741 int arg5 = (int) -1 ;
19742 bool result;
19743 void *argp1 = 0 ;
19744 int res1 = 0 ;
19745 void *argp2 = 0 ;
19746 int res2 = 0 ;
19747 bool temp3 = false ;
19748 bool val4 ;
19749 int ecode4 = 0 ;
19750 int val5 ;
19751 int ecode5 = 0 ;
19752 PyObject * obj0 = 0 ;
19753 PyObject * obj1 = 0 ;
19754 PyObject * obj2 = 0 ;
19755 PyObject * obj3 = 0 ;
19756 PyObject * obj4 = 0 ;
19757 char * kwnames[] = {
19758 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
19759 };
19760
19761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19763 if (!SWIG_IsOK(res1)) {
19764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AddPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19765 }
19766 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19767 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
19768 if (!SWIG_IsOK(res2)) {
19769 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AddPage" "', expected argument " "2"" of type '" "wxWindow *""'");
19770 }
19771 arg2 = reinterpret_cast< wxWindow * >(argp2);
19772 {
19773 arg3 = wxString_in_helper(obj2);
19774 if (arg3 == NULL) SWIG_fail;
19775 temp3 = true;
19776 }
19777 if (obj3) {
19778 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19779 if (!SWIG_IsOK(ecode4)) {
19780 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BookCtrlBase_AddPage" "', expected argument " "4"" of type '" "bool""'");
19781 }
19782 arg4 = static_cast< bool >(val4);
19783 }
19784 if (obj4) {
19785 ecode5 = SWIG_AsVal_int(obj4, &val5);
19786 if (!SWIG_IsOK(ecode5)) {
19787 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_AddPage" "', expected argument " "5"" of type '" "int""'");
19788 }
19789 arg5 = static_cast< int >(val5);
19790 }
19791 {
19792 PyThreadState* __tstate = wxPyBeginAllowThreads();
19793 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
19794 wxPyEndAllowThreads(__tstate);
19795 if (PyErr_Occurred()) SWIG_fail;
19796 }
19797 {
19798 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19799 }
19800 {
19801 if (temp3)
19802 delete arg3;
19803 }
19804 return resultobj;
19805fail:
19806 {
19807 if (temp3)
19808 delete arg3;
19809 }
19810 return NULL;
19811}
19812
19813
19814SWIGINTERN PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19815 PyObject *resultobj = 0;
19816 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19817 size_t arg2 ;
19818 wxWindow *arg3 = (wxWindow *) 0 ;
19819 wxString *arg4 = 0 ;
19820 bool arg5 = (bool) false ;
19821 int arg6 = (int) -1 ;
19822 bool result;
19823 void *argp1 = 0 ;
19824 int res1 = 0 ;
19825 size_t val2 ;
19826 int ecode2 = 0 ;
19827 void *argp3 = 0 ;
19828 int res3 = 0 ;
19829 bool temp4 = false ;
19830 bool val5 ;
19831 int ecode5 = 0 ;
19832 int val6 ;
19833 int ecode6 = 0 ;
19834 PyObject * obj0 = 0 ;
19835 PyObject * obj1 = 0 ;
19836 PyObject * obj2 = 0 ;
19837 PyObject * obj3 = 0 ;
19838 PyObject * obj4 = 0 ;
19839 PyObject * obj5 = 0 ;
19840 char * kwnames[] = {
19841 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
19842 };
19843
19844 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19845 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19846 if (!SWIG_IsOK(res1)) {
19847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19848 }
19849 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19850 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19851 if (!SWIG_IsOK(ecode2)) {
19852 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "2"" of type '" "size_t""'");
19853 }
19854 arg2 = static_cast< size_t >(val2);
19855 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
19856 if (!SWIG_IsOK(res3)) {
19857 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "3"" of type '" "wxWindow *""'");
19858 }
19859 arg3 = reinterpret_cast< wxWindow * >(argp3);
19860 {
19861 arg4 = wxString_in_helper(obj3);
19862 if (arg4 == NULL) SWIG_fail;
19863 temp4 = true;
19864 }
19865 if (obj4) {
19866 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19867 if (!SWIG_IsOK(ecode5)) {
19868 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "5"" of type '" "bool""'");
19869 }
19870 arg5 = static_cast< bool >(val5);
19871 }
19872 if (obj5) {
19873 ecode6 = SWIG_AsVal_int(obj5, &val6);
19874 if (!SWIG_IsOK(ecode6)) {
19875 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "6"" of type '" "int""'");
19876 }
19877 arg6 = static_cast< int >(val6);
19878 }
19879 {
19880 PyThreadState* __tstate = wxPyBeginAllowThreads();
19881 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
19882 wxPyEndAllowThreads(__tstate);
19883 if (PyErr_Occurred()) SWIG_fail;
19884 }
19885 {
19886 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19887 }
19888 {
19889 if (temp4)
19890 delete arg4;
19891 }
19892 return resultobj;
19893fail:
19894 {
19895 if (temp4)
19896 delete arg4;
19897 }
19898 return NULL;
19899}
19900
19901
19902SWIGINTERN PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19903 PyObject *resultobj = 0;
19904 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19905 size_t arg2 ;
19906 int result;
19907 void *argp1 = 0 ;
19908 int res1 = 0 ;
19909 size_t val2 ;
19910 int ecode2 = 0 ;
19911 PyObject * obj0 = 0 ;
19912 PyObject * obj1 = 0 ;
19913 char * kwnames[] = {
19914 (char *) "self",(char *) "n", NULL
19915 };
19916
19917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
19918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19919 if (!SWIG_IsOK(res1)) {
19920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19921 }
19922 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19923 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19924 if (!SWIG_IsOK(ecode2)) {
19925 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "2"" of type '" "size_t""'");
19926 }
19927 arg2 = static_cast< size_t >(val2);
19928 {
19929 PyThreadState* __tstate = wxPyBeginAllowThreads();
19930 result = (int)(arg1)->SetSelection(arg2);
19931 wxPyEndAllowThreads(__tstate);
19932 if (PyErr_Occurred()) SWIG_fail;
19933 }
19934 resultobj = SWIG_From_int(static_cast< int >(result));
19935 return resultobj;
19936fail:
19937 return NULL;
19938}
19939
19940
19941SWIGINTERN PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19942 PyObject *resultobj = 0;
19943 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19944 bool arg2 = (bool) true ;
19945 void *argp1 = 0 ;
19946 int res1 = 0 ;
19947 bool val2 ;
19948 int ecode2 = 0 ;
19949 PyObject * obj0 = 0 ;
19950 PyObject * obj1 = 0 ;
19951 char * kwnames[] = {
19952 (char *) "self",(char *) "forward", NULL
19953 };
19954
19955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) SWIG_fail;
19956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19957 if (!SWIG_IsOK(res1)) {
19958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19959 }
19960 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19961 if (obj1) {
19962 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19963 if (!SWIG_IsOK(ecode2)) {
19964 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "2"" of type '" "bool""'");
19965 }
19966 arg2 = static_cast< bool >(val2);
19967 }
19968 {
19969 PyThreadState* __tstate = wxPyBeginAllowThreads();
19970 (arg1)->AdvanceSelection(arg2);
19971 wxPyEndAllowThreads(__tstate);
19972 if (PyErr_Occurred()) SWIG_fail;
19973 }
19974 resultobj = SWIG_Py_Void();
19975 return resultobj;
19976fail:
19977 return NULL;
19978}
19979
19980
19981SWIGINTERN PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19982 PyObject *resultobj = 0;
19983 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
19984 SwigValueWrapper<wxVisualAttributes > result;
19985 int val1 ;
19986 int ecode1 = 0 ;
19987 PyObject * obj0 = 0 ;
19988 char * kwnames[] = {
19989 (char *) "variant", NULL
19990 };
19991
19992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
19993 if (obj0) {
19994 ecode1 = SWIG_AsVal_int(obj0, &val1);
19995 if (!SWIG_IsOK(ecode1)) {
19996 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BookCtrlBase_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
19997 }
19998 arg1 = static_cast< wxWindowVariant >(val1);
19999 }
20000 {
20001 if (!wxPyCheckForApp()) SWIG_fail;
20002 PyThreadState* __tstate = wxPyBeginAllowThreads();
20003 result = wxBookCtrlBase::GetClassDefaultAttributes(arg1);
20004 wxPyEndAllowThreads(__tstate);
20005 if (PyErr_Occurred()) SWIG_fail;
20006 }
20007 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20008 return resultobj;
20009fail:
20010 return NULL;
20011}
20012
20013
20014SWIGINTERN PyObject *BookCtrlBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20015 PyObject *obj;
20016 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20017 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBase, SWIG_NewClientData(obj));
20018 return SWIG_Py_Void();
20019}
20020
20021SWIGINTERN PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20022 PyObject *resultobj = 0;
20023 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20024 int arg2 = (int) 0 ;
20025 int arg3 = (int) -1 ;
20026 int arg4 = (int) -1 ;
20027 wxBookCtrlBaseEvent *result = 0 ;
20028 int val1 ;
20029 int ecode1 = 0 ;
20030 int val2 ;
20031 int ecode2 = 0 ;
20032 int val3 ;
20033 int ecode3 = 0 ;
20034 int val4 ;
20035 int ecode4 = 0 ;
20036 PyObject * obj0 = 0 ;
20037 PyObject * obj1 = 0 ;
20038 PyObject * obj2 = 0 ;
20039 PyObject * obj3 = 0 ;
20040 char * kwnames[] = {
20041 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20042 };
20043
20044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20045 if (obj0) {
20046 ecode1 = SWIG_AsVal_int(obj0, &val1);
20047 if (!SWIG_IsOK(ecode1)) {
20048 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20049 }
20050 arg1 = static_cast< wxEventType >(val1);
20051 }
20052 if (obj1) {
20053 ecode2 = SWIG_AsVal_int(obj1, &val2);
20054 if (!SWIG_IsOK(ecode2)) {
20055 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "2"" of type '" "int""'");
20056 }
20057 arg2 = static_cast< int >(val2);
20058 }
20059 if (obj2) {
20060 ecode3 = SWIG_AsVal_int(obj2, &val3);
20061 if (!SWIG_IsOK(ecode3)) {
20062 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "3"" of type '" "int""'");
20063 }
20064 arg3 = static_cast< int >(val3);
20065 }
20066 if (obj3) {
20067 ecode4 = SWIG_AsVal_int(obj3, &val4);
20068 if (!SWIG_IsOK(ecode4)) {
20069 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "4"" of type '" "int""'");
20070 }
20071 arg4 = static_cast< int >(val4);
20072 }
20073 {
20074 PyThreadState* __tstate = wxPyBeginAllowThreads();
20075 result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4);
20076 wxPyEndAllowThreads(__tstate);
20077 if (PyErr_Occurred()) SWIG_fail;
20078 }
20079 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_NEW | 0 );
20080 return resultobj;
20081fail:
20082 return NULL;
d14a1e28
RD
20083}
20084
20085
0085ce49
RD
20086SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20087 PyObject *resultobj = 0;
20088 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20089 int result;
20090 void *argp1 = 0 ;
20091 int res1 = 0 ;
20092 PyObject *swig_obj[1] ;
20093
20094 if (!args) SWIG_fail;
20095 swig_obj[0] = args;
20096 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20097 if (!SWIG_IsOK(res1)) {
20098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20099 }
20100 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20101 {
20102 PyThreadState* __tstate = wxPyBeginAllowThreads();
20103 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection();
20104 wxPyEndAllowThreads(__tstate);
20105 if (PyErr_Occurred()) SWIG_fail;
20106 }
20107 resultobj = SWIG_From_int(static_cast< int >(result));
20108 return resultobj;
20109fail:
20110 return NULL;
20111}
20112
20113
20114SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20115 PyObject *resultobj = 0;
20116 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20117 int arg2 ;
20118 void *argp1 = 0 ;
20119 int res1 = 0 ;
20120 int val2 ;
20121 int ecode2 = 0 ;
20122 PyObject * obj0 = 0 ;
20123 PyObject * obj1 = 0 ;
20124 char * kwnames[] = {
20125 (char *) "self",(char *) "nSel", NULL
20126 };
20127
20128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20130 if (!SWIG_IsOK(res1)) {
20131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20132 }
20133 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20134 ecode2 = SWIG_AsVal_int(obj1, &val2);
20135 if (!SWIG_IsOK(ecode2)) {
20136 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "2"" of type '" "int""'");
20137 }
20138 arg2 = static_cast< int >(val2);
20139 {
20140 PyThreadState* __tstate = wxPyBeginAllowThreads();
20141 (arg1)->SetSelection(arg2);
20142 wxPyEndAllowThreads(__tstate);
20143 if (PyErr_Occurred()) SWIG_fail;
20144 }
20145 resultobj = SWIG_Py_Void();
20146 return resultobj;
20147fail:
20148 return NULL;
d14a1e28
RD
20149}
20150
20151
0085ce49
RD
20152SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20153 PyObject *resultobj = 0;
20154 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20155 int result;
20156 void *argp1 = 0 ;
20157 int res1 = 0 ;
20158 PyObject *swig_obj[1] ;
20159
20160 if (!args) SWIG_fail;
20161 swig_obj[0] = args;
20162 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20163 if (!SWIG_IsOK(res1)) {
20164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20165 }
20166 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20167 {
20168 PyThreadState* __tstate = wxPyBeginAllowThreads();
20169 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection();
20170 wxPyEndAllowThreads(__tstate);
20171 if (PyErr_Occurred()) SWIG_fail;
20172 }
20173 resultobj = SWIG_From_int(static_cast< int >(result));
20174 return resultobj;
20175fail:
20176 return NULL;
20177}
20178
20179
20180SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20181 PyObject *resultobj = 0;
20182 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20183 int arg2 ;
20184 void *argp1 = 0 ;
20185 int res1 = 0 ;
20186 int val2 ;
20187 int ecode2 = 0 ;
20188 PyObject * obj0 = 0 ;
20189 PyObject * obj1 = 0 ;
20190 char * kwnames[] = {
20191 (char *) "self",(char *) "nOldSel", NULL
20192 };
20193
20194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20196 if (!SWIG_IsOK(res1)) {
20197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20198 }
20199 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20200 ecode2 = SWIG_AsVal_int(obj1, &val2);
20201 if (!SWIG_IsOK(ecode2)) {
20202 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "2"" of type '" "int""'");
20203 }
20204 arg2 = static_cast< int >(val2);
20205 {
20206 PyThreadState* __tstate = wxPyBeginAllowThreads();
20207 (arg1)->SetOldSelection(arg2);
20208 wxPyEndAllowThreads(__tstate);
20209 if (PyErr_Occurred()) SWIG_fail;
20210 }
20211 resultobj = SWIG_Py_Void();
20212 return resultobj;
20213fail:
20214 return NULL;
20215}
20216
20217
20218SWIGINTERN PyObject *BookCtrlBaseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20219 PyObject *obj;
20220 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20221 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_NewClientData(obj));
20222 return SWIG_Py_Void();
20223}
20224
20225SWIGINTERN PyObject *BookCtrlBaseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20226 return SWIG_Python_InitShadowInstance(args);
20227}
20228
20229SWIGINTERN PyObject *_wrap_new_Notebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20230 PyObject *resultobj = 0;
20231 wxWindow *arg1 = (wxWindow *) 0 ;
20232 int arg2 = (int) -1 ;
20233 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20234 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20235 wxSize const &arg4_defvalue = wxDefaultSize ;
20236 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20237 long arg5 = (long) 0 ;
20238 wxString const &arg6_defvalue = wxPyNotebookNameStr ;
20239 wxString *arg6 = (wxString *) &arg6_defvalue ;
20240 wxNotebook *result = 0 ;
20241 void *argp1 = 0 ;
20242 int res1 = 0 ;
20243 int val2 ;
20244 int ecode2 = 0 ;
20245 wxPoint temp3 ;
20246 wxSize temp4 ;
20247 long val5 ;
20248 int ecode5 = 0 ;
20249 bool temp6 = false ;
20250 PyObject * obj0 = 0 ;
20251 PyObject * obj1 = 0 ;
20252 PyObject * obj2 = 0 ;
20253 PyObject * obj3 = 0 ;
20254 PyObject * obj4 = 0 ;
20255 PyObject * obj5 = 0 ;
20256 char * kwnames[] = {
20257 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20258 };
20259
20260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20262 if (!SWIG_IsOK(res1)) {
20263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Notebook" "', expected argument " "1"" of type '" "wxWindow *""'");
20264 }
20265 arg1 = reinterpret_cast< wxWindow * >(argp1);
20266 if (obj1) {
20267 ecode2 = SWIG_AsVal_int(obj1, &val2);
20268 if (!SWIG_IsOK(ecode2)) {
20269 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Notebook" "', expected argument " "2"" of type '" "int""'");
20270 }
20271 arg2 = static_cast< int >(val2);
20272 }
20273 if (obj2) {
093d3ff1 20274 {
0085ce49
RD
20275 arg3 = &temp3;
20276 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 20277 }
0085ce49
RD
20278 }
20279 if (obj3) {
d14a1e28 20280 {
0085ce49
RD
20281 arg4 = &temp4;
20282 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 20283 }
0085ce49
RD
20284 }
20285 if (obj4) {
20286 ecode5 = SWIG_AsVal_long(obj4, &val5);
20287 if (!SWIG_IsOK(ecode5)) {
20288 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Notebook" "', expected argument " "5"" of type '" "long""'");
20289 }
20290 arg5 = static_cast< long >(val5);
20291 }
20292 if (obj5) {
093d3ff1 20293 {
0085ce49
RD
20294 arg6 = wxString_in_helper(obj5);
20295 if (arg6 == NULL) SWIG_fail;
20296 temp6 = true;
093d3ff1 20297 }
0085ce49
RD
20298 }
20299 {
20300 if (!wxPyCheckForApp()) SWIG_fail;
20301 PyThreadState* __tstate = wxPyBeginAllowThreads();
20302 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20303 wxPyEndAllowThreads(__tstate);
20304 if (PyErr_Occurred()) SWIG_fail;
20305 }
20306 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_NEW | 0 );
20307 {
20308 if (temp6)
20309 delete arg6;
20310 }
20311 return resultobj;
20312fail:
20313 {
20314 if (temp6)
20315 delete arg6;
20316 }
20317 return NULL;
d14a1e28
RD
20318}
20319
20320
0085ce49
RD
20321SWIGINTERN PyObject *_wrap_new_PreNotebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20322 PyObject *resultobj = 0;
20323 wxNotebook *result = 0 ;
20324
20325 if (!SWIG_Python_UnpackTuple(args,"new_PreNotebook",0,0,0)) SWIG_fail;
20326 {
20327 if (!wxPyCheckForApp()) SWIG_fail;
20328 PyThreadState* __tstate = wxPyBeginAllowThreads();
20329 result = (wxNotebook *)new wxNotebook();
20330 wxPyEndAllowThreads(__tstate);
20331 if (PyErr_Occurred()) SWIG_fail;
20332 }
20333 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_OWN | 0 );
20334 return resultobj;
20335fail:
20336 return NULL;
20337}
20338
20339
20340SWIGINTERN PyObject *_wrap_Notebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20341 PyObject *resultobj = 0;
20342 wxNotebook *arg1 = (wxNotebook *) 0 ;
20343 wxWindow *arg2 = (wxWindow *) 0 ;
20344 int arg3 = (int) -1 ;
20345 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20346 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20347 wxSize const &arg5_defvalue = wxDefaultSize ;
20348 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20349 long arg6 = (long) 0 ;
20350 wxString const &arg7_defvalue = wxPyNotebookNameStr ;
20351 wxString *arg7 = (wxString *) &arg7_defvalue ;
20352 bool result;
20353 void *argp1 = 0 ;
20354 int res1 = 0 ;
20355 void *argp2 = 0 ;
20356 int res2 = 0 ;
20357 int val3 ;
20358 int ecode3 = 0 ;
20359 wxPoint temp4 ;
20360 wxSize temp5 ;
20361 long val6 ;
20362 int ecode6 = 0 ;
20363 bool temp7 = false ;
20364 PyObject * obj0 = 0 ;
20365 PyObject * obj1 = 0 ;
20366 PyObject * obj2 = 0 ;
20367 PyObject * obj3 = 0 ;
20368 PyObject * obj4 = 0 ;
20369 PyObject * obj5 = 0 ;
20370 PyObject * obj6 = 0 ;
20371 char * kwnames[] = {
20372 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20373 };
20374
20375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20377 if (!SWIG_IsOK(res1)) {
20378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_Create" "', expected argument " "1"" of type '" "wxNotebook *""'");
20379 }
20380 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20381 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20382 if (!SWIG_IsOK(res2)) {
20383 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Notebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20384 }
20385 arg2 = reinterpret_cast< wxWindow * >(argp2);
20386 if (obj2) {
20387 ecode3 = SWIG_AsVal_int(obj2, &val3);
20388 if (!SWIG_IsOK(ecode3)) {
20389 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_Create" "', expected argument " "3"" of type '" "int""'");
20390 }
20391 arg3 = static_cast< int >(val3);
20392 }
20393 if (obj3) {
093d3ff1 20394 {
0085ce49
RD
20395 arg4 = &temp4;
20396 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 20397 }
0085ce49
RD
20398 }
20399 if (obj4) {
d14a1e28 20400 {
0085ce49
RD
20401 arg5 = &temp5;
20402 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 20403 }
0085ce49
RD
20404 }
20405 if (obj5) {
20406 ecode6 = SWIG_AsVal_long(obj5, &val6);
20407 if (!SWIG_IsOK(ecode6)) {
20408 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Notebook_Create" "', expected argument " "6"" of type '" "long""'");
20409 }
20410 arg6 = static_cast< long >(val6);
20411 }
20412 if (obj6) {
4f89f6a3 20413 {
0085ce49
RD
20414 arg7 = wxString_in_helper(obj6);
20415 if (arg7 == NULL) SWIG_fail;
20416 temp7 = true;
4f89f6a3 20417 }
0085ce49
RD
20418 }
20419 {
20420 PyThreadState* __tstate = wxPyBeginAllowThreads();
20421 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20422 wxPyEndAllowThreads(__tstate);
20423 if (PyErr_Occurred()) SWIG_fail;
20424 }
20425 {
20426 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20427 }
20428 {
20429 if (temp7)
20430 delete arg7;
20431 }
20432 return resultobj;
20433fail:
20434 {
20435 if (temp7)
20436 delete arg7;
20437 }
20438 return NULL;
d14a1e28
RD
20439}
20440
20441
0085ce49
RD
20442SWIGINTERN PyObject *_wrap_Notebook_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20443 PyObject *resultobj = 0;
20444 wxNotebook *arg1 = (wxNotebook *) 0 ;
20445 int result;
20446 void *argp1 = 0 ;
20447 int res1 = 0 ;
20448 PyObject *swig_obj[1] ;
20449
20450 if (!args) SWIG_fail;
20451 swig_obj[0] = args;
20452 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20453 if (!SWIG_IsOK(res1)) {
20454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetRowCount" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20455 }
20456 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20457 {
20458 PyThreadState* __tstate = wxPyBeginAllowThreads();
20459 result = (int)((wxNotebook const *)arg1)->GetRowCount();
20460 wxPyEndAllowThreads(__tstate);
20461 if (PyErr_Occurred()) SWIG_fail;
20462 }
20463 resultobj = SWIG_From_int(static_cast< int >(result));
20464 return resultobj;
20465fail:
20466 return NULL;
20467}
20468
20469
20470SWIGINTERN PyObject *_wrap_Notebook_SetPadding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20471 PyObject *resultobj = 0;
20472 wxNotebook *arg1 = (wxNotebook *) 0 ;
20473 wxSize *arg2 = 0 ;
20474 void *argp1 = 0 ;
20475 int res1 = 0 ;
20476 wxSize temp2 ;
20477 PyObject * obj0 = 0 ;
20478 PyObject * obj1 = 0 ;
20479 char * kwnames[] = {
20480 (char *) "self",(char *) "padding", NULL
20481 };
20482
20483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) SWIG_fail;
20484 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20485 if (!SWIG_IsOK(res1)) {
20486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetPadding" "', expected argument " "1"" of type '" "wxNotebook *""'");
20487 }
20488 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20489 {
20490 arg2 = &temp2;
20491 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20492 }
20493 {
20494 PyThreadState* __tstate = wxPyBeginAllowThreads();
20495 (arg1)->SetPadding((wxSize const &)*arg2);
20496 wxPyEndAllowThreads(__tstate);
20497 if (PyErr_Occurred()) SWIG_fail;
20498 }
20499 resultobj = SWIG_Py_Void();
20500 return resultobj;
20501fail:
20502 return NULL;
20503}
20504
20505
20506SWIGINTERN PyObject *_wrap_Notebook_SetTabSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20507 PyObject *resultobj = 0;
20508 wxNotebook *arg1 = (wxNotebook *) 0 ;
20509 wxSize *arg2 = 0 ;
20510 void *argp1 = 0 ;
20511 int res1 = 0 ;
20512 wxSize temp2 ;
20513 PyObject * obj0 = 0 ;
20514 PyObject * obj1 = 0 ;
20515 char * kwnames[] = {
20516 (char *) "self",(char *) "sz", NULL
20517 };
20518
20519 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) SWIG_fail;
20520 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20521 if (!SWIG_IsOK(res1)) {
20522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetTabSize" "', expected argument " "1"" of type '" "wxNotebook *""'");
20523 }
20524 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20525 {
20526 arg2 = &temp2;
20527 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20528 }
20529 {
20530 PyThreadState* __tstate = wxPyBeginAllowThreads();
20531 (arg1)->SetTabSize((wxSize const &)*arg2);
20532 wxPyEndAllowThreads(__tstate);
20533 if (PyErr_Occurred()) SWIG_fail;
20534 }
20535 resultobj = SWIG_Py_Void();
20536 return resultobj;
20537fail:
20538 return NULL;
20539}
20540
20541
20542SWIGINTERN PyObject *_wrap_Notebook_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20543 PyObject *resultobj = 0;
20544 wxNotebook *arg1 = (wxNotebook *) 0 ;
20545 wxPoint *arg2 = 0 ;
20546 long *arg3 = (long *) 0 ;
20547 int result;
20548 void *argp1 = 0 ;
20549 int res1 = 0 ;
20550 wxPoint temp2 ;
20551 long temp3 ;
20552 int res3 = SWIG_TMPOBJ ;
20553 PyObject * obj0 = 0 ;
20554 PyObject * obj1 = 0 ;
20555 char * kwnames[] = {
20556 (char *) "self",(char *) "pt", NULL
20557 };
20558
20559 arg3 = &temp3;
20560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
20561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20562 if (!SWIG_IsOK(res1)) {
20563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_HitTest" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20564 }
20565 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20566 {
20567 arg2 = &temp2;
20568 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20569 }
20570 {
20571 PyThreadState* __tstate = wxPyBeginAllowThreads();
20572 result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
20573 wxPyEndAllowThreads(__tstate);
20574 if (PyErr_Occurred()) SWIG_fail;
20575 }
20576 resultobj = SWIG_From_int(static_cast< int >(result));
20577 if (SWIG_IsTmpObj(res3)) {
20578 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
20579 } else {
20580 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20581 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
20582 }
20583 return resultobj;
20584fail:
20585 return NULL;
d14a1e28
RD
20586}
20587
20588
0085ce49
RD
20589SWIGINTERN PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20590 PyObject *resultobj = 0;
20591 wxNotebook *arg1 = (wxNotebook *) 0 ;
20592 wxColour result;
20593 void *argp1 = 0 ;
20594 int res1 = 0 ;
20595 PyObject *swig_obj[1] ;
20596
20597 if (!args) SWIG_fail;
20598 swig_obj[0] = args;
20599 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20600 if (!SWIG_IsOK(res1)) {
20601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetThemeBackgroundColour" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20602 }
20603 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20604 {
20605 PyThreadState* __tstate = wxPyBeginAllowThreads();
20606 result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour();
20607 wxPyEndAllowThreads(__tstate);
20608 if (PyErr_Occurred()) SWIG_fail;
20609 }
20610 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
20611 return resultobj;
20612fail:
20613 return NULL;
20614}
20615
20616
20617SWIGINTERN PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20618 PyObject *resultobj = 0;
20619 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20620 SwigValueWrapper<wxVisualAttributes > result;
20621 int val1 ;
20622 int ecode1 = 0 ;
20623 PyObject * obj0 = 0 ;
20624 char * kwnames[] = {
20625 (char *) "variant", NULL
20626 };
20627
20628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20629 if (obj0) {
20630 ecode1 = SWIG_AsVal_int(obj0, &val1);
20631 if (!SWIG_IsOK(ecode1)) {
20632 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Notebook_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20633 }
20634 arg1 = static_cast< wxWindowVariant >(val1);
20635 }
20636 {
20637 if (!wxPyCheckForApp()) SWIG_fail;
20638 PyThreadState* __tstate = wxPyBeginAllowThreads();
20639 result = wxNotebook::GetClassDefaultAttributes(arg1);
20640 wxPyEndAllowThreads(__tstate);
20641 if (PyErr_Occurred()) SWIG_fail;
20642 }
20643 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20644 return resultobj;
20645fail:
20646 return NULL;
20647}
20648
20649
20650SWIGINTERN PyObject *Notebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20651 PyObject *obj;
20652 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20653 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebook, SWIG_NewClientData(obj));
20654 return SWIG_Py_Void();
20655}
20656
20657SWIGINTERN PyObject *Notebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20658 return SWIG_Python_InitShadowInstance(args);
20659}
20660
20661SWIGINTERN PyObject *_wrap_new_NotebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20662 PyObject *resultobj = 0;
20663 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20664 int arg2 = (int) 0 ;
20665 int arg3 = (int) -1 ;
20666 int arg4 = (int) -1 ;
20667 wxNotebookEvent *result = 0 ;
20668 int val1 ;
20669 int ecode1 = 0 ;
20670 int val2 ;
20671 int ecode2 = 0 ;
20672 int val3 ;
20673 int ecode3 = 0 ;
20674 int val4 ;
20675 int ecode4 = 0 ;
20676 PyObject * obj0 = 0 ;
20677 PyObject * obj1 = 0 ;
20678 PyObject * obj2 = 0 ;
20679 PyObject * obj3 = 0 ;
20680 char * kwnames[] = {
20681 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20682 };
20683
20684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20685 if (obj0) {
20686 ecode1 = SWIG_AsVal_int(obj0, &val1);
20687 if (!SWIG_IsOK(ecode1)) {
20688 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NotebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20689 }
20690 arg1 = static_cast< wxEventType >(val1);
20691 }
20692 if (obj1) {
20693 ecode2 = SWIG_AsVal_int(obj1, &val2);
20694 if (!SWIG_IsOK(ecode2)) {
20695 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NotebookEvent" "', expected argument " "2"" of type '" "int""'");
20696 }
20697 arg2 = static_cast< int >(val2);
20698 }
20699 if (obj2) {
20700 ecode3 = SWIG_AsVal_int(obj2, &val3);
20701 if (!SWIG_IsOK(ecode3)) {
20702 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NotebookEvent" "', expected argument " "3"" of type '" "int""'");
20703 }
20704 arg3 = static_cast< int >(val3);
20705 }
20706 if (obj3) {
20707 ecode4 = SWIG_AsVal_int(obj3, &val4);
20708 if (!SWIG_IsOK(ecode4)) {
20709 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NotebookEvent" "', expected argument " "4"" of type '" "int""'");
20710 }
20711 arg4 = static_cast< int >(val4);
20712 }
20713 {
20714 PyThreadState* __tstate = wxPyBeginAllowThreads();
20715 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
20716 wxPyEndAllowThreads(__tstate);
20717 if (PyErr_Occurred()) SWIG_fail;
20718 }
20719 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebookEvent, SWIG_POINTER_NEW | 0 );
20720 return resultobj;
20721fail:
20722 return NULL;
20723}
20724
20725
20726SWIGINTERN PyObject *NotebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20727 PyObject *obj;
20728 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20729 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebookEvent, SWIG_NewClientData(obj));
20730 return SWIG_Py_Void();
20731}
20732
20733SWIGINTERN PyObject *NotebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20734 return SWIG_Python_InitShadowInstance(args);
20735}
20736
20737SWIGINTERN PyObject *_wrap_new_Listbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20738 PyObject *resultobj = 0;
20739 wxWindow *arg1 = (wxWindow *) 0 ;
20740 int arg2 = (int) -1 ;
20741 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20742 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20743 wxSize const &arg4_defvalue = wxDefaultSize ;
20744 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20745 long arg5 = (long) 0 ;
20746 wxString const &arg6_defvalue = wxPyEmptyString ;
20747 wxString *arg6 = (wxString *) &arg6_defvalue ;
20748 wxListbook *result = 0 ;
20749 void *argp1 = 0 ;
20750 int res1 = 0 ;
20751 int val2 ;
20752 int ecode2 = 0 ;
20753 wxPoint temp3 ;
20754 wxSize temp4 ;
20755 long val5 ;
20756 int ecode5 = 0 ;
20757 bool temp6 = false ;
20758 PyObject * obj0 = 0 ;
20759 PyObject * obj1 = 0 ;
20760 PyObject * obj2 = 0 ;
20761 PyObject * obj3 = 0 ;
20762 PyObject * obj4 = 0 ;
20763 PyObject * obj5 = 0 ;
20764 char * kwnames[] = {
20765 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20766 };
20767
20768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20770 if (!SWIG_IsOK(res1)) {
20771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Listbook" "', expected argument " "1"" of type '" "wxWindow *""'");
20772 }
20773 arg1 = reinterpret_cast< wxWindow * >(argp1);
20774 if (obj1) {
20775 ecode2 = SWIG_AsVal_int(obj1, &val2);
20776 if (!SWIG_IsOK(ecode2)) {
20777 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Listbook" "', expected argument " "2"" of type '" "int""'");
20778 }
20779 arg2 = static_cast< int >(val2);
20780 }
20781 if (obj2) {
093d3ff1 20782 {
0085ce49
RD
20783 arg3 = &temp3;
20784 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 20785 }
0085ce49
RD
20786 }
20787 if (obj3) {
093d3ff1 20788 {
0085ce49
RD
20789 arg4 = &temp4;
20790 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 20791 }
0085ce49
RD
20792 }
20793 if (obj4) {
20794 ecode5 = SWIG_AsVal_long(obj4, &val5);
20795 if (!SWIG_IsOK(ecode5)) {
20796 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Listbook" "', expected argument " "5"" of type '" "long""'");
20797 }
20798 arg5 = static_cast< long >(val5);
20799 }
20800 if (obj5) {
d14a1e28 20801 {
0085ce49
RD
20802 arg6 = wxString_in_helper(obj5);
20803 if (arg6 == NULL) SWIG_fail;
20804 temp6 = true;
d14a1e28 20805 }
0085ce49
RD
20806 }
20807 {
20808 if (!wxPyCheckForApp()) SWIG_fail;
20809 PyThreadState* __tstate = wxPyBeginAllowThreads();
20810 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20811 wxPyEndAllowThreads(__tstate);
20812 if (PyErr_Occurred()) SWIG_fail;
20813 }
20814 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_NEW | 0 );
20815 {
20816 if (temp6)
20817 delete arg6;
20818 }
20819 return resultobj;
20820fail:
20821 {
20822 if (temp6)
20823 delete arg6;
20824 }
20825 return NULL;
d14a1e28
RD
20826}
20827
20828
0085ce49
RD
20829SWIGINTERN PyObject *_wrap_new_PreListbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20830 PyObject *resultobj = 0;
20831 wxListbook *result = 0 ;
20832
20833 if (!SWIG_Python_UnpackTuple(args,"new_PreListbook",0,0,0)) SWIG_fail;
20834 {
20835 if (!wxPyCheckForApp()) SWIG_fail;
20836 PyThreadState* __tstate = wxPyBeginAllowThreads();
20837 result = (wxListbook *)new wxListbook();
20838 wxPyEndAllowThreads(__tstate);
20839 if (PyErr_Occurred()) SWIG_fail;
20840 }
20841 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_OWN | 0 );
20842 return resultobj;
20843fail:
20844 return NULL;
20845}
20846
20847
20848SWIGINTERN PyObject *_wrap_Listbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20849 PyObject *resultobj = 0;
20850 wxListbook *arg1 = (wxListbook *) 0 ;
20851 wxWindow *arg2 = (wxWindow *) 0 ;
20852 int arg3 = (int) -1 ;
20853 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20854 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20855 wxSize const &arg5_defvalue = wxDefaultSize ;
20856 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20857 long arg6 = (long) 0 ;
20858 wxString const &arg7_defvalue = wxPyEmptyString ;
20859 wxString *arg7 = (wxString *) &arg7_defvalue ;
20860 bool result;
20861 void *argp1 = 0 ;
20862 int res1 = 0 ;
20863 void *argp2 = 0 ;
20864 int res2 = 0 ;
20865 int val3 ;
20866 int ecode3 = 0 ;
20867 wxPoint temp4 ;
20868 wxSize temp5 ;
20869 long val6 ;
20870 int ecode6 = 0 ;
20871 bool temp7 = false ;
20872 PyObject * obj0 = 0 ;
20873 PyObject * obj1 = 0 ;
20874 PyObject * obj2 = 0 ;
20875 PyObject * obj3 = 0 ;
20876 PyObject * obj4 = 0 ;
20877 PyObject * obj5 = 0 ;
20878 PyObject * obj6 = 0 ;
20879 char * kwnames[] = {
20880 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20881 };
20882
20883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
20885 if (!SWIG_IsOK(res1)) {
20886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_Create" "', expected argument " "1"" of type '" "wxListbook *""'");
20887 }
20888 arg1 = reinterpret_cast< wxListbook * >(argp1);
20889 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20890 if (!SWIG_IsOK(res2)) {
20891 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Listbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20892 }
20893 arg2 = reinterpret_cast< wxWindow * >(argp2);
20894 if (obj2) {
20895 ecode3 = SWIG_AsVal_int(obj2, &val3);
20896 if (!SWIG_IsOK(ecode3)) {
20897 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Listbook_Create" "', expected argument " "3"" of type '" "int""'");
20898 }
20899 arg3 = static_cast< int >(val3);
20900 }
20901 if (obj3) {
22bfe96c 20902 {
0085ce49
RD
20903 arg4 = &temp4;
20904 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
22bfe96c 20905 }
0085ce49
RD
20906 }
20907 if (obj4) {
22bfe96c 20908 {
0085ce49
RD
20909 arg5 = &temp5;
20910 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
22bfe96c 20911 }
0085ce49
RD
20912 }
20913 if (obj5) {
20914 ecode6 = SWIG_AsVal_long(obj5, &val6);
20915 if (!SWIG_IsOK(ecode6)) {
20916 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Listbook_Create" "', expected argument " "6"" of type '" "long""'");
20917 }
20918 arg6 = static_cast< long >(val6);
20919 }
20920 if (obj6) {
b2dc1044 20921 {
0085ce49
RD
20922 arg7 = wxString_in_helper(obj6);
20923 if (arg7 == NULL) SWIG_fail;
20924 temp7 = true;
b2dc1044 20925 }
0085ce49
RD
20926 }
20927 {
20928 PyThreadState* __tstate = wxPyBeginAllowThreads();
20929 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20930 wxPyEndAllowThreads(__tstate);
20931 if (PyErr_Occurred()) SWIG_fail;
20932 }
20933 {
20934 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20935 }
20936 {
20937 if (temp7)
20938 delete arg7;
20939 }
20940 return resultobj;
20941fail:
20942 {
20943 if (temp7)
20944 delete arg7;
20945 }
20946 return NULL;
b2dc1044
RD
20947}
20948
20949
0085ce49
RD
20950SWIGINTERN PyObject *_wrap_Listbook_GetListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20951 PyObject *resultobj = 0;
20952 wxListbook *arg1 = (wxListbook *) 0 ;
20953 wxListView *result = 0 ;
20954 void *argp1 = 0 ;
20955 int res1 = 0 ;
20956 PyObject *swig_obj[1] ;
20957
20958 if (!args) SWIG_fail;
20959 swig_obj[0] = args;
20960 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
20961 if (!SWIG_IsOK(res1)) {
20962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_GetListView" "', expected argument " "1"" of type '" "wxListbook *""'");
20963 }
20964 arg1 = reinterpret_cast< wxListbook * >(argp1);
20965 {
20966 PyThreadState* __tstate = wxPyBeginAllowThreads();
20967 result = (wxListView *)(arg1)->GetListView();
20968 wxPyEndAllowThreads(__tstate);
20969 if (PyErr_Occurred()) SWIG_fail;
20970 }
20971 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, 0 | 0 );
20972 return resultobj;
20973fail:
20974 return NULL;
20975}
20976
20977
20978SWIGINTERN PyObject *Listbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20979 PyObject *obj;
20980 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20981 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbook, SWIG_NewClientData(obj));
20982 return SWIG_Py_Void();
20983}
20984
20985SWIGINTERN PyObject *Listbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20986 return SWIG_Python_InitShadowInstance(args);
20987}
20988
20989SWIGINTERN PyObject *_wrap_new_ListbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20990 PyObject *resultobj = 0;
20991 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20992 int arg2 = (int) 0 ;
20993 int arg3 = (int) -1 ;
20994 int arg4 = (int) -1 ;
20995 wxListbookEvent *result = 0 ;
20996 int val1 ;
20997 int ecode1 = 0 ;
20998 int val2 ;
20999 int ecode2 = 0 ;
21000 int val3 ;
21001 int ecode3 = 0 ;
21002 int val4 ;
21003 int ecode4 = 0 ;
21004 PyObject * obj0 = 0 ;
21005 PyObject * obj1 = 0 ;
21006 PyObject * obj2 = 0 ;
21007 PyObject * obj3 = 0 ;
21008 char * kwnames[] = {
21009 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21010 };
21011
21012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21013 if (obj0) {
21014 ecode1 = SWIG_AsVal_int(obj0, &val1);
21015 if (!SWIG_IsOK(ecode1)) {
21016 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21017 }
21018 arg1 = static_cast< wxEventType >(val1);
21019 }
21020 if (obj1) {
21021 ecode2 = SWIG_AsVal_int(obj1, &val2);
21022 if (!SWIG_IsOK(ecode2)) {
21023 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListbookEvent" "', expected argument " "2"" of type '" "int""'");
21024 }
21025 arg2 = static_cast< int >(val2);
21026 }
21027 if (obj2) {
21028 ecode3 = SWIG_AsVal_int(obj2, &val3);
21029 if (!SWIG_IsOK(ecode3)) {
21030 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ListbookEvent" "', expected argument " "3"" of type '" "int""'");
21031 }
21032 arg3 = static_cast< int >(val3);
21033 }
21034 if (obj3) {
21035 ecode4 = SWIG_AsVal_int(obj3, &val4);
21036 if (!SWIG_IsOK(ecode4)) {
21037 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ListbookEvent" "', expected argument " "4"" of type '" "int""'");
21038 }
21039 arg4 = static_cast< int >(val4);
21040 }
21041 {
21042 PyThreadState* __tstate = wxPyBeginAllowThreads();
21043 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
21044 wxPyEndAllowThreads(__tstate);
21045 if (PyErr_Occurred()) SWIG_fail;
21046 }
21047 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbookEvent, SWIG_POINTER_NEW | 0 );
21048 return resultobj;
21049fail:
21050 return NULL;
21051}
21052
21053
21054SWIGINTERN PyObject *ListbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21055 PyObject *obj;
21056 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21057 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbookEvent, SWIG_NewClientData(obj));
21058 return SWIG_Py_Void();
21059}
21060
21061SWIGINTERN PyObject *ListbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21062 return SWIG_Python_InitShadowInstance(args);
21063}
21064
21065SWIGINTERN PyObject *_wrap_new_Choicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21066 PyObject *resultobj = 0;
21067 wxWindow *arg1 = (wxWindow *) 0 ;
21068 int arg2 ;
21069 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21070 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21071 wxSize const &arg4_defvalue = wxDefaultSize ;
21072 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21073 long arg5 = (long) 0 ;
21074 wxString const &arg6_defvalue = wxPyEmptyString ;
21075 wxString *arg6 = (wxString *) &arg6_defvalue ;
21076 wxChoicebook *result = 0 ;
21077 void *argp1 = 0 ;
21078 int res1 = 0 ;
21079 int val2 ;
21080 int ecode2 = 0 ;
21081 wxPoint temp3 ;
21082 wxSize temp4 ;
21083 long val5 ;
21084 int ecode5 = 0 ;
21085 bool temp6 = false ;
21086 PyObject * obj0 = 0 ;
21087 PyObject * obj1 = 0 ;
21088 PyObject * obj2 = 0 ;
21089 PyObject * obj3 = 0 ;
21090 PyObject * obj4 = 0 ;
21091 PyObject * obj5 = 0 ;
21092 char * kwnames[] = {
21093 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21094 };
21095
21096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21098 if (!SWIG_IsOK(res1)) {
21099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choicebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21100 }
21101 arg1 = reinterpret_cast< wxWindow * >(argp1);
21102 ecode2 = SWIG_AsVal_int(obj1, &val2);
21103 if (!SWIG_IsOK(ecode2)) {
21104 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choicebook" "', expected argument " "2"" of type '" "int""'");
21105 }
21106 arg2 = static_cast< int >(val2);
21107 if (obj2) {
d14a1e28 21108 {
0085ce49
RD
21109 arg3 = &temp3;
21110 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 21111 }
0085ce49
RD
21112 }
21113 if (obj3) {
d14a1e28 21114 {
0085ce49
RD
21115 arg4 = &temp4;
21116 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 21117 }
0085ce49
RD
21118 }
21119 if (obj4) {
21120 ecode5 = SWIG_AsVal_long(obj4, &val5);
21121 if (!SWIG_IsOK(ecode5)) {
21122 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Choicebook" "', expected argument " "5"" of type '" "long""'");
21123 }
21124 arg5 = static_cast< long >(val5);
21125 }
21126 if (obj5) {
d14a1e28 21127 {
0085ce49
RD
21128 arg6 = wxString_in_helper(obj5);
21129 if (arg6 == NULL) SWIG_fail;
21130 temp6 = true;
d14a1e28 21131 }
0085ce49
RD
21132 }
21133 {
21134 if (!wxPyCheckForApp()) SWIG_fail;
21135 PyThreadState* __tstate = wxPyBeginAllowThreads();
21136 result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21137 wxPyEndAllowThreads(__tstate);
21138 if (PyErr_Occurred()) SWIG_fail;
21139 }
21140 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_NEW | 0 );
21141 {
21142 if (temp6)
21143 delete arg6;
21144 }
21145 return resultobj;
21146fail:
21147 {
21148 if (temp6)
21149 delete arg6;
21150 }
21151 return NULL;
d14a1e28
RD
21152}
21153
21154
0085ce49
RD
21155SWIGINTERN PyObject *_wrap_new_PreChoicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21156 PyObject *resultobj = 0;
21157 wxChoicebook *result = 0 ;
21158
21159 if (!SWIG_Python_UnpackTuple(args,"new_PreChoicebook",0,0,0)) SWIG_fail;
21160 {
21161 if (!wxPyCheckForApp()) SWIG_fail;
21162 PyThreadState* __tstate = wxPyBeginAllowThreads();
21163 result = (wxChoicebook *)new wxChoicebook();
21164 wxPyEndAllowThreads(__tstate);
21165 if (PyErr_Occurred()) SWIG_fail;
21166 }
21167 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_OWN | 0 );
21168 return resultobj;
21169fail:
21170 return NULL;
21171}
21172
21173
21174SWIGINTERN PyObject *_wrap_Choicebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21175 PyObject *resultobj = 0;
21176 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21177 wxWindow *arg2 = (wxWindow *) 0 ;
21178 int arg3 ;
21179 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21180 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21181 wxSize const &arg5_defvalue = wxDefaultSize ;
21182 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21183 long arg6 = (long) 0 ;
21184 wxString const &arg7_defvalue = wxPyEmptyString ;
21185 wxString *arg7 = (wxString *) &arg7_defvalue ;
21186 bool result;
21187 void *argp1 = 0 ;
21188 int res1 = 0 ;
21189 void *argp2 = 0 ;
21190 int res2 = 0 ;
21191 int val3 ;
21192 int ecode3 = 0 ;
21193 wxPoint temp4 ;
21194 wxSize temp5 ;
21195 long val6 ;
21196 int ecode6 = 0 ;
21197 bool temp7 = false ;
21198 PyObject * obj0 = 0 ;
21199 PyObject * obj1 = 0 ;
21200 PyObject * obj2 = 0 ;
21201 PyObject * obj3 = 0 ;
21202 PyObject * obj4 = 0 ;
21203 PyObject * obj5 = 0 ;
21204 PyObject * obj6 = 0 ;
21205 char * kwnames[] = {
21206 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21207 };
21208
21209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21211 if (!SWIG_IsOK(res1)) {
21212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_Create" "', expected argument " "1"" of type '" "wxChoicebook *""'");
21213 }
21214 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21215 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21216 if (!SWIG_IsOK(res2)) {
21217 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choicebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21218 }
21219 arg2 = reinterpret_cast< wxWindow * >(argp2);
21220 ecode3 = SWIG_AsVal_int(obj2, &val3);
21221 if (!SWIG_IsOK(ecode3)) {
21222 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choicebook_Create" "', expected argument " "3"" of type '" "int""'");
21223 }
21224 arg3 = static_cast< int >(val3);
21225 if (obj3) {
4f89f6a3 21226 {
0085ce49
RD
21227 arg4 = &temp4;
21228 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 21229 }
0085ce49
RD
21230 }
21231 if (obj4) {
d14a1e28 21232 {
0085ce49
RD
21233 arg5 = &temp5;
21234 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 21235 }
0085ce49
RD
21236 }
21237 if (obj5) {
21238 ecode6 = SWIG_AsVal_long(obj5, &val6);
21239 if (!SWIG_IsOK(ecode6)) {
21240 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Choicebook_Create" "', expected argument " "6"" of type '" "long""'");
21241 }
21242 arg6 = static_cast< long >(val6);
21243 }
21244 if (obj6) {
d14a1e28 21245 {
0085ce49
RD
21246 arg7 = wxString_in_helper(obj6);
21247 if (arg7 == NULL) SWIG_fail;
21248 temp7 = true;
d14a1e28 21249 }
0085ce49
RD
21250 }
21251 {
21252 PyThreadState* __tstate = wxPyBeginAllowThreads();
21253 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21254 wxPyEndAllowThreads(__tstate);
21255 if (PyErr_Occurred()) SWIG_fail;
21256 }
21257 {
21258 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21259 }
21260 {
21261 if (temp7)
21262 delete arg7;
21263 }
21264 return resultobj;
21265fail:
21266 {
21267 if (temp7)
21268 delete arg7;
21269 }
21270 return NULL;
d14a1e28
RD
21271}
21272
21273
0085ce49
RD
21274SWIGINTERN PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21275 PyObject *resultobj = 0;
21276 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21277 wxChoice *result = 0 ;
21278 void *argp1 = 0 ;
21279 int res1 = 0 ;
21280 PyObject *swig_obj[1] ;
21281
21282 if (!args) SWIG_fail;
21283 swig_obj[0] = args;
21284 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21285 if (!SWIG_IsOK(res1)) {
21286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_GetChoiceCtrl" "', expected argument " "1"" of type '" "wxChoicebook const *""'");
21287 }
21288 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21289 {
21290 PyThreadState* __tstate = wxPyBeginAllowThreads();
21291 result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl();
21292 wxPyEndAllowThreads(__tstate);
21293 if (PyErr_Occurred()) SWIG_fail;
21294 }
21295 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, 0 | 0 );
21296 return resultobj;
21297fail:
21298 return NULL;
21299}
21300
21301
21302SWIGINTERN PyObject *Choicebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21303 PyObject *obj;
21304 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21305 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebook, SWIG_NewClientData(obj));
21306 return SWIG_Py_Void();
21307}
21308
21309SWIGINTERN PyObject *Choicebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21310 return SWIG_Python_InitShadowInstance(args);
21311}
21312
21313SWIGINTERN PyObject *_wrap_new_ChoicebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21314 PyObject *resultobj = 0;
21315 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21316 int arg2 = (int) 0 ;
21317 int arg3 = (int) -1 ;
21318 int arg4 = (int) -1 ;
21319 wxChoicebookEvent *result = 0 ;
21320 int val1 ;
21321 int ecode1 = 0 ;
21322 int val2 ;
21323 int ecode2 = 0 ;
21324 int val3 ;
21325 int ecode3 = 0 ;
21326 int val4 ;
21327 int ecode4 = 0 ;
21328 PyObject * obj0 = 0 ;
21329 PyObject * obj1 = 0 ;
21330 PyObject * obj2 = 0 ;
21331 PyObject * obj3 = 0 ;
21332 char * kwnames[] = {
21333 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21334 };
21335
21336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21337 if (obj0) {
21338 ecode1 = SWIG_AsVal_int(obj0, &val1);
21339 if (!SWIG_IsOK(ecode1)) {
21340 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ChoicebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21341 }
21342 arg1 = static_cast< wxEventType >(val1);
21343 }
21344 if (obj1) {
21345 ecode2 = SWIG_AsVal_int(obj1, &val2);
21346 if (!SWIG_IsOK(ecode2)) {
21347 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ChoicebookEvent" "', expected argument " "2"" of type '" "int""'");
21348 }
21349 arg2 = static_cast< int >(val2);
21350 }
21351 if (obj2) {
21352 ecode3 = SWIG_AsVal_int(obj2, &val3);
21353 if (!SWIG_IsOK(ecode3)) {
21354 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ChoicebookEvent" "', expected argument " "3"" of type '" "int""'");
21355 }
21356 arg3 = static_cast< int >(val3);
21357 }
21358 if (obj3) {
21359 ecode4 = SWIG_AsVal_int(obj3, &val4);
21360 if (!SWIG_IsOK(ecode4)) {
21361 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ChoicebookEvent" "', expected argument " "4"" of type '" "int""'");
21362 }
21363 arg4 = static_cast< int >(val4);
21364 }
21365 {
21366 PyThreadState* __tstate = wxPyBeginAllowThreads();
21367 result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4);
21368 wxPyEndAllowThreads(__tstate);
21369 if (PyErr_Occurred()) SWIG_fail;
21370 }
21371 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebookEvent, SWIG_POINTER_NEW | 0 );
21372 return resultobj;
21373fail:
21374 return NULL;
21375}
21376
21377
21378SWIGINTERN PyObject *ChoicebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21379 PyObject *obj;
21380 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21381 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebookEvent, SWIG_NewClientData(obj));
21382 return SWIG_Py_Void();
21383}
21384
21385SWIGINTERN PyObject *ChoicebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21386 return SWIG_Python_InitShadowInstance(args);
21387}
21388
21389SWIGINTERN PyObject *_wrap_new_Treebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21390 PyObject *resultobj = 0;
21391 wxWindow *arg1 = (wxWindow *) 0 ;
21392 int arg2 ;
21393 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21394 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21395 wxSize const &arg4_defvalue = wxDefaultSize ;
21396 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21397 long arg5 = (long) wxBK_DEFAULT ;
21398 wxString const &arg6_defvalue = wxPyEmptyString ;
21399 wxString *arg6 = (wxString *) &arg6_defvalue ;
21400 wxTreebook *result = 0 ;
21401 void *argp1 = 0 ;
21402 int res1 = 0 ;
21403 int val2 ;
21404 int ecode2 = 0 ;
21405 wxPoint temp3 ;
21406 wxSize temp4 ;
21407 long val5 ;
21408 int ecode5 = 0 ;
21409 bool temp6 = false ;
21410 PyObject * obj0 = 0 ;
21411 PyObject * obj1 = 0 ;
21412 PyObject * obj2 = 0 ;
21413 PyObject * obj3 = 0 ;
21414 PyObject * obj4 = 0 ;
21415 PyObject * obj5 = 0 ;
21416 char * kwnames[] = {
21417 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21418 };
21419
21420 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Treebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21421 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21422 if (!SWIG_IsOK(res1)) {
21423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Treebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21424 }
21425 arg1 = reinterpret_cast< wxWindow * >(argp1);
21426 ecode2 = SWIG_AsVal_int(obj1, &val2);
21427 if (!SWIG_IsOK(ecode2)) {
21428 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Treebook" "', expected argument " "2"" of type '" "int""'");
21429 }
21430 arg2 = static_cast< int >(val2);
21431 if (obj2) {
093d3ff1 21432 {
0085ce49
RD
21433 arg3 = &temp3;
21434 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 21435 }
0085ce49
RD
21436 }
21437 if (obj3) {
d14a1e28 21438 {
0085ce49
RD
21439 arg4 = &temp4;
21440 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 21441 }
0085ce49
RD
21442 }
21443 if (obj4) {
21444 ecode5 = SWIG_AsVal_long(obj4, &val5);
21445 if (!SWIG_IsOK(ecode5)) {
21446 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Treebook" "', expected argument " "5"" of type '" "long""'");
21447 }
21448 arg5 = static_cast< long >(val5);
21449 }
21450 if (obj5) {
093d3ff1 21451 {
0085ce49
RD
21452 arg6 = wxString_in_helper(obj5);
21453 if (arg6 == NULL) SWIG_fail;
21454 temp6 = true;
093d3ff1 21455 }
0085ce49
RD
21456 }
21457 {
21458 if (!wxPyCheckForApp()) SWIG_fail;
21459 PyThreadState* __tstate = wxPyBeginAllowThreads();
21460 result = (wxTreebook *)new wxTreebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21461 wxPyEndAllowThreads(__tstate);
21462 if (PyErr_Occurred()) SWIG_fail;
21463 }
21464 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_NEW | 0 );
21465 {
21466 if (temp6)
21467 delete arg6;
21468 }
21469 return resultobj;
21470fail:
21471 {
21472 if (temp6)
21473 delete arg6;
21474 }
21475 return NULL;
d14a1e28
RD
21476}
21477
21478
0085ce49
RD
21479SWIGINTERN PyObject *_wrap_new_PreTreebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21480 PyObject *resultobj = 0;
21481 wxTreebook *result = 0 ;
21482
21483 if (!SWIG_Python_UnpackTuple(args,"new_PreTreebook",0,0,0)) SWIG_fail;
21484 {
21485 if (!wxPyCheckForApp()) SWIG_fail;
21486 PyThreadState* __tstate = wxPyBeginAllowThreads();
21487 result = (wxTreebook *)new wxTreebook();
21488 wxPyEndAllowThreads(__tstate);
21489 if (PyErr_Occurred()) SWIG_fail;
21490 }
21491 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_OWN | 0 );
21492 return resultobj;
21493fail:
21494 return NULL;
21495}
21496
21497
21498SWIGINTERN PyObject *_wrap_Treebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21499 PyObject *resultobj = 0;
21500 wxTreebook *arg1 = (wxTreebook *) 0 ;
21501 wxWindow *arg2 = (wxWindow *) 0 ;
21502 int arg3 ;
21503 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21504 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21505 wxSize const &arg5_defvalue = wxDefaultSize ;
21506 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21507 long arg6 = (long) wxBK_DEFAULT ;
21508 wxString const &arg7_defvalue = wxPyEmptyString ;
21509 wxString *arg7 = (wxString *) &arg7_defvalue ;
21510 bool result;
21511 void *argp1 = 0 ;
21512 int res1 = 0 ;
21513 void *argp2 = 0 ;
21514 int res2 = 0 ;
21515 int val3 ;
21516 int ecode3 = 0 ;
21517 wxPoint temp4 ;
21518 wxSize temp5 ;
21519 long val6 ;
21520 int ecode6 = 0 ;
21521 bool temp7 = false ;
21522 PyObject * obj0 = 0 ;
21523 PyObject * obj1 = 0 ;
21524 PyObject * obj2 = 0 ;
21525 PyObject * obj3 = 0 ;
21526 PyObject * obj4 = 0 ;
21527 PyObject * obj5 = 0 ;
21528 PyObject * obj6 = 0 ;
21529 char * kwnames[] = {
21530 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21531 };
21532
21533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Treebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21535 if (!SWIG_IsOK(res1)) {
21536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_Create" "', expected argument " "1"" of type '" "wxTreebook *""'");
21537 }
21538 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21539 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21540 if (!SWIG_IsOK(res2)) {
21541 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21542 }
21543 arg2 = reinterpret_cast< wxWindow * >(argp2);
21544 ecode3 = SWIG_AsVal_int(obj2, &val3);
21545 if (!SWIG_IsOK(ecode3)) {
21546 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_Create" "', expected argument " "3"" of type '" "int""'");
21547 }
21548 arg3 = static_cast< int >(val3);
21549 if (obj3) {
d14a1e28 21550 {
0085ce49
RD
21551 arg4 = &temp4;
21552 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 21553 }
0085ce49
RD
21554 }
21555 if (obj4) {
093d3ff1 21556 {
0085ce49
RD
21557 arg5 = &temp5;
21558 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 21559 }
0085ce49
RD
21560 }
21561 if (obj5) {
21562 ecode6 = SWIG_AsVal_long(obj5, &val6);
21563 if (!SWIG_IsOK(ecode6)) {
21564 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_Create" "', expected argument " "6"" of type '" "long""'");
21565 }
21566 arg6 = static_cast< long >(val6);
21567 }
21568 if (obj6) {
093d3ff1 21569 {
0085ce49
RD
21570 arg7 = wxString_in_helper(obj6);
21571 if (arg7 == NULL) SWIG_fail;
21572 temp7 = true;
093d3ff1 21573 }
0085ce49
RD
21574 }
21575 {
21576 PyThreadState* __tstate = wxPyBeginAllowThreads();
21577 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21578 wxPyEndAllowThreads(__tstate);
21579 if (PyErr_Occurred()) SWIG_fail;
21580 }
21581 {
21582 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21583 }
21584 {
21585 if (temp7)
21586 delete arg7;
21587 }
21588 return resultobj;
21589fail:
21590 {
21591 if (temp7)
21592 delete arg7;
21593 }
21594 return NULL;
21595}
21596
21597
21598SWIGINTERN PyObject *_wrap_Treebook_InsertSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21599 PyObject *resultobj = 0;
21600 wxTreebook *arg1 = (wxTreebook *) 0 ;
21601 size_t arg2 ;
21602 wxWindow *arg3 = (wxWindow *) 0 ;
21603 wxString *arg4 = 0 ;
21604 bool arg5 = (bool) false ;
21605 int arg6 = (int) wxNOT_FOUND ;
21606 bool result;
21607 void *argp1 = 0 ;
21608 int res1 = 0 ;
21609 size_t val2 ;
21610 int ecode2 = 0 ;
21611 void *argp3 = 0 ;
21612 int res3 = 0 ;
21613 bool temp4 = false ;
21614 bool val5 ;
21615 int ecode5 = 0 ;
21616 int val6 ;
21617 int ecode6 = 0 ;
21618 PyObject * obj0 = 0 ;
21619 PyObject * obj1 = 0 ;
21620 PyObject * obj2 = 0 ;
21621 PyObject * obj3 = 0 ;
21622 PyObject * obj4 = 0 ;
21623 PyObject * obj5 = 0 ;
21624 char * kwnames[] = {
21625 (char *) "self",(char *) "pos",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21626 };
21627
21628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Treebook_InsertSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21630 if (!SWIG_IsOK(res1)) {
21631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_InsertSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21632 }
21633 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21634 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21635 if (!SWIG_IsOK(ecode2)) {
21636 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_InsertSubPage" "', expected argument " "2"" of type '" "size_t""'");
21637 }
21638 arg2 = static_cast< size_t >(val2);
21639 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
21640 if (!SWIG_IsOK(res3)) {
21641 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Treebook_InsertSubPage" "', expected argument " "3"" of type '" "wxWindow *""'");
21642 }
21643 arg3 = reinterpret_cast< wxWindow * >(argp3);
21644 {
21645 arg4 = wxString_in_helper(obj3);
21646 if (arg4 == NULL) SWIG_fail;
21647 temp4 = true;
21648 }
21649 if (obj4) {
21650 ecode5 = SWIG_AsVal_bool(obj4, &val5);
21651 if (!SWIG_IsOK(ecode5)) {
21652 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_InsertSubPage" "', expected argument " "5"" of type '" "bool""'");
21653 }
21654 arg5 = static_cast< bool >(val5);
21655 }
21656 if (obj5) {
21657 ecode6 = SWIG_AsVal_int(obj5, &val6);
21658 if (!SWIG_IsOK(ecode6)) {
21659 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_InsertSubPage" "', expected argument " "6"" of type '" "int""'");
21660 }
21661 arg6 = static_cast< int >(val6);
21662 }
21663 {
21664 PyThreadState* __tstate = wxPyBeginAllowThreads();
21665 result = (bool)(arg1)->InsertSubPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
21666 wxPyEndAllowThreads(__tstate);
21667 if (PyErr_Occurred()) SWIG_fail;
21668 }
21669 {
21670 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21671 }
21672 {
21673 if (temp4)
21674 delete arg4;
21675 }
21676 return resultobj;
21677fail:
21678 {
21679 if (temp4)
21680 delete arg4;
21681 }
21682 return NULL;
21683}
21684
21685
21686SWIGINTERN PyObject *_wrap_Treebook_AddSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21687 PyObject *resultobj = 0;
21688 wxTreebook *arg1 = (wxTreebook *) 0 ;
21689 wxWindow *arg2 = (wxWindow *) 0 ;
21690 wxString *arg3 = 0 ;
21691 bool arg4 = (bool) false ;
21692 int arg5 = (int) wxNOT_FOUND ;
21693 bool result;
21694 void *argp1 = 0 ;
21695 int res1 = 0 ;
21696 void *argp2 = 0 ;
21697 int res2 = 0 ;
21698 bool temp3 = false ;
21699 bool val4 ;
21700 int ecode4 = 0 ;
21701 int val5 ;
21702 int ecode5 = 0 ;
21703 PyObject * obj0 = 0 ;
21704 PyObject * obj1 = 0 ;
21705 PyObject * obj2 = 0 ;
21706 PyObject * obj3 = 0 ;
21707 PyObject * obj4 = 0 ;
21708 char * kwnames[] = {
21709 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21710 };
21711
21712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Treebook_AddSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
21713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21714 if (!SWIG_IsOK(res1)) {
21715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_AddSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21716 }
21717 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21718 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21719 if (!SWIG_IsOK(res2)) {
21720 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_AddSubPage" "', expected argument " "2"" of type '" "wxWindow *""'");
21721 }
21722 arg2 = reinterpret_cast< wxWindow * >(argp2);
21723 {
21724 arg3 = wxString_in_helper(obj2);
21725 if (arg3 == NULL) SWIG_fail;
21726 temp3 = true;
21727 }
21728 if (obj3) {
21729 ecode4 = SWIG_AsVal_bool(obj3, &val4);
21730 if (!SWIG_IsOK(ecode4)) {
21731 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Treebook_AddSubPage" "', expected argument " "4"" of type '" "bool""'");
21732 }
21733 arg4 = static_cast< bool >(val4);
21734 }
21735 if (obj4) {
21736 ecode5 = SWIG_AsVal_int(obj4, &val5);
21737 if (!SWIG_IsOK(ecode5)) {
21738 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_AddSubPage" "', expected argument " "5"" of type '" "int""'");
21739 }
21740 arg5 = static_cast< int >(val5);
21741 }
21742 {
21743 PyThreadState* __tstate = wxPyBeginAllowThreads();
21744 result = (bool)(arg1)->AddSubPage(arg2,(wxString const &)*arg3,arg4,arg5);
21745 wxPyEndAllowThreads(__tstate);
21746 if (PyErr_Occurred()) SWIG_fail;
21747 }
21748 {
21749 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21750 }
21751 {
21752 if (temp3)
21753 delete arg3;
21754 }
21755 return resultobj;
21756fail:
21757 {
21758 if (temp3)
21759 delete arg3;
21760 }
21761 return NULL;
21762}
21763
21764
21765SWIGINTERN PyObject *_wrap_Treebook_IsNodeExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21766 PyObject *resultobj = 0;
21767 wxTreebook *arg1 = (wxTreebook *) 0 ;
21768 size_t arg2 ;
21769 bool result;
21770 void *argp1 = 0 ;
21771 int res1 = 0 ;
21772 size_t val2 ;
21773 int ecode2 = 0 ;
21774 PyObject * obj0 = 0 ;
21775 PyObject * obj1 = 0 ;
21776 char * kwnames[] = {
21777 (char *) "self",(char *) "pos", NULL
21778 };
21779
21780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_IsNodeExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
21781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21782 if (!SWIG_IsOK(res1)) {
21783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "1"" of type '" "wxTreebook const *""'");
21784 }
21785 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21786 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21787 if (!SWIG_IsOK(ecode2)) {
21788 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "2"" of type '" "size_t""'");
21789 }
21790 arg2 = static_cast< size_t >(val2);
21791 {
21792 PyThreadState* __tstate = wxPyBeginAllowThreads();
21793 result = (bool)((wxTreebook const *)arg1)->IsNodeExpanded(arg2);
21794 wxPyEndAllowThreads(__tstate);
21795 if (PyErr_Occurred()) SWIG_fail;
21796 }
21797 {
21798 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21799 }
21800 return resultobj;
21801fail:
21802 return NULL;
21803}
21804
21805
21806SWIGINTERN PyObject *_wrap_Treebook_ExpandNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21807 PyObject *resultobj = 0;
21808 wxTreebook *arg1 = (wxTreebook *) 0 ;
21809 size_t arg2 ;
21810 bool arg3 = (bool) true ;
21811 bool result;
21812 void *argp1 = 0 ;
21813 int res1 = 0 ;
21814 size_t val2 ;
21815 int ecode2 = 0 ;
21816 bool val3 ;
21817 int ecode3 = 0 ;
21818 PyObject * obj0 = 0 ;
21819 PyObject * obj1 = 0 ;
21820 PyObject * obj2 = 0 ;
21821 char * kwnames[] = {
21822 (char *) "self",(char *) "pos",(char *) "expand", NULL
21823 };
21824
21825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Treebook_ExpandNode",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21827 if (!SWIG_IsOK(res1)) {
21828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_ExpandNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
21829 }
21830 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21831 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21832 if (!SWIG_IsOK(ecode2)) {
21833 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_ExpandNode" "', expected argument " "2"" of type '" "size_t""'");
21834 }
21835 arg2 = static_cast< size_t >(val2);
21836 if (obj2) {
21837 ecode3 = SWIG_AsVal_bool(obj2, &val3);
21838 if (!SWIG_IsOK(ecode3)) {
21839 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_ExpandNode" "', expected argument " "3"" of type '" "bool""'");
21840 }
21841 arg3 = static_cast< bool >(val3);
21842 }
21843 {
21844 PyThreadState* __tstate = wxPyBeginAllowThreads();
21845 result = (bool)(arg1)->ExpandNode(arg2,arg3);
21846 wxPyEndAllowThreads(__tstate);
21847 if (PyErr_Occurred()) SWIG_fail;
21848 }
21849 {
21850 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21851 }
21852 return resultobj;
21853fail:
21854 return NULL;
21855}
21856
21857
21858SWIGINTERN PyObject *_wrap_Treebook_CollapseNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21859 PyObject *resultobj = 0;
21860 wxTreebook *arg1 = (wxTreebook *) 0 ;
21861 size_t arg2 ;
21862 bool result;
21863 void *argp1 = 0 ;
21864 int res1 = 0 ;
21865 size_t val2 ;
21866 int ecode2 = 0 ;
21867 PyObject * obj0 = 0 ;
21868 PyObject * obj1 = 0 ;
21869 char * kwnames[] = {
21870 (char *) "self",(char *) "pos", NULL
21871 };
21872
21873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_CollapseNode",kwnames,&obj0,&obj1)) SWIG_fail;
21874 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21875 if (!SWIG_IsOK(res1)) {
21876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_CollapseNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
21877 }
21878 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21879 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21880 if (!SWIG_IsOK(ecode2)) {
21881 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_CollapseNode" "', expected argument " "2"" of type '" "size_t""'");
21882 }
21883 arg2 = static_cast< size_t >(val2);
21884 {
21885 PyThreadState* __tstate = wxPyBeginAllowThreads();
21886 result = (bool)(arg1)->CollapseNode(arg2);
21887 wxPyEndAllowThreads(__tstate);
21888 if (PyErr_Occurred()) SWIG_fail;
21889 }
21890 {
21891 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21892 }
21893 return resultobj;
21894fail:
21895 return NULL;
21896}
21897
21898
21899SWIGINTERN PyObject *_wrap_Treebook_GetPageParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21900 PyObject *resultobj = 0;
21901 wxTreebook *arg1 = (wxTreebook *) 0 ;
21902 size_t arg2 ;
21903 int result;
21904 void *argp1 = 0 ;
21905 int res1 = 0 ;
21906 size_t val2 ;
21907 int ecode2 = 0 ;
21908 PyObject * obj0 = 0 ;
21909 PyObject * obj1 = 0 ;
21910 char * kwnames[] = {
21911 (char *) "self",(char *) "pos", NULL
21912 };
21913
21914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_GetPageParent",kwnames,&obj0,&obj1)) SWIG_fail;
21915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21916 if (!SWIG_IsOK(res1)) {
21917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetPageParent" "', expected argument " "1"" of type '" "wxTreebook const *""'");
21918 }
21919 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21920 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21921 if (!SWIG_IsOK(ecode2)) {
21922 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_GetPageParent" "', expected argument " "2"" of type '" "size_t""'");
21923 }
21924 arg2 = static_cast< size_t >(val2);
21925 {
21926 PyThreadState* __tstate = wxPyBeginAllowThreads();
21927 result = (int)((wxTreebook const *)arg1)->GetPageParent(arg2);
21928 wxPyEndAllowThreads(__tstate);
21929 if (PyErr_Occurred()) SWIG_fail;
21930 }
21931 resultobj = SWIG_From_int(static_cast< int >(result));
21932 return resultobj;
21933fail:
21934 return NULL;
d14a1e28
RD
21935}
21936
21937
0085ce49
RD
21938SWIGINTERN PyObject *_wrap_Treebook_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21939 PyObject *resultobj = 0;
21940 wxTreebook *arg1 = (wxTreebook *) 0 ;
21941 wxTreeCtrl *result = 0 ;
21942 void *argp1 = 0 ;
21943 int res1 = 0 ;
21944 PyObject *swig_obj[1] ;
21945
21946 if (!args) SWIG_fail;
21947 swig_obj[0] = args;
21948 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21949 if (!SWIG_IsOK(res1)) {
21950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetTreeCtrl" "', expected argument " "1"" of type '" "wxTreebook const *""'");
21951 }
21952 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21953 {
21954 PyThreadState* __tstate = wxPyBeginAllowThreads();
21955 result = (wxTreeCtrl *)((wxTreebook const *)arg1)->GetTreeCtrl();
21956 wxPyEndAllowThreads(__tstate);
21957 if (PyErr_Occurred()) SWIG_fail;
21958 }
21959 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeCtrl, 0 | 0 );
21960 return resultobj;
21961fail:
21962 return NULL;
21963}
21964
21965
21966SWIGINTERN PyObject *Treebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21967 PyObject *obj;
21968 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21969 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebook, SWIG_NewClientData(obj));
21970 return SWIG_Py_Void();
21971}
21972
21973SWIGINTERN PyObject *Treebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21974 return SWIG_Python_InitShadowInstance(args);
21975}
21976
21977SWIGINTERN PyObject *_wrap_new_TreebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21978 PyObject *resultobj = 0;
21979 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21980 int arg2 = (int) 0 ;
21981 int arg3 = (int) wxNOT_FOUND ;
21982 int arg4 = (int) wxNOT_FOUND ;
21983 wxTreebookEvent *result = 0 ;
21984 int val1 ;
21985 int ecode1 = 0 ;
21986 int val2 ;
21987 int ecode2 = 0 ;
21988 int val3 ;
21989 int ecode3 = 0 ;
21990 int val4 ;
21991 int ecode4 = 0 ;
21992 PyObject * obj0 = 0 ;
21993 PyObject * obj1 = 0 ;
21994 PyObject * obj2 = 0 ;
21995 PyObject * obj3 = 0 ;
21996 char * kwnames[] = {
21997 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21998 };
21999
22000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TreebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22001 if (obj0) {
22002 ecode1 = SWIG_AsVal_int(obj0, &val1);
22003 if (!SWIG_IsOK(ecode1)) {
22004 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22005 }
22006 arg1 = static_cast< wxEventType >(val1);
22007 }
22008 if (obj1) {
22009 ecode2 = SWIG_AsVal_int(obj1, &val2);
22010 if (!SWIG_IsOK(ecode2)) {
22011 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreebookEvent" "', expected argument " "2"" of type '" "int""'");
22012 }
22013 arg2 = static_cast< int >(val2);
22014 }
22015 if (obj2) {
22016 ecode3 = SWIG_AsVal_int(obj2, &val3);
22017 if (!SWIG_IsOK(ecode3)) {
22018 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TreebookEvent" "', expected argument " "3"" of type '" "int""'");
22019 }
22020 arg3 = static_cast< int >(val3);
22021 }
22022 if (obj3) {
22023 ecode4 = SWIG_AsVal_int(obj3, &val4);
22024 if (!SWIG_IsOK(ecode4)) {
22025 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TreebookEvent" "', expected argument " "4"" of type '" "int""'");
22026 }
22027 arg4 = static_cast< int >(val4);
22028 }
22029 {
22030 PyThreadState* __tstate = wxPyBeginAllowThreads();
22031 result = (wxTreebookEvent *)new wxTreebookEvent(arg1,arg2,arg3,arg4);
22032 wxPyEndAllowThreads(__tstate);
22033 if (PyErr_Occurred()) SWIG_fail;
22034 }
22035 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebookEvent, SWIG_POINTER_NEW | 0 );
22036 return resultobj;
22037fail:
22038 return NULL;
22039}
22040
22041
22042SWIGINTERN PyObject *TreebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22043 PyObject *obj;
22044 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22045 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebookEvent, SWIG_NewClientData(obj));
22046 return SWIG_Py_Void();
22047}
22048
22049SWIGINTERN PyObject *TreebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22050 return SWIG_Python_InitShadowInstance(args);
22051}
22052
22053SWIGINTERN PyObject *_wrap_new_Toolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22054 PyObject *resultobj = 0;
22055 wxWindow *arg1 = (wxWindow *) 0 ;
22056 int arg2 ;
22057 wxPoint const &arg3_defvalue = wxDefaultPosition ;
22058 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
22059 wxSize const &arg4_defvalue = wxDefaultSize ;
22060 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
22061 long arg5 = (long) wxBK_DEFAULT ;
22062 wxString const &arg6_defvalue = wxPyEmptyString ;
22063 wxString *arg6 = (wxString *) &arg6_defvalue ;
22064 wxToolbook *result = 0 ;
22065 void *argp1 = 0 ;
22066 int res1 = 0 ;
22067 int val2 ;
22068 int ecode2 = 0 ;
22069 wxPoint temp3 ;
22070 wxSize temp4 ;
22071 long val5 ;
22072 int ecode5 = 0 ;
22073 bool temp6 = false ;
22074 PyObject * obj0 = 0 ;
22075 PyObject * obj1 = 0 ;
22076 PyObject * obj2 = 0 ;
22077 PyObject * obj3 = 0 ;
22078 PyObject * obj4 = 0 ;
22079 PyObject * obj5 = 0 ;
22080 char * kwnames[] = {
22081 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22082 };
22083
22084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Toolbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
22086 if (!SWIG_IsOK(res1)) {
22087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Toolbook" "', expected argument " "1"" of type '" "wxWindow *""'");
22088 }
22089 arg1 = reinterpret_cast< wxWindow * >(argp1);
22090 ecode2 = SWIG_AsVal_int(obj1, &val2);
22091 if (!SWIG_IsOK(ecode2)) {
22092 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Toolbook" "', expected argument " "2"" of type '" "int""'");
22093 }
22094 arg2 = static_cast< int >(val2);
22095 if (obj2) {
d14a1e28 22096 {
0085ce49
RD
22097 arg3 = &temp3;
22098 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 22099 }
0085ce49
RD
22100 }
22101 if (obj3) {
093d3ff1 22102 {
0085ce49
RD
22103 arg4 = &temp4;
22104 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 22105 }
0085ce49
RD
22106 }
22107 if (obj4) {
22108 ecode5 = SWIG_AsVal_long(obj4, &val5);
22109 if (!SWIG_IsOK(ecode5)) {
22110 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Toolbook" "', expected argument " "5"" of type '" "long""'");
22111 }
22112 arg5 = static_cast< long >(val5);
22113 }
22114 if (obj5) {
d14a1e28 22115 {
0085ce49
RD
22116 arg6 = wxString_in_helper(obj5);
22117 if (arg6 == NULL) SWIG_fail;
22118 temp6 = true;
d14a1e28 22119 }
0085ce49
RD
22120 }
22121 {
22122 PyThreadState* __tstate = wxPyBeginAllowThreads();
22123 result = (wxToolbook *)new wxToolbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
22124 wxPyEndAllowThreads(__tstate);
22125 if (PyErr_Occurred()) SWIG_fail;
22126 }
22127 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_NEW | 0 );
22128 {
22129 if (temp6)
22130 delete arg6;
22131 }
22132 return resultobj;
22133fail:
22134 {
22135 if (temp6)
22136 delete arg6;
22137 }
22138 return NULL;
d14a1e28
RD
22139}
22140
22141
0085ce49
RD
22142SWIGINTERN PyObject *_wrap_new_PreToolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22143 PyObject *resultobj = 0;
22144 wxToolbook *result = 0 ;
22145
22146 if (!SWIG_Python_UnpackTuple(args,"new_PreToolbook",0,0,0)) SWIG_fail;
22147 {
22148 PyThreadState* __tstate = wxPyBeginAllowThreads();
22149 result = (wxToolbook *)new wxToolbook();
22150 wxPyEndAllowThreads(__tstate);
22151 if (PyErr_Occurred()) SWIG_fail;
22152 }
22153 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_OWN | 0 );
22154 return resultobj;
22155fail:
22156 return NULL;
22157}
22158
22159
22160SWIGINTERN PyObject *_wrap_Toolbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22161 PyObject *resultobj = 0;
22162 wxToolbook *arg1 = (wxToolbook *) 0 ;
22163 wxWindow *arg2 = (wxWindow *) 0 ;
22164 int arg3 ;
22165 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22166 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22167 wxSize const &arg5_defvalue = wxDefaultSize ;
22168 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22169 long arg6 = (long) 0 ;
22170 wxString const &arg7_defvalue = wxEmptyString ;
22171 wxString *arg7 = (wxString *) &arg7_defvalue ;
22172 bool result;
22173 void *argp1 = 0 ;
22174 int res1 = 0 ;
22175 void *argp2 = 0 ;
22176 int res2 = 0 ;
22177 int val3 ;
22178 int ecode3 = 0 ;
22179 wxPoint temp4 ;
22180 wxSize temp5 ;
22181 long val6 ;
22182 int ecode6 = 0 ;
22183 bool temp7 = false ;
22184 PyObject * obj0 = 0 ;
22185 PyObject * obj1 = 0 ;
22186 PyObject * obj2 = 0 ;
22187 PyObject * obj3 = 0 ;
22188 PyObject * obj4 = 0 ;
22189 PyObject * obj5 = 0 ;
22190 PyObject * obj6 = 0 ;
22191 char * kwnames[] = {
22192 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22193 };
22194
22195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Toolbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22197 if (!SWIG_IsOK(res1)) {
22198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Create" "', expected argument " "1"" of type '" "wxToolbook *""'");
22199 }
22200 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22201 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22202 if (!SWIG_IsOK(res2)) {
22203 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Toolbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
22204 }
22205 arg2 = reinterpret_cast< wxWindow * >(argp2);
22206 ecode3 = SWIG_AsVal_int(obj2, &val3);
22207 if (!SWIG_IsOK(ecode3)) {
22208 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Toolbook_Create" "', expected argument " "3"" of type '" "int""'");
22209 }
22210 arg3 = static_cast< int >(val3);
22211 if (obj3) {
093d3ff1 22212 {
0085ce49
RD
22213 arg4 = &temp4;
22214 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 22215 }
0085ce49
RD
22216 }
22217 if (obj4) {
093d3ff1 22218 {
0085ce49
RD
22219 arg5 = &temp5;
22220 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 22221 }
0085ce49
RD
22222 }
22223 if (obj5) {
22224 ecode6 = SWIG_AsVal_long(obj5, &val6);
22225 if (!SWIG_IsOK(ecode6)) {
22226 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Toolbook_Create" "', expected argument " "6"" of type '" "long""'");
22227 }
22228 arg6 = static_cast< long >(val6);
22229 }
22230 if (obj6) {
994141e6 22231 {
0085ce49
RD
22232 arg7 = wxString_in_helper(obj6);
22233 if (arg7 == NULL) SWIG_fail;
22234 temp7 = true;
d14a1e28 22235 }
0085ce49
RD
22236 }
22237 {
22238 PyThreadState* __tstate = wxPyBeginAllowThreads();
22239 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22240 wxPyEndAllowThreads(__tstate);
22241 if (PyErr_Occurred()) SWIG_fail;
22242 }
22243 {
22244 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22245 }
22246 {
22247 if (temp7)
22248 delete arg7;
22249 }
22250 return resultobj;
22251fail:
22252 {
22253 if (temp7)
22254 delete arg7;
22255 }
22256 return NULL;
22bfe96c
RD
22257}
22258
22259
0085ce49
RD
22260SWIGINTERN PyObject *_wrap_Toolbook_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22261 PyObject *resultobj = 0;
22262 wxToolbook *arg1 = (wxToolbook *) 0 ;
22263 wxToolBarBase *result = 0 ;
22264 void *argp1 = 0 ;
22265 int res1 = 0 ;
22266 PyObject *swig_obj[1] ;
22267
22268 if (!args) SWIG_fail;
22269 swig_obj[0] = args;
22270 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22271 if (!SWIG_IsOK(res1)) {
22272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_GetToolBar" "', expected argument " "1"" of type '" "wxToolbook const *""'");
22273 }
22274 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22275 {
22276 PyThreadState* __tstate = wxPyBeginAllowThreads();
22277 result = (wxToolBarBase *)((wxToolbook const *)arg1)->GetToolBar();
22278 wxPyEndAllowThreads(__tstate);
22279 if (PyErr_Occurred()) SWIG_fail;
22280 }
22281 {
22282 resultobj = wxPyMake_wxObject(result, (bool)0);
22283 }
22284 return resultobj;
22285fail:
22286 return NULL;
d14a1e28
RD
22287}
22288
22289
0085ce49
RD
22290SWIGINTERN PyObject *_wrap_Toolbook_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22291 PyObject *resultobj = 0;
22292 wxToolbook *arg1 = (wxToolbook *) 0 ;
22293 void *argp1 = 0 ;
22294 int res1 = 0 ;
22295 PyObject *swig_obj[1] ;
22296
22297 if (!args) SWIG_fail;
22298 swig_obj[0] = args;
22299 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22300 if (!SWIG_IsOK(res1)) {
22301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Realize" "', expected argument " "1"" of type '" "wxToolbook *""'");
22302 }
22303 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22304 {
22305 PyThreadState* __tstate = wxPyBeginAllowThreads();
22306 (arg1)->Realize();
22307 wxPyEndAllowThreads(__tstate);
22308 if (PyErr_Occurred()) SWIG_fail;
22309 }
22310 resultobj = SWIG_Py_Void();
22311 return resultobj;
22312fail:
22313 return NULL;
22314}
22315
22316
22317SWIGINTERN PyObject *Toolbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22318 PyObject *obj;
22319 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22320 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbook, SWIG_NewClientData(obj));
22321 return SWIG_Py_Void();
22322}
22323
22324SWIGINTERN PyObject *Toolbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22325 return SWIG_Python_InitShadowInstance(args);
22326}
22327
22328SWIGINTERN PyObject *_wrap_new_ToolbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22329 PyObject *resultobj = 0;
22330 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22331 int arg2 = (int) 0 ;
22332 int arg3 = (int) wxNOT_FOUND ;
22333 int arg4 = (int) wxNOT_FOUND ;
22334 wxToolbookEvent *result = 0 ;
22335 int val1 ;
22336 int ecode1 = 0 ;
22337 int val2 ;
22338 int ecode2 = 0 ;
22339 int val3 ;
22340 int ecode3 = 0 ;
22341 int val4 ;
22342 int ecode4 = 0 ;
22343 PyObject * obj0 = 0 ;
22344 PyObject * obj1 = 0 ;
22345 PyObject * obj2 = 0 ;
22346 PyObject * obj3 = 0 ;
22347 char * kwnames[] = {
22348 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22349 };
22350
22351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ToolbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22352 if (obj0) {
22353 ecode1 = SWIG_AsVal_int(obj0, &val1);
22354 if (!SWIG_IsOK(ecode1)) {
22355 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ToolbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22356 }
22357 arg1 = static_cast< wxEventType >(val1);
22358 }
22359 if (obj1) {
22360 ecode2 = SWIG_AsVal_int(obj1, &val2);
22361 if (!SWIG_IsOK(ecode2)) {
22362 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolbookEvent" "', expected argument " "2"" of type '" "int""'");
22363 }
22364 arg2 = static_cast< int >(val2);
22365 }
22366 if (obj2) {
22367 ecode3 = SWIG_AsVal_int(obj2, &val3);
22368 if (!SWIG_IsOK(ecode3)) {
22369 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ToolbookEvent" "', expected argument " "3"" of type '" "int""'");
22370 }
22371 arg3 = static_cast< int >(val3);
22372 }
22373 if (obj3) {
22374 ecode4 = SWIG_AsVal_int(obj3, &val4);
22375 if (!SWIG_IsOK(ecode4)) {
22376 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ToolbookEvent" "', expected argument " "4"" of type '" "int""'");
22377 }
22378 arg4 = static_cast< int >(val4);
22379 }
22380 {
22381 PyThreadState* __tstate = wxPyBeginAllowThreads();
22382 result = (wxToolbookEvent *)new wxToolbookEvent(arg1,arg2,arg3,arg4);
22383 wxPyEndAllowThreads(__tstate);
22384 if (PyErr_Occurred()) SWIG_fail;
22385 }
22386 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbookEvent, SWIG_POINTER_NEW | 0 );
22387 return resultobj;
22388fail:
22389 return NULL;
d14a1e28
RD
22390}
22391
22392
0085ce49
RD
22393SWIGINTERN PyObject *ToolbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22394 PyObject *obj;
22395 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22396 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbookEvent, SWIG_NewClientData(obj));
22397 return SWIG_Py_Void();
d14a1e28
RD
22398}
22399
0085ce49
RD
22400SWIGINTERN PyObject *ToolbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22401 return SWIG_Python_InitShadowInstance(args);
22402}
d14a1e28 22403
0085ce49
RD
22404SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22405 PyObject *resultobj = 0;
22406 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22407 int result;
22408 void *argp1 = 0 ;
22409 int res1 = 0 ;
22410 PyObject *swig_obj[1] ;
22411
22412 if (!args) SWIG_fail;
22413 swig_obj[0] = args;
22414 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22415 if (!SWIG_IsOK(res1)) {
22416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetId" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22417 }
22418 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22419 {
22420 PyThreadState* __tstate = wxPyBeginAllowThreads();
22421 result = (int)(arg1)->GetId();
22422 wxPyEndAllowThreads(__tstate);
22423 if (PyErr_Occurred()) SWIG_fail;
22424 }
22425 resultobj = SWIG_From_int(static_cast< int >(result));
22426 return resultobj;
22427fail:
22428 return NULL;
d14a1e28
RD
22429}
22430
22431
0085ce49
RD
22432SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22433 PyObject *resultobj = 0;
22434 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22435 wxControl *result = 0 ;
22436 void *argp1 = 0 ;
22437 int res1 = 0 ;
22438 PyObject *swig_obj[1] ;
22439
22440 if (!args) SWIG_fail;
22441 swig_obj[0] = args;
22442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22443 if (!SWIG_IsOK(res1)) {
22444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22445 }
22446 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22447 {
22448 PyThreadState* __tstate = wxPyBeginAllowThreads();
22449 result = (wxControl *)(arg1)->GetControl();
22450 wxPyEndAllowThreads(__tstate);
22451 if (PyErr_Occurred()) SWIG_fail;
22452 }
22453 {
22454 resultobj = wxPyMake_wxObject(result, 0);
22455 }
22456 return resultobj;
22457fail:
22458 return NULL;
d14a1e28
RD
22459}
22460
22461
0085ce49
RD
22462SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22463 PyObject *resultobj = 0;
22464 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22465 wxToolBarBase *result = 0 ;
22466 void *argp1 = 0 ;
22467 int res1 = 0 ;
22468 PyObject *swig_obj[1] ;
22469
22470 if (!args) SWIG_fail;
22471 swig_obj[0] = args;
22472 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22473 if (!SWIG_IsOK(res1)) {
22474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetToolBar" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22475 }
22476 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22477 {
22478 PyThreadState* __tstate = wxPyBeginAllowThreads();
22479 result = (wxToolBarBase *)(arg1)->GetToolBar();
22480 wxPyEndAllowThreads(__tstate);
22481 if (PyErr_Occurred()) SWIG_fail;
22482 }
22483 {
22484 resultobj = wxPyMake_wxObject(result, (bool)0);
22485 }
22486 return resultobj;
22487fail:
22488 return NULL;
d14a1e28
RD
22489}
22490
22491
0085ce49
RD
22492SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22493 PyObject *resultobj = 0;
22494 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22495 int result;
22496 void *argp1 = 0 ;
22497 int res1 = 0 ;
22498 PyObject *swig_obj[1] ;
22499
22500 if (!args) SWIG_fail;
22501 swig_obj[0] = args;
22502 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22503 if (!SWIG_IsOK(res1)) {
22504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsButton" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22505 }
22506 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22507 {
22508 PyThreadState* __tstate = wxPyBeginAllowThreads();
22509 result = (int)(arg1)->IsButton();
22510 wxPyEndAllowThreads(__tstate);
22511 if (PyErr_Occurred()) SWIG_fail;
22512 }
22513 resultobj = SWIG_From_int(static_cast< int >(result));
22514 return resultobj;
22515fail:
22516 return NULL;
d14a1e28
RD
22517}
22518
22519
0085ce49
RD
22520SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22521 PyObject *resultobj = 0;
22522 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22523 int result;
22524 void *argp1 = 0 ;
22525 int res1 = 0 ;
22526 PyObject *swig_obj[1] ;
22527
22528 if (!args) SWIG_fail;
22529 swig_obj[0] = args;
22530 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22531 if (!SWIG_IsOK(res1)) {
22532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22533 }
22534 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22535 {
22536 PyThreadState* __tstate = wxPyBeginAllowThreads();
22537 result = (int)(arg1)->IsControl();
22538 wxPyEndAllowThreads(__tstate);
22539 if (PyErr_Occurred()) SWIG_fail;
22540 }
22541 resultobj = SWIG_From_int(static_cast< int >(result));
22542 return resultobj;
22543fail:
22544 return NULL;
d14a1e28
RD
22545}
22546
22547
0085ce49
RD
22548SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22549 PyObject *resultobj = 0;
22550 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22551 int result;
22552 void *argp1 = 0 ;
22553 int res1 = 0 ;
22554 PyObject *swig_obj[1] ;
22555
22556 if (!args) SWIG_fail;
22557 swig_obj[0] = args;
22558 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22559 if (!SWIG_IsOK(res1)) {
22560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsSeparator" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22561 }
22562 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22563 {
22564 PyThreadState* __tstate = wxPyBeginAllowThreads();
22565 result = (int)(arg1)->IsSeparator();
22566 wxPyEndAllowThreads(__tstate);
22567 if (PyErr_Occurred()) SWIG_fail;
22568 }
22569 resultobj = SWIG_From_int(static_cast< int >(result));
22570 return resultobj;
22571fail:
22572 return NULL;
d14a1e28
RD
22573}
22574
22575
0085ce49
RD
22576SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22577 PyObject *resultobj = 0;
22578 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22579 int result;
22580 void *argp1 = 0 ;
22581 int res1 = 0 ;
22582 PyObject *swig_obj[1] ;
22583
22584 if (!args) SWIG_fail;
22585 swig_obj[0] = args;
22586 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22587 if (!SWIG_IsOK(res1)) {
22588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetStyle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22589 }
22590 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22591 {
22592 PyThreadState* __tstate = wxPyBeginAllowThreads();
22593 result = (int)(arg1)->GetStyle();
22594 wxPyEndAllowThreads(__tstate);
22595 if (PyErr_Occurred()) SWIG_fail;
22596 }
22597 resultobj = SWIG_From_int(static_cast< int >(result));
22598 return resultobj;
22599fail:
22600 return NULL;
d14a1e28
RD
22601}
22602
22603
0085ce49
RD
22604SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22605 PyObject *resultobj = 0;
22606 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22607 wxItemKind result;
22608 void *argp1 = 0 ;
22609 int res1 = 0 ;
22610 PyObject *swig_obj[1] ;
22611
22612 if (!args) SWIG_fail;
22613 swig_obj[0] = args;
22614 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22615 if (!SWIG_IsOK(res1)) {
22616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetKind" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22617 }
22618 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22619 {
22620 PyThreadState* __tstate = wxPyBeginAllowThreads();
22621 result = (wxItemKind)(arg1)->GetKind();
22622 wxPyEndAllowThreads(__tstate);
22623 if (PyErr_Occurred()) SWIG_fail;
22624 }
22625 resultobj = SWIG_From_int(static_cast< int >(result));
22626 return resultobj;
22627fail:
22628 return NULL;
d14a1e28
RD
22629}
22630
22631
0085ce49
RD
22632SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22633 PyObject *resultobj = 0;
22634 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22635 bool result;
22636 void *argp1 = 0 ;
22637 int res1 = 0 ;
22638 PyObject *swig_obj[1] ;
22639
22640 if (!args) SWIG_fail;
22641 swig_obj[0] = args;
22642 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22643 if (!SWIG_IsOK(res1)) {
22644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsEnabled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22645 }
22646 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22647 {
22648 PyThreadState* __tstate = wxPyBeginAllowThreads();
22649 result = (bool)(arg1)->IsEnabled();
22650 wxPyEndAllowThreads(__tstate);
22651 if (PyErr_Occurred()) SWIG_fail;
22652 }
22653 {
22654 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22655 }
22656 return resultobj;
22657fail:
22658 return NULL;
d14a1e28
RD
22659}
22660
22661
0085ce49
RD
22662SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22663 PyObject *resultobj = 0;
22664 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22665 bool result;
22666 void *argp1 = 0 ;
22667 int res1 = 0 ;
22668 PyObject *swig_obj[1] ;
22669
22670 if (!args) SWIG_fail;
22671 swig_obj[0] = args;
22672 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22673 if (!SWIG_IsOK(res1)) {
22674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22675 }
22676 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22677 {
22678 PyThreadState* __tstate = wxPyBeginAllowThreads();
22679 result = (bool)(arg1)->IsToggled();
22680 wxPyEndAllowThreads(__tstate);
22681 if (PyErr_Occurred()) SWIG_fail;
22682 }
22683 {
22684 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22685 }
22686 return resultobj;
22687fail:
22688 return NULL;
22bfe96c
RD
22689}
22690
22691
0085ce49
RD
22692SWIGINTERN PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22693 PyObject *resultobj = 0;
22694 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22695 bool result;
22696 void *argp1 = 0 ;
22697 int res1 = 0 ;
22698 PyObject *swig_obj[1] ;
22699
22700 if (!args) SWIG_fail;
22701 swig_obj[0] = args;
22702 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22703 if (!SWIG_IsOK(res1)) {
22704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_CanBeToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22705 }
22706 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22707 {
22708 PyThreadState* __tstate = wxPyBeginAllowThreads();
22709 result = (bool)(arg1)->CanBeToggled();
22710 wxPyEndAllowThreads(__tstate);
22711 if (PyErr_Occurred()) SWIG_fail;
22712 }
22713 {
22714 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22715 }
22716 return resultobj;
22717fail:
22718 return NULL;
d1e20054
RD
22719}
22720
22721
0085ce49
RD
22722SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22723 PyObject *resultobj = 0;
22724 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22725 wxBitmap *result = 0 ;
22726 void *argp1 = 0 ;
22727 int res1 = 0 ;
22728 PyObject *swig_obj[1] ;
22729
22730 if (!args) SWIG_fail;
22731 swig_obj[0] = args;
22732 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22733 if (!SWIG_IsOK(res1)) {
22734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22735 }
22736 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22737 {
22738 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22739 {
0085ce49
RD
22740 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
22741 result = (wxBitmap *) &_result_ref;
093d3ff1 22742 }
0085ce49
RD
22743 wxPyEndAllowThreads(__tstate);
22744 if (PyErr_Occurred()) SWIG_fail;
22745 }
22746 {
22747 wxBitmap* resultptr = new wxBitmap(*result);
22748 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
22749 }
22750 return resultobj;
22751fail:
22752 return NULL;
d1e20054
RD
22753}
22754
22755
0085ce49
RD
22756SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22757 PyObject *resultobj = 0;
22758 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22759 wxBitmap *result = 0 ;
22760 void *argp1 = 0 ;
22761 int res1 = 0 ;
22762 PyObject *swig_obj[1] ;
22763
22764 if (!args) SWIG_fail;
22765 swig_obj[0] = args;
22766 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22767 if (!SWIG_IsOK(res1)) {
22768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22769 }
22770 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22771 {
22772 PyThreadState* __tstate = wxPyBeginAllowThreads();
d1e20054 22773 {
0085ce49
RD
22774 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
22775 result = (wxBitmap *) &_result_ref;
d1e20054 22776 }
0085ce49
RD
22777 wxPyEndAllowThreads(__tstate);
22778 if (PyErr_Occurred()) SWIG_fail;
22779 }
22780 {
22781 wxBitmap* resultptr = new wxBitmap(*result);
22782 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
22783 }
22784 return resultobj;
22785fail:
22786 return NULL;
d1e20054
RD
22787}
22788
22789
0085ce49
RD
22790SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22791 PyObject *resultobj = 0;
22792 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22793 wxBitmap result;
22794 void *argp1 = 0 ;
22795 int res1 = 0 ;
22796 PyObject *swig_obj[1] ;
22797
22798 if (!args) SWIG_fail;
22799 swig_obj[0] = args;
22800 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22801 if (!SWIG_IsOK(res1)) {
22802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22803 }
22804 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22805 {
22806 PyThreadState* __tstate = wxPyBeginAllowThreads();
22807 result = (arg1)->GetBitmap();
22808 wxPyEndAllowThreads(__tstate);
22809 if (PyErr_Occurred()) SWIG_fail;
22810 }
22811 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
22812 return resultobj;
22813fail:
22814 return NULL;
b2dc1044
RD
22815}
22816
22817
0085ce49
RD
22818SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22819 PyObject *resultobj = 0;
22820 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22821 wxString result;
22822 void *argp1 = 0 ;
22823 int res1 = 0 ;
22824 PyObject *swig_obj[1] ;
22825
22826 if (!args) SWIG_fail;
22827 swig_obj[0] = args;
22828 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22829 if (!SWIG_IsOK(res1)) {
22830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22831 }
22832 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22833 {
22834 PyThreadState* __tstate = wxPyBeginAllowThreads();
22835 result = (arg1)->GetLabel();
22836 wxPyEndAllowThreads(__tstate);
22837 if (PyErr_Occurred()) SWIG_fail;
22838 }
22839 {
b2dc1044 22840#if wxUSE_UNICODE
0085ce49 22841 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
b2dc1044 22842#else
0085ce49 22843 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
b2dc1044 22844#endif
0085ce49
RD
22845 }
22846 return resultobj;
22847fail:
22848 return NULL;
b2dc1044
RD
22849}
22850
22851
0085ce49
RD
22852SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22853 PyObject *resultobj = 0;
22854 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22855 wxString result;
22856 void *argp1 = 0 ;
22857 int res1 = 0 ;
22858 PyObject *swig_obj[1] ;
22859
22860 if (!args) SWIG_fail;
22861 swig_obj[0] = args;
22862 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22863 if (!SWIG_IsOK(res1)) {
22864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22865 }
22866 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22867 {
22868 PyThreadState* __tstate = wxPyBeginAllowThreads();
22869 result = (arg1)->GetShortHelp();
22870 wxPyEndAllowThreads(__tstate);
22871 if (PyErr_Occurred()) SWIG_fail;
22872 }
22873 {
b2dc1044 22874#if wxUSE_UNICODE
0085ce49 22875 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
b2dc1044 22876#else
0085ce49 22877 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
b2dc1044 22878#endif
0085ce49
RD
22879 }
22880 return resultobj;
22881fail:
22882 return NULL;
d14a1e28
RD
22883}
22884
22885
0085ce49
RD
22886SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22887 PyObject *resultobj = 0;
22888 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22889 wxString result;
22890 void *argp1 = 0 ;
22891 int res1 = 0 ;
22892 PyObject *swig_obj[1] ;
22893
22894 if (!args) SWIG_fail;
22895 swig_obj[0] = args;
22896 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22897 if (!SWIG_IsOK(res1)) {
22898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22899 }
22900 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22901 {
22902 PyThreadState* __tstate = wxPyBeginAllowThreads();
22903 result = (arg1)->GetLongHelp();
22904 wxPyEndAllowThreads(__tstate);
22905 if (PyErr_Occurred()) SWIG_fail;
22906 }
22907 {
22908#if wxUSE_UNICODE
22909 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22910#else
22911 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22912#endif
22913 }
22914 return resultobj;
22915fail:
22916 return NULL;
22917}
22918
22919
22920SWIGINTERN PyObject *_wrap_ToolBarToolBase_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22921 PyObject *resultobj = 0;
22922 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22923 bool arg2 ;
22924 bool result;
22925 void *argp1 = 0 ;
22926 int res1 = 0 ;
22927 bool val2 ;
22928 int ecode2 = 0 ;
22929 PyObject * obj0 = 0 ;
22930 PyObject * obj1 = 0 ;
22931 char * kwnames[] = {
22932 (char *) "self",(char *) "enable", NULL
22933 };
22934
22935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) SWIG_fail;
22936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22937 if (!SWIG_IsOK(res1)) {
22938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Enable" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22939 }
22940 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22941 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22942 if (!SWIG_IsOK(ecode2)) {
22943 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_Enable" "', expected argument " "2"" of type '" "bool""'");
22944 }
22945 arg2 = static_cast< bool >(val2);
22946 {
22947 PyThreadState* __tstate = wxPyBeginAllowThreads();
22948 result = (bool)(arg1)->Enable(arg2);
22949 wxPyEndAllowThreads(__tstate);
22950 if (PyErr_Occurred()) SWIG_fail;
22951 }
22952 {
22953 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22954 }
22955 return resultobj;
22956fail:
22957 return NULL;
d14a1e28
RD
22958}
22959
22960
0085ce49
RD
22961SWIGINTERN PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22962 PyObject *resultobj = 0;
22963 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22964 void *argp1 = 0 ;
22965 int res1 = 0 ;
22966 PyObject *swig_obj[1] ;
22967
22968 if (!args) SWIG_fail;
22969 swig_obj[0] = args;
22970 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22971 if (!SWIG_IsOK(res1)) {
22972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Toggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22973 }
22974 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22975 {
22976 PyThreadState* __tstate = wxPyBeginAllowThreads();
22977 (arg1)->Toggle();
22978 wxPyEndAllowThreads(__tstate);
22979 if (PyErr_Occurred()) SWIG_fail;
22980 }
22981 resultobj = SWIG_Py_Void();
22982 return resultobj;
22983fail:
22984 return NULL;
22985}
22986
22987
22988SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22989 PyObject *resultobj = 0;
22990 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22991 bool arg2 ;
22992 bool result;
22993 void *argp1 = 0 ;
22994 int res1 = 0 ;
22995 bool val2 ;
22996 int ecode2 = 0 ;
22997 PyObject * obj0 = 0 ;
22998 PyObject * obj1 = 0 ;
22999 char * kwnames[] = {
23000 (char *) "self",(char *) "toggle", NULL
23001 };
23002
23003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) SWIG_fail;
23004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23005 if (!SWIG_IsOK(res1)) {
23006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23007 }
23008 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23009 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23010 if (!SWIG_IsOK(ecode2)) {
23011 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "2"" of type '" "bool""'");
23012 }
23013 arg2 = static_cast< bool >(val2);
23014 {
23015 PyThreadState* __tstate = wxPyBeginAllowThreads();
23016 result = (bool)(arg1)->SetToggle(arg2);
23017 wxPyEndAllowThreads(__tstate);
23018 if (PyErr_Occurred()) SWIG_fail;
23019 }
23020 {
23021 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23022 }
23023 return resultobj;
23024fail:
23025 return NULL;
23026}
23027
23028
23029SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23030 PyObject *resultobj = 0;
23031 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23032 wxString *arg2 = 0 ;
23033 bool result;
23034 void *argp1 = 0 ;
23035 int res1 = 0 ;
23036 bool temp2 = false ;
23037 PyObject * obj0 = 0 ;
23038 PyObject * obj1 = 0 ;
23039 char * kwnames[] = {
23040 (char *) "self",(char *) "help", NULL
23041 };
23042
23043 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23044 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23045 if (!SWIG_IsOK(res1)) {
23046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23047 }
23048 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23049 {
23050 arg2 = wxString_in_helper(obj1);
23051 if (arg2 == NULL) SWIG_fail;
23052 temp2 = true;
23053 }
23054 {
23055 PyThreadState* __tstate = wxPyBeginAllowThreads();
23056 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
23057 wxPyEndAllowThreads(__tstate);
23058 if (PyErr_Occurred()) SWIG_fail;
23059 }
23060 {
23061 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23062 }
23063 {
23064 if (temp2)
23065 delete arg2;
23066 }
23067 return resultobj;
23068fail:
23069 {
23070 if (temp2)
23071 delete arg2;
23072 }
23073 return NULL;
23074}
23075
23076
23077SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23078 PyObject *resultobj = 0;
23079 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23080 wxString *arg2 = 0 ;
23081 bool result;
23082 void *argp1 = 0 ;
23083 int res1 = 0 ;
23084 bool temp2 = false ;
23085 PyObject * obj0 = 0 ;
23086 PyObject * obj1 = 0 ;
23087 char * kwnames[] = {
23088 (char *) "self",(char *) "help", NULL
23089 };
23090
23091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23093 if (!SWIG_IsOK(res1)) {
23094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23095 }
23096 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23097 {
23098 arg2 = wxString_in_helper(obj1);
23099 if (arg2 == NULL) SWIG_fail;
23100 temp2 = true;
23101 }
23102 {
23103 PyThreadState* __tstate = wxPyBeginAllowThreads();
23104 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
23105 wxPyEndAllowThreads(__tstate);
23106 if (PyErr_Occurred()) SWIG_fail;
23107 }
23108 {
23109 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23110 }
23111 {
23112 if (temp2)
23113 delete arg2;
23114 }
23115 return resultobj;
23116fail:
23117 {
23118 if (temp2)
23119 delete arg2;
23120 }
23121 return NULL;
23122}
23123
23124
23125SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23126 PyObject *resultobj = 0;
23127 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23128 wxBitmap *arg2 = 0 ;
23129 void *argp1 = 0 ;
23130 int res1 = 0 ;
23131 void *argp2 = 0 ;
23132 int res2 = 0 ;
23133 PyObject * obj0 = 0 ;
23134 PyObject * obj1 = 0 ;
23135 char * kwnames[] = {
23136 (char *) "self",(char *) "bmp", NULL
23137 };
23138
23139 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23140 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23141 if (!SWIG_IsOK(res1)) {
23142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23143 }
23144 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23145 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23146 if (!SWIG_IsOK(res2)) {
23147 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23148 }
23149 if (!argp2) {
23150 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23151 }
23152 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23153 {
23154 PyThreadState* __tstate = wxPyBeginAllowThreads();
23155 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
23156 wxPyEndAllowThreads(__tstate);
23157 if (PyErr_Occurred()) SWIG_fail;
23158 }
23159 resultobj = SWIG_Py_Void();
23160 return resultobj;
23161fail:
23162 return NULL;
23163}
23164
23165
23166SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23167 PyObject *resultobj = 0;
23168 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23169 wxBitmap *arg2 = 0 ;
23170 void *argp1 = 0 ;
23171 int res1 = 0 ;
23172 void *argp2 = 0 ;
23173 int res2 = 0 ;
23174 PyObject * obj0 = 0 ;
23175 PyObject * obj1 = 0 ;
23176 char * kwnames[] = {
23177 (char *) "self",(char *) "bmp", NULL
23178 };
23179
23180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23182 if (!SWIG_IsOK(res1)) {
23183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23184 }
23185 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23186 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23187 if (!SWIG_IsOK(res2)) {
23188 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23189 }
23190 if (!argp2) {
23191 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23192 }
23193 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23194 {
23195 PyThreadState* __tstate = wxPyBeginAllowThreads();
23196 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
23197 wxPyEndAllowThreads(__tstate);
23198 if (PyErr_Occurred()) SWIG_fail;
23199 }
23200 resultobj = SWIG_Py_Void();
23201 return resultobj;
23202fail:
23203 return NULL;
23204}
23205
23206
23207SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23208 PyObject *resultobj = 0;
23209 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23210 wxString *arg2 = 0 ;
23211 void *argp1 = 0 ;
23212 int res1 = 0 ;
23213 bool temp2 = false ;
23214 PyObject * obj0 = 0 ;
23215 PyObject * obj1 = 0 ;
23216 char * kwnames[] = {
23217 (char *) "self",(char *) "label", NULL
23218 };
23219
23220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
23221 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23222 if (!SWIG_IsOK(res1)) {
23223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23224 }
23225 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23226 {
23227 arg2 = wxString_in_helper(obj1);
23228 if (arg2 == NULL) SWIG_fail;
23229 temp2 = true;
23230 }
23231 {
23232 PyThreadState* __tstate = wxPyBeginAllowThreads();
23233 (arg1)->SetLabel((wxString const &)*arg2);
23234 wxPyEndAllowThreads(__tstate);
23235 if (PyErr_Occurred()) SWIG_fail;
23236 }
23237 resultobj = SWIG_Py_Void();
23238 {
23239 if (temp2)
23240 delete arg2;
23241 }
23242 return resultobj;
23243fail:
23244 {
23245 if (temp2)
23246 delete arg2;
23247 }
23248 return NULL;
d14a1e28
RD
23249}
23250
23251
0085ce49
RD
23252SWIGINTERN PyObject *_wrap_ToolBarToolBase_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23253 PyObject *resultobj = 0;
23254 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23255 void *argp1 = 0 ;
23256 int res1 = 0 ;
23257 PyObject *swig_obj[1] ;
23258
23259 if (!args) SWIG_fail;
23260 swig_obj[0] = args;
23261 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23262 if (!SWIG_IsOK(res1)) {
23263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Detach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23264 }
23265 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23266 {
23267 PyThreadState* __tstate = wxPyBeginAllowThreads();
23268 (arg1)->Detach();
23269 wxPyEndAllowThreads(__tstate);
23270 if (PyErr_Occurred()) SWIG_fail;
23271 }
23272 resultobj = SWIG_Py_Void();
23273 return resultobj;
23274fail:
23275 return NULL;
23276}
23277
23278
23279SWIGINTERN PyObject *_wrap_ToolBarToolBase_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23280 PyObject *resultobj = 0;
23281 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23282 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
23283 void *argp1 = 0 ;
23284 int res1 = 0 ;
23285 void *argp2 = 0 ;
23286 int res2 = 0 ;
23287 PyObject * obj0 = 0 ;
23288 PyObject * obj1 = 0 ;
23289 char * kwnames[] = {
23290 (char *) "self",(char *) "tbar", NULL
23291 };
23292
23293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) SWIG_fail;
23294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23295 if (!SWIG_IsOK(res1)) {
23296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Attach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23297 }
23298 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23299 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23300 if (!SWIG_IsOK(res2)) {
23301 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_Attach" "', expected argument " "2"" of type '" "wxToolBarBase *""'");
23302 }
23303 arg2 = reinterpret_cast< wxToolBarBase * >(argp2);
23304 {
23305 PyThreadState* __tstate = wxPyBeginAllowThreads();
23306 (arg1)->Attach(arg2);
23307 wxPyEndAllowThreads(__tstate);
23308 if (PyErr_Occurred()) SWIG_fail;
23309 }
23310 resultobj = SWIG_Py_Void();
23311 return resultobj;
23312fail:
23313 return NULL;
d14a1e28
RD
23314}
23315
23316
0085ce49
RD
23317SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23318 PyObject *resultobj = 0;
23319 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23320 PyObject *result = 0 ;
23321 void *argp1 = 0 ;
23322 int res1 = 0 ;
23323 PyObject *swig_obj[1] ;
23324
23325 if (!args) SWIG_fail;
23326 swig_obj[0] = args;
23327 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23328 if (!SWIG_IsOK(res1)) {
23329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23330 }
23331 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23332 {
23333 PyThreadState* __tstate = wxPyBeginAllowThreads();
23334 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
23335 wxPyEndAllowThreads(__tstate);
23336 if (PyErr_Occurred()) SWIG_fail;
23337 }
23338 resultobj = result;
23339 return resultobj;
23340fail:
23341 return NULL;
23342}
23343
23344
23345SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23346 PyObject *resultobj = 0;
23347 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23348 PyObject *arg2 = (PyObject *) 0 ;
23349 void *argp1 = 0 ;
23350 int res1 = 0 ;
23351 PyObject * obj0 = 0 ;
23352 PyObject * obj1 = 0 ;
23353 char * kwnames[] = {
23354 (char *) "self",(char *) "clientData", NULL
23355 };
23356
23357 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) SWIG_fail;
23358 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23359 if (!SWIG_IsOK(res1)) {
23360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23361 }
23362 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23363 arg2 = obj1;
23364 {
23365 PyThreadState* __tstate = wxPyBeginAllowThreads();
23366 wxToolBarToolBase_SetClientData(arg1,arg2);
23367 wxPyEndAllowThreads(__tstate);
23368 if (PyErr_Occurred()) SWIG_fail;
23369 }
23370 resultobj = SWIG_Py_Void();
23371 return resultobj;
23372fail:
23373 return NULL;
23374}
23375
23376
23377SWIGINTERN PyObject *ToolBarToolBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23378 PyObject *obj;
23379 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23380 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarToolBase, SWIG_NewClientData(obj));
23381 return SWIG_Py_Void();
23382}
23383
23384SWIGINTERN PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23385 PyObject *resultobj = 0;
23386 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23387 int arg2 ;
23388 wxString *arg3 = 0 ;
23389 wxBitmap *arg4 = 0 ;
23390 wxBitmap const &arg5_defvalue = wxNullBitmap ;
23391 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
23392 wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ;
23393 wxString const &arg7_defvalue = wxPyEmptyString ;
23394 wxString *arg7 = (wxString *) &arg7_defvalue ;
23395 wxString const &arg8_defvalue = wxPyEmptyString ;
23396 wxString *arg8 = (wxString *) &arg8_defvalue ;
23397 PyObject *arg9 = (PyObject *) NULL ;
23398 wxToolBarToolBase *result = 0 ;
23399 void *argp1 = 0 ;
23400 int res1 = 0 ;
23401 int val2 ;
23402 int ecode2 = 0 ;
23403 bool temp3 = false ;
23404 void *argp4 = 0 ;
23405 int res4 = 0 ;
23406 void *argp5 = 0 ;
23407 int res5 = 0 ;
23408 int val6 ;
23409 int ecode6 = 0 ;
23410 bool temp7 = false ;
23411 bool temp8 = false ;
23412 PyObject * obj0 = 0 ;
23413 PyObject * obj1 = 0 ;
23414 PyObject * obj2 = 0 ;
23415 PyObject * obj3 = 0 ;
23416 PyObject * obj4 = 0 ;
23417 PyObject * obj5 = 0 ;
23418 PyObject * obj6 = 0 ;
23419 PyObject * obj7 = 0 ;
23420 PyObject * obj8 = 0 ;
23421 char * kwnames[] = {
23422 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23423 };
23424
23425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
23426 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23427 if (!SWIG_IsOK(res1)) {
23428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23429 }
23430 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23431 ecode2 = SWIG_AsVal_int(obj1, &val2);
23432 if (!SWIG_IsOK(ecode2)) {
23433 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "2"" of type '" "int""'");
23434 }
23435 arg2 = static_cast< int >(val2);
23436 {
23437 arg3 = wxString_in_helper(obj2);
23438 if (arg3 == NULL) SWIG_fail;
23439 temp3 = true;
23440 }
23441 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
23442 if (!SWIG_IsOK(res4)) {
23443 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23444 }
23445 if (!argp4) {
23446 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23447 }
23448 arg4 = reinterpret_cast< wxBitmap * >(argp4);
23449 if (obj4) {
23450 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23451 if (!SWIG_IsOK(res5)) {
23452 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
d14a1e28 23453 }
0085ce49
RD
23454 if (!argp5) {
23455 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
d14a1e28 23456 }
0085ce49
RD
23457 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23458 }
23459 if (obj5) {
23460 ecode6 = SWIG_AsVal_int(obj5, &val6);
23461 if (!SWIG_IsOK(ecode6)) {
23462 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "6"" of type '" "wxItemKind""'");
23463 }
23464 arg6 = static_cast< wxItemKind >(val6);
23465 }
23466 if (obj6) {
093d3ff1 23467 {
0085ce49
RD
23468 arg7 = wxString_in_helper(obj6);
23469 if (arg7 == NULL) SWIG_fail;
23470 temp7 = true;
093d3ff1 23471 }
0085ce49
RD
23472 }
23473 if (obj7) {
d14a1e28 23474 {
0085ce49
RD
23475 arg8 = wxString_in_helper(obj7);
23476 if (arg8 == NULL) SWIG_fail;
23477 temp8 = true;
d14a1e28 23478 }
0085ce49
RD
23479 }
23480 if (obj8) {
23481 arg9 = obj8;
23482 }
23483 {
23484 PyThreadState* __tstate = wxPyBeginAllowThreads();
23485 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
23486 wxPyEndAllowThreads(__tstate);
23487 if (PyErr_Occurred()) SWIG_fail;
23488 }
23489 {
23490 resultobj = wxPyMake_wxObject(result, (bool)0);
23491 }
23492 {
23493 if (temp3)
23494 delete arg3;
23495 }
23496 {
23497 if (temp7)
23498 delete arg7;
23499 }
23500 {
23501 if (temp8)
23502 delete arg8;
23503 }
23504 return resultobj;
23505fail:
23506 {
23507 if (temp3)
23508 delete arg3;
23509 }
23510 {
23511 if (temp7)
23512 delete arg7;
23513 }
23514 {
23515 if (temp8)
23516 delete arg8;
23517 }
23518 return NULL;
23519}
23520
23521
23522SWIGINTERN PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23523 PyObject *resultobj = 0;
23524 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23525 size_t arg2 ;
23526 int arg3 ;
23527 wxString *arg4 = 0 ;
23528 wxBitmap *arg5 = 0 ;
23529 wxBitmap const &arg6_defvalue = wxNullBitmap ;
23530 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
23531 wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ;
23532 wxString const &arg8_defvalue = wxPyEmptyString ;
23533 wxString *arg8 = (wxString *) &arg8_defvalue ;
23534 wxString const &arg9_defvalue = wxPyEmptyString ;
23535 wxString *arg9 = (wxString *) &arg9_defvalue ;
23536 PyObject *arg10 = (PyObject *) NULL ;
23537 wxToolBarToolBase *result = 0 ;
23538 void *argp1 = 0 ;
23539 int res1 = 0 ;
23540 size_t val2 ;
23541 int ecode2 = 0 ;
23542 int val3 ;
23543 int ecode3 = 0 ;
23544 bool temp4 = false ;
23545 void *argp5 = 0 ;
23546 int res5 = 0 ;
23547 void *argp6 = 0 ;
23548 int res6 = 0 ;
23549 int val7 ;
23550 int ecode7 = 0 ;
23551 bool temp8 = false ;
23552 bool temp9 = false ;
23553 PyObject * obj0 = 0 ;
23554 PyObject * obj1 = 0 ;
23555 PyObject * obj2 = 0 ;
23556 PyObject * obj3 = 0 ;
23557 PyObject * obj4 = 0 ;
23558 PyObject * obj5 = 0 ;
23559 PyObject * obj6 = 0 ;
23560 PyObject * obj7 = 0 ;
23561 PyObject * obj8 = 0 ;
23562 PyObject * obj9 = 0 ;
23563 char * kwnames[] = {
23564 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23565 };
23566
23567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
23568 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23569 if (!SWIG_IsOK(res1)) {
23570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23571 }
23572 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23573 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23574 if (!SWIG_IsOK(ecode2)) {
23575 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "2"" of type '" "size_t""'");
23576 }
23577 arg2 = static_cast< size_t >(val2);
23578 ecode3 = SWIG_AsVal_int(obj2, &val3);
23579 if (!SWIG_IsOK(ecode3)) {
23580 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "3"" of type '" "int""'");
23581 }
23582 arg3 = static_cast< int >(val3);
23583 {
23584 arg4 = wxString_in_helper(obj3);
23585 if (arg4 == NULL) SWIG_fail;
23586 temp4 = true;
23587 }
23588 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23589 if (!SWIG_IsOK(res5)) {
23590 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23591 }
23592 if (!argp5) {
23593 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23594 }
23595 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23596 if (obj5) {
23597 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxBitmap, 0 | 0);
23598 if (!SWIG_IsOK(res6)) {
23599 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
d14a1e28 23600 }
0085ce49
RD
23601 if (!argp6) {
23602 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
093d3ff1 23603 }
0085ce49
RD
23604 arg6 = reinterpret_cast< wxBitmap * >(argp6);
23605 }
23606 if (obj6) {
23607 ecode7 = SWIG_AsVal_int(obj6, &val7);
23608 if (!SWIG_IsOK(ecode7)) {
23609 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "7"" of type '" "wxItemKind""'");
23610 }
23611 arg7 = static_cast< wxItemKind >(val7);
23612 }
23613 if (obj7) {
d14a1e28 23614 {
0085ce49
RD
23615 arg8 = wxString_in_helper(obj7);
23616 if (arg8 == NULL) SWIG_fail;
23617 temp8 = true;
d14a1e28 23618 }
0085ce49
RD
23619 }
23620 if (obj8) {
d14a1e28 23621 {
0085ce49
RD
23622 arg9 = wxString_in_helper(obj8);
23623 if (arg9 == NULL) SWIG_fail;
23624 temp9 = true;
d14a1e28 23625 }
0085ce49
RD
23626 }
23627 if (obj9) {
23628 arg10 = obj9;
23629 }
23630 {
23631 PyThreadState* __tstate = wxPyBeginAllowThreads();
23632 result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10);
23633 wxPyEndAllowThreads(__tstate);
23634 if (PyErr_Occurred()) SWIG_fail;
23635 }
23636 {
23637 resultobj = wxPyMake_wxObject(result, (bool)0);
23638 }
23639 {
23640 if (temp4)
23641 delete arg4;
23642 }
23643 {
23644 if (temp8)
23645 delete arg8;
23646 }
23647 {
23648 if (temp9)
23649 delete arg9;
23650 }
23651 return resultobj;
23652fail:
23653 {
23654 if (temp4)
23655 delete arg4;
23656 }
23657 {
23658 if (temp8)
23659 delete arg8;
23660 }
23661 {
23662 if (temp9)
23663 delete arg9;
23664 }
23665 return NULL;
23666}
23667
23668
23669SWIGINTERN PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23670 PyObject *resultobj = 0;
23671 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23672 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
23673 wxToolBarToolBase *result = 0 ;
23674 void *argp1 = 0 ;
23675 int res1 = 0 ;
23676 void *argp2 = 0 ;
23677 int res2 = 0 ;
23678 PyObject * obj0 = 0 ;
23679 PyObject * obj1 = 0 ;
23680 char * kwnames[] = {
23681 (char *) "self",(char *) "tool", NULL
23682 };
23683
23684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) SWIG_fail;
23685 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23686 if (!SWIG_IsOK(res1)) {
23687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23688 }
23689 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23690 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23691 if (!SWIG_IsOK(res2)) {
23692 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "2"" of type '" "wxToolBarToolBase *""'");
23693 }
23694 arg2 = reinterpret_cast< wxToolBarToolBase * >(argp2);
23695 {
23696 PyThreadState* __tstate = wxPyBeginAllowThreads();
23697 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
23698 wxPyEndAllowThreads(__tstate);
23699 if (PyErr_Occurred()) SWIG_fail;
23700 }
23701 {
23702 resultobj = wxPyMake_wxObject(result, (bool)0);
23703 }
23704 return resultobj;
23705fail:
23706 return NULL;
23707}
23708
23709
23710SWIGINTERN PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23711 PyObject *resultobj = 0;
23712 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23713 size_t arg2 ;
23714 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
23715 wxToolBarToolBase *result = 0 ;
23716 void *argp1 = 0 ;
23717 int res1 = 0 ;
23718 size_t val2 ;
23719 int ecode2 = 0 ;
23720 void *argp3 = 0 ;
23721 int res3 = 0 ;
23722 PyObject * obj0 = 0 ;
23723 PyObject * obj1 = 0 ;
23724 PyObject * obj2 = 0 ;
23725 char * kwnames[] = {
23726 (char *) "self",(char *) "pos",(char *) "tool", NULL
23727 };
23728
23729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23731 if (!SWIG_IsOK(res1)) {
23732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23733 }
23734 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23735 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23736 if (!SWIG_IsOK(ecode2)) {
23737 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "2"" of type '" "size_t""'");
23738 }
23739 arg2 = static_cast< size_t >(val2);
23740 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23741 if (!SWIG_IsOK(res3)) {
23742 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "3"" of type '" "wxToolBarToolBase *""'");
23743 }
23744 arg3 = reinterpret_cast< wxToolBarToolBase * >(argp3);
23745 {
23746 PyThreadState* __tstate = wxPyBeginAllowThreads();
23747 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
23748 wxPyEndAllowThreads(__tstate);
23749 if (PyErr_Occurred()) SWIG_fail;
23750 }
23751 {
23752 resultobj = wxPyMake_wxObject(result, (bool)0);
23753 }
23754 return resultobj;
23755fail:
23756 return NULL;
23757}
23758
23759
23760SWIGINTERN PyObject *_wrap_ToolBarBase_AddControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23761 PyObject *resultobj = 0;
23762 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23763 wxControl *arg2 = (wxControl *) 0 ;
23764 wxToolBarToolBase *result = 0 ;
23765 void *argp1 = 0 ;
23766 int res1 = 0 ;
23767 void *argp2 = 0 ;
23768 int res2 = 0 ;
23769 PyObject * obj0 = 0 ;
23770 PyObject * obj1 = 0 ;
23771 char * kwnames[] = {
23772 (char *) "self",(char *) "control", NULL
23773 };
23774
23775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) SWIG_fail;
23776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23777 if (!SWIG_IsOK(res1)) {
23778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23779 }
23780 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23781 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxControl, 0 | 0 );
23782 if (!SWIG_IsOK(res2)) {
23783 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddControl" "', expected argument " "2"" of type '" "wxControl *""'");
23784 }
23785 arg2 = reinterpret_cast< wxControl * >(argp2);
23786 {
23787 PyThreadState* __tstate = wxPyBeginAllowThreads();
23788 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
23789 wxPyEndAllowThreads(__tstate);
23790 if (PyErr_Occurred()) SWIG_fail;
23791 }
23792 {
23793 resultobj = wxPyMake_wxObject(result, (bool)0);
23794 }
23795 return resultobj;
23796fail:
23797 return NULL;
23798}
23799
23800
23801SWIGINTERN PyObject *_wrap_ToolBarBase_InsertControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23802 PyObject *resultobj = 0;
23803 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23804 size_t arg2 ;
23805 wxControl *arg3 = (wxControl *) 0 ;
23806 wxToolBarToolBase *result = 0 ;
23807 void *argp1 = 0 ;
23808 int res1 = 0 ;
23809 size_t val2 ;
23810 int ecode2 = 0 ;
23811 void *argp3 = 0 ;
23812 int res3 = 0 ;
23813 PyObject * obj0 = 0 ;
23814 PyObject * obj1 = 0 ;
23815 PyObject * obj2 = 0 ;
23816 char * kwnames[] = {
23817 (char *) "self",(char *) "pos",(char *) "control", NULL
23818 };
23819
23820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) 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_InsertControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23824 }
23825 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23826 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23827 if (!SWIG_IsOK(ecode2)) {
23828 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertControl" "', expected argument " "2"" of type '" "size_t""'");
23829 }
23830 arg2 = static_cast< size_t >(val2);
23831 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxControl, 0 | 0 );
23832 if (!SWIG_IsOK(res3)) {
23833 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertControl" "', expected argument " "3"" of type '" "wxControl *""'");
23834 }
23835 arg3 = reinterpret_cast< wxControl * >(argp3);
23836 {
23837 PyThreadState* __tstate = wxPyBeginAllowThreads();
23838 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
23839 wxPyEndAllowThreads(__tstate);
23840 if (PyErr_Occurred()) SWIG_fail;
23841 }
23842 {
23843 resultobj = wxPyMake_wxObject(result, (bool)0);
23844 }
23845 return resultobj;
23846fail:
23847 return NULL;
23848}
23849
23850
23851SWIGINTERN PyObject *_wrap_ToolBarBase_FindControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23852 PyObject *resultobj = 0;
23853 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23854 int arg2 ;
23855 wxControl *result = 0 ;
23856 void *argp1 = 0 ;
23857 int res1 = 0 ;
23858 int val2 ;
23859 int ecode2 = 0 ;
23860 PyObject * obj0 = 0 ;
23861 PyObject * obj1 = 0 ;
23862 char * kwnames[] = {
23863 (char *) "self",(char *) "id", NULL
23864 };
23865
23866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) SWIG_fail;
23867 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23868 if (!SWIG_IsOK(res1)) {
23869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23870 }
23871 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23872 ecode2 = SWIG_AsVal_int(obj1, &val2);
23873 if (!SWIG_IsOK(ecode2)) {
23874 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindControl" "', expected argument " "2"" of type '" "int""'");
23875 }
23876 arg2 = static_cast< int >(val2);
23877 {
23878 PyThreadState* __tstate = wxPyBeginAllowThreads();
23879 result = (wxControl *)(arg1)->FindControl(arg2);
23880 wxPyEndAllowThreads(__tstate);
23881 if (PyErr_Occurred()) SWIG_fail;
23882 }
23883 {
23884 resultobj = wxPyMake_wxObject(result, 0);
23885 }
23886 return resultobj;
23887fail:
23888 return NULL;
d14a1e28
RD
23889}
23890
23891
0085ce49
RD
23892SWIGINTERN PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23893 PyObject *resultobj = 0;
23894 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23895 wxToolBarToolBase *result = 0 ;
23896 void *argp1 = 0 ;
23897 int res1 = 0 ;
23898 PyObject *swig_obj[1] ;
23899
23900 if (!args) SWIG_fail;
23901 swig_obj[0] = args;
23902 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23903 if (!SWIG_IsOK(res1)) {
23904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23905 }
23906 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23907 {
23908 PyThreadState* __tstate = wxPyBeginAllowThreads();
23909 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
23910 wxPyEndAllowThreads(__tstate);
23911 if (PyErr_Occurred()) SWIG_fail;
23912 }
23913 {
23914 resultobj = wxPyMake_wxObject(result, (bool)0);
23915 }
23916 return resultobj;
23917fail:
23918 return NULL;
23919}
23920
23921
23922SWIGINTERN PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23923 PyObject *resultobj = 0;
23924 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23925 size_t arg2 ;
23926 wxToolBarToolBase *result = 0 ;
23927 void *argp1 = 0 ;
23928 int res1 = 0 ;
23929 size_t val2 ;
23930 int ecode2 = 0 ;
23931 PyObject * obj0 = 0 ;
23932 PyObject * obj1 = 0 ;
23933 char * kwnames[] = {
23934 (char *) "self",(char *) "pos", NULL
23935 };
23936
23937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) SWIG_fail;
23938 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23939 if (!SWIG_IsOK(res1)) {
23940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23941 }
23942 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23943 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23944 if (!SWIG_IsOK(ecode2)) {
23945 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "2"" of type '" "size_t""'");
23946 }
23947 arg2 = static_cast< size_t >(val2);
23948 {
23949 PyThreadState* __tstate = wxPyBeginAllowThreads();
23950 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
23951 wxPyEndAllowThreads(__tstate);
23952 if (PyErr_Occurred()) SWIG_fail;
23953 }
23954 {
23955 resultobj = wxPyMake_wxObject(result, (bool)0);
23956 }
23957 return resultobj;
23958fail:
23959 return NULL;
23960}
23961
23962
23963SWIGINTERN PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23964 PyObject *resultobj = 0;
23965 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23966 int arg2 ;
23967 wxToolBarToolBase *result = 0 ;
23968 void *argp1 = 0 ;
23969 int res1 = 0 ;
23970 int val2 ;
23971 int ecode2 = 0 ;
23972 PyObject * obj0 = 0 ;
23973 PyObject * obj1 = 0 ;
23974 char * kwnames[] = {
23975 (char *) "self",(char *) "id", NULL
23976 };
23977
23978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) SWIG_fail;
23979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23980 if (!SWIG_IsOK(res1)) {
23981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23982 }
23983 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23984 ecode2 = SWIG_AsVal_int(obj1, &val2);
23985 if (!SWIG_IsOK(ecode2)) {
23986 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "2"" of type '" "int""'");
23987 }
23988 arg2 = static_cast< int >(val2);
23989 {
23990 PyThreadState* __tstate = wxPyBeginAllowThreads();
23991 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
23992 wxPyEndAllowThreads(__tstate);
23993 if (PyErr_Occurred()) SWIG_fail;
23994 }
23995 {
23996 resultobj = wxPyMake_wxObject(result, (bool)0);
23997 }
23998 return resultobj;
23999fail:
24000 return NULL;
24001}
24002
24003
24004SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24005 PyObject *resultobj = 0;
24006 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24007 size_t arg2 ;
24008 bool result;
24009 void *argp1 = 0 ;
24010 int res1 = 0 ;
24011 size_t val2 ;
24012 int ecode2 = 0 ;
24013 PyObject * obj0 = 0 ;
24014 PyObject * obj1 = 0 ;
24015 char * kwnames[] = {
24016 (char *) "self",(char *) "pos", NULL
24017 };
24018
24019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) SWIG_fail;
24020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24021 if (!SWIG_IsOK(res1)) {
24022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24023 }
24024 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24025 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24026 if (!SWIG_IsOK(ecode2)) {
24027 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "2"" of type '" "size_t""'");
24028 }
24029 arg2 = static_cast< size_t >(val2);
24030 {
24031 PyThreadState* __tstate = wxPyBeginAllowThreads();
24032 result = (bool)(arg1)->DeleteToolByPos(arg2);
24033 wxPyEndAllowThreads(__tstate);
24034 if (PyErr_Occurred()) SWIG_fail;
24035 }
24036 {
24037 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24038 }
24039 return resultobj;
24040fail:
24041 return NULL;
24042}
24043
24044
24045SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24046 PyObject *resultobj = 0;
24047 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24048 int arg2 ;
24049 bool result;
24050 void *argp1 = 0 ;
24051 int res1 = 0 ;
24052 int val2 ;
24053 int ecode2 = 0 ;
24054 PyObject * obj0 = 0 ;
24055 PyObject * obj1 = 0 ;
24056 char * kwnames[] = {
24057 (char *) "self",(char *) "id", NULL
24058 };
24059
24060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) SWIG_fail;
24061 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24062 if (!SWIG_IsOK(res1)) {
24063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24064 }
24065 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24066 ecode2 = SWIG_AsVal_int(obj1, &val2);
24067 if (!SWIG_IsOK(ecode2)) {
24068 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "2"" of type '" "int""'");
24069 }
24070 arg2 = static_cast< int >(val2);
24071 {
24072 PyThreadState* __tstate = wxPyBeginAllowThreads();
24073 result = (bool)(arg1)->DeleteTool(arg2);
24074 wxPyEndAllowThreads(__tstate);
24075 if (PyErr_Occurred()) SWIG_fail;
24076 }
24077 {
24078 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24079 }
24080 return resultobj;
24081fail:
24082 return NULL;
d14a1e28
RD
24083}
24084
24085
0085ce49
RD
24086SWIGINTERN PyObject *_wrap_ToolBarBase_ClearTools(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24087 PyObject *resultobj = 0;
24088 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24089 void *argp1 = 0 ;
24090 int res1 = 0 ;
24091 PyObject *swig_obj[1] ;
24092
24093 if (!args) SWIG_fail;
24094 swig_obj[0] = args;
24095 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24096 if (!SWIG_IsOK(res1)) {
24097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ClearTools" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24098 }
24099 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24100 {
24101 PyThreadState* __tstate = wxPyBeginAllowThreads();
24102 (arg1)->ClearTools();
24103 wxPyEndAllowThreads(__tstate);
24104 if (PyErr_Occurred()) SWIG_fail;
24105 }
24106 resultobj = SWIG_Py_Void();
24107 return resultobj;
24108fail:
24109 return NULL;
d14a1e28
RD
24110}
24111
24112
0085ce49
RD
24113SWIGINTERN PyObject *_wrap_ToolBarBase_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24114 PyObject *resultobj = 0;
24115 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24116 bool result;
24117 void *argp1 = 0 ;
24118 int res1 = 0 ;
24119 PyObject *swig_obj[1] ;
24120
24121 if (!args) SWIG_fail;
24122 swig_obj[0] = args;
24123 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24124 if (!SWIG_IsOK(res1)) {
24125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_Realize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24126 }
24127 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24128 {
24129 PyThreadState* __tstate = wxPyBeginAllowThreads();
24130 result = (bool)(arg1)->Realize();
24131 wxPyEndAllowThreads(__tstate);
24132 if (PyErr_Occurred()) SWIG_fail;
24133 }
24134 {
24135 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24136 }
24137 return resultobj;
24138fail:
24139 return NULL;
24140}
24141
24142
24143SWIGINTERN PyObject *_wrap_ToolBarBase_EnableTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24144 PyObject *resultobj = 0;
24145 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24146 int arg2 ;
24147 bool arg3 ;
24148 void *argp1 = 0 ;
24149 int res1 = 0 ;
24150 int val2 ;
24151 int ecode2 = 0 ;
24152 bool val3 ;
24153 int ecode3 = 0 ;
24154 PyObject * obj0 = 0 ;
24155 PyObject * obj1 = 0 ;
24156 PyObject * obj2 = 0 ;
24157 char * kwnames[] = {
24158 (char *) "self",(char *) "id",(char *) "enable", NULL
24159 };
24160
24161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24163 if (!SWIG_IsOK(res1)) {
24164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_EnableTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24165 }
24166 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24167 ecode2 = SWIG_AsVal_int(obj1, &val2);
24168 if (!SWIG_IsOK(ecode2)) {
24169 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_EnableTool" "', expected argument " "2"" of type '" "int""'");
24170 }
24171 arg2 = static_cast< int >(val2);
24172 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24173 if (!SWIG_IsOK(ecode3)) {
24174 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_EnableTool" "', expected argument " "3"" of type '" "bool""'");
24175 }
24176 arg3 = static_cast< bool >(val3);
24177 {
24178 PyThreadState* __tstate = wxPyBeginAllowThreads();
24179 (arg1)->EnableTool(arg2,arg3);
24180 wxPyEndAllowThreads(__tstate);
24181 if (PyErr_Occurred()) SWIG_fail;
24182 }
24183 resultobj = SWIG_Py_Void();
24184 return resultobj;
24185fail:
24186 return NULL;
24187}
24188
24189
24190SWIGINTERN PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24191 PyObject *resultobj = 0;
24192 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24193 int arg2 ;
24194 bool arg3 ;
24195 void *argp1 = 0 ;
24196 int res1 = 0 ;
24197 int val2 ;
24198 int ecode2 = 0 ;
24199 bool val3 ;
24200 int ecode3 = 0 ;
24201 PyObject * obj0 = 0 ;
24202 PyObject * obj1 = 0 ;
24203 PyObject * obj2 = 0 ;
24204 char * kwnames[] = {
24205 (char *) "self",(char *) "id",(char *) "toggle", NULL
24206 };
24207
24208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24210 if (!SWIG_IsOK(res1)) {
24211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24212 }
24213 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24214 ecode2 = SWIG_AsVal_int(obj1, &val2);
24215 if (!SWIG_IsOK(ecode2)) {
24216 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "2"" of type '" "int""'");
24217 }
24218 arg2 = static_cast< int >(val2);
24219 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24220 if (!SWIG_IsOK(ecode3)) {
24221 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "3"" of type '" "bool""'");
24222 }
24223 arg3 = static_cast< bool >(val3);
24224 {
24225 PyThreadState* __tstate = wxPyBeginAllowThreads();
24226 (arg1)->ToggleTool(arg2,arg3);
24227 wxPyEndAllowThreads(__tstate);
24228 if (PyErr_Occurred()) SWIG_fail;
24229 }
24230 resultobj = SWIG_Py_Void();
24231 return resultobj;
24232fail:
24233 return NULL;
24234}
24235
24236
24237SWIGINTERN PyObject *_wrap_ToolBarBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24238 PyObject *resultobj = 0;
24239 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24240 int arg2 ;
24241 bool arg3 ;
24242 void *argp1 = 0 ;
24243 int res1 = 0 ;
24244 int val2 ;
24245 int ecode2 = 0 ;
24246 bool val3 ;
24247 int ecode3 = 0 ;
24248 PyObject * obj0 = 0 ;
24249 PyObject * obj1 = 0 ;
24250 PyObject * obj2 = 0 ;
24251 char * kwnames[] = {
24252 (char *) "self",(char *) "id",(char *) "toggle", NULL
24253 };
24254
24255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24256 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24257 if (!SWIG_IsOK(res1)) {
24258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24259 }
24260 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24261 ecode2 = SWIG_AsVal_int(obj1, &val2);
24262 if (!SWIG_IsOK(ecode2)) {
24263 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToggle" "', expected argument " "2"" of type '" "int""'");
24264 }
24265 arg2 = static_cast< int >(val2);
24266 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24267 if (!SWIG_IsOK(ecode3)) {
24268 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetToggle" "', expected argument " "3"" of type '" "bool""'");
24269 }
24270 arg3 = static_cast< bool >(val3);
24271 {
24272 PyThreadState* __tstate = wxPyBeginAllowThreads();
24273 (arg1)->SetToggle(arg2,arg3);
24274 wxPyEndAllowThreads(__tstate);
24275 if (PyErr_Occurred()) SWIG_fail;
24276 }
24277 resultobj = SWIG_Py_Void();
24278 return resultobj;
24279fail:
24280 return NULL;
24281}
24282
24283
24284SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24285 PyObject *resultobj = 0;
24286 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24287 int arg2 ;
24288 PyObject *result = 0 ;
24289 void *argp1 = 0 ;
24290 int res1 = 0 ;
24291 int val2 ;
24292 int ecode2 = 0 ;
24293 PyObject * obj0 = 0 ;
24294 PyObject * obj1 = 0 ;
24295 char * kwnames[] = {
24296 (char *) "self",(char *) "id", NULL
24297 };
24298
24299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) SWIG_fail;
24300 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24301 if (!SWIG_IsOK(res1)) {
24302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24303 }
24304 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24305 ecode2 = SWIG_AsVal_int(obj1, &val2);
24306 if (!SWIG_IsOK(ecode2)) {
24307 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "2"" of type '" "int""'");
24308 }
24309 arg2 = static_cast< int >(val2);
24310 {
24311 PyThreadState* __tstate = wxPyBeginAllowThreads();
24312 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
24313 wxPyEndAllowThreads(__tstate);
24314 if (PyErr_Occurred()) SWIG_fail;
24315 }
24316 resultobj = result;
24317 return resultobj;
24318fail:
24319 return NULL;
24320}
24321
24322
24323SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24324 PyObject *resultobj = 0;
24325 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24326 int arg2 ;
24327 PyObject *arg3 = (PyObject *) 0 ;
24328 void *argp1 = 0 ;
24329 int res1 = 0 ;
24330 int val2 ;
24331 int ecode2 = 0 ;
24332 PyObject * obj0 = 0 ;
24333 PyObject * obj1 = 0 ;
24334 PyObject * obj2 = 0 ;
24335 char * kwnames[] = {
24336 (char *) "self",(char *) "id",(char *) "clientData", NULL
24337 };
24338
24339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24340 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24341 if (!SWIG_IsOK(res1)) {
24342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24343 }
24344 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24345 ecode2 = SWIG_AsVal_int(obj1, &val2);
24346 if (!SWIG_IsOK(ecode2)) {
24347 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "2"" of type '" "int""'");
24348 }
24349 arg2 = static_cast< int >(val2);
24350 arg3 = obj2;
24351 {
24352 PyThreadState* __tstate = wxPyBeginAllowThreads();
24353 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
24354 wxPyEndAllowThreads(__tstate);
24355 if (PyErr_Occurred()) SWIG_fail;
24356 }
24357 resultobj = SWIG_Py_Void();
24358 return resultobj;
24359fail:
24360 return NULL;
24361}
24362
24363
24364SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24365 PyObject *resultobj = 0;
24366 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24367 int arg2 ;
24368 int result;
24369 void *argp1 = 0 ;
24370 int res1 = 0 ;
24371 int val2 ;
24372 int ecode2 = 0 ;
24373 PyObject * obj0 = 0 ;
24374 PyObject * obj1 = 0 ;
24375 char * kwnames[] = {
24376 (char *) "self",(char *) "id", NULL
24377 };
24378
24379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) SWIG_fail;
24380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24381 if (!SWIG_IsOK(res1)) {
24382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
24383 }
24384 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24385 ecode2 = SWIG_AsVal_int(obj1, &val2);
24386 if (!SWIG_IsOK(ecode2)) {
24387 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "2"" of type '" "int""'");
24388 }
24389 arg2 = static_cast< int >(val2);
24390 {
24391 PyThreadState* __tstate = wxPyBeginAllowThreads();
24392 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
24393 wxPyEndAllowThreads(__tstate);
24394 if (PyErr_Occurred()) SWIG_fail;
24395 }
24396 resultobj = SWIG_From_int(static_cast< int >(result));
24397 return resultobj;
24398fail:
24399 return NULL;
24400}
24401
24402
24403SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24404 PyObject *resultobj = 0;
24405 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24406 int arg2 ;
24407 bool result;
24408 void *argp1 = 0 ;
24409 int res1 = 0 ;
24410 int val2 ;
24411 int ecode2 = 0 ;
24412 PyObject * obj0 = 0 ;
24413 PyObject * obj1 = 0 ;
24414 char * kwnames[] = {
24415 (char *) "self",(char *) "id", NULL
24416 };
24417
24418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) SWIG_fail;
24419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24420 if (!SWIG_IsOK(res1)) {
24421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolState" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24422 }
24423 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24424 ecode2 = SWIG_AsVal_int(obj1, &val2);
24425 if (!SWIG_IsOK(ecode2)) {
24426 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolState" "', expected argument " "2"" of type '" "int""'");
24427 }
24428 arg2 = static_cast< int >(val2);
24429 {
24430 PyThreadState* __tstate = wxPyBeginAllowThreads();
24431 result = (bool)(arg1)->GetToolState(arg2);
24432 wxPyEndAllowThreads(__tstate);
24433 if (PyErr_Occurred()) SWIG_fail;
24434 }
24435 {
24436 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24437 }
24438 return resultobj;
24439fail:
24440 return NULL;
24441}
24442
24443
24444SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24445 PyObject *resultobj = 0;
24446 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24447 int arg2 ;
24448 bool result;
24449 void *argp1 = 0 ;
24450 int res1 = 0 ;
24451 int val2 ;
24452 int ecode2 = 0 ;
24453 PyObject * obj0 = 0 ;
24454 PyObject * obj1 = 0 ;
24455 char * kwnames[] = {
24456 (char *) "self",(char *) "id", NULL
24457 };
24458
24459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
24460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24461 if (!SWIG_IsOK(res1)) {
24462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24463 }
24464 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24465 ecode2 = SWIG_AsVal_int(obj1, &val2);
24466 if (!SWIG_IsOK(ecode2)) {
24467 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "2"" of type '" "int""'");
24468 }
24469 arg2 = static_cast< int >(val2);
24470 {
24471 PyThreadState* __tstate = wxPyBeginAllowThreads();
24472 result = (bool)(arg1)->GetToolEnabled(arg2);
24473 wxPyEndAllowThreads(__tstate);
24474 if (PyErr_Occurred()) SWIG_fail;
24475 }
24476 {
24477 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24478 }
24479 return resultobj;
24480fail:
24481 return NULL;
24482}
24483
24484
24485SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24486 PyObject *resultobj = 0;
24487 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24488 int arg2 ;
24489 wxString *arg3 = 0 ;
24490 void *argp1 = 0 ;
24491 int res1 = 0 ;
24492 int val2 ;
24493 int ecode2 = 0 ;
24494 bool temp3 = false ;
24495 PyObject * obj0 = 0 ;
24496 PyObject * obj1 = 0 ;
24497 PyObject * obj2 = 0 ;
24498 char * kwnames[] = {
24499 (char *) "self",(char *) "id",(char *) "helpString", NULL
24500 };
24501
24502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24503 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24504 if (!SWIG_IsOK(res1)) {
24505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24506 }
24507 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24508 ecode2 = SWIG_AsVal_int(obj1, &val2);
24509 if (!SWIG_IsOK(ecode2)) {
24510 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24511 }
24512 arg2 = static_cast< int >(val2);
24513 {
24514 arg3 = wxString_in_helper(obj2);
24515 if (arg3 == NULL) SWIG_fail;
24516 temp3 = true;
24517 }
24518 {
24519 PyThreadState* __tstate = wxPyBeginAllowThreads();
24520 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
24521 wxPyEndAllowThreads(__tstate);
24522 if (PyErr_Occurred()) SWIG_fail;
24523 }
24524 resultobj = SWIG_Py_Void();
24525 {
24526 if (temp3)
24527 delete arg3;
24528 }
24529 return resultobj;
24530fail:
24531 {
24532 if (temp3)
24533 delete arg3;
24534 }
24535 return NULL;
24536}
24537
24538
24539SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24540 PyObject *resultobj = 0;
24541 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24542 int arg2 ;
24543 wxString result;
24544 void *argp1 = 0 ;
24545 int res1 = 0 ;
24546 int val2 ;
24547 int ecode2 = 0 ;
24548 PyObject * obj0 = 0 ;
24549 PyObject * obj1 = 0 ;
24550 char * kwnames[] = {
24551 (char *) "self",(char *) "id", NULL
24552 };
24553
24554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24556 if (!SWIG_IsOK(res1)) {
24557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24558 }
24559 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24560 ecode2 = SWIG_AsVal_int(obj1, &val2);
24561 if (!SWIG_IsOK(ecode2)) {
24562 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24563 }
24564 arg2 = static_cast< int >(val2);
24565 {
24566 PyThreadState* __tstate = wxPyBeginAllowThreads();
24567 result = (arg1)->GetToolShortHelp(arg2);
24568 wxPyEndAllowThreads(__tstate);
24569 if (PyErr_Occurred()) SWIG_fail;
24570 }
24571 {
24572#if wxUSE_UNICODE
24573 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24574#else
24575 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24576#endif
24577 }
24578 return resultobj;
24579fail:
24580 return NULL;
24581}
24582
24583
24584SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24585 PyObject *resultobj = 0;
24586 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24587 int arg2 ;
24588 wxString *arg3 = 0 ;
24589 void *argp1 = 0 ;
24590 int res1 = 0 ;
24591 int val2 ;
24592 int ecode2 = 0 ;
24593 bool temp3 = false ;
24594 PyObject * obj0 = 0 ;
24595 PyObject * obj1 = 0 ;
24596 PyObject * obj2 = 0 ;
24597 char * kwnames[] = {
24598 (char *) "self",(char *) "id",(char *) "helpString", NULL
24599 };
24600
24601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24602 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24603 if (!SWIG_IsOK(res1)) {
24604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24605 }
24606 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24607 ecode2 = SWIG_AsVal_int(obj1, &val2);
24608 if (!SWIG_IsOK(ecode2)) {
24609 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24610 }
24611 arg2 = static_cast< int >(val2);
24612 {
24613 arg3 = wxString_in_helper(obj2);
24614 if (arg3 == NULL) SWIG_fail;
24615 temp3 = true;
24616 }
24617 {
24618 PyThreadState* __tstate = wxPyBeginAllowThreads();
24619 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
24620 wxPyEndAllowThreads(__tstate);
24621 if (PyErr_Occurred()) SWIG_fail;
24622 }
24623 resultobj = SWIG_Py_Void();
24624 {
24625 if (temp3)
24626 delete arg3;
24627 }
24628 return resultobj;
24629fail:
24630 {
24631 if (temp3)
24632 delete arg3;
24633 }
24634 return NULL;
24635}
24636
24637
24638SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24639 PyObject *resultobj = 0;
24640 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24641 int arg2 ;
24642 wxString result;
24643 void *argp1 = 0 ;
24644 int res1 = 0 ;
24645 int val2 ;
24646 int ecode2 = 0 ;
24647 PyObject * obj0 = 0 ;
24648 PyObject * obj1 = 0 ;
24649 char * kwnames[] = {
24650 (char *) "self",(char *) "id", NULL
24651 };
24652
24653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24655 if (!SWIG_IsOK(res1)) {
24656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24657 }
24658 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24659 ecode2 = SWIG_AsVal_int(obj1, &val2);
24660 if (!SWIG_IsOK(ecode2)) {
24661 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24662 }
24663 arg2 = static_cast< int >(val2);
24664 {
24665 PyThreadState* __tstate = wxPyBeginAllowThreads();
24666 result = (arg1)->GetToolLongHelp(arg2);
24667 wxPyEndAllowThreads(__tstate);
24668 if (PyErr_Occurred()) SWIG_fail;
24669 }
24670 {
24671#if wxUSE_UNICODE
24672 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24673#else
24674 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24675#endif
24676 }
24677 return resultobj;
24678fail:
24679 return NULL;
24680}
24681
24682
24683SWIGINTERN PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24684 PyObject *resultobj = 0;
24685 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24686 int arg2 ;
24687 int arg3 ;
24688 void *argp1 = 0 ;
24689 int res1 = 0 ;
24690 int val2 ;
24691 int ecode2 = 0 ;
24692 int val3 ;
24693 int ecode3 = 0 ;
24694 PyObject * obj0 = 0 ;
24695 PyObject * obj1 = 0 ;
24696 PyObject * obj2 = 0 ;
24697 char * kwnames[] = {
24698 (char *) "self",(char *) "x",(char *) "y", NULL
24699 };
24700
24701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24703 if (!SWIG_IsOK(res1)) {
24704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24705 }
24706 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24707 ecode2 = SWIG_AsVal_int(obj1, &val2);
24708 if (!SWIG_IsOK(ecode2)) {
24709 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "2"" of type '" "int""'");
24710 }
24711 arg2 = static_cast< int >(val2);
24712 ecode3 = SWIG_AsVal_int(obj2, &val3);
24713 if (!SWIG_IsOK(ecode3)) {
24714 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "3"" of type '" "int""'");
24715 }
24716 arg3 = static_cast< int >(val3);
24717 {
24718 PyThreadState* __tstate = wxPyBeginAllowThreads();
24719 (arg1)->SetMargins(arg2,arg3);
24720 wxPyEndAllowThreads(__tstate);
24721 if (PyErr_Occurred()) SWIG_fail;
24722 }
24723 resultobj = SWIG_Py_Void();
24724 return resultobj;
24725fail:
24726 return NULL;
24727}
24728
24729
24730SWIGINTERN PyObject *_wrap_ToolBarBase_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24731 PyObject *resultobj = 0;
24732 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24733 wxSize *arg2 = 0 ;
24734 void *argp1 = 0 ;
24735 int res1 = 0 ;
24736 wxSize temp2 ;
24737 PyObject * obj0 = 0 ;
24738 PyObject * obj1 = 0 ;
24739 char * kwnames[] = {
24740 (char *) "self",(char *) "size", NULL
24741 };
24742
24743 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail;
24744 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24745 if (!SWIG_IsOK(res1)) {
24746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24747 }
24748 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24749 {
24750 arg2 = &temp2;
24751 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
24752 }
24753 {
24754 PyThreadState* __tstate = wxPyBeginAllowThreads();
24755 (arg1)->SetMargins((wxSize const &)*arg2);
24756 wxPyEndAllowThreads(__tstate);
24757 if (PyErr_Occurred()) SWIG_fail;
24758 }
24759 resultobj = SWIG_Py_Void();
24760 return resultobj;
24761fail:
24762 return NULL;
24763}
24764
24765
24766SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24767 PyObject *resultobj = 0;
24768 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24769 int arg2 ;
24770 void *argp1 = 0 ;
24771 int res1 = 0 ;
24772 int val2 ;
24773 int ecode2 = 0 ;
24774 PyObject * obj0 = 0 ;
24775 PyObject * obj1 = 0 ;
24776 char * kwnames[] = {
24777 (char *) "self",(char *) "packing", NULL
24778 };
24779
24780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) SWIG_fail;
24781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24782 if (!SWIG_IsOK(res1)) {
24783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24784 }
24785 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24786 ecode2 = SWIG_AsVal_int(obj1, &val2);
24787 if (!SWIG_IsOK(ecode2)) {
24788 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "2"" of type '" "int""'");
24789 }
24790 arg2 = static_cast< int >(val2);
24791 {
24792 PyThreadState* __tstate = wxPyBeginAllowThreads();
24793 (arg1)->SetToolPacking(arg2);
24794 wxPyEndAllowThreads(__tstate);
24795 if (PyErr_Occurred()) SWIG_fail;
24796 }
24797 resultobj = SWIG_Py_Void();
24798 return resultobj;
24799fail:
24800 return NULL;
24801}
24802
24803
24804SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24805 PyObject *resultobj = 0;
24806 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24807 int arg2 ;
24808 void *argp1 = 0 ;
24809 int res1 = 0 ;
24810 int val2 ;
24811 int ecode2 = 0 ;
24812 PyObject * obj0 = 0 ;
24813 PyObject * obj1 = 0 ;
24814 char * kwnames[] = {
24815 (char *) "self",(char *) "separation", NULL
24816 };
24817
24818 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) SWIG_fail;
24819 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24820 if (!SWIG_IsOK(res1)) {
24821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24822 }
24823 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24824 ecode2 = SWIG_AsVal_int(obj1, &val2);
24825 if (!SWIG_IsOK(ecode2)) {
24826 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "2"" of type '" "int""'");
24827 }
24828 arg2 = static_cast< int >(val2);
24829 {
24830 PyThreadState* __tstate = wxPyBeginAllowThreads();
24831 (arg1)->SetToolSeparation(arg2);
24832 wxPyEndAllowThreads(__tstate);
24833 if (PyErr_Occurred()) SWIG_fail;
24834 }
24835 resultobj = SWIG_Py_Void();
24836 return resultobj;
24837fail:
24838 return NULL;
d14a1e28
RD
24839}
24840
24841
0085ce49
RD
24842SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24843 PyObject *resultobj = 0;
24844 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24845 wxSize result;
24846 void *argp1 = 0 ;
24847 int res1 = 0 ;
24848 PyObject *swig_obj[1] ;
24849
24850 if (!args) SWIG_fail;
24851 swig_obj[0] = args;
24852 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24853 if (!SWIG_IsOK(res1)) {
24854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24855 }
24856 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24857 {
24858 PyThreadState* __tstate = wxPyBeginAllowThreads();
24859 result = (arg1)->GetToolMargins();
24860 wxPyEndAllowThreads(__tstate);
24861 if (PyErr_Occurred()) SWIG_fail;
24862 }
24863 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24864 return resultobj;
24865fail:
24866 return NULL;
d14a1e28
RD
24867}
24868
24869
0085ce49
RD
24870SWIGINTERN PyObject *_wrap_ToolBarBase_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24871 PyObject *resultobj = 0;
24872 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24873 wxSize result;
24874 void *argp1 = 0 ;
24875 int res1 = 0 ;
24876 PyObject *swig_obj[1] ;
24877
24878 if (!args) SWIG_fail;
24879 swig_obj[0] = args;
24880 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24881 if (!SWIG_IsOK(res1)) {
24882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24883 }
24884 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24885 {
24886 PyThreadState* __tstate = wxPyBeginAllowThreads();
24887 result = (arg1)->GetMargins();
24888 wxPyEndAllowThreads(__tstate);
24889 if (PyErr_Occurred()) SWIG_fail;
24890 }
24891 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24892 return resultobj;
24893fail:
24894 return NULL;
d14a1e28
RD
24895}
24896
24897
0085ce49
RD
24898SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24899 PyObject *resultobj = 0;
24900 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24901 int result;
24902 void *argp1 = 0 ;
24903 int res1 = 0 ;
24904 PyObject *swig_obj[1] ;
24905
24906 if (!args) SWIG_fail;
24907 swig_obj[0] = args;
24908 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24909 if (!SWIG_IsOK(res1)) {
24910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24911 }
24912 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24913 {
24914 PyThreadState* __tstate = wxPyBeginAllowThreads();
24915 result = (int)(arg1)->GetToolPacking();
24916 wxPyEndAllowThreads(__tstate);
24917 if (PyErr_Occurred()) SWIG_fail;
24918 }
24919 resultobj = SWIG_From_int(static_cast< int >(result));
24920 return resultobj;
24921fail:
24922 return NULL;
d14a1e28
RD
24923}
24924
24925
0085ce49
RD
24926SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24927 PyObject *resultobj = 0;
24928 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24929 int result;
24930 void *argp1 = 0 ;
24931 int res1 = 0 ;
24932 PyObject *swig_obj[1] ;
24933
24934 if (!args) SWIG_fail;
24935 swig_obj[0] = args;
24936 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24937 if (!SWIG_IsOK(res1)) {
24938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24939 }
24940 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24941 {
24942 PyThreadState* __tstate = wxPyBeginAllowThreads();
24943 result = (int)(arg1)->GetToolSeparation();
24944 wxPyEndAllowThreads(__tstate);
24945 if (PyErr_Occurred()) SWIG_fail;
24946 }
24947 resultobj = SWIG_From_int(static_cast< int >(result));
24948 return resultobj;
24949fail:
24950 return NULL;
24951}
24952
24953
24954SWIGINTERN PyObject *_wrap_ToolBarBase_SetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24955 PyObject *resultobj = 0;
24956 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24957 int arg2 ;
24958 void *argp1 = 0 ;
24959 int res1 = 0 ;
24960 int val2 ;
24961 int ecode2 = 0 ;
24962 PyObject * obj0 = 0 ;
24963 PyObject * obj1 = 0 ;
24964 char * kwnames[] = {
24965 (char *) "self",(char *) "nRows", NULL
24966 };
24967
24968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) SWIG_fail;
24969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24970 if (!SWIG_IsOK(res1)) {
24971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24972 }
24973 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24974 ecode2 = SWIG_AsVal_int(obj1, &val2);
24975 if (!SWIG_IsOK(ecode2)) {
24976 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetRows" "', expected argument " "2"" of type '" "int""'");
24977 }
24978 arg2 = static_cast< int >(val2);
24979 {
24980 PyThreadState* __tstate = wxPyBeginAllowThreads();
24981 (arg1)->SetRows(arg2);
24982 wxPyEndAllowThreads(__tstate);
24983 if (PyErr_Occurred()) SWIG_fail;
24984 }
24985 resultobj = SWIG_Py_Void();
24986 return resultobj;
24987fail:
24988 return NULL;
24989}
24990
24991
24992SWIGINTERN PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24993 PyObject *resultobj = 0;
24994 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24995 int arg2 ;
24996 int arg3 ;
24997 void *argp1 = 0 ;
24998 int res1 = 0 ;
24999 int val2 ;
25000 int ecode2 = 0 ;
25001 int val3 ;
25002 int ecode3 = 0 ;
25003 PyObject * obj0 = 0 ;
25004 PyObject * obj1 = 0 ;
25005 PyObject * obj2 = 0 ;
25006 char * kwnames[] = {
25007 (char *) "self",(char *) "rows",(char *) "cols", NULL
25008 };
25009
25010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25012 if (!SWIG_IsOK(res1)) {
25013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25014 }
25015 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25016 ecode2 = SWIG_AsVal_int(obj1, &val2);
25017 if (!SWIG_IsOK(ecode2)) {
25018 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "2"" of type '" "int""'");
25019 }
25020 arg2 = static_cast< int >(val2);
25021 ecode3 = SWIG_AsVal_int(obj2, &val3);
25022 if (!SWIG_IsOK(ecode3)) {
25023 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "3"" of type '" "int""'");
25024 }
25025 arg3 = static_cast< int >(val3);
25026 {
25027 PyThreadState* __tstate = wxPyBeginAllowThreads();
25028 (arg1)->SetMaxRowsCols(arg2,arg3);
25029 wxPyEndAllowThreads(__tstate);
25030 if (PyErr_Occurred()) SWIG_fail;
25031 }
25032 resultobj = SWIG_Py_Void();
25033 return resultobj;
25034fail:
25035 return NULL;
22bfe96c
RD
25036}
25037
25038
0085ce49
RD
25039SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25040 PyObject *resultobj = 0;
25041 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25042 int result;
25043 void *argp1 = 0 ;
25044 int res1 = 0 ;
25045 PyObject *swig_obj[1] ;
25046
25047 if (!args) SWIG_fail;
25048 swig_obj[0] = args;
25049 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25050 if (!SWIG_IsOK(res1)) {
25051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25052 }
25053 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25054 {
25055 PyThreadState* __tstate = wxPyBeginAllowThreads();
25056 result = (int)(arg1)->GetMaxRows();
25057 wxPyEndAllowThreads(__tstate);
25058 if (PyErr_Occurred()) SWIG_fail;
25059 }
25060 resultobj = SWIG_From_int(static_cast< int >(result));
25061 return resultobj;
25062fail:
25063 return NULL;
d14a1e28
RD
25064}
25065
25066
0085ce49
RD
25067SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25068 PyObject *resultobj = 0;
25069 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25070 int result;
25071 void *argp1 = 0 ;
25072 int res1 = 0 ;
25073 PyObject *swig_obj[1] ;
25074
25075 if (!args) SWIG_fail;
25076 swig_obj[0] = args;
25077 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25078 if (!SWIG_IsOK(res1)) {
25079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25080 }
25081 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25082 {
25083 PyThreadState* __tstate = wxPyBeginAllowThreads();
25084 result = (int)(arg1)->GetMaxCols();
25085 wxPyEndAllowThreads(__tstate);
25086 if (PyErr_Occurred()) SWIG_fail;
25087 }
25088 resultobj = SWIG_From_int(static_cast< int >(result));
25089 return resultobj;
25090fail:
25091 return NULL;
25092}
25093
25094
25095SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25096 PyObject *resultobj = 0;
25097 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25098 wxSize *arg2 = 0 ;
25099 void *argp1 = 0 ;
25100 int res1 = 0 ;
25101 wxSize temp2 ;
25102 PyObject * obj0 = 0 ;
25103 PyObject * obj1 = 0 ;
25104 char * kwnames[] = {
25105 (char *) "self",(char *) "size", NULL
25106 };
25107
25108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) SWIG_fail;
25109 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25110 if (!SWIG_IsOK(res1)) {
25111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25112 }
25113 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25114 {
25115 arg2 = &temp2;
25116 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25117 }
25118 {
25119 PyThreadState* __tstate = wxPyBeginAllowThreads();
25120 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
25121 wxPyEndAllowThreads(__tstate);
25122 if (PyErr_Occurred()) SWIG_fail;
25123 }
25124 resultobj = SWIG_Py_Void();
25125 return resultobj;
25126fail:
25127 return NULL;
d14a1e28
RD
25128}
25129
25130
0085ce49
RD
25131SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25132 PyObject *resultobj = 0;
25133 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25134 wxSize result;
25135 void *argp1 = 0 ;
25136 int res1 = 0 ;
25137 PyObject *swig_obj[1] ;
25138
25139 if (!args) SWIG_fail;
25140 swig_obj[0] = args;
25141 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25142 if (!SWIG_IsOK(res1)) {
25143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25144 }
25145 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25146 {
25147 PyThreadState* __tstate = wxPyBeginAllowThreads();
25148 result = (arg1)->GetToolBitmapSize();
25149 wxPyEndAllowThreads(__tstate);
25150 if (PyErr_Occurred()) SWIG_fail;
25151 }
25152 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25153 return resultobj;
25154fail:
25155 return NULL;
d14a1e28
RD
25156}
25157
25158
0085ce49
RD
25159SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25160 PyObject *resultobj = 0;
25161 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25162 wxSize result;
25163 void *argp1 = 0 ;
25164 int res1 = 0 ;
25165 PyObject *swig_obj[1] ;
25166
25167 if (!args) SWIG_fail;
25168 swig_obj[0] = args;
25169 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25170 if (!SWIG_IsOK(res1)) {
25171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25172 }
25173 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25174 {
25175 PyThreadState* __tstate = wxPyBeginAllowThreads();
25176 result = (arg1)->GetToolSize();
25177 wxPyEndAllowThreads(__tstate);
25178 if (PyErr_Occurred()) SWIG_fail;
25179 }
25180 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25181 return resultobj;
25182fail:
25183 return NULL;
25184}
25185
25186
25187SWIGINTERN PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25188 PyObject *resultobj = 0;
25189 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25190 int arg2 ;
25191 int arg3 ;
25192 wxToolBarToolBase *result = 0 ;
25193 void *argp1 = 0 ;
25194 int res1 = 0 ;
25195 int val2 ;
25196 int ecode2 = 0 ;
25197 int val3 ;
25198 int ecode3 = 0 ;
25199 PyObject * obj0 = 0 ;
25200 PyObject * obj1 = 0 ;
25201 PyObject * obj2 = 0 ;
25202 char * kwnames[] = {
25203 (char *) "self",(char *) "x",(char *) "y", NULL
25204 };
25205
25206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25207 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25208 if (!SWIG_IsOK(res1)) {
25209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25210 }
25211 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25212 ecode2 = SWIG_AsVal_int(obj1, &val2);
25213 if (!SWIG_IsOK(ecode2)) {
25214 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "2"" of type '" "int""'");
25215 }
25216 arg2 = static_cast< int >(val2);
25217 ecode3 = SWIG_AsVal_int(obj2, &val3);
25218 if (!SWIG_IsOK(ecode3)) {
25219 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "3"" of type '" "int""'");
25220 }
25221 arg3 = static_cast< int >(val3);
25222 {
25223 PyThreadState* __tstate = wxPyBeginAllowThreads();
25224 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
25225 wxPyEndAllowThreads(__tstate);
25226 if (PyErr_Occurred()) SWIG_fail;
25227 }
25228 {
25229 resultobj = wxPyMake_wxObject(result, (bool)0);
25230 }
25231 return resultobj;
25232fail:
25233 return NULL;
25234}
25235
25236
25237SWIGINTERN PyObject *_wrap_ToolBarBase_FindById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25238 PyObject *resultobj = 0;
25239 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25240 int arg2 ;
25241 wxToolBarToolBase *result = 0 ;
25242 void *argp1 = 0 ;
25243 int res1 = 0 ;
25244 int val2 ;
25245 int ecode2 = 0 ;
25246 PyObject * obj0 = 0 ;
25247 PyObject * obj1 = 0 ;
25248 char * kwnames[] = {
25249 (char *) "self",(char *) "toolid", NULL
25250 };
25251
25252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) SWIG_fail;
25253 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25254 if (!SWIG_IsOK(res1)) {
25255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindById" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25256 }
25257 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25258 ecode2 = SWIG_AsVal_int(obj1, &val2);
25259 if (!SWIG_IsOK(ecode2)) {
25260 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindById" "', expected argument " "2"" of type '" "int""'");
25261 }
25262 arg2 = static_cast< int >(val2);
25263 {
25264 PyThreadState* __tstate = wxPyBeginAllowThreads();
25265 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
25266 wxPyEndAllowThreads(__tstate);
25267 if (PyErr_Occurred()) SWIG_fail;
25268 }
25269 {
25270 resultobj = wxPyMake_wxObject(result, (bool)0);
25271 }
25272 return resultobj;
25273fail:
25274 return NULL;
d14a1e28
RD
25275}
25276
25277
0085ce49
RD
25278SWIGINTERN PyObject *_wrap_ToolBarBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25279 PyObject *resultobj = 0;
25280 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25281 bool result;
25282 void *argp1 = 0 ;
25283 int res1 = 0 ;
25284 PyObject *swig_obj[1] ;
25285
25286 if (!args) SWIG_fail;
25287 swig_obj[0] = args;
25288 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25289 if (!SWIG_IsOK(res1)) {
25290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_IsVertical" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25291 }
25292 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25293 {
25294 PyThreadState* __tstate = wxPyBeginAllowThreads();
25295 result = (bool)(arg1)->IsVertical();
25296 wxPyEndAllowThreads(__tstate);
25297 if (PyErr_Occurred()) SWIG_fail;
25298 }
25299 {
25300 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25301 }
25302 return resultobj;
25303fail:
25304 return NULL;
25305}
25306
25307
25308SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25309 PyObject *resultobj = 0;
25310 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25311 size_t result;
25312 void *argp1 = 0 ;
25313 int res1 = 0 ;
25314 PyObject *swig_obj[1] ;
25315
25316 if (!args) SWIG_fail;
25317 swig_obj[0] = args;
25318 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25319 if (!SWIG_IsOK(res1)) {
25320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolsCount" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25321 }
25322 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25323 {
25324 PyThreadState* __tstate = wxPyBeginAllowThreads();
25325 result = (size_t)((wxToolBarBase const *)arg1)->GetToolsCount();
25326 wxPyEndAllowThreads(__tstate);
25327 if (PyErr_Occurred()) SWIG_fail;
25328 }
25329 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
25330 return resultobj;
25331fail:
25332 return NULL;
25333}
25334
25335
25336SWIGINTERN PyObject *ToolBarBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25337 PyObject *obj;
25338 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25339 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarBase, SWIG_NewClientData(obj));
25340 return SWIG_Py_Void();
25341}
25342
25343SWIGINTERN PyObject *_wrap_new_ToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25344 PyObject *resultobj = 0;
25345 wxWindow *arg1 = (wxWindow *) 0 ;
25346 int arg2 = (int) -1 ;
25347 wxPoint const &arg3_defvalue = wxDefaultPosition ;
25348 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
25349 wxSize const &arg4_defvalue = wxDefaultSize ;
25350 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
25351 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25352 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
25353 wxString *arg6 = (wxString *) &arg6_defvalue ;
25354 wxToolBar *result = 0 ;
25355 void *argp1 = 0 ;
25356 int res1 = 0 ;
25357 int val2 ;
25358 int ecode2 = 0 ;
25359 wxPoint temp3 ;
25360 wxSize temp4 ;
25361 long val5 ;
25362 int ecode5 = 0 ;
25363 bool temp6 = false ;
25364 PyObject * obj0 = 0 ;
25365 PyObject * obj1 = 0 ;
25366 PyObject * obj2 = 0 ;
25367 PyObject * obj3 = 0 ;
25368 PyObject * obj4 = 0 ;
25369 PyObject * obj5 = 0 ;
25370 char * kwnames[] = {
25371 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25372 };
25373
25374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25376 if (!SWIG_IsOK(res1)) {
25377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToolBar" "', expected argument " "1"" of type '" "wxWindow *""'");
25378 }
25379 arg1 = reinterpret_cast< wxWindow * >(argp1);
25380 if (obj1) {
25381 ecode2 = SWIG_AsVal_int(obj1, &val2);
25382 if (!SWIG_IsOK(ecode2)) {
25383 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolBar" "', expected argument " "2"" of type '" "int""'");
25384 }
25385 arg2 = static_cast< int >(val2);
25386 }
25387 if (obj2) {
25388 {
25389 arg3 = &temp3;
25390 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
25391 }
25392 }
25393 if (obj3) {
093d3ff1 25394 {
0085ce49
RD
25395 arg4 = &temp4;
25396 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 25397 }
0085ce49
RD
25398 }
25399 if (obj4) {
25400 ecode5 = SWIG_AsVal_long(obj4, &val5);
25401 if (!SWIG_IsOK(ecode5)) {
25402 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ToolBar" "', expected argument " "5"" of type '" "long""'");
25403 }
25404 arg5 = static_cast< long >(val5);
25405 }
25406 if (obj5) {
d14a1e28 25407 {
0085ce49
RD
25408 arg6 = wxString_in_helper(obj5);
25409 if (arg6 == NULL) SWIG_fail;
25410 temp6 = true;
d14a1e28 25411 }
0085ce49
RD
25412 }
25413 {
25414 if (!wxPyCheckForApp()) SWIG_fail;
25415 PyThreadState* __tstate = wxPyBeginAllowThreads();
25416 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
25417 wxPyEndAllowThreads(__tstate);
25418 if (PyErr_Occurred()) SWIG_fail;
25419 }
25420 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_NEW | 0 );
25421 {
25422 if (temp6)
25423 delete arg6;
25424 }
25425 return resultobj;
25426fail:
25427 {
25428 if (temp6)
25429 delete arg6;
25430 }
25431 return NULL;
d14a1e28
RD
25432}
25433
25434
0085ce49
RD
25435SWIGINTERN PyObject *_wrap_new_PreToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25436 PyObject *resultobj = 0;
25437 wxToolBar *result = 0 ;
25438
25439 if (!SWIG_Python_UnpackTuple(args,"new_PreToolBar",0,0,0)) SWIG_fail;
25440 {
25441 if (!wxPyCheckForApp()) SWIG_fail;
25442 PyThreadState* __tstate = wxPyBeginAllowThreads();
25443 result = (wxToolBar *)new wxToolBar();
25444 wxPyEndAllowThreads(__tstate);
25445 if (PyErr_Occurred()) SWIG_fail;
25446 }
25447 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_OWN | 0 );
25448 return resultobj;
25449fail:
25450 return NULL;
25451}
25452
25453
25454SWIGINTERN PyObject *_wrap_ToolBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25455 PyObject *resultobj = 0;
25456 wxToolBar *arg1 = (wxToolBar *) 0 ;
25457 wxWindow *arg2 = (wxWindow *) 0 ;
25458 int arg3 = (int) -1 ;
25459 wxPoint const &arg4_defvalue = wxDefaultPosition ;
25460 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
25461 wxSize const &arg5_defvalue = wxDefaultSize ;
25462 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
25463 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25464 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
25465 wxString *arg7 = (wxString *) &arg7_defvalue ;
25466 bool result;
25467 void *argp1 = 0 ;
25468 int res1 = 0 ;
25469 void *argp2 = 0 ;
25470 int res2 = 0 ;
25471 int val3 ;
25472 int ecode3 = 0 ;
25473 wxPoint temp4 ;
25474 wxSize temp5 ;
25475 long val6 ;
25476 int ecode6 = 0 ;
25477 bool temp7 = false ;
25478 PyObject * obj0 = 0 ;
25479 PyObject * obj1 = 0 ;
25480 PyObject * obj2 = 0 ;
25481 PyObject * obj3 = 0 ;
25482 PyObject * obj4 = 0 ;
25483 PyObject * obj5 = 0 ;
25484 PyObject * obj6 = 0 ;
25485 char * kwnames[] = {
25486 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25487 };
25488
25489 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25490 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
25491 if (!SWIG_IsOK(res1)) {
25492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_Create" "', expected argument " "1"" of type '" "wxToolBar *""'");
25493 }
25494 arg1 = reinterpret_cast< wxToolBar * >(argp1);
25495 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25496 if (!SWIG_IsOK(res2)) {
25497 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
25498 }
25499 arg2 = reinterpret_cast< wxWindow * >(argp2);
25500 if (obj2) {
25501 ecode3 = SWIG_AsVal_int(obj2, &val3);
25502 if (!SWIG_IsOK(ecode3)) {
25503 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_Create" "', expected argument " "3"" of type '" "int""'");
25504 }
25505 arg3 = static_cast< int >(val3);
25506 }
25507 if (obj3) {
25508 {
25509 arg4 = &temp4;
25510 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
22bfe96c 25511 }
0085ce49
RD
25512 }
25513 if (obj4) {
22bfe96c 25514 {
0085ce49
RD
25515 arg5 = &temp5;
25516 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
22bfe96c 25517 }
0085ce49
RD
25518 }
25519 if (obj5) {
25520 ecode6 = SWIG_AsVal_long(obj5, &val6);
25521 if (!SWIG_IsOK(ecode6)) {
25522 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBar_Create" "', expected argument " "6"" of type '" "long""'");
25523 }
25524 arg6 = static_cast< long >(val6);
25525 }
25526 if (obj6) {
22bfe96c 25527 {
0085ce49
RD
25528 arg7 = wxString_in_helper(obj6);
25529 if (arg7 == NULL) SWIG_fail;
25530 temp7 = true;
22bfe96c 25531 }
0085ce49
RD
25532 }
25533 {
25534 PyThreadState* __tstate = wxPyBeginAllowThreads();
25535 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
25536 wxPyEndAllowThreads(__tstate);
25537 if (PyErr_Occurred()) SWIG_fail;
25538 }
25539 {
25540 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25541 }
25542 {
25543 if (temp7)
25544 delete arg7;
25545 }
25546 return resultobj;
25547fail:
25548 {
25549 if (temp7)
25550 delete arg7;
25551 }
25552 return NULL;
25553}
25554
25555
0085ce49
RD
25556SWIGINTERN PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25557 PyObject *resultobj = 0;
25558 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
25559 SwigValueWrapper<wxVisualAttributes > result;
25560 int val1 ;
25561 int ecode1 = 0 ;
25562 PyObject * obj0 = 0 ;
25563 char * kwnames[] = {
25564 (char *) "variant", NULL
25565 };
25566
25567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
25568 if (obj0) {
25569 ecode1 = SWIG_AsVal_int(obj0, &val1);
25570 if (!SWIG_IsOK(ecode1)) {
25571 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
25572 }
25573 arg1 = static_cast< wxWindowVariant >(val1);
25574 }
25575 {
25576 if (!wxPyCheckForApp()) SWIG_fail;
25577 PyThreadState* __tstate = wxPyBeginAllowThreads();
25578 result = wxToolBar::GetClassDefaultAttributes(arg1);
25579 wxPyEndAllowThreads(__tstate);
25580 if (PyErr_Occurred()) SWIG_fail;
25581 }
25582 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
25583 return resultobj;
25584fail:
25585 return NULL;
22bfe96c
RD
25586}
25587
25588
0085ce49
RD
25589SWIGINTERN PyObject *ToolBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25590 PyObject *obj;
25591 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25592 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBar, SWIG_NewClientData(obj));
25593 return SWIG_Py_Void();
d14a1e28 25594}
0085ce49
RD
25595
25596SWIGINTERN PyObject *ToolBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25597 return SWIG_Python_InitShadowInstance(args);
b2dc1044
RD
25598}
25599
0085ce49
RD
25600SWIGINTERN int ListCtrlNameStr_set(PyObject *) {
25601 SWIG_Error(SWIG_AttributeError,"Variable ListCtrlNameStr is read-only.");
25602 return 1;
25603}
b2dc1044 25604
0085ce49
RD
25605
25606SWIGINTERN PyObject *ListCtrlNameStr_get(void) {
25607 PyObject *pyobj = 0;
25608
25609 {
b2dc1044 25610#if wxUSE_UNICODE
0085ce49 25611 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
b2dc1044 25612#else
0085ce49 25613 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
b2dc1044 25614#endif
0085ce49
RD
25615 }
25616 return pyobj;
25617}
25618
25619
25620SWIGINTERN PyObject *_wrap_new_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25621 PyObject *resultobj = 0;
25622 wxColour const &arg1_defvalue = wxNullColour ;
25623 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
25624 wxColour const &arg2_defvalue = wxNullColour ;
25625 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
25626 wxFont const &arg3_defvalue = wxNullFont ;
25627 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
25628 wxListItemAttr *result = 0 ;
25629 wxColour temp1 ;
25630 wxColour temp2 ;
25631 void *argp3 = 0 ;
25632 int res3 = 0 ;
25633 PyObject * obj0 = 0 ;
25634 PyObject * obj1 = 0 ;
25635 PyObject * obj2 = 0 ;
25636 char * kwnames[] = {
25637 (char *) "colText",(char *) "colBack",(char *) "font", NULL
25638 };
25639
25640 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25641 if (obj0) {
d14a1e28 25642 {
0085ce49
RD
25643 arg1 = &temp1;
25644 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
d14a1e28 25645 }
0085ce49
RD
25646 }
25647 if (obj1) {
d14a1e28 25648 {
0085ce49
RD
25649 arg2 = &temp2;
25650 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d14a1e28 25651 }
0085ce49
RD
25652 }
25653 if (obj2) {
25654 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
25655 if (!SWIG_IsOK(res3)) {
25656 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
d14a1e28 25657 }
0085ce49
RD
25658 if (!argp3) {
25659 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
d14a1e28 25660 }
0085ce49
RD
25661 arg3 = reinterpret_cast< wxFont * >(argp3);
25662 }
25663 {
25664 PyThreadState* __tstate = wxPyBeginAllowThreads();
25665 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
25666 wxPyEndAllowThreads(__tstate);
25667 if (PyErr_Occurred()) SWIG_fail;
25668 }
25669 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_NEW | 0 );
25670 return resultobj;
25671fail:
25672 return NULL;
d14a1e28
RD
25673}
25674
25675
0085ce49
RD
25676SWIGINTERN PyObject *_wrap_delete_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25677 PyObject *resultobj = 0;
25678 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25679 void *argp1 = 0 ;
25680 int res1 = 0 ;
25681 PyObject *swig_obj[1] ;
25682
25683 if (!args) SWIG_fail;
25684 swig_obj[0] = args;
25685 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_DISOWN | 0 );
25686 if (!SWIG_IsOK(res1)) {
25687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItemAttr" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25688 }
25689 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25690 {
25691 PyThreadState* __tstate = wxPyBeginAllowThreads();
25692 delete arg1;
d14a1e28 25693
0085ce49
RD
25694 wxPyEndAllowThreads(__tstate);
25695 if (PyErr_Occurred()) SWIG_fail;
25696 }
25697 resultobj = SWIG_Py_Void();
25698 return resultobj;
25699fail:
25700 return NULL;
25701}
25702
25703
25704SWIGINTERN PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25705 PyObject *resultobj = 0;
25706 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25707 wxColour *arg2 = 0 ;
25708 void *argp1 = 0 ;
25709 int res1 = 0 ;
25710 wxColour temp2 ;
25711 PyObject * obj0 = 0 ;
25712 PyObject * obj1 = 0 ;
25713 char * kwnames[] = {
25714 (char *) "self",(char *) "colText", NULL
25715 };
25716
25717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
25718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25719 if (!SWIG_IsOK(res1)) {
25720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25721 }
25722 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25723 {
25724 arg2 = &temp2;
25725 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25726 }
25727 {
25728 PyThreadState* __tstate = wxPyBeginAllowThreads();
25729 (arg1)->SetTextColour((wxColour const &)*arg2);
25730 wxPyEndAllowThreads(__tstate);
25731 if (PyErr_Occurred()) SWIG_fail;
25732 }
25733 resultobj = SWIG_Py_Void();
25734 return resultobj;
25735fail:
25736 return NULL;
25737}
25738
25739
25740SWIGINTERN PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25741 PyObject *resultobj = 0;
25742 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25743 wxColour *arg2 = 0 ;
25744 void *argp1 = 0 ;
25745 int res1 = 0 ;
25746 wxColour temp2 ;
25747 PyObject * obj0 = 0 ;
25748 PyObject * obj1 = 0 ;
25749 char * kwnames[] = {
25750 (char *) "self",(char *) "colBack", NULL
25751 };
25752
25753 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
25754 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25755 if (!SWIG_IsOK(res1)) {
25756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25757 }
25758 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25759 {
25760 arg2 = &temp2;
25761 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25762 }
25763 {
25764 PyThreadState* __tstate = wxPyBeginAllowThreads();
25765 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
25766 wxPyEndAllowThreads(__tstate);
25767 if (PyErr_Occurred()) SWIG_fail;
25768 }
25769 resultobj = SWIG_Py_Void();
25770 return resultobj;
25771fail:
25772 return NULL;
25773}
25774
25775
25776SWIGINTERN PyObject *_wrap_ListItemAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25777 PyObject *resultobj = 0;
25778 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25779 wxFont *arg2 = 0 ;
25780 void *argp1 = 0 ;
25781 int res1 = 0 ;
25782 void *argp2 = 0 ;
25783 int res2 = 0 ;
25784 PyObject * obj0 = 0 ;
25785 PyObject * obj1 = 0 ;
25786 char * kwnames[] = {
25787 (char *) "self",(char *) "font", NULL
25788 };
25789
25790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
25791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25792 if (!SWIG_IsOK(res1)) {
25793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25794 }
25795 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25796 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
25797 if (!SWIG_IsOK(res2)) {
25798 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25799 }
25800 if (!argp2) {
25801 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25802 }
25803 arg2 = reinterpret_cast< wxFont * >(argp2);
25804 {
25805 PyThreadState* __tstate = wxPyBeginAllowThreads();
25806 (arg1)->SetFont((wxFont const &)*arg2);
25807 wxPyEndAllowThreads(__tstate);
25808 if (PyErr_Occurred()) SWIG_fail;
25809 }
25810 resultobj = SWIG_Py_Void();
25811 return resultobj;
25812fail:
25813 return NULL;
d14a1e28
RD
25814}
25815
25816
0085ce49
RD
25817SWIGINTERN PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25818 PyObject *resultobj = 0;
25819 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25820 bool result;
25821 void *argp1 = 0 ;
25822 int res1 = 0 ;
25823 PyObject *swig_obj[1] ;
25824
25825 if (!args) SWIG_fail;
25826 swig_obj[0] = args;
25827 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25828 if (!SWIG_IsOK(res1)) {
25829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25830 }
25831 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25832 {
25833 PyThreadState* __tstate = wxPyBeginAllowThreads();
25834 result = (bool)(arg1)->HasTextColour();
25835 wxPyEndAllowThreads(__tstate);
25836 if (PyErr_Occurred()) SWIG_fail;
25837 }
25838 {
25839 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25840 }
25841 return resultobj;
25842fail:
25843 return NULL;
d14a1e28
RD
25844}
25845
25846
0085ce49
RD
25847SWIGINTERN PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25848 PyObject *resultobj = 0;
25849 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25850 bool result;
25851 void *argp1 = 0 ;
25852 int res1 = 0 ;
25853 PyObject *swig_obj[1] ;
25854
25855 if (!args) SWIG_fail;
25856 swig_obj[0] = args;
25857 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25858 if (!SWIG_IsOK(res1)) {
25859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25860 }
25861 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25862 {
25863 PyThreadState* __tstate = wxPyBeginAllowThreads();
25864 result = (bool)(arg1)->HasBackgroundColour();
25865 wxPyEndAllowThreads(__tstate);
25866 if (PyErr_Occurred()) SWIG_fail;
25867 }
25868 {
25869 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25870 }
25871 return resultobj;
25872fail:
25873 return NULL;
d14a1e28
RD
25874}
25875
25876
0085ce49
RD
25877SWIGINTERN PyObject *_wrap_ListItemAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25878 PyObject *resultobj = 0;
25879 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25880 bool result;
25881 void *argp1 = 0 ;
25882 int res1 = 0 ;
25883 PyObject *swig_obj[1] ;
25884
25885 if (!args) SWIG_fail;
25886 swig_obj[0] = args;
25887 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25888 if (!SWIG_IsOK(res1)) {
25889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25890 }
25891 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25892 {
25893 PyThreadState* __tstate = wxPyBeginAllowThreads();
25894 result = (bool)(arg1)->HasFont();
25895 wxPyEndAllowThreads(__tstate);
25896 if (PyErr_Occurred()) SWIG_fail;
25897 }
25898 {
25899 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25900 }
25901 return resultobj;
25902fail:
25903 return NULL;
d14a1e28
RD
25904}
25905
25906
0085ce49
RD
25907SWIGINTERN PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25908 PyObject *resultobj = 0;
25909 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25910 wxColour result;
25911 void *argp1 = 0 ;
25912 int res1 = 0 ;
25913 PyObject *swig_obj[1] ;
25914
25915 if (!args) SWIG_fail;
25916 swig_obj[0] = args;
25917 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25918 if (!SWIG_IsOK(res1)) {
25919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25920 }
25921 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25922 {
25923 PyThreadState* __tstate = wxPyBeginAllowThreads();
25924 result = (arg1)->GetTextColour();
25925 wxPyEndAllowThreads(__tstate);
25926 if (PyErr_Occurred()) SWIG_fail;
25927 }
25928 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
25929 return resultobj;
25930fail:
25931 return NULL;
d14a1e28
RD
25932}
25933
25934
0085ce49
RD
25935SWIGINTERN PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25936 PyObject *resultobj = 0;
25937 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25938 wxColour result;
25939 void *argp1 = 0 ;
25940 int res1 = 0 ;
25941 PyObject *swig_obj[1] ;
25942
25943 if (!args) SWIG_fail;
25944 swig_obj[0] = args;
25945 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25946 if (!SWIG_IsOK(res1)) {
25947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25948 }
25949 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25950 {
25951 PyThreadState* __tstate = wxPyBeginAllowThreads();
25952 result = (arg1)->GetBackgroundColour();
25953 wxPyEndAllowThreads(__tstate);
25954 if (PyErr_Occurred()) SWIG_fail;
25955 }
25956 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
25957 return resultobj;
25958fail:
25959 return NULL;
d14a1e28
RD
25960}
25961
25962
0085ce49
RD
25963SWIGINTERN PyObject *_wrap_ListItemAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25964 PyObject *resultobj = 0;
25965 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25966 wxFont result;
25967 void *argp1 = 0 ;
25968 int res1 = 0 ;
25969 PyObject *swig_obj[1] ;
25970
25971 if (!args) SWIG_fail;
25972 swig_obj[0] = args;
25973 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25974 if (!SWIG_IsOK(res1)) {
25975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25976 }
25977 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25978 {
25979 PyThreadState* __tstate = wxPyBeginAllowThreads();
25980 result = (arg1)->GetFont();
25981 wxPyEndAllowThreads(__tstate);
25982 if (PyErr_Occurred()) SWIG_fail;
25983 }
25984 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
25985 return resultobj;
25986fail:
25987 return NULL;
25988}
25989
25990
25991SWIGINTERN PyObject *_wrap_ListItemAttr_AssignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25992 PyObject *resultobj = 0;
25993 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25994 wxListItemAttr *arg2 = 0 ;
25995 void *argp1 = 0 ;
25996 int res1 = 0 ;
25997 void *argp2 = 0 ;
25998 int res2 = 0 ;
25999 PyObject * obj0 = 0 ;
26000 PyObject * obj1 = 0 ;
26001 char * kwnames[] = {
26002 (char *) "self",(char *) "source", NULL
26003 };
26004
26005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_AssignFrom",kwnames,&obj0,&obj1)) SWIG_fail;
26006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26007 if (!SWIG_IsOK(res1)) {
26008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26009 }
26010 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26011 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItemAttr, 0 | 0);
26012 if (!SWIG_IsOK(res2)) {
26013 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26014 }
26015 if (!argp2) {
26016 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26017 }
26018 arg2 = reinterpret_cast< wxListItemAttr * >(argp2);
26019 {
26020 PyThreadState* __tstate = wxPyBeginAllowThreads();
26021 (arg1)->AssignFrom((wxListItemAttr const &)*arg2);
26022 wxPyEndAllowThreads(__tstate);
26023 if (PyErr_Occurred()) SWIG_fail;
26024 }
26025 resultobj = SWIG_Py_Void();
26026 return resultobj;
26027fail:
26028 return NULL;
d14a1e28
RD
26029}
26030
26031
0085ce49
RD
26032SWIGINTERN PyObject *_wrap_ListItemAttr_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26033 PyObject *resultobj = 0;
26034 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26035 void *argp1 = 0 ;
26036 int res1 = 0 ;
26037 PyObject *swig_obj[1] ;
26038
26039 if (!args) SWIG_fail;
26040 swig_obj[0] = args;
26041 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26042 if (!SWIG_IsOK(res1)) {
26043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_Destroy" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26044 }
26045 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26046 {
26047 PyThreadState* __tstate = wxPyBeginAllowThreads();
26048 wxListItemAttr_Destroy(arg1);
26049 wxPyEndAllowThreads(__tstate);
26050 if (PyErr_Occurred()) SWIG_fail;
26051 }
26052 resultobj = SWIG_Py_Void();
26053 return resultobj;
26054fail:
26055 return NULL;
d14a1e28
RD
26056}
26057
26058
0085ce49
RD
26059SWIGINTERN PyObject *ListItemAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26060 PyObject *obj;
26061 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26062 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItemAttr, SWIG_NewClientData(obj));
26063 return SWIG_Py_Void();
d14a1e28
RD
26064}
26065
0085ce49
RD
26066SWIGINTERN PyObject *ListItemAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26067 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
26068}
26069
0085ce49
RD
26070SWIGINTERN PyObject *_wrap_new_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26071 PyObject *resultobj = 0;
26072 wxListItem *result = 0 ;
26073
26074 if (!SWIG_Python_UnpackTuple(args,"new_ListItem",0,0,0)) SWIG_fail;
26075 {
26076 PyThreadState* __tstate = wxPyBeginAllowThreads();
26077 result = (wxListItem *)new wxListItem();
26078 wxPyEndAllowThreads(__tstate);
26079 if (PyErr_Occurred()) SWIG_fail;
26080 }
26081 {
26082 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
26083 }
26084 return resultobj;
26085fail:
26086 return NULL;
d14a1e28
RD
26087}
26088
26089
0085ce49
RD
26090SWIGINTERN PyObject *_wrap_delete_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26091 PyObject *resultobj = 0;
26092 wxListItem *arg1 = (wxListItem *) 0 ;
26093 void *argp1 = 0 ;
26094 int res1 = 0 ;
26095 PyObject *swig_obj[1] ;
26096
26097 if (!args) SWIG_fail;
26098 swig_obj[0] = args;
26099 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, SWIG_POINTER_DISOWN | 0 );
26100 if (!SWIG_IsOK(res1)) {
26101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItem" "', expected argument " "1"" of type '" "wxListItem *""'");
26102 }
26103 arg1 = reinterpret_cast< wxListItem * >(argp1);
26104 {
26105 PyThreadState* __tstate = wxPyBeginAllowThreads();
26106 delete arg1;
d14a1e28 26107
0085ce49
RD
26108 wxPyEndAllowThreads(__tstate);
26109 if (PyErr_Occurred()) SWIG_fail;
26110 }
26111 resultobj = SWIG_Py_Void();
26112 return resultobj;
26113fail:
26114 return NULL;
d14a1e28
RD
26115}
26116
26117
0085ce49
RD
26118SWIGINTERN PyObject *_wrap_ListItem_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26119 PyObject *resultobj = 0;
26120 wxListItem *arg1 = (wxListItem *) 0 ;
26121 void *argp1 = 0 ;
26122 int res1 = 0 ;
26123 PyObject *swig_obj[1] ;
26124
26125 if (!args) SWIG_fail;
26126 swig_obj[0] = args;
26127 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26128 if (!SWIG_IsOK(res1)) {
26129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_Clear" "', expected argument " "1"" of type '" "wxListItem *""'");
26130 }
26131 arg1 = reinterpret_cast< wxListItem * >(argp1);
26132 {
26133 PyThreadState* __tstate = wxPyBeginAllowThreads();
26134 (arg1)->Clear();
26135 wxPyEndAllowThreads(__tstate);
26136 if (PyErr_Occurred()) SWIG_fail;
26137 }
26138 resultobj = SWIG_Py_Void();
26139 return resultobj;
26140fail:
26141 return NULL;
d14a1e28
RD
26142}
26143
26144
0085ce49
RD
26145SWIGINTERN PyObject *_wrap_ListItem_ClearAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26146 PyObject *resultobj = 0;
26147 wxListItem *arg1 = (wxListItem *) 0 ;
26148 void *argp1 = 0 ;
26149 int res1 = 0 ;
26150 PyObject *swig_obj[1] ;
26151
26152 if (!args) SWIG_fail;
26153 swig_obj[0] = args;
26154 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26155 if (!SWIG_IsOK(res1)) {
26156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_ClearAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26157 }
26158 arg1 = reinterpret_cast< wxListItem * >(argp1);
26159 {
26160 PyThreadState* __tstate = wxPyBeginAllowThreads();
26161 (arg1)->ClearAttributes();
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_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26173 PyObject *resultobj = 0;
26174 wxListItem *arg1 = (wxListItem *) 0 ;
26175 long arg2 ;
26176 void *argp1 = 0 ;
26177 int res1 = 0 ;
26178 long val2 ;
26179 int ecode2 = 0 ;
26180 PyObject * obj0 = 0 ;
26181 PyObject * obj1 = 0 ;
26182 char * kwnames[] = {
26183 (char *) "self",(char *) "mask", NULL
26184 };
26185
26186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
26187 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26188 if (!SWIG_IsOK(res1)) {
26189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26190 }
26191 arg1 = reinterpret_cast< wxListItem * >(argp1);
26192 ecode2 = SWIG_AsVal_long(obj1, &val2);
26193 if (!SWIG_IsOK(ecode2)) {
26194 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetMask" "', expected argument " "2"" of type '" "long""'");
26195 }
26196 arg2 = static_cast< long >(val2);
26197 {
26198 PyThreadState* __tstate = wxPyBeginAllowThreads();
26199 (arg1)->SetMask(arg2);
26200 wxPyEndAllowThreads(__tstate);
26201 if (PyErr_Occurred()) SWIG_fail;
26202 }
26203 resultobj = SWIG_Py_Void();
26204 return resultobj;
26205fail:
26206 return NULL;
26207}
26208
26209
26210SWIGINTERN PyObject *_wrap_ListItem_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26211 PyObject *resultobj = 0;
26212 wxListItem *arg1 = (wxListItem *) 0 ;
26213 long arg2 ;
26214 void *argp1 = 0 ;
26215 int res1 = 0 ;
26216 long val2 ;
26217 int ecode2 = 0 ;
26218 PyObject * obj0 = 0 ;
26219 PyObject * obj1 = 0 ;
26220 char * kwnames[] = {
26221 (char *) "self",(char *) "id", NULL
26222 };
26223
26224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
26225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26226 if (!SWIG_IsOK(res1)) {
26227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26228 }
26229 arg1 = reinterpret_cast< wxListItem * >(argp1);
26230 ecode2 = SWIG_AsVal_long(obj1, &val2);
26231 if (!SWIG_IsOK(ecode2)) {
26232 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetId" "', expected argument " "2"" of type '" "long""'");
26233 }
26234 arg2 = static_cast< long >(val2);
26235 {
26236 PyThreadState* __tstate = wxPyBeginAllowThreads();
26237 (arg1)->SetId(arg2);
26238 wxPyEndAllowThreads(__tstate);
26239 if (PyErr_Occurred()) SWIG_fail;
26240 }
26241 resultobj = SWIG_Py_Void();
26242 return resultobj;
26243fail:
26244 return NULL;
26245}
26246
26247
26248SWIGINTERN PyObject *_wrap_ListItem_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26249 PyObject *resultobj = 0;
26250 wxListItem *arg1 = (wxListItem *) 0 ;
26251 int arg2 ;
26252 void *argp1 = 0 ;
26253 int res1 = 0 ;
26254 int val2 ;
26255 int ecode2 = 0 ;
26256 PyObject * obj0 = 0 ;
26257 PyObject * obj1 = 0 ;
26258 char * kwnames[] = {
26259 (char *) "self",(char *) "col", NULL
26260 };
26261
26262 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
26263 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26264 if (!SWIG_IsOK(res1)) {
26265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26266 }
26267 arg1 = reinterpret_cast< wxListItem * >(argp1);
26268 ecode2 = SWIG_AsVal_int(obj1, &val2);
26269 if (!SWIG_IsOK(ecode2)) {
26270 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetColumn" "', expected argument " "2"" of type '" "int""'");
26271 }
26272 arg2 = static_cast< int >(val2);
26273 {
26274 PyThreadState* __tstate = wxPyBeginAllowThreads();
26275 (arg1)->SetColumn(arg2);
26276 wxPyEndAllowThreads(__tstate);
26277 if (PyErr_Occurred()) SWIG_fail;
26278 }
26279 resultobj = SWIG_Py_Void();
26280 return resultobj;
26281fail:
26282 return NULL;
26283}
26284
26285
26286SWIGINTERN PyObject *_wrap_ListItem_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26287 PyObject *resultobj = 0;
26288 wxListItem *arg1 = (wxListItem *) 0 ;
26289 long arg2 ;
26290 void *argp1 = 0 ;
26291 int res1 = 0 ;
26292 long val2 ;
26293 int ecode2 = 0 ;
26294 PyObject * obj0 = 0 ;
26295 PyObject * obj1 = 0 ;
26296 char * kwnames[] = {
26297 (char *) "self",(char *) "state", NULL
26298 };
26299
26300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) SWIG_fail;
26301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26302 if (!SWIG_IsOK(res1)) {
26303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26304 }
26305 arg1 = reinterpret_cast< wxListItem * >(argp1);
26306 ecode2 = SWIG_AsVal_long(obj1, &val2);
26307 if (!SWIG_IsOK(ecode2)) {
26308 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetState" "', expected argument " "2"" of type '" "long""'");
26309 }
26310 arg2 = static_cast< long >(val2);
26311 {
26312 PyThreadState* __tstate = wxPyBeginAllowThreads();
26313 (arg1)->SetState(arg2);
26314 wxPyEndAllowThreads(__tstate);
26315 if (PyErr_Occurred()) SWIG_fail;
26316 }
26317 resultobj = SWIG_Py_Void();
26318 return resultobj;
26319fail:
26320 return NULL;
26321}
26322
26323
26324SWIGINTERN PyObject *_wrap_ListItem_SetStateMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26325 PyObject *resultobj = 0;
26326 wxListItem *arg1 = (wxListItem *) 0 ;
26327 long arg2 ;
26328 void *argp1 = 0 ;
26329 int res1 = 0 ;
26330 long val2 ;
26331 int ecode2 = 0 ;
26332 PyObject * obj0 = 0 ;
26333 PyObject * obj1 = 0 ;
26334 char * kwnames[] = {
26335 (char *) "self",(char *) "stateMask", NULL
26336 };
26337
26338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) SWIG_fail;
26339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26340 if (!SWIG_IsOK(res1)) {
26341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetStateMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26342 }
26343 arg1 = reinterpret_cast< wxListItem * >(argp1);
26344 ecode2 = SWIG_AsVal_long(obj1, &val2);
26345 if (!SWIG_IsOK(ecode2)) {
26346 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetStateMask" "', expected argument " "2"" of type '" "long""'");
26347 }
26348 arg2 = static_cast< long >(val2);
26349 {
26350 PyThreadState* __tstate = wxPyBeginAllowThreads();
26351 (arg1)->SetStateMask(arg2);
26352 wxPyEndAllowThreads(__tstate);
26353 if (PyErr_Occurred()) SWIG_fail;
26354 }
26355 resultobj = SWIG_Py_Void();
26356 return resultobj;
26357fail:
26358 return NULL;
26359}
26360
26361
26362SWIGINTERN PyObject *_wrap_ListItem_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26363 PyObject *resultobj = 0;
26364 wxListItem *arg1 = (wxListItem *) 0 ;
26365 wxString *arg2 = 0 ;
26366 void *argp1 = 0 ;
26367 int res1 = 0 ;
26368 bool temp2 = false ;
26369 PyObject * obj0 = 0 ;
26370 PyObject * obj1 = 0 ;
26371 char * kwnames[] = {
26372 (char *) "self",(char *) "text", NULL
26373 };
26374
26375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) SWIG_fail;
26376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26377 if (!SWIG_IsOK(res1)) {
26378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26379 }
26380 arg1 = reinterpret_cast< wxListItem * >(argp1);
26381 {
26382 arg2 = wxString_in_helper(obj1);
26383 if (arg2 == NULL) SWIG_fail;
26384 temp2 = true;
26385 }
26386 {
26387 PyThreadState* __tstate = wxPyBeginAllowThreads();
26388 (arg1)->SetText((wxString const &)*arg2);
26389 wxPyEndAllowThreads(__tstate);
26390 if (PyErr_Occurred()) SWIG_fail;
26391 }
26392 resultobj = SWIG_Py_Void();
26393 {
26394 if (temp2)
26395 delete arg2;
26396 }
26397 return resultobj;
26398fail:
26399 {
26400 if (temp2)
26401 delete arg2;
26402 }
26403 return NULL;
26404}
26405
26406
26407SWIGINTERN PyObject *_wrap_ListItem_SetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26408 PyObject *resultobj = 0;
26409 wxListItem *arg1 = (wxListItem *) 0 ;
26410 int arg2 ;
26411 void *argp1 = 0 ;
26412 int res1 = 0 ;
26413 int val2 ;
26414 int ecode2 = 0 ;
26415 PyObject * obj0 = 0 ;
26416 PyObject * obj1 = 0 ;
26417 char * kwnames[] = {
26418 (char *) "self",(char *) "image", NULL
26419 };
26420
26421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) SWIG_fail;
26422 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26423 if (!SWIG_IsOK(res1)) {
26424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26425 }
26426 arg1 = reinterpret_cast< wxListItem * >(argp1);
26427 ecode2 = SWIG_AsVal_int(obj1, &val2);
26428 if (!SWIG_IsOK(ecode2)) {
26429 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetImage" "', expected argument " "2"" of type '" "int""'");
26430 }
26431 arg2 = static_cast< int >(val2);
26432 {
26433 PyThreadState* __tstate = wxPyBeginAllowThreads();
26434 (arg1)->SetImage(arg2);
26435 wxPyEndAllowThreads(__tstate);
26436 if (PyErr_Occurred()) SWIG_fail;
26437 }
26438 resultobj = SWIG_Py_Void();
26439 return resultobj;
26440fail:
26441 return NULL;
26442}
26443
26444
26445SWIGINTERN PyObject *_wrap_ListItem_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26446 PyObject *resultobj = 0;
26447 wxListItem *arg1 = (wxListItem *) 0 ;
26448 long arg2 ;
26449 void *argp1 = 0 ;
26450 int res1 = 0 ;
26451 long val2 ;
26452 int ecode2 = 0 ;
26453 PyObject * obj0 = 0 ;
26454 PyObject * obj1 = 0 ;
26455 char * kwnames[] = {
26456 (char *) "self",(char *) "data", NULL
26457 };
26458
26459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
26460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26461 if (!SWIG_IsOK(res1)) {
26462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26463 }
26464 arg1 = reinterpret_cast< wxListItem * >(argp1);
26465 ecode2 = SWIG_AsVal_long(obj1, &val2);
26466 if (!SWIG_IsOK(ecode2)) {
26467 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetData" "', expected argument " "2"" of type '" "long""'");
26468 }
26469 arg2 = static_cast< long >(val2);
26470 {
26471 PyThreadState* __tstate = wxPyBeginAllowThreads();
26472 (arg1)->SetData(arg2);
26473 wxPyEndAllowThreads(__tstate);
26474 if (PyErr_Occurred()) SWIG_fail;
26475 }
26476 resultobj = SWIG_Py_Void();
26477 return resultobj;
26478fail:
26479 return NULL;
26480}
26481
26482
26483SWIGINTERN PyObject *_wrap_ListItem_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26484 PyObject *resultobj = 0;
26485 wxListItem *arg1 = (wxListItem *) 0 ;
26486 int arg2 ;
26487 void *argp1 = 0 ;
26488 int res1 = 0 ;
26489 int val2 ;
26490 int ecode2 = 0 ;
26491 PyObject * obj0 = 0 ;
26492 PyObject * obj1 = 0 ;
26493 char * kwnames[] = {
26494 (char *) "self",(char *) "width", NULL
26495 };
26496
26497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
26498 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26499 if (!SWIG_IsOK(res1)) {
26500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26501 }
26502 arg1 = reinterpret_cast< wxListItem * >(argp1);
26503 ecode2 = SWIG_AsVal_int(obj1, &val2);
26504 if (!SWIG_IsOK(ecode2)) {
26505 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetWidth" "', expected argument " "2"" of type '" "int""'");
26506 }
26507 arg2 = static_cast< int >(val2);
26508 {
26509 PyThreadState* __tstate = wxPyBeginAllowThreads();
26510 (arg1)->SetWidth(arg2);
26511 wxPyEndAllowThreads(__tstate);
26512 if (PyErr_Occurred()) SWIG_fail;
26513 }
26514 resultobj = SWIG_Py_Void();
26515 return resultobj;
26516fail:
26517 return NULL;
26518}
26519
26520
26521SWIGINTERN PyObject *_wrap_ListItem_SetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26522 PyObject *resultobj = 0;
26523 wxListItem *arg1 = (wxListItem *) 0 ;
26524 wxListColumnFormat arg2 ;
26525 void *argp1 = 0 ;
26526 int res1 = 0 ;
26527 int val2 ;
26528 int ecode2 = 0 ;
26529 PyObject * obj0 = 0 ;
26530 PyObject * obj1 = 0 ;
26531 char * kwnames[] = {
26532 (char *) "self",(char *) "align", NULL
26533 };
26534
26535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) SWIG_fail;
26536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26537 if (!SWIG_IsOK(res1)) {
26538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
26539 }
26540 arg1 = reinterpret_cast< wxListItem * >(argp1);
26541 ecode2 = SWIG_AsVal_int(obj1, &val2);
26542 if (!SWIG_IsOK(ecode2)) {
26543 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetAlign" "', expected argument " "2"" of type '" "wxListColumnFormat""'");
26544 }
26545 arg2 = static_cast< wxListColumnFormat >(val2);
26546 {
26547 PyThreadState* __tstate = wxPyBeginAllowThreads();
26548 (arg1)->SetAlign(arg2);
26549 wxPyEndAllowThreads(__tstate);
26550 if (PyErr_Occurred()) SWIG_fail;
26551 }
26552 resultobj = SWIG_Py_Void();
26553 return resultobj;
26554fail:
26555 return NULL;
26556}
26557
26558
26559SWIGINTERN PyObject *_wrap_ListItem_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26560 PyObject *resultobj = 0;
26561 wxListItem *arg1 = (wxListItem *) 0 ;
26562 wxColour *arg2 = 0 ;
26563 void *argp1 = 0 ;
26564 int res1 = 0 ;
26565 wxColour temp2 ;
26566 PyObject * obj0 = 0 ;
26567 PyObject * obj1 = 0 ;
26568 char * kwnames[] = {
26569 (char *) "self",(char *) "colText", NULL
26570 };
26571
26572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
26573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26574 if (!SWIG_IsOK(res1)) {
26575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetTextColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26576 }
26577 arg1 = reinterpret_cast< wxListItem * >(argp1);
26578 {
26579 arg2 = &temp2;
26580 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26581 }
26582 {
26583 PyThreadState* __tstate = wxPyBeginAllowThreads();
26584 (arg1)->SetTextColour((wxColour const &)*arg2);
26585 wxPyEndAllowThreads(__tstate);
26586 if (PyErr_Occurred()) SWIG_fail;
26587 }
26588 resultobj = SWIG_Py_Void();
26589 return resultobj;
26590fail:
26591 return NULL;
26592}
26593
26594
26595SWIGINTERN PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26596 PyObject *resultobj = 0;
26597 wxListItem *arg1 = (wxListItem *) 0 ;
26598 wxColour *arg2 = 0 ;
26599 void *argp1 = 0 ;
26600 int res1 = 0 ;
26601 wxColour temp2 ;
26602 PyObject * obj0 = 0 ;
26603 PyObject * obj1 = 0 ;
26604 char * kwnames[] = {
26605 (char *) "self",(char *) "colBack", NULL
26606 };
26607
26608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
26609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26610 if (!SWIG_IsOK(res1)) {
26611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26612 }
26613 arg1 = reinterpret_cast< wxListItem * >(argp1);
26614 {
26615 arg2 = &temp2;
26616 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26617 }
26618 {
26619 PyThreadState* __tstate = wxPyBeginAllowThreads();
26620 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
26621 wxPyEndAllowThreads(__tstate);
26622 if (PyErr_Occurred()) SWIG_fail;
26623 }
26624 resultobj = SWIG_Py_Void();
26625 return resultobj;
26626fail:
26627 return NULL;
26628}
26629
26630
26631SWIGINTERN PyObject *_wrap_ListItem_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26632 PyObject *resultobj = 0;
26633 wxListItem *arg1 = (wxListItem *) 0 ;
26634 wxFont *arg2 = 0 ;
26635 void *argp1 = 0 ;
26636 int res1 = 0 ;
26637 void *argp2 = 0 ;
26638 int res2 = 0 ;
26639 PyObject * obj0 = 0 ;
26640 PyObject * obj1 = 0 ;
26641 char * kwnames[] = {
26642 (char *) "self",(char *) "font", NULL
26643 };
26644
26645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26647 if (!SWIG_IsOK(res1)) {
26648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetFont" "', expected argument " "1"" of type '" "wxListItem *""'");
26649 }
26650 arg1 = reinterpret_cast< wxListItem * >(argp1);
26651 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26652 if (!SWIG_IsOK(res2)) {
26653 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26654 }
26655 if (!argp2) {
26656 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26657 }
26658 arg2 = reinterpret_cast< wxFont * >(argp2);
26659 {
26660 PyThreadState* __tstate = wxPyBeginAllowThreads();
26661 (arg1)->SetFont((wxFont const &)*arg2);
26662 wxPyEndAllowThreads(__tstate);
26663 if (PyErr_Occurred()) SWIG_fail;
26664 }
26665 resultobj = SWIG_Py_Void();
26666 return resultobj;
26667fail:
26668 return NULL;
d14a1e28
RD
26669}
26670
26671
0085ce49
RD
26672SWIGINTERN PyObject *_wrap_ListItem_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26673 PyObject *resultobj = 0;
26674 wxListItem *arg1 = (wxListItem *) 0 ;
26675 long result;
26676 void *argp1 = 0 ;
26677 int res1 = 0 ;
26678 PyObject *swig_obj[1] ;
26679
26680 if (!args) SWIG_fail;
26681 swig_obj[0] = args;
26682 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26683 if (!SWIG_IsOK(res1)) {
26684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26685 }
26686 arg1 = reinterpret_cast< wxListItem * >(argp1);
26687 {
26688 PyThreadState* __tstate = wxPyBeginAllowThreads();
26689 result = (long)(arg1)->GetMask();
26690 wxPyEndAllowThreads(__tstate);
26691 if (PyErr_Occurred()) SWIG_fail;
26692 }
26693 resultobj = SWIG_From_long(static_cast< long >(result));
26694 return resultobj;
26695fail:
26696 return NULL;
d14a1e28
RD
26697}
26698
26699
0085ce49
RD
26700SWIGINTERN PyObject *_wrap_ListItem_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26701 PyObject *resultobj = 0;
26702 wxListItem *arg1 = (wxListItem *) 0 ;
26703 long result;
26704 void *argp1 = 0 ;
26705 int res1 = 0 ;
26706 PyObject *swig_obj[1] ;
26707
26708 if (!args) SWIG_fail;
26709 swig_obj[0] = args;
26710 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26711 if (!SWIG_IsOK(res1)) {
26712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26713 }
26714 arg1 = reinterpret_cast< wxListItem * >(argp1);
26715 {
26716 PyThreadState* __tstate = wxPyBeginAllowThreads();
26717 result = (long)(arg1)->GetId();
26718 wxPyEndAllowThreads(__tstate);
26719 if (PyErr_Occurred()) SWIG_fail;
26720 }
26721 resultobj = SWIG_From_long(static_cast< long >(result));
26722 return resultobj;
26723fail:
26724 return NULL;
d14a1e28
RD
26725}
26726
26727
0085ce49
RD
26728SWIGINTERN PyObject *_wrap_ListItem_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26729 PyObject *resultobj = 0;
26730 wxListItem *arg1 = (wxListItem *) 0 ;
26731 int result;
26732 void *argp1 = 0 ;
26733 int res1 = 0 ;
26734 PyObject *swig_obj[1] ;
26735
26736 if (!args) SWIG_fail;
26737 swig_obj[0] = args;
26738 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26739 if (!SWIG_IsOK(res1)) {
26740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26741 }
26742 arg1 = reinterpret_cast< wxListItem * >(argp1);
26743 {
26744 PyThreadState* __tstate = wxPyBeginAllowThreads();
26745 result = (int)(arg1)->GetColumn();
26746 wxPyEndAllowThreads(__tstate);
26747 if (PyErr_Occurred()) SWIG_fail;
26748 }
26749 resultobj = SWIG_From_int(static_cast< int >(result));
26750 return resultobj;
26751fail:
26752 return NULL;
22bfe96c
RD
26753}
26754
26755
0085ce49
RD
26756SWIGINTERN PyObject *_wrap_ListItem_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26757 PyObject *resultobj = 0;
26758 wxListItem *arg1 = (wxListItem *) 0 ;
26759 long result;
26760 void *argp1 = 0 ;
26761 int res1 = 0 ;
26762 PyObject *swig_obj[1] ;
26763
26764 if (!args) SWIG_fail;
26765 swig_obj[0] = args;
26766 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26767 if (!SWIG_IsOK(res1)) {
26768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26769 }
26770 arg1 = reinterpret_cast< wxListItem * >(argp1);
26771 {
26772 PyThreadState* __tstate = wxPyBeginAllowThreads();
26773 result = (long)(arg1)->GetState();
26774 wxPyEndAllowThreads(__tstate);
26775 if (PyErr_Occurred()) SWIG_fail;
26776 }
26777 resultobj = SWIG_From_long(static_cast< long >(result));
26778 return resultobj;
26779fail:
26780 return NULL;
b2dc1044
RD
26781}
26782
26783
0085ce49
RD
26784SWIGINTERN PyObject *_wrap_ListItem_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26785 PyObject *resultobj = 0;
26786 wxListItem *arg1 = (wxListItem *) 0 ;
26787 wxString *result = 0 ;
26788 void *argp1 = 0 ;
26789 int res1 = 0 ;
26790 PyObject *swig_obj[1] ;
26791
26792 if (!args) SWIG_fail;
26793 swig_obj[0] = args;
26794 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26795 if (!SWIG_IsOK(res1)) {
26796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26797 }
26798 arg1 = reinterpret_cast< wxListItem * >(argp1);
26799 {
26800 PyThreadState* __tstate = wxPyBeginAllowThreads();
b2dc1044 26801 {
0085ce49
RD
26802 wxString const &_result_ref = (arg1)->GetText();
26803 result = (wxString *) &_result_ref;
26804 }
26805 wxPyEndAllowThreads(__tstate);
26806 if (PyErr_Occurred()) SWIG_fail;
26807 }
26808 {
b2dc1044 26809#if wxUSE_UNICODE
0085ce49 26810 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
b2dc1044 26811#else
0085ce49 26812 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
b2dc1044 26813#endif
0085ce49
RD
26814 }
26815 return resultobj;
26816fail:
26817 return NULL;
d14a1e28
RD
26818}
26819
26820
0085ce49
RD
26821SWIGINTERN PyObject *_wrap_ListItem_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26822 PyObject *resultobj = 0;
26823 wxListItem *arg1 = (wxListItem *) 0 ;
26824 int result;
26825 void *argp1 = 0 ;
26826 int res1 = 0 ;
26827 PyObject *swig_obj[1] ;
26828
26829 if (!args) SWIG_fail;
26830 swig_obj[0] = args;
26831 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26832 if (!SWIG_IsOK(res1)) {
26833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26834 }
26835 arg1 = reinterpret_cast< wxListItem * >(argp1);
26836 {
26837 PyThreadState* __tstate = wxPyBeginAllowThreads();
26838 result = (int)(arg1)->GetImage();
26839 wxPyEndAllowThreads(__tstate);
26840 if (PyErr_Occurred()) SWIG_fail;
26841 }
26842 resultobj = SWIG_From_int(static_cast< int >(result));
26843 return resultobj;
26844fail:
26845 return NULL;
d14a1e28
RD
26846}
26847
26848
0085ce49
RD
26849SWIGINTERN PyObject *_wrap_ListItem_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26850 PyObject *resultobj = 0;
26851 wxListItem *arg1 = (wxListItem *) 0 ;
26852 long result;
26853 void *argp1 = 0 ;
26854 int res1 = 0 ;
26855 PyObject *swig_obj[1] ;
26856
26857 if (!args) SWIG_fail;
26858 swig_obj[0] = args;
26859 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26860 if (!SWIG_IsOK(res1)) {
26861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26862 }
26863 arg1 = reinterpret_cast< wxListItem * >(argp1);
26864 {
26865 PyThreadState* __tstate = wxPyBeginAllowThreads();
26866 result = (long)(arg1)->GetData();
26867 wxPyEndAllowThreads(__tstate);
26868 if (PyErr_Occurred()) SWIG_fail;
26869 }
26870 resultobj = SWIG_From_long(static_cast< long >(result));
26871 return resultobj;
26872fail:
26873 return NULL;
d14a1e28
RD
26874}
26875
26876
0085ce49
RD
26877SWIGINTERN PyObject *_wrap_ListItem_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26878 PyObject *resultobj = 0;
26879 wxListItem *arg1 = (wxListItem *) 0 ;
26880 int result;
26881 void *argp1 = 0 ;
26882 int res1 = 0 ;
26883 PyObject *swig_obj[1] ;
26884
26885 if (!args) SWIG_fail;
26886 swig_obj[0] = args;
26887 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26888 if (!SWIG_IsOK(res1)) {
26889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26890 }
26891 arg1 = reinterpret_cast< wxListItem * >(argp1);
26892 {
26893 PyThreadState* __tstate = wxPyBeginAllowThreads();
26894 result = (int)(arg1)->GetWidth();
26895 wxPyEndAllowThreads(__tstate);
26896 if (PyErr_Occurred()) SWIG_fail;
26897 }
26898 resultobj = SWIG_From_int(static_cast< int >(result));
26899 return resultobj;
26900fail:
26901 return NULL;
d14a1e28
RD
26902}
26903
26904
0085ce49
RD
26905SWIGINTERN PyObject *_wrap_ListItem_GetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26906 PyObject *resultobj = 0;
26907 wxListItem *arg1 = (wxListItem *) 0 ;
26908 wxListColumnFormat result;
26909 void *argp1 = 0 ;
26910 int res1 = 0 ;
26911 PyObject *swig_obj[1] ;
26912
26913 if (!args) SWIG_fail;
26914 swig_obj[0] = args;
26915 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26916 if (!SWIG_IsOK(res1)) {
26917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
26918 }
26919 arg1 = reinterpret_cast< wxListItem * >(argp1);
26920 {
26921 PyThreadState* __tstate = wxPyBeginAllowThreads();
26922 result = (wxListColumnFormat)(arg1)->GetAlign();
26923 wxPyEndAllowThreads(__tstate);
26924 if (PyErr_Occurred()) SWIG_fail;
26925 }
26926 resultobj = SWIG_From_int(static_cast< int >(result));
26927 return resultobj;
26928fail:
26929 return NULL;
d14a1e28
RD
26930}
26931
26932
0085ce49
RD
26933SWIGINTERN PyObject *_wrap_ListItem_GetAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26934 PyObject *resultobj = 0;
26935 wxListItem *arg1 = (wxListItem *) 0 ;
26936 wxListItemAttr *result = 0 ;
26937 void *argp1 = 0 ;
26938 int res1 = 0 ;
26939 PyObject *swig_obj[1] ;
26940
26941 if (!args) SWIG_fail;
26942 swig_obj[0] = args;
26943 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26944 if (!SWIG_IsOK(res1)) {
26945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26946 }
26947 arg1 = reinterpret_cast< wxListItem * >(argp1);
26948 {
26949 PyThreadState* __tstate = wxPyBeginAllowThreads();
26950 result = (wxListItemAttr *)(arg1)->GetAttributes();
26951 wxPyEndAllowThreads(__tstate);
26952 if (PyErr_Occurred()) SWIG_fail;
26953 }
26954 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26955 return resultobj;
26956fail:
26957 return NULL;
d14a1e28
RD
26958}
26959
26960
0085ce49
RD
26961SWIGINTERN PyObject *_wrap_ListItem_HasAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26962 PyObject *resultobj = 0;
26963 wxListItem *arg1 = (wxListItem *) 0 ;
26964 bool result;
26965 void *argp1 = 0 ;
26966 int res1 = 0 ;
26967 PyObject *swig_obj[1] ;
26968
26969 if (!args) SWIG_fail;
26970 swig_obj[0] = args;
26971 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26972 if (!SWIG_IsOK(res1)) {
26973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_HasAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26974 }
26975 arg1 = reinterpret_cast< wxListItem * >(argp1);
26976 {
26977 PyThreadState* __tstate = wxPyBeginAllowThreads();
26978 result = (bool)(arg1)->HasAttributes();
26979 wxPyEndAllowThreads(__tstate);
26980 if (PyErr_Occurred()) SWIG_fail;
26981 }
26982 {
26983 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26984 }
26985 return resultobj;
26986fail:
26987 return NULL;
22bfe96c
RD
26988}
26989
26990
0085ce49
RD
26991SWIGINTERN PyObject *_wrap_ListItem_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26992 PyObject *resultobj = 0;
26993 wxListItem *arg1 = (wxListItem *) 0 ;
26994 wxColour result;
26995 void *argp1 = 0 ;
26996 int res1 = 0 ;
26997 PyObject *swig_obj[1] ;
26998
26999 if (!args) SWIG_fail;
27000 swig_obj[0] = args;
27001 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27002 if (!SWIG_IsOK(res1)) {
27003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetTextColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27004 }
27005 arg1 = reinterpret_cast< wxListItem * >(argp1);
27006 {
27007 PyThreadState* __tstate = wxPyBeginAllowThreads();
27008 result = ((wxListItem const *)arg1)->GetTextColour();
27009 wxPyEndAllowThreads(__tstate);
27010 if (PyErr_Occurred()) SWIG_fail;
27011 }
27012 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27013 return resultobj;
27014fail:
27015 return NULL;
d14a1e28 27016}
0085ce49
RD
27017
27018
27019SWIGINTERN PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27020 PyObject *resultobj = 0;
27021 wxListItem *arg1 = (wxListItem *) 0 ;
27022 wxColour result;
27023 void *argp1 = 0 ;
27024 int res1 = 0 ;
27025 PyObject *swig_obj[1] ;
27026
27027 if (!args) SWIG_fail;
27028 swig_obj[0] = args;
27029 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27030 if (!SWIG_IsOK(res1)) {
27031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27032 }
27033 arg1 = reinterpret_cast< wxListItem * >(argp1);
27034 {
27035 PyThreadState* __tstate = wxPyBeginAllowThreads();
27036 result = ((wxListItem const *)arg1)->GetBackgroundColour();
27037 wxPyEndAllowThreads(__tstate);
27038 if (PyErr_Occurred()) SWIG_fail;
27039 }
27040 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27041 return resultobj;
27042fail:
27043 return NULL;
b2dc1044
RD
27044}
27045
27046
0085ce49
RD
27047SWIGINTERN PyObject *_wrap_ListItem_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27048 PyObject *resultobj = 0;
27049 wxListItem *arg1 = (wxListItem *) 0 ;
27050 wxFont result;
27051 void *argp1 = 0 ;
27052 int res1 = 0 ;
27053 PyObject *swig_obj[1] ;
27054
27055 if (!args) SWIG_fail;
27056 swig_obj[0] = args;
27057 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27058 if (!SWIG_IsOK(res1)) {
27059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetFont" "', expected argument " "1"" of type '" "wxListItem const *""'");
27060 }
27061 arg1 = reinterpret_cast< wxListItem * >(argp1);
27062 {
27063 PyThreadState* __tstate = wxPyBeginAllowThreads();
27064 result = ((wxListItem const *)arg1)->GetFont();
27065 wxPyEndAllowThreads(__tstate);
27066 if (PyErr_Occurred()) SWIG_fail;
27067 }
27068 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
27069 return resultobj;
27070fail:
27071 return NULL;
27072}
27073
27074
27075SWIGINTERN PyObject *_wrap_ListItem_m_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27076 PyObject *resultobj = 0;
27077 wxListItem *arg1 = (wxListItem *) 0 ;
27078 long arg2 ;
27079 void *argp1 = 0 ;
27080 int res1 = 0 ;
27081 long val2 ;
27082 int ecode2 = 0 ;
27083 PyObject *swig_obj[2] ;
27084
27085 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_mask_set",2,2,swig_obj)) SWIG_fail;
27086 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27087 if (!SWIG_IsOK(res1)) {
27088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27089 }
27090 arg1 = reinterpret_cast< wxListItem * >(argp1);
27091 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27092 if (!SWIG_IsOK(ecode2)) {
27093 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_mask_set" "', expected argument " "2"" of type '" "long""'");
27094 }
27095 arg2 = static_cast< long >(val2);
27096 if (arg1) (arg1)->m_mask = arg2;
27097
27098 resultobj = SWIG_Py_Void();
27099 return resultobj;
27100fail:
27101 return NULL;
b2dc1044
RD
27102}
27103
27104
0085ce49
RD
27105SWIGINTERN PyObject *_wrap_ListItem_m_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27106 PyObject *resultobj = 0;
27107 wxListItem *arg1 = (wxListItem *) 0 ;
27108 long result;
27109 void *argp1 = 0 ;
27110 int res1 = 0 ;
27111 PyObject *swig_obj[1] ;
27112
27113 if (!args) SWIG_fail;
27114 swig_obj[0] = args;
27115 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27116 if (!SWIG_IsOK(res1)) {
27117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27118 }
27119 arg1 = reinterpret_cast< wxListItem * >(argp1);
27120 result = (long) ((arg1)->m_mask);
27121 resultobj = SWIG_From_long(static_cast< long >(result));
27122 return resultobj;
27123fail:
27124 return NULL;
27125}
27126
27127
27128SWIGINTERN PyObject *_wrap_ListItem_m_itemId_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27129 PyObject *resultobj = 0;
27130 wxListItem *arg1 = (wxListItem *) 0 ;
27131 long arg2 ;
27132 void *argp1 = 0 ;
27133 int res1 = 0 ;
27134 long val2 ;
27135 int ecode2 = 0 ;
27136 PyObject *swig_obj[2] ;
27137
27138 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_itemId_set",2,2,swig_obj)) SWIG_fail;
27139 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27140 if (!SWIG_IsOK(res1)) {
27141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27142 }
27143 arg1 = reinterpret_cast< wxListItem * >(argp1);
27144 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27145 if (!SWIG_IsOK(ecode2)) {
27146 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_itemId_set" "', expected argument " "2"" of type '" "long""'");
27147 }
27148 arg2 = static_cast< long >(val2);
27149 if (arg1) (arg1)->m_itemId = arg2;
27150
27151 resultobj = SWIG_Py_Void();
27152 return resultobj;
27153fail:
27154 return NULL;
d14a1e28
RD
27155}
27156
27157
0085ce49
RD
27158SWIGINTERN PyObject *_wrap_ListItem_m_itemId_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27159 PyObject *resultobj = 0;
27160 wxListItem *arg1 = (wxListItem *) 0 ;
27161 long result;
27162 void *argp1 = 0 ;
27163 int res1 = 0 ;
27164 PyObject *swig_obj[1] ;
27165
27166 if (!args) SWIG_fail;
27167 swig_obj[0] = args;
27168 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27169 if (!SWIG_IsOK(res1)) {
27170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27171 }
27172 arg1 = reinterpret_cast< wxListItem * >(argp1);
27173 result = (long) ((arg1)->m_itemId);
27174 resultobj = SWIG_From_long(static_cast< long >(result));
27175 return resultobj;
27176fail:
27177 return NULL;
27178}
27179
27180
27181SWIGINTERN PyObject *_wrap_ListItem_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27182 PyObject *resultobj = 0;
27183 wxListItem *arg1 = (wxListItem *) 0 ;
27184 int arg2 ;
27185 void *argp1 = 0 ;
27186 int res1 = 0 ;
27187 int val2 ;
27188 int ecode2 = 0 ;
27189 PyObject *swig_obj[2] ;
27190
27191 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_col_set",2,2,swig_obj)) SWIG_fail;
27192 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27193 if (!SWIG_IsOK(res1)) {
27194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27195 }
27196 arg1 = reinterpret_cast< wxListItem * >(argp1);
27197 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27198 if (!SWIG_IsOK(ecode2)) {
27199 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_col_set" "', expected argument " "2"" of type '" "int""'");
27200 }
27201 arg2 = static_cast< int >(val2);
27202 if (arg1) (arg1)->m_col = arg2;
27203
27204 resultobj = SWIG_Py_Void();
27205 return resultobj;
27206fail:
27207 return NULL;
d14a1e28
RD
27208}
27209
27210
0085ce49
RD
27211SWIGINTERN PyObject *_wrap_ListItem_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27212 PyObject *resultobj = 0;
27213 wxListItem *arg1 = (wxListItem *) 0 ;
27214 int result;
27215 void *argp1 = 0 ;
27216 int res1 = 0 ;
27217 PyObject *swig_obj[1] ;
27218
27219 if (!args) SWIG_fail;
27220 swig_obj[0] = args;
27221 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27222 if (!SWIG_IsOK(res1)) {
27223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27224 }
27225 arg1 = reinterpret_cast< wxListItem * >(argp1);
27226 result = (int) ((arg1)->m_col);
27227 resultobj = SWIG_From_int(static_cast< int >(result));
27228 return resultobj;
27229fail:
27230 return NULL;
27231}
27232
27233
27234SWIGINTERN PyObject *_wrap_ListItem_m_state_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27235 PyObject *resultobj = 0;
27236 wxListItem *arg1 = (wxListItem *) 0 ;
27237 long arg2 ;
27238 void *argp1 = 0 ;
27239 int res1 = 0 ;
27240 long val2 ;
27241 int ecode2 = 0 ;
27242 PyObject *swig_obj[2] ;
27243
27244 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_state_set",2,2,swig_obj)) SWIG_fail;
27245 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27246 if (!SWIG_IsOK(res1)) {
27247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27248 }
27249 arg1 = reinterpret_cast< wxListItem * >(argp1);
27250 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27251 if (!SWIG_IsOK(ecode2)) {
27252 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_state_set" "', expected argument " "2"" of type '" "long""'");
27253 }
27254 arg2 = static_cast< long >(val2);
27255 if (arg1) (arg1)->m_state = arg2;
27256
27257 resultobj = SWIG_Py_Void();
27258 return resultobj;
27259fail:
27260 return NULL;
8fb0e70a
RD
27261}
27262
27263
0085ce49
RD
27264SWIGINTERN PyObject *_wrap_ListItem_m_state_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27265 PyObject *resultobj = 0;
27266 wxListItem *arg1 = (wxListItem *) 0 ;
27267 long result;
27268 void *argp1 = 0 ;
27269 int res1 = 0 ;
27270 PyObject *swig_obj[1] ;
27271
27272 if (!args) SWIG_fail;
27273 swig_obj[0] = args;
27274 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27275 if (!SWIG_IsOK(res1)) {
27276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27277 }
27278 arg1 = reinterpret_cast< wxListItem * >(argp1);
27279 result = (long) ((arg1)->m_state);
27280 resultobj = SWIG_From_long(static_cast< long >(result));
27281 return resultobj;
27282fail:
27283 return NULL;
27284}
27285
27286
27287SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27288 PyObject *resultobj = 0;
27289 wxListItem *arg1 = (wxListItem *) 0 ;
27290 long arg2 ;
27291 void *argp1 = 0 ;
27292 int res1 = 0 ;
27293 long val2 ;
27294 int ecode2 = 0 ;
27295 PyObject *swig_obj[2] ;
27296
27297 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_stateMask_set",2,2,swig_obj)) SWIG_fail;
27298 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27299 if (!SWIG_IsOK(res1)) {
27300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27301 }
27302 arg1 = reinterpret_cast< wxListItem * >(argp1);
27303 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27304 if (!SWIG_IsOK(ecode2)) {
27305 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_stateMask_set" "', expected argument " "2"" of type '" "long""'");
27306 }
27307 arg2 = static_cast< long >(val2);
27308 if (arg1) (arg1)->m_stateMask = arg2;
27309
27310 resultobj = SWIG_Py_Void();
27311 return resultobj;
27312fail:
27313 return NULL;
d14a1e28
RD
27314}
27315
27316
0085ce49
RD
27317SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27318 PyObject *resultobj = 0;
27319 wxListItem *arg1 = (wxListItem *) 0 ;
27320 long result;
27321 void *argp1 = 0 ;
27322 int res1 = 0 ;
27323 PyObject *swig_obj[1] ;
27324
27325 if (!args) SWIG_fail;
27326 swig_obj[0] = args;
27327 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27328 if (!SWIG_IsOK(res1)) {
27329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27330 }
27331 arg1 = reinterpret_cast< wxListItem * >(argp1);
27332 result = (long) ((arg1)->m_stateMask);
27333 resultobj = SWIG_From_long(static_cast< long >(result));
27334 return resultobj;
27335fail:
27336 return NULL;
27337}
27338
27339
27340SWIGINTERN PyObject *_wrap_ListItem_m_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27341 PyObject *resultobj = 0;
27342 wxListItem *arg1 = (wxListItem *) 0 ;
27343 wxString *arg2 = (wxString *) 0 ;
27344 void *argp1 = 0 ;
27345 int res1 = 0 ;
27346 bool temp2 = false ;
27347 PyObject *swig_obj[2] ;
27348
27349 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_text_set",2,2,swig_obj)) SWIG_fail;
27350 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27351 if (!SWIG_IsOK(res1)) {
27352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27353 }
27354 arg1 = reinterpret_cast< wxListItem * >(argp1);
27355 {
27356 arg2 = wxString_in_helper(swig_obj[1]);
27357 if (arg2 == NULL) SWIG_fail;
27358 temp2 = true;
27359 }
27360 if (arg1) (arg1)->m_text = *arg2;
27361
27362 resultobj = SWIG_Py_Void();
27363 {
27364 if (temp2)
27365 delete arg2;
27366 }
27367 return resultobj;
27368fail:
27369 {
27370 if (temp2)
27371 delete arg2;
27372 }
27373 return NULL;
d14a1e28
RD
27374}
27375
27376
0085ce49
RD
27377SWIGINTERN PyObject *_wrap_ListItem_m_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27378 PyObject *resultobj = 0;
27379 wxListItem *arg1 = (wxListItem *) 0 ;
27380 wxString *result = 0 ;
27381 void *argp1 = 0 ;
27382 int res1 = 0 ;
27383 PyObject *swig_obj[1] ;
27384
27385 if (!args) SWIG_fail;
27386 swig_obj[0] = args;
27387 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27388 if (!SWIG_IsOK(res1)) {
27389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27390 }
27391 arg1 = reinterpret_cast< wxListItem * >(argp1);
27392 result = (wxString *)& ((arg1)->m_text);
27393 {
d14a1e28 27394#if wxUSE_UNICODE
0085ce49 27395 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
d14a1e28 27396#else
0085ce49 27397 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
d14a1e28 27398#endif
0085ce49
RD
27399 }
27400 return resultobj;
27401fail:
27402 return NULL;
d14a1e28
RD
27403}
27404
27405
0085ce49
RD
27406SWIGINTERN PyObject *_wrap_ListItem_m_image_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27407 PyObject *resultobj = 0;
27408 wxListItem *arg1 = (wxListItem *) 0 ;
27409 int arg2 ;
27410 void *argp1 = 0 ;
27411 int res1 = 0 ;
27412 int val2 ;
27413 int ecode2 = 0 ;
27414 PyObject *swig_obj[2] ;
27415
27416 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_image_set",2,2,swig_obj)) SWIG_fail;
27417 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27418 if (!SWIG_IsOK(res1)) {
27419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27420 }
27421 arg1 = reinterpret_cast< wxListItem * >(argp1);
27422 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27423 if (!SWIG_IsOK(ecode2)) {
27424 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_image_set" "', expected argument " "2"" of type '" "int""'");
27425 }
27426 arg2 = static_cast< int >(val2);
27427 if (arg1) (arg1)->m_image = arg2;
27428
27429 resultobj = SWIG_Py_Void();
27430 return resultobj;
27431fail:
27432 return NULL;
d14a1e28
RD
27433}
27434
27435
0085ce49
RD
27436SWIGINTERN PyObject *_wrap_ListItem_m_image_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27437 PyObject *resultobj = 0;
27438 wxListItem *arg1 = (wxListItem *) 0 ;
27439 int result;
27440 void *argp1 = 0 ;
27441 int res1 = 0 ;
27442 PyObject *swig_obj[1] ;
27443
27444 if (!args) SWIG_fail;
27445 swig_obj[0] = args;
27446 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27447 if (!SWIG_IsOK(res1)) {
27448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27449 }
27450 arg1 = reinterpret_cast< wxListItem * >(argp1);
27451 result = (int) ((arg1)->m_image);
27452 resultobj = SWIG_From_int(static_cast< int >(result));
27453 return resultobj;
27454fail:
27455 return NULL;
27456}
27457
27458
27459SWIGINTERN PyObject *_wrap_ListItem_m_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27460 PyObject *resultobj = 0;
27461 wxListItem *arg1 = (wxListItem *) 0 ;
27462 long arg2 ;
27463 void *argp1 = 0 ;
27464 int res1 = 0 ;
27465 long val2 ;
27466 int ecode2 = 0 ;
27467 PyObject *swig_obj[2] ;
27468
27469 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_data_set",2,2,swig_obj)) SWIG_fail;
27470 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27471 if (!SWIG_IsOK(res1)) {
27472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27473 }
27474 arg1 = reinterpret_cast< wxListItem * >(argp1);
27475 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27476 if (!SWIG_IsOK(ecode2)) {
27477 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_data_set" "', expected argument " "2"" of type '" "long""'");
27478 }
27479 arg2 = static_cast< long >(val2);
27480 if (arg1) (arg1)->m_data = arg2;
27481
27482 resultobj = SWIG_Py_Void();
27483 return resultobj;
27484fail:
27485 return NULL;
d14a1e28
RD
27486}
27487
27488
0085ce49
RD
27489SWIGINTERN PyObject *_wrap_ListItem_m_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27490 PyObject *resultobj = 0;
27491 wxListItem *arg1 = (wxListItem *) 0 ;
27492 long result;
27493 void *argp1 = 0 ;
27494 int res1 = 0 ;
27495 PyObject *swig_obj[1] ;
27496
27497 if (!args) SWIG_fail;
27498 swig_obj[0] = args;
27499 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27500 if (!SWIG_IsOK(res1)) {
27501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27502 }
27503 arg1 = reinterpret_cast< wxListItem * >(argp1);
27504 result = (long) ((arg1)->m_data);
27505 resultobj = SWIG_From_long(static_cast< long >(result));
27506 return resultobj;
27507fail:
27508 return NULL;
27509}
27510
27511
27512SWIGINTERN PyObject *_wrap_ListItem_m_format_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27513 PyObject *resultobj = 0;
27514 wxListItem *arg1 = (wxListItem *) 0 ;
27515 int arg2 ;
27516 void *argp1 = 0 ;
27517 int res1 = 0 ;
27518 int val2 ;
27519 int ecode2 = 0 ;
27520 PyObject *swig_obj[2] ;
27521
27522 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_format_set",2,2,swig_obj)) SWIG_fail;
27523 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27524 if (!SWIG_IsOK(res1)) {
27525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27526 }
27527 arg1 = reinterpret_cast< wxListItem * >(argp1);
27528 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27529 if (!SWIG_IsOK(ecode2)) {
27530 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_format_set" "', expected argument " "2"" of type '" "int""'");
27531 }
27532 arg2 = static_cast< int >(val2);
27533 if (arg1) (arg1)->m_format = arg2;
27534
27535 resultobj = SWIG_Py_Void();
27536 return resultobj;
27537fail:
27538 return NULL;
d14a1e28
RD
27539}
27540
27541
0085ce49
RD
27542SWIGINTERN PyObject *_wrap_ListItem_m_format_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27543 PyObject *resultobj = 0;
27544 wxListItem *arg1 = (wxListItem *) 0 ;
27545 int result;
27546 void *argp1 = 0 ;
27547 int res1 = 0 ;
27548 PyObject *swig_obj[1] ;
27549
27550 if (!args) SWIG_fail;
27551 swig_obj[0] = args;
27552 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27553 if (!SWIG_IsOK(res1)) {
27554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27555 }
27556 arg1 = reinterpret_cast< wxListItem * >(argp1);
27557 result = (int) ((arg1)->m_format);
27558 resultobj = SWIG_From_int(static_cast< int >(result));
27559 return resultobj;
27560fail:
27561 return NULL;
27562}
27563
27564
27565SWIGINTERN PyObject *_wrap_ListItem_m_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27566 PyObject *resultobj = 0;
27567 wxListItem *arg1 = (wxListItem *) 0 ;
27568 int arg2 ;
27569 void *argp1 = 0 ;
27570 int res1 = 0 ;
27571 int val2 ;
27572 int ecode2 = 0 ;
27573 PyObject *swig_obj[2] ;
27574
27575 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_width_set",2,2,swig_obj)) SWIG_fail;
27576 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27577 if (!SWIG_IsOK(res1)) {
27578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27579 }
27580 arg1 = reinterpret_cast< wxListItem * >(argp1);
27581 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27582 if (!SWIG_IsOK(ecode2)) {
27583 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_width_set" "', expected argument " "2"" of type '" "int""'");
27584 }
27585 arg2 = static_cast< int >(val2);
27586 if (arg1) (arg1)->m_width = arg2;
27587
27588 resultobj = SWIG_Py_Void();
27589 return resultobj;
27590fail:
27591 return NULL;
d14a1e28
RD
27592}
27593
27594
0085ce49
RD
27595SWIGINTERN PyObject *_wrap_ListItem_m_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27596 PyObject *resultobj = 0;
27597 wxListItem *arg1 = (wxListItem *) 0 ;
27598 int result;
27599 void *argp1 = 0 ;
27600 int res1 = 0 ;
27601 PyObject *swig_obj[1] ;
27602
27603 if (!args) SWIG_fail;
27604 swig_obj[0] = args;
27605 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27606 if (!SWIG_IsOK(res1)) {
27607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27608 }
27609 arg1 = reinterpret_cast< wxListItem * >(argp1);
27610 result = (int) ((arg1)->m_width);
27611 resultobj = SWIG_From_int(static_cast< int >(result));
27612 return resultobj;
27613fail:
27614 return NULL;
27615}
27616
27617
27618SWIGINTERN PyObject *ListItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27619 PyObject *obj;
27620 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27621 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItem, SWIG_NewClientData(obj));
27622 return SWIG_Py_Void();
27623}
27624
27625SWIGINTERN PyObject *ListItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27626 return SWIG_Python_InitShadowInstance(args);
27627}
27628
27629SWIGINTERN PyObject *_wrap_new_ListEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27630 PyObject *resultobj = 0;
27631 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
27632 int arg2 = (int) 0 ;
27633 wxListEvent *result = 0 ;
27634 int val1 ;
27635 int ecode1 = 0 ;
27636 int val2 ;
27637 int ecode2 = 0 ;
27638 PyObject * obj0 = 0 ;
27639 PyObject * obj1 = 0 ;
27640 char * kwnames[] = {
27641 (char *) "commandType",(char *) "id", NULL
27642 };
27643
27644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) SWIG_fail;
27645 if (obj0) {
27646 ecode1 = SWIG_AsVal_int(obj0, &val1);
27647 if (!SWIG_IsOK(ecode1)) {
27648 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListEvent" "', expected argument " "1"" of type '" "wxEventType""'");
27649 }
27650 arg1 = static_cast< wxEventType >(val1);
27651 }
27652 if (obj1) {
27653 ecode2 = SWIG_AsVal_int(obj1, &val2);
27654 if (!SWIG_IsOK(ecode2)) {
27655 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListEvent" "', expected argument " "2"" of type '" "int""'");
27656 }
27657 arg2 = static_cast< int >(val2);
27658 }
27659 {
27660 PyThreadState* __tstate = wxPyBeginAllowThreads();
27661 result = (wxListEvent *)new wxListEvent(arg1,arg2);
27662 wxPyEndAllowThreads(__tstate);
27663 if (PyErr_Occurred()) SWIG_fail;
27664 }
27665 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListEvent, SWIG_POINTER_NEW | 0 );
27666 return resultobj;
27667fail:
27668 return NULL;
27669}
27670
27671
27672SWIGINTERN PyObject *_wrap_ListEvent_m_code_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27673 PyObject *resultobj = 0;
27674 wxListEvent *arg1 = (wxListEvent *) 0 ;
27675 int arg2 ;
27676 void *argp1 = 0 ;
27677 int res1 = 0 ;
27678 int val2 ;
27679 int ecode2 = 0 ;
27680 PyObject *swig_obj[2] ;
27681
27682 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_code_set",2,2,swig_obj)) SWIG_fail;
27683 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27684 if (!SWIG_IsOK(res1)) {
27685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27686 }
27687 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27688 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27689 if (!SWIG_IsOK(ecode2)) {
27690 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_code_set" "', expected argument " "2"" of type '" "int""'");
27691 }
27692 arg2 = static_cast< int >(val2);
27693 if (arg1) (arg1)->m_code = arg2;
27694
27695 resultobj = SWIG_Py_Void();
27696 return resultobj;
27697fail:
27698 return NULL;
d14a1e28
RD
27699}
27700
27701
0085ce49
RD
27702SWIGINTERN PyObject *_wrap_ListEvent_m_code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27703 PyObject *resultobj = 0;
27704 wxListEvent *arg1 = (wxListEvent *) 0 ;
27705 int result;
27706 void *argp1 = 0 ;
27707 int res1 = 0 ;
27708 PyObject *swig_obj[1] ;
27709
27710 if (!args) SWIG_fail;
27711 swig_obj[0] = args;
27712 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27713 if (!SWIG_IsOK(res1)) {
27714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27715 }
27716 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27717 result = (int) ((arg1)->m_code);
27718 resultobj = SWIG_From_int(static_cast< int >(result));
27719 return resultobj;
27720fail:
27721 return NULL;
27722}
27723
27724
27725SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27726 PyObject *resultobj = 0;
27727 wxListEvent *arg1 = (wxListEvent *) 0 ;
27728 long arg2 ;
27729 void *argp1 = 0 ;
27730 int res1 = 0 ;
27731 long val2 ;
27732 int ecode2 = 0 ;
27733 PyObject *swig_obj[2] ;
27734
27735 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_oldItemIndex_set",2,2,swig_obj)) SWIG_fail;
27736 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27737 if (!SWIG_IsOK(res1)) {
27738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27739 }
27740 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27741 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27742 if (!SWIG_IsOK(ecode2)) {
27743 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "2"" of type '" "long""'");
27744 }
27745 arg2 = static_cast< long >(val2);
27746 if (arg1) (arg1)->m_oldItemIndex = arg2;
27747
27748 resultobj = SWIG_Py_Void();
27749 return resultobj;
27750fail:
27751 return NULL;
d14a1e28
RD
27752}
27753
27754
0085ce49
RD
27755SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27756 PyObject *resultobj = 0;
27757 wxListEvent *arg1 = (wxListEvent *) 0 ;
27758 long result;
27759 void *argp1 = 0 ;
27760 int res1 = 0 ;
27761 PyObject *swig_obj[1] ;
27762
27763 if (!args) SWIG_fail;
27764 swig_obj[0] = args;
27765 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27766 if (!SWIG_IsOK(res1)) {
27767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27768 }
27769 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27770 result = (long) ((arg1)->m_oldItemIndex);
27771 resultobj = SWIG_From_long(static_cast< long >(result));
27772 return resultobj;
27773fail:
27774 return NULL;
27775}
27776
27777
27778SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27779 PyObject *resultobj = 0;
27780 wxListEvent *arg1 = (wxListEvent *) 0 ;
27781 long arg2 ;
27782 void *argp1 = 0 ;
27783 int res1 = 0 ;
27784 long val2 ;
27785 int ecode2 = 0 ;
27786 PyObject *swig_obj[2] ;
27787
27788 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_itemIndex_set",2,2,swig_obj)) SWIG_fail;
27789 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27790 if (!SWIG_IsOK(res1)) {
27791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27792 }
27793 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27794 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27795 if (!SWIG_IsOK(ecode2)) {
27796 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "2"" of type '" "long""'");
27797 }
27798 arg2 = static_cast< long >(val2);
27799 if (arg1) (arg1)->m_itemIndex = arg2;
27800
27801 resultobj = SWIG_Py_Void();
27802 return resultobj;
27803fail:
27804 return NULL;
d14a1e28
RD
27805}
27806
27807
0085ce49
RD
27808SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27809 PyObject *resultobj = 0;
27810 wxListEvent *arg1 = (wxListEvent *) 0 ;
27811 long result;
27812 void *argp1 = 0 ;
27813 int res1 = 0 ;
27814 PyObject *swig_obj[1] ;
27815
27816 if (!args) SWIG_fail;
27817 swig_obj[0] = args;
27818 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27819 if (!SWIG_IsOK(res1)) {
27820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27821 }
27822 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27823 result = (long) ((arg1)->m_itemIndex);
27824 resultobj = SWIG_From_long(static_cast< long >(result));
27825 return resultobj;
27826fail:
27827 return NULL;
27828}
27829
27830
27831SWIGINTERN PyObject *_wrap_ListEvent_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27832 PyObject *resultobj = 0;
27833 wxListEvent *arg1 = (wxListEvent *) 0 ;
27834 int arg2 ;
27835 void *argp1 = 0 ;
27836 int res1 = 0 ;
27837 int val2 ;
27838 int ecode2 = 0 ;
27839 PyObject *swig_obj[2] ;
27840
27841 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_col_set",2,2,swig_obj)) SWIG_fail;
27842 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27843 if (!SWIG_IsOK(res1)) {
27844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27845 }
27846 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27847 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27848 if (!SWIG_IsOK(ecode2)) {
27849 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_col_set" "', expected argument " "2"" of type '" "int""'");
27850 }
27851 arg2 = static_cast< int >(val2);
27852 if (arg1) (arg1)->m_col = arg2;
27853
27854 resultobj = SWIG_Py_Void();
27855 return resultobj;
27856fail:
27857 return NULL;
7e08d4ef
RD
27858}
27859
27860
0085ce49
RD
27861SWIGINTERN PyObject *_wrap_ListEvent_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27862 PyObject *resultobj = 0;
27863 wxListEvent *arg1 = (wxListEvent *) 0 ;
27864 int result;
27865 void *argp1 = 0 ;
27866 int res1 = 0 ;
27867 PyObject *swig_obj[1] ;
27868
27869 if (!args) SWIG_fail;
27870 swig_obj[0] = args;
27871 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27872 if (!SWIG_IsOK(res1)) {
27873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27874 }
27875 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27876 result = (int) ((arg1)->m_col);
27877 resultobj = SWIG_From_int(static_cast< int >(result));
27878 return resultobj;
27879fail:
27880 return NULL;
27881}
27882
27883
27884SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27885 PyObject *resultobj = 0;
27886 wxListEvent *arg1 = (wxListEvent *) 0 ;
27887 wxPoint *arg2 = (wxPoint *) 0 ;
27888 void *argp1 = 0 ;
27889 int res1 = 0 ;
27890 void *argp2 = 0 ;
27891 int res2 = 0 ;
27892 PyObject *swig_obj[2] ;
27893
27894 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_pointDrag_set",2,2,swig_obj)) SWIG_fail;
27895 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27896 if (!SWIG_IsOK(res1)) {
27897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27898 }
27899 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27900 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPoint, 0 | 0 );
27901 if (!SWIG_IsOK(res2)) {
27902 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "2"" of type '" "wxPoint *""'");
27903 }
27904 arg2 = reinterpret_cast< wxPoint * >(argp2);
27905 if (arg1) (arg1)->m_pointDrag = *arg2;
27906
27907 resultobj = SWIG_Py_Void();
27908 return resultobj;
27909fail:
27910 return NULL;
7e08d4ef
RD
27911}
27912
27913
0085ce49
RD
27914SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27915 PyObject *resultobj = 0;
27916 wxListEvent *arg1 = (wxListEvent *) 0 ;
27917 wxPoint *result = 0 ;
27918 void *argp1 = 0 ;
27919 int res1 = 0 ;
27920 PyObject *swig_obj[1] ;
27921
27922 if (!args) SWIG_fail;
27923 swig_obj[0] = args;
27924 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27925 if (!SWIG_IsOK(res1)) {
27926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27927 }
27928 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27929 result = (wxPoint *)& ((arg1)->m_pointDrag);
27930 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, 0 | 0 );
27931 return resultobj;
27932fail:
27933 return NULL;
27934}
27935
27936
27937SWIGINTERN PyObject *_wrap_ListEvent_m_item_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27938 PyObject *resultobj = 0;
27939 wxListEvent *arg1 = (wxListEvent *) 0 ;
27940 wxListItem *result = 0 ;
27941 void *argp1 = 0 ;
27942 int res1 = 0 ;
27943 PyObject *swig_obj[1] ;
27944
27945 if (!args) SWIG_fail;
27946 swig_obj[0] = args;
27947 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27948 if (!SWIG_IsOK(res1)) {
27949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_item_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27950 }
27951 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27952 result = (wxListItem *)& ((arg1)->m_item);
27953 {
27954 resultobj = wxPyMake_wxObject(result, (bool)0);
27955 }
27956 return resultobj;
27957fail:
27958 return NULL;
7e08d4ef
RD
27959}
27960
27961
0085ce49
RD
27962SWIGINTERN PyObject *_wrap_ListEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27963 PyObject *resultobj = 0;
27964 wxListEvent *arg1 = (wxListEvent *) 0 ;
27965 int result;
27966 void *argp1 = 0 ;
27967 int res1 = 0 ;
27968 PyObject *swig_obj[1] ;
27969
27970 if (!args) SWIG_fail;
27971 swig_obj[0] = args;
27972 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27973 if (!SWIG_IsOK(res1)) {
27974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxListEvent *""'");
27975 }
27976 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27977 {
27978 PyThreadState* __tstate = wxPyBeginAllowThreads();
27979 result = (int)(arg1)->GetKeyCode();
27980 wxPyEndAllowThreads(__tstate);
27981 if (PyErr_Occurred()) SWIG_fail;
27982 }
27983 resultobj = SWIG_From_int(static_cast< int >(result));
27984 return resultobj;
27985fail:
27986 return NULL;
7e08d4ef
RD
27987}
27988
27989
0085ce49
RD
27990SWIGINTERN PyObject *_wrap_ListEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27991 PyObject *resultobj = 0;
27992 wxListEvent *arg1 = (wxListEvent *) 0 ;
27993 long result;
27994 void *argp1 = 0 ;
27995 int res1 = 0 ;
27996 PyObject *swig_obj[1] ;
27997
27998 if (!args) SWIG_fail;
27999 swig_obj[0] = args;
28000 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28001 if (!SWIG_IsOK(res1)) {
28002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetIndex" "', expected argument " "1"" of type '" "wxListEvent *""'");
28003 }
28004 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28005 {
28006 PyThreadState* __tstate = wxPyBeginAllowThreads();
28007 result = (long)(arg1)->GetIndex();
28008 wxPyEndAllowThreads(__tstate);
28009 if (PyErr_Occurred()) SWIG_fail;
28010 }
28011 resultobj = SWIG_From_long(static_cast< long >(result));
28012 return resultobj;
28013fail:
28014 return NULL;
7e08d4ef
RD
28015}
28016
28017
0085ce49
RD
28018SWIGINTERN PyObject *_wrap_ListEvent_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28019 PyObject *resultobj = 0;
28020 wxListEvent *arg1 = (wxListEvent *) 0 ;
28021 int result;
28022 void *argp1 = 0 ;
28023 int res1 = 0 ;
28024 PyObject *swig_obj[1] ;
28025
28026 if (!args) SWIG_fail;
28027 swig_obj[0] = args;
28028 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28029 if (!SWIG_IsOK(res1)) {
28030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetColumn" "', expected argument " "1"" of type '" "wxListEvent *""'");
28031 }
28032 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28033 {
28034 PyThreadState* __tstate = wxPyBeginAllowThreads();
28035 result = (int)(arg1)->GetColumn();
28036 wxPyEndAllowThreads(__tstate);
28037 if (PyErr_Occurred()) SWIG_fail;
28038 }
28039 resultobj = SWIG_From_int(static_cast< int >(result));
28040 return resultobj;
28041fail:
28042 return NULL;
d14a1e28
RD
28043}
28044
28045
0085ce49
RD
28046SWIGINTERN PyObject *_wrap_ListEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28047 PyObject *resultobj = 0;
28048 wxListEvent *arg1 = (wxListEvent *) 0 ;
28049 wxPoint result;
28050 void *argp1 = 0 ;
28051 int res1 = 0 ;
28052 PyObject *swig_obj[1] ;
28053
28054 if (!args) SWIG_fail;
28055 swig_obj[0] = args;
28056 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28057 if (!SWIG_IsOK(res1)) {
28058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetPoint" "', expected argument " "1"" of type '" "wxListEvent *""'");
28059 }
28060 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28061 {
28062 PyThreadState* __tstate = wxPyBeginAllowThreads();
28063 result = (arg1)->GetPoint();
28064 wxPyEndAllowThreads(__tstate);
28065 if (PyErr_Occurred()) SWIG_fail;
28066 }
28067 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
28068 return resultobj;
28069fail:
28070 return NULL;
d14a1e28
RD
28071}
28072
28073
0085ce49
RD
28074SWIGINTERN PyObject *_wrap_ListEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28075 PyObject *resultobj = 0;
28076 wxListEvent *arg1 = (wxListEvent *) 0 ;
28077 wxString *result = 0 ;
28078 void *argp1 = 0 ;
28079 int res1 = 0 ;
28080 PyObject *swig_obj[1] ;
28081
28082 if (!args) SWIG_fail;
28083 swig_obj[0] = args;
28084 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28085 if (!SWIG_IsOK(res1)) {
28086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetLabel" "', expected argument " "1"" of type '" "wxListEvent *""'");
28087 }
28088 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28089 {
28090 PyThreadState* __tstate = wxPyBeginAllowThreads();
4f89f6a3 28091 {
0085ce49
RD
28092 wxString const &_result_ref = (arg1)->GetLabel();
28093 result = (wxString *) &_result_ref;
4f89f6a3 28094 }
0085ce49
RD
28095 wxPyEndAllowThreads(__tstate);
28096 if (PyErr_Occurred()) SWIG_fail;
28097 }
28098 {
28099#if wxUSE_UNICODE
28100 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28101#else
28102 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28103#endif
28104 }
28105 return resultobj;
28106fail:
28107 return NULL;
d14a1e28
RD
28108}
28109
28110
0085ce49
RD
28111SWIGINTERN PyObject *_wrap_ListEvent_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28112 PyObject *resultobj = 0;
28113 wxListEvent *arg1 = (wxListEvent *) 0 ;
28114 wxString *result = 0 ;
28115 void *argp1 = 0 ;
28116 int res1 = 0 ;
28117 PyObject *swig_obj[1] ;
28118
28119 if (!args) SWIG_fail;
28120 swig_obj[0] = args;
28121 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28122 if (!SWIG_IsOK(res1)) {
28123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetText" "', expected argument " "1"" of type '" "wxListEvent *""'");
28124 }
28125 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28126 {
28127 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 28128 {
0085ce49
RD
28129 wxString const &_result_ref = (arg1)->GetText();
28130 result = (wxString *) &_result_ref;
d14a1e28 28131 }
0085ce49
RD
28132 wxPyEndAllowThreads(__tstate);
28133 if (PyErr_Occurred()) SWIG_fail;
28134 }
28135 {
28136#if wxUSE_UNICODE
28137 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28138#else
28139 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28140#endif
28141 }
28142 return resultobj;
28143fail:
28144 return NULL;
d14a1e28
RD
28145}
28146
28147
0085ce49
RD
28148SWIGINTERN PyObject *_wrap_ListEvent_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28149 PyObject *resultobj = 0;
28150 wxListEvent *arg1 = (wxListEvent *) 0 ;
28151 int result;
28152 void *argp1 = 0 ;
28153 int res1 = 0 ;
28154 PyObject *swig_obj[1] ;
28155
28156 if (!args) SWIG_fail;
28157 swig_obj[0] = args;
28158 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28159 if (!SWIG_IsOK(res1)) {
28160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetImage" "', expected argument " "1"" of type '" "wxListEvent *""'");
28161 }
28162 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28163 {
28164 PyThreadState* __tstate = wxPyBeginAllowThreads();
28165 result = (int)(arg1)->GetImage();
28166 wxPyEndAllowThreads(__tstate);
28167 if (PyErr_Occurred()) SWIG_fail;
28168 }
28169 resultobj = SWIG_From_int(static_cast< int >(result));
28170 return resultobj;
28171fail:
28172 return NULL;
d14a1e28
RD
28173}
28174
28175
0085ce49
RD
28176SWIGINTERN PyObject *_wrap_ListEvent_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28177 PyObject *resultobj = 0;
28178 wxListEvent *arg1 = (wxListEvent *) 0 ;
28179 long result;
28180 void *argp1 = 0 ;
28181 int res1 = 0 ;
28182 PyObject *swig_obj[1] ;
28183
28184 if (!args) SWIG_fail;
28185 swig_obj[0] = args;
28186 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28187 if (!SWIG_IsOK(res1)) {
28188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetData" "', expected argument " "1"" of type '" "wxListEvent *""'");
28189 }
28190 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28191 {
28192 PyThreadState* __tstate = wxPyBeginAllowThreads();
28193 result = (long)(arg1)->GetData();
28194 wxPyEndAllowThreads(__tstate);
28195 if (PyErr_Occurred()) SWIG_fail;
28196 }
28197 resultobj = SWIG_From_long(static_cast< long >(result));
28198 return resultobj;
28199fail:
28200 return NULL;
d14a1e28
RD
28201}
28202
28203
0085ce49
RD
28204SWIGINTERN PyObject *_wrap_ListEvent_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28205 PyObject *resultobj = 0;
28206 wxListEvent *arg1 = (wxListEvent *) 0 ;
28207 long result;
28208 void *argp1 = 0 ;
28209 int res1 = 0 ;
28210 PyObject *swig_obj[1] ;
28211
28212 if (!args) SWIG_fail;
28213 swig_obj[0] = args;
28214 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28215 if (!SWIG_IsOK(res1)) {
28216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetMask" "', expected argument " "1"" of type '" "wxListEvent *""'");
28217 }
28218 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28219 {
28220 PyThreadState* __tstate = wxPyBeginAllowThreads();
28221 result = (long)(arg1)->GetMask();
28222 wxPyEndAllowThreads(__tstate);
28223 if (PyErr_Occurred()) SWIG_fail;
28224 }
28225 resultobj = SWIG_From_long(static_cast< long >(result));
28226 return resultobj;
28227fail:
28228 return NULL;
d14a1e28
RD
28229}
28230
28231
0085ce49
RD
28232SWIGINTERN PyObject *_wrap_ListEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28233 PyObject *resultobj = 0;
28234 wxListEvent *arg1 = (wxListEvent *) 0 ;
28235 wxListItem *result = 0 ;
28236 void *argp1 = 0 ;
28237 int res1 = 0 ;
28238 PyObject *swig_obj[1] ;
28239
28240 if (!args) SWIG_fail;
28241 swig_obj[0] = args;
28242 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28243 if (!SWIG_IsOK(res1)) {
28244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetItem" "', expected argument " "1"" of type '" "wxListEvent *""'");
28245 }
28246 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28247 {
28248 PyThreadState* __tstate = wxPyBeginAllowThreads();
22bfe96c 28249 {
0085ce49
RD
28250 wxListItem const &_result_ref = (arg1)->GetItem();
28251 result = (wxListItem *) &_result_ref;
22bfe96c 28252 }
0085ce49
RD
28253 wxPyEndAllowThreads(__tstate);
28254 if (PyErr_Occurred()) SWIG_fail;
28255 }
28256 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, 0 | 0 );
28257 return resultobj;
28258fail:
28259 return NULL;
22bfe96c
RD
28260}
28261
28262
0085ce49
RD
28263SWIGINTERN PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28264 PyObject *resultobj = 0;
28265 wxListEvent *arg1 = (wxListEvent *) 0 ;
28266 long result;
28267 void *argp1 = 0 ;
28268 int res1 = 0 ;
28269 PyObject *swig_obj[1] ;
28270
28271 if (!args) SWIG_fail;
28272 swig_obj[0] = args;
28273 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28274 if (!SWIG_IsOK(res1)) {
28275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheFrom" "', expected argument " "1"" of type '" "wxListEvent *""'");
28276 }
28277 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28278 {
28279 PyThreadState* __tstate = wxPyBeginAllowThreads();
28280 result = (long)(arg1)->GetCacheFrom();
28281 wxPyEndAllowThreads(__tstate);
28282 if (PyErr_Occurred()) SWIG_fail;
28283 }
28284 resultobj = SWIG_From_long(static_cast< long >(result));
28285 return resultobj;
28286fail:
28287 return NULL;
d14a1e28
RD
28288}
28289
28290
0085ce49
RD
28291SWIGINTERN PyObject *_wrap_ListEvent_GetCacheTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28292 PyObject *resultobj = 0;
28293 wxListEvent *arg1 = (wxListEvent *) 0 ;
28294 long result;
28295 void *argp1 = 0 ;
28296 int res1 = 0 ;
28297 PyObject *swig_obj[1] ;
28298
28299 if (!args) SWIG_fail;
28300 swig_obj[0] = args;
28301 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28302 if (!SWIG_IsOK(res1)) {
28303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheTo" "', expected argument " "1"" of type '" "wxListEvent *""'");
28304 }
28305 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28306 {
28307 PyThreadState* __tstate = wxPyBeginAllowThreads();
28308 result = (long)(arg1)->GetCacheTo();
28309 wxPyEndAllowThreads(__tstate);
28310 if (PyErr_Occurred()) SWIG_fail;
28311 }
28312 resultobj = SWIG_From_long(static_cast< long >(result));
28313 return resultobj;
28314fail:
28315 return NULL;
d14a1e28
RD
28316}
28317
28318
0085ce49
RD
28319SWIGINTERN PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28320 PyObject *resultobj = 0;
28321 wxListEvent *arg1 = (wxListEvent *) 0 ;
28322 bool result;
28323 void *argp1 = 0 ;
28324 int res1 = 0 ;
28325 PyObject *swig_obj[1] ;
28326
28327 if (!args) SWIG_fail;
28328 swig_obj[0] = args;
28329 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28330 if (!SWIG_IsOK(res1)) {
28331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxListEvent const *""'");
28332 }
28333 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28334 {
28335 PyThreadState* __tstate = wxPyBeginAllowThreads();
28336 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
28337 wxPyEndAllowThreads(__tstate);
28338 if (PyErr_Occurred()) SWIG_fail;
28339 }
28340 {
28341 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28342 }
28343 return resultobj;
28344fail:
28345 return NULL;
28346}
28347
28348
28349SWIGINTERN PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28350 PyObject *resultobj = 0;
28351 wxListEvent *arg1 = (wxListEvent *) 0 ;
28352 bool arg2 ;
28353 void *argp1 = 0 ;
28354 int res1 = 0 ;
28355 bool val2 ;
28356 int ecode2 = 0 ;
28357 PyObject * obj0 = 0 ;
28358 PyObject * obj1 = 0 ;
28359 char * kwnames[] = {
28360 (char *) "self",(char *) "editCancelled", NULL
28361 };
28362
28363 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
28364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28365 if (!SWIG_IsOK(res1)) {
28366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxListEvent *""'");
28367 }
28368 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28369 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28370 if (!SWIG_IsOK(ecode2)) {
28371 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
28372 }
28373 arg2 = static_cast< bool >(val2);
28374 {
28375 PyThreadState* __tstate = wxPyBeginAllowThreads();
28376 (arg1)->SetEditCanceled(arg2);
28377 wxPyEndAllowThreads(__tstate);
28378 if (PyErr_Occurred()) SWIG_fail;
28379 }
28380 resultobj = SWIG_Py_Void();
28381 return resultobj;
28382fail:
28383 return NULL;
28384}
28385
28386
28387SWIGINTERN PyObject *ListEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28388 PyObject *obj;
28389 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28390 SWIG_TypeNewClientData(SWIGTYPE_p_wxListEvent, SWIG_NewClientData(obj));
28391 return SWIG_Py_Void();
28392}
28393
28394SWIGINTERN PyObject *ListEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28395 return SWIG_Python_InitShadowInstance(args);
28396}
28397
28398SWIGINTERN PyObject *_wrap_new_ListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28399 PyObject *resultobj = 0;
28400 wxWindow *arg1 = (wxWindow *) 0 ;
28401 int arg2 = (int) -1 ;
28402 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28403 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28404 wxSize const &arg4_defvalue = wxDefaultSize ;
28405 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28406 long arg5 = (long) wxLC_ICON ;
28407 wxValidator const &arg6_defvalue = wxDefaultValidator ;
28408 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
28409 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
28410 wxString *arg7 = (wxString *) &arg7_defvalue ;
28411 wxPyListCtrl *result = 0 ;
28412 void *argp1 = 0 ;
28413 int res1 = 0 ;
28414 int val2 ;
28415 int ecode2 = 0 ;
28416 wxPoint temp3 ;
28417 wxSize temp4 ;
28418 long val5 ;
28419 int ecode5 = 0 ;
28420 void *argp6 = 0 ;
28421 int res6 = 0 ;
28422 bool temp7 = false ;
28423 PyObject * obj0 = 0 ;
28424 PyObject * obj1 = 0 ;
28425 PyObject * obj2 = 0 ;
28426 PyObject * obj3 = 0 ;
28427 PyObject * obj4 = 0 ;
28428 PyObject * obj5 = 0 ;
28429 PyObject * obj6 = 0 ;
28430 char * kwnames[] = {
28431 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28432 };
28433
28434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28436 if (!SWIG_IsOK(res1)) {
28437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
28438 }
28439 arg1 = reinterpret_cast< wxWindow * >(argp1);
28440 if (obj1) {
28441 ecode2 = SWIG_AsVal_int(obj1, &val2);
28442 if (!SWIG_IsOK(ecode2)) {
28443 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListCtrl" "', expected argument " "2"" of type '" "int""'");
28444 }
28445 arg2 = static_cast< int >(val2);
28446 }
28447 if (obj2) {
093d3ff1 28448 {
0085ce49
RD
28449 arg3 = &temp3;
28450 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 28451 }
0085ce49
RD
28452 }
28453 if (obj3) {
d14a1e28 28454 {
0085ce49
RD
28455 arg4 = &temp4;
28456 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 28457 }
0085ce49
RD
28458 }
28459 if (obj4) {
28460 ecode5 = SWIG_AsVal_long(obj4, &val5);
28461 if (!SWIG_IsOK(ecode5)) {
28462 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListCtrl" "', expected argument " "5"" of type '" "long""'");
28463 }
28464 arg5 = static_cast< long >(val5);
28465 }
28466 if (obj5) {
28467 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
28468 if (!SWIG_IsOK(res6)) {
28469 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d14a1e28 28470 }
0085ce49
RD
28471 if (!argp6) {
28472 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
28473 }
28474 arg6 = reinterpret_cast< wxValidator * >(argp6);
28475 }
28476 if (obj6) {
093d3ff1 28477 {
0085ce49
RD
28478 arg7 = wxString_in_helper(obj6);
28479 if (arg7 == NULL) SWIG_fail;
28480 temp7 = true;
093d3ff1 28481 }
0085ce49
RD
28482 }
28483 {
28484 if (!wxPyCheckForApp()) SWIG_fail;
28485 PyThreadState* __tstate = wxPyBeginAllowThreads();
28486 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
28487 wxPyEndAllowThreads(__tstate);
28488 if (PyErr_Occurred()) SWIG_fail;
28489 }
28490 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_NEW | 0 );
28491 {
28492 if (temp7)
28493 delete arg7;
28494 }
28495 return resultobj;
28496fail:
28497 {
28498 if (temp7)
28499 delete arg7;
28500 }
28501 return NULL;
d14a1e28
RD
28502}
28503
28504
0085ce49
RD
28505SWIGINTERN PyObject *_wrap_new_PreListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28506 PyObject *resultobj = 0;
28507 wxPyListCtrl *result = 0 ;
28508
28509 if (!SWIG_Python_UnpackTuple(args,"new_PreListCtrl",0,0,0)) SWIG_fail;
28510 {
28511 if (!wxPyCheckForApp()) SWIG_fail;
28512 PyThreadState* __tstate = wxPyBeginAllowThreads();
28513 result = (wxPyListCtrl *)new wxPyListCtrl();
28514 wxPyEndAllowThreads(__tstate);
28515 if (PyErr_Occurred()) SWIG_fail;
28516 }
28517 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_OWN | 0 );
28518 return resultobj;
28519fail:
28520 return NULL;
28521}
28522
28523
28524SWIGINTERN PyObject *_wrap_ListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28525 PyObject *resultobj = 0;
28526 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28527 wxWindow *arg2 = (wxWindow *) 0 ;
28528 int arg3 = (int) -1 ;
28529 wxPoint const &arg4_defvalue = wxDefaultPosition ;
28530 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
28531 wxSize const &arg5_defvalue = wxDefaultSize ;
28532 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
28533 long arg6 = (long) wxLC_ICON ;
28534 wxValidator const &arg7_defvalue = wxDefaultValidator ;
28535 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
28536 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
28537 wxString *arg8 = (wxString *) &arg8_defvalue ;
28538 bool result;
28539 void *argp1 = 0 ;
28540 int res1 = 0 ;
28541 void *argp2 = 0 ;
28542 int res2 = 0 ;
28543 int val3 ;
28544 int ecode3 = 0 ;
28545 wxPoint temp4 ;
28546 wxSize temp5 ;
28547 long val6 ;
28548 int ecode6 = 0 ;
28549 void *argp7 = 0 ;
28550 int res7 = 0 ;
28551 bool temp8 = false ;
28552 PyObject * obj0 = 0 ;
28553 PyObject * obj1 = 0 ;
28554 PyObject * obj2 = 0 ;
28555 PyObject * obj3 = 0 ;
28556 PyObject * obj4 = 0 ;
28557 PyObject * obj5 = 0 ;
28558 PyObject * obj6 = 0 ;
28559 PyObject * obj7 = 0 ;
28560 char * kwnames[] = {
28561 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28562 };
28563
28564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28565 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28566 if (!SWIG_IsOK(res1)) {
28567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Create" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28568 }
28569 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28570 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28571 if (!SWIG_IsOK(res2)) {
28572 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
28573 }
28574 arg2 = reinterpret_cast< wxWindow * >(argp2);
28575 if (obj2) {
28576 ecode3 = SWIG_AsVal_int(obj2, &val3);
28577 if (!SWIG_IsOK(ecode3)) {
28578 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
28579 }
28580 arg3 = static_cast< int >(val3);
28581 }
28582 if (obj3) {
093d3ff1 28583 {
0085ce49
RD
28584 arg4 = &temp4;
28585 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 28586 }
0085ce49
RD
28587 }
28588 if (obj4) {
d14a1e28 28589 {
0085ce49
RD
28590 arg5 = &temp5;
28591 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 28592 }
0085ce49
RD
28593 }
28594 if (obj5) {
28595 ecode6 = SWIG_AsVal_long(obj5, &val6);
28596 if (!SWIG_IsOK(ecode6)) {
28597 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
28598 }
28599 arg6 = static_cast< long >(val6);
28600 }
28601 if (obj6) {
28602 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
28603 if (!SWIG_IsOK(res7)) {
28604 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 28605 }
0085ce49
RD
28606 if (!argp7) {
28607 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 28608 }
0085ce49
RD
28609 arg7 = reinterpret_cast< wxValidator * >(argp7);
28610 }
28611 if (obj7) {
d14a1e28 28612 {
0085ce49
RD
28613 arg8 = wxString_in_helper(obj7);
28614 if (arg8 == NULL) SWIG_fail;
28615 temp8 = true;
d14a1e28 28616 }
0085ce49
RD
28617 }
28618 {
28619 PyThreadState* __tstate = wxPyBeginAllowThreads();
28620 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
28621 wxPyEndAllowThreads(__tstate);
28622 if (PyErr_Occurred()) SWIG_fail;
28623 }
28624 {
28625 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28626 }
28627 {
28628 if (temp8)
28629 delete arg8;
28630 }
28631 return resultobj;
28632fail:
28633 {
28634 if (temp8)
28635 delete arg8;
28636 }
28637 return NULL;
28638}
28639
28640
28641SWIGINTERN PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28642 PyObject *resultobj = 0;
28643 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28644 PyObject *arg2 = (PyObject *) 0 ;
28645 PyObject *arg3 = (PyObject *) 0 ;
28646 void *argp1 = 0 ;
28647 int res1 = 0 ;
28648 PyObject * obj0 = 0 ;
28649 PyObject * obj1 = 0 ;
28650 PyObject * obj2 = 0 ;
28651 char * kwnames[] = {
28652 (char *) "self",(char *) "self",(char *) "_class", NULL
28653 };
28654
28655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28657 if (!SWIG_IsOK(res1)) {
28658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28659 }
28660 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28661 arg2 = obj1;
28662 arg3 = obj2;
28663 {
28664 PyThreadState* __tstate = wxPyBeginAllowThreads();
28665 (arg1)->_setCallbackInfo(arg2,arg3);
28666 wxPyEndAllowThreads(__tstate);
28667 if (PyErr_Occurred()) SWIG_fail;
28668 }
28669 resultobj = SWIG_Py_Void();
28670 return resultobj;
28671fail:
28672 return NULL;
28673}
28674
28675
28676SWIGINTERN PyObject *_wrap_ListCtrl_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28677 PyObject *resultobj = 0;
28678 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28679 int arg2 ;
28680 wxListItem *result = 0 ;
28681 void *argp1 = 0 ;
28682 int res1 = 0 ;
28683 int val2 ;
28684 int ecode2 = 0 ;
28685 PyObject * obj0 = 0 ;
28686 PyObject * obj1 = 0 ;
28687 char * kwnames[] = {
28688 (char *) "self",(char *) "col", NULL
28689 };
28690
28691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
28692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28693 if (!SWIG_IsOK(res1)) {
28694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28695 }
28696 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28697 ecode2 = SWIG_AsVal_int(obj1, &val2);
28698 if (!SWIG_IsOK(ecode2)) {
28699 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumn" "', expected argument " "2"" of type '" "int""'");
28700 }
28701 arg2 = static_cast< int >(val2);
28702 {
28703 PyThreadState* __tstate = wxPyBeginAllowThreads();
28704 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
28705 wxPyEndAllowThreads(__tstate);
28706 if (PyErr_Occurred()) SWIG_fail;
28707 }
28708 {
28709 resultobj = wxPyMake_wxObject(result, (bool)0);
28710 }
28711 return resultobj;
28712fail:
28713 return NULL;
28714}
28715
28716
28717SWIGINTERN PyObject *_wrap_ListCtrl_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28718 PyObject *resultobj = 0;
28719 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28720 int arg2 ;
28721 wxListItem *arg3 = 0 ;
28722 bool result;
28723 void *argp1 = 0 ;
28724 int res1 = 0 ;
28725 int val2 ;
28726 int ecode2 = 0 ;
28727 void *argp3 = 0 ;
28728 int res3 = 0 ;
28729 PyObject * obj0 = 0 ;
28730 PyObject * obj1 = 0 ;
28731 PyObject * obj2 = 0 ;
28732 char * kwnames[] = {
28733 (char *) "self",(char *) "col",(char *) "item", NULL
28734 };
28735
28736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28738 if (!SWIG_IsOK(res1)) {
28739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28740 }
28741 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28742 ecode2 = SWIG_AsVal_int(obj1, &val2);
28743 if (!SWIG_IsOK(ecode2)) {
28744 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumn" "', expected argument " "2"" of type '" "int""'");
28745 }
28746 arg2 = static_cast< int >(val2);
28747 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
28748 if (!SWIG_IsOK(res3)) {
28749 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
28750 }
28751 if (!argp3) {
28752 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
28753 }
28754 arg3 = reinterpret_cast< wxListItem * >(argp3);
28755 {
28756 PyThreadState* __tstate = wxPyBeginAllowThreads();
28757 result = (bool)(arg1)->SetColumn(arg2,*arg3);
28758 wxPyEndAllowThreads(__tstate);
28759 if (PyErr_Occurred()) SWIG_fail;
28760 }
28761 {
28762 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28763 }
28764 return resultobj;
28765fail:
28766 return NULL;
28767}
28768
28769
28770SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28771 PyObject *resultobj = 0;
28772 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28773 int arg2 ;
28774 int result;
28775 void *argp1 = 0 ;
28776 int res1 = 0 ;
28777 int val2 ;
28778 int ecode2 = 0 ;
28779 PyObject * obj0 = 0 ;
28780 PyObject * obj1 = 0 ;
28781 char * kwnames[] = {
28782 (char *) "self",(char *) "col", NULL
28783 };
28784
28785 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) SWIG_fail;
28786 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28787 if (!SWIG_IsOK(res1)) {
28788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28789 }
28790 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28791 ecode2 = SWIG_AsVal_int(obj1, &val2);
28792 if (!SWIG_IsOK(ecode2)) {
28793 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "2"" of type '" "int""'");
28794 }
28795 arg2 = static_cast< int >(val2);
28796 {
28797 PyThreadState* __tstate = wxPyBeginAllowThreads();
28798 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
28799 wxPyEndAllowThreads(__tstate);
28800 if (PyErr_Occurred()) SWIG_fail;
28801 }
28802 resultobj = SWIG_From_int(static_cast< int >(result));
28803 return resultobj;
28804fail:
28805 return NULL;
28806}
28807
28808
28809SWIGINTERN PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28810 PyObject *resultobj = 0;
28811 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28812 int arg2 ;
28813 int arg3 ;
28814 bool result;
28815 void *argp1 = 0 ;
28816 int res1 = 0 ;
28817 int val2 ;
28818 int ecode2 = 0 ;
28819 int val3 ;
28820 int ecode3 = 0 ;
28821 PyObject * obj0 = 0 ;
28822 PyObject * obj1 = 0 ;
28823 PyObject * obj2 = 0 ;
28824 char * kwnames[] = {
28825 (char *) "self",(char *) "col",(char *) "width", NULL
28826 };
28827
28828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28830 if (!SWIG_IsOK(res1)) {
28831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28832 }
28833 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28834 ecode2 = SWIG_AsVal_int(obj1, &val2);
28835 if (!SWIG_IsOK(ecode2)) {
28836 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "2"" of type '" "int""'");
28837 }
28838 arg2 = static_cast< int >(val2);
28839 ecode3 = SWIG_AsVal_int(obj2, &val3);
28840 if (!SWIG_IsOK(ecode3)) {
28841 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "3"" of type '" "int""'");
28842 }
28843 arg3 = static_cast< int >(val3);
28844 {
28845 PyThreadState* __tstate = wxPyBeginAllowThreads();
28846 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
28847 wxPyEndAllowThreads(__tstate);
28848 if (PyErr_Occurred()) SWIG_fail;
28849 }
28850 {
28851 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28852 }
28853 return resultobj;
28854fail:
28855 return NULL;
d14a1e28
RD
28856}
28857
28858
0085ce49
RD
28859SWIGINTERN PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28860 PyObject *resultobj = 0;
28861 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28862 int result;
28863 void *argp1 = 0 ;
28864 int res1 = 0 ;
28865 PyObject *swig_obj[1] ;
28866
28867 if (!args) SWIG_fail;
28868 swig_obj[0] = args;
28869 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28870 if (!SWIG_IsOK(res1)) {
28871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetCountPerPage" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28872 }
28873 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28874 {
28875 PyThreadState* __tstate = wxPyBeginAllowThreads();
28876 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
28877 wxPyEndAllowThreads(__tstate);
28878 if (PyErr_Occurred()) SWIG_fail;
28879 }
28880 resultobj = SWIG_From_int(static_cast< int >(result));
28881 return resultobj;
28882fail:
28883 return NULL;
d14a1e28
RD
28884}
28885
28886
0085ce49
RD
28887SWIGINTERN PyObject *_wrap_ListCtrl_GetViewRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28888 PyObject *resultobj = 0;
28889 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28890 wxRect result;
28891 void *argp1 = 0 ;
28892 int res1 = 0 ;
28893 PyObject *swig_obj[1] ;
28894
28895 if (!args) SWIG_fail;
28896 swig_obj[0] = args;
28897 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28898 if (!SWIG_IsOK(res1)) {
28899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetViewRect" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28900 }
28901 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28902 {
28903 PyThreadState* __tstate = wxPyBeginAllowThreads();
28904 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
28905 wxPyEndAllowThreads(__tstate);
28906 if (PyErr_Occurred()) SWIG_fail;
28907 }
28908 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
28909 return resultobj;
28910fail:
28911 return NULL;
d14a1e28
RD
28912}
28913
28914
0085ce49
RD
28915SWIGINTERN PyObject *_wrap_ListCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28916 PyObject *resultobj = 0;
28917 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28918 wxTextCtrl *result = 0 ;
28919 void *argp1 = 0 ;
28920 int res1 = 0 ;
28921 PyObject *swig_obj[1] ;
28922
28923 if (!args) SWIG_fail;
28924 swig_obj[0] = args;
28925 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28926 if (!SWIG_IsOK(res1)) {
28927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28928 }
28929 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28930 {
28931 PyThreadState* __tstate = wxPyBeginAllowThreads();
28932 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
28933 wxPyEndAllowThreads(__tstate);
28934 if (PyErr_Occurred()) SWIG_fail;
28935 }
28936 {
28937 resultobj = wxPyMake_wxObject(result, 0);
28938 }
28939 return resultobj;
28940fail:
28941 return NULL;
28942}
28943
28944
28945SWIGINTERN PyObject *_wrap_ListCtrl_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28946 PyObject *resultobj = 0;
28947 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28948 long arg2 ;
28949 int arg3 = (int) 0 ;
28950 wxListItem *result = 0 ;
28951 void *argp1 = 0 ;
28952 int res1 = 0 ;
28953 long val2 ;
28954 int ecode2 = 0 ;
28955 int val3 ;
28956 int ecode3 = 0 ;
28957 PyObject * obj0 = 0 ;
28958 PyObject * obj1 = 0 ;
28959 PyObject * obj2 = 0 ;
28960 char * kwnames[] = {
28961 (char *) "self",(char *) "itemId",(char *) "col", NULL
28962 };
28963
28964 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28965 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28966 if (!SWIG_IsOK(res1)) {
28967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28968 }
28969 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28970 ecode2 = SWIG_AsVal_long(obj1, &val2);
28971 if (!SWIG_IsOK(ecode2)) {
28972 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItem" "', expected argument " "2"" of type '" "long""'");
28973 }
28974 arg2 = static_cast< long >(val2);
28975 if (obj2) {
28976 ecode3 = SWIG_AsVal_int(obj2, &val3);
28977 if (!SWIG_IsOK(ecode3)) {
28978 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItem" "', expected argument " "3"" of type '" "int""'");
28979 }
28980 arg3 = static_cast< int >(val3);
28981 }
28982 {
28983 PyThreadState* __tstate = wxPyBeginAllowThreads();
28984 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
28985 wxPyEndAllowThreads(__tstate);
28986 if (PyErr_Occurred()) SWIG_fail;
28987 }
28988 {
28989 resultobj = wxPyMake_wxObject(result, (bool)0);
28990 }
28991 return resultobj;
28992fail:
28993 return NULL;
28994}
28995
28996
28997SWIGINTERN PyObject *_wrap_ListCtrl_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28998 PyObject *resultobj = 0;
28999 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29000 wxListItem *arg2 = 0 ;
29001 bool result;
29002 void *argp1 = 0 ;
29003 int res1 = 0 ;
29004 void *argp2 = 0 ;
29005 int res2 = 0 ;
29006 PyObject * obj0 = 0 ;
29007 PyObject * obj1 = 0 ;
29008 char * kwnames[] = {
29009 (char *) "self",(char *) "info", NULL
29010 };
29011
29012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
29013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29014 if (!SWIG_IsOK(res1)) {
29015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29016 }
29017 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29018 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
29019 if (!SWIG_IsOK(res2)) {
29020 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29021 }
29022 if (!argp2) {
29023 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29024 }
29025 arg2 = reinterpret_cast< wxListItem * >(argp2);
29026 {
29027 PyThreadState* __tstate = wxPyBeginAllowThreads();
29028 result = (bool)(arg1)->SetItem(*arg2);
29029 wxPyEndAllowThreads(__tstate);
29030 if (PyErr_Occurred()) SWIG_fail;
29031 }
29032 {
29033 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29034 }
29035 return resultobj;
29036fail:
29037 return NULL;
29038}
29039
29040
29041SWIGINTERN PyObject *_wrap_ListCtrl_SetStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29042 PyObject *resultobj = 0;
29043 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29044 long arg2 ;
29045 int arg3 ;
29046 wxString *arg4 = 0 ;
29047 int arg5 = (int) -1 ;
29048 long result;
29049 void *argp1 = 0 ;
29050 int res1 = 0 ;
29051 long val2 ;
29052 int ecode2 = 0 ;
29053 int val3 ;
29054 int ecode3 = 0 ;
29055 bool temp4 = false ;
29056 int val5 ;
29057 int ecode5 = 0 ;
29058 PyObject * obj0 = 0 ;
29059 PyObject * obj1 = 0 ;
29060 PyObject * obj2 = 0 ;
29061 PyObject * obj3 = 0 ;
29062 PyObject * obj4 = 0 ;
29063 char * kwnames[] = {
29064 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
29065 };
29066
29067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29068 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29069 if (!SWIG_IsOK(res1)) {
29070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29071 }
29072 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29073 ecode2 = SWIG_AsVal_long(obj1, &val2);
29074 if (!SWIG_IsOK(ecode2)) {
29075 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetStringItem" "', expected argument " "2"" of type '" "long""'");
29076 }
29077 arg2 = static_cast< long >(val2);
29078 ecode3 = SWIG_AsVal_int(obj2, &val3);
29079 if (!SWIG_IsOK(ecode3)) {
29080 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetStringItem" "', expected argument " "3"" of type '" "int""'");
29081 }
29082 arg3 = static_cast< int >(val3);
29083 {
29084 arg4 = wxString_in_helper(obj3);
29085 if (arg4 == NULL) SWIG_fail;
29086 temp4 = true;
29087 }
29088 if (obj4) {
29089 ecode5 = SWIG_AsVal_int(obj4, &val5);
29090 if (!SWIG_IsOK(ecode5)) {
29091 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_SetStringItem" "', expected argument " "5"" of type '" "int""'");
29092 }
29093 arg5 = static_cast< int >(val5);
29094 }
29095 {
29096 PyThreadState* __tstate = wxPyBeginAllowThreads();
29097 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
29098 wxPyEndAllowThreads(__tstate);
29099 if (PyErr_Occurred()) SWIG_fail;
29100 }
29101 resultobj = SWIG_From_long(static_cast< long >(result));
29102 {
29103 if (temp4)
29104 delete arg4;
29105 }
29106 return resultobj;
29107fail:
29108 {
29109 if (temp4)
29110 delete arg4;
29111 }
29112 return NULL;
29113}
29114
29115
29116SWIGINTERN PyObject *_wrap_ListCtrl_GetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29117 PyObject *resultobj = 0;
29118 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29119 long arg2 ;
29120 long arg3 ;
29121 int result;
29122 void *argp1 = 0 ;
29123 int res1 = 0 ;
29124 long val2 ;
29125 int ecode2 = 0 ;
29126 long val3 ;
29127 int ecode3 = 0 ;
29128 PyObject * obj0 = 0 ;
29129 PyObject * obj1 = 0 ;
29130 PyObject * obj2 = 0 ;
29131 char * kwnames[] = {
29132 (char *) "self",(char *) "item",(char *) "stateMask", NULL
29133 };
29134
29135 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29136 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29137 if (!SWIG_IsOK(res1)) {
29138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29139 }
29140 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29141 ecode2 = SWIG_AsVal_long(obj1, &val2);
29142 if (!SWIG_IsOK(ecode2)) {
29143 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemState" "', expected argument " "2"" of type '" "long""'");
29144 }
29145 arg2 = static_cast< long >(val2);
29146 ecode3 = SWIG_AsVal_long(obj2, &val3);
29147 if (!SWIG_IsOK(ecode3)) {
29148 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemState" "', expected argument " "3"" of type '" "long""'");
29149 }
29150 arg3 = static_cast< long >(val3);
29151 {
29152 PyThreadState* __tstate = wxPyBeginAllowThreads();
29153 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
29154 wxPyEndAllowThreads(__tstate);
29155 if (PyErr_Occurred()) SWIG_fail;
29156 }
29157 resultobj = SWIG_From_int(static_cast< int >(result));
29158 return resultobj;
29159fail:
29160 return NULL;
29161}
29162
29163
29164SWIGINTERN PyObject *_wrap_ListCtrl_SetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29165 PyObject *resultobj = 0;
29166 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29167 long arg2 ;
29168 long arg3 ;
29169 long arg4 ;
29170 bool result;
29171 void *argp1 = 0 ;
29172 int res1 = 0 ;
29173 long val2 ;
29174 int ecode2 = 0 ;
29175 long val3 ;
29176 int ecode3 = 0 ;
29177 long val4 ;
29178 int ecode4 = 0 ;
29179 PyObject * obj0 = 0 ;
29180 PyObject * obj1 = 0 ;
29181 PyObject * obj2 = 0 ;
29182 PyObject * obj3 = 0 ;
29183 char * kwnames[] = {
29184 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
29185 };
29186
29187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29189 if (!SWIG_IsOK(res1)) {
29190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29191 }
29192 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29193 ecode2 = SWIG_AsVal_long(obj1, &val2);
29194 if (!SWIG_IsOK(ecode2)) {
29195 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemState" "', expected argument " "2"" of type '" "long""'");
29196 }
29197 arg2 = static_cast< long >(val2);
29198 ecode3 = SWIG_AsVal_long(obj2, &val3);
29199 if (!SWIG_IsOK(ecode3)) {
29200 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemState" "', expected argument " "3"" of type '" "long""'");
29201 }
29202 arg3 = static_cast< long >(val3);
29203 ecode4 = SWIG_AsVal_long(obj3, &val4);
29204 if (!SWIG_IsOK(ecode4)) {
29205 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemState" "', expected argument " "4"" of type '" "long""'");
29206 }
29207 arg4 = static_cast< long >(val4);
29208 {
29209 PyThreadState* __tstate = wxPyBeginAllowThreads();
29210 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
29211 wxPyEndAllowThreads(__tstate);
29212 if (PyErr_Occurred()) SWIG_fail;
29213 }
29214 {
29215 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29216 }
29217 return resultobj;
29218fail:
29219 return NULL;
29220}
29221
29222
29223SWIGINTERN PyObject *_wrap_ListCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29224 PyObject *resultobj = 0;
29225 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29226 long arg2 ;
29227 int arg3 ;
29228 int arg4 = (int) -1 ;
29229 bool result;
29230 void *argp1 = 0 ;
29231 int res1 = 0 ;
29232 long val2 ;
29233 int ecode2 = 0 ;
29234 int val3 ;
29235 int ecode3 = 0 ;
29236 int val4 ;
29237 int ecode4 = 0 ;
29238 PyObject * obj0 = 0 ;
29239 PyObject * obj1 = 0 ;
29240 PyObject * obj2 = 0 ;
29241 PyObject * obj3 = 0 ;
29242 char * kwnames[] = {
29243 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
29244 };
29245
29246 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29247 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29248 if (!SWIG_IsOK(res1)) {
29249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29250 }
29251 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29252 ecode2 = SWIG_AsVal_long(obj1, &val2);
29253 if (!SWIG_IsOK(ecode2)) {
29254 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemImage" "', expected argument " "2"" of type '" "long""'");
29255 }
29256 arg2 = static_cast< long >(val2);
29257 ecode3 = SWIG_AsVal_int(obj2, &val3);
29258 if (!SWIG_IsOK(ecode3)) {
29259 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
29260 }
29261 arg3 = static_cast< int >(val3);
29262 if (obj3) {
29263 ecode4 = SWIG_AsVal_int(obj3, &val4);
29264 if (!SWIG_IsOK(ecode4)) {
29265 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemImage" "', expected argument " "4"" of type '" "int""'");
29266 }
29267 arg4 = static_cast< int >(val4);
29268 }
29269 {
29270 PyThreadState* __tstate = wxPyBeginAllowThreads();
29271 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
29272 wxPyEndAllowThreads(__tstate);
29273 if (PyErr_Occurred()) SWIG_fail;
29274 }
29275 {
29276 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29277 }
29278 return resultobj;
29279fail:
29280 return NULL;
29281}
29282
29283
29284SWIGINTERN PyObject *_wrap_ListCtrl_SetItemColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29285 PyObject *resultobj = 0;
29286 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29287 long arg2 ;
29288 long arg3 ;
29289 int arg4 ;
29290 bool result;
29291 void *argp1 = 0 ;
29292 int res1 = 0 ;
29293 long val2 ;
29294 int ecode2 = 0 ;
29295 long val3 ;
29296 int ecode3 = 0 ;
29297 int val4 ;
29298 int ecode4 = 0 ;
29299 PyObject * obj0 = 0 ;
29300 PyObject * obj1 = 0 ;
29301 PyObject * obj2 = 0 ;
29302 PyObject * obj3 = 0 ;
29303 char * kwnames[] = {
29304 (char *) "self",(char *) "item",(char *) "column",(char *) "image", NULL
29305 };
29306
29307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemColumnImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29309 if (!SWIG_IsOK(res1)) {
29310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29311 }
29312 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29313 ecode2 = SWIG_AsVal_long(obj1, &val2);
29314 if (!SWIG_IsOK(ecode2)) {
29315 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "2"" of type '" "long""'");
29316 }
29317 arg2 = static_cast< long >(val2);
29318 ecode3 = SWIG_AsVal_long(obj2, &val3);
29319 if (!SWIG_IsOK(ecode3)) {
29320 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "3"" of type '" "long""'");
29321 }
29322 arg3 = static_cast< long >(val3);
29323 ecode4 = SWIG_AsVal_int(obj3, &val4);
29324 if (!SWIG_IsOK(ecode4)) {
29325 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "4"" of type '" "int""'");
29326 }
29327 arg4 = static_cast< int >(val4);
29328 {
29329 PyThreadState* __tstate = wxPyBeginAllowThreads();
29330 result = (bool)(arg1)->SetItemColumnImage(arg2,arg3,arg4);
29331 wxPyEndAllowThreads(__tstate);
29332 if (PyErr_Occurred()) SWIG_fail;
29333 }
29334 {
29335 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29336 }
29337 return resultobj;
29338fail:
29339 return NULL;
29340}
29341
29342
29343SWIGINTERN PyObject *_wrap_ListCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29344 PyObject *resultobj = 0;
29345 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29346 long arg2 ;
29347 wxString result;
29348 void *argp1 = 0 ;
29349 int res1 = 0 ;
29350 long val2 ;
29351 int ecode2 = 0 ;
29352 PyObject * obj0 = 0 ;
29353 PyObject * obj1 = 0 ;
29354 char * kwnames[] = {
29355 (char *) "self",(char *) "item", NULL
29356 };
29357
29358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
29359 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29360 if (!SWIG_IsOK(res1)) {
29361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29362 }
29363 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29364 ecode2 = SWIG_AsVal_long(obj1, &val2);
29365 if (!SWIG_IsOK(ecode2)) {
29366 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemText" "', expected argument " "2"" of type '" "long""'");
29367 }
29368 arg2 = static_cast< long >(val2);
29369 {
29370 PyThreadState* __tstate = wxPyBeginAllowThreads();
29371 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
29372 wxPyEndAllowThreads(__tstate);
29373 if (PyErr_Occurred()) SWIG_fail;
29374 }
29375 {
29376#if wxUSE_UNICODE
29377 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29378#else
29379 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29380#endif
29381 }
29382 return resultobj;
29383fail:
29384 return NULL;
29385}
29386
29387
29388SWIGINTERN PyObject *_wrap_ListCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29389 PyObject *resultobj = 0;
29390 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29391 long arg2 ;
29392 wxString *arg3 = 0 ;
29393 void *argp1 = 0 ;
29394 int res1 = 0 ;
29395 long val2 ;
29396 int ecode2 = 0 ;
29397 bool temp3 = false ;
29398 PyObject * obj0 = 0 ;
29399 PyObject * obj1 = 0 ;
29400 PyObject * obj2 = 0 ;
29401 char * kwnames[] = {
29402 (char *) "self",(char *) "item",(char *) "str", NULL
29403 };
29404
29405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29407 if (!SWIG_IsOK(res1)) {
29408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29409 }
29410 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29411 ecode2 = SWIG_AsVal_long(obj1, &val2);
29412 if (!SWIG_IsOK(ecode2)) {
29413 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemText" "', expected argument " "2"" of type '" "long""'");
29414 }
29415 arg2 = static_cast< long >(val2);
29416 {
29417 arg3 = wxString_in_helper(obj2);
29418 if (arg3 == NULL) SWIG_fail;
29419 temp3 = true;
29420 }
29421 {
29422 PyThreadState* __tstate = wxPyBeginAllowThreads();
29423 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
29424 wxPyEndAllowThreads(__tstate);
29425 if (PyErr_Occurred()) SWIG_fail;
29426 }
29427 resultobj = SWIG_Py_Void();
29428 {
29429 if (temp3)
29430 delete arg3;
29431 }
29432 return resultobj;
29433fail:
29434 {
29435 if (temp3)
29436 delete arg3;
29437 }
29438 return NULL;
29439}
29440
29441
29442SWIGINTERN PyObject *_wrap_ListCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29443 PyObject *resultobj = 0;
29444 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29445 long arg2 ;
29446 long result;
29447 void *argp1 = 0 ;
29448 int res1 = 0 ;
29449 long val2 ;
29450 int ecode2 = 0 ;
29451 PyObject * obj0 = 0 ;
29452 PyObject * obj1 = 0 ;
29453 char * kwnames[] = {
29454 (char *) "self",(char *) "item", NULL
29455 };
29456
29457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
29458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29459 if (!SWIG_IsOK(res1)) {
29460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29461 }
29462 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29463 ecode2 = SWIG_AsVal_long(obj1, &val2);
29464 if (!SWIG_IsOK(ecode2)) {
29465 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemData" "', expected argument " "2"" of type '" "long""'");
29466 }
29467 arg2 = static_cast< long >(val2);
29468 {
29469 PyThreadState* __tstate = wxPyBeginAllowThreads();
29470 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
29471 wxPyEndAllowThreads(__tstate);
29472 if (PyErr_Occurred()) SWIG_fail;
29473 }
29474 resultobj = SWIG_From_long(static_cast< long >(result));
29475 return resultobj;
29476fail:
29477 return NULL;
29478}
29479
29480
29481SWIGINTERN PyObject *_wrap_ListCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29482 PyObject *resultobj = 0;
29483 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29484 long arg2 ;
29485 long arg3 ;
29486 bool result;
29487 void *argp1 = 0 ;
29488 int res1 = 0 ;
29489 long val2 ;
29490 int ecode2 = 0 ;
29491 long val3 ;
29492 int ecode3 = 0 ;
29493 PyObject * obj0 = 0 ;
29494 PyObject * obj1 = 0 ;
29495 PyObject * obj2 = 0 ;
29496 char * kwnames[] = {
29497 (char *) "self",(char *) "item",(char *) "data", NULL
29498 };
29499
29500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29502 if (!SWIG_IsOK(res1)) {
29503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29504 }
29505 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29506 ecode2 = SWIG_AsVal_long(obj1, &val2);
29507 if (!SWIG_IsOK(ecode2)) {
29508 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemData" "', expected argument " "2"" of type '" "long""'");
29509 }
29510 arg2 = static_cast< long >(val2);
29511 ecode3 = SWIG_AsVal_long(obj2, &val3);
29512 if (!SWIG_IsOK(ecode3)) {
29513 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemData" "', expected argument " "3"" of type '" "long""'");
29514 }
29515 arg3 = static_cast< long >(val3);
29516 {
29517 PyThreadState* __tstate = wxPyBeginAllowThreads();
29518 result = (bool)(arg1)->SetItemData(arg2,arg3);
29519 wxPyEndAllowThreads(__tstate);
29520 if (PyErr_Occurred()) SWIG_fail;
29521 }
29522 {
29523 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29524 }
29525 return resultobj;
29526fail:
29527 return NULL;
29528}
29529
29530
29531SWIGINTERN PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29532 PyObject *resultobj = 0;
29533 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29534 long arg2 ;
29535 wxPoint result;
29536 void *argp1 = 0 ;
29537 int res1 = 0 ;
29538 long val2 ;
29539 int ecode2 = 0 ;
29540 PyObject * obj0 = 0 ;
29541 PyObject * obj1 = 0 ;
29542 char * kwnames[] = {
29543 (char *) "self",(char *) "item", NULL
29544 };
29545
29546 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) SWIG_fail;
29547 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29548 if (!SWIG_IsOK(res1)) {
29549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29550 }
29551 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29552 ecode2 = SWIG_AsVal_long(obj1, &val2);
29553 if (!SWIG_IsOK(ecode2)) {
29554 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "2"" of type '" "long""'");
29555 }
29556 arg2 = static_cast< long >(val2);
29557 {
29558 PyThreadState* __tstate = wxPyBeginAllowThreads();
29559 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
29560 wxPyEndAllowThreads(__tstate);
29561 if (PyErr_Occurred()) SWIG_fail;
29562 }
29563 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
29564 return resultobj;
29565fail:
29566 return NULL;
29567}
29568
29569
29570SWIGINTERN PyObject *_wrap_ListCtrl_GetItemRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29571 PyObject *resultobj = 0;
29572 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29573 long arg2 ;
29574 int arg3 = (int) wxLIST_RECT_BOUNDS ;
29575 wxRect result;
29576 void *argp1 = 0 ;
29577 int res1 = 0 ;
29578 long val2 ;
29579 int ecode2 = 0 ;
29580 int val3 ;
29581 int ecode3 = 0 ;
29582 PyObject * obj0 = 0 ;
29583 PyObject * obj1 = 0 ;
29584 PyObject * obj2 = 0 ;
29585 char * kwnames[] = {
29586 (char *) "self",(char *) "item",(char *) "code", NULL
29587 };
29588
29589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29591 if (!SWIG_IsOK(res1)) {
29592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemRect" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29593 }
29594 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29595 ecode2 = SWIG_AsVal_long(obj1, &val2);
29596 if (!SWIG_IsOK(ecode2)) {
29597 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemRect" "', expected argument " "2"" of type '" "long""'");
29598 }
29599 arg2 = static_cast< long >(val2);
29600 if (obj2) {
29601 ecode3 = SWIG_AsVal_int(obj2, &val3);
29602 if (!SWIG_IsOK(ecode3)) {
29603 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemRect" "', expected argument " "3"" of type '" "int""'");
29604 }
29605 arg3 = static_cast< int >(val3);
29606 }
29607 {
29608 PyThreadState* __tstate = wxPyBeginAllowThreads();
29609 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
29610 wxPyEndAllowThreads(__tstate);
29611 if (PyErr_Occurred()) SWIG_fail;
29612 }
29613 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29614 return resultobj;
29615fail:
29616 return NULL;
29617}
29618
29619
29620SWIGINTERN PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29621 PyObject *resultobj = 0;
29622 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29623 long arg2 ;
29624 wxPoint *arg3 = 0 ;
29625 bool result;
29626 void *argp1 = 0 ;
29627 int res1 = 0 ;
29628 long val2 ;
29629 int ecode2 = 0 ;
29630 wxPoint temp3 ;
29631 PyObject * obj0 = 0 ;
29632 PyObject * obj1 = 0 ;
29633 PyObject * obj2 = 0 ;
29634 char * kwnames[] = {
29635 (char *) "self",(char *) "item",(char *) "pos", NULL
29636 };
29637
29638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29640 if (!SWIG_IsOK(res1)) {
29641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29642 }
29643 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29644 ecode2 = SWIG_AsVal_long(obj1, &val2);
29645 if (!SWIG_IsOK(ecode2)) {
29646 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "2"" of type '" "long""'");
29647 }
29648 arg2 = static_cast< long >(val2);
29649 {
29650 arg3 = &temp3;
29651 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29652 }
29653 {
29654 PyThreadState* __tstate = wxPyBeginAllowThreads();
29655 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
29656 wxPyEndAllowThreads(__tstate);
29657 if (PyErr_Occurred()) SWIG_fail;
29658 }
29659 {
29660 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29661 }
29662 return resultobj;
29663fail:
29664 return NULL;
d14a1e28
RD
29665}
29666
29667
0085ce49
RD
29668SWIGINTERN PyObject *_wrap_ListCtrl_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29669 PyObject *resultobj = 0;
29670 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29671 int result;
29672 void *argp1 = 0 ;
29673 int res1 = 0 ;
29674 PyObject *swig_obj[1] ;
29675
29676 if (!args) SWIG_fail;
29677 swig_obj[0] = args;
29678 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29679 if (!SWIG_IsOK(res1)) {
29680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29681 }
29682 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29683 {
29684 PyThreadState* __tstate = wxPyBeginAllowThreads();
29685 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
29686 wxPyEndAllowThreads(__tstate);
29687 if (PyErr_Occurred()) SWIG_fail;
29688 }
29689 resultobj = SWIG_From_int(static_cast< int >(result));
29690 return resultobj;
29691fail:
29692 return NULL;
d14a1e28
RD
29693}
29694
29695
0085ce49
RD
29696SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29697 PyObject *resultobj = 0;
29698 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29699 int result;
29700 void *argp1 = 0 ;
29701 int res1 = 0 ;
29702 PyObject *swig_obj[1] ;
29703
29704 if (!args) SWIG_fail;
29705 swig_obj[0] = args;
29706 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29707 if (!SWIG_IsOK(res1)) {
29708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29709 }
29710 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29711 {
29712 PyThreadState* __tstate = wxPyBeginAllowThreads();
29713 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
29714 wxPyEndAllowThreads(__tstate);
29715 if (PyErr_Occurred()) SWIG_fail;
29716 }
29717 resultobj = SWIG_From_int(static_cast< int >(result));
29718 return resultobj;
29719fail:
29720 return NULL;
d14a1e28
RD
29721}
29722
29723
0085ce49
RD
29724SWIGINTERN PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29725 PyObject *resultobj = 0;
29726 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29727 wxSize result;
29728 void *argp1 = 0 ;
29729 int res1 = 0 ;
29730 PyObject *swig_obj[1] ;
29731
29732 if (!args) SWIG_fail;
29733 swig_obj[0] = args;
29734 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29735 if (!SWIG_IsOK(res1)) {
29736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29737 }
29738 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29739 {
29740 PyThreadState* __tstate = wxPyBeginAllowThreads();
29741 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
29742 wxPyEndAllowThreads(__tstate);
29743 if (PyErr_Occurred()) SWIG_fail;
29744 }
29745 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
29746 return resultobj;
29747fail:
29748 return NULL;
29749}
29750
29751
29752SWIGINTERN PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29753 PyObject *resultobj = 0;
29754 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29755 int arg2 ;
29756 bool arg3 = (bool) false ;
29757 void *argp1 = 0 ;
29758 int res1 = 0 ;
29759 int val2 ;
29760 int ecode2 = 0 ;
29761 bool val3 ;
29762 int ecode3 = 0 ;
29763 PyObject * obj0 = 0 ;
29764 PyObject * obj1 = 0 ;
29765 PyObject * obj2 = 0 ;
29766 char * kwnames[] = {
29767 (char *) "self",(char *) "spacing",(char *) "isSmall", NULL
29768 };
29769
29770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29772 if (!SWIG_IsOK(res1)) {
29773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29774 }
29775 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29776 ecode2 = SWIG_AsVal_int(obj1, &val2);
29777 if (!SWIG_IsOK(ecode2)) {
29778 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "2"" of type '" "int""'");
29779 }
29780 arg2 = static_cast< int >(val2);
29781 if (obj2) {
29782 ecode3 = SWIG_AsVal_bool(obj2, &val3);
29783 if (!SWIG_IsOK(ecode3)) {
29784 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "3"" of type '" "bool""'");
29785 }
29786 arg3 = static_cast< bool >(val3);
29787 }
29788 {
29789 PyThreadState* __tstate = wxPyBeginAllowThreads();
29790 (arg1)->SetItemSpacing(arg2,arg3);
29791 wxPyEndAllowThreads(__tstate);
29792 if (PyErr_Occurred()) SWIG_fail;
29793 }
29794 resultobj = SWIG_Py_Void();
29795 return resultobj;
29796fail:
29797 return NULL;
22bfe96c
RD
29798}
29799
29800
0085ce49
RD
29801SWIGINTERN PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29802 PyObject *resultobj = 0;
29803 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29804 int result;
29805 void *argp1 = 0 ;
29806 int res1 = 0 ;
29807 PyObject *swig_obj[1] ;
29808
29809 if (!args) SWIG_fail;
29810 swig_obj[0] = args;
29811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29812 if (!SWIG_IsOK(res1)) {
29813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetSelectedItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29814 }
29815 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29816 {
29817 PyThreadState* __tstate = wxPyBeginAllowThreads();
29818 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
29819 wxPyEndAllowThreads(__tstate);
29820 if (PyErr_Occurred()) SWIG_fail;
29821 }
29822 resultobj = SWIG_From_int(static_cast< int >(result));
29823 return resultobj;
29824fail:
29825 return NULL;
d14a1e28
RD
29826}
29827
29828
0085ce49
RD
29829SWIGINTERN PyObject *_wrap_ListCtrl_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29830 PyObject *resultobj = 0;
29831 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29832 wxColour result;
29833 void *argp1 = 0 ;
29834 int res1 = 0 ;
29835 PyObject *swig_obj[1] ;
29836
29837 if (!args) SWIG_fail;
29838 swig_obj[0] = args;
29839 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29840 if (!SWIG_IsOK(res1)) {
29841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29842 }
29843 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29844 {
29845 PyThreadState* __tstate = wxPyBeginAllowThreads();
29846 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
29847 wxPyEndAllowThreads(__tstate);
29848 if (PyErr_Occurred()) SWIG_fail;
29849 }
29850 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29851 return resultobj;
29852fail:
29853 return NULL;
29854}
29855
29856
29857SWIGINTERN PyObject *_wrap_ListCtrl_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29858 PyObject *resultobj = 0;
29859 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29860 wxColour *arg2 = 0 ;
29861 void *argp1 = 0 ;
29862 int res1 = 0 ;
29863 wxColour temp2 ;
29864 PyObject * obj0 = 0 ;
29865 PyObject * obj1 = 0 ;
29866 char * kwnames[] = {
29867 (char *) "self",(char *) "col", NULL
29868 };
29869
29870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
29871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29872 if (!SWIG_IsOK(res1)) {
29873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29874 }
29875 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29876 {
29877 arg2 = &temp2;
29878 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29879 }
29880 {
29881 PyThreadState* __tstate = wxPyBeginAllowThreads();
29882 (arg1)->SetTextColour((wxColour const &)*arg2);
29883 wxPyEndAllowThreads(__tstate);
29884 if (PyErr_Occurred()) SWIG_fail;
29885 }
29886 resultobj = SWIG_Py_Void();
29887 return resultobj;
29888fail:
29889 return NULL;
d14a1e28
RD
29890}
29891
29892
0085ce49
RD
29893SWIGINTERN PyObject *_wrap_ListCtrl_GetTopItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29894 PyObject *resultobj = 0;
29895 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29896 long result;
29897 void *argp1 = 0 ;
29898 int res1 = 0 ;
29899 PyObject *swig_obj[1] ;
29900
29901 if (!args) SWIG_fail;
29902 swig_obj[0] = args;
29903 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29904 if (!SWIG_IsOK(res1)) {
29905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTopItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29906 }
29907 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29908 {
29909 PyThreadState* __tstate = wxPyBeginAllowThreads();
29910 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
29911 wxPyEndAllowThreads(__tstate);
29912 if (PyErr_Occurred()) SWIG_fail;
29913 }
29914 resultobj = SWIG_From_long(static_cast< long >(result));
29915 return resultobj;
29916fail:
29917 return NULL;
29918}
29919
29920
29921SWIGINTERN PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29922 PyObject *resultobj = 0;
29923 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29924 long arg2 ;
29925 bool arg3 = (bool) true ;
29926 void *argp1 = 0 ;
29927 int res1 = 0 ;
29928 long val2 ;
29929 int ecode2 = 0 ;
29930 bool val3 ;
29931 int ecode3 = 0 ;
29932 PyObject * obj0 = 0 ;
29933 PyObject * obj1 = 0 ;
29934 PyObject * obj2 = 0 ;
29935 char * kwnames[] = {
29936 (char *) "self",(char *) "style",(char *) "add", NULL
29937 };
29938
29939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29941 if (!SWIG_IsOK(res1)) {
29942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29943 }
29944 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29945 ecode2 = SWIG_AsVal_long(obj1, &val2);
29946 if (!SWIG_IsOK(ecode2)) {
29947 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "2"" of type '" "long""'");
29948 }
29949 arg2 = static_cast< long >(val2);
29950 if (obj2) {
29951 ecode3 = SWIG_AsVal_bool(obj2, &val3);
29952 if (!SWIG_IsOK(ecode3)) {
29953 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "3"" of type '" "bool""'");
29954 }
29955 arg3 = static_cast< bool >(val3);
29956 }
29957 {
29958 PyThreadState* __tstate = wxPyBeginAllowThreads();
29959 (arg1)->SetSingleStyle(arg2,arg3);
29960 wxPyEndAllowThreads(__tstate);
29961 if (PyErr_Occurred()) SWIG_fail;
29962 }
29963 resultobj = SWIG_Py_Void();
29964 return resultobj;
29965fail:
29966 return NULL;
29967}
29968
29969
29970SWIGINTERN PyObject *_wrap_ListCtrl_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29971 PyObject *resultobj = 0;
29972 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29973 long arg2 ;
29974 int arg3 = (int) wxLIST_NEXT_ALL ;
29975 int arg4 = (int) wxLIST_STATE_DONTCARE ;
29976 long result;
29977 void *argp1 = 0 ;
29978 int res1 = 0 ;
29979 long val2 ;
29980 int ecode2 = 0 ;
29981 int val3 ;
29982 int ecode3 = 0 ;
29983 int val4 ;
29984 int ecode4 = 0 ;
29985 PyObject * obj0 = 0 ;
29986 PyObject * obj1 = 0 ;
29987 PyObject * obj2 = 0 ;
29988 PyObject * obj3 = 0 ;
29989 char * kwnames[] = {
29990 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
29991 };
29992
29993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29995 if (!SWIG_IsOK(res1)) {
29996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetNextItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29997 }
29998 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29999 ecode2 = SWIG_AsVal_long(obj1, &val2);
30000 if (!SWIG_IsOK(ecode2)) {
30001 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetNextItem" "', expected argument " "2"" of type '" "long""'");
30002 }
30003 arg2 = static_cast< long >(val2);
30004 if (obj2) {
30005 ecode3 = SWIG_AsVal_int(obj2, &val3);
30006 if (!SWIG_IsOK(ecode3)) {
30007 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetNextItem" "', expected argument " "3"" of type '" "int""'");
30008 }
30009 arg3 = static_cast< int >(val3);
30010 }
30011 if (obj3) {
30012 ecode4 = SWIG_AsVal_int(obj3, &val4);
30013 if (!SWIG_IsOK(ecode4)) {
30014 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_GetNextItem" "', expected argument " "4"" of type '" "int""'");
30015 }
30016 arg4 = static_cast< int >(val4);
30017 }
30018 {
30019 PyThreadState* __tstate = wxPyBeginAllowThreads();
30020 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
30021 wxPyEndAllowThreads(__tstate);
30022 if (PyErr_Occurred()) SWIG_fail;
30023 }
30024 resultobj = SWIG_From_long(static_cast< long >(result));
30025 return resultobj;
30026fail:
30027 return NULL;
30028}
30029
30030
30031SWIGINTERN PyObject *_wrap_ListCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30032 PyObject *resultobj = 0;
30033 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30034 int arg2 ;
30035 wxImageList *result = 0 ;
30036 void *argp1 = 0 ;
30037 int res1 = 0 ;
30038 int val2 ;
30039 int ecode2 = 0 ;
30040 PyObject * obj0 = 0 ;
30041 PyObject * obj1 = 0 ;
30042 char * kwnames[] = {
30043 (char *) "self",(char *) "which", NULL
30044 };
30045
30046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
30047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30048 if (!SWIG_IsOK(res1)) {
30049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30050 }
30051 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30052 ecode2 = SWIG_AsVal_int(obj1, &val2);
30053 if (!SWIG_IsOK(ecode2)) {
30054 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetImageList" "', expected argument " "2"" of type '" "int""'");
30055 }
30056 arg2 = static_cast< int >(val2);
30057 {
30058 PyThreadState* __tstate = wxPyBeginAllowThreads();
30059 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
30060 wxPyEndAllowThreads(__tstate);
30061 if (PyErr_Occurred()) SWIG_fail;
30062 }
30063 {
30064 resultobj = wxPyMake_wxObject(result, (bool)0);
30065 }
30066 return resultobj;
30067fail:
30068 return NULL;
30069}
30070
30071
30072SWIGINTERN PyObject *_wrap_ListCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30073 PyObject *resultobj = 0;
30074 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30075 wxImageList *arg2 = (wxImageList *) 0 ;
30076 int arg3 ;
30077 void *argp1 = 0 ;
30078 int res1 = 0 ;
30079 void *argp2 = 0 ;
30080 int res2 = 0 ;
30081 int val3 ;
30082 int ecode3 = 0 ;
30083 PyObject * obj0 = 0 ;
30084 PyObject * obj1 = 0 ;
30085 PyObject * obj2 = 0 ;
30086 char * kwnames[] = {
30087 (char *) "self",(char *) "imageList",(char *) "which", NULL
30088 };
30089
30090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",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_SetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30094 }
30095 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30096 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
30097 if (!SWIG_IsOK(res2)) {
30098 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30099 }
30100 arg2 = reinterpret_cast< wxImageList * >(argp2);
30101 ecode3 = SWIG_AsVal_int(obj2, &val3);
30102 if (!SWIG_IsOK(ecode3)) {
30103 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetImageList" "', expected argument " "3"" of type '" "int""'");
30104 }
30105 arg3 = static_cast< int >(val3);
30106 {
30107 PyThreadState* __tstate = wxPyBeginAllowThreads();
30108 (arg1)->SetImageList(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_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30120 PyObject *resultobj = 0;
30121 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30122 wxImageList *arg2 = (wxImageList *) 0 ;
30123 int arg3 ;
30124 void *argp1 = 0 ;
30125 int res1 = 0 ;
30126 int res2 = 0 ;
30127 int val3 ;
30128 int ecode3 = 0 ;
30129 PyObject * obj0 = 0 ;
30130 PyObject * obj1 = 0 ;
30131 PyObject * obj2 = 0 ;
30132 char * kwnames[] = {
30133 (char *) "self",(char *) "imageList",(char *) "which", NULL
30134 };
30135
30136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30138 if (!SWIG_IsOK(res1)) {
30139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30140 }
30141 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30142 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
30143 if (!SWIG_IsOK(res2)) {
30144 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30145 }
30146 ecode3 = SWIG_AsVal_int(obj2, &val3);
30147 if (!SWIG_IsOK(ecode3)) {
30148 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_AssignImageList" "', expected argument " "3"" of type '" "int""'");
30149 }
30150 arg3 = static_cast< int >(val3);
30151 {
30152 PyThreadState* __tstate = wxPyBeginAllowThreads();
30153 (arg1)->AssignImageList(arg2,arg3);
30154 wxPyEndAllowThreads(__tstate);
30155 if (PyErr_Occurred()) SWIG_fail;
30156 }
30157 resultobj = SWIG_Py_Void();
30158 return resultobj;
30159fail:
30160 return NULL;
d14a1e28
RD
30161}
30162
30163
0085ce49
RD
30164SWIGINTERN PyObject *_wrap_ListCtrl_InReportView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30165 PyObject *resultobj = 0;
30166 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30167 bool result;
30168 void *argp1 = 0 ;
30169 int res1 = 0 ;
30170 PyObject *swig_obj[1] ;
30171
30172 if (!args) SWIG_fail;
30173 swig_obj[0] = args;
30174 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30175 if (!SWIG_IsOK(res1)) {
30176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InReportView" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30177 }
30178 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30179 {
30180 PyThreadState* __tstate = wxPyBeginAllowThreads();
30181 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
30182 wxPyEndAllowThreads(__tstate);
30183 if (PyErr_Occurred()) SWIG_fail;
30184 }
30185 {
30186 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30187 }
30188 return resultobj;
30189fail:
30190 return NULL;
d14a1e28
RD
30191}
30192
30193
0085ce49
RD
30194SWIGINTERN PyObject *_wrap_ListCtrl_IsVirtual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30195 PyObject *resultobj = 0;
30196 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30197 bool result;
30198 void *argp1 = 0 ;
30199 int res1 = 0 ;
30200 PyObject *swig_obj[1] ;
30201
30202 if (!args) SWIG_fail;
30203 swig_obj[0] = args;
30204 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30205 if (!SWIG_IsOK(res1)) {
30206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_IsVirtual" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30207 }
30208 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30209 {
30210 PyThreadState* __tstate = wxPyBeginAllowThreads();
30211 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
30212 wxPyEndAllowThreads(__tstate);
30213 if (PyErr_Occurred()) SWIG_fail;
30214 }
30215 {
30216 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30217 }
30218 return resultobj;
30219fail:
30220 return NULL;
30221}
30222
30223
30224SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30225 PyObject *resultobj = 0;
30226 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30227 long arg2 ;
30228 void *argp1 = 0 ;
30229 int res1 = 0 ;
30230 long val2 ;
30231 int ecode2 = 0 ;
30232 PyObject * obj0 = 0 ;
30233 PyObject * obj1 = 0 ;
30234 char * kwnames[] = {
30235 (char *) "self",(char *) "item", NULL
30236 };
30237
30238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) SWIG_fail;
30239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30240 if (!SWIG_IsOK(res1)) {
30241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30242 }
30243 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30244 ecode2 = SWIG_AsVal_long(obj1, &val2);
30245 if (!SWIG_IsOK(ecode2)) {
30246 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItem" "', expected argument " "2"" of type '" "long""'");
30247 }
30248 arg2 = static_cast< long >(val2);
30249 {
30250 PyThreadState* __tstate = wxPyBeginAllowThreads();
30251 (arg1)->RefreshItem(arg2);
30252 wxPyEndAllowThreads(__tstate);
30253 if (PyErr_Occurred()) SWIG_fail;
30254 }
30255 resultobj = SWIG_Py_Void();
30256 return resultobj;
30257fail:
30258 return NULL;
30259}
30260
30261
30262SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30263 PyObject *resultobj = 0;
30264 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30265 long arg2 ;
30266 long arg3 ;
30267 void *argp1 = 0 ;
30268 int res1 = 0 ;
30269 long val2 ;
30270 int ecode2 = 0 ;
30271 long val3 ;
30272 int ecode3 = 0 ;
30273 PyObject * obj0 = 0 ;
30274 PyObject * obj1 = 0 ;
30275 PyObject * obj2 = 0 ;
30276 char * kwnames[] = {
30277 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
30278 };
30279
30280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30282 if (!SWIG_IsOK(res1)) {
30283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30284 }
30285 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30286 ecode2 = SWIG_AsVal_long(obj1, &val2);
30287 if (!SWIG_IsOK(ecode2)) {
30288 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItems" "', expected argument " "2"" of type '" "long""'");
30289 }
30290 arg2 = static_cast< long >(val2);
30291 ecode3 = SWIG_AsVal_long(obj2, &val3);
30292 if (!SWIG_IsOK(ecode3)) {
30293 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_RefreshItems" "', expected argument " "3"" of type '" "long""'");
30294 }
30295 arg3 = static_cast< long >(val3);
30296 {
30297 PyThreadState* __tstate = wxPyBeginAllowThreads();
30298 (arg1)->RefreshItems(arg2,arg3);
30299 wxPyEndAllowThreads(__tstate);
30300 if (PyErr_Occurred()) SWIG_fail;
30301 }
30302 resultobj = SWIG_Py_Void();
30303 return resultobj;
30304fail:
30305 return NULL;
30306}
30307
30308
30309SWIGINTERN PyObject *_wrap_ListCtrl_Arrange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30310 PyObject *resultobj = 0;
30311 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30312 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
30313 bool result;
30314 void *argp1 = 0 ;
30315 int res1 = 0 ;
30316 int val2 ;
30317 int ecode2 = 0 ;
30318 PyObject * obj0 = 0 ;
30319 PyObject * obj1 = 0 ;
30320 char * kwnames[] = {
30321 (char *) "self",(char *) "flag", NULL
30322 };
30323
30324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) SWIG_fail;
30325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30326 if (!SWIG_IsOK(res1)) {
30327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Arrange" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30328 }
30329 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30330 if (obj1) {
30331 ecode2 = SWIG_AsVal_int(obj1, &val2);
30332 if (!SWIG_IsOK(ecode2)) {
30333 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_Arrange" "', expected argument " "2"" of type '" "int""'");
30334 }
30335 arg2 = static_cast< int >(val2);
30336 }
30337 {
30338 PyThreadState* __tstate = wxPyBeginAllowThreads();
30339 result = (bool)(arg1)->Arrange(arg2);
30340 wxPyEndAllowThreads(__tstate);
30341 if (PyErr_Occurred()) SWIG_fail;
30342 }
30343 {
30344 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30345 }
30346 return resultobj;
30347fail:
30348 return NULL;
30349}
30350
30351
30352SWIGINTERN PyObject *_wrap_ListCtrl_DeleteItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30353 PyObject *resultobj = 0;
30354 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30355 long arg2 ;
30356 bool result;
30357 void *argp1 = 0 ;
30358 int res1 = 0 ;
30359 long val2 ;
30360 int ecode2 = 0 ;
30361 PyObject * obj0 = 0 ;
30362 PyObject * obj1 = 0 ;
30363 char * kwnames[] = {
30364 (char *) "self",(char *) "item", NULL
30365 };
30366
30367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) SWIG_fail;
30368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30369 if (!SWIG_IsOK(res1)) {
30370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30371 }
30372 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30373 ecode2 = SWIG_AsVal_long(obj1, &val2);
30374 if (!SWIG_IsOK(ecode2)) {
30375 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteItem" "', expected argument " "2"" of type '" "long""'");
30376 }
30377 arg2 = static_cast< long >(val2);
30378 {
30379 PyThreadState* __tstate = wxPyBeginAllowThreads();
30380 result = (bool)(arg1)->DeleteItem(arg2);
30381 wxPyEndAllowThreads(__tstate);
30382 if (PyErr_Occurred()) SWIG_fail;
30383 }
30384 {
30385 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30386 }
30387 return resultobj;
30388fail:
30389 return NULL;
7e08d4ef
RD
30390}
30391
30392
0085ce49
RD
30393SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30394 PyObject *resultobj = 0;
30395 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30396 bool result;
30397 void *argp1 = 0 ;
30398 int res1 = 0 ;
30399 PyObject *swig_obj[1] ;
30400
30401 if (!args) SWIG_fail;
30402 swig_obj[0] = args;
30403 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30404 if (!SWIG_IsOK(res1)) {
30405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30406 }
30407 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30408 {
30409 PyThreadState* __tstate = wxPyBeginAllowThreads();
30410 result = (bool)(arg1)->DeleteAllItems();
30411 wxPyEndAllowThreads(__tstate);
30412 if (PyErr_Occurred()) SWIG_fail;
30413 }
30414 {
30415 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30416 }
30417 return resultobj;
30418fail:
30419 return NULL;
30420}
30421
30422
30423SWIGINTERN PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30424 PyObject *resultobj = 0;
30425 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30426 int arg2 ;
30427 bool result;
30428 void *argp1 = 0 ;
30429 int res1 = 0 ;
30430 int val2 ;
30431 int ecode2 = 0 ;
30432 PyObject * obj0 = 0 ;
30433 PyObject * obj1 = 0 ;
30434 char * kwnames[] = {
30435 (char *) "self",(char *) "col", NULL
30436 };
30437
30438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) SWIG_fail;
30439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30440 if (!SWIG_IsOK(res1)) {
30441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30442 }
30443 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30444 ecode2 = SWIG_AsVal_int(obj1, &val2);
30445 if (!SWIG_IsOK(ecode2)) {
30446 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "2"" of type '" "int""'");
30447 }
30448 arg2 = static_cast< int >(val2);
30449 {
30450 PyThreadState* __tstate = wxPyBeginAllowThreads();
30451 result = (bool)(arg1)->DeleteColumn(arg2);
30452 wxPyEndAllowThreads(__tstate);
30453 if (PyErr_Occurred()) SWIG_fail;
30454 }
30455 {
30456 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30457 }
30458 return resultobj;
30459fail:
30460 return NULL;
7e08d4ef
RD
30461}
30462
30463
0085ce49
RD
30464SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30465 PyObject *resultobj = 0;
30466 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30467 bool result;
30468 void *argp1 = 0 ;
30469 int res1 = 0 ;
30470 PyObject *swig_obj[1] ;
30471
30472 if (!args) SWIG_fail;
30473 swig_obj[0] = args;
30474 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30475 if (!SWIG_IsOK(res1)) {
30476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllColumns" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30477 }
30478 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30479 {
30480 PyThreadState* __tstate = wxPyBeginAllowThreads();
30481 result = (bool)(arg1)->DeleteAllColumns();
30482 wxPyEndAllowThreads(__tstate);
30483 if (PyErr_Occurred()) SWIG_fail;
30484 }
30485 {
30486 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30487 }
30488 return resultobj;
30489fail:
30490 return NULL;
7e08d4ef
RD
30491}
30492
30493
0085ce49
RD
30494SWIGINTERN PyObject *_wrap_ListCtrl_ClearAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30495 PyObject *resultobj = 0;
30496 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30497 void *argp1 = 0 ;
30498 int res1 = 0 ;
30499 PyObject *swig_obj[1] ;
30500
30501 if (!args) SWIG_fail;
30502 swig_obj[0] = args;
30503 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30504 if (!SWIG_IsOK(res1)) {
30505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ClearAll" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30506 }
30507 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30508 {
30509 PyThreadState* __tstate = wxPyBeginAllowThreads();
30510 (arg1)->ClearAll();
30511 wxPyEndAllowThreads(__tstate);
30512 if (PyErr_Occurred()) SWIG_fail;
30513 }
30514 resultobj = SWIG_Py_Void();
30515 return resultobj;
30516fail:
30517 return NULL;
30518}
30519
30520
30521SWIGINTERN PyObject *_wrap_ListCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30522 PyObject *resultobj = 0;
30523 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30524 long arg2 ;
30525 void *argp1 = 0 ;
30526 int res1 = 0 ;
30527 long val2 ;
30528 int ecode2 = 0 ;
30529 PyObject * obj0 = 0 ;
30530 PyObject * obj1 = 0 ;
30531 char * kwnames[] = {
30532 (char *) "self",(char *) "item", NULL
30533 };
30534
30535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
30536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30537 if (!SWIG_IsOK(res1)) {
30538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30539 }
30540 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30541 ecode2 = SWIG_AsVal_long(obj1, &val2);
30542 if (!SWIG_IsOK(ecode2)) {
30543 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EditLabel" "', expected argument " "2"" of type '" "long""'");
30544 }
30545 arg2 = static_cast< long >(val2);
30546 {
30547 PyThreadState* __tstate = wxPyBeginAllowThreads();
30548 (arg1)->EditLabel(arg2);
30549 wxPyEndAllowThreads(__tstate);
30550 if (PyErr_Occurred()) SWIG_fail;
30551 }
30552 resultobj = SWIG_Py_Void();
30553 return resultobj;
30554fail:
30555 return NULL;
30556}
30557
30558
30559SWIGINTERN PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30560 PyObject *resultobj = 0;
30561 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30562 long arg2 ;
30563 bool result;
30564 void *argp1 = 0 ;
30565 int res1 = 0 ;
30566 long val2 ;
30567 int ecode2 = 0 ;
30568 PyObject * obj0 = 0 ;
30569 PyObject * obj1 = 0 ;
30570 char * kwnames[] = {
30571 (char *) "self",(char *) "item", NULL
30572 };
30573
30574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
30575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30576 if (!SWIG_IsOK(res1)) {
30577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30578 }
30579 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30580 ecode2 = SWIG_AsVal_long(obj1, &val2);
30581 if (!SWIG_IsOK(ecode2)) {
30582 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "2"" of type '" "long""'");
30583 }
30584 arg2 = static_cast< long >(val2);
30585 {
30586 PyThreadState* __tstate = wxPyBeginAllowThreads();
30587 result = (bool)(arg1)->EnsureVisible(arg2);
30588 wxPyEndAllowThreads(__tstate);
30589 if (PyErr_Occurred()) SWIG_fail;
30590 }
30591 {
30592 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30593 }
30594 return resultobj;
30595fail:
30596 return NULL;
30597}
30598
30599
30600SWIGINTERN PyObject *_wrap_ListCtrl_FindItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30601 PyObject *resultobj = 0;
30602 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30603 long arg2 ;
30604 wxString *arg3 = 0 ;
30605 bool arg4 = (bool) false ;
30606 long result;
30607 void *argp1 = 0 ;
30608 int res1 = 0 ;
30609 long val2 ;
30610 int ecode2 = 0 ;
30611 bool temp3 = false ;
30612 bool val4 ;
30613 int ecode4 = 0 ;
30614 PyObject * obj0 = 0 ;
30615 PyObject * obj1 = 0 ;
30616 PyObject * obj2 = 0 ;
30617 PyObject * obj3 = 0 ;
30618 char * kwnames[] = {
30619 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
30620 };
30621
30622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30624 if (!SWIG_IsOK(res1)) {
30625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30626 }
30627 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30628 ecode2 = SWIG_AsVal_long(obj1, &val2);
30629 if (!SWIG_IsOK(ecode2)) {
30630 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItem" "', expected argument " "2"" of type '" "long""'");
30631 }
30632 arg2 = static_cast< long >(val2);
30633 {
30634 arg3 = wxString_in_helper(obj2);
30635 if (arg3 == NULL) SWIG_fail;
30636 temp3 = true;
30637 }
30638 if (obj3) {
30639 ecode4 = SWIG_AsVal_bool(obj3, &val4);
30640 if (!SWIG_IsOK(ecode4)) {
30641 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItem" "', expected argument " "4"" of type '" "bool""'");
30642 }
30643 arg4 = static_cast< bool >(val4);
30644 }
30645 {
30646 PyThreadState* __tstate = wxPyBeginAllowThreads();
30647 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
30648 wxPyEndAllowThreads(__tstate);
30649 if (PyErr_Occurred()) SWIG_fail;
30650 }
30651 resultobj = SWIG_From_long(static_cast< long >(result));
30652 {
30653 if (temp3)
30654 delete arg3;
30655 }
30656 return resultobj;
30657fail:
30658 {
30659 if (temp3)
30660 delete arg3;
30661 }
30662 return NULL;
30663}
30664
30665
30666SWIGINTERN PyObject *_wrap_ListCtrl_FindItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30667 PyObject *resultobj = 0;
30668 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30669 long arg2 ;
30670 long arg3 ;
30671 long result;
30672 void *argp1 = 0 ;
30673 int res1 = 0 ;
30674 long val2 ;
30675 int ecode2 = 0 ;
30676 long val3 ;
30677 int ecode3 = 0 ;
30678 PyObject * obj0 = 0 ;
30679 PyObject * obj1 = 0 ;
30680 PyObject * obj2 = 0 ;
30681 char * kwnames[] = {
30682 (char *) "self",(char *) "start",(char *) "data", NULL
30683 };
30684
30685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30687 if (!SWIG_IsOK(res1)) {
30688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30689 }
30690 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30691 ecode2 = SWIG_AsVal_long(obj1, &val2);
30692 if (!SWIG_IsOK(ecode2)) {
30693 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemData" "', expected argument " "2"" of type '" "long""'");
30694 }
30695 arg2 = static_cast< long >(val2);
30696 ecode3 = SWIG_AsVal_long(obj2, &val3);
30697 if (!SWIG_IsOK(ecode3)) {
30698 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_FindItemData" "', expected argument " "3"" of type '" "long""'");
30699 }
30700 arg3 = static_cast< long >(val3);
30701 {
30702 PyThreadState* __tstate = wxPyBeginAllowThreads();
30703 result = (long)(arg1)->FindItem(arg2,arg3);
30704 wxPyEndAllowThreads(__tstate);
30705 if (PyErr_Occurred()) SWIG_fail;
30706 }
30707 resultobj = SWIG_From_long(static_cast< long >(result));
30708 return resultobj;
30709fail:
30710 return NULL;
30711}
30712
30713
30714SWIGINTERN PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30715 PyObject *resultobj = 0;
30716 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30717 long arg2 ;
30718 wxPoint *arg3 = 0 ;
30719 int arg4 ;
30720 long result;
30721 void *argp1 = 0 ;
30722 int res1 = 0 ;
30723 long val2 ;
30724 int ecode2 = 0 ;
30725 wxPoint temp3 ;
30726 int val4 ;
30727 int ecode4 = 0 ;
30728 PyObject * obj0 = 0 ;
30729 PyObject * obj1 = 0 ;
30730 PyObject * obj2 = 0 ;
30731 PyObject * obj3 = 0 ;
30732 char * kwnames[] = {
30733 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
30734 };
30735
30736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30738 if (!SWIG_IsOK(res1)) {
30739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30740 }
30741 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30742 ecode2 = SWIG_AsVal_long(obj1, &val2);
30743 if (!SWIG_IsOK(ecode2)) {
30744 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "2"" of type '" "long""'");
30745 }
30746 arg2 = static_cast< long >(val2);
30747 {
30748 arg3 = &temp3;
30749 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30750 }
30751 ecode4 = SWIG_AsVal_int(obj3, &val4);
30752 if (!SWIG_IsOK(ecode4)) {
30753 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "4"" of type '" "int""'");
30754 }
30755 arg4 = static_cast< int >(val4);
30756 {
30757 PyThreadState* __tstate = wxPyBeginAllowThreads();
30758 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
30759 wxPyEndAllowThreads(__tstate);
30760 if (PyErr_Occurred()) SWIG_fail;
30761 }
30762 resultobj = SWIG_From_long(static_cast< long >(result));
30763 return resultobj;
30764fail:
30765 return NULL;
30766}
30767
30768
30769SWIGINTERN PyObject *_wrap_ListCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30770 PyObject *resultobj = 0;
30771 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30772 wxPoint *arg2 = 0 ;
30773 int *arg3 = 0 ;
30774 long result;
30775 void *argp1 = 0 ;
30776 int res1 = 0 ;
30777 wxPoint temp2 ;
30778 int temp3 ;
30779 int res3 = SWIG_TMPOBJ ;
30780 PyObject * obj0 = 0 ;
30781 PyObject * obj1 = 0 ;
30782 char * kwnames[] = {
30783 (char *) "self",(char *) "point", NULL
30784 };
30785
30786 arg3 = &temp3;
30787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
30788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30789 if (!SWIG_IsOK(res1)) {
30790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30791 }
30792 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30793 {
30794 arg2 = &temp2;
30795 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30796 }
30797 {
30798 PyThreadState* __tstate = wxPyBeginAllowThreads();
30799 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
30800 wxPyEndAllowThreads(__tstate);
30801 if (PyErr_Occurred()) SWIG_fail;
30802 }
30803 resultobj = SWIG_From_long(static_cast< long >(result));
30804 if (SWIG_IsTmpObj(res3)) {
30805 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
30806 } else {
30807 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30808 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
30809 }
30810 return resultobj;
30811fail:
30812 return NULL;
30813}
30814
30815
30816SWIGINTERN PyObject *_wrap_ListCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30817 PyObject *resultobj = 0;
30818 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30819 wxListItem *arg2 = 0 ;
30820 long result;
30821 void *argp1 = 0 ;
30822 int res1 = 0 ;
30823 void *argp2 = 0 ;
30824 int res2 = 0 ;
30825 PyObject * obj0 = 0 ;
30826 PyObject * obj1 = 0 ;
30827 char * kwnames[] = {
30828 (char *) "self",(char *) "info", NULL
30829 };
30830
30831 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) SWIG_fail;
30832 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30833 if (!SWIG_IsOK(res1)) {
30834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30835 }
30836 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30837 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
30838 if (!SWIG_IsOK(res2)) {
30839 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
30840 }
30841 if (!argp2) {
30842 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
30843 }
30844 arg2 = reinterpret_cast< wxListItem * >(argp2);
30845 {
30846 PyThreadState* __tstate = wxPyBeginAllowThreads();
30847 result = (long)(arg1)->InsertItem(*arg2);
30848 wxPyEndAllowThreads(__tstate);
30849 if (PyErr_Occurred()) SWIG_fail;
30850 }
30851 resultobj = SWIG_From_long(static_cast< long >(result));
30852 return resultobj;
30853fail:
30854 return NULL;
30855}
30856
30857
30858SWIGINTERN PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30859 PyObject *resultobj = 0;
30860 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30861 long arg2 ;
30862 wxString *arg3 = 0 ;
30863 int arg4 = (int) -1 ;
30864 long result;
30865 void *argp1 = 0 ;
30866 int res1 = 0 ;
30867 long val2 ;
30868 int ecode2 = 0 ;
30869 bool temp3 = false ;
30870 int val4 ;
30871 int ecode4 = 0 ;
30872 PyObject * obj0 = 0 ;
30873 PyObject * obj1 = 0 ;
30874 PyObject * obj2 = 0 ;
30875 PyObject * obj3 = 0 ;
30876 char * kwnames[] = {
30877 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
30878 };
30879
30880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30882 if (!SWIG_IsOK(res1)) {
30883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30884 }
30885 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30886 ecode2 = SWIG_AsVal_long(obj1, &val2);
30887 if (!SWIG_IsOK(ecode2)) {
30888 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "2"" of type '" "long""'");
30889 }
30890 arg2 = static_cast< long >(val2);
30891 {
30892 arg3 = wxString_in_helper(obj2);
30893 if (arg3 == NULL) SWIG_fail;
30894 temp3 = true;
30895 }
30896 if (obj3) {
30897 ecode4 = SWIG_AsVal_int(obj3, &val4);
30898 if (!SWIG_IsOK(ecode4)) {
30899 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "4"" of type '" "int""'");
30900 }
30901 arg4 = static_cast< int >(val4);
30902 }
30903 {
30904 PyThreadState* __tstate = wxPyBeginAllowThreads();
30905 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
30906 wxPyEndAllowThreads(__tstate);
30907 if (PyErr_Occurred()) SWIG_fail;
30908 }
30909 resultobj = SWIG_From_long(static_cast< long >(result));
30910 {
30911 if (temp3)
30912 delete arg3;
30913 }
30914 return resultobj;
30915fail:
30916 {
30917 if (temp3)
30918 delete arg3;
30919 }
30920 return NULL;
30921}
30922
30923
30924SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30925 PyObject *resultobj = 0;
30926 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30927 long arg2 ;
30928 int arg3 ;
30929 long result;
30930 void *argp1 = 0 ;
30931 int res1 = 0 ;
30932 long val2 ;
30933 int ecode2 = 0 ;
30934 int val3 ;
30935 int ecode3 = 0 ;
30936 PyObject * obj0 = 0 ;
30937 PyObject * obj1 = 0 ;
30938 PyObject * obj2 = 0 ;
30939 char * kwnames[] = {
30940 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
30941 };
30942
30943 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30944 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30945 if (!SWIG_IsOK(res1)) {
30946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30947 }
30948 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30949 ecode2 = SWIG_AsVal_long(obj1, &val2);
30950 if (!SWIG_IsOK(ecode2)) {
30951 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "2"" of type '" "long""'");
30952 }
30953 arg2 = static_cast< long >(val2);
30954 ecode3 = SWIG_AsVal_int(obj2, &val3);
30955 if (!SWIG_IsOK(ecode3)) {
30956 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "3"" of type '" "int""'");
30957 }
30958 arg3 = static_cast< int >(val3);
30959 {
30960 PyThreadState* __tstate = wxPyBeginAllowThreads();
30961 result = (long)(arg1)->InsertItem(arg2,arg3);
30962 wxPyEndAllowThreads(__tstate);
30963 if (PyErr_Occurred()) SWIG_fail;
30964 }
30965 resultobj = SWIG_From_long(static_cast< long >(result));
30966 return resultobj;
30967fail:
30968 return NULL;
30969}
30970
30971
30972SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30973 PyObject *resultobj = 0;
30974 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30975 long arg2 ;
30976 wxString *arg3 = 0 ;
30977 int arg4 ;
30978 long result;
30979 void *argp1 = 0 ;
30980 int res1 = 0 ;
30981 long val2 ;
30982 int ecode2 = 0 ;
30983 bool temp3 = false ;
30984 int val4 ;
30985 int ecode4 = 0 ;
30986 PyObject * obj0 = 0 ;
30987 PyObject * obj1 = 0 ;
30988 PyObject * obj2 = 0 ;
30989 PyObject * obj3 = 0 ;
30990 char * kwnames[] = {
30991 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
30992 };
30993
30994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30996 if (!SWIG_IsOK(res1)) {
30997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30998 }
30999 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31000 ecode2 = SWIG_AsVal_long(obj1, &val2);
31001 if (!SWIG_IsOK(ecode2)) {
31002 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "2"" of type '" "long""'");
31003 }
31004 arg2 = static_cast< long >(val2);
31005 {
31006 arg3 = wxString_in_helper(obj2);
31007 if (arg3 == NULL) SWIG_fail;
31008 temp3 = true;
31009 }
31010 ecode4 = SWIG_AsVal_int(obj3, &val4);
31011 if (!SWIG_IsOK(ecode4)) {
31012 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "4"" of type '" "int""'");
31013 }
31014 arg4 = static_cast< int >(val4);
31015 {
31016 PyThreadState* __tstate = wxPyBeginAllowThreads();
31017 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31018 wxPyEndAllowThreads(__tstate);
31019 if (PyErr_Occurred()) SWIG_fail;
31020 }
31021 resultobj = SWIG_From_long(static_cast< long >(result));
31022 {
31023 if (temp3)
31024 delete arg3;
31025 }
31026 return resultobj;
31027fail:
31028 {
31029 if (temp3)
31030 delete arg3;
31031 }
31032 return NULL;
31033}
31034
31035
31036SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31037 PyObject *resultobj = 0;
31038 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31039 long arg2 ;
31040 wxListItem *arg3 = 0 ;
31041 long result;
31042 void *argp1 = 0 ;
31043 int res1 = 0 ;
31044 long val2 ;
31045 int ecode2 = 0 ;
31046 void *argp3 = 0 ;
31047 int res3 = 0 ;
31048 PyObject * obj0 = 0 ;
31049 PyObject * obj1 = 0 ;
31050 PyObject * obj2 = 0 ;
31051 char * kwnames[] = {
31052 (char *) "self",(char *) "col",(char *) "info", NULL
31053 };
31054
31055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31057 if (!SWIG_IsOK(res1)) {
31058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31059 }
31060 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31061 ecode2 = SWIG_AsVal_long(obj1, &val2);
31062 if (!SWIG_IsOK(ecode2)) {
31063 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "2"" of type '" "long""'");
31064 }
31065 arg2 = static_cast< long >(val2);
31066 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
31067 if (!SWIG_IsOK(res3)) {
31068 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31069 }
31070 if (!argp3) {
31071 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31072 }
31073 arg3 = reinterpret_cast< wxListItem * >(argp3);
31074 {
31075 PyThreadState* __tstate = wxPyBeginAllowThreads();
31076 result = (long)(arg1)->InsertColumn(arg2,*arg3);
31077 wxPyEndAllowThreads(__tstate);
31078 if (PyErr_Occurred()) SWIG_fail;
31079 }
31080 resultobj = SWIG_From_long(static_cast< long >(result));
31081 return resultobj;
31082fail:
31083 return NULL;
31084}
31085
31086
31087SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31088 PyObject *resultobj = 0;
31089 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31090 long arg2 ;
31091 wxString *arg3 = 0 ;
31092 int arg4 = (int) wxLIST_FORMAT_LEFT ;
31093 int arg5 = (int) -1 ;
31094 long result;
31095 void *argp1 = 0 ;
31096 int res1 = 0 ;
31097 long val2 ;
31098 int ecode2 = 0 ;
31099 bool temp3 = false ;
31100 int val4 ;
31101 int ecode4 = 0 ;
31102 int val5 ;
31103 int ecode5 = 0 ;
31104 PyObject * obj0 = 0 ;
31105 PyObject * obj1 = 0 ;
31106 PyObject * obj2 = 0 ;
31107 PyObject * obj3 = 0 ;
31108 PyObject * obj4 = 0 ;
31109 char * kwnames[] = {
31110 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
31111 };
31112
31113 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31114 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31115 if (!SWIG_IsOK(res1)) {
31116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31117 }
31118 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31119 ecode2 = SWIG_AsVal_long(obj1, &val2);
31120 if (!SWIG_IsOK(ecode2)) {
31121 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumn" "', expected argument " "2"" of type '" "long""'");
31122 }
31123 arg2 = static_cast< long >(val2);
31124 {
31125 arg3 = wxString_in_helper(obj2);
31126 if (arg3 == NULL) SWIG_fail;
31127 temp3 = true;
31128 }
31129 if (obj3) {
31130 ecode4 = SWIG_AsVal_int(obj3, &val4);
31131 if (!SWIG_IsOK(ecode4)) {
31132 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertColumn" "', expected argument " "4"" of type '" "int""'");
31133 }
31134 arg4 = static_cast< int >(val4);
31135 }
31136 if (obj4) {
31137 ecode5 = SWIG_AsVal_int(obj4, &val5);
31138 if (!SWIG_IsOK(ecode5)) {
31139 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_InsertColumn" "', expected argument " "5"" of type '" "int""'");
31140 }
31141 arg5 = static_cast< int >(val5);
31142 }
31143 {
31144 PyThreadState* __tstate = wxPyBeginAllowThreads();
31145 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
31146 wxPyEndAllowThreads(__tstate);
31147 if (PyErr_Occurred()) SWIG_fail;
31148 }
31149 resultobj = SWIG_From_long(static_cast< long >(result));
31150 {
31151 if (temp3)
31152 delete arg3;
31153 }
31154 return resultobj;
31155fail:
31156 {
31157 if (temp3)
31158 delete arg3;
31159 }
31160 return NULL;
31161}
31162
31163
31164SWIGINTERN PyObject *_wrap_ListCtrl_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31165 PyObject *resultobj = 0;
31166 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31167 long arg2 ;
31168 void *argp1 = 0 ;
31169 int res1 = 0 ;
31170 long val2 ;
31171 int ecode2 = 0 ;
31172 PyObject * obj0 = 0 ;
31173 PyObject * obj1 = 0 ;
31174 char * kwnames[] = {
31175 (char *) "self",(char *) "count", NULL
31176 };
31177
31178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail;
31179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31180 if (!SWIG_IsOK(res1)) {
31181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31182 }
31183 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31184 ecode2 = SWIG_AsVal_long(obj1, &val2);
31185 if (!SWIG_IsOK(ecode2)) {
31186 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemCount" "', expected argument " "2"" of type '" "long""'");
31187 }
31188 arg2 = static_cast< long >(val2);
31189 {
31190 PyThreadState* __tstate = wxPyBeginAllowThreads();
31191 (arg1)->SetItemCount(arg2);
31192 wxPyEndAllowThreads(__tstate);
31193 if (PyErr_Occurred()) SWIG_fail;
31194 }
31195 resultobj = SWIG_Py_Void();
31196 return resultobj;
31197fail:
31198 return NULL;
31199}
31200
31201
31202SWIGINTERN PyObject *_wrap_ListCtrl_ScrollList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31203 PyObject *resultobj = 0;
31204 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31205 int arg2 ;
31206 int arg3 ;
31207 bool result;
31208 void *argp1 = 0 ;
31209 int res1 = 0 ;
31210 int val2 ;
31211 int ecode2 = 0 ;
31212 int val3 ;
31213 int ecode3 = 0 ;
31214 PyObject * obj0 = 0 ;
31215 PyObject * obj1 = 0 ;
31216 PyObject * obj2 = 0 ;
31217 char * kwnames[] = {
31218 (char *) "self",(char *) "dx",(char *) "dy", NULL
31219 };
31220
31221 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31222 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31223 if (!SWIG_IsOK(res1)) {
31224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ScrollList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31225 }
31226 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31227 ecode2 = SWIG_AsVal_int(obj1, &val2);
31228 if (!SWIG_IsOK(ecode2)) {
31229 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_ScrollList" "', expected argument " "2"" of type '" "int""'");
31230 }
31231 arg2 = static_cast< int >(val2);
31232 ecode3 = SWIG_AsVal_int(obj2, &val3);
31233 if (!SWIG_IsOK(ecode3)) {
31234 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_ScrollList" "', expected argument " "3"" of type '" "int""'");
31235 }
31236 arg3 = static_cast< int >(val3);
31237 {
31238 PyThreadState* __tstate = wxPyBeginAllowThreads();
31239 result = (bool)(arg1)->ScrollList(arg2,arg3);
31240 wxPyEndAllowThreads(__tstate);
31241 if (PyErr_Occurred()) SWIG_fail;
31242 }
31243 {
31244 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31245 }
31246 return resultobj;
31247fail:
31248 return NULL;
31249}
31250
31251
31252SWIGINTERN PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31253 PyObject *resultobj = 0;
31254 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31255 long arg2 ;
31256 wxColour *arg3 = 0 ;
31257 void *argp1 = 0 ;
31258 int res1 = 0 ;
31259 long val2 ;
31260 int ecode2 = 0 ;
31261 wxColour temp3 ;
31262 PyObject * obj0 = 0 ;
31263 PyObject * obj1 = 0 ;
31264 PyObject * obj2 = 0 ;
31265 char * kwnames[] = {
31266 (char *) "self",(char *) "item",(char *) "col", NULL
31267 };
31268
31269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31270 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31271 if (!SWIG_IsOK(res1)) {
31272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31273 }
31274 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31275 ecode2 = SWIG_AsVal_long(obj1, &val2);
31276 if (!SWIG_IsOK(ecode2)) {
31277 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31278 }
31279 arg2 = static_cast< long >(val2);
31280 {
31281 arg3 = &temp3;
31282 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31283 }
31284 {
31285 PyThreadState* __tstate = wxPyBeginAllowThreads();
31286 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
31287 wxPyEndAllowThreads(__tstate);
31288 if (PyErr_Occurred()) SWIG_fail;
31289 }
31290 resultobj = SWIG_Py_Void();
31291 return resultobj;
31292fail:
31293 return NULL;
31294}
31295
31296
31297SWIGINTERN PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31298 PyObject *resultobj = 0;
31299 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31300 long arg2 ;
31301 wxColour result;
31302 void *argp1 = 0 ;
31303 int res1 = 0 ;
31304 long val2 ;
31305 int ecode2 = 0 ;
31306 PyObject * obj0 = 0 ;
31307 PyObject * obj1 = 0 ;
31308 char * kwnames[] = {
31309 (char *) "self",(char *) "item", NULL
31310 };
31311
31312 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
31313 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31314 if (!SWIG_IsOK(res1)) {
31315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31316 }
31317 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31318 ecode2 = SWIG_AsVal_long(obj1, &val2);
31319 if (!SWIG_IsOK(ecode2)) {
31320 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31321 }
31322 arg2 = static_cast< long >(val2);
31323 {
31324 PyThreadState* __tstate = wxPyBeginAllowThreads();
31325 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
31326 wxPyEndAllowThreads(__tstate);
31327 if (PyErr_Occurred()) SWIG_fail;
31328 }
31329 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31330 return resultobj;
31331fail:
31332 return NULL;
31333}
31334
31335
31336SWIGINTERN PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31337 PyObject *resultobj = 0;
31338 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31339 long arg2 ;
31340 wxColour *arg3 = 0 ;
31341 void *argp1 = 0 ;
31342 int res1 = 0 ;
31343 long val2 ;
31344 int ecode2 = 0 ;
31345 wxColour temp3 ;
31346 PyObject * obj0 = 0 ;
31347 PyObject * obj1 = 0 ;
31348 PyObject * obj2 = 0 ;
31349 char * kwnames[] = {
31350 (char *) "self",(char *) "item",(char *) "col", NULL
31351 };
31352
31353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31355 if (!SWIG_IsOK(res1)) {
31356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31357 }
31358 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31359 ecode2 = SWIG_AsVal_long(obj1, &val2);
31360 if (!SWIG_IsOK(ecode2)) {
31361 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31362 }
31363 arg2 = static_cast< long >(val2);
31364 {
31365 arg3 = &temp3;
31366 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31367 }
31368 {
31369 PyThreadState* __tstate = wxPyBeginAllowThreads();
31370 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
31371 wxPyEndAllowThreads(__tstate);
31372 if (PyErr_Occurred()) SWIG_fail;
31373 }
31374 resultobj = SWIG_Py_Void();
31375 return resultobj;
31376fail:
31377 return NULL;
31378}
31379
31380
31381SWIGINTERN PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31382 PyObject *resultobj = 0;
31383 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31384 long arg2 ;
31385 wxColour result;
31386 void *argp1 = 0 ;
31387 int res1 = 0 ;
31388 long val2 ;
31389 int ecode2 = 0 ;
31390 PyObject * obj0 = 0 ;
31391 PyObject * obj1 = 0 ;
31392 char * kwnames[] = {
31393 (char *) "self",(char *) "item", NULL
31394 };
31395
31396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
31397 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31398 if (!SWIG_IsOK(res1)) {
31399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31400 }
31401 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31402 ecode2 = SWIG_AsVal_long(obj1, &val2);
31403 if (!SWIG_IsOK(ecode2)) {
31404 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31405 }
31406 arg2 = static_cast< long >(val2);
31407 {
31408 PyThreadState* __tstate = wxPyBeginAllowThreads();
31409 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
31410 wxPyEndAllowThreads(__tstate);
31411 if (PyErr_Occurred()) SWIG_fail;
31412 }
31413 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31414 return resultobj;
31415fail:
31416 return NULL;
31417}
31418
31419
31420SWIGINTERN PyObject *_wrap_ListCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31421 PyObject *resultobj = 0;
31422 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31423 long arg2 ;
31424 wxFont *arg3 = 0 ;
31425 void *argp1 = 0 ;
31426 int res1 = 0 ;
31427 long val2 ;
31428 int ecode2 = 0 ;
31429 void *argp3 = 0 ;
31430 int res3 = 0 ;
31431 PyObject * obj0 = 0 ;
31432 PyObject * obj1 = 0 ;
31433 PyObject * obj2 = 0 ;
31434 char * kwnames[] = {
31435 (char *) "self",(char *) "item",(char *) "f", NULL
31436 };
31437
31438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31440 if (!SWIG_IsOK(res1)) {
31441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31442 }
31443 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31444 ecode2 = SWIG_AsVal_long(obj1, &val2);
31445 if (!SWIG_IsOK(ecode2)) {
31446 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemFont" "', expected argument " "2"" of type '" "long""'");
31447 }
31448 arg2 = static_cast< long >(val2);
31449 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
31450 if (!SWIG_IsOK(res3)) {
31451 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31452 }
31453 if (!argp3) {
31454 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31455 }
31456 arg3 = reinterpret_cast< wxFont * >(argp3);
31457 {
31458 PyThreadState* __tstate = wxPyBeginAllowThreads();
31459 (arg1)->SetItemFont(arg2,(wxFont const &)*arg3);
31460 wxPyEndAllowThreads(__tstate);
31461 if (PyErr_Occurred()) SWIG_fail;
31462 }
31463 resultobj = SWIG_Py_Void();
31464 return resultobj;
31465fail:
31466 return NULL;
31467}
31468
31469
31470SWIGINTERN PyObject *_wrap_ListCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31471 PyObject *resultobj = 0;
31472 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31473 long arg2 ;
31474 wxFont result;
31475 void *argp1 = 0 ;
31476 int res1 = 0 ;
31477 long val2 ;
31478 int ecode2 = 0 ;
31479 PyObject * obj0 = 0 ;
31480 PyObject * obj1 = 0 ;
31481 char * kwnames[] = {
31482 (char *) "self",(char *) "item", NULL
31483 };
31484
31485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
31486 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31487 if (!SWIG_IsOK(res1)) {
31488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31489 }
31490 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31491 ecode2 = SWIG_AsVal_long(obj1, &val2);
31492 if (!SWIG_IsOK(ecode2)) {
31493 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemFont" "', expected argument " "2"" of type '" "long""'");
31494 }
31495 arg2 = static_cast< long >(val2);
31496 {
31497 PyThreadState* __tstate = wxPyBeginAllowThreads();
31498 result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2);
31499 wxPyEndAllowThreads(__tstate);
31500 if (PyErr_Occurred()) SWIG_fail;
31501 }
31502 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
31503 return resultobj;
31504fail:
31505 return NULL;
31506}
31507
31508
31509SWIGINTERN PyObject *_wrap_ListCtrl_SortItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31510 PyObject *resultobj = 0;
31511 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31512 PyObject *arg2 = (PyObject *) 0 ;
31513 bool result;
31514 void *argp1 = 0 ;
31515 int res1 = 0 ;
31516 PyObject * obj0 = 0 ;
31517 PyObject * obj1 = 0 ;
31518 char * kwnames[] = {
31519 (char *) "self",(char *) "func", NULL
31520 };
31521
31522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) SWIG_fail;
31523 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31524 if (!SWIG_IsOK(res1)) {
31525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SortItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31526 }
31527 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31528 arg2 = obj1;
31529 {
31530 PyThreadState* __tstate = wxPyBeginAllowThreads();
31531 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
31532 wxPyEndAllowThreads(__tstate);
31533 if (PyErr_Occurred()) SWIG_fail;
31534 }
31535 {
31536 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31537 }
31538 return resultobj;
31539fail:
31540 return NULL;
7e08d4ef
RD
31541}
31542
31543
0085ce49
RD
31544SWIGINTERN PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31545 PyObject *resultobj = 0;
31546 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31547 wxWindow *result = 0 ;
31548 void *argp1 = 0 ;
31549 int res1 = 0 ;
31550 PyObject *swig_obj[1] ;
31551
31552 if (!args) SWIG_fail;
31553 swig_obj[0] = args;
31554 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31555 if (!SWIG_IsOK(res1)) {
31556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetMainWindow" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31557 }
31558 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31559 {
31560 PyThreadState* __tstate = wxPyBeginAllowThreads();
31561 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
31562 wxPyEndAllowThreads(__tstate);
31563 if (PyErr_Occurred()) SWIG_fail;
31564 }
31565 {
31566 resultobj = wxPyMake_wxObject(result, 0);
31567 }
31568 return resultobj;
31569fail:
31570 return NULL;
31571}
31572
31573
31574SWIGINTERN PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31575 PyObject *resultobj = 0;
31576 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
31577 SwigValueWrapper<wxVisualAttributes > result;
31578 int val1 ;
31579 int ecode1 = 0 ;
31580 PyObject * obj0 = 0 ;
31581 char * kwnames[] = {
31582 (char *) "variant", NULL
31583 };
31584
31585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
31586 if (obj0) {
31587 ecode1 = SWIG_AsVal_int(obj0, &val1);
31588 if (!SWIG_IsOK(ecode1)) {
31589 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
31590 }
31591 arg1 = static_cast< wxWindowVariant >(val1);
31592 }
31593 {
31594 if (!wxPyCheckForApp()) SWIG_fail;
31595 PyThreadState* __tstate = wxPyBeginAllowThreads();
31596 result = wxPyListCtrl::GetClassDefaultAttributes(arg1);
31597 wxPyEndAllowThreads(__tstate);
31598 if (PyErr_Occurred()) SWIG_fail;
31599 }
31600 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
31601 return resultobj;
31602fail:
31603 return NULL;
31604}
31605
31606
31607SWIGINTERN PyObject *ListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31608 PyObject *obj;
31609 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31610 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyListCtrl, SWIG_NewClientData(obj));
31611 return SWIG_Py_Void();
31612}
31613
31614SWIGINTERN PyObject *ListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31615 return SWIG_Python_InitShadowInstance(args);
31616}
31617
31618SWIGINTERN PyObject *_wrap_new_ListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31619 PyObject *resultobj = 0;
31620 wxWindow *arg1 = (wxWindow *) 0 ;
31621 int arg2 = (int) -1 ;
31622 wxPoint const &arg3_defvalue = wxDefaultPosition ;
31623 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
31624 wxSize const &arg4_defvalue = wxDefaultSize ;
31625 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
31626 long arg5 = (long) wxLC_REPORT ;
31627 wxValidator const &arg6_defvalue = wxDefaultValidator ;
31628 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
31629 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
31630 wxString *arg7 = (wxString *) &arg7_defvalue ;
31631 wxListView *result = 0 ;
31632 void *argp1 = 0 ;
31633 int res1 = 0 ;
31634 int val2 ;
31635 int ecode2 = 0 ;
31636 wxPoint temp3 ;
31637 wxSize temp4 ;
31638 long val5 ;
31639 int ecode5 = 0 ;
31640 void *argp6 = 0 ;
31641 int res6 = 0 ;
31642 bool temp7 = false ;
31643 PyObject * obj0 = 0 ;
31644 PyObject * obj1 = 0 ;
31645 PyObject * obj2 = 0 ;
31646 PyObject * obj3 = 0 ;
31647 PyObject * obj4 = 0 ;
31648 PyObject * obj5 = 0 ;
31649 PyObject * obj6 = 0 ;
31650 char * kwnames[] = {
31651 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
31652 };
31653
31654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
31656 if (!SWIG_IsOK(res1)) {
31657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListView" "', expected argument " "1"" of type '" "wxWindow *""'");
31658 }
31659 arg1 = reinterpret_cast< wxWindow * >(argp1);
31660 if (obj1) {
31661 ecode2 = SWIG_AsVal_int(obj1, &val2);
31662 if (!SWIG_IsOK(ecode2)) {
31663 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListView" "', expected argument " "2"" of type '" "int""'");
31664 }
31665 arg2 = static_cast< int >(val2);
31666 }
31667 if (obj2) {
7e08d4ef 31668 {
0085ce49
RD
31669 arg3 = &temp3;
31670 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
7e08d4ef 31671 }
0085ce49
RD
31672 }
31673 if (obj3) {
7e08d4ef 31674 {
0085ce49
RD
31675 arg4 = &temp4;
31676 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
7e08d4ef 31677 }
0085ce49
RD
31678 }
31679 if (obj4) {
31680 ecode5 = SWIG_AsVal_long(obj4, &val5);
31681 if (!SWIG_IsOK(ecode5)) {
31682 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListView" "', expected argument " "5"" of type '" "long""'");
31683 }
31684 arg5 = static_cast< long >(val5);
31685 }
31686 if (obj5) {
31687 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
31688 if (!SWIG_IsOK(res6)) {
31689 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
7e08d4ef 31690 }
0085ce49
RD
31691 if (!argp6) {
31692 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
7e08d4ef 31693 }
0085ce49
RD
31694 arg6 = reinterpret_cast< wxValidator * >(argp6);
31695 }
31696 if (obj6) {
7e08d4ef 31697 {
0085ce49
RD
31698 arg7 = wxString_in_helper(obj6);
31699 if (arg7 == NULL) SWIG_fail;
31700 temp7 = true;
7e08d4ef 31701 }
0085ce49
RD
31702 }
31703 {
31704 if (!wxPyCheckForApp()) SWIG_fail;
31705 PyThreadState* __tstate = wxPyBeginAllowThreads();
31706 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
31707 wxPyEndAllowThreads(__tstate);
31708 if (PyErr_Occurred()) SWIG_fail;
31709 }
31710 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_NEW | 0 );
31711 {
31712 if (temp7)
31713 delete arg7;
31714 }
31715 return resultobj;
31716fail:
31717 {
31718 if (temp7)
31719 delete arg7;
31720 }
31721 return NULL;
7e08d4ef
RD
31722}
31723
31724
0085ce49
RD
31725SWIGINTERN PyObject *_wrap_new_PreListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31726 PyObject *resultobj = 0;
31727 wxListView *result = 0 ;
31728
31729 if (!SWIG_Python_UnpackTuple(args,"new_PreListView",0,0,0)) SWIG_fail;
31730 {
31731 if (!wxPyCheckForApp()) SWIG_fail;
31732 PyThreadState* __tstate = wxPyBeginAllowThreads();
31733 result = (wxListView *)new wxListView();
31734 wxPyEndAllowThreads(__tstate);
31735 if (PyErr_Occurred()) SWIG_fail;
31736 }
31737 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_OWN | 0 );
31738 return resultobj;
31739fail:
31740 return NULL;
31741}
31742
31743
31744SWIGINTERN PyObject *_wrap_ListView_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31745 PyObject *resultobj = 0;
31746 wxListView *arg1 = (wxListView *) 0 ;
31747 wxWindow *arg2 = (wxWindow *) 0 ;
31748 int arg3 = (int) -1 ;
31749 wxPoint const &arg4_defvalue = wxDefaultPosition ;
31750 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
31751 wxSize const &arg5_defvalue = wxDefaultSize ;
31752 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
31753 long arg6 = (long) wxLC_REPORT ;
31754 wxValidator const &arg7_defvalue = wxDefaultValidator ;
31755 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
31756 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
31757 wxString *arg8 = (wxString *) &arg8_defvalue ;
31758 bool result;
31759 void *argp1 = 0 ;
31760 int res1 = 0 ;
31761 void *argp2 = 0 ;
31762 int res2 = 0 ;
31763 int val3 ;
31764 int ecode3 = 0 ;
31765 wxPoint temp4 ;
31766 wxSize temp5 ;
31767 long val6 ;
31768 int ecode6 = 0 ;
31769 void *argp7 = 0 ;
31770 int res7 = 0 ;
31771 bool temp8 = false ;
31772 PyObject * obj0 = 0 ;
31773 PyObject * obj1 = 0 ;
31774 PyObject * obj2 = 0 ;
31775 PyObject * obj3 = 0 ;
31776 PyObject * obj4 = 0 ;
31777 PyObject * obj5 = 0 ;
31778 PyObject * obj6 = 0 ;
31779 PyObject * obj7 = 0 ;
31780 char * kwnames[] = {
31781 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
31782 };
31783
31784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
31785 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31786 if (!SWIG_IsOK(res1)) {
31787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Create" "', expected argument " "1"" of type '" "wxListView *""'");
31788 }
31789 arg1 = reinterpret_cast< wxListView * >(argp1);
31790 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31791 if (!SWIG_IsOK(res2)) {
31792 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListView_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
31793 }
31794 arg2 = reinterpret_cast< wxWindow * >(argp2);
31795 if (obj2) {
31796 ecode3 = SWIG_AsVal_int(obj2, &val3);
31797 if (!SWIG_IsOK(ecode3)) {
31798 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Create" "', expected argument " "3"" of type '" "int""'");
31799 }
31800 arg3 = static_cast< int >(val3);
31801 }
31802 if (obj3) {
7e08d4ef 31803 {
0085ce49
RD
31804 arg4 = &temp4;
31805 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7e08d4ef 31806 }
0085ce49
RD
31807 }
31808 if (obj4) {
7e08d4ef 31809 {
0085ce49
RD
31810 arg5 = &temp5;
31811 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7e08d4ef 31812 }
0085ce49
RD
31813 }
31814 if (obj5) {
31815 ecode6 = SWIG_AsVal_long(obj5, &val6);
31816 if (!SWIG_IsOK(ecode6)) {
31817 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListView_Create" "', expected argument " "6"" of type '" "long""'");
31818 }
31819 arg6 = static_cast< long >(val6);
31820 }
31821 if (obj6) {
31822 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
31823 if (!SWIG_IsOK(res7)) {
31824 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
7e08d4ef 31825 }
0085ce49
RD
31826 if (!argp7) {
31827 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
7e08d4ef 31828 }
0085ce49
RD
31829 arg7 = reinterpret_cast< wxValidator * >(argp7);
31830 }
31831 if (obj7) {
7e08d4ef 31832 {
0085ce49
RD
31833 arg8 = wxString_in_helper(obj7);
31834 if (arg8 == NULL) SWIG_fail;
31835 temp8 = true;
7e08d4ef 31836 }
0085ce49
RD
31837 }
31838 {
31839 PyThreadState* __tstate = wxPyBeginAllowThreads();
31840 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
31841 wxPyEndAllowThreads(__tstate);
31842 if (PyErr_Occurred()) SWIG_fail;
31843 }
31844 {
31845 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31846 }
31847 {
31848 if (temp8)
31849 delete arg8;
31850 }
31851 return resultobj;
31852fail:
31853 {
31854 if (temp8)
31855 delete arg8;
31856 }
31857 return NULL;
31858}
31859
31860
31861SWIGINTERN PyObject *_wrap_ListView_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31862 PyObject *resultobj = 0;
31863 wxListView *arg1 = (wxListView *) 0 ;
31864 long arg2 ;
31865 bool arg3 = (bool) true ;
31866 void *argp1 = 0 ;
31867 int res1 = 0 ;
31868 long val2 ;
31869 int ecode2 = 0 ;
31870 bool val3 ;
31871 int ecode3 = 0 ;
31872 PyObject * obj0 = 0 ;
31873 PyObject * obj1 = 0 ;
31874 PyObject * obj2 = 0 ;
31875 char * kwnames[] = {
31876 (char *) "self",(char *) "n",(char *) "on", NULL
31877 };
31878
31879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31881 if (!SWIG_IsOK(res1)) {
31882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Select" "', expected argument " "1"" of type '" "wxListView *""'");
31883 }
31884 arg1 = reinterpret_cast< wxListView * >(argp1);
31885 ecode2 = SWIG_AsVal_long(obj1, &val2);
31886 if (!SWIG_IsOK(ecode2)) {
31887 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Select" "', expected argument " "2"" of type '" "long""'");
31888 }
31889 arg2 = static_cast< long >(val2);
31890 if (obj2) {
31891 ecode3 = SWIG_AsVal_bool(obj2, &val3);
31892 if (!SWIG_IsOK(ecode3)) {
31893 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Select" "', expected argument " "3"" of type '" "bool""'");
31894 }
31895 arg3 = static_cast< bool >(val3);
31896 }
31897 {
31898 PyThreadState* __tstate = wxPyBeginAllowThreads();
31899 (arg1)->Select(arg2,arg3);
31900 wxPyEndAllowThreads(__tstate);
31901 if (PyErr_Occurred()) SWIG_fail;
31902 }
31903 resultobj = SWIG_Py_Void();
31904 return resultobj;
31905fail:
31906 return NULL;
31907}
31908
31909
31910SWIGINTERN PyObject *_wrap_ListView_Focus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31911 PyObject *resultobj = 0;
31912 wxListView *arg1 = (wxListView *) 0 ;
31913 long arg2 ;
31914 void *argp1 = 0 ;
31915 int res1 = 0 ;
31916 long val2 ;
31917 int ecode2 = 0 ;
31918 PyObject * obj0 = 0 ;
31919 PyObject * obj1 = 0 ;
31920 char * kwnames[] = {
31921 (char *) "self",(char *) "index", NULL
31922 };
31923
31924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) SWIG_fail;
31925 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31926 if (!SWIG_IsOK(res1)) {
31927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Focus" "', expected argument " "1"" of type '" "wxListView *""'");
31928 }
31929 arg1 = reinterpret_cast< wxListView * >(argp1);
31930 ecode2 = SWIG_AsVal_long(obj1, &val2);
31931 if (!SWIG_IsOK(ecode2)) {
31932 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Focus" "', expected argument " "2"" of type '" "long""'");
31933 }
31934 arg2 = static_cast< long >(val2);
31935 {
31936 PyThreadState* __tstate = wxPyBeginAllowThreads();
31937 (arg1)->Focus(arg2);
31938 wxPyEndAllowThreads(__tstate);
31939 if (PyErr_Occurred()) SWIG_fail;
31940 }
31941 resultobj = SWIG_Py_Void();
31942 return resultobj;
31943fail:
31944 return NULL;
7e08d4ef
RD
31945}
31946
31947
0085ce49
RD
31948SWIGINTERN PyObject *_wrap_ListView_GetFocusedItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31949 PyObject *resultobj = 0;
31950 wxListView *arg1 = (wxListView *) 0 ;
31951 long result;
31952 void *argp1 = 0 ;
31953 int res1 = 0 ;
31954 PyObject *swig_obj[1] ;
31955
31956 if (!args) SWIG_fail;
31957 swig_obj[0] = args;
31958 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31959 if (!SWIG_IsOK(res1)) {
31960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFocusedItem" "', expected argument " "1"" of type '" "wxListView const *""'");
31961 }
31962 arg1 = reinterpret_cast< wxListView * >(argp1);
31963 {
31964 PyThreadState* __tstate = wxPyBeginAllowThreads();
31965 result = (long)((wxListView const *)arg1)->GetFocusedItem();
31966 wxPyEndAllowThreads(__tstate);
31967 if (PyErr_Occurred()) SWIG_fail;
31968 }
31969 resultobj = SWIG_From_long(static_cast< long >(result));
31970 return resultobj;
31971fail:
31972 return NULL;
31973}
31974
31975
31976SWIGINTERN PyObject *_wrap_ListView_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31977 PyObject *resultobj = 0;
31978 wxListView *arg1 = (wxListView *) 0 ;
31979 long arg2 ;
31980 long result;
31981 void *argp1 = 0 ;
31982 int res1 = 0 ;
31983 long val2 ;
31984 int ecode2 = 0 ;
31985 PyObject * obj0 = 0 ;
31986 PyObject * obj1 = 0 ;
31987 char * kwnames[] = {
31988 (char *) "self",(char *) "item", NULL
31989 };
31990
31991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail;
31992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31993 if (!SWIG_IsOK(res1)) {
31994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetNextSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
31995 }
31996 arg1 = reinterpret_cast< wxListView * >(argp1);
31997 ecode2 = SWIG_AsVal_long(obj1, &val2);
31998 if (!SWIG_IsOK(ecode2)) {
31999 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_GetNextSelected" "', expected argument " "2"" of type '" "long""'");
32000 }
32001 arg2 = static_cast< long >(val2);
32002 {
32003 PyThreadState* __tstate = wxPyBeginAllowThreads();
32004 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
32005 wxPyEndAllowThreads(__tstate);
32006 if (PyErr_Occurred()) SWIG_fail;
32007 }
32008 resultobj = SWIG_From_long(static_cast< long >(result));
32009 return resultobj;
32010fail:
32011 return NULL;
7e08d4ef
RD
32012}
32013
32014
0085ce49
RD
32015SWIGINTERN PyObject *_wrap_ListView_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32016 PyObject *resultobj = 0;
32017 wxListView *arg1 = (wxListView *) 0 ;
32018 long result;
32019 void *argp1 = 0 ;
32020 int res1 = 0 ;
32021 PyObject *swig_obj[1] ;
32022
32023 if (!args) SWIG_fail;
32024 swig_obj[0] = args;
32025 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32026 if (!SWIG_IsOK(res1)) {
32027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFirstSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32028 }
32029 arg1 = reinterpret_cast< wxListView * >(argp1);
32030 {
32031 PyThreadState* __tstate = wxPyBeginAllowThreads();
32032 result = (long)((wxListView const *)arg1)->GetFirstSelected();
32033 wxPyEndAllowThreads(__tstate);
32034 if (PyErr_Occurred()) SWIG_fail;
32035 }
32036 resultobj = SWIG_From_long(static_cast< long >(result));
32037 return resultobj;
32038fail:
32039 return NULL;
32040}
32041
32042
32043SWIGINTERN PyObject *_wrap_ListView_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32044 PyObject *resultobj = 0;
32045 wxListView *arg1 = (wxListView *) 0 ;
32046 long arg2 ;
32047 bool result;
32048 void *argp1 = 0 ;
32049 int res1 = 0 ;
32050 long val2 ;
32051 int ecode2 = 0 ;
32052 PyObject * obj0 = 0 ;
32053 PyObject * obj1 = 0 ;
32054 char * kwnames[] = {
32055 (char *) "self",(char *) "index", NULL
32056 };
32057
32058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32059 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32060 if (!SWIG_IsOK(res1)) {
32061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_IsSelected" "', expected argument " "1"" of type '" "wxListView *""'");
32062 }
32063 arg1 = reinterpret_cast< wxListView * >(argp1);
32064 ecode2 = SWIG_AsVal_long(obj1, &val2);
32065 if (!SWIG_IsOK(ecode2)) {
32066 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_IsSelected" "', expected argument " "2"" of type '" "long""'");
32067 }
32068 arg2 = static_cast< long >(val2);
32069 {
32070 PyThreadState* __tstate = wxPyBeginAllowThreads();
32071 result = (bool)(arg1)->IsSelected(arg2);
32072 wxPyEndAllowThreads(__tstate);
32073 if (PyErr_Occurred()) SWIG_fail;
32074 }
32075 {
32076 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32077 }
32078 return resultobj;
32079fail:
32080 return NULL;
32081}
32082
32083
32084SWIGINTERN PyObject *_wrap_ListView_SetColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32085 PyObject *resultobj = 0;
32086 wxListView *arg1 = (wxListView *) 0 ;
32087 int arg2 ;
32088 int arg3 ;
32089 void *argp1 = 0 ;
32090 int res1 = 0 ;
32091 int val2 ;
32092 int ecode2 = 0 ;
32093 int val3 ;
32094 int ecode3 = 0 ;
32095 PyObject * obj0 = 0 ;
32096 PyObject * obj1 = 0 ;
32097 PyObject * obj2 = 0 ;
32098 char * kwnames[] = {
32099 (char *) "self",(char *) "col",(char *) "image", NULL
32100 };
32101
32102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32104 if (!SWIG_IsOK(res1)) {
32105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_SetColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32106 }
32107 arg1 = reinterpret_cast< wxListView * >(argp1);
32108 ecode2 = SWIG_AsVal_int(obj1, &val2);
32109 if (!SWIG_IsOK(ecode2)) {
32110 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_SetColumnImage" "', expected argument " "2"" of type '" "int""'");
32111 }
32112 arg2 = static_cast< int >(val2);
32113 ecode3 = SWIG_AsVal_int(obj2, &val3);
32114 if (!SWIG_IsOK(ecode3)) {
32115 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_SetColumnImage" "', expected argument " "3"" of type '" "int""'");
32116 }
32117 arg3 = static_cast< int >(val3);
32118 {
32119 PyThreadState* __tstate = wxPyBeginAllowThreads();
32120 (arg1)->SetColumnImage(arg2,arg3);
32121 wxPyEndAllowThreads(__tstate);
32122 if (PyErr_Occurred()) SWIG_fail;
32123 }
32124 resultobj = SWIG_Py_Void();
32125 return resultobj;
32126fail:
32127 return NULL;
32128}
32129
32130
32131SWIGINTERN PyObject *_wrap_ListView_ClearColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32132 PyObject *resultobj = 0;
32133 wxListView *arg1 = (wxListView *) 0 ;
32134 int arg2 ;
32135 void *argp1 = 0 ;
32136 int res1 = 0 ;
32137 int val2 ;
32138 int ecode2 = 0 ;
32139 PyObject * obj0 = 0 ;
32140 PyObject * obj1 = 0 ;
32141 char * kwnames[] = {
32142 (char *) "self",(char *) "col", NULL
32143 };
32144
32145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) SWIG_fail;
32146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32147 if (!SWIG_IsOK(res1)) {
32148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_ClearColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32149 }
32150 arg1 = reinterpret_cast< wxListView * >(argp1);
32151 ecode2 = SWIG_AsVal_int(obj1, &val2);
32152 if (!SWIG_IsOK(ecode2)) {
32153 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_ClearColumnImage" "', expected argument " "2"" of type '" "int""'");
32154 }
32155 arg2 = static_cast< int >(val2);
32156 {
32157 PyThreadState* __tstate = wxPyBeginAllowThreads();
32158 (arg1)->ClearColumnImage(arg2);
32159 wxPyEndAllowThreads(__tstate);
32160 if (PyErr_Occurred()) SWIG_fail;
32161 }
32162 resultobj = SWIG_Py_Void();
32163 return resultobj;
32164fail:
32165 return NULL;
7e08d4ef
RD
32166}
32167
32168
0085ce49
RD
32169SWIGINTERN PyObject *ListView_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32170 PyObject *obj;
32171 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32172 SWIG_TypeNewClientData(SWIGTYPE_p_wxListView, SWIG_NewClientData(obj));
32173 return SWIG_Py_Void();
7e08d4ef
RD
32174}
32175
0085ce49
RD
32176SWIGINTERN PyObject *ListView_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32177 return SWIG_Python_InitShadowInstance(args);
32178}
7e08d4ef 32179
0085ce49
RD
32180SWIGINTERN int TreeCtrlNameStr_set(PyObject *) {
32181 SWIG_Error(SWIG_AttributeError,"Variable TreeCtrlNameStr is read-only.");
32182 return 1;
7e08d4ef
RD
32183}
32184
32185
0085ce49
RD
32186SWIGINTERN PyObject *TreeCtrlNameStr_get(void) {
32187 PyObject *pyobj = 0;
32188
32189 {
32190#if wxUSE_UNICODE
32191 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32192#else
32193 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32194#endif
32195 }
32196 return pyobj;
7e08d4ef
RD
32197}
32198
32199
0085ce49
RD
32200SWIGINTERN PyObject *_wrap_new_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32201 PyObject *resultobj = 0;
32202 wxTreeItemId *result = 0 ;
32203
32204 if (!SWIG_Python_UnpackTuple(args,"new_TreeItemId",0,0,0)) SWIG_fail;
32205 {
32206 PyThreadState* __tstate = wxPyBeginAllowThreads();
32207 result = (wxTreeItemId *)new wxTreeItemId();
32208 wxPyEndAllowThreads(__tstate);
32209 if (PyErr_Occurred()) SWIG_fail;
32210 }
32211 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_NEW | 0 );
32212 return resultobj;
32213fail:
32214 return NULL;
d14a1e28
RD
32215}
32216
32217
0085ce49
RD
32218SWIGINTERN PyObject *_wrap_delete_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32219 PyObject *resultobj = 0;
32220 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32221 void *argp1 = 0 ;
32222 int res1 = 0 ;
32223 PyObject *swig_obj[1] ;
32224
32225 if (!args) SWIG_fail;
32226 swig_obj[0] = args;
32227 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_DISOWN | 0 );
32228 if (!SWIG_IsOK(res1)) {
32229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemId" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32230 }
32231 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32232 {
32233 PyThreadState* __tstate = wxPyBeginAllowThreads();
32234 delete arg1;
7e08d4ef 32235
0085ce49
RD
32236 wxPyEndAllowThreads(__tstate);
32237 if (PyErr_Occurred()) SWIG_fail;
32238 }
32239 resultobj = SWIG_Py_Void();
32240 return resultobj;
32241fail:
32242 return NULL;
7e08d4ef
RD
32243}
32244
32245
0085ce49
RD
32246SWIGINTERN PyObject *_wrap_TreeItemId_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32247 PyObject *resultobj = 0;
32248 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32249 bool result;
32250 void *argp1 = 0 ;
32251 int res1 = 0 ;
32252 PyObject *swig_obj[1] ;
32253
32254 if (!args) SWIG_fail;
32255 swig_obj[0] = args;
32256 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32257 if (!SWIG_IsOK(res1)) {
32258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_IsOk" "', expected argument " "1"" of type '" "wxTreeItemId const *""'");
32259 }
32260 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32261 {
32262 PyThreadState* __tstate = wxPyBeginAllowThreads();
32263 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
32264 wxPyEndAllowThreads(__tstate);
32265 if (PyErr_Occurred()) SWIG_fail;
32266 }
32267 {
32268 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32269 }
32270 return resultobj;
32271fail:
32272 return NULL;
32273}
32274
32275
32276SWIGINTERN PyObject *_wrap_TreeItemId___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32277 PyObject *resultobj = 0;
32278 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32279 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32280 bool result;
32281 void *argp1 = 0 ;
32282 int res1 = 0 ;
32283 void *argp2 = 0 ;
32284 int res2 = 0 ;
32285 PyObject * obj0 = 0 ;
32286 PyObject * obj1 = 0 ;
32287 char * kwnames[] = {
32288 (char *) "self",(char *) "other", NULL
32289 };
32290
32291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
32292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32293 if (!SWIG_IsOK(res1)) {
32294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___eq__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32295 }
32296 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32297 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32298 if (!SWIG_IsOK(res2)) {
32299 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___eq__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32300 }
32301 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32302 {
32303 PyThreadState* __tstate = wxPyBeginAllowThreads();
32304 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
32305 wxPyEndAllowThreads(__tstate);
32306 if (PyErr_Occurred()) SWIG_fail;
32307 }
32308 {
32309 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32310 }
32311 return resultobj;
32312fail:
32313 return NULL;
32314}
32315
32316
32317SWIGINTERN PyObject *_wrap_TreeItemId___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32318 PyObject *resultobj = 0;
32319 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32320 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32321 bool result;
32322 void *argp1 = 0 ;
32323 int res1 = 0 ;
32324 void *argp2 = 0 ;
32325 int res2 = 0 ;
32326 PyObject * obj0 = 0 ;
32327 PyObject * obj1 = 0 ;
32328 char * kwnames[] = {
32329 (char *) "self",(char *) "other", NULL
32330 };
32331
32332 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
32333 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32334 if (!SWIG_IsOK(res1)) {
32335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___ne__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32336 }
32337 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32338 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32339 if (!SWIG_IsOK(res2)) {
32340 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___ne__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32341 }
32342 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32343 {
32344 PyThreadState* __tstate = wxPyBeginAllowThreads();
32345 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
32346 wxPyEndAllowThreads(__tstate);
32347 if (PyErr_Occurred()) SWIG_fail;
32348 }
32349 {
32350 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32351 }
32352 return resultobj;
32353fail:
32354 return NULL;
7e08d4ef
RD
32355}
32356
32357
0085ce49
RD
32358SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32359 PyObject *resultobj = 0;
32360 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32361 void *arg2 = (void *) 0 ;
32362 void *argp1 = 0 ;
32363 int res1 = 0 ;
32364 int res2 ;
32365 PyObject *swig_obj[2] ;
32366
32367 if (!SWIG_Python_UnpackTuple(args,"TreeItemId_m_pItem_set",2,2,swig_obj)) SWIG_fail;
32368 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32369 if (!SWIG_IsOK(res1)) {
32370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32371 }
32372 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32373 res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
32374 if (!SWIG_IsOK(res2)) {
32375 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "2"" of type '" "void *""'");
32376 }
32377 if (arg1) (arg1)->m_pItem = arg2;
32378
32379 resultobj = SWIG_Py_Void();
32380 return resultobj;
32381fail:
32382 return NULL;
7e08d4ef
RD
32383}
32384
32385
0085ce49
RD
32386SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32387 PyObject *resultobj = 0;
32388 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32389 void *result = 0 ;
32390 void *argp1 = 0 ;
32391 int res1 = 0 ;
32392 PyObject *swig_obj[1] ;
32393
32394 if (!args) SWIG_fail;
32395 swig_obj[0] = args;
32396 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32397 if (!SWIG_IsOK(res1)) {
32398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_get" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32399 }
32400 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32401 result = (void *) ((arg1)->m_pItem);
32402 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
32403 return resultobj;
32404fail:
32405 return NULL;
7e08d4ef
RD
32406}
32407
32408
0085ce49
RD
32409SWIGINTERN PyObject *TreeItemId_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32410 PyObject *obj;
32411 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32412 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeItemId, SWIG_NewClientData(obj));
32413 return SWIG_Py_Void();
7e08d4ef
RD
32414}
32415
0085ce49
RD
32416SWIGINTERN PyObject *TreeItemId_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32417 return SWIG_Python_InitShadowInstance(args);
32418}
7e08d4ef 32419
0085ce49
RD
32420SWIGINTERN PyObject *_wrap_new_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32421 PyObject *resultobj = 0;
32422 PyObject *arg1 = (PyObject *) NULL ;
32423 wxPyTreeItemData *result = 0 ;
32424 PyObject * obj0 = 0 ;
32425 char * kwnames[] = {
32426 (char *) "obj", NULL
32427 };
32428
32429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) SWIG_fail;
32430 if (obj0) {
32431 arg1 = obj0;
32432 }
32433 {
32434 PyThreadState* __tstate = wxPyBeginAllowThreads();
32435 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
32436 wxPyEndAllowThreads(__tstate);
32437 if (PyErr_Occurred()) SWIG_fail;
32438 }
32439 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_NEW | 0 );
32440 return resultobj;
32441fail:
32442 return NULL;
7e08d4ef
RD
32443}
32444
32445
0085ce49
RD
32446SWIGINTERN PyObject *_wrap_delete_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32447 PyObject *resultobj = 0;
32448 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32449 void *argp1 = 0 ;
32450 int res1 = 0 ;
32451 PyObject *swig_obj[1] ;
32452
32453 if (!args) SWIG_fail;
32454 swig_obj[0] = args;
32455 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
32456 if (!SWIG_IsOK(res1)) {
32457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32458 }
32459 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32460 {
32461 PyThreadState* __tstate = wxPyBeginAllowThreads();
32462 delete arg1;
1fbf26be 32463
0085ce49
RD
32464 wxPyEndAllowThreads(__tstate);
32465 if (PyErr_Occurred()) SWIG_fail;
32466 }
32467 resultobj = SWIG_Py_Void();
32468 return resultobj;
32469fail:
32470 return NULL;
1fbf26be
RD
32471}
32472
32473
0085ce49
RD
32474SWIGINTERN PyObject *_wrap_TreeItemData_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32475 PyObject *resultobj = 0;
32476 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32477 PyObject *result = 0 ;
32478 void *argp1 = 0 ;
32479 int res1 = 0 ;
32480 PyObject *swig_obj[1] ;
32481
32482 if (!args) SWIG_fail;
32483 swig_obj[0] = args;
32484 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32485 if (!SWIG_IsOK(res1)) {
32486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32487 }
32488 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32489 {
32490 PyThreadState* __tstate = wxPyBeginAllowThreads();
32491 result = (PyObject *)(arg1)->GetData();
32492 wxPyEndAllowThreads(__tstate);
32493 if (PyErr_Occurred()) SWIG_fail;
32494 }
32495 resultobj = result;
32496 return resultobj;
32497fail:
32498 return NULL;
32499}
32500
32501
32502SWIGINTERN PyObject *_wrap_TreeItemData_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32503 PyObject *resultobj = 0;
32504 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32505 PyObject *arg2 = (PyObject *) 0 ;
32506 void *argp1 = 0 ;
32507 int res1 = 0 ;
32508 PyObject * obj0 = 0 ;
32509 PyObject * obj1 = 0 ;
32510 char * kwnames[] = {
32511 (char *) "self",(char *) "obj", NULL
32512 };
32513
32514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
32515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32516 if (!SWIG_IsOK(res1)) {
32517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32518 }
32519 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32520 arg2 = obj1;
32521 {
32522 PyThreadState* __tstate = wxPyBeginAllowThreads();
32523 (arg1)->SetData(arg2);
32524 wxPyEndAllowThreads(__tstate);
32525 if (PyErr_Occurred()) SWIG_fail;
32526 }
32527 resultobj = SWIG_Py_Void();
32528 return resultobj;
32529fail:
32530 return NULL;
d14a1e28
RD
32531}
32532
32533
0085ce49
RD
32534SWIGINTERN PyObject *_wrap_TreeItemData_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32535 PyObject *resultobj = 0;
32536 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32537 wxTreeItemId *result = 0 ;
32538 void *argp1 = 0 ;
32539 int res1 = 0 ;
32540 PyObject *swig_obj[1] ;
32541
32542 if (!args) SWIG_fail;
32543 swig_obj[0] = args;
32544 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32545 if (!SWIG_IsOK(res1)) {
32546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32547 }
32548 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32549 {
32550 PyThreadState* __tstate = wxPyBeginAllowThreads();
2ef75293 32551 {
0085ce49
RD
32552 wxTreeItemId const &_result_ref = (arg1)->GetId();
32553 result = (wxTreeItemId *) &_result_ref;
2ef75293 32554 }
0085ce49
RD
32555 wxPyEndAllowThreads(__tstate);
32556 if (PyErr_Occurred()) SWIG_fail;
32557 }
32558 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32559 return resultobj;
32560fail:
32561 return NULL;
32562}
32563
32564
32565SWIGINTERN PyObject *_wrap_TreeItemData_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32566 PyObject *resultobj = 0;
32567 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32568 wxTreeItemId *arg2 = 0 ;
32569 void *argp1 = 0 ;
32570 int res1 = 0 ;
32571 void *argp2 = 0 ;
32572 int res2 = 0 ;
32573 PyObject * obj0 = 0 ;
32574 PyObject * obj1 = 0 ;
32575 char * kwnames[] = {
32576 (char *) "self",(char *) "id", NULL
32577 };
32578
32579 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
32580 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32581 if (!SWIG_IsOK(res1)) {
32582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32583 }
32584 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32585 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32586 if (!SWIG_IsOK(res2)) {
32587 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32588 }
32589 if (!argp2) {
32590 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32591 }
32592 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32593 {
32594 PyThreadState* __tstate = wxPyBeginAllowThreads();
32595 (arg1)->SetId((wxTreeItemId const &)*arg2);
32596 wxPyEndAllowThreads(__tstate);
32597 if (PyErr_Occurred()) SWIG_fail;
32598 }
32599 resultobj = SWIG_Py_Void();
32600 return resultobj;
32601fail:
32602 return NULL;
2ef75293
RD
32603}
32604
32605
0085ce49
RD
32606SWIGINTERN PyObject *_wrap_TreeItemData_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32607 PyObject *resultobj = 0;
32608 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32609 void *argp1 = 0 ;
32610 int res1 = 0 ;
32611 PyObject *swig_obj[1] ;
32612
32613 if (!args) SWIG_fail;
32614 swig_obj[0] = args;
32615 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32616 if (!SWIG_IsOK(res1)) {
32617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_Destroy" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32618 }
32619 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32620 {
32621 PyThreadState* __tstate = wxPyBeginAllowThreads();
32622 wxPyTreeItemData_Destroy(arg1);
32623 wxPyEndAllowThreads(__tstate);
32624 if (PyErr_Occurred()) SWIG_fail;
32625 }
32626 resultobj = SWIG_Py_Void();
32627 return resultobj;
32628fail:
32629 return NULL;
2ef75293
RD
32630}
32631
32632
0085ce49
RD
32633SWIGINTERN PyObject *TreeItemData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32634 PyObject *obj;
32635 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32636 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeItemData, SWIG_NewClientData(obj));
32637 return SWIG_Py_Void();
2ef75293
RD
32638}
32639
0085ce49
RD
32640SWIGINTERN PyObject *TreeItemData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32641 return SWIG_Python_InitShadowInstance(args);
32642}
2ef75293 32643
0085ce49
RD
32644SWIGINTERN PyObject *_wrap_new_TreeEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32645 PyObject *resultobj = 0;
32646 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
32647 int arg2 = (int) 0 ;
32648 wxTreeEvent *result = 0 ;
32649 int val1 ;
32650 int ecode1 = 0 ;
32651 int val2 ;
32652 int ecode2 = 0 ;
32653 PyObject * obj0 = 0 ;
32654 PyObject * obj1 = 0 ;
32655 char * kwnames[] = {
32656 (char *) "commandType",(char *) "id", NULL
32657 };
32658
32659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) SWIG_fail;
32660 if (obj0) {
32661 ecode1 = SWIG_AsVal_int(obj0, &val1);
32662 if (!SWIG_IsOK(ecode1)) {
32663 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
32664 }
32665 arg1 = static_cast< wxEventType >(val1);
32666 }
32667 if (obj1) {
32668 ecode2 = SWIG_AsVal_int(obj1, &val2);
32669 if (!SWIG_IsOK(ecode2)) {
32670 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "int""'");
32671 }
32672 arg2 = static_cast< int >(val2);
32673 }
32674 {
32675 PyThreadState* __tstate = wxPyBeginAllowThreads();
32676 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
32677 wxPyEndAllowThreads(__tstate);
32678 if (PyErr_Occurred()) SWIG_fail;
32679 }
32680 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
32681 return resultobj;
32682fail:
32683 return NULL;
70b7a5fe
RD
32684}
32685
32686
0085ce49
RD
32687SWIGINTERN PyObject *_wrap_TreeEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32688 PyObject *resultobj = 0;
32689 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32690 wxTreeItemId result;
32691 void *argp1 = 0 ;
32692 int res1 = 0 ;
32693 PyObject *swig_obj[1] ;
32694
32695 if (!args) SWIG_fail;
32696 swig_obj[0] = args;
32697 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32698 if (!SWIG_IsOK(res1)) {
32699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32700 }
32701 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32702 {
32703 PyThreadState* __tstate = wxPyBeginAllowThreads();
32704 result = ((wxTreeEvent const *)arg1)->GetItem();
32705 wxPyEndAllowThreads(__tstate);
32706 if (PyErr_Occurred()) SWIG_fail;
32707 }
32708 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
32709 return resultobj;
32710fail:
32711 return NULL;
32712}
32713
32714
32715SWIGINTERN PyObject *_wrap_TreeEvent_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32716 PyObject *resultobj = 0;
32717 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32718 wxTreeItemId *arg2 = 0 ;
32719 void *argp1 = 0 ;
32720 int res1 = 0 ;
32721 void *argp2 = 0 ;
32722 int res2 = 0 ;
32723 PyObject * obj0 = 0 ;
32724 PyObject * obj1 = 0 ;
32725 char * kwnames[] = {
32726 (char *) "self",(char *) "item", NULL
32727 };
32728
32729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
32730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32731 if (!SWIG_IsOK(res1)) {
32732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32733 }
32734 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32735 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32736 if (!SWIG_IsOK(res2)) {
32737 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32738 }
32739 if (!argp2) {
32740 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32741 }
32742 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32743 {
32744 PyThreadState* __tstate = wxPyBeginAllowThreads();
32745 (arg1)->SetItem((wxTreeItemId const &)*arg2);
32746 wxPyEndAllowThreads(__tstate);
32747 if (PyErr_Occurred()) SWIG_fail;
32748 }
32749 resultobj = SWIG_Py_Void();
32750 return resultobj;
32751fail:
32752 return NULL;
2ef75293
RD
32753}
32754
32755
0085ce49
RD
32756SWIGINTERN PyObject *_wrap_TreeEvent_GetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32757 PyObject *resultobj = 0;
32758 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32759 wxTreeItemId result;
32760 void *argp1 = 0 ;
32761 int res1 = 0 ;
32762 PyObject *swig_obj[1] ;
32763
32764 if (!args) SWIG_fail;
32765 swig_obj[0] = args;
32766 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32767 if (!SWIG_IsOK(res1)) {
32768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32769 }
32770 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32771 {
32772 PyThreadState* __tstate = wxPyBeginAllowThreads();
32773 result = ((wxTreeEvent const *)arg1)->GetOldItem();
32774 wxPyEndAllowThreads(__tstate);
32775 if (PyErr_Occurred()) SWIG_fail;
32776 }
32777 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
32778 return resultobj;
32779fail:
32780 return NULL;
32781}
32782
32783
32784SWIGINTERN PyObject *_wrap_TreeEvent_SetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32785 PyObject *resultobj = 0;
32786 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32787 wxTreeItemId *arg2 = 0 ;
32788 void *argp1 = 0 ;
32789 int res1 = 0 ;
32790 void *argp2 = 0 ;
32791 int res2 = 0 ;
32792 PyObject * obj0 = 0 ;
32793 PyObject * obj1 = 0 ;
32794 char * kwnames[] = {
32795 (char *) "self",(char *) "item", NULL
32796 };
32797
32798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) SWIG_fail;
32799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32800 if (!SWIG_IsOK(res1)) {
32801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32802 }
32803 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32804 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32805 if (!SWIG_IsOK(res2)) {
32806 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32807 }
32808 if (!argp2) {
32809 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32810 }
32811 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32812 {
32813 PyThreadState* __tstate = wxPyBeginAllowThreads();
32814 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
32815 wxPyEndAllowThreads(__tstate);
32816 if (PyErr_Occurred()) SWIG_fail;
32817 }
32818 resultobj = SWIG_Py_Void();
32819 return resultobj;
32820fail:
32821 return NULL;
2ef75293
RD
32822}
32823
32824
0085ce49
RD
32825SWIGINTERN PyObject *_wrap_TreeEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32826 PyObject *resultobj = 0;
32827 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32828 wxPoint result;
32829 void *argp1 = 0 ;
32830 int res1 = 0 ;
32831 PyObject *swig_obj[1] ;
32832
32833 if (!args) SWIG_fail;
32834 swig_obj[0] = args;
32835 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32836 if (!SWIG_IsOK(res1)) {
32837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetPoint" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32838 }
32839 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32840 {
32841 PyThreadState* __tstate = wxPyBeginAllowThreads();
32842 result = ((wxTreeEvent const *)arg1)->GetPoint();
32843 wxPyEndAllowThreads(__tstate);
32844 if (PyErr_Occurred()) SWIG_fail;
32845 }
32846 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
32847 return resultobj;
32848fail:
32849 return NULL;
32850}
32851
32852
32853SWIGINTERN PyObject *_wrap_TreeEvent_SetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32854 PyObject *resultobj = 0;
32855 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32856 wxPoint *arg2 = 0 ;
32857 void *argp1 = 0 ;
32858 int res1 = 0 ;
32859 wxPoint temp2 ;
32860 PyObject * obj0 = 0 ;
32861 PyObject * obj1 = 0 ;
32862 char * kwnames[] = {
32863 (char *) "self",(char *) "pt", NULL
32864 };
32865
32866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) SWIG_fail;
32867 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32868 if (!SWIG_IsOK(res1)) {
32869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetPoint" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32870 }
32871 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32872 {
32873 arg2 = &temp2;
32874 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32875 }
32876 {
32877 PyThreadState* __tstate = wxPyBeginAllowThreads();
32878 (arg1)->SetPoint((wxPoint const &)*arg2);
32879 wxPyEndAllowThreads(__tstate);
32880 if (PyErr_Occurred()) SWIG_fail;
32881 }
32882 resultobj = SWIG_Py_Void();
32883 return resultobj;
32884fail:
32885 return NULL;
d14a1e28
RD
32886}
32887
32888
0085ce49
RD
32889SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32890 PyObject *resultobj = 0;
32891 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32892 wxKeyEvent *result = 0 ;
32893 void *argp1 = 0 ;
32894 int res1 = 0 ;
32895 PyObject *swig_obj[1] ;
32896
32897 if (!args) SWIG_fail;
32898 swig_obj[0] = args;
32899 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32900 if (!SWIG_IsOK(res1)) {
32901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32902 }
32903 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32904 {
32905 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 32906 {
0085ce49
RD
32907 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
32908 result = (wxKeyEvent *) &_result_ref;
d14a1e28 32909 }
0085ce49
RD
32910 wxPyEndAllowThreads(__tstate);
32911 if (PyErr_Occurred()) SWIG_fail;
32912 }
32913 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxKeyEvent, 0 | 0 );
32914 return resultobj;
32915fail:
32916 return NULL;
d14a1e28
RD
32917}
32918
32919
0085ce49
RD
32920SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32921 PyObject *resultobj = 0;
32922 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32923 int result;
32924 void *argp1 = 0 ;
32925 int res1 = 0 ;
32926 PyObject *swig_obj[1] ;
32927
32928 if (!args) SWIG_fail;
32929 swig_obj[0] = args;
32930 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32931 if (!SWIG_IsOK(res1)) {
32932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32933 }
32934 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32935 {
32936 PyThreadState* __tstate = wxPyBeginAllowThreads();
32937 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
32938 wxPyEndAllowThreads(__tstate);
32939 if (PyErr_Occurred()) SWIG_fail;
32940 }
32941 resultobj = SWIG_From_int(static_cast< int >(result));
32942 return resultobj;
32943fail:
32944 return NULL;
32945}
32946
32947
32948SWIGINTERN PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32949 PyObject *resultobj = 0;
32950 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32951 wxKeyEvent *arg2 = 0 ;
32952 void *argp1 = 0 ;
32953 int res1 = 0 ;
32954 void *argp2 = 0 ;
32955 int res2 = 0 ;
32956 PyObject * obj0 = 0 ;
32957 PyObject * obj1 = 0 ;
32958 char * kwnames[] = {
32959 (char *) "self",(char *) "evt", NULL
32960 };
32961
32962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",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_SetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32966 }
32967 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32968 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
32969 if (!SWIG_IsOK(res2)) {
32970 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
32971 }
32972 if (!argp2) {
32973 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
32974 }
32975 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
32976 {
32977 PyThreadState* __tstate = wxPyBeginAllowThreads();
32978 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
32979 wxPyEndAllowThreads(__tstate);
32980 if (PyErr_Occurred()) SWIG_fail;
32981 }
32982 resultobj = SWIG_Py_Void();
32983 return resultobj;
32984fail:
32985 return NULL;
d14a1e28
RD
32986}
32987
32988
0085ce49
RD
32989SWIGINTERN PyObject *_wrap_TreeEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32990 PyObject *resultobj = 0;
32991 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32992 wxString *result = 0 ;
32993 void *argp1 = 0 ;
32994 int res1 = 0 ;
32995 PyObject *swig_obj[1] ;
32996
32997 if (!args) SWIG_fail;
32998 swig_obj[0] = args;
32999 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33000 if (!SWIG_IsOK(res1)) {
33001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetLabel" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33002 }
33003 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33004 {
33005 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 33006 {
0085ce49
RD
33007 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
33008 result = (wxString *) &_result_ref;
093d3ff1 33009 }
0085ce49
RD
33010 wxPyEndAllowThreads(__tstate);
33011 if (PyErr_Occurred()) SWIG_fail;
33012 }
33013 {
33014#if wxUSE_UNICODE
33015 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33016#else
33017 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33018#endif
33019 }
33020 return resultobj;
33021fail:
33022 return NULL;
33023}
33024
33025
33026SWIGINTERN PyObject *_wrap_TreeEvent_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33027 PyObject *resultobj = 0;
33028 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33029 wxString *arg2 = 0 ;
33030 void *argp1 = 0 ;
33031 int res1 = 0 ;
33032 bool temp2 = false ;
33033 PyObject * obj0 = 0 ;
33034 PyObject * obj1 = 0 ;
33035 char * kwnames[] = {
33036 (char *) "self",(char *) "label", NULL
33037 };
33038
33039 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
33040 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33041 if (!SWIG_IsOK(res1)) {
33042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetLabel" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33043 }
33044 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33045 {
33046 arg2 = wxString_in_helper(obj1);
33047 if (arg2 == NULL) SWIG_fail;
33048 temp2 = true;
33049 }
33050 {
33051 PyThreadState* __tstate = wxPyBeginAllowThreads();
33052 (arg1)->SetLabel((wxString const &)*arg2);
33053 wxPyEndAllowThreads(__tstate);
33054 if (PyErr_Occurred()) SWIG_fail;
33055 }
33056 resultobj = SWIG_Py_Void();
33057 {
33058 if (temp2)
33059 delete arg2;
33060 }
33061 return resultobj;
33062fail:
33063 {
33064 if (temp2)
33065 delete arg2;
33066 }
33067 return NULL;
d14a1e28
RD
33068}
33069
33070
0085ce49
RD
33071SWIGINTERN PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33072 PyObject *resultobj = 0;
33073 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33074 bool result;
33075 void *argp1 = 0 ;
33076 int res1 = 0 ;
33077 PyObject *swig_obj[1] ;
33078
33079 if (!args) SWIG_fail;
33080 swig_obj[0] = args;
33081 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33082 if (!SWIG_IsOK(res1)) {
33083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33084 }
33085 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33086 {
33087 PyThreadState* __tstate = wxPyBeginAllowThreads();
33088 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
33089 wxPyEndAllowThreads(__tstate);
33090 if (PyErr_Occurred()) SWIG_fail;
33091 }
33092 {
33093 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33094 }
33095 return resultobj;
33096fail:
33097 return NULL;
33098}
33099
33100
33101SWIGINTERN PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33102 PyObject *resultobj = 0;
33103 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33104 bool arg2 ;
33105 void *argp1 = 0 ;
33106 int res1 = 0 ;
33107 bool val2 ;
33108 int ecode2 = 0 ;
33109 PyObject * obj0 = 0 ;
33110 PyObject * obj1 = 0 ;
33111 char * kwnames[] = {
33112 (char *) "self",(char *) "editCancelled", NULL
33113 };
33114
33115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
33116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33117 if (!SWIG_IsOK(res1)) {
33118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33119 }
33120 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33121 ecode2 = SWIG_AsVal_bool(obj1, &val2);
33122 if (!SWIG_IsOK(ecode2)) {
33123 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
33124 }
33125 arg2 = static_cast< bool >(val2);
33126 {
33127 PyThreadState* __tstate = wxPyBeginAllowThreads();
33128 (arg1)->SetEditCanceled(arg2);
33129 wxPyEndAllowThreads(__tstate);
33130 if (PyErr_Occurred()) SWIG_fail;
33131 }
33132 resultobj = SWIG_Py_Void();
33133 return resultobj;
33134fail:
33135 return NULL;
33136}
33137
33138
33139SWIGINTERN PyObject *_wrap_TreeEvent_SetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33140 PyObject *resultobj = 0;
33141 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33142 wxString *arg2 = 0 ;
33143 void *argp1 = 0 ;
33144 int res1 = 0 ;
33145 bool temp2 = false ;
33146 PyObject * obj0 = 0 ;
33147 PyObject * obj1 = 0 ;
33148 char * kwnames[] = {
33149 (char *) "self",(char *) "toolTip", NULL
33150 };
33151
33152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
33153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33154 if (!SWIG_IsOK(res1)) {
33155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33156 }
33157 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33158 {
33159 arg2 = wxString_in_helper(obj1);
33160 if (arg2 == NULL) SWIG_fail;
33161 temp2 = true;
33162 }
33163 {
33164 PyThreadState* __tstate = wxPyBeginAllowThreads();
33165 (arg1)->SetToolTip((wxString const &)*arg2);
33166 wxPyEndAllowThreads(__tstate);
33167 if (PyErr_Occurred()) SWIG_fail;
33168 }
33169 resultobj = SWIG_Py_Void();
33170 {
33171 if (temp2)
33172 delete arg2;
33173 }
33174 return resultobj;
33175fail:
33176 {
33177 if (temp2)
33178 delete arg2;
33179 }
33180 return NULL;
d14a1e28
RD
33181}
33182
33183
0085ce49
RD
33184SWIGINTERN PyObject *_wrap_TreeEvent_GetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33185 PyObject *resultobj = 0;
33186 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33187 wxString result;
33188 void *argp1 = 0 ;
33189 int res1 = 0 ;
33190 PyObject *swig_obj[1] ;
33191
33192 if (!args) SWIG_fail;
33193 swig_obj[0] = args;
33194 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33195 if (!SWIG_IsOK(res1)) {
33196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33197 }
33198 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33199 {
33200 PyThreadState* __tstate = wxPyBeginAllowThreads();
33201 result = (arg1)->GetToolTip();
33202 wxPyEndAllowThreads(__tstate);
33203 if (PyErr_Occurred()) SWIG_fail;
33204 }
33205 {
33206#if wxUSE_UNICODE
33207 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33208#else
33209 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33210#endif
33211 }
33212 return resultobj;
33213fail:
33214 return NULL;
33215}
33216
33217
33218SWIGINTERN PyObject *TreeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33219 PyObject *obj;
33220 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33221 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeEvent, SWIG_NewClientData(obj));
33222 return SWIG_Py_Void();
33223}
33224
33225SWIGINTERN PyObject *TreeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33226 return SWIG_Python_InitShadowInstance(args);
33227}
33228
33229SWIGINTERN PyObject *_wrap_new_TreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33230 PyObject *resultobj = 0;
33231 wxWindow *arg1 = (wxWindow *) 0 ;
33232 int arg2 = (int) -1 ;
33233 wxPoint const &arg3_defvalue = wxDefaultPosition ;
33234 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
33235 wxSize const &arg4_defvalue = wxDefaultSize ;
33236 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
33237 long arg5 = (long) wxTR_DEFAULT_STYLE ;
33238 wxValidator const &arg6_defvalue = wxDefaultValidator ;
33239 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
33240 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
33241 wxString *arg7 = (wxString *) &arg7_defvalue ;
33242 wxPyTreeCtrl *result = 0 ;
33243 void *argp1 = 0 ;
33244 int res1 = 0 ;
33245 int val2 ;
33246 int ecode2 = 0 ;
33247 wxPoint temp3 ;
33248 wxSize temp4 ;
33249 long val5 ;
33250 int ecode5 = 0 ;
33251 void *argp6 = 0 ;
33252 int res6 = 0 ;
33253 bool temp7 = false ;
33254 PyObject * obj0 = 0 ;
33255 PyObject * obj1 = 0 ;
33256 PyObject * obj2 = 0 ;
33257 PyObject * obj3 = 0 ;
33258 PyObject * obj4 = 0 ;
33259 PyObject * obj5 = 0 ;
33260 PyObject * obj6 = 0 ;
33261 char * kwnames[] = {
33262 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33263 };
33264
33265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33266 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33267 if (!SWIG_IsOK(res1)) {
33268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
33269 }
33270 arg1 = reinterpret_cast< wxWindow * >(argp1);
33271 if (obj1) {
33272 ecode2 = SWIG_AsVal_int(obj1, &val2);
33273 if (!SWIG_IsOK(ecode2)) {
33274 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCtrl" "', expected argument " "2"" of type '" "int""'");
33275 }
33276 arg2 = static_cast< int >(val2);
33277 }
33278 if (obj2) {
d14a1e28 33279 {
0085ce49
RD
33280 arg3 = &temp3;
33281 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 33282 }
0085ce49
RD
33283 }
33284 if (obj3) {
093d3ff1 33285 {
0085ce49
RD
33286 arg4 = &temp4;
33287 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 33288 }
0085ce49
RD
33289 }
33290 if (obj4) {
33291 ecode5 = SWIG_AsVal_long(obj4, &val5);
33292 if (!SWIG_IsOK(ecode5)) {
33293 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TreeCtrl" "', expected argument " "5"" of type '" "long""'");
33294 }
33295 arg5 = static_cast< long >(val5);
33296 }
33297 if (obj5) {
33298 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
33299 if (!SWIG_IsOK(res6)) {
33300 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d14a1e28 33301 }
0085ce49
RD
33302 if (!argp6) {
33303 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d14a1e28 33304 }
0085ce49
RD
33305 arg6 = reinterpret_cast< wxValidator * >(argp6);
33306 }
33307 if (obj6) {
4f89f6a3 33308 {
0085ce49
RD
33309 arg7 = wxString_in_helper(obj6);
33310 if (arg7 == NULL) SWIG_fail;
33311 temp7 = true;
4f89f6a3 33312 }
0085ce49
RD
33313 }
33314 {
33315 if (!wxPyCheckForApp()) SWIG_fail;
33316 PyThreadState* __tstate = wxPyBeginAllowThreads();
33317 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
33318 wxPyEndAllowThreads(__tstate);
33319 if (PyErr_Occurred()) SWIG_fail;
33320 }
33321 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_NEW | 0 );
33322 {
33323 if (temp7)
33324 delete arg7;
33325 }
33326 return resultobj;
33327fail:
33328 {
33329 if (temp7)
33330 delete arg7;
33331 }
33332 return NULL;
d14a1e28
RD
33333}
33334
33335
0085ce49
RD
33336SWIGINTERN PyObject *_wrap_new_PreTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33337 PyObject *resultobj = 0;
33338 wxPyTreeCtrl *result = 0 ;
33339
33340 if (!SWIG_Python_UnpackTuple(args,"new_PreTreeCtrl",0,0,0)) SWIG_fail;
33341 {
33342 if (!wxPyCheckForApp()) SWIG_fail;
33343 PyThreadState* __tstate = wxPyBeginAllowThreads();
33344 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
33345 wxPyEndAllowThreads(__tstate);
33346 if (PyErr_Occurred()) SWIG_fail;
33347 }
33348 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_OWN | 0 );
33349 return resultobj;
33350fail:
33351 return NULL;
33352}
33353
33354
33355SWIGINTERN PyObject *_wrap_TreeCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33356 PyObject *resultobj = 0;
33357 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33358 wxWindow *arg2 = (wxWindow *) 0 ;
33359 int arg3 = (int) -1 ;
33360 wxPoint const &arg4_defvalue = wxDefaultPosition ;
33361 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
33362 wxSize const &arg5_defvalue = wxDefaultSize ;
33363 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
33364 long arg6 = (long) wxTR_DEFAULT_STYLE ;
33365 wxValidator const &arg7_defvalue = wxDefaultValidator ;
33366 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
33367 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
33368 wxString *arg8 = (wxString *) &arg8_defvalue ;
33369 bool result;
33370 void *argp1 = 0 ;
33371 int res1 = 0 ;
33372 void *argp2 = 0 ;
33373 int res2 = 0 ;
33374 int val3 ;
33375 int ecode3 = 0 ;
33376 wxPoint temp4 ;
33377 wxSize temp5 ;
33378 long val6 ;
33379 int ecode6 = 0 ;
33380 void *argp7 = 0 ;
33381 int res7 = 0 ;
33382 bool temp8 = false ;
33383 PyObject * obj0 = 0 ;
33384 PyObject * obj1 = 0 ;
33385 PyObject * obj2 = 0 ;
33386 PyObject * obj3 = 0 ;
33387 PyObject * obj4 = 0 ;
33388 PyObject * obj5 = 0 ;
33389 PyObject * obj6 = 0 ;
33390 PyObject * obj7 = 0 ;
33391 char * kwnames[] = {
33392 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33393 };
33394
33395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
33396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33397 if (!SWIG_IsOK(res1)) {
33398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Create" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33399 }
33400 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33401 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33402 if (!SWIG_IsOK(res2)) {
33403 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
33404 }
33405 arg2 = reinterpret_cast< wxWindow * >(argp2);
33406 if (obj2) {
33407 ecode3 = SWIG_AsVal_int(obj2, &val3);
33408 if (!SWIG_IsOK(ecode3)) {
33409 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_Create" "', expected argument " "3"" of type '" "int""'");
33410 }
33411 arg3 = static_cast< int >(val3);
33412 }
33413 if (obj3) {
4f89f6a3 33414 {
0085ce49
RD
33415 arg4 = &temp4;
33416 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 33417 }
0085ce49
RD
33418 }
33419 if (obj4) {
d14a1e28 33420 {
0085ce49
RD
33421 arg5 = &temp5;
33422 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 33423 }
0085ce49
RD
33424 }
33425 if (obj5) {
33426 ecode6 = SWIG_AsVal_long(obj5, &val6);
33427 if (!SWIG_IsOK(ecode6)) {
33428 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_Create" "', expected argument " "6"" of type '" "long""'");
33429 }
33430 arg6 = static_cast< long >(val6);
33431 }
33432 if (obj6) {
33433 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
33434 if (!SWIG_IsOK(res7)) {
33435 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
4f89f6a3 33436 }
0085ce49
RD
33437 if (!argp7) {
33438 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 33439 }
0085ce49
RD
33440 arg7 = reinterpret_cast< wxValidator * >(argp7);
33441 }
33442 if (obj7) {
4276dc52 33443 {
0085ce49
RD
33444 arg8 = wxString_in_helper(obj7);
33445 if (arg8 == NULL) SWIG_fail;
33446 temp8 = true;
4276dc52 33447 }
0085ce49
RD
33448 }
33449 {
33450 PyThreadState* __tstate = wxPyBeginAllowThreads();
33451 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
33452 wxPyEndAllowThreads(__tstate);
33453 if (PyErr_Occurred()) SWIG_fail;
33454 }
33455 {
33456 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33457 }
33458 {
33459 if (temp8)
33460 delete arg8;
33461 }
33462 return resultobj;
33463fail:
33464 {
33465 if (temp8)
33466 delete arg8;
33467 }
33468 return NULL;
33469}
33470
33471
33472SWIGINTERN PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33473 PyObject *resultobj = 0;
33474 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33475 PyObject *arg2 = (PyObject *) 0 ;
33476 PyObject *arg3 = (PyObject *) 0 ;
33477 void *argp1 = 0 ;
33478 int res1 = 0 ;
33479 PyObject * obj0 = 0 ;
33480 PyObject * obj1 = 0 ;
33481 PyObject * obj2 = 0 ;
33482 char * kwnames[] = {
33483 (char *) "self",(char *) "self",(char *) "_class", NULL
33484 };
33485
33486 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33487 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33488 if (!SWIG_IsOK(res1)) {
33489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33490 }
33491 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33492 arg2 = obj1;
33493 arg3 = obj2;
33494 {
33495 PyThreadState* __tstate = wxPyBeginAllowThreads();
33496 (arg1)->_setCallbackInfo(arg2,arg3);
33497 wxPyEndAllowThreads(__tstate);
33498 if (PyErr_Occurred()) SWIG_fail;
33499 }
33500 resultobj = SWIG_Py_Void();
33501 return resultobj;
33502fail:
33503 return NULL;
d14a1e28
RD
33504}
33505
33506
0085ce49
RD
33507SWIGINTERN PyObject *_wrap_TreeCtrl_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33508 PyObject *resultobj = 0;
33509 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
e9d6f3a4 33510 unsigned int result;
0085ce49
RD
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_GetCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33520 }
33521 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33522 {
33523 PyThreadState* __tstate = wxPyBeginAllowThreads();
e9d6f3a4 33524 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetCount();
0085ce49
RD
33525 wxPyEndAllowThreads(__tstate);
33526 if (PyErr_Occurred()) SWIG_fail;
33527 }
e9d6f3a4 33528 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
0085ce49
RD
33529 return resultobj;
33530fail:
33531 return NULL;
d14a1e28
RD
33532}
33533
33534
0085ce49
RD
33535SWIGINTERN PyObject *_wrap_TreeCtrl_GetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33536 PyObject *resultobj = 0;
33537 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33538 unsigned int result;
33539 void *argp1 = 0 ;
33540 int res1 = 0 ;
33541 PyObject *swig_obj[1] ;
33542
33543 if (!args) SWIG_fail;
33544 swig_obj[0] = args;
33545 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33546 if (!SWIG_IsOK(res1)) {
33547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33548 }
33549 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33550 {
33551 PyThreadState* __tstate = wxPyBeginAllowThreads();
33552 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
33553 wxPyEndAllowThreads(__tstate);
33554 if (PyErr_Occurred()) SWIG_fail;
33555 }
33556 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33557 return resultobj;
33558fail:
33559 return NULL;
33560}
33561
33562
33563SWIGINTERN PyObject *_wrap_TreeCtrl_SetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33564 PyObject *resultobj = 0;
33565 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33566 unsigned int arg2 ;
33567 void *argp1 = 0 ;
33568 int res1 = 0 ;
33569 unsigned int val2 ;
33570 int ecode2 = 0 ;
33571 PyObject * obj0 = 0 ;
33572 PyObject * obj1 = 0 ;
33573 char * kwnames[] = {
33574 (char *) "self",(char *) "indent", NULL
33575 };
33576
33577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) SWIG_fail;
33578 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33579 if (!SWIG_IsOK(res1)) {
33580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33581 }
33582 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33583 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
33584 if (!SWIG_IsOK(ecode2)) {
33585 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetIndent" "', expected argument " "2"" of type '" "unsigned int""'");
33586 }
33587 arg2 = static_cast< unsigned int >(val2);
33588 {
33589 PyThreadState* __tstate = wxPyBeginAllowThreads();
33590 (arg1)->SetIndent(arg2);
33591 wxPyEndAllowThreads(__tstate);
33592 if (PyErr_Occurred()) SWIG_fail;
33593 }
33594 resultobj = SWIG_Py_Void();
33595 return resultobj;
33596fail:
33597 return NULL;
d14a1e28
RD
33598}
33599
33600
0085ce49
RD
33601SWIGINTERN PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33602 PyObject *resultobj = 0;
33603 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33604 unsigned int result;
33605 void *argp1 = 0 ;
33606 int res1 = 0 ;
33607 PyObject *swig_obj[1] ;
33608
33609 if (!args) SWIG_fail;
33610 swig_obj[0] = args;
33611 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33612 if (!SWIG_IsOK(res1)) {
33613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33614 }
33615 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33616 {
33617 PyThreadState* __tstate = wxPyBeginAllowThreads();
33618 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
33619 wxPyEndAllowThreads(__tstate);
33620 if (PyErr_Occurred()) SWIG_fail;
33621 }
33622 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33623 return resultobj;
33624fail:
33625 return NULL;
33626}
33627
33628
33629SWIGINTERN PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33630 PyObject *resultobj = 0;
33631 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33632 unsigned int arg2 ;
33633 void *argp1 = 0 ;
33634 int res1 = 0 ;
33635 unsigned int val2 ;
33636 int ecode2 = 0 ;
33637 PyObject * obj0 = 0 ;
33638 PyObject * obj1 = 0 ;
33639 char * kwnames[] = {
33640 (char *) "self",(char *) "spacing", NULL
33641 };
33642
33643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
33644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33645 if (!SWIG_IsOK(res1)) {
33646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33647 }
33648 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33649 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
33650 if (!SWIG_IsOK(ecode2)) {
33651 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "2"" of type '" "unsigned int""'");
33652 }
33653 arg2 = static_cast< unsigned int >(val2);
33654 {
33655 PyThreadState* __tstate = wxPyBeginAllowThreads();
33656 (arg1)->SetSpacing(arg2);
33657 wxPyEndAllowThreads(__tstate);
33658 if (PyErr_Occurred()) SWIG_fail;
33659 }
33660 resultobj = SWIG_Py_Void();
33661 return resultobj;
33662fail:
33663 return NULL;
d14a1e28
RD
33664}
33665
33666
0085ce49
RD
33667SWIGINTERN PyObject *_wrap_TreeCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33668 PyObject *resultobj = 0;
33669 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33670 wxImageList *result = 0 ;
33671 void *argp1 = 0 ;
33672 int res1 = 0 ;
33673 PyObject *swig_obj[1] ;
33674
33675 if (!args) SWIG_fail;
33676 swig_obj[0] = args;
33677 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33678 if (!SWIG_IsOK(res1)) {
33679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33680 }
33681 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33682 {
33683 PyThreadState* __tstate = wxPyBeginAllowThreads();
33684 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
33685 wxPyEndAllowThreads(__tstate);
33686 if (PyErr_Occurred()) SWIG_fail;
33687 }
33688 {
33689 resultobj = wxPyMake_wxObject(result, (bool)0);
33690 }
33691 return resultobj;
33692fail:
33693 return NULL;
d14a1e28
RD
33694}
33695
33696
0085ce49
RD
33697SWIGINTERN PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33698 PyObject *resultobj = 0;
33699 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33700 wxImageList *result = 0 ;
33701 void *argp1 = 0 ;
33702 int res1 = 0 ;
33703 PyObject *swig_obj[1] ;
33704
33705 if (!args) SWIG_fail;
33706 swig_obj[0] = args;
33707 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33708 if (!SWIG_IsOK(res1)) {
33709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33710 }
33711 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33712 {
33713 PyThreadState* __tstate = wxPyBeginAllowThreads();
33714 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
33715 wxPyEndAllowThreads(__tstate);
33716 if (PyErr_Occurred()) SWIG_fail;
33717 }
33718 {
33719 resultobj = wxPyMake_wxObject(result, (bool)0);
33720 }
33721 return resultobj;
33722fail:
33723 return NULL;
33724}
33725
33726
33727SWIGINTERN PyObject *_wrap_TreeCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33728 PyObject *resultobj = 0;
33729 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33730 wxImageList *arg2 = (wxImageList *) 0 ;
33731 void *argp1 = 0 ;
33732 int res1 = 0 ;
33733 void *argp2 = 0 ;
33734 int res2 = 0 ;
33735 PyObject * obj0 = 0 ;
33736 PyObject * obj1 = 0 ;
33737 char * kwnames[] = {
33738 (char *) "self",(char *) "imageList", NULL
33739 };
33740
33741 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33742 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33743 if (!SWIG_IsOK(res1)) {
33744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33745 }
33746 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33747 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
33748 if (!SWIG_IsOK(res2)) {
33749 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33750 }
33751 arg2 = reinterpret_cast< wxImageList * >(argp2);
33752 {
33753 PyThreadState* __tstate = wxPyBeginAllowThreads();
33754 (arg1)->SetImageList(arg2);
33755 wxPyEndAllowThreads(__tstate);
33756 if (PyErr_Occurred()) SWIG_fail;
33757 }
33758 resultobj = SWIG_Py_Void();
33759 return resultobj;
33760fail:
33761 return NULL;
33762}
33763
33764
33765SWIGINTERN PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33766 PyObject *resultobj = 0;
33767 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33768 wxImageList *arg2 = (wxImageList *) 0 ;
33769 void *argp1 = 0 ;
33770 int res1 = 0 ;
33771 void *argp2 = 0 ;
33772 int res2 = 0 ;
33773 PyObject * obj0 = 0 ;
33774 PyObject * obj1 = 0 ;
33775 char * kwnames[] = {
33776 (char *) "self",(char *) "imageList", NULL
33777 };
33778
33779 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33780 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33781 if (!SWIG_IsOK(res1)) {
33782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33783 }
33784 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33785 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
33786 if (!SWIG_IsOK(res2)) {
33787 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33788 }
33789 arg2 = reinterpret_cast< wxImageList * >(argp2);
33790 {
33791 PyThreadState* __tstate = wxPyBeginAllowThreads();
33792 (arg1)->SetStateImageList(arg2);
33793 wxPyEndAllowThreads(__tstate);
33794 if (PyErr_Occurred()) SWIG_fail;
33795 }
33796 resultobj = SWIG_Py_Void();
33797 return resultobj;
33798fail:
33799 return NULL;
33800}
33801
33802
33803SWIGINTERN PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33804 PyObject *resultobj = 0;
33805 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33806 wxImageList *arg2 = (wxImageList *) 0 ;
33807 void *argp1 = 0 ;
33808 int res1 = 0 ;
33809 int res2 = 0 ;
33810 PyObject * obj0 = 0 ;
33811 PyObject * obj1 = 0 ;
33812 char * kwnames[] = {
33813 (char *) "self",(char *) "imageList", NULL
33814 };
33815
33816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33818 if (!SWIG_IsOK(res1)) {
33819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33820 }
33821 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33822 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
33823 if (!SWIG_IsOK(res2)) {
33824 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33825 }
33826 {
33827 PyThreadState* __tstate = wxPyBeginAllowThreads();
33828 (arg1)->AssignImageList(arg2);
33829 wxPyEndAllowThreads(__tstate);
33830 if (PyErr_Occurred()) SWIG_fail;
33831 }
33832 resultobj = SWIG_Py_Void();
33833 return resultobj;
33834fail:
33835 return NULL;
33836}
33837
33838
33839SWIGINTERN PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33840 PyObject *resultobj = 0;
33841 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33842 wxImageList *arg2 = (wxImageList *) 0 ;
33843 void *argp1 = 0 ;
33844 int res1 = 0 ;
33845 int res2 = 0 ;
33846 PyObject * obj0 = 0 ;
33847 PyObject * obj1 = 0 ;
33848 char * kwnames[] = {
33849 (char *) "self",(char *) "imageList", NULL
33850 };
33851
33852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33853 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33854 if (!SWIG_IsOK(res1)) {
33855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33856 }
33857 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33858 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
33859 if (!SWIG_IsOK(res2)) {
33860 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33861 }
33862 {
33863 PyThreadState* __tstate = wxPyBeginAllowThreads();
33864 (arg1)->AssignStateImageList(arg2);
33865 wxPyEndAllowThreads(__tstate);
33866 if (PyErr_Occurred()) SWIG_fail;
33867 }
33868 resultobj = SWIG_Py_Void();
33869 return resultobj;
33870fail:
33871 return NULL;
33872}
33873
33874
33875SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33876 PyObject *resultobj = 0;
33877 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33878 wxTreeItemId *arg2 = 0 ;
33879 wxString result;
33880 void *argp1 = 0 ;
33881 int res1 = 0 ;
33882 void *argp2 = 0 ;
33883 int res2 = 0 ;
33884 PyObject * obj0 = 0 ;
33885 PyObject * obj1 = 0 ;
33886 char * kwnames[] = {
33887 (char *) "self",(char *) "item", NULL
33888 };
33889
33890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
33891 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33892 if (!SWIG_IsOK(res1)) {
33893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33894 }
33895 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33896 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33897 if (!SWIG_IsOK(res2)) {
33898 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33899 }
33900 if (!argp2) {
33901 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33902 }
33903 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33904 {
33905 PyThreadState* __tstate = wxPyBeginAllowThreads();
33906 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
33907 wxPyEndAllowThreads(__tstate);
33908 if (PyErr_Occurred()) SWIG_fail;
33909 }
33910 {
d14a1e28 33911#if wxUSE_UNICODE
0085ce49 33912 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d14a1e28 33913#else
0085ce49 33914 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d14a1e28 33915#endif
0085ce49
RD
33916 }
33917 return resultobj;
33918fail:
33919 return NULL;
33920}
33921
33922
33923SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33924 PyObject *resultobj = 0;
33925 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33926 wxTreeItemId *arg2 = 0 ;
33927 wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
33928 int result;
33929 void *argp1 = 0 ;
33930 int res1 = 0 ;
33931 void *argp2 = 0 ;
33932 int res2 = 0 ;
33933 int val3 ;
33934 int ecode3 = 0 ;
33935 PyObject * obj0 = 0 ;
33936 PyObject * obj1 = 0 ;
33937 PyObject * obj2 = 0 ;
33938 char * kwnames[] = {
33939 (char *) "self",(char *) "item",(char *) "which", NULL
33940 };
33941
33942 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33943 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33944 if (!SWIG_IsOK(res1)) {
33945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33946 }
33947 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33948 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33949 if (!SWIG_IsOK(res2)) {
33950 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33951 }
33952 if (!argp2) {
33953 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33954 }
33955 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33956 if (obj2) {
33957 ecode3 = SWIG_AsVal_int(obj2, &val3);
33958 if (!SWIG_IsOK(ecode3)) {
33959 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "3"" of type '" "wxTreeItemIcon""'");
33960 }
33961 arg3 = static_cast< wxTreeItemIcon >(val3);
33962 }
33963 {
33964 PyThreadState* __tstate = wxPyBeginAllowThreads();
33965 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,arg3);
33966 wxPyEndAllowThreads(__tstate);
33967 if (PyErr_Occurred()) SWIG_fail;
33968 }
33969 resultobj = SWIG_From_int(static_cast< int >(result));
33970 return resultobj;
33971fail:
33972 return NULL;
33973}
33974
33975
33976SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33977 PyObject *resultobj = 0;
33978 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33979 wxTreeItemId *arg2 = 0 ;
33980 wxPyTreeItemData *result = 0 ;
33981 void *argp1 = 0 ;
33982 int res1 = 0 ;
33983 void *argp2 = 0 ;
33984 int res2 = 0 ;
33985 PyObject * obj0 = 0 ;
33986 PyObject * obj1 = 0 ;
33987 char * kwnames[] = {
33988 (char *) "self",(char *) "item", NULL
33989 };
33990
33991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
33992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33993 if (!SWIG_IsOK(res1)) {
33994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33995 }
33996 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33997 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33998 if (!SWIG_IsOK(res2)) {
33999 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34000 }
34001 if (!argp2) {
34002 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34003 }
34004 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34005 {
34006 PyThreadState* __tstate = wxPyBeginAllowThreads();
34007 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
34008 wxPyEndAllowThreads(__tstate);
34009 if (PyErr_Occurred()) SWIG_fail;
34010 }
34011 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
34012 return resultobj;
34013fail:
34014 return NULL;
34015}
34016
34017
34018SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34019 PyObject *resultobj = 0;
34020 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34021 wxTreeItemId *arg2 = 0 ;
34022 PyObject *result = 0 ;
34023 void *argp1 = 0 ;
34024 int res1 = 0 ;
34025 void *argp2 = 0 ;
34026 int res2 = 0 ;
34027 PyObject * obj0 = 0 ;
34028 PyObject * obj1 = 0 ;
34029 char * kwnames[] = {
34030 (char *) "self",(char *) "item", NULL
34031 };
34032
34033 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) SWIG_fail;
34034 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34035 if (!SWIG_IsOK(res1)) {
34036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34037 }
34038 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34039 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34040 if (!SWIG_IsOK(res2)) {
34041 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34042 }
34043 if (!argp2) {
34044 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34045 }
34046 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34047 {
34048 PyThreadState* __tstate = wxPyBeginAllowThreads();
34049 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
34050 wxPyEndAllowThreads(__tstate);
34051 if (PyErr_Occurred()) SWIG_fail;
34052 }
34053 resultobj = result;
34054 return resultobj;
34055fail:
34056 return NULL;
34057}
34058
34059
34060SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34061 PyObject *resultobj = 0;
34062 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34063 wxTreeItemId *arg2 = 0 ;
34064 wxColour result;
34065 void *argp1 = 0 ;
34066 int res1 = 0 ;
34067 void *argp2 = 0 ;
34068 int res2 = 0 ;
34069 PyObject * obj0 = 0 ;
34070 PyObject * obj1 = 0 ;
34071 char * kwnames[] = {
34072 (char *) "self",(char *) "item", NULL
34073 };
34074
34075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) 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_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
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_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34084 }
34085 if (!argp2) {
34086 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34087 }
34088 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34089 {
34090 PyThreadState* __tstate = wxPyBeginAllowThreads();
34091 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
34092 wxPyEndAllowThreads(__tstate);
34093 if (PyErr_Occurred()) SWIG_fail;
34094 }
34095 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34096 return resultobj;
34097fail:
34098 return NULL;
34099}
34100
34101
34102SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34103 PyObject *resultobj = 0;
34104 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34105 wxTreeItemId *arg2 = 0 ;
34106 wxColour result;
34107 void *argp1 = 0 ;
34108 int res1 = 0 ;
34109 void *argp2 = 0 ;
34110 int res2 = 0 ;
34111 PyObject * obj0 = 0 ;
34112 PyObject * obj1 = 0 ;
34113 char * kwnames[] = {
34114 (char *) "self",(char *) "item", NULL
34115 };
34116
34117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
34118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34119 if (!SWIG_IsOK(res1)) {
34120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34121 }
34122 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34123 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34124 if (!SWIG_IsOK(res2)) {
34125 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34126 }
34127 if (!argp2) {
34128 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34129 }
34130 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34131 {
34132 PyThreadState* __tstate = wxPyBeginAllowThreads();
34133 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
34134 wxPyEndAllowThreads(__tstate);
34135 if (PyErr_Occurred()) SWIG_fail;
34136 }
34137 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34138 return resultobj;
34139fail:
34140 return NULL;
34141}
34142
34143
34144SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34145 PyObject *resultobj = 0;
34146 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34147 wxTreeItemId *arg2 = 0 ;
34148 wxFont result;
34149 void *argp1 = 0 ;
34150 int res1 = 0 ;
34151 void *argp2 = 0 ;
34152 int res2 = 0 ;
34153 PyObject * obj0 = 0 ;
34154 PyObject * obj1 = 0 ;
34155 char * kwnames[] = {
34156 (char *) "self",(char *) "item", NULL
34157 };
34158
34159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
34160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34161 if (!SWIG_IsOK(res1)) {
34162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34163 }
34164 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34165 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34166 if (!SWIG_IsOK(res2)) {
34167 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34168 }
34169 if (!argp2) {
34170 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34171 }
34172 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34173 {
34174 PyThreadState* __tstate = wxPyBeginAllowThreads();
34175 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
34176 wxPyEndAllowThreads(__tstate);
34177 if (PyErr_Occurred()) SWIG_fail;
34178 }
34179 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
34180 return resultobj;
34181fail:
34182 return NULL;
34183}
34184
34185
34186SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34187 PyObject *resultobj = 0;
34188 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34189 wxTreeItemId *arg2 = 0 ;
34190 wxString *arg3 = 0 ;
34191 void *argp1 = 0 ;
34192 int res1 = 0 ;
34193 void *argp2 = 0 ;
34194 int res2 = 0 ;
34195 bool temp3 = false ;
34196 PyObject * obj0 = 0 ;
34197 PyObject * obj1 = 0 ;
34198 PyObject * obj2 = 0 ;
34199 char * kwnames[] = {
34200 (char *) "self",(char *) "item",(char *) "text", NULL
34201 };
34202
34203 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34204 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34205 if (!SWIG_IsOK(res1)) {
34206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34207 }
34208 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34209 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34210 if (!SWIG_IsOK(res2)) {
34211 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34212 }
34213 if (!argp2) {
34214 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34215 }
34216 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34217 {
34218 arg3 = wxString_in_helper(obj2);
34219 if (arg3 == NULL) SWIG_fail;
34220 temp3 = true;
34221 }
34222 {
34223 PyThreadState* __tstate = wxPyBeginAllowThreads();
34224 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
34225 wxPyEndAllowThreads(__tstate);
34226 if (PyErr_Occurred()) SWIG_fail;
34227 }
34228 resultobj = SWIG_Py_Void();
34229 {
34230 if (temp3)
34231 delete arg3;
34232 }
34233 return resultobj;
34234fail:
34235 {
34236 if (temp3)
34237 delete arg3;
34238 }
34239 return NULL;
34240}
34241
34242
34243SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34244 PyObject *resultobj = 0;
34245 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34246 wxTreeItemId *arg2 = 0 ;
34247 int arg3 ;
34248 wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34249 void *argp1 = 0 ;
34250 int res1 = 0 ;
34251 void *argp2 = 0 ;
34252 int res2 = 0 ;
34253 int val3 ;
34254 int ecode3 = 0 ;
34255 int val4 ;
34256 int ecode4 = 0 ;
34257 PyObject * obj0 = 0 ;
34258 PyObject * obj1 = 0 ;
34259 PyObject * obj2 = 0 ;
34260 PyObject * obj3 = 0 ;
34261 char * kwnames[] = {
34262 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
34263 };
34264
34265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34266 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34267 if (!SWIG_IsOK(res1)) {
34268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34269 }
34270 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34271 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34272 if (!SWIG_IsOK(res2)) {
34273 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34274 }
34275 if (!argp2) {
34276 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34277 }
34278 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34279 ecode3 = SWIG_AsVal_int(obj2, &val3);
34280 if (!SWIG_IsOK(ecode3)) {
34281 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
34282 }
34283 arg3 = static_cast< int >(val3);
34284 if (obj3) {
34285 ecode4 = SWIG_AsVal_int(obj3, &val4);
34286 if (!SWIG_IsOK(ecode4)) {
34287 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "4"" of type '" "wxTreeItemIcon""'");
34288 }
34289 arg4 = static_cast< wxTreeItemIcon >(val4);
34290 }
34291 {
34292 PyThreadState* __tstate = wxPyBeginAllowThreads();
34293 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,arg4);
34294 wxPyEndAllowThreads(__tstate);
34295 if (PyErr_Occurred()) SWIG_fail;
34296 }
34297 resultobj = SWIG_Py_Void();
34298 return resultobj;
34299fail:
34300 return NULL;
34301}
34302
34303
34304SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34305 PyObject *resultobj = 0;
34306 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34307 wxTreeItemId *arg2 = 0 ;
34308 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
34309 void *argp1 = 0 ;
34310 int res1 = 0 ;
34311 void *argp2 = 0 ;
34312 int res2 = 0 ;
34313 int res3 = 0 ;
34314 PyObject * obj0 = 0 ;
34315 PyObject * obj1 = 0 ;
34316 PyObject * obj2 = 0 ;
34317 char * kwnames[] = {
34318 (char *) "self",(char *) "item",(char *) "data", NULL
34319 };
34320
34321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34323 if (!SWIG_IsOK(res1)) {
34324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34325 }
34326 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34327 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34328 if (!SWIG_IsOK(res2)) {
34329 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34330 }
34331 if (!argp2) {
34332 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34333 }
34334 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34335 res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
34336 if (!SWIG_IsOK(res3)) {
34337 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemData" "', expected argument " "3"" of type '" "wxPyTreeItemData *""'");
34338 }
34339 {
34340 PyThreadState* __tstate = wxPyBeginAllowThreads();
34341 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
34342 wxPyEndAllowThreads(__tstate);
34343 if (PyErr_Occurred()) SWIG_fail;
34344 }
34345 resultobj = SWIG_Py_Void();
34346 return resultobj;
34347fail:
34348 return NULL;
34349}
34350
34351
34352SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34353 PyObject *resultobj = 0;
34354 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34355 wxTreeItemId *arg2 = 0 ;
34356 PyObject *arg3 = (PyObject *) 0 ;
34357 void *argp1 = 0 ;
34358 int res1 = 0 ;
34359 void *argp2 = 0 ;
34360 int res2 = 0 ;
34361 PyObject * obj0 = 0 ;
34362 PyObject * obj1 = 0 ;
34363 PyObject * obj2 = 0 ;
34364 char * kwnames[] = {
34365 (char *) "self",(char *) "item",(char *) "obj", NULL
34366 };
34367
34368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34370 if (!SWIG_IsOK(res1)) {
34371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34372 }
34373 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34374 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34375 if (!SWIG_IsOK(res2)) {
34376 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34377 }
34378 if (!argp2) {
34379 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34380 }
34381 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34382 arg3 = obj2;
34383 {
34384 PyThreadState* __tstate = wxPyBeginAllowThreads();
34385 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
34386 wxPyEndAllowThreads(__tstate);
34387 if (PyErr_Occurred()) SWIG_fail;
34388 }
34389 resultobj = SWIG_Py_Void();
34390 return resultobj;
34391fail:
34392 return NULL;
34393}
34394
34395
34396SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34397 PyObject *resultobj = 0;
34398 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34399 wxTreeItemId *arg2 = 0 ;
34400 bool arg3 = (bool) true ;
34401 void *argp1 = 0 ;
34402 int res1 = 0 ;
34403 void *argp2 = 0 ;
34404 int res2 = 0 ;
34405 bool val3 ;
34406 int ecode3 = 0 ;
34407 PyObject * obj0 = 0 ;
34408 PyObject * obj1 = 0 ;
34409 PyObject * obj2 = 0 ;
34410 char * kwnames[] = {
34411 (char *) "self",(char *) "item",(char *) "has", NULL
34412 };
34413
34414 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34415 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34416 if (!SWIG_IsOK(res1)) {
34417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34418 }
34419 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34420 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34421 if (!SWIG_IsOK(res2)) {
34422 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34423 }
34424 if (!argp2) {
34425 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34426 }
34427 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34428 if (obj2) {
34429 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34430 if (!SWIG_IsOK(ecode3)) {
34431 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "3"" of type '" "bool""'");
34432 }
34433 arg3 = static_cast< bool >(val3);
34434 }
34435 {
34436 PyThreadState* __tstate = wxPyBeginAllowThreads();
34437 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
34438 wxPyEndAllowThreads(__tstate);
34439 if (PyErr_Occurred()) SWIG_fail;
34440 }
34441 resultobj = SWIG_Py_Void();
34442 return resultobj;
34443fail:
34444 return NULL;
34445}
34446
34447
34448SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34449 PyObject *resultobj = 0;
34450 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34451 wxTreeItemId *arg2 = 0 ;
34452 bool arg3 = (bool) true ;
34453 void *argp1 = 0 ;
34454 int res1 = 0 ;
34455 void *argp2 = 0 ;
34456 int res2 = 0 ;
34457 bool val3 ;
34458 int ecode3 = 0 ;
34459 PyObject * obj0 = 0 ;
34460 PyObject * obj1 = 0 ;
34461 PyObject * obj2 = 0 ;
34462 char * kwnames[] = {
34463 (char *) "self",(char *) "item",(char *) "bold", NULL
34464 };
34465
34466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34468 if (!SWIG_IsOK(res1)) {
34469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34470 }
34471 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34472 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34473 if (!SWIG_IsOK(res2)) {
34474 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34475 }
34476 if (!argp2) {
34477 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34478 }
34479 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34480 if (obj2) {
34481 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34482 if (!SWIG_IsOK(ecode3)) {
34483 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "3"" of type '" "bool""'");
34484 }
34485 arg3 = static_cast< bool >(val3);
34486 }
34487 {
34488 PyThreadState* __tstate = wxPyBeginAllowThreads();
34489 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
34490 wxPyEndAllowThreads(__tstate);
34491 if (PyErr_Occurred()) SWIG_fail;
34492 }
34493 resultobj = SWIG_Py_Void();
34494 return resultobj;
34495fail:
34496 return NULL;
34497}
34498
34499
34500SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34501 PyObject *resultobj = 0;
34502 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34503 wxTreeItemId *arg2 = 0 ;
34504 bool arg3 = (bool) true ;
34505 void *argp1 = 0 ;
34506 int res1 = 0 ;
34507 void *argp2 = 0 ;
34508 int res2 = 0 ;
34509 bool val3 ;
34510 int ecode3 = 0 ;
34511 PyObject * obj0 = 0 ;
34512 PyObject * obj1 = 0 ;
34513 PyObject * obj2 = 0 ;
34514 char * kwnames[] = {
34515 (char *) "self",(char *) "item",(char *) "highlight", NULL
34516 };
34517
34518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34520 if (!SWIG_IsOK(res1)) {
34521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34522 }
34523 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34524 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34525 if (!SWIG_IsOK(res2)) {
34526 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34527 }
34528 if (!argp2) {
34529 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34530 }
34531 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34532 if (obj2) {
34533 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34534 if (!SWIG_IsOK(ecode3)) {
34535 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "3"" of type '" "bool""'");
34536 }
34537 arg3 = static_cast< bool >(val3);
34538 }
34539 {
34540 PyThreadState* __tstate = wxPyBeginAllowThreads();
34541 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
34542 wxPyEndAllowThreads(__tstate);
34543 if (PyErr_Occurred()) SWIG_fail;
34544 }
34545 resultobj = SWIG_Py_Void();
34546 return resultobj;
34547fail:
34548 return NULL;
34549}
34550
34551
34552SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34553 PyObject *resultobj = 0;
34554 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34555 wxTreeItemId *arg2 = 0 ;
34556 wxColour *arg3 = 0 ;
34557 void *argp1 = 0 ;
34558 int res1 = 0 ;
34559 void *argp2 = 0 ;
34560 int res2 = 0 ;
34561 wxColour temp3 ;
34562 PyObject * obj0 = 0 ;
34563 PyObject * obj1 = 0 ;
34564 PyObject * obj2 = 0 ;
34565 char * kwnames[] = {
34566 (char *) "self",(char *) "item",(char *) "col", NULL
34567 };
34568
34569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34571 if (!SWIG_IsOK(res1)) {
34572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34573 }
34574 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34575 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34576 if (!SWIG_IsOK(res2)) {
34577 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34578 }
34579 if (!argp2) {
34580 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34581 }
34582 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34583 {
34584 arg3 = &temp3;
34585 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34586 }
34587 {
34588 PyThreadState* __tstate = wxPyBeginAllowThreads();
34589 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
34590 wxPyEndAllowThreads(__tstate);
34591 if (PyErr_Occurred()) SWIG_fail;
34592 }
34593 resultobj = SWIG_Py_Void();
34594 return resultobj;
34595fail:
34596 return NULL;
34597}
34598
34599
34600SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34601 PyObject *resultobj = 0;
34602 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34603 wxTreeItemId *arg2 = 0 ;
34604 wxColour *arg3 = 0 ;
34605 void *argp1 = 0 ;
34606 int res1 = 0 ;
34607 void *argp2 = 0 ;
34608 int res2 = 0 ;
34609 wxColour temp3 ;
34610 PyObject * obj0 = 0 ;
34611 PyObject * obj1 = 0 ;
34612 PyObject * obj2 = 0 ;
34613 char * kwnames[] = {
34614 (char *) "self",(char *) "item",(char *) "col", NULL
34615 };
34616
34617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34619 if (!SWIG_IsOK(res1)) {
34620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34621 }
34622 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34623 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34624 if (!SWIG_IsOK(res2)) {
34625 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34626 }
34627 if (!argp2) {
34628 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34629 }
34630 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34631 {
34632 arg3 = &temp3;
34633 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34634 }
34635 {
34636 PyThreadState* __tstate = wxPyBeginAllowThreads();
34637 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
34638 wxPyEndAllowThreads(__tstate);
34639 if (PyErr_Occurred()) SWIG_fail;
34640 }
34641 resultobj = SWIG_Py_Void();
34642 return resultobj;
34643fail:
34644 return NULL;
34645}
34646
34647
34648SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34649 PyObject *resultobj = 0;
34650 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34651 wxTreeItemId *arg2 = 0 ;
34652 wxFont *arg3 = 0 ;
34653 void *argp1 = 0 ;
34654 int res1 = 0 ;
34655 void *argp2 = 0 ;
34656 int res2 = 0 ;
34657 void *argp3 = 0 ;
34658 int res3 = 0 ;
34659 PyObject * obj0 = 0 ;
34660 PyObject * obj1 = 0 ;
34661 PyObject * obj2 = 0 ;
34662 char * kwnames[] = {
34663 (char *) "self",(char *) "item",(char *) "font", NULL
34664 };
34665
34666 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34668 if (!SWIG_IsOK(res1)) {
34669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34670 }
34671 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34672 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34673 if (!SWIG_IsOK(res2)) {
34674 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34675 }
34676 if (!argp2) {
34677 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34678 }
34679 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34680 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
34681 if (!SWIG_IsOK(res3)) {
34682 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
34683 }
34684 if (!argp3) {
34685 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
34686 }
34687 arg3 = reinterpret_cast< wxFont * >(argp3);
34688 {
34689 PyThreadState* __tstate = wxPyBeginAllowThreads();
34690 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
34691 wxPyEndAllowThreads(__tstate);
34692 if (PyErr_Occurred()) SWIG_fail;
34693 }
34694 resultobj = SWIG_Py_Void();
34695 return resultobj;
34696fail:
34697 return NULL;
34698}
34699
34700
34701SWIGINTERN PyObject *_wrap_TreeCtrl_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34702 PyObject *resultobj = 0;
34703 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34704 wxTreeItemId *arg2 = 0 ;
34705 bool result;
34706 void *argp1 = 0 ;
34707 int res1 = 0 ;
34708 void *argp2 = 0 ;
34709 int res2 = 0 ;
34710 PyObject * obj0 = 0 ;
34711 PyObject * obj1 = 0 ;
34712 char * kwnames[] = {
34713 (char *) "self",(char *) "item", NULL
34714 };
34715
34716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail;
34717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34718 if (!SWIG_IsOK(res1)) {
34719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34720 }
34721 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34722 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34723 if (!SWIG_IsOK(res2)) {
34724 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34725 }
34726 if (!argp2) {
34727 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34728 }
34729 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34730 {
34731 PyThreadState* __tstate = wxPyBeginAllowThreads();
34732 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
34733 wxPyEndAllowThreads(__tstate);
34734 if (PyErr_Occurred()) SWIG_fail;
34735 }
34736 {
34737 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34738 }
34739 return resultobj;
34740fail:
34741 return NULL;
34742}
34743
34744
34745SWIGINTERN PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34746 PyObject *resultobj = 0;
34747 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34748 wxTreeItemId *arg2 = 0 ;
34749 bool result;
34750 void *argp1 = 0 ;
34751 int res1 = 0 ;
34752 void *argp2 = 0 ;
34753 int res2 = 0 ;
34754 PyObject * obj0 = 0 ;
34755 PyObject * obj1 = 0 ;
34756 char * kwnames[] = {
34757 (char *) "self",(char *) "item", NULL
34758 };
34759
34760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) SWIG_fail;
34761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34762 if (!SWIG_IsOK(res1)) {
34763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34764 }
34765 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34766 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34767 if (!SWIG_IsOK(res2)) {
34768 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34769 }
34770 if (!argp2) {
34771 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34772 }
34773 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34774 {
34775 PyThreadState* __tstate = wxPyBeginAllowThreads();
34776 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
34777 wxPyEndAllowThreads(__tstate);
34778 if (PyErr_Occurred()) SWIG_fail;
34779 }
34780 {
34781 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34782 }
34783 return resultobj;
34784fail:
34785 return NULL;
34786}
34787
34788
34789SWIGINTERN PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34790 PyObject *resultobj = 0;
34791 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34792 wxTreeItemId *arg2 = 0 ;
34793 bool result;
34794 void *argp1 = 0 ;
34795 int res1 = 0 ;
34796 void *argp2 = 0 ;
34797 int res2 = 0 ;
34798 PyObject * obj0 = 0 ;
34799 PyObject * obj1 = 0 ;
34800 char * kwnames[] = {
34801 (char *) "self",(char *) "item", NULL
34802 };
34803
34804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
34805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34806 if (!SWIG_IsOK(res1)) {
34807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34808 }
34809 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34810 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34811 if (!SWIG_IsOK(res2)) {
34812 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34813 }
34814 if (!argp2) {
34815 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34816 }
34817 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34818 {
34819 PyThreadState* __tstate = wxPyBeginAllowThreads();
34820 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
34821 wxPyEndAllowThreads(__tstate);
34822 if (PyErr_Occurred()) SWIG_fail;
34823 }
34824 {
34825 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34826 }
34827 return resultobj;
34828fail:
34829 return NULL;
34830}
34831
34832
34833SWIGINTERN PyObject *_wrap_TreeCtrl_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34834 PyObject *resultobj = 0;
34835 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34836 wxTreeItemId *arg2 = 0 ;
34837 bool result;
34838 void *argp1 = 0 ;
34839 int res1 = 0 ;
34840 void *argp2 = 0 ;
34841 int res2 = 0 ;
34842 PyObject * obj0 = 0 ;
34843 PyObject * obj1 = 0 ;
34844 char * kwnames[] = {
34845 (char *) "self",(char *) "item", NULL
34846 };
34847
34848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
34849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34850 if (!SWIG_IsOK(res1)) {
34851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsSelected" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34852 }
34853 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34854 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34855 if (!SWIG_IsOK(res2)) {
34856 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34857 }
34858 if (!argp2) {
34859 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34860 }
34861 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34862 {
34863 PyThreadState* __tstate = wxPyBeginAllowThreads();
34864 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
34865 wxPyEndAllowThreads(__tstate);
34866 if (PyErr_Occurred()) SWIG_fail;
34867 }
34868 {
34869 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34870 }
34871 return resultobj;
34872fail:
34873 return NULL;
34874}
34875
34876
34877SWIGINTERN PyObject *_wrap_TreeCtrl_IsBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34878 PyObject *resultobj = 0;
34879 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34880 wxTreeItemId *arg2 = 0 ;
34881 bool result;
34882 void *argp1 = 0 ;
34883 int res1 = 0 ;
34884 void *argp2 = 0 ;
34885 int res2 = 0 ;
34886 PyObject * obj0 = 0 ;
34887 PyObject * obj1 = 0 ;
34888 char * kwnames[] = {
34889 (char *) "self",(char *) "item", NULL
34890 };
34891
34892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) SWIG_fail;
34893 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34894 if (!SWIG_IsOK(res1)) {
34895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34896 }
34897 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34898 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34899 if (!SWIG_IsOK(res2)) {
34900 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34901 }
34902 if (!argp2) {
34903 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34904 }
34905 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34906 {
34907 PyThreadState* __tstate = wxPyBeginAllowThreads();
34908 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
34909 wxPyEndAllowThreads(__tstate);
34910 if (PyErr_Occurred()) SWIG_fail;
34911 }
34912 {
34913 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34914 }
34915 return resultobj;
34916fail:
34917 return NULL;
34918}
34919
34920
34921SWIGINTERN PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34922 PyObject *resultobj = 0;
34923 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34924 wxTreeItemId *arg2 = 0 ;
34925 bool arg3 = (bool) true ;
34926 size_t result;
34927 void *argp1 = 0 ;
34928 int res1 = 0 ;
34929 void *argp2 = 0 ;
34930 int res2 = 0 ;
34931 bool val3 ;
34932 int ecode3 = 0 ;
34933 PyObject * obj0 = 0 ;
34934 PyObject * obj1 = 0 ;
34935 PyObject * obj2 = 0 ;
34936 char * kwnames[] = {
34937 (char *) "self",(char *) "item",(char *) "recursively", NULL
34938 };
34939
34940 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34941 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34942 if (!SWIG_IsOK(res1)) {
34943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34944 }
34945 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34946 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34947 if (!SWIG_IsOK(res2)) {
34948 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34949 }
34950 if (!argp2) {
34951 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34952 }
34953 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34954 if (obj2) {
34955 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34956 if (!SWIG_IsOK(ecode3)) {
34957 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "3"" of type '" "bool""'");
34958 }
34959 arg3 = static_cast< bool >(val3);
34960 }
34961 {
34962 PyThreadState* __tstate = wxPyBeginAllowThreads();
34963 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
34964 wxPyEndAllowThreads(__tstate);
34965 if (PyErr_Occurred()) SWIG_fail;
34966 }
34967 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
34968 return resultobj;
34969fail:
34970 return NULL;
d14a1e28
RD
34971}
34972
34973
0085ce49
RD
34974SWIGINTERN PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34975 PyObject *resultobj = 0;
34976 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34977 wxTreeItemId result;
34978 void *argp1 = 0 ;
34979 int res1 = 0 ;
34980 PyObject *swig_obj[1] ;
34981
34982 if (!args) SWIG_fail;
34983 swig_obj[0] = args;
34984 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34985 if (!SWIG_IsOK(res1)) {
34986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetRootItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34987 }
34988 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34989 {
34990 PyThreadState* __tstate = wxPyBeginAllowThreads();
34991 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
34992 wxPyEndAllowThreads(__tstate);
34993 if (PyErr_Occurred()) SWIG_fail;
34994 }
34995 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
34996 return resultobj;
34997fail:
34998 return NULL;
d14a1e28
RD
34999}
35000
35001
0085ce49
RD
35002SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35003 PyObject *resultobj = 0;
35004 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35005 wxTreeItemId result;
35006 void *argp1 = 0 ;
35007 int res1 = 0 ;
35008 PyObject *swig_obj[1] ;
35009
35010 if (!args) SWIG_fail;
35011 swig_obj[0] = args;
35012 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35013 if (!SWIG_IsOK(res1)) {
35014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35015 }
35016 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35017 {
35018 PyThreadState* __tstate = wxPyBeginAllowThreads();
35019 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
35020 wxPyEndAllowThreads(__tstate);
35021 if (PyErr_Occurred()) SWIG_fail;
35022 }
35023 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35024 return resultobj;
35025fail:
35026 return NULL;
d14a1e28
RD
35027}
35028
35029
0085ce49
RD
35030SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35031 PyObject *resultobj = 0;
35032 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35033 PyObject *result = 0 ;
35034 void *argp1 = 0 ;
35035 int res1 = 0 ;
35036 PyObject *swig_obj[1] ;
35037
35038 if (!args) SWIG_fail;
35039 swig_obj[0] = args;
35040 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35041 if (!SWIG_IsOK(res1)) {
35042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelections" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35043 }
35044 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35045 {
35046 PyThreadState* __tstate = wxPyBeginAllowThreads();
35047 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
35048 wxPyEndAllowThreads(__tstate);
35049 if (PyErr_Occurred()) SWIG_fail;
35050 }
35051 resultobj = result;
35052 return resultobj;
35053fail:
35054 return NULL;
35055}
35056
35057
35058SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35059 PyObject *resultobj = 0;
35060 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35061 wxTreeItemId *arg2 = 0 ;
35062 wxTreeItemId result;
35063 void *argp1 = 0 ;
35064 int res1 = 0 ;
35065 void *argp2 = 0 ;
35066 int res2 = 0 ;
35067 PyObject * obj0 = 0 ;
35068 PyObject * obj1 = 0 ;
35069 char * kwnames[] = {
35070 (char *) "self",(char *) "item", NULL
35071 };
35072
35073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) SWIG_fail;
35074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35075 if (!SWIG_IsOK(res1)) {
35076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35077 }
35078 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35079 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35080 if (!SWIG_IsOK(res2)) {
35081 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35082 }
35083 if (!argp2) {
35084 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35085 }
35086 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35087 {
35088 PyThreadState* __tstate = wxPyBeginAllowThreads();
35089 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
35090 wxPyEndAllowThreads(__tstate);
35091 if (PyErr_Occurred()) SWIG_fail;
35092 }
35093 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35094 return resultobj;
35095fail:
35096 return NULL;
35097}
35098
35099
35100SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35101 PyObject *resultobj = 0;
35102 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35103 wxTreeItemId *arg2 = 0 ;
35104 PyObject *result = 0 ;
35105 void *argp1 = 0 ;
35106 int res1 = 0 ;
35107 void *argp2 = 0 ;
35108 int res2 = 0 ;
35109 PyObject * obj0 = 0 ;
35110 PyObject * obj1 = 0 ;
35111 char * kwnames[] = {
35112 (char *) "self",(char *) "item", NULL
35113 };
35114
35115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) SWIG_fail;
35116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35117 if (!SWIG_IsOK(res1)) {
35118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35119 }
35120 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35121 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35122 if (!SWIG_IsOK(res2)) {
35123 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35124 }
35125 if (!argp2) {
35126 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35127 }
35128 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35129 {
35130 PyThreadState* __tstate = wxPyBeginAllowThreads();
35131 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
35132 wxPyEndAllowThreads(__tstate);
35133 if (PyErr_Occurred()) SWIG_fail;
35134 }
35135 resultobj = result;
35136 return resultobj;
35137fail:
35138 return NULL;
35139}
35140
35141
35142SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35143 PyObject *resultobj = 0;
35144 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35145 wxTreeItemId *arg2 = 0 ;
35146 void *arg3 = (void *) 0 ;
35147 PyObject *result = 0 ;
35148 void *argp1 = 0 ;
35149 int res1 = 0 ;
35150 void *argp2 = 0 ;
35151 int res2 = 0 ;
35152 int res3 ;
35153 PyObject * obj0 = 0 ;
35154 PyObject * obj1 = 0 ;
35155 PyObject * obj2 = 0 ;
35156 char * kwnames[] = {
35157 (char *) "self",(char *) "item",(char *) "cookie", NULL
35158 };
35159
35160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35162 if (!SWIG_IsOK(res1)) {
35163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35164 }
35165 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35166 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35167 if (!SWIG_IsOK(res2)) {
35168 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35169 }
35170 if (!argp2) {
35171 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35172 }
35173 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35174 res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
35175 if (!SWIG_IsOK(res3)) {
35176 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "3"" of type '" "void *""'");
35177 }
35178 {
35179 PyThreadState* __tstate = wxPyBeginAllowThreads();
35180 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
35181 wxPyEndAllowThreads(__tstate);
35182 if (PyErr_Occurred()) SWIG_fail;
35183 }
35184 resultobj = result;
35185 return resultobj;
35186fail:
35187 return NULL;
35188}
35189
35190
35191SWIGINTERN PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35192 PyObject *resultobj = 0;
35193 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35194 wxTreeItemId *arg2 = 0 ;
35195 wxTreeItemId result;
35196 void *argp1 = 0 ;
35197 int res1 = 0 ;
35198 void *argp2 = 0 ;
35199 int res2 = 0 ;
35200 PyObject * obj0 = 0 ;
35201 PyObject * obj1 = 0 ;
35202 char * kwnames[] = {
35203 (char *) "self",(char *) "item", NULL
35204 };
35205
35206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) SWIG_fail;
35207 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35208 if (!SWIG_IsOK(res1)) {
35209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35210 }
35211 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35212 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35213 if (!SWIG_IsOK(res2)) {
35214 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35215 }
35216 if (!argp2) {
35217 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35218 }
35219 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35220 {
35221 PyThreadState* __tstate = wxPyBeginAllowThreads();
35222 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
35223 wxPyEndAllowThreads(__tstate);
35224 if (PyErr_Occurred()) SWIG_fail;
35225 }
35226 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35227 return resultobj;
35228fail:
35229 return NULL;
35230}
35231
35232
35233SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35234 PyObject *resultobj = 0;
35235 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35236 wxTreeItemId *arg2 = 0 ;
35237 wxTreeItemId result;
35238 void *argp1 = 0 ;
35239 int res1 = 0 ;
35240 void *argp2 = 0 ;
35241 int res2 = 0 ;
35242 PyObject * obj0 = 0 ;
35243 PyObject * obj1 = 0 ;
35244 char * kwnames[] = {
35245 (char *) "self",(char *) "item", NULL
35246 };
35247
35248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35249 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35250 if (!SWIG_IsOK(res1)) {
35251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35252 }
35253 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35254 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35255 if (!SWIG_IsOK(res2)) {
35256 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35257 }
35258 if (!argp2) {
35259 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35260 }
35261 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35262 {
35263 PyThreadState* __tstate = wxPyBeginAllowThreads();
35264 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
35265 wxPyEndAllowThreads(__tstate);
35266 if (PyErr_Occurred()) SWIG_fail;
35267 }
35268 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35269 return resultobj;
35270fail:
35271 return NULL;
35272}
35273
35274
35275SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35276 PyObject *resultobj = 0;
35277 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35278 wxTreeItemId *arg2 = 0 ;
35279 wxTreeItemId result;
35280 void *argp1 = 0 ;
35281 int res1 = 0 ;
35282 void *argp2 = 0 ;
35283 int res2 = 0 ;
35284 PyObject * obj0 = 0 ;
35285 PyObject * obj1 = 0 ;
35286 char * kwnames[] = {
35287 (char *) "self",(char *) "item", NULL
35288 };
35289
35290 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35291 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35292 if (!SWIG_IsOK(res1)) {
35293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35294 }
35295 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35296 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35297 if (!SWIG_IsOK(res2)) {
35298 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35299 }
35300 if (!argp2) {
35301 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35302 }
35303 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35304 {
35305 PyThreadState* __tstate = wxPyBeginAllowThreads();
35306 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
35307 wxPyEndAllowThreads(__tstate);
35308 if (PyErr_Occurred()) SWIG_fail;
35309 }
35310 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35311 return resultobj;
35312fail:
35313 return NULL;
d14a1e28
RD
35314}
35315
35316
0085ce49
RD
35317SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35318 PyObject *resultobj = 0;
35319 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35320 wxTreeItemId result;
35321 void *argp1 = 0 ;
35322 int res1 = 0 ;
35323 PyObject *swig_obj[1] ;
35324
35325 if (!args) SWIG_fail;
35326 swig_obj[0] = args;
35327 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35328 if (!SWIG_IsOK(res1)) {
35329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstVisibleItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35330 }
35331 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35332 {
35333 PyThreadState* __tstate = wxPyBeginAllowThreads();
35334 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
35335 wxPyEndAllowThreads(__tstate);
35336 if (PyErr_Occurred()) SWIG_fail;
35337 }
35338 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35339 return resultobj;
35340fail:
35341 return NULL;
35342}
35343
35344
35345SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35346 PyObject *resultobj = 0;
35347 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35348 wxTreeItemId *arg2 = 0 ;
35349 wxTreeItemId result;
35350 void *argp1 = 0 ;
35351 int res1 = 0 ;
35352 void *argp2 = 0 ;
35353 int res2 = 0 ;
35354 PyObject * obj0 = 0 ;
35355 PyObject * obj1 = 0 ;
35356 char * kwnames[] = {
35357 (char *) "self",(char *) "item", NULL
35358 };
35359
35360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35362 if (!SWIG_IsOK(res1)) {
35363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35364 }
35365 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35366 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35367 if (!SWIG_IsOK(res2)) {
35368 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35369 }
35370 if (!argp2) {
35371 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35372 }
35373 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35374 {
35375 PyThreadState* __tstate = wxPyBeginAllowThreads();
35376 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
35377 wxPyEndAllowThreads(__tstate);
35378 if (PyErr_Occurred()) SWIG_fail;
35379 }
35380 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35381 return resultobj;
35382fail:
35383 return NULL;
35384}
35385
35386
35387SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35388 PyObject *resultobj = 0;
35389 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35390 wxTreeItemId *arg2 = 0 ;
35391 wxTreeItemId result;
35392 void *argp1 = 0 ;
35393 int res1 = 0 ;
35394 void *argp2 = 0 ;
35395 int res2 = 0 ;
35396 PyObject * obj0 = 0 ;
35397 PyObject * obj1 = 0 ;
35398 char * kwnames[] = {
35399 (char *) "self",(char *) "item", NULL
35400 };
35401
35402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35404 if (!SWIG_IsOK(res1)) {
35405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35406 }
35407 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35408 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35409 if (!SWIG_IsOK(res2)) {
35410 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35411 }
35412 if (!argp2) {
35413 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35414 }
35415 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35416 {
35417 PyThreadState* __tstate = wxPyBeginAllowThreads();
35418 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
35419 wxPyEndAllowThreads(__tstate);
35420 if (PyErr_Occurred()) SWIG_fail;
35421 }
35422 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35423 return resultobj;
35424fail:
35425 return NULL;
35426}
35427
35428
35429SWIGINTERN PyObject *_wrap_TreeCtrl_AddRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35430 PyObject *resultobj = 0;
35431 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35432 wxString *arg2 = 0 ;
35433 int arg3 = (int) -1 ;
35434 int arg4 = (int) -1 ;
35435 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
35436 wxTreeItemId result;
35437 void *argp1 = 0 ;
35438 int res1 = 0 ;
35439 bool temp2 = false ;
35440 int val3 ;
35441 int ecode3 = 0 ;
35442 int val4 ;
35443 int ecode4 = 0 ;
35444 int res5 = 0 ;
35445 PyObject * obj0 = 0 ;
35446 PyObject * obj1 = 0 ;
35447 PyObject * obj2 = 0 ;
35448 PyObject * obj3 = 0 ;
35449 PyObject * obj4 = 0 ;
35450 char * kwnames[] = {
35451 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35452 };
35453
35454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35456 if (!SWIG_IsOK(res1)) {
35457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AddRoot" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35458 }
35459 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35460 {
35461 arg2 = wxString_in_helper(obj1);
35462 if (arg2 == NULL) SWIG_fail;
35463 temp2 = true;
35464 }
35465 if (obj2) {
35466 ecode3 = SWIG_AsVal_int(obj2, &val3);
35467 if (!SWIG_IsOK(ecode3)) {
35468 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_AddRoot" "', expected argument " "3"" of type '" "int""'");
35469 }
35470 arg3 = static_cast< int >(val3);
35471 }
35472 if (obj3) {
35473 ecode4 = SWIG_AsVal_int(obj3, &val4);
35474 if (!SWIG_IsOK(ecode4)) {
35475 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AddRoot" "', expected argument " "4"" of type '" "int""'");
35476 }
35477 arg4 = static_cast< int >(val4);
35478 }
35479 if (obj4) {
35480 res5 = SWIG_ConvertPtr(obj4, SWIG_as_voidptrptr(&arg5), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35481 if (!SWIG_IsOK(res5)) {
35482 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "TreeCtrl_AddRoot" "', expected argument " "5"" of type '" "wxPyTreeItemData *""'");
3a04f143 35483 }
0085ce49
RD
35484 }
35485 {
35486 PyThreadState* __tstate = wxPyBeginAllowThreads();
35487 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
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 (temp2)
35494 delete arg2;
35495 }
35496 return resultobj;
35497fail:
35498 {
35499 if (temp2)
35500 delete arg2;
35501 }
35502 return NULL;
35503}
35504
35505
35506SWIGINTERN PyObject *_wrap_TreeCtrl_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35507 PyObject *resultobj = 0;
35508 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35509 wxTreeItemId *arg2 = 0 ;
35510 wxString *arg3 = 0 ;
35511 int arg4 = (int) -1 ;
35512 int arg5 = (int) -1 ;
35513 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
35514 wxTreeItemId result;
35515 void *argp1 = 0 ;
35516 int res1 = 0 ;
35517 void *argp2 = 0 ;
35518 int res2 = 0 ;
35519 bool temp3 = false ;
35520 int val4 ;
35521 int ecode4 = 0 ;
35522 int val5 ;
35523 int ecode5 = 0 ;
35524 int res6 = 0 ;
35525 PyObject * obj0 = 0 ;
35526 PyObject * obj1 = 0 ;
35527 PyObject * obj2 = 0 ;
35528 PyObject * obj3 = 0 ;
35529 PyObject * obj4 = 0 ;
35530 PyObject * obj5 = 0 ;
35531 char * kwnames[] = {
35532 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35533 };
35534
35535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
35536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35537 if (!SWIG_IsOK(res1)) {
35538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_PrependItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35539 }
35540 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35541 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35542 if (!SWIG_IsOK(res2)) {
35543 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35544 }
35545 if (!argp2) {
35546 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35547 }
35548 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35549 {
35550 arg3 = wxString_in_helper(obj2);
35551 if (arg3 == NULL) SWIG_fail;
35552 temp3 = true;
35553 }
35554 if (obj3) {
35555 ecode4 = SWIG_AsVal_int(obj3, &val4);
35556 if (!SWIG_IsOK(ecode4)) {
35557 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_PrependItem" "', expected argument " "4"" of type '" "int""'");
35558 }
35559 arg4 = static_cast< int >(val4);
35560 }
35561 if (obj4) {
35562 ecode5 = SWIG_AsVal_int(obj4, &val5);
35563 if (!SWIG_IsOK(ecode5)) {
35564 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_PrependItem" "', expected argument " "5"" of type '" "int""'");
35565 }
35566 arg5 = static_cast< int >(val5);
35567 }
35568 if (obj5) {
35569 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35570 if (!SWIG_IsOK(res6)) {
35571 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_PrependItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
3a04f143 35572 }
0085ce49
RD
35573 }
35574 {
35575 PyThreadState* __tstate = wxPyBeginAllowThreads();
35576 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
35577 wxPyEndAllowThreads(__tstate);
35578 if (PyErr_Occurred()) SWIG_fail;
35579 }
35580 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35581 {
35582 if (temp3)
35583 delete arg3;
35584 }
35585 return resultobj;
35586fail:
35587 {
35588 if (temp3)
35589 delete arg3;
35590 }
35591 return NULL;
35592}
35593
35594
35595SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35596 PyObject *resultobj = 0;
35597 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35598 wxTreeItemId *arg2 = 0 ;
35599 wxTreeItemId *arg3 = 0 ;
35600 wxString *arg4 = 0 ;
35601 int arg5 = (int) -1 ;
35602 int arg6 = (int) -1 ;
35603 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
35604 wxTreeItemId result;
35605 void *argp1 = 0 ;
35606 int res1 = 0 ;
35607 void *argp2 = 0 ;
35608 int res2 = 0 ;
35609 void *argp3 = 0 ;
35610 int res3 = 0 ;
35611 bool temp4 = false ;
35612 int val5 ;
35613 int ecode5 = 0 ;
35614 int val6 ;
35615 int ecode6 = 0 ;
35616 int res7 = 0 ;
35617 PyObject * obj0 = 0 ;
35618 PyObject * obj1 = 0 ;
35619 PyObject * obj2 = 0 ;
35620 PyObject * obj3 = 0 ;
35621 PyObject * obj4 = 0 ;
35622 PyObject * obj5 = 0 ;
35623 PyObject * obj6 = 0 ;
35624 char * kwnames[] = {
35625 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35626 };
35627
35628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35630 if (!SWIG_IsOK(res1)) {
35631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35632 }
35633 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35634 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35635 if (!SWIG_IsOK(res2)) {
35636 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35637 }
35638 if (!argp2) {
35639 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35640 }
35641 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35642 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35643 if (!SWIG_IsOK(res3)) {
35644 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
35645 }
35646 if (!argp3) {
35647 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
35648 }
35649 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
35650 {
35651 arg4 = wxString_in_helper(obj3);
35652 if (arg4 == NULL) SWIG_fail;
35653 temp4 = true;
35654 }
35655 if (obj4) {
35656 ecode5 = SWIG_AsVal_int(obj4, &val5);
35657 if (!SWIG_IsOK(ecode5)) {
35658 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItem" "', expected argument " "5"" of type '" "int""'");
35659 }
35660 arg5 = static_cast< int >(val5);
35661 }
35662 if (obj5) {
35663 ecode6 = SWIG_AsVal_int(obj5, &val6);
35664 if (!SWIG_IsOK(ecode6)) {
35665 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItem" "', expected argument " "6"" of type '" "int""'");
35666 }
35667 arg6 = static_cast< int >(val6);
35668 }
35669 if (obj6) {
35670 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35671 if (!SWIG_IsOK(res7)) {
35672 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItem" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
093d3ff1 35673 }
0085ce49
RD
35674 }
35675 {
35676 PyThreadState* __tstate = wxPyBeginAllowThreads();
35677 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
35678 wxPyEndAllowThreads(__tstate);
35679 if (PyErr_Occurred()) SWIG_fail;
35680 }
35681 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35682 {
35683 if (temp4)
35684 delete arg4;
35685 }
35686 return resultobj;
35687fail:
35688 {
35689 if (temp4)
35690 delete arg4;
35691 }
35692 return NULL;
35693}
35694
35695
35696SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35697 PyObject *resultobj = 0;
35698 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35699 wxTreeItemId *arg2 = 0 ;
35700 size_t arg3 ;
35701 wxString *arg4 = 0 ;
35702 int arg5 = (int) -1 ;
35703 int arg6 = (int) -1 ;
35704 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
35705 wxTreeItemId result;
35706 void *argp1 = 0 ;
35707 int res1 = 0 ;
35708 void *argp2 = 0 ;
35709 int res2 = 0 ;
35710 size_t val3 ;
35711 int ecode3 = 0 ;
35712 bool temp4 = false ;
35713 int val5 ;
35714 int ecode5 = 0 ;
35715 int val6 ;
35716 int ecode6 = 0 ;
35717 int res7 = 0 ;
35718 PyObject * obj0 = 0 ;
35719 PyObject * obj1 = 0 ;
35720 PyObject * obj2 = 0 ;
35721 PyObject * obj3 = 0 ;
35722 PyObject * obj4 = 0 ;
35723 PyObject * obj5 = 0 ;
35724 PyObject * obj6 = 0 ;
35725 char * kwnames[] = {
35726 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35727 };
35728
35729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35731 if (!SWIG_IsOK(res1)) {
35732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35733 }
35734 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35735 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35736 if (!SWIG_IsOK(res2)) {
35737 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35738 }
35739 if (!argp2) {
35740 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35741 }
35742 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35743 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
35744 if (!SWIG_IsOK(ecode3)) {
35745 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "3"" of type '" "size_t""'");
35746 }
35747 arg3 = static_cast< size_t >(val3);
35748 {
35749 arg4 = wxString_in_helper(obj3);
35750 if (arg4 == NULL) SWIG_fail;
35751 temp4 = true;
35752 }
35753 if (obj4) {
35754 ecode5 = SWIG_AsVal_int(obj4, &val5);
35755 if (!SWIG_IsOK(ecode5)) {
35756 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "5"" of type '" "int""'");
35757 }
35758 arg5 = static_cast< int >(val5);
35759 }
35760 if (obj5) {
35761 ecode6 = SWIG_AsVal_int(obj5, &val6);
35762 if (!SWIG_IsOK(ecode6)) {
35763 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "6"" of type '" "int""'");
35764 }
35765 arg6 = static_cast< int >(val6);
35766 }
35767 if (obj6) {
35768 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35769 if (!SWIG_IsOK(res7)) {
35770 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
3a04f143 35771 }
0085ce49
RD
35772 }
35773 {
35774 PyThreadState* __tstate = wxPyBeginAllowThreads();
35775 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
35776 wxPyEndAllowThreads(__tstate);
35777 if (PyErr_Occurred()) SWIG_fail;
35778 }
35779 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35780 {
35781 if (temp4)
35782 delete arg4;
35783 }
35784 return resultobj;
35785fail:
35786 {
35787 if (temp4)
35788 delete arg4;
35789 }
35790 return NULL;
35791}
35792
35793
35794SWIGINTERN PyObject *_wrap_TreeCtrl_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35795 PyObject *resultobj = 0;
35796 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35797 wxTreeItemId *arg2 = 0 ;
35798 wxString *arg3 = 0 ;
35799 int arg4 = (int) -1 ;
35800 int arg5 = (int) -1 ;
35801 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
35802 wxTreeItemId result;
35803 void *argp1 = 0 ;
35804 int res1 = 0 ;
35805 void *argp2 = 0 ;
35806 int res2 = 0 ;
35807 bool temp3 = false ;
35808 int val4 ;
35809 int ecode4 = 0 ;
35810 int val5 ;
35811 int ecode5 = 0 ;
35812 int res6 = 0 ;
35813 PyObject * obj0 = 0 ;
35814 PyObject * obj1 = 0 ;
35815 PyObject * obj2 = 0 ;
35816 PyObject * obj3 = 0 ;
35817 PyObject * obj4 = 0 ;
35818 PyObject * obj5 = 0 ;
35819 char * kwnames[] = {
35820 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35821 };
35822
35823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
35824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35825 if (!SWIG_IsOK(res1)) {
35826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AppendItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35827 }
35828 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35829 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35830 if (!SWIG_IsOK(res2)) {
35831 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35832 }
35833 if (!argp2) {
35834 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35835 }
35836 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35837 {
35838 arg3 = wxString_in_helper(obj2);
35839 if (arg3 == NULL) SWIG_fail;
35840 temp3 = true;
35841 }
35842 if (obj3) {
35843 ecode4 = SWIG_AsVal_int(obj3, &val4);
35844 if (!SWIG_IsOK(ecode4)) {
35845 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AppendItem" "', expected argument " "4"" of type '" "int""'");
35846 }
35847 arg4 = static_cast< int >(val4);
35848 }
35849 if (obj4) {
35850 ecode5 = SWIG_AsVal_int(obj4, &val5);
35851 if (!SWIG_IsOK(ecode5)) {
35852 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_AppendItem" "', expected argument " "5"" of type '" "int""'");
35853 }
35854 arg5 = static_cast< int >(val5);
35855 }
35856 if (obj5) {
35857 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35858 if (!SWIG_IsOK(res6)) {
35859 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_AppendItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
3a04f143 35860 }
0085ce49
RD
35861 }
35862 {
35863 PyThreadState* __tstate = wxPyBeginAllowThreads();
35864 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
35865 wxPyEndAllowThreads(__tstate);
35866 if (PyErr_Occurred()) SWIG_fail;
35867 }
35868 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35869 {
35870 if (temp3)
35871 delete arg3;
35872 }
35873 return resultobj;
35874fail:
35875 {
35876 if (temp3)
35877 delete arg3;
35878 }
35879 return NULL;
35880}
35881
35882
35883SWIGINTERN PyObject *_wrap_TreeCtrl_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35884 PyObject *resultobj = 0;
35885 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35886 wxTreeItemId *arg2 = 0 ;
35887 void *argp1 = 0 ;
35888 int res1 = 0 ;
35889 void *argp2 = 0 ;
35890 int res2 = 0 ;
35891 PyObject * obj0 = 0 ;
35892 PyObject * obj1 = 0 ;
35893 char * kwnames[] = {
35894 (char *) "self",(char *) "item", NULL
35895 };
35896
35897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) SWIG_fail;
35898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35899 if (!SWIG_IsOK(res1)) {
35900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Delete" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35901 }
35902 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35903 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35904 if (!SWIG_IsOK(res2)) {
35905 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35906 }
35907 if (!argp2) {
35908 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35909 }
35910 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35911 {
35912 PyThreadState* __tstate = wxPyBeginAllowThreads();
35913 (arg1)->Delete((wxTreeItemId const &)*arg2);
35914 wxPyEndAllowThreads(__tstate);
35915 if (PyErr_Occurred()) SWIG_fail;
35916 }
35917 resultobj = SWIG_Py_Void();
35918 return resultobj;
35919fail:
35920 return NULL;
35921}
35922
35923
35924SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35925 PyObject *resultobj = 0;
35926 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35927 wxTreeItemId *arg2 = 0 ;
35928 void *argp1 = 0 ;
35929 int res1 = 0 ;
35930 void *argp2 = 0 ;
35931 int res2 = 0 ;
35932 PyObject * obj0 = 0 ;
35933 PyObject * obj1 = 0 ;
35934 char * kwnames[] = {
35935 (char *) "self",(char *) "item", NULL
35936 };
35937
35938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) SWIG_fail;
35939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35940 if (!SWIG_IsOK(res1)) {
35941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35942 }
35943 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35944 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35945 if (!SWIG_IsOK(res2)) {
35946 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35947 }
35948 if (!argp2) {
35949 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35950 }
35951 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35952 {
35953 PyThreadState* __tstate = wxPyBeginAllowThreads();
35954 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
35955 wxPyEndAllowThreads(__tstate);
35956 if (PyErr_Occurred()) SWIG_fail;
35957 }
35958 resultobj = SWIG_Py_Void();
35959 return resultobj;
35960fail:
35961 return NULL;
3a04f143
RD
35962}
35963
35964
0085ce49
RD
35965SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35966 PyObject *resultobj = 0;
35967 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35968 void *argp1 = 0 ;
35969 int res1 = 0 ;
35970 PyObject *swig_obj[1] ;
35971
35972 if (!args) SWIG_fail;
35973 swig_obj[0] = args;
35974 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35975 if (!SWIG_IsOK(res1)) {
35976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35977 }
35978 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35979 {
35980 PyThreadState* __tstate = wxPyBeginAllowThreads();
35981 (arg1)->DeleteAllItems();
35982 wxPyEndAllowThreads(__tstate);
35983 if (PyErr_Occurred()) SWIG_fail;
35984 }
35985 resultobj = SWIG_Py_Void();
35986 return resultobj;
35987fail:
35988 return NULL;
35989}
35990
35991
35992SWIGINTERN PyObject *_wrap_TreeCtrl_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35993 PyObject *resultobj = 0;
35994 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35995 wxTreeItemId *arg2 = 0 ;
35996 void *argp1 = 0 ;
35997 int res1 = 0 ;
35998 void *argp2 = 0 ;
35999 int res2 = 0 ;
36000 PyObject * obj0 = 0 ;
36001 PyObject * obj1 = 0 ;
36002 char * kwnames[] = {
36003 (char *) "self",(char *) "item", NULL
36004 };
36005
36006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) SWIG_fail;
36007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36008 if (!SWIG_IsOK(res1)) {
36009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Expand" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36010 }
36011 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36012 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36013 if (!SWIG_IsOK(res2)) {
36014 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36015 }
36016 if (!argp2) {
36017 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36018 }
36019 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36020 {
36021 PyThreadState* __tstate = wxPyBeginAllowThreads();
36022 (arg1)->Expand((wxTreeItemId const &)*arg2);
36023 wxPyEndAllowThreads(__tstate);
36024 if (PyErr_Occurred()) SWIG_fail;
36025 }
36026 resultobj = SWIG_Py_Void();
36027 return resultobj;
36028fail:
36029 return NULL;
36030}
36031
36032
36033SWIGINTERN PyObject *_wrap_TreeCtrl_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36034 PyObject *resultobj = 0;
36035 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36036 wxTreeItemId *arg2 = 0 ;
36037 void *argp1 = 0 ;
36038 int res1 = 0 ;
36039 void *argp2 = 0 ;
36040 int res2 = 0 ;
36041 PyObject * obj0 = 0 ;
36042 PyObject * obj1 = 0 ;
36043 char * kwnames[] = {
36044 (char *) "self",(char *) "item", NULL
36045 };
36046
36047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
36048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36049 if (!SWIG_IsOK(res1)) {
36050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Collapse" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36051 }
36052 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36053 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36054 if (!SWIG_IsOK(res2)) {
36055 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36056 }
36057 if (!argp2) {
36058 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36059 }
36060 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36061 {
36062 PyThreadState* __tstate = wxPyBeginAllowThreads();
36063 (arg1)->Collapse((wxTreeItemId const &)*arg2);
36064 wxPyEndAllowThreads(__tstate);
36065 if (PyErr_Occurred()) SWIG_fail;
36066 }
36067 resultobj = SWIG_Py_Void();
36068 return resultobj;
36069fail:
36070 return NULL;
36071}
36072
36073
36074SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36075 PyObject *resultobj = 0;
36076 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36077 wxTreeItemId *arg2 = 0 ;
36078 void *argp1 = 0 ;
36079 int res1 = 0 ;
36080 void *argp2 = 0 ;
36081 int res2 = 0 ;
36082 PyObject * obj0 = 0 ;
36083 PyObject * obj1 = 0 ;
36084 char * kwnames[] = {
36085 (char *) "self",(char *) "item", NULL
36086 };
36087
36088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) SWIG_fail;
36089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36090 if (!SWIG_IsOK(res1)) {
36091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36092 }
36093 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36094 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36095 if (!SWIG_IsOK(res2)) {
36096 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36097 }
36098 if (!argp2) {
36099 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36100 }
36101 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36102 {
36103 PyThreadState* __tstate = wxPyBeginAllowThreads();
36104 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
36105 wxPyEndAllowThreads(__tstate);
36106 if (PyErr_Occurred()) SWIG_fail;
36107 }
36108 resultobj = SWIG_Py_Void();
36109 return resultobj;
36110fail:
36111 return NULL;
36112}
36113
36114
36115SWIGINTERN PyObject *_wrap_TreeCtrl_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36116 PyObject *resultobj = 0;
36117 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36118 wxTreeItemId *arg2 = 0 ;
36119 void *argp1 = 0 ;
36120 int res1 = 0 ;
36121 void *argp2 = 0 ;
36122 int res2 = 0 ;
36123 PyObject * obj0 = 0 ;
36124 PyObject * obj1 = 0 ;
36125 char * kwnames[] = {
36126 (char *) "self",(char *) "item", NULL
36127 };
36128
36129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) SWIG_fail;
36130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36131 if (!SWIG_IsOK(res1)) {
36132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Toggle" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36133 }
36134 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36135 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36136 if (!SWIG_IsOK(res2)) {
36137 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36138 }
36139 if (!argp2) {
36140 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36141 }
36142 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36143 {
36144 PyThreadState* __tstate = wxPyBeginAllowThreads();
36145 (arg1)->Toggle((wxTreeItemId const &)*arg2);
36146 wxPyEndAllowThreads(__tstate);
36147 if (PyErr_Occurred()) SWIG_fail;
36148 }
36149 resultobj = SWIG_Py_Void();
36150 return resultobj;
36151fail:
36152 return NULL;
d14a1e28
RD
36153}
36154
36155
0085ce49
RD
36156SWIGINTERN PyObject *_wrap_TreeCtrl_Unselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36157 PyObject *resultobj = 0;
36158 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36159 void *argp1 = 0 ;
36160 int res1 = 0 ;
36161 PyObject *swig_obj[1] ;
36162
36163 if (!args) SWIG_fail;
36164 swig_obj[0] = args;
36165 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36166 if (!SWIG_IsOK(res1)) {
36167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Unselect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36168 }
36169 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36170 {
36171 PyThreadState* __tstate = wxPyBeginAllowThreads();
36172 (arg1)->Unselect();
36173 wxPyEndAllowThreads(__tstate);
36174 if (PyErr_Occurred()) SWIG_fail;
36175 }
36176 resultobj = SWIG_Py_Void();
36177 return resultobj;
36178fail:
36179 return NULL;
36180}
36181
36182
36183SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36184 PyObject *resultobj = 0;
36185 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36186 wxTreeItemId *arg2 = 0 ;
36187 void *argp1 = 0 ;
36188 int res1 = 0 ;
36189 void *argp2 = 0 ;
36190 int res2 = 0 ;
36191 PyObject * obj0 = 0 ;
36192 PyObject * obj1 = 0 ;
36193 char * kwnames[] = {
36194 (char *) "self",(char *) "item", NULL
36195 };
36196
36197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) SWIG_fail;
36198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36199 if (!SWIG_IsOK(res1)) {
36200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36201 }
36202 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36203 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36204 if (!SWIG_IsOK(res2)) {
36205 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36206 }
36207 if (!argp2) {
36208 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36209 }
36210 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36211 {
36212 PyThreadState* __tstate = wxPyBeginAllowThreads();
36213 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
36214 wxPyEndAllowThreads(__tstate);
36215 if (PyErr_Occurred()) SWIG_fail;
36216 }
36217 resultobj = SWIG_Py_Void();
36218 return resultobj;
36219fail:
36220 return NULL;
d14a1e28
RD
36221}
36222
36223
0085ce49
RD
36224SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36225 PyObject *resultobj = 0;
36226 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36227 void *argp1 = 0 ;
36228 int res1 = 0 ;
36229 PyObject *swig_obj[1] ;
36230
36231 if (!args) SWIG_fail;
36232 swig_obj[0] = args;
36233 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36234 if (!SWIG_IsOK(res1)) {
36235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36236 }
36237 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36238 {
36239 PyThreadState* __tstate = wxPyBeginAllowThreads();
36240 (arg1)->UnselectAll();
36241 wxPyEndAllowThreads(__tstate);
36242 if (PyErr_Occurred()) SWIG_fail;
36243 }
36244 resultobj = SWIG_Py_Void();
36245 return resultobj;
36246fail:
36247 return NULL;
36248}
36249
36250
36251SWIGINTERN PyObject *_wrap_TreeCtrl_SelectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36252 PyObject *resultobj = 0;
36253 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36254 wxTreeItemId *arg2 = 0 ;
36255 bool arg3 = (bool) true ;
36256 void *argp1 = 0 ;
36257 int res1 = 0 ;
36258 void *argp2 = 0 ;
36259 int res2 = 0 ;
36260 bool val3 ;
36261 int ecode3 = 0 ;
36262 PyObject * obj0 = 0 ;
36263 PyObject * obj1 = 0 ;
36264 PyObject * obj2 = 0 ;
36265 char * kwnames[] = {
36266 (char *) "self",(char *) "item",(char *) "select", NULL
36267 };
36268
36269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36270 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36271 if (!SWIG_IsOK(res1)) {
36272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SelectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36273 }
36274 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36275 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36276 if (!SWIG_IsOK(res2)) {
36277 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36278 }
36279 if (!argp2) {
36280 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36281 }
36282 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36283 if (obj2) {
36284 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36285 if (!SWIG_IsOK(ecode3)) {
36286 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SelectItem" "', expected argument " "3"" of type '" "bool""'");
36287 }
36288 arg3 = static_cast< bool >(val3);
36289 }
36290 {
36291 PyThreadState* __tstate = wxPyBeginAllowThreads();
36292 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
36293 wxPyEndAllowThreads(__tstate);
36294 if (PyErr_Occurred()) SWIG_fail;
36295 }
36296 resultobj = SWIG_Py_Void();
36297 return resultobj;
36298fail:
36299 return NULL;
36300}
36301
36302
36303SWIGINTERN PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36304 PyObject *resultobj = 0;
36305 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36306 wxTreeItemId *arg2 = 0 ;
36307 void *argp1 = 0 ;
36308 int res1 = 0 ;
36309 void *argp2 = 0 ;
36310 int res2 = 0 ;
36311 PyObject * obj0 = 0 ;
36312 PyObject * obj1 = 0 ;
36313 char * kwnames[] = {
36314 (char *) "self",(char *) "item", NULL
36315 };
36316
36317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) SWIG_fail;
36318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36319 if (!SWIG_IsOK(res1)) {
36320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36321 }
36322 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36323 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36324 if (!SWIG_IsOK(res2)) {
36325 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36326 }
36327 if (!argp2) {
36328 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36329 }
36330 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36331 {
36332 PyThreadState* __tstate = wxPyBeginAllowThreads();
36333 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
36334 wxPyEndAllowThreads(__tstate);
36335 if (PyErr_Occurred()) SWIG_fail;
36336 }
36337 resultobj = SWIG_Py_Void();
36338 return resultobj;
36339fail:
36340 return NULL;
36341}
36342
36343
36344SWIGINTERN PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36345 PyObject *resultobj = 0;
36346 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36347 wxTreeItemId *arg2 = 0 ;
36348 void *argp1 = 0 ;
36349 int res1 = 0 ;
36350 void *argp2 = 0 ;
36351 int res2 = 0 ;
36352 PyObject * obj0 = 0 ;
36353 PyObject * obj1 = 0 ;
36354 char * kwnames[] = {
36355 (char *) "self",(char *) "item", NULL
36356 };
36357
36358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
36359 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36360 if (!SWIG_IsOK(res1)) {
36361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36362 }
36363 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36364 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36365 if (!SWIG_IsOK(res2)) {
36366 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36367 }
36368 if (!argp2) {
36369 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36370 }
36371 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36372 {
36373 PyThreadState* __tstate = wxPyBeginAllowThreads();
36374 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
36375 wxPyEndAllowThreads(__tstate);
36376 if (PyErr_Occurred()) SWIG_fail;
36377 }
36378 resultobj = SWIG_Py_Void();
36379 return resultobj;
36380fail:
36381 return NULL;
36382}
36383
36384
36385SWIGINTERN PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36386 PyObject *resultobj = 0;
36387 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36388 wxTreeItemId *arg2 = 0 ;
36389 void *argp1 = 0 ;
36390 int res1 = 0 ;
36391 void *argp2 = 0 ;
36392 int res2 = 0 ;
36393 PyObject * obj0 = 0 ;
36394 PyObject * obj1 = 0 ;
36395 char * kwnames[] = {
36396 (char *) "self",(char *) "item", NULL
36397 };
36398
36399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) SWIG_fail;
36400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36401 if (!SWIG_IsOK(res1)) {
36402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36403 }
36404 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36405 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36406 if (!SWIG_IsOK(res2)) {
36407 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36408 }
36409 if (!argp2) {
36410 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36411 }
36412 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36413 {
36414 PyThreadState* __tstate = wxPyBeginAllowThreads();
36415 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
36416 wxPyEndAllowThreads(__tstate);
36417 if (PyErr_Occurred()) SWIG_fail;
36418 }
36419 resultobj = SWIG_Py_Void();
36420 return resultobj;
36421fail:
36422 return NULL;
36423}
36424
36425
36426SWIGINTERN PyObject *_wrap_TreeCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36427 PyObject *resultobj = 0;
36428 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36429 wxTreeItemId *arg2 = 0 ;
36430 void *argp1 = 0 ;
36431 int res1 = 0 ;
36432 void *argp2 = 0 ;
36433 int res2 = 0 ;
36434 PyObject * obj0 = 0 ;
36435 PyObject * obj1 = 0 ;
36436 char * kwnames[] = {
36437 (char *) "self",(char *) "item", NULL
36438 };
36439
36440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
36441 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36442 if (!SWIG_IsOK(res1)) {
36443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36444 }
36445 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36446 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36447 if (!SWIG_IsOK(res2)) {
36448 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36449 }
36450 if (!argp2) {
36451 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36452 }
36453 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36454 {
36455 PyThreadState* __tstate = wxPyBeginAllowThreads();
36456 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
36457 wxPyEndAllowThreads(__tstate);
36458 if (PyErr_Occurred()) SWIG_fail;
36459 }
36460 resultobj = SWIG_Py_Void();
36461 return resultobj;
36462fail:
36463 return NULL;
d14a1e28
RD
36464}
36465
36466
0085ce49
RD
36467SWIGINTERN PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36468 PyObject *resultobj = 0;
36469 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36470 wxTextCtrl *result = 0 ;
36471 void *argp1 = 0 ;
36472 int res1 = 0 ;
36473 PyObject *swig_obj[1] ;
36474
36475 if (!args) SWIG_fail;
36476 swig_obj[0] = args;
36477 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36478 if (!SWIG_IsOK(res1)) {
36479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36480 }
36481 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36482 {
36483 PyThreadState* __tstate = wxPyBeginAllowThreads();
36484 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
36485 wxPyEndAllowThreads(__tstate);
36486 if (PyErr_Occurred()) SWIG_fail;
36487 }
36488 {
36489 resultobj = wxPyMake_wxObject(result, 0);
36490 }
36491 return resultobj;
36492fail:
36493 return NULL;
36494}
36495
36496
36497SWIGINTERN PyObject *_wrap_TreeCtrl_SortChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36498 PyObject *resultobj = 0;
36499 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36500 wxTreeItemId *arg2 = 0 ;
36501 void *argp1 = 0 ;
36502 int res1 = 0 ;
36503 void *argp2 = 0 ;
36504 int res2 = 0 ;
36505 PyObject * obj0 = 0 ;
36506 PyObject * obj1 = 0 ;
36507 char * kwnames[] = {
36508 (char *) "self",(char *) "item", NULL
36509 };
36510
36511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36513 if (!SWIG_IsOK(res1)) {
36514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SortChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36515 }
36516 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36517 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36518 if (!SWIG_IsOK(res2)) {
36519 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36520 }
36521 if (!argp2) {
36522 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36523 }
36524 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36525 {
36526 PyThreadState* __tstate = wxPyBeginAllowThreads();
36527 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
36528 wxPyEndAllowThreads(__tstate);
36529 if (PyErr_Occurred()) SWIG_fail;
36530 }
36531 resultobj = SWIG_Py_Void();
36532 return resultobj;
36533fail:
36534 return NULL;
36535}
36536
36537
36538SWIGINTERN PyObject *_wrap_TreeCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36539 PyObject *resultobj = 0;
36540 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36541 wxPoint *arg2 = 0 ;
36542 int *arg3 = 0 ;
36543 wxTreeItemId result;
36544 void *argp1 = 0 ;
36545 int res1 = 0 ;
36546 wxPoint temp2 ;
36547 int temp3 ;
36548 int res3 = SWIG_TMPOBJ ;
36549 PyObject * obj0 = 0 ;
36550 PyObject * obj1 = 0 ;
36551 char * kwnames[] = {
36552 (char *) "self",(char *) "point", NULL
36553 };
36554
36555 arg3 = &temp3;
36556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
36557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36558 if (!SWIG_IsOK(res1)) {
36559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36560 }
36561 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36562 {
36563 arg2 = &temp2;
36564 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36565 }
36566 {
36567 PyThreadState* __tstate = wxPyBeginAllowThreads();
36568 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
36569 wxPyEndAllowThreads(__tstate);
36570 if (PyErr_Occurred()) SWIG_fail;
36571 }
36572 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36573 if (SWIG_IsTmpObj(res3)) {
36574 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
36575 } else {
36576 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
36577 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
36578 }
36579 return resultobj;
36580fail:
36581 return NULL;
36582}
36583
36584
36585SWIGINTERN PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36586 PyObject *resultobj = 0;
36587 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36588 wxTreeItemId *arg2 = 0 ;
36589 bool arg3 = (bool) false ;
36590 PyObject *result = 0 ;
36591 void *argp1 = 0 ;
36592 int res1 = 0 ;
36593 void *argp2 = 0 ;
36594 int res2 = 0 ;
36595 bool val3 ;
36596 int ecode3 = 0 ;
36597 PyObject * obj0 = 0 ;
36598 PyObject * obj1 = 0 ;
36599 PyObject * obj2 = 0 ;
36600 char * kwnames[] = {
36601 (char *) "self",(char *) "item",(char *) "textOnly", NULL
36602 };
36603
36604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36606 if (!SWIG_IsOK(res1)) {
36607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36608 }
36609 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36610 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36611 if (!SWIG_IsOK(res2)) {
36612 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36613 }
36614 if (!argp2) {
36615 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36616 }
36617 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36618 if (obj2) {
36619 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36620 if (!SWIG_IsOK(ecode3)) {
36621 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "3"" of type '" "bool""'");
36622 }
36623 arg3 = static_cast< bool >(val3);
36624 }
36625 {
36626 PyThreadState* __tstate = wxPyBeginAllowThreads();
36627 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
36628 wxPyEndAllowThreads(__tstate);
36629 if (PyErr_Occurred()) SWIG_fail;
36630 }
36631 resultobj = result;
36632 return resultobj;
36633fail:
36634 return NULL;
36635}
36636
36637
36638SWIGINTERN PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36639 PyObject *resultobj = 0;
36640 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
36641 SwigValueWrapper<wxVisualAttributes > result;
36642 int val1 ;
36643 int ecode1 = 0 ;
36644 PyObject * obj0 = 0 ;
36645 char * kwnames[] = {
36646 (char *) "variant", NULL
36647 };
36648
36649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
36650 if (obj0) {
36651 ecode1 = SWIG_AsVal_int(obj0, &val1);
36652 if (!SWIG_IsOK(ecode1)) {
36653 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TreeCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
36654 }
36655 arg1 = static_cast< wxWindowVariant >(val1);
36656 }
36657 {
36658 if (!wxPyCheckForApp()) SWIG_fail;
36659 PyThreadState* __tstate = wxPyBeginAllowThreads();
36660 result = wxPyTreeCtrl::GetClassDefaultAttributes(arg1);
36661 wxPyEndAllowThreads(__tstate);
36662 if (PyErr_Occurred()) SWIG_fail;
36663 }
36664 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
36665 return resultobj;
36666fail:
36667 return NULL;
d14a1e28
RD
36668}
36669
36670
0085ce49
RD
36671SWIGINTERN PyObject *TreeCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36672 PyObject *obj;
36673 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
36674 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeCtrl, SWIG_NewClientData(obj));
36675 return SWIG_Py_Void();
d14a1e28
RD
36676}
36677
0085ce49
RD
36678SWIGINTERN PyObject *TreeCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36679 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
36680}
36681
0085ce49
RD
36682SWIGINTERN int DirDialogDefaultFolderStr_set(PyObject *) {
36683 SWIG_Error(SWIG_AttributeError,"Variable DirDialogDefaultFolderStr is read-only.");
36684 return 1;
d14a1e28
RD
36685}
36686
36687
0085ce49
RD
36688SWIGINTERN PyObject *DirDialogDefaultFolderStr_get(void) {
36689 PyObject *pyobj = 0;
36690
36691 {
36692#if wxUSE_UNICODE
36693 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
36694#else
36695 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
36696#endif
36697 }
36698 return pyobj;
36699}
36700
36701
36702SWIGINTERN PyObject *_wrap_new_GenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36703 PyObject *resultobj = 0;
36704 wxWindow *arg1 = (wxWindow *) 0 ;
36705 int arg2 = (int) (int)-1 ;
36706 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
36707 wxString *arg3 = (wxString *) &arg3_defvalue ;
36708 wxPoint const &arg4_defvalue = wxDefaultPosition ;
36709 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
36710 wxSize const &arg5_defvalue = wxDefaultSize ;
36711 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
36712 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
36713 wxString const &arg7_defvalue = wxPyEmptyString ;
36714 wxString *arg7 = (wxString *) &arg7_defvalue ;
36715 int arg8 = (int) 0 ;
36716 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
36717 wxString *arg9 = (wxString *) &arg9_defvalue ;
36718 wxGenericDirCtrl *result = 0 ;
36719 void *argp1 = 0 ;
36720 int res1 = 0 ;
36721 int val2 ;
36722 int ecode2 = 0 ;
36723 bool temp3 = false ;
36724 wxPoint temp4 ;
36725 wxSize temp5 ;
36726 long val6 ;
36727 int ecode6 = 0 ;
36728 bool temp7 = false ;
36729 int val8 ;
36730 int ecode8 = 0 ;
36731 bool temp9 = false ;
36732 PyObject * obj0 = 0 ;
36733 PyObject * obj1 = 0 ;
36734 PyObject * obj2 = 0 ;
36735 PyObject * obj3 = 0 ;
36736 PyObject * obj4 = 0 ;
36737 PyObject * obj5 = 0 ;
36738 PyObject * obj6 = 0 ;
36739 PyObject * obj7 = 0 ;
36740 PyObject * obj8 = 0 ;
36741 char * kwnames[] = {
36742 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
36743 };
36744
36745 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
36746 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36747 if (!SWIG_IsOK(res1)) {
36748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GenericDirCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
36749 }
36750 arg1 = reinterpret_cast< wxWindow * >(argp1);
36751 if (obj1) {
36752 ecode2 = SWIG_AsVal_int(obj1, &val2);
36753 if (!SWIG_IsOK(ecode2)) {
36754 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GenericDirCtrl" "', expected argument " "2"" of type '" "int""'");
36755 }
36756 arg2 = static_cast< int >(val2);
36757 }
36758 if (obj2) {
d14a1e28 36759 {
0085ce49
RD
36760 arg3 = wxString_in_helper(obj2);
36761 if (arg3 == NULL) SWIG_fail;
36762 temp3 = true;
d14a1e28 36763 }
0085ce49
RD
36764 }
36765 if (obj3) {
4f89f6a3 36766 {
0085ce49
RD
36767 arg4 = &temp4;
36768 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 36769 }
0085ce49
RD
36770 }
36771 if (obj4) {
093d3ff1 36772 {
0085ce49
RD
36773 arg5 = &temp5;
36774 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 36775 }
0085ce49
RD
36776 }
36777 if (obj5) {
36778 ecode6 = SWIG_AsVal_long(obj5, &val6);
36779 if (!SWIG_IsOK(ecode6)) {
36780 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GenericDirCtrl" "', expected argument " "6"" of type '" "long""'");
36781 }
36782 arg6 = static_cast< long >(val6);
36783 }
36784 if (obj6) {
093d3ff1 36785 {
0085ce49
RD
36786 arg7 = wxString_in_helper(obj6);
36787 if (arg7 == NULL) SWIG_fail;
36788 temp7 = true;
093d3ff1 36789 }
0085ce49
RD
36790 }
36791 if (obj7) {
36792 ecode8 = SWIG_AsVal_int(obj7, &val8);
36793 if (!SWIG_IsOK(ecode8)) {
36794 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GenericDirCtrl" "', expected argument " "8"" of type '" "int""'");
36795 }
36796 arg8 = static_cast< int >(val8);
36797 }
36798 if (obj8) {
d14a1e28 36799 {
0085ce49
RD
36800 arg9 = wxString_in_helper(obj8);
36801 if (arg9 == NULL) SWIG_fail;
36802 temp9 = true;
d14a1e28 36803 }
0085ce49
RD
36804 }
36805 {
36806 if (!wxPyCheckForApp()) SWIG_fail;
36807 PyThreadState* __tstate = wxPyBeginAllowThreads();
36808 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
36809 wxPyEndAllowThreads(__tstate);
36810 if (PyErr_Occurred()) SWIG_fail;
36811 }
36812 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_NEW | 0 );
36813 {
36814 if (temp3)
36815 delete arg3;
36816 }
36817 {
36818 if (temp7)
36819 delete arg7;
36820 }
36821 {
36822 if (temp9)
36823 delete arg9;
36824 }
36825 return resultobj;
36826fail:
36827 {
36828 if (temp3)
36829 delete arg3;
36830 }
36831 {
36832 if (temp7)
36833 delete arg7;
36834 }
36835 {
36836 if (temp9)
36837 delete arg9;
36838 }
36839 return NULL;
d14a1e28
RD
36840}
36841
36842
0085ce49
RD
36843SWIGINTERN PyObject *_wrap_new_PreGenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36844 PyObject *resultobj = 0;
36845 wxGenericDirCtrl *result = 0 ;
36846
36847 if (!SWIG_Python_UnpackTuple(args,"new_PreGenericDirCtrl",0,0,0)) SWIG_fail;
36848 {
36849 if (!wxPyCheckForApp()) SWIG_fail;
36850 PyThreadState* __tstate = wxPyBeginAllowThreads();
36851 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
36852 wxPyEndAllowThreads(__tstate);
36853 if (PyErr_Occurred()) SWIG_fail;
36854 }
36855 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_OWN | 0 );
36856 return resultobj;
36857fail:
36858 return NULL;
36859}
36860
36861
36862SWIGINTERN PyObject *_wrap_GenericDirCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36863 PyObject *resultobj = 0;
36864 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
36865 wxWindow *arg2 = (wxWindow *) 0 ;
36866 int arg3 = (int) (int)-1 ;
36867 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
36868 wxString *arg4 = (wxString *) &arg4_defvalue ;
36869 wxPoint const &arg5_defvalue = wxDefaultPosition ;
36870 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
36871 wxSize const &arg6_defvalue = wxDefaultSize ;
36872 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
36873 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
36874 wxString const &arg8_defvalue = wxPyEmptyString ;
36875 wxString *arg8 = (wxString *) &arg8_defvalue ;
36876 int arg9 = (int) 0 ;
36877 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
36878 wxString *arg10 = (wxString *) &arg10_defvalue ;
36879 bool result;
36880 void *argp1 = 0 ;
36881 int res1 = 0 ;
36882 void *argp2 = 0 ;
36883 int res2 = 0 ;
36884 int val3 ;
36885 int ecode3 = 0 ;
36886 bool temp4 = false ;
36887 wxPoint temp5 ;
36888 wxSize temp6 ;
36889 long val7 ;
36890 int ecode7 = 0 ;
36891 bool temp8 = false ;
36892 int val9 ;
36893 int ecode9 = 0 ;
36894 bool temp10 = false ;
36895 PyObject * obj0 = 0 ;
36896 PyObject * obj1 = 0 ;
36897 PyObject * obj2 = 0 ;
36898 PyObject * obj3 = 0 ;
36899 PyObject * obj4 = 0 ;
36900 PyObject * obj5 = 0 ;
36901 PyObject * obj6 = 0 ;
36902 PyObject * obj7 = 0 ;
36903 PyObject * obj8 = 0 ;
36904 PyObject * obj9 = 0 ;
36905 char * kwnames[] = {
36906 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
36907 };
36908
36909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
36910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
36911 if (!SWIG_IsOK(res1)) {
36912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_Create" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
36913 }
36914 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
36915 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
36916 if (!SWIG_IsOK(res2)) {
36917 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
36918 }
36919 arg2 = reinterpret_cast< wxWindow * >(argp2);
36920 if (obj2) {
36921 ecode3 = SWIG_AsVal_int(obj2, &val3);
36922 if (!SWIG_IsOK(ecode3)) {
36923 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GenericDirCtrl_Create" "', expected argument " "3"" of type '" "int""'");
36924 }
36925 arg3 = static_cast< int >(val3);
36926 }
36927 if (obj3) {
093d3ff1 36928 {
0085ce49
RD
36929 arg4 = wxString_in_helper(obj3);
36930 if (arg4 == NULL) SWIG_fail;
36931 temp4 = true;
093d3ff1 36932 }
0085ce49
RD
36933 }
36934 if (obj4) {
093d3ff1 36935 {
0085ce49
RD
36936 arg5 = &temp5;
36937 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 36938 }
0085ce49
RD
36939 }
36940 if (obj5) {
d14a1e28 36941 {
0085ce49
RD
36942 arg6 = &temp6;
36943 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d14a1e28 36944 }
0085ce49
RD
36945 }
36946 if (obj6) {
36947 ecode7 = SWIG_AsVal_long(obj6, &val7);
36948 if (!SWIG_IsOK(ecode7)) {
36949 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GenericDirCtrl_Create" "', expected argument " "7"" of type '" "long""'");
36950 }
36951 arg7 = static_cast< long >(val7);
36952 }
36953 if (obj7) {
093d3ff1 36954 {
0085ce49
RD
36955 arg8 = wxString_in_helper(obj7);
36956 if (arg8 == NULL) SWIG_fail;
36957 temp8 = true;
093d3ff1 36958 }
0085ce49
RD
36959 }
36960 if (obj8) {
36961 ecode9 = SWIG_AsVal_int(obj8, &val9);
36962 if (!SWIG_IsOK(ecode9)) {
36963 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GenericDirCtrl_Create" "', expected argument " "9"" of type '" "int""'");
36964 }
36965 arg9 = static_cast< int >(val9);
36966 }
36967 if (obj9) {
093d3ff1 36968 {
0085ce49
RD
36969 arg10 = wxString_in_helper(obj9);
36970 if (arg10 == NULL) SWIG_fail;
36971 temp10 = true;
093d3ff1 36972 }
0085ce49
RD
36973 }
36974 {
36975 PyThreadState* __tstate = wxPyBeginAllowThreads();
36976 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
36977 wxPyEndAllowThreads(__tstate);
36978 if (PyErr_Occurred()) SWIG_fail;
36979 }
36980 {
36981 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36982 }
36983 {
36984 if (temp4)
36985 delete arg4;
36986 }
36987 {
36988 if (temp8)
36989 delete arg8;
36990 }
36991 {
36992 if (temp10)
36993 delete arg10;
36994 }
36995 return resultobj;
36996fail:
36997 {
36998 if (temp4)
36999 delete arg4;
37000 }
37001 {
37002 if (temp8)
37003 delete arg8;
37004 }
37005 {
37006 if (temp10)
37007 delete arg10;
37008 }
37009 return NULL;
37010}
37011
37012
37013SWIGINTERN PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37014 PyObject *resultobj = 0;
37015 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37016 wxString *arg2 = 0 ;
37017 bool result;
37018 void *argp1 = 0 ;
37019 int res1 = 0 ;
37020 bool temp2 = false ;
37021 PyObject * obj0 = 0 ;
37022 PyObject * obj1 = 0 ;
37023 char * kwnames[] = {
37024 (char *) "self",(char *) "path", NULL
37025 };
37026
37027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) SWIG_fail;
37028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37029 if (!SWIG_IsOK(res1)) {
37030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ExpandPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37031 }
37032 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37033 {
37034 arg2 = wxString_in_helper(obj1);
37035 if (arg2 == NULL) SWIG_fail;
37036 temp2 = true;
37037 }
37038 {
37039 PyThreadState* __tstate = wxPyBeginAllowThreads();
37040 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
37041 wxPyEndAllowThreads(__tstate);
37042 if (PyErr_Occurred()) SWIG_fail;
37043 }
37044 {
37045 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37046 }
37047 {
37048 if (temp2)
37049 delete arg2;
37050 }
37051 return resultobj;
37052fail:
37053 {
37054 if (temp2)
37055 delete arg2;
37056 }
37057 return NULL;
d14a1e28
RD
37058}
37059
37060
0085ce49
RD
37061SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37062 PyObject *resultobj = 0;
37063 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37064 wxString result;
37065 void *argp1 = 0 ;
37066 int res1 = 0 ;
37067 PyObject *swig_obj[1] ;
37068
37069 if (!args) SWIG_fail;
37070 swig_obj[0] = args;
37071 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37072 if (!SWIG_IsOK(res1)) {
37073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37074 }
37075 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37076 {
37077 PyThreadState* __tstate = wxPyBeginAllowThreads();
37078 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
37079 wxPyEndAllowThreads(__tstate);
37080 if (PyErr_Occurred()) SWIG_fail;
37081 }
37082 {
37083#if wxUSE_UNICODE
37084 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37085#else
37086 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37087#endif
37088 }
37089 return resultobj;
37090fail:
37091 return NULL;
37092}
37093
37094
37095SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37096 PyObject *resultobj = 0;
37097 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37098 wxString *arg2 = 0 ;
37099 void *argp1 = 0 ;
37100 int res1 = 0 ;
37101 bool temp2 = false ;
37102 PyObject * obj0 = 0 ;
37103 PyObject * obj1 = 0 ;
37104 char * kwnames[] = {
37105 (char *) "self",(char *) "path", NULL
37106 };
37107
37108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) SWIG_fail;
37109 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37110 if (!SWIG_IsOK(res1)) {
37111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37112 }
37113 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37114 {
37115 arg2 = wxString_in_helper(obj1);
37116 if (arg2 == NULL) SWIG_fail;
37117 temp2 = true;
37118 }
37119 {
37120 PyThreadState* __tstate = wxPyBeginAllowThreads();
37121 (arg1)->SetDefaultPath((wxString const &)*arg2);
37122 wxPyEndAllowThreads(__tstate);
37123 if (PyErr_Occurred()) SWIG_fail;
37124 }
37125 resultobj = SWIG_Py_Void();
37126 {
37127 if (temp2)
37128 delete arg2;
37129 }
37130 return resultobj;
37131fail:
37132 {
37133 if (temp2)
37134 delete arg2;
37135 }
37136 return NULL;
d14a1e28
RD
37137}
37138
37139
0085ce49
RD
37140SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37141 PyObject *resultobj = 0;
37142 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37143 wxString result;
37144 void *argp1 = 0 ;
37145 int res1 = 0 ;
37146 PyObject *swig_obj[1] ;
37147
37148 if (!args) SWIG_fail;
37149 swig_obj[0] = args;
37150 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37151 if (!SWIG_IsOK(res1)) {
37152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37153 }
37154 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37155 {
37156 PyThreadState* __tstate = wxPyBeginAllowThreads();
37157 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
37158 wxPyEndAllowThreads(__tstate);
37159 if (PyErr_Occurred()) SWIG_fail;
37160 }
37161 {
37162#if wxUSE_UNICODE
37163 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37164#else
37165 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37166#endif
37167 }
37168 return resultobj;
37169fail:
37170 return NULL;
d14a1e28
RD
37171}
37172
37173
0085ce49
RD
37174SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37175 PyObject *resultobj = 0;
37176 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37177 wxString result;
37178 void *argp1 = 0 ;
37179 int res1 = 0 ;
37180 PyObject *swig_obj[1] ;
37181
37182 if (!args) SWIG_fail;
37183 swig_obj[0] = args;
37184 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37185 if (!SWIG_IsOK(res1)) {
37186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37187 }
37188 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37189 {
37190 PyThreadState* __tstate = wxPyBeginAllowThreads();
37191 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
37192 wxPyEndAllowThreads(__tstate);
37193 if (PyErr_Occurred()) SWIG_fail;
37194 }
37195 {
37196#if wxUSE_UNICODE
37197 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37198#else
37199 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37200#endif
37201 }
37202 return resultobj;
37203fail:
37204 return NULL;
37205}
37206
37207
37208SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37209 PyObject *resultobj = 0;
37210 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37211 wxString *arg2 = 0 ;
37212 void *argp1 = 0 ;
37213 int res1 = 0 ;
37214 bool temp2 = false ;
37215 PyObject * obj0 = 0 ;
37216 PyObject * obj1 = 0 ;
37217 char * kwnames[] = {
37218 (char *) "self",(char *) "path", NULL
37219 };
37220
37221 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
37222 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37223 if (!SWIG_IsOK(res1)) {
37224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37225 }
37226 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37227 {
37228 arg2 = wxString_in_helper(obj1);
37229 if (arg2 == NULL) SWIG_fail;
37230 temp2 = true;
37231 }
37232 {
37233 PyThreadState* __tstate = wxPyBeginAllowThreads();
37234 (arg1)->SetPath((wxString const &)*arg2);
37235 wxPyEndAllowThreads(__tstate);
37236 if (PyErr_Occurred()) SWIG_fail;
37237 }
37238 resultobj = SWIG_Py_Void();
37239 {
37240 if (temp2)
37241 delete arg2;
37242 }
37243 return resultobj;
37244fail:
37245 {
37246 if (temp2)
37247 delete arg2;
37248 }
37249 return NULL;
37250}
37251
37252
37253SWIGINTERN PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37254 PyObject *resultobj = 0;
37255 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37256 bool arg2 ;
37257 void *argp1 = 0 ;
37258 int res1 = 0 ;
37259 bool val2 ;
37260 int ecode2 = 0 ;
37261 PyObject * obj0 = 0 ;
37262 PyObject * obj1 = 0 ;
37263 char * kwnames[] = {
37264 (char *) "self",(char *) "show", NULL
37265 };
37266
37267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) SWIG_fail;
37268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37269 if (!SWIG_IsOK(res1)) {
37270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37271 }
37272 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37273 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37274 if (!SWIG_IsOK(ecode2)) {
37275 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "2"" of type '" "bool""'");
37276 }
37277 arg2 = static_cast< bool >(val2);
37278 {
37279 PyThreadState* __tstate = wxPyBeginAllowThreads();
37280 (arg1)->ShowHidden(arg2);
37281 wxPyEndAllowThreads(__tstate);
37282 if (PyErr_Occurred()) SWIG_fail;
37283 }
37284 resultobj = SWIG_Py_Void();
37285 return resultobj;
37286fail:
37287 return NULL;
d14a1e28
RD
37288}
37289
37290
0085ce49
RD
37291SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37292 PyObject *resultobj = 0;
37293 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37294 bool result;
37295 void *argp1 = 0 ;
37296 int res1 = 0 ;
37297 PyObject *swig_obj[1] ;
37298
37299 if (!args) SWIG_fail;
37300 swig_obj[0] = args;
37301 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37302 if (!SWIG_IsOK(res1)) {
37303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37304 }
37305 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37306 {
37307 PyThreadState* __tstate = wxPyBeginAllowThreads();
37308 result = (bool)(arg1)->GetShowHidden();
37309 wxPyEndAllowThreads(__tstate);
37310 if (PyErr_Occurred()) SWIG_fail;
37311 }
37312 {
37313 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37314 }
37315 return resultobj;
37316fail:
37317 return NULL;
d14a1e28
RD
37318}
37319
37320
0085ce49
RD
37321SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37322 PyObject *resultobj = 0;
37323 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37324 wxString result;
37325 void *argp1 = 0 ;
37326 int res1 = 0 ;
37327 PyObject *swig_obj[1] ;
37328
37329 if (!args) SWIG_fail;
37330 swig_obj[0] = args;
37331 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37332 if (!SWIG_IsOK(res1)) {
37333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37334 }
37335 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37336 {
37337 PyThreadState* __tstate = wxPyBeginAllowThreads();
37338 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
37339 wxPyEndAllowThreads(__tstate);
37340 if (PyErr_Occurred()) SWIG_fail;
37341 }
37342 {
37343#if wxUSE_UNICODE
37344 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37345#else
37346 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37347#endif
37348 }
37349 return resultobj;
37350fail:
37351 return NULL;
37352}
37353
37354
37355SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37356 PyObject *resultobj = 0;
37357 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37358 wxString *arg2 = 0 ;
37359 void *argp1 = 0 ;
37360 int res1 = 0 ;
37361 bool temp2 = false ;
37362 PyObject * obj0 = 0 ;
37363 PyObject * obj1 = 0 ;
37364 char * kwnames[] = {
37365 (char *) "self",(char *) "filter", NULL
37366 };
37367
37368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) SWIG_fail;
37369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37370 if (!SWIG_IsOK(res1)) {
37371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37372 }
37373 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37374 {
37375 arg2 = wxString_in_helper(obj1);
37376 if (arg2 == NULL) SWIG_fail;
37377 temp2 = true;
37378 }
37379 {
37380 PyThreadState* __tstate = wxPyBeginAllowThreads();
37381 (arg1)->SetFilter((wxString const &)*arg2);
37382 wxPyEndAllowThreads(__tstate);
37383 if (PyErr_Occurred()) SWIG_fail;
37384 }
37385 resultobj = SWIG_Py_Void();
37386 {
37387 if (temp2)
37388 delete arg2;
37389 }
37390 return resultobj;
37391fail:
37392 {
37393 if (temp2)
37394 delete arg2;
37395 }
37396 return NULL;
d14a1e28
RD
37397}
37398
37399
0085ce49
RD
37400SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37401 PyObject *resultobj = 0;
37402 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37403 int result;
37404 void *argp1 = 0 ;
37405 int res1 = 0 ;
37406 PyObject *swig_obj[1] ;
37407
37408 if (!args) SWIG_fail;
37409 swig_obj[0] = args;
37410 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37411 if (!SWIG_IsOK(res1)) {
37412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37413 }
37414 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37415 {
37416 PyThreadState* __tstate = wxPyBeginAllowThreads();
37417 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
37418 wxPyEndAllowThreads(__tstate);
37419 if (PyErr_Occurred()) SWIG_fail;
37420 }
37421 resultobj = SWIG_From_int(static_cast< int >(result));
37422 return resultobj;
37423fail:
37424 return NULL;
37425}
37426
37427
37428SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37429 PyObject *resultobj = 0;
37430 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37431 int arg2 ;
37432 void *argp1 = 0 ;
37433 int res1 = 0 ;
37434 int val2 ;
37435 int ecode2 = 0 ;
37436 PyObject * obj0 = 0 ;
37437 PyObject * obj1 = 0 ;
37438 char * kwnames[] = {
37439 (char *) "self",(char *) "n", NULL
37440 };
37441
37442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail;
37443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37444 if (!SWIG_IsOK(res1)) {
37445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37446 }
37447 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37448 ecode2 = SWIG_AsVal_int(obj1, &val2);
37449 if (!SWIG_IsOK(ecode2)) {
37450 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "2"" of type '" "int""'");
37451 }
37452 arg2 = static_cast< int >(val2);
37453 {
37454 PyThreadState* __tstate = wxPyBeginAllowThreads();
37455 (arg1)->SetFilterIndex(arg2);
37456 wxPyEndAllowThreads(__tstate);
37457 if (PyErr_Occurred()) SWIG_fail;
37458 }
37459 resultobj = SWIG_Py_Void();
37460 return resultobj;
37461fail:
37462 return NULL;
d14a1e28
RD
37463}
37464
37465
0085ce49
RD
37466SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37467 PyObject *resultobj = 0;
37468 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37469 wxTreeItemId result;
37470 void *argp1 = 0 ;
37471 int res1 = 0 ;
37472 PyObject *swig_obj[1] ;
37473
37474 if (!args) SWIG_fail;
37475 swig_obj[0] = args;
37476 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37477 if (!SWIG_IsOK(res1)) {
37478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetRootId" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37479 }
37480 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37481 {
37482 PyThreadState* __tstate = wxPyBeginAllowThreads();
37483 result = (arg1)->GetRootId();
37484 wxPyEndAllowThreads(__tstate);
37485 if (PyErr_Occurred()) SWIG_fail;
37486 }
37487 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37488 return resultobj;
37489fail:
37490 return NULL;
d14a1e28
RD
37491}
37492
37493
0085ce49
RD
37494SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37495 PyObject *resultobj = 0;
37496 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37497 wxPyTreeCtrl *result = 0 ;
37498 void *argp1 = 0 ;
37499 int res1 = 0 ;
37500 PyObject *swig_obj[1] ;
37501
37502 if (!args) SWIG_fail;
37503 swig_obj[0] = args;
37504 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37505 if (!SWIG_IsOK(res1)) {
37506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetTreeCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37507 }
37508 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37509 {
37510 PyThreadState* __tstate = wxPyBeginAllowThreads();
37511 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
37512 wxPyEndAllowThreads(__tstate);
37513 if (PyErr_Occurred()) SWIG_fail;
37514 }
37515 {
37516 resultobj = wxPyMake_wxObject(result, 0);
37517 }
37518 return resultobj;
37519fail:
37520 return NULL;
d14a1e28
RD
37521}
37522
37523
0085ce49
RD
37524SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37525 PyObject *resultobj = 0;
37526 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37527 wxDirFilterListCtrl *result = 0 ;
37528 void *argp1 = 0 ;
37529 int res1 = 0 ;
37530 PyObject *swig_obj[1] ;
37531
37532 if (!args) SWIG_fail;
37533 swig_obj[0] = args;
37534 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37535 if (!SWIG_IsOK(res1)) {
37536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37537 }
37538 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37539 {
37540 PyThreadState* __tstate = wxPyBeginAllowThreads();
37541 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
37542 wxPyEndAllowThreads(__tstate);
37543 if (PyErr_Occurred()) SWIG_fail;
37544 }
37545 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
37546 return resultobj;
37547fail:
37548 return NULL;
37549}
37550
37551
37552SWIGINTERN PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37553 PyObject *resultobj = 0;
37554 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37555 wxTreeItemId arg2 ;
37556 wxString *arg3 = 0 ;
37557 bool *arg4 = 0 ;
37558 wxTreeItemId result;
37559 void *argp1 = 0 ;
37560 int res1 = 0 ;
37561 void *argp2 ;
37562 int res2 = 0 ;
37563 bool temp3 = false ;
37564 bool temp4 ;
37565 int res4 = SWIG_TMPOBJ ;
37566 PyObject * obj0 = 0 ;
37567 PyObject * obj1 = 0 ;
37568 PyObject * obj2 = 0 ;
37569 char * kwnames[] = {
37570 (char *) "self",(char *) "parentId",(char *) "path", NULL
37571 };
37572
37573 arg4 = &temp4;
37574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37576 if (!SWIG_IsOK(res1)) {
37577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37578 }
37579 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37580 {
37581 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37582 if (!SWIG_IsOK(res2)) {
37583 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
37584 }
37585 if (!argp2) {
37586 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
37587 } else {
37588 wxTreeItemId * temp = reinterpret_cast< wxTreeItemId * >(argp2);
37589 arg2 = *temp;
37590 if (SWIG_IsNewObj(res2)) delete temp;
d14a1e28 37591 }
0085ce49
RD
37592 }
37593 {
37594 arg3 = wxString_in_helper(obj2);
37595 if (arg3 == NULL) SWIG_fail;
37596 temp3 = true;
37597 }
37598 {
37599 PyThreadState* __tstate = wxPyBeginAllowThreads();
37600 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
37601 wxPyEndAllowThreads(__tstate);
37602 if (PyErr_Occurred()) SWIG_fail;
37603 }
37604 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37605 if (SWIG_IsTmpObj(res4)) {
37606 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4)));
37607 } else {
37608 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
37609 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags));
37610 }
37611 {
37612 if (temp3)
37613 delete arg3;
37614 }
37615 return resultobj;
37616fail:
37617 {
37618 if (temp3)
37619 delete arg3;
37620 }
37621 return NULL;
d14a1e28
RD
37622}
37623
37624
0085ce49
RD
37625SWIGINTERN PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37626 PyObject *resultobj = 0;
37627 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37628 void *argp1 = 0 ;
37629 int res1 = 0 ;
37630 PyObject *swig_obj[1] ;
37631
37632 if (!args) SWIG_fail;
37633 swig_obj[0] = args;
37634 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37635 if (!SWIG_IsOK(res1)) {
37636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_DoResize" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37637 }
37638 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37639 {
37640 PyThreadState* __tstate = wxPyBeginAllowThreads();
37641 (arg1)->DoResize();
37642 wxPyEndAllowThreads(__tstate);
37643 if (PyErr_Occurred()) SWIG_fail;
37644 }
37645 resultobj = SWIG_Py_Void();
37646 return resultobj;
37647fail:
37648 return NULL;
d14a1e28
RD
37649}
37650
37651
0085ce49
RD
37652SWIGINTERN PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37653 PyObject *resultobj = 0;
37654 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37655 void *argp1 = 0 ;
37656 int res1 = 0 ;
37657 PyObject *swig_obj[1] ;
37658
37659 if (!args) SWIG_fail;
37660 swig_obj[0] = args;
37661 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37662 if (!SWIG_IsOK(res1)) {
37663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ReCreateTree" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37664 }
37665 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37666 {
37667 PyThreadState* __tstate = wxPyBeginAllowThreads();
37668 (arg1)->ReCreateTree();
37669 wxPyEndAllowThreads(__tstate);
37670 if (PyErr_Occurred()) SWIG_fail;
37671 }
37672 resultobj = SWIG_Py_Void();
37673 return resultobj;
37674fail:
37675 return NULL;
37676}
37677
37678
37679SWIGINTERN PyObject *GenericDirCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37680 PyObject *obj;
37681 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37682 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDirCtrl, SWIG_NewClientData(obj));
37683 return SWIG_Py_Void();
37684}
37685
37686SWIGINTERN PyObject *GenericDirCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37687 return SWIG_Python_InitShadowInstance(args);
37688}
37689
37690SWIGINTERN PyObject *_wrap_new_DirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37691 PyObject *resultobj = 0;
37692 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37693 int arg2 = (int) (int)-1 ;
37694 wxPoint const &arg3_defvalue = wxDefaultPosition ;
37695 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
37696 wxSize const &arg4_defvalue = wxDefaultSize ;
37697 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
37698 long arg5 = (long) 0 ;
37699 wxDirFilterListCtrl *result = 0 ;
37700 void *argp1 = 0 ;
37701 int res1 = 0 ;
37702 int val2 ;
37703 int ecode2 = 0 ;
37704 wxPoint temp3 ;
37705 wxSize temp4 ;
37706 long val5 ;
37707 int ecode5 = 0 ;
37708 PyObject * obj0 = 0 ;
37709 PyObject * obj1 = 0 ;
37710 PyObject * obj2 = 0 ;
37711 PyObject * obj3 = 0 ;
37712 PyObject * obj4 = 0 ;
37713 char * kwnames[] = {
37714 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
37715 };
37716
37717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37719 if (!SWIG_IsOK(res1)) {
37720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37721 }
37722 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37723 if (obj1) {
37724 ecode2 = SWIG_AsVal_int(obj1, &val2);
37725 if (!SWIG_IsOK(ecode2)) {
37726 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirFilterListCtrl" "', expected argument " "2"" of type '" "int""'");
37727 }
37728 arg2 = static_cast< int >(val2);
37729 }
37730 if (obj2) {
d14a1e28 37731 {
0085ce49
RD
37732 arg3 = &temp3;
37733 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 37734 }
0085ce49
RD
37735 }
37736 if (obj3) {
d14a1e28 37737 {
0085ce49
RD
37738 arg4 = &temp4;
37739 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 37740 }
0085ce49
RD
37741 }
37742 if (obj4) {
37743 ecode5 = SWIG_AsVal_long(obj4, &val5);
37744 if (!SWIG_IsOK(ecode5)) {
37745 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DirFilterListCtrl" "', expected argument " "5"" of type '" "long""'");
37746 }
37747 arg5 = static_cast< long >(val5);
37748 }
37749 {
37750 if (!wxPyCheckForApp()) SWIG_fail;
37751 PyThreadState* __tstate = wxPyBeginAllowThreads();
37752 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
37753 wxPyEndAllowThreads(__tstate);
37754 if (PyErr_Occurred()) SWIG_fail;
37755 }
37756 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_NEW | 0 );
37757 return resultobj;
37758fail:
37759 return NULL;
d14a1e28
RD
37760}
37761
37762
0085ce49
RD
37763SWIGINTERN PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37764 PyObject *resultobj = 0;
37765 wxDirFilterListCtrl *result = 0 ;
37766
37767 if (!SWIG_Python_UnpackTuple(args,"new_PreDirFilterListCtrl",0,0,0)) SWIG_fail;
37768 {
37769 if (!wxPyCheckForApp()) SWIG_fail;
37770 PyThreadState* __tstate = wxPyBeginAllowThreads();
37771 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
37772 wxPyEndAllowThreads(__tstate);
37773 if (PyErr_Occurred()) SWIG_fail;
37774 }
37775 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_OWN | 0 );
37776 return resultobj;
37777fail:
37778 return NULL;
37779}
37780
37781
37782SWIGINTERN PyObject *_wrap_DirFilterListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37783 PyObject *resultobj = 0;
37784 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
37785 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
37786 int arg3 = (int) (int)-1 ;
37787 wxPoint const &arg4_defvalue = wxDefaultPosition ;
37788 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
37789 wxSize const &arg5_defvalue = wxDefaultSize ;
37790 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
37791 long arg6 = (long) 0 ;
37792 bool result;
37793 void *argp1 = 0 ;
37794 int res1 = 0 ;
37795 void *argp2 = 0 ;
37796 int res2 = 0 ;
37797 int val3 ;
37798 int ecode3 = 0 ;
37799 wxPoint temp4 ;
37800 wxSize temp5 ;
37801 long val6 ;
37802 int ecode6 = 0 ;
37803 PyObject * obj0 = 0 ;
37804 PyObject * obj1 = 0 ;
37805 PyObject * obj2 = 0 ;
37806 PyObject * obj3 = 0 ;
37807 PyObject * obj4 = 0 ;
37808 PyObject * obj5 = 0 ;
37809 char * kwnames[] = {
37810 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
37811 };
37812
37813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
37814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
37815 if (!SWIG_IsOK(res1)) {
37816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_Create" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
37817 }
37818 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
37819 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37820 if (!SWIG_IsOK(res2)) {
37821 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirFilterListCtrl_Create" "', expected argument " "2"" of type '" "wxGenericDirCtrl *""'");
37822 }
37823 arg2 = reinterpret_cast< wxGenericDirCtrl * >(argp2);
37824 if (obj2) {
37825 ecode3 = SWIG_AsVal_int(obj2, &val3);
37826 if (!SWIG_IsOK(ecode3)) {
37827 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
37828 }
37829 arg3 = static_cast< int >(val3);
37830 }
37831 if (obj3) {
093d3ff1 37832 {
0085ce49
RD
37833 arg4 = &temp4;
37834 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 37835 }
0085ce49
RD
37836 }
37837 if (obj4) {
d14a1e28 37838 {
0085ce49
RD
37839 arg5 = &temp5;
37840 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 37841 }
0085ce49
RD
37842 }
37843 if (obj5) {
37844 ecode6 = SWIG_AsVal_long(obj5, &val6);
37845 if (!SWIG_IsOK(ecode6)) {
37846 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DirFilterListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
37847 }
37848 arg6 = static_cast< long >(val6);
37849 }
37850 {
37851 PyThreadState* __tstate = wxPyBeginAllowThreads();
37852 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
37853 wxPyEndAllowThreads(__tstate);
37854 if (PyErr_Occurred()) SWIG_fail;
37855 }
37856 {
37857 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37858 }
37859 return resultobj;
37860fail:
37861 return NULL;
37862}
37863
37864
37865SWIGINTERN PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37866 PyObject *resultobj = 0;
37867 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
37868 wxString *arg2 = 0 ;
37869 int arg3 ;
37870 void *argp1 = 0 ;
37871 int res1 = 0 ;
37872 bool temp2 = false ;
37873 int val3 ;
37874 int ecode3 = 0 ;
37875 PyObject * obj0 = 0 ;
37876 PyObject * obj1 = 0 ;
37877 PyObject * obj2 = 0 ;
37878 char * kwnames[] = {
37879 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
37880 };
37881
37882 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37883 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
37884 if (!SWIG_IsOK(res1)) {
37885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
37886 }
37887 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
37888 {
37889 arg2 = wxString_in_helper(obj1);
37890 if (arg2 == NULL) SWIG_fail;
37891 temp2 = true;
37892 }
37893 ecode3 = SWIG_AsVal_int(obj2, &val3);
37894 if (!SWIG_IsOK(ecode3)) {
37895 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "3"" of type '" "int""'");
37896 }
37897 arg3 = static_cast< int >(val3);
37898 {
37899 PyThreadState* __tstate = wxPyBeginAllowThreads();
37900 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
37901 wxPyEndAllowThreads(__tstate);
37902 if (PyErr_Occurred()) SWIG_fail;
37903 }
37904 resultobj = SWIG_Py_Void();
37905 {
37906 if (temp2)
37907 delete arg2;
37908 }
37909 return resultobj;
37910fail:
37911 {
37912 if (temp2)
37913 delete arg2;
37914 }
37915 return NULL;
37916}
37917
37918
37919SWIGINTERN PyObject *DirFilterListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37920 PyObject *obj;
37921 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37922 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirFilterListCtrl, SWIG_NewClientData(obj));
37923 return SWIG_Py_Void();
37924}
37925
37926SWIGINTERN PyObject *DirFilterListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37927 return SWIG_Python_InitShadowInstance(args);
37928}
37929
37930SWIGINTERN PyObject *_wrap_new_PyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37931 PyObject *resultobj = 0;
37932 wxWindow *arg1 = (wxWindow *) 0 ;
37933 int arg2 = (int) (int)-1 ;
37934 wxPoint const &arg3_defvalue = wxDefaultPosition ;
37935 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
37936 wxSize const &arg4_defvalue = wxDefaultSize ;
37937 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
37938 long arg5 = (long) 0 ;
37939 wxValidator const &arg6_defvalue = wxDefaultValidator ;
37940 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
37941 wxString const &arg7_defvalue = wxPyControlNameStr ;
37942 wxString *arg7 = (wxString *) &arg7_defvalue ;
37943 wxPyControl *result = 0 ;
37944 void *argp1 = 0 ;
37945 int res1 = 0 ;
37946 int val2 ;
37947 int ecode2 = 0 ;
37948 wxPoint temp3 ;
37949 wxSize temp4 ;
37950 long val5 ;
37951 int ecode5 = 0 ;
37952 void *argp6 = 0 ;
37953 int res6 = 0 ;
37954 bool temp7 = false ;
37955 PyObject * obj0 = 0 ;
37956 PyObject * obj1 = 0 ;
37957 PyObject * obj2 = 0 ;
37958 PyObject * obj3 = 0 ;
37959 PyObject * obj4 = 0 ;
37960 PyObject * obj5 = 0 ;
37961 PyObject * obj6 = 0 ;
37962 char * kwnames[] = {
37963 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
37964 };
37965
37966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
37967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37968 if (!SWIG_IsOK(res1)) {
37969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyControl" "', expected argument " "1"" of type '" "wxWindow *""'");
37970 }
37971 arg1 = reinterpret_cast< wxWindow * >(argp1);
37972 if (obj1) {
37973 ecode2 = SWIG_AsVal_int(obj1, &val2);
37974 if (!SWIG_IsOK(ecode2)) {
37975 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyControl" "', expected argument " "2"" of type '" "int""'");
37976 }
37977 arg2 = static_cast< int >(val2);
37978 }
37979 if (obj2) {
093d3ff1 37980 {
0085ce49
RD
37981 arg3 = &temp3;
37982 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 37983 }
0085ce49
RD
37984 }
37985 if (obj3) {
d14a1e28 37986 {
0085ce49
RD
37987 arg4 = &temp4;
37988 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 37989 }
0085ce49
RD
37990 }
37991 if (obj4) {
37992 ecode5 = SWIG_AsVal_long(obj4, &val5);
37993 if (!SWIG_IsOK(ecode5)) {
37994 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyControl" "', expected argument " "5"" of type '" "long""'");
37995 }
37996 arg5 = static_cast< long >(val5);
37997 }
37998 if (obj5) {
37999 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
38000 if (!SWIG_IsOK(res6)) {
38001 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
38002 }
38003 if (!argp6) {
38004 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d14a1e28 38005 }
0085ce49
RD
38006 arg6 = reinterpret_cast< wxValidator * >(argp6);
38007 }
38008 if (obj6) {
d14a1e28 38009 {
0085ce49
RD
38010 arg7 = wxString_in_helper(obj6);
38011 if (arg7 == NULL) SWIG_fail;
38012 temp7 = true;
d14a1e28 38013 }
0085ce49
RD
38014 }
38015 {
38016 if (!wxPyCheckForApp()) SWIG_fail;
38017 PyThreadState* __tstate = wxPyBeginAllowThreads();
38018 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
38019 wxPyEndAllowThreads(__tstate);
38020 if (PyErr_Occurred()) SWIG_fail;
38021 }
38022 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_NEW | 0 );
38023 {
38024 if (temp7)
38025 delete arg7;
38026 }
38027 return resultobj;
38028fail:
38029 {
38030 if (temp7)
38031 delete arg7;
38032 }
38033 return NULL;
d14a1e28
RD
38034}
38035
38036
0085ce49
RD
38037SWIGINTERN PyObject *_wrap_new_PrePyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38038 PyObject *resultobj = 0;
38039 wxPyControl *result = 0 ;
38040
38041 if (!SWIG_Python_UnpackTuple(args,"new_PrePyControl",0,0,0)) SWIG_fail;
38042 {
38043 if (!wxPyCheckForApp()) SWIG_fail;
38044 PyThreadState* __tstate = wxPyBeginAllowThreads();
38045 result = (wxPyControl *)new wxPyControl();
38046 wxPyEndAllowThreads(__tstate);
38047 if (PyErr_Occurred()) SWIG_fail;
38048 }
38049 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_OWN | 0 );
38050 return resultobj;
38051fail:
38052 return NULL;
38053}
38054
38055
38056SWIGINTERN PyObject *_wrap_PyControl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38057 PyObject *resultobj = 0;
38058 wxPyControl *arg1 = (wxPyControl *) 0 ;
38059 PyObject *arg2 = (PyObject *) 0 ;
38060 PyObject *arg3 = (PyObject *) 0 ;
38061 void *argp1 = 0 ;
38062 int res1 = 0 ;
38063 PyObject * obj0 = 0 ;
38064 PyObject * obj1 = 0 ;
38065 PyObject * obj2 = 0 ;
38066 char * kwnames[] = {
38067 (char *) "self",(char *) "self",(char *) "_class", NULL
38068 };
38069
38070 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38071 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38072 if (!SWIG_IsOK(res1)) {
38073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyControl *""'");
38074 }
38075 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38076 arg2 = obj1;
38077 arg3 = obj2;
38078 {
38079 PyThreadState* __tstate = wxPyBeginAllowThreads();
38080 (arg1)->_setCallbackInfo(arg2,arg3);
38081 wxPyEndAllowThreads(__tstate);
38082 if (PyErr_Occurred()) SWIG_fail;
38083 }
38084 resultobj = SWIG_Py_Void();
38085 return resultobj;
38086fail:
38087 return NULL;
38088}
38089
38090
38091SWIGINTERN PyObject *_wrap_PyControl_SetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38092 PyObject *resultobj = 0;
38093 wxPyControl *arg1 = (wxPyControl *) 0 ;
38094 wxSize *arg2 = 0 ;
38095 void *argp1 = 0 ;
38096 int res1 = 0 ;
38097 wxSize temp2 ;
38098 PyObject * obj0 = 0 ;
38099 PyObject * obj1 = 0 ;
38100 char * kwnames[] = {
38101 (char *) "self",(char *) "size", NULL
38102 };
38103
38104 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
38105 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38106 if (!SWIG_IsOK(res1)) {
38107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_SetBestSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38108 }
38109 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38110 {
38111 arg2 = &temp2;
38112 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
38113 }
38114 {
38115 PyThreadState* __tstate = wxPyBeginAllowThreads();
38116 (arg1)->SetBestSize((wxSize const &)*arg2);
38117 wxPyEndAllowThreads(__tstate);
38118 if (PyErr_Occurred()) SWIG_fail;
38119 }
38120 resultobj = SWIG_Py_Void();
38121 return resultobj;
38122fail:
38123 return NULL;
38124}
38125
38126
38127SWIGINTERN PyObject *_wrap_PyControl_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38128 PyObject *resultobj = 0;
38129 wxPyControl *arg1 = (wxPyControl *) 0 ;
38130 wxDC *arg2 = (wxDC *) 0 ;
38131 bool result;
38132 void *argp1 = 0 ;
38133 int res1 = 0 ;
38134 void *argp2 = 0 ;
38135 int res2 = 0 ;
38136 PyObject * obj0 = 0 ;
38137 PyObject * obj1 = 0 ;
38138 char * kwnames[] = {
38139 (char *) "self",(char *) "dc", NULL
38140 };
38141
38142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38144 if (!SWIG_IsOK(res1)) {
38145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyControl *""'");
38146 }
38147 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38148 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
38149 if (!SWIG_IsOK(res2)) {
38150 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyControl_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'");
38151 }
38152 arg2 = reinterpret_cast< wxDC * >(argp2);
38153 {
38154 PyThreadState* __tstate = wxPyBeginAllowThreads();
38155 result = (bool)(arg1)->DoEraseBackground(arg2);
38156 wxPyEndAllowThreads(__tstate);
38157 if (PyErr_Occurred()) SWIG_fail;
38158 }
38159 {
38160 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38161 }
38162 return resultobj;
38163fail:
38164 return NULL;
38165}
38166
38167
38168SWIGINTERN PyObject *_wrap_PyControl_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38169 PyObject *resultobj = 0;
38170 wxPyControl *arg1 = (wxPyControl *) 0 ;
38171 int arg2 ;
38172 int arg3 ;
38173 int arg4 ;
38174 int arg5 ;
38175 void *argp1 = 0 ;
38176 int res1 = 0 ;
38177 int val2 ;
38178 int ecode2 = 0 ;
38179 int val3 ;
38180 int ecode3 = 0 ;
38181 int val4 ;
38182 int ecode4 = 0 ;
38183 int val5 ;
38184 int ecode5 = 0 ;
38185 PyObject * obj0 = 0 ;
38186 PyObject * obj1 = 0 ;
38187 PyObject * obj2 = 0 ;
38188 PyObject * obj3 = 0 ;
38189 PyObject * obj4 = 0 ;
38190 char * kwnames[] = {
38191 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
38192 };
38193
38194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38196 if (!SWIG_IsOK(res1)) {
38197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyControl *""'");
38198 }
38199 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38200 ecode2 = SWIG_AsVal_int(obj1, &val2);
38201 if (!SWIG_IsOK(ecode2)) {
38202 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoMoveWindow" "', expected argument " "2"" of type '" "int""'");
38203 }
38204 arg2 = static_cast< int >(val2);
38205 ecode3 = SWIG_AsVal_int(obj2, &val3);
38206 if (!SWIG_IsOK(ecode3)) {
38207 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoMoveWindow" "', expected argument " "3"" of type '" "int""'");
38208 }
38209 arg3 = static_cast< int >(val3);
38210 ecode4 = SWIG_AsVal_int(obj3, &val4);
38211 if (!SWIG_IsOK(ecode4)) {
38212 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoMoveWindow" "', expected argument " "4"" of type '" "int""'");
38213 }
38214 arg4 = static_cast< int >(val4);
38215 ecode5 = SWIG_AsVal_int(obj4, &val5);
38216 if (!SWIG_IsOK(ecode5)) {
38217 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoMoveWindow" "', expected argument " "5"" of type '" "int""'");
38218 }
38219 arg5 = static_cast< int >(val5);
38220 {
38221 PyThreadState* __tstate = wxPyBeginAllowThreads();
38222 (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5);
38223 wxPyEndAllowThreads(__tstate);
38224 if (PyErr_Occurred()) SWIG_fail;
38225 }
38226 resultobj = SWIG_Py_Void();
38227 return resultobj;
38228fail:
38229 return NULL;
38230}
38231
38232
38233SWIGINTERN PyObject *_wrap_PyControl_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38234 PyObject *resultobj = 0;
38235 wxPyControl *arg1 = (wxPyControl *) 0 ;
38236 int arg2 ;
38237 int arg3 ;
38238 int arg4 ;
38239 int arg5 ;
38240 int arg6 = (int) wxSIZE_AUTO ;
38241 void *argp1 = 0 ;
38242 int res1 = 0 ;
38243 int val2 ;
38244 int ecode2 = 0 ;
38245 int val3 ;
38246 int ecode3 = 0 ;
38247 int val4 ;
38248 int ecode4 = 0 ;
38249 int val5 ;
38250 int ecode5 = 0 ;
38251 int val6 ;
38252 int ecode6 = 0 ;
38253 PyObject * obj0 = 0 ;
38254 PyObject * obj1 = 0 ;
38255 PyObject * obj2 = 0 ;
38256 PyObject * obj3 = 0 ;
38257 PyObject * obj4 = 0 ;
38258 PyObject * obj5 = 0 ;
38259 char * kwnames[] = {
38260 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
38261 };
38262
38263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38265 if (!SWIG_IsOK(res1)) {
38266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38267 }
38268 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38269 ecode2 = SWIG_AsVal_int(obj1, &val2);
38270 if (!SWIG_IsOK(ecode2)) {
38271 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetSize" "', expected argument " "2"" of type '" "int""'");
38272 }
38273 arg2 = static_cast< int >(val2);
38274 ecode3 = SWIG_AsVal_int(obj2, &val3);
38275 if (!SWIG_IsOK(ecode3)) {
38276 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetSize" "', expected argument " "3"" of type '" "int""'");
38277 }
38278 arg3 = static_cast< int >(val3);
38279 ecode4 = SWIG_AsVal_int(obj3, &val4);
38280 if (!SWIG_IsOK(ecode4)) {
38281 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoSetSize" "', expected argument " "4"" of type '" "int""'");
38282 }
38283 arg4 = static_cast< int >(val4);
38284 ecode5 = SWIG_AsVal_int(obj4, &val5);
38285 if (!SWIG_IsOK(ecode5)) {
38286 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoSetSize" "', expected argument " "5"" of type '" "int""'");
38287 }
38288 arg5 = static_cast< int >(val5);
38289 if (obj5) {
38290 ecode6 = SWIG_AsVal_int(obj5, &val6);
38291 if (!SWIG_IsOK(ecode6)) {
38292 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyControl_DoSetSize" "', expected argument " "6"" of type '" "int""'");
38293 }
38294 arg6 = static_cast< int >(val6);
38295 }
38296 {
38297 PyThreadState* __tstate = wxPyBeginAllowThreads();
38298 (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6);
38299 wxPyEndAllowThreads(__tstate);
38300 if (PyErr_Occurred()) SWIG_fail;
38301 }
38302 resultobj = SWIG_Py_Void();
38303 return resultobj;
38304fail:
38305 return NULL;
38306}
38307
38308
38309SWIGINTERN PyObject *_wrap_PyControl_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38310 PyObject *resultobj = 0;
38311 wxPyControl *arg1 = (wxPyControl *) 0 ;
38312 int arg2 ;
38313 int arg3 ;
38314 void *argp1 = 0 ;
38315 int res1 = 0 ;
38316 int val2 ;
38317 int ecode2 = 0 ;
38318 int val3 ;
38319 int ecode3 = 0 ;
38320 PyObject * obj0 = 0 ;
38321 PyObject * obj1 = 0 ;
38322 PyObject * obj2 = 0 ;
38323 char * kwnames[] = {
38324 (char *) "self",(char *) "width",(char *) "height", NULL
38325 };
38326
38327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38329 if (!SWIG_IsOK(res1)) {
38330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38331 }
38332 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38333 ecode2 = SWIG_AsVal_int(obj1, &val2);
38334 if (!SWIG_IsOK(ecode2)) {
38335 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetClientSize" "', expected argument " "2"" of type '" "int""'");
38336 }
38337 arg2 = static_cast< int >(val2);
38338 ecode3 = SWIG_AsVal_int(obj2, &val3);
38339 if (!SWIG_IsOK(ecode3)) {
38340 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetClientSize" "', expected argument " "3"" of type '" "int""'");
38341 }
38342 arg3 = static_cast< int >(val3);
38343 {
38344 PyThreadState* __tstate = wxPyBeginAllowThreads();
38345 (arg1)->DoSetClientSize(arg2,arg3);
38346 wxPyEndAllowThreads(__tstate);
38347 if (PyErr_Occurred()) SWIG_fail;
38348 }
38349 resultobj = SWIG_Py_Void();
38350 return resultobj;
38351fail:
38352 return NULL;
38353}
38354
38355
38356SWIGINTERN PyObject *_wrap_PyControl_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38357 PyObject *resultobj = 0;
38358 wxPyControl *arg1 = (wxPyControl *) 0 ;
38359 int arg2 ;
38360 int arg3 ;
38361 void *argp1 = 0 ;
38362 int res1 = 0 ;
38363 int val2 ;
38364 int ecode2 = 0 ;
38365 int val3 ;
38366 int ecode3 = 0 ;
38367 PyObject * obj0 = 0 ;
38368 PyObject * obj1 = 0 ;
38369 PyObject * obj2 = 0 ;
38370 char * kwnames[] = {
38371 (char *) "self",(char *) "x",(char *) "y", NULL
38372 };
38373
38374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38376 if (!SWIG_IsOK(res1)) {
38377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38378 }
38379 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38380 ecode2 = SWIG_AsVal_int(obj1, &val2);
38381 if (!SWIG_IsOK(ecode2)) {
38382 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'");
38383 }
38384 arg2 = static_cast< int >(val2);
38385 ecode3 = SWIG_AsVal_int(obj2, &val3);
38386 if (!SWIG_IsOK(ecode3)) {
38387 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'");
38388 }
38389 arg3 = static_cast< int >(val3);
38390 {
38391 PyThreadState* __tstate = wxPyBeginAllowThreads();
38392 (arg1)->DoSetVirtualSize(arg2,arg3);
38393 wxPyEndAllowThreads(__tstate);
38394 if (PyErr_Occurred()) SWIG_fail;
38395 }
38396 resultobj = SWIG_Py_Void();
38397 return resultobj;
38398fail:
38399 return NULL;
38400}
38401
38402
38403SWIGINTERN PyObject *_wrap_PyControl_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38404 PyObject *resultobj = 0;
38405 wxPyControl *arg1 = (wxPyControl *) 0 ;
38406 int *arg2 = (int *) 0 ;
38407 int *arg3 = (int *) 0 ;
38408 void *argp1 = 0 ;
38409 int res1 = 0 ;
38410 int temp2 ;
38411 int res2 = SWIG_TMPOBJ ;
38412 int temp3 ;
38413 int res3 = SWIG_TMPOBJ ;
38414 PyObject *swig_obj[1] ;
38415
38416 arg2 = &temp2;
38417 arg3 = &temp3;
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_DoGetSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38423 }
38424 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38425 {
38426 PyThreadState* __tstate = wxPyBeginAllowThreads();
38427 ((wxPyControl const *)arg1)->DoGetSize(arg2,arg3);
38428 wxPyEndAllowThreads(__tstate);
38429 if (PyErr_Occurred()) SWIG_fail;
38430 }
38431 resultobj = SWIG_Py_Void();
38432 if (SWIG_IsTmpObj(res2)) {
38433 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38434 } else {
38435 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38436 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38437 }
38438 if (SWIG_IsTmpObj(res3)) {
38439 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38440 } else {
38441 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38442 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38443 }
38444 return resultobj;
38445fail:
38446 return NULL;
38447}
38448
38449
38450SWIGINTERN PyObject *_wrap_PyControl_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38451 PyObject *resultobj = 0;
38452 wxPyControl *arg1 = (wxPyControl *) 0 ;
38453 int *arg2 = (int *) 0 ;
38454 int *arg3 = (int *) 0 ;
38455 void *argp1 = 0 ;
38456 int res1 = 0 ;
38457 int temp2 ;
38458 int res2 = SWIG_TMPOBJ ;
38459 int temp3 ;
38460 int res3 = SWIG_TMPOBJ ;
38461 PyObject *swig_obj[1] ;
38462
38463 arg2 = &temp2;
38464 arg3 = &temp3;
38465 if (!args) SWIG_fail;
38466 swig_obj[0] = args;
38467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38468 if (!SWIG_IsOK(res1)) {
38469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38470 }
38471 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38472 {
38473 PyThreadState* __tstate = wxPyBeginAllowThreads();
38474 ((wxPyControl const *)arg1)->DoGetClientSize(arg2,arg3);
38475 wxPyEndAllowThreads(__tstate);
38476 if (PyErr_Occurred()) SWIG_fail;
38477 }
38478 resultobj = SWIG_Py_Void();
38479 if (SWIG_IsTmpObj(res2)) {
38480 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38481 } else {
38482 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38483 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38484 }
38485 if (SWIG_IsTmpObj(res3)) {
38486 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38487 } else {
38488 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38489 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38490 }
38491 return resultobj;
38492fail:
38493 return NULL;
38494}
38495
38496
38497SWIGINTERN PyObject *_wrap_PyControl_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38498 PyObject *resultobj = 0;
38499 wxPyControl *arg1 = (wxPyControl *) 0 ;
38500 int *arg2 = (int *) 0 ;
38501 int *arg3 = (int *) 0 ;
38502 void *argp1 = 0 ;
38503 int res1 = 0 ;
38504 int temp2 ;
38505 int res2 = SWIG_TMPOBJ ;
38506 int temp3 ;
38507 int res3 = SWIG_TMPOBJ ;
38508 PyObject *swig_obj[1] ;
38509
38510 arg2 = &temp2;
38511 arg3 = &temp3;
38512 if (!args) SWIG_fail;
38513 swig_obj[0] = args;
38514 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38515 if (!SWIG_IsOK(res1)) {
38516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetPosition" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38517 }
38518 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38519 {
38520 PyThreadState* __tstate = wxPyBeginAllowThreads();
38521 ((wxPyControl const *)arg1)->DoGetPosition(arg2,arg3);
38522 wxPyEndAllowThreads(__tstate);
38523 if (PyErr_Occurred()) SWIG_fail;
38524 }
38525 resultobj = SWIG_Py_Void();
38526 if (SWIG_IsTmpObj(res2)) {
38527 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38528 } else {
38529 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38530 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38531 }
38532 if (SWIG_IsTmpObj(res3)) {
38533 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38534 } else {
38535 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38536 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38537 }
38538 return resultobj;
38539fail:
38540 return NULL;
d14a1e28
RD
38541}
38542
38543
0085ce49
RD
38544SWIGINTERN PyObject *_wrap_PyControl_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38545 PyObject *resultobj = 0;
38546 wxPyControl *arg1 = (wxPyControl *) 0 ;
38547 wxSize result;
38548 void *argp1 = 0 ;
38549 int res1 = 0 ;
38550 PyObject *swig_obj[1] ;
38551
38552 if (!args) SWIG_fail;
38553 swig_obj[0] = args;
38554 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38555 if (!SWIG_IsOK(res1)) {
38556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38557 }
38558 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38559 {
38560 PyThreadState* __tstate = wxPyBeginAllowThreads();
38561 result = ((wxPyControl const *)arg1)->DoGetVirtualSize();
38562 wxPyEndAllowThreads(__tstate);
38563 if (PyErr_Occurred()) SWIG_fail;
38564 }
38565 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
38566 return resultobj;
38567fail:
38568 return NULL;
d14a1e28
RD
38569}
38570
38571
0085ce49
RD
38572SWIGINTERN PyObject *_wrap_PyControl_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38573 PyObject *resultobj = 0;
38574 wxPyControl *arg1 = (wxPyControl *) 0 ;
38575 wxSize result;
38576 void *argp1 = 0 ;
38577 int res1 = 0 ;
38578 PyObject *swig_obj[1] ;
38579
38580 if (!args) SWIG_fail;
38581 swig_obj[0] = args;
38582 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38583 if (!SWIG_IsOK(res1)) {
38584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38585 }
38586 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38587 {
38588 PyThreadState* __tstate = wxPyBeginAllowThreads();
38589 result = ((wxPyControl const *)arg1)->DoGetBestSize();
38590 wxPyEndAllowThreads(__tstate);
38591 if (PyErr_Occurred()) SWIG_fail;
38592 }
38593 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
38594 return resultobj;
38595fail:
38596 return NULL;
d14a1e28
RD
38597}
38598
38599
0085ce49
RD
38600SWIGINTERN PyObject *_wrap_PyControl_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38601 PyObject *resultobj = 0;
38602 wxPyControl *arg1 = (wxPyControl *) 0 ;
38603 SwigValueWrapper<wxVisualAttributes > result;
38604 void *argp1 = 0 ;
38605 int res1 = 0 ;
38606 PyObject *swig_obj[1] ;
38607
38608 if (!args) SWIG_fail;
38609 swig_obj[0] = args;
38610 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38611 if (!SWIG_IsOK(res1)) {
38612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyControl *""'");
38613 }
38614 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38615 {
38616 PyThreadState* __tstate = wxPyBeginAllowThreads();
38617 result = (arg1)->GetDefaultAttributes();
38618 wxPyEndAllowThreads(__tstate);
38619 if (PyErr_Occurred()) SWIG_fail;
38620 }
38621 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
38622 return resultobj;
38623fail:
38624 return NULL;
d14a1e28
RD
38625}
38626
38627
0085ce49
RD
38628SWIGINTERN PyObject *_wrap_PyControl_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38629 PyObject *resultobj = 0;
38630 wxPyControl *arg1 = (wxPyControl *) 0 ;
38631 void *argp1 = 0 ;
38632 int res1 = 0 ;
38633 PyObject *swig_obj[1] ;
38634
38635 if (!args) SWIG_fail;
38636 swig_obj[0] = args;
38637 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38638 if (!SWIG_IsOK(res1)) {
38639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyControl *""'");
38640 }
38641 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38642 {
38643 PyThreadState* __tstate = wxPyBeginAllowThreads();
38644 (arg1)->OnInternalIdle();
38645 wxPyEndAllowThreads(__tstate);
38646 if (PyErr_Occurred()) SWIG_fail;
38647 }
38648 resultobj = SWIG_Py_Void();
38649 return resultobj;
38650fail:
38651 return NULL;
38652}
38653
38654
38655SWIGINTERN PyObject *PyControl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38656 PyObject *obj;
38657 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38658 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyControl, SWIG_NewClientData(obj));
38659 return SWIG_Py_Void();
38660}
38661
38662SWIGINTERN PyObject *PyControl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38663 return SWIG_Python_InitShadowInstance(args);
38664}
38665
38666SWIGINTERN PyObject *_wrap_new_HelpEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38667 PyObject *resultobj = 0;
38668 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
38669 int arg2 = (int) 0 ;
38670 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38671 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38672 wxHelpEvent *result = 0 ;
38673 int val1 ;
38674 int ecode1 = 0 ;
38675 int val2 ;
38676 int ecode2 = 0 ;
38677 wxPoint temp3 ;
38678 PyObject * obj0 = 0 ;
38679 PyObject * obj1 = 0 ;
38680 PyObject * obj2 = 0 ;
38681 char * kwnames[] = {
38682 (char *) "type",(char *) "winid",(char *) "pt", NULL
38683 };
38684
38685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38686 if (obj0) {
38687 ecode1 = SWIG_AsVal_int(obj0, &val1);
38688 if (!SWIG_IsOK(ecode1)) {
38689 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HelpEvent" "', expected argument " "1"" of type '" "wxEventType""'");
38690 }
38691 arg1 = static_cast< wxEventType >(val1);
38692 }
38693 if (obj1) {
38694 ecode2 = SWIG_AsVal_int(obj1, &val2);
38695 if (!SWIG_IsOK(ecode2)) {
38696 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HelpEvent" "', expected argument " "2"" of type '" "int""'");
38697 }
38698 arg2 = static_cast< int >(val2);
38699 }
38700 if (obj2) {
d14a1e28 38701 {
0085ce49
RD
38702 arg3 = &temp3;
38703 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 38704 }
0085ce49
RD
38705 }
38706 {
38707 PyThreadState* __tstate = wxPyBeginAllowThreads();
38708 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3);
38709 wxPyEndAllowThreads(__tstate);
38710 if (PyErr_Occurred()) SWIG_fail;
38711 }
38712 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_NEW | 0 );
38713 return resultobj;
38714fail:
38715 return NULL;
d14a1e28
RD
38716}
38717
38718
0085ce49
RD
38719SWIGINTERN PyObject *_wrap_HelpEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38720 PyObject *resultobj = 0;
38721 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38722 wxPoint result;
38723 void *argp1 = 0 ;
38724 int res1 = 0 ;
38725 PyObject *swig_obj[1] ;
38726
38727 if (!args) SWIG_fail;
38728 swig_obj[0] = args;
38729 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38730 if (!SWIG_IsOK(res1)) {
38731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetPosition" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
38732 }
38733 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38734 {
38735 PyThreadState* __tstate = wxPyBeginAllowThreads();
38736 result = ((wxHelpEvent const *)arg1)->GetPosition();
38737 wxPyEndAllowThreads(__tstate);
38738 if (PyErr_Occurred()) SWIG_fail;
38739 }
38740 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
38741 return resultobj;
38742fail:
38743 return NULL;
38744}
38745
38746
38747SWIGINTERN PyObject *_wrap_HelpEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38748 PyObject *resultobj = 0;
38749 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38750 wxPoint *arg2 = 0 ;
38751 void *argp1 = 0 ;
38752 int res1 = 0 ;
38753 wxPoint temp2 ;
38754 PyObject * obj0 = 0 ;
38755 PyObject * obj1 = 0 ;
38756 char * kwnames[] = {
38757 (char *) "self",(char *) "pos", NULL
38758 };
38759
38760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
38761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38762 if (!SWIG_IsOK(res1)) {
38763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetPosition" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
38764 }
38765 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38766 {
38767 arg2 = &temp2;
38768 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
38769 }
38770 {
38771 PyThreadState* __tstate = wxPyBeginAllowThreads();
38772 (arg1)->SetPosition((wxPoint const &)*arg2);
38773 wxPyEndAllowThreads(__tstate);
38774 if (PyErr_Occurred()) SWIG_fail;
38775 }
38776 resultobj = SWIG_Py_Void();
38777 return resultobj;
38778fail:
38779 return NULL;
d14a1e28
RD
38780}
38781
38782
0085ce49
RD
38783SWIGINTERN PyObject *_wrap_HelpEvent_GetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38784 PyObject *resultobj = 0;
38785 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38786 wxString *result = 0 ;
38787 void *argp1 = 0 ;
38788 int res1 = 0 ;
38789 PyObject *swig_obj[1] ;
38790
38791 if (!args) SWIG_fail;
38792 swig_obj[0] = args;
38793 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38794 if (!SWIG_IsOK(res1)) {
38795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetLink" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
38796 }
38797 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38798 {
38799 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 38800 {
0085ce49
RD
38801 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
38802 result = (wxString *) &_result_ref;
093d3ff1 38803 }
0085ce49
RD
38804 wxPyEndAllowThreads(__tstate);
38805 if (PyErr_Occurred()) SWIG_fail;
38806 }
38807 {
38808#if wxUSE_UNICODE
38809 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
38810#else
38811 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
38812#endif
38813 }
38814 return resultobj;
38815fail:
38816 return NULL;
38817}
38818
38819
38820SWIGINTERN PyObject *_wrap_HelpEvent_SetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38821 PyObject *resultobj = 0;
38822 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38823 wxString *arg2 = 0 ;
38824 void *argp1 = 0 ;
38825 int res1 = 0 ;
38826 bool temp2 = false ;
38827 PyObject * obj0 = 0 ;
38828 PyObject * obj1 = 0 ;
38829 char * kwnames[] = {
38830 (char *) "self",(char *) "link", NULL
38831 };
38832
38833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) SWIG_fail;
38834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38835 if (!SWIG_IsOK(res1)) {
38836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetLink" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
38837 }
38838 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38839 {
38840 arg2 = wxString_in_helper(obj1);
38841 if (arg2 == NULL) SWIG_fail;
38842 temp2 = true;
38843 }
38844 {
38845 PyThreadState* __tstate = wxPyBeginAllowThreads();
38846 (arg1)->SetLink((wxString const &)*arg2);
38847 wxPyEndAllowThreads(__tstate);
38848 if (PyErr_Occurred()) SWIG_fail;
38849 }
38850 resultobj = SWIG_Py_Void();
38851 {
38852 if (temp2)
38853 delete arg2;
38854 }
38855 return resultobj;
38856fail:
38857 {
38858 if (temp2)
38859 delete arg2;
38860 }
38861 return NULL;
d14a1e28
RD
38862}
38863
38864
0085ce49
RD
38865SWIGINTERN PyObject *_wrap_HelpEvent_GetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38866 PyObject *resultobj = 0;
38867 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38868 wxString *result = 0 ;
38869 void *argp1 = 0 ;
38870 int res1 = 0 ;
38871 PyObject *swig_obj[1] ;
38872
38873 if (!args) SWIG_fail;
38874 swig_obj[0] = args;
38875 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38876 if (!SWIG_IsOK(res1)) {
38877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetTarget" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
38878 }
38879 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38880 {
38881 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 38882 {
0085ce49
RD
38883 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
38884 result = (wxString *) &_result_ref;
d14a1e28 38885 }
0085ce49
RD
38886 wxPyEndAllowThreads(__tstate);
38887 if (PyErr_Occurred()) SWIG_fail;
38888 }
38889 {
38890#if wxUSE_UNICODE
38891 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
38892#else
38893 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
38894#endif
38895 }
38896 return resultobj;
38897fail:
38898 return NULL;
38899}
38900
38901
38902SWIGINTERN PyObject *_wrap_HelpEvent_SetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38903 PyObject *resultobj = 0;
38904 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38905 wxString *arg2 = 0 ;
38906 void *argp1 = 0 ;
38907 int res1 = 0 ;
38908 bool temp2 = false ;
38909 PyObject * obj0 = 0 ;
38910 PyObject * obj1 = 0 ;
38911 char * kwnames[] = {
38912 (char *) "self",(char *) "target", NULL
38913 };
38914
38915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) SWIG_fail;
38916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38917 if (!SWIG_IsOK(res1)) {
38918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetTarget" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
38919 }
38920 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38921 {
38922 arg2 = wxString_in_helper(obj1);
38923 if (arg2 == NULL) SWIG_fail;
38924 temp2 = true;
38925 }
38926 {
38927 PyThreadState* __tstate = wxPyBeginAllowThreads();
38928 (arg1)->SetTarget((wxString const &)*arg2);
38929 wxPyEndAllowThreads(__tstate);
38930 if (PyErr_Occurred()) SWIG_fail;
38931 }
38932 resultobj = SWIG_Py_Void();
38933 {
38934 if (temp2)
38935 delete arg2;
38936 }
38937 return resultobj;
38938fail:
38939 {
38940 if (temp2)
38941 delete arg2;
38942 }
38943 return NULL;
d14a1e28
RD
38944}
38945
38946
0085ce49
RD
38947SWIGINTERN PyObject *HelpEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38948 PyObject *obj;
38949 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38950 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpEvent, SWIG_NewClientData(obj));
38951 return SWIG_Py_Void();
d14a1e28
RD
38952}
38953
0085ce49
RD
38954SWIGINTERN PyObject *HelpEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38955 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
38956}
38957
0085ce49
RD
38958SWIGINTERN PyObject *_wrap_new_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38959 PyObject *resultobj = 0;
38960 wxWindow *arg1 = (wxWindow *) NULL ;
38961 bool arg2 = (bool) true ;
38962 wxContextHelp *result = 0 ;
38963 void *argp1 = 0 ;
38964 int res1 = 0 ;
38965 bool val2 ;
38966 int ecode2 = 0 ;
38967 PyObject * obj0 = 0 ;
38968 PyObject * obj1 = 0 ;
38969 char * kwnames[] = {
38970 (char *) "window",(char *) "doNow", NULL
38971 };
38972
38973 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
38974 if (obj0) {
38975 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38976 if (!SWIG_IsOK(res1)) {
38977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelp" "', expected argument " "1"" of type '" "wxWindow *""'");
d14a1e28 38978 }
0085ce49
RD
38979 arg1 = reinterpret_cast< wxWindow * >(argp1);
38980 }
38981 if (obj1) {
38982 ecode2 = SWIG_AsVal_bool(obj1, &val2);
38983 if (!SWIG_IsOK(ecode2)) {
38984 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelp" "', expected argument " "2"" of type '" "bool""'");
38985 }
38986 arg2 = static_cast< bool >(val2);
38987 }
38988 {
38989 if (!wxPyCheckForApp()) SWIG_fail;
38990 PyThreadState* __tstate = wxPyBeginAllowThreads();
38991 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
38992 wxPyEndAllowThreads(__tstate);
38993 if (PyErr_Occurred()) SWIG_fail;
38994 }
38995 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelp, SWIG_POINTER_NEW | 0 );
38996 return resultobj;
38997fail:
38998 return NULL;
d14a1e28
RD
38999}
39000
39001
0085ce49
RD
39002SWIGINTERN PyObject *_wrap_delete_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39003 PyObject *resultobj = 0;
39004 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39005 void *argp1 = 0 ;
39006 int res1 = 0 ;
39007 PyObject *swig_obj[1] ;
39008
39009 if (!args) SWIG_fail;
39010 swig_obj[0] = args;
39011 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, SWIG_POINTER_DISOWN | 0 );
39012 if (!SWIG_IsOK(res1)) {
39013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39014 }
39015 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39016 {
39017 PyThreadState* __tstate = wxPyBeginAllowThreads();
39018 delete arg1;
3a04f143 39019
0085ce49
RD
39020 wxPyEndAllowThreads(__tstate);
39021 if (PyErr_Occurred()) SWIG_fail;
39022 }
39023 resultobj = SWIG_Py_Void();
39024 return resultobj;
39025fail:
39026 return NULL;
39027}
39028
39029
39030SWIGINTERN PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39031 PyObject *resultobj = 0;
39032 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39033 wxWindow *arg2 = (wxWindow *) NULL ;
39034 bool result;
39035 void *argp1 = 0 ;
39036 int res1 = 0 ;
39037 void *argp2 = 0 ;
39038 int res2 = 0 ;
39039 PyObject * obj0 = 0 ;
39040 PyObject * obj1 = 0 ;
39041 char * kwnames[] = {
39042 (char *) "self",(char *) "window", NULL
39043 };
39044
39045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39047 if (!SWIG_IsOK(res1)) {
39048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39049 }
39050 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39051 if (obj1) {
39052 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39053 if (!SWIG_IsOK(res2)) {
39054 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
3a04f143 39055 }
0085ce49
RD
39056 arg2 = reinterpret_cast< wxWindow * >(argp2);
39057 }
39058 {
39059 PyThreadState* __tstate = wxPyBeginAllowThreads();
39060 result = (bool)(arg1)->BeginContextHelp(arg2);
39061 wxPyEndAllowThreads(__tstate);
39062 if (PyErr_Occurred()) SWIG_fail;
39063 }
39064 {
39065 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39066 }
39067 return resultobj;
39068fail:
39069 return NULL;
3a04f143
RD
39070}
39071
39072
0085ce49
RD
39073SWIGINTERN PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39074 PyObject *resultobj = 0;
39075 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39076 bool result;
39077 void *argp1 = 0 ;
39078 int res1 = 0 ;
39079 PyObject *swig_obj[1] ;
39080
39081 if (!args) SWIG_fail;
39082 swig_obj[0] = args;
39083 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39084 if (!SWIG_IsOK(res1)) {
39085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_EndContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39086 }
39087 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39088 {
39089 PyThreadState* __tstate = wxPyBeginAllowThreads();
39090 result = (bool)(arg1)->EndContextHelp();
39091 wxPyEndAllowThreads(__tstate);
39092 if (PyErr_Occurred()) SWIG_fail;
39093 }
39094 {
39095 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39096 }
39097 return resultobj;
39098fail:
39099 return NULL;
39100}
39101
39102
39103SWIGINTERN PyObject *ContextHelp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39104 PyObject *obj;
39105 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39106 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelp, SWIG_NewClientData(obj));
39107 return SWIG_Py_Void();
39108}
39109
39110SWIGINTERN PyObject *ContextHelp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39111 return SWIG_Python_InitShadowInstance(args);
39112}
39113
39114SWIGINTERN PyObject *_wrap_new_ContextHelpButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39115 PyObject *resultobj = 0;
39116 wxWindow *arg1 = (wxWindow *) 0 ;
39117 int arg2 = (int) wxID_CONTEXT_HELP ;
39118 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39119 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39120 wxSize const &arg4_defvalue = wxDefaultSize ;
39121 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
39122 long arg5 = (long) wxBU_AUTODRAW ;
39123 wxContextHelpButton *result = 0 ;
39124 void *argp1 = 0 ;
39125 int res1 = 0 ;
39126 int val2 ;
39127 int ecode2 = 0 ;
39128 wxPoint temp3 ;
39129 wxSize temp4 ;
39130 long val5 ;
39131 int ecode5 = 0 ;
39132 PyObject * obj0 = 0 ;
39133 PyObject * obj1 = 0 ;
39134 PyObject * obj2 = 0 ;
39135 PyObject * obj3 = 0 ;
39136 PyObject * obj4 = 0 ;
39137 char * kwnames[] = {
39138 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
39139 };
39140
39141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39143 if (!SWIG_IsOK(res1)) {
39144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelpButton" "', expected argument " "1"" of type '" "wxWindow *""'");
39145 }
39146 arg1 = reinterpret_cast< wxWindow * >(argp1);
39147 if (obj1) {
39148 ecode2 = SWIG_AsVal_int(obj1, &val2);
39149 if (!SWIG_IsOK(ecode2)) {
39150 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelpButton" "', expected argument " "2"" of type '" "int""'");
39151 }
39152 arg2 = static_cast< int >(val2);
39153 }
39154 if (obj2) {
d14a1e28 39155 {
0085ce49
RD
39156 arg3 = &temp3;
39157 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 39158 }
0085ce49
RD
39159 }
39160 if (obj3) {
4f89f6a3 39161 {
0085ce49
RD
39162 arg4 = &temp4;
39163 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 39164 }
0085ce49
RD
39165 }
39166 if (obj4) {
39167 ecode5 = SWIG_AsVal_long(obj4, &val5);
39168 if (!SWIG_IsOK(ecode5)) {
39169 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ContextHelpButton" "', expected argument " "5"" of type '" "long""'");
39170 }
39171 arg5 = static_cast< long >(val5);
39172 }
39173 {
39174 if (!wxPyCheckForApp()) SWIG_fail;
39175 PyThreadState* __tstate = wxPyBeginAllowThreads();
39176 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
39177 wxPyEndAllowThreads(__tstate);
39178 if (PyErr_Occurred()) SWIG_fail;
39179 }
39180 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelpButton, SWIG_POINTER_NEW | 0 );
39181 return resultobj;
39182fail:
39183 return NULL;
d14a1e28
RD
39184}
39185
39186
0085ce49
RD
39187SWIGINTERN PyObject *ContextHelpButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39188 PyObject *obj;
39189 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39190 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelpButton, SWIG_NewClientData(obj));
39191 return SWIG_Py_Void();
d14a1e28
RD
39192}
39193
0085ce49
RD
39194SWIGINTERN PyObject *ContextHelpButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39195 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
39196}
39197
f52cbe90
RD
39198SWIGINTERN PyObject *_wrap_delete_HelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39199 PyObject *resultobj = 0;
39200 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39201 void *argp1 = 0 ;
39202 int res1 = 0 ;
39203 PyObject *swig_obj[1] ;
39204
39205 if (!args) SWIG_fail;
39206 swig_obj[0] = args;
39207 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
39208 if (!SWIG_IsOK(res1)) {
39209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HelpProvider" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39210 }
39211 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39212 {
39213 PyThreadState* __tstate = wxPyBeginAllowThreads();
39214 delete arg1;
39215
39216 wxPyEndAllowThreads(__tstate);
39217 if (PyErr_Occurred()) SWIG_fail;
39218 }
39219 resultobj = SWIG_Py_Void();
39220 return resultobj;
39221fail:
39222 return NULL;
39223}
39224
39225
0085ce49
RD
39226SWIGINTERN PyObject *_wrap_HelpProvider_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39227 PyObject *resultobj = 0;
39228 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39229 wxHelpProvider *result = 0 ;
39230 int res1 = 0 ;
39231 PyObject * obj0 = 0 ;
39232 char * kwnames[] = {
39233 (char *) "helpProvider", NULL
39234 };
39235
39236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) SWIG_fail;
39237 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
39238 if (!SWIG_IsOK(res1)) {
39239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Set" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39240 }
39241 {
39242 PyThreadState* __tstate = wxPyBeginAllowThreads();
39243 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
39244 wxPyEndAllowThreads(__tstate);
39245 if (PyErr_Occurred()) SWIG_fail;
39246 }
39247 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_OWN | 0 );
39248 return resultobj;
39249fail:
39250 return NULL;
d14a1e28
RD
39251}
39252
39253
0085ce49
RD
39254SWIGINTERN PyObject *_wrap_HelpProvider_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39255 PyObject *resultobj = 0;
39256 wxHelpProvider *result = 0 ;
39257
39258 if (!SWIG_Python_UnpackTuple(args,"HelpProvider_Get",0,0,0)) SWIG_fail;
39259 {
39260 PyThreadState* __tstate = wxPyBeginAllowThreads();
39261 result = (wxHelpProvider *)wxHelpProvider::Get();
39262 wxPyEndAllowThreads(__tstate);
39263 if (PyErr_Occurred()) SWIG_fail;
39264 }
39265 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39266 return resultobj;
39267fail:
39268 return NULL;
39269}
39270
39271
39272SWIGINTERN PyObject *_wrap_HelpProvider_GetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39273 PyObject *resultobj = 0;
39274 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39275 wxWindow *arg2 = (wxWindow *) 0 ;
39276 wxString result;
39277 void *argp1 = 0 ;
39278 int res1 = 0 ;
39279 void *argp2 = 0 ;
39280 int res2 = 0 ;
39281 PyObject * obj0 = 0 ;
39282 PyObject * obj1 = 0 ;
39283 char * kwnames[] = {
39284 (char *) "self",(char *) "window", NULL
39285 };
39286
39287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39289 if (!SWIG_IsOK(res1)) {
39290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_GetHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39291 }
39292 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39293 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39294 if (!SWIG_IsOK(res2)) {
39295 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_GetHelp" "', expected argument " "2"" of type '" "wxWindow const *""'");
39296 }
39297 arg2 = reinterpret_cast< wxWindow * >(argp2);
39298 {
39299 PyThreadState* __tstate = wxPyBeginAllowThreads();
39300 result = (arg1)->GetHelp((wxWindow const *)arg2);
39301 wxPyEndAllowThreads(__tstate);
39302 if (PyErr_Occurred()) SWIG_fail;
39303 }
39304 {
39305#if wxUSE_UNICODE
39306 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
39307#else
39308 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
39309#endif
39310 }
39311 return resultobj;
39312fail:
39313 return NULL;
39314}
39315
39316
39317SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39318 PyObject *resultobj = 0;
39319 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39320 wxWindow *arg2 = (wxWindow *) 0 ;
39321 bool result;
39322 void *argp1 = 0 ;
39323 int res1 = 0 ;
39324 void *argp2 = 0 ;
39325 int res2 = 0 ;
39326 PyObject * obj0 = 0 ;
39327 PyObject * obj1 = 0 ;
39328 char * kwnames[] = {
39329 (char *) "self",(char *) "window", NULL
39330 };
39331
39332 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39333 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39334 if (!SWIG_IsOK(res1)) {
39335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39336 }
39337 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39338 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39339 if (!SWIG_IsOK(res2)) {
39340 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39341 }
39342 arg2 = reinterpret_cast< wxWindow * >(argp2);
39343 {
39344 PyThreadState* __tstate = wxPyBeginAllowThreads();
39345 result = (bool)(arg1)->ShowHelp(arg2);
39346 wxPyEndAllowThreads(__tstate);
39347 if (PyErr_Occurred()) SWIG_fail;
39348 }
39349 {
39350 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39351 }
39352 return resultobj;
39353fail:
39354 return NULL;
39355}
39356
39357
39358SWIGINTERN PyObject *_wrap_HelpProvider_AddHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39359 PyObject *resultobj = 0;
39360 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39361 wxWindow *arg2 = (wxWindow *) 0 ;
39362 wxString *arg3 = 0 ;
39363 void *argp1 = 0 ;
39364 int res1 = 0 ;
39365 void *argp2 = 0 ;
39366 int res2 = 0 ;
39367 bool temp3 = false ;
39368 PyObject * obj0 = 0 ;
39369 PyObject * obj1 = 0 ;
39370 PyObject * obj2 = 0 ;
39371 char * kwnames[] = {
39372 (char *) "self",(char *) "window",(char *) "text", NULL
39373 };
39374
39375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39377 if (!SWIG_IsOK(res1)) {
39378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39379 }
39380 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39381 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39382 if (!SWIG_IsOK(res2)) {
39383 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_AddHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39384 }
39385 arg2 = reinterpret_cast< wxWindow * >(argp2);
39386 {
39387 arg3 = wxString_in_helper(obj2);
39388 if (arg3 == NULL) SWIG_fail;
39389 temp3 = true;
39390 }
39391 {
39392 PyThreadState* __tstate = wxPyBeginAllowThreads();
39393 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
39394 wxPyEndAllowThreads(__tstate);
39395 if (PyErr_Occurred()) SWIG_fail;
39396 }
39397 resultobj = SWIG_Py_Void();
39398 {
39399 if (temp3)
39400 delete arg3;
39401 }
39402 return resultobj;
39403fail:
39404 {
39405 if (temp3)
39406 delete arg3;
39407 }
39408 return NULL;
39409}
39410
39411
39412SWIGINTERN PyObject *_wrap_HelpProvider_AddHelpById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39413 PyObject *resultobj = 0;
39414 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39415 int arg2 ;
39416 wxString *arg3 = 0 ;
39417 void *argp1 = 0 ;
39418 int res1 = 0 ;
39419 int val2 ;
39420 int ecode2 = 0 ;
39421 bool temp3 = false ;
39422 PyObject * obj0 = 0 ;
39423 PyObject * obj1 = 0 ;
39424 PyObject * obj2 = 0 ;
39425 char * kwnames[] = {
39426 (char *) "self",(char *) "id",(char *) "text", NULL
39427 };
39428
39429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39431 if (!SWIG_IsOK(res1)) {
39432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelpById" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39433 }
39434 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39435 ecode2 = SWIG_AsVal_int(obj1, &val2);
39436 if (!SWIG_IsOK(ecode2)) {
39437 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpProvider_AddHelpById" "', expected argument " "2"" of type '" "int""'");
39438 }
39439 arg2 = static_cast< int >(val2);
39440 {
39441 arg3 = wxString_in_helper(obj2);
39442 if (arg3 == NULL) SWIG_fail;
39443 temp3 = true;
39444 }
39445 {
39446 PyThreadState* __tstate = wxPyBeginAllowThreads();
39447 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
39448 wxPyEndAllowThreads(__tstate);
39449 if (PyErr_Occurred()) SWIG_fail;
39450 }
39451 resultobj = SWIG_Py_Void();
39452 {
39453 if (temp3)
39454 delete arg3;
39455 }
39456 return resultobj;
39457fail:
39458 {
39459 if (temp3)
39460 delete arg3;
39461 }
39462 return NULL;
39463}
39464
39465
39466SWIGINTERN PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39467 PyObject *resultobj = 0;
39468 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39469 wxWindow *arg2 = (wxWindow *) 0 ;
39470 void *argp1 = 0 ;
39471 int res1 = 0 ;
39472 void *argp2 = 0 ;
39473 int res2 = 0 ;
39474 PyObject * obj0 = 0 ;
39475 PyObject * obj1 = 0 ;
39476 char * kwnames[] = {
39477 (char *) "self",(char *) "window", NULL
39478 };
39479
39480 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39481 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39482 if (!SWIG_IsOK(res1)) {
39483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39484 }
39485 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39486 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39487 if (!SWIG_IsOK(res2)) {
39488 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39489 }
39490 arg2 = reinterpret_cast< wxWindow * >(argp2);
39491 {
39492 PyThreadState* __tstate = wxPyBeginAllowThreads();
39493 (arg1)->RemoveHelp(arg2);
39494 wxPyEndAllowThreads(__tstate);
39495 if (PyErr_Occurred()) SWIG_fail;
39496 }
39497 resultobj = SWIG_Py_Void();
39498 return resultobj;
39499fail:
39500 return NULL;
d14a1e28
RD
39501}
39502
39503
0085ce49
RD
39504SWIGINTERN PyObject *_wrap_HelpProvider_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39505 PyObject *resultobj = 0;
39506 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39507 void *argp1 = 0 ;
39508 int res1 = 0 ;
39509 PyObject *swig_obj[1] ;
39510
39511 if (!args) SWIG_fail;
39512 swig_obj[0] = args;
39513 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39514 if (!SWIG_IsOK(res1)) {
39515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Destroy" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39516 }
39517 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39518 {
39519 PyThreadState* __tstate = wxPyBeginAllowThreads();
39520 wxHelpProvider_Destroy(arg1);
39521 wxPyEndAllowThreads(__tstate);
39522 if (PyErr_Occurred()) SWIG_fail;
39523 }
39524 resultobj = SWIG_Py_Void();
39525 return resultobj;
39526fail:
39527 return NULL;
22bfe96c
RD
39528}
39529
39530
0085ce49
RD
39531SWIGINTERN PyObject *HelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39532 PyObject *obj;
39533 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39534 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpProvider, SWIG_NewClientData(obj));
39535 return SWIG_Py_Void();
b2dc1044
RD
39536}
39537
0085ce49
RD
39538SWIGINTERN PyObject *_wrap_new_SimpleHelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39539 PyObject *resultobj = 0;
39540 wxSimpleHelpProvider *result = 0 ;
39541
39542 if (!SWIG_Python_UnpackTuple(args,"new_SimpleHelpProvider",0,0,0)) SWIG_fail;
39543 {
39544 PyThreadState* __tstate = wxPyBeginAllowThreads();
39545 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
39546 wxPyEndAllowThreads(__tstate);
39547 if (PyErr_Occurred()) SWIG_fail;
39548 }
39549 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSimpleHelpProvider, SWIG_POINTER_NEW | 0 );
39550 return resultobj;
39551fail:
39552 return NULL;
39553}
39554
39555
39556SWIGINTERN PyObject *SimpleHelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39557 PyObject *obj;
39558 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39559 SWIG_TypeNewClientData(SWIGTYPE_p_wxSimpleHelpProvider, SWIG_NewClientData(obj));
39560 return SWIG_Py_Void();
39561}
39562
39563SWIGINTERN PyObject *SimpleHelpProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39564 return SWIG_Python_InitShadowInstance(args);
39565}
39566
39567SWIGINTERN PyObject *_wrap_new_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39568 PyObject *resultobj = 0;
39569 wxBitmap *arg1 = 0 ;
39570 wxCursor const &arg2_defvalue = wxNullCursor ;
39571 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
39572 wxGenericDragImage *result = 0 ;
39573 void *argp1 = 0 ;
39574 int res1 = 0 ;
39575 void *argp2 = 0 ;
39576 int res2 = 0 ;
39577 PyObject * obj0 = 0 ;
39578 PyObject * obj1 = 0 ;
39579 char * kwnames[] = {
39580 (char *) "image",(char *) "cursor", NULL
39581 };
39582
39583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) SWIG_fail;
39584 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
39585 if (!SWIG_IsOK(res1)) {
39586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
39587 }
39588 if (!argp1) {
39589 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
39590 }
39591 arg1 = reinterpret_cast< wxBitmap * >(argp1);
39592 if (obj1) {
39593 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
39594 if (!SWIG_IsOK(res2)) {
39595 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
d14a1e28 39596 }
0085ce49
RD
39597 if (!argp2) {
39598 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
d14a1e28 39599 }
0085ce49
RD
39600 arg2 = reinterpret_cast< wxCursor * >(argp2);
39601 }
39602 {
39603 if (!wxPyCheckForApp()) SWIG_fail;
39604 PyThreadState* __tstate = wxPyBeginAllowThreads();
39605 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
39606 wxPyEndAllowThreads(__tstate);
39607 if (PyErr_Occurred()) SWIG_fail;
39608 }
39609 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_NEW | 0 );
39610 return resultobj;
39611fail:
39612 return NULL;
39613}
39614
39615
39616SWIGINTERN PyObject *_wrap_new_DragIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39617 PyObject *resultobj = 0;
39618 wxIcon *arg1 = 0 ;
39619 wxCursor const &arg2_defvalue = wxNullCursor ;
39620 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
39621 wxGenericDragImage *result = 0 ;
39622 void *argp1 = 0 ;
39623 int res1 = 0 ;
39624 void *argp2 = 0 ;
39625 int res2 = 0 ;
39626 PyObject * obj0 = 0 ;
39627 PyObject * obj1 = 0 ;
39628 char * kwnames[] = {
39629 (char *) "image",(char *) "cursor", NULL
39630 };
39631
39632 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) SWIG_fail;
39633 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
39634 if (!SWIG_IsOK(res1)) {
39635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
39636 }
39637 if (!argp1) {
39638 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
39639 }
39640 arg1 = reinterpret_cast< wxIcon * >(argp1);
39641 if (obj1) {
39642 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
39643 if (!SWIG_IsOK(res2)) {
39644 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
d14a1e28 39645 }
0085ce49
RD
39646 if (!argp2) {
39647 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
d14a1e28 39648 }
0085ce49
RD
39649 arg2 = reinterpret_cast< wxCursor * >(argp2);
39650 }
39651 {
39652 if (!wxPyCheckForApp()) SWIG_fail;
39653 PyThreadState* __tstate = wxPyBeginAllowThreads();
39654 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
39655 wxPyEndAllowThreads(__tstate);
39656 if (PyErr_Occurred()) SWIG_fail;
39657 }
39658 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
39659 return resultobj;
39660fail:
39661 return NULL;
39662}
39663
39664
39665SWIGINTERN PyObject *_wrap_new_DragString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39666 PyObject *resultobj = 0;
39667 wxString *arg1 = 0 ;
39668 wxCursor const &arg2_defvalue = wxNullCursor ;
39669 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
39670 wxGenericDragImage *result = 0 ;
39671 bool temp1 = false ;
39672 void *argp2 = 0 ;
39673 int res2 = 0 ;
39674 PyObject * obj0 = 0 ;
39675 PyObject * obj1 = 0 ;
39676 char * kwnames[] = {
39677 (char *) "str",(char *) "cursor", NULL
39678 };
39679
39680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) SWIG_fail;
39681 {
39682 arg1 = wxString_in_helper(obj0);
39683 if (arg1 == NULL) SWIG_fail;
39684 temp1 = true;
39685 }
39686 if (obj1) {
39687 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
39688 if (!SWIG_IsOK(res2)) {
39689 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
7e08d4ef 39690 }
0085ce49
RD
39691 if (!argp2) {
39692 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
39693 }
39694 arg2 = reinterpret_cast< wxCursor * >(argp2);
39695 }
39696 {
39697 if (!wxPyCheckForApp()) SWIG_fail;
39698 PyThreadState* __tstate = wxPyBeginAllowThreads();
39699 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
39700 wxPyEndAllowThreads(__tstate);
39701 if (PyErr_Occurred()) SWIG_fail;
39702 }
39703 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
39704 {
39705 if (temp1)
39706 delete arg1;
39707 }
39708 return resultobj;
39709fail:
39710 {
39711 if (temp1)
39712 delete arg1;
39713 }
39714 return NULL;
39715}
39716
39717
39718SWIGINTERN PyObject *_wrap_new_DragTreeItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39719 PyObject *resultobj = 0;
39720 wxPyTreeCtrl *arg1 = 0 ;
39721 wxTreeItemId *arg2 = 0 ;
39722 wxGenericDragImage *result = 0 ;
39723 void *argp1 = 0 ;
39724 int res1 = 0 ;
39725 void *argp2 = 0 ;
39726 int res2 = 0 ;
39727 PyObject * obj0 = 0 ;
39728 PyObject * obj1 = 0 ;
39729 char * kwnames[] = {
39730 (char *) "treeCtrl",(char *) "id", NULL
39731 };
39732
39733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) SWIG_fail;
39734 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyTreeCtrl, 0 | 0);
39735 if (!SWIG_IsOK(res1)) {
39736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
39737 }
39738 if (!argp1) {
39739 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
39740 }
39741 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
39742 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 );
39743 if (!SWIG_IsOK(res2)) {
39744 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
39745 }
39746 if (!argp2) {
39747 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
39748 }
39749 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
39750 {
39751 if (!wxPyCheckForApp()) SWIG_fail;
39752 PyThreadState* __tstate = wxPyBeginAllowThreads();
39753 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
39754 wxPyEndAllowThreads(__tstate);
39755 if (PyErr_Occurred()) SWIG_fail;
39756 }
39757 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
39758 return resultobj;
39759fail:
39760 return NULL;
39761}
39762
39763
39764SWIGINTERN PyObject *_wrap_new_DragListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39765 PyObject *resultobj = 0;
39766 wxPyListCtrl *arg1 = 0 ;
39767 long arg2 ;
39768 wxGenericDragImage *result = 0 ;
39769 void *argp1 = 0 ;
39770 int res1 = 0 ;
39771 long val2 ;
39772 int ecode2 = 0 ;
39773 PyObject * obj0 = 0 ;
39774 PyObject * obj1 = 0 ;
39775 char * kwnames[] = {
39776 (char *) "listCtrl",(char *) "id", NULL
39777 };
39778
39779 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) SWIG_fail;
39780 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyListCtrl, 0 | 0);
39781 if (!SWIG_IsOK(res1)) {
39782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
39783 }
39784 if (!argp1) {
39785 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
39786 }
39787 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
39788 ecode2 = SWIG_AsVal_long(obj1, &val2);
39789 if (!SWIG_IsOK(ecode2)) {
39790 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DragListItem" "', expected argument " "2"" of type '" "long""'");
39791 }
39792 arg2 = static_cast< long >(val2);
39793 {
39794 if (!wxPyCheckForApp()) SWIG_fail;
39795 PyThreadState* __tstate = wxPyBeginAllowThreads();
39796 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
39797 wxPyEndAllowThreads(__tstate);
39798 if (PyErr_Occurred()) SWIG_fail;
39799 }
39800 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
39801 return resultobj;
39802fail:
39803 return NULL;
7e08d4ef
RD
39804}
39805
39806
0085ce49
RD
39807SWIGINTERN PyObject *_wrap_delete_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39808 PyObject *resultobj = 0;
39809 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
39810 void *argp1 = 0 ;
39811 int res1 = 0 ;
39812 PyObject *swig_obj[1] ;
39813
39814 if (!args) SWIG_fail;
39815 swig_obj[0] = args;
39816 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_DISOWN | 0 );
39817 if (!SWIG_IsOK(res1)) {
39818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DragImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
39819 }
39820 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
39821 {
39822 PyThreadState* __tstate = wxPyBeginAllowThreads();
39823 delete arg1;
d14a1e28 39824
0085ce49
RD
39825 wxPyEndAllowThreads(__tstate);
39826 if (PyErr_Occurred()) SWIG_fail;
39827 }
39828 resultobj = SWIG_Py_Void();
39829 return resultobj;
39830fail:
39831 return NULL;
39832}
39833
39834
39835SWIGINTERN PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39836 PyObject *resultobj = 0;
39837 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
39838 wxBitmap *arg2 = (wxBitmap *) 0 ;
39839 void *argp1 = 0 ;
39840 int res1 = 0 ;
39841 void *argp2 = 0 ;
39842 int res2 = 0 ;
39843 PyObject * obj0 = 0 ;
39844 PyObject * obj1 = 0 ;
39845 char * kwnames[] = {
39846 (char *) "self",(char *) "bitmap", NULL
39847 };
39848
39849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
39850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
39851 if (!SWIG_IsOK(res1)) {
39852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
39853 }
39854 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
39855 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
39856 if (!SWIG_IsOK(res2)) {
39857 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "2"" of type '" "wxBitmap *""'");
39858 }
39859 arg2 = reinterpret_cast< wxBitmap * >(argp2);
39860 {
39861 PyThreadState* __tstate = wxPyBeginAllowThreads();
39862 (arg1)->SetBackingBitmap(arg2);
39863 wxPyEndAllowThreads(__tstate);
39864 if (PyErr_Occurred()) SWIG_fail;
39865 }
39866 resultobj = SWIG_Py_Void();
39867 return resultobj;
39868fail:
39869 return NULL;
39870}
39871
39872
39873SWIGINTERN PyObject *_wrap_DragImage_BeginDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39874 PyObject *resultobj = 0;
39875 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
39876 wxPoint *arg2 = 0 ;
39877 wxWindow *arg3 = (wxWindow *) 0 ;
39878 bool arg4 = (bool) false ;
39879 wxRect *arg5 = (wxRect *) NULL ;
39880 bool result;
39881 void *argp1 = 0 ;
39882 int res1 = 0 ;
39883 wxPoint temp2 ;
39884 void *argp3 = 0 ;
39885 int res3 = 0 ;
39886 bool val4 ;
39887 int ecode4 = 0 ;
39888 void *argp5 = 0 ;
39889 int res5 = 0 ;
39890 PyObject * obj0 = 0 ;
39891 PyObject * obj1 = 0 ;
39892 PyObject * obj2 = 0 ;
39893 PyObject * obj3 = 0 ;
39894 PyObject * obj4 = 0 ;
39895 char * kwnames[] = {
39896 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
39897 };
39898
39899 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39900 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
39901 if (!SWIG_IsOK(res1)) {
39902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
39903 }
39904 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
39905 {
39906 arg2 = &temp2;
39907 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39908 }
39909 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
39910 if (!SWIG_IsOK(res3)) {
39911 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDrag" "', expected argument " "3"" of type '" "wxWindow *""'");
39912 }
39913 arg3 = reinterpret_cast< wxWindow * >(argp3);
39914 if (obj3) {
39915 ecode4 = SWIG_AsVal_bool(obj3, &val4);
39916 if (!SWIG_IsOK(ecode4)) {
39917 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_BeginDrag" "', expected argument " "4"" of type '" "bool""'");
39918 }
39919 arg4 = static_cast< bool >(val4);
39920 }
39921 if (obj4) {
39922 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxRect, 0 | 0 );
39923 if (!SWIG_IsOK(res5)) {
39924 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DragImage_BeginDrag" "', expected argument " "5"" of type '" "wxRect *""'");
d14a1e28 39925 }
0085ce49
RD
39926 arg5 = reinterpret_cast< wxRect * >(argp5);
39927 }
39928 {
39929 PyThreadState* __tstate = wxPyBeginAllowThreads();
39930 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
39931 wxPyEndAllowThreads(__tstate);
39932 if (PyErr_Occurred()) SWIG_fail;
39933 }
39934 {
39935 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39936 }
39937 return resultobj;
39938fail:
39939 return NULL;
39940}
39941
39942
39943SWIGINTERN PyObject *_wrap_DragImage_BeginDragBounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39944 PyObject *resultobj = 0;
39945 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
39946 wxPoint *arg2 = 0 ;
39947 wxWindow *arg3 = (wxWindow *) 0 ;
39948 wxWindow *arg4 = (wxWindow *) 0 ;
39949 bool result;
39950 void *argp1 = 0 ;
39951 int res1 = 0 ;
39952 wxPoint temp2 ;
39953 void *argp3 = 0 ;
39954 int res3 = 0 ;
39955 void *argp4 = 0 ;
39956 int res4 = 0 ;
39957 PyObject * obj0 = 0 ;
39958 PyObject * obj1 = 0 ;
39959 PyObject * obj2 = 0 ;
39960 PyObject * obj3 = 0 ;
39961 char * kwnames[] = {
39962 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
39963 };
39964
39965 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
39966 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
39967 if (!SWIG_IsOK(res1)) {
39968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDragBounded" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
39969 }
39970 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
39971 {
39972 arg2 = &temp2;
39973 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39974 }
39975 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
39976 if (!SWIG_IsOK(res3)) {
39977 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDragBounded" "', expected argument " "3"" of type '" "wxWindow *""'");
39978 }
39979 arg3 = reinterpret_cast< wxWindow * >(argp3);
39980 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
39981 if (!SWIG_IsOK(res4)) {
39982 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DragImage_BeginDragBounded" "', expected argument " "4"" of type '" "wxWindow *""'");
39983 }
39984 arg4 = reinterpret_cast< wxWindow * >(argp4);
39985 {
39986 PyThreadState* __tstate = wxPyBeginAllowThreads();
39987 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
39988 wxPyEndAllowThreads(__tstate);
39989 if (PyErr_Occurred()) SWIG_fail;
39990 }
39991 {
39992 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39993 }
39994 return resultobj;
39995fail:
39996 return NULL;
d14a1e28
RD
39997}
39998
39999
0085ce49
RD
40000SWIGINTERN PyObject *_wrap_DragImage_EndDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40001 PyObject *resultobj = 0;
40002 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40003 bool result;
40004 void *argp1 = 0 ;
40005 int res1 = 0 ;
40006 PyObject *swig_obj[1] ;
40007
40008 if (!args) SWIG_fail;
40009 swig_obj[0] = args;
40010 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40011 if (!SWIG_IsOK(res1)) {
40012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_EndDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40013 }
40014 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40015 {
40016 PyThreadState* __tstate = wxPyBeginAllowThreads();
40017 result = (bool)(arg1)->EndDrag();
40018 wxPyEndAllowThreads(__tstate);
40019 if (PyErr_Occurred()) SWIG_fail;
40020 }
40021 {
40022 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40023 }
40024 return resultobj;
40025fail:
40026 return NULL;
40027}
40028
40029
40030SWIGINTERN PyObject *_wrap_DragImage_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40031 PyObject *resultobj = 0;
40032 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40033 wxPoint *arg2 = 0 ;
40034 bool result;
40035 void *argp1 = 0 ;
40036 int res1 = 0 ;
40037 wxPoint temp2 ;
40038 PyObject * obj0 = 0 ;
40039 PyObject * obj1 = 0 ;
40040 char * kwnames[] = {
40041 (char *) "self",(char *) "pt", NULL
40042 };
40043
40044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) SWIG_fail;
40045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40046 if (!SWIG_IsOK(res1)) {
40047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Move" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40048 }
40049 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40050 {
40051 arg2 = &temp2;
40052 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40053 }
40054 {
40055 PyThreadState* __tstate = wxPyBeginAllowThreads();
40056 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
40057 wxPyEndAllowThreads(__tstate);
40058 if (PyErr_Occurred()) SWIG_fail;
40059 }
40060 {
40061 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40062 }
40063 return resultobj;
40064fail:
40065 return NULL;
d14a1e28
RD
40066}
40067
40068
0085ce49
RD
40069SWIGINTERN PyObject *_wrap_DragImage_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40070 PyObject *resultobj = 0;
40071 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40072 bool result;
40073 void *argp1 = 0 ;
40074 int res1 = 0 ;
40075 PyObject *swig_obj[1] ;
40076
40077 if (!args) SWIG_fail;
40078 swig_obj[0] = args;
40079 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40080 if (!SWIG_IsOK(res1)) {
40081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Show" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40082 }
40083 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40084 {
40085 PyThreadState* __tstate = wxPyBeginAllowThreads();
40086 result = (bool)(arg1)->Show();
40087 wxPyEndAllowThreads(__tstate);
40088 if (PyErr_Occurred()) SWIG_fail;
40089 }
40090 {
40091 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40092 }
40093 return resultobj;
40094fail:
40095 return NULL;
d14a1e28
RD
40096}
40097
40098
0085ce49
RD
40099SWIGINTERN PyObject *_wrap_DragImage_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40100 PyObject *resultobj = 0;
40101 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40102 bool result;
40103 void *argp1 = 0 ;
40104 int res1 = 0 ;
40105 PyObject *swig_obj[1] ;
40106
40107 if (!args) SWIG_fail;
40108 swig_obj[0] = args;
40109 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40110 if (!SWIG_IsOK(res1)) {
40111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Hide" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40112 }
40113 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40114 {
40115 PyThreadState* __tstate = wxPyBeginAllowThreads();
40116 result = (bool)(arg1)->Hide();
40117 wxPyEndAllowThreads(__tstate);
40118 if (PyErr_Occurred()) SWIG_fail;
40119 }
40120 {
40121 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40122 }
40123 return resultobj;
40124fail:
40125 return NULL;
40126}
40127
40128
40129SWIGINTERN PyObject *_wrap_DragImage_GetImageRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40130 PyObject *resultobj = 0;
40131 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40132 wxPoint *arg2 = 0 ;
40133 wxRect result;
40134 void *argp1 = 0 ;
40135 int res1 = 0 ;
40136 wxPoint temp2 ;
40137 PyObject * obj0 = 0 ;
40138 PyObject * obj1 = 0 ;
40139 char * kwnames[] = {
40140 (char *) "self",(char *) "pos", NULL
40141 };
40142
40143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) SWIG_fail;
40144 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40145 if (!SWIG_IsOK(res1)) {
40146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_GetImageRect" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40147 }
40148 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40149 {
40150 arg2 = &temp2;
40151 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40152 }
40153 {
40154 PyThreadState* __tstate = wxPyBeginAllowThreads();
40155 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
40156 wxPyEndAllowThreads(__tstate);
40157 if (PyErr_Occurred()) SWIG_fail;
40158 }
40159 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
40160 return resultobj;
40161fail:
40162 return NULL;
40163}
40164
40165
40166SWIGINTERN PyObject *_wrap_DragImage_DoDrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40167 PyObject *resultobj = 0;
40168 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40169 wxDC *arg2 = 0 ;
40170 wxPoint *arg3 = 0 ;
40171 bool result;
40172 void *argp1 = 0 ;
40173 int res1 = 0 ;
40174 void *argp2 = 0 ;
40175 int res2 = 0 ;
40176 wxPoint temp3 ;
40177 PyObject * obj0 = 0 ;
40178 PyObject * obj1 = 0 ;
40179 PyObject * obj2 = 0 ;
40180 char * kwnames[] = {
40181 (char *) "self",(char *) "dc",(char *) "pos", NULL
40182 };
40183
40184 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40185 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40186 if (!SWIG_IsOK(res1)) {
40187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_DoDrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40188 }
40189 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40190 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
40191 if (!SWIG_IsOK(res2)) {
40192 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
40193 }
40194 if (!argp2) {
40195 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
40196 }
40197 arg2 = reinterpret_cast< wxDC * >(argp2);
40198 {
40199 arg3 = &temp3;
40200 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40201 }
40202 {
40203 PyThreadState* __tstate = wxPyBeginAllowThreads();
40204 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
40205 wxPyEndAllowThreads(__tstate);
40206 if (PyErr_Occurred()) SWIG_fail;
40207 }
40208 {
40209 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40210 }
40211 return resultobj;
40212fail:
40213 return NULL;
40214}
40215
40216
40217SWIGINTERN PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40218 PyObject *resultobj = 0;
40219 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40220 wxDC *arg2 = 0 ;
40221 wxMemoryDC *arg3 = 0 ;
40222 wxRect *arg4 = 0 ;
40223 wxRect *arg5 = 0 ;
40224 bool result;
40225 void *argp1 = 0 ;
40226 int res1 = 0 ;
40227 void *argp2 = 0 ;
40228 int res2 = 0 ;
40229 void *argp3 = 0 ;
40230 int res3 = 0 ;
40231 wxRect temp4 ;
40232 wxRect temp5 ;
40233 PyObject * obj0 = 0 ;
40234 PyObject * obj1 = 0 ;
40235 PyObject * obj2 = 0 ;
40236 PyObject * obj3 = 0 ;
40237 PyObject * obj4 = 0 ;
40238 char * kwnames[] = {
40239 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
40240 };
40241
40242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40244 if (!SWIG_IsOK(res1)) {
40245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40246 }
40247 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40248 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
40249 if (!SWIG_IsOK(res2)) {
40250 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
40251 }
40252 if (!argp2) {
40253 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
40254 }
40255 arg2 = reinterpret_cast< wxDC * >(argp2);
40256 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxMemoryDC, 0 );
40257 if (!SWIG_IsOK(res3)) {
40258 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
40259 }
40260 if (!argp3) {
40261 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
40262 }
40263 arg3 = reinterpret_cast< wxMemoryDC * >(argp3);
40264 {
40265 arg4 = &temp4;
40266 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
40267 }
40268 {
40269 arg5 = &temp5;
40270 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
40271 }
40272 {
40273 PyThreadState* __tstate = wxPyBeginAllowThreads();
40274 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
40275 wxPyEndAllowThreads(__tstate);
40276 if (PyErr_Occurred()) SWIG_fail;
40277 }
40278 {
40279 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40280 }
40281 return resultobj;
40282fail:
40283 return NULL;
40284}
40285
40286
40287SWIGINTERN PyObject *_wrap_DragImage_RedrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40288 PyObject *resultobj = 0;
40289 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40290 wxPoint *arg2 = 0 ;
40291 wxPoint *arg3 = 0 ;
40292 bool arg4 ;
40293 bool arg5 ;
40294 bool result;
40295 void *argp1 = 0 ;
40296 int res1 = 0 ;
40297 wxPoint temp2 ;
40298 wxPoint temp3 ;
40299 bool val4 ;
40300 int ecode4 = 0 ;
40301 bool val5 ;
40302 int ecode5 = 0 ;
40303 PyObject * obj0 = 0 ;
40304 PyObject * obj1 = 0 ;
40305 PyObject * obj2 = 0 ;
40306 PyObject * obj3 = 0 ;
40307 PyObject * obj4 = 0 ;
40308 char * kwnames[] = {
40309 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
40310 };
40311
40312 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40313 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40314 if (!SWIG_IsOK(res1)) {
40315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_RedrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40316 }
40317 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40318 {
40319 arg2 = &temp2;
40320 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40321 }
40322 {
40323 arg3 = &temp3;
40324 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40325 }
40326 ecode4 = SWIG_AsVal_bool(obj3, &val4);
40327 if (!SWIG_IsOK(ecode4)) {
40328 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_RedrawImage" "', expected argument " "4"" of type '" "bool""'");
40329 }
40330 arg4 = static_cast< bool >(val4);
40331 ecode5 = SWIG_AsVal_bool(obj4, &val5);
40332 if (!SWIG_IsOK(ecode5)) {
40333 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DragImage_RedrawImage" "', expected argument " "5"" of type '" "bool""'");
40334 }
40335 arg5 = static_cast< bool >(val5);
40336 {
40337 PyThreadState* __tstate = wxPyBeginAllowThreads();
40338 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
40339 wxPyEndAllowThreads(__tstate);
40340 if (PyErr_Occurred()) SWIG_fail;
40341 }
40342 {
40343 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40344 }
40345 return resultobj;
40346fail:
40347 return NULL;
d14a1e28
RD
40348}
40349
40350
0085ce49
RD
40351SWIGINTERN PyObject *DragImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40352 PyObject *obj;
40353 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40354 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDragImage, SWIG_NewClientData(obj));
40355 return SWIG_Py_Void();
d14a1e28
RD
40356}
40357
0085ce49
RD
40358SWIGINTERN PyObject *DragImage_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40359 return SWIG_Python_InitShadowInstance(args);
40360}
d14a1e28 40361
0085ce49
RD
40362SWIGINTERN int DatePickerCtrlNameStr_set(PyObject *) {
40363 SWIG_Error(SWIG_AttributeError,"Variable DatePickerCtrlNameStr is read-only.");
40364 return 1;
d14a1e28
RD
40365}
40366
40367
0085ce49
RD
40368SWIGINTERN PyObject *DatePickerCtrlNameStr_get(void) {
40369 PyObject *pyobj = 0;
40370
40371 {
40372#if wxUSE_UNICODE
40373 pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
40374#else
40375 pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
40376#endif
40377 }
40378 return pyobj;
40379}
40380
40381
40382SWIGINTERN PyObject *_wrap_new_DatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40383 PyObject *resultobj = 0;
40384 wxWindow *arg1 = (wxWindow *) 0 ;
40385 int arg2 = (int) -1 ;
40386 wxDateTime const &arg3_defvalue = wxDefaultDateTime ;
40387 wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ;
40388 wxPoint const &arg4_defvalue = wxDefaultPosition ;
40389 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
40390 wxSize const &arg5_defvalue = wxDefaultSize ;
40391 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
40392 long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
40393 wxValidator const &arg7_defvalue = wxDefaultValidator ;
40394 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
40395 wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ;
40396 wxString *arg8 = (wxString *) &arg8_defvalue ;
40397 wxDatePickerCtrl *result = 0 ;
40398 void *argp1 = 0 ;
40399 int res1 = 0 ;
40400 int val2 ;
40401 int ecode2 = 0 ;
40402 void *argp3 = 0 ;
40403 int res3 = 0 ;
40404 wxPoint temp4 ;
40405 wxSize temp5 ;
40406 long val6 ;
40407 int ecode6 = 0 ;
40408 void *argp7 = 0 ;
40409 int res7 = 0 ;
40410 bool temp8 = false ;
40411 PyObject * obj0 = 0 ;
40412 PyObject * obj1 = 0 ;
40413 PyObject * obj2 = 0 ;
40414 PyObject * obj3 = 0 ;
40415 PyObject * obj4 = 0 ;
40416 PyObject * obj5 = 0 ;
40417 PyObject * obj6 = 0 ;
40418 PyObject * obj7 = 0 ;
40419 char * kwnames[] = {
40420 (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
40421 };
40422
40423 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
40424 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40425 if (!SWIG_IsOK(res1)) {
40426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
40427 }
40428 arg1 = reinterpret_cast< wxWindow * >(argp1);
40429 if (obj1) {
40430 ecode2 = SWIG_AsVal_int(obj1, &val2);
40431 if (!SWIG_IsOK(ecode2)) {
40432 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatePickerCtrl" "', expected argument " "2"" of type '" "int""'");
40433 }
40434 arg2 = static_cast< int >(val2);
40435 }
40436 if (obj2) {
40437 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
40438 if (!SWIG_IsOK(res3)) {
40439 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
d14a1e28 40440 }
0085ce49
RD
40441 if (!argp3) {
40442 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
d14a1e28 40443 }
0085ce49
RD
40444 arg3 = reinterpret_cast< wxDateTime * >(argp3);
40445 }
40446 if (obj3) {
d14a1e28 40447 {
0085ce49
RD
40448 arg4 = &temp4;
40449 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 40450 }
0085ce49
RD
40451 }
40452 if (obj4) {
d14a1e28 40453 {
0085ce49
RD
40454 arg5 = &temp5;
40455 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 40456 }
0085ce49
RD
40457 }
40458 if (obj5) {
40459 ecode6 = SWIG_AsVal_long(obj5, &val6);
40460 if (!SWIG_IsOK(ecode6)) {
40461 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DatePickerCtrl" "', expected argument " "6"" of type '" "long""'");
40462 }
40463 arg6 = static_cast< long >(val6);
40464 }
40465 if (obj6) {
40466 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
40467 if (!SWIG_IsOK(res7)) {
40468 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
40469 }
40470 if (!argp7) {
40471 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 40472 }
0085ce49
RD
40473 arg7 = reinterpret_cast< wxValidator * >(argp7);
40474 }
40475 if (obj7) {
d14a1e28 40476 {
0085ce49
RD
40477 arg8 = wxString_in_helper(obj7);
40478 if (arg8 == NULL) SWIG_fail;
40479 temp8 = true;
d14a1e28 40480 }
0085ce49
RD
40481 }
40482 {
40483 if (!wxPyCheckForApp()) SWIG_fail;
40484 PyThreadState* __tstate = wxPyBeginAllowThreads();
40485 result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
40486 wxPyEndAllowThreads(__tstate);
40487 if (PyErr_Occurred()) SWIG_fail;
40488 }
40489 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_NEW | 0 );
40490 {
40491 if (temp8)
40492 delete arg8;
40493 }
40494 return resultobj;
40495fail:
40496 {
40497 if (temp8)
40498 delete arg8;
40499 }
40500 return NULL;
d14a1e28
RD
40501}
40502
40503
0085ce49
RD
40504SWIGINTERN PyObject *_wrap_new_PreDatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40505 PyObject *resultobj = 0;
40506 wxDatePickerCtrl *result = 0 ;
40507
40508 if (!SWIG_Python_UnpackTuple(args,"new_PreDatePickerCtrl",0,0,0)) SWIG_fail;
40509 {
40510 if (!wxPyCheckForApp()) SWIG_fail;
40511 PyThreadState* __tstate = wxPyBeginAllowThreads();
40512 result = (wxDatePickerCtrl *)new wxDatePickerCtrl();
40513 wxPyEndAllowThreads(__tstate);
40514 if (PyErr_Occurred()) SWIG_fail;
40515 }
40516 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_OWN | 0 );
40517 return resultobj;
40518fail:
40519 return NULL;
40520}
40521
40522
40523SWIGINTERN PyObject *_wrap_DatePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40524 PyObject *resultobj = 0;
40525 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40526 wxWindow *arg2 = (wxWindow *) 0 ;
40527 int arg3 = (int) -1 ;
40528 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
40529 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
40530 wxPoint const &arg5_defvalue = wxDefaultPosition ;
40531 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
40532 wxSize const &arg6_defvalue = wxDefaultSize ;
40533 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
40534 long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
40535 wxValidator const &arg8_defvalue = wxDefaultValidator ;
40536 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
40537 wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ;
40538 wxString *arg9 = (wxString *) &arg9_defvalue ;
40539 bool result;
40540 void *argp1 = 0 ;
40541 int res1 = 0 ;
40542 void *argp2 = 0 ;
40543 int res2 = 0 ;
40544 int val3 ;
40545 int ecode3 = 0 ;
40546 void *argp4 = 0 ;
40547 int res4 = 0 ;
40548 wxPoint temp5 ;
40549 wxSize temp6 ;
40550 long val7 ;
40551 int ecode7 = 0 ;
40552 void *argp8 = 0 ;
40553 int res8 = 0 ;
40554 bool temp9 = false ;
40555 PyObject * obj0 = 0 ;
40556 PyObject * obj1 = 0 ;
40557 PyObject * obj2 = 0 ;
40558 PyObject * obj3 = 0 ;
40559 PyObject * obj4 = 0 ;
40560 PyObject * obj5 = 0 ;
40561 PyObject * obj6 = 0 ;
40562 PyObject * obj7 = 0 ;
40563 PyObject * obj8 = 0 ;
40564 char * kwnames[] = {
40565 (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
40566 };
40567
40568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
40569 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40570 if (!SWIG_IsOK(res1)) {
40571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_Create" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
40572 }
40573 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40574 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40575 if (!SWIG_IsOK(res2)) {
40576 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
40577 }
40578 arg2 = reinterpret_cast< wxWindow * >(argp2);
40579 if (obj2) {
40580 ecode3 = SWIG_AsVal_int(obj2, &val3);
40581 if (!SWIG_IsOK(ecode3)) {
40582 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DatePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
40583 }
40584 arg3 = static_cast< int >(val3);
40585 }
40586 if (obj3) {
40587 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDateTime, 0 | 0);
40588 if (!SWIG_IsOK(res4)) {
40589 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
7e08d4ef 40590 }
0085ce49
RD
40591 if (!argp4) {
40592 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
7e08d4ef 40593 }
0085ce49
RD
40594 arg4 = reinterpret_cast< wxDateTime * >(argp4);
40595 }
40596 if (obj4) {
d14a1e28 40597 {
0085ce49
RD
40598 arg5 = &temp5;
40599 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 40600 }
0085ce49
RD
40601 }
40602 if (obj5) {
d14a1e28 40603 {
0085ce49
RD
40604 arg6 = &temp6;
40605 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
40606 }
40607 }
40608 if (obj6) {
40609 ecode7 = SWIG_AsVal_long(obj6, &val7);
40610 if (!SWIG_IsOK(ecode7)) {
40611 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DatePickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
40612 }
40613 arg7 = static_cast< long >(val7);
40614 }
40615 if (obj7) {
40616 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
40617 if (!SWIG_IsOK(res8)) {
40618 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
40619 }
40620 if (!argp8) {
40621 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 40622 }
0085ce49
RD
40623 arg8 = reinterpret_cast< wxValidator * >(argp8);
40624 }
40625 if (obj8) {
d14a1e28 40626 {
0085ce49
RD
40627 arg9 = wxString_in_helper(obj8);
40628 if (arg9 == NULL) SWIG_fail;
40629 temp9 = true;
d14a1e28 40630 }
0085ce49
RD
40631 }
40632 {
40633 PyThreadState* __tstate = wxPyBeginAllowThreads();
40634 result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
40635 wxPyEndAllowThreads(__tstate);
40636 if (PyErr_Occurred()) SWIG_fail;
40637 }
40638 {
40639 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40640 }
40641 {
40642 if (temp9)
40643 delete arg9;
40644 }
40645 return resultobj;
40646fail:
40647 {
40648 if (temp9)
40649 delete arg9;
40650 }
40651 return NULL;
40652}
40653
40654
40655SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40656 PyObject *resultobj = 0;
40657 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40658 wxDateTime *arg2 = 0 ;
40659 void *argp1 = 0 ;
40660 int res1 = 0 ;
40661 void *argp2 = 0 ;
40662 int res2 = 0 ;
40663 PyObject * obj0 = 0 ;
40664 PyObject * obj1 = 0 ;
40665 char * kwnames[] = {
40666 (char *) "self",(char *) "dt", NULL
40667 };
40668
40669 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
40670 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40671 if (!SWIG_IsOK(res1)) {
40672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
40673 }
40674 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40675 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
40676 if (!SWIG_IsOK(res2)) {
40677 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
40678 }
40679 if (!argp2) {
40680 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
40681 }
40682 arg2 = reinterpret_cast< wxDateTime * >(argp2);
40683 {
40684 PyThreadState* __tstate = wxPyBeginAllowThreads();
40685 (arg1)->SetValue((wxDateTime const &)*arg2);
40686 wxPyEndAllowThreads(__tstate);
40687 if (PyErr_Occurred()) SWIG_fail;
40688 }
40689 resultobj = SWIG_Py_Void();
40690 return resultobj;
40691fail:
40692 return NULL;
d14a1e28
RD
40693}
40694
40695
0085ce49
RD
40696SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40697 PyObject *resultobj = 0;
40698 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40699 wxDateTime result;
40700 void *argp1 = 0 ;
40701 int res1 = 0 ;
40702 PyObject *swig_obj[1] ;
40703
40704 if (!args) SWIG_fail;
40705 swig_obj[0] = args;
40706 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40707 if (!SWIG_IsOK(res1)) {
40708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl const *""'");
40709 }
40710 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40711 {
40712 PyThreadState* __tstate = wxPyBeginAllowThreads();
40713 result = ((wxDatePickerCtrl const *)arg1)->GetValue();
40714 wxPyEndAllowThreads(__tstate);
40715 if (PyErr_Occurred()) SWIG_fail;
40716 }
40717 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
40718 return resultobj;
40719fail:
40720 return NULL;
40721}
40722
40723
40724SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40725 PyObject *resultobj = 0;
40726 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40727 wxDateTime *arg2 = 0 ;
40728 wxDateTime *arg3 = 0 ;
40729 void *argp1 = 0 ;
40730 int res1 = 0 ;
40731 void *argp2 = 0 ;
40732 int res2 = 0 ;
40733 void *argp3 = 0 ;
40734 int res3 = 0 ;
40735 PyObject * obj0 = 0 ;
40736 PyObject * obj1 = 0 ;
40737 PyObject * obj2 = 0 ;
40738 char * kwnames[] = {
40739 (char *) "self",(char *) "dt1",(char *) "dt2", NULL
40740 };
40741
40742 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40743 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40744 if (!SWIG_IsOK(res1)) {
40745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
40746 }
40747 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40748 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
40749 if (!SWIG_IsOK(res2)) {
40750 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
40751 }
40752 if (!argp2) {
40753 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
40754 }
40755 arg2 = reinterpret_cast< wxDateTime * >(argp2);
40756 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
40757 if (!SWIG_IsOK(res3)) {
40758 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
40759 }
40760 if (!argp3) {
40761 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
40762 }
40763 arg3 = reinterpret_cast< wxDateTime * >(argp3);
40764 {
40765 PyThreadState* __tstate = wxPyBeginAllowThreads();
40766 (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
40767 wxPyEndAllowThreads(__tstate);
40768 if (PyErr_Occurred()) SWIG_fail;
40769 }
40770 resultobj = SWIG_Py_Void();
40771 return resultobj;
40772fail:
40773 return NULL;
d14a1e28
RD
40774}
40775
40776
0085ce49
RD
40777SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40778 PyObject *resultobj = 0;
40779 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40780 wxDateTime result;
40781 void *argp1 = 0 ;
40782 int res1 = 0 ;
40783 PyObject *swig_obj[1] ;
40784
40785 if (!args) SWIG_fail;
40786 swig_obj[0] = args;
40787 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40788 if (!SWIG_IsOK(res1)) {
40789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetLowerLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
40790 }
40791 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40792 {
40793 PyThreadState* __tstate = wxPyBeginAllowThreads();
40794 result = wxDatePickerCtrl_GetLowerLimit(arg1);
40795 wxPyEndAllowThreads(__tstate);
40796 if (PyErr_Occurred()) SWIG_fail;
40797 }
40798 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
40799 return resultobj;
40800fail:
40801 return NULL;
d14a1e28
RD
40802}
40803
40804
0085ce49
RD
40805SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40806 PyObject *resultobj = 0;
40807 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40808 wxDateTime result;
40809 void *argp1 = 0 ;
40810 int res1 = 0 ;
40811 PyObject *swig_obj[1] ;
40812
40813 if (!args) SWIG_fail;
40814 swig_obj[0] = args;
40815 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40816 if (!SWIG_IsOK(res1)) {
40817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetUpperLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
40818 }
40819 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40820 {
40821 PyThreadState* __tstate = wxPyBeginAllowThreads();
40822 result = wxDatePickerCtrl_GetUpperLimit(arg1);
40823 wxPyEndAllowThreads(__tstate);
40824 if (PyErr_Occurred()) SWIG_fail;
40825 }
40826 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
40827 return resultobj;
40828fail:
40829 return NULL;
d14a1e28
RD
40830}
40831
40832
0085ce49
RD
40833SWIGINTERN PyObject *DatePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40834 PyObject *obj;
40835 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40836 SWIG_TypeNewClientData(SWIGTYPE_p_wxDatePickerCtrl, SWIG_NewClientData(obj));
40837 return SWIG_Py_Void();
d14a1e28
RD
40838}
40839
0085ce49
RD
40840SWIGINTERN PyObject *DatePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40841 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
40842}
40843
0085ce49
RD
40844static PyMethodDef SwigMethods[] = {
40845 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL},
40846 { (char *)"new_PreButton", (PyCFunction)_wrap_new_PreButton, METH_NOARGS, NULL},
40847 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40848 { (char *)"Button_SetDefault", (PyCFunction)_wrap_Button_SetDefault, METH_O, NULL},
40849 { (char *)"Button_GetDefaultSize", (PyCFunction)_wrap_Button_GetDefaultSize, METH_NOARGS, NULL},
40850 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40851 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL},
40852 { (char *)"Button_swiginit", Button_swiginit, METH_VARARGS, NULL},
40853 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL},
40854 { (char *)"new_PreBitmapButton", (PyCFunction)_wrap_new_PreBitmapButton, METH_NOARGS, NULL},
40855 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40856 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction)_wrap_BitmapButton_GetBitmapLabel, METH_O, NULL},
40857 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction)_wrap_BitmapButton_GetBitmapDisabled, METH_O, NULL},
40858 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction)_wrap_BitmapButton_GetBitmapFocus, METH_O, NULL},
40859 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction)_wrap_BitmapButton_GetBitmapSelected, METH_O, NULL},
40860 { (char *)"BitmapButton_GetBitmapHover", (PyCFunction)_wrap_BitmapButton_GetBitmapHover, METH_O, NULL},
40861 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL},
40862 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL},
40863 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL},
40864 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL},
40865 { (char *)"BitmapButton_SetBitmapHover", (PyCFunction) _wrap_BitmapButton_SetBitmapHover, METH_VARARGS | METH_KEYWORDS, NULL},
40866 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
40867 { (char *)"BitmapButton_GetMarginX", (PyCFunction)_wrap_BitmapButton_GetMarginX, METH_O, NULL},
40868 { (char *)"BitmapButton_GetMarginY", (PyCFunction)_wrap_BitmapButton_GetMarginY, METH_O, NULL},
40869 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL},
40870 { (char *)"BitmapButton_swiginit", BitmapButton_swiginit, METH_VARARGS, NULL},
40871 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
40872 { (char *)"new_PreCheckBox", (PyCFunction)_wrap_new_PreCheckBox, METH_NOARGS, NULL},
40873 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40874 { (char *)"CheckBox_GetValue", (PyCFunction)_wrap_CheckBox_GetValue, METH_O, NULL},
40875 { (char *)"CheckBox_IsChecked", (PyCFunction)_wrap_CheckBox_IsChecked, METH_O, NULL},
40876 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
40877 { (char *)"CheckBox_Get3StateValue", (PyCFunction)_wrap_CheckBox_Get3StateValue, METH_O, NULL},
40878 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL},
40879 { (char *)"CheckBox_Is3State", (PyCFunction)_wrap_CheckBox_Is3State, METH_O, NULL},
40880 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction)_wrap_CheckBox_Is3rdStateAllowedForUser, METH_O, NULL},
40881 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40882 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL},
40883 { (char *)"CheckBox_swiginit", CheckBox_swiginit, METH_VARARGS, NULL},
40884 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL},
40885 { (char *)"new_PreChoice", (PyCFunction)_wrap_new_PreChoice, METH_NOARGS, NULL},
40886 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40887 { (char *)"Choice_GetCurrentSelection", (PyCFunction)_wrap_Choice_GetCurrentSelection, METH_O, NULL},
40888 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40889 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL},
40890 { (char *)"Choice_swiginit", Choice_swiginit, METH_VARARGS, NULL},
40891 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL},
40892 { (char *)"new_PreComboBox", (PyCFunction)_wrap_new_PreComboBox, METH_NOARGS, NULL},
40893 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40894 { (char *)"ComboBox_GetValue", (PyCFunction)_wrap_ComboBox_GetValue, METH_O, NULL},
40895 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
40896 { (char *)"ComboBox_Copy", (PyCFunction)_wrap_ComboBox_Copy, METH_O, NULL},
40897 { (char *)"ComboBox_Cut", (PyCFunction)_wrap_ComboBox_Cut, METH_O, NULL},
40898 { (char *)"ComboBox_Paste", (PyCFunction)_wrap_ComboBox_Paste, METH_O, NULL},
40899 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40900 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction)_wrap_ComboBox_GetInsertionPoint, METH_O, NULL},
40901 { (char *)"ComboBox_GetLastPosition", (PyCFunction)_wrap_ComboBox_GetLastPosition, METH_O, NULL},
40902 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
40903 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL},
40904 { (char *)"ComboBox_GetMark", (PyCFunction)_wrap_ComboBox_GetMark, METH_O, NULL},
40905 { (char *)"ComboBox_GetCurrentSelection", (PyCFunction)_wrap_ComboBox_GetCurrentSelection, METH_O, NULL},
40906 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
50f151d7 40907 { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
40908 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
40909 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction)_wrap_ComboBox_SetInsertionPointEnd, METH_O, NULL},
40910 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
40911 { (char *)"ComboBox_IsEditable", (PyCFunction)_wrap_ComboBox_IsEditable, METH_O, NULL},
40912 { (char *)"ComboBox_Undo", (PyCFunction)_wrap_ComboBox_Undo, METH_O, NULL},
40913 { (char *)"ComboBox_Redo", (PyCFunction)_wrap_ComboBox_Redo, METH_O, NULL},
40914 { (char *)"ComboBox_SelectAll", (PyCFunction)_wrap_ComboBox_SelectAll, METH_O, NULL},
40915 { (char *)"ComboBox_CanCopy", (PyCFunction)_wrap_ComboBox_CanCopy, METH_O, NULL},
40916 { (char *)"ComboBox_CanCut", (PyCFunction)_wrap_ComboBox_CanCut, METH_O, NULL},
40917 { (char *)"ComboBox_CanPaste", (PyCFunction)_wrap_ComboBox_CanPaste, METH_O, NULL},
40918 { (char *)"ComboBox_CanUndo", (PyCFunction)_wrap_ComboBox_CanUndo, METH_O, NULL},
40919 { (char *)"ComboBox_CanRedo", (PyCFunction)_wrap_ComboBox_CanRedo, METH_O, NULL},
40920 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40921 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL},
40922 { (char *)"ComboBox_swiginit", ComboBox_swiginit, METH_VARARGS, NULL},
40923 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL},
40924 { (char *)"new_PreGauge", (PyCFunction)_wrap_new_PreGauge, METH_NOARGS, NULL},
40925 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40926 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
40927 { (char *)"Gauge_GetRange", (PyCFunction)_wrap_Gauge_GetRange, METH_O, NULL},
40928 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
40929 { (char *)"Gauge_GetValue", (PyCFunction)_wrap_Gauge_GetValue, METH_O, NULL},
40930 { (char *)"Gauge_IsVertical", (PyCFunction)_wrap_Gauge_IsVertical, METH_O, NULL},
40931 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL},
40932 { (char *)"Gauge_GetShadowWidth", (PyCFunction)_wrap_Gauge_GetShadowWidth, METH_O, NULL},
40933 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL},
40934 { (char *)"Gauge_GetBezelFace", (PyCFunction)_wrap_Gauge_GetBezelFace, METH_O, NULL},
40935 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40936 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL},
40937 { (char *)"Gauge_swiginit", Gauge_swiginit, METH_VARARGS, NULL},
40938 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL},
40939 { (char *)"new_PreStaticBox", (PyCFunction)_wrap_new_PreStaticBox, METH_NOARGS, NULL},
40940 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40941 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40942 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL},
40943 { (char *)"StaticBox_swiginit", StaticBox_swiginit, METH_VARARGS, NULL},
40944 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL},
40945 { (char *)"new_PreStaticLine", (PyCFunction)_wrap_new_PreStaticLine, METH_NOARGS, NULL},
40946 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40947 { (char *)"StaticLine_IsVertical", (PyCFunction)_wrap_StaticLine_IsVertical, METH_O, NULL},
40948 { (char *)"StaticLine_GetDefaultSize", (PyCFunction)_wrap_StaticLine_GetDefaultSize, METH_NOARGS, NULL},
40949 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40950 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL},
40951 { (char *)"StaticLine_swiginit", StaticLine_swiginit, METH_VARARGS, NULL},
40952 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL},
40953 { (char *)"new_PreStaticText", (PyCFunction)_wrap_new_PreStaticText, METH_NOARGS, NULL},
40954 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40955 { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL},
40956 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40957 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL},
40958 { (char *)"StaticText_swiginit", StaticText_swiginit, METH_VARARGS, NULL},
40959 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
40960 { (char *)"new_PreStaticBitmap", (PyCFunction)_wrap_new_PreStaticBitmap, METH_NOARGS, NULL},
40961 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40962 { (char *)"StaticBitmap_GetBitmap", (PyCFunction)_wrap_StaticBitmap_GetBitmap, METH_O, NULL},
40963 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
40964 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
40965 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40966 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL},
40967 { (char *)"StaticBitmap_swiginit", StaticBitmap_swiginit, METH_VARARGS, NULL},
40968 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL},
40969 { (char *)"new_PreListBox", (PyCFunction)_wrap_new_PreListBox, METH_NOARGS, NULL},
40970 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40971 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
40972 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL},
40973 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL},
40974 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
40975 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
40976 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL},
40977 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL},
40978 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL},
40979 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
40980 { (char *)"ListBox_GetSelections", (PyCFunction)_wrap_ListBox_GetSelections, METH_O, NULL},
40981 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL},
40982 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL},
40983 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
40984 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
40985 { (char *)"ListBox_IsSorted", (PyCFunction)_wrap_ListBox_IsSorted, METH_O, NULL},
40986 { (char *)"ListBox_HitTest", (PyCFunction) _wrap_ListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
40987 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
40988 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
40989 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
40990 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40991 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL},
40992 { (char *)"ListBox_swiginit", ListBox_swiginit, METH_VARARGS, NULL},
40993 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL},
40994 { (char *)"new_PreCheckListBox", (PyCFunction)_wrap_new_PreCheckListBox, METH_NOARGS, NULL},
40995 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40996 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
40997 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL},
40998 { (char *)"CheckListBox_GetItemHeight", (PyCFunction)_wrap_CheckListBox_GetItemHeight, METH_O, NULL},
40999 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL},
41000 { (char *)"CheckListBox_swiginit", CheckListBox_swiginit, METH_VARARGS, NULL},
41001 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL},
41002 { (char *)"delete_TextAttr", (PyCFunction)_wrap_delete_TextAttr, METH_O, NULL},
41003 { (char *)"TextAttr_Init", (PyCFunction)_wrap_TextAttr_Init, METH_O, NULL},
01f6b6d3 41004 { (char *)"TextAttr_Merge", (PyCFunction) _wrap_TextAttr_Merge, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
41005 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41006 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41007 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
41008 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
41009 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL},
41010 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
41011 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
41012 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
41013 { (char *)"TextAttr_HasTextColour", (PyCFunction)_wrap_TextAttr_HasTextColour, METH_O, NULL},
41014 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction)_wrap_TextAttr_HasBackgroundColour, METH_O, NULL},
41015 { (char *)"TextAttr_HasFont", (PyCFunction)_wrap_TextAttr_HasFont, METH_O, NULL},
41016 { (char *)"TextAttr_HasAlignment", (PyCFunction)_wrap_TextAttr_HasAlignment, METH_O, NULL},
41017 { (char *)"TextAttr_HasTabs", (PyCFunction)_wrap_TextAttr_HasTabs, METH_O, NULL},
41018 { (char *)"TextAttr_HasLeftIndent", (PyCFunction)_wrap_TextAttr_HasLeftIndent, METH_O, NULL},
41019 { (char *)"TextAttr_HasRightIndent", (PyCFunction)_wrap_TextAttr_HasRightIndent, METH_O, NULL},
41020 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL},
41021 { (char *)"TextAttr_GetTextColour", (PyCFunction)_wrap_TextAttr_GetTextColour, METH_O, NULL},
41022 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction)_wrap_TextAttr_GetBackgroundColour, METH_O, NULL},
41023 { (char *)"TextAttr_GetFont", (PyCFunction)_wrap_TextAttr_GetFont, METH_O, NULL},
41024 { (char *)"TextAttr_GetAlignment", (PyCFunction)_wrap_TextAttr_GetAlignment, METH_O, NULL},
41025 { (char *)"TextAttr_GetTabs", (PyCFunction)_wrap_TextAttr_GetTabs, METH_O, NULL},
41026 { (char *)"TextAttr_GetLeftIndent", (PyCFunction)_wrap_TextAttr_GetLeftIndent, METH_O, NULL},
41027 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction)_wrap_TextAttr_GetLeftSubIndent, METH_O, NULL},
41028 { (char *)"TextAttr_GetRightIndent", (PyCFunction)_wrap_TextAttr_GetRightIndent, METH_O, NULL},
41029 { (char *)"TextAttr_GetFlags", (PyCFunction)_wrap_TextAttr_GetFlags, METH_O, NULL},
41030 { (char *)"TextAttr_IsDefault", (PyCFunction)_wrap_TextAttr_IsDefault, METH_O, NULL},
41031 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL},
41032 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL},
41033 { (char *)"TextAttr_swiginit", TextAttr_swiginit, METH_VARARGS, NULL},
41034 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41035 { (char *)"new_PreTextCtrl", (PyCFunction)_wrap_new_PreTextCtrl, METH_NOARGS, NULL},
41036 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41037 { (char *)"TextCtrl_GetValue", (PyCFunction)_wrap_TextCtrl_GetValue, METH_O, NULL},
41038 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41039 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL},
41040 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL},
41041 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL},
41042 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction)_wrap_TextCtrl_GetNumberOfLines, METH_O, NULL},
41043 { (char *)"TextCtrl_IsModified", (PyCFunction)_wrap_TextCtrl_IsModified, METH_O, NULL},
41044 { (char *)"TextCtrl_IsEditable", (PyCFunction)_wrap_TextCtrl_IsEditable, METH_O, NULL},
41045 { (char *)"TextCtrl_IsSingleLine", (PyCFunction)_wrap_TextCtrl_IsSingleLine, METH_O, NULL},
41046 { (char *)"TextCtrl_IsMultiLine", (PyCFunction)_wrap_TextCtrl_IsMultiLine, METH_O, NULL},
41047 { (char *)"TextCtrl_GetSelection", (PyCFunction)_wrap_TextCtrl_GetSelection, METH_O, NULL},
41048 { (char *)"TextCtrl_GetStringSelection", (PyCFunction)_wrap_TextCtrl_GetStringSelection, METH_O, NULL},
41049 { (char *)"TextCtrl_Clear", (PyCFunction)_wrap_TextCtrl_Clear, METH_O, NULL},
41050 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
41051 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
41052 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
41053 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
41054 { (char *)"TextCtrl_MarkDirty", (PyCFunction)_wrap_TextCtrl_MarkDirty, METH_O, NULL},
41055 { (char *)"TextCtrl_DiscardEdits", (PyCFunction)_wrap_TextCtrl_DiscardEdits, METH_O, NULL},
41056 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL},
41057 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL},
41058 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL},
41059 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL},
41060 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
41061 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
41062 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL},
41063 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction)_wrap_TextCtrl_GetDefaultStyle, METH_O, NULL},
41064 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41065 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL},
41066 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41067 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
41068 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL},
41069 { (char *)"TextCtrl_Copy", (PyCFunction)_wrap_TextCtrl_Copy, METH_O, NULL},
41070 { (char *)"TextCtrl_Cut", (PyCFunction)_wrap_TextCtrl_Cut, METH_O, NULL},
41071 { (char *)"TextCtrl_Paste", (PyCFunction)_wrap_TextCtrl_Paste, METH_O, NULL},
41072 { (char *)"TextCtrl_CanCopy", (PyCFunction)_wrap_TextCtrl_CanCopy, METH_O, NULL},
41073 { (char *)"TextCtrl_CanCut", (PyCFunction)_wrap_TextCtrl_CanCut, METH_O, NULL},
41074 { (char *)"TextCtrl_CanPaste", (PyCFunction)_wrap_TextCtrl_CanPaste, METH_O, NULL},
41075 { (char *)"TextCtrl_Undo", (PyCFunction)_wrap_TextCtrl_Undo, METH_O, NULL},
41076 { (char *)"TextCtrl_Redo", (PyCFunction)_wrap_TextCtrl_Redo, METH_O, NULL},
41077 { (char *)"TextCtrl_CanUndo", (PyCFunction)_wrap_TextCtrl_CanUndo, METH_O, NULL},
41078 { (char *)"TextCtrl_CanRedo", (PyCFunction)_wrap_TextCtrl_CanRedo, METH_O, NULL},
41079 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
41080 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_TextCtrl_SetInsertionPointEnd, METH_O, NULL},
41081 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction)_wrap_TextCtrl_GetInsertionPoint, METH_O, NULL},
41082 { (char *)"TextCtrl_GetLastPosition", (PyCFunction)_wrap_TextCtrl_GetLastPosition, METH_O, NULL},
41083 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41084 { (char *)"TextCtrl_SelectAll", (PyCFunction)_wrap_TextCtrl_SelectAll, METH_O, NULL},
41085 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
41086 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL},
41087 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
41088 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41089 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL},
41090 { (char *)"TextCtrl_swiginit", TextCtrl_swiginit, METH_VARARGS, NULL},
41091 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41092 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction)_wrap_TextUrlEvent_GetMouseEvent, METH_O, NULL},
41093 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction)_wrap_TextUrlEvent_GetURLStart, METH_O, NULL},
41094 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction)_wrap_TextUrlEvent_GetURLEnd, METH_O, NULL},
41095 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL},
41096 { (char *)"TextUrlEvent_swiginit", TextUrlEvent_swiginit, METH_VARARGS, NULL},
41097 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL},
41098 { (char *)"new_PreScrollBar", (PyCFunction)_wrap_new_PreScrollBar, METH_NOARGS, NULL},
41099 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41100 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction)_wrap_ScrollBar_GetThumbPosition, METH_O, NULL},
41101 { (char *)"ScrollBar_GetThumbSize", (PyCFunction)_wrap_ScrollBar_GetThumbSize, METH_O, NULL},
41102 { (char *)"ScrollBar_GetPageSize", (PyCFunction)_wrap_ScrollBar_GetPageSize, METH_O, NULL},
41103 { (char *)"ScrollBar_GetRange", (PyCFunction)_wrap_ScrollBar_GetRange, METH_O, NULL},
41104 { (char *)"ScrollBar_IsVertical", (PyCFunction)_wrap_ScrollBar_IsVertical, METH_O, NULL},
41105 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41106 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41107 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL},
41108 { (char *)"ScrollBar_swiginit", ScrollBar_swiginit, METH_VARARGS, NULL},
41109 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL},
41110 { (char *)"new_PreSpinButton", (PyCFunction)_wrap_new_PreSpinButton, METH_NOARGS, NULL},
41111 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41112 { (char *)"SpinButton_GetValue", (PyCFunction)_wrap_SpinButton_GetValue, METH_O, NULL},
41113 { (char *)"SpinButton_GetMin", (PyCFunction)_wrap_SpinButton_GetMin, METH_O, NULL},
41114 { (char *)"SpinButton_GetMax", (PyCFunction)_wrap_SpinButton_GetMax, METH_O, NULL},
41115 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41116 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
41117 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
41118 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
41119 { (char *)"SpinButton_IsVertical", (PyCFunction)_wrap_SpinButton_IsVertical, METH_O, NULL},
41120 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41121 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL},
41122 { (char *)"SpinButton_swiginit", SpinButton_swiginit, METH_VARARGS, NULL},
41123 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41124 { (char *)"new_PreSpinCtrl", (PyCFunction)_wrap_new_PreSpinCtrl, METH_NOARGS, NULL},
41125 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41126 { (char *)"SpinCtrl_GetValue", (PyCFunction)_wrap_SpinCtrl_GetValue, METH_O, NULL},
41127 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41128 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL},
41129 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
41130 { (char *)"SpinCtrl_GetMin", (PyCFunction)_wrap_SpinCtrl_GetMin, METH_O, NULL},
41131 { (char *)"SpinCtrl_GetMax", (PyCFunction)_wrap_SpinCtrl_GetMax, METH_O, NULL},
41132 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41133 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41134 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL},
41135 { (char *)"SpinCtrl_swiginit", SpinCtrl_swiginit, METH_VARARGS, NULL},
41136 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41137 { (char *)"SpinEvent_GetPosition", (PyCFunction)_wrap_SpinEvent_GetPosition, METH_O, NULL},
41138 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41139 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL},
41140 { (char *)"SpinEvent_swiginit", SpinEvent_swiginit, METH_VARARGS, NULL},
41141 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL},
41142 { (char *)"new_PreRadioBox", (PyCFunction)_wrap_new_PreRadioBox, METH_NOARGS, NULL},
41143 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41144 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41145 { (char *)"RadioBox_GetSelection", (PyCFunction)_wrap_RadioBox_GetSelection, METH_O, NULL},
41146 { (char *)"RadioBox_GetStringSelection", (PyCFunction)_wrap_RadioBox_GetStringSelection, METH_O, NULL},
41147 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41148 { (char *)"RadioBox_GetCount", (PyCFunction)_wrap_RadioBox_GetCount, METH_O, NULL},
41149 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL},
41150 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
41151 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
41152 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL},
41153 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL},
50f151d7
RD
41154 { (char *)"RadioBox_IsItemEnabled", (PyCFunction) _wrap_RadioBox_IsItemEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
41155 { (char *)"RadioBox_IsItemShown", (PyCFunction) _wrap_RadioBox_IsItemShown, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
41156 { (char *)"RadioBox_GetColumnCount", (PyCFunction)_wrap_RadioBox_GetColumnCount, METH_O, NULL},
41157 { (char *)"RadioBox_GetRowCount", (PyCFunction)_wrap_RadioBox_GetRowCount, METH_O, NULL},
41158 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
01f6b6d3
RD
41159 { (char *)"RadioBox_SetItemToolTip", (PyCFunction) _wrap_RadioBox_SetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
41160 { (char *)"RadioBox_GetItemToolTip", (PyCFunction) _wrap_RadioBox_GetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
41161 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41162 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL},
41163 { (char *)"RadioBox_swiginit", RadioBox_swiginit, METH_VARARGS, NULL},
41164 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL},
41165 { (char *)"new_PreRadioButton", (PyCFunction)_wrap_new_PreRadioButton, METH_NOARGS, NULL},
41166 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41167 { (char *)"RadioButton_GetValue", (PyCFunction)_wrap_RadioButton_GetValue, METH_O, NULL},
41168 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41169 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41170 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL},
41171 { (char *)"RadioButton_swiginit", RadioButton_swiginit, METH_VARARGS, NULL},
41172 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL},
41173 { (char *)"new_PreSlider", (PyCFunction)_wrap_new_PreSlider, METH_NOARGS, NULL},
41174 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41175 { (char *)"Slider_GetValue", (PyCFunction)_wrap_Slider_GetValue, METH_O, NULL},
41176 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41177 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
41178 { (char *)"Slider_GetMin", (PyCFunction)_wrap_Slider_GetMin, METH_O, NULL},
41179 { (char *)"Slider_GetMax", (PyCFunction)_wrap_Slider_GetMax, METH_O, NULL},
41180 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
41181 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
41182 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL},
41183 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
41184 { (char *)"Slider_GetLineSize", (PyCFunction)_wrap_Slider_GetLineSize, METH_O, NULL},
41185 { (char *)"Slider_GetPageSize", (PyCFunction)_wrap_Slider_GetPageSize, METH_O, NULL},
41186 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL},
41187 { (char *)"Slider_GetThumbLength", (PyCFunction)_wrap_Slider_GetThumbLength, METH_O, NULL},
41188 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL},
41189 { (char *)"Slider_GetTickFreq", (PyCFunction)_wrap_Slider_GetTickFreq, METH_O, NULL},
41190 { (char *)"Slider_ClearTicks", (PyCFunction)_wrap_Slider_ClearTicks, METH_O, NULL},
41191 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL},
41192 { (char *)"Slider_ClearSel", (PyCFunction)_wrap_Slider_ClearSel, METH_O, NULL},
41193 { (char *)"Slider_GetSelEnd", (PyCFunction)_wrap_Slider_GetSelEnd, METH_O, NULL},
41194 { (char *)"Slider_GetSelStart", (PyCFunction)_wrap_Slider_GetSelStart, METH_O, NULL},
41195 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41196 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41197 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL},
41198 { (char *)"Slider_swiginit", Slider_swiginit, METH_VARARGS, NULL},
41199 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL},
41200 { (char *)"new_PreToggleButton", (PyCFunction)_wrap_new_PreToggleButton, METH_NOARGS, NULL},
41201 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41202 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41203 { (char *)"ToggleButton_GetValue", (PyCFunction)_wrap_ToggleButton_GetValue, METH_O, NULL},
41204 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41205 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL},
41206 { (char *)"ToggleButton_swiginit", ToggleButton_swiginit, METH_VARARGS, NULL},
41207 { (char *)"BookCtrlBase_GetPageCount", (PyCFunction)_wrap_BookCtrlBase_GetPageCount, METH_O, NULL},
41208 { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL},
41209 { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetCurrentPage, METH_O, NULL},
41210 { (char *)"BookCtrlBase_GetSelection", (PyCFunction)_wrap_BookCtrlBase_GetSelection, METH_O, NULL},
41211 { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
41212 { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
41213 { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41214 { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41215 { (char *)"BookCtrlBase_GetImageList", (PyCFunction)_wrap_BookCtrlBase_GetImageList, METH_O, NULL},
41216 { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
41217 { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
41218 { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
41219 { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL},
41220 { (char *)"BookCtrlBase_GetInternalBorder", (PyCFunction)_wrap_BookCtrlBase_GetInternalBorder, METH_O, NULL},
41221 { (char *)"BookCtrlBase_SetInternalBorder", (PyCFunction) _wrap_BookCtrlBase_SetInternalBorder, METH_VARARGS | METH_KEYWORDS, NULL},
41222 { (char *)"BookCtrlBase_IsVertical", (PyCFunction)_wrap_BookCtrlBase_IsVertical, METH_O, NULL},
e9d6f3a4
RD
41223 { (char *)"BookCtrlBase_SetControlMargin", (PyCFunction) _wrap_BookCtrlBase_SetControlMargin, METH_VARARGS | METH_KEYWORDS, NULL},
41224 { (char *)"BookCtrlBase_GetControlMargin", (PyCFunction)_wrap_BookCtrlBase_GetControlMargin, METH_O, NULL},
0085ce49
RD
41225 { (char *)"BookCtrlBase_SetFitToCurrentPage", (PyCFunction) _wrap_BookCtrlBase_SetFitToCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL},
41226 { (char *)"BookCtrlBase_GetFitToCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetFitToCurrentPage, METH_O, NULL},
e9d6f3a4 41227 { (char *)"BookCtrlBase_GetControlSizer", (PyCFunction)_wrap_BookCtrlBase_GetControlSizer, METH_O, NULL},
0085ce49
RD
41228 { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL},
41229 { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL},
41230 { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction)_wrap_BookCtrlBase_DeleteAllPages, METH_O, NULL},
41231 { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL},
41232 { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL},
41233 { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41234 { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41235 { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41236 { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL},
41237 { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41238 { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetSelection, METH_O, NULL},
41239 { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41240 { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetOldSelection, METH_O, NULL},
41241 { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41242 { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL},
41243 { (char *)"BookCtrlBaseEvent_swiginit", BookCtrlBaseEvent_swiginit, METH_VARARGS, NULL},
41244 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL},
41245 { (char *)"new_PreNotebook", (PyCFunction)_wrap_new_PreNotebook, METH_NOARGS, NULL},
41246 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41247 { (char *)"Notebook_GetRowCount", (PyCFunction)_wrap_Notebook_GetRowCount, METH_O, NULL},
41248 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL},
41249 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL},
41250 { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
41251 { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction)_wrap_Notebook_GetThemeBackgroundColour, METH_O, NULL},
41252 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41253 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL},
41254 { (char *)"Notebook_swiginit", Notebook_swiginit, METH_VARARGS, NULL},
41255 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41256 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL},
41257 { (char *)"NotebookEvent_swiginit", NotebookEvent_swiginit, METH_VARARGS, NULL},
41258 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL},
41259 { (char *)"new_PreListbook", (PyCFunction)_wrap_new_PreListbook, METH_NOARGS, NULL},
41260 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41261 { (char *)"Listbook_GetListView", (PyCFunction)_wrap_Listbook_GetListView, METH_O, NULL},
41262 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL},
41263 { (char *)"Listbook_swiginit", Listbook_swiginit, METH_VARARGS, NULL},
41264 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41265 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL},
41266 { (char *)"ListbookEvent_swiginit", ListbookEvent_swiginit, METH_VARARGS, NULL},
41267 { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL},
41268 { (char *)"new_PreChoicebook", (PyCFunction)_wrap_new_PreChoicebook, METH_NOARGS, NULL},
41269 { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41270 { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction)_wrap_Choicebook_GetChoiceCtrl, METH_O, NULL},
41271 { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL},
41272 { (char *)"Choicebook_swiginit", Choicebook_swiginit, METH_VARARGS, NULL},
41273 { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41274 { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL},
41275 { (char *)"ChoicebookEvent_swiginit", ChoicebookEvent_swiginit, METH_VARARGS, NULL},
41276 { (char *)"new_Treebook", (PyCFunction) _wrap_new_Treebook, METH_VARARGS | METH_KEYWORDS, NULL},
41277 { (char *)"new_PreTreebook", (PyCFunction)_wrap_new_PreTreebook, METH_NOARGS, NULL},
41278 { (char *)"Treebook_Create", (PyCFunction) _wrap_Treebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41279 { (char *)"Treebook_InsertSubPage", (PyCFunction) _wrap_Treebook_InsertSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
41280 { (char *)"Treebook_AddSubPage", (PyCFunction) _wrap_Treebook_AddSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
41281 { (char *)"Treebook_IsNodeExpanded", (PyCFunction) _wrap_Treebook_IsNodeExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
41282 { (char *)"Treebook_ExpandNode", (PyCFunction) _wrap_Treebook_ExpandNode, METH_VARARGS | METH_KEYWORDS, NULL},
41283 { (char *)"Treebook_CollapseNode", (PyCFunction) _wrap_Treebook_CollapseNode, METH_VARARGS | METH_KEYWORDS, NULL},
41284 { (char *)"Treebook_GetPageParent", (PyCFunction) _wrap_Treebook_GetPageParent, METH_VARARGS | METH_KEYWORDS, NULL},
41285 { (char *)"Treebook_GetTreeCtrl", (PyCFunction)_wrap_Treebook_GetTreeCtrl, METH_O, NULL},
41286 { (char *)"Treebook_swigregister", Treebook_swigregister, METH_VARARGS, NULL},
41287 { (char *)"Treebook_swiginit", Treebook_swiginit, METH_VARARGS, NULL},
41288 { (char *)"new_TreebookEvent", (PyCFunction) _wrap_new_TreebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41289 { (char *)"TreebookEvent_swigregister", TreebookEvent_swigregister, METH_VARARGS, NULL},
41290 { (char *)"TreebookEvent_swiginit", TreebookEvent_swiginit, METH_VARARGS, NULL},
41291 { (char *)"new_Toolbook", (PyCFunction) _wrap_new_Toolbook, METH_VARARGS | METH_KEYWORDS, NULL},
41292 { (char *)"new_PreToolbook", (PyCFunction)_wrap_new_PreToolbook, METH_NOARGS, NULL},
41293 { (char *)"Toolbook_Create", (PyCFunction) _wrap_Toolbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41294 { (char *)"Toolbook_GetToolBar", (PyCFunction)_wrap_Toolbook_GetToolBar, METH_O, NULL},
41295 { (char *)"Toolbook_Realize", (PyCFunction)_wrap_Toolbook_Realize, METH_O, NULL},
41296 { (char *)"Toolbook_swigregister", Toolbook_swigregister, METH_VARARGS, NULL},
41297 { (char *)"Toolbook_swiginit", Toolbook_swiginit, METH_VARARGS, NULL},
41298 { (char *)"new_ToolbookEvent", (PyCFunction) _wrap_new_ToolbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41299 { (char *)"ToolbookEvent_swigregister", ToolbookEvent_swigregister, METH_VARARGS, NULL},
41300 { (char *)"ToolbookEvent_swiginit", ToolbookEvent_swiginit, METH_VARARGS, NULL},
41301 { (char *)"ToolBarToolBase_GetId", (PyCFunction)_wrap_ToolBarToolBase_GetId, METH_O, NULL},
41302 { (char *)"ToolBarToolBase_GetControl", (PyCFunction)_wrap_ToolBarToolBase_GetControl, METH_O, NULL},
41303 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction)_wrap_ToolBarToolBase_GetToolBar, METH_O, NULL},
41304 { (char *)"ToolBarToolBase_IsButton", (PyCFunction)_wrap_ToolBarToolBase_IsButton, METH_O, NULL},
41305 { (char *)"ToolBarToolBase_IsControl", (PyCFunction)_wrap_ToolBarToolBase_IsControl, METH_O, NULL},
41306 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction)_wrap_ToolBarToolBase_IsSeparator, METH_O, NULL},
41307 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction)_wrap_ToolBarToolBase_GetStyle, METH_O, NULL},
41308 { (char *)"ToolBarToolBase_GetKind", (PyCFunction)_wrap_ToolBarToolBase_GetKind, METH_O, NULL},
41309 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction)_wrap_ToolBarToolBase_IsEnabled, METH_O, NULL},
41310 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction)_wrap_ToolBarToolBase_IsToggled, METH_O, NULL},
41311 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction)_wrap_ToolBarToolBase_CanBeToggled, METH_O, NULL},
41312 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetNormalBitmap, METH_O, NULL},
41313 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetDisabledBitmap, METH_O, NULL},
41314 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetBitmap, METH_O, NULL},
41315 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction)_wrap_ToolBarToolBase_GetLabel, METH_O, NULL},
41316 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction)_wrap_ToolBarToolBase_GetShortHelp, METH_O, NULL},
41317 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction)_wrap_ToolBarToolBase_GetLongHelp, METH_O, NULL},
41318 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
41319 { (char *)"ToolBarToolBase_Toggle", (PyCFunction)_wrap_ToolBarToolBase_Toggle, METH_O, NULL},
41320 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
41321 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41322 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41323 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
41324 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
41325 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
41326 { (char *)"ToolBarToolBase_Detach", (PyCFunction)_wrap_ToolBarToolBase_Detach, METH_O, NULL},
41327 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL},
41328 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction)_wrap_ToolBarToolBase_GetClientData, METH_O, NULL},
41329 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
41330 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL},
41331 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL},
41332 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL},
41333 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
41334 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
41335 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL},
41336 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL},
41337 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL},
41338 { (char *)"ToolBarBase_AddSeparator", (PyCFunction)_wrap_ToolBarBase_AddSeparator, METH_O, NULL},
41339 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL},
41340 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL},
41341 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL},
41342 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL},
41343 { (char *)"ToolBarBase_ClearTools", (PyCFunction)_wrap_ToolBarBase_ClearTools, METH_O, NULL},
41344 { (char *)"ToolBarBase_Realize", (PyCFunction)_wrap_ToolBarBase_Realize, METH_O, NULL},
41345 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL},
41346 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL},
41347 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
41348 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
41349 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
41350 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL},
41351 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL},
41352 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
41353 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41354 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41355 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41356 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41357 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL},
41358 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
41359 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL},
41360 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL},
41361 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction)_wrap_ToolBarBase_GetToolMargins, METH_O, NULL},
41362 { (char *)"ToolBarBase_GetMargins", (PyCFunction)_wrap_ToolBarBase_GetMargins, METH_O, NULL},
41363 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction)_wrap_ToolBarBase_GetToolPacking, METH_O, NULL},
41364 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction)_wrap_ToolBarBase_GetToolSeparation, METH_O, NULL},
41365 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL},
41366 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL},
41367 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction)_wrap_ToolBarBase_GetMaxRows, METH_O, NULL},
41368 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction)_wrap_ToolBarBase_GetMaxCols, METH_O, NULL},
41369 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL},
41370 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction)_wrap_ToolBarBase_GetToolBitmapSize, METH_O, NULL},
41371 { (char *)"ToolBarBase_GetToolSize", (PyCFunction)_wrap_ToolBarBase_GetToolSize, METH_O, NULL},
41372 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41373 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL},
41374 { (char *)"ToolBarBase_IsVertical", (PyCFunction)_wrap_ToolBarBase_IsVertical, METH_O, NULL},
41375 { (char *)"ToolBarBase_GetToolsCount", (PyCFunction)_wrap_ToolBarBase_GetToolsCount, METH_O, NULL},
41376 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL},
41377 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL},
41378 { (char *)"new_PreToolBar", (PyCFunction)_wrap_new_PreToolBar, METH_NOARGS, NULL},
41379 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
41380 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41381 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL},
41382 { (char *)"ToolBar_swiginit", ToolBar_swiginit, METH_VARARGS, NULL},
41383 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL},
41384 { (char *)"delete_ListItemAttr", (PyCFunction)_wrap_delete_ListItemAttr, METH_O, NULL},
41385 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41386 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41387 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
41388 { (char *)"ListItemAttr_HasTextColour", (PyCFunction)_wrap_ListItemAttr_HasTextColour, METH_O, NULL},
41389 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction)_wrap_ListItemAttr_HasBackgroundColour, METH_O, NULL},
41390 { (char *)"ListItemAttr_HasFont", (PyCFunction)_wrap_ListItemAttr_HasFont, METH_O, NULL},
41391 { (char *)"ListItemAttr_GetTextColour", (PyCFunction)_wrap_ListItemAttr_GetTextColour, METH_O, NULL},
41392 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction)_wrap_ListItemAttr_GetBackgroundColour, METH_O, NULL},
41393 { (char *)"ListItemAttr_GetFont", (PyCFunction)_wrap_ListItemAttr_GetFont, METH_O, NULL},
41394 { (char *)"ListItemAttr_AssignFrom", (PyCFunction) _wrap_ListItemAttr_AssignFrom, METH_VARARGS | METH_KEYWORDS, NULL},
41395 { (char *)"ListItemAttr_Destroy", (PyCFunction)_wrap_ListItemAttr_Destroy, METH_O, NULL},
41396 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL},
41397 { (char *)"ListItemAttr_swiginit", ListItemAttr_swiginit, METH_VARARGS, NULL},
41398 { (char *)"new_ListItem", (PyCFunction)_wrap_new_ListItem, METH_NOARGS, NULL},
41399 { (char *)"delete_ListItem", (PyCFunction)_wrap_delete_ListItem, METH_O, NULL},
41400 { (char *)"ListItem_Clear", (PyCFunction)_wrap_ListItem_Clear, METH_O, NULL},
41401 { (char *)"ListItem_ClearAttributes", (PyCFunction)_wrap_ListItem_ClearAttributes, METH_O, NULL},
41402 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
41403 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
41404 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
41405 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
41406 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL},
41407 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
41408 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL},
41409 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
41410 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
41411 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL},
41412 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41413 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41414 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
41415 { (char *)"ListItem_GetMask", (PyCFunction)_wrap_ListItem_GetMask, METH_O, NULL},
41416 { (char *)"ListItem_GetId", (PyCFunction)_wrap_ListItem_GetId, METH_O, NULL},
41417 { (char *)"ListItem_GetColumn", (PyCFunction)_wrap_ListItem_GetColumn, METH_O, NULL},
41418 { (char *)"ListItem_GetState", (PyCFunction)_wrap_ListItem_GetState, METH_O, NULL},
41419 { (char *)"ListItem_GetText", (PyCFunction)_wrap_ListItem_GetText, METH_O, NULL},
41420 { (char *)"ListItem_GetImage", (PyCFunction)_wrap_ListItem_GetImage, METH_O, NULL},
41421 { (char *)"ListItem_GetData", (PyCFunction)_wrap_ListItem_GetData, METH_O, NULL},
41422 { (char *)"ListItem_GetWidth", (PyCFunction)_wrap_ListItem_GetWidth, METH_O, NULL},
41423 { (char *)"ListItem_GetAlign", (PyCFunction)_wrap_ListItem_GetAlign, METH_O, NULL},
41424 { (char *)"ListItem_GetAttributes", (PyCFunction)_wrap_ListItem_GetAttributes, METH_O, NULL},
41425 { (char *)"ListItem_HasAttributes", (PyCFunction)_wrap_ListItem_HasAttributes, METH_O, NULL},
41426 { (char *)"ListItem_GetTextColour", (PyCFunction)_wrap_ListItem_GetTextColour, METH_O, NULL},
41427 { (char *)"ListItem_GetBackgroundColour", (PyCFunction)_wrap_ListItem_GetBackgroundColour, METH_O, NULL},
41428 { (char *)"ListItem_GetFont", (PyCFunction)_wrap_ListItem_GetFont, METH_O, NULL},
41429 { (char *)"ListItem_m_mask_set", _wrap_ListItem_m_mask_set, METH_VARARGS, NULL},
41430 { (char *)"ListItem_m_mask_get", (PyCFunction)_wrap_ListItem_m_mask_get, METH_O, NULL},
41431 { (char *)"ListItem_m_itemId_set", _wrap_ListItem_m_itemId_set, METH_VARARGS, NULL},
41432 { (char *)"ListItem_m_itemId_get", (PyCFunction)_wrap_ListItem_m_itemId_get, METH_O, NULL},
41433 { (char *)"ListItem_m_col_set", _wrap_ListItem_m_col_set, METH_VARARGS, NULL},
41434 { (char *)"ListItem_m_col_get", (PyCFunction)_wrap_ListItem_m_col_get, METH_O, NULL},
41435 { (char *)"ListItem_m_state_set", _wrap_ListItem_m_state_set, METH_VARARGS, NULL},
41436 { (char *)"ListItem_m_state_get", (PyCFunction)_wrap_ListItem_m_state_get, METH_O, NULL},
41437 { (char *)"ListItem_m_stateMask_set", _wrap_ListItem_m_stateMask_set, METH_VARARGS, NULL},
41438 { (char *)"ListItem_m_stateMask_get", (PyCFunction)_wrap_ListItem_m_stateMask_get, METH_O, NULL},
41439 { (char *)"ListItem_m_text_set", _wrap_ListItem_m_text_set, METH_VARARGS, NULL},
41440 { (char *)"ListItem_m_text_get", (PyCFunction)_wrap_ListItem_m_text_get, METH_O, NULL},
41441 { (char *)"ListItem_m_image_set", _wrap_ListItem_m_image_set, METH_VARARGS, NULL},
41442 { (char *)"ListItem_m_image_get", (PyCFunction)_wrap_ListItem_m_image_get, METH_O, NULL},
41443 { (char *)"ListItem_m_data_set", _wrap_ListItem_m_data_set, METH_VARARGS, NULL},
41444 { (char *)"ListItem_m_data_get", (PyCFunction)_wrap_ListItem_m_data_get, METH_O, NULL},
41445 { (char *)"ListItem_m_format_set", _wrap_ListItem_m_format_set, METH_VARARGS, NULL},
41446 { (char *)"ListItem_m_format_get", (PyCFunction)_wrap_ListItem_m_format_get, METH_O, NULL},
41447 { (char *)"ListItem_m_width_set", _wrap_ListItem_m_width_set, METH_VARARGS, NULL},
41448 { (char *)"ListItem_m_width_get", (PyCFunction)_wrap_ListItem_m_width_get, METH_O, NULL},
41449 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL},
41450 { (char *)"ListItem_swiginit", ListItem_swiginit, METH_VARARGS, NULL},
41451 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41452 { (char *)"ListEvent_m_code_set", _wrap_ListEvent_m_code_set, METH_VARARGS, NULL},
41453 { (char *)"ListEvent_m_code_get", (PyCFunction)_wrap_ListEvent_m_code_get, METH_O, NULL},
41454 { (char *)"ListEvent_m_oldItemIndex_set", _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS, NULL},
41455 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction)_wrap_ListEvent_m_oldItemIndex_get, METH_O, NULL},
41456 { (char *)"ListEvent_m_itemIndex_set", _wrap_ListEvent_m_itemIndex_set, METH_VARARGS, NULL},
41457 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction)_wrap_ListEvent_m_itemIndex_get, METH_O, NULL},
41458 { (char *)"ListEvent_m_col_set", _wrap_ListEvent_m_col_set, METH_VARARGS, NULL},
41459 { (char *)"ListEvent_m_col_get", (PyCFunction)_wrap_ListEvent_m_col_get, METH_O, NULL},
41460 { (char *)"ListEvent_m_pointDrag_set", _wrap_ListEvent_m_pointDrag_set, METH_VARARGS, NULL},
41461 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction)_wrap_ListEvent_m_pointDrag_get, METH_O, NULL},
41462 { (char *)"ListEvent_m_item_get", (PyCFunction)_wrap_ListEvent_m_item_get, METH_O, NULL},
41463 { (char *)"ListEvent_GetKeyCode", (PyCFunction)_wrap_ListEvent_GetKeyCode, METH_O, NULL},
41464 { (char *)"ListEvent_GetIndex", (PyCFunction)_wrap_ListEvent_GetIndex, METH_O, NULL},
41465 { (char *)"ListEvent_GetColumn", (PyCFunction)_wrap_ListEvent_GetColumn, METH_O, NULL},
41466 { (char *)"ListEvent_GetPoint", (PyCFunction)_wrap_ListEvent_GetPoint, METH_O, NULL},
41467 { (char *)"ListEvent_GetLabel", (PyCFunction)_wrap_ListEvent_GetLabel, METH_O, NULL},
41468 { (char *)"ListEvent_GetText", (PyCFunction)_wrap_ListEvent_GetText, METH_O, NULL},
41469 { (char *)"ListEvent_GetImage", (PyCFunction)_wrap_ListEvent_GetImage, METH_O, NULL},
41470 { (char *)"ListEvent_GetData", (PyCFunction)_wrap_ListEvent_GetData, METH_O, NULL},
41471 { (char *)"ListEvent_GetMask", (PyCFunction)_wrap_ListEvent_GetMask, METH_O, NULL},
41472 { (char *)"ListEvent_GetItem", (PyCFunction)_wrap_ListEvent_GetItem, METH_O, NULL},
41473 { (char *)"ListEvent_GetCacheFrom", (PyCFunction)_wrap_ListEvent_GetCacheFrom, METH_O, NULL},
41474 { (char *)"ListEvent_GetCacheTo", (PyCFunction)_wrap_ListEvent_GetCacheTo, METH_O, NULL},
41475 { (char *)"ListEvent_IsEditCancelled", (PyCFunction)_wrap_ListEvent_IsEditCancelled, METH_O, NULL},
41476 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
41477 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL},
41478 { (char *)"ListEvent_swiginit", ListEvent_swiginit, METH_VARARGS, NULL},
41479 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41480 { (char *)"new_PreListCtrl", (PyCFunction)_wrap_new_PreListCtrl, METH_NOARGS, NULL},
41481 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41482 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
41483 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
41484 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
41485 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
41486 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
41487 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction)_wrap_ListCtrl_GetCountPerPage, METH_O, NULL},
41488 { (char *)"ListCtrl_GetViewRect", (PyCFunction)_wrap_ListCtrl_GetViewRect, METH_O, NULL},
41489 { (char *)"ListCtrl_GetEditControl", (PyCFunction)_wrap_ListCtrl_GetEditControl, METH_O, NULL},
41490 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL},
41491 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
41492 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
41493 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
41494 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
41495 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
41496 { (char *)"ListCtrl_SetItemColumnImage", (PyCFunction) _wrap_ListCtrl_SetItemColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
41497 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
41498 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
41499 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41500 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41501 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41502 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL},
41503 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41504 { (char *)"ListCtrl_GetItemCount", (PyCFunction)_wrap_ListCtrl_GetItemCount, METH_O, NULL},
41505 { (char *)"ListCtrl_GetColumnCount", (PyCFunction)_wrap_ListCtrl_GetColumnCount, METH_O, NULL},
41506 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction)_wrap_ListCtrl_GetItemSpacing, METH_O, NULL},
41507 { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
41508 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction)_wrap_ListCtrl_GetSelectedItemCount, METH_O, NULL},
41509 { (char *)"ListCtrl_GetTextColour", (PyCFunction)_wrap_ListCtrl_GetTextColour, METH_O, NULL},
41510 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41511 { (char *)"ListCtrl_GetTopItem", (PyCFunction)_wrap_ListCtrl_GetTopItem, METH_O, NULL},
41512 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL},
41513 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
41514 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41515 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41516 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41517 { (char *)"ListCtrl_InReportView", (PyCFunction)_wrap_ListCtrl_InReportView, METH_O, NULL},
41518 { (char *)"ListCtrl_IsVirtual", (PyCFunction)_wrap_ListCtrl_IsVirtual, METH_O, NULL},
41519 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL},
41520 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL},
41521 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL},
41522 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL},
41523 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction)_wrap_ListCtrl_DeleteAllItems, METH_O, NULL},
41524 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL},
41525 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction)_wrap_ListCtrl_DeleteAllColumns, METH_O, NULL},
41526 { (char *)"ListCtrl_ClearAll", (PyCFunction)_wrap_ListCtrl_ClearAll, METH_O, NULL},
41527 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
41528 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41529 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL},
41530 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41531 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL},
41532 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
41533 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
41534 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
41535 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL},
41536 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
41537 { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL},
41538 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL},
41539 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL},
41540 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL},
41541 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41542 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41543 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41544 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41545 { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
41546 { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
41547 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL},
41548 { (char *)"ListCtrl_GetMainWindow", (PyCFunction)_wrap_ListCtrl_GetMainWindow, METH_O, NULL},
41549 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41550 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL},
41551 { (char *)"ListCtrl_swiginit", ListCtrl_swiginit, METH_VARARGS, NULL},
41552 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL},
41553 { (char *)"new_PreListView", (PyCFunction)_wrap_new_PreListView, METH_NOARGS, NULL},
41554 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41555 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL},
41556 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL},
41557 { (char *)"ListView_GetFocusedItem", (PyCFunction)_wrap_ListView_GetFocusedItem, METH_O, NULL},
41558 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL},
41559 { (char *)"ListView_GetFirstSelected", (PyCFunction)_wrap_ListView_GetFirstSelected, METH_O, NULL},
41560 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
41561 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
41562 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
41563 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL},
41564 { (char *)"ListView_swiginit", ListView_swiginit, METH_VARARGS, NULL},
41565 { (char *)"new_TreeItemId", (PyCFunction)_wrap_new_TreeItemId, METH_NOARGS, NULL},
41566 { (char *)"delete_TreeItemId", (PyCFunction)_wrap_delete_TreeItemId, METH_O, NULL},
41567 { (char *)"TreeItemId_IsOk", (PyCFunction)_wrap_TreeItemId_IsOk, METH_O, NULL},
41568 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
41569 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
41570 { (char *)"TreeItemId_m_pItem_set", _wrap_TreeItemId_m_pItem_set, METH_VARARGS, NULL},
41571 { (char *)"TreeItemId_m_pItem_get", (PyCFunction)_wrap_TreeItemId_m_pItem_get, METH_O, NULL},
41572 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL},
41573 { (char *)"TreeItemId_swiginit", TreeItemId_swiginit, METH_VARARGS, NULL},
41574 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41575 { (char *)"delete_TreeItemData", (PyCFunction)_wrap_delete_TreeItemData, METH_O, NULL},
41576 { (char *)"TreeItemData_GetData", (PyCFunction)_wrap_TreeItemData_GetData, METH_O, NULL},
41577 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
41578 { (char *)"TreeItemData_GetId", (PyCFunction)_wrap_TreeItemData_GetId, METH_O, NULL},
41579 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
41580 { (char *)"TreeItemData_Destroy", (PyCFunction)_wrap_TreeItemData_Destroy, METH_O, NULL},
41581 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL},
41582 { (char *)"TreeItemData_swiginit", TreeItemData_swiginit, METH_VARARGS, NULL},
41583 { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41584 { (char *)"TreeEvent_GetItem", (PyCFunction)_wrap_TreeEvent_GetItem, METH_O, NULL},
41585 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
41586 { (char *)"TreeEvent_GetOldItem", (PyCFunction)_wrap_TreeEvent_GetOldItem, METH_O, NULL},
41587 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL},
41588 { (char *)"TreeEvent_GetPoint", (PyCFunction)_wrap_TreeEvent_GetPoint, METH_O, NULL},
41589 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL},
41590 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction)_wrap_TreeEvent_GetKeyEvent, METH_O, NULL},
41591 { (char *)"TreeEvent_GetKeyCode", (PyCFunction)_wrap_TreeEvent_GetKeyCode, METH_O, NULL},
41592 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41593 { (char *)"TreeEvent_GetLabel", (PyCFunction)_wrap_TreeEvent_GetLabel, METH_O, NULL},
41594 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
41595 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction)_wrap_TreeEvent_IsEditCancelled, METH_O, NULL},
41596 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
41597 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
41598 { (char *)"TreeEvent_GetToolTip", (PyCFunction)_wrap_TreeEvent_GetToolTip, METH_O, NULL},
41599 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL},
41600 { (char *)"TreeEvent_swiginit", TreeEvent_swiginit, METH_VARARGS, NULL},
41601 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41602 { (char *)"new_PreTreeCtrl", (PyCFunction)_wrap_new_PreTreeCtrl, METH_NOARGS, NULL},
41603 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41604 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
41605 { (char *)"TreeCtrl_GetCount", (PyCFunction)_wrap_TreeCtrl_GetCount, METH_O, NULL},
41606 { (char *)"TreeCtrl_GetIndent", (PyCFunction)_wrap_TreeCtrl_GetIndent, METH_O, NULL},
41607 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL},
41608 { (char *)"TreeCtrl_GetSpacing", (PyCFunction)_wrap_TreeCtrl_GetSpacing, METH_O, NULL},
41609 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
41610 { (char *)"TreeCtrl_GetImageList", (PyCFunction)_wrap_TreeCtrl_GetImageList, METH_O, NULL},
41611 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction)_wrap_TreeCtrl_GetStateImageList, METH_O, NULL},
41612 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41613 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41614 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41615 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41616 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
41617 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
41618 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41619 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
41620 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41621 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41622 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
41623 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
41624 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
41625 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41626 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
41627 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
41628 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL},
41629 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL},
41630 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41631 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41632 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
41633 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41634 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
41635 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
41636 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
41637 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL},
41638 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL},
41639 { (char *)"TreeCtrl_GetRootItem", (PyCFunction)_wrap_TreeCtrl_GetRootItem, METH_O, NULL},
41640 { (char *)"TreeCtrl_GetSelection", (PyCFunction)_wrap_TreeCtrl_GetSelection, METH_O, NULL},
41641 { (char *)"TreeCtrl_GetSelections", (PyCFunction)_wrap_TreeCtrl_GetSelections, METH_O, NULL},
41642 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL},
41643 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL},
41644 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL},
41645 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL},
41646 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL},
41647 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL},
41648 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction)_wrap_TreeCtrl_GetFirstVisibleItem, METH_O, NULL},
41649 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41650 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41651 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL},
41652 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},
41653 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
41654 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL},
41655 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL},
41656 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
41657 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL},
41658 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction)_wrap_TreeCtrl_DeleteAllItems, METH_O, NULL},
41659 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL},
41660 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
41661 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL},
41662 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL},
41663 { (char *)"TreeCtrl_Unselect", (PyCFunction)_wrap_TreeCtrl_Unselect, METH_O, NULL},
41664 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL},
41665 { (char *)"TreeCtrl_UnselectAll", (PyCFunction)_wrap_TreeCtrl_UnselectAll, METH_O, NULL},
41666 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL},
41667 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41668 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41669 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL},
41670 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
41671 { (char *)"TreeCtrl_GetEditControl", (PyCFunction)_wrap_TreeCtrl_GetEditControl, METH_O, NULL},
41672 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL},
41673 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
41674 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL},
41675 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41676 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL},
41677 { (char *)"TreeCtrl_swiginit", TreeCtrl_swiginit, METH_VARARGS, NULL},
41678 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41679 { (char *)"new_PreGenericDirCtrl", (PyCFunction)_wrap_new_PreGenericDirCtrl, METH_NOARGS, NULL},
41680 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41681 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL},
41682 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction)_wrap_GenericDirCtrl_GetDefaultPath, METH_O, NULL},
41683 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL},
41684 { (char *)"GenericDirCtrl_GetPath", (PyCFunction)_wrap_GenericDirCtrl_GetPath, METH_O, NULL},
41685 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction)_wrap_GenericDirCtrl_GetFilePath, METH_O, NULL},
41686 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
41687 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL},
41688 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction)_wrap_GenericDirCtrl_GetShowHidden, METH_O, NULL},
41689 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction)_wrap_GenericDirCtrl_GetFilter, METH_O, NULL},
41690 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL},
41691 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction)_wrap_GenericDirCtrl_GetFilterIndex, METH_O, NULL},
41692 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL},
41693 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction)_wrap_GenericDirCtrl_GetRootId, METH_O, NULL},
41694 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetTreeCtrl, METH_O, NULL},
41695 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetFilterListCtrl, METH_O, NULL},
41696 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL},
41697 { (char *)"GenericDirCtrl_DoResize", (PyCFunction)_wrap_GenericDirCtrl_DoResize, METH_O, NULL},
41698 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction)_wrap_GenericDirCtrl_ReCreateTree, METH_O, NULL},
41699 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL},
41700 { (char *)"GenericDirCtrl_swiginit", GenericDirCtrl_swiginit, METH_VARARGS, NULL},
41701 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41702 { (char *)"new_PreDirFilterListCtrl", (PyCFunction)_wrap_new_PreDirFilterListCtrl, METH_NOARGS, NULL},
41703 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41704 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL},
41705 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL},
41706 { (char *)"DirFilterListCtrl_swiginit", DirFilterListCtrl_swiginit, METH_VARARGS, NULL},
41707 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL},
41708 { (char *)"new_PrePyControl", (PyCFunction)_wrap_new_PrePyControl, METH_NOARGS, NULL},
41709 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
41710 { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
41711 { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL},
41712 { (char *)"PyControl_DoMoveWindow", (PyCFunction) _wrap_PyControl_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL},
41713 { (char *)"PyControl_DoSetSize", (PyCFunction) _wrap_PyControl_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL},
41714 { (char *)"PyControl_DoSetClientSize", (PyCFunction) _wrap_PyControl_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL},
41715 { (char *)"PyControl_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL},
41716 { (char *)"PyControl_DoGetSize", (PyCFunction)_wrap_PyControl_DoGetSize, METH_O, NULL},
41717 { (char *)"PyControl_DoGetClientSize", (PyCFunction)_wrap_PyControl_DoGetClientSize, METH_O, NULL},
41718 { (char *)"PyControl_DoGetPosition", (PyCFunction)_wrap_PyControl_DoGetPosition, METH_O, NULL},
41719 { (char *)"PyControl_DoGetVirtualSize", (PyCFunction)_wrap_PyControl_DoGetVirtualSize, METH_O, NULL},
41720 { (char *)"PyControl_DoGetBestSize", (PyCFunction)_wrap_PyControl_DoGetBestSize, METH_O, NULL},
41721 { (char *)"PyControl_GetDefaultAttributes", (PyCFunction)_wrap_PyControl_GetDefaultAttributes, METH_O, NULL},
41722 { (char *)"PyControl_OnInternalIdle", (PyCFunction)_wrap_PyControl_OnInternalIdle, METH_O, NULL},
41723 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL},
41724 { (char *)"PyControl_swiginit", PyControl_swiginit, METH_VARARGS, NULL},
41725 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41726 { (char *)"HelpEvent_GetPosition", (PyCFunction)_wrap_HelpEvent_GetPosition, METH_O, NULL},
41727 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41728 { (char *)"HelpEvent_GetLink", (PyCFunction)_wrap_HelpEvent_GetLink, METH_O, NULL},
41729 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL},
41730 { (char *)"HelpEvent_GetTarget", (PyCFunction)_wrap_HelpEvent_GetTarget, METH_O, NULL},
41731 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL},
41732 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL},
41733 { (char *)"HelpEvent_swiginit", HelpEvent_swiginit, METH_VARARGS, NULL},
41734 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41735 { (char *)"delete_ContextHelp", (PyCFunction)_wrap_delete_ContextHelp, METH_O, NULL},
41736 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41737 { (char *)"ContextHelp_EndContextHelp", (PyCFunction)_wrap_ContextHelp_EndContextHelp, METH_O, NULL},
41738 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL},
41739 { (char *)"ContextHelp_swiginit", ContextHelp_swiginit, METH_VARARGS, NULL},
41740 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL},
41741 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL},
41742 { (char *)"ContextHelpButton_swiginit", ContextHelpButton_swiginit, METH_VARARGS, NULL},
f52cbe90 41743 { (char *)"delete_HelpProvider", (PyCFunction)_wrap_delete_HelpProvider, METH_O, NULL},
0085ce49
RD
41744 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL},
41745 { (char *)"HelpProvider_Get", (PyCFunction)_wrap_HelpProvider_Get, METH_NOARGS, NULL},
41746 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41747 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41748 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41749 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL},
41750 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41751 { (char *)"HelpProvider_Destroy", (PyCFunction)_wrap_HelpProvider_Destroy, METH_O, NULL},
41752 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL},
41753 { (char *)"new_SimpleHelpProvider", (PyCFunction)_wrap_new_SimpleHelpProvider, METH_NOARGS, NULL},
41754 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL},
41755 { (char *)"SimpleHelpProvider_swiginit", SimpleHelpProvider_swiginit, METH_VARARGS, NULL},
41756 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL},
41757 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL},
41758 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL},
41759 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL},
41760 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL},
41761 { (char *)"delete_DragImage", (PyCFunction)_wrap_delete_DragImage, METH_O, NULL},
41762 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
41763 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL},
41764 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL},
41765 { (char *)"DragImage_EndDrag", (PyCFunction)_wrap_DragImage_EndDrag, METH_O, NULL},
41766 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL},
41767 { (char *)"DragImage_Show", (PyCFunction)_wrap_DragImage_Show, METH_O, NULL},
41768 { (char *)"DragImage_Hide", (PyCFunction)_wrap_DragImage_Hide, METH_O, NULL},
41769 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL},
41770 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
41771 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL},
41772 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
41773 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL},
41774 { (char *)"DragImage_swiginit", DragImage_swiginit, METH_VARARGS, NULL},
41775 { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41776 { (char *)"new_PreDatePickerCtrl", (PyCFunction)_wrap_new_PreDatePickerCtrl, METH_NOARGS, NULL},
41777 { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41778 { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41779 { (char *)"DatePickerCtrl_GetValue", (PyCFunction)_wrap_DatePickerCtrl_GetValue, METH_O, NULL},
41780 { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
41781 { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction)_wrap_DatePickerCtrl_GetLowerLimit, METH_O, NULL},
41782 { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction)_wrap_DatePickerCtrl_GetUpperLimit, METH_O, NULL},
41783 { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL},
41784 { (char *)"DatePickerCtrl_swiginit", DatePickerCtrl_swiginit, METH_VARARGS, NULL},
41785 { NULL, NULL, 0, NULL }
41786};
41787
41788
41789/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
41790
41791static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
41792 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
41793}
41794static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
41795 return (void *)((wxEvent *) ((wxMenuEvent *) x));
41796}
41797static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
41798 return (void *)((wxEvent *) ((wxCloseEvent *) x));
41799}
41800static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
41801 return (void *)((wxEvent *) ((wxMouseEvent *) x));
41802}
41803static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
41804 return (void *)((wxEvent *) ((wxEraseEvent *) x));
41805}
41806static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) {
41807 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
41808}
41809static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
41810 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
41811}
41812static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
41813 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
41814}
41815static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
41816 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
41817}
41818static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
41819 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
41820}
41821static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
41822 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
41823}
41824static void *_p_wxPyEventTo_p_wxEvent(void *x) {
41825 return (void *)((wxEvent *) ((wxPyEvent *) x));
41826}
41827static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
41828 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
41829}
41830static void *_p_wxListEventTo_p_wxEvent(void *x) {
41831 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
41832}
41833static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
41834 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
41835}
41836static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
41837 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
41838}
41839static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) {
41840 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
41841}
41842static void *_p_wxTreebookEventTo_p_wxEvent(void *x) {
41843 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
41844}
41845static void *_p_wxToolbookEventTo_p_wxEvent(void *x) {
41846 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
41847}
41848static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
41849 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
41850}
41851static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
41852 return (void *)((wxEvent *) ((wxIdleEvent *) x));
41853}
41854static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
41855 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
41856}
41857static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
41858 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
41859}
41860static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
41861 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
41862}
41863static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
41864 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
41865}
41866static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
41867 return (void *)((wxEvent *) ((wxActivateEvent *) x));
41868}
41869static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
41870 return (void *)((wxEvent *) ((wxSizeEvent *) x));
41871}
41872static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
41873 return (void *)((wxEvent *) ((wxMoveEvent *) x));
41874}
41875static void *_p_wxDateEventTo_p_wxEvent(void *x) {
41876 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
41877}
41878static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
41879 return (void *)((wxEvent *) ((wxPaintEvent *) x));
41880}
41881static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
41882 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
41883}
41884static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
41885 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
41886}
41887static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
41888 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
41889}
41890static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
41891 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
41892}
41893static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
41894 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
41895}
41896static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
41897 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
41898}
41899static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
41900 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
41901}
41902static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
41903 return (void *)((wxEvent *) ((wxFocusEvent *) x));
41904}
41905static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
41906 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
41907}
41908static void *_p_wxShowEventTo_p_wxEvent(void *x) {
41909 return (void *)((wxEvent *) ((wxShowEvent *) x));
41910}
41911static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
41912 return (void *)((wxEvent *) ((wxCommandEvent *) x));
41913}
41914static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
41915 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
41916}
41917static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
41918 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
41919}
41920static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
41921 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
41922}
41923static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
41924 return (void *)((wxEvent *) ((wxKeyEvent *) x));
41925}
41926static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
41927 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
41928}
41929static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
41930 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
41931}
41932static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
41933 return (void *)((wxItemContainer *) ((wxComboBox *) x));
41934}
41935static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
41936 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
41937}
41938static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
41939 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
41940}
41941static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
41942 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
41943}
41944static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
41945 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
41946}
41947static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
41948 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
41949}
41950static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
41951 return (void *)((wxPyListCtrl *) ((wxListView *) x));
41952}
41953static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) {
41954 return (void *)((wxControl *) ((wxBookCtrlBase *) x));
41955}
41956static void *_p_wxToolBarTo_p_wxControl(void *x) {
41957 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
41958}
41959static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
41960 return (void *)((wxControl *) ((wxToggleButton *) x));
41961}
41962static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
41963 return (void *)((wxControl *) ((wxRadioButton *) x));
41964}
41965static void *_p_wxToolbookTo_p_wxControl(void *x) {
41966 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxToolbook *) x));
41967}
41968static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
41969 return (void *)((wxControl *) ((wxToolBarBase *) x));
41970}
41971static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
41972 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
41973}
41974static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
41975 return (void *)((wxControl *) ((wxPyListCtrl *) x));
41976}
41977static void *_p_wxComboBoxTo_p_wxControl(void *x) {
41978 return (void *)((wxControl *) ((wxComboBox *) x));
41979}
41980static void *_p_wxPyControlTo_p_wxControl(void *x) {
41981 return (void *)((wxControl *) ((wxPyControl *) x));
41982}
41983static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
41984 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
41985}
41986static void *_p_wxScrollBarTo_p_wxControl(void *x) {
41987 return (void *)((wxControl *) ((wxScrollBar *) x));
41988}
41989static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
41990 return (void *)((wxControl *) ((wxControlWithItems *) x));
41991}
41992static void *_p_wxGaugeTo_p_wxControl(void *x) {
41993 return (void *)((wxControl *) ((wxGauge *) x));
41994}
41995static void *_p_wxStaticLineTo_p_wxControl(void *x) {
41996 return (void *)((wxControl *) ((wxStaticLine *) x));
41997}
41998static void *_p_wxChoicebookTo_p_wxControl(void *x) {
41999 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x));
42000}
42001static void *_p_wxListbookTo_p_wxControl(void *x) {
42002 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x));
42003}
42004static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
42005 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
42006}
42007static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
42008 return (void *)((wxControl *) ((wxCheckBox *) x));
42009}
42010static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
42011 return (void *)((wxControl *) ((wxRadioBox *) x));
42012}
42013static void *_p_wxChoiceTo_p_wxControl(void *x) {
42014 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
42015}
42016static void *_p_wxListBoxTo_p_wxControl(void *x) {
42017 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
42018}
42019static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
42020 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
42021}
42022static void *_p_wxListViewTo_p_wxControl(void *x) {
42023 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
42024}
42025static void *_p_wxNotebookTo_p_wxControl(void *x) {
42026 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x));
42027}
42028static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
42029 return (void *)((wxControl *) ((wxStaticBitmap *) x));
42030}
42031static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
42032 return (void *)((wxControl *) ((wxSpinCtrl *) x));
42033}
42034static void *_p_wxStaticTextTo_p_wxControl(void *x) {
42035 return (void *)((wxControl *) ((wxStaticText *) x));
42036}
42037static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
42038 return (void *)((wxControl *) ((wxStaticBox *) x));
42039}
42040static void *_p_wxSliderTo_p_wxControl(void *x) {
42041 return (void *)((wxControl *) ((wxSlider *) x));
42042}
42043static void *_p_wxTreebookTo_p_wxControl(void *x) {
42044 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxTreebook *) x));
42045}
42046static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
42047 return (void *)((wxControl *) ((wxSpinButton *) x));
42048}
42049static void *_p_wxButtonTo_p_wxControl(void *x) {
42050 return (void *)((wxControl *) ((wxButton *) x));
42051}
42052static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
42053 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
42054}
42055static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
42056 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
42057}
42058static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) {
42059 return (void *)((wxControl *) ((wxDatePickerCtrl *) x));
42060}
42061static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
42062 return (void *)((wxControl *) ((wxTextCtrl *) x));
42063}
42064static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
42065 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
42066}
42067static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
42068 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
42069}
42070static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) {
42071 return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
42072}
42073static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
42074 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
42075}
42076static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
42077 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
42078}
42079static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
42080 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
42081}
42082static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
42083 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
42084}
42085static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
42086 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
42087}
42088static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) {
42089 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
42090}
42091static void *_p_wxTreebookEventTo_p_wxNotifyEvent(void *x) {
42092 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
42093}
42094static void *_p_wxToolbookEventTo_p_wxNotifyEvent(void *x) {
42095 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
42096}
42097static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) {
42098 return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x));
42099}
42100static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) {
42101 return (void *)((wxBookCtrlBase *) ((wxListbook *) x));
42102}
42103static void *_p_wxToolbookTo_p_wxBookCtrlBase(void *x) {
42104 return (void *)((wxBookCtrlBase *) ((wxToolbook *) x));
42105}
42106static void *_p_wxTreebookTo_p_wxBookCtrlBase(void *x) {
42107 return (void *)((wxBookCtrlBase *) ((wxTreebook *) x));
42108}
42109static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) {
42110 return (void *)((wxBookCtrlBase *) ((wxNotebook *) x));
42111}
42112static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
42113 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
42114}
42115static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) {
42116 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
42117}
42118static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
42119 return (void *)((wxEvtHandler *) ((wxValidator *) x));
42120}
42121static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
42122 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
42123}
42124static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
42125 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
42126}
42127static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
42128 return (void *)((wxEvtHandler *) ((wxMenu *) x));
42129}
42130static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
42131 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
42132}
42133static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
42134 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
42135}
42136static void *_p_wxToolbookTo_p_wxEvtHandler(void *x) {
42137 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
42138}
42139static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
42140 return (void *)((wxEvtHandler *) ((wxWindow *) x));
42141}
42142static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
42143 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
42144}
42145static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
42146 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x));
42147}
42148static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
42149 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
42150}
42151static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
42152 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
42153}
42154static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
42155 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
42156}
42157static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
42158 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
42159}
42160static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
42161 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
42162}
42163static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
42164 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
42165}
42166static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
42167 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
42168}
42169static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
42170 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
42171}
42172static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
42173 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
42174}
42175static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
42176 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
42177}
42178static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) {
42179 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
42180}
42181static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
42182 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
42183}
42184static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
42185 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
42186}
42187static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
42188 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
42189}
42190static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
42191 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
42192}
42193static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
42194 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
42195}
42196static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
42197 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
42198}
42199static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
42200 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
42201}
42202static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
42203 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
42204}
42205static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
42206 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
42207}
42208static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
42209 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
42210}
42211static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
42212 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
42213}
42214static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
42215 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
42216}
42217static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
42218 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
42219}
42220static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
42221 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
42222}
42223static void *_p_wxTreebookTo_p_wxEvtHandler(void *x) {
42224 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
42225}
42226static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
42227 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
42228}
42229static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
42230 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
42231}
42232static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
42233 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
42234}
42235static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
42236 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
42237}
42238static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) {
42239 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
42240}
42241static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
42242 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
42243}
42244static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
42245 return (void *)((wxListBox *) ((wxCheckListBox *) x));
42246}
42247static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
42248 return (void *)((wxButton *) ((wxBitmapButton *) x));
42249}
42250static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
42251 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
42252}
42253static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
42254 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
42255}
42256static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
42257 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
42258}
42259static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
42260 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
42261}
42262static void *_p_wxToolbookTo_p_wxObject(void *x) {
42263 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
42264}
42265static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
42266 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
42267}
42268static void *_p_wxSizerItemTo_p_wxObject(void *x) {
42269 return (void *)((wxObject *) ((wxSizerItem *) x));
42270}
42271static void *_p_wxScrollEventTo_p_wxObject(void *x) {
42272 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
42273}
42274static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
42275 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
42276}
42277static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
42278 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
42279}
42280static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
42281 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
42282}
42283static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
42284 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
42285}
42286static void *_p_wxSizerTo_p_wxObject(void *x) {
42287 return (void *)((wxObject *) ((wxSizer *) x));
42288}
42289static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
42290 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
42291}
42292static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
42293 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
42294}
42295static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
42296 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
42297}
42298static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
42299 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
42300}
42301static void *_p_wxEventTo_p_wxObject(void *x) {
42302 return (void *)((wxObject *) ((wxEvent *) x));
42303}
42304static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
42305 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
42306}
42307static void *_p_wxGridSizerTo_p_wxObject(void *x) {
42308 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
42309}
42310static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
42311 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
42312}
42313static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
42314 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
42315}
42316static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
42317 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
42318}
42319static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
42320 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
42321}
42322static void *_p_wxPaintEventTo_p_wxObject(void *x) {
42323 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
42324}
42325static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
42326 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
42327}
42328static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
42329 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
42330}
42331static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
42332 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
42333}
42334static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
42335 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
42336}
42337static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
42338 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
42339}
42340static void *_p_wxStaticLineTo_p_wxObject(void *x) {
42341 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
42342}
42343static void *_p_wxControlTo_p_wxObject(void *x) {
42344 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
42345}
42346static void *_p_wxPyControlTo_p_wxObject(void *x) {
42347 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
42348}
42349static void *_p_wxGaugeTo_p_wxObject(void *x) {
42350 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
42351}
42352static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
42353 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
42354}
42355static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
42356 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
42357}
42358static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
42359 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
42360}
42361static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
42362 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
42363}
42364static void *_p_wxChoiceTo_p_wxObject(void *x) {
42365 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
42366}
42367static void *_p_wxFSFileTo_p_wxObject(void *x) {
42368 return (void *)((wxObject *) ((wxFSFile *) x));
42369}
42370static void *_p_wxPySizerTo_p_wxObject(void *x) {
42371 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
42372}
42373static void *_p_wxTreebookTo_p_wxObject(void *x) {
42374 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
42375}
42376static void *_p_wxListViewTo_p_wxObject(void *x) {
42377 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
42378}
42379static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
42380 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
42381}
42382static void *_p_wxNotebookTo_p_wxObject(void *x) {
42383 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
42384}
42385static void *_p_wxPyEventTo_p_wxObject(void *x) {
42386 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
42387}
42388static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
42389 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
42390}
42391static void *_p_wxChoicebookTo_p_wxObject(void *x) {
42392 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
42393}
42394static void *_p_wxListbookTo_p_wxObject(void *x) {
42395 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
42396}
42397static void *_p_wxShowEventTo_p_wxObject(void *x) {
42398 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
42399}
42400static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
42401 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
42402}
42403static void *_p_wxSliderTo_p_wxObject(void *x) {
42404 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
42405}
42406static void *_p_wxMenuItemTo_p_wxObject(void *x) {
42407 return (void *)((wxObject *) ((wxMenuItem *) x));
42408}
42409static void *_p_wxDateEventTo_p_wxObject(void *x) {
42410 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
42411}
42412static void *_p_wxIdleEventTo_p_wxObject(void *x) {
42413 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
42414}
42415static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
42416 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
42417}
42418static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
42419 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
42420}
42421static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
42422 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
42423}
42424static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
42425 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
42426}
42427static void *_p_wxSizeEventTo_p_wxObject(void *x) {
42428 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
42429}
42430static void *_p_wxMoveEventTo_p_wxObject(void *x) {
42431 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
42432}
42433static void *_p_wxActivateEventTo_p_wxObject(void *x) {
42434 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
42435}
42436static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
42437 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
42438}
42439static void *_p_wxContextHelpTo_p_wxObject(void *x) {
42440 return (void *)((wxObject *) ((wxContextHelp *) x));
42441}
42442static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) {
42443 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
42444}
42445static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
42446 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
42447}
42448static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
42449 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
42450}
42451static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
42452 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
42453}
42454static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
42455 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
42456}
42457static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
42458 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
42459}
42460static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
42461 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
42462}
42463static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
42464 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
42465}
42466static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
42467 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
42468}
42469static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
42470 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
42471}
42472static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
42473 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
42474}
42475static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
42476 return (void *)((wxObject *) ((wxImageHandler *) x));
42477}
42478static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
42479 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
42480}
42481static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
42482 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
42483}
42484static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
42485 return (void *)((wxObject *) ((wxEvtHandler *) x));
42486}
42487static void *_p_wxListEventTo_p_wxObject(void *x) {
42488 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
42489}
42490static void *_p_wxListBoxTo_p_wxObject(void *x) {
42491 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
42492}
42493static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
42494 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
42495}
42496static void *_p_wxButtonTo_p_wxObject(void *x) {
42497 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
42498}
42499static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
42500 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
42501}
42502static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
42503 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
42504}
42505static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
42506 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
42507}
42508static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
42509 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
42510}
42511static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
42512 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
42513}
42514static void *_p_wxScrollBarTo_p_wxObject(void *x) {
42515 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
42516}
42517static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
42518 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
42519}
42520static void *_p_wxComboBoxTo_p_wxObject(void *x) {
42521 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x));
42522}
42523static void *_p_wxHelpEventTo_p_wxObject(void *x) {
42524 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
42525}
42526static void *_p_wxListItemTo_p_wxObject(void *x) {
42527 return (void *)((wxObject *) ((wxListItem *) x));
42528}
42529static void *_p_wxImageTo_p_wxObject(void *x) {
42530 return (void *)((wxObject *) ((wxImage *) x));
42531}
42532static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
42533 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
42534}
42535static void *_p_wxSpinEventTo_p_wxObject(void *x) {
42536 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
42537}
42538static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
42539 return (void *)((wxObject *) ((wxGenericDragImage *) x));
42540}
42541static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
42542 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
42543}
42544static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
42545 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
42546}
42547static void *_p_wxListbookEventTo_p_wxObject(void *x) {
42548 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
42549}
42550static void *_p_wxChoicebookEventTo_p_wxObject(void *x) {
42551 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
42552}
42553static void *_p_wxTreebookEventTo_p_wxObject(void *x) {
42554 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
42555}
42556static void *_p_wxToolbookEventTo_p_wxObject(void *x) {
42557 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
42558}
42559static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
42560 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
42561}
42562static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
42563 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
42564}
42565static void *_p_wxKeyEventTo_p_wxObject(void *x) {
42566 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
42567}
42568static void *_p_wxWindowTo_p_wxObject(void *x) {
42569 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
42570}
42571static void *_p_wxMenuTo_p_wxObject(void *x) {
42572 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
42573}
42574static void *_p_wxMenuBarTo_p_wxObject(void *x) {
42575 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
42576}
42577static void *_p_wxFileSystemTo_p_wxObject(void *x) {
42578 return (void *)((wxObject *) ((wxFileSystem *) x));
42579}
42580static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
42581 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
42582}
42583static void *_p_wxMenuEventTo_p_wxObject(void *x) {
42584 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
42585}
42586static void *_p_wxPyAppTo_p_wxObject(void *x) {
42587 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
42588}
42589static void *_p_wxCloseEventTo_p_wxObject(void *x) {
42590 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
42591}
42592static void *_p_wxMouseEventTo_p_wxObject(void *x) {
42593 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
42594}
42595static void *_p_wxEraseEventTo_p_wxObject(void *x) {
42596 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
42597}
42598static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) {
42599 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
42600}
42601static void *_p_wxTreeEventTo_p_wxObject(void *x) {
42602 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
42603}
42604static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
42605 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
42606}
42607static void *_p_wxCommandEventTo_p_wxObject(void *x) {
42608 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
42609}
42610static void *_p_wxStaticTextTo_p_wxObject(void *x) {
42611 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
42612}
42613static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
42614 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
42615}
42616static void *_p_wxFocusEventTo_p_wxObject(void *x) {
42617 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
42618}
42619static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
42620 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
42621}
42622static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) {
42623 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
42624}
42625static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
42626 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
42627}
42628static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
42629 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
42630}
42631static void *_p_wxToolBarTo_p_wxObject(void *x) {
42632 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
42633}
42634static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
42635 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
42636}
42637static void *_p_wxValidatorTo_p_wxObject(void *x) {
42638 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
42639}
42640static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
42641 return (void *)((wxWindow *) ((wxMenuBar *) x));
42642}
42643static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) {
42644 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x));
42645}
42646static void *_p_wxToolBarTo_p_wxWindow(void *x) {
42647 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
42648}
42649static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
42650 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
42651}
42652static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
42653 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
42654}
42655static void *_p_wxToolbookTo_p_wxWindow(void *x) {
42656 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
42657}
42658static void *_p_wxControlTo_p_wxWindow(void *x) {
42659 return (void *)((wxWindow *) ((wxControl *) x));
42660}
42661static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
42662 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
42663}
42664static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
42665 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
42666}
42667static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
42668 return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x));
42669}
42670static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
42671 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
42672}
42673static void *_p_wxPyControlTo_p_wxWindow(void *x) {
42674 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
42675}
42676static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
42677 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
42678}
42679static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
42680 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
42681}
42682static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
42683 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
42684}
42685static void *_p_wxGaugeTo_p_wxWindow(void *x) {
42686 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
42687}
42688static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
42689 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
42690}
42691static void *_p_wxChoicebookTo_p_wxWindow(void *x) {
42692 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
42693}
42694static void *_p_wxListbookTo_p_wxWindow(void *x) {
42695 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
42696}
42697static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
42698 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
42699}
42700static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
42701 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
42702}
42703static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
42704 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
42705}
42706static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
42707 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
42708}
42709static void *_p_wxChoiceTo_p_wxWindow(void *x) {
42710 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
42711}
42712static void *_p_wxListBoxTo_p_wxWindow(void *x) {
42713 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
42714}
42715static void *_p_wxListViewTo_p_wxWindow(void *x) {
42716 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
42717}
42718static void *_p_wxNotebookTo_p_wxWindow(void *x) {
42719 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
42720}
42721static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
42722 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
42723}
42724static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
42725 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
42726}
42727static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
42728 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
42729}
42730static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
42731 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
42732}
42733static void *_p_wxSliderTo_p_wxWindow(void *x) {
42734 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
42735}
42736static void *_p_wxTreebookTo_p_wxWindow(void *x) {
42737 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
42738}
42739static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
42740 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
42741}
42742static void *_p_wxButtonTo_p_wxWindow(void *x) {
42743 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
42744}
42745static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
42746 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
42747}
42748static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
42749 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
42750}
42751static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) {
42752 return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x));
42753}
42754static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
42755 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
42756}
42757static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
42758 return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
42759}
42760static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
42761 return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
42762}
42763static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
42764 return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
42765}
42766static void *_p_wxTreebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
42767 return (void *)((wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
42768}
42769static void *_p_wxToolbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
42770 return (void *)((wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
42771}
42772static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
42773 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
42774}
42775static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
42776 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
42777}
42778static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
42779 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
42780}
42781static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
42782 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
42783}
42784static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
42785 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
42786}
42787static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
42788 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
42789}
42790static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
42791 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
42792}
42793static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
42794 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
42795}
42796static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) {
42797 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
42798}
42799static void *_p_wxTreebookEventTo_p_wxCommandEvent(void *x) {
42800 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
42801}
42802static void *_p_wxToolbookEventTo_p_wxCommandEvent(void *x) {
42803 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
42804}
42805static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
42806 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
42807}
42808static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
42809 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
42810}
42811static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
42812 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
42813}
42814static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) {
42815 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
42816}
42817static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
42818 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
42819}
42820static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
42821 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
42822}
42823static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
42824 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
42825}
42826static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
42827 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
42828}
42829static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
42830 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
42831}
42832static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
42833 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
42834}
42835static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
42836 return (void *)((wxControlWithItems *) ((wxChoice *) x));
42837}
42838static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
42839 return (void *)((wxControlWithItems *) ((wxListBox *) x));
42840}
42841static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
42842 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
42843}
42844static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
42845 return (void *)((wxValidator *) ((wxPyValidator *) x));
42846}
42847static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0};
42848static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
42849static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
42850static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
42851static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
42852static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
42853static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
42854static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
42855static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
42856static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0};
42857static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0};
42858static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
42859static swig_type_info _swigt__p_wxBitmapButton = {"_p_wxBitmapButton", "wxBitmapButton *", 0, 0, (void*)0, 0};
42860static swig_type_info _swigt__p_wxBookCtrlBase = {"_p_wxBookCtrlBase", "wxBookCtrlBase *", 0, 0, (void*)0, 0};
42861static swig_type_info _swigt__p_wxBookCtrlBaseEvent = {"_p_wxBookCtrlBaseEvent", "wxBookCtrlBaseEvent *", 0, 0, (void*)0, 0};
42862static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, (void*)0, 0};
42863static swig_type_info _swigt__p_wxCheckBox = {"_p_wxCheckBox", "wxCheckBox *", 0, 0, (void*)0, 0};
42864static swig_type_info _swigt__p_wxCheckListBox = {"_p_wxCheckListBox", "wxCheckListBox *", 0, 0, (void*)0, 0};
42865static swig_type_info _swigt__p_wxChoice = {"_p_wxChoice", "wxChoice *", 0, 0, (void*)0, 0};
42866static swig_type_info _swigt__p_wxChoicebook = {"_p_wxChoicebook", "wxChoicebook *", 0, 0, (void*)0, 0};
42867static swig_type_info _swigt__p_wxChoicebookEvent = {"_p_wxChoicebookEvent", "wxChoicebookEvent *", 0, 0, (void*)0, 0};
42868static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
42869static swig_type_info _swigt__p_wxComboBox = {"_p_wxComboBox", "wxComboBox *", 0, 0, (void*)0, 0};
42870static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0};
42871static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
42872static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
42873static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
42874static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
42875static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
42876static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
42877static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
42878static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
42879static swig_type_info _swigt__p_wxContextHelp = {"_p_wxContextHelp", "wxContextHelp *", 0, 0, (void*)0, 0};
42880static swig_type_info _swigt__p_wxContextHelpButton = {"_p_wxContextHelpButton", "wxContextHelpButton *", 0, 0, (void*)0, 0};
42881static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, (void*)0, 0};
42882static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, (void*)0, 0};
42883static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
42884static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
42885static swig_type_info _swigt__p_wxDatePickerCtrl = {"_p_wxDatePickerCtrl", "wxDatePickerCtrl *", 0, 0, (void*)0, 0};
42886static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0};
42887static swig_type_info _swigt__p_wxDirFilterListCtrl = {"_p_wxDirFilterListCtrl", "wxDirFilterListCtrl *", 0, 0, (void*)0, 0};
42888static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
42889static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
42890static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
42891static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
42892static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
42893static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
42894static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
42895static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
42896static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
42897static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
42898static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
42899static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
42900static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
42901static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
42902static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
42903static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
42904static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
42905static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
42906static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
42907static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
42908static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
42909static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
42910static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
42911static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
42912static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
42913static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
42914static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
42915static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
42916static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
42917static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
42918static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
42919static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
42920static swig_type_info _swigt__p_wxGauge = {"_p_wxGauge", "wxGauge *", 0, 0, (void*)0, 0};
42921static swig_type_info _swigt__p_wxGenericDirCtrl = {"_p_wxGenericDirCtrl", "wxGenericDirCtrl *", 0, 0, (void*)0, 0};
42922static swig_type_info _swigt__p_wxGenericDragImage = {"_p_wxGenericDragImage", "wxGenericDragImage *", 0, 0, (void*)0, 0};
42923static swig_type_info _swigt__p_wxHelpEvent = {"_p_wxHelpEvent", "wxHelpEvent *", 0, 0, (void*)0, 0};
42924static swig_type_info _swigt__p_wxHelpProvider = {"_p_wxHelpProvider", "wxHelpProvider *", 0, 0, (void*)0, 0};
42925static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
42926static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
42927static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0};
42928static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, (void*)0, 0};
42929static swig_type_info _swigt__p_wxListBox = {"_p_wxListBox", "wxListBox *", 0, 0, (void*)0, 0};
42930static swig_type_info _swigt__p_wxListEvent = {"_p_wxListEvent", "wxListEvent *", 0, 0, (void*)0, 0};
42931static swig_type_info _swigt__p_wxListItem = {"_p_wxListItem", "wxListItem *", 0, 0, (void*)0, 0};
42932static swig_type_info _swigt__p_wxListItemAttr = {"_p_wxListItemAttr", "wxListItemAttr *", 0, 0, (void*)0, 0};
42933static swig_type_info _swigt__p_wxListView = {"_p_wxListView", "wxListView *", 0, 0, (void*)0, 0};
42934static swig_type_info _swigt__p_wxListbook = {"_p_wxListbook", "wxListbook *", 0, 0, (void*)0, 0};
42935static swig_type_info _swigt__p_wxListbookEvent = {"_p_wxListbookEvent", "wxListbookEvent *", 0, 0, (void*)0, 0};
42936static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
42937static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, (void*)0, 0};
42938static swig_type_info _swigt__p_wxNotebook = {"_p_wxNotebook", "wxNotebook *", 0, 0, (void*)0, 0};
42939static swig_type_info _swigt__p_wxNotebookEvent = {"_p_wxNotebookEvent", "wxNotebookEvent *", 0, 0, (void*)0, 0};
42940static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0};
42941static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
42942static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
42943static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
42944static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
42945static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
42946static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
42947static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
42948static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
42949static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
42950static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
42951static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
42952static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
42953static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
42954static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
42955static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
42956static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
42957static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
42958static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
42959static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
42960static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
42961static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
42962static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
42963static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
42964static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
42965static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
42966static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
42967static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
42968static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
42969static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
42970static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0};
42971static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
42972static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
42973static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
42974static swig_type_info _swigt__p_wxPyControl = {"_p_wxPyControl", "wxPyControl *", 0, 0, (void*)0, 0};
42975static swig_type_info _swigt__p_wxPyListCtrl = {"_p_wxPyListCtrl", "wxPyListCtrl *", 0, 0, (void*)0, 0};
42976static swig_type_info _swigt__p_wxPyTreeCtrl = {"_p_wxPyTreeCtrl", "wxPyTreeCtrl *", 0, 0, (void*)0, 0};
42977static swig_type_info _swigt__p_wxPyTreeItemData = {"_p_wxPyTreeItemData", "wxPyTreeItemData *", 0, 0, (void*)0, 0};
42978static swig_type_info _swigt__p_wxRadioBox = {"_p_wxRadioBox", "wxRadioBox *", 0, 0, (void*)0, 0};
42979static swig_type_info _swigt__p_wxRadioButton = {"_p_wxRadioButton", "wxRadioButton *", 0, 0, (void*)0, 0};
42980static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
42981static swig_type_info _swigt__p_wxScrollBar = {"_p_wxScrollBar", "wxScrollBar *", 0, 0, (void*)0, 0};
42982static swig_type_info _swigt__p_wxSimpleHelpProvider = {"_p_wxSimpleHelpProvider", "wxSimpleHelpProvider *", 0, 0, (void*)0, 0};
42983static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
42984static swig_type_info _swigt__p_wxSlider = {"_p_wxSlider", "wxSlider *", 0, 0, (void*)0, 0};
42985static swig_type_info _swigt__p_wxSpinButton = {"_p_wxSpinButton", "wxSpinButton *", 0, 0, (void*)0, 0};
42986static swig_type_info _swigt__p_wxSpinCtrl = {"_p_wxSpinCtrl", "wxSpinCtrl *", 0, 0, (void*)0, 0};
42987static swig_type_info _swigt__p_wxSpinEvent = {"_p_wxSpinEvent", "wxSpinEvent *", 0, 0, (void*)0, 0};
42988static swig_type_info _swigt__p_wxStaticBitmap = {"_p_wxStaticBitmap", "wxStaticBitmap *", 0, 0, (void*)0, 0};
42989static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, (void*)0, 0};
42990static swig_type_info _swigt__p_wxStaticLine = {"_p_wxStaticLine", "wxStaticLine *", 0, 0, (void*)0, 0};
42991static swig_type_info _swigt__p_wxStaticText = {"_p_wxStaticText", "wxStaticText *", 0, 0, (void*)0, 0};
42992static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
42993static swig_type_info _swigt__p_wxTextAttr = {"_p_wxTextAttr", "wxTextAttr *", 0, 0, (void*)0, 0};
42994static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, (void*)0, 0};
42995static swig_type_info _swigt__p_wxTextUrlEvent = {"_p_wxTextUrlEvent", "wxTextUrlEvent *", 0, 0, (void*)0, 0};
42996static swig_type_info _swigt__p_wxToggleButton = {"_p_wxToggleButton", "wxToggleButton *", 0, 0, (void*)0, 0};
42997static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0};
42998static swig_type_info _swigt__p_wxToolBarBase = {"_p_wxToolBarBase", "wxToolBarBase *", 0, 0, (void*)0, 0};
42999static swig_type_info _swigt__p_wxToolBarToolBase = {"_p_wxToolBarToolBase", "wxToolBarToolBase *", 0, 0, (void*)0, 0};
43000static swig_type_info _swigt__p_wxToolbook = {"_p_wxToolbook", "wxToolbook *", 0, 0, (void*)0, 0};
43001static swig_type_info _swigt__p_wxToolbookEvent = {"_p_wxToolbookEvent", "wxToolbookEvent *", 0, 0, (void*)0, 0};
43002static swig_type_info _swigt__p_wxTreeCtrl = {"_p_wxTreeCtrl", "wxTreeCtrl *", 0, 0, (void*)0, 0};
43003static swig_type_info _swigt__p_wxTreeEvent = {"_p_wxTreeEvent", "wxTreeEvent *", 0, 0, (void*)0, 0};
43004static swig_type_info _swigt__p_wxTreeItemId = {"_p_wxTreeItemId", "wxTreeItemId *", 0, 0, (void*)0, 0};
43005static swig_type_info _swigt__p_wxTreebook = {"_p_wxTreebook", "wxTreebook *", 0, 0, (void*)0, 0};
43006static swig_type_info _swigt__p_wxTreebookEvent = {"_p_wxTreebookEvent", "wxTreebookEvent *", 0, 0, (void*)0, 0};
43007static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0};
43008static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0};
43009static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
43010
43011static swig_type_info *swig_type_initial[] = {
43012 &_swigt__p_bool,
43013 &_swigt__p_char,
43014 &_swigt__p_form_ops_t,
43015 &_swigt__p_int,
43016 &_swigt__p_long,
43017 &_swigt__p_unsigned_char,
43018 &_swigt__p_unsigned_int,
43019 &_swigt__p_unsigned_long,
43020 &_swigt__p_void,
43021 &_swigt__p_wxANIHandler,
43022 &_swigt__p_wxAcceleratorTable,
43023 &_swigt__p_wxActivateEvent,
43024 &_swigt__p_wxArrayInt,
43025 &_swigt__p_wxArrayString,
43026 &_swigt__p_wxBMPHandler,
43027 &_swigt__p_wxBitmap,
43028 &_swigt__p_wxBitmapButton,
43029 &_swigt__p_wxBookCtrlBase,
43030 &_swigt__p_wxBookCtrlBaseEvent,
43031 &_swigt__p_wxBoxSizer,
43032 &_swigt__p_wxButton,
43033 &_swigt__p_wxCURHandler,
43034 &_swigt__p_wxCheckBox,
43035 &_swigt__p_wxCheckListBox,
43036 &_swigt__p_wxChildFocusEvent,
43037 &_swigt__p_wxChoice,
43038 &_swigt__p_wxChoicebook,
43039 &_swigt__p_wxChoicebookEvent,
43040 &_swigt__p_wxCloseEvent,
43041 &_swigt__p_wxColour,
43042 &_swigt__p_wxComboBox,
43043 &_swigt__p_wxCommandEvent,
43044 &_swigt__p_wxContextHelp,
43045 &_swigt__p_wxContextHelpButton,
43046 &_swigt__p_wxContextMenuEvent,
43047 &_swigt__p_wxControl,
43048 &_swigt__p_wxControlWithItems,
43049 &_swigt__p_wxCursor,
43050 &_swigt__p_wxDC,
43051 &_swigt__p_wxDateEvent,
43052 &_swigt__p_wxDatePickerCtrl,
43053 &_swigt__p_wxDateTime,
43054 &_swigt__p_wxDirFilterListCtrl,
43055 &_swigt__p_wxDisplayChangedEvent,
43056 &_swigt__p_wxDropFilesEvent,
43057 &_swigt__p_wxDuplexMode,
43058 &_swigt__p_wxEraseEvent,
43059 &_swigt__p_wxEvent,
43060 &_swigt__p_wxEvtHandler,
43061 &_swigt__p_wxFSFile,
43062 &_swigt__p_wxFileSystem,
43063 &_swigt__p_wxFlexGridSizer,
43064 &_swigt__p_wxFocusEvent,
43065 &_swigt__p_wxFont,
43066 &_swigt__p_wxGBSizerItem,
43067 &_swigt__p_wxGIFHandler,
43068 &_swigt__p_wxGauge,
43069 &_swigt__p_wxGenericDirCtrl,
43070 &_swigt__p_wxGenericDragImage,
43071 &_swigt__p_wxGridBagSizer,
43072 &_swigt__p_wxGridSizer,
43073 &_swigt__p_wxHelpEvent,
43074 &_swigt__p_wxHelpProvider,
43075 &_swigt__p_wxICOHandler,
43076 &_swigt__p_wxIcon,
43077 &_swigt__p_wxIconizeEvent,
43078 &_swigt__p_wxIdleEvent,
43079 &_swigt__p_wxImage,
43080 &_swigt__p_wxImageHandler,
43081 &_swigt__p_wxImageList,
43082 &_swigt__p_wxIndividualLayoutConstraint,
43083 &_swigt__p_wxInitDialogEvent,
43084 &_swigt__p_wxItemContainer,
43085 &_swigt__p_wxJPEGHandler,
43086 &_swigt__p_wxKeyEvent,
43087 &_swigt__p_wxLayoutConstraints,
43088 &_swigt__p_wxListBox,
43089 &_swigt__p_wxListEvent,
43090 &_swigt__p_wxListItem,
43091 &_swigt__p_wxListItemAttr,
43092 &_swigt__p_wxListView,
43093 &_swigt__p_wxListbook,
43094 &_swigt__p_wxListbookEvent,
43095 &_swigt__p_wxMaximizeEvent,
43096 &_swigt__p_wxMemoryDC,
43097 &_swigt__p_wxMenu,
43098 &_swigt__p_wxMenuBar,
43099 &_swigt__p_wxMenuEvent,
43100 &_swigt__p_wxMenuItem,
43101 &_swigt__p_wxMouseCaptureChangedEvent,
43102 &_swigt__p_wxMouseEvent,
43103 &_swigt__p_wxMoveEvent,
43104 &_swigt__p_wxNavigationKeyEvent,
43105 &_swigt__p_wxNcPaintEvent,
43106 &_swigt__p_wxNotebook,
43107 &_swigt__p_wxNotebookEvent,
43108 &_swigt__p_wxNotifyEvent,
43109 &_swigt__p_wxObject,
43110 &_swigt__p_wxPCXHandler,
43111 &_swigt__p_wxPNGHandler,
43112 &_swigt__p_wxPNMHandler,
43113 &_swigt__p_wxPaintEvent,
43114 &_swigt__p_wxPaletteChangedEvent,
43115 &_swigt__p_wxPaperSize,
43116 &_swigt__p_wxPoint,
43117 &_swigt__p_wxPyApp,
43118 &_swigt__p_wxPyCommandEvent,
43119 &_swigt__p_wxPyControl,
43120 &_swigt__p_wxPyEvent,
43121 &_swigt__p_wxPyImageHandler,
43122 &_swigt__p_wxPyListCtrl,
43123 &_swigt__p_wxPySizer,
43124 &_swigt__p_wxPyTreeCtrl,
43125 &_swigt__p_wxPyTreeItemData,
43126 &_swigt__p_wxPyValidator,
43127 &_swigt__p_wxQueryNewPaletteEvent,
43128 &_swigt__p_wxRadioBox,
43129 &_swigt__p_wxRadioButton,
43130 &_swigt__p_wxRect,
43131 &_swigt__p_wxScrollBar,
43132 &_swigt__p_wxScrollEvent,
43133 &_swigt__p_wxScrollWinEvent,
43134 &_swigt__p_wxSetCursorEvent,
43135 &_swigt__p_wxShowEvent,
43136 &_swigt__p_wxSimpleHelpProvider,
43137 &_swigt__p_wxSize,
43138 &_swigt__p_wxSizeEvent,
43139 &_swigt__p_wxSizer,
43140 &_swigt__p_wxSizerItem,
43141 &_swigt__p_wxSlider,
43142 &_swigt__p_wxSpinButton,
43143 &_swigt__p_wxSpinCtrl,
43144 &_swigt__p_wxSpinEvent,
43145 &_swigt__p_wxStaticBitmap,
43146 &_swigt__p_wxStaticBox,
43147 &_swigt__p_wxStaticBoxSizer,
43148 &_swigt__p_wxStaticLine,
43149 &_swigt__p_wxStaticText,
43150 &_swigt__p_wxStdDialogButtonSizer,
43151 &_swigt__p_wxString,
43152 &_swigt__p_wxSysColourChangedEvent,
43153 &_swigt__p_wxTIFFHandler,
43154 &_swigt__p_wxTextAttr,
43155 &_swigt__p_wxTextCtrl,
43156 &_swigt__p_wxTextUrlEvent,
43157 &_swigt__p_wxToggleButton,
43158 &_swigt__p_wxToolBar,
43159 &_swigt__p_wxToolBarBase,
43160 &_swigt__p_wxToolBarToolBase,
43161 &_swigt__p_wxToolbook,
43162 &_swigt__p_wxToolbookEvent,
43163 &_swigt__p_wxTreeCtrl,
43164 &_swigt__p_wxTreeEvent,
43165 &_swigt__p_wxTreeItemId,
43166 &_swigt__p_wxTreebook,
43167 &_swigt__p_wxTreebookEvent,
43168 &_swigt__p_wxUpdateUIEvent,
43169 &_swigt__p_wxValidator,
43170 &_swigt__p_wxVisualAttributes,
43171 &_swigt__p_wxWindow,
43172 &_swigt__p_wxWindowCreateEvent,
43173 &_swigt__p_wxWindowDestroyEvent,
43174 &_swigt__p_wxXPMHandler,
43175};
43176
43177static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}};
43178static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
43179static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
43180static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
43181static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
43182static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
43183static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
43184static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
43185static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
43186static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}};
43187static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}};
43188static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
43189static 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}};
43190static 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}};
43191static 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}};
43192static 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}};
43193static swig_cast_info _swigc__p_wxCheckBox[] = { {&_swigt__p_wxCheckBox, 0, 0, 0},{0, 0, 0, 0}};
43194static swig_cast_info _swigc__p_wxCheckListBox[] = { {&_swigt__p_wxCheckListBox, 0, 0, 0},{0, 0, 0, 0}};
43195static 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}};
43196static swig_cast_info _swigc__p_wxChoicebook[] = { {&_swigt__p_wxChoicebook, 0, 0, 0},{0, 0, 0, 0}};
43197static swig_cast_info _swigc__p_wxChoicebookEvent[] = { {&_swigt__p_wxChoicebookEvent, 0, 0, 0},{0, 0, 0, 0}};
43198static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
43199static swig_cast_info _swigc__p_wxComboBox[] = { {&_swigt__p_wxComboBox, 0, 0, 0},{0, 0, 0, 0}};
43200static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
43201static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
43202static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
43203static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
43204static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
43205static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
43206static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
43207static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
43208static 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}};
43209static swig_cast_info _swigc__p_wxContextHelp[] = { {&_swigt__p_wxContextHelp, 0, 0, 0},{0, 0, 0, 0}};
43210static swig_cast_info _swigc__p_wxContextHelpButton[] = { {&_swigt__p_wxContextHelpButton, 0, 0, 0},{0, 0, 0, 0}};
43211static 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}};
43212static 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}};
43213static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
43214static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}};
43215static swig_cast_info _swigc__p_wxDatePickerCtrl[] = { {&_swigt__p_wxDatePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
43216static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}};
43217static swig_cast_info _swigc__p_wxDirFilterListCtrl[] = { {&_swigt__p_wxDirFilterListCtrl, 0, 0, 0},{0, 0, 0, 0}};
43218static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
43219static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
43220static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
43221static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
43222static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
43223static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
43224static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
43225static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
43226static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
43227static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
43228static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
43229static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
43230static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
43231static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
43232static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
43233static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
43234static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
43235static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
43236static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
43237static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
43238static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
43239static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
43240static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
43241static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
43242static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
43243static 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}};
43244static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
43245static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
43246static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
43247static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
43248static 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}};
43249static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
43250static swig_cast_info _swigc__p_wxGauge[] = { {&_swigt__p_wxGauge, 0, 0, 0},{0, 0, 0, 0}};
43251static swig_cast_info _swigc__p_wxGenericDirCtrl[] = { {&_swigt__p_wxGenericDirCtrl, 0, 0, 0},{0, 0, 0, 0}};
43252static swig_cast_info _swigc__p_wxGenericDragImage[] = { {&_swigt__p_wxGenericDragImage, 0, 0, 0},{0, 0, 0, 0}};
43253static swig_cast_info _swigc__p_wxHelpEvent[] = { {&_swigt__p_wxHelpEvent, 0, 0, 0},{0, 0, 0, 0}};
43254static 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}};
43255static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
43256static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
43257static 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}};
43258static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
43259static 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}};
43260static swig_cast_info _swigc__p_wxListEvent[] = { {&_swigt__p_wxListEvent, 0, 0, 0},{0, 0, 0, 0}};
43261static swig_cast_info _swigc__p_wxListItem[] = { {&_swigt__p_wxListItem, 0, 0, 0},{0, 0, 0, 0}};
43262static swig_cast_info _swigc__p_wxListItemAttr[] = { {&_swigt__p_wxListItemAttr, 0, 0, 0},{0, 0, 0, 0}};
43263static swig_cast_info _swigc__p_wxListView[] = { {&_swigt__p_wxListView, 0, 0, 0},{0, 0, 0, 0}};
43264static swig_cast_info _swigc__p_wxListbook[] = { {&_swigt__p_wxListbook, 0, 0, 0},{0, 0, 0, 0}};
43265static swig_cast_info _swigc__p_wxListbookEvent[] = { {&_swigt__p_wxListbookEvent, 0, 0, 0},{0, 0, 0, 0}};
43266static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}};
43267static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
43268static swig_cast_info _swigc__p_wxNotebook[] = { {&_swigt__p_wxNotebook, 0, 0, 0},{0, 0, 0, 0}};
43269static swig_cast_info _swigc__p_wxNotebookEvent[] = { {&_swigt__p_wxNotebookEvent, 0, 0, 0},{0, 0, 0, 0}};
43270static 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}};
43271static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
43272static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
43273static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
43274static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
43275static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
43276static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
43277static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
43278static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
43279static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
43280static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
43281static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
43282static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
43283static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
43284static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
43285static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
43286static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
43287static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
43288static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
43289static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
43290static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
43291static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
43292static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
43293static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
43294static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
43295static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
43296static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
43297static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
43298static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
43299static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
43300static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
43301static 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}};
43302static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
43303static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
43304static swig_cast_info _swigc__p_wxPyControl[] = { {&_swigt__p_wxPyControl, 0, 0, 0},{0, 0, 0, 0}};
43305static 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}};
43306static swig_cast_info _swigc__p_wxPyTreeCtrl[] = { {&_swigt__p_wxPyTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
43307static swig_cast_info _swigc__p_wxPyTreeItemData[] = { {&_swigt__p_wxPyTreeItemData, 0, 0, 0},{0, 0, 0, 0}};
43308static swig_cast_info _swigc__p_wxRadioBox[] = { {&_swigt__p_wxRadioBox, 0, 0, 0},{0, 0, 0, 0}};
43309static swig_cast_info _swigc__p_wxRadioButton[] = { {&_swigt__p_wxRadioButton, 0, 0, 0},{0, 0, 0, 0}};
43310static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
43311static swig_cast_info _swigc__p_wxScrollBar[] = { {&_swigt__p_wxScrollBar, 0, 0, 0},{0, 0, 0, 0}};
43312static swig_cast_info _swigc__p_wxSimpleHelpProvider[] = { {&_swigt__p_wxSimpleHelpProvider, 0, 0, 0},{0, 0, 0, 0}};
43313static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
43314static swig_cast_info _swigc__p_wxSlider[] = { {&_swigt__p_wxSlider, 0, 0, 0},{0, 0, 0, 0}};
43315static swig_cast_info _swigc__p_wxSpinButton[] = { {&_swigt__p_wxSpinButton, 0, 0, 0},{0, 0, 0, 0}};
43316static swig_cast_info _swigc__p_wxSpinCtrl[] = { {&_swigt__p_wxSpinCtrl, 0, 0, 0},{0, 0, 0, 0}};
43317static swig_cast_info _swigc__p_wxSpinEvent[] = { {&_swigt__p_wxSpinEvent, 0, 0, 0},{0, 0, 0, 0}};
43318static swig_cast_info _swigc__p_wxStaticBitmap[] = { {&_swigt__p_wxStaticBitmap, 0, 0, 0},{0, 0, 0, 0}};
43319static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}};
43320static swig_cast_info _swigc__p_wxStaticLine[] = { {&_swigt__p_wxStaticLine, 0, 0, 0},{0, 0, 0, 0}};
43321static swig_cast_info _swigc__p_wxStaticText[] = { {&_swigt__p_wxStaticText, 0, 0, 0},{0, 0, 0, 0}};
43322static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
43323static swig_cast_info _swigc__p_wxTextAttr[] = { {&_swigt__p_wxTextAttr, 0, 0, 0},{0, 0, 0, 0}};
43324static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0},{0, 0, 0, 0}};
43325static swig_cast_info _swigc__p_wxTextUrlEvent[] = { {&_swigt__p_wxTextUrlEvent, 0, 0, 0},{0, 0, 0, 0}};
43326static swig_cast_info _swigc__p_wxToggleButton[] = { {&_swigt__p_wxToggleButton, 0, 0, 0},{0, 0, 0, 0}};
43327static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}};
43328static 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}};
43329static swig_cast_info _swigc__p_wxToolBarToolBase[] = { {&_swigt__p_wxToolBarToolBase, 0, 0, 0},{0, 0, 0, 0}};
43330static swig_cast_info _swigc__p_wxToolbook[] = { {&_swigt__p_wxToolbook, 0, 0, 0},{0, 0, 0, 0}};
43331static swig_cast_info _swigc__p_wxToolbookEvent[] = { {&_swigt__p_wxToolbookEvent, 0, 0, 0},{0, 0, 0, 0}};
43332static swig_cast_info _swigc__p_wxTreeCtrl[] = { {&_swigt__p_wxTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
43333static swig_cast_info _swigc__p_wxTreeEvent[] = { {&_swigt__p_wxTreeEvent, 0, 0, 0},{0, 0, 0, 0}};
43334static swig_cast_info _swigc__p_wxTreeItemId[] = { {&_swigt__p_wxTreeItemId, 0, 0, 0},{0, 0, 0, 0}};
43335static swig_cast_info _swigc__p_wxTreebook[] = { {&_swigt__p_wxTreebook, 0, 0, 0},{0, 0, 0, 0}};
43336static swig_cast_info _swigc__p_wxTreebookEvent[] = { {&_swigt__p_wxTreebookEvent, 0, 0, 0},{0, 0, 0, 0}};
43337static 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}};
43338static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}};
43339static 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}};
43340
43341static swig_cast_info *swig_cast_initial[] = {
43342 _swigc__p_bool,
43343 _swigc__p_char,
43344 _swigc__p_form_ops_t,
43345 _swigc__p_int,
43346 _swigc__p_long,
43347 _swigc__p_unsigned_char,
43348 _swigc__p_unsigned_int,
43349 _swigc__p_unsigned_long,
43350 _swigc__p_void,
43351 _swigc__p_wxANIHandler,
43352 _swigc__p_wxAcceleratorTable,
43353 _swigc__p_wxActivateEvent,
43354 _swigc__p_wxArrayInt,
43355 _swigc__p_wxArrayString,
43356 _swigc__p_wxBMPHandler,
43357 _swigc__p_wxBitmap,
43358 _swigc__p_wxBitmapButton,
43359 _swigc__p_wxBookCtrlBase,
43360 _swigc__p_wxBookCtrlBaseEvent,
43361 _swigc__p_wxBoxSizer,
43362 _swigc__p_wxButton,
43363 _swigc__p_wxCURHandler,
43364 _swigc__p_wxCheckBox,
43365 _swigc__p_wxCheckListBox,
43366 _swigc__p_wxChildFocusEvent,
43367 _swigc__p_wxChoice,
43368 _swigc__p_wxChoicebook,
43369 _swigc__p_wxChoicebookEvent,
43370 _swigc__p_wxCloseEvent,
43371 _swigc__p_wxColour,
43372 _swigc__p_wxComboBox,
43373 _swigc__p_wxCommandEvent,
43374 _swigc__p_wxContextHelp,
43375 _swigc__p_wxContextHelpButton,
43376 _swigc__p_wxContextMenuEvent,
43377 _swigc__p_wxControl,
43378 _swigc__p_wxControlWithItems,
43379 _swigc__p_wxCursor,
43380 _swigc__p_wxDC,
43381 _swigc__p_wxDateEvent,
43382 _swigc__p_wxDatePickerCtrl,
43383 _swigc__p_wxDateTime,
43384 _swigc__p_wxDirFilterListCtrl,
43385 _swigc__p_wxDisplayChangedEvent,
43386 _swigc__p_wxDropFilesEvent,
43387 _swigc__p_wxDuplexMode,
43388 _swigc__p_wxEraseEvent,
43389 _swigc__p_wxEvent,
43390 _swigc__p_wxEvtHandler,
43391 _swigc__p_wxFSFile,
43392 _swigc__p_wxFileSystem,
43393 _swigc__p_wxFlexGridSizer,
43394 _swigc__p_wxFocusEvent,
43395 _swigc__p_wxFont,
43396 _swigc__p_wxGBSizerItem,
43397 _swigc__p_wxGIFHandler,
43398 _swigc__p_wxGauge,
43399 _swigc__p_wxGenericDirCtrl,
43400 _swigc__p_wxGenericDragImage,
43401 _swigc__p_wxGridBagSizer,
43402 _swigc__p_wxGridSizer,
43403 _swigc__p_wxHelpEvent,
43404 _swigc__p_wxHelpProvider,
43405 _swigc__p_wxICOHandler,
43406 _swigc__p_wxIcon,
43407 _swigc__p_wxIconizeEvent,
43408 _swigc__p_wxIdleEvent,
43409 _swigc__p_wxImage,
43410 _swigc__p_wxImageHandler,
43411 _swigc__p_wxImageList,
43412 _swigc__p_wxIndividualLayoutConstraint,
43413 _swigc__p_wxInitDialogEvent,
43414 _swigc__p_wxItemContainer,
43415 _swigc__p_wxJPEGHandler,
43416 _swigc__p_wxKeyEvent,
43417 _swigc__p_wxLayoutConstraints,
43418 _swigc__p_wxListBox,
43419 _swigc__p_wxListEvent,
43420 _swigc__p_wxListItem,
43421 _swigc__p_wxListItemAttr,
43422 _swigc__p_wxListView,
43423 _swigc__p_wxListbook,
43424 _swigc__p_wxListbookEvent,
43425 _swigc__p_wxMaximizeEvent,
43426 _swigc__p_wxMemoryDC,
43427 _swigc__p_wxMenu,
43428 _swigc__p_wxMenuBar,
43429 _swigc__p_wxMenuEvent,
43430 _swigc__p_wxMenuItem,
43431 _swigc__p_wxMouseCaptureChangedEvent,
43432 _swigc__p_wxMouseEvent,
43433 _swigc__p_wxMoveEvent,
43434 _swigc__p_wxNavigationKeyEvent,
43435 _swigc__p_wxNcPaintEvent,
43436 _swigc__p_wxNotebook,
43437 _swigc__p_wxNotebookEvent,
43438 _swigc__p_wxNotifyEvent,
43439 _swigc__p_wxObject,
43440 _swigc__p_wxPCXHandler,
43441 _swigc__p_wxPNGHandler,
43442 _swigc__p_wxPNMHandler,
43443 _swigc__p_wxPaintEvent,
43444 _swigc__p_wxPaletteChangedEvent,
43445 _swigc__p_wxPaperSize,
43446 _swigc__p_wxPoint,
43447 _swigc__p_wxPyApp,
43448 _swigc__p_wxPyCommandEvent,
43449 _swigc__p_wxPyControl,
43450 _swigc__p_wxPyEvent,
43451 _swigc__p_wxPyImageHandler,
43452 _swigc__p_wxPyListCtrl,
43453 _swigc__p_wxPySizer,
43454 _swigc__p_wxPyTreeCtrl,
43455 _swigc__p_wxPyTreeItemData,
43456 _swigc__p_wxPyValidator,
43457 _swigc__p_wxQueryNewPaletteEvent,
43458 _swigc__p_wxRadioBox,
43459 _swigc__p_wxRadioButton,
43460 _swigc__p_wxRect,
43461 _swigc__p_wxScrollBar,
43462 _swigc__p_wxScrollEvent,
43463 _swigc__p_wxScrollWinEvent,
43464 _swigc__p_wxSetCursorEvent,
43465 _swigc__p_wxShowEvent,
43466 _swigc__p_wxSimpleHelpProvider,
43467 _swigc__p_wxSize,
43468 _swigc__p_wxSizeEvent,
43469 _swigc__p_wxSizer,
43470 _swigc__p_wxSizerItem,
43471 _swigc__p_wxSlider,
43472 _swigc__p_wxSpinButton,
43473 _swigc__p_wxSpinCtrl,
43474 _swigc__p_wxSpinEvent,
43475 _swigc__p_wxStaticBitmap,
43476 _swigc__p_wxStaticBox,
43477 _swigc__p_wxStaticBoxSizer,
43478 _swigc__p_wxStaticLine,
43479 _swigc__p_wxStaticText,
43480 _swigc__p_wxStdDialogButtonSizer,
43481 _swigc__p_wxString,
43482 _swigc__p_wxSysColourChangedEvent,
43483 _swigc__p_wxTIFFHandler,
43484 _swigc__p_wxTextAttr,
43485 _swigc__p_wxTextCtrl,
43486 _swigc__p_wxTextUrlEvent,
43487 _swigc__p_wxToggleButton,
43488 _swigc__p_wxToolBar,
43489 _swigc__p_wxToolBarBase,
43490 _swigc__p_wxToolBarToolBase,
43491 _swigc__p_wxToolbook,
43492 _swigc__p_wxToolbookEvent,
43493 _swigc__p_wxTreeCtrl,
43494 _swigc__p_wxTreeEvent,
43495 _swigc__p_wxTreeItemId,
43496 _swigc__p_wxTreebook,
43497 _swigc__p_wxTreebookEvent,
43498 _swigc__p_wxUpdateUIEvent,
43499 _swigc__p_wxValidator,
43500 _swigc__p_wxVisualAttributes,
43501 _swigc__p_wxWindow,
43502 _swigc__p_wxWindowCreateEvent,
43503 _swigc__p_wxWindowDestroyEvent,
43504 _swigc__p_wxXPMHandler,
43505};
43506
43507
43508/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
43509
43510static swig_const_info swig_const_table[] = {
43511{0, 0, 0, 0.0, 0, 0}};
43512
43513#ifdef __cplusplus
43514}
43515#endif
43516/* -----------------------------------------------------------------------------
43517 * Type initialization:
43518 * This problem is tough by the requirement that no dynamic
43519 * memory is used. Also, since swig_type_info structures store pointers to
43520 * swig_cast_info structures and swig_cast_info structures store pointers back
43521 * to swig_type_info structures, we need some lookup code at initialization.
43522 * The idea is that swig generates all the structures that are needed.
43523 * The runtime then collects these partially filled structures.
43524 * The SWIG_InitializeModule function takes these initial arrays out of
43525 * swig_module, and does all the lookup, filling in the swig_module.types
43526 * array with the correct data and linking the correct swig_cast_info
43527 * structures together.
43528 *
43529 * The generated swig_type_info structures are assigned staticly to an initial
43530 * array. We just loop though that array, and handle each type individually.
43531 * First we lookup if this type has been already loaded, and if so, use the
43532 * loaded structure instead of the generated one. Then we have to fill in the
43533 * cast linked list. The cast data is initially stored in something like a
43534 * two-dimensional array. Each row corresponds to a type (there are the same
43535 * number of rows as there are in the swig_type_initial array). Each entry in
43536 * a column is one of the swig_cast_info structures for that type.
43537 * The cast_initial array is actually an array of arrays, because each row has
43538 * a variable number of columns. So to actually build the cast linked list,
43539 * we find the array of casts associated with the type, and loop through it
43540 * adding the casts to the list. The one last trick we need to do is making
43541 * sure the type pointer in the swig_cast_info struct is correct.
43542 *
43543 * First off, we lookup the cast->type name to see if it is already loaded.
43544 * There are three cases to handle:
43545 * 1) If the cast->type has already been loaded AND the type we are adding
43546 * casting info to has not been loaded (it is in this module), THEN we
43547 * replace the cast->type pointer with the type pointer that has already
43548 * been loaded.
43549 * 2) If BOTH types (the one we are adding casting info to, and the
43550 * cast->type) are loaded, THEN the cast info has already been loaded by
43551 * the previous module so we just ignore it.
43552 * 3) Finally, if cast->type has not already been loaded, then we add that
43553 * swig_cast_info to the linked list (because the cast->type) pointer will
43554 * be correct.
43555 * ----------------------------------------------------------------------------- */
43556
43557#ifdef __cplusplus
43558extern "C" {
43559#if 0
43560} /* c-mode */
43561#endif
43562#endif
43563
43564#if 0
43565#define SWIGRUNTIME_DEBUG
43566#endif
43567
43568SWIGRUNTIME void
43569SWIG_InitializeModule(void *clientdata) {
43570 size_t i;
43571 swig_module_info *module_head;
43572 static int init_run = 0;
43573
43574 clientdata = clientdata;
43575
43576 if (init_run) return;
43577 init_run = 1;
43578
43579 /* Initialize the swig_module */
43580 swig_module.type_initial = swig_type_initial;
43581 swig_module.cast_initial = swig_cast_initial;
43582
43583 /* Try and load any already created modules */
43584 module_head = SWIG_GetModule(clientdata);
43585 if (module_head) {
43586 swig_module.next = module_head->next;
43587 module_head->next = &swig_module;
43588 } else {
43589 /* This is the first module loaded */
43590 swig_module.next = &swig_module;
43591 SWIG_SetModule(clientdata, &swig_module);
43592 }
43593
43594 /* Now work on filling in swig_module.types */
43595#ifdef SWIGRUNTIME_DEBUG
43596 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
43597#endif
43598 for (i = 0; i < swig_module.size; ++i) {
43599 swig_type_info *type = 0;
43600 swig_type_info *ret;
43601 swig_cast_info *cast;
d14a1e28 43602
0085ce49
RD
43603#ifdef SWIGRUNTIME_DEBUG
43604 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
43605#endif
d14a1e28 43606
0085ce49
RD
43607 /* if there is another module already loaded */
43608 if (swig_module.next != &swig_module) {
43609 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
093d3ff1 43610 }
0085ce49
RD
43611 if (type) {
43612 /* Overwrite clientdata field */
43613#ifdef SWIGRUNTIME_DEBUG
43614 printf("SWIG_InitializeModule: found type %s\n", type->name);
43615#endif
43616 if (swig_module.type_initial[i]->clientdata) {
43617 type->clientdata = swig_module.type_initial[i]->clientdata;
43618#ifdef SWIGRUNTIME_DEBUG
43619 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
43620#endif
43621 }
43622 } else {
43623 type = swig_module.type_initial[i];
093d3ff1 43624 }
d14a1e28 43625
0085ce49
RD
43626 /* Insert casting types */
43627 cast = swig_module.cast_initial[i];
43628 while (cast->type) {
43629 /* Don't need to add information already in the list */
43630 ret = 0;
43631#ifdef SWIGRUNTIME_DEBUG
43632 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
43633#endif
43634 if (swig_module.next != &swig_module) {
43635 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
43636#ifdef SWIGRUNTIME_DEBUG
43637 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
43638#endif
43639 }
43640 if (ret) {
43641 if (type == swig_module.type_initial[i]) {
43642#ifdef SWIGRUNTIME_DEBUG
43643 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
43644#endif
43645 cast->type = ret;
43646 ret = 0;
43647 } else {
43648 /* Check for casting already in the list */
43649 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
43650#ifdef SWIGRUNTIME_DEBUG
43651 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
43652#endif
43653 if (!ocast) ret = 0;
43654 }
43655 }
43656
43657 if (!ret) {
43658#ifdef SWIGRUNTIME_DEBUG
43659 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
43660#endif
43661 if (type->cast) {
43662 type->cast->prev = cast;
43663 cast->next = type->cast;
43664 }
43665 type->cast = cast;
43666 }
43667 cast++;
093d3ff1 43668 }
0085ce49
RD
43669 /* Set entry in modules->types array equal to the type */
43670 swig_module.types[i] = type;
43671 }
43672 swig_module.types[i] = 0;
43673
43674#ifdef SWIGRUNTIME_DEBUG
43675 printf("**** SWIG_InitializeModule: Cast List ******\n");
43676 for (i = 0; i < swig_module.size; ++i) {
43677 int j = 0;
43678 swig_cast_info *cast = swig_module.cast_initial[i];
43679 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
43680 while (cast->type) {
43681 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
43682 cast++;
43683 ++j;
43684 }
43685 printf("---- Total casts: %d\n",j);
43686 }
43687 printf("**** SWIG_InitializeModule: Cast List ******\n");
43688#endif
43689}
43690
43691/* This function will propagate the clientdata field of type to
43692* any new swig_type_info structures that have been added into the list
43693* of equivalent types. It is like calling
43694* SWIG_TypeClientData(type, clientdata) a second time.
43695*/
43696SWIGRUNTIME void
43697SWIG_PropagateClientData(void) {
43698 size_t i;
43699 swig_cast_info *equiv;
43700 static int init_run = 0;
43701
43702 if (init_run) return;
43703 init_run = 1;
43704
43705 for (i = 0; i < swig_module.size; i++) {
43706 if (swig_module.types[i]->clientdata) {
43707 equiv = swig_module.types[i]->cast;
43708 while (equiv) {
43709 if (!equiv->converter) {
43710 if (equiv->type && !equiv->type->clientdata)
43711 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
43712 }
43713 equiv = equiv->next;
43714 }
093d3ff1 43715 }
0085ce49
RD
43716 }
43717}
43718
43719#ifdef __cplusplus
43720#if 0
43721{
43722 /* c-mode */
43723#endif
43724}
43725#endif
43726
43727
43728
43729#ifdef __cplusplus
43730extern "C" {
43731#endif
43732
43733 /* Python-specific SWIG API */
43734#define SWIG_newvarlink() SWIG_Python_newvarlink()
43735#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
43736#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
43737
43738 /* -----------------------------------------------------------------------------
43739 * global variable support code.
43740 * ----------------------------------------------------------------------------- */
43741
43742 typedef struct swig_globalvar {
43743 char *name; /* Name of global variable */
43744 PyObject *(*get_attr)(void); /* Return the current value */
43745 int (*set_attr)(PyObject *); /* Set the value */
43746 struct swig_globalvar *next;
43747 } swig_globalvar;
43748
43749 typedef struct swig_varlinkobject {
43750 PyObject_HEAD
43751 swig_globalvar *vars;
43752 } swig_varlinkobject;
43753
43754 SWIGINTERN PyObject *
43755 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
43756 return PyString_FromString("<Swig global variables>");
43757 }
43758
43759 SWIGINTERN PyObject *
43760 swig_varlink_str(swig_varlinkobject *v) {
43761 PyObject *str = PyString_FromString("(");
43762 swig_globalvar *var;
43763 for (var = v->vars; var; var=var->next) {
43764 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
43765 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
43766 }
43767 PyString_ConcatAndDel(&str,PyString_FromString(")"));
43768 return str;
43769 }
43770
43771 SWIGINTERN int
43772 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
43773 PyObject *str = swig_varlink_str(v);
43774 fprintf(fp,"Swig global variables ");
43775 fprintf(fp,"%s\n", PyString_AsString(str));
43776 Py_DECREF(str);
43777 return 0;
43778 }
43779
43780 SWIGINTERN void
43781 swig_varlink_dealloc(swig_varlinkobject *v) {
43782 swig_globalvar *var = v->vars;
43783 while (var) {
43784 swig_globalvar *n = var->next;
43785 free(var->name);
43786 free(var);
43787 var = n;
093d3ff1 43788 }
0085ce49
RD
43789 }
43790
43791 SWIGINTERN PyObject *
43792 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
43793 PyObject *res = NULL;
43794 swig_globalvar *var = v->vars;
43795 while (var) {
43796 if (strcmp(var->name,n) == 0) {
43797 res = (*var->get_attr)();
43798 break;
43799 }
43800 var = var->next;
093d3ff1 43801 }
0085ce49
RD
43802 if (res == NULL && !PyErr_Occurred()) {
43803 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
093d3ff1 43804 }
0085ce49
RD
43805 return res;
43806 }
43807
43808 SWIGINTERN int
43809 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
43810 int res = 1;
43811 swig_globalvar *var = v->vars;
43812 while (var) {
43813 if (strcmp(var->name,n) == 0) {
43814 res = (*var->set_attr)(p);
43815 break;
43816 }
43817 var = var->next;
093d3ff1 43818 }
0085ce49
RD
43819 if (res == 1 && !PyErr_Occurred()) {
43820 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
53aa7709 43821 }
0085ce49
RD
43822 return res;
43823 }
43824
43825 SWIGINTERN PyTypeObject*
43826 swig_varlink_type(void) {
43827 static char varlink__doc__[] = "Swig var link object";
43828 static PyTypeObject varlink_type;
43829 static int type_init = 0;
43830 if (!type_init) {
43831 const PyTypeObject tmp
43832 = {
43833 PyObject_HEAD_INIT(NULL)
43834 0, /* Number of items in variable part (ob_size) */
43835 (char *)"swigvarlink", /* Type name (tp_name) */
43836 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
43837 0, /* Itemsize (tp_itemsize) */
43838 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
43839 (printfunc) swig_varlink_print, /* Print (tp_print) */
43840 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
43841 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
43842 0, /* tp_compare */
43843 (reprfunc) swig_varlink_repr, /* tp_repr */
43844 0, /* tp_as_number */
43845 0, /* tp_as_sequence */
43846 0, /* tp_as_mapping */
43847 0, /* tp_hash */
43848 0, /* tp_call */
43849 (reprfunc)swig_varlink_str, /* tp_str */
43850 0, /* tp_getattro */
43851 0, /* tp_setattro */
43852 0, /* tp_as_buffer */
43853 0, /* tp_flags */
43854 varlink__doc__, /* tp_doc */
43855 0, /* tp_traverse */
43856 0, /* tp_clear */
43857 0, /* tp_richcompare */
43858 0, /* tp_weaklistoffset */
43859#if PY_VERSION_HEX >= 0x02020000
43860 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
43861#endif
43862#if PY_VERSION_HEX >= 0x02030000
43863 0, /* tp_del */
43864#endif
43865#ifdef COUNT_ALLOCS
43866 0,0,0,0 /* tp_alloc -> tp_next */
43867#endif
43868 };
43869 varlink_type = tmp;
43870 varlink_type.ob_type = &PyType_Type;
43871 type_init = 1;
53aa7709 43872 }
0085ce49
RD
43873 return &varlink_type;
43874 }
43875
43876 /* Create a variable linking object for use later */
43877 SWIGINTERN PyObject *
43878 SWIG_Python_newvarlink(void) {
43879 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
43880 if (result) {
43881 result->vars = 0;
43882 }
43883 return ((PyObject*) result);
43884 }
43885
43886 SWIGINTERN void
43887 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
43888 swig_varlinkobject *v = (swig_varlinkobject *) p;
43889 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
43890 if (gv) {
43891 size_t size = strlen(name)+1;
43892 gv->name = (char *)malloc(size);
43893 if (gv->name) {
43894 strncpy(gv->name,name,size);
43895 gv->get_attr = get_attr;
43896 gv->set_attr = set_attr;
43897 gv->next = v->vars;
43898 }
53aa7709 43899 }
0085ce49
RD
43900 v->vars = gv;
43901 }
43902
43903 SWIGINTERN PyObject *
43904 SWIG_globals() {
43905 static PyObject *_SWIG_globals = 0;
43906 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
43907 return _SWIG_globals;
43908 }
43909
43910 /* -----------------------------------------------------------------------------
43911 * constants/methods manipulation
43912 * ----------------------------------------------------------------------------- */
43913
43914 /* Install Constants */
43915 SWIGINTERN void
43916 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
43917 PyObject *obj = 0;
43918 size_t i;
43919 for (i = 0; constants[i].type; ++i) {
43920 switch(constants[i].type) {
43921 case SWIG_PY_POINTER:
43922 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
43923 break;
43924 case SWIG_PY_BINARY:
43925 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
43926 break;
43927 default:
43928 obj = 0;
43929 break;
43930 }
43931 if (obj) {
43932 PyDict_SetItemString(d, constants[i].name, obj);
43933 Py_DECREF(obj);
43934 }
53aa7709 43935 }
0085ce49
RD
43936 }
43937
43938 /* -----------------------------------------------------------------------------*/
43939 /* Fix SwigMethods to carry the callback ptrs when needed */
43940 /* -----------------------------------------------------------------------------*/
43941
43942 SWIGINTERN void
43943 SWIG_Python_FixMethods(PyMethodDef *methods,
43944 swig_const_info *const_table,
43945 swig_type_info **types,
43946 swig_type_info **types_initial) {
43947 size_t i;
43948 for (i = 0; methods[i].ml_name; ++i) {
43949 char *c = methods[i].ml_doc;
43950 if (c && (c = strstr(c, "swig_ptr: "))) {
43951 int j;
43952 swig_const_info *ci = 0;
43953 char *name = c + 10;
43954 for (j = 0; const_table[j].type; ++j) {
43955 if (strncmp(const_table[j].name, name,
43956 strlen(const_table[j].name)) == 0) {
43957 ci = &(const_table[j]);
43958 break;
43959 }
43960 }
43961 if (ci) {
43962 size_t shift = (ci->ptype) - types;
43963 swig_type_info *ty = types_initial[shift];
43964 size_t ldoc = (c - methods[i].ml_doc);
43965 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
43966 char *ndoc = (char*)malloc(ldoc + lptr + 10);
43967 if (ndoc) {
43968 char *buff = ndoc;
43969 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
43970 if (ptr) {
43971 strncpy(buff, methods[i].ml_doc, ldoc);
43972 buff += ldoc;
43973 strncpy(buff, "swig_ptr: ", 10);
43974 buff += 10;
43975 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
43976 methods[i].ml_doc = ndoc;
43977 }
43978 }
43979 }
43980 }
53aa7709 43981 }
0085ce49
RD
43982 }
43983
43984#ifdef __cplusplus
43985}
43986#endif
43987
43988/* -----------------------------------------------------------------------------*
43989 * Partial Init method
43990 * -----------------------------------------------------------------------------*/
43991
43992#ifdef __cplusplus
43993extern "C"
43994#endif
43995SWIGEXPORT void SWIG_init(void) {
43996 PyObject *m, *d;
43997
43998 /* Fix SwigMethods to carry the callback ptrs when needed */
43999 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
44000
44001 m = Py_InitModule((char *) SWIG_name, SwigMethods);
44002 d = PyModule_GetDict(m);
44003
44004 SWIG_InitializeModule(0);
44005 SWIG_InstallConstants(d,swig_const_table);
44006
44007
44008 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
44009 SWIG_addvarlink(SWIG_globals(),(char*)"ButtonNameStr",ButtonNameStr_get, ButtonNameStr_set);
44010 SWIG_Python_SetConstant(d, "BU_LEFT",SWIG_From_int(static_cast< int >(wxBU_LEFT)));
44011 SWIG_Python_SetConstant(d, "BU_TOP",SWIG_From_int(static_cast< int >(wxBU_TOP)));
44012 SWIG_Python_SetConstant(d, "BU_RIGHT",SWIG_From_int(static_cast< int >(wxBU_RIGHT)));
44013 SWIG_Python_SetConstant(d, "BU_BOTTOM",SWIG_From_int(static_cast< int >(wxBU_BOTTOM)));
44014 SWIG_Python_SetConstant(d, "BU_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBU_ALIGN_MASK)));
44015 SWIG_Python_SetConstant(d, "BU_EXACTFIT",SWIG_From_int(static_cast< int >(wxBU_EXACTFIT)));
44016 SWIG_Python_SetConstant(d, "BU_AUTODRAW",SWIG_From_int(static_cast< int >(wxBU_AUTODRAW)));
44017 SWIG_addvarlink(SWIG_globals(),(char*)"CheckBoxNameStr",CheckBoxNameStr_get, CheckBoxNameStr_set);
44018 SWIG_Python_SetConstant(d, "CHK_2STATE",SWIG_From_int(static_cast< int >(wxCHK_2STATE)));
44019 SWIG_Python_SetConstant(d, "CHK_3STATE",SWIG_From_int(static_cast< int >(wxCHK_3STATE)));
44020 SWIG_Python_SetConstant(d, "CHK_ALLOW_3RD_STATE_FOR_USER",SWIG_From_int(static_cast< int >(wxCHK_ALLOW_3RD_STATE_FOR_USER)));
44021 SWIG_Python_SetConstant(d, "CHK_UNCHECKED",SWIG_From_int(static_cast< int >(wxCHK_UNCHECKED)));
44022 SWIG_Python_SetConstant(d, "CHK_CHECKED",SWIG_From_int(static_cast< int >(wxCHK_CHECKED)));
44023 SWIG_Python_SetConstant(d, "CHK_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCHK_UNDETERMINED)));
44024 SWIG_addvarlink(SWIG_globals(),(char*)"ChoiceNameStr",ChoiceNameStr_get, ChoiceNameStr_set);
44025 SWIG_addvarlink(SWIG_globals(),(char*)"ComboBoxNameStr",ComboBoxNameStr_get, ComboBoxNameStr_set);
44026 SWIG_addvarlink(SWIG_globals(),(char*)"GaugeNameStr",GaugeNameStr_get, GaugeNameStr_set);
44027 SWIG_Python_SetConstant(d, "GA_HORIZONTAL",SWIG_From_int(static_cast< int >(wxGA_HORIZONTAL)));
44028 SWIG_Python_SetConstant(d, "GA_VERTICAL",SWIG_From_int(static_cast< int >(wxGA_VERTICAL)));
44029 SWIG_Python_SetConstant(d, "GA_SMOOTH",SWIG_From_int(static_cast< int >(wxGA_SMOOTH)));
0085ce49
RD
44030 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBitmapNameStr",StaticBitmapNameStr_get, StaticBitmapNameStr_set);
44031 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBoxNameStr",StaticBoxNameStr_get, StaticBoxNameStr_set);
44032 SWIG_addvarlink(SWIG_globals(),(char*)"StaticTextNameStr",StaticTextNameStr_get, StaticTextNameStr_set);
44033 SWIG_addvarlink(SWIG_globals(),(char*)"ListBoxNameStr",ListBoxNameStr_get, ListBoxNameStr_set);
44034 SWIG_addvarlink(SWIG_globals(),(char*)"TextCtrlNameStr",TextCtrlNameStr_get, TextCtrlNameStr_set);
44035 SWIG_Python_SetConstant(d, "TE_NO_VSCROLL",SWIG_From_int(static_cast< int >(wxTE_NO_VSCROLL)));
44036 SWIG_Python_SetConstant(d, "TE_AUTO_SCROLL",SWIG_From_int(static_cast< int >(wxTE_AUTO_SCROLL)));
44037 SWIG_Python_SetConstant(d, "TE_READONLY",SWIG_From_int(static_cast< int >(wxTE_READONLY)));
44038 SWIG_Python_SetConstant(d, "TE_MULTILINE",SWIG_From_int(static_cast< int >(wxTE_MULTILINE)));
44039 SWIG_Python_SetConstant(d, "TE_PROCESS_TAB",SWIG_From_int(static_cast< int >(wxTE_PROCESS_TAB)));
44040 SWIG_Python_SetConstant(d, "TE_LEFT",SWIG_From_int(static_cast< int >(wxTE_LEFT)));
44041 SWIG_Python_SetConstant(d, "TE_CENTER",SWIG_From_int(static_cast< int >(wxTE_CENTER)));
44042 SWIG_Python_SetConstant(d, "TE_RIGHT",SWIG_From_int(static_cast< int >(wxTE_RIGHT)));
44043 SWIG_Python_SetConstant(d, "TE_CENTRE",SWIG_From_int(static_cast< int >(wxTE_CENTRE)));
44044 SWIG_Python_SetConstant(d, "TE_RICH",SWIG_From_int(static_cast< int >(wxTE_RICH)));
44045 SWIG_Python_SetConstant(d, "TE_PROCESS_ENTER",SWIG_From_int(static_cast< int >(wxTE_PROCESS_ENTER)));
44046 SWIG_Python_SetConstant(d, "TE_PASSWORD",SWIG_From_int(static_cast< int >(wxTE_PASSWORD)));
44047 SWIG_Python_SetConstant(d, "TE_AUTO_URL",SWIG_From_int(static_cast< int >(wxTE_AUTO_URL)));
44048 SWIG_Python_SetConstant(d, "TE_NOHIDESEL",SWIG_From_int(static_cast< int >(wxTE_NOHIDESEL)));
44049 SWIG_Python_SetConstant(d, "TE_DONTWRAP",SWIG_From_int(static_cast< int >(wxTE_DONTWRAP)));
44050 SWIG_Python_SetConstant(d, "TE_CHARWRAP",SWIG_From_int(static_cast< int >(wxTE_CHARWRAP)));
44051 SWIG_Python_SetConstant(d, "TE_WORDWRAP",SWIG_From_int(static_cast< int >(wxTE_WORDWRAP)));
44052 SWIG_Python_SetConstant(d, "TE_BESTWRAP",SWIG_From_int(static_cast< int >(wxTE_BESTWRAP)));
0085ce49
RD
44053 SWIG_Python_SetConstant(d, "TE_RICH2",SWIG_From_int(static_cast< int >(wxTE_RICH2)));
44054 SWIG_Python_SetConstant(d, "TE_CAPITALIZE",SWIG_From_int(static_cast< int >(wxTE_CAPITALIZE)));
44055 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT)));
44056 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT)));
44057 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE)));
44058 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER)));
44059 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT)));
44060 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED)));
44061 SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR)));
44062 SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR)));
44063 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE)));
44064 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE)));
44065 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT)));
44066 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC)));
44067 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE)));
44068 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT)));
44069 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT)));
44070 SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT)));
44071 SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT)));
44072 SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS)));
44073 SWIG_Python_SetConstant(d, "TE_HT_UNKNOWN",SWIG_From_int(static_cast< int >(wxTE_HT_UNKNOWN)));
44074 SWIG_Python_SetConstant(d, "TE_HT_BEFORE",SWIG_From_int(static_cast< int >(wxTE_HT_BEFORE)));
44075 SWIG_Python_SetConstant(d, "TE_HT_ON_TEXT",SWIG_From_int(static_cast< int >(wxTE_HT_ON_TEXT)));
44076 SWIG_Python_SetConstant(d, "TE_HT_BELOW",SWIG_From_int(static_cast< int >(wxTE_HT_BELOW)));
44077 SWIG_Python_SetConstant(d, "TE_HT_BEYOND",SWIG_From_int(static_cast< int >(wxTE_HT_BEYOND)));
44078 SWIG_Python_SetConstant(d, "OutOfRangeTextCoord",SWIG_From_int(static_cast< int >(wxOutOfRangeTextCoord)));
44079 SWIG_Python_SetConstant(d, "InvalidTextCoord",SWIG_From_int(static_cast< int >(wxInvalidTextCoord)));
44080 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
44081 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
44082 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
44083 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
44084 SWIG_addvarlink(SWIG_globals(),(char*)"ScrollBarNameStr",ScrollBarNameStr_get, ScrollBarNameStr_set);
44085 SWIG_addvarlink(SWIG_globals(),(char*)"SPIN_BUTTON_NAME",SPIN_BUTTON_NAME_get, SPIN_BUTTON_NAME_set);
44086 SWIG_addvarlink(SWIG_globals(),(char*)"SpinCtrlNameStr",SpinCtrlNameStr_get, SpinCtrlNameStr_set);
44087 SWIG_Python_SetConstant(d, "SP_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSP_HORIZONTAL)));
44088 SWIG_Python_SetConstant(d, "SP_VERTICAL",SWIG_From_int(static_cast< int >(wxSP_VERTICAL)));
44089 SWIG_Python_SetConstant(d, "SP_ARROW_KEYS",SWIG_From_int(static_cast< int >(wxSP_ARROW_KEYS)));
44090 SWIG_Python_SetConstant(d, "SP_WRAP",SWIG_From_int(static_cast< int >(wxSP_WRAP)));
44091 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
44092 SWIG_addvarlink(SWIG_globals(),(char*)"RadioBoxNameStr",RadioBoxNameStr_get, RadioBoxNameStr_set);
44093 SWIG_addvarlink(SWIG_globals(),(char*)"RadioButtonNameStr",RadioButtonNameStr_get, RadioButtonNameStr_set);
44094 SWIG_addvarlink(SWIG_globals(),(char*)"SliderNameStr",SliderNameStr_get, SliderNameStr_set);
44095 SWIG_Python_SetConstant(d, "SL_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSL_HORIZONTAL)));
44096 SWIG_Python_SetConstant(d, "SL_VERTICAL",SWIG_From_int(static_cast< int >(wxSL_VERTICAL)));
44097 SWIG_Python_SetConstant(d, "SL_TICKS",SWIG_From_int(static_cast< int >(wxSL_TICKS)));
44098 SWIG_Python_SetConstant(d, "SL_AUTOTICKS",SWIG_From_int(static_cast< int >(wxSL_AUTOTICKS)));
44099 SWIG_Python_SetConstant(d, "SL_LABELS",SWIG_From_int(static_cast< int >(wxSL_LABELS)));
44100 SWIG_Python_SetConstant(d, "SL_LEFT",SWIG_From_int(static_cast< int >(wxSL_LEFT)));
44101 SWIG_Python_SetConstant(d, "SL_TOP",SWIG_From_int(static_cast< int >(wxSL_TOP)));
44102 SWIG_Python_SetConstant(d, "SL_RIGHT",SWIG_From_int(static_cast< int >(wxSL_RIGHT)));
44103 SWIG_Python_SetConstant(d, "SL_BOTTOM",SWIG_From_int(static_cast< int >(wxSL_BOTTOM)));
44104 SWIG_Python_SetConstant(d, "SL_BOTH",SWIG_From_int(static_cast< int >(wxSL_BOTH)));
44105 SWIG_Python_SetConstant(d, "SL_SELRANGE",SWIG_From_int(static_cast< int >(wxSL_SELRANGE)));
44106 SWIG_Python_SetConstant(d, "SL_INVERSE",SWIG_From_int(static_cast< int >(wxSL_INVERSE)));
44107 SWIG_addvarlink(SWIG_globals(),(char*)"ToggleButtonNameStr",ToggleButtonNameStr_get, ToggleButtonNameStr_set);
44108 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
44109 SWIG_addvarlink(SWIG_globals(),(char*)"NotebookNameStr",NotebookNameStr_get, NotebookNameStr_set);
44110 SWIG_Python_SetConstant(d, "BK_DEFAULT",SWIG_From_int(static_cast< int >(wxBK_DEFAULT)));
44111 SWIG_Python_SetConstant(d, "BK_TOP",SWIG_From_int(static_cast< int >(wxBK_TOP)));
44112 SWIG_Python_SetConstant(d, "BK_BOTTOM",SWIG_From_int(static_cast< int >(wxBK_BOTTOM)));
44113 SWIG_Python_SetConstant(d, "BK_LEFT",SWIG_From_int(static_cast< int >(wxBK_LEFT)));
44114 SWIG_Python_SetConstant(d, "BK_RIGHT",SWIG_From_int(static_cast< int >(wxBK_RIGHT)));
44115 SWIG_Python_SetConstant(d, "BK_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBK_ALIGN_MASK)));
e9d6f3a4 44116 SWIG_Python_SetConstant(d, "BK_BUTTONBAR",SWIG_From_int(static_cast< int >(wxBK_BUTTONBAR)));
0085ce49
RD
44117 SWIG_Python_SetConstant(d, "NB_FIXEDWIDTH",SWIG_From_int(static_cast< int >(wxNB_FIXEDWIDTH)));
44118 SWIG_Python_SetConstant(d, "NB_TOP",SWIG_From_int(static_cast< int >(wxNB_TOP)));
44119 SWIG_Python_SetConstant(d, "NB_LEFT",SWIG_From_int(static_cast< int >(wxNB_LEFT)));
44120 SWIG_Python_SetConstant(d, "NB_RIGHT",SWIG_From_int(static_cast< int >(wxNB_RIGHT)));
44121 SWIG_Python_SetConstant(d, "NB_BOTTOM",SWIG_From_int(static_cast< int >(wxNB_BOTTOM)));
44122 SWIG_Python_SetConstant(d, "NB_MULTILINE",SWIG_From_int(static_cast< int >(wxNB_MULTILINE)));
44123 SWIG_Python_SetConstant(d, "NB_NOPAGETHEME",SWIG_From_int(static_cast< int >(wxNB_NOPAGETHEME)));
44124 SWIG_Python_SetConstant(d, "NB_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_NOWHERE)));
44125 SWIG_Python_SetConstant(d, "NB_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONICON)));
44126 SWIG_Python_SetConstant(d, "NB_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONLABEL)));
44127 SWIG_Python_SetConstant(d, "NB_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONITEM)));
44128 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
44129 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
44130 SWIG_Python_SetConstant(d, "LB_DEFAULT",SWIG_From_int(static_cast< int >(wxLB_DEFAULT)));
44131 SWIG_Python_SetConstant(d, "LB_TOP",SWIG_From_int(static_cast< int >(wxLB_TOP)));
44132 SWIG_Python_SetConstant(d, "LB_BOTTOM",SWIG_From_int(static_cast< int >(wxLB_BOTTOM)));
44133 SWIG_Python_SetConstant(d, "LB_LEFT",SWIG_From_int(static_cast< int >(wxLB_LEFT)));
44134 SWIG_Python_SetConstant(d, "LB_RIGHT",SWIG_From_int(static_cast< int >(wxLB_RIGHT)));
44135 SWIG_Python_SetConstant(d, "LB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxLB_ALIGN_MASK)));
44136 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
44137 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
44138 SWIG_Python_SetConstant(d, "CHB_DEFAULT",SWIG_From_int(static_cast< int >(wxCHB_DEFAULT)));
44139 SWIG_Python_SetConstant(d, "CHB_TOP",SWIG_From_int(static_cast< int >(wxCHB_TOP)));
44140 SWIG_Python_SetConstant(d, "CHB_BOTTOM",SWIG_From_int(static_cast< int >(wxCHB_BOTTOM)));
44141 SWIG_Python_SetConstant(d, "CHB_LEFT",SWIG_From_int(static_cast< int >(wxCHB_LEFT)));
44142 SWIG_Python_SetConstant(d, "CHB_RIGHT",SWIG_From_int(static_cast< int >(wxCHB_RIGHT)));
44143 SWIG_Python_SetConstant(d, "CHB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxCHB_ALIGN_MASK)));
44144 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED));
44145 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING));
44146 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED));
44147 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING));
44148 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED));
44149 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED));
44150 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED));
44151 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING));
44152 SWIG_Python_SetConstant(d, "TOOL_STYLE_BUTTON",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_BUTTON)));
44153 SWIG_Python_SetConstant(d, "TOOL_STYLE_SEPARATOR",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_SEPARATOR)));
44154 SWIG_Python_SetConstant(d, "TOOL_STYLE_CONTROL",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_CONTROL)));
44155 SWIG_Python_SetConstant(d, "TB_HORIZONTAL",SWIG_From_int(static_cast< int >(wxTB_HORIZONTAL)));
44156 SWIG_Python_SetConstant(d, "TB_VERTICAL",SWIG_From_int(static_cast< int >(wxTB_VERTICAL)));
44157 SWIG_Python_SetConstant(d, "TB_3DBUTTONS",SWIG_From_int(static_cast< int >(wxTB_3DBUTTONS)));
44158 SWIG_Python_SetConstant(d, "TB_FLAT",SWIG_From_int(static_cast< int >(wxTB_FLAT)));
44159 SWIG_Python_SetConstant(d, "TB_DOCKABLE",SWIG_From_int(static_cast< int >(wxTB_DOCKABLE)));
44160 SWIG_Python_SetConstant(d, "TB_NOICONS",SWIG_From_int(static_cast< int >(wxTB_NOICONS)));
44161 SWIG_Python_SetConstant(d, "TB_TEXT",SWIG_From_int(static_cast< int >(wxTB_TEXT)));
44162 SWIG_Python_SetConstant(d, "TB_NODIVIDER",SWIG_From_int(static_cast< int >(wxTB_NODIVIDER)));
44163 SWIG_Python_SetConstant(d, "TB_NOALIGN",SWIG_From_int(static_cast< int >(wxTB_NOALIGN)));
44164 SWIG_Python_SetConstant(d, "TB_HORZ_LAYOUT",SWIG_From_int(static_cast< int >(wxTB_HORZ_LAYOUT)));
44165 SWIG_Python_SetConstant(d, "TB_HORZ_TEXT",SWIG_From_int(static_cast< int >(wxTB_HORZ_TEXT)));
44166 SWIG_addvarlink(SWIG_globals(),(char*)"ListCtrlNameStr",ListCtrlNameStr_get, ListCtrlNameStr_set);
44167 SWIG_Python_SetConstant(d, "LC_VRULES",SWIG_From_int(static_cast< int >(wxLC_VRULES)));
44168 SWIG_Python_SetConstant(d, "LC_HRULES",SWIG_From_int(static_cast< int >(wxLC_HRULES)));
44169 SWIG_Python_SetConstant(d, "LC_ICON",SWIG_From_int(static_cast< int >(wxLC_ICON)));
44170 SWIG_Python_SetConstant(d, "LC_SMALL_ICON",SWIG_From_int(static_cast< int >(wxLC_SMALL_ICON)));
44171 SWIG_Python_SetConstant(d, "LC_LIST",SWIG_From_int(static_cast< int >(wxLC_LIST)));
44172 SWIG_Python_SetConstant(d, "LC_REPORT",SWIG_From_int(static_cast< int >(wxLC_REPORT)));
44173 SWIG_Python_SetConstant(d, "LC_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLC_ALIGN_TOP)));
44174 SWIG_Python_SetConstant(d, "LC_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLC_ALIGN_LEFT)));
44175 SWIG_Python_SetConstant(d, "LC_AUTOARRANGE",SWIG_From_int(static_cast< int >(wxLC_AUTOARRANGE)));
44176 SWIG_Python_SetConstant(d, "LC_VIRTUAL",SWIG_From_int(static_cast< int >(wxLC_VIRTUAL)));
44177 SWIG_Python_SetConstant(d, "LC_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxLC_EDIT_LABELS)));
44178 SWIG_Python_SetConstant(d, "LC_NO_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_HEADER)));
44179 SWIG_Python_SetConstant(d, "LC_NO_SORT_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_SORT_HEADER)));
44180 SWIG_Python_SetConstant(d, "LC_SINGLE_SEL",SWIG_From_int(static_cast< int >(wxLC_SINGLE_SEL)));
44181 SWIG_Python_SetConstant(d, "LC_SORT_ASCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_ASCENDING)));
44182 SWIG_Python_SetConstant(d, "LC_SORT_DESCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_DESCENDING)));
44183 SWIG_Python_SetConstant(d, "LC_MASK_TYPE",SWIG_From_int(static_cast< int >(wxLC_MASK_TYPE)));
44184 SWIG_Python_SetConstant(d, "LC_MASK_ALIGN",SWIG_From_int(static_cast< int >(wxLC_MASK_ALIGN)));
44185 SWIG_Python_SetConstant(d, "LC_MASK_SORT",SWIG_From_int(static_cast< int >(wxLC_MASK_SORT)));
44186 SWIG_Python_SetConstant(d, "LIST_MASK_STATE",SWIG_From_int(static_cast< int >(wxLIST_MASK_STATE)));
44187 SWIG_Python_SetConstant(d, "LIST_MASK_TEXT",SWIG_From_int(static_cast< int >(wxLIST_MASK_TEXT)));
44188 SWIG_Python_SetConstant(d, "LIST_MASK_IMAGE",SWIG_From_int(static_cast< int >(wxLIST_MASK_IMAGE)));
44189 SWIG_Python_SetConstant(d, "LIST_MASK_DATA",SWIG_From_int(static_cast< int >(wxLIST_MASK_DATA)));
44190 SWIG_Python_SetConstant(d, "LIST_SET_ITEM",SWIG_From_int(static_cast< int >(wxLIST_SET_ITEM)));
44191 SWIG_Python_SetConstant(d, "LIST_MASK_WIDTH",SWIG_From_int(static_cast< int >(wxLIST_MASK_WIDTH)));
44192 SWIG_Python_SetConstant(d, "LIST_MASK_FORMAT",SWIG_From_int(static_cast< int >(wxLIST_MASK_FORMAT)));
44193 SWIG_Python_SetConstant(d, "LIST_STATE_DONTCARE",SWIG_From_int(static_cast< int >(wxLIST_STATE_DONTCARE)));
44194 SWIG_Python_SetConstant(d, "LIST_STATE_DROPHILITED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DROPHILITED)));
44195 SWIG_Python_SetConstant(d, "LIST_STATE_FOCUSED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FOCUSED)));
44196 SWIG_Python_SetConstant(d, "LIST_STATE_SELECTED",SWIG_From_int(static_cast< int >(wxLIST_STATE_SELECTED)));
44197 SWIG_Python_SetConstant(d, "LIST_STATE_CUT",SWIG_From_int(static_cast< int >(wxLIST_STATE_CUT)));
44198 SWIG_Python_SetConstant(d, "LIST_STATE_DISABLED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DISABLED)));
44199 SWIG_Python_SetConstant(d, "LIST_STATE_FILTERED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FILTERED)));
44200 SWIG_Python_SetConstant(d, "LIST_STATE_INUSE",SWIG_From_int(static_cast< int >(wxLIST_STATE_INUSE)));
44201 SWIG_Python_SetConstant(d, "LIST_STATE_PICKED",SWIG_From_int(static_cast< int >(wxLIST_STATE_PICKED)));
44202 SWIG_Python_SetConstant(d, "LIST_STATE_SOURCE",SWIG_From_int(static_cast< int >(wxLIST_STATE_SOURCE)));
44203 SWIG_Python_SetConstant(d, "LIST_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ABOVE)));
44204 SWIG_Python_SetConstant(d, "LIST_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_BELOW)));
44205 SWIG_Python_SetConstant(d, "LIST_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_NOWHERE)));
44206 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMICON)));
44207 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMLABEL)));
44208 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMRIGHT)));
44209 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMSTATEICON)));
44210 SWIG_Python_SetConstant(d, "LIST_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TOLEFT)));
44211 SWIG_Python_SetConstant(d, "LIST_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TORIGHT)));
44212 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEM)));
44213 SWIG_Python_SetConstant(d, "LIST_NEXT_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ABOVE)));
44214 SWIG_Python_SetConstant(d, "LIST_NEXT_ALL",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ALL)));
44215 SWIG_Python_SetConstant(d, "LIST_NEXT_BELOW",SWIG_From_int(static_cast< int >(wxLIST_NEXT_BELOW)));
44216 SWIG_Python_SetConstant(d, "LIST_NEXT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_LEFT)));
44217 SWIG_Python_SetConstant(d, "LIST_NEXT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_RIGHT)));
44218 SWIG_Python_SetConstant(d, "LIST_ALIGN_DEFAULT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_DEFAULT)));
44219 SWIG_Python_SetConstant(d, "LIST_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_LEFT)));
44220 SWIG_Python_SetConstant(d, "LIST_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_TOP)));
44221 SWIG_Python_SetConstant(d, "LIST_ALIGN_SNAP_TO_GRID",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_SNAP_TO_GRID)));
44222 SWIG_Python_SetConstant(d, "LIST_FORMAT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_LEFT)));
44223 SWIG_Python_SetConstant(d, "LIST_FORMAT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_RIGHT)));
44224 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTRE",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTRE)));
44225 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTER",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTER)));
44226 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE)));
44227 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE_USEHEADER",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE_USEHEADER)));
44228 SWIG_Python_SetConstant(d, "LIST_RECT_BOUNDS",SWIG_From_int(static_cast< int >(wxLIST_RECT_BOUNDS)));
44229 SWIG_Python_SetConstant(d, "LIST_RECT_ICON",SWIG_From_int(static_cast< int >(wxLIST_RECT_ICON)));
44230 SWIG_Python_SetConstant(d, "LIST_RECT_LABEL",SWIG_From_int(static_cast< int >(wxLIST_RECT_LABEL)));
44231 SWIG_Python_SetConstant(d, "LIST_FIND_UP",SWIG_From_int(static_cast< int >(wxLIST_FIND_UP)));
44232 SWIG_Python_SetConstant(d, "LIST_FIND_DOWN",SWIG_From_int(static_cast< int >(wxLIST_FIND_DOWN)));
44233 SWIG_Python_SetConstant(d, "LIST_FIND_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FIND_LEFT)));
44234 SWIG_Python_SetConstant(d, "LIST_FIND_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FIND_RIGHT)));
44235 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
44236 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
44237 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
44238 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
44239 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
44240 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
44241 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
44242 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
44243 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
44244 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
44245 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
44246 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
44247 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
44248 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
44249 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
44250 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
44251 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
44252 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
44253 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
44254 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
44255
44256 // Map renamed classes back to their common name for OOR
44257 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
44258
44259 SWIG_addvarlink(SWIG_globals(),(char*)"TreeCtrlNameStr",TreeCtrlNameStr_get, TreeCtrlNameStr_set);
44260 SWIG_Python_SetConstant(d, "TR_NO_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_NO_BUTTONS)));
44261 SWIG_Python_SetConstant(d, "TR_HAS_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_HAS_BUTTONS)));
44262 SWIG_Python_SetConstant(d, "TR_NO_LINES",SWIG_From_int(static_cast< int >(wxTR_NO_LINES)));
44263 SWIG_Python_SetConstant(d, "TR_LINES_AT_ROOT",SWIG_From_int(static_cast< int >(wxTR_LINES_AT_ROOT)));
44264 SWIG_Python_SetConstant(d, "TR_SINGLE",SWIG_From_int(static_cast< int >(wxTR_SINGLE)));
44265 SWIG_Python_SetConstant(d, "TR_MULTIPLE",SWIG_From_int(static_cast< int >(wxTR_MULTIPLE)));
44266 SWIG_Python_SetConstant(d, "TR_EXTENDED",SWIG_From_int(static_cast< int >(wxTR_EXTENDED)));
44267 SWIG_Python_SetConstant(d, "TR_HAS_VARIABLE_ROW_HEIGHT",SWIG_From_int(static_cast< int >(wxTR_HAS_VARIABLE_ROW_HEIGHT)));
44268 SWIG_Python_SetConstant(d, "TR_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxTR_EDIT_LABELS)));
44269 SWIG_Python_SetConstant(d, "TR_HIDE_ROOT",SWIG_From_int(static_cast< int >(wxTR_HIDE_ROOT)));
44270 SWIG_Python_SetConstant(d, "TR_ROW_LINES",SWIG_From_int(static_cast< int >(wxTR_ROW_LINES)));
44271 SWIG_Python_SetConstant(d, "TR_FULL_ROW_HIGHLIGHT",SWIG_From_int(static_cast< int >(wxTR_FULL_ROW_HIGHLIGHT)));
44272 SWIG_Python_SetConstant(d, "TR_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxTR_DEFAULT_STYLE)));
44273 SWIG_Python_SetConstant(d, "TR_TWIST_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_TWIST_BUTTONS)));
0085ce49
RD
44274 SWIG_Python_SetConstant(d, "TreeItemIcon_Normal",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Normal)));
44275 SWIG_Python_SetConstant(d, "TreeItemIcon_Selected",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Selected)));
44276 SWIG_Python_SetConstant(d, "TreeItemIcon_Expanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Expanded)));
44277 SWIG_Python_SetConstant(d, "TreeItemIcon_SelectedExpanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_SelectedExpanded)));
44278 SWIG_Python_SetConstant(d, "TreeItemIcon_Max",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Max)));
44279 SWIG_Python_SetConstant(d, "TREE_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ABOVE)));
44280 SWIG_Python_SetConstant(d, "TREE_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_BELOW)));
44281 SWIG_Python_SetConstant(d, "TREE_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_NOWHERE)));
44282 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMBUTTON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMBUTTON)));
44283 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMICON)));
44284 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMINDENT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMINDENT)));
44285 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLABEL)));
44286 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMRIGHT)));
44287 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMSTATEICON)));
44288 SWIG_Python_SetConstant(d, "TREE_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TOLEFT)));
44289 SWIG_Python_SetConstant(d, "TREE_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TORIGHT)));
44290 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMUPPERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMUPPERPART)));
44291 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLOWERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLOWERPART)));
44292 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEM)));
44293 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
44294 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
44295 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
44296 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
44297 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
44298 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
44299 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
44300 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
44301 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
44302 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
44303 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
44304 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
44305 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
44306 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
44307 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
44308 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
44309 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
44310 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
44311 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
44312 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
44313 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU));
44314
44315 // Map renamed classes back to their common name for OOR
44316 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
44317 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
44318
44319 SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogDefaultFolderStr",DirDialogDefaultFolderStr_get, DirDialogDefaultFolderStr_set);
44320 SWIG_Python_SetConstant(d, "DIRCTRL_DIR_ONLY",SWIG_From_int(static_cast< int >(wxDIRCTRL_DIR_ONLY)));
44321 SWIG_Python_SetConstant(d, "DIRCTRL_SELECT_FIRST",SWIG_From_int(static_cast< int >(wxDIRCTRL_SELECT_FIRST)));
44322 SWIG_Python_SetConstant(d, "DIRCTRL_SHOW_FILTERS",SWIG_From_int(static_cast< int >(wxDIRCTRL_SHOW_FILTERS)));
44323 SWIG_Python_SetConstant(d, "DIRCTRL_3D_INTERNAL",SWIG_From_int(static_cast< int >(wxDIRCTRL_3D_INTERNAL)));
44324 SWIG_Python_SetConstant(d, "DIRCTRL_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxDIRCTRL_EDIT_LABELS)));
44325 SWIG_Python_SetConstant(d, "FRAME_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxFRAME_EX_CONTEXTHELP)));
44326 SWIG_Python_SetConstant(d, "DIALOG_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxDIALOG_EX_CONTEXTHELP)));
44327 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
44328 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
44329
44330 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
44331
44332 SWIG_addvarlink(SWIG_globals(),(char*)"DatePickerCtrlNameStr",DatePickerCtrlNameStr_get, DatePickerCtrlNameStr_set);
44333 SWIG_Python_SetConstant(d, "DP_DEFAULT",SWIG_From_int(static_cast< int >(wxDP_DEFAULT)));
44334 SWIG_Python_SetConstant(d, "DP_SPIN",SWIG_From_int(static_cast< int >(wxDP_SPIN)));
44335 SWIG_Python_SetConstant(d, "DP_DROPDOWN",SWIG_From_int(static_cast< int >(wxDP_DROPDOWN)));
44336 SWIG_Python_SetConstant(d, "DP_SHOWCENTURY",SWIG_From_int(static_cast< int >(wxDP_SHOWCENTURY)));
44337 SWIG_Python_SetConstant(d, "DP_ALLOWNONE",SWIG_From_int(static_cast< int >(wxDP_ALLOWNONE)));
d14a1e28
RD
44338}
44339