]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/gtk/_controls_wrap.cpp
reSWIGged
[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
d1a49b78
RD
988#if PY_VERSION_HEX < 0x02050000
989typedef int Py_ssize_t;
990#endif
991
0085ce49
RD
992/* for raw pointers */
993#define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997#define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998#define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999#define swig_owntype int
994141e6 1000
0085ce49
RD
1001/* for raw packed data */
1002#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
994141e6 1004
0085ce49
RD
1005/* for class or struct pointers */
1006#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
d14a1e28 1008
0085ce49
RD
1009/* for C or C++ function pointers */
1010#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
4d5c3d91 1012
0085ce49
RD
1013/* for C++ member pointers, ie, member methods */
1014#define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015#define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
32fe5131 1016
4d5c3d91 1017
0085ce49 1018/* Runtime API */
15afbcd0 1019
0085ce49
RD
1020#define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021#define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022#define SWIG_NewClientData(obj) PySwigClientData_New(obj)
32fe5131 1023
0085ce49
RD
1024#define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025#define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026#define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027#define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028#define SWIG_fail goto fail
32fe5131 1029
15afbcd0 1030
0085ce49 1031/* Runtime API implementation */
093d3ff1 1032
0085ce49 1033/* Error manipulation */
093d3ff1 1034
0085ce49
RD
1035SWIGINTERN void
1036SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
15afbcd0
RD
1041}
1042
0085ce49
RD
1043SWIGINTERN void
1044SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
093d3ff1 1048}
15afbcd0 1049
0085ce49 1050#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
32fe5131 1051
0085ce49 1052/* Set a constant value */
093d3ff1 1053
0085ce49
RD
1054SWIGINTERN void
1055SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
15afbcd0
RD
1058}
1059
0085ce49 1060/* Append a value to the result obj */
15afbcd0 1061
0085ce49
RD
1062SWIGINTERN PyObject*
1063SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064#if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080#else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
c32bde28 1088 } else {
0085ce49
RD
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
c32bde28 1100 }
0085ce49
RD
1101 return result;
1102#endif
994141e6 1103}
093d3ff1 1104
0085ce49 1105/* Unpack the argument tuple */
093d3ff1 1106
0085ce49
RD
1107SWIGINTERN int
1108SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109{
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143}
1144
1145/* A functor is a function object with one single object argument */
1146#if PY_VERSION_HEX >= 0x02020000
1147#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148#else
1149#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150#endif
1151
1152/*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155*/
1156#ifdef __cplusplus
1157#define SWIG_STATIC_POINTER(var) var
1158#else
1159#define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160#endif
1161
1162/* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166/* Flags for new pointer objects */
1167#define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168#define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170#define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172#ifdef __cplusplus
1173extern "C" {
1174#if 0
1175} /* cc-mode */
1176#endif
1177#endif
1178
1179/* How to access Py_None */
1180#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181# ifndef SWIG_PYTHON_NO_BUILD_NONE
1182# ifndef SWIG_PYTHON_BUILD_NONE
1183# define SWIG_PYTHON_BUILD_NONE
1184# endif
1185# endif
1186#endif
1187
1188#ifdef SWIG_PYTHON_BUILD_NONE
1189# ifdef Py_None
1190# undef Py_None
1191# define Py_None SWIG_Py_None()
1192# endif
1193SWIGRUNTIMEINLINE PyObject *
1194_SWIG_Py_None(void)
1195{
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199}
1200SWIGRUNTIME PyObject *
1201SWIG_Py_None(void)
1202{
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205}
1206#endif
1207
1208/* The python void return value */
1209
1210SWIGRUNTIMEINLINE PyObject *
1211SWIG_Py_Void(void)
1212{
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216}
1217
1218/* PySwigClientData */
1219
1220typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227} PySwigClientData;
1228
1229SWIGRUNTIMEINLINE int
1230SWIG_Python_CheckImplicit(swig_type_info *ty)
1231{
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234}
1235
1236SWIGRUNTIMEINLINE PyObject *
1237SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241}
1242
1243
1244SWIGRUNTIME PySwigClientData *
1245PySwigClientData_New(PyObject* obj)
1246{
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260#if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262#else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264#endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284#ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286#else
1287 data->delargs = 0;
1288#endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295}
1296
1297SWIGRUNTIME void
1298PySwigClientData_Del(PySwigClientData* data)
1299{
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303}
1304
1305/* =============== PySwigObject =====================*/
1306
1307typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313} PySwigObject;
1314
1315SWIGRUNTIME PyObject *
1316PySwigObject_long(PySwigObject *v)
1317{
1318 return PyLong_FromVoidPtr(v->ptr);
1319}
1320
1321SWIGRUNTIME PyObject *
1322PySwigObject_format(const char* fmt, PySwigObject *v)
1323{
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337}
1338
1339SWIGRUNTIME PyObject *
1340PySwigObject_oct(PySwigObject *v)
1341{
1342 return PySwigObject_format("%o",v);
1343}
1344
1345SWIGRUNTIME PyObject *
1346PySwigObject_hex(PySwigObject *v)
1347{
1348 return PySwigObject_format("%x",v);
1349}
1350
1351SWIGRUNTIME PyObject *
1352#ifdef METH_NOARGS
1353PySwigObject_repr(PySwigObject *v)
1354#else
1355PySwigObject_repr(PySwigObject *v, PyObject *args)
1356#endif
1357{
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363#ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365#else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367#endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371}
1372
1373SWIGRUNTIME int
1374PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375{
1376#ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378#else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380#endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388}
1389
1390SWIGRUNTIME PyObject *
1391PySwigObject_str(PySwigObject *v)
1392{
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396}
1397
1398SWIGRUNTIME int
1399PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400{
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404}
1405
1406SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408SWIGRUNTIME PyTypeObject*
1409PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412}
1413
1414SWIGRUNTIMEINLINE int
1415PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418}
1419
1420SWIGRUNTIME PyObject *
1421PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423SWIGRUNTIME void
1424PySwigObject_dealloc(PyObject *v)
1425{
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448#if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450#endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455}
1456
1457SWIGRUNTIME PyObject*
1458PySwigObject_append(PyObject* v, PyObject* next)
1459{
1460 PySwigObject *sobj = (PySwigObject *) v;
1461#ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465#endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472}
1473
1474SWIGRUNTIME PyObject*
1475#ifdef METH_NOARGS
1476PySwigObject_next(PyObject* v)
1477#else
1478PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479#endif
1480{
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488}
1489
1490SWIGINTERN PyObject*
1491#ifdef METH_NOARGS
1492PySwigObject_disown(PyObject *v)
1493#else
1494PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495#endif
1496{
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500}
1501
1502SWIGINTERN PyObject*
1503#ifdef METH_NOARGS
1504PySwigObject_acquire(PyObject *v)
1505#else
1506PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507#endif
1508{
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512}
1513
1514SWIGINTERN PyObject*
1515PySwigObject_own(PyObject *v, PyObject *args)
1516{
1517 PyObject *val = 0;
1518#if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520#else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522#endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531#ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537#else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543#endif
1544 }
1545 return obj;
1546 }
1547}
1548
1549#ifdef METH_O
1550static PyMethodDef
1551swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559};
1560#else
1561static PyMethodDef
1562swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570};
1571#endif
1572
1573#if PY_VERSION_HEX < 0x02020000
1574SWIGINTERN PyObject *
1575PySwigObject_getattr(PySwigObject *sobj,char *name)
1576{
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578}
1579#endif
1580
1581SWIGRUNTIME PyTypeObject*
1582_PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
093d3ff1
RD
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
32fe5131 1609#if PY_VERSION_HEX >= 0x02020000
093d3ff1 1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
32fe5131
RD
1611#elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
093d3ff1
RD
1613#endif
1614 };
1615
0085ce49 1616 static PyTypeObject pyswigobject_type;
32fe5131 1617 static int type_init = 0;
093d3ff1 1618 if (!type_init) {
0085ce49
RD
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628#if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630#else
1631 (getattrfunc)0, /* tp_getattr */
093d3ff1 1632#endif
0085ce49
RD
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
093d3ff1 1651#if PY_VERSION_HEX >= 0x02020000
0085ce49
RD
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
15afbcd0 1672#endif
093d3ff1 1673#if PY_VERSION_HEX >= 0x02030000
0085ce49 1674 0, /* tp_del */
093d3ff1
RD
1675#endif
1676#ifdef COUNT_ALLOCS
0085ce49 1677 0,0,0,0 /* tp_alloc -> tp_next */
093d3ff1 1678#endif
0085ce49 1679 };
32fe5131 1680 pyswigobject_type = tmp;
0085ce49 1681 pyswigobject_type.ob_type = &PyType_Type;
093d3ff1
RD
1682 type_init = 1;
1683 }
32fe5131 1684 return &pyswigobject_type;
093d3ff1
RD
1685}
1686
1687SWIGRUNTIME PyObject *
0085ce49 1688PySwigObject_New(void *ptr, swig_type_info *ty, int own)
093d3ff1 1689{
0085ce49
RD
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
32fe5131 1696 }
0085ce49 1697 return (PyObject *)sobj;
093d3ff1
RD
1698}
1699
1700/* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704typedef struct {
1705 PyObject_HEAD
1706 void *pack;
0085ce49 1707 swig_type_info *ty;
093d3ff1
RD
1708 size_t size;
1709} PySwigPacked;
1710
1711SWIGRUNTIME int
0085ce49 1712PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
093d3ff1
RD
1713{
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
1719 }
0085ce49 1720 fputs(v->ty->name,fp);
093d3ff1
RD
1721 fputs(">", fp);
1722 return 0;
1723}
1724
1725SWIGRUNTIME PyObject *
1726PySwigPacked_repr(PySwigPacked *v)
1727{
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
0085ce49 1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
093d3ff1 1731 } else {
0085ce49 1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
093d3ff1
RD
1733 }
1734}
1735
1736SWIGRUNTIME PyObject *
1737PySwigPacked_str(PySwigPacked *v)
1738{
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
0085ce49 1741 return PyString_FromFormat("%s%s", result, v->ty->name);
093d3ff1 1742 } else {
0085ce49 1743 return PyString_FromString(v->ty->name);
093d3ff1
RD
1744 }
1745}
1746
1747SWIGRUNTIME int
1748PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1749{
0085ce49
RD
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
093d3ff1
RD
1754}
1755
0085ce49 1756SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
093d3ff1
RD
1757
1758SWIGRUNTIME PyTypeObject*
32fe5131 1759PySwigPacked_type(void) {
0085ce49
RD
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762}
1763
1764SWIGRUNTIMEINLINE int
1765PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768}
1769
1770SWIGRUNTIME void
1771PySwigPacked_dealloc(PyObject *v)
1772{
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778}
1779
1780SWIGRUNTIME PyTypeObject*
1781_PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814#if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
093d3ff1
RD
1835#endif
1836#if PY_VERSION_HEX >= 0x02030000
0085ce49 1837 0, /* tp_del */
093d3ff1
RD
1838#endif
1839#ifdef COUNT_ALLOCS
0085ce49 1840 0,0,0,0 /* tp_alloc -> tp_next */
093d3ff1 1841#endif
0085ce49 1842 };
32fe5131 1843 pyswigpacked_type = tmp;
0085ce49 1844 pyswigpacked_type.ob_type = &PyType_Type;
093d3ff1
RD
1845 type_init = 1;
1846 }
32fe5131 1847 return &pyswigpacked_type;
093d3ff1
RD
1848}
1849
1850SWIGRUNTIME PyObject *
0085ce49 1851PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
093d3ff1 1852{
0085ce49
RD
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
093d3ff1 1855 void *pack = malloc(size);
32fe5131
RD
1856 if (pack) {
1857 memcpy(pack, ptr, size);
0085ce49
RD
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
32fe5131 1864 }
093d3ff1 1865 }
0085ce49 1866 return (PyObject *) sobj;
093d3ff1
RD
1867}
1868
0085ce49 1869SWIGRUNTIME swig_type_info *
093d3ff1
RD
1870PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871{
0085ce49
RD
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
093d3ff1
RD
1880}
1881
093d3ff1 1882/* -----------------------------------------------------------------------------
0085ce49 1883 * pointers/data manipulation
093d3ff1
RD
1884 * ----------------------------------------------------------------------------- */
1885
0085ce49
RD
1886SWIGRUNTIMEINLINE PyObject *
1887_SWIG_This(void)
1888{
1889 return PyString_FromString("this");
1890}
093d3ff1 1891
0085ce49
RD
1892SWIGRUNTIME PyObject *
1893SWIG_This(void)
1894{
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897}
093d3ff1 1898
0085ce49 1899/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
093d3ff1 1900
0085ce49
RD
1901SWIGRUNTIME PySwigObject *
1902SWIG_Python_GetSwigThis(PyObject *pyobj)
093d3ff1 1903{
0085ce49
RD
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917#ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922#endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
093d3ff1 1926 } else {
0085ce49
RD
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
093d3ff1 1929 }
093d3ff1 1930 }
0085ce49
RD
1931 }
1932#else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940#endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
093d3ff1
RD
1947 }
1948}
1949
0085ce49
RD
1950/* Acquire a pointer value */
1951
1952SWIGRUNTIME int
1953SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
093d3ff1 1961 }
0085ce49 1962 return 0;
093d3ff1
RD
1963}
1964
0085ce49
RD
1965/* Convert a pointer value */
1966
093d3ff1 1967SWIGRUNTIME int
0085ce49
RD
1968SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
093d3ff1 1992 } else {
0085ce49
RD
1993 if (ptr) *ptr = vptr;
1994 break;
093d3ff1 1995 }
093d3ff1 1996 }
0085ce49
RD
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
093d3ff1
RD
2042 }
2043}
2044
0085ce49
RD
2045/* Convert a function ptr value */
2046
093d3ff1 2047SWIGRUNTIME int
0085ce49
RD
2048SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
093d3ff1 2051 } else {
0085ce49
RD
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
d1a49b78 2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
0085ce49
RD
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
093d3ff1
RD
2069 }
2070}
2071
0085ce49 2072/* Convert a packed value value */
093d3ff1 2073
093d3ff1 2074SWIGRUNTIME int
0085ce49
RD
2075SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
093d3ff1 2084 }
0085ce49
RD
2085 return SWIG_OK;
2086}
093d3ff1 2087
0085ce49
RD
2088/* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
093d3ff1 2091
0085ce49
RD
2092/*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095*/
093d3ff1 2096
0085ce49
RD
2097SWIGRUNTIME PyObject*
2098SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099{
2100#if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
093d3ff1 2115 }
0085ce49
RD
2116#else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119#endif
093d3ff1 2120 }
0085ce49
RD
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
093d3ff1 2126 }
0085ce49
RD
2127 return inst;
2128#else
2129#if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136#else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
093d3ff1 2140 }
0085ce49
RD
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
093d3ff1 2147 }
0085ce49
RD
2148#ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150#endif
2151#ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153#endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156#endif
2157#endif
093d3ff1
RD
2158}
2159
0085ce49
RD
2160SWIGRUNTIME void
2161SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162{
2163 PyObject *dict;
2164#if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
093d3ff1 2175#endif
0085ce49
RD
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179}
093d3ff1 2180
0085ce49
RD
2181
2182SWIGINTERN PyObject *
2183SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
093d3ff1 2191 } else {
0085ce49 2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
093d3ff1 2193 }
0085ce49 2194 return SWIG_Py_Void();
093d3ff1 2195 }
0085ce49
RD
2196}
2197
2198/* Create a new pointer object */
093d3ff1 2199
093d3ff1 2200SWIGRUNTIME PyObject *
0085ce49 2201SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
093d3ff1 2202 if (!ptr) {
0085ce49
RD
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
093d3ff1 2213 }
093d3ff1 2214 }
0085ce49 2215 return robj;
093d3ff1 2216 }
093d3ff1
RD
2217}
2218
0085ce49
RD
2219/* Create a new packed object */
2220
2221SWIGRUNTIMEINLINE PyObject *
093d3ff1 2222SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
0085ce49 2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
093d3ff1
RD
2224}
2225
2226/* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230#ifdef SWIG_LINK_RUNTIME
2231void *SWIG_ReturnGlobalTypeList(void *);
2232#endif
2233
32fe5131
RD
2234SWIGRUNTIME swig_module_info *
2235SWIG_Python_GetModule(void) {
093d3ff1
RD
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239#ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2241#else
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
093d3ff1 2248#endif
32fe5131
RD
2249 }
2250 return (swig_module_info *) type_pointer;
093d3ff1
RD
2251}
2252
32fe5131
RD
2253#if PY_MAJOR_VERSION < 2
2254/* PyModule_AddObject function was introduced in Python 2.0. The following function
0085ce49 2255 is copied out of Python/modsupport.c in python version 2.3.4 */
32fe5131
RD
2256SWIGINTERN int
2257PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258{
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
0085ce49 2263 return SWIG_ERROR;
32fe5131
RD
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
0085ce49 2268 return SWIG_ERROR;
32fe5131
RD
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
0085ce49 2276 return SWIG_ERROR;
32fe5131
RD
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
0085ce49 2279 return SWIG_ERROR;
32fe5131 2280 Py_DECREF(o);
0085ce49 2281 return SWIG_OK;
093d3ff1 2282}
32fe5131 2283#endif
093d3ff1 2284
0085ce49
RD
2285SWIGRUNTIME void
2286SWIG_Python_DestroyModule(void *vptr)
2287{
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299}
2300
32fe5131
RD
2301SWIGRUNTIME void
2302SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
0085ce49 2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
32fe5131
RD
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
0085ce49
RD
2310 } else {
2311 Py_XDECREF(pointer);
32fe5131
RD
2312 }
2313}
093d3ff1 2314
0085ce49
RD
2315/* The python cached type query */
2316SWIGRUNTIME PyObject *
2317SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
093d3ff1 2320}
093d3ff1 2321
0085ce49
RD
2322SWIGRUNTIME swig_type_info *
2323SWIG_Python_TypeQuery(const char *type)
2324{
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342}
2343
2344/*
2345 For backward compatibility only
2346*/
2347#define SWIG_POINTER_EXCEPTION 0
2348#define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349#define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351SWIGRUNTIME int
2352SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353{
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374}
2375
2376SWIGRUNTIME int
2377SWIG_Python_ArgFail(int argnum)
2378{
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387}
2388
2389SWIGRUNTIMEINLINE const char *
2390PySwigObject_GetDesc(PyObject *self)
2391{
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395}
2396
2397SWIGRUNTIME void
2398SWIG_Python_TypeError(const char *type, PyObject *obj)
2399{
2400 if (type) {
2401#if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410#endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431}
2432
2433
2434/* Convert a pointer value, signal an exception on a type mismatch */
2435SWIGRUNTIME void *
2436SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446}
2447
2448
2449#ifdef __cplusplus
2450#if 0
2451{ /* cc-mode */
2452#endif
2453}
2454#endif
2455
2456
2457
2458#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464/* -------- TYPES TABLE (BEGIN) -------- */
2465
2466#define SWIGTYPE_p_bool swig_types[0]
2467#define SWIGTYPE_p_char swig_types[1]
32fe5131
RD
2468#define SWIGTYPE_p_form_ops_t swig_types[2]
2469#define SWIGTYPE_p_int swig_types[3]
2470#define SWIGTYPE_p_long swig_types[4]
2471#define SWIGTYPE_p_unsigned_char swig_types[5]
2472#define SWIGTYPE_p_unsigned_int swig_types[6]
2473#define SWIGTYPE_p_unsigned_long swig_types[7]
2474#define SWIGTYPE_p_void swig_types[8]
2475#define SWIGTYPE_p_wxANIHandler swig_types[9]
2476#define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2477#define SWIGTYPE_p_wxActivateEvent swig_types[11]
2478#define SWIGTYPE_p_wxArrayInt swig_types[12]
2479#define SWIGTYPE_p_wxArrayString swig_types[13]
2480#define SWIGTYPE_p_wxBMPHandler swig_types[14]
2481#define SWIGTYPE_p_wxBitmap swig_types[15]
2482#define SWIGTYPE_p_wxBitmapButton swig_types[16]
2483#define SWIGTYPE_p_wxBookCtrlBase swig_types[17]
2484#define SWIGTYPE_p_wxBookCtrlBaseEvent swig_types[18]
2485#define SWIGTYPE_p_wxBoxSizer swig_types[19]
2486#define SWIGTYPE_p_wxButton swig_types[20]
2487#define SWIGTYPE_p_wxCURHandler swig_types[21]
2488#define SWIGTYPE_p_wxCheckBox swig_types[22]
2489#define SWIGTYPE_p_wxCheckListBox swig_types[23]
2490#define SWIGTYPE_p_wxChildFocusEvent swig_types[24]
2491#define SWIGTYPE_p_wxChoice swig_types[25]
2492#define SWIGTYPE_p_wxChoicebook swig_types[26]
2493#define SWIGTYPE_p_wxChoicebookEvent swig_types[27]
2131d850
RD
2494#define SWIGTYPE_p_wxClipboardTextEvent swig_types[28]
2495#define SWIGTYPE_p_wxCloseEvent swig_types[29]
2496#define SWIGTYPE_p_wxColour swig_types[30]
b850e7f3
RD
2497#define SWIGTYPE_p_wxColourPickerCtrl swig_types[31]
2498#define SWIGTYPE_p_wxColourPickerEvent swig_types[32]
2499#define SWIGTYPE_p_wxComboBox swig_types[33]
2500#define SWIGTYPE_p_wxCommandEvent swig_types[34]
2501#define SWIGTYPE_p_wxContextHelp swig_types[35]
2502#define SWIGTYPE_p_wxContextHelpButton swig_types[36]
2503#define SWIGTYPE_p_wxContextMenuEvent swig_types[37]
2504#define SWIGTYPE_p_wxControl swig_types[38]
2505#define SWIGTYPE_p_wxControlWithItems swig_types[39]
2506#define SWIGTYPE_p_wxCursor swig_types[40]
2507#define SWIGTYPE_p_wxDC swig_types[41]
2508#define SWIGTYPE_p_wxDateEvent swig_types[42]
2509#define SWIGTYPE_p_wxDatePickerCtrl swig_types[43]
2510#define SWIGTYPE_p_wxDateTime swig_types[44]
2511#define SWIGTYPE_p_wxDirFilterListCtrl swig_types[45]
2512#define SWIGTYPE_p_wxDirPickerCtrl swig_types[46]
2513#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[47]
2514#define SWIGTYPE_p_wxDropFilesEvent swig_types[48]
2515#define SWIGTYPE_p_wxDuplexMode swig_types[49]
2516#define SWIGTYPE_p_wxEraseEvent swig_types[50]
2517#define SWIGTYPE_p_wxEvent swig_types[51]
2518#define SWIGTYPE_p_wxEvtHandler swig_types[52]
2519#define SWIGTYPE_p_wxFSFile swig_types[53]
2520#define SWIGTYPE_p_wxFileDirPickerEvent swig_types[54]
2521#define SWIGTYPE_p_wxFilePickerCtrl swig_types[55]
2522#define SWIGTYPE_p_wxFileSystem swig_types[56]
2523#define SWIGTYPE_p_wxFlexGridSizer swig_types[57]
2524#define SWIGTYPE_p_wxFocusEvent swig_types[58]
2525#define SWIGTYPE_p_wxFont swig_types[59]
2526#define SWIGTYPE_p_wxFontPickerCtrl swig_types[60]
2527#define SWIGTYPE_p_wxFontPickerEvent swig_types[61]
2528#define SWIGTYPE_p_wxGBSizerItem swig_types[62]
2529#define SWIGTYPE_p_wxGIFHandler swig_types[63]
2530#define SWIGTYPE_p_wxGauge swig_types[64]
2531#define SWIGTYPE_p_wxGenericDirCtrl swig_types[65]
2532#define SWIGTYPE_p_wxGenericDragImage swig_types[66]
2533#define SWIGTYPE_p_wxGridBagSizer swig_types[67]
2534#define SWIGTYPE_p_wxGridSizer swig_types[68]
2535#define SWIGTYPE_p_wxHelpEvent swig_types[69]
2536#define SWIGTYPE_p_wxHelpProvider swig_types[70]
2537#define SWIGTYPE_p_wxHyperlinkCtrl swig_types[71]
2538#define SWIGTYPE_p_wxHyperlinkEvent swig_types[72]
2539#define SWIGTYPE_p_wxICOHandler swig_types[73]
2540#define SWIGTYPE_p_wxIcon swig_types[74]
2541#define SWIGTYPE_p_wxIconizeEvent swig_types[75]
2542#define SWIGTYPE_p_wxIdleEvent swig_types[76]
2543#define SWIGTYPE_p_wxImage swig_types[77]
2544#define SWIGTYPE_p_wxImageHandler swig_types[78]
2545#define SWIGTYPE_p_wxImageList swig_types[79]
2546#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[80]
2547#define SWIGTYPE_p_wxInitDialogEvent swig_types[81]
2548#define SWIGTYPE_p_wxItemContainer swig_types[82]
2549#define SWIGTYPE_p_wxJPEGHandler swig_types[83]
2550#define SWIGTYPE_p_wxKeyEvent swig_types[84]
2551#define SWIGTYPE_p_wxLayoutConstraints swig_types[85]
2552#define SWIGTYPE_p_wxListBox swig_types[86]
2553#define SWIGTYPE_p_wxListEvent swig_types[87]
2554#define SWIGTYPE_p_wxListItem swig_types[88]
2555#define SWIGTYPE_p_wxListItemAttr swig_types[89]
2556#define SWIGTYPE_p_wxListView swig_types[90]
2557#define SWIGTYPE_p_wxListbook swig_types[91]
2558#define SWIGTYPE_p_wxListbookEvent swig_types[92]
2559#define SWIGTYPE_p_wxMaximizeEvent swig_types[93]
2560#define SWIGTYPE_p_wxMemoryDC swig_types[94]
2561#define SWIGTYPE_p_wxMenu swig_types[95]
2562#define SWIGTYPE_p_wxMenuBar swig_types[96]
2563#define SWIGTYPE_p_wxMenuEvent swig_types[97]
2564#define SWIGTYPE_p_wxMenuItem swig_types[98]
2565#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[99]
2566#define SWIGTYPE_p_wxMouseEvent swig_types[100]
2567#define SWIGTYPE_p_wxMoveEvent swig_types[101]
2568#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[102]
2569#define SWIGTYPE_p_wxNcPaintEvent swig_types[103]
2570#define SWIGTYPE_p_wxNotebook swig_types[104]
2571#define SWIGTYPE_p_wxNotebookEvent swig_types[105]
2572#define SWIGTYPE_p_wxNotifyEvent swig_types[106]
2573#define SWIGTYPE_p_wxObject swig_types[107]
2574#define SWIGTYPE_p_wxPCXHandler swig_types[108]
2575#define SWIGTYPE_p_wxPNGHandler swig_types[109]
2576#define SWIGTYPE_p_wxPNMHandler swig_types[110]
2577#define SWIGTYPE_p_wxPaintEvent swig_types[111]
2578#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[112]
2579#define SWIGTYPE_p_wxPaperSize swig_types[113]
2580#define SWIGTYPE_p_wxPickerBase swig_types[114]
2581#define SWIGTYPE_p_wxPoint swig_types[115]
2582#define SWIGTYPE_p_wxPyApp swig_types[116]
2583#define SWIGTYPE_p_wxPyCommandEvent swig_types[117]
2584#define SWIGTYPE_p_wxPyControl swig_types[118]
2585#define SWIGTYPE_p_wxPyEvent swig_types[119]
2586#define SWIGTYPE_p_wxPyImageHandler swig_types[120]
2587#define SWIGTYPE_p_wxPyListCtrl swig_types[121]
2588#define SWIGTYPE_p_wxPySizer swig_types[122]
2589#define SWIGTYPE_p_wxPyTreeCtrl swig_types[123]
2590#define SWIGTYPE_p_wxPyTreeItemData swig_types[124]
2591#define SWIGTYPE_p_wxPyValidator swig_types[125]
2592#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[126]
2593#define SWIGTYPE_p_wxRadioBox swig_types[127]
2594#define SWIGTYPE_p_wxRadioButton swig_types[128]
2595#define SWIGTYPE_p_wxRect swig_types[129]
2596#define SWIGTYPE_p_wxScrollBar swig_types[130]
2597#define SWIGTYPE_p_wxScrollEvent swig_types[131]
2598#define SWIGTYPE_p_wxScrollWinEvent swig_types[132]
2599#define SWIGTYPE_p_wxSetCursorEvent swig_types[133]
2600#define SWIGTYPE_p_wxShowEvent swig_types[134]
2601#define SWIGTYPE_p_wxSimpleHelpProvider swig_types[135]
2602#define SWIGTYPE_p_wxSize swig_types[136]
2603#define SWIGTYPE_p_wxSizeEvent swig_types[137]
2604#define SWIGTYPE_p_wxSizer swig_types[138]
2605#define SWIGTYPE_p_wxSizerItem swig_types[139]
2606#define SWIGTYPE_p_wxSlider swig_types[140]
2607#define SWIGTYPE_p_wxSpinButton swig_types[141]
2608#define SWIGTYPE_p_wxSpinCtrl swig_types[142]
2609#define SWIGTYPE_p_wxSpinEvent swig_types[143]
2610#define SWIGTYPE_p_wxStaticBitmap swig_types[144]
2611#define SWIGTYPE_p_wxStaticBox swig_types[145]
2612#define SWIGTYPE_p_wxStaticBoxSizer swig_types[146]
2613#define SWIGTYPE_p_wxStaticLine swig_types[147]
2614#define SWIGTYPE_p_wxStaticText swig_types[148]
2615#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[149]
2616#define SWIGTYPE_p_wxString swig_types[150]
2617#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[151]
2618#define SWIGTYPE_p_wxTIFFHandler swig_types[152]
2619#define SWIGTYPE_p_wxTextAttr swig_types[153]
2620#define SWIGTYPE_p_wxTextCtrl swig_types[154]
2621#define SWIGTYPE_p_wxTextUrlEvent swig_types[155]
2622#define SWIGTYPE_p_wxToggleButton swig_types[156]
2623#define SWIGTYPE_p_wxToolBar swig_types[157]
2624#define SWIGTYPE_p_wxToolBarBase swig_types[158]
2625#define SWIGTYPE_p_wxToolBarToolBase swig_types[159]
2626#define SWIGTYPE_p_wxToolbook swig_types[160]
2627#define SWIGTYPE_p_wxToolbookEvent swig_types[161]
2628#define SWIGTYPE_p_wxTreeCtrl swig_types[162]
2629#define SWIGTYPE_p_wxTreeEvent swig_types[163]
2630#define SWIGTYPE_p_wxTreeItemId swig_types[164]
2631#define SWIGTYPE_p_wxTreebook swig_types[165]
2632#define SWIGTYPE_p_wxTreebookEvent swig_types[166]
2633#define SWIGTYPE_p_wxUpdateUIEvent swig_types[167]
2634#define SWIGTYPE_p_wxValidator swig_types[168]
2635#define SWIGTYPE_p_wxVisualAttributes swig_types[169]
2636#define SWIGTYPE_p_wxWindow swig_types[170]
2637#define SWIGTYPE_p_wxWindowBase swig_types[171]
2638#define SWIGTYPE_p_wxWindowCreateEvent swig_types[172]
2639#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[173]
2640#define SWIGTYPE_p_wxXPMHandler swig_types[174]
2641static swig_type_info *swig_types[176];
2642static swig_module_info swig_module = {swig_types, 175, 0, 0, 0, 0};
32fe5131
RD
2643#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2644#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
093d3ff1
RD
2645
2646/* -------- TYPES TABLE (END) -------- */
2647
0085ce49
RD
2648#if (PY_VERSION_HEX <= 0x02000000)
2649# if !defined(SWIG_PYTHON_CLASSIC)
2650# error "This python version requires to use swig with the '-classic' option"
2651# endif
2652#endif
2653#if (PY_VERSION_HEX <= 0x02020000)
2654# error "This python version requires to use swig with the '-nomodern' option"
2655#endif
2656#if (PY_VERSION_HEX <= 0x02020000)
2657# error "This python version requires to use swig with the '-nomodernargs' option"
2658#endif
2659#ifndef METH_O
2660# error "This python version requires to use swig with the '-nofastunpack' option"
2661#endif
093d3ff1
RD
2662
2663/*-----------------------------------------------
2664 @(target):= _controls_.so
2665 ------------------------------------------------*/
2666#define SWIG_init init_controls_
2667
2668#define SWIG_name "_controls_"
2669
0085ce49
RD
2670#define SWIGVERSION 0x010329
2671
2672
2673#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2674#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2675
2676
2677#include <stdexcept>
2678
2679
2680namespace swig {
2681 class PyObject_ptr {
2682 protected:
2683 PyObject *_obj;
2684
2685 public:
2686 PyObject_ptr() :_obj(0)
2687 {
2688 }
2689
2690 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2691 {
2692 Py_XINCREF(_obj);
2693 }
2694
2695 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2696 {
2697 if (initial_ref) Py_XINCREF(_obj);
2698 }
2699
2700 PyObject_ptr & operator=(const PyObject_ptr& item)
2701 {
2702 Py_XINCREF(item._obj);
2703 Py_XDECREF(_obj);
2704 _obj = item._obj;
2705 return *this;
2706 }
2707
2708 ~PyObject_ptr()
2709 {
2710 Py_XDECREF(_obj);
2711 }
2712
2713 operator PyObject *() const
2714 {
2715 return _obj;
2716 }
2717
2718 PyObject *operator->() const
2719 {
2720 return _obj;
2721 }
2722 };
2723}
2724
2725
2726namespace swig {
2727 struct PyObject_var : PyObject_ptr {
2728 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2729
2730 PyObject_var & operator = (PyObject* obj)
2731 {
2732 Py_XDECREF(_obj);
2733 _obj = obj;
2734 return *this;
2735 }
2736 };
2737}
2738
2739
093d3ff1
RD
2740#include "wx/wxPython/wxPython.h"
2741#include "wx/wxPython/pyclasses.h"
2742
2743 static const wxString wxPyPanelNameStr(wxPanelNameStr);
2744 static const wxString wxPyEmptyString(wxEmptyString);
2745 static const wxString wxPyControlNameStr(wxControlNameStr);
2746
2747 const wxArrayString wxPyEmptyStringArray;
2748
2749 static const wxString wxPyButtonNameStr(wxButtonNameStr);
2750
0085ce49 2751 #define SWIG_From_long PyInt_FromLong
093d3ff1
RD
2752
2753
0085ce49
RD
2754SWIGINTERNINLINE PyObject *
2755SWIG_From_int (int value)
2756{
2757 return SWIG_From_long (value);
2758}
093d3ff1
RD
2759
2760
0085ce49
RD
2761#include <limits.h>
2762#ifndef LLONG_MIN
2763# define LLONG_MIN LONG_LONG_MIN
2764#endif
2765#ifndef LLONG_MAX
2766# define LLONG_MAX LONG_LONG_MAX
2767#endif
2768#ifndef ULLONG_MAX
2769# define ULLONG_MAX ULONG_LONG_MAX
2770#endif
093d3ff1
RD
2771
2772
2773SWIGINTERN int
0085ce49 2774SWIG_AsVal_long (PyObject* obj, long* val)
093d3ff1
RD
2775{
2776 if (PyNumber_Check(obj)) {
2777 if (val) *val = PyInt_AsLong(obj);
0085ce49 2778 return SWIG_OK;
093d3ff1 2779 }
0085ce49 2780 return SWIG_TypeError;
093d3ff1
RD
2781}
2782
2783
093d3ff1 2784SWIGINTERN int
0085ce49
RD
2785SWIG_AsVal_int (PyObject * obj, int *val)
2786{
093d3ff1 2787 long v;
0085ce49
RD
2788 int res = SWIG_AsVal_long (obj, &v);
2789 if (SWIG_IsOK(res)) {
2790 if ((v < INT_MIN || v > INT_MAX)) {
2791 return SWIG_OverflowError;
093d3ff1 2792 } else {
0085ce49 2793 if (val) *val = static_cast< int >(v);
093d3ff1 2794 }
0085ce49
RD
2795 }
2796 return res;
994141e6
RD
2797}
2798
c32bde28 2799 static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr);
15afbcd0 2800
093d3ff1 2801SWIGINTERN int
0085ce49 2802SWIG_AsVal_bool (PyObject *obj, bool *val)
15afbcd0 2803{
c32bde28
RD
2804 if (obj == Py_True) {
2805 if (val) *val = true;
0085ce49
RD
2806 return SWIG_OK;
2807 } else if (obj == Py_False) {
c32bde28 2808 if (val) *val = false;
0085ce49 2809 return SWIG_OK;
093d3ff1 2810 } else {
0085ce49
RD
2811 long v = 0;
2812 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2813 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2814 return res;
c32bde28 2815 }
15afbcd0
RD
2816}
2817
b2dc1044
RD
2818 static const wxString wxPyChoiceNameStr(wxChoiceNameStr);
2819 static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr);
2820 static const wxString wxPyGaugeNameStr(wxGaugeNameStr);
2821 static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr);
2822 static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr);
2823 static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr);
d14a1e28
RD
2824
2825#include <wx/checklst.h>
d14a1e28 2826
b2dc1044 2827 static const wxString wxPyListBoxNameStr(wxListBoxNameStr);
0085ce49 2828SWIGINTERN void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData=NULL){
e9d6f3a4
RD
2829 if (clientData)
2830 {
d14a1e28
RD
2831 wxPyClientData* data = new wxPyClientData(clientData);
2832 self->Insert(item, pos, data);
e9d6f3a4
RD
2833 }
2834 else
d14a1e28
RD
2835 self->Insert(item, pos);
2836 }
50f151d7
RD
2837
2838SWIGINTERN int
2839SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2840{
2841 long v = 0;
2842 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2843 return SWIG_TypeError;
2844 }
2845 else if (val)
2846 *val = (unsigned long)v;
2847 return SWIG_OK;
2848}
2849
2850
2851SWIGINTERN int
2852SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
2853{
2854 unsigned long v;
2855 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2856 if (SWIG_IsOK(res)) {
2857 if ((v > UINT_MAX)) {
2858 return SWIG_OverflowError;
2859 } else {
2860 if (val) *val = static_cast< unsigned int >(v);
2861 }
2862 }
2863 return res;
2864}
2865
0085ce49 2866SWIGINTERN PyObject *wxListBox_GetSelections(wxListBox *self){
e9d6f3a4 2867 wxPyBlock_t blocked = wxPyBeginBlockThreads();
7e08d4ef
RD
2868 wxArrayInt lst;
2869 self->GetSelections(lst);
2870 PyObject *tup = PyTuple_New(lst.GetCount());
e9d6f3a4
RD
2871 for (size_t i=0; i<lst.GetCount(); i++)
2872 {
7e08d4ef
RD
2873 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
2874 }
e9d6f3a4 2875 wxPyEndBlockThreads(blocked);
7e08d4ef
RD
2876 return tup;
2877 }
0085ce49 2878SWIGINTERN void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){
c3eb6258
RD
2879 #ifdef __WXMSW__
2880 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2881 self->GetItem(item)->SetTextColour(c);
2882 #endif
2883 }
0085ce49 2884SWIGINTERN void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){
c3eb6258
RD
2885 #ifdef __WXMSW__
2886 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2887 self->GetItem(item)->SetBackgroundColour(c);
2888 #endif
2889 }
0085ce49 2890SWIGINTERN void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){
c3eb6258
RD
2891 #ifdef __WXMSW__
2892 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2893 self->GetItem(item)->SetFont(f);
2894 #endif
2895 }
b2dc1044 2896 static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr);
0085ce49 2897SWIGINTERN void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
d14a1e28
RD
2898 self->AppendText(text);
2899 }
0085ce49 2900SWIGINTERN wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
d14a1e28
RD
2901 return self->GetValue().Mid(from, to - from);
2902 }
b2dc1044
RD
2903 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
2904 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
33b885b9 2905 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
b2dc1044
RD
2906 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
2907 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
75219dcb
RD
2908
2909SWIGINTERNINLINE PyObject*
2910SWIG_From_unsigned_SS_long (unsigned long value)
2911{
2912 return (value > LONG_MAX) ?
2913 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2914}
2915
2916
2917SWIGINTERNINLINE PyObject *
2918SWIG_From_size_t (size_t value)
2919{
2920 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
2921}
2922
50f151d7
RD
2923
2924SWIGINTERNINLINE PyObject *
2925SWIG_From_unsigned_SS_int (unsigned int value)
2926{
2927 return SWIG_From_unsigned_SS_long (value);
2928}
2929
d14a1e28
RD
2930
2931#include <wx/slider.h>
2932
d14a1e28 2933
b2dc1044 2934 static const wxString wxPySliderNameStr(wxSliderNameStr);
33b885b9 2935 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
d14a1e28 2936
15afbcd0
RD
2937#if !wxUSE_TOGGLEBTN
2938// implement dummy items for platforms that don't have this class
d14a1e28
RD
2939
2940#define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
2941
2942class wxToggleButton : public wxControl
2943{
2944public:
2945 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
2946 const wxPoint&, const wxSize&, long,
2947 const wxValidator&, const wxString&)
39f61e25 2948 { wxPyRaiseNotImplemented(); }
d14a1e28
RD
2949
2950 wxToggleButton()
39f61e25 2951 { wxPyRaiseNotImplemented(); }
d14a1e28
RD
2952};
2953#endif
2954
51b83b37 2955 static const wxString wxPyNotebookNameStr(wxNotebookNameStr);
994141e6 2956
7e08d4ef 2957SWIGINTERNINLINE int
0085ce49 2958SWIG_AsVal_size_t (PyObject * obj, size_t *val)
7e08d4ef 2959{
7e08d4ef 2960 unsigned long v;
0085ce49
RD
2961 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
2962 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
2963 return res;
7e08d4ef 2964}
7e08d4ef 2965
b2dc1044 2966 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
0085ce49 2967SWIGINTERN PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
d14a1e28
RD
2968 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
2969 if (udata) {
2970 Py_INCREF(udata->m_obj);
2971 return udata->m_obj;
2972 } else {
2973 Py_INCREF(Py_None);
2974 return Py_None;
2975 }
2976 }
0085ce49 2977SWIGINTERN void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
d14a1e28
RD
2978 self->SetClientData(new wxPyUserData(clientData));
2979 }
0085ce49 2980SWIGINTERN 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
2981 wxPyUserData* udata = NULL;
2982 if (clientData && clientData != Py_None)
2983 udata = new wxPyUserData(clientData);
2984 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
2985 shortHelp, longHelp, udata);
2986 }
0085ce49 2987SWIGINTERN 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
2988 wxPyUserData* udata = NULL;
2989 if (clientData && clientData != Py_None)
2990 udata = new wxPyUserData(clientData);
2991 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
2992 shortHelp, longHelp, udata);
2993 }
0085ce49 2994SWIGINTERN PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
d14a1e28
RD
2995 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
2996 if (udata) {
2997 Py_INCREF(udata->m_obj);
2998 return udata->m_obj;
2999 } else {
3000 Py_INCREF(Py_None);
3001 return Py_None;
3002 }
3003 }
0085ce49 3004SWIGINTERN void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
d14a1e28
RD
3005 self->SetToolClientData(id, new wxPyUserData(clientData));
3006 }
3007
3008#include <wx/listctrl.h>
3009
7557b9b5 3010 static const wxString wxPyListCtrlNameStr(wxListCtrlNameStr);
0085ce49 3011SWIGINTERN void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
d14a1e28
RD
3012 // Python aware sorting function for wxPyListCtrl
3013 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
3014 int retval = 0;
3015 PyObject* func = (PyObject*)funcPtr;
5a446332 3016 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d14a1e28
RD
3017
3018 PyObject* args = Py_BuildValue("(ii)", item1, item2);
3019 PyObject* result = PyEval_CallObject(func, args);
3020 Py_DECREF(args);
3021 if (result) {
3022 retval = PyInt_AsLong(result);
3023 Py_DECREF(result);
3024 }
3025
4f89f6a3 3026 wxPyEndBlockThreads(blocked);
d14a1e28
RD
3027 return retval;
3028 }
3029
3030 // C++ Version of a Python aware class
3031class wxPyListCtrl : public wxListCtrl {
32fe5131 3032 DECLARE_ABSTRACT_CLASS(wxPyListCtrl)
d14a1e28
RD
3033public:
3034 wxPyListCtrl() : wxListCtrl() {}
3035 wxPyListCtrl(wxWindow* parent, wxWindowID id,
3036 const wxPoint& pos,
3037 const wxSize& size,
3038 long style,
3039 const wxValidator& validator,
3040 const wxString& name) :
3041 wxListCtrl(parent, id, pos, size, style, validator, name) {}
3042
3043 bool Create(wxWindow* parent, wxWindowID id,
3044 const wxPoint& pos,
3045 const wxSize& size,
3046 long style,
3047 const wxValidator& validator,
3048 const wxString& name) {
3049 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
3050 }
3051
3052 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
d14a1e28
RD
3053 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
3054
84f85550
RD
3055 // use the virtual version to avoid a confusing assert in the base class
3056 DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage);
7e08d4ef 3057 DEC_PYCALLBACK_INT_LONGLONG(OnGetItemColumnImage);
84f85550 3058
d14a1e28
RD
3059 PYPRIVATE;
3060};
3061
3062IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
3063
3064IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
d14a1e28 3065IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
84f85550 3066IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage);
7e08d4ef
RD
3067IMP_PYCALLBACK_INT_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemColumnImage);
3068
d14a1e28 3069
0085ce49 3070SWIGINTERN wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
d14a1e28
RD
3071 wxListItem item;
3072 item.SetMask( wxLIST_MASK_STATE |
3073 wxLIST_MASK_TEXT |
3074 wxLIST_MASK_IMAGE |
3075 wxLIST_MASK_DATA |
3076 wxLIST_SET_ITEM |
3077 wxLIST_MASK_WIDTH |
3078 wxLIST_MASK_FORMAT
3079 );
3080 if (self->GetColumn(col, item))
3081 return new wxListItem(item);
3082 else
3083 return NULL;
3084 }
0085ce49 3085SWIGINTERN wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col=0){
d14a1e28
RD
3086 wxListItem* info = new wxListItem;
3087 info->m_itemId = itemId;
3088 info->m_col = col;
3089 info->m_mask = 0xFFFF;
3090 self->GetItem(*info);
3091 return info;
3092 }
0085ce49 3093SWIGINTERN wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
d14a1e28
RD
3094 wxPoint pos;
3095 self->GetItemPosition(item, pos);
3096 return pos;
3097 }
0085ce49 3098SWIGINTERN wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code=wxLIST_RECT_BOUNDS){
d14a1e28
RD
3099 wxRect rect;
3100 self->GetItemRect(item, rect, code);
3101 return rect;
3102 }
0085ce49 3103SWIGINTERN bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
d14a1e28 3104 if (!PyCallable_Check(func))
ae8162c8 3105 return false;
d14a1e28
RD
3106 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
3107 }
0085ce49 3108SWIGINTERN wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
d14a1e28
RD
3109
3110
3111
3112 return (wxWindow*)self->m_mainWin;
3113
3114 }
3115
3116#include <wx/treectrl.h>
3117#include "wx/wxPython/pytree.h"
d14a1e28 3118
33b885b9 3119 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
0085ce49
RD
3120SWIGINTERN bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; }
3121SWIGINTERN bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; }
3122SWIGINTERN void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
b02396e8
RD
3123
3124 static wxTreeItemId wxNullTreeItemId;
3125
d14a1e28
RD
3126 // C++ version of Python aware wxTreeCtrl
3127class wxPyTreeCtrl : public wxTreeCtrl {
32fe5131 3128 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl)
d14a1e28
RD
3129public:
3130 wxPyTreeCtrl() : wxTreeCtrl() {}
3131 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
3132 const wxPoint& pos,
3133 const wxSize& size,
3134 long style,
3135 const wxValidator& validator,
3136 const wxString& name) :
3137 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
3138
3139 bool Create(wxWindow *parent, wxWindowID id,
3140 const wxPoint& pos,
3141 const wxSize& size,
3142 long style,
3143 const wxValidator& validator,
3144 const wxString& name) {
3145 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
3146 }
3147
3148
3149 int OnCompareItems(const wxTreeItemId& item1,
3150 const wxTreeItemId& item2) {
3151 int rval = 0;
3152 bool found;
5a446332 3153 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d14a1e28 3154 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
ae8162c8
RD
3155 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false);
3156 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false);
d14a1e28
RD
3157 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
3158 Py_DECREF(o1);
3159 Py_DECREF(o2);
3160 }
4f89f6a3 3161 wxPyEndBlockThreads(blocked);
d14a1e28
RD
3162 if (! found)
3163 rval = wxTreeCtrl::OnCompareItems(item1, item2);
3164 return rval;
3165 }
3166 PYPRIVATE;
3167};
3168
3169IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
3170
3171
0085ce49 3172SWIGINTERN wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
d14a1e28
RD
3173 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3174 if (data == NULL) {
3175 data = new wxPyTreeItemData();
3176 data->SetId(item); // set the id
3177 self->SetItemData(item, data);
3178 }
3179 return data;
3180 }
0085ce49 3181SWIGINTERN PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
d14a1e28
RD
3182 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3183 if (data == NULL) {
3184 data = new wxPyTreeItemData();
3185 data->SetId(item); // set the id
3186 self->SetItemData(item, data);
3187 }
3188 return data->GetData();
3189 }
0085ce49 3190SWIGINTERN void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
d14a1e28
RD
3191 data->SetId(item); // set the id
3192 self->SetItemData(item, data);
3193 }
0085ce49 3194SWIGINTERN void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
d14a1e28
RD
3195 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3196 if (data == NULL) {
3197 data = new wxPyTreeItemData(obj);
3198 data->SetId(item); // set the id
3199 self->SetItemData(item, data);
3200 } else
3201 data->SetData(obj);
3202 }
0085ce49 3203SWIGINTERN PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
5a446332 3204 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d14a1e28
RD
3205 PyObject* rval = PyList_New(0);
3206 wxArrayTreeItemIds array;
3207 size_t num, x;
3208 num = self->GetSelections(array);
3209 for (x=0; x < num; x++) {
3210 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
ae8162c8 3211 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true);
d14a1e28 3212 PyList_Append(rval, item);
1a10c483 3213 Py_DECREF(item);
d14a1e28 3214 }
4f89f6a3 3215 wxPyEndBlockThreads(blocked);
d14a1e28
RD
3216 return rval;
3217 }
0085ce49 3218SWIGINTERN PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
58203fa6
RD
3219 void* cookie = 0;
3220 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
5a446332 3221 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d14a1e28 3222 PyObject* tup = PyTuple_New(2);
ae8162c8 3223 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
58203fa6 3224 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
4f89f6a3 3225 wxPyEndBlockThreads(blocked);
d14a1e28
RD
3226 return tup;
3227 }
0085ce49 3228SWIGINTERN PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
58203fa6 3229 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
5a446332 3230 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d14a1e28 3231 PyObject* tup = PyTuple_New(2);
ae8162c8 3232 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
58203fa6 3233 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
4f89f6a3 3234 wxPyEndBlockThreads(blocked);
d14a1e28
RD
3235 return tup;
3236 }
0085ce49 3237SWIGINTERN PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly=false){
d14a1e28
RD
3238 wxRect rect;
3239 if (self->GetBoundingRect(item, rect, textOnly)) {
5a446332 3240 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d14a1e28 3241 wxRect* r = new wxRect(rect);
ae8162c8 3242 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true);
4f89f6a3 3243 wxPyEndBlockThreads(blocked);
d14a1e28
RD
3244 return val;
3245 }
3246 else
3247 RETURN_NONE();
3248 }
b2dc1044 3249 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
c32bde28 3250
32fe5131 3251SWIGINTERNINLINE PyObject*
0085ce49 3252 SWIG_From_bool (bool value)
c32bde28 3253{
0085ce49 3254 return PyBool_FromLong(value ? 1 : 0);
c32bde28
RD
3255}
3256
d14a1e28
RD
3257 // C++ version of Python aware wxControl
3258class wxPyControl : public wxControl
3259{
3260 DECLARE_DYNAMIC_CLASS(wxPyControl)
3261public:
3262 wxPyControl() : wxControl() {}
3263 wxPyControl(wxWindow* parent, const wxWindowID id,
3264 const wxPoint& pos = wxDefaultPosition,
3265 const wxSize& size = wxDefaultSize,
3266 long style = 0,
3267 const wxValidator& validator=wxDefaultValidator,
3268 const wxString& name = wxPyControlNameStr)
3269 : wxControl(parent, id, pos, size, style, validator, name) {}
3270
db3e571a 3271 void SetBestSize(const wxSize& size) { wxControl::SetBestSize(size); }
d14a1e28 3272
976dbff5
RD
3273 bool DoEraseBackground(wxDC* dc) {
3274#ifdef __WXMSW__
3275 return wxWindow::DoEraseBackground(dc->GetHDC());
3276#else
3277 dc->SetBackground(wxBrush(GetBackgroundColour()));
3278 dc->Clear();
3279 return true;
3280#endif
3281 }
3282
d14a1e28
RD
3283 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
3284 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
3285 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
3286 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
3287
3288 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
3289 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
3290 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
3291
3292 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
3293 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
3294
3295 DEC_PYCALLBACK__(InitDialog);
3296 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
3297 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
3298 DEC_PYCALLBACK_BOOL_(Validate);
3299
3300 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
3301 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
3302 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
3303
3304 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
3305 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
3306
db3e571a 3307 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
db3e571a 3308 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
4276dc52 3309
51b83b37
RD
3310 DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
3311
8d38bd1d
RD
3312 DEC_PYCALLBACK_VOID_(OnInternalIdle);
3313
d14a1e28
RD
3314 PYPRIVATE;
3315};
3316
3317IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
3318
3319IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
3320IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
3321IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
3322IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
3323
3324IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
3325IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
3326IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
3327
3328IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
3329IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
3330
3331IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
3332IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
3333IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
3334IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
3335
3336IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
3337IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
3338IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
3339
3340IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
3341IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
3342
db3e571a 3343IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
db3e571a 3344IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
d14a1e28 3345
51b83b37 3346IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground);
8d38bd1d
RD
3347
3348IMP_PYCALLBACK_VOID_(wxPyControl, wxControl, OnInternalIdle);
3349
d14a1e28
RD
3350
3351
0085ce49 3352SWIGINTERN void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
e811c8ce
RD
3353
3354#include <wx/generic/dragimgg.h>
3355
53aa7709 3356 static const wxString wxPyDatePickerCtrlNameStr(wxDatePickerCtrlNameStr);
0085ce49 3357SWIGINTERN wxDateTime wxDatePickerCtrl_GetLowerLimit(wxDatePickerCtrl *self){
53aa7709
RD
3358 wxDateTime rv;
3359 self->GetRange(&rv, NULL);
3360 return rv;
3361 }
0085ce49 3362SWIGINTERN wxDateTime wxDatePickerCtrl_GetUpperLimit(wxDatePickerCtrl *self){
53aa7709
RD
3363 wxDateTime rv;
3364 self->GetRange(NULL, &rv);
3365 return rv;
3366 }
704eda0c 3367 static const wxString wxPyHyperlinkCtrlNameStr(wxHyperlinkCtrlNameStr);
b850e7f3
RD
3368 static const wxString wxPyColourPickerCtrlNameStr(wxColourPickerCtrlNameStr);
3369 static const wxString wxPyFilePickerCtrlNameStr(wxFilePickerCtrlNameStr);
3370 static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
3371 static const wxString wxPyDirPickerCtrlNameStr(wxDirPickerCtrlNameStr);
3372 static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
3373 static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr);
3374 static const wxString wxPyFontPickerCtrlNameStr(wxFontPickerCtrlNameStr);
d14a1e28
RD
3375#ifdef __cplusplus
3376extern "C" {
3377#endif
0085ce49
RD
3378SWIGINTERN int ButtonNameStr_set(PyObject *) {
3379 SWIG_Error(SWIG_AttributeError,"Variable ButtonNameStr is read-only.");
3380 return 1;
b2dc1044
RD
3381}
3382
3383
0085ce49
RD
3384SWIGINTERN PyObject *ButtonNameStr_get(void) {
3385 PyObject *pyobj = 0;
3386
3387 {
b2dc1044 3388#if wxUSE_UNICODE
0085ce49 3389 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
b2dc1044 3390#else
0085ce49 3391 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
b2dc1044 3392#endif
0085ce49
RD
3393 }
3394 return pyobj;
3395}
3396
3397
3398SWIGINTERN PyObject *_wrap_new_Button(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3399 PyObject *resultobj = 0;
3400 wxWindow *arg1 = (wxWindow *) 0 ;
3401 int arg2 = (int) -1 ;
3402 wxString const &arg3_defvalue = wxPyEmptyString ;
3403 wxString *arg3 = (wxString *) &arg3_defvalue ;
3404 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3405 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3406 wxSize const &arg5_defvalue = wxDefaultSize ;
3407 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3408 long arg6 = (long) 0 ;
3409 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3410 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3411 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3412 wxString *arg8 = (wxString *) &arg8_defvalue ;
3413 wxButton *result = 0 ;
3414 void *argp1 = 0 ;
3415 int res1 = 0 ;
3416 int val2 ;
3417 int ecode2 = 0 ;
3418 bool temp3 = false ;
3419 wxPoint temp4 ;
3420 wxSize temp5 ;
3421 long val6 ;
3422 int ecode6 = 0 ;
3423 void *argp7 = 0 ;
3424 int res7 = 0 ;
3425 bool temp8 = false ;
3426 PyObject * obj0 = 0 ;
3427 PyObject * obj1 = 0 ;
3428 PyObject * obj2 = 0 ;
3429 PyObject * obj3 = 0 ;
3430 PyObject * obj4 = 0 ;
3431 PyObject * obj5 = 0 ;
3432 PyObject * obj6 = 0 ;
3433 PyObject * obj7 = 0 ;
3434 char * kwnames[] = {
3435 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3436 };
3437
3438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3440 if (!SWIG_IsOK(res1)) {
3441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Button" "', expected argument " "1"" of type '" "wxWindow *""'");
3442 }
3443 arg1 = reinterpret_cast< wxWindow * >(argp1);
3444 if (obj1) {
3445 ecode2 = SWIG_AsVal_int(obj1, &val2);
3446 if (!SWIG_IsOK(ecode2)) {
3447 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Button" "', expected argument " "2"" of type '" "int""'");
3448 }
3449 arg2 = static_cast< int >(val2);
3450 }
3451 if (obj2) {
d14a1e28 3452 {
0085ce49
RD
3453 arg3 = wxString_in_helper(obj2);
3454 if (arg3 == NULL) SWIG_fail;
3455 temp3 = true;
d14a1e28 3456 }
0085ce49
RD
3457 }
3458 if (obj3) {
d14a1e28 3459 {
0085ce49
RD
3460 arg4 = &temp4;
3461 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 3462 }
0085ce49
RD
3463 }
3464 if (obj4) {
d14a1e28 3465 {
0085ce49
RD
3466 arg5 = &temp5;
3467 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 3468 }
0085ce49
RD
3469 }
3470 if (obj5) {
3471 ecode6 = SWIG_AsVal_long(obj5, &val6);
3472 if (!SWIG_IsOK(ecode6)) {
3473 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Button" "', expected argument " "6"" of type '" "long""'");
3474 }
3475 arg6 = static_cast< long >(val6);
3476 }
3477 if (obj6) {
3478 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3479 if (!SWIG_IsOK(res7)) {
3480 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 3481 }
0085ce49
RD
3482 if (!argp7) {
3483 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 3484 }
0085ce49
RD
3485 arg7 = reinterpret_cast< wxValidator * >(argp7);
3486 }
3487 if (obj7) {
d14a1e28 3488 {
0085ce49
RD
3489 arg8 = wxString_in_helper(obj7);
3490 if (arg8 == NULL) SWIG_fail;
3491 temp8 = true;
d14a1e28 3492 }
0085ce49
RD
3493 }
3494 {
3495 if (!wxPyCheckForApp()) SWIG_fail;
3496 PyThreadState* __tstate = wxPyBeginAllowThreads();
3497 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3498 wxPyEndAllowThreads(__tstate);
3499 if (PyErr_Occurred()) SWIG_fail;
3500 }
3501 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_NEW | 0 );
3502 {
3503 if (temp3)
3504 delete arg3;
3505 }
3506 {
3507 if (temp8)
3508 delete arg8;
3509 }
3510 return resultobj;
3511fail:
3512 {
3513 if (temp3)
3514 delete arg3;
3515 }
3516 {
3517 if (temp8)
3518 delete arg8;
3519 }
3520 return NULL;
d14a1e28
RD
3521}
3522
3523
0085ce49
RD
3524SWIGINTERN PyObject *_wrap_new_PreButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3525 PyObject *resultobj = 0;
3526 wxButton *result = 0 ;
3527
3528 if (!SWIG_Python_UnpackTuple(args,"new_PreButton",0,0,0)) SWIG_fail;
3529 {
3530 if (!wxPyCheckForApp()) SWIG_fail;
3531 PyThreadState* __tstate = wxPyBeginAllowThreads();
3532 result = (wxButton *)new wxButton();
3533 wxPyEndAllowThreads(__tstate);
3534 if (PyErr_Occurred()) SWIG_fail;
3535 }
3536 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_OWN | 0 );
3537 return resultobj;
3538fail:
3539 return NULL;
3540}
3541
3542
3543SWIGINTERN PyObject *_wrap_Button_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3544 PyObject *resultobj = 0;
3545 wxButton *arg1 = (wxButton *) 0 ;
3546 wxWindow *arg2 = (wxWindow *) 0 ;
3547 int arg3 = (int) -1 ;
3548 wxString const &arg4_defvalue = wxPyEmptyString ;
3549 wxString *arg4 = (wxString *) &arg4_defvalue ;
3550 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3551 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3552 wxSize const &arg6_defvalue = wxDefaultSize ;
3553 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3554 long arg7 = (long) 0 ;
3555 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3556 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3557 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3558 wxString *arg9 = (wxString *) &arg9_defvalue ;
3559 bool result;
3560 void *argp1 = 0 ;
3561 int res1 = 0 ;
3562 void *argp2 = 0 ;
3563 int res2 = 0 ;
3564 int val3 ;
3565 int ecode3 = 0 ;
3566 bool temp4 = false ;
3567 wxPoint temp5 ;
3568 wxSize temp6 ;
3569 long val7 ;
3570 int ecode7 = 0 ;
3571 void *argp8 = 0 ;
3572 int res8 = 0 ;
3573 bool temp9 = false ;
3574 PyObject * obj0 = 0 ;
3575 PyObject * obj1 = 0 ;
3576 PyObject * obj2 = 0 ;
3577 PyObject * obj3 = 0 ;
3578 PyObject * obj4 = 0 ;
3579 PyObject * obj5 = 0 ;
3580 PyObject * obj6 = 0 ;
3581 PyObject * obj7 = 0 ;
3582 PyObject * obj8 = 0 ;
3583 char * kwnames[] = {
3584 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3585 };
3586
3587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3589 if (!SWIG_IsOK(res1)) {
3590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_Create" "', expected argument " "1"" of type '" "wxButton *""'");
3591 }
3592 arg1 = reinterpret_cast< wxButton * >(argp1);
3593 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3594 if (!SWIG_IsOK(res2)) {
3595 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Button_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3596 }
3597 arg2 = reinterpret_cast< wxWindow * >(argp2);
3598 if (obj2) {
3599 ecode3 = SWIG_AsVal_int(obj2, &val3);
3600 if (!SWIG_IsOK(ecode3)) {
3601 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Button_Create" "', expected argument " "3"" of type '" "int""'");
3602 }
3603 arg3 = static_cast< int >(val3);
3604 }
3605 if (obj3) {
d14a1e28 3606 {
0085ce49
RD
3607 arg4 = wxString_in_helper(obj3);
3608 if (arg4 == NULL) SWIG_fail;
3609 temp4 = true;
d14a1e28 3610 }
0085ce49
RD
3611 }
3612 if (obj4) {
4f89f6a3 3613 {
0085ce49
RD
3614 arg5 = &temp5;
3615 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4f89f6a3 3616 }
0085ce49
RD
3617 }
3618 if (obj5) {
d14a1e28 3619 {
0085ce49
RD
3620 arg6 = &temp6;
3621 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d14a1e28 3622 }
0085ce49
RD
3623 }
3624 if (obj6) {
3625 ecode7 = SWIG_AsVal_long(obj6, &val7);
3626 if (!SWIG_IsOK(ecode7)) {
3627 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Button_Create" "', expected argument " "7"" of type '" "long""'");
3628 }
3629 arg7 = static_cast< long >(val7);
3630 }
3631 if (obj7) {
3632 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3633 if (!SWIG_IsOK(res8)) {
3634 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 3635 }
0085ce49
RD
3636 if (!argp8) {
3637 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 3638 }
0085ce49
RD
3639 arg8 = reinterpret_cast< wxValidator * >(argp8);
3640 }
3641 if (obj8) {
d14a1e28 3642 {
0085ce49
RD
3643 arg9 = wxString_in_helper(obj8);
3644 if (arg9 == NULL) SWIG_fail;
3645 temp9 = true;
d14a1e28 3646 }
0085ce49
RD
3647 }
3648 {
3649 PyThreadState* __tstate = wxPyBeginAllowThreads();
3650 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3651 wxPyEndAllowThreads(__tstate);
3652 if (PyErr_Occurred()) SWIG_fail;
3653 }
3654 {
3655 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3656 }
3657 {
3658 if (temp4)
3659 delete arg4;
3660 }
3661 {
3662 if (temp9)
3663 delete arg9;
3664 }
3665 return resultobj;
3666fail:
3667 {
3668 if (temp4)
3669 delete arg4;
3670 }
3671 {
3672 if (temp9)
3673 delete arg9;
3674 }
3675 return NULL;
d14a1e28
RD
3676}
3677
3678
0085ce49
RD
3679SWIGINTERN PyObject *_wrap_Button_SetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3680 PyObject *resultobj = 0;
3681 wxButton *arg1 = (wxButton *) 0 ;
3682 void *argp1 = 0 ;
3683 int res1 = 0 ;
3684 PyObject *swig_obj[1] ;
3685
3686 if (!args) SWIG_fail;
3687 swig_obj[0] = args;
3688 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3689 if (!SWIG_IsOK(res1)) {
3690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_SetDefault" "', expected argument " "1"" of type '" "wxButton *""'");
3691 }
3692 arg1 = reinterpret_cast< wxButton * >(argp1);
3693 {
3694 PyThreadState* __tstate = wxPyBeginAllowThreads();
3695 (arg1)->SetDefault();
3696 wxPyEndAllowThreads(__tstate);
3697 if (PyErr_Occurred()) SWIG_fail;
3698 }
3699 resultobj = SWIG_Py_Void();
3700 return resultobj;
3701fail:
3702 return NULL;
d14a1e28
RD
3703}
3704
3705
0085ce49
RD
3706SWIGINTERN PyObject *_wrap_Button_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3707 PyObject *resultobj = 0;
3708 wxSize result;
3709
3710 if (!SWIG_Python_UnpackTuple(args,"Button_GetDefaultSize",0,0,0)) SWIG_fail;
3711 {
3712 PyThreadState* __tstate = wxPyBeginAllowThreads();
3713 result = wxButton::GetDefaultSize();
3714 wxPyEndAllowThreads(__tstate);
3715 if (PyErr_Occurred()) SWIG_fail;
3716 }
3717 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
3718 return resultobj;
3719fail:
3720 return NULL;
3721}
3722
3723
3724SWIGINTERN PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3725 PyObject *resultobj = 0;
3726 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
3727 SwigValueWrapper<wxVisualAttributes > result;
3728 int val1 ;
3729 int ecode1 = 0 ;
3730 PyObject * obj0 = 0 ;
3731 char * kwnames[] = {
3732 (char *) "variant", NULL
3733 };
3734
3735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
3736 if (obj0) {
3737 ecode1 = SWIG_AsVal_int(obj0, &val1);
3738 if (!SWIG_IsOK(ecode1)) {
3739 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Button_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
3740 }
3741 arg1 = static_cast< wxWindowVariant >(val1);
3742 }
3743 {
3744 if (!wxPyCheckForApp()) SWIG_fail;
3745 PyThreadState* __tstate = wxPyBeginAllowThreads();
3746 result = wxButton::GetClassDefaultAttributes(arg1);
3747 wxPyEndAllowThreads(__tstate);
3748 if (PyErr_Occurred()) SWIG_fail;
3749 }
3750 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
3751 return resultobj;
3752fail:
3753 return NULL;
3754}
3755
3756
3757SWIGINTERN PyObject *Button_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3758 PyObject *obj;
3759 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3760 SWIG_TypeNewClientData(SWIGTYPE_p_wxButton, SWIG_NewClientData(obj));
3761 return SWIG_Py_Void();
3762}
3763
3764SWIGINTERN PyObject *Button_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3765 return SWIG_Python_InitShadowInstance(args);
3766}
3767
3768SWIGINTERN PyObject *_wrap_new_BitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3769 PyObject *resultobj = 0;
3770 wxWindow *arg1 = (wxWindow *) 0 ;
3771 int arg2 = (int) -1 ;
3772 wxBitmap const &arg3_defvalue = wxNullBitmap ;
3773 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
3774 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3775 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3776 wxSize const &arg5_defvalue = wxDefaultSize ;
3777 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3778 long arg6 = (long) wxBU_AUTODRAW ;
3779 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3780 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3781 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3782 wxString *arg8 = (wxString *) &arg8_defvalue ;
3783 wxBitmapButton *result = 0 ;
3784 void *argp1 = 0 ;
3785 int res1 = 0 ;
3786 int val2 ;
3787 int ecode2 = 0 ;
3788 void *argp3 = 0 ;
3789 int res3 = 0 ;
3790 wxPoint temp4 ;
3791 wxSize temp5 ;
3792 long val6 ;
3793 int ecode6 = 0 ;
3794 void *argp7 = 0 ;
3795 int res7 = 0 ;
3796 bool temp8 = false ;
3797 PyObject * obj0 = 0 ;
3798 PyObject * obj1 = 0 ;
3799 PyObject * obj2 = 0 ;
3800 PyObject * obj3 = 0 ;
3801 PyObject * obj4 = 0 ;
3802 PyObject * obj5 = 0 ;
3803 PyObject * obj6 = 0 ;
3804 PyObject * obj7 = 0 ;
3805 char * kwnames[] = {
3806 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3807 };
3808
3809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3811 if (!SWIG_IsOK(res1)) {
3812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapButton" "', expected argument " "1"" of type '" "wxWindow *""'");
3813 }
3814 arg1 = reinterpret_cast< wxWindow * >(argp1);
3815 if (obj1) {
3816 ecode2 = SWIG_AsVal_int(obj1, &val2);
3817 if (!SWIG_IsOK(ecode2)) {
3818 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapButton" "', expected argument " "2"" of type '" "int""'");
3819 }
3820 arg2 = static_cast< int >(val2);
3821 }
3822 if (obj2) {
3823 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
3824 if (!SWIG_IsOK(res3)) {
3825 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3826 }
3827 if (!argp3) {
3828 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3829 }
3830 arg3 = reinterpret_cast< wxBitmap * >(argp3);
3831 }
3832 if (obj3) {
d14a1e28 3833 {
0085ce49
RD
3834 arg4 = &temp4;
3835 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 3836 }
0085ce49
RD
3837 }
3838 if (obj4) {
d14a1e28 3839 {
0085ce49
RD
3840 arg5 = &temp5;
3841 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 3842 }
0085ce49
RD
3843 }
3844 if (obj5) {
3845 ecode6 = SWIG_AsVal_long(obj5, &val6);
3846 if (!SWIG_IsOK(ecode6)) {
3847 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_BitmapButton" "', expected argument " "6"" of type '" "long""'");
3848 }
3849 arg6 = static_cast< long >(val6);
3850 }
3851 if (obj6) {
3852 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3853 if (!SWIG_IsOK(res7)) {
3854 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
22bfe96c 3855 }
0085ce49
RD
3856 if (!argp7) {
3857 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
22bfe96c 3858 }
0085ce49
RD
3859 arg7 = reinterpret_cast< wxValidator * >(argp7);
3860 }
3861 if (obj7) {
22bfe96c 3862 {
0085ce49
RD
3863 arg8 = wxString_in_helper(obj7);
3864 if (arg8 == NULL) SWIG_fail;
3865 temp8 = true;
22bfe96c 3866 }
0085ce49
RD
3867 }
3868 {
3869 if (!wxPyCheckForApp()) SWIG_fail;
3870 PyThreadState* __tstate = wxPyBeginAllowThreads();
3871 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3872 wxPyEndAllowThreads(__tstate);
3873 if (PyErr_Occurred()) SWIG_fail;
3874 }
3875 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_NEW | 0 );
3876 {
3877 if (temp8)
3878 delete arg8;
3879 }
3880 return resultobj;
3881fail:
3882 {
3883 if (temp8)
3884 delete arg8;
3885 }
3886 return NULL;
22bfe96c
RD
3887}
3888
3889
0085ce49
RD
3890SWIGINTERN PyObject *_wrap_new_PreBitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3891 PyObject *resultobj = 0;
3892 wxBitmapButton *result = 0 ;
3893
3894 if (!SWIG_Python_UnpackTuple(args,"new_PreBitmapButton",0,0,0)) SWIG_fail;
3895 {
3896 if (!wxPyCheckForApp()) SWIG_fail;
3897 PyThreadState* __tstate = wxPyBeginAllowThreads();
3898 result = (wxBitmapButton *)new wxBitmapButton();
3899 wxPyEndAllowThreads(__tstate);
3900 if (PyErr_Occurred()) SWIG_fail;
3901 }
3902 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_OWN | 0 );
3903 return resultobj;
3904fail:
3905 return NULL;
3906}
3907
3908
3909SWIGINTERN PyObject *_wrap_BitmapButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3910 PyObject *resultobj = 0;
3911 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
3912 wxWindow *arg2 = (wxWindow *) 0 ;
3913 int arg3 = (int) -1 ;
3914 wxBitmap const &arg4_defvalue = wxNullBitmap ;
3915 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
3916 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3917 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3918 wxSize const &arg6_defvalue = wxDefaultSize ;
3919 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3920 long arg7 = (long) wxBU_AUTODRAW ;
3921 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3922 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3923 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3924 wxString *arg9 = (wxString *) &arg9_defvalue ;
3925 bool result;
3926 void *argp1 = 0 ;
3927 int res1 = 0 ;
3928 void *argp2 = 0 ;
3929 int res2 = 0 ;
3930 int val3 ;
3931 int ecode3 = 0 ;
3932 void *argp4 = 0 ;
3933 int res4 = 0 ;
3934 wxPoint temp5 ;
3935 wxSize temp6 ;
3936 long val7 ;
3937 int ecode7 = 0 ;
3938 void *argp8 = 0 ;
3939 int res8 = 0 ;
3940 bool temp9 = false ;
3941 PyObject * obj0 = 0 ;
3942 PyObject * obj1 = 0 ;
3943 PyObject * obj2 = 0 ;
3944 PyObject * obj3 = 0 ;
3945 PyObject * obj4 = 0 ;
3946 PyObject * obj5 = 0 ;
3947 PyObject * obj6 = 0 ;
3948 PyObject * obj7 = 0 ;
3949 PyObject * obj8 = 0 ;
3950 char * kwnames[] = {
3951 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3952 };
3953
3954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
3956 if (!SWIG_IsOK(res1)) {
3957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_Create" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
3958 }
3959 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
3960 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3961 if (!SWIG_IsOK(res2)) {
3962 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3963 }
3964 arg2 = reinterpret_cast< wxWindow * >(argp2);
3965 if (obj2) {
3966 ecode3 = SWIG_AsVal_int(obj2, &val3);
3967 if (!SWIG_IsOK(ecode3)) {
3968 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_Create" "', expected argument " "3"" of type '" "int""'");
3969 }
3970 arg3 = static_cast< int >(val3);
3971 }
3972 if (obj3) {
3973 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
3974 if (!SWIG_IsOK(res4)) {
3975 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
d14a1e28 3976 }
0085ce49
RD
3977 if (!argp4) {
3978 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
d14a1e28 3979 }
0085ce49
RD
3980 arg4 = reinterpret_cast< wxBitmap * >(argp4);
3981 }
3982 if (obj4) {
d14a1e28 3983 {
0085ce49
RD
3984 arg5 = &temp5;
3985 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 3986 }
0085ce49
RD
3987 }
3988 if (obj5) {
d14a1e28 3989 {
0085ce49
RD
3990 arg6 = &temp6;
3991 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3992 }
3993 }
3994 if (obj6) {
3995 ecode7 = SWIG_AsVal_long(obj6, &val7);
3996 if (!SWIG_IsOK(ecode7)) {
3997 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "BitmapButton_Create" "', expected argument " "7"" of type '" "long""'");
3998 }
3999 arg7 = static_cast< long >(val7);
4000 }
4001 if (obj7) {
4002 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4003 if (!SWIG_IsOK(res8)) {
4004 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4005 }
4006 if (!argp8) {
4007 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 4008 }
0085ce49
RD
4009 arg8 = reinterpret_cast< wxValidator * >(argp8);
4010 }
4011 if (obj8) {
d14a1e28 4012 {
0085ce49
RD
4013 arg9 = wxString_in_helper(obj8);
4014 if (arg9 == NULL) SWIG_fail;
4015 temp9 = true;
d14a1e28 4016 }
0085ce49
RD
4017 }
4018 {
4019 PyThreadState* __tstate = wxPyBeginAllowThreads();
4020 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4021 wxPyEndAllowThreads(__tstate);
4022 if (PyErr_Occurred()) SWIG_fail;
4023 }
4024 {
4025 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4026 }
4027 {
4028 if (temp9)
4029 delete arg9;
4030 }
4031 return resultobj;
4032fail:
4033 {
4034 if (temp9)
4035 delete arg9;
4036 }
4037 return NULL;
d14a1e28
RD
4038}
4039
4040
0085ce49
RD
4041SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4042 PyObject *resultobj = 0;
4043 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4044 wxBitmap result;
4045 void *argp1 = 0 ;
4046 int res1 = 0 ;
4047 PyObject *swig_obj[1] ;
4048
4049 if (!args) SWIG_fail;
4050 swig_obj[0] = args;
4051 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4052 if (!SWIG_IsOK(res1)) {
4053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4054 }
4055 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4056 {
4057 PyThreadState* __tstate = wxPyBeginAllowThreads();
4058 result = (arg1)->GetBitmapLabel();
4059 wxPyEndAllowThreads(__tstate);
4060 if (PyErr_Occurred()) SWIG_fail;
4061 }
4062 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4063 return resultobj;
4064fail:
4065 return NULL;
d14a1e28
RD
4066}
4067
4068
0085ce49
RD
4069SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4070 PyObject *resultobj = 0;
4071 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4072 wxBitmap result;
4073 void *argp1 = 0 ;
4074 int res1 = 0 ;
4075 PyObject *swig_obj[1] ;
4076
4077 if (!args) SWIG_fail;
4078 swig_obj[0] = args;
4079 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4080 if (!SWIG_IsOK(res1)) {
4081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4082 }
4083 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4084 {
4085 PyThreadState* __tstate = wxPyBeginAllowThreads();
4086 result = (arg1)->GetBitmapDisabled();
4087 wxPyEndAllowThreads(__tstate);
4088 if (PyErr_Occurred()) SWIG_fail;
4089 }
4090 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4091 return resultobj;
4092fail:
4093 return NULL;
d14a1e28
RD
4094}
4095
4096
0085ce49
RD
4097SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4098 PyObject *resultobj = 0;
4099 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4100 wxBitmap result;
4101 void *argp1 = 0 ;
4102 int res1 = 0 ;
4103 PyObject *swig_obj[1] ;
4104
4105 if (!args) SWIG_fail;
4106 swig_obj[0] = args;
4107 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4108 if (!SWIG_IsOK(res1)) {
4109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4110 }
4111 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4112 {
4113 PyThreadState* __tstate = wxPyBeginAllowThreads();
4114 result = (arg1)->GetBitmapFocus();
4115 wxPyEndAllowThreads(__tstate);
4116 if (PyErr_Occurred()) SWIG_fail;
4117 }
4118 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4119 return resultobj;
4120fail:
4121 return NULL;
d14a1e28
RD
4122}
4123
4124
0085ce49
RD
4125SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4126 PyObject *resultobj = 0;
4127 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4128 wxBitmap result;
4129 void *argp1 = 0 ;
4130 int res1 = 0 ;
4131 PyObject *swig_obj[1] ;
4132
4133 if (!args) SWIG_fail;
4134 swig_obj[0] = args;
4135 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4136 if (!SWIG_IsOK(res1)) {
4137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4138 }
4139 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4140 {
4141 PyThreadState* __tstate = wxPyBeginAllowThreads();
4142 result = (arg1)->GetBitmapSelected();
4143 wxPyEndAllowThreads(__tstate);
4144 if (PyErr_Occurred()) SWIG_fail;
4145 }
4146 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4147 return resultobj;
4148fail:
4149 return NULL;
d14a1e28
RD
4150}
4151
4152
0085ce49
RD
4153SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4154 PyObject *resultobj = 0;
4155 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4156 wxBitmap result;
4157 void *argp1 = 0 ;
4158 int res1 = 0 ;
4159 PyObject *swig_obj[1] ;
4160
4161 if (!args) SWIG_fail;
4162 swig_obj[0] = args;
4163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4164 if (!SWIG_IsOK(res1)) {
4165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4166 }
4167 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4168 {
4169 PyThreadState* __tstate = wxPyBeginAllowThreads();
4170 result = (arg1)->GetBitmapHover();
4171 wxPyEndAllowThreads(__tstate);
4172 if (PyErr_Occurred()) SWIG_fail;
4173 }
4174 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4175 return resultobj;
4176fail:
4177 return NULL;
4178}
4179
4180
4181SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4182 PyObject *resultobj = 0;
4183 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4184 wxBitmap *arg2 = 0 ;
4185 void *argp1 = 0 ;
4186 int res1 = 0 ;
4187 void *argp2 = 0 ;
4188 int res2 = 0 ;
4189 PyObject * obj0 = 0 ;
4190 PyObject * obj1 = 0 ;
4191 char * kwnames[] = {
4192 (char *) "self",(char *) "bitmap", NULL
4193 };
4194
4195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) SWIG_fail;
4196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4197 if (!SWIG_IsOK(res1)) {
4198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4199 }
4200 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4201 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4202 if (!SWIG_IsOK(res2)) {
4203 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4204 }
4205 if (!argp2) {
4206 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4207 }
4208 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4209 {
4210 PyThreadState* __tstate = wxPyBeginAllowThreads();
4211 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
4212 wxPyEndAllowThreads(__tstate);
4213 if (PyErr_Occurred()) SWIG_fail;
4214 }
4215 resultobj = SWIG_Py_Void();
4216 return resultobj;
4217fail:
4218 return NULL;
4219}
4220
4221
4222SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4223 PyObject *resultobj = 0;
4224 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4225 wxBitmap *arg2 = 0 ;
4226 void *argp1 = 0 ;
4227 int res1 = 0 ;
4228 void *argp2 = 0 ;
4229 int res2 = 0 ;
4230 PyObject * obj0 = 0 ;
4231 PyObject * obj1 = 0 ;
4232 char * kwnames[] = {
4233 (char *) "self",(char *) "bitmap", NULL
4234 };
4235
4236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) SWIG_fail;
4237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4238 if (!SWIG_IsOK(res1)) {
4239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4240 }
4241 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4242 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4243 if (!SWIG_IsOK(res2)) {
4244 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4245 }
4246 if (!argp2) {
4247 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4248 }
4249 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4250 {
4251 PyThreadState* __tstate = wxPyBeginAllowThreads();
4252 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
4253 wxPyEndAllowThreads(__tstate);
4254 if (PyErr_Occurred()) SWIG_fail;
4255 }
4256 resultobj = SWIG_Py_Void();
4257 return resultobj;
4258fail:
4259 return NULL;
4260}
4261
4262
4263SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4264 PyObject *resultobj = 0;
4265 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4266 wxBitmap *arg2 = 0 ;
4267 void *argp1 = 0 ;
4268 int res1 = 0 ;
4269 void *argp2 = 0 ;
4270 int res2 = 0 ;
4271 PyObject * obj0 = 0 ;
4272 PyObject * obj1 = 0 ;
4273 char * kwnames[] = {
4274 (char *) "self",(char *) "bitmap", NULL
4275 };
4276
4277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) SWIG_fail;
4278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4279 if (!SWIG_IsOK(res1)) {
4280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4281 }
4282 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4283 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4284 if (!SWIG_IsOK(res2)) {
4285 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4286 }
4287 if (!argp2) {
4288 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4289 }
4290 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4291 {
4292 PyThreadState* __tstate = wxPyBeginAllowThreads();
4293 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
4294 wxPyEndAllowThreads(__tstate);
4295 if (PyErr_Occurred()) SWIG_fail;
4296 }
4297 resultobj = SWIG_Py_Void();
4298 return resultobj;
4299fail:
4300 return NULL;
4301}
4302
4303
4304SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4305 PyObject *resultobj = 0;
4306 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4307 wxBitmap *arg2 = 0 ;
4308 void *argp1 = 0 ;
4309 int res1 = 0 ;
4310 void *argp2 = 0 ;
4311 int res2 = 0 ;
4312 PyObject * obj0 = 0 ;
4313 PyObject * obj1 = 0 ;
4314 char * kwnames[] = {
4315 (char *) "self",(char *) "bitmap", NULL
4316 };
4317
4318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) SWIG_fail;
4319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4320 if (!SWIG_IsOK(res1)) {
4321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4322 }
4323 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4324 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4325 if (!SWIG_IsOK(res2)) {
4326 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4327 }
4328 if (!argp2) {
4329 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4330 }
4331 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4332 {
4333 PyThreadState* __tstate = wxPyBeginAllowThreads();
4334 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
4335 wxPyEndAllowThreads(__tstate);
4336 if (PyErr_Occurred()) SWIG_fail;
4337 }
4338 resultobj = SWIG_Py_Void();
4339 return resultobj;
4340fail:
4341 return NULL;
4342}
4343
4344
4345SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4346 PyObject *resultobj = 0;
4347 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4348 wxBitmap *arg2 = 0 ;
4349 void *argp1 = 0 ;
4350 int res1 = 0 ;
4351 void *argp2 = 0 ;
4352 int res2 = 0 ;
4353 PyObject * obj0 = 0 ;
4354 PyObject * obj1 = 0 ;
4355 char * kwnames[] = {
4356 (char *) "self",(char *) "hover", NULL
4357 };
4358
4359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapHover",kwnames,&obj0,&obj1)) SWIG_fail;
4360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4361 if (!SWIG_IsOK(res1)) {
4362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4363 }
4364 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4365 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4366 if (!SWIG_IsOK(res2)) {
4367 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4368 }
4369 if (!argp2) {
4370 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4371 }
4372 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4373 {
4374 PyThreadState* __tstate = wxPyBeginAllowThreads();
4375 (arg1)->SetBitmapHover((wxBitmap const &)*arg2);
4376 wxPyEndAllowThreads(__tstate);
4377 if (PyErr_Occurred()) SWIG_fail;
4378 }
4379 resultobj = SWIG_Py_Void();
4380 return resultobj;
4381fail:
4382 return NULL;
4383}
4384
4385
4386SWIGINTERN PyObject *_wrap_BitmapButton_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4387 PyObject *resultobj = 0;
4388 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4389 int arg2 ;
4390 int arg3 ;
4391 void *argp1 = 0 ;
4392 int res1 = 0 ;
4393 int val2 ;
4394 int ecode2 = 0 ;
4395 int val3 ;
4396 int ecode3 = 0 ;
4397 PyObject * obj0 = 0 ;
4398 PyObject * obj1 = 0 ;
4399 PyObject * obj2 = 0 ;
4400 char * kwnames[] = {
4401 (char *) "self",(char *) "x",(char *) "y", NULL
4402 };
4403
4404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4406 if (!SWIG_IsOK(res1)) {
4407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetMargins" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4408 }
4409 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4410 ecode2 = SWIG_AsVal_int(obj1, &val2);
4411 if (!SWIG_IsOK(ecode2)) {
4412 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BitmapButton_SetMargins" "', expected argument " "2"" of type '" "int""'");
4413 }
4414 arg2 = static_cast< int >(val2);
4415 ecode3 = SWIG_AsVal_int(obj2, &val3);
4416 if (!SWIG_IsOK(ecode3)) {
4417 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_SetMargins" "', expected argument " "3"" of type '" "int""'");
4418 }
4419 arg3 = static_cast< int >(val3);
4420 {
4421 PyThreadState* __tstate = wxPyBeginAllowThreads();
4422 (arg1)->SetMargins(arg2,arg3);
4423 wxPyEndAllowThreads(__tstate);
4424 if (PyErr_Occurred()) SWIG_fail;
4425 }
4426 resultobj = SWIG_Py_Void();
4427 return resultobj;
4428fail:
4429 return NULL;
d14a1e28
RD
4430}
4431
4432
0085ce49
RD
4433SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4434 PyObject *resultobj = 0;
4435 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4436 int result;
4437 void *argp1 = 0 ;
4438 int res1 = 0 ;
4439 PyObject *swig_obj[1] ;
4440
4441 if (!args) SWIG_fail;
4442 swig_obj[0] = args;
4443 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4444 if (!SWIG_IsOK(res1)) {
4445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginX" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4446 }
4447 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4448 {
4449 PyThreadState* __tstate = wxPyBeginAllowThreads();
4450 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
4451 wxPyEndAllowThreads(__tstate);
4452 if (PyErr_Occurred()) SWIG_fail;
4453 }
4454 resultobj = SWIG_From_int(static_cast< int >(result));
4455 return resultobj;
4456fail:
4457 return NULL;
d14a1e28
RD
4458}
4459
4460
0085ce49
RD
4461SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4462 PyObject *resultobj = 0;
4463 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4464 int result;
4465 void *argp1 = 0 ;
4466 int res1 = 0 ;
4467 PyObject *swig_obj[1] ;
4468
4469 if (!args) SWIG_fail;
4470 swig_obj[0] = args;
4471 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4472 if (!SWIG_IsOK(res1)) {
4473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginY" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4474 }
4475 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4476 {
4477 PyThreadState* __tstate = wxPyBeginAllowThreads();
4478 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
4479 wxPyEndAllowThreads(__tstate);
4480 if (PyErr_Occurred()) SWIG_fail;
4481 }
4482 resultobj = SWIG_From_int(static_cast< int >(result));
4483 return resultobj;
4484fail:
4485 return NULL;
b1fcee84
RD
4486}
4487
4488
0085ce49
RD
4489SWIGINTERN PyObject *BitmapButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4490 PyObject *obj;
4491 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4492 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmapButton, SWIG_NewClientData(obj));
4493 return SWIG_Py_Void();
d14a1e28
RD
4494}
4495
0085ce49
RD
4496SWIGINTERN PyObject *BitmapButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4497 return SWIG_Python_InitShadowInstance(args);
4498}
d14a1e28 4499
0085ce49
RD
4500SWIGINTERN int CheckBoxNameStr_set(PyObject *) {
4501 SWIG_Error(SWIG_AttributeError,"Variable CheckBoxNameStr is read-only.");
4502 return 1;
d14a1e28
RD
4503}
4504
4505
0085ce49
RD
4506SWIGINTERN PyObject *CheckBoxNameStr_get(void) {
4507 PyObject *pyobj = 0;
4508
4509 {
4510#if wxUSE_UNICODE
4511 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4512#else
4513 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4514#endif
4515 }
4516 return pyobj;
4517}
4518
4519
4520SWIGINTERN PyObject *_wrap_new_CheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4521 PyObject *resultobj = 0;
4522 wxWindow *arg1 = (wxWindow *) 0 ;
4523 int arg2 = (int) -1 ;
4524 wxString const &arg3_defvalue = wxPyEmptyString ;
4525 wxString *arg3 = (wxString *) &arg3_defvalue ;
4526 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4527 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4528 wxSize const &arg5_defvalue = wxDefaultSize ;
4529 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4530 long arg6 = (long) 0 ;
4531 wxValidator const &arg7_defvalue = wxDefaultValidator ;
4532 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
4533 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
4534 wxString *arg8 = (wxString *) &arg8_defvalue ;
4535 wxCheckBox *result = 0 ;
4536 void *argp1 = 0 ;
4537 int res1 = 0 ;
4538 int val2 ;
4539 int ecode2 = 0 ;
4540 bool temp3 = false ;
4541 wxPoint temp4 ;
4542 wxSize temp5 ;
4543 long val6 ;
4544 int ecode6 = 0 ;
4545 void *argp7 = 0 ;
4546 int res7 = 0 ;
4547 bool temp8 = false ;
4548 PyObject * obj0 = 0 ;
4549 PyObject * obj1 = 0 ;
4550 PyObject * obj2 = 0 ;
4551 PyObject * obj3 = 0 ;
4552 PyObject * obj4 = 0 ;
4553 PyObject * obj5 = 0 ;
4554 PyObject * obj6 = 0 ;
4555 PyObject * obj7 = 0 ;
4556 char * kwnames[] = {
4557 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4558 };
4559
4560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
4561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
4562 if (!SWIG_IsOK(res1)) {
4563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckBox" "', expected argument " "1"" of type '" "wxWindow *""'");
4564 }
4565 arg1 = reinterpret_cast< wxWindow * >(argp1);
4566 if (obj1) {
4567 ecode2 = SWIG_AsVal_int(obj1, &val2);
4568 if (!SWIG_IsOK(ecode2)) {
4569 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckBox" "', expected argument " "2"" of type '" "int""'");
4570 }
4571 arg2 = static_cast< int >(val2);
4572 }
4573 if (obj2) {
d14a1e28 4574 {
0085ce49
RD
4575 arg3 = wxString_in_helper(obj2);
4576 if (arg3 == NULL) SWIG_fail;
4577 temp3 = true;
d14a1e28 4578 }
0085ce49
RD
4579 }
4580 if (obj3) {
4581 {
4582 arg4 = &temp4;
4583 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 4584 }
0085ce49
RD
4585 }
4586 if (obj4) {
d14a1e28 4587 {
0085ce49
RD
4588 arg5 = &temp5;
4589 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 4590 }
0085ce49
RD
4591 }
4592 if (obj5) {
4593 ecode6 = SWIG_AsVal_long(obj5, &val6);
4594 if (!SWIG_IsOK(ecode6)) {
4595 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckBox" "', expected argument " "6"" of type '" "long""'");
4596 }
4597 arg6 = static_cast< long >(val6);
4598 }
4599 if (obj6) {
4600 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
4601 if (!SWIG_IsOK(res7)) {
4602 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
b1fcee84 4603 }
0085ce49
RD
4604 if (!argp7) {
4605 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4606 }
4607 arg7 = reinterpret_cast< wxValidator * >(argp7);
4608 }
4609 if (obj7) {
b1fcee84 4610 {
0085ce49
RD
4611 arg8 = wxString_in_helper(obj7);
4612 if (arg8 == NULL) SWIG_fail;
4613 temp8 = true;
b1fcee84 4614 }
0085ce49
RD
4615 }
4616 {
4617 if (!wxPyCheckForApp()) SWIG_fail;
4618 PyThreadState* __tstate = wxPyBeginAllowThreads();
4619 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
4620 wxPyEndAllowThreads(__tstate);
4621 if (PyErr_Occurred()) SWIG_fail;
4622 }
4623 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_NEW | 0 );
4624 {
4625 if (temp3)
4626 delete arg3;
4627 }
4628 {
4629 if (temp8)
4630 delete arg8;
4631 }
4632 return resultobj;
4633fail:
4634 {
4635 if (temp3)
4636 delete arg3;
4637 }
4638 {
4639 if (temp8)
4640 delete arg8;
4641 }
4642 return NULL;
b1fcee84
RD
4643}
4644
4645
0085ce49
RD
4646SWIGINTERN PyObject *_wrap_new_PreCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4647 PyObject *resultobj = 0;
4648 wxCheckBox *result = 0 ;
4649
4650 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckBox",0,0,0)) SWIG_fail;
4651 {
4652 if (!wxPyCheckForApp()) SWIG_fail;
4653 PyThreadState* __tstate = wxPyBeginAllowThreads();
4654 result = (wxCheckBox *)new wxCheckBox();
4655 wxPyEndAllowThreads(__tstate);
4656 if (PyErr_Occurred()) SWIG_fail;
4657 }
4658 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_OWN | 0 );
4659 return resultobj;
4660fail:
4661 return NULL;
4662}
4663
4664
4665SWIGINTERN PyObject *_wrap_CheckBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4666 PyObject *resultobj = 0;
4667 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4668 wxWindow *arg2 = (wxWindow *) 0 ;
4669 int arg3 = (int) -1 ;
4670 wxString const &arg4_defvalue = wxPyEmptyString ;
4671 wxString *arg4 = (wxString *) &arg4_defvalue ;
4672 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4673 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4674 wxSize const &arg6_defvalue = wxDefaultSize ;
4675 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4676 long arg7 = (long) 0 ;
4677 wxValidator const &arg8_defvalue = wxDefaultValidator ;
4678 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
4679 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
4680 wxString *arg9 = (wxString *) &arg9_defvalue ;
4681 bool result;
4682 void *argp1 = 0 ;
4683 int res1 = 0 ;
4684 void *argp2 = 0 ;
4685 int res2 = 0 ;
4686 int val3 ;
4687 int ecode3 = 0 ;
4688 bool temp4 = false ;
4689 wxPoint temp5 ;
4690 wxSize temp6 ;
4691 long val7 ;
4692 int ecode7 = 0 ;
4693 void *argp8 = 0 ;
4694 int res8 = 0 ;
4695 bool temp9 = false ;
4696 PyObject * obj0 = 0 ;
4697 PyObject * obj1 = 0 ;
4698 PyObject * obj2 = 0 ;
4699 PyObject * obj3 = 0 ;
4700 PyObject * obj4 = 0 ;
4701 PyObject * obj5 = 0 ;
4702 PyObject * obj6 = 0 ;
4703 PyObject * obj7 = 0 ;
4704 PyObject * obj8 = 0 ;
4705 char * kwnames[] = {
4706 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4707 };
4708
4709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
4710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4711 if (!SWIG_IsOK(res1)) {
4712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Create" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4713 }
4714 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4715 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
4716 if (!SWIG_IsOK(res2)) {
4717 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
4718 }
4719 arg2 = reinterpret_cast< wxWindow * >(argp2);
4720 if (obj2) {
4721 ecode3 = SWIG_AsVal_int(obj2, &val3);
4722 if (!SWIG_IsOK(ecode3)) {
4723 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckBox_Create" "', expected argument " "3"" of type '" "int""'");
4724 }
4725 arg3 = static_cast< int >(val3);
4726 }
4727 if (obj3) {
093d3ff1 4728 {
0085ce49
RD
4729 arg4 = wxString_in_helper(obj3);
4730 if (arg4 == NULL) SWIG_fail;
4731 temp4 = true;
093d3ff1 4732 }
0085ce49
RD
4733 }
4734 if (obj4) {
093d3ff1 4735 {
0085ce49
RD
4736 arg5 = &temp5;
4737 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 4738 }
0085ce49
RD
4739 }
4740 if (obj5) {
d14a1e28 4741 {
0085ce49
RD
4742 arg6 = &temp6;
4743 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d14a1e28 4744 }
0085ce49
RD
4745 }
4746 if (obj6) {
4747 ecode7 = SWIG_AsVal_long(obj6, &val7);
4748 if (!SWIG_IsOK(ecode7)) {
4749 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckBox_Create" "', expected argument " "7"" of type '" "long""'");
4750 }
4751 arg7 = static_cast< long >(val7);
4752 }
4753 if (obj7) {
4754 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4755 if (!SWIG_IsOK(res8)) {
4756 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 4757 }
0085ce49
RD
4758 if (!argp8) {
4759 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4760 }
4761 arg8 = reinterpret_cast< wxValidator * >(argp8);
4762 }
4763 if (obj8) {
093d3ff1 4764 {
0085ce49
RD
4765 arg9 = wxString_in_helper(obj8);
4766 if (arg9 == NULL) SWIG_fail;
4767 temp9 = true;
093d3ff1 4768 }
0085ce49
RD
4769 }
4770 {
4771 PyThreadState* __tstate = wxPyBeginAllowThreads();
4772 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4773 wxPyEndAllowThreads(__tstate);
4774 if (PyErr_Occurred()) SWIG_fail;
4775 }
4776 {
4777 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4778 }
4779 {
4780 if (temp4)
4781 delete arg4;
4782 }
4783 {
4784 if (temp9)
4785 delete arg9;
4786 }
4787 return resultobj;
4788fail:
4789 {
4790 if (temp4)
4791 delete arg4;
4792 }
4793 {
4794 if (temp9)
4795 delete arg9;
4796 }
4797 return NULL;
d14a1e28
RD
4798}
4799
4800
0085ce49
RD
4801SWIGINTERN PyObject *_wrap_CheckBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4802 PyObject *resultobj = 0;
4803 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4804 bool result;
4805 void *argp1 = 0 ;
4806 int res1 = 0 ;
4807 PyObject *swig_obj[1] ;
4808
4809 if (!args) SWIG_fail;
4810 swig_obj[0] = args;
4811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4812 if (!SWIG_IsOK(res1)) {
4813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_GetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4814 }
4815 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4816 {
4817 PyThreadState* __tstate = wxPyBeginAllowThreads();
4818 result = (bool)(arg1)->GetValue();
4819 wxPyEndAllowThreads(__tstate);
4820 if (PyErr_Occurred()) SWIG_fail;
4821 }
4822 {
4823 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4824 }
4825 return resultobj;
4826fail:
4827 return NULL;
d14a1e28
RD
4828}
4829
4830
0085ce49
RD
4831SWIGINTERN PyObject *_wrap_CheckBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4832 PyObject *resultobj = 0;
4833 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4834 bool result;
4835 void *argp1 = 0 ;
4836 int res1 = 0 ;
4837 PyObject *swig_obj[1] ;
4838
4839 if (!args) SWIG_fail;
4840 swig_obj[0] = args;
4841 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4842 if (!SWIG_IsOK(res1)) {
4843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4844 }
4845 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4846 {
4847 PyThreadState* __tstate = wxPyBeginAllowThreads();
4848 result = (bool)(arg1)->IsChecked();
4849 wxPyEndAllowThreads(__tstate);
4850 if (PyErr_Occurred()) SWIG_fail;
4851 }
4852 {
4853 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4854 }
4855 return resultobj;
4856fail:
4857 return NULL;
4858}
4859
4860
4861SWIGINTERN PyObject *_wrap_CheckBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4862 PyObject *resultobj = 0;
4863 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4864 bool arg2 ;
4865 void *argp1 = 0 ;
4866 int res1 = 0 ;
4867 bool val2 ;
4868 int ecode2 = 0 ;
4869 PyObject * obj0 = 0 ;
4870 PyObject * obj1 = 0 ;
4871 char * kwnames[] = {
4872 (char *) "self",(char *) "state", NULL
4873 };
4874
4875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
4876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4877 if (!SWIG_IsOK(res1)) {
4878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_SetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4879 }
4880 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4881 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4882 if (!SWIG_IsOK(ecode2)) {
4883 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_SetValue" "', expected argument " "2"" of type '" "bool""'");
4884 }
4885 arg2 = static_cast< bool >(val2);
4886 {
4887 PyThreadState* __tstate = wxPyBeginAllowThreads();
4888 (arg1)->SetValue(arg2);
4889 wxPyEndAllowThreads(__tstate);
4890 if (PyErr_Occurred()) SWIG_fail;
4891 }
4892 resultobj = SWIG_Py_Void();
4893 return resultobj;
4894fail:
4895 return NULL;
d14a1e28 4896}
0085ce49
RD
4897
4898
4899SWIGINTERN PyObject *_wrap_CheckBox_Get3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4900 PyObject *resultobj = 0;
4901 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4902 wxCheckBoxState result;
4903 void *argp1 = 0 ;
4904 int res1 = 0 ;
4905 PyObject *swig_obj[1] ;
4906
4907 if (!args) SWIG_fail;
4908 swig_obj[0] = args;
4909 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4910 if (!SWIG_IsOK(res1)) {
4911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Get3StateValue" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4912 }
4913 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4914 {
4915 PyThreadState* __tstate = wxPyBeginAllowThreads();
4916 result = (wxCheckBoxState)((wxCheckBox const *)arg1)->Get3StateValue();
4917 wxPyEndAllowThreads(__tstate);
4918 if (PyErr_Occurred()) SWIG_fail;
4919 }
4920 resultobj = SWIG_From_int(static_cast< int >(result));
4921 return resultobj;
4922fail:
4923 return NULL;
4924}
4925
4926
4927SWIGINTERN PyObject *_wrap_CheckBox_Set3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4928 PyObject *resultobj = 0;
4929 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4930 wxCheckBoxState arg2 ;
4931 void *argp1 = 0 ;
4932 int res1 = 0 ;
4933 int val2 ;
4934 int ecode2 = 0 ;
4935 PyObject * obj0 = 0 ;
4936 PyObject * obj1 = 0 ;
4937 char * kwnames[] = {
4938 (char *) "self",(char *) "state", NULL
4939 };
4940
4941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) SWIG_fail;
4942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4943 if (!SWIG_IsOK(res1)) {
4944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Set3StateValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4945 }
4946 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4947 ecode2 = SWIG_AsVal_int(obj1, &val2);
4948 if (!SWIG_IsOK(ecode2)) {
4949 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_Set3StateValue" "', expected argument " "2"" of type '" "wxCheckBoxState""'");
4950 }
4951 arg2 = static_cast< wxCheckBoxState >(val2);
4952 {
4953 PyThreadState* __tstate = wxPyBeginAllowThreads();
4954 (arg1)->Set3StateValue(arg2);
4955 wxPyEndAllowThreads(__tstate);
4956 if (PyErr_Occurred()) SWIG_fail;
4957 }
4958 resultobj = SWIG_Py_Void();
4959 return resultobj;
4960fail:
4961 return NULL;
b2dc1044
RD
4962}
4963
4964
0085ce49
RD
4965SWIGINTERN PyObject *_wrap_CheckBox_Is3State(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4966 PyObject *resultobj = 0;
4967 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4968 bool result;
4969 void *argp1 = 0 ;
4970 int res1 = 0 ;
4971 PyObject *swig_obj[1] ;
4972
4973 if (!args) SWIG_fail;
4974 swig_obj[0] = args;
4975 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4976 if (!SWIG_IsOK(res1)) {
4977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3State" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4978 }
4979 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4980 {
4981 PyThreadState* __tstate = wxPyBeginAllowThreads();
4982 result = (bool)((wxCheckBox const *)arg1)->Is3State();
4983 wxPyEndAllowThreads(__tstate);
4984 if (PyErr_Occurred()) SWIG_fail;
4985 }
4986 {
4987 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4988 }
4989 return resultobj;
4990fail:
4991 return NULL;
d14a1e28
RD
4992}
4993
4994
0085ce49
RD
4995SWIGINTERN PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4996 PyObject *resultobj = 0;
4997 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4998 bool result;
4999 void *argp1 = 0 ;
5000 int res1 = 0 ;
5001 PyObject *swig_obj[1] ;
5002
5003 if (!args) SWIG_fail;
5004 swig_obj[0] = args;
5005 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
5006 if (!SWIG_IsOK(res1)) {
5007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3rdStateAllowedForUser" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
5008 }
5009 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
5010 {
5011 PyThreadState* __tstate = wxPyBeginAllowThreads();
5012 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
5013 wxPyEndAllowThreads(__tstate);
5014 if (PyErr_Occurred()) SWIG_fail;
5015 }
5016 {
5017 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5018 }
5019 return resultobj;
5020fail:
5021 return NULL;
d14a1e28
RD
5022}
5023
5024
0085ce49
RD
5025SWIGINTERN PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5026 PyObject *resultobj = 0;
5027 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5028 SwigValueWrapper<wxVisualAttributes > result;
5029 int val1 ;
5030 int ecode1 = 0 ;
5031 PyObject * obj0 = 0 ;
5032 char * kwnames[] = {
5033 (char *) "variant", NULL
5034 };
5035
5036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5037 if (obj0) {
5038 ecode1 = SWIG_AsVal_int(obj0, &val1);
5039 if (!SWIG_IsOK(ecode1)) {
5040 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CheckBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5041 }
5042 arg1 = static_cast< wxWindowVariant >(val1);
5043 }
5044 {
5045 if (!wxPyCheckForApp()) SWIG_fail;
5046 PyThreadState* __tstate = wxPyBeginAllowThreads();
5047 result = wxCheckBox::GetClassDefaultAttributes(arg1);
5048 wxPyEndAllowThreads(__tstate);
5049 if (PyErr_Occurred()) SWIG_fail;
5050 }
5051 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5052 return resultobj;
5053fail:
5054 return NULL;
d14a1e28
RD
5055}
5056
5057
0085ce49
RD
5058SWIGINTERN PyObject *CheckBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5059 PyObject *obj;
5060 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5061 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckBox, SWIG_NewClientData(obj));
5062 return SWIG_Py_Void();
d14a1e28
RD
5063}
5064
0085ce49
RD
5065SWIGINTERN PyObject *CheckBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5066 return SWIG_Python_InitShadowInstance(args);
5067}
d14a1e28 5068
0085ce49
RD
5069SWIGINTERN int ChoiceNameStr_set(PyObject *) {
5070 SWIG_Error(SWIG_AttributeError,"Variable ChoiceNameStr is read-only.");
5071 return 1;
d14a1e28
RD
5072}
5073
5074
0085ce49
RD
5075SWIGINTERN PyObject *ChoiceNameStr_get(void) {
5076 PyObject *pyobj = 0;
5077
5078 {
5079#if wxUSE_UNICODE
5080 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5081#else
5082 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5083#endif
5084 }
5085 return pyobj;
5086}
5087
5088
5089SWIGINTERN PyObject *_wrap_new_Choice(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5090 PyObject *resultobj = 0;
5091 wxWindow *arg1 = (wxWindow *) 0 ;
5092 int arg2 = (int) -1 ;
5093 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5094 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5095 wxSize const &arg4_defvalue = wxDefaultSize ;
5096 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5097 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5098 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5099 long arg6 = (long) 0 ;
5100 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5101 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5102 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
5103 wxString *arg8 = (wxString *) &arg8_defvalue ;
5104 wxChoice *result = 0 ;
5105 void *argp1 = 0 ;
5106 int res1 = 0 ;
5107 int val2 ;
5108 int ecode2 = 0 ;
5109 wxPoint temp3 ;
5110 wxSize temp4 ;
5111 bool temp5 = false ;
5112 long val6 ;
5113 int ecode6 = 0 ;
5114 void *argp7 = 0 ;
5115 int res7 = 0 ;
5116 bool temp8 = false ;
5117 PyObject * obj0 = 0 ;
5118 PyObject * obj1 = 0 ;
5119 PyObject * obj2 = 0 ;
5120 PyObject * obj3 = 0 ;
5121 PyObject * obj4 = 0 ;
5122 PyObject * obj5 = 0 ;
5123 PyObject * obj6 = 0 ;
5124 PyObject * obj7 = 0 ;
5125 char * kwnames[] = {
5126 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5127 };
5128
5129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
5130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5131 if (!SWIG_IsOK(res1)) {
5132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choice" "', expected argument " "1"" of type '" "wxWindow *""'");
5133 }
5134 arg1 = reinterpret_cast< wxWindow * >(argp1);
5135 if (obj1) {
5136 ecode2 = SWIG_AsVal_int(obj1, &val2);
5137 if (!SWIG_IsOK(ecode2)) {
5138 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choice" "', expected argument " "2"" of type '" "int""'");
5139 }
5140 arg2 = static_cast< int >(val2);
5141 }
5142 if (obj2) {
093d3ff1 5143 {
0085ce49
RD
5144 arg3 = &temp3;
5145 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 5146 }
0085ce49
RD
5147 }
5148 if (obj3) {
d14a1e28 5149 {
0085ce49
RD
5150 arg4 = &temp4;
5151 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 5152 }
0085ce49
RD
5153 }
5154 if (obj4) {
d14a1e28 5155 {
0085ce49
RD
5156 if (! PySequence_Check(obj4)) {
5157 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5158 SWIG_fail;
5159 }
5160 arg5 = new wxArrayString;
5161 temp5 = true;
5162 int i, len=PySequence_Length(obj4);
5163 for (i=0; i<len; i++) {
5164 PyObject* item = PySequence_GetItem(obj4, i);
5165 wxString* s = wxString_in_helper(item);
5166 if (PyErr_Occurred()) SWIG_fail;
5167 arg5->Add(*s);
5168 delete s;
5169 Py_DECREF(item);
5170 }
d14a1e28 5171 }
0085ce49
RD
5172 }
5173 if (obj5) {
5174 ecode6 = SWIG_AsVal_long(obj5, &val6);
5175 if (!SWIG_IsOK(ecode6)) {
5176 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Choice" "', expected argument " "6"" of type '" "long""'");
5177 }
5178 arg6 = static_cast< long >(val6);
5179 }
5180 if (obj6) {
5181 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
5182 if (!SWIG_IsOK(res7)) {
5183 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
093d3ff1 5184 }
0085ce49
RD
5185 if (!argp7) {
5186 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5187 }
5188 arg7 = reinterpret_cast< wxValidator * >(argp7);
5189 }
5190 if (obj7) {
d14a1e28 5191 {
0085ce49
RD
5192 arg8 = wxString_in_helper(obj7);
5193 if (arg8 == NULL) SWIG_fail;
5194 temp8 = true;
d14a1e28 5195 }
0085ce49
RD
5196 }
5197 {
5198 if (!wxPyCheckForApp()) SWIG_fail;
5199 PyThreadState* __tstate = wxPyBeginAllowThreads();
5200 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5201 wxPyEndAllowThreads(__tstate);
5202 if (PyErr_Occurred()) SWIG_fail;
5203 }
5204 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_NEW | 0 );
5205 {
5206 if (temp5) delete arg5;
5207 }
5208 {
5209 if (temp8)
5210 delete arg8;
5211 }
5212 return resultobj;
5213fail:
5214 {
5215 if (temp5) delete arg5;
5216 }
5217 {
5218 if (temp8)
5219 delete arg8;
5220 }
5221 return NULL;
d14a1e28
RD
5222}
5223
5224
0085ce49
RD
5225SWIGINTERN PyObject *_wrap_new_PreChoice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5226 PyObject *resultobj = 0;
5227 wxChoice *result = 0 ;
5228
5229 if (!SWIG_Python_UnpackTuple(args,"new_PreChoice",0,0,0)) SWIG_fail;
5230 {
5231 if (!wxPyCheckForApp()) SWIG_fail;
5232 PyThreadState* __tstate = wxPyBeginAllowThreads();
5233 result = (wxChoice *)new wxChoice();
5234 wxPyEndAllowThreads(__tstate);
5235 if (PyErr_Occurred()) SWIG_fail;
5236 }
5237 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_OWN | 0 );
5238 return resultobj;
5239fail:
5240 return NULL;
5241}
5242
5243
5244SWIGINTERN PyObject *_wrap_Choice_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5245 PyObject *resultobj = 0;
5246 wxChoice *arg1 = (wxChoice *) 0 ;
5247 wxWindow *arg2 = (wxWindow *) 0 ;
5248 int arg3 = (int) -1 ;
5249 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5250 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5251 wxSize const &arg5_defvalue = wxDefaultSize ;
5252 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5253 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5254 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5255 long arg7 = (long) 0 ;
5256 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5257 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5258 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
5259 wxString *arg9 = (wxString *) &arg9_defvalue ;
5260 bool result;
5261 void *argp1 = 0 ;
5262 int res1 = 0 ;
5263 void *argp2 = 0 ;
5264 int res2 = 0 ;
5265 int val3 ;
5266 int ecode3 = 0 ;
5267 wxPoint temp4 ;
5268 wxSize temp5 ;
5269 bool temp6 = false ;
5270 long val7 ;
5271 int ecode7 = 0 ;
5272 void *argp8 = 0 ;
5273 int res8 = 0 ;
5274 bool temp9 = false ;
5275 PyObject * obj0 = 0 ;
5276 PyObject * obj1 = 0 ;
5277 PyObject * obj2 = 0 ;
5278 PyObject * obj3 = 0 ;
5279 PyObject * obj4 = 0 ;
5280 PyObject * obj5 = 0 ;
5281 PyObject * obj6 = 0 ;
5282 PyObject * obj7 = 0 ;
5283 PyObject * obj8 = 0 ;
5284 char * kwnames[] = {
5285 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5286 };
5287
5288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5290 if (!SWIG_IsOK(res1)) {
5291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_Create" "', expected argument " "1"" of type '" "wxChoice *""'");
5292 }
5293 arg1 = reinterpret_cast< wxChoice * >(argp1);
5294 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5295 if (!SWIG_IsOK(res2)) {
5296 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choice_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5297 }
5298 arg2 = reinterpret_cast< wxWindow * >(argp2);
5299 if (obj2) {
5300 ecode3 = SWIG_AsVal_int(obj2, &val3);
5301 if (!SWIG_IsOK(ecode3)) {
5302 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choice_Create" "', expected argument " "3"" of type '" "int""'");
5303 }
5304 arg3 = static_cast< int >(val3);
5305 }
5306 if (obj3) {
d14a1e28 5307 {
0085ce49
RD
5308 arg4 = &temp4;
5309 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 5310 }
0085ce49
RD
5311 }
5312 if (obj4) {
4f89f6a3 5313 {
0085ce49
RD
5314 arg5 = &temp5;
5315 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4f89f6a3 5316 }
0085ce49
RD
5317 }
5318 if (obj5) {
d14a1e28 5319 {
0085ce49
RD
5320 if (! PySequence_Check(obj5)) {
5321 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5322 SWIG_fail;
5323 }
5324 arg6 = new wxArrayString;
5325 temp6 = true;
5326 int i, len=PySequence_Length(obj5);
5327 for (i=0; i<len; i++) {
5328 PyObject* item = PySequence_GetItem(obj5, i);
5329 wxString* s = wxString_in_helper(item);
5330 if (PyErr_Occurred()) SWIG_fail;
5331 arg6->Add(*s);
5332 delete s;
5333 Py_DECREF(item);
5334 }
5335 }
5336 }
5337 if (obj6) {
5338 ecode7 = SWIG_AsVal_long(obj6, &val7);
5339 if (!SWIG_IsOK(ecode7)) {
5340 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Choice_Create" "', expected argument " "7"" of type '" "long""'");
5341 }
5342 arg7 = static_cast< long >(val7);
5343 }
5344 if (obj7) {
5345 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5346 if (!SWIG_IsOK(res8)) {
5347 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 5348 }
0085ce49
RD
5349 if (!argp8) {
5350 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5351 }
5352 arg8 = reinterpret_cast< wxValidator * >(argp8);
5353 }
5354 if (obj8) {
4f89f6a3 5355 {
0085ce49
RD
5356 arg9 = wxString_in_helper(obj8);
5357 if (arg9 == NULL) SWIG_fail;
5358 temp9 = true;
4f89f6a3 5359 }
0085ce49
RD
5360 }
5361 {
5362 PyThreadState* __tstate = wxPyBeginAllowThreads();
5363 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5364 wxPyEndAllowThreads(__tstate);
5365 if (PyErr_Occurred()) SWIG_fail;
5366 }
5367 {
5368 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5369 }
5370 {
5371 if (temp6) delete arg6;
5372 }
5373 {
5374 if (temp9)
5375 delete arg9;
5376 }
5377 return resultobj;
5378fail:
5379 {
5380 if (temp6) delete arg6;
5381 }
5382 {
5383 if (temp9)
5384 delete arg9;
5385 }
5386 return NULL;
d14a1e28
RD
5387}
5388
5389
0085ce49
RD
5390SWIGINTERN PyObject *_wrap_Choice_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5391 PyObject *resultobj = 0;
5392 wxChoice *arg1 = (wxChoice *) 0 ;
5393 int result;
5394 void *argp1 = 0 ;
5395 int res1 = 0 ;
5396 PyObject *swig_obj[1] ;
5397
5398 if (!args) SWIG_fail;
5399 swig_obj[0] = args;
5400 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5401 if (!SWIG_IsOK(res1)) {
5402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_GetCurrentSelection" "', expected argument " "1"" of type '" "wxChoice const *""'");
5403 }
5404 arg1 = reinterpret_cast< wxChoice * >(argp1);
5405 {
5406 PyThreadState* __tstate = wxPyBeginAllowThreads();
5407 result = (int)((wxChoice const *)arg1)->GetCurrentSelection();
5408 wxPyEndAllowThreads(__tstate);
5409 if (PyErr_Occurred()) SWIG_fail;
5410 }
5411 resultobj = SWIG_From_int(static_cast< int >(result));
5412 return resultobj;
5413fail:
5414 return NULL;
5415}
5416
5417
5418SWIGINTERN PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5419 PyObject *resultobj = 0;
5420 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5421 SwigValueWrapper<wxVisualAttributes > result;
5422 int val1 ;
5423 int ecode1 = 0 ;
5424 PyObject * obj0 = 0 ;
5425 char * kwnames[] = {
5426 (char *) "variant", NULL
5427 };
5428
5429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5430 if (obj0) {
5431 ecode1 = SWIG_AsVal_int(obj0, &val1);
5432 if (!SWIG_IsOK(ecode1)) {
5433 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Choice_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5434 }
5435 arg1 = static_cast< wxWindowVariant >(val1);
5436 }
5437 {
5438 if (!wxPyCheckForApp()) SWIG_fail;
5439 PyThreadState* __tstate = wxPyBeginAllowThreads();
5440 result = wxChoice::GetClassDefaultAttributes(arg1);
5441 wxPyEndAllowThreads(__tstate);
5442 if (PyErr_Occurred()) SWIG_fail;
5443 }
5444 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5445 return resultobj;
5446fail:
5447 return NULL;
22bfe96c
RD
5448}
5449
5450
0085ce49
RD
5451SWIGINTERN PyObject *Choice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5452 PyObject *obj;
5453 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5454 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoice, SWIG_NewClientData(obj));
5455 return SWIG_Py_Void();
d14a1e28 5456}
0085ce49
RD
5457
5458SWIGINTERN PyObject *Choice_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5459 return SWIG_Python_InitShadowInstance(args);
5460}
5461
5462SWIGINTERN int ComboBoxNameStr_set(PyObject *) {
5463 SWIG_Error(SWIG_AttributeError,"Variable ComboBoxNameStr is read-only.");
5464 return 1;
b2dc1044
RD
5465}
5466
5467
0085ce49
RD
5468SWIGINTERN PyObject *ComboBoxNameStr_get(void) {
5469 PyObject *pyobj = 0;
5470
5471 {
b2dc1044 5472#if wxUSE_UNICODE
0085ce49 5473 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
b2dc1044 5474#else
0085ce49 5475 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
b2dc1044 5476#endif
0085ce49
RD
5477 }
5478 return pyobj;
5479}
5480
5481
5482SWIGINTERN PyObject *_wrap_new_ComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5483 PyObject *resultobj = 0;
5484 wxWindow *arg1 = (wxWindow *) 0 ;
5485 int arg2 = (int) -1 ;
5486 wxString const &arg3_defvalue = wxPyEmptyString ;
5487 wxString *arg3 = (wxString *) &arg3_defvalue ;
5488 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5489 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5490 wxSize const &arg5_defvalue = wxDefaultSize ;
5491 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5492 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5493 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5494 long arg7 = (long) 0 ;
5495 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5496 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5497 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
5498 wxString *arg9 = (wxString *) &arg9_defvalue ;
5499 wxComboBox *result = 0 ;
5500 void *argp1 = 0 ;
5501 int res1 = 0 ;
5502 int val2 ;
5503 int ecode2 = 0 ;
5504 bool temp3 = false ;
5505 wxPoint temp4 ;
5506 wxSize temp5 ;
5507 bool temp6 = false ;
5508 long val7 ;
5509 int ecode7 = 0 ;
5510 void *argp8 = 0 ;
5511 int res8 = 0 ;
5512 bool temp9 = false ;
5513 PyObject * obj0 = 0 ;
5514 PyObject * obj1 = 0 ;
5515 PyObject * obj2 = 0 ;
5516 PyObject * obj3 = 0 ;
5517 PyObject * obj4 = 0 ;
5518 PyObject * obj5 = 0 ;
5519 PyObject * obj6 = 0 ;
5520 PyObject * obj7 = 0 ;
5521 PyObject * obj8 = 0 ;
5522 char * kwnames[] = {
5523 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5524 };
5525
5526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5528 if (!SWIG_IsOK(res1)) {
5529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ComboBox" "', expected argument " "1"" of type '" "wxWindow *""'");
5530 }
5531 arg1 = reinterpret_cast< wxWindow * >(argp1);
5532 if (obj1) {
5533 ecode2 = SWIG_AsVal_int(obj1, &val2);
5534 if (!SWIG_IsOK(ecode2)) {
5535 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ComboBox" "', expected argument " "2"" of type '" "int""'");
5536 }
5537 arg2 = static_cast< int >(val2);
5538 }
5539 if (obj2) {
d14a1e28 5540 {
0085ce49
RD
5541 arg3 = wxString_in_helper(obj2);
5542 if (arg3 == NULL) SWIG_fail;
5543 temp3 = true;
d14a1e28 5544 }
0085ce49
RD
5545 }
5546 if (obj3) {
d14a1e28 5547 {
0085ce49
RD
5548 arg4 = &temp4;
5549 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 5550 }
0085ce49
RD
5551 }
5552 if (obj4) {
d14a1e28 5553 {
0085ce49
RD
5554 arg5 = &temp5;
5555 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 5556 }
0085ce49
RD
5557 }
5558 if (obj5) {
d14a1e28 5559 {
0085ce49
RD
5560 if (! PySequence_Check(obj5)) {
5561 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5562 SWIG_fail;
5563 }
5564 arg6 = new wxArrayString;
5565 temp6 = true;
5566 int i, len=PySequence_Length(obj5);
5567 for (i=0; i<len; i++) {
5568 PyObject* item = PySequence_GetItem(obj5, i);
5569 wxString* s = wxString_in_helper(item);
5570 if (PyErr_Occurred()) SWIG_fail;
5571 arg6->Add(*s);
5572 delete s;
5573 Py_DECREF(item);
5574 }
d14a1e28 5575 }
0085ce49
RD
5576 }
5577 if (obj6) {
5578 ecode7 = SWIG_AsVal_long(obj6, &val7);
5579 if (!SWIG_IsOK(ecode7)) {
5580 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ComboBox" "', expected argument " "7"" of type '" "long""'");
5581 }
5582 arg7 = static_cast< long >(val7);
5583 }
5584 if (obj7) {
5585 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5586 if (!SWIG_IsOK(res8)) {
5587 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5588 }
5589 if (!argp8) {
5590 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5591 }
5592 arg8 = reinterpret_cast< wxValidator * >(argp8);
5593 }
5594 if (obj8) {
d14a1e28 5595 {
0085ce49
RD
5596 arg9 = wxString_in_helper(obj8);
5597 if (arg9 == NULL) SWIG_fail;
5598 temp9 = true;
d14a1e28 5599 }
0085ce49
RD
5600 }
5601 {
5602 if (!wxPyCheckForApp()) SWIG_fail;
5603 PyThreadState* __tstate = wxPyBeginAllowThreads();
5604 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);
5605 wxPyEndAllowThreads(__tstate);
5606 if (PyErr_Occurred()) SWIG_fail;
5607 }
5608 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_NEW | 0 );
5609 {
5610 if (temp3)
5611 delete arg3;
5612 }
5613 {
5614 if (temp6) delete arg6;
5615 }
5616 {
5617 if (temp9)
5618 delete arg9;
5619 }
5620 return resultobj;
5621fail:
5622 {
5623 if (temp3)
5624 delete arg3;
5625 }
5626 {
5627 if (temp6) delete arg6;
5628 }
5629 {
5630 if (temp9)
5631 delete arg9;
5632 }
5633 return NULL;
d14a1e28
RD
5634}
5635
5636
0085ce49
RD
5637SWIGINTERN PyObject *_wrap_new_PreComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5638 PyObject *resultobj = 0;
5639 wxComboBox *result = 0 ;
5640
5641 if (!SWIG_Python_UnpackTuple(args,"new_PreComboBox",0,0,0)) SWIG_fail;
5642 {
5643 if (!wxPyCheckForApp()) SWIG_fail;
5644 PyThreadState* __tstate = wxPyBeginAllowThreads();
5645 result = (wxComboBox *)new wxComboBox();
5646 wxPyEndAllowThreads(__tstate);
5647 if (PyErr_Occurred()) SWIG_fail;
5648 }
5649 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_OWN | 0 );
5650 return resultobj;
5651fail:
5652 return NULL;
5653}
5654
5655
5656SWIGINTERN PyObject *_wrap_ComboBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5657 PyObject *resultobj = 0;
5658 wxComboBox *arg1 = (wxComboBox *) 0 ;
5659 wxWindow *arg2 = (wxWindow *) 0 ;
5660 int arg3 = (int) -1 ;
5661 wxString const &arg4_defvalue = wxPyEmptyString ;
5662 wxString *arg4 = (wxString *) &arg4_defvalue ;
5663 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5664 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5665 wxSize const &arg6_defvalue = wxDefaultSize ;
5666 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5667 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
5668 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
5669 long arg8 = (long) 0 ;
5670 wxValidator const &arg9_defvalue = wxDefaultValidator ;
5671 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
5672 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
5673 wxString *arg10 = (wxString *) &arg10_defvalue ;
5674 bool result;
5675 void *argp1 = 0 ;
5676 int res1 = 0 ;
5677 void *argp2 = 0 ;
5678 int res2 = 0 ;
5679 int val3 ;
5680 int ecode3 = 0 ;
5681 bool temp4 = false ;
5682 wxPoint temp5 ;
5683 wxSize temp6 ;
5684 bool temp7 = false ;
5685 long val8 ;
5686 int ecode8 = 0 ;
5687 void *argp9 = 0 ;
5688 int res9 = 0 ;
5689 bool temp10 = false ;
5690 PyObject * obj0 = 0 ;
5691 PyObject * obj1 = 0 ;
5692 PyObject * obj2 = 0 ;
5693 PyObject * obj3 = 0 ;
5694 PyObject * obj4 = 0 ;
5695 PyObject * obj5 = 0 ;
5696 PyObject * obj6 = 0 ;
5697 PyObject * obj7 = 0 ;
5698 PyObject * obj8 = 0 ;
5699 PyObject * obj9 = 0 ;
5700 char * kwnames[] = {
5701 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5702 };
5703
5704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
5705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5706 if (!SWIG_IsOK(res1)) {
5707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Create" "', expected argument " "1"" of type '" "wxComboBox *""'");
5708 }
5709 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5710 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5711 if (!SWIG_IsOK(res2)) {
5712 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ComboBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5713 }
5714 arg2 = reinterpret_cast< wxWindow * >(argp2);
5715 if (obj2) {
5716 ecode3 = SWIG_AsVal_int(obj2, &val3);
5717 if (!SWIG_IsOK(ecode3)) {
5718 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Create" "', expected argument " "3"" of type '" "int""'");
5719 }
5720 arg3 = static_cast< int >(val3);
5721 }
5722 if (obj3) {
4f89f6a3 5723 {
0085ce49
RD
5724 arg4 = wxString_in_helper(obj3);
5725 if (arg4 == NULL) SWIG_fail;
5726 temp4 = true;
4f89f6a3 5727 }
0085ce49
RD
5728 }
5729 if (obj4) {
d14a1e28 5730 {
0085ce49
RD
5731 arg5 = &temp5;
5732 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 5733 }
0085ce49
RD
5734 }
5735 if (obj5) {
d14a1e28 5736 {
0085ce49
RD
5737 arg6 = &temp6;
5738 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d14a1e28 5739 }
0085ce49
RD
5740 }
5741 if (obj6) {
d14a1e28 5742 {
0085ce49
RD
5743 if (! PySequence_Check(obj6)) {
5744 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5745 SWIG_fail;
5746 }
5747 arg7 = new wxArrayString;
5748 temp7 = true;
5749 int i, len=PySequence_Length(obj6);
5750 for (i=0; i<len; i++) {
5751 PyObject* item = PySequence_GetItem(obj6, i);
5752 wxString* s = wxString_in_helper(item);
5753 if (PyErr_Occurred()) SWIG_fail;
5754 arg7->Add(*s);
5755 delete s;
5756 Py_DECREF(item);
5757 }
d14a1e28 5758 }
0085ce49
RD
5759 }
5760 if (obj7) {
5761 ecode8 = SWIG_AsVal_long(obj7, &val8);
5762 if (!SWIG_IsOK(ecode8)) {
5763 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ComboBox_Create" "', expected argument " "8"" of type '" "long""'");
5764 }
5765 arg8 = static_cast< long >(val8);
5766 }
5767 if (obj8) {
5768 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
5769 if (!SWIG_IsOK(res9)) {
5770 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
d14a1e28 5771 }
0085ce49
RD
5772 if (!argp9) {
5773 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
d14a1e28 5774 }
0085ce49
RD
5775 arg9 = reinterpret_cast< wxValidator * >(argp9);
5776 }
5777 if (obj9) {
d14a1e28 5778 {
0085ce49
RD
5779 arg10 = wxString_in_helper(obj9);
5780 if (arg10 == NULL) SWIG_fail;
5781 temp10 = true;
d14a1e28 5782 }
0085ce49
RD
5783 }
5784 {
5785 PyThreadState* __tstate = wxPyBeginAllowThreads();
5786 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);
5787 wxPyEndAllowThreads(__tstate);
5788 if (PyErr_Occurred()) SWIG_fail;
5789 }
5790 {
5791 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5792 }
5793 {
5794 if (temp4)
5795 delete arg4;
5796 }
5797 {
5798 if (temp7) delete arg7;
5799 }
5800 {
5801 if (temp10)
5802 delete arg10;
5803 }
5804 return resultobj;
5805fail:
5806 {
5807 if (temp4)
5808 delete arg4;
5809 }
5810 {
5811 if (temp7) delete arg7;
5812 }
5813 {
5814 if (temp10)
5815 delete arg10;
5816 }
5817 return NULL;
d14a1e28
RD
5818}
5819
5820
0085ce49
RD
5821SWIGINTERN PyObject *_wrap_ComboBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5822 PyObject *resultobj = 0;
5823 wxComboBox *arg1 = (wxComboBox *) 0 ;
5824 wxString result;
5825 void *argp1 = 0 ;
5826 int res1 = 0 ;
5827 PyObject *swig_obj[1] ;
5828
5829 if (!args) SWIG_fail;
5830 swig_obj[0] = args;
5831 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5832 if (!SWIG_IsOK(res1)) {
5833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetValue" "', expected argument " "1"" of type '" "wxComboBox const *""'");
5834 }
5835 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5836 {
5837 PyThreadState* __tstate = wxPyBeginAllowThreads();
5838 result = ((wxComboBox const *)arg1)->GetValue();
5839 wxPyEndAllowThreads(__tstate);
5840 if (PyErr_Occurred()) SWIG_fail;
5841 }
5842 {
d14a1e28 5843#if wxUSE_UNICODE
0085ce49 5844 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d14a1e28 5845#else
0085ce49 5846 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d14a1e28 5847#endif
0085ce49
RD
5848 }
5849 return resultobj;
5850fail:
5851 return NULL;
5852}
5853
5854
5855SWIGINTERN PyObject *_wrap_ComboBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5856 PyObject *resultobj = 0;
5857 wxComboBox *arg1 = (wxComboBox *) 0 ;
5858 wxString *arg2 = 0 ;
5859 void *argp1 = 0 ;
5860 int res1 = 0 ;
5861 bool temp2 = false ;
5862 PyObject * obj0 = 0 ;
5863 PyObject * obj1 = 0 ;
5864 char * kwnames[] = {
5865 (char *) "self",(char *) "value", NULL
5866 };
5867
5868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
5869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5870 if (!SWIG_IsOK(res1)) {
5871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetValue" "', expected argument " "1"" of type '" "wxComboBox *""'");
5872 }
5873 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5874 {
5875 arg2 = wxString_in_helper(obj1);
5876 if (arg2 == NULL) SWIG_fail;
5877 temp2 = true;
5878 }
5879 {
5880 PyThreadState* __tstate = wxPyBeginAllowThreads();
5881 (arg1)->SetValue((wxString const &)*arg2);
5882 wxPyEndAllowThreads(__tstate);
5883 if (PyErr_Occurred()) SWIG_fail;
5884 }
5885 resultobj = SWIG_Py_Void();
5886 {
5887 if (temp2)
5888 delete arg2;
5889 }
5890 return resultobj;
5891fail:
5892 {
5893 if (temp2)
5894 delete arg2;
5895 }
5896 return NULL;
d14a1e28
RD
5897}
5898
5899
0085ce49
RD
5900SWIGINTERN PyObject *_wrap_ComboBox_Copy(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_Copy" "', expected argument " "1"" of type '" "wxComboBox *""'");
5912 }
5913 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5914 {
5915 PyThreadState* __tstate = wxPyBeginAllowThreads();
5916 (arg1)->Copy();
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_Cut(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_Cut" "', expected argument " "1"" of type '" "wxComboBox *""'");
5939 }
5940 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5941 {
5942 PyThreadState* __tstate = wxPyBeginAllowThreads();
5943 (arg1)->Cut();
5944 wxPyEndAllowThreads(__tstate);
5945 if (PyErr_Occurred()) SWIG_fail;
5946 }
5947 resultobj = SWIG_Py_Void();
5948 return resultobj;
5949fail:
5950 return NULL;
d14a1e28
RD
5951}
5952
5953
0085ce49
RD
5954SWIGINTERN PyObject *_wrap_ComboBox_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5955 PyObject *resultobj = 0;
5956 wxComboBox *arg1 = (wxComboBox *) 0 ;
5957 void *argp1 = 0 ;
5958 int res1 = 0 ;
5959 PyObject *swig_obj[1] ;
5960
5961 if (!args) SWIG_fail;
5962 swig_obj[0] = args;
5963 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5964 if (!SWIG_IsOK(res1)) {
5965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Paste" "', expected argument " "1"" of type '" "wxComboBox *""'");
5966 }
5967 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5968 {
5969 PyThreadState* __tstate = wxPyBeginAllowThreads();
5970 (arg1)->Paste();
5971 wxPyEndAllowThreads(__tstate);
5972 if (PyErr_Occurred()) SWIG_fail;
5973 }
5974 resultobj = SWIG_Py_Void();
5975 return resultobj;
5976fail:
5977 return NULL;
5978}
5979
5980
5981SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5982 PyObject *resultobj = 0;
5983 wxComboBox *arg1 = (wxComboBox *) 0 ;
5984 long arg2 ;
5985 void *argp1 = 0 ;
5986 int res1 = 0 ;
5987 long val2 ;
5988 int ecode2 = 0 ;
5989 PyObject * obj0 = 0 ;
5990 PyObject * obj1 = 0 ;
5991 char * kwnames[] = {
5992 (char *) "self",(char *) "pos", NULL
5993 };
5994
5995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
5996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5997 if (!SWIG_IsOK(res1)) {
5998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox *""'");
5999 }
6000 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6001 ecode2 = SWIG_AsVal_long(obj1, &val2);
6002 if (!SWIG_IsOK(ecode2)) {
6003 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
6004 }
6005 arg2 = static_cast< long >(val2);
6006 {
6007 PyThreadState* __tstate = wxPyBeginAllowThreads();
6008 (arg1)->SetInsertionPoint(arg2);
6009 wxPyEndAllowThreads(__tstate);
6010 if (PyErr_Occurred()) SWIG_fail;
6011 }
6012 resultobj = SWIG_Py_Void();
6013 return resultobj;
6014fail:
6015 return NULL;
d14a1e28
RD
6016}
6017
6018
0085ce49
RD
6019SWIGINTERN PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6020 PyObject *resultobj = 0;
6021 wxComboBox *arg1 = (wxComboBox *) 0 ;
6022 long result;
6023 void *argp1 = 0 ;
6024 int res1 = 0 ;
6025 PyObject *swig_obj[1] ;
6026
6027 if (!args) SWIG_fail;
6028 swig_obj[0] = args;
6029 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6030 if (!SWIG_IsOK(res1)) {
6031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6032 }
6033 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6034 {
6035 PyThreadState* __tstate = wxPyBeginAllowThreads();
6036 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
6037 wxPyEndAllowThreads(__tstate);
6038 if (PyErr_Occurred()) SWIG_fail;
6039 }
6040 resultobj = SWIG_From_long(static_cast< long >(result));
6041 return resultobj;
6042fail:
6043 return NULL;
d14a1e28
RD
6044}
6045
6046
0085ce49
RD
6047SWIGINTERN PyObject *_wrap_ComboBox_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6048 PyObject *resultobj = 0;
6049 wxComboBox *arg1 = (wxComboBox *) 0 ;
6050 long result;
6051 void *argp1 = 0 ;
6052 int res1 = 0 ;
6053 PyObject *swig_obj[1] ;
6054
6055 if (!args) SWIG_fail;
6056 swig_obj[0] = args;
6057 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6058 if (!SWIG_IsOK(res1)) {
6059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetLastPosition" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6060 }
6061 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6062 {
6063 PyThreadState* __tstate = wxPyBeginAllowThreads();
6064 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
6065 wxPyEndAllowThreads(__tstate);
6066 if (PyErr_Occurred()) SWIG_fail;
6067 }
6068 resultobj = SWIG_From_long(static_cast< long >(result));
6069 return resultobj;
6070fail:
6071 return NULL;
6072}
6073
6074
6075SWIGINTERN PyObject *_wrap_ComboBox_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6076 PyObject *resultobj = 0;
6077 wxComboBox *arg1 = (wxComboBox *) 0 ;
6078 long arg2 ;
6079 long arg3 ;
6080 wxString *arg4 = 0 ;
6081 void *argp1 = 0 ;
6082 int res1 = 0 ;
6083 long val2 ;
6084 int ecode2 = 0 ;
6085 long val3 ;
6086 int ecode3 = 0 ;
6087 bool temp4 = false ;
6088 PyObject * obj0 = 0 ;
6089 PyObject * obj1 = 0 ;
6090 PyObject * obj2 = 0 ;
6091 PyObject * obj3 = 0 ;
6092 char * kwnames[] = {
2131d850 6093 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
0085ce49
RD
6094 };
6095
6096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6098 if (!SWIG_IsOK(res1)) {
6099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Replace" "', expected argument " "1"" of type '" "wxComboBox *""'");
6100 }
6101 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6102 ecode2 = SWIG_AsVal_long(obj1, &val2);
6103 if (!SWIG_IsOK(ecode2)) {
6104 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Replace" "', expected argument " "2"" of type '" "long""'");
6105 }
6106 arg2 = static_cast< long >(val2);
6107 ecode3 = SWIG_AsVal_long(obj2, &val3);
6108 if (!SWIG_IsOK(ecode3)) {
6109 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Replace" "', expected argument " "3"" of type '" "long""'");
6110 }
6111 arg3 = static_cast< long >(val3);
6112 {
6113 arg4 = wxString_in_helper(obj3);
6114 if (arg4 == NULL) SWIG_fail;
6115 temp4 = true;
6116 }
6117 {
6118 PyThreadState* __tstate = wxPyBeginAllowThreads();
6119 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
6120 wxPyEndAllowThreads(__tstate);
6121 if (PyErr_Occurred()) SWIG_fail;
6122 }
6123 resultobj = SWIG_Py_Void();
6124 {
6125 if (temp4)
6126 delete arg4;
6127 }
6128 return resultobj;
6129fail:
6130 {
6131 if (temp4)
6132 delete arg4;
6133 }
6134 return NULL;
6135}
6136
6137
6138SWIGINTERN PyObject *_wrap_ComboBox_SetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6139 PyObject *resultobj = 0;
6140 wxComboBox *arg1 = (wxComboBox *) 0 ;
6141 long arg2 ;
6142 long arg3 ;
6143 void *argp1 = 0 ;
6144 int res1 = 0 ;
6145 long val2 ;
6146 int ecode2 = 0 ;
6147 long val3 ;
6148 int ecode3 = 0 ;
6149 PyObject * obj0 = 0 ;
6150 PyObject * obj1 = 0 ;
6151 PyObject * obj2 = 0 ;
6152 char * kwnames[] = {
2131d850 6153 (char *) "self",(char *) "from",(char *) "to", NULL
0085ce49
RD
6154 };
6155
6156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6157 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6158 if (!SWIG_IsOK(res1)) {
6159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6160 }
6161 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6162 ecode2 = SWIG_AsVal_long(obj1, &val2);
6163 if (!SWIG_IsOK(ecode2)) {
6164 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetMark" "', expected argument " "2"" of type '" "long""'");
6165 }
6166 arg2 = static_cast< long >(val2);
6167 ecode3 = SWIG_AsVal_long(obj2, &val3);
6168 if (!SWIG_IsOK(ecode3)) {
6169 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_SetMark" "', expected argument " "3"" of type '" "long""'");
6170 }
6171 arg3 = static_cast< long >(val3);
6172 {
6173 PyThreadState* __tstate = wxPyBeginAllowThreads();
6174 (arg1)->SetSelection(arg2,arg3);
6175 wxPyEndAllowThreads(__tstate);
6176 if (PyErr_Occurred()) SWIG_fail;
6177 }
6178 resultobj = SWIG_Py_Void();
6179 return resultobj;
6180fail:
6181 return NULL;
6182}
6183
6184
6185SWIGINTERN PyObject *_wrap_ComboBox_GetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6186 PyObject *resultobj = 0;
6187 wxComboBox *arg1 = (wxComboBox *) 0 ;
6188 long *arg2 = (long *) 0 ;
6189 long *arg3 = (long *) 0 ;
6190 void *argp1 = 0 ;
6191 int res1 = 0 ;
6192 long temp2 ;
6193 int res2 = SWIG_TMPOBJ ;
6194 long temp3 ;
6195 int res3 = SWIG_TMPOBJ ;
6196 PyObject *swig_obj[1] ;
6197
6198 arg2 = &temp2;
6199 arg3 = &temp3;
6200 if (!args) SWIG_fail;
6201 swig_obj[0] = args;
6202 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6203 if (!SWIG_IsOK(res1)) {
6204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6205 }
6206 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6207 {
6208 PyThreadState* __tstate = wxPyBeginAllowThreads();
6209 (arg1)->GetSelection(arg2,arg3);
6210 wxPyEndAllowThreads(__tstate);
6211 if (PyErr_Occurred()) SWIG_fail;
6212 }
6213 resultobj = SWIG_Py_Void();
6214 if (SWIG_IsTmpObj(res2)) {
6215 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
6216 } else {
6217 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6218 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
6219 }
6220 if (SWIG_IsTmpObj(res3)) {
6221 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
6222 } else {
6223 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6224 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
6225 }
6226 return resultobj;
6227fail:
6228 return NULL;
d14a1e28
RD
6229}
6230
6231
0085ce49
RD
6232SWIGINTERN PyObject *_wrap_ComboBox_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6233 PyObject *resultobj = 0;
6234 wxComboBox *arg1 = (wxComboBox *) 0 ;
6235 int result;
6236 void *argp1 = 0 ;
6237 int res1 = 0 ;
6238 PyObject *swig_obj[1] ;
6239
6240 if (!args) SWIG_fail;
6241 swig_obj[0] = args;
6242 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6243 if (!SWIG_IsOK(res1)) {
6244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetCurrentSelection" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6245 }
6246 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6247 {
6248 PyThreadState* __tstate = wxPyBeginAllowThreads();
6249 result = (int)((wxComboBox const *)arg1)->GetCurrentSelection();
6250 wxPyEndAllowThreads(__tstate);
6251 if (PyErr_Occurred()) SWIG_fail;
6252 }
6253 resultobj = SWIG_From_int(static_cast< int >(result));
6254 return resultobj;
6255fail:
6256 return NULL;
6257}
6258
6259
6260SWIGINTERN PyObject *_wrap_ComboBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6261 PyObject *resultobj = 0;
6262 wxComboBox *arg1 = (wxComboBox *) 0 ;
6263 wxString *arg2 = 0 ;
6264 bool result;
6265 void *argp1 = 0 ;
6266 int res1 = 0 ;
6267 bool temp2 = false ;
6268 PyObject * obj0 = 0 ;
6269 PyObject * obj1 = 0 ;
6270 char * kwnames[] = {
6271 (char *) "self",(char *) "string", NULL
6272 };
6273
6274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
6275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6276 if (!SWIG_IsOK(res1)) {
6277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetStringSelection" "', expected argument " "1"" of type '" "wxComboBox *""'");
6278 }
6279 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6280 {
6281 arg2 = wxString_in_helper(obj1);
6282 if (arg2 == NULL) SWIG_fail;
6283 temp2 = true;
6284 }
6285 {
6286 PyThreadState* __tstate = wxPyBeginAllowThreads();
6287 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
6288 wxPyEndAllowThreads(__tstate);
6289 if (PyErr_Occurred()) SWIG_fail;
6290 }
6291 {
6292 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6293 }
6294 {
6295 if (temp2)
6296 delete arg2;
6297 }
6298 return resultobj;
6299fail:
6300 {
6301 if (temp2)
6302 delete arg2;
6303 }
6304 return NULL;
6305}
6306
6307
50f151d7
RD
6308SWIGINTERN PyObject *_wrap_ComboBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6309 PyObject *resultobj = 0;
6310 wxComboBox *arg1 = (wxComboBox *) 0 ;
6311 int arg2 ;
6312 wxString *arg3 = 0 ;
6313 void *argp1 = 0 ;
6314 int res1 = 0 ;
6315 int val2 ;
6316 int ecode2 = 0 ;
6317 bool temp3 = false ;
6318 PyObject * obj0 = 0 ;
6319 PyObject * obj1 = 0 ;
6320 PyObject * obj2 = 0 ;
6321 char * kwnames[] = {
6322 (char *) "self",(char *) "n",(char *) "string", NULL
6323 };
6324
6325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6327 if (!SWIG_IsOK(res1)) {
6328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetString" "', expected argument " "1"" of type '" "wxComboBox *""'");
6329 }
6330 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6331 ecode2 = SWIG_AsVal_int(obj1, &val2);
6332 if (!SWIG_IsOK(ecode2)) {
6333 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetString" "', expected argument " "2"" of type '" "int""'");
6334 }
6335 arg2 = static_cast< int >(val2);
6336 {
6337 arg3 = wxString_in_helper(obj2);
6338 if (arg3 == NULL) SWIG_fail;
6339 temp3 = true;
6340 }
6341 {
6342 PyThreadState* __tstate = wxPyBeginAllowThreads();
6343 (arg1)->SetString(arg2,(wxString const &)*arg3);
6344 wxPyEndAllowThreads(__tstate);
6345 if (PyErr_Occurred()) SWIG_fail;
6346 }
6347 resultobj = SWIG_Py_Void();
6348 {
6349 if (temp3)
6350 delete arg3;
6351 }
6352 return resultobj;
6353fail:
6354 {
6355 if (temp3)
6356 delete arg3;
6357 }
6358 return NULL;
6359}
6360
6361
0085ce49
RD
6362SWIGINTERN PyObject *_wrap_ComboBox_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6363 PyObject *resultobj = 0;
6364 wxComboBox *arg1 = (wxComboBox *) 0 ;
6365 bool arg2 ;
6366 void *argp1 = 0 ;
6367 int res1 = 0 ;
6368 bool val2 ;
6369 int ecode2 = 0 ;
6370 PyObject * obj0 = 0 ;
6371 PyObject * obj1 = 0 ;
6372 char * kwnames[] = {
6373 (char *) "self",(char *) "editable", NULL
6374 };
6375
6376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
6377 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6378 if (!SWIG_IsOK(res1)) {
6379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetEditable" "', expected argument " "1"" of type '" "wxComboBox *""'");
6380 }
6381 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6382 ecode2 = SWIG_AsVal_bool(obj1, &val2);
6383 if (!SWIG_IsOK(ecode2)) {
6384 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetEditable" "', expected argument " "2"" of type '" "bool""'");
6385 }
6386 arg2 = static_cast< bool >(val2);
6387 {
6388 PyThreadState* __tstate = wxPyBeginAllowThreads();
6389 (arg1)->SetEditable(arg2);
6390 wxPyEndAllowThreads(__tstate);
6391 if (PyErr_Occurred()) SWIG_fail;
6392 }
6393 resultobj = SWIG_Py_Void();
6394 return resultobj;
6395fail:
6396 return NULL;
d14a1e28
RD
6397}
6398
6399
0085ce49
RD
6400SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6401 PyObject *resultobj = 0;
6402 wxComboBox *arg1 = (wxComboBox *) 0 ;
6403 void *argp1 = 0 ;
6404 int res1 = 0 ;
6405 PyObject *swig_obj[1] ;
6406
6407 if (!args) SWIG_fail;
6408 swig_obj[0] = args;
6409 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6410 if (!SWIG_IsOK(res1)) {
6411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxComboBox *""'");
6412 }
6413 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6414 {
6415 PyThreadState* __tstate = wxPyBeginAllowThreads();
6416 (arg1)->SetInsertionPointEnd();
6417 wxPyEndAllowThreads(__tstate);
6418 if (PyErr_Occurred()) SWIG_fail;
6419 }
6420 resultobj = SWIG_Py_Void();
6421 return resultobj;
6422fail:
6423 return NULL;
6424}
6425
6426
6427SWIGINTERN PyObject *_wrap_ComboBox_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6428 PyObject *resultobj = 0;
6429 wxComboBox *arg1 = (wxComboBox *) 0 ;
6430 long arg2 ;
6431 long arg3 ;
6432 void *argp1 = 0 ;
6433 int res1 = 0 ;
6434 long val2 ;
6435 int ecode2 = 0 ;
6436 long val3 ;
6437 int ecode3 = 0 ;
6438 PyObject * obj0 = 0 ;
6439 PyObject * obj1 = 0 ;
6440 PyObject * obj2 = 0 ;
6441 char * kwnames[] = {
2131d850 6442 (char *) "self",(char *) "from",(char *) "to", NULL
0085ce49
RD
6443 };
6444
6445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6447 if (!SWIG_IsOK(res1)) {
6448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Remove" "', expected argument " "1"" of type '" "wxComboBox *""'");
6449 }
6450 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6451 ecode2 = SWIG_AsVal_long(obj1, &val2);
6452 if (!SWIG_IsOK(ecode2)) {
6453 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Remove" "', expected argument " "2"" of type '" "long""'");
6454 }
6455 arg2 = static_cast< long >(val2);
6456 ecode3 = SWIG_AsVal_long(obj2, &val3);
6457 if (!SWIG_IsOK(ecode3)) {
6458 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Remove" "', expected argument " "3"" of type '" "long""'");
6459 }
6460 arg3 = static_cast< long >(val3);
6461 {
6462 PyThreadState* __tstate = wxPyBeginAllowThreads();
6463 (arg1)->Remove(arg2,arg3);
6464 wxPyEndAllowThreads(__tstate);
6465 if (PyErr_Occurred()) SWIG_fail;
6466 }
6467 resultobj = SWIG_Py_Void();
6468 return resultobj;
6469fail:
6470 return NULL;
d14a1e28
RD
6471}
6472
6473
0085ce49
RD
6474SWIGINTERN PyObject *_wrap_ComboBox_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6475 PyObject *resultobj = 0;
6476 wxComboBox *arg1 = (wxComboBox *) 0 ;
6477 bool result;
6478 void *argp1 = 0 ;
6479 int res1 = 0 ;
6480 PyObject *swig_obj[1] ;
6481
6482 if (!args) SWIG_fail;
6483 swig_obj[0] = args;
6484 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6485 if (!SWIG_IsOK(res1)) {
6486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_IsEditable" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6487 }
6488 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6489 {
6490 PyThreadState* __tstate = wxPyBeginAllowThreads();
6491 result = (bool)((wxComboBox const *)arg1)->IsEditable();
6492 wxPyEndAllowThreads(__tstate);
6493 if (PyErr_Occurred()) SWIG_fail;
6494 }
6495 {
6496 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6497 }
6498 return resultobj;
6499fail:
6500 return NULL;
d14a1e28
RD
6501}
6502
6503
0085ce49
RD
6504SWIGINTERN PyObject *_wrap_ComboBox_Undo(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_Undo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6516 }
6517 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6518 {
6519 PyThreadState* __tstate = wxPyBeginAllowThreads();
6520 (arg1)->Undo();
6521 wxPyEndAllowThreads(__tstate);
6522 if (PyErr_Occurred()) SWIG_fail;
6523 }
6524 resultobj = SWIG_Py_Void();
6525 return resultobj;
6526fail:
6527 return NULL;
fd3f2efe
RD
6528}
6529
6530
0085ce49
RD
6531SWIGINTERN PyObject *_wrap_ComboBox_Redo(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_Redo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6543 }
6544 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6545 {
6546 PyThreadState* __tstate = wxPyBeginAllowThreads();
6547 (arg1)->Redo();
6548 wxPyEndAllowThreads(__tstate);
6549 if (PyErr_Occurred()) SWIG_fail;
6550 }
6551 resultobj = SWIG_Py_Void();
6552 return resultobj;
6553fail:
6554 return NULL;
d14a1e28
RD
6555}
6556
6557
0085ce49
RD
6558SWIGINTERN PyObject *_wrap_ComboBox_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6559 PyObject *resultobj = 0;
6560 wxComboBox *arg1 = (wxComboBox *) 0 ;
6561 void *argp1 = 0 ;
6562 int res1 = 0 ;
6563 PyObject *swig_obj[1] ;
6564
6565 if (!args) SWIG_fail;
6566 swig_obj[0] = args;
6567 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6568 if (!SWIG_IsOK(res1)) {
6569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SelectAll" "', expected argument " "1"" of type '" "wxComboBox *""'");
6570 }
6571 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6572 {
6573 PyThreadState* __tstate = wxPyBeginAllowThreads();
6574 (arg1)->SelectAll();
6575 wxPyEndAllowThreads(__tstate);
6576 if (PyErr_Occurred()) SWIG_fail;
6577 }
6578 resultobj = SWIG_Py_Void();
6579 return resultobj;
6580fail:
6581 return NULL;
b9d6a5f3
RD
6582}
6583
6584
0085ce49
RD
6585SWIGINTERN PyObject *_wrap_ComboBox_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6586 PyObject *resultobj = 0;
6587 wxComboBox *arg1 = (wxComboBox *) 0 ;
6588 bool result;
6589 void *argp1 = 0 ;
6590 int res1 = 0 ;
6591 PyObject *swig_obj[1] ;
6592
6593 if (!args) SWIG_fail;
6594 swig_obj[0] = args;
6595 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6596 if (!SWIG_IsOK(res1)) {
6597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCopy" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6598 }
6599 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6600 {
6601 PyThreadState* __tstate = wxPyBeginAllowThreads();
6602 result = (bool)((wxComboBox const *)arg1)->CanCopy();
6603 wxPyEndAllowThreads(__tstate);
6604 if (PyErr_Occurred()) SWIG_fail;
6605 }
6606 {
6607 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6608 }
6609 return resultobj;
6610fail:
6611 return NULL;
943e8dfd
RD
6612}
6613
6614
0085ce49
RD
6615SWIGINTERN PyObject *_wrap_ComboBox_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6616 PyObject *resultobj = 0;
6617 wxComboBox *arg1 = (wxComboBox *) 0 ;
6618 bool result;
6619 void *argp1 = 0 ;
6620 int res1 = 0 ;
6621 PyObject *swig_obj[1] ;
6622
6623 if (!args) SWIG_fail;
6624 swig_obj[0] = args;
6625 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6626 if (!SWIG_IsOK(res1)) {
6627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCut" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6628 }
6629 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6630 {
6631 PyThreadState* __tstate = wxPyBeginAllowThreads();
6632 result = (bool)((wxComboBox const *)arg1)->CanCut();
6633 wxPyEndAllowThreads(__tstate);
6634 if (PyErr_Occurred()) SWIG_fail;
6635 }
6636 {
6637 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6638 }
6639 return resultobj;
6640fail:
6641 return NULL;
121b9a67
RD
6642}
6643
6644
0085ce49
RD
6645SWIGINTERN PyObject *_wrap_ComboBox_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6646 PyObject *resultobj = 0;
6647 wxComboBox *arg1 = (wxComboBox *) 0 ;
6648 bool result;
6649 void *argp1 = 0 ;
6650 int res1 = 0 ;
6651 PyObject *swig_obj[1] ;
6652
6653 if (!args) SWIG_fail;
6654 swig_obj[0] = args;
6655 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6656 if (!SWIG_IsOK(res1)) {
6657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanPaste" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6658 }
6659 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6660 {
6661 PyThreadState* __tstate = wxPyBeginAllowThreads();
6662 result = (bool)((wxComboBox const *)arg1)->CanPaste();
6663 wxPyEndAllowThreads(__tstate);
6664 if (PyErr_Occurred()) SWIG_fail;
6665 }
6666 {
6667 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6668 }
6669 return resultobj;
6670fail:
6671 return NULL;
121b9a67
RD
6672}
6673
6674
0085ce49
RD
6675SWIGINTERN PyObject *_wrap_ComboBox_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6676 PyObject *resultobj = 0;
6677 wxComboBox *arg1 = (wxComboBox *) 0 ;
6678 bool result;
6679 void *argp1 = 0 ;
6680 int res1 = 0 ;
6681 PyObject *swig_obj[1] ;
6682
6683 if (!args) SWIG_fail;
6684 swig_obj[0] = args;
6685 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6686 if (!SWIG_IsOK(res1)) {
6687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanUndo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6688 }
6689 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6690 {
6691 PyThreadState* __tstate = wxPyBeginAllowThreads();
6692 result = (bool)((wxComboBox const *)arg1)->CanUndo();
6693 wxPyEndAllowThreads(__tstate);
6694 if (PyErr_Occurred()) SWIG_fail;
6695 }
6696 {
6697 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6698 }
6699 return resultobj;
6700fail:
6701 return NULL;
d14a1e28
RD
6702}
6703
6704
0085ce49
RD
6705SWIGINTERN PyObject *_wrap_ComboBox_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6706 PyObject *resultobj = 0;
6707 wxComboBox *arg1 = (wxComboBox *) 0 ;
6708 bool result;
6709 void *argp1 = 0 ;
6710 int res1 = 0 ;
6711 PyObject *swig_obj[1] ;
6712
6713 if (!args) SWIG_fail;
6714 swig_obj[0] = args;
6715 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6716 if (!SWIG_IsOK(res1)) {
6717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanRedo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6718 }
6719 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6720 {
6721 PyThreadState* __tstate = wxPyBeginAllowThreads();
6722 result = (bool)((wxComboBox const *)arg1)->CanRedo();
6723 wxPyEndAllowThreads(__tstate);
6724 if (PyErr_Occurred()) SWIG_fail;
6725 }
6726 {
6727 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6728 }
6729 return resultobj;
6730fail:
6731 return NULL;
d14a1e28
RD
6732}
6733
6734
0085ce49
RD
6735SWIGINTERN PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6736 PyObject *resultobj = 0;
6737 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
6738 SwigValueWrapper<wxVisualAttributes > result;
6739 int val1 ;
6740 int ecode1 = 0 ;
6741 PyObject * obj0 = 0 ;
6742 char * kwnames[] = {
6743 (char *) "variant", NULL
6744 };
6745
6746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
6747 if (obj0) {
6748 ecode1 = SWIG_AsVal_int(obj0, &val1);
6749 if (!SWIG_IsOK(ecode1)) {
6750 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ComboBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
6751 }
6752 arg1 = static_cast< wxWindowVariant >(val1);
6753 }
6754 {
6755 if (!wxPyCheckForApp()) SWIG_fail;
6756 PyThreadState* __tstate = wxPyBeginAllowThreads();
6757 result = wxComboBox::GetClassDefaultAttributes(arg1);
6758 wxPyEndAllowThreads(__tstate);
6759 if (PyErr_Occurred()) SWIG_fail;
6760 }
6761 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
6762 return resultobj;
6763fail:
6764 return NULL;
d14a1e28
RD
6765}
6766
6767
0085ce49
RD
6768SWIGINTERN PyObject *ComboBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6769 PyObject *obj;
6770 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6771 SWIG_TypeNewClientData(SWIGTYPE_p_wxComboBox, SWIG_NewClientData(obj));
6772 return SWIG_Py_Void();
5cbf236d
RD
6773}
6774
0085ce49
RD
6775SWIGINTERN PyObject *ComboBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6776 return SWIG_Python_InitShadowInstance(args);
6777}
5cbf236d 6778
0085ce49
RD
6779SWIGINTERN int GaugeNameStr_set(PyObject *) {
6780 SWIG_Error(SWIG_AttributeError,"Variable GaugeNameStr is read-only.");
6781 return 1;
5cbf236d
RD
6782}
6783
6784
0085ce49
RD
6785SWIGINTERN PyObject *GaugeNameStr_get(void) {
6786 PyObject *pyobj = 0;
6787
6788 {
6789#if wxUSE_UNICODE
6790 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6791#else
6792 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6793#endif
6794 }
6795 return pyobj;
6796}
6797
6798
6799SWIGINTERN PyObject *_wrap_new_Gauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6800 PyObject *resultobj = 0;
6801 wxWindow *arg1 = (wxWindow *) 0 ;
6802 int arg2 = (int) -1 ;
6803 int arg3 = (int) 100 ;
6804 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6805 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6806 wxSize const &arg5_defvalue = wxDefaultSize ;
6807 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6808 long arg6 = (long) wxGA_HORIZONTAL ;
6809 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6810 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6811 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
6812 wxString *arg8 = (wxString *) &arg8_defvalue ;
6813 wxGauge *result = 0 ;
6814 void *argp1 = 0 ;
6815 int res1 = 0 ;
6816 int val2 ;
6817 int ecode2 = 0 ;
6818 int val3 ;
6819 int ecode3 = 0 ;
6820 wxPoint temp4 ;
6821 wxSize temp5 ;
6822 long val6 ;
6823 int ecode6 = 0 ;
6824 void *argp7 = 0 ;
6825 int res7 = 0 ;
6826 bool temp8 = false ;
6827 PyObject * obj0 = 0 ;
6828 PyObject * obj1 = 0 ;
6829 PyObject * obj2 = 0 ;
6830 PyObject * obj3 = 0 ;
6831 PyObject * obj4 = 0 ;
6832 PyObject * obj5 = 0 ;
6833 PyObject * obj6 = 0 ;
6834 PyObject * obj7 = 0 ;
6835 char * kwnames[] = {
6836 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6837 };
6838
6839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
6840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
6841 if (!SWIG_IsOK(res1)) {
6842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gauge" "', expected argument " "1"" of type '" "wxWindow *""'");
6843 }
6844 arg1 = reinterpret_cast< wxWindow * >(argp1);
6845 if (obj1) {
6846 ecode2 = SWIG_AsVal_int(obj1, &val2);
6847 if (!SWIG_IsOK(ecode2)) {
6848 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gauge" "', expected argument " "2"" of type '" "int""'");
6849 }
6850 arg2 = static_cast< int >(val2);
6851 }
6852 if (obj2) {
6853 ecode3 = SWIG_AsVal_int(obj2, &val3);
6854 if (!SWIG_IsOK(ecode3)) {
6855 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gauge" "', expected argument " "3"" of type '" "int""'");
6856 }
6857 arg3 = static_cast< int >(val3);
6858 }
6859 if (obj3) {
5cbf236d 6860 {
0085ce49
RD
6861 arg4 = &temp4;
6862 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5cbf236d 6863 }
0085ce49
RD
6864 }
6865 if (obj4) {
5cbf236d 6866 {
0085ce49
RD
6867 arg5 = &temp5;
6868 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5cbf236d 6869 }
0085ce49
RD
6870 }
6871 if (obj5) {
6872 ecode6 = SWIG_AsVal_long(obj5, &val6);
6873 if (!SWIG_IsOK(ecode6)) {
6874 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Gauge" "', expected argument " "6"" of type '" "long""'");
6875 }
6876 arg6 = static_cast< long >(val6);
6877 }
6878 if (obj6) {
6879 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
6880 if (!SWIG_IsOK(res7)) {
6881 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6882 }
6883 if (!argp7) {
6884 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
5cbf236d 6885 }
0085ce49
RD
6886 arg7 = reinterpret_cast< wxValidator * >(argp7);
6887 }
6888 if (obj7) {
5cbf236d 6889 {
0085ce49
RD
6890 arg8 = wxString_in_helper(obj7);
6891 if (arg8 == NULL) SWIG_fail;
6892 temp8 = true;
5cbf236d 6893 }
0085ce49
RD
6894 }
6895 {
6896 if (!wxPyCheckForApp()) SWIG_fail;
6897 PyThreadState* __tstate = wxPyBeginAllowThreads();
6898 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6899 wxPyEndAllowThreads(__tstate);
6900 if (PyErr_Occurred()) SWIG_fail;
6901 }
6902 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_NEW | 0 );
6903 {
6904 if (temp8)
6905 delete arg8;
6906 }
6907 return resultobj;
6908fail:
6909 {
6910 if (temp8)
6911 delete arg8;
6912 }
6913 return NULL;
5cbf236d
RD
6914}
6915
6916
0085ce49
RD
6917SWIGINTERN PyObject *_wrap_new_PreGauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6918 PyObject *resultobj = 0;
6919 wxGauge *result = 0 ;
6920
6921 if (!SWIG_Python_UnpackTuple(args,"new_PreGauge",0,0,0)) SWIG_fail;
6922 {
6923 if (!wxPyCheckForApp()) SWIG_fail;
6924 PyThreadState* __tstate = wxPyBeginAllowThreads();
6925 result = (wxGauge *)new wxGauge();
6926 wxPyEndAllowThreads(__tstate);
6927 if (PyErr_Occurred()) SWIG_fail;
6928 }
6929 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_OWN | 0 );
6930 return resultobj;
6931fail:
6932 return NULL;
6933}
6934
6935
6936SWIGINTERN PyObject *_wrap_Gauge_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6937 PyObject *resultobj = 0;
6938 wxGauge *arg1 = (wxGauge *) 0 ;
6939 wxWindow *arg2 = (wxWindow *) 0 ;
6940 int arg3 = (int) -1 ;
6941 int arg4 = (int) 100 ;
6942 wxPoint const &arg5_defvalue = wxDefaultPosition ;
6943 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
6944 wxSize const &arg6_defvalue = wxDefaultSize ;
6945 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
6946 long arg7 = (long) wxGA_HORIZONTAL ;
6947 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6948 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6949 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
6950 wxString *arg9 = (wxString *) &arg9_defvalue ;
6951 bool result;
6952 void *argp1 = 0 ;
6953 int res1 = 0 ;
6954 void *argp2 = 0 ;
6955 int res2 = 0 ;
6956 int val3 ;
6957 int ecode3 = 0 ;
6958 int val4 ;
6959 int ecode4 = 0 ;
6960 wxPoint temp5 ;
6961 wxSize temp6 ;
6962 long val7 ;
6963 int ecode7 = 0 ;
6964 void *argp8 = 0 ;
6965 int res8 = 0 ;
6966 bool temp9 = false ;
6967 PyObject * obj0 = 0 ;
6968 PyObject * obj1 = 0 ;
6969 PyObject * obj2 = 0 ;
6970 PyObject * obj3 = 0 ;
6971 PyObject * obj4 = 0 ;
6972 PyObject * obj5 = 0 ;
6973 PyObject * obj6 = 0 ;
6974 PyObject * obj7 = 0 ;
6975 PyObject * obj8 = 0 ;
6976 char * kwnames[] = {
6977 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6978 };
6979
6980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
6981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
6982 if (!SWIG_IsOK(res1)) {
6983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Create" "', expected argument " "1"" of type '" "wxGauge *""'");
6984 }
6985 arg1 = reinterpret_cast< wxGauge * >(argp1);
6986 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
6987 if (!SWIG_IsOK(res2)) {
6988 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gauge_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
6989 }
6990 arg2 = reinterpret_cast< wxWindow * >(argp2);
6991 if (obj2) {
6992 ecode3 = SWIG_AsVal_int(obj2, &val3);
6993 if (!SWIG_IsOK(ecode3)) {
6994 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Gauge_Create" "', expected argument " "3"" of type '" "int""'");
6995 }
6996 arg3 = static_cast< int >(val3);
6997 }
6998 if (obj3) {
6999 ecode4 = SWIG_AsVal_int(obj3, &val4);
7000 if (!SWIG_IsOK(ecode4)) {
7001 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Gauge_Create" "', expected argument " "4"" of type '" "int""'");
7002 }
7003 arg4 = static_cast< int >(val4);
7004 }
7005 if (obj4) {
5cbf236d 7006 {
0085ce49
RD
7007 arg5 = &temp5;
7008 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5cbf236d 7009 }
0085ce49
RD
7010 }
7011 if (obj5) {
5cbf236d 7012 {
0085ce49
RD
7013 arg6 = &temp6;
7014 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5cbf236d 7015 }
0085ce49
RD
7016 }
7017 if (obj6) {
7018 ecode7 = SWIG_AsVal_long(obj6, &val7);
7019 if (!SWIG_IsOK(ecode7)) {
7020 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Gauge_Create" "', expected argument " "7"" of type '" "long""'");
7021 }
7022 arg7 = static_cast< long >(val7);
7023 }
7024 if (obj7) {
7025 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
7026 if (!SWIG_IsOK(res8)) {
7027 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5cbf236d 7028 }
0085ce49
RD
7029 if (!argp8) {
7030 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
7031 }
7032 arg8 = reinterpret_cast< wxValidator * >(argp8);
7033 }
7034 if (obj8) {
5cbf236d 7035 {
0085ce49
RD
7036 arg9 = wxString_in_helper(obj8);
7037 if (arg9 == NULL) SWIG_fail;
7038 temp9 = true;
5cbf236d 7039 }
0085ce49
RD
7040 }
7041 {
7042 PyThreadState* __tstate = wxPyBeginAllowThreads();
7043 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
7044 wxPyEndAllowThreads(__tstate);
7045 if (PyErr_Occurred()) SWIG_fail;
7046 }
7047 {
7048 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7049 }
7050 {
7051 if (temp9)
7052 delete arg9;
7053 }
7054 return resultobj;
7055fail:
7056 {
7057 if (temp9)
7058 delete arg9;
7059 }
7060 return NULL;
7061}
7062
7063
7064SWIGINTERN PyObject *_wrap_Gauge_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7065 PyObject *resultobj = 0;
7066 wxGauge *arg1 = (wxGauge *) 0 ;
7067 int arg2 ;
7068 void *argp1 = 0 ;
7069 int res1 = 0 ;
7070 int val2 ;
7071 int ecode2 = 0 ;
7072 PyObject * obj0 = 0 ;
7073 PyObject * obj1 = 0 ;
7074 char * kwnames[] = {
7075 (char *) "self",(char *) "range", NULL
7076 };
7077
7078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) SWIG_fail;
7079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7080 if (!SWIG_IsOK(res1)) {
7081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetRange" "', expected argument " "1"" of type '" "wxGauge *""'");
7082 }
7083 arg1 = reinterpret_cast< wxGauge * >(argp1);
7084 ecode2 = SWIG_AsVal_int(obj1, &val2);
7085 if (!SWIG_IsOK(ecode2)) {
7086 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetRange" "', expected argument " "2"" of type '" "int""'");
7087 }
7088 arg2 = static_cast< int >(val2);
7089 {
7090 PyThreadState* __tstate = wxPyBeginAllowThreads();
7091 (arg1)->SetRange(arg2);
7092 wxPyEndAllowThreads(__tstate);
7093 if (PyErr_Occurred()) SWIG_fail;
7094 }
7095 resultobj = SWIG_Py_Void();
7096 return resultobj;
7097fail:
7098 return NULL;
5cbf236d
RD
7099}
7100
7101
0085ce49
RD
7102SWIGINTERN PyObject *_wrap_Gauge_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7103 PyObject *resultobj = 0;
7104 wxGauge *arg1 = (wxGauge *) 0 ;
7105 int result;
7106 void *argp1 = 0 ;
7107 int res1 = 0 ;
7108 PyObject *swig_obj[1] ;
7109
7110 if (!args) SWIG_fail;
7111 swig_obj[0] = args;
7112 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7113 if (!SWIG_IsOK(res1)) {
7114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetRange" "', expected argument " "1"" of type '" "wxGauge const *""'");
7115 }
7116 arg1 = reinterpret_cast< wxGauge * >(argp1);
7117 {
7118 PyThreadState* __tstate = wxPyBeginAllowThreads();
7119 result = (int)((wxGauge const *)arg1)->GetRange();
7120 wxPyEndAllowThreads(__tstate);
7121 if (PyErr_Occurred()) SWIG_fail;
7122 }
7123 resultobj = SWIG_From_int(static_cast< int >(result));
7124 return resultobj;
7125fail:
7126 return NULL;
7127}
7128
7129
7130SWIGINTERN PyObject *_wrap_Gauge_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7131 PyObject *resultobj = 0;
7132 wxGauge *arg1 = (wxGauge *) 0 ;
7133 int arg2 ;
7134 void *argp1 = 0 ;
7135 int res1 = 0 ;
7136 int val2 ;
7137 int ecode2 = 0 ;
7138 PyObject * obj0 = 0 ;
7139 PyObject * obj1 = 0 ;
7140 char * kwnames[] = {
7141 (char *) "self",(char *) "pos", NULL
7142 };
7143
7144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
7145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7146 if (!SWIG_IsOK(res1)) {
7147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetValue" "', expected argument " "1"" of type '" "wxGauge *""'");
7148 }
7149 arg1 = reinterpret_cast< wxGauge * >(argp1);
7150 ecode2 = SWIG_AsVal_int(obj1, &val2);
7151 if (!SWIG_IsOK(ecode2)) {
7152 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetValue" "', expected argument " "2"" of type '" "int""'");
7153 }
7154 arg2 = static_cast< int >(val2);
7155 {
7156 PyThreadState* __tstate = wxPyBeginAllowThreads();
7157 (arg1)->SetValue(arg2);
7158 wxPyEndAllowThreads(__tstate);
7159 if (PyErr_Occurred()) SWIG_fail;
7160 }
7161 resultobj = SWIG_Py_Void();
7162 return resultobj;
7163fail:
7164 return NULL;
5cbf236d
RD
7165}
7166
7167
0085ce49
RD
7168SWIGINTERN PyObject *_wrap_Gauge_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7169 PyObject *resultobj = 0;
7170 wxGauge *arg1 = (wxGauge *) 0 ;
7171 int result;
7172 void *argp1 = 0 ;
7173 int res1 = 0 ;
7174 PyObject *swig_obj[1] ;
7175
7176 if (!args) SWIG_fail;
7177 swig_obj[0] = args;
7178 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7179 if (!SWIG_IsOK(res1)) {
7180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetValue" "', expected argument " "1"" of type '" "wxGauge const *""'");
7181 }
7182 arg1 = reinterpret_cast< wxGauge * >(argp1);
7183 {
7184 PyThreadState* __tstate = wxPyBeginAllowThreads();
7185 result = (int)((wxGauge const *)arg1)->GetValue();
7186 wxPyEndAllowThreads(__tstate);
7187 if (PyErr_Occurred()) SWIG_fail;
7188 }
7189 resultobj = SWIG_From_int(static_cast< int >(result));
7190 return resultobj;
7191fail:
7192 return NULL;
5cbf236d
RD
7193}
7194
7195
0085ce49
RD
7196SWIGINTERN PyObject *_wrap_Gauge_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7197 PyObject *resultobj = 0;
7198 wxGauge *arg1 = (wxGauge *) 0 ;
7199 bool result;
7200 void *argp1 = 0 ;
7201 int res1 = 0 ;
7202 PyObject *swig_obj[1] ;
7203
7204 if (!args) SWIG_fail;
7205 swig_obj[0] = args;
7206 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7207 if (!SWIG_IsOK(res1)) {
7208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_IsVertical" "', expected argument " "1"" of type '" "wxGauge const *""'");
7209 }
7210 arg1 = reinterpret_cast< wxGauge * >(argp1);
7211 {
7212 PyThreadState* __tstate = wxPyBeginAllowThreads();
7213 result = (bool)((wxGauge const *)arg1)->IsVertical();
7214 wxPyEndAllowThreads(__tstate);
7215 if (PyErr_Occurred()) SWIG_fail;
7216 }
7217 {
7218 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7219 }
7220 return resultobj;
7221fail:
7222 return NULL;
7223}
7224
7225
7226SWIGINTERN PyObject *_wrap_Gauge_SetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7227 PyObject *resultobj = 0;
7228 wxGauge *arg1 = (wxGauge *) 0 ;
7229 int arg2 ;
7230 void *argp1 = 0 ;
7231 int res1 = 0 ;
7232 int val2 ;
7233 int ecode2 = 0 ;
7234 PyObject * obj0 = 0 ;
7235 PyObject * obj1 = 0 ;
7236 char * kwnames[] = {
7237 (char *) "self",(char *) "w", NULL
7238 };
7239
7240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7241 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7242 if (!SWIG_IsOK(res1)) {
7243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetShadowWidth" "', expected argument " "1"" of type '" "wxGauge *""'");
7244 }
7245 arg1 = reinterpret_cast< wxGauge * >(argp1);
7246 ecode2 = SWIG_AsVal_int(obj1, &val2);
7247 if (!SWIG_IsOK(ecode2)) {
7248 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetShadowWidth" "', expected argument " "2"" of type '" "int""'");
7249 }
7250 arg2 = static_cast< int >(val2);
7251 {
7252 PyThreadState* __tstate = wxPyBeginAllowThreads();
7253 (arg1)->SetShadowWidth(arg2);
7254 wxPyEndAllowThreads(__tstate);
7255 if (PyErr_Occurred()) SWIG_fail;
7256 }
7257 resultobj = SWIG_Py_Void();
7258 return resultobj;
7259fail:
7260 return NULL;
22bfe96c
RD
7261}
7262
7263
0085ce49
RD
7264SWIGINTERN PyObject *_wrap_Gauge_GetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7265 PyObject *resultobj = 0;
7266 wxGauge *arg1 = (wxGauge *) 0 ;
7267 int result;
7268 void *argp1 = 0 ;
7269 int res1 = 0 ;
7270 PyObject *swig_obj[1] ;
7271
7272 if (!args) SWIG_fail;
7273 swig_obj[0] = args;
7274 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7275 if (!SWIG_IsOK(res1)) {
7276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetShadowWidth" "', expected argument " "1"" of type '" "wxGauge const *""'");
7277 }
7278 arg1 = reinterpret_cast< wxGauge * >(argp1);
7279 {
7280 PyThreadState* __tstate = wxPyBeginAllowThreads();
7281 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
7282 wxPyEndAllowThreads(__tstate);
7283 if (PyErr_Occurred()) SWIG_fail;
7284 }
7285 resultobj = SWIG_From_int(static_cast< int >(result));
7286 return resultobj;
7287fail:
7288 return NULL;
7289}
7290
7291
7292SWIGINTERN PyObject *_wrap_Gauge_SetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7293 PyObject *resultobj = 0;
7294 wxGauge *arg1 = (wxGauge *) 0 ;
7295 int arg2 ;
7296 void *argp1 = 0 ;
7297 int res1 = 0 ;
7298 int val2 ;
7299 int ecode2 = 0 ;
7300 PyObject * obj0 = 0 ;
7301 PyObject * obj1 = 0 ;
7302 char * kwnames[] = {
7303 (char *) "self",(char *) "w", NULL
7304 };
7305
7306 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) SWIG_fail;
7307 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7308 if (!SWIG_IsOK(res1)) {
7309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetBezelFace" "', expected argument " "1"" of type '" "wxGauge *""'");
7310 }
7311 arg1 = reinterpret_cast< wxGauge * >(argp1);
7312 ecode2 = SWIG_AsVal_int(obj1, &val2);
7313 if (!SWIG_IsOK(ecode2)) {
7314 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetBezelFace" "', expected argument " "2"" of type '" "int""'");
7315 }
7316 arg2 = static_cast< int >(val2);
7317 {
7318 PyThreadState* __tstate = wxPyBeginAllowThreads();
7319 (arg1)->SetBezelFace(arg2);
7320 wxPyEndAllowThreads(__tstate);
7321 if (PyErr_Occurred()) SWIG_fail;
7322 }
7323 resultobj = SWIG_Py_Void();
7324 return resultobj;
7325fail:
7326 return NULL;
d14a1e28 7327}
0085ce49
RD
7328
7329
7330SWIGINTERN PyObject *_wrap_Gauge_GetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7331 PyObject *resultobj = 0;
7332 wxGauge *arg1 = (wxGauge *) 0 ;
7333 int result;
7334 void *argp1 = 0 ;
7335 int res1 = 0 ;
7336 PyObject *swig_obj[1] ;
7337
7338 if (!args) SWIG_fail;
7339 swig_obj[0] = args;
7340 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7341 if (!SWIG_IsOK(res1)) {
7342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetBezelFace" "', expected argument " "1"" of type '" "wxGauge const *""'");
7343 }
7344 arg1 = reinterpret_cast< wxGauge * >(argp1);
7345 {
7346 PyThreadState* __tstate = wxPyBeginAllowThreads();
7347 result = (int)((wxGauge const *)arg1)->GetBezelFace();
7348 wxPyEndAllowThreads(__tstate);
7349 if (PyErr_Occurred()) SWIG_fail;
7350 }
7351 resultobj = SWIG_From_int(static_cast< int >(result));
7352 return resultobj;
7353fail:
7354 return NULL;
7355}
7356
7357
7358SWIGINTERN PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7359 PyObject *resultobj = 0;
7360 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7361 SwigValueWrapper<wxVisualAttributes > result;
7362 int val1 ;
7363 int ecode1 = 0 ;
7364 PyObject * obj0 = 0 ;
7365 char * kwnames[] = {
7366 (char *) "variant", NULL
7367 };
7368
7369 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7370 if (obj0) {
7371 ecode1 = SWIG_AsVal_int(obj0, &val1);
7372 if (!SWIG_IsOK(ecode1)) {
7373 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Gauge_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7374 }
7375 arg1 = static_cast< wxWindowVariant >(val1);
7376 }
7377 {
7378 if (!wxPyCheckForApp()) SWIG_fail;
7379 PyThreadState* __tstate = wxPyBeginAllowThreads();
7380 result = wxGauge::GetClassDefaultAttributes(arg1);
7381 wxPyEndAllowThreads(__tstate);
7382 if (PyErr_Occurred()) SWIG_fail;
7383 }
7384 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7385 return resultobj;
7386fail:
7387 return NULL;
b2dc1044
RD
7388}
7389
7390
0085ce49
RD
7391SWIGINTERN PyObject *Gauge_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7392 PyObject *obj;
7393 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7394 SWIG_TypeNewClientData(SWIGTYPE_p_wxGauge, SWIG_NewClientData(obj));
7395 return SWIG_Py_Void();
7396}
7397
7398SWIGINTERN PyObject *Gauge_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7399 return SWIG_Python_InitShadowInstance(args);
7400}
7401
7402SWIGINTERN int StaticBitmapNameStr_set(PyObject *) {
7403 SWIG_Error(SWIG_AttributeError,"Variable StaticBitmapNameStr is read-only.");
7404 return 1;
7405}
7406
7407
7408SWIGINTERN PyObject *StaticBitmapNameStr_get(void) {
7409 PyObject *pyobj = 0;
7410
7411 {
b2dc1044 7412#if wxUSE_UNICODE
0085ce49 7413 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
b2dc1044 7414#else
0085ce49 7415 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
b2dc1044 7416#endif
0085ce49
RD
7417 }
7418 return pyobj;
d14a1e28
RD
7419}
7420
7421
0085ce49
RD
7422SWIGINTERN int StaticBoxNameStr_set(PyObject *) {
7423 SWIG_Error(SWIG_AttributeError,"Variable StaticBoxNameStr is read-only.");
7424 return 1;
d14a1e28
RD
7425}
7426
7427
0085ce49
RD
7428SWIGINTERN PyObject *StaticBoxNameStr_get(void) {
7429 PyObject *pyobj = 0;
7430
7431 {
7432#if wxUSE_UNICODE
7433 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7434#else
7435 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7436#endif
7437 }
7438 return pyobj;
7439}
7440
7441
7442SWIGINTERN int StaticTextNameStr_set(PyObject *) {
7443 SWIG_Error(SWIG_AttributeError,"Variable StaticTextNameStr is read-only.");
7444 return 1;
7445}
7446
7447
7448SWIGINTERN PyObject *StaticTextNameStr_get(void) {
7449 PyObject *pyobj = 0;
7450
7451 {
7452#if wxUSE_UNICODE
7453 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7454#else
7455 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7456#endif
7457 }
7458 return pyobj;
7459}
7460
7461
7462SWIGINTERN PyObject *_wrap_new_StaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7463 PyObject *resultobj = 0;
7464 wxWindow *arg1 = (wxWindow *) 0 ;
7465 int arg2 = (int) -1 ;
7466 wxString const &arg3_defvalue = wxPyEmptyString ;
7467 wxString *arg3 = (wxString *) &arg3_defvalue ;
7468 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7469 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7470 wxSize const &arg5_defvalue = wxDefaultSize ;
7471 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7472 long arg6 = (long) 0 ;
7473 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
7474 wxString *arg7 = (wxString *) &arg7_defvalue ;
7475 wxStaticBox *result = 0 ;
7476 void *argp1 = 0 ;
7477 int res1 = 0 ;
7478 int val2 ;
7479 int ecode2 = 0 ;
7480 bool temp3 = false ;
7481 wxPoint temp4 ;
7482 wxSize temp5 ;
7483 long val6 ;
7484 int ecode6 = 0 ;
7485 bool temp7 = false ;
7486 PyObject * obj0 = 0 ;
7487 PyObject * obj1 = 0 ;
7488 PyObject * obj2 = 0 ;
7489 PyObject * obj3 = 0 ;
7490 PyObject * obj4 = 0 ;
7491 PyObject * obj5 = 0 ;
7492 PyObject * obj6 = 0 ;
7493 char * kwnames[] = {
7494 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7495 };
7496
7497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7498 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7499 if (!SWIG_IsOK(res1)) {
7500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBox" "', expected argument " "1"" of type '" "wxWindow *""'");
7501 }
7502 arg1 = reinterpret_cast< wxWindow * >(argp1);
7503 if (obj1) {
7504 ecode2 = SWIG_AsVal_int(obj1, &val2);
7505 if (!SWIG_IsOK(ecode2)) {
7506 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBox" "', expected argument " "2"" of type '" "int""'");
7507 }
7508 arg2 = static_cast< int >(val2);
7509 }
7510 if (obj2) {
d14a1e28 7511 {
0085ce49
RD
7512 arg3 = wxString_in_helper(obj2);
7513 if (arg3 == NULL) SWIG_fail;
7514 temp3 = true;
d14a1e28 7515 }
0085ce49
RD
7516 }
7517 if (obj3) {
4f89f6a3 7518 {
0085ce49
RD
7519 arg4 = &temp4;
7520 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 7521 }
0085ce49
RD
7522 }
7523 if (obj4) {
d14a1e28 7524 {
0085ce49
RD
7525 arg5 = &temp5;
7526 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 7527 }
0085ce49
RD
7528 }
7529 if (obj5) {
7530 ecode6 = SWIG_AsVal_long(obj5, &val6);
7531 if (!SWIG_IsOK(ecode6)) {
7532 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBox" "', expected argument " "6"" of type '" "long""'");
7533 }
7534 arg6 = static_cast< long >(val6);
7535 }
7536 if (obj6) {
d14a1e28 7537 {
0085ce49
RD
7538 arg7 = wxString_in_helper(obj6);
7539 if (arg7 == NULL) SWIG_fail;
7540 temp7 = true;
d14a1e28 7541 }
0085ce49
RD
7542 }
7543 {
7544 if (!wxPyCheckForApp()) SWIG_fail;
7545 PyThreadState* __tstate = wxPyBeginAllowThreads();
7546 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7547 wxPyEndAllowThreads(__tstate);
7548 if (PyErr_Occurred()) SWIG_fail;
7549 }
7550 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_NEW | 0 );
7551 {
7552 if (temp3)
7553 delete arg3;
7554 }
7555 {
7556 if (temp7)
7557 delete arg7;
7558 }
7559 return resultobj;
7560fail:
7561 {
7562 if (temp3)
7563 delete arg3;
7564 }
7565 {
7566 if (temp7)
7567 delete arg7;
7568 }
7569 return NULL;
d14a1e28
RD
7570}
7571
7572
0085ce49
RD
7573SWIGINTERN PyObject *_wrap_new_PreStaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7574 PyObject *resultobj = 0;
7575 wxStaticBox *result = 0 ;
7576
7577 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBox",0,0,0)) SWIG_fail;
7578 {
7579 if (!wxPyCheckForApp()) SWIG_fail;
7580 PyThreadState* __tstate = wxPyBeginAllowThreads();
7581 result = (wxStaticBox *)new wxStaticBox();
7582 wxPyEndAllowThreads(__tstate);
7583 if (PyErr_Occurred()) SWIG_fail;
7584 }
7585 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_OWN | 0 );
7586 return resultobj;
7587fail:
7588 return NULL;
7589}
7590
7591
7592SWIGINTERN PyObject *_wrap_StaticBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7593 PyObject *resultobj = 0;
7594 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
7595 wxWindow *arg2 = (wxWindow *) 0 ;
7596 int arg3 = (int) -1 ;
7597 wxString const &arg4_defvalue = wxPyEmptyString ;
7598 wxString *arg4 = (wxString *) &arg4_defvalue ;
7599 wxPoint const &arg5_defvalue = wxDefaultPosition ;
7600 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
7601 wxSize const &arg6_defvalue = wxDefaultSize ;
7602 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
7603 long arg7 = (long) 0 ;
7604 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
7605 wxString *arg8 = (wxString *) &arg8_defvalue ;
7606 bool result;
7607 void *argp1 = 0 ;
7608 int res1 = 0 ;
7609 void *argp2 = 0 ;
7610 int res2 = 0 ;
7611 int val3 ;
7612 int ecode3 = 0 ;
7613 bool temp4 = false ;
7614 wxPoint temp5 ;
7615 wxSize temp6 ;
7616 long val7 ;
7617 int ecode7 = 0 ;
7618 bool temp8 = false ;
7619 PyObject * obj0 = 0 ;
7620 PyObject * obj1 = 0 ;
7621 PyObject * obj2 = 0 ;
7622 PyObject * obj3 = 0 ;
7623 PyObject * obj4 = 0 ;
7624 PyObject * obj5 = 0 ;
7625 PyObject * obj6 = 0 ;
7626 PyObject * obj7 = 0 ;
7627 char * kwnames[] = {
7628 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7629 };
7630
7631 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
7632 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBox, 0 | 0 );
7633 if (!SWIG_IsOK(res1)) {
7634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBox_Create" "', expected argument " "1"" of type '" "wxStaticBox *""'");
7635 }
7636 arg1 = reinterpret_cast< wxStaticBox * >(argp1);
7637 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7638 if (!SWIG_IsOK(res2)) {
7639 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7640 }
7641 arg2 = reinterpret_cast< wxWindow * >(argp2);
7642 if (obj2) {
7643 ecode3 = SWIG_AsVal_int(obj2, &val3);
7644 if (!SWIG_IsOK(ecode3)) {
7645 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBox_Create" "', expected argument " "3"" of type '" "int""'");
7646 }
7647 arg3 = static_cast< int >(val3);
7648 }
7649 if (obj3) {
093d3ff1 7650 {
0085ce49
RD
7651 arg4 = wxString_in_helper(obj3);
7652 if (arg4 == NULL) SWIG_fail;
7653 temp4 = true;
093d3ff1 7654 }
0085ce49
RD
7655 }
7656 if (obj4) {
d14a1e28 7657 {
0085ce49
RD
7658 arg5 = &temp5;
7659 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 7660 }
0085ce49
RD
7661 }
7662 if (obj5) {
d14a1e28 7663 {
0085ce49
RD
7664 arg6 = &temp6;
7665 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d14a1e28 7666 }
0085ce49
RD
7667 }
7668 if (obj6) {
7669 ecode7 = SWIG_AsVal_long(obj6, &val7);
7670 if (!SWIG_IsOK(ecode7)) {
7671 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBox_Create" "', expected argument " "7"" of type '" "long""'");
7672 }
7673 arg7 = static_cast< long >(val7);
7674 }
7675 if (obj7) {
093d3ff1 7676 {
0085ce49
RD
7677 arg8 = wxString_in_helper(obj7);
7678 if (arg8 == NULL) SWIG_fail;
7679 temp8 = true;
093d3ff1 7680 }
0085ce49
RD
7681 }
7682 {
7683 PyThreadState* __tstate = wxPyBeginAllowThreads();
7684 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
7685 wxPyEndAllowThreads(__tstate);
7686 if (PyErr_Occurred()) SWIG_fail;
7687 }
7688 {
7689 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7690 }
7691 {
7692 if (temp4)
7693 delete arg4;
7694 }
7695 {
7696 if (temp8)
7697 delete arg8;
7698 }
7699 return resultobj;
7700fail:
7701 {
7702 if (temp4)
7703 delete arg4;
7704 }
7705 {
7706 if (temp8)
7707 delete arg8;
7708 }
7709 return NULL;
7710}
d14a1e28 7711
0085ce49
RD
7712
7713SWIGINTERN PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7714 PyObject *resultobj = 0;
7715 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7716 SwigValueWrapper<wxVisualAttributes > result;
7717 int val1 ;
7718 int ecode1 = 0 ;
7719 PyObject * obj0 = 0 ;
7720 char * kwnames[] = {
7721 (char *) "variant", NULL
7722 };
7723
7724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7725 if (obj0) {
7726 ecode1 = SWIG_AsVal_int(obj0, &val1);
7727 if (!SWIG_IsOK(ecode1)) {
7728 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7729 }
7730 arg1 = static_cast< wxWindowVariant >(val1);
7731 }
7732 {
7733 if (!wxPyCheckForApp()) SWIG_fail;
7734 PyThreadState* __tstate = wxPyBeginAllowThreads();
7735 result = wxStaticBox::GetClassDefaultAttributes(arg1);
7736 wxPyEndAllowThreads(__tstate);
7737 if (PyErr_Occurred()) SWIG_fail;
7738 }
7739 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7740 return resultobj;
7741fail:
7742 return NULL;
7743}
7744
7745
7746SWIGINTERN PyObject *StaticBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7747 PyObject *obj;
7748 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7749 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBox, SWIG_NewClientData(obj));
7750 return SWIG_Py_Void();
7751}
7752
7753SWIGINTERN PyObject *StaticBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7754 return SWIG_Python_InitShadowInstance(args);
7755}
7756
7757SWIGINTERN PyObject *_wrap_new_StaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7758 PyObject *resultobj = 0;
7759 wxWindow *arg1 = (wxWindow *) 0 ;
7760 int arg2 = (int) -1 ;
7761 wxPoint const &arg3_defvalue = wxDefaultPosition ;
7762 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
7763 wxSize const &arg4_defvalue = wxDefaultSize ;
7764 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
7765 long arg5 = (long) wxLI_HORIZONTAL ;
7766 wxString const &arg6_defvalue = wxPyStaticTextNameStr ;
7767 wxString *arg6 = (wxString *) &arg6_defvalue ;
7768 wxStaticLine *result = 0 ;
7769 void *argp1 = 0 ;
7770 int res1 = 0 ;
7771 int val2 ;
7772 int ecode2 = 0 ;
7773 wxPoint temp3 ;
7774 wxSize temp4 ;
7775 long val5 ;
7776 int ecode5 = 0 ;
7777 bool temp6 = false ;
7778 PyObject * obj0 = 0 ;
7779 PyObject * obj1 = 0 ;
7780 PyObject * obj2 = 0 ;
7781 PyObject * obj3 = 0 ;
7782 PyObject * obj4 = 0 ;
7783 PyObject * obj5 = 0 ;
7784 char * kwnames[] = {
7785 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7786 };
7787
7788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
7789 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7790 if (!SWIG_IsOK(res1)) {
7791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticLine" "', expected argument " "1"" of type '" "wxWindow *""'");
7792 }
7793 arg1 = reinterpret_cast< wxWindow * >(argp1);
7794 if (obj1) {
7795 ecode2 = SWIG_AsVal_int(obj1, &val2);
7796 if (!SWIG_IsOK(ecode2)) {
7797 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticLine" "', expected argument " "2"" of type '" "int""'");
7798 }
7799 arg2 = static_cast< int >(val2);
7800 }
7801 if (obj2) {
093d3ff1 7802 {
0085ce49
RD
7803 arg3 = &temp3;
7804 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 7805 }
0085ce49
RD
7806 }
7807 if (obj3) {
d14a1e28 7808 {
0085ce49
RD
7809 arg4 = &temp4;
7810 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 7811 }
0085ce49
RD
7812 }
7813 if (obj4) {
7814 ecode5 = SWIG_AsVal_long(obj4, &val5);
7815 if (!SWIG_IsOK(ecode5)) {
7816 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_StaticLine" "', expected argument " "5"" of type '" "long""'");
7817 }
7818 arg5 = static_cast< long >(val5);
7819 }
7820 if (obj5) {
7821 {
7822 arg6 = wxString_in_helper(obj5);
7823 if (arg6 == NULL) SWIG_fail;
7824 temp6 = true;
7825 }
7826 }
7827 {
7828 if (!wxPyCheckForApp()) SWIG_fail;
7829 PyThreadState* __tstate = wxPyBeginAllowThreads();
7830 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
7831 wxPyEndAllowThreads(__tstate);
7832 if (PyErr_Occurred()) SWIG_fail;
7833 }
7834 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_NEW | 0 );
7835 {
7836 if (temp6)
7837 delete arg6;
7838 }
7839 return resultobj;
7840fail:
7841 {
7842 if (temp6)
7843 delete arg6;
7844 }
7845 return NULL;
d14a1e28
RD
7846}
7847
7848
0085ce49
RD
7849SWIGINTERN PyObject *_wrap_new_PreStaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7850 PyObject *resultobj = 0;
7851 wxStaticLine *result = 0 ;
7852
7853 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticLine",0,0,0)) SWIG_fail;
7854 {
7855 if (!wxPyCheckForApp()) SWIG_fail;
7856 PyThreadState* __tstate = wxPyBeginAllowThreads();
7857 result = (wxStaticLine *)new wxStaticLine();
7858 wxPyEndAllowThreads(__tstate);
7859 if (PyErr_Occurred()) SWIG_fail;
7860 }
7861 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_OWN | 0 );
7862 return resultobj;
7863fail:
7864 return NULL;
7865}
7866
7867
7868SWIGINTERN PyObject *_wrap_StaticLine_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7869 PyObject *resultobj = 0;
7870 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7871 wxWindow *arg2 = (wxWindow *) 0 ;
7872 int arg3 = (int) -1 ;
7873 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7874 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7875 wxSize const &arg5_defvalue = wxDefaultSize ;
7876 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7877 long arg6 = (long) wxLI_HORIZONTAL ;
7878 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
7879 wxString *arg7 = (wxString *) &arg7_defvalue ;
7880 bool result;
7881 void *argp1 = 0 ;
7882 int res1 = 0 ;
7883 void *argp2 = 0 ;
7884 int res2 = 0 ;
7885 int val3 ;
7886 int ecode3 = 0 ;
7887 wxPoint temp4 ;
7888 wxSize temp5 ;
7889 long val6 ;
7890 int ecode6 = 0 ;
7891 bool temp7 = false ;
7892 PyObject * obj0 = 0 ;
7893 PyObject * obj1 = 0 ;
7894 PyObject * obj2 = 0 ;
7895 PyObject * obj3 = 0 ;
7896 PyObject * obj4 = 0 ;
7897 PyObject * obj5 = 0 ;
7898 PyObject * obj6 = 0 ;
7899 char * kwnames[] = {
7900 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7901 };
7902
7903 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7904 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7905 if (!SWIG_IsOK(res1)) {
7906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_Create" "', expected argument " "1"" of type '" "wxStaticLine *""'");
7907 }
7908 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7909 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7910 if (!SWIG_IsOK(res2)) {
7911 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticLine_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7912 }
7913 arg2 = reinterpret_cast< wxWindow * >(argp2);
7914 if (obj2) {
7915 ecode3 = SWIG_AsVal_int(obj2, &val3);
7916 if (!SWIG_IsOK(ecode3)) {
7917 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticLine_Create" "', expected argument " "3"" of type '" "int""'");
7918 }
7919 arg3 = static_cast< int >(val3);
7920 }
7921 if (obj3) {
d14a1e28 7922 {
0085ce49
RD
7923 arg4 = &temp4;
7924 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 7925 }
0085ce49
RD
7926 }
7927 if (obj4) {
093d3ff1 7928 {
0085ce49
RD
7929 arg5 = &temp5;
7930 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 7931 }
0085ce49
RD
7932 }
7933 if (obj5) {
7934 ecode6 = SWIG_AsVal_long(obj5, &val6);
7935 if (!SWIG_IsOK(ecode6)) {
7936 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "StaticLine_Create" "', expected argument " "6"" of type '" "long""'");
7937 }
7938 arg6 = static_cast< long >(val6);
7939 }
7940 if (obj6) {
7941 {
7942 arg7 = wxString_in_helper(obj6);
7943 if (arg7 == NULL) SWIG_fail;
7944 temp7 = true;
7945 }
7946 }
7947 {
7948 PyThreadState* __tstate = wxPyBeginAllowThreads();
7949 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7950 wxPyEndAllowThreads(__tstate);
7951 if (PyErr_Occurred()) SWIG_fail;
7952 }
7953 {
7954 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7955 }
7956 {
7957 if (temp7)
7958 delete arg7;
7959 }
7960 return resultobj;
7961fail:
7962 {
7963 if (temp7)
7964 delete arg7;
7965 }
7966 return NULL;
d14a1e28
RD
7967}
7968
7969
0085ce49
RD
7970SWIGINTERN PyObject *_wrap_StaticLine_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7971 PyObject *resultobj = 0;
7972 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7973 bool result;
7974 void *argp1 = 0 ;
7975 int res1 = 0 ;
7976 PyObject *swig_obj[1] ;
7977
7978 if (!args) SWIG_fail;
7979 swig_obj[0] = args;
7980 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7981 if (!SWIG_IsOK(res1)) {
7982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_IsVertical" "', expected argument " "1"" of type '" "wxStaticLine const *""'");
7983 }
7984 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7985 {
7986 PyThreadState* __tstate = wxPyBeginAllowThreads();
7987 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
7988 wxPyEndAllowThreads(__tstate);
7989 if (PyErr_Occurred()) SWIG_fail;
7990 }
7991 {
7992 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7993 }
7994 return resultobj;
7995fail:
7996 return NULL;
7997}
7998
7999
8000SWIGINTERN PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8001 PyObject *resultobj = 0;
8002 int result;
8003
8004 if (!SWIG_Python_UnpackTuple(args,"StaticLine_GetDefaultSize",0,0,0)) SWIG_fail;
8005 {
8006 PyThreadState* __tstate = wxPyBeginAllowThreads();
8007 result = (int)wxStaticLine::GetDefaultSize();
8008 wxPyEndAllowThreads(__tstate);
8009 if (PyErr_Occurred()) SWIG_fail;
8010 }
8011 resultobj = SWIG_From_int(static_cast< int >(result));
8012 return resultobj;
8013fail:
8014 return NULL;
8015}
8016
8017
8018SWIGINTERN PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8019 PyObject *resultobj = 0;
8020 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8021 SwigValueWrapper<wxVisualAttributes > result;
8022 int val1 ;
8023 int ecode1 = 0 ;
8024 PyObject * obj0 = 0 ;
8025 char * kwnames[] = {
8026 (char *) "variant", NULL
8027 };
8028
8029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8030 if (obj0) {
8031 ecode1 = SWIG_AsVal_int(obj0, &val1);
8032 if (!SWIG_IsOK(ecode1)) {
8033 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticLine_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8034 }
8035 arg1 = static_cast< wxWindowVariant >(val1);
8036 }
8037 {
8038 if (!wxPyCheckForApp()) SWIG_fail;
8039 PyThreadState* __tstate = wxPyBeginAllowThreads();
8040 result = wxStaticLine::GetClassDefaultAttributes(arg1);
8041 wxPyEndAllowThreads(__tstate);
8042 if (PyErr_Occurred()) SWIG_fail;
8043 }
8044 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8045 return resultobj;
8046fail:
8047 return NULL;
8048}
8049
8050
8051SWIGINTERN PyObject *StaticLine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8052 PyObject *obj;
8053 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8054 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticLine, SWIG_NewClientData(obj));
8055 return SWIG_Py_Void();
8056}
8057
8058SWIGINTERN PyObject *StaticLine_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8059 return SWIG_Python_InitShadowInstance(args);
8060}
8061
8062SWIGINTERN PyObject *_wrap_new_StaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8063 PyObject *resultobj = 0;
8064 wxWindow *arg1 = (wxWindow *) 0 ;
8065 int arg2 = (int) -1 ;
8066 wxString const &arg3_defvalue = wxPyEmptyString ;
8067 wxString *arg3 = (wxString *) &arg3_defvalue ;
8068 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8069 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8070 wxSize const &arg5_defvalue = wxDefaultSize ;
8071 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8072 long arg6 = (long) 0 ;
8073 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
8074 wxString *arg7 = (wxString *) &arg7_defvalue ;
8075 wxStaticText *result = 0 ;
8076 void *argp1 = 0 ;
8077 int res1 = 0 ;
8078 int val2 ;
8079 int ecode2 = 0 ;
8080 bool temp3 = false ;
8081 wxPoint temp4 ;
8082 wxSize temp5 ;
8083 long val6 ;
8084 int ecode6 = 0 ;
8085 bool temp7 = false ;
8086 PyObject * obj0 = 0 ;
8087 PyObject * obj1 = 0 ;
8088 PyObject * obj2 = 0 ;
8089 PyObject * obj3 = 0 ;
8090 PyObject * obj4 = 0 ;
8091 PyObject * obj5 = 0 ;
8092 PyObject * obj6 = 0 ;
8093 char * kwnames[] = {
8094 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8095 };
8096
8097 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8099 if (!SWIG_IsOK(res1)) {
8100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticText" "', expected argument " "1"" of type '" "wxWindow *""'");
8101 }
8102 arg1 = reinterpret_cast< wxWindow * >(argp1);
8103 if (obj1) {
8104 ecode2 = SWIG_AsVal_int(obj1, &val2);
8105 if (!SWIG_IsOK(ecode2)) {
8106 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticText" "', expected argument " "2"" of type '" "int""'");
8107 }
8108 arg2 = static_cast< int >(val2);
8109 }
8110 if (obj2) {
d14a1e28 8111 {
0085ce49
RD
8112 arg3 = wxString_in_helper(obj2);
8113 if (arg3 == NULL) SWIG_fail;
8114 temp3 = true;
d14a1e28 8115 }
0085ce49
RD
8116 }
8117 if (obj3) {
4f89f6a3 8118 {
0085ce49
RD
8119 arg4 = &temp4;
8120 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 8121 }
0085ce49
RD
8122 }
8123 if (obj4) {
093d3ff1 8124 {
0085ce49
RD
8125 arg5 = &temp5;
8126 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 8127 }
0085ce49
RD
8128 }
8129 if (obj5) {
8130 ecode6 = SWIG_AsVal_long(obj5, &val6);
8131 if (!SWIG_IsOK(ecode6)) {
8132 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticText" "', expected argument " "6"" of type '" "long""'");
8133 }
8134 arg6 = static_cast< long >(val6);
8135 }
8136 if (obj6) {
d14a1e28 8137 {
0085ce49
RD
8138 arg7 = wxString_in_helper(obj6);
8139 if (arg7 == NULL) SWIG_fail;
8140 temp7 = true;
d14a1e28 8141 }
0085ce49
RD
8142 }
8143 {
8144 if (!wxPyCheckForApp()) SWIG_fail;
8145 PyThreadState* __tstate = wxPyBeginAllowThreads();
8146 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8147 wxPyEndAllowThreads(__tstate);
8148 if (PyErr_Occurred()) SWIG_fail;
8149 }
8150 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_NEW | 0 );
8151 {
8152 if (temp3)
8153 delete arg3;
8154 }
8155 {
8156 if (temp7)
8157 delete arg7;
8158 }
8159 return resultobj;
8160fail:
8161 {
8162 if (temp3)
8163 delete arg3;
8164 }
8165 {
8166 if (temp7)
8167 delete arg7;
8168 }
8169 return NULL;
d14a1e28
RD
8170}
8171
8172
0085ce49
RD
8173SWIGINTERN PyObject *_wrap_new_PreStaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8174 PyObject *resultobj = 0;
8175 wxStaticText *result = 0 ;
8176
8177 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticText",0,0,0)) SWIG_fail;
8178 {
8179 if (!wxPyCheckForApp()) SWIG_fail;
8180 PyThreadState* __tstate = wxPyBeginAllowThreads();
8181 result = (wxStaticText *)new wxStaticText();
8182 wxPyEndAllowThreads(__tstate);
8183 if (PyErr_Occurred()) SWIG_fail;
8184 }
8185 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_OWN | 0 );
8186 return resultobj;
8187fail:
8188 return NULL;
8189}
8190
8191
8192SWIGINTERN PyObject *_wrap_StaticText_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8193 PyObject *resultobj = 0;
8194 wxStaticText *arg1 = (wxStaticText *) 0 ;
8195 wxWindow *arg2 = (wxWindow *) 0 ;
8196 int arg3 = (int) -1 ;
8197 wxString const &arg4_defvalue = wxPyEmptyString ;
8198 wxString *arg4 = (wxString *) &arg4_defvalue ;
8199 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8200 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8201 wxSize const &arg6_defvalue = wxDefaultSize ;
8202 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8203 long arg7 = (long) 0 ;
8204 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
8205 wxString *arg8 = (wxString *) &arg8_defvalue ;
8206 bool result;
8207 void *argp1 = 0 ;
8208 int res1 = 0 ;
8209 void *argp2 = 0 ;
8210 int res2 = 0 ;
8211 int val3 ;
8212 int ecode3 = 0 ;
8213 bool temp4 = false ;
8214 wxPoint temp5 ;
8215 wxSize temp6 ;
8216 long val7 ;
8217 int ecode7 = 0 ;
8218 bool temp8 = false ;
8219 PyObject * obj0 = 0 ;
8220 PyObject * obj1 = 0 ;
8221 PyObject * obj2 = 0 ;
8222 PyObject * obj3 = 0 ;
8223 PyObject * obj4 = 0 ;
8224 PyObject * obj5 = 0 ;
8225 PyObject * obj6 = 0 ;
8226 PyObject * obj7 = 0 ;
8227 char * kwnames[] = {
8228 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8229 };
8230
8231 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8232 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8233 if (!SWIG_IsOK(res1)) {
8234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Create" "', expected argument " "1"" of type '" "wxStaticText *""'");
8235 }
8236 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8237 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8238 if (!SWIG_IsOK(res2)) {
8239 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticText_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8240 }
8241 arg2 = reinterpret_cast< wxWindow * >(argp2);
8242 if (obj2) {
8243 ecode3 = SWIG_AsVal_int(obj2, &val3);
8244 if (!SWIG_IsOK(ecode3)) {
8245 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticText_Create" "', expected argument " "3"" of type '" "int""'");
8246 }
8247 arg3 = static_cast< int >(val3);
8248 }
8249 if (obj3) {
d14a1e28 8250 {
0085ce49
RD
8251 arg4 = wxString_in_helper(obj3);
8252 if (arg4 == NULL) SWIG_fail;
8253 temp4 = true;
8254 }
8255 }
8256 if (obj4) {
8257 {
8258 arg5 = &temp5;
8259 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 8260 }
0085ce49
RD
8261 }
8262 if (obj5) {
093d3ff1 8263 {
0085ce49
RD
8264 arg6 = &temp6;
8265 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
093d3ff1 8266 }
0085ce49
RD
8267 }
8268 if (obj6) {
8269 ecode7 = SWIG_AsVal_long(obj6, &val7);
8270 if (!SWIG_IsOK(ecode7)) {
8271 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticText_Create" "', expected argument " "7"" of type '" "long""'");
8272 }
8273 arg7 = static_cast< long >(val7);
8274 }
8275 if (obj7) {
093d3ff1 8276 {
0085ce49
RD
8277 arg8 = wxString_in_helper(obj7);
8278 if (arg8 == NULL) SWIG_fail;
8279 temp8 = true;
8280 }
8281 }
8282 {
8283 PyThreadState* __tstate = wxPyBeginAllowThreads();
8284 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8285 wxPyEndAllowThreads(__tstate);
8286 if (PyErr_Occurred()) SWIG_fail;
8287 }
8288 {
8289 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8290 }
8291 {
8292 if (temp4)
8293 delete arg4;
8294 }
8295 {
8296 if (temp8)
8297 delete arg8;
8298 }
8299 return resultobj;
8300fail:
8301 {
8302 if (temp4)
8303 delete arg4;
8304 }
8305 {
8306 if (temp8)
8307 delete arg8;
8308 }
8309 return NULL;
8310}
8311
8312
8313SWIGINTERN PyObject *_wrap_StaticText_Wrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8314 PyObject *resultobj = 0;
8315 wxStaticText *arg1 = (wxStaticText *) 0 ;
8316 int arg2 ;
8317 void *argp1 = 0 ;
8318 int res1 = 0 ;
8319 int val2 ;
8320 int ecode2 = 0 ;
8321 PyObject * obj0 = 0 ;
8322 PyObject * obj1 = 0 ;
8323 char * kwnames[] = {
8324 (char *) "self",(char *) "width", NULL
8325 };
8326
8327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticText_Wrap",kwnames,&obj0,&obj1)) SWIG_fail;
8328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8329 if (!SWIG_IsOK(res1)) {
8330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Wrap" "', expected argument " "1"" of type '" "wxStaticText *""'");
8331 }
8332 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8333 ecode2 = SWIG_AsVal_int(obj1, &val2);
8334 if (!SWIG_IsOK(ecode2)) {
8335 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StaticText_Wrap" "', expected argument " "2"" of type '" "int""'");
8336 }
8337 arg2 = static_cast< int >(val2);
8338 {
8339 PyThreadState* __tstate = wxPyBeginAllowThreads();
8340 (arg1)->Wrap(arg2);
8341 wxPyEndAllowThreads(__tstate);
8342 if (PyErr_Occurred()) SWIG_fail;
8343 }
8344 resultobj = SWIG_Py_Void();
8345 return resultobj;
8346fail:
8347 return NULL;
8348}
8349
8350
8351SWIGINTERN PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8352 PyObject *resultobj = 0;
8353 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8354 SwigValueWrapper<wxVisualAttributes > result;
8355 int val1 ;
8356 int ecode1 = 0 ;
8357 PyObject * obj0 = 0 ;
8358 char * kwnames[] = {
8359 (char *) "variant", NULL
8360 };
8361
8362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8363 if (obj0) {
8364 ecode1 = SWIG_AsVal_int(obj0, &val1);
8365 if (!SWIG_IsOK(ecode1)) {
8366 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticText_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8367 }
8368 arg1 = static_cast< wxWindowVariant >(val1);
8369 }
8370 {
8371 if (!wxPyCheckForApp()) SWIG_fail;
8372 PyThreadState* __tstate = wxPyBeginAllowThreads();
8373 result = wxStaticText::GetClassDefaultAttributes(arg1);
8374 wxPyEndAllowThreads(__tstate);
8375 if (PyErr_Occurred()) SWIG_fail;
8376 }
8377 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8378 return resultobj;
8379fail:
8380 return NULL;
8381}
8382
8383
8384SWIGINTERN PyObject *StaticText_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8385 PyObject *obj;
8386 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8387 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticText, SWIG_NewClientData(obj));
8388 return SWIG_Py_Void();
8389}
8390
8391SWIGINTERN PyObject *StaticText_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8392 return SWIG_Python_InitShadowInstance(args);
8393}
8394
8395SWIGINTERN PyObject *_wrap_new_StaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8396 PyObject *resultobj = 0;
8397 wxWindow *arg1 = (wxWindow *) 0 ;
8398 int arg2 = (int) -1 ;
8399 wxBitmap const &arg3_defvalue = wxNullBitmap ;
8400 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
8401 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8402 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8403 wxSize const &arg5_defvalue = wxDefaultSize ;
8404 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8405 long arg6 = (long) 0 ;
8406 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
8407 wxString *arg7 = (wxString *) &arg7_defvalue ;
8408 wxStaticBitmap *result = 0 ;
8409 void *argp1 = 0 ;
8410 int res1 = 0 ;
8411 int val2 ;
8412 int ecode2 = 0 ;
8413 void *argp3 = 0 ;
8414 int res3 = 0 ;
8415 wxPoint temp4 ;
8416 wxSize temp5 ;
8417 long val6 ;
8418 int ecode6 = 0 ;
8419 bool temp7 = false ;
8420 PyObject * obj0 = 0 ;
8421 PyObject * obj1 = 0 ;
8422 PyObject * obj2 = 0 ;
8423 PyObject * obj3 = 0 ;
8424 PyObject * obj4 = 0 ;
8425 PyObject * obj5 = 0 ;
8426 PyObject * obj6 = 0 ;
8427 char * kwnames[] = {
8428 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8429 };
8430
8431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8433 if (!SWIG_IsOK(res1)) {
8434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBitmap" "', expected argument " "1"" of type '" "wxWindow *""'");
8435 }
8436 arg1 = reinterpret_cast< wxWindow * >(argp1);
8437 if (obj1) {
8438 ecode2 = SWIG_AsVal_int(obj1, &val2);
8439 if (!SWIG_IsOK(ecode2)) {
8440 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBitmap" "', expected argument " "2"" of type '" "int""'");
8441 }
8442 arg2 = static_cast< int >(val2);
8443 }
8444 if (obj2) {
8445 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
8446 if (!SWIG_IsOK(res3)) {
8447 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8448 }
8449 if (!argp3) {
8450 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
093d3ff1 8451 }
0085ce49
RD
8452 arg3 = reinterpret_cast< wxBitmap * >(argp3);
8453 }
8454 if (obj3) {
d14a1e28 8455 {
0085ce49
RD
8456 arg4 = &temp4;
8457 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 8458 }
0085ce49
RD
8459 }
8460 if (obj4) {
d14a1e28 8461 {
0085ce49
RD
8462 arg5 = &temp5;
8463 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 8464 }
0085ce49
RD
8465 }
8466 if (obj5) {
8467 ecode6 = SWIG_AsVal_long(obj5, &val6);
8468 if (!SWIG_IsOK(ecode6)) {
8469 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBitmap" "', expected argument " "6"" of type '" "long""'");
8470 }
8471 arg6 = static_cast< long >(val6);
8472 }
8473 if (obj6) {
093d3ff1 8474 {
0085ce49
RD
8475 arg7 = wxString_in_helper(obj6);
8476 if (arg7 == NULL) SWIG_fail;
8477 temp7 = true;
093d3ff1 8478 }
0085ce49
RD
8479 }
8480 {
8481 if (!wxPyCheckForApp()) SWIG_fail;
8482 PyThreadState* __tstate = wxPyBeginAllowThreads();
8483 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8484 wxPyEndAllowThreads(__tstate);
8485 if (PyErr_Occurred()) SWIG_fail;
8486 }
8487 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_NEW | 0 );
8488 {
8489 if (temp7)
8490 delete arg7;
8491 }
8492 return resultobj;
8493fail:
8494 {
8495 if (temp7)
8496 delete arg7;
8497 }
8498 return NULL;
d14a1e28
RD
8499}
8500
8501
0085ce49
RD
8502SWIGINTERN PyObject *_wrap_new_PreStaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8503 PyObject *resultobj = 0;
8504 wxStaticBitmap *result = 0 ;
8505
8506 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBitmap",0,0,0)) SWIG_fail;
8507 {
8508 if (!wxPyCheckForApp()) SWIG_fail;
8509 PyThreadState* __tstate = wxPyBeginAllowThreads();
8510 result = (wxStaticBitmap *)new wxStaticBitmap();
8511 wxPyEndAllowThreads(__tstate);
8512 if (PyErr_Occurred()) SWIG_fail;
8513 }
8514 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_OWN | 0 );
8515 return resultobj;
8516fail:
8517 return NULL;
8518}
8519
8520
8521SWIGINTERN PyObject *_wrap_StaticBitmap_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8522 PyObject *resultobj = 0;
8523 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8524 wxWindow *arg2 = (wxWindow *) 0 ;
8525 int arg3 = (int) -1 ;
8526 wxBitmap const &arg4_defvalue = wxNullBitmap ;
8527 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
8528 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8529 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8530 wxSize const &arg6_defvalue = wxDefaultSize ;
8531 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8532 long arg7 = (long) 0 ;
8533 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
8534 wxString *arg8 = (wxString *) &arg8_defvalue ;
8535 bool result;
8536 void *argp1 = 0 ;
8537 int res1 = 0 ;
8538 void *argp2 = 0 ;
8539 int res2 = 0 ;
8540 int val3 ;
8541 int ecode3 = 0 ;
8542 void *argp4 = 0 ;
8543 int res4 = 0 ;
8544 wxPoint temp5 ;
8545 wxSize temp6 ;
8546 long val7 ;
8547 int ecode7 = 0 ;
8548 bool temp8 = false ;
8549 PyObject * obj0 = 0 ;
8550 PyObject * obj1 = 0 ;
8551 PyObject * obj2 = 0 ;
8552 PyObject * obj3 = 0 ;
8553 PyObject * obj4 = 0 ;
8554 PyObject * obj5 = 0 ;
8555 PyObject * obj6 = 0 ;
8556 PyObject * obj7 = 0 ;
8557 char * kwnames[] = {
8558 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8559 };
8560
8561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8563 if (!SWIG_IsOK(res1)) {
8564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_Create" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8565 }
8566 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8567 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8568 if (!SWIG_IsOK(res2)) {
8569 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8570 }
8571 arg2 = reinterpret_cast< wxWindow * >(argp2);
8572 if (obj2) {
8573 ecode3 = SWIG_AsVal_int(obj2, &val3);
8574 if (!SWIG_IsOK(ecode3)) {
8575 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBitmap_Create" "', expected argument " "3"" of type '" "int""'");
8576 }
8577 arg3 = static_cast< int >(val3);
8578 }
8579 if (obj3) {
8580 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
8581 if (!SWIG_IsOK(res4)) {
8582 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8583 }
8584 if (!argp4) {
8585 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
22bfe96c 8586 }
0085ce49
RD
8587 arg4 = reinterpret_cast< wxBitmap * >(argp4);
8588 }
8589 if (obj4) {
22bfe96c 8590 {
0085ce49
RD
8591 arg5 = &temp5;
8592 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
22bfe96c 8593 }
0085ce49
RD
8594 }
8595 if (obj5) {
22bfe96c 8596 {
0085ce49
RD
8597 arg6 = &temp6;
8598 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
22bfe96c 8599 }
0085ce49
RD
8600 }
8601 if (obj6) {
8602 ecode7 = SWIG_AsVal_long(obj6, &val7);
8603 if (!SWIG_IsOK(ecode7)) {
8604 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBitmap_Create" "', expected argument " "7"" of type '" "long""'");
8605 }
8606 arg7 = static_cast< long >(val7);
8607 }
8608 if (obj7) {
b2dc1044 8609 {
0085ce49
RD
8610 arg8 = wxString_in_helper(obj7);
8611 if (arg8 == NULL) SWIG_fail;
8612 temp8 = true;
b2dc1044 8613 }
0085ce49
RD
8614 }
8615 {
8616 PyThreadState* __tstate = wxPyBeginAllowThreads();
8617 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8618 wxPyEndAllowThreads(__tstate);
8619 if (PyErr_Occurred()) SWIG_fail;
8620 }
8621 {
8622 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8623 }
8624 {
8625 if (temp8)
8626 delete arg8;
8627 }
8628 return resultobj;
8629fail:
8630 {
8631 if (temp8)
8632 delete arg8;
8633 }
8634 return NULL;
b2dc1044
RD
8635}
8636
8637
0085ce49
RD
8638SWIGINTERN PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8639 PyObject *resultobj = 0;
8640 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8641 wxBitmap result;
8642 void *argp1 = 0 ;
8643 int res1 = 0 ;
8644 PyObject *swig_obj[1] ;
8645
8646 if (!args) SWIG_fail;
8647 swig_obj[0] = args;
8648 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8649 if (!SWIG_IsOK(res1)) {
8650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_GetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8651 }
8652 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8653 {
8654 PyThreadState* __tstate = wxPyBeginAllowThreads();
8655 result = (arg1)->GetBitmap();
8656 wxPyEndAllowThreads(__tstate);
8657 if (PyErr_Occurred()) SWIG_fail;
8658 }
8659 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8660 return resultobj;
8661fail:
8662 return NULL;
8663}
8664
8665
8666SWIGINTERN PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8667 PyObject *resultobj = 0;
8668 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8669 wxBitmap *arg2 = 0 ;
8670 void *argp1 = 0 ;
8671 int res1 = 0 ;
8672 void *argp2 = 0 ;
8673 int res2 = 0 ;
8674 PyObject * obj0 = 0 ;
8675 PyObject * obj1 = 0 ;
8676 char * kwnames[] = {
8677 (char *) "self",(char *) "bitmap", NULL
8678 };
8679
8680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
8681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8682 if (!SWIG_IsOK(res1)) {
8683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8684 }
8685 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8686 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8687 if (!SWIG_IsOK(res2)) {
8688 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8689 }
8690 if (!argp2) {
8691 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8692 }
8693 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8694 {
8695 PyThreadState* __tstate = wxPyBeginAllowThreads();
8696 (arg1)->SetBitmap((wxBitmap const &)*arg2);
8697 wxPyEndAllowThreads(__tstate);
8698 if (PyErr_Occurred()) SWIG_fail;
8699 }
8700 resultobj = SWIG_Py_Void();
8701 return resultobj;
8702fail:
8703 return NULL;
8704}
8705
8706
8707SWIGINTERN PyObject *_wrap_StaticBitmap_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8708 PyObject *resultobj = 0;
8709 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8710 wxIcon *arg2 = 0 ;
8711 void *argp1 = 0 ;
8712 int res1 = 0 ;
8713 void *argp2 = 0 ;
8714 int res2 = 0 ;
8715 PyObject * obj0 = 0 ;
8716 PyObject * obj1 = 0 ;
8717 char * kwnames[] = {
8718 (char *) "self",(char *) "icon", NULL
8719 };
8720
8721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
8722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8723 if (!SWIG_IsOK(res1)) {
8724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetIcon" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8725 }
8726 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8727 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
8728 if (!SWIG_IsOK(res2)) {
8729 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8730 }
8731 if (!argp2) {
8732 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8733 }
8734 arg2 = reinterpret_cast< wxIcon * >(argp2);
8735 {
8736 PyThreadState* __tstate = wxPyBeginAllowThreads();
8737 (arg1)->SetIcon((wxIcon const &)*arg2);
8738 wxPyEndAllowThreads(__tstate);
8739 if (PyErr_Occurred()) SWIG_fail;
8740 }
8741 resultobj = SWIG_Py_Void();
8742 return resultobj;
8743fail:
8744 return NULL;
8745}
8746
8747
8748SWIGINTERN PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8749 PyObject *resultobj = 0;
8750 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8751 SwigValueWrapper<wxVisualAttributes > result;
8752 int val1 ;
8753 int ecode1 = 0 ;
8754 PyObject * obj0 = 0 ;
8755 char * kwnames[] = {
8756 (char *) "variant", NULL
8757 };
8758
8759 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8760 if (obj0) {
8761 ecode1 = SWIG_AsVal_int(obj0, &val1);
8762 if (!SWIG_IsOK(ecode1)) {
8763 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBitmap_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8764 }
8765 arg1 = static_cast< wxWindowVariant >(val1);
8766 }
8767 {
8768 if (!wxPyCheckForApp()) SWIG_fail;
8769 PyThreadState* __tstate = wxPyBeginAllowThreads();
8770 result = wxStaticBitmap::GetClassDefaultAttributes(arg1);
8771 wxPyEndAllowThreads(__tstate);
8772 if (PyErr_Occurred()) SWIG_fail;
8773 }
8774 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8775 return resultobj;
8776fail:
8777 return NULL;
b2dc1044
RD
8778}
8779
8780
0085ce49
RD
8781SWIGINTERN PyObject *StaticBitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8782 PyObject *obj;
8783 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8784 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBitmap, SWIG_NewClientData(obj));
8785 return SWIG_Py_Void();
b2dc1044
RD
8786}
8787
0085ce49
RD
8788SWIGINTERN PyObject *StaticBitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8789 return SWIG_Python_InitShadowInstance(args);
8790}
b2dc1044 8791
0085ce49
RD
8792SWIGINTERN int ListBoxNameStr_set(PyObject *) {
8793 SWIG_Error(SWIG_AttributeError,"Variable ListBoxNameStr is read-only.");
8794 return 1;
b2dc1044
RD
8795}
8796
8797
0085ce49
RD
8798SWIGINTERN PyObject *ListBoxNameStr_get(void) {
8799 PyObject *pyobj = 0;
8800
8801 {
b2dc1044 8802#if wxUSE_UNICODE
0085ce49 8803 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
b2dc1044 8804#else
0085ce49 8805 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
b2dc1044 8806#endif
0085ce49
RD
8807 }
8808 return pyobj;
8809}
8810
8811
8812SWIGINTERN PyObject *_wrap_new_ListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8813 PyObject *resultobj = 0;
8814 wxWindow *arg1 = (wxWindow *) 0 ;
8815 int arg2 = (int) -1 ;
8816 wxPoint const &arg3_defvalue = wxDefaultPosition ;
8817 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
8818 wxSize const &arg4_defvalue = wxDefaultSize ;
8819 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
8820 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
8821 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
8822 long arg6 = (long) 0 ;
8823 wxValidator const &arg7_defvalue = wxDefaultValidator ;
8824 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
8825 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
8826 wxString *arg8 = (wxString *) &arg8_defvalue ;
8827 wxListBox *result = 0 ;
8828 void *argp1 = 0 ;
8829 int res1 = 0 ;
8830 int val2 ;
8831 int ecode2 = 0 ;
8832 wxPoint temp3 ;
8833 wxSize temp4 ;
8834 bool temp5 = false ;
8835 long val6 ;
8836 int ecode6 = 0 ;
8837 void *argp7 = 0 ;
8838 int res7 = 0 ;
8839 bool temp8 = false ;
8840 PyObject * obj0 = 0 ;
8841 PyObject * obj1 = 0 ;
8842 PyObject * obj2 = 0 ;
8843 PyObject * obj3 = 0 ;
8844 PyObject * obj4 = 0 ;
8845 PyObject * obj5 = 0 ;
8846 PyObject * obj6 = 0 ;
8847 PyObject * obj7 = 0 ;
8848 char * kwnames[] = {
8849 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8850 };
8851
8852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8853 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8854 if (!SWIG_IsOK(res1)) {
8855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
8856 }
8857 arg1 = reinterpret_cast< wxWindow * >(argp1);
8858 if (obj1) {
8859 ecode2 = SWIG_AsVal_int(obj1, &val2);
8860 if (!SWIG_IsOK(ecode2)) {
8861 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListBox" "', expected argument " "2"" of type '" "int""'");
8862 }
8863 arg2 = static_cast< int >(val2);
8864 }
8865 if (obj2) {
d14a1e28 8866 {
0085ce49
RD
8867 arg3 = &temp3;
8868 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 8869 }
0085ce49
RD
8870 }
8871 if (obj3) {
d14a1e28 8872 {
0085ce49
RD
8873 arg4 = &temp4;
8874 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 8875 }
0085ce49
RD
8876 }
8877 if (obj4) {
d14a1e28 8878 {
0085ce49
RD
8879 if (! PySequence_Check(obj4)) {
8880 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8881 SWIG_fail;
8882 }
8883 arg5 = new wxArrayString;
8884 temp5 = true;
8885 int i, len=PySequence_Length(obj4);
8886 for (i=0; i<len; i++) {
8887 PyObject* item = PySequence_GetItem(obj4, i);
8888 wxString* s = wxString_in_helper(item);
8889 if (PyErr_Occurred()) SWIG_fail;
8890 arg5->Add(*s);
8891 delete s;
8892 Py_DECREF(item);
8893 }
d14a1e28 8894 }
0085ce49
RD
8895 }
8896 if (obj5) {
8897 ecode6 = SWIG_AsVal_long(obj5, &val6);
8898 if (!SWIG_IsOK(ecode6)) {
8899 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ListBox" "', expected argument " "6"" of type '" "long""'");
8900 }
8901 arg6 = static_cast< long >(val6);
8902 }
8903 if (obj6) {
8904 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
8905 if (!SWIG_IsOK(res7)) {
8906 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 8907 }
0085ce49
RD
8908 if (!argp7) {
8909 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 8910 }
0085ce49
RD
8911 arg7 = reinterpret_cast< wxValidator * >(argp7);
8912 }
8913 if (obj7) {
d14a1e28 8914 {
0085ce49
RD
8915 arg8 = wxString_in_helper(obj7);
8916 if (arg8 == NULL) SWIG_fail;
8917 temp8 = true;
d14a1e28 8918 }
0085ce49
RD
8919 }
8920 {
8921 if (!wxPyCheckForApp()) SWIG_fail;
8922 PyThreadState* __tstate = wxPyBeginAllowThreads();
8923 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
8924 wxPyEndAllowThreads(__tstate);
8925 if (PyErr_Occurred()) SWIG_fail;
8926 }
8927 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_NEW | 0 );
8928 {
8929 if (temp5) delete arg5;
8930 }
8931 {
8932 if (temp8)
8933 delete arg8;
8934 }
8935 return resultobj;
8936fail:
8937 {
8938 if (temp5) delete arg5;
8939 }
8940 {
8941 if (temp8)
8942 delete arg8;
8943 }
8944 return NULL;
d14a1e28
RD
8945}
8946
8947
0085ce49
RD
8948SWIGINTERN PyObject *_wrap_new_PreListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8949 PyObject *resultobj = 0;
8950 wxListBox *result = 0 ;
8951
8952 if (!SWIG_Python_UnpackTuple(args,"new_PreListBox",0,0,0)) SWIG_fail;
8953 {
8954 if (!wxPyCheckForApp()) SWIG_fail;
8955 PyThreadState* __tstate = wxPyBeginAllowThreads();
8956 result = (wxListBox *)new wxListBox();
8957 wxPyEndAllowThreads(__tstate);
8958 if (PyErr_Occurred()) SWIG_fail;
8959 }
8960 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_OWN | 0 );
8961 return resultobj;
8962fail:
8963 return NULL;
8964}
8965
8966
8967SWIGINTERN PyObject *_wrap_ListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8968 PyObject *resultobj = 0;
8969 wxListBox *arg1 = (wxListBox *) 0 ;
8970 wxWindow *arg2 = (wxWindow *) 0 ;
8971 int arg3 = (int) -1 ;
8972 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8973 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8974 wxSize const &arg5_defvalue = wxDefaultSize ;
8975 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8976 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
8977 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
8978 long arg7 = (long) 0 ;
8979 wxValidator const &arg8_defvalue = wxDefaultValidator ;
8980 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
8981 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
8982 wxString *arg9 = (wxString *) &arg9_defvalue ;
8983 bool result;
8984 void *argp1 = 0 ;
8985 int res1 = 0 ;
8986 void *argp2 = 0 ;
8987 int res2 = 0 ;
8988 int val3 ;
8989 int ecode3 = 0 ;
8990 wxPoint temp4 ;
8991 wxSize temp5 ;
8992 bool temp6 = false ;
8993 long val7 ;
8994 int ecode7 = 0 ;
8995 void *argp8 = 0 ;
8996 int res8 = 0 ;
8997 bool temp9 = false ;
8998 PyObject * obj0 = 0 ;
8999 PyObject * obj1 = 0 ;
9000 PyObject * obj2 = 0 ;
9001 PyObject * obj3 = 0 ;
9002 PyObject * obj4 = 0 ;
9003 PyObject * obj5 = 0 ;
9004 PyObject * obj6 = 0 ;
9005 PyObject * obj7 = 0 ;
9006 PyObject * obj8 = 0 ;
9007 char * kwnames[] = {
9008 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
9009 };
9010
9011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
9012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9013 if (!SWIG_IsOK(res1)) {
9014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Create" "', expected argument " "1"" of type '" "wxListBox *""'");
9015 }
9016 arg1 = reinterpret_cast< wxListBox * >(argp1);
9017 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
9018 if (!SWIG_IsOK(res2)) {
9019 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
9020 }
9021 arg2 = reinterpret_cast< wxWindow * >(argp2);
9022 if (obj2) {
9023 ecode3 = SWIG_AsVal_int(obj2, &val3);
9024 if (!SWIG_IsOK(ecode3)) {
9025 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Create" "', expected argument " "3"" of type '" "int""'");
9026 }
9027 arg3 = static_cast< int >(val3);
9028 }
9029 if (obj3) {
d14a1e28 9030 {
0085ce49
RD
9031 arg4 = &temp4;
9032 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 9033 }
0085ce49
RD
9034 }
9035 if (obj4) {
d14a1e28 9036 {
0085ce49
RD
9037 arg5 = &temp5;
9038 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 9039 }
0085ce49
RD
9040 }
9041 if (obj5) {
d14a1e28 9042 {
0085ce49
RD
9043 if (! PySequence_Check(obj5)) {
9044 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9045 SWIG_fail;
9046 }
9047 arg6 = new wxArrayString;
9048 temp6 = true;
9049 int i, len=PySequence_Length(obj5);
9050 for (i=0; i<len; i++) {
9051 PyObject* item = PySequence_GetItem(obj5, i);
9052 wxString* s = wxString_in_helper(item);
9053 if (PyErr_Occurred()) SWIG_fail;
9054 arg6->Add(*s);
9055 delete s;
9056 Py_DECREF(item);
9057 }
d14a1e28 9058 }
0085ce49
RD
9059 }
9060 if (obj6) {
9061 ecode7 = SWIG_AsVal_long(obj6, &val7);
9062 if (!SWIG_IsOK(ecode7)) {
9063 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ListBox_Create" "', expected argument " "7"" of type '" "long""'");
9064 }
9065 arg7 = static_cast< long >(val7);
9066 }
9067 if (obj7) {
9068 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
9069 if (!SWIG_IsOK(res8)) {
9070 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 9071 }
0085ce49
RD
9072 if (!argp8) {
9073 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
22bfe96c 9074 }
0085ce49
RD
9075 arg8 = reinterpret_cast< wxValidator * >(argp8);
9076 }
9077 if (obj8) {
22bfe96c 9078 {
0085ce49
RD
9079 arg9 = wxString_in_helper(obj8);
9080 if (arg9 == NULL) SWIG_fail;
9081 temp9 = true;
22bfe96c 9082 }
0085ce49
RD
9083 }
9084 {
9085 PyThreadState* __tstate = wxPyBeginAllowThreads();
9086 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
9087 wxPyEndAllowThreads(__tstate);
9088 if (PyErr_Occurred()) SWIG_fail;
9089 }
9090 {
9091 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9092 }
9093 {
9094 if (temp6) delete arg6;
9095 }
9096 {
9097 if (temp9)
9098 delete arg9;
9099 }
9100 return resultobj;
9101fail:
9102 {
9103 if (temp6) delete arg6;
9104 }
9105 {
9106 if (temp9)
9107 delete arg9;
9108 }
9109 return NULL;
9110}
9111
9112
9113SWIGINTERN PyObject *_wrap_ListBox_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9114 PyObject *resultobj = 0;
9115 wxListBox *arg1 = (wxListBox *) 0 ;
9116 wxString *arg2 = 0 ;
9117 int arg3 ;
9118 PyObject *arg4 = (PyObject *) NULL ;
9119 void *argp1 = 0 ;
9120 int res1 = 0 ;
9121 bool temp2 = false ;
9122 int val3 ;
9123 int ecode3 = 0 ;
9124 PyObject * obj0 = 0 ;
9125 PyObject * obj1 = 0 ;
9126 PyObject * obj2 = 0 ;
9127 PyObject * obj3 = 0 ;
9128 char * kwnames[] = {
9129 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
9130 };
9131
9132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9134 if (!SWIG_IsOK(res1)) {
9135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Insert" "', expected argument " "1"" of type '" "wxListBox *""'");
9136 }
9137 arg1 = reinterpret_cast< wxListBox * >(argp1);
9138 {
9139 arg2 = wxString_in_helper(obj1);
9140 if (arg2 == NULL) SWIG_fail;
9141 temp2 = true;
9142 }
9143 ecode3 = SWIG_AsVal_int(obj2, &val3);
9144 if (!SWIG_IsOK(ecode3)) {
9145 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Insert" "', expected argument " "3"" of type '" "int""'");
9146 }
9147 arg3 = static_cast< int >(val3);
9148 if (obj3) {
9149 arg4 = obj3;
9150 }
9151 {
9152 PyThreadState* __tstate = wxPyBeginAllowThreads();
9153 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
9154 wxPyEndAllowThreads(__tstate);
9155 if (PyErr_Occurred()) SWIG_fail;
9156 }
9157 resultobj = SWIG_Py_Void();
9158 {
9159 if (temp2)
9160 delete arg2;
9161 }
9162 return resultobj;
9163fail:
9164 {
9165 if (temp2)
9166 delete arg2;
9167 }
9168 return NULL;
9169}
9170
9171
9172SWIGINTERN PyObject *_wrap_ListBox_InsertItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9173 PyObject *resultobj = 0;
9174 wxListBox *arg1 = (wxListBox *) 0 ;
9175 wxArrayString *arg2 = 0 ;
50f151d7 9176 unsigned int arg3 ;
0085ce49
RD
9177 void *argp1 = 0 ;
9178 int res1 = 0 ;
9179 bool temp2 = false ;
50f151d7 9180 unsigned int val3 ;
0085ce49
RD
9181 int ecode3 = 0 ;
9182 PyObject * obj0 = 0 ;
9183 PyObject * obj1 = 0 ;
9184 PyObject * obj2 = 0 ;
9185 char * kwnames[] = {
9186 (char *) "self",(char *) "items",(char *) "pos", NULL
9187 };
9188
9189 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9190 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9191 if (!SWIG_IsOK(res1)) {
9192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_InsertItems" "', expected argument " "1"" of type '" "wxListBox *""'");
9193 }
9194 arg1 = reinterpret_cast< wxListBox * >(argp1);
9195 {
9196 if (! PySequence_Check(obj1)) {
9197 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9198 SWIG_fail;
9199 }
9200 arg2 = new wxArrayString;
9201 temp2 = true;
9202 int i, len=PySequence_Length(obj1);
9203 for (i=0; i<len; i++) {
9204 PyObject* item = PySequence_GetItem(obj1, i);
9205 wxString* s = wxString_in_helper(item);
9206 if (PyErr_Occurred()) SWIG_fail;
9207 arg2->Add(*s);
9208 delete s;
9209 Py_DECREF(item);
22bfe96c 9210 }
0085ce49 9211 }
50f151d7 9212 ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
0085ce49 9213 if (!SWIG_IsOK(ecode3)) {
50f151d7 9214 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_InsertItems" "', expected argument " "3"" of type '" "unsigned int""'");
0085ce49 9215 }
50f151d7 9216 arg3 = static_cast< unsigned int >(val3);
0085ce49
RD
9217 {
9218 PyThreadState* __tstate = wxPyBeginAllowThreads();
9219 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
9220 wxPyEndAllowThreads(__tstate);
9221 if (PyErr_Occurred()) SWIG_fail;
9222 }
9223 resultobj = SWIG_Py_Void();
9224 {
9225 if (temp2) delete arg2;
9226 }
9227 return resultobj;
9228fail:
9229 {
9230 if (temp2) delete arg2;
9231 }
9232 return NULL;
22bfe96c
RD
9233}
9234
9235
0085ce49
RD
9236SWIGINTERN PyObject *_wrap_ListBox_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9237 PyObject *resultobj = 0;
9238 wxListBox *arg1 = (wxListBox *) 0 ;
9239 wxArrayString *arg2 = 0 ;
9240 void *argp1 = 0 ;
9241 int res1 = 0 ;
9242 bool temp2 = false ;
9243 PyObject * obj0 = 0 ;
9244 PyObject * obj1 = 0 ;
9245 char * kwnames[] = {
9246 (char *) "self",(char *) "items", NULL
9247 };
9248
9249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) SWIG_fail;
9250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9251 if (!SWIG_IsOK(res1)) {
9252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Set" "', expected argument " "1"" of type '" "wxListBox *""'");
9253 }
9254 arg1 = reinterpret_cast< wxListBox * >(argp1);
9255 {
9256 if (! PySequence_Check(obj1)) {
9257 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9258 SWIG_fail;
9259 }
9260 arg2 = new wxArrayString;
9261 temp2 = true;
9262 int i, len=PySequence_Length(obj1);
9263 for (i=0; i<len; i++) {
9264 PyObject* item = PySequence_GetItem(obj1, i);
9265 wxString* s = wxString_in_helper(item);
9266 if (PyErr_Occurred()) SWIG_fail;
9267 arg2->Add(*s);
9268 delete s;
9269 Py_DECREF(item);
d14a1e28 9270 }
0085ce49
RD
9271 }
9272 {
9273 PyThreadState* __tstate = wxPyBeginAllowThreads();
9274 (arg1)->Set((wxArrayString const &)*arg2);
9275 wxPyEndAllowThreads(__tstate);
9276 if (PyErr_Occurred()) SWIG_fail;
9277 }
9278 resultobj = SWIG_Py_Void();
9279 {
9280 if (temp2) delete arg2;
9281 }
9282 return resultobj;
9283fail:
9284 {
9285 if (temp2) delete arg2;
9286 }
9287 return NULL;
9288}
9289
9290
9291SWIGINTERN PyObject *_wrap_ListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9292 PyObject *resultobj = 0;
9293 wxListBox *arg1 = (wxListBox *) 0 ;
9294 int arg2 ;
9295 bool result;
9296 void *argp1 = 0 ;
9297 int res1 = 0 ;
9298 int val2 ;
9299 int ecode2 = 0 ;
9300 PyObject * obj0 = 0 ;
9301 PyObject * obj1 = 0 ;
9302 char * kwnames[] = {
9303 (char *) "self",(char *) "n", NULL
9304 };
9305
9306 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
9307 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9308 if (!SWIG_IsOK(res1)) {
9309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSelected" "', expected argument " "1"" of type '" "wxListBox const *""'");
9310 }
9311 arg1 = reinterpret_cast< wxListBox * >(argp1);
9312 ecode2 = SWIG_AsVal_int(obj1, &val2);
9313 if (!SWIG_IsOK(ecode2)) {
9314 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_IsSelected" "', expected argument " "2"" of type '" "int""'");
9315 }
9316 arg2 = static_cast< int >(val2);
9317 {
9318 PyThreadState* __tstate = wxPyBeginAllowThreads();
9319 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
9320 wxPyEndAllowThreads(__tstate);
9321 if (PyErr_Occurred()) SWIG_fail;
9322 }
9323 {
9324 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9325 }
9326 return resultobj;
9327fail:
9328 return NULL;
9329}
9330
9331
9332SWIGINTERN PyObject *_wrap_ListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9333 PyObject *resultobj = 0;
9334 wxListBox *arg1 = (wxListBox *) 0 ;
9335 int arg2 ;
9336 bool arg3 = (bool) true ;
9337 void *argp1 = 0 ;
9338 int res1 = 0 ;
9339 int val2 ;
9340 int ecode2 = 0 ;
9341 bool val3 ;
9342 int ecode3 = 0 ;
9343 PyObject * obj0 = 0 ;
9344 PyObject * obj1 = 0 ;
9345 PyObject * obj2 = 0 ;
9346 char * kwnames[] = {
9347 (char *) "self",(char *) "n",(char *) "select", NULL
9348 };
9349
9350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9352 if (!SWIG_IsOK(res1)) {
9353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9354 }
9355 arg1 = reinterpret_cast< wxListBox * >(argp1);
9356 ecode2 = SWIG_AsVal_int(obj1, &val2);
9357 if (!SWIG_IsOK(ecode2)) {
9358 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
9359 }
9360 arg2 = static_cast< int >(val2);
9361 if (obj2) {
9362 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9363 if (!SWIG_IsOK(ecode3)) {
9364 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetSelection" "', expected argument " "3"" of type '" "bool""'");
9365 }
9366 arg3 = static_cast< bool >(val3);
9367 }
9368 {
9369 PyThreadState* __tstate = wxPyBeginAllowThreads();
9370 (arg1)->SetSelection(arg2,arg3);
9371 wxPyEndAllowThreads(__tstate);
9372 if (PyErr_Occurred()) SWIG_fail;
9373 }
9374 resultobj = SWIG_Py_Void();
9375 return resultobj;
9376fail:
9377 return NULL;
9378}
9379
9380
9381SWIGINTERN PyObject *_wrap_ListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9382 PyObject *resultobj = 0;
9383 wxListBox *arg1 = (wxListBox *) 0 ;
9384 int arg2 ;
9385 void *argp1 = 0 ;
9386 int res1 = 0 ;
9387 int val2 ;
9388 int ecode2 = 0 ;
9389 PyObject * obj0 = 0 ;
9390 PyObject * obj1 = 0 ;
9391 char * kwnames[] = {
9392 (char *) "self",(char *) "n", NULL
9393 };
9394
9395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) SWIG_fail;
9396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9397 if (!SWIG_IsOK(res1)) {
9398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Select" "', expected argument " "1"" of type '" "wxListBox *""'");
9399 }
9400 arg1 = reinterpret_cast< wxListBox * >(argp1);
9401 ecode2 = SWIG_AsVal_int(obj1, &val2);
9402 if (!SWIG_IsOK(ecode2)) {
9403 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Select" "', expected argument " "2"" of type '" "int""'");
9404 }
9405 arg2 = static_cast< int >(val2);
9406 {
9407 PyThreadState* __tstate = wxPyBeginAllowThreads();
9408 (arg1)->Select(arg2);
9409 wxPyEndAllowThreads(__tstate);
9410 if (PyErr_Occurred()) SWIG_fail;
9411 }
9412 resultobj = SWIG_Py_Void();
9413 return resultobj;
9414fail:
9415 return NULL;
9416}
9417
9418
9419SWIGINTERN PyObject *_wrap_ListBox_Deselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9420 PyObject *resultobj = 0;
9421 wxListBox *arg1 = (wxListBox *) 0 ;
9422 int arg2 ;
9423 void *argp1 = 0 ;
9424 int res1 = 0 ;
9425 int val2 ;
9426 int ecode2 = 0 ;
9427 PyObject * obj0 = 0 ;
9428 PyObject * obj1 = 0 ;
9429 char * kwnames[] = {
9430 (char *) "self",(char *) "n", NULL
9431 };
9432
9433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) SWIG_fail;
9434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9435 if (!SWIG_IsOK(res1)) {
9436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Deselect" "', expected argument " "1"" of type '" "wxListBox *""'");
9437 }
9438 arg1 = reinterpret_cast< wxListBox * >(argp1);
9439 ecode2 = SWIG_AsVal_int(obj1, &val2);
9440 if (!SWIG_IsOK(ecode2)) {
9441 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Deselect" "', expected argument " "2"" of type '" "int""'");
9442 }
9443 arg2 = static_cast< int >(val2);
9444 {
9445 PyThreadState* __tstate = wxPyBeginAllowThreads();
9446 (arg1)->Deselect(arg2);
9447 wxPyEndAllowThreads(__tstate);
9448 if (PyErr_Occurred()) SWIG_fail;
9449 }
9450 resultobj = SWIG_Py_Void();
9451 return resultobj;
9452fail:
9453 return NULL;
9454}
9455
9456
9457SWIGINTERN PyObject *_wrap_ListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9458 PyObject *resultobj = 0;
9459 wxListBox *arg1 = (wxListBox *) 0 ;
9460 int arg2 = (int) -1 ;
9461 void *argp1 = 0 ;
9462 int res1 = 0 ;
9463 int val2 ;
9464 int ecode2 = 0 ;
9465 PyObject * obj0 = 0 ;
9466 PyObject * obj1 = 0 ;
9467 char * kwnames[] = {
9468 (char *) "self",(char *) "itemToLeaveSelected", NULL
9469 };
9470
9471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) SWIG_fail;
9472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9473 if (!SWIG_IsOK(res1)) {
9474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_DeselectAll" "', expected argument " "1"" of type '" "wxListBox *""'");
9475 }
9476 arg1 = reinterpret_cast< wxListBox * >(argp1);
9477 if (obj1) {
9478 ecode2 = SWIG_AsVal_int(obj1, &val2);
9479 if (!SWIG_IsOK(ecode2)) {
9480 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_DeselectAll" "', expected argument " "2"" of type '" "int""'");
9481 }
9482 arg2 = static_cast< int >(val2);
9483 }
9484 {
9485 PyThreadState* __tstate = wxPyBeginAllowThreads();
9486 (arg1)->DeselectAll(arg2);
9487 wxPyEndAllowThreads(__tstate);
9488 if (PyErr_Occurred()) SWIG_fail;
9489 }
9490 resultobj = SWIG_Py_Void();
9491 return resultobj;
9492fail:
9493 return NULL;
9494}
9495
9496
9497SWIGINTERN PyObject *_wrap_ListBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9498 PyObject *resultobj = 0;
9499 wxListBox *arg1 = (wxListBox *) 0 ;
9500 wxString *arg2 = 0 ;
9501 bool arg3 = (bool) true ;
9502 bool result;
9503 void *argp1 = 0 ;
9504 int res1 = 0 ;
9505 bool temp2 = false ;
9506 bool val3 ;
9507 int ecode3 = 0 ;
9508 PyObject * obj0 = 0 ;
9509 PyObject * obj1 = 0 ;
9510 PyObject * obj2 = 0 ;
9511 char * kwnames[] = {
9512 (char *) "self",(char *) "s",(char *) "select", NULL
9513 };
9514
9515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9517 if (!SWIG_IsOK(res1)) {
9518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetStringSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9519 }
9520 arg1 = reinterpret_cast< wxListBox * >(argp1);
9521 {
9522 arg2 = wxString_in_helper(obj1);
9523 if (arg2 == NULL) SWIG_fail;
9524 temp2 = true;
9525 }
9526 if (obj2) {
9527 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9528 if (!SWIG_IsOK(ecode3)) {
9529 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetStringSelection" "', expected argument " "3"" of type '" "bool""'");
9530 }
9531 arg3 = static_cast< bool >(val3);
9532 }
9533 {
9534 PyThreadState* __tstate = wxPyBeginAllowThreads();
9535 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
9536 wxPyEndAllowThreads(__tstate);
9537 if (PyErr_Occurred()) SWIG_fail;
9538 }
9539 {
9540 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9541 }
9542 {
9543 if (temp2)
9544 delete arg2;
9545 }
9546 return resultobj;
9547fail:
9548 {
9549 if (temp2)
9550 delete arg2;
9551 }
9552 return NULL;
d14a1e28
RD
9553}
9554
9555
0085ce49
RD
9556SWIGINTERN PyObject *_wrap_ListBox_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9557 PyObject *resultobj = 0;
9558 wxListBox *arg1 = (wxListBox *) 0 ;
9559 PyObject *result = 0 ;
9560 void *argp1 = 0 ;
9561 int res1 = 0 ;
9562 PyObject *swig_obj[1] ;
9563
9564 if (!args) SWIG_fail;
9565 swig_obj[0] = args;
9566 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9567 if (!SWIG_IsOK(res1)) {
9568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_GetSelections" "', expected argument " "1"" of type '" "wxListBox *""'");
9569 }
9570 arg1 = reinterpret_cast< wxListBox * >(argp1);
9571 {
9572 PyThreadState* __tstate = wxPyBeginAllowThreads();
9573 result = (PyObject *)wxListBox_GetSelections(arg1);
9574 wxPyEndAllowThreads(__tstate);
9575 if (PyErr_Occurred()) SWIG_fail;
9576 }
9577 resultobj = result;
9578 return resultobj;
9579fail:
9580 return NULL;
9581}
9582
9583
9584SWIGINTERN PyObject *_wrap_ListBox_SetFirstItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9585 PyObject *resultobj = 0;
9586 wxListBox *arg1 = (wxListBox *) 0 ;
9587 int arg2 ;
9588 void *argp1 = 0 ;
9589 int res1 = 0 ;
9590 int val2 ;
9591 int ecode2 = 0 ;
9592 PyObject * obj0 = 0 ;
9593 PyObject * obj1 = 0 ;
9594 char * kwnames[] = {
9595 (char *) "self",(char *) "n", NULL
9596 };
9597
9598 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) SWIG_fail;
9599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9600 if (!SWIG_IsOK(res1)) {
9601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItem" "', expected argument " "1"" of type '" "wxListBox *""'");
9602 }
9603 arg1 = reinterpret_cast< wxListBox * >(argp1);
9604 ecode2 = SWIG_AsVal_int(obj1, &val2);
9605 if (!SWIG_IsOK(ecode2)) {
9606 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetFirstItem" "', expected argument " "2"" of type '" "int""'");
9607 }
9608 arg2 = static_cast< int >(val2);
9609 {
9610 PyThreadState* __tstate = wxPyBeginAllowThreads();
9611 (arg1)->SetFirstItem(arg2);
9612 wxPyEndAllowThreads(__tstate);
9613 if (PyErr_Occurred()) SWIG_fail;
9614 }
9615 resultobj = SWIG_Py_Void();
9616 return resultobj;
9617fail:
9618 return NULL;
9619}
9620
9621
9622SWIGINTERN PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9623 PyObject *resultobj = 0;
9624 wxListBox *arg1 = (wxListBox *) 0 ;
9625 wxString *arg2 = 0 ;
9626 void *argp1 = 0 ;
9627 int res1 = 0 ;
9628 bool temp2 = false ;
9629 PyObject * obj0 = 0 ;
9630 PyObject * obj1 = 0 ;
9631 char * kwnames[] = {
9632 (char *) "self",(char *) "s", NULL
9633 };
9634
9635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) SWIG_fail;
9636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9637 if (!SWIG_IsOK(res1)) {
9638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItemStr" "', expected argument " "1"" of type '" "wxListBox *""'");
9639 }
9640 arg1 = reinterpret_cast< wxListBox * >(argp1);
9641 {
9642 arg2 = wxString_in_helper(obj1);
9643 if (arg2 == NULL) SWIG_fail;
9644 temp2 = true;
9645 }
9646 {
9647 PyThreadState* __tstate = wxPyBeginAllowThreads();
9648 (arg1)->SetFirstItem((wxString const &)*arg2);
9649 wxPyEndAllowThreads(__tstate);
9650 if (PyErr_Occurred()) SWIG_fail;
9651 }
9652 resultobj = SWIG_Py_Void();
9653 {
9654 if (temp2)
9655 delete arg2;
9656 }
9657 return resultobj;
9658fail:
9659 {
9660 if (temp2)
9661 delete arg2;
9662 }
9663 return NULL;
9664}
9665
9666
9667SWIGINTERN PyObject *_wrap_ListBox_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9668 PyObject *resultobj = 0;
9669 wxListBox *arg1 = (wxListBox *) 0 ;
9670 int arg2 ;
9671 void *argp1 = 0 ;
9672 int res1 = 0 ;
9673 int val2 ;
9674 int ecode2 = 0 ;
9675 PyObject * obj0 = 0 ;
9676 PyObject * obj1 = 0 ;
9677 char * kwnames[] = {
9678 (char *) "self",(char *) "n", NULL
9679 };
9680
9681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9683 if (!SWIG_IsOK(res1)) {
9684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_EnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9685 }
9686 arg1 = reinterpret_cast< wxListBox * >(argp1);
9687 ecode2 = SWIG_AsVal_int(obj1, &val2);
9688 if (!SWIG_IsOK(ecode2)) {
9689 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_EnsureVisible" "', expected argument " "2"" of type '" "int""'");
9690 }
9691 arg2 = static_cast< int >(val2);
9692 {
9693 PyThreadState* __tstate = wxPyBeginAllowThreads();
9694 (arg1)->EnsureVisible(arg2);
9695 wxPyEndAllowThreads(__tstate);
9696 if (PyErr_Occurred()) SWIG_fail;
9697 }
9698 resultobj = SWIG_Py_Void();
9699 return resultobj;
9700fail:
9701 return NULL;
9702}
9703
9704
9705SWIGINTERN PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9706 PyObject *resultobj = 0;
9707 wxListBox *arg1 = (wxListBox *) 0 ;
9708 wxString *arg2 = 0 ;
9709 void *argp1 = 0 ;
9710 int res1 = 0 ;
9711 bool temp2 = false ;
9712 PyObject * obj0 = 0 ;
9713 PyObject * obj1 = 0 ;
9714 char * kwnames[] = {
9715 (char *) "self",(char *) "s", NULL
9716 };
9717
9718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9720 if (!SWIG_IsOK(res1)) {
9721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_AppendAndEnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9722 }
9723 arg1 = reinterpret_cast< wxListBox * >(argp1);
9724 {
9725 arg2 = wxString_in_helper(obj1);
9726 if (arg2 == NULL) SWIG_fail;
9727 temp2 = true;
9728 }
9729 {
9730 PyThreadState* __tstate = wxPyBeginAllowThreads();
9731 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
9732 wxPyEndAllowThreads(__tstate);
9733 if (PyErr_Occurred()) SWIG_fail;
9734 }
9735 resultobj = SWIG_Py_Void();
9736 {
9737 if (temp2)
9738 delete arg2;
9739 }
9740 return resultobj;
9741fail:
9742 {
9743 if (temp2)
9744 delete arg2;
9745 }
9746 return NULL;
d14a1e28
RD
9747}
9748
9749
0085ce49
RD
9750SWIGINTERN PyObject *_wrap_ListBox_IsSorted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9751 PyObject *resultobj = 0;
9752 wxListBox *arg1 = (wxListBox *) 0 ;
9753 bool result;
9754 void *argp1 = 0 ;
9755 int res1 = 0 ;
9756 PyObject *swig_obj[1] ;
9757
9758 if (!args) SWIG_fail;
9759 swig_obj[0] = args;
9760 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9761 if (!SWIG_IsOK(res1)) {
9762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSorted" "', expected argument " "1"" of type '" "wxListBox const *""'");
9763 }
9764 arg1 = reinterpret_cast< wxListBox * >(argp1);
9765 {
9766 PyThreadState* __tstate = wxPyBeginAllowThreads();
9767 result = (bool)((wxListBox const *)arg1)->IsSorted();
9768 wxPyEndAllowThreads(__tstate);
9769 if (PyErr_Occurred()) SWIG_fail;
9770 }
9771 {
9772 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9773 }
9774 return resultobj;
9775fail:
9776 return NULL;
9777}
9778
9779
9780SWIGINTERN PyObject *_wrap_ListBox_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9781 PyObject *resultobj = 0;
9782 wxListBox *arg1 = (wxListBox *) 0 ;
9783 wxPoint *arg2 = 0 ;
9784 int result;
9785 void *argp1 = 0 ;
9786 int res1 = 0 ;
9787 wxPoint temp2 ;
9788 PyObject * obj0 = 0 ;
9789 PyObject * obj1 = 0 ;
9790 char * kwnames[] = {
9791 (char *) "self",(char *) "pt", NULL
9792 };
9793
9794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
9795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9796 if (!SWIG_IsOK(res1)) {
9797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_HitTest" "', expected argument " "1"" of type '" "wxListBox const *""'");
9798 }
9799 arg1 = reinterpret_cast< wxListBox * >(argp1);
9800 {
9801 arg2 = &temp2;
9802 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9803 }
9804 {
9805 PyThreadState* __tstate = wxPyBeginAllowThreads();
9806 result = (int)((wxListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
9807 wxPyEndAllowThreads(__tstate);
9808 if (PyErr_Occurred()) SWIG_fail;
9809 }
9810 resultobj = SWIG_From_int(static_cast< int >(result));
9811 return resultobj;
9812fail:
9813 return NULL;
9814}
9815
9816
9817SWIGINTERN PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9818 PyObject *resultobj = 0;
9819 wxListBox *arg1 = (wxListBox *) 0 ;
9820 int arg2 ;
9821 wxColour *arg3 = 0 ;
9822 void *argp1 = 0 ;
9823 int res1 = 0 ;
9824 int val2 ;
9825 int ecode2 = 0 ;
9826 wxColour temp3 ;
9827 PyObject * obj0 = 0 ;
9828 PyObject * obj1 = 0 ;
9829 PyObject * obj2 = 0 ;
9830 char * kwnames[] = {
9831 (char *) "self",(char *) "item",(char *) "c", NULL
9832 };
9833
9834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9835 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9836 if (!SWIG_IsOK(res1)) {
9837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9838 }
9839 arg1 = reinterpret_cast< wxListBox * >(argp1);
9840 ecode2 = SWIG_AsVal_int(obj1, &val2);
9841 if (!SWIG_IsOK(ecode2)) {
9842 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "2"" of type '" "int""'");
9843 }
9844 arg2 = static_cast< int >(val2);
9845 {
9846 arg3 = &temp3;
9847 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9848 }
9849 {
9850 PyThreadState* __tstate = wxPyBeginAllowThreads();
9851 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
9852 wxPyEndAllowThreads(__tstate);
9853 if (PyErr_Occurred()) SWIG_fail;
9854 }
9855 resultobj = SWIG_Py_Void();
9856 return resultobj;
9857fail:
9858 return NULL;
9859}
9860
9861
9862SWIGINTERN PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9863 PyObject *resultobj = 0;
9864 wxListBox *arg1 = (wxListBox *) 0 ;
9865 int arg2 ;
9866 wxColour *arg3 = 0 ;
9867 void *argp1 = 0 ;
9868 int res1 = 0 ;
9869 int val2 ;
9870 int ecode2 = 0 ;
9871 wxColour temp3 ;
9872 PyObject * obj0 = 0 ;
9873 PyObject * obj1 = 0 ;
9874 PyObject * obj2 = 0 ;
9875 char * kwnames[] = {
9876 (char *) "self",(char *) "item",(char *) "c", NULL
9877 };
9878
9879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9881 if (!SWIG_IsOK(res1)) {
9882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9883 }
9884 arg1 = reinterpret_cast< wxListBox * >(argp1);
9885 ecode2 = SWIG_AsVal_int(obj1, &val2);
9886 if (!SWIG_IsOK(ecode2)) {
9887 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "2"" of type '" "int""'");
9888 }
9889 arg2 = static_cast< int >(val2);
9890 {
9891 arg3 = &temp3;
9892 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9893 }
9894 {
9895 PyThreadState* __tstate = wxPyBeginAllowThreads();
9896 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
9897 wxPyEndAllowThreads(__tstate);
9898 if (PyErr_Occurred()) SWIG_fail;
9899 }
9900 resultobj = SWIG_Py_Void();
9901 return resultobj;
9902fail:
9903 return NULL;
9904}
9905
9906
9907SWIGINTERN PyObject *_wrap_ListBox_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9908 PyObject *resultobj = 0;
9909 wxListBox *arg1 = (wxListBox *) 0 ;
9910 int arg2 ;
9911 wxFont *arg3 = 0 ;
9912 void *argp1 = 0 ;
9913 int res1 = 0 ;
9914 int val2 ;
9915 int ecode2 = 0 ;
9916 void *argp3 = 0 ;
9917 int res3 = 0 ;
9918 PyObject * obj0 = 0 ;
9919 PyObject * obj1 = 0 ;
9920 PyObject * obj2 = 0 ;
9921 char * kwnames[] = {
9922 (char *) "self",(char *) "item",(char *) "f", NULL
9923 };
9924
9925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9927 if (!SWIG_IsOK(res1)) {
9928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemFont" "', expected argument " "1"" of type '" "wxListBox *""'");
9929 }
9930 arg1 = reinterpret_cast< wxListBox * >(argp1);
9931 ecode2 = SWIG_AsVal_int(obj1, &val2);
9932 if (!SWIG_IsOK(ecode2)) {
9933 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemFont" "', expected argument " "2"" of type '" "int""'");
9934 }
9935 arg2 = static_cast< int >(val2);
9936 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
9937 if (!SWIG_IsOK(res3)) {
9938 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9939 }
9940 if (!argp3) {
9941 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9942 }
9943 arg3 = reinterpret_cast< wxFont * >(argp3);
9944 {
9945 PyThreadState* __tstate = wxPyBeginAllowThreads();
9946 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
9947 wxPyEndAllowThreads(__tstate);
9948 if (PyErr_Occurred()) SWIG_fail;
9949 }
9950 resultobj = SWIG_Py_Void();
9951 return resultobj;
9952fail:
9953 return NULL;
9954}
9955
9956
9957SWIGINTERN PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9958 PyObject *resultobj = 0;
9959 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
9960 SwigValueWrapper<wxVisualAttributes > result;
9961 int val1 ;
9962 int ecode1 = 0 ;
9963 PyObject * obj0 = 0 ;
9964 char * kwnames[] = {
9965 (char *) "variant", NULL
9966 };
9967
9968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
9969 if (obj0) {
9970 ecode1 = SWIG_AsVal_int(obj0, &val1);
9971 if (!SWIG_IsOK(ecode1)) {
9972 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
9973 }
9974 arg1 = static_cast< wxWindowVariant >(val1);
9975 }
9976 {
9977 if (!wxPyCheckForApp()) SWIG_fail;
9978 PyThreadState* __tstate = wxPyBeginAllowThreads();
9979 result = wxListBox::GetClassDefaultAttributes(arg1);
9980 wxPyEndAllowThreads(__tstate);
9981 if (PyErr_Occurred()) SWIG_fail;
9982 }
9983 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
9984 return resultobj;
9985fail:
9986 return NULL;
9987}
9988
9989
9990SWIGINTERN PyObject *ListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9991 PyObject *obj;
9992 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9993 SWIG_TypeNewClientData(SWIGTYPE_p_wxListBox, SWIG_NewClientData(obj));
9994 return SWIG_Py_Void();
9995}
9996
9997SWIGINTERN PyObject *ListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9998 return SWIG_Python_InitShadowInstance(args);
9999}
10000
10001SWIGINTERN PyObject *_wrap_new_CheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10002 PyObject *resultobj = 0;
10003 wxWindow *arg1 = (wxWindow *) 0 ;
10004 int arg2 = (int) -1 ;
10005 wxPoint const &arg3_defvalue = wxDefaultPosition ;
10006 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
10007 wxSize const &arg4_defvalue = wxDefaultSize ;
10008 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
10009 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
10010 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
10011 long arg6 = (long) 0 ;
10012 wxValidator const &arg7_defvalue = wxDefaultValidator ;
10013 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
10014 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
10015 wxString *arg8 = (wxString *) &arg8_defvalue ;
10016 wxCheckListBox *result = 0 ;
10017 void *argp1 = 0 ;
10018 int res1 = 0 ;
10019 int val2 ;
10020 int ecode2 = 0 ;
10021 wxPoint temp3 ;
10022 wxSize temp4 ;
10023 bool temp5 = false ;
10024 long val6 ;
10025 int ecode6 = 0 ;
10026 void *argp7 = 0 ;
10027 int res7 = 0 ;
10028 bool temp8 = false ;
10029 PyObject * obj0 = 0 ;
10030 PyObject * obj1 = 0 ;
10031 PyObject * obj2 = 0 ;
10032 PyObject * obj3 = 0 ;
10033 PyObject * obj4 = 0 ;
10034 PyObject * obj5 = 0 ;
10035 PyObject * obj6 = 0 ;
10036 PyObject * obj7 = 0 ;
10037 char * kwnames[] = {
10038 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10039 };
10040
10041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
10042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
10043 if (!SWIG_IsOK(res1)) {
10044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
10045 }
10046 arg1 = reinterpret_cast< wxWindow * >(argp1);
10047 if (obj1) {
10048 ecode2 = SWIG_AsVal_int(obj1, &val2);
10049 if (!SWIG_IsOK(ecode2)) {
10050 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckListBox" "', expected argument " "2"" of type '" "int""'");
10051 }
10052 arg2 = static_cast< int >(val2);
10053 }
10054 if (obj2) {
d14a1e28 10055 {
0085ce49
RD
10056 arg3 = &temp3;
10057 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 10058 }
0085ce49
RD
10059 }
10060 if (obj3) {
d14a1e28 10061 {
0085ce49
RD
10062 arg4 = &temp4;
10063 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 10064 }
0085ce49
RD
10065 }
10066 if (obj4) {
d14a1e28 10067 {
0085ce49
RD
10068 if (! PySequence_Check(obj4)) {
10069 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10070 SWIG_fail;
10071 }
10072 arg5 = new wxArrayString;
10073 temp5 = true;
10074 int i, len=PySequence_Length(obj4);
10075 for (i=0; i<len; i++) {
10076 PyObject* item = PySequence_GetItem(obj4, i);
10077 wxString* s = wxString_in_helper(item);
10078 if (PyErr_Occurred()) SWIG_fail;
10079 arg5->Add(*s);
10080 delete s;
10081 Py_DECREF(item);
10082 }
d14a1e28 10083 }
0085ce49
RD
10084 }
10085 if (obj5) {
10086 ecode6 = SWIG_AsVal_long(obj5, &val6);
10087 if (!SWIG_IsOK(ecode6)) {
10088 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckListBox" "', expected argument " "6"" of type '" "long""'");
10089 }
10090 arg6 = static_cast< long >(val6);
10091 }
10092 if (obj6) {
10093 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
10094 if (!SWIG_IsOK(res7)) {
10095 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4f89f6a3 10096 }
0085ce49
RD
10097 if (!argp7) {
10098 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 10099 }
0085ce49
RD
10100 arg7 = reinterpret_cast< wxValidator * >(argp7);
10101 }
10102 if (obj7) {
093d3ff1 10103 {
0085ce49
RD
10104 arg8 = wxString_in_helper(obj7);
10105 if (arg8 == NULL) SWIG_fail;
10106 temp8 = true;
093d3ff1 10107 }
0085ce49
RD
10108 }
10109 {
10110 if (!wxPyCheckForApp()) SWIG_fail;
10111 PyThreadState* __tstate = wxPyBeginAllowThreads();
10112 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10113 wxPyEndAllowThreads(__tstate);
10114 if (PyErr_Occurred()) SWIG_fail;
10115 }
10116 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_NEW | 0 );
10117 {
10118 if (temp5) delete arg5;
10119 }
10120 {
10121 if (temp8)
10122 delete arg8;
10123 }
10124 return resultobj;
10125fail:
10126 {
10127 if (temp5) delete arg5;
10128 }
10129 {
10130 if (temp8)
10131 delete arg8;
10132 }
10133 return NULL;
d14a1e28
RD
10134}
10135
10136
0085ce49
RD
10137SWIGINTERN PyObject *_wrap_new_PreCheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10138 PyObject *resultobj = 0;
10139 wxCheckListBox *result = 0 ;
10140
10141 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckListBox",0,0,0)) SWIG_fail;
10142 {
10143 if (!wxPyCheckForApp()) SWIG_fail;
10144 PyThreadState* __tstate = wxPyBeginAllowThreads();
10145 result = (wxCheckListBox *)new wxCheckListBox();
10146 wxPyEndAllowThreads(__tstate);
10147 if (PyErr_Occurred()) SWIG_fail;
10148 }
10149 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_OWN | 0 );
10150 return resultobj;
10151fail:
10152 return NULL;
10153}
10154
10155
10156SWIGINTERN PyObject *_wrap_CheckListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10157 PyObject *resultobj = 0;
10158 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10159 wxWindow *arg2 = (wxWindow *) 0 ;
10160 int arg3 = (int) -1 ;
10161 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10162 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10163 wxSize const &arg5_defvalue = wxDefaultSize ;
10164 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10165 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
10166 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
10167 long arg7 = (long) 0 ;
10168 wxValidator const &arg8_defvalue = wxDefaultValidator ;
10169 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
10170 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
10171 wxString *arg9 = (wxString *) &arg9_defvalue ;
10172 bool result;
10173 void *argp1 = 0 ;
10174 int res1 = 0 ;
10175 void *argp2 = 0 ;
10176 int res2 = 0 ;
10177 int val3 ;
10178 int ecode3 = 0 ;
10179 wxPoint temp4 ;
10180 wxSize temp5 ;
10181 bool temp6 = false ;
10182 long val7 ;
10183 int ecode7 = 0 ;
10184 void *argp8 = 0 ;
10185 int res8 = 0 ;
10186 bool temp9 = false ;
10187 PyObject * obj0 = 0 ;
10188 PyObject * obj1 = 0 ;
10189 PyObject * obj2 = 0 ;
10190 PyObject * obj3 = 0 ;
10191 PyObject * obj4 = 0 ;
10192 PyObject * obj5 = 0 ;
10193 PyObject * obj6 = 0 ;
10194 PyObject * obj7 = 0 ;
10195 PyObject * obj8 = 0 ;
10196 char * kwnames[] = {
10197 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10198 };
10199
10200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
10201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10202 if (!SWIG_IsOK(res1)) {
10203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Create" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10204 }
10205 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10206 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
10207 if (!SWIG_IsOK(res2)) {
10208 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
10209 }
10210 arg2 = reinterpret_cast< wxWindow * >(argp2);
10211 if (obj2) {
10212 ecode3 = SWIG_AsVal_int(obj2, &val3);
10213 if (!SWIG_IsOK(ecode3)) {
10214 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Create" "', expected argument " "3"" of type '" "int""'");
10215 }
10216 arg3 = static_cast< int >(val3);
10217 }
10218 if (obj3) {
22bfe96c 10219 {
0085ce49
RD
10220 arg4 = &temp4;
10221 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 10222 }
0085ce49
RD
10223 }
10224 if (obj4) {
d14a1e28 10225 {
0085ce49
RD
10226 arg5 = &temp5;
10227 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 10228 }
0085ce49
RD
10229 }
10230 if (obj5) {
d14a1e28 10231 {
0085ce49
RD
10232 if (! PySequence_Check(obj5)) {
10233 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10234 SWIG_fail;
10235 }
10236 arg6 = new wxArrayString;
10237 temp6 = true;
10238 int i, len=PySequence_Length(obj5);
10239 for (i=0; i<len; i++) {
10240 PyObject* item = PySequence_GetItem(obj5, i);
10241 wxString* s = wxString_in_helper(item);
10242 if (PyErr_Occurred()) SWIG_fail;
10243 arg6->Add(*s);
10244 delete s;
10245 Py_DECREF(item);
10246 }
d14a1e28 10247 }
0085ce49
RD
10248 }
10249 if (obj6) {
10250 ecode7 = SWIG_AsVal_long(obj6, &val7);
10251 if (!SWIG_IsOK(ecode7)) {
10252 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckListBox_Create" "', expected argument " "7"" of type '" "long""'");
10253 }
10254 arg7 = static_cast< long >(val7);
10255 }
10256 if (obj7) {
10257 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
10258 if (!SWIG_IsOK(res8)) {
10259 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 10260 }
0085ce49
RD
10261 if (!argp8) {
10262 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 10263 }
0085ce49
RD
10264 arg8 = reinterpret_cast< wxValidator * >(argp8);
10265 }
10266 if (obj8) {
d14a1e28 10267 {
0085ce49
RD
10268 arg9 = wxString_in_helper(obj8);
10269 if (arg9 == NULL) SWIG_fail;
10270 temp9 = true;
d14a1e28 10271 }
0085ce49
RD
10272 }
10273 {
10274 PyThreadState* __tstate = wxPyBeginAllowThreads();
10275 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
10276 wxPyEndAllowThreads(__tstate);
10277 if (PyErr_Occurred()) SWIG_fail;
10278 }
10279 {
10280 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10281 }
10282 {
10283 if (temp6) delete arg6;
10284 }
10285 {
10286 if (temp9)
10287 delete arg9;
10288 }
10289 return resultobj;
10290fail:
10291 {
10292 if (temp6) delete arg6;
10293 }
10294 {
10295 if (temp9)
10296 delete arg9;
10297 }
10298 return NULL;
10299}
10300
10301
10302SWIGINTERN PyObject *_wrap_CheckListBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10303 PyObject *resultobj = 0;
10304 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
50f151d7 10305 unsigned int arg2 ;
0085ce49
RD
10306 bool result;
10307 void *argp1 = 0 ;
10308 int res1 = 0 ;
50f151d7 10309 unsigned int val2 ;
0085ce49
RD
10310 int ecode2 = 0 ;
10311 PyObject * obj0 = 0 ;
10312 PyObject * obj1 = 0 ;
10313 char * kwnames[] = {
10314 (char *) "self",(char *) "index", NULL
10315 };
10316
10317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail;
10318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10319 if (!SWIG_IsOK(res1)) {
10320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10321 }
10322 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
50f151d7 10323 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
0085ce49 10324 if (!SWIG_IsOK(ecode2)) {
50f151d7 10325 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_IsChecked" "', expected argument " "2"" of type '" "unsigned int""'");
0085ce49 10326 }
50f151d7 10327 arg2 = static_cast< unsigned int >(val2);
0085ce49
RD
10328 {
10329 PyThreadState* __tstate = wxPyBeginAllowThreads();
10330 result = (bool)(arg1)->IsChecked(arg2);
10331 wxPyEndAllowThreads(__tstate);
10332 if (PyErr_Occurred()) SWIG_fail;
10333 }
10334 {
10335 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10336 }
10337 return resultobj;
10338fail:
10339 return NULL;
10340}
10341
10342
10343SWIGINTERN PyObject *_wrap_CheckListBox_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10344 PyObject *resultobj = 0;
10345 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
50f151d7 10346 unsigned int arg2 ;
0085ce49
RD
10347 int arg3 = (int) true ;
10348 void *argp1 = 0 ;
10349 int res1 = 0 ;
50f151d7 10350 unsigned int val2 ;
0085ce49
RD
10351 int ecode2 = 0 ;
10352 int val3 ;
10353 int ecode3 = 0 ;
10354 PyObject * obj0 = 0 ;
10355 PyObject * obj1 = 0 ;
10356 PyObject * obj2 = 0 ;
10357 char * kwnames[] = {
10358 (char *) "self",(char *) "index",(char *) "check", NULL
10359 };
10360
10361 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10362 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10363 if (!SWIG_IsOK(res1)) {
10364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Check" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10365 }
10366 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
50f151d7 10367 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
0085ce49 10368 if (!SWIG_IsOK(ecode2)) {
50f151d7 10369 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_Check" "', expected argument " "2"" of type '" "unsigned int""'");
0085ce49 10370 }
50f151d7 10371 arg2 = static_cast< unsigned int >(val2);
0085ce49
RD
10372 if (obj2) {
10373 ecode3 = SWIG_AsVal_int(obj2, &val3);
10374 if (!SWIG_IsOK(ecode3)) {
10375 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Check" "', expected argument " "3"" of type '" "int""'");
10376 }
10377 arg3 = static_cast< int >(val3);
10378 }
10379 {
10380 PyThreadState* __tstate = wxPyBeginAllowThreads();
10381 (arg1)->Check(arg2,arg3);
10382 wxPyEndAllowThreads(__tstate);
10383 if (PyErr_Occurred()) SWIG_fail;
10384 }
10385 resultobj = SWIG_Py_Void();
10386 return resultobj;
10387fail:
10388 return NULL;
d14a1e28
RD
10389}
10390
10391
0085ce49
RD
10392SWIGINTERN PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10393 PyObject *resultobj = 0;
10394 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10395 int result;
10396 void *argp1 = 0 ;
10397 int res1 = 0 ;
10398 PyObject *swig_obj[1] ;
10399
10400 if (!args) SWIG_fail;
10401 swig_obj[0] = args;
10402 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10403 if (!SWIG_IsOK(res1)) {
10404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_GetItemHeight" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10405 }
10406 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10407 {
10408 PyThreadState* __tstate = wxPyBeginAllowThreads();
10409 result = (int)(arg1)->GetItemHeight();
10410 wxPyEndAllowThreads(__tstate);
10411 if (PyErr_Occurred()) SWIG_fail;
10412 }
10413 resultobj = SWIG_From_int(static_cast< int >(result));
10414 return resultobj;
10415fail:
10416 return NULL;
d14a1e28
RD
10417}
10418
10419
0085ce49
RD
10420SWIGINTERN PyObject *CheckListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10421 PyObject *obj;
10422 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10423 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckListBox, SWIG_NewClientData(obj));
10424 return SWIG_Py_Void();
d14a1e28
RD
10425}
10426
0085ce49
RD
10427SWIGINTERN PyObject *CheckListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10428 return SWIG_Python_InitShadowInstance(args);
943e8dfd
RD
10429}
10430
0085ce49
RD
10431SWIGINTERN int TextCtrlNameStr_set(PyObject *) {
10432 SWIG_Error(SWIG_AttributeError,"Variable TextCtrlNameStr is read-only.");
10433 return 1;
22bfe96c
RD
10434}
10435
10436
0085ce49
RD
10437SWIGINTERN PyObject *TextCtrlNameStr_get(void) {
10438 PyObject *pyobj = 0;
10439
10440 {
10441#if wxUSE_UNICODE
10442 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10443#else
10444 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10445#endif
10446 }
10447 return pyobj;
10448}
10449
10450
10451SWIGINTERN PyObject *_wrap_new_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10452 PyObject *resultobj = 0;
10453 wxColour const &arg1_defvalue = wxNullColour ;
10454 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
10455 wxColour const &arg2_defvalue = wxNullColour ;
10456 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
10457 wxFont const &arg3_defvalue = wxNullFont ;
10458 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
10459 wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ;
10460 wxTextAttr *result = 0 ;
10461 wxColour temp1 ;
10462 wxColour temp2 ;
10463 void *argp3 = 0 ;
10464 int res3 = 0 ;
10465 int val4 ;
10466 int ecode4 = 0 ;
10467 PyObject * obj0 = 0 ;
10468 PyObject * obj1 = 0 ;
10469 PyObject * obj2 = 0 ;
10470 PyObject * obj3 = 0 ;
10471 char * kwnames[] = {
10472 (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL
10473 };
10474
10475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10476 if (obj0) {
d14a1e28 10477 {
0085ce49
RD
10478 arg1 = &temp1;
10479 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
d14a1e28 10480 }
0085ce49
RD
10481 }
10482 if (obj1) {
d14a1e28 10483 {
0085ce49
RD
10484 arg2 = &temp2;
10485 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d14a1e28 10486 }
0085ce49
RD
10487 }
10488 if (obj2) {
10489 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
10490 if (!SWIG_IsOK(res3)) {
10491 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
d14a1e28 10492 }
0085ce49
RD
10493 if (!argp3) {
10494 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10495 }
10496 arg3 = reinterpret_cast< wxFont * >(argp3);
10497 }
10498 if (obj3) {
10499 ecode4 = SWIG_AsVal_int(obj3, &val4);
10500 if (!SWIG_IsOK(ecode4)) {
10501 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextAttr" "', expected argument " "4"" of type '" "wxTextAttrAlignment""'");
10502 }
10503 arg4 = static_cast< wxTextAttrAlignment >(val4);
10504 }
10505 {
10506 PyThreadState* __tstate = wxPyBeginAllowThreads();
10507 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,arg4);
10508 wxPyEndAllowThreads(__tstate);
10509 if (PyErr_Occurred()) SWIG_fail;
10510 }
10511 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_NEW | 0 );
10512 return resultobj;
10513fail:
10514 return NULL;
d14a1e28
RD
10515}
10516
10517
0085ce49
RD
10518SWIGINTERN PyObject *_wrap_delete_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10519 PyObject *resultobj = 0;
10520 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10521 void *argp1 = 0 ;
10522 int res1 = 0 ;
10523 PyObject *swig_obj[1] ;
10524
10525 if (!args) SWIG_fail;
10526 swig_obj[0] = args;
10527 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, SWIG_POINTER_DISOWN | 0 );
10528 if (!SWIG_IsOK(res1)) {
10529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TextAttr" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10530 }
10531 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10532 {
10533 PyThreadState* __tstate = wxPyBeginAllowThreads();
10534 delete arg1;
d14a1e28 10535
0085ce49
RD
10536 wxPyEndAllowThreads(__tstate);
10537 if (PyErr_Occurred()) SWIG_fail;
10538 }
10539 resultobj = SWIG_Py_Void();
10540 return resultobj;
10541fail:
10542 return NULL;
d14a1e28
RD
10543}
10544
10545
0085ce49
RD
10546SWIGINTERN PyObject *_wrap_TextAttr_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10547 PyObject *resultobj = 0;
10548 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10549 void *argp1 = 0 ;
10550 int res1 = 0 ;
10551 PyObject *swig_obj[1] ;
10552
10553 if (!args) SWIG_fail;
10554 swig_obj[0] = args;
10555 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10556 if (!SWIG_IsOK(res1)) {
10557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Init" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10558 }
10559 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10560 {
10561 PyThreadState* __tstate = wxPyBeginAllowThreads();
10562 (arg1)->Init();
10563 wxPyEndAllowThreads(__tstate);
10564 if (PyErr_Occurred()) SWIG_fail;
10565 }
10566 resultobj = SWIG_Py_Void();
10567 return resultobj;
10568fail:
10569 return NULL;
10570}
10571
10572
01f6b6d3
RD
10573SWIGINTERN PyObject *_wrap_TextAttr_Merge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10574 PyObject *resultobj = 0;
10575 wxTextAttr *arg1 = 0 ;
10576 wxTextAttr *arg2 = 0 ;
10577 wxTextAttr result;
10578 void *argp1 = 0 ;
10579 int res1 = 0 ;
10580 void *argp2 = 0 ;
10581 int res2 = 0 ;
10582 PyObject * obj0 = 0 ;
10583 PyObject * obj1 = 0 ;
10584 char * kwnames[] = {
10585 (char *) "base",(char *) "overlay", NULL
10586 };
10587
10588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_Merge",kwnames,&obj0,&obj1)) SWIG_fail;
10589 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
10590 if (!SWIG_IsOK(res1)) {
10591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10592 }
10593 if (!argp1) {
10594 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10595 }
10596 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10597 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
10598 if (!SWIG_IsOK(res2)) {
10599 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10600 }
10601 if (!argp2) {
10602 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10603 }
10604 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
10605 {
10606 PyThreadState* __tstate = wxPyBeginAllowThreads();
10607 result = wxTextAttr::Merge((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2);
10608 wxPyEndAllowThreads(__tstate);
10609 if (PyErr_Occurred()) SWIG_fail;
10610 }
10611 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
10612 return resultobj;
10613fail:
10614 return NULL;
10615}
10616
10617
0085ce49
RD
10618SWIGINTERN PyObject *_wrap_TextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10619 PyObject *resultobj = 0;
10620 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10621 wxColour *arg2 = 0 ;
10622 void *argp1 = 0 ;
10623 int res1 = 0 ;
10624 wxColour temp2 ;
10625 PyObject * obj0 = 0 ;
10626 PyObject * obj1 = 0 ;
10627 char * kwnames[] = {
10628 (char *) "self",(char *) "colText", NULL
10629 };
10630
10631 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
10632 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10633 if (!SWIG_IsOK(res1)) {
10634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10635 }
10636 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10637 {
10638 arg2 = &temp2;
10639 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10640 }
10641 {
10642 PyThreadState* __tstate = wxPyBeginAllowThreads();
10643 (arg1)->SetTextColour((wxColour const &)*arg2);
10644 wxPyEndAllowThreads(__tstate);
10645 if (PyErr_Occurred()) SWIG_fail;
10646 }
10647 resultobj = SWIG_Py_Void();
10648 return resultobj;
10649fail:
10650 return NULL;
10651}
10652
10653
10654SWIGINTERN PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10655 PyObject *resultobj = 0;
10656 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10657 wxColour *arg2 = 0 ;
10658 void *argp1 = 0 ;
10659 int res1 = 0 ;
10660 wxColour temp2 ;
10661 PyObject * obj0 = 0 ;
10662 PyObject * obj1 = 0 ;
10663 char * kwnames[] = {
10664 (char *) "self",(char *) "colBack", NULL
10665 };
10666
10667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
10668 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10669 if (!SWIG_IsOK(res1)) {
10670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10671 }
10672 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10673 {
10674 arg2 = &temp2;
10675 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10676 }
10677 {
10678 PyThreadState* __tstate = wxPyBeginAllowThreads();
10679 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
10680 wxPyEndAllowThreads(__tstate);
10681 if (PyErr_Occurred()) SWIG_fail;
10682 }
10683 resultobj = SWIG_Py_Void();
10684 return resultobj;
10685fail:
10686 return NULL;
10687}
10688
10689
10690SWIGINTERN PyObject *_wrap_TextAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10691 PyObject *resultobj = 0;
10692 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10693 wxFont *arg2 = 0 ;
10694 long arg3 = (long) wxTEXT_ATTR_FONT ;
10695 void *argp1 = 0 ;
10696 int res1 = 0 ;
10697 void *argp2 = 0 ;
10698 int res2 = 0 ;
10699 long val3 ;
10700 int ecode3 = 0 ;
10701 PyObject * obj0 = 0 ;
10702 PyObject * obj1 = 0 ;
10703 PyObject * obj2 = 0 ;
10704 char * kwnames[] = {
10705 (char *) "self",(char *) "font",(char *) "flags", NULL
10706 };
10707
10708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10710 if (!SWIG_IsOK(res1)) {
10711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFont" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10712 }
10713 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10714 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
10715 if (!SWIG_IsOK(res2)) {
10716 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10717 }
10718 if (!argp2) {
10719 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10720 }
10721 arg2 = reinterpret_cast< wxFont * >(argp2);
10722 if (obj2) {
10723 ecode3 = SWIG_AsVal_long(obj2, &val3);
10724 if (!SWIG_IsOK(ecode3)) {
10725 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetFont" "', expected argument " "3"" of type '" "long""'");
10726 }
10727 arg3 = static_cast< long >(val3);
10728 }
10729 {
10730 PyThreadState* __tstate = wxPyBeginAllowThreads();
10731 (arg1)->SetFont((wxFont const &)*arg2,arg3);
10732 wxPyEndAllowThreads(__tstate);
10733 if (PyErr_Occurred()) SWIG_fail;
10734 }
10735 resultobj = SWIG_Py_Void();
10736 return resultobj;
10737fail:
10738 return NULL;
10739}
10740
10741
10742SWIGINTERN PyObject *_wrap_TextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10743 PyObject *resultobj = 0;
10744 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10745 wxTextAttrAlignment arg2 ;
10746 void *argp1 = 0 ;
10747 int res1 = 0 ;
10748 int val2 ;
10749 int ecode2 = 0 ;
10750 PyObject * obj0 = 0 ;
10751 PyObject * obj1 = 0 ;
10752 char * kwnames[] = {
10753 (char *) "self",(char *) "alignment", NULL
10754 };
10755
10756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail;
10757 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10758 if (!SWIG_IsOK(res1)) {
10759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10760 }
10761 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10762 ecode2 = SWIG_AsVal_int(obj1, &val2);
10763 if (!SWIG_IsOK(ecode2)) {
10764 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
10765 }
10766 arg2 = static_cast< wxTextAttrAlignment >(val2);
10767 {
10768 PyThreadState* __tstate = wxPyBeginAllowThreads();
10769 (arg1)->SetAlignment(arg2);
10770 wxPyEndAllowThreads(__tstate);
10771 if (PyErr_Occurred()) SWIG_fail;
10772 }
10773 resultobj = SWIG_Py_Void();
10774 return resultobj;
10775fail:
10776 return NULL;
10777}
10778
10779
10780SWIGINTERN PyObject *_wrap_TextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10781 PyObject *resultobj = 0;
10782 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10783 wxArrayInt *arg2 = 0 ;
10784 void *argp1 = 0 ;
10785 int res1 = 0 ;
10786 bool temp2 = false ;
10787 PyObject * obj0 = 0 ;
10788 PyObject * obj1 = 0 ;
10789 char * kwnames[] = {
10790 (char *) "self",(char *) "tabs", NULL
10791 };
10792
10793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail;
10794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10795 if (!SWIG_IsOK(res1)) {
10796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTabs" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10797 }
10798 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10799 {
10800 if (! PySequence_Check(obj1)) {
10801 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10802 SWIG_fail;
10803 }
10804 arg2 = new wxArrayInt;
10805 temp2 = true;
10806 int i, len=PySequence_Length(obj1);
10807 for (i=0; i<len; i++) {
10808 PyObject* item = PySequence_GetItem(obj1, i);
10809 PyObject* number = PyNumber_Int(item);
10810 arg2->Add(PyInt_AS_LONG(number));
10811 Py_DECREF(item);
10812 Py_DECREF(number);
d14a1e28 10813 }
0085ce49
RD
10814 }
10815 {
10816 PyThreadState* __tstate = wxPyBeginAllowThreads();
10817 (arg1)->SetTabs((wxArrayInt const &)*arg2);
10818 wxPyEndAllowThreads(__tstate);
10819 if (PyErr_Occurred()) SWIG_fail;
10820 }
10821 resultobj = SWIG_Py_Void();
10822 {
10823 if (temp2) delete arg2;
10824 }
10825 return resultobj;
10826fail:
10827 {
10828 if (temp2) delete arg2;
10829 }
10830 return NULL;
10831}
10832
10833
10834SWIGINTERN PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10835 PyObject *resultobj = 0;
10836 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10837 int arg2 ;
10838 int arg3 = (int) 0 ;
10839 void *argp1 = 0 ;
10840 int res1 = 0 ;
10841 int val2 ;
10842 int ecode2 = 0 ;
10843 int val3 ;
10844 int ecode3 = 0 ;
10845 PyObject * obj0 = 0 ;
10846 PyObject * obj1 = 0 ;
10847 PyObject * obj2 = 0 ;
10848 char * kwnames[] = {
10849 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
10850 };
10851
10852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10853 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10854 if (!SWIG_IsOK(res1)) {
10855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10856 }
10857 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10858 ecode2 = SWIG_AsVal_int(obj1, &val2);
10859 if (!SWIG_IsOK(ecode2)) {
10860 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'");
10861 }
10862 arg2 = static_cast< int >(val2);
10863 if (obj2) {
10864 ecode3 = SWIG_AsVal_int(obj2, &val3);
10865 if (!SWIG_IsOK(ecode3)) {
10866 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'");
10867 }
10868 arg3 = static_cast< int >(val3);
10869 }
10870 {
10871 PyThreadState* __tstate = wxPyBeginAllowThreads();
10872 (arg1)->SetLeftIndent(arg2,arg3);
10873 wxPyEndAllowThreads(__tstate);
10874 if (PyErr_Occurred()) SWIG_fail;
10875 }
10876 resultobj = SWIG_Py_Void();
10877 return resultobj;
10878fail:
10879 return NULL;
10880}
10881
10882
10883SWIGINTERN PyObject *_wrap_TextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10884 PyObject *resultobj = 0;
10885 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10886 int arg2 ;
10887 void *argp1 = 0 ;
10888 int res1 = 0 ;
10889 int val2 ;
10890 int ecode2 = 0 ;
10891 PyObject * obj0 = 0 ;
10892 PyObject * obj1 = 0 ;
10893 char * kwnames[] = {
10894 (char *) "self",(char *) "indent", NULL
10895 };
10896
10897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail;
10898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10899 if (!SWIG_IsOK(res1)) {
10900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10901 }
10902 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10903 ecode2 = SWIG_AsVal_int(obj1, &val2);
10904 if (!SWIG_IsOK(ecode2)) {
10905 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'");
10906 }
10907 arg2 = static_cast< int >(val2);
10908 {
10909 PyThreadState* __tstate = wxPyBeginAllowThreads();
10910 (arg1)->SetRightIndent(arg2);
10911 wxPyEndAllowThreads(__tstate);
10912 if (PyErr_Occurred()) SWIG_fail;
10913 }
10914 resultobj = SWIG_Py_Void();
10915 return resultobj;
10916fail:
10917 return NULL;
10918}
10919
10920
10921SWIGINTERN PyObject *_wrap_TextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10922 PyObject *resultobj = 0;
10923 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10924 long arg2 ;
10925 void *argp1 = 0 ;
10926 int res1 = 0 ;
10927 long val2 ;
10928 int ecode2 = 0 ;
10929 PyObject * obj0 = 0 ;
10930 PyObject * obj1 = 0 ;
10931 char * kwnames[] = {
10932 (char *) "self",(char *) "flags", NULL
10933 };
10934
10935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
10936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10937 if (!SWIG_IsOK(res1)) {
10938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFlags" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10939 }
10940 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10941 ecode2 = SWIG_AsVal_long(obj1, &val2);
10942 if (!SWIG_IsOK(ecode2)) {
10943 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'");
10944 }
10945 arg2 = static_cast< long >(val2);
10946 {
10947 PyThreadState* __tstate = wxPyBeginAllowThreads();
10948 (arg1)->SetFlags(arg2);
10949 wxPyEndAllowThreads(__tstate);
10950 if (PyErr_Occurred()) SWIG_fail;
10951 }
10952 resultobj = SWIG_Py_Void();
10953 return resultobj;
10954fail:
10955 return NULL;
d14a1e28
RD
10956}
10957
10958
0085ce49
RD
10959SWIGINTERN PyObject *_wrap_TextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10960 PyObject *resultobj = 0;
10961 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10962 bool result;
10963 void *argp1 = 0 ;
10964 int res1 = 0 ;
10965 PyObject *swig_obj[1] ;
10966
10967 if (!args) SWIG_fail;
10968 swig_obj[0] = args;
10969 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10970 if (!SWIG_IsOK(res1)) {
10971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10972 }
10973 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10974 {
10975 PyThreadState* __tstate = wxPyBeginAllowThreads();
10976 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
10977 wxPyEndAllowThreads(__tstate);
10978 if (PyErr_Occurred()) SWIG_fail;
10979 }
10980 {
10981 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10982 }
10983 return resultobj;
10984fail:
10985 return NULL;
d14a1e28
RD
10986}
10987
10988
0085ce49
RD
10989SWIGINTERN PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10990 PyObject *resultobj = 0;
10991 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10992 bool result;
10993 void *argp1 = 0 ;
10994 int res1 = 0 ;
10995 PyObject *swig_obj[1] ;
10996
10997 if (!args) SWIG_fail;
10998 swig_obj[0] = args;
10999 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11000 if (!SWIG_IsOK(res1)) {
11001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11002 }
11003 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11004 {
11005 PyThreadState* __tstate = wxPyBeginAllowThreads();
11006 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
11007 wxPyEndAllowThreads(__tstate);
11008 if (PyErr_Occurred()) SWIG_fail;
11009 }
11010 {
11011 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11012 }
11013 return resultobj;
11014fail:
11015 return NULL;
d14a1e28
RD
11016}
11017
11018
0085ce49
RD
11019SWIGINTERN PyObject *_wrap_TextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11020 PyObject *resultobj = 0;
11021 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11022 bool result;
11023 void *argp1 = 0 ;
11024 int res1 = 0 ;
11025 PyObject *swig_obj[1] ;
11026
11027 if (!args) SWIG_fail;
11028 swig_obj[0] = args;
11029 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11030 if (!SWIG_IsOK(res1)) {
11031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11032 }
11033 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11034 {
11035 PyThreadState* __tstate = wxPyBeginAllowThreads();
11036 result = (bool)((wxTextAttr const *)arg1)->HasFont();
11037 wxPyEndAllowThreads(__tstate);
11038 if (PyErr_Occurred()) SWIG_fail;
11039 }
11040 {
11041 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11042 }
11043 return resultobj;
11044fail:
11045 return NULL;
d14a1e28
RD
11046}
11047
11048
0085ce49
RD
11049SWIGINTERN PyObject *_wrap_TextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11050 PyObject *resultobj = 0;
11051 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11052 bool result;
11053 void *argp1 = 0 ;
11054 int res1 = 0 ;
11055 PyObject *swig_obj[1] ;
11056
11057 if (!args) SWIG_fail;
11058 swig_obj[0] = args;
11059 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11060 if (!SWIG_IsOK(res1)) {
11061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11062 }
11063 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11064 {
11065 PyThreadState* __tstate = wxPyBeginAllowThreads();
11066 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
11067 wxPyEndAllowThreads(__tstate);
11068 if (PyErr_Occurred()) SWIG_fail;
11069 }
11070 {
11071 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11072 }
11073 return resultobj;
11074fail:
11075 return NULL;
22bfe96c
RD
11076}
11077
11078
0085ce49
RD
11079SWIGINTERN PyObject *_wrap_TextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11080 PyObject *resultobj = 0;
11081 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11082 bool result;
11083 void *argp1 = 0 ;
11084 int res1 = 0 ;
11085 PyObject *swig_obj[1] ;
11086
11087 if (!args) SWIG_fail;
11088 swig_obj[0] = args;
11089 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11090 if (!SWIG_IsOK(res1)) {
11091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11092 }
11093 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11094 {
11095 PyThreadState* __tstate = wxPyBeginAllowThreads();
11096 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
11097 wxPyEndAllowThreads(__tstate);
11098 if (PyErr_Occurred()) SWIG_fail;
11099 }
11100 {
11101 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11102 }
11103 return resultobj;
11104fail:
11105 return NULL;
b2dc1044
RD
11106}
11107
11108
0085ce49
RD
11109SWIGINTERN PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11110 PyObject *resultobj = 0;
11111 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11112 bool result;
11113 void *argp1 = 0 ;
11114 int res1 = 0 ;
11115 PyObject *swig_obj[1] ;
11116
11117 if (!args) SWIG_fail;
11118 swig_obj[0] = args;
11119 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11120 if (!SWIG_IsOK(res1)) {
11121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11122 }
11123 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11124 {
11125 PyThreadState* __tstate = wxPyBeginAllowThreads();
11126 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
11127 wxPyEndAllowThreads(__tstate);
11128 if (PyErr_Occurred()) SWIG_fail;
11129 }
11130 {
11131 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11132 }
11133 return resultobj;
11134fail:
11135 return NULL;
d14a1e28
RD
11136}
11137
11138
0085ce49
RD
11139SWIGINTERN PyObject *_wrap_TextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11140 PyObject *resultobj = 0;
11141 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11142 bool result;
11143 void *argp1 = 0 ;
11144 int res1 = 0 ;
11145 PyObject *swig_obj[1] ;
11146
11147 if (!args) SWIG_fail;
11148 swig_obj[0] = args;
11149 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11150 if (!SWIG_IsOK(res1)) {
11151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11152 }
11153 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11154 {
11155 PyThreadState* __tstate = wxPyBeginAllowThreads();
11156 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
11157 wxPyEndAllowThreads(__tstate);
11158 if (PyErr_Occurred()) SWIG_fail;
11159 }
11160 {
11161 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11162 }
11163 return resultobj;
11164fail:
11165 return NULL;
11166}
11167
11168
11169SWIGINTERN PyObject *_wrap_TextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11170 PyObject *resultobj = 0;
11171 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11172 long arg2 ;
11173 bool result;
11174 void *argp1 = 0 ;
11175 int res1 = 0 ;
11176 long val2 ;
11177 int ecode2 = 0 ;
11178 PyObject * obj0 = 0 ;
11179 PyObject * obj1 = 0 ;
11180 char * kwnames[] = {
11181 (char *) "self",(char *) "flag", NULL
11182 };
11183
11184 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail;
11185 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11186 if (!SWIG_IsOK(res1)) {
11187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFlag" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11188 }
11189 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11190 ecode2 = SWIG_AsVal_long(obj1, &val2);
11191 if (!SWIG_IsOK(ecode2)) {
11192 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'");
11193 }
11194 arg2 = static_cast< long >(val2);
11195 {
11196 PyThreadState* __tstate = wxPyBeginAllowThreads();
11197 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
11198 wxPyEndAllowThreads(__tstate);
11199 if (PyErr_Occurred()) SWIG_fail;
11200 }
11201 {
11202 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11203 }
11204 return resultobj;
11205fail:
11206 return NULL;
d14a1e28
RD
11207}
11208
11209
0085ce49
RD
11210SWIGINTERN PyObject *_wrap_TextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11211 PyObject *resultobj = 0;
11212 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11213 wxColour *result = 0 ;
11214 void *argp1 = 0 ;
11215 int res1 = 0 ;
11216 PyObject *swig_obj[1] ;
11217
11218 if (!args) SWIG_fail;
11219 swig_obj[0] = args;
11220 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11221 if (!SWIG_IsOK(res1)) {
11222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11223 }
11224 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11225 {
11226 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 11227 {
0085ce49
RD
11228 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
11229 result = (wxColour *) &_result_ref;
d14a1e28 11230 }
0085ce49
RD
11231 wxPyEndAllowThreads(__tstate);
11232 if (PyErr_Occurred()) SWIG_fail;
11233 }
11234 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11235 return resultobj;
11236fail:
11237 return NULL;
d14a1e28
RD
11238}
11239
11240
0085ce49
RD
11241SWIGINTERN PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11242 PyObject *resultobj = 0;
11243 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11244 wxColour *result = 0 ;
11245 void *argp1 = 0 ;
11246 int res1 = 0 ;
11247 PyObject *swig_obj[1] ;
11248
11249 if (!args) SWIG_fail;
11250 swig_obj[0] = args;
11251 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11252 if (!SWIG_IsOK(res1)) {
11253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11254 }
11255 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11256 {
11257 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 11258 {
0085ce49
RD
11259 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
11260 result = (wxColour *) &_result_ref;
d14a1e28 11261 }
0085ce49
RD
11262 wxPyEndAllowThreads(__tstate);
11263 if (PyErr_Occurred()) SWIG_fail;
11264 }
11265 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11266 return resultobj;
11267fail:
11268 return NULL;
d14a1e28
RD
11269}
11270
11271
0085ce49
RD
11272SWIGINTERN PyObject *_wrap_TextAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11273 PyObject *resultobj = 0;
11274 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11275 wxFont *result = 0 ;
11276 void *argp1 = 0 ;
11277 int res1 = 0 ;
11278 PyObject *swig_obj[1] ;
11279
11280 if (!args) SWIG_fail;
11281 swig_obj[0] = args;
11282 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11283 if (!SWIG_IsOK(res1)) {
11284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11285 }
11286 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11287 {
11288 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 11289 {
0085ce49
RD
11290 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
11291 result = (wxFont *) &_result_ref;
d14a1e28 11292 }
0085ce49
RD
11293 wxPyEndAllowThreads(__tstate);
11294 if (PyErr_Occurred()) SWIG_fail;
11295 }
11296 {
11297 wxFont* resultptr = new wxFont(*result);
11298 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
11299 }
11300 return resultobj;
11301fail:
11302 return NULL;
d14a1e28
RD
11303}
11304
11305
0085ce49
RD
11306SWIGINTERN PyObject *_wrap_TextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11307 PyObject *resultobj = 0;
11308 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11309 wxTextAttrAlignment result;
11310 void *argp1 = 0 ;
11311 int res1 = 0 ;
11312 PyObject *swig_obj[1] ;
11313
11314 if (!args) SWIG_fail;
11315 swig_obj[0] = args;
11316 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11317 if (!SWIG_IsOK(res1)) {
11318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11319 }
11320 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11321 {
11322 PyThreadState* __tstate = wxPyBeginAllowThreads();
11323 result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment();
11324 wxPyEndAllowThreads(__tstate);
11325 if (PyErr_Occurred()) SWIG_fail;
11326 }
11327 resultobj = SWIG_From_int(static_cast< int >(result));
11328 return resultobj;
11329fail:
11330 return NULL;
d14a1e28
RD
11331}
11332
11333
0085ce49
RD
11334SWIGINTERN PyObject *_wrap_TextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11335 PyObject *resultobj = 0;
11336 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11337 wxArrayInt *result = 0 ;
11338 void *argp1 = 0 ;
11339 int res1 = 0 ;
11340 PyObject *swig_obj[1] ;
11341
11342 if (!args) SWIG_fail;
11343 swig_obj[0] = args;
11344 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11345 if (!SWIG_IsOK(res1)) {
11346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11347 }
11348 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11349 {
11350 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 11351 {
0085ce49
RD
11352 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
11353 result = (wxArrayInt *) &_result_ref;
d14a1e28 11354 }
0085ce49
RD
11355 wxPyEndAllowThreads(__tstate);
11356 if (PyErr_Occurred()) SWIG_fail;
11357 }
11358 {
11359 resultobj = PyList_New(0);
11360 size_t idx;
11361 for (idx = 0; idx < result->GetCount(); idx += 1) {
11362 PyObject* val = PyInt_FromLong( result->Item(idx) );
11363 PyList_Append(resultobj, val);
11364 Py_DECREF(val);
4f89f6a3 11365 }
0085ce49
RD
11366 }
11367 return resultobj;
11368fail:
11369 return NULL;
d14a1e28
RD
11370}
11371
11372
0085ce49
RD
11373SWIGINTERN PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11374 PyObject *resultobj = 0;
11375 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11376 long result;
11377 void *argp1 = 0 ;
11378 int res1 = 0 ;
11379 PyObject *swig_obj[1] ;
11380
11381 if (!args) SWIG_fail;
11382 swig_obj[0] = args;
11383 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11384 if (!SWIG_IsOK(res1)) {
11385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11386 }
11387 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11388 {
11389 PyThreadState* __tstate = wxPyBeginAllowThreads();
11390 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
11391 wxPyEndAllowThreads(__tstate);
11392 if (PyErr_Occurred()) SWIG_fail;
11393 }
11394 resultobj = SWIG_From_long(static_cast< long >(result));
11395 return resultobj;
11396fail:
11397 return NULL;
d14a1e28
RD
11398}
11399
11400
0085ce49
RD
11401SWIGINTERN PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11402 PyObject *resultobj = 0;
11403 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11404 long result;
11405 void *argp1 = 0 ;
11406 int res1 = 0 ;
11407 PyObject *swig_obj[1] ;
11408
11409 if (!args) SWIG_fail;
11410 swig_obj[0] = args;
11411 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11412 if (!SWIG_IsOK(res1)) {
11413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11414 }
11415 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11416 {
11417 PyThreadState* __tstate = wxPyBeginAllowThreads();
11418 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
11419 wxPyEndAllowThreads(__tstate);
11420 if (PyErr_Occurred()) SWIG_fail;
11421 }
11422 resultobj = SWIG_From_long(static_cast< long >(result));
11423 return resultobj;
11424fail:
11425 return NULL;
d14a1e28
RD
11426}
11427
11428
0085ce49
RD
11429SWIGINTERN PyObject *_wrap_TextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11430 PyObject *resultobj = 0;
11431 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11432 long result;
11433 void *argp1 = 0 ;
11434 int res1 = 0 ;
11435 PyObject *swig_obj[1] ;
11436
11437 if (!args) SWIG_fail;
11438 swig_obj[0] = args;
11439 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11440 if (!SWIG_IsOK(res1)) {
11441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11442 }
11443 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11444 {
11445 PyThreadState* __tstate = wxPyBeginAllowThreads();
11446 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
11447 wxPyEndAllowThreads(__tstate);
11448 if (PyErr_Occurred()) SWIG_fail;
11449 }
11450 resultobj = SWIG_From_long(static_cast< long >(result));
11451 return resultobj;
11452fail:
11453 return NULL;
d14a1e28
RD
11454}
11455
11456
0085ce49
RD
11457SWIGINTERN PyObject *_wrap_TextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11458 PyObject *resultobj = 0;
11459 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11460 long result;
11461 void *argp1 = 0 ;
11462 int res1 = 0 ;
11463 PyObject *swig_obj[1] ;
11464
11465 if (!args) SWIG_fail;
11466 swig_obj[0] = args;
11467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11468 if (!SWIG_IsOK(res1)) {
11469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFlags" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11470 }
11471 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11472 {
11473 PyThreadState* __tstate = wxPyBeginAllowThreads();
11474 result = (long)((wxTextAttr const *)arg1)->GetFlags();
11475 wxPyEndAllowThreads(__tstate);
11476 if (PyErr_Occurred()) SWIG_fail;
11477 }
11478 resultobj = SWIG_From_long(static_cast< long >(result));
11479 return resultobj;
11480fail:
11481 return NULL;
d14a1e28
RD
11482}
11483
11484
0085ce49
RD
11485SWIGINTERN PyObject *_wrap_TextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11486 PyObject *resultobj = 0;
11487 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11488 bool result;
11489 void *argp1 = 0 ;
11490 int res1 = 0 ;
11491 PyObject *swig_obj[1] ;
11492
11493 if (!args) SWIG_fail;
11494 swig_obj[0] = args;
11495 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11496 if (!SWIG_IsOK(res1)) {
11497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_IsDefault" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11498 }
11499 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11500 {
11501 PyThreadState* __tstate = wxPyBeginAllowThreads();
11502 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
11503 wxPyEndAllowThreads(__tstate);
11504 if (PyErr_Occurred()) SWIG_fail;
11505 }
11506 {
11507 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11508 }
11509 return resultobj;
11510fail:
11511 return NULL;
11512}
11513
11514
11515SWIGINTERN PyObject *_wrap_TextAttr_Combine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11516 PyObject *resultobj = 0;
11517 wxTextAttr *arg1 = 0 ;
11518 wxTextAttr *arg2 = 0 ;
11519 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
11520 wxTextAttr result;
11521 void *argp1 = 0 ;
11522 int res1 = 0 ;
11523 void *argp2 = 0 ;
11524 int res2 = 0 ;
11525 void *argp3 = 0 ;
11526 int res3 = 0 ;
11527 PyObject * obj0 = 0 ;
11528 PyObject * obj1 = 0 ;
11529 PyObject * obj2 = 0 ;
11530 char * kwnames[] = {
11531 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
11532 };
11533
11534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11535 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
11536 if (!SWIG_IsOK(res1)) {
11537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11538 }
11539 if (!argp1) {
11540 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11541 }
11542 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11543 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
11544 if (!SWIG_IsOK(res2)) {
11545 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11546 }
11547 if (!argp2) {
11548 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11549 }
11550 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
11551 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11552 if (!SWIG_IsOK(res3)) {
11553 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextAttr_Combine" "', expected argument " "3"" of type '" "wxTextCtrl const *""'");
11554 }
11555 arg3 = reinterpret_cast< wxTextCtrl * >(argp3);
11556 {
11557 PyThreadState* __tstate = wxPyBeginAllowThreads();
11558 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
11559 wxPyEndAllowThreads(__tstate);
11560 if (PyErr_Occurred()) SWIG_fail;
11561 }
11562 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
11563 return resultobj;
11564fail:
11565 return NULL;
11566}
11567
11568
11569SWIGINTERN PyObject *TextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11570 PyObject *obj;
11571 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11572 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextAttr, SWIG_NewClientData(obj));
11573 return SWIG_Py_Void();
11574}
11575
11576SWIGINTERN PyObject *TextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11577 return SWIG_Python_InitShadowInstance(args);
11578}
11579
11580SWIGINTERN PyObject *_wrap_new_TextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11581 PyObject *resultobj = 0;
11582 wxWindow *arg1 = (wxWindow *) 0 ;
11583 int arg2 = (int) -1 ;
11584 wxString const &arg3_defvalue = wxPyEmptyString ;
11585 wxString *arg3 = (wxString *) &arg3_defvalue ;
11586 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11587 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11588 wxSize const &arg5_defvalue = wxDefaultSize ;
11589 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11590 long arg6 = (long) 0 ;
11591 wxValidator const &arg7_defvalue = wxDefaultValidator ;
11592 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
11593 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
11594 wxString *arg8 = (wxString *) &arg8_defvalue ;
11595 wxTextCtrl *result = 0 ;
11596 void *argp1 = 0 ;
11597 int res1 = 0 ;
11598 int val2 ;
11599 int ecode2 = 0 ;
11600 bool temp3 = false ;
11601 wxPoint temp4 ;
11602 wxSize temp5 ;
11603 long val6 ;
11604 int ecode6 = 0 ;
11605 void *argp7 = 0 ;
11606 int res7 = 0 ;
11607 bool temp8 = false ;
11608 PyObject * obj0 = 0 ;
11609 PyObject * obj1 = 0 ;
11610 PyObject * obj2 = 0 ;
11611 PyObject * obj3 = 0 ;
11612 PyObject * obj4 = 0 ;
11613 PyObject * obj5 = 0 ;
11614 PyObject * obj6 = 0 ;
11615 PyObject * obj7 = 0 ;
11616 char * kwnames[] = {
11617 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11618 };
11619
11620 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
11621 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
11622 if (!SWIG_IsOK(res1)) {
11623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
11624 }
11625 arg1 = reinterpret_cast< wxWindow * >(argp1);
11626 if (obj1) {
11627 ecode2 = SWIG_AsVal_int(obj1, &val2);
11628 if (!SWIG_IsOK(ecode2)) {
11629 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TextCtrl" "', expected argument " "2"" of type '" "int""'");
11630 }
11631 arg2 = static_cast< int >(val2);
11632 }
11633 if (obj2) {
4f89f6a3 11634 {
0085ce49
RD
11635 arg3 = wxString_in_helper(obj2);
11636 if (arg3 == NULL) SWIG_fail;
11637 temp3 = true;
4f89f6a3 11638 }
0085ce49
RD
11639 }
11640 if (obj3) {
d14a1e28 11641 {
0085ce49
RD
11642 arg4 = &temp4;
11643 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 11644 }
0085ce49
RD
11645 }
11646 if (obj4) {
d14a1e28 11647 {
0085ce49
RD
11648 arg5 = &temp5;
11649 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 11650 }
0085ce49
RD
11651 }
11652 if (obj5) {
11653 ecode6 = SWIG_AsVal_long(obj5, &val6);
11654 if (!SWIG_IsOK(ecode6)) {
11655 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_TextCtrl" "', expected argument " "6"" of type '" "long""'");
11656 }
11657 arg6 = static_cast< long >(val6);
11658 }
11659 if (obj6) {
11660 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
11661 if (!SWIG_IsOK(res7)) {
11662 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 11663 }
0085ce49
RD
11664 if (!argp7) {
11665 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
093d3ff1 11666 }
0085ce49
RD
11667 arg7 = reinterpret_cast< wxValidator * >(argp7);
11668 }
11669 if (obj7) {
d14a1e28 11670 {
0085ce49
RD
11671 arg8 = wxString_in_helper(obj7);
11672 if (arg8 == NULL) SWIG_fail;
11673 temp8 = true;
d14a1e28 11674 }
0085ce49
RD
11675 }
11676 {
11677 if (!wxPyCheckForApp()) SWIG_fail;
11678 PyThreadState* __tstate = wxPyBeginAllowThreads();
11679 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
11680 wxPyEndAllowThreads(__tstate);
11681 if (PyErr_Occurred()) SWIG_fail;
11682 }
11683 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_NEW | 0 );
11684 {
11685 if (temp3)
11686 delete arg3;
11687 }
11688 {
11689 if (temp8)
11690 delete arg8;
11691 }
11692 return resultobj;
11693fail:
11694 {
11695 if (temp3)
11696 delete arg3;
11697 }
11698 {
11699 if (temp8)
11700 delete arg8;
11701 }
11702 return NULL;
d14a1e28
RD
11703}
11704
11705
0085ce49
RD
11706SWIGINTERN PyObject *_wrap_new_PreTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11707 PyObject *resultobj = 0;
11708 wxTextCtrl *result = 0 ;
11709
11710 if (!SWIG_Python_UnpackTuple(args,"new_PreTextCtrl",0,0,0)) SWIG_fail;
11711 {
11712 if (!wxPyCheckForApp()) SWIG_fail;
11713 PyThreadState* __tstate = wxPyBeginAllowThreads();
11714 result = (wxTextCtrl *)new wxTextCtrl();
11715 wxPyEndAllowThreads(__tstate);
11716 if (PyErr_Occurred()) SWIG_fail;
11717 }
11718 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_OWN | 0 );
11719 return resultobj;
11720fail:
11721 return NULL;
11722}
11723
11724
11725SWIGINTERN PyObject *_wrap_TextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11726 PyObject *resultobj = 0;
11727 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11728 wxWindow *arg2 = (wxWindow *) 0 ;
11729 int arg3 = (int) -1 ;
11730 wxString const &arg4_defvalue = wxPyEmptyString ;
11731 wxString *arg4 = (wxString *) &arg4_defvalue ;
11732 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11733 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11734 wxSize const &arg6_defvalue = wxDefaultSize ;
11735 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11736 long arg7 = (long) 0 ;
11737 wxValidator const &arg8_defvalue = wxDefaultValidator ;
11738 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
11739 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
11740 wxString *arg9 = (wxString *) &arg9_defvalue ;
11741 bool result;
11742 void *argp1 = 0 ;
11743 int res1 = 0 ;
11744 void *argp2 = 0 ;
11745 int res2 = 0 ;
11746 int val3 ;
11747 int ecode3 = 0 ;
11748 bool temp4 = false ;
11749 wxPoint temp5 ;
11750 wxSize temp6 ;
11751 long val7 ;
11752 int ecode7 = 0 ;
11753 void *argp8 = 0 ;
11754 int res8 = 0 ;
11755 bool temp9 = false ;
11756 PyObject * obj0 = 0 ;
11757 PyObject * obj1 = 0 ;
11758 PyObject * obj2 = 0 ;
11759 PyObject * obj3 = 0 ;
11760 PyObject * obj4 = 0 ;
11761 PyObject * obj5 = 0 ;
11762 PyObject * obj6 = 0 ;
11763 PyObject * obj7 = 0 ;
11764 PyObject * obj8 = 0 ;
11765 char * kwnames[] = {
11766 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11767 };
11768
11769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
11770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11771 if (!SWIG_IsOK(res1)) {
11772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Create" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11773 }
11774 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11775 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11776 if (!SWIG_IsOK(res2)) {
11777 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
11778 }
11779 arg2 = reinterpret_cast< wxWindow * >(argp2);
11780 if (obj2) {
11781 ecode3 = SWIG_AsVal_int(obj2, &val3);
11782 if (!SWIG_IsOK(ecode3)) {
11783 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Create" "', expected argument " "3"" of type '" "int""'");
11784 }
11785 arg3 = static_cast< int >(val3);
11786 }
11787 if (obj3) {
d14a1e28 11788 {
0085ce49
RD
11789 arg4 = wxString_in_helper(obj3);
11790 if (arg4 == NULL) SWIG_fail;
11791 temp4 = true;
d14a1e28 11792 }
0085ce49
RD
11793 }
11794 if (obj4) {
d14a1e28 11795 {
0085ce49
RD
11796 arg5 = &temp5;
11797 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 11798 }
0085ce49
RD
11799 }
11800 if (obj5) {
d14a1e28 11801 {
0085ce49
RD
11802 arg6 = &temp6;
11803 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d14a1e28 11804 }
0085ce49
RD
11805 }
11806 if (obj6) {
11807 ecode7 = SWIG_AsVal_long(obj6, &val7);
11808 if (!SWIG_IsOK(ecode7)) {
11809 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "TextCtrl_Create" "', expected argument " "7"" of type '" "long""'");
11810 }
11811 arg7 = static_cast< long >(val7);
11812 }
11813 if (obj7) {
11814 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
11815 if (!SWIG_IsOK(res8)) {
11816 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 11817 }
0085ce49
RD
11818 if (!argp8) {
11819 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
093d3ff1 11820 }
0085ce49
RD
11821 arg8 = reinterpret_cast< wxValidator * >(argp8);
11822 }
11823 if (obj8) {
d14a1e28 11824 {
0085ce49
RD
11825 arg9 = wxString_in_helper(obj8);
11826 if (arg9 == NULL) SWIG_fail;
11827 temp9 = true;
d14a1e28 11828 }
0085ce49
RD
11829 }
11830 {
11831 PyThreadState* __tstate = wxPyBeginAllowThreads();
11832 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
11833 wxPyEndAllowThreads(__tstate);
11834 if (PyErr_Occurred()) SWIG_fail;
11835 }
11836 {
11837 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11838 }
11839 {
11840 if (temp4)
11841 delete arg4;
11842 }
11843 {
11844 if (temp9)
11845 delete arg9;
11846 }
11847 return resultobj;
11848fail:
11849 {
11850 if (temp4)
11851 delete arg4;
11852 }
11853 {
11854 if (temp9)
11855 delete arg9;
11856 }
11857 return NULL;
d14a1e28
RD
11858}
11859
11860
0085ce49
RD
11861SWIGINTERN PyObject *_wrap_TextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11862 PyObject *resultobj = 0;
11863 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11864 wxString result;
11865 void *argp1 = 0 ;
11866 int res1 = 0 ;
11867 PyObject *swig_obj[1] ;
11868
11869 if (!args) SWIG_fail;
11870 swig_obj[0] = args;
11871 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11872 if (!SWIG_IsOK(res1)) {
11873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetValue" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11874 }
11875 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11876 {
11877 PyThreadState* __tstate = wxPyBeginAllowThreads();
11878 result = ((wxTextCtrl const *)arg1)->GetValue();
11879 wxPyEndAllowThreads(__tstate);
11880 if (PyErr_Occurred()) SWIG_fail;
11881 }
11882 {
11883#if wxUSE_UNICODE
11884 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11885#else
11886 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11887#endif
11888 }
11889 return resultobj;
11890fail:
11891 return NULL;
11892}
11893
11894
11895SWIGINTERN PyObject *_wrap_TextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11896 PyObject *resultobj = 0;
11897 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11898 wxString *arg2 = 0 ;
11899 void *argp1 = 0 ;
11900 int res1 = 0 ;
11901 bool temp2 = false ;
11902 PyObject * obj0 = 0 ;
11903 PyObject * obj1 = 0 ;
11904 char * kwnames[] = {
11905 (char *) "self",(char *) "value", NULL
11906 };
11907
11908 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
11909 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11910 if (!SWIG_IsOK(res1)) {
11911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11912 }
11913 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11914 {
11915 arg2 = wxString_in_helper(obj1);
11916 if (arg2 == NULL) SWIG_fail;
11917 temp2 = true;
11918 }
11919 {
11920 PyThreadState* __tstate = wxPyBeginAllowThreads();
11921 (arg1)->SetValue((wxString const &)*arg2);
11922 wxPyEndAllowThreads(__tstate);
11923 if (PyErr_Occurred()) SWIG_fail;
11924 }
11925 resultobj = SWIG_Py_Void();
11926 {
11927 if (temp2)
11928 delete arg2;
11929 }
11930 return resultobj;
11931fail:
11932 {
11933 if (temp2)
11934 delete arg2;
11935 }
11936 return NULL;
11937}
11938
11939
11940SWIGINTERN PyObject *_wrap_TextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11941 PyObject *resultobj = 0;
11942 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11943 long arg2 ;
11944 long arg3 ;
11945 wxString result;
11946 void *argp1 = 0 ;
11947 int res1 = 0 ;
11948 long val2 ;
11949 int ecode2 = 0 ;
11950 long val3 ;
11951 int ecode3 = 0 ;
11952 PyObject * obj0 = 0 ;
11953 PyObject * obj1 = 0 ;
11954 PyObject * obj2 = 0 ;
11955 char * kwnames[] = {
2131d850 11956 (char *) "self",(char *) "from",(char *) "to", NULL
0085ce49
RD
11957 };
11958
11959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11961 if (!SWIG_IsOK(res1)) {
11962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetRange" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11963 }
11964 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11965 ecode2 = SWIG_AsVal_long(obj1, &val2);
11966 if (!SWIG_IsOK(ecode2)) {
11967 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'");
11968 }
11969 arg2 = static_cast< long >(val2);
11970 ecode3 = SWIG_AsVal_long(obj2, &val3);
11971 if (!SWIG_IsOK(ecode3)) {
11972 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'");
11973 }
11974 arg3 = static_cast< long >(val3);
11975 {
11976 PyThreadState* __tstate = wxPyBeginAllowThreads();
11977 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
11978 wxPyEndAllowThreads(__tstate);
11979 if (PyErr_Occurred()) SWIG_fail;
11980 }
11981 {
11982#if wxUSE_UNICODE
11983 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11984#else
11985 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11986#endif
11987 }
11988 return resultobj;
11989fail:
11990 return NULL;
11991}
11992
11993
11994SWIGINTERN PyObject *_wrap_TextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11995 PyObject *resultobj = 0;
11996 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11997 long arg2 ;
11998 int result;
11999 void *argp1 = 0 ;
12000 int res1 = 0 ;
12001 long val2 ;
12002 int ecode2 = 0 ;
12003 PyObject * obj0 = 0 ;
12004 PyObject * obj1 = 0 ;
12005 char * kwnames[] = {
12006 (char *) "self",(char *) "lineNo", NULL
12007 };
12008
12009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail;
12010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12011 if (!SWIG_IsOK(res1)) {
12012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12013 }
12014 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12015 ecode2 = SWIG_AsVal_long(obj1, &val2);
12016 if (!SWIG_IsOK(ecode2)) {
12017 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'");
12018 }
12019 arg2 = static_cast< long >(val2);
12020 {
12021 PyThreadState* __tstate = wxPyBeginAllowThreads();
12022 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
12023 wxPyEndAllowThreads(__tstate);
12024 if (PyErr_Occurred()) SWIG_fail;
12025 }
12026 resultobj = SWIG_From_int(static_cast< int >(result));
12027 return resultobj;
12028fail:
12029 return NULL;
12030}
12031
12032
12033SWIGINTERN PyObject *_wrap_TextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12034 PyObject *resultobj = 0;
12035 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12036 long arg2 ;
12037 wxString result;
12038 void *argp1 = 0 ;
12039 int res1 = 0 ;
12040 long val2 ;
12041 int ecode2 = 0 ;
12042 PyObject * obj0 = 0 ;
12043 PyObject * obj1 = 0 ;
12044 char * kwnames[] = {
12045 (char *) "self",(char *) "lineNo", NULL
12046 };
12047
12048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail;
12049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12050 if (!SWIG_IsOK(res1)) {
12051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12052 }
12053 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12054 ecode2 = SWIG_AsVal_long(obj1, &val2);
12055 if (!SWIG_IsOK(ecode2)) {
12056 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'");
12057 }
12058 arg2 = static_cast< long >(val2);
12059 {
12060 PyThreadState* __tstate = wxPyBeginAllowThreads();
12061 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
12062 wxPyEndAllowThreads(__tstate);
12063 if (PyErr_Occurred()) SWIG_fail;
12064 }
12065 {
12066#if wxUSE_UNICODE
12067 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12068#else
12069 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12070#endif
12071 }
12072 return resultobj;
12073fail:
12074 return NULL;
d14a1e28
RD
12075}
12076
12077
0085ce49
RD
12078SWIGINTERN PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12079 PyObject *resultobj = 0;
12080 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12081 int result;
12082 void *argp1 = 0 ;
12083 int res1 = 0 ;
12084 PyObject *swig_obj[1] ;
12085
12086 if (!args) SWIG_fail;
12087 swig_obj[0] = args;
12088 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12089 if (!SWIG_IsOK(res1)) {
12090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12091 }
12092 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12093 {
12094 PyThreadState* __tstate = wxPyBeginAllowThreads();
12095 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
12096 wxPyEndAllowThreads(__tstate);
12097 if (PyErr_Occurred()) SWIG_fail;
12098 }
12099 resultobj = SWIG_From_int(static_cast< int >(result));
12100 return resultobj;
12101fail:
12102 return NULL;
d14a1e28
RD
12103}
12104
12105
0085ce49
RD
12106SWIGINTERN PyObject *_wrap_TextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12107 PyObject *resultobj = 0;
12108 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12109 bool result;
12110 void *argp1 = 0 ;
12111 int res1 = 0 ;
12112 PyObject *swig_obj[1] ;
12113
12114 if (!args) SWIG_fail;
12115 swig_obj[0] = args;
12116 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12117 if (!SWIG_IsOK(res1)) {
12118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsModified" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12119 }
12120 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12121 {
12122 PyThreadState* __tstate = wxPyBeginAllowThreads();
12123 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
12124 wxPyEndAllowThreads(__tstate);
12125 if (PyErr_Occurred()) SWIG_fail;
12126 }
12127 {
12128 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12129 }
12130 return resultobj;
12131fail:
12132 return NULL;
c3eb6258
RD
12133}
12134
12135
0085ce49
RD
12136SWIGINTERN PyObject *_wrap_TextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12137 PyObject *resultobj = 0;
12138 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12139 bool result;
12140 void *argp1 = 0 ;
12141 int res1 = 0 ;
12142 PyObject *swig_obj[1] ;
12143
12144 if (!args) SWIG_fail;
12145 swig_obj[0] = args;
12146 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12147 if (!SWIG_IsOK(res1)) {
12148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12149 }
12150 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12151 {
12152 PyThreadState* __tstate = wxPyBeginAllowThreads();
12153 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
12154 wxPyEndAllowThreads(__tstate);
12155 if (PyErr_Occurred()) SWIG_fail;
12156 }
12157 {
12158 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12159 }
12160 return resultobj;
12161fail:
12162 return NULL;
74a57fcd
RD
12163}
12164
12165
0085ce49
RD
12166SWIGINTERN PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12167 PyObject *resultobj = 0;
12168 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12169 bool result;
12170 void *argp1 = 0 ;
12171 int res1 = 0 ;
12172 PyObject *swig_obj[1] ;
12173
12174 if (!args) SWIG_fail;
12175 swig_obj[0] = args;
12176 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12177 if (!SWIG_IsOK(res1)) {
12178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12179 }
12180 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12181 {
12182 PyThreadState* __tstate = wxPyBeginAllowThreads();
12183 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
12184 wxPyEndAllowThreads(__tstate);
12185 if (PyErr_Occurred()) SWIG_fail;
12186 }
12187 {
12188 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12189 }
12190 return resultobj;
12191fail:
12192 return NULL;
d14a1e28
RD
12193}
12194
12195
0085ce49
RD
12196SWIGINTERN PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12197 PyObject *resultobj = 0;
12198 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12199 bool result;
12200 void *argp1 = 0 ;
12201 int res1 = 0 ;
12202 PyObject *swig_obj[1] ;
12203
12204 if (!args) SWIG_fail;
12205 swig_obj[0] = args;
12206 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12207 if (!SWIG_IsOK(res1)) {
12208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12209 }
12210 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12211 {
12212 PyThreadState* __tstate = wxPyBeginAllowThreads();
12213 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
12214 wxPyEndAllowThreads(__tstate);
12215 if (PyErr_Occurred()) SWIG_fail;
12216 }
12217 {
12218 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12219 }
12220 return resultobj;
12221fail:
12222 return NULL;
12223}
12224
12225
12226SWIGINTERN PyObject *_wrap_TextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12227 PyObject *resultobj = 0;
12228 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12229 long *arg2 = (long *) 0 ;
12230 long *arg3 = (long *) 0 ;
12231 void *argp1 = 0 ;
12232 int res1 = 0 ;
12233 long temp2 ;
12234 int res2 = SWIG_TMPOBJ ;
12235 long temp3 ;
12236 int res3 = SWIG_TMPOBJ ;
12237 PyObject *swig_obj[1] ;
12238
12239 arg2 = &temp2;
12240 arg3 = &temp3;
12241 if (!args) SWIG_fail;
12242 swig_obj[0] = args;
12243 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12244 if (!SWIG_IsOK(res1)) {
12245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12246 }
12247 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12248 {
12249 PyThreadState* __tstate = wxPyBeginAllowThreads();
12250 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
12251 wxPyEndAllowThreads(__tstate);
12252 if (PyErr_Occurred()) SWIG_fail;
12253 }
12254 resultobj = SWIG_Py_Void();
12255 if (SWIG_IsTmpObj(res2)) {
12256 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
12257 } else {
12258 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12259 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
12260 }
12261 if (SWIG_IsTmpObj(res3)) {
12262 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12263 } else {
12264 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12265 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
12266 }
12267 return resultobj;
12268fail:
12269 return NULL;
d14a1e28
RD
12270}
12271
12272
0085ce49
RD
12273SWIGINTERN PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12274 PyObject *resultobj = 0;
12275 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12276 wxString result;
12277 void *argp1 = 0 ;
12278 int res1 = 0 ;
12279 PyObject *swig_obj[1] ;
12280
12281 if (!args) SWIG_fail;
12282 swig_obj[0] = args;
12283 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12284 if (!SWIG_IsOK(res1)) {
12285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12286 }
12287 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12288 {
12289 PyThreadState* __tstate = wxPyBeginAllowThreads();
12290 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
12291 wxPyEndAllowThreads(__tstate);
12292 if (PyErr_Occurred()) SWIG_fail;
12293 }
12294 {
12295#if wxUSE_UNICODE
12296 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12297#else
12298 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12299#endif
12300 }
12301 return resultobj;
12302fail:
12303 return NULL;
d14a1e28
RD
12304}
12305
12306
0085ce49
RD
12307SWIGINTERN PyObject *_wrap_TextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12308 PyObject *resultobj = 0;
12309 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12310 void *argp1 = 0 ;
12311 int res1 = 0 ;
12312 PyObject *swig_obj[1] ;
12313
12314 if (!args) SWIG_fail;
12315 swig_obj[0] = args;
12316 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12317 if (!SWIG_IsOK(res1)) {
12318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Clear" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12319 }
12320 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12321 {
12322 PyThreadState* __tstate = wxPyBeginAllowThreads();
12323 (arg1)->Clear();
12324 wxPyEndAllowThreads(__tstate);
12325 if (PyErr_Occurred()) SWIG_fail;
12326 }
12327 resultobj = SWIG_Py_Void();
12328 return resultobj;
12329fail:
12330 return NULL;
12331}
12332
12333
12334SWIGINTERN PyObject *_wrap_TextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12335 PyObject *resultobj = 0;
12336 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12337 long arg2 ;
12338 long arg3 ;
12339 wxString *arg4 = 0 ;
12340 void *argp1 = 0 ;
12341 int res1 = 0 ;
12342 long val2 ;
12343 int ecode2 = 0 ;
12344 long val3 ;
12345 int ecode3 = 0 ;
12346 bool temp4 = false ;
12347 PyObject * obj0 = 0 ;
12348 PyObject * obj1 = 0 ;
12349 PyObject * obj2 = 0 ;
12350 PyObject * obj3 = 0 ;
12351 char * kwnames[] = {
2131d850 12352 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
0085ce49
RD
12353 };
12354
12355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12356 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12357 if (!SWIG_IsOK(res1)) {
12358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Replace" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12359 }
12360 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12361 ecode2 = SWIG_AsVal_long(obj1, &val2);
12362 if (!SWIG_IsOK(ecode2)) {
12363 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Replace" "', expected argument " "2"" of type '" "long""'");
12364 }
12365 arg2 = static_cast< long >(val2);
12366 ecode3 = SWIG_AsVal_long(obj2, &val3);
12367 if (!SWIG_IsOK(ecode3)) {
12368 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Replace" "', expected argument " "3"" of type '" "long""'");
12369 }
12370 arg3 = static_cast< long >(val3);
12371 {
12372 arg4 = wxString_in_helper(obj3);
12373 if (arg4 == NULL) SWIG_fail;
12374 temp4 = true;
12375 }
12376 {
12377 PyThreadState* __tstate = wxPyBeginAllowThreads();
12378 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
12379 wxPyEndAllowThreads(__tstate);
12380 if (PyErr_Occurred()) SWIG_fail;
12381 }
12382 resultobj = SWIG_Py_Void();
12383 {
12384 if (temp4)
12385 delete arg4;
12386 }
12387 return resultobj;
12388fail:
12389 {
12390 if (temp4)
12391 delete arg4;
12392 }
12393 return NULL;
12394}
12395
12396
12397SWIGINTERN PyObject *_wrap_TextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12398 PyObject *resultobj = 0;
12399 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12400 long arg2 ;
12401 long arg3 ;
12402 void *argp1 = 0 ;
12403 int res1 = 0 ;
12404 long val2 ;
12405 int ecode2 = 0 ;
12406 long val3 ;
12407 int ecode3 = 0 ;
12408 PyObject * obj0 = 0 ;
12409 PyObject * obj1 = 0 ;
12410 PyObject * obj2 = 0 ;
12411 char * kwnames[] = {
2131d850 12412 (char *) "self",(char *) "from",(char *) "to", NULL
0085ce49
RD
12413 };
12414
12415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12417 if (!SWIG_IsOK(res1)) {
12418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Remove" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12419 }
12420 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12421 ecode2 = SWIG_AsVal_long(obj1, &val2);
12422 if (!SWIG_IsOK(ecode2)) {
12423 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Remove" "', expected argument " "2"" of type '" "long""'");
12424 }
12425 arg2 = static_cast< long >(val2);
12426 ecode3 = SWIG_AsVal_long(obj2, &val3);
12427 if (!SWIG_IsOK(ecode3)) {
12428 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Remove" "', expected argument " "3"" of type '" "long""'");
12429 }
12430 arg3 = static_cast< long >(val3);
12431 {
12432 PyThreadState* __tstate = wxPyBeginAllowThreads();
12433 (arg1)->Remove(arg2,arg3);
12434 wxPyEndAllowThreads(__tstate);
12435 if (PyErr_Occurred()) SWIG_fail;
12436 }
12437 resultobj = SWIG_Py_Void();
12438 return resultobj;
12439fail:
12440 return NULL;
12441}
12442
12443
12444SWIGINTERN PyObject *_wrap_TextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12445 PyObject *resultobj = 0;
12446 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12447 wxString *arg2 = 0 ;
12448 bool result;
12449 void *argp1 = 0 ;
12450 int res1 = 0 ;
12451 bool temp2 = false ;
12452 PyObject * obj0 = 0 ;
12453 PyObject * obj1 = 0 ;
12454 char * kwnames[] = {
12455 (char *) "self",(char *) "file", NULL
12456 };
12457
12458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) SWIG_fail;
12459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12460 if (!SWIG_IsOK(res1)) {
12461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12462 }
12463 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12464 {
12465 arg2 = wxString_in_helper(obj1);
12466 if (arg2 == NULL) SWIG_fail;
12467 temp2 = true;
12468 }
12469 {
12470 PyThreadState* __tstate = wxPyBeginAllowThreads();
12471 result = (bool)(arg1)->LoadFile((wxString const &)*arg2);
12472 wxPyEndAllowThreads(__tstate);
12473 if (PyErr_Occurred()) SWIG_fail;
12474 }
12475 {
12476 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12477 }
12478 {
12479 if (temp2)
12480 delete arg2;
12481 }
12482 return resultobj;
12483fail:
12484 {
12485 if (temp2)
12486 delete arg2;
12487 }
12488 return NULL;
12489}
12490
12491
12492SWIGINTERN PyObject *_wrap_TextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12493 PyObject *resultobj = 0;
12494 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12495 wxString const &arg2_defvalue = wxPyEmptyString ;
12496 wxString *arg2 = (wxString *) &arg2_defvalue ;
12497 bool result;
12498 void *argp1 = 0 ;
12499 int res1 = 0 ;
12500 bool temp2 = false ;
12501 PyObject * obj0 = 0 ;
12502 PyObject * obj1 = 0 ;
12503 char * kwnames[] = {
12504 (char *) "self",(char *) "file", NULL
12505 };
12506
12507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) SWIG_fail;
12508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12509 if (!SWIG_IsOK(res1)) {
12510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12511 }
12512 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12513 if (obj1) {
4f89f6a3 12514 {
0085ce49
RD
12515 arg2 = wxString_in_helper(obj1);
12516 if (arg2 == NULL) SWIG_fail;
12517 temp2 = true;
4f89f6a3 12518 }
0085ce49
RD
12519 }
12520 {
12521 PyThreadState* __tstate = wxPyBeginAllowThreads();
12522 result = (bool)(arg1)->SaveFile((wxString const &)*arg2);
12523 wxPyEndAllowThreads(__tstate);
12524 if (PyErr_Occurred()) SWIG_fail;
12525 }
12526 {
12527 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12528 }
12529 {
12530 if (temp2)
12531 delete arg2;
12532 }
12533 return resultobj;
12534fail:
12535 {
12536 if (temp2)
12537 delete arg2;
12538 }
12539 return NULL;
d14a1e28
RD
12540}
12541
12542
0085ce49
RD
12543SWIGINTERN PyObject *_wrap_TextCtrl_MarkDirty(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_MarkDirty" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12555 }
12556 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12557 {
12558 PyThreadState* __tstate = wxPyBeginAllowThreads();
12559 (arg1)->MarkDirty();
12560 wxPyEndAllowThreads(__tstate);
12561 if (PyErr_Occurred()) SWIG_fail;
12562 }
12563 resultobj = SWIG_Py_Void();
12564 return resultobj;
12565fail:
12566 return NULL;
d14a1e28
RD
12567}
12568
12569
0085ce49
RD
12570SWIGINTERN PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12571 PyObject *resultobj = 0;
12572 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12573 void *argp1 = 0 ;
12574 int res1 = 0 ;
12575 PyObject *swig_obj[1] ;
12576
12577 if (!args) SWIG_fail;
12578 swig_obj[0] = args;
12579 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12580 if (!SWIG_IsOK(res1)) {
12581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12582 }
12583 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12584 {
12585 PyThreadState* __tstate = wxPyBeginAllowThreads();
12586 (arg1)->DiscardEdits();
12587 wxPyEndAllowThreads(__tstate);
12588 if (PyErr_Occurred()) SWIG_fail;
12589 }
12590 resultobj = SWIG_Py_Void();
12591 return resultobj;
12592fail:
12593 return NULL;
12594}
12595
12596
b02396e8
RD
12597SWIGINTERN PyObject *_wrap_TextCtrl_SetModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12598 PyObject *resultobj = 0;
12599 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12600 bool arg2 ;
12601 void *argp1 = 0 ;
12602 int res1 = 0 ;
12603 bool val2 ;
12604 int ecode2 = 0 ;
12605 PyObject * obj0 = 0 ;
12606 PyObject * obj1 = 0 ;
12607 char * kwnames[] = {
12608 (char *) "self",(char *) "modified", NULL
12609 };
12610
12611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetModified",kwnames,&obj0,&obj1)) SWIG_fail;
12612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12613 if (!SWIG_IsOK(res1)) {
12614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetModified" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12615 }
12616 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12617 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12618 if (!SWIG_IsOK(ecode2)) {
12619 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetModified" "', expected argument " "2"" of type '" "bool""'");
12620 }
12621 arg2 = static_cast< bool >(val2);
12622 {
12623 PyThreadState* __tstate = wxPyBeginAllowThreads();
12624 (arg1)->SetModified(arg2);
12625 wxPyEndAllowThreads(__tstate);
12626 if (PyErr_Occurred()) SWIG_fail;
12627 }
12628 resultobj = SWIG_Py_Void();
12629 return resultobj;
12630fail:
12631 return NULL;
12632}
12633
12634
0085ce49
RD
12635SWIGINTERN PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12636 PyObject *resultobj = 0;
12637 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12638 unsigned long arg2 ;
12639 void *argp1 = 0 ;
12640 int res1 = 0 ;
12641 unsigned long val2 ;
12642 int ecode2 = 0 ;
12643 PyObject * obj0 = 0 ;
12644 PyObject * obj1 = 0 ;
12645 char * kwnames[] = {
12646 (char *) "self",(char *) "len", NULL
12647 };
12648
12649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail;
12650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12651 if (!SWIG_IsOK(res1)) {
12652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12653 }
12654 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12655 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
12656 if (!SWIG_IsOK(ecode2)) {
12657 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'");
12658 }
12659 arg2 = static_cast< unsigned long >(val2);
12660 {
12661 PyThreadState* __tstate = wxPyBeginAllowThreads();
12662 (arg1)->SetMaxLength(arg2);
12663 wxPyEndAllowThreads(__tstate);
12664 if (PyErr_Occurred()) SWIG_fail;
12665 }
12666 resultobj = SWIG_Py_Void();
12667 return resultobj;
12668fail:
12669 return NULL;
12670}
12671
12672
12673SWIGINTERN PyObject *_wrap_TextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12674 PyObject *resultobj = 0;
12675 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12676 wxString *arg2 = 0 ;
12677 void *argp1 = 0 ;
12678 int res1 = 0 ;
12679 bool temp2 = false ;
12680 PyObject * obj0 = 0 ;
12681 PyObject * obj1 = 0 ;
12682 char * kwnames[] = {
12683 (char *) "self",(char *) "text", NULL
12684 };
12685
12686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail;
12687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12688 if (!SWIG_IsOK(res1)) {
12689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_WriteText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12690 }
12691 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12692 {
12693 arg2 = wxString_in_helper(obj1);
12694 if (arg2 == NULL) SWIG_fail;
12695 temp2 = true;
12696 }
12697 {
12698 PyThreadState* __tstate = wxPyBeginAllowThreads();
12699 (arg1)->WriteText((wxString const &)*arg2);
12700 wxPyEndAllowThreads(__tstate);
12701 if (PyErr_Occurred()) SWIG_fail;
12702 }
12703 resultobj = SWIG_Py_Void();
12704 {
12705 if (temp2)
12706 delete arg2;
12707 }
12708 return resultobj;
12709fail:
12710 {
12711 if (temp2)
12712 delete arg2;
12713 }
12714 return NULL;
d14a1e28
RD
12715}
12716
12717
0085ce49
RD
12718SWIGINTERN PyObject *_wrap_TextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12719 PyObject *resultobj = 0;
12720 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12721 wxString *arg2 = 0 ;
12722 void *argp1 = 0 ;
12723 int res1 = 0 ;
12724 bool temp2 = false ;
12725 PyObject * obj0 = 0 ;
12726 PyObject * obj1 = 0 ;
12727 char * kwnames[] = {
12728 (char *) "self",(char *) "text", NULL
12729 };
12730
12731 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail;
12732 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12733 if (!SWIG_IsOK(res1)) {
12734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_AppendText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12735 }
12736 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12737 {
12738 arg2 = wxString_in_helper(obj1);
12739 if (arg2 == NULL) SWIG_fail;
12740 temp2 = true;
12741 }
12742 {
12743 PyThreadState* __tstate = wxPyBeginAllowThreads();
12744 (arg1)->AppendText((wxString const &)*arg2);
12745 wxPyEndAllowThreads(__tstate);
12746 if (PyErr_Occurred()) SWIG_fail;
12747 }
12748 resultobj = SWIG_Py_Void();
12749 {
12750 if (temp2)
12751 delete arg2;
12752 }
12753 return resultobj;
12754fail:
12755 {
12756 if (temp2)
12757 delete arg2;
12758 }
12759 return NULL;
12760}
12761
12762
12763SWIGINTERN PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12764 PyObject *resultobj = 0;
12765 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12766 wxKeyEvent *arg2 = 0 ;
12767 bool result;
12768 void *argp1 = 0 ;
12769 int res1 = 0 ;
12770 void *argp2 = 0 ;
12771 int res2 = 0 ;
12772 PyObject * obj0 = 0 ;
12773 PyObject * obj1 = 0 ;
12774 char * kwnames[] = {
12775 (char *) "self",(char *) "event", NULL
12776 };
12777
12778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) SWIG_fail;
12779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12780 if (!SWIG_IsOK(res1)) {
12781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12782 }
12783 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12784 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
12785 if (!SWIG_IsOK(res2)) {
12786 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12787 }
12788 if (!argp2) {
12789 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12790 }
12791 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
12792 {
12793 PyThreadState* __tstate = wxPyBeginAllowThreads();
12794 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
12795 wxPyEndAllowThreads(__tstate);
12796 if (PyErr_Occurred()) SWIG_fail;
12797 }
12798 {
12799 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12800 }
12801 return resultobj;
12802fail:
12803 return NULL;
12804}
12805
12806
12807SWIGINTERN PyObject *_wrap_TextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12808 PyObject *resultobj = 0;
12809 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12810 long arg2 ;
12811 long arg3 ;
12812 wxTextAttr *arg4 = 0 ;
12813 bool result;
12814 void *argp1 = 0 ;
12815 int res1 = 0 ;
12816 long val2 ;
12817 int ecode2 = 0 ;
12818 long val3 ;
12819 int ecode3 = 0 ;
12820 void *argp4 = 0 ;
12821 int res4 = 0 ;
12822 PyObject * obj0 = 0 ;
12823 PyObject * obj1 = 0 ;
12824 PyObject * obj2 = 0 ;
12825 PyObject * obj3 = 0 ;
12826 char * kwnames[] = {
12827 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
12828 };
12829
12830 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12831 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12832 if (!SWIG_IsOK(res1)) {
12833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12834 }
12835 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12836 ecode2 = SWIG_AsVal_long(obj1, &val2);
12837 if (!SWIG_IsOK(ecode2)) {
12838 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetStyle" "', expected argument " "2"" of type '" "long""'");
12839 }
12840 arg2 = static_cast< long >(val2);
12841 ecode3 = SWIG_AsVal_long(obj2, &val3);
12842 if (!SWIG_IsOK(ecode3)) {
12843 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetStyle" "', expected argument " "3"" of type '" "long""'");
12844 }
12845 arg3 = static_cast< long >(val3);
12846 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxTextAttr, 0 | 0);
12847 if (!SWIG_IsOK(res4)) {
12848 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12849 }
12850 if (!argp4) {
12851 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12852 }
12853 arg4 = reinterpret_cast< wxTextAttr * >(argp4);
12854 {
12855 PyThreadState* __tstate = wxPyBeginAllowThreads();
12856 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
12857 wxPyEndAllowThreads(__tstate);
12858 if (PyErr_Occurred()) SWIG_fail;
12859 }
12860 {
12861 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12862 }
12863 return resultobj;
12864fail:
12865 return NULL;
12866}
12867
12868
12869SWIGINTERN PyObject *_wrap_TextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12870 PyObject *resultobj = 0;
12871 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12872 long arg2 ;
12873 wxTextAttr *arg3 = 0 ;
12874 bool result;
12875 void *argp1 = 0 ;
12876 int res1 = 0 ;
12877 long val2 ;
12878 int ecode2 = 0 ;
12879 void *argp3 = 0 ;
12880 int res3 = 0 ;
12881 PyObject * obj0 = 0 ;
12882 PyObject * obj1 = 0 ;
12883 PyObject * obj2 = 0 ;
12884 char * kwnames[] = {
12885 (char *) "self",(char *) "position",(char *) "style", NULL
12886 };
12887
12888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12890 if (!SWIG_IsOK(res1)) {
12891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12892 }
12893 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12894 ecode2 = SWIG_AsVal_long(obj1, &val2);
12895 if (!SWIG_IsOK(ecode2)) {
12896 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'");
12897 }
12898 arg2 = static_cast< long >(val2);
12899 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTextAttr, 0 );
12900 if (!SWIG_IsOK(res3)) {
12901 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12902 }
12903 if (!argp3) {
12904 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12905 }
12906 arg3 = reinterpret_cast< wxTextAttr * >(argp3);
12907 {
12908 PyThreadState* __tstate = wxPyBeginAllowThreads();
12909 result = (bool)(arg1)->GetStyle(arg2,*arg3);
12910 wxPyEndAllowThreads(__tstate);
12911 if (PyErr_Occurred()) SWIG_fail;
12912 }
12913 {
12914 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12915 }
12916 return resultobj;
12917fail:
12918 return NULL;
12919}
12920
12921
12922SWIGINTERN PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12923 PyObject *resultobj = 0;
12924 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12925 wxTextAttr *arg2 = 0 ;
12926 bool result;
12927 void *argp1 = 0 ;
12928 int res1 = 0 ;
12929 void *argp2 = 0 ;
12930 int res2 = 0 ;
12931 PyObject * obj0 = 0 ;
12932 PyObject * obj1 = 0 ;
12933 char * kwnames[] = {
12934 (char *) "self",(char *) "style", NULL
12935 };
12936
12937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12938 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12939 if (!SWIG_IsOK(res1)) {
12940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12941 }
12942 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12943 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
12944 if (!SWIG_IsOK(res2)) {
12945 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12946 }
12947 if (!argp2) {
12948 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12949 }
12950 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
12951 {
12952 PyThreadState* __tstate = wxPyBeginAllowThreads();
12953 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
12954 wxPyEndAllowThreads(__tstate);
12955 if (PyErr_Occurred()) SWIG_fail;
12956 }
12957 {
12958 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12959 }
12960 return resultobj;
12961fail:
12962 return NULL;
d14a1e28
RD
12963}
12964
12965
0085ce49
RD
12966SWIGINTERN PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12967 PyObject *resultobj = 0;
12968 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12969 wxTextAttr *result = 0 ;
12970 void *argp1 = 0 ;
12971 int res1 = 0 ;
12972 PyObject *swig_obj[1] ;
12973
12974 if (!args) SWIG_fail;
12975 swig_obj[0] = args;
12976 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12977 if (!SWIG_IsOK(res1)) {
12978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12979 }
12980 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12981 {
12982 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 12983 {
0085ce49
RD
12984 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
12985 result = (wxTextAttr *) &_result_ref;
093d3ff1 12986 }
0085ce49
RD
12987 wxPyEndAllowThreads(__tstate);
12988 if (PyErr_Occurred()) SWIG_fail;
12989 }
12990 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, 0 | 0 );
12991 return resultobj;
12992fail:
12993 return NULL;
12994}
12995
12996
12997SWIGINTERN PyObject *_wrap_TextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12998 PyObject *resultobj = 0;
12999 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13000 long arg2 ;
13001 long arg3 ;
13002 long result;
13003 void *argp1 = 0 ;
13004 int res1 = 0 ;
13005 long val2 ;
13006 int ecode2 = 0 ;
13007 long val3 ;
13008 int ecode3 = 0 ;
13009 PyObject * obj0 = 0 ;
13010 PyObject * obj1 = 0 ;
13011 PyObject * obj2 = 0 ;
13012 char * kwnames[] = {
13013 (char *) "self",(char *) "x",(char *) "y", NULL
13014 };
13015
13016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13017 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13018 if (!SWIG_IsOK(res1)) {
13019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13020 }
13021 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13022 ecode2 = SWIG_AsVal_long(obj1, &val2);
13023 if (!SWIG_IsOK(ecode2)) {
13024 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'");
13025 }
13026 arg2 = static_cast< long >(val2);
13027 ecode3 = SWIG_AsVal_long(obj2, &val3);
13028 if (!SWIG_IsOK(ecode3)) {
13029 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'");
13030 }
13031 arg3 = static_cast< long >(val3);
13032 {
13033 PyThreadState* __tstate = wxPyBeginAllowThreads();
13034 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
13035 wxPyEndAllowThreads(__tstate);
13036 if (PyErr_Occurred()) SWIG_fail;
13037 }
13038 resultobj = SWIG_From_long(static_cast< long >(result));
13039 return resultobj;
13040fail:
13041 return NULL;
13042}
13043
13044
13045SWIGINTERN PyObject *_wrap_TextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13046 PyObject *resultobj = 0;
13047 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13048 long arg2 ;
13049 long *arg3 = (long *) 0 ;
13050 long *arg4 = (long *) 0 ;
13051 void *argp1 = 0 ;
13052 int res1 = 0 ;
13053 long val2 ;
13054 int ecode2 = 0 ;
13055 long temp3 ;
13056 int res3 = SWIG_TMPOBJ ;
13057 long temp4 ;
13058 int res4 = SWIG_TMPOBJ ;
13059 PyObject * obj0 = 0 ;
13060 PyObject * obj1 = 0 ;
13061 char * kwnames[] = {
13062 (char *) "self",(char *) "pos", NULL
13063 };
13064
13065 arg3 = &temp3;
13066 arg4 = &temp4;
13067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail;
13068 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13069 if (!SWIG_IsOK(res1)) {
13070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13071 }
13072 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13073 ecode2 = SWIG_AsVal_long(obj1, &val2);
13074 if (!SWIG_IsOK(ecode2)) {
13075 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'");
13076 }
13077 arg2 = static_cast< long >(val2);
13078 {
13079 PyThreadState* __tstate = wxPyBeginAllowThreads();
13080 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
13081 wxPyEndAllowThreads(__tstate);
13082 if (PyErr_Occurred()) SWIG_fail;
13083 }
13084 resultobj = SWIG_Py_Void();
13085 if (SWIG_IsTmpObj(res3)) {
13086 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13087 } else {
13088 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13089 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13090 }
13091 if (SWIG_IsTmpObj(res4)) {
13092 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13093 } else {
13094 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13095 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13096 }
13097 return resultobj;
13098fail:
13099 return NULL;
13100}
13101
13102
13103SWIGINTERN PyObject *_wrap_TextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13104 PyObject *resultobj = 0;
13105 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13106 long arg2 ;
13107 void *argp1 = 0 ;
13108 int res1 = 0 ;
13109 long val2 ;
13110 int ecode2 = 0 ;
13111 PyObject * obj0 = 0 ;
13112 PyObject * obj1 = 0 ;
13113 char * kwnames[] = {
13114 (char *) "self",(char *) "pos", NULL
13115 };
13116
13117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail;
13118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13119 if (!SWIG_IsOK(res1)) {
13120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13121 }
13122 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13123 ecode2 = SWIG_AsVal_long(obj1, &val2);
13124 if (!SWIG_IsOK(ecode2)) {
13125 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'");
13126 }
13127 arg2 = static_cast< long >(val2);
13128 {
13129 PyThreadState* __tstate = wxPyBeginAllowThreads();
13130 (arg1)->ShowPosition(arg2);
13131 wxPyEndAllowThreads(__tstate);
13132 if (PyErr_Occurred()) SWIG_fail;
13133 }
13134 resultobj = SWIG_Py_Void();
13135 return resultobj;
13136fail:
13137 return NULL;
13138}
13139
13140
13141SWIGINTERN PyObject *_wrap_TextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13142 PyObject *resultobj = 0;
13143 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13144 wxPoint *arg2 = 0 ;
13145 long *arg3 = (long *) 0 ;
13146 long *arg4 = (long *) 0 ;
13147 wxTextCtrlHitTestResult result;
13148 void *argp1 = 0 ;
13149 int res1 = 0 ;
13150 wxPoint temp2 ;
13151 long temp3 ;
13152 int res3 = SWIG_TMPOBJ ;
13153 long temp4 ;
13154 int res4 = SWIG_TMPOBJ ;
13155 PyObject * obj0 = 0 ;
13156 PyObject * obj1 = 0 ;
13157 char * kwnames[] = {
13158 (char *) "self",(char *) "pt", NULL
13159 };
13160
13161 arg3 = &temp3;
13162 arg4 = &temp4;
13163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
13164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13165 if (!SWIG_IsOK(res1)) {
13166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTest" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13167 }
13168 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13169 {
13170 arg2 = &temp2;
13171 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13172 }
13173 {
13174 PyThreadState* __tstate = wxPyBeginAllowThreads();
13175 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
13176 wxPyEndAllowThreads(__tstate);
13177 if (PyErr_Occurred()) SWIG_fail;
13178 }
13179 resultobj = SWIG_From_int(static_cast< int >(result));
13180 if (SWIG_IsTmpObj(res3)) {
13181 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13182 } else {
13183 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13184 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13185 }
13186 if (SWIG_IsTmpObj(res4)) {
13187 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13188 } else {
13189 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13190 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13191 }
13192 return resultobj;
13193fail:
13194 return NULL;
13195}
13196
13197
13198SWIGINTERN PyObject *_wrap_TextCtrl_HitTestPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13199 PyObject *resultobj = 0;
13200 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13201 wxPoint *arg2 = 0 ;
13202 long *arg3 = (long *) 0 ;
13203 wxTextCtrlHitTestResult result;
13204 void *argp1 = 0 ;
13205 int res1 = 0 ;
13206 wxPoint temp2 ;
13207 long temp3 ;
13208 int res3 = SWIG_TMPOBJ ;
13209 PyObject * obj0 = 0 ;
13210 PyObject * obj1 = 0 ;
13211 char * kwnames[] = {
13212 (char *) "self",(char *) "pt", NULL
13213 };
13214
13215 arg3 = &temp3;
13216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) SWIG_fail;
13217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13218 if (!SWIG_IsOK(res1)) {
13219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTestPos" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13220 }
13221 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13222 {
13223 arg2 = &temp2;
13224 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13225 }
13226 {
13227 PyThreadState* __tstate = wxPyBeginAllowThreads();
13228 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
13229 wxPyEndAllowThreads(__tstate);
13230 if (PyErr_Occurred()) SWIG_fail;
13231 }
13232 resultobj = SWIG_From_int(static_cast< int >(result));
13233 if (SWIG_IsTmpObj(res3)) {
13234 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13235 } else {
13236 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13237 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13238 }
13239 return resultobj;
13240fail:
13241 return NULL;
d14a1e28
RD
13242}
13243
13244
0085ce49
RD
13245SWIGINTERN PyObject *_wrap_TextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13246 PyObject *resultobj = 0;
13247 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13248 void *argp1 = 0 ;
13249 int res1 = 0 ;
13250 PyObject *swig_obj[1] ;
13251
13252 if (!args) SWIG_fail;
13253 swig_obj[0] = args;
13254 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13255 if (!SWIG_IsOK(res1)) {
13256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Copy" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13257 }
13258 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13259 {
13260 PyThreadState* __tstate = wxPyBeginAllowThreads();
13261 (arg1)->Copy();
13262 wxPyEndAllowThreads(__tstate);
13263 if (PyErr_Occurred()) SWIG_fail;
13264 }
13265 resultobj = SWIG_Py_Void();
13266 return resultobj;
13267fail:
13268 return NULL;
d14a1e28 13269}
0085ce49
RD
13270
13271
13272SWIGINTERN PyObject *_wrap_TextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13273 PyObject *resultobj = 0;
13274 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13275 void *argp1 = 0 ;
13276 int res1 = 0 ;
13277 PyObject *swig_obj[1] ;
13278
13279 if (!args) SWIG_fail;
13280 swig_obj[0] = args;
13281 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13282 if (!SWIG_IsOK(res1)) {
13283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Cut" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13284 }
13285 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13286 {
13287 PyThreadState* __tstate = wxPyBeginAllowThreads();
13288 (arg1)->Cut();
13289 wxPyEndAllowThreads(__tstate);
13290 if (PyErr_Occurred()) SWIG_fail;
13291 }
13292 resultobj = SWIG_Py_Void();
13293 return resultobj;
13294fail:
13295 return NULL;
b2dc1044
RD
13296}
13297
13298
0085ce49
RD
13299SWIGINTERN PyObject *_wrap_TextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13300 PyObject *resultobj = 0;
13301 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13302 void *argp1 = 0 ;
13303 int res1 = 0 ;
13304 PyObject *swig_obj[1] ;
13305
13306 if (!args) SWIG_fail;
13307 swig_obj[0] = args;
13308 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13309 if (!SWIG_IsOK(res1)) {
13310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Paste" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13311 }
13312 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13313 {
13314 PyThreadState* __tstate = wxPyBeginAllowThreads();
13315 (arg1)->Paste();
13316 wxPyEndAllowThreads(__tstate);
13317 if (PyErr_Occurred()) SWIG_fail;
13318 }
13319 resultobj = SWIG_Py_Void();
13320 return resultobj;
13321fail:
13322 return NULL;
d14a1e28
RD
13323}
13324
13325
0085ce49
RD
13326SWIGINTERN PyObject *_wrap_TextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13327 PyObject *resultobj = 0;
13328 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13329 bool result;
13330 void *argp1 = 0 ;
13331 int res1 = 0 ;
13332 PyObject *swig_obj[1] ;
13333
13334 if (!args) SWIG_fail;
13335 swig_obj[0] = args;
13336 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13337 if (!SWIG_IsOK(res1)) {
13338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13339 }
13340 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13341 {
13342 PyThreadState* __tstate = wxPyBeginAllowThreads();
13343 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
13344 wxPyEndAllowThreads(__tstate);
13345 if (PyErr_Occurred()) SWIG_fail;
13346 }
13347 {
13348 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13349 }
13350 return resultobj;
13351fail:
13352 return NULL;
d14a1e28
RD
13353}
13354
13355
0085ce49
RD
13356SWIGINTERN PyObject *_wrap_TextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13357 PyObject *resultobj = 0;
13358 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13359 bool result;
13360 void *argp1 = 0 ;
13361 int res1 = 0 ;
13362 PyObject *swig_obj[1] ;
13363
13364 if (!args) SWIG_fail;
13365 swig_obj[0] = args;
13366 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13367 if (!SWIG_IsOK(res1)) {
13368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCut" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13369 }
13370 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13371 {
13372 PyThreadState* __tstate = wxPyBeginAllowThreads();
13373 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
13374 wxPyEndAllowThreads(__tstate);
13375 if (PyErr_Occurred()) SWIG_fail;
13376 }
13377 {
13378 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13379 }
13380 return resultobj;
13381fail:
13382 return NULL;
994141e6
RD
13383}
13384
13385
0085ce49
RD
13386SWIGINTERN PyObject *_wrap_TextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13387 PyObject *resultobj = 0;
13388 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13389 bool result;
13390 void *argp1 = 0 ;
13391 int res1 = 0 ;
13392 PyObject *swig_obj[1] ;
13393
13394 if (!args) SWIG_fail;
13395 swig_obj[0] = args;
13396 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13397 if (!SWIG_IsOK(res1)) {
13398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13399 }
13400 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13401 {
13402 PyThreadState* __tstate = wxPyBeginAllowThreads();
13403 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
13404 wxPyEndAllowThreads(__tstate);
13405 if (PyErr_Occurred()) SWIG_fail;
13406 }
13407 {
13408 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13409 }
13410 return resultobj;
13411fail:
13412 return NULL;
d14a1e28
RD
13413}
13414
13415
0085ce49
RD
13416SWIGINTERN PyObject *_wrap_TextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13417 PyObject *resultobj = 0;
13418 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13419 void *argp1 = 0 ;
13420 int res1 = 0 ;
13421 PyObject *swig_obj[1] ;
13422
13423 if (!args) SWIG_fail;
13424 swig_obj[0] = args;
13425 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13426 if (!SWIG_IsOK(res1)) {
13427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Undo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13428 }
13429 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13430 {
13431 PyThreadState* __tstate = wxPyBeginAllowThreads();
13432 (arg1)->Undo();
13433 wxPyEndAllowThreads(__tstate);
13434 if (PyErr_Occurred()) SWIG_fail;
13435 }
13436 resultobj = SWIG_Py_Void();
13437 return resultobj;
13438fail:
13439 return NULL;
d14a1e28
RD
13440}
13441
13442
0085ce49
RD
13443SWIGINTERN PyObject *_wrap_TextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13444 PyObject *resultobj = 0;
13445 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13446 void *argp1 = 0 ;
13447 int res1 = 0 ;
13448 PyObject *swig_obj[1] ;
13449
13450 if (!args) SWIG_fail;
13451 swig_obj[0] = args;
13452 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13453 if (!SWIG_IsOK(res1)) {
13454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Redo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13455 }
13456 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13457 {
13458 PyThreadState* __tstate = wxPyBeginAllowThreads();
13459 (arg1)->Redo();
13460 wxPyEndAllowThreads(__tstate);
13461 if (PyErr_Occurred()) SWIG_fail;
13462 }
13463 resultobj = SWIG_Py_Void();
13464 return resultobj;
13465fail:
13466 return NULL;
d14a1e28
RD
13467}
13468
13469
0085ce49
RD
13470SWIGINTERN PyObject *_wrap_TextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13471 PyObject *resultobj = 0;
13472 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13473 bool result;
13474 void *argp1 = 0 ;
13475 int res1 = 0 ;
13476 PyObject *swig_obj[1] ;
13477
13478 if (!args) SWIG_fail;
13479 swig_obj[0] = args;
13480 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13481 if (!SWIG_IsOK(res1)) {
13482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13483 }
13484 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13485 {
13486 PyThreadState* __tstate = wxPyBeginAllowThreads();
13487 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
13488 wxPyEndAllowThreads(__tstate);
13489 if (PyErr_Occurred()) SWIG_fail;
13490 }
13491 {
13492 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13493 }
13494 return resultobj;
13495fail:
13496 return NULL;
d14a1e28
RD
13497}
13498
13499
0085ce49
RD
13500SWIGINTERN PyObject *_wrap_TextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13501 PyObject *resultobj = 0;
13502 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13503 bool result;
13504 void *argp1 = 0 ;
13505 int res1 = 0 ;
13506 PyObject *swig_obj[1] ;
13507
13508 if (!args) SWIG_fail;
13509 swig_obj[0] = args;
13510 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13511 if (!SWIG_IsOK(res1)) {
13512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13513 }
13514 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13515 {
13516 PyThreadState* __tstate = wxPyBeginAllowThreads();
13517 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
13518 wxPyEndAllowThreads(__tstate);
13519 if (PyErr_Occurred()) SWIG_fail;
13520 }
13521 {
13522 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13523 }
13524 return resultobj;
13525fail:
13526 return NULL;
13527}
13528
13529
13530SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13531 PyObject *resultobj = 0;
13532 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13533 long arg2 ;
13534 void *argp1 = 0 ;
13535 int res1 = 0 ;
13536 long val2 ;
13537 int ecode2 = 0 ;
13538 PyObject * obj0 = 0 ;
13539 PyObject * obj1 = 0 ;
13540 char * kwnames[] = {
13541 (char *) "self",(char *) "pos", NULL
13542 };
13543
13544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
13545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13546 if (!SWIG_IsOK(res1)) {
13547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13548 }
13549 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13550 ecode2 = SWIG_AsVal_long(obj1, &val2);
13551 if (!SWIG_IsOK(ecode2)) {
13552 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
13553 }
13554 arg2 = static_cast< long >(val2);
13555 {
13556 PyThreadState* __tstate = wxPyBeginAllowThreads();
13557 (arg1)->SetInsertionPoint(arg2);
13558 wxPyEndAllowThreads(__tstate);
13559 if (PyErr_Occurred()) SWIG_fail;
13560 }
13561 resultobj = SWIG_Py_Void();
13562 return resultobj;
13563fail:
13564 return NULL;
d14a1e28
RD
13565}
13566
13567
0085ce49
RD
13568SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13569 PyObject *resultobj = 0;
13570 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13571 void *argp1 = 0 ;
13572 int res1 = 0 ;
13573 PyObject *swig_obj[1] ;
13574
13575 if (!args) SWIG_fail;
13576 swig_obj[0] = args;
13577 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13578 if (!SWIG_IsOK(res1)) {
13579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13580 }
13581 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13582 {
13583 PyThreadState* __tstate = wxPyBeginAllowThreads();
13584 (arg1)->SetInsertionPointEnd();
13585 wxPyEndAllowThreads(__tstate);
13586 if (PyErr_Occurred()) SWIG_fail;
13587 }
13588 resultobj = SWIG_Py_Void();
13589 return resultobj;
13590fail:
13591 return NULL;
d14a1e28
RD
13592}
13593
13594
0085ce49
RD
13595SWIGINTERN PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13596 PyObject *resultobj = 0;
13597 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13598 long result;
13599 void *argp1 = 0 ;
13600 int res1 = 0 ;
13601 PyObject *swig_obj[1] ;
13602
13603 if (!args) SWIG_fail;
13604 swig_obj[0] = args;
13605 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13606 if (!SWIG_IsOK(res1)) {
13607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13608 }
13609 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13610 {
13611 PyThreadState* __tstate = wxPyBeginAllowThreads();
13612 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
13613 wxPyEndAllowThreads(__tstate);
13614 if (PyErr_Occurred()) SWIG_fail;
13615 }
13616 resultobj = SWIG_From_long(static_cast< long >(result));
13617 return resultobj;
13618fail:
13619 return NULL;
d14a1e28
RD
13620}
13621
13622
0085ce49
RD
13623SWIGINTERN PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13624 PyObject *resultobj = 0;
13625 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13626 long result;
13627 void *argp1 = 0 ;
13628 int res1 = 0 ;
13629 PyObject *swig_obj[1] ;
13630
13631 if (!args) SWIG_fail;
13632 swig_obj[0] = args;
13633 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13634 if (!SWIG_IsOK(res1)) {
13635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13636 }
13637 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13638 {
13639 PyThreadState* __tstate = wxPyBeginAllowThreads();
13640 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
13641 wxPyEndAllowThreads(__tstate);
13642 if (PyErr_Occurred()) SWIG_fail;
13643 }
13644 resultobj = SWIG_From_long(static_cast< long >(result));
13645 return resultobj;
13646fail:
13647 return NULL;
13648}
13649
13650
13651SWIGINTERN PyObject *_wrap_TextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13652 PyObject *resultobj = 0;
13653 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13654 long arg2 ;
13655 long arg3 ;
13656 void *argp1 = 0 ;
13657 int res1 = 0 ;
13658 long val2 ;
13659 int ecode2 = 0 ;
13660 long val3 ;
13661 int ecode3 = 0 ;
13662 PyObject * obj0 = 0 ;
13663 PyObject * obj1 = 0 ;
13664 PyObject * obj2 = 0 ;
13665 char * kwnames[] = {
2131d850 13666 (char *) "self",(char *) "from",(char *) "to", NULL
0085ce49
RD
13667 };
13668
13669 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13670 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13671 if (!SWIG_IsOK(res1)) {
13672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13673 }
13674 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13675 ecode2 = SWIG_AsVal_long(obj1, &val2);
13676 if (!SWIG_IsOK(ecode2)) {
13677 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
13678 }
13679 arg2 = static_cast< long >(val2);
13680 ecode3 = SWIG_AsVal_long(obj2, &val3);
13681 if (!SWIG_IsOK(ecode3)) {
13682 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
13683 }
13684 arg3 = static_cast< long >(val3);
13685 {
13686 PyThreadState* __tstate = wxPyBeginAllowThreads();
13687 (arg1)->SetSelection(arg2,arg3);
13688 wxPyEndAllowThreads(__tstate);
13689 if (PyErr_Occurred()) SWIG_fail;
13690 }
13691 resultobj = SWIG_Py_Void();
13692 return resultobj;
13693fail:
13694 return NULL;
d14a1e28
RD
13695}
13696
13697
0085ce49
RD
13698SWIGINTERN PyObject *_wrap_TextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13699 PyObject *resultobj = 0;
13700 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13701 void *argp1 = 0 ;
13702 int res1 = 0 ;
13703 PyObject *swig_obj[1] ;
13704
13705 if (!args) SWIG_fail;
13706 swig_obj[0] = args;
13707 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13708 if (!SWIG_IsOK(res1)) {
13709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13710 }
13711 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13712 {
13713 PyThreadState* __tstate = wxPyBeginAllowThreads();
13714 (arg1)->SelectAll();
13715 wxPyEndAllowThreads(__tstate);
13716 if (PyErr_Occurred()) SWIG_fail;
13717 }
13718 resultobj = SWIG_Py_Void();
13719 return resultobj;
13720fail:
13721 return NULL;
13722}
13723
13724
13725SWIGINTERN PyObject *_wrap_TextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13726 PyObject *resultobj = 0;
13727 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13728 bool arg2 ;
13729 void *argp1 = 0 ;
13730 int res1 = 0 ;
13731 bool val2 ;
13732 int ecode2 = 0 ;
13733 PyObject * obj0 = 0 ;
13734 PyObject * obj1 = 0 ;
13735 char * kwnames[] = {
13736 (char *) "self",(char *) "editable", NULL
13737 };
13738
13739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
13740 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13741 if (!SWIG_IsOK(res1)) {
13742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13743 }
13744 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13745 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13746 if (!SWIG_IsOK(ecode2)) {
13747 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'");
13748 }
13749 arg2 = static_cast< bool >(val2);
13750 {
13751 PyThreadState* __tstate = wxPyBeginAllowThreads();
13752 (arg1)->SetEditable(arg2);
13753 wxPyEndAllowThreads(__tstate);
13754 if (PyErr_Occurred()) SWIG_fail;
13755 }
13756 resultobj = SWIG_Py_Void();
13757 return resultobj;
13758fail:
13759 return NULL;
13760}
13761
13762
13763SWIGINTERN PyObject *_wrap_TextCtrl_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13764 PyObject *resultobj = 0;
13765 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13766 wxString *arg2 = 0 ;
13767 void *argp1 = 0 ;
13768 int res1 = 0 ;
13769 bool temp2 = false ;
13770 PyObject * obj0 = 0 ;
13771 PyObject * obj1 = 0 ;
13772 char * kwnames[] = {
13773 (char *) "self",(char *) "text", NULL
13774 };
13775
13776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) SWIG_fail;
13777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13778 if (!SWIG_IsOK(res1)) {
13779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_write" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13780 }
13781 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13782 {
13783 arg2 = wxString_in_helper(obj1);
13784 if (arg2 == NULL) SWIG_fail;
13785 temp2 = true;
13786 }
13787 {
13788 PyThreadState* __tstate = wxPyBeginAllowThreads();
13789 wxTextCtrl_write(arg1,(wxString const &)*arg2);
13790 wxPyEndAllowThreads(__tstate);
13791 if (PyErr_Occurred()) SWIG_fail;
13792 }
13793 resultobj = SWIG_Py_Void();
13794 {
13795 if (temp2)
13796 delete arg2;
13797 }
13798 return resultobj;
13799fail:
13800 {
13801 if (temp2)
13802 delete arg2;
13803 }
13804 return NULL;
13805}
13806
13807
13808SWIGINTERN PyObject *_wrap_TextCtrl_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13809 PyObject *resultobj = 0;
13810 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13811 long arg2 ;
13812 long arg3 ;
13813 wxString result;
13814 void *argp1 = 0 ;
13815 int res1 = 0 ;
13816 long val2 ;
13817 int ecode2 = 0 ;
13818 long val3 ;
13819 int ecode3 = 0 ;
13820 PyObject * obj0 = 0 ;
13821 PyObject * obj1 = 0 ;
13822 PyObject * obj2 = 0 ;
13823 char * kwnames[] = {
2131d850 13824 (char *) "self",(char *) "from",(char *) "to", NULL
0085ce49
RD
13825 };
13826
13827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13829 if (!SWIG_IsOK(res1)) {
13830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetString" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13831 }
13832 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13833 ecode2 = SWIG_AsVal_long(obj1, &val2);
13834 if (!SWIG_IsOK(ecode2)) {
13835 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetString" "', expected argument " "2"" of type '" "long""'");
13836 }
13837 arg2 = static_cast< long >(val2);
13838 ecode3 = SWIG_AsVal_long(obj2, &val3);
13839 if (!SWIG_IsOK(ecode3)) {
13840 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetString" "', expected argument " "3"" of type '" "long""'");
13841 }
13842 arg3 = static_cast< long >(val3);
13843 {
13844 PyThreadState* __tstate = wxPyBeginAllowThreads();
13845 result = wxTextCtrl_GetString(arg1,arg2,arg3);
13846 wxPyEndAllowThreads(__tstate);
13847 if (PyErr_Occurred()) SWIG_fail;
13848 }
13849 {
13850#if wxUSE_UNICODE
13851 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13852#else
13853 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13854#endif
13855 }
13856 return resultobj;
13857fail:
13858 return NULL;
d14a1e28
RD
13859}
13860
13861
0085ce49
RD
13862SWIGINTERN PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13863 PyObject *resultobj = 0;
13864 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
13865 SwigValueWrapper<wxVisualAttributes > result;
13866 int val1 ;
13867 int ecode1 = 0 ;
13868 PyObject * obj0 = 0 ;
13869 char * kwnames[] = {
13870 (char *) "variant", NULL
13871 };
13872
13873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
13874 if (obj0) {
13875 ecode1 = SWIG_AsVal_int(obj0, &val1);
13876 if (!SWIG_IsOK(ecode1)) {
13877 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TextCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
13878 }
13879 arg1 = static_cast< wxWindowVariant >(val1);
13880 }
13881 {
13882 if (!wxPyCheckForApp()) SWIG_fail;
13883 PyThreadState* __tstate = wxPyBeginAllowThreads();
13884 result = wxTextCtrl::GetClassDefaultAttributes(arg1);
13885 wxPyEndAllowThreads(__tstate);
13886 if (PyErr_Occurred()) SWIG_fail;
13887 }
13888 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
13889 return resultobj;
13890fail:
13891 return NULL;
13892}
13893
13894
13895SWIGINTERN PyObject *TextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13896 PyObject *obj;
13897 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13898 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextCtrl, SWIG_NewClientData(obj));
13899 return SWIG_Py_Void();
13900}
13901
13902SWIGINTERN PyObject *TextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13903 return SWIG_Python_InitShadowInstance(args);
13904}
13905
13906SWIGINTERN PyObject *_wrap_new_TextUrlEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13907 PyObject *resultobj = 0;
13908 int arg1 ;
13909 wxMouseEvent *arg2 = 0 ;
13910 long arg3 ;
13911 long arg4 ;
13912 wxTextUrlEvent *result = 0 ;
13913 int val1 ;
13914 int ecode1 = 0 ;
13915 void *argp2 = 0 ;
13916 int res2 = 0 ;
13917 long val3 ;
13918 int ecode3 = 0 ;
13919 long val4 ;
13920 int ecode4 = 0 ;
13921 PyObject * obj0 = 0 ;
13922 PyObject * obj1 = 0 ;
13923 PyObject * obj2 = 0 ;
13924 PyObject * obj3 = 0 ;
13925 char * kwnames[] = {
13926 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
13927 };
13928
13929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13930 ecode1 = SWIG_AsVal_int(obj0, &val1);
13931 if (!SWIG_IsOK(ecode1)) {
13932 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TextUrlEvent" "', expected argument " "1"" of type '" "int""'");
13933 }
13934 arg1 = static_cast< int >(val1);
13935 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxMouseEvent, 0 | 0);
13936 if (!SWIG_IsOK(res2)) {
13937 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
13938 }
13939 if (!argp2) {
13940 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
13941 }
13942 arg2 = reinterpret_cast< wxMouseEvent * >(argp2);
13943 ecode3 = SWIG_AsVal_long(obj2, &val3);
13944 if (!SWIG_IsOK(ecode3)) {
13945 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TextUrlEvent" "', expected argument " "3"" of type '" "long""'");
13946 }
13947 arg3 = static_cast< long >(val3);
13948 ecode4 = SWIG_AsVal_long(obj3, &val4);
13949 if (!SWIG_IsOK(ecode4)) {
13950 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextUrlEvent" "', expected argument " "4"" of type '" "long""'");
13951 }
13952 arg4 = static_cast< long >(val4);
13953 {
13954 PyThreadState* __tstate = wxPyBeginAllowThreads();
13955 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
13956 wxPyEndAllowThreads(__tstate);
13957 if (PyErr_Occurred()) SWIG_fail;
13958 }
13959 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_NEW | 0 );
13960 return resultobj;
13961fail:
13962 return NULL;
d14a1e28
RD
13963}
13964
13965
0085ce49
RD
13966SWIGINTERN PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13967 PyObject *resultobj = 0;
13968 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13969 wxMouseEvent *result = 0 ;
13970 void *argp1 = 0 ;
13971 int res1 = 0 ;
13972 PyObject *swig_obj[1] ;
13973
13974 if (!args) SWIG_fail;
13975 swig_obj[0] = args;
13976 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
13977 if (!SWIG_IsOK(res1)) {
13978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetMouseEvent" "', expected argument " "1"" of type '" "wxTextUrlEvent *""'");
13979 }
13980 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
13981 {
13982 PyThreadState* __tstate = wxPyBeginAllowThreads();
4f89f6a3 13983 {
0085ce49
RD
13984 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
13985 result = (wxMouseEvent *) &_result_ref;
4f89f6a3 13986 }
0085ce49
RD
13987 wxPyEndAllowThreads(__tstate);
13988 if (PyErr_Occurred()) SWIG_fail;
13989 }
13990 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseEvent, 0 | 0 );
13991 return resultobj;
13992fail:
13993 return NULL;
d14a1e28
RD
13994}
13995
13996
0085ce49
RD
13997SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13998 PyObject *resultobj = 0;
13999 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14000 long result;
14001 void *argp1 = 0 ;
14002 int res1 = 0 ;
14003 PyObject *swig_obj[1] ;
14004
14005 if (!args) SWIG_fail;
14006 swig_obj[0] = args;
14007 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14008 if (!SWIG_IsOK(res1)) {
14009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLStart" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14010 }
14011 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14012 {
14013 PyThreadState* __tstate = wxPyBeginAllowThreads();
14014 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
14015 wxPyEndAllowThreads(__tstate);
14016 if (PyErr_Occurred()) SWIG_fail;
14017 }
14018 resultobj = SWIG_From_long(static_cast< long >(result));
14019 return resultobj;
14020fail:
14021 return NULL;
d14a1e28
RD
14022}
14023
14024
0085ce49
RD
14025SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14026 PyObject *resultobj = 0;
14027 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14028 long result;
14029 void *argp1 = 0 ;
14030 int res1 = 0 ;
14031 PyObject *swig_obj[1] ;
14032
14033 if (!args) SWIG_fail;
14034 swig_obj[0] = args;
14035 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14036 if (!SWIG_IsOK(res1)) {
14037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLEnd" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14038 }
14039 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14040 {
14041 PyThreadState* __tstate = wxPyBeginAllowThreads();
14042 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
14043 wxPyEndAllowThreads(__tstate);
14044 if (PyErr_Occurred()) SWIG_fail;
14045 }
14046 resultobj = SWIG_From_long(static_cast< long >(result));
14047 return resultobj;
14048fail:
14049 return NULL;
d14a1e28
RD
14050}
14051
14052
0085ce49
RD
14053SWIGINTERN PyObject *TextUrlEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14054 PyObject *obj;
14055 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14056 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextUrlEvent, SWIG_NewClientData(obj));
14057 return SWIG_Py_Void();
d14a1e28
RD
14058}
14059
0085ce49
RD
14060SWIGINTERN PyObject *TextUrlEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14061 return SWIG_Python_InitShadowInstance(args);
14062}
d14a1e28 14063
0085ce49
RD
14064SWIGINTERN int ScrollBarNameStr_set(PyObject *) {
14065 SWIG_Error(SWIG_AttributeError,"Variable ScrollBarNameStr is read-only.");
14066 return 1;
14067}
14068
14069
14070SWIGINTERN PyObject *ScrollBarNameStr_get(void) {
14071 PyObject *pyobj = 0;
14072
14073 {
14074#if wxUSE_UNICODE
14075 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14076#else
14077 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14078#endif
14079 }
14080 return pyobj;
14081}
14082
14083
14084SWIGINTERN PyObject *_wrap_new_ScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14085 PyObject *resultobj = 0;
14086 wxWindow *arg1 = (wxWindow *) 0 ;
14087 int arg2 = (int) -1 ;
14088 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14089 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14090 wxSize const &arg4_defvalue = wxDefaultSize ;
14091 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14092 long arg5 = (long) wxSB_HORIZONTAL ;
14093 wxValidator const &arg6_defvalue = wxDefaultValidator ;
14094 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
14095 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
14096 wxString *arg7 = (wxString *) &arg7_defvalue ;
14097 wxScrollBar *result = 0 ;
14098 void *argp1 = 0 ;
14099 int res1 = 0 ;
14100 int val2 ;
14101 int ecode2 = 0 ;
14102 wxPoint temp3 ;
14103 wxSize temp4 ;
14104 long val5 ;
14105 int ecode5 = 0 ;
14106 void *argp6 = 0 ;
14107 int res6 = 0 ;
14108 bool temp7 = false ;
14109 PyObject * obj0 = 0 ;
14110 PyObject * obj1 = 0 ;
14111 PyObject * obj2 = 0 ;
14112 PyObject * obj3 = 0 ;
14113 PyObject * obj4 = 0 ;
14114 PyObject * obj5 = 0 ;
14115 PyObject * obj6 = 0 ;
14116 char * kwnames[] = {
14117 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14118 };
14119
14120 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14121 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14122 if (!SWIG_IsOK(res1)) {
14123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrollBar" "', expected argument " "1"" of type '" "wxWindow *""'");
14124 }
14125 arg1 = reinterpret_cast< wxWindow * >(argp1);
14126 if (obj1) {
14127 ecode2 = SWIG_AsVal_int(obj1, &val2);
14128 if (!SWIG_IsOK(ecode2)) {
14129 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollBar" "', expected argument " "2"" of type '" "int""'");
14130 }
14131 arg2 = static_cast< int >(val2);
14132 }
14133 if (obj2) {
d14a1e28 14134 {
0085ce49
RD
14135 arg3 = &temp3;
14136 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 14137 }
0085ce49
RD
14138 }
14139 if (obj3) {
4f89f6a3 14140 {
0085ce49
RD
14141 arg4 = &temp4;
14142 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 14143 }
0085ce49
RD
14144 }
14145 if (obj4) {
14146 ecode5 = SWIG_AsVal_long(obj4, &val5);
14147 if (!SWIG_IsOK(ecode5)) {
14148 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrollBar" "', expected argument " "5"" of type '" "long""'");
14149 }
14150 arg5 = static_cast< long >(val5);
14151 }
14152 if (obj5) {
14153 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
14154 if (!SWIG_IsOK(res6)) {
14155 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14156 }
14157 if (!argp6) {
14158 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14159 }
14160 arg6 = reinterpret_cast< wxValidator * >(argp6);
14161 }
14162 if (obj6) {
14163 {
14164 arg7 = wxString_in_helper(obj6);
14165 if (arg7 == NULL) SWIG_fail;
14166 temp7 = true;
14167 }
14168 }
14169 {
14170 if (!wxPyCheckForApp()) SWIG_fail;
14171 PyThreadState* __tstate = wxPyBeginAllowThreads();
14172 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
14173 wxPyEndAllowThreads(__tstate);
14174 if (PyErr_Occurred()) SWIG_fail;
14175 }
14176 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_NEW | 0 );
14177 {
14178 if (temp7)
14179 delete arg7;
14180 }
14181 return resultobj;
14182fail:
14183 {
14184 if (temp7)
14185 delete arg7;
14186 }
14187 return NULL;
d14a1e28
RD
14188}
14189
14190
0085ce49
RD
14191SWIGINTERN PyObject *_wrap_new_PreScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14192 PyObject *resultobj = 0;
14193 wxScrollBar *result = 0 ;
14194
14195 if (!SWIG_Python_UnpackTuple(args,"new_PreScrollBar",0,0,0)) SWIG_fail;
14196 {
14197 if (!wxPyCheckForApp()) SWIG_fail;
14198 PyThreadState* __tstate = wxPyBeginAllowThreads();
14199 result = (wxScrollBar *)new wxScrollBar();
14200 wxPyEndAllowThreads(__tstate);
14201 if (PyErr_Occurred()) SWIG_fail;
14202 }
14203 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_OWN | 0 );
14204 return resultobj;
14205fail:
14206 return NULL;
14207}
14208
14209
14210SWIGINTERN PyObject *_wrap_ScrollBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14211 PyObject *resultobj = 0;
14212 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14213 wxWindow *arg2 = (wxWindow *) 0 ;
14214 int arg3 = (int) -1 ;
14215 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14216 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14217 wxSize const &arg5_defvalue = wxDefaultSize ;
14218 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14219 long arg6 = (long) wxSB_HORIZONTAL ;
14220 wxValidator const &arg7_defvalue = wxDefaultValidator ;
14221 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
14222 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
14223 wxString *arg8 = (wxString *) &arg8_defvalue ;
14224 bool result;
14225 void *argp1 = 0 ;
14226 int res1 = 0 ;
14227 void *argp2 = 0 ;
14228 int res2 = 0 ;
14229 int val3 ;
14230 int ecode3 = 0 ;
14231 wxPoint temp4 ;
14232 wxSize temp5 ;
14233 long val6 ;
14234 int ecode6 = 0 ;
14235 void *argp7 = 0 ;
14236 int res7 = 0 ;
14237 bool temp8 = false ;
14238 PyObject * obj0 = 0 ;
14239 PyObject * obj1 = 0 ;
14240 PyObject * obj2 = 0 ;
14241 PyObject * obj3 = 0 ;
14242 PyObject * obj4 = 0 ;
14243 PyObject * obj5 = 0 ;
14244 PyObject * obj6 = 0 ;
14245 PyObject * obj7 = 0 ;
14246 char * kwnames[] = {
14247 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14248 };
14249
14250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
14251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14252 if (!SWIG_IsOK(res1)) {
14253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_Create" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14254 }
14255 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14256 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14257 if (!SWIG_IsOK(res2)) {
14258 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrollBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14259 }
14260 arg2 = reinterpret_cast< wxWindow * >(argp2);
14261 if (obj2) {
14262 ecode3 = SWIG_AsVal_int(obj2, &val3);
14263 if (!SWIG_IsOK(ecode3)) {
14264 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrollBar_Create" "', expected argument " "3"" of type '" "int""'");
14265 }
14266 arg3 = static_cast< int >(val3);
14267 }
14268 if (obj3) {
093d3ff1 14269 {
0085ce49
RD
14270 arg4 = &temp4;
14271 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 14272 }
0085ce49
RD
14273 }
14274 if (obj4) {
d14a1e28 14275 {
0085ce49
RD
14276 arg5 = &temp5;
14277 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14278 }
14279 }
14280 if (obj5) {
14281 ecode6 = SWIG_AsVal_long(obj5, &val6);
14282 if (!SWIG_IsOK(ecode6)) {
14283 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrollBar_Create" "', expected argument " "6"" of type '" "long""'");
14284 }
14285 arg6 = static_cast< long >(val6);
14286 }
14287 if (obj6) {
14288 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
14289 if (!SWIG_IsOK(res7)) {
14290 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 14291 }
0085ce49
RD
14292 if (!argp7) {
14293 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14294 }
14295 arg7 = reinterpret_cast< wxValidator * >(argp7);
14296 }
14297 if (obj7) {
4f89f6a3 14298 {
0085ce49
RD
14299 arg8 = wxString_in_helper(obj7);
14300 if (arg8 == NULL) SWIG_fail;
14301 temp8 = true;
4f89f6a3 14302 }
0085ce49
RD
14303 }
14304 {
14305 PyThreadState* __tstate = wxPyBeginAllowThreads();
14306 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
14307 wxPyEndAllowThreads(__tstate);
14308 if (PyErr_Occurred()) SWIG_fail;
14309 }
14310 {
14311 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14312 }
14313 {
14314 if (temp8)
14315 delete arg8;
14316 }
14317 return resultobj;
14318fail:
14319 {
14320 if (temp8)
14321 delete arg8;
14322 }
14323 return NULL;
d14a1e28
RD
14324}
14325
14326
0085ce49
RD
14327SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14328 PyObject *resultobj = 0;
14329 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14330 int result;
14331 void *argp1 = 0 ;
14332 int res1 = 0 ;
14333 PyObject *swig_obj[1] ;
14334
14335 if (!args) SWIG_fail;
14336 swig_obj[0] = args;
14337 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14338 if (!SWIG_IsOK(res1)) {
14339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14340 }
14341 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14342 {
14343 PyThreadState* __tstate = wxPyBeginAllowThreads();
14344 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
14345 wxPyEndAllowThreads(__tstate);
14346 if (PyErr_Occurred()) SWIG_fail;
14347 }
14348 resultobj = SWIG_From_int(static_cast< int >(result));
14349 return resultobj;
14350fail:
14351 return NULL;
d14a1e28
RD
14352}
14353
14354
0085ce49
RD
14355SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14356 PyObject *resultobj = 0;
14357 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14358 int result;
14359 void *argp1 = 0 ;
14360 int res1 = 0 ;
14361 PyObject *swig_obj[1] ;
14362
14363 if (!args) SWIG_fail;
14364 swig_obj[0] = args;
14365 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14366 if (!SWIG_IsOK(res1)) {
14367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14368 }
14369 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14370 {
14371 PyThreadState* __tstate = wxPyBeginAllowThreads();
14372 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
14373 wxPyEndAllowThreads(__tstate);
14374 if (PyErr_Occurred()) SWIG_fail;
14375 }
14376 resultobj = SWIG_From_int(static_cast< int >(result));
14377 return resultobj;
14378fail:
14379 return NULL;
d14a1e28
RD
14380}
14381
14382
0085ce49
RD
14383SWIGINTERN PyObject *_wrap_ScrollBar_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14384 PyObject *resultobj = 0;
14385 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14386 int result;
14387 void *argp1 = 0 ;
14388 int res1 = 0 ;
14389 PyObject *swig_obj[1] ;
14390
14391 if (!args) SWIG_fail;
14392 swig_obj[0] = args;
14393 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14394 if (!SWIG_IsOK(res1)) {
14395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetPageSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14396 }
14397 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14398 {
14399 PyThreadState* __tstate = wxPyBeginAllowThreads();
14400 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
14401 wxPyEndAllowThreads(__tstate);
14402 if (PyErr_Occurred()) SWIG_fail;
14403 }
14404 resultobj = SWIG_From_int(static_cast< int >(result));
14405 return resultobj;
14406fail:
14407 return NULL;
d14a1e28
RD
14408}
14409
14410
0085ce49
RD
14411SWIGINTERN PyObject *_wrap_ScrollBar_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14412 PyObject *resultobj = 0;
14413 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14414 int result;
14415 void *argp1 = 0 ;
14416 int res1 = 0 ;
14417 PyObject *swig_obj[1] ;
14418
14419 if (!args) SWIG_fail;
14420 swig_obj[0] = args;
14421 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14422 if (!SWIG_IsOK(res1)) {
14423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetRange" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14424 }
14425 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14426 {
14427 PyThreadState* __tstate = wxPyBeginAllowThreads();
14428 result = (int)((wxScrollBar const *)arg1)->GetRange();
14429 wxPyEndAllowThreads(__tstate);
14430 if (PyErr_Occurred()) SWIG_fail;
14431 }
14432 resultobj = SWIG_From_int(static_cast< int >(result));
14433 return resultobj;
14434fail:
14435 return NULL;
d14a1e28
RD
14436}
14437
14438
0085ce49
RD
14439SWIGINTERN PyObject *_wrap_ScrollBar_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14440 PyObject *resultobj = 0;
14441 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14442 bool result;
14443 void *argp1 = 0 ;
14444 int res1 = 0 ;
14445 PyObject *swig_obj[1] ;
14446
14447 if (!args) SWIG_fail;
14448 swig_obj[0] = args;
14449 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14450 if (!SWIG_IsOK(res1)) {
14451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_IsVertical" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14452 }
14453 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14454 {
14455 PyThreadState* __tstate = wxPyBeginAllowThreads();
14456 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
14457 wxPyEndAllowThreads(__tstate);
14458 if (PyErr_Occurred()) SWIG_fail;
14459 }
14460 {
14461 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14462 }
14463 return resultobj;
14464fail:
14465 return NULL;
14466}
14467
14468
14469SWIGINTERN PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14470 PyObject *resultobj = 0;
14471 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14472 int arg2 ;
14473 void *argp1 = 0 ;
14474 int res1 = 0 ;
14475 int val2 ;
14476 int ecode2 = 0 ;
14477 PyObject * obj0 = 0 ;
14478 PyObject * obj1 = 0 ;
14479 char * kwnames[] = {
14480 (char *) "self",(char *) "viewStart", NULL
14481 };
14482
14483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) SWIG_fail;
14484 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14485 if (!SWIG_IsOK(res1)) {
14486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14487 }
14488 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14489 ecode2 = SWIG_AsVal_int(obj1, &val2);
14490 if (!SWIG_IsOK(ecode2)) {
14491 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "2"" of type '" "int""'");
14492 }
14493 arg2 = static_cast< int >(val2);
14494 {
14495 PyThreadState* __tstate = wxPyBeginAllowThreads();
14496 (arg1)->SetThumbPosition(arg2);
14497 wxPyEndAllowThreads(__tstate);
14498 if (PyErr_Occurred()) SWIG_fail;
14499 }
14500 resultobj = SWIG_Py_Void();
14501 return resultobj;
14502fail:
14503 return NULL;
14504}
14505
14506
14507SWIGINTERN PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14508 PyObject *resultobj = 0;
14509 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14510 SwigValueWrapper<wxVisualAttributes > result;
14511 int val1 ;
14512 int ecode1 = 0 ;
14513 PyObject * obj0 = 0 ;
14514 char * kwnames[] = {
14515 (char *) "variant", NULL
14516 };
14517
14518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14519 if (obj0) {
14520 ecode1 = SWIG_AsVal_int(obj0, &val1);
14521 if (!SWIG_IsOK(ecode1)) {
14522 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrollBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14523 }
14524 arg1 = static_cast< wxWindowVariant >(val1);
14525 }
14526 {
14527 if (!wxPyCheckForApp()) SWIG_fail;
14528 PyThreadState* __tstate = wxPyBeginAllowThreads();
14529 result = wxScrollBar::GetClassDefaultAttributes(arg1);
14530 wxPyEndAllowThreads(__tstate);
14531 if (PyErr_Occurred()) SWIG_fail;
14532 }
14533 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14534 return resultobj;
14535fail:
14536 return NULL;
d14a1e28
RD
14537}
14538
14539
0085ce49
RD
14540SWIGINTERN PyObject *ScrollBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14541 PyObject *obj;
14542 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14543 SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollBar, SWIG_NewClientData(obj));
14544 return SWIG_Py_Void();
d14a1e28
RD
14545}
14546
0085ce49
RD
14547SWIGINTERN PyObject *ScrollBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14548 return SWIG_Python_InitShadowInstance(args);
14549}
d14a1e28 14550
0085ce49
RD
14551SWIGINTERN int SPIN_BUTTON_NAME_set(PyObject *) {
14552 SWIG_Error(SWIG_AttributeError,"Variable SPIN_BUTTON_NAME is read-only.");
14553 return 1;
d14a1e28
RD
14554}
14555
14556
0085ce49
RD
14557SWIGINTERN PyObject *SPIN_BUTTON_NAME_get(void) {
14558 PyObject *pyobj = 0;
14559
14560 {
14561#if wxUSE_UNICODE
14562 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14563#else
14564 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14565#endif
14566 }
14567 return pyobj;
d14a1e28
RD
14568}
14569
14570
0085ce49
RD
14571SWIGINTERN int SpinCtrlNameStr_set(PyObject *) {
14572 SWIG_Error(SWIG_AttributeError,"Variable SpinCtrlNameStr is read-only.");
14573 return 1;
d14a1e28
RD
14574}
14575
14576
0085ce49
RD
14577SWIGINTERN PyObject *SpinCtrlNameStr_get(void) {
14578 PyObject *pyobj = 0;
14579
14580 {
14581#if wxUSE_UNICODE
14582 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14583#else
14584 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14585#endif
14586 }
14587 return pyobj;
14588}
14589
14590
14591SWIGINTERN PyObject *_wrap_new_SpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14592 PyObject *resultobj = 0;
14593 wxWindow *arg1 = (wxWindow *) 0 ;
14594 int arg2 = (int) -1 ;
14595 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14596 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14597 wxSize const &arg4_defvalue = wxDefaultSize ;
14598 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14599 long arg5 = (long) wxSP_HORIZONTAL ;
14600 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
14601 wxString *arg6 = (wxString *) &arg6_defvalue ;
14602 wxSpinButton *result = 0 ;
14603 void *argp1 = 0 ;
14604 int res1 = 0 ;
14605 int val2 ;
14606 int ecode2 = 0 ;
14607 wxPoint temp3 ;
14608 wxSize temp4 ;
14609 long val5 ;
14610 int ecode5 = 0 ;
14611 bool temp6 = false ;
14612 PyObject * obj0 = 0 ;
14613 PyObject * obj1 = 0 ;
14614 PyObject * obj2 = 0 ;
14615 PyObject * obj3 = 0 ;
14616 PyObject * obj4 = 0 ;
14617 PyObject * obj5 = 0 ;
14618 char * kwnames[] = {
14619 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14620 };
14621
14622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
14623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14624 if (!SWIG_IsOK(res1)) {
14625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinButton" "', expected argument " "1"" of type '" "wxWindow *""'");
14626 }
14627 arg1 = reinterpret_cast< wxWindow * >(argp1);
14628 if (obj1) {
14629 ecode2 = SWIG_AsVal_int(obj1, &val2);
14630 if (!SWIG_IsOK(ecode2)) {
14631 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinButton" "', expected argument " "2"" of type '" "int""'");
14632 }
14633 arg2 = static_cast< int >(val2);
14634 }
14635 if (obj2) {
093d3ff1 14636 {
0085ce49
RD
14637 arg3 = &temp3;
14638 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 14639 }
0085ce49
RD
14640 }
14641 if (obj3) {
d14a1e28 14642 {
0085ce49
RD
14643 arg4 = &temp4;
14644 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 14645 }
0085ce49
RD
14646 }
14647 if (obj4) {
14648 ecode5 = SWIG_AsVal_long(obj4, &val5);
14649 if (!SWIG_IsOK(ecode5)) {
14650 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpinButton" "', expected argument " "5"" of type '" "long""'");
14651 }
14652 arg5 = static_cast< long >(val5);
14653 }
14654 if (obj5) {
d14a1e28 14655 {
0085ce49
RD
14656 arg6 = wxString_in_helper(obj5);
14657 if (arg6 == NULL) SWIG_fail;
14658 temp6 = true;
d14a1e28 14659 }
0085ce49
RD
14660 }
14661 {
14662 if (!wxPyCheckForApp()) SWIG_fail;
14663 PyThreadState* __tstate = wxPyBeginAllowThreads();
14664 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14665 wxPyEndAllowThreads(__tstate);
14666 if (PyErr_Occurred()) SWIG_fail;
14667 }
14668 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_NEW | 0 );
14669 {
14670 if (temp6)
14671 delete arg6;
14672 }
14673 return resultobj;
14674fail:
14675 {
14676 if (temp6)
14677 delete arg6;
14678 }
14679 return NULL;
d14a1e28
RD
14680}
14681
14682
0085ce49
RD
14683SWIGINTERN PyObject *_wrap_new_PreSpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14684 PyObject *resultobj = 0;
14685 wxSpinButton *result = 0 ;
14686
14687 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinButton",0,0,0)) SWIG_fail;
14688 {
14689 if (!wxPyCheckForApp()) SWIG_fail;
14690 PyThreadState* __tstate = wxPyBeginAllowThreads();
14691 result = (wxSpinButton *)new wxSpinButton();
14692 wxPyEndAllowThreads(__tstate);
14693 if (PyErr_Occurred()) SWIG_fail;
14694 }
14695 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_OWN | 0 );
14696 return resultobj;
14697fail:
14698 return NULL;
14699}
14700
14701
14702SWIGINTERN PyObject *_wrap_SpinButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14703 PyObject *resultobj = 0;
14704 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14705 wxWindow *arg2 = (wxWindow *) 0 ;
14706 int arg3 = (int) -1 ;
14707 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14708 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14709 wxSize const &arg5_defvalue = wxDefaultSize ;
14710 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14711 long arg6 = (long) wxSP_HORIZONTAL ;
14712 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
14713 wxString *arg7 = (wxString *) &arg7_defvalue ;
14714 bool result;
14715 void *argp1 = 0 ;
14716 int res1 = 0 ;
14717 void *argp2 = 0 ;
14718 int res2 = 0 ;
14719 int val3 ;
14720 int ecode3 = 0 ;
14721 wxPoint temp4 ;
14722 wxSize temp5 ;
14723 long val6 ;
14724 int ecode6 = 0 ;
14725 bool temp7 = false ;
14726 PyObject * obj0 = 0 ;
14727 PyObject * obj1 = 0 ;
14728 PyObject * obj2 = 0 ;
14729 PyObject * obj3 = 0 ;
14730 PyObject * obj4 = 0 ;
14731 PyObject * obj5 = 0 ;
14732 PyObject * obj6 = 0 ;
14733 char * kwnames[] = {
14734 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14735 };
14736
14737 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14738 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14739 if (!SWIG_IsOK(res1)) {
14740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_Create" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14741 }
14742 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14743 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14744 if (!SWIG_IsOK(res2)) {
14745 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14746 }
14747 arg2 = reinterpret_cast< wxWindow * >(argp2);
14748 if (obj2) {
14749 ecode3 = SWIG_AsVal_int(obj2, &val3);
14750 if (!SWIG_IsOK(ecode3)) {
14751 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_Create" "', expected argument " "3"" of type '" "int""'");
14752 }
14753 arg3 = static_cast< int >(val3);
14754 }
14755 if (obj3) {
d14a1e28 14756 {
0085ce49
RD
14757 arg4 = &temp4;
14758 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 14759 }
0085ce49
RD
14760 }
14761 if (obj4) {
d14a1e28 14762 {
0085ce49
RD
14763 arg5 = &temp5;
14764 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 14765 }
0085ce49
RD
14766 }
14767 if (obj5) {
14768 ecode6 = SWIG_AsVal_long(obj5, &val6);
14769 if (!SWIG_IsOK(ecode6)) {
14770 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SpinButton_Create" "', expected argument " "6"" of type '" "long""'");
14771 }
14772 arg6 = static_cast< long >(val6);
14773 }
14774 if (obj6) {
d14a1e28 14775 {
0085ce49
RD
14776 arg7 = wxString_in_helper(obj6);
14777 if (arg7 == NULL) SWIG_fail;
14778 temp7 = true;
d14a1e28 14779 }
0085ce49
RD
14780 }
14781 {
14782 PyThreadState* __tstate = wxPyBeginAllowThreads();
14783 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
14784 wxPyEndAllowThreads(__tstate);
14785 if (PyErr_Occurred()) SWIG_fail;
14786 }
14787 {
14788 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14789 }
14790 {
14791 if (temp7)
14792 delete arg7;
14793 }
14794 return resultobj;
14795fail:
14796 {
14797 if (temp7)
14798 delete arg7;
14799 }
14800 return NULL;
d14a1e28
RD
14801}
14802
14803
0085ce49
RD
14804SWIGINTERN PyObject *_wrap_SpinButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14805 PyObject *resultobj = 0;
14806 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14807 int result;
14808 void *argp1 = 0 ;
14809 int res1 = 0 ;
14810 PyObject *swig_obj[1] ;
14811
14812 if (!args) SWIG_fail;
14813 swig_obj[0] = args;
14814 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14815 if (!SWIG_IsOK(res1)) {
14816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetValue" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14817 }
14818 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14819 {
14820 PyThreadState* __tstate = wxPyBeginAllowThreads();
14821 result = (int)((wxSpinButton const *)arg1)->GetValue();
14822 wxPyEndAllowThreads(__tstate);
14823 if (PyErr_Occurred()) SWIG_fail;
14824 }
14825 resultobj = SWIG_From_int(static_cast< int >(result));
14826 return resultobj;
14827fail:
14828 return NULL;
d14a1e28
RD
14829}
14830
14831
0085ce49
RD
14832SWIGINTERN PyObject *_wrap_SpinButton_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14833 PyObject *resultobj = 0;
14834 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14835 int result;
14836 void *argp1 = 0 ;
14837 int res1 = 0 ;
14838 PyObject *swig_obj[1] ;
14839
14840 if (!args) SWIG_fail;
14841 swig_obj[0] = args;
14842 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14843 if (!SWIG_IsOK(res1)) {
14844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMin" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14845 }
14846 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14847 {
14848 PyThreadState* __tstate = wxPyBeginAllowThreads();
14849 result = (int)((wxSpinButton const *)arg1)->GetMin();
14850 wxPyEndAllowThreads(__tstate);
14851 if (PyErr_Occurred()) SWIG_fail;
14852 }
14853 resultobj = SWIG_From_int(static_cast< int >(result));
14854 return resultobj;
14855fail:
14856 return NULL;
d14a1e28
RD
14857}
14858
14859
0085ce49
RD
14860SWIGINTERN PyObject *_wrap_SpinButton_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14861 PyObject *resultobj = 0;
14862 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14863 int result;
14864 void *argp1 = 0 ;
14865 int res1 = 0 ;
14866 PyObject *swig_obj[1] ;
14867
14868 if (!args) SWIG_fail;
14869 swig_obj[0] = args;
14870 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14871 if (!SWIG_IsOK(res1)) {
14872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMax" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14873 }
14874 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14875 {
14876 PyThreadState* __tstate = wxPyBeginAllowThreads();
14877 result = (int)((wxSpinButton const *)arg1)->GetMax();
14878 wxPyEndAllowThreads(__tstate);
14879 if (PyErr_Occurred()) SWIG_fail;
14880 }
14881 resultobj = SWIG_From_int(static_cast< int >(result));
14882 return resultobj;
14883fail:
14884 return NULL;
14885}
14886
14887
14888SWIGINTERN PyObject *_wrap_SpinButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14889 PyObject *resultobj = 0;
14890 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14891 int arg2 ;
14892 void *argp1 = 0 ;
14893 int res1 = 0 ;
14894 int val2 ;
14895 int ecode2 = 0 ;
14896 PyObject * obj0 = 0 ;
14897 PyObject * obj1 = 0 ;
14898 char * kwnames[] = {
14899 (char *) "self",(char *) "val", NULL
14900 };
14901
14902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
14903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14904 if (!SWIG_IsOK(res1)) {
14905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetValue" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14906 }
14907 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14908 ecode2 = SWIG_AsVal_int(obj1, &val2);
14909 if (!SWIG_IsOK(ecode2)) {
14910 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetValue" "', expected argument " "2"" of type '" "int""'");
14911 }
14912 arg2 = static_cast< int >(val2);
14913 {
14914 PyThreadState* __tstate = wxPyBeginAllowThreads();
14915 (arg1)->SetValue(arg2);
14916 wxPyEndAllowThreads(__tstate);
14917 if (PyErr_Occurred()) SWIG_fail;
14918 }
14919 resultobj = SWIG_Py_Void();
14920 return resultobj;
14921fail:
14922 return NULL;
14923}
14924
14925
14926SWIGINTERN PyObject *_wrap_SpinButton_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14927 PyObject *resultobj = 0;
14928 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14929 int arg2 ;
14930 void *argp1 = 0 ;
14931 int res1 = 0 ;
14932 int val2 ;
14933 int ecode2 = 0 ;
14934 PyObject * obj0 = 0 ;
14935 PyObject * obj1 = 0 ;
14936 char * kwnames[] = {
14937 (char *) "self",(char *) "minVal", NULL
14938 };
14939
14940 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
14941 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14942 if (!SWIG_IsOK(res1)) {
14943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMin" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14944 }
14945 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14946 ecode2 = SWIG_AsVal_int(obj1, &val2);
14947 if (!SWIG_IsOK(ecode2)) {
14948 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMin" "', expected argument " "2"" of type '" "int""'");
14949 }
14950 arg2 = static_cast< int >(val2);
14951 {
14952 PyThreadState* __tstate = wxPyBeginAllowThreads();
14953 (arg1)->SetMin(arg2);
14954 wxPyEndAllowThreads(__tstate);
14955 if (PyErr_Occurred()) SWIG_fail;
14956 }
14957 resultobj = SWIG_Py_Void();
14958 return resultobj;
14959fail:
14960 return NULL;
14961}
14962
14963
14964SWIGINTERN PyObject *_wrap_SpinButton_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14965 PyObject *resultobj = 0;
14966 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14967 int arg2 ;
14968 void *argp1 = 0 ;
14969 int res1 = 0 ;
14970 int val2 ;
14971 int ecode2 = 0 ;
14972 PyObject * obj0 = 0 ;
14973 PyObject * obj1 = 0 ;
14974 char * kwnames[] = {
14975 (char *) "self",(char *) "maxVal", NULL
14976 };
14977
14978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
14979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14980 if (!SWIG_IsOK(res1)) {
14981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMax" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14982 }
14983 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14984 ecode2 = SWIG_AsVal_int(obj1, &val2);
14985 if (!SWIG_IsOK(ecode2)) {
14986 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMax" "', expected argument " "2"" of type '" "int""'");
14987 }
14988 arg2 = static_cast< int >(val2);
14989 {
14990 PyThreadState* __tstate = wxPyBeginAllowThreads();
14991 (arg1)->SetMax(arg2);
14992 wxPyEndAllowThreads(__tstate);
14993 if (PyErr_Occurred()) SWIG_fail;
14994 }
14995 resultobj = SWIG_Py_Void();
14996 return resultobj;
14997fail:
14998 return NULL;
14999}
15000
15001
15002SWIGINTERN PyObject *_wrap_SpinButton_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15003 PyObject *resultobj = 0;
15004 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15005 int arg2 ;
15006 int arg3 ;
15007 void *argp1 = 0 ;
15008 int res1 = 0 ;
15009 int val2 ;
15010 int ecode2 = 0 ;
15011 int val3 ;
15012 int ecode3 = 0 ;
15013 PyObject * obj0 = 0 ;
15014 PyObject * obj1 = 0 ;
15015 PyObject * obj2 = 0 ;
15016 char * kwnames[] = {
15017 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15018 };
15019
15020 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15022 if (!SWIG_IsOK(res1)) {
15023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetRange" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15024 }
15025 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15026 ecode2 = SWIG_AsVal_int(obj1, &val2);
15027 if (!SWIG_IsOK(ecode2)) {
15028 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetRange" "', expected argument " "2"" of type '" "int""'");
15029 }
15030 arg2 = static_cast< int >(val2);
15031 ecode3 = SWIG_AsVal_int(obj2, &val3);
15032 if (!SWIG_IsOK(ecode3)) {
15033 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_SetRange" "', expected argument " "3"" of type '" "int""'");
15034 }
15035 arg3 = static_cast< int >(val3);
15036 {
15037 PyThreadState* __tstate = wxPyBeginAllowThreads();
15038 (arg1)->SetRange(arg2,arg3);
15039 wxPyEndAllowThreads(__tstate);
15040 if (PyErr_Occurred()) SWIG_fail;
15041 }
15042 resultobj = SWIG_Py_Void();
15043 return resultobj;
15044fail:
15045 return NULL;
d14a1e28
RD
15046}
15047
15048
0085ce49
RD
15049SWIGINTERN PyObject *_wrap_SpinButton_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15050 PyObject *resultobj = 0;
15051 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15052 bool result;
15053 void *argp1 = 0 ;
15054 int res1 = 0 ;
15055 PyObject *swig_obj[1] ;
15056
15057 if (!args) SWIG_fail;
15058 swig_obj[0] = args;
15059 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15060 if (!SWIG_IsOK(res1)) {
15061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_IsVertical" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15062 }
15063 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15064 {
15065 PyThreadState* __tstate = wxPyBeginAllowThreads();
15066 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
15067 wxPyEndAllowThreads(__tstate);
15068 if (PyErr_Occurred()) SWIG_fail;
15069 }
15070 {
15071 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15072 }
15073 return resultobj;
15074fail:
15075 return NULL;
d14a1e28
RD
15076}
15077
15078
0085ce49
RD
15079SWIGINTERN PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15080 PyObject *resultobj = 0;
15081 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15082 SwigValueWrapper<wxVisualAttributes > result;
15083 int val1 ;
15084 int ecode1 = 0 ;
15085 PyObject * obj0 = 0 ;
15086 char * kwnames[] = {
15087 (char *) "variant", NULL
15088 };
15089
15090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15091 if (obj0) {
15092 ecode1 = SWIG_AsVal_int(obj0, &val1);
15093 if (!SWIG_IsOK(ecode1)) {
15094 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15095 }
15096 arg1 = static_cast< wxWindowVariant >(val1);
15097 }
15098 {
15099 if (!wxPyCheckForApp()) SWIG_fail;
15100 PyThreadState* __tstate = wxPyBeginAllowThreads();
15101 result = wxSpinButton::GetClassDefaultAttributes(arg1);
15102 wxPyEndAllowThreads(__tstate);
15103 if (PyErr_Occurred()) SWIG_fail;
15104 }
15105 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15106 return resultobj;
15107fail:
15108 return NULL;
15109}
15110
15111
15112SWIGINTERN PyObject *SpinButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15113 PyObject *obj;
15114 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15115 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinButton, SWIG_NewClientData(obj));
15116 return SWIG_Py_Void();
15117}
15118
15119SWIGINTERN PyObject *SpinButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15120 return SWIG_Python_InitShadowInstance(args);
15121}
15122
15123SWIGINTERN PyObject *_wrap_new_SpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15124 PyObject *resultobj = 0;
15125 wxWindow *arg1 = (wxWindow *) 0 ;
15126 int arg2 = (int) -1 ;
15127 wxString const &arg3_defvalue = wxPyEmptyString ;
15128 wxString *arg3 = (wxString *) &arg3_defvalue ;
15129 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15130 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15131 wxSize const &arg5_defvalue = wxDefaultSize ;
15132 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15133 long arg6 = (long) wxSP_ARROW_KEYS ;
15134 int arg7 = (int) 0 ;
15135 int arg8 = (int) 100 ;
15136 int arg9 = (int) 0 ;
15137 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
15138 wxString *arg10 = (wxString *) &arg10_defvalue ;
15139 wxSpinCtrl *result = 0 ;
15140 void *argp1 = 0 ;
15141 int res1 = 0 ;
15142 int val2 ;
15143 int ecode2 = 0 ;
15144 bool temp3 = false ;
15145 wxPoint temp4 ;
15146 wxSize temp5 ;
15147 long val6 ;
15148 int ecode6 = 0 ;
15149 int val7 ;
15150 int ecode7 = 0 ;
15151 int val8 ;
15152 int ecode8 = 0 ;
15153 int val9 ;
15154 int ecode9 = 0 ;
15155 bool temp10 = false ;
15156 PyObject * obj0 = 0 ;
15157 PyObject * obj1 = 0 ;
15158 PyObject * obj2 = 0 ;
15159 PyObject * obj3 = 0 ;
15160 PyObject * obj4 = 0 ;
15161 PyObject * obj5 = 0 ;
15162 PyObject * obj6 = 0 ;
15163 PyObject * obj7 = 0 ;
15164 PyObject * obj8 = 0 ;
15165 PyObject * obj9 = 0 ;
15166 char * kwnames[] = {
15167 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15168 };
15169
15170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15172 if (!SWIG_IsOK(res1)) {
15173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
15174 }
15175 arg1 = reinterpret_cast< wxWindow * >(argp1);
15176 if (obj1) {
15177 ecode2 = SWIG_AsVal_int(obj1, &val2);
15178 if (!SWIG_IsOK(ecode2)) {
15179 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinCtrl" "', expected argument " "2"" of type '" "int""'");
15180 }
15181 arg2 = static_cast< int >(val2);
15182 }
15183 if (obj2) {
093d3ff1 15184 {
0085ce49
RD
15185 arg3 = wxString_in_helper(obj2);
15186 if (arg3 == NULL) SWIG_fail;
15187 temp3 = true;
093d3ff1 15188 }
0085ce49
RD
15189 }
15190 if (obj3) {
093d3ff1 15191 {
0085ce49
RD
15192 arg4 = &temp4;
15193 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 15194 }
0085ce49
RD
15195 }
15196 if (obj4) {
d14a1e28 15197 {
0085ce49
RD
15198 arg5 = &temp5;
15199 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 15200 }
0085ce49
RD
15201 }
15202 if (obj5) {
15203 ecode6 = SWIG_AsVal_long(obj5, &val6);
15204 if (!SWIG_IsOK(ecode6)) {
15205 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpinCtrl" "', expected argument " "6"" of type '" "long""'");
15206 }
15207 arg6 = static_cast< long >(val6);
15208 }
15209 if (obj6) {
15210 ecode7 = SWIG_AsVal_int(obj6, &val7);
15211 if (!SWIG_IsOK(ecode7)) {
15212 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpinCtrl" "', expected argument " "7"" of type '" "int""'");
15213 }
15214 arg7 = static_cast< int >(val7);
15215 }
15216 if (obj7) {
15217 ecode8 = SWIG_AsVal_int(obj7, &val8);
15218 if (!SWIG_IsOK(ecode8)) {
15219 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SpinCtrl" "', expected argument " "8"" of type '" "int""'");
15220 }
15221 arg8 = static_cast< int >(val8);
15222 }
15223 if (obj8) {
15224 ecode9 = SWIG_AsVal_int(obj8, &val9);
15225 if (!SWIG_IsOK(ecode9)) {
15226 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpinCtrl" "', expected argument " "9"" of type '" "int""'");
15227 }
15228 arg9 = static_cast< int >(val9);
15229 }
15230 if (obj9) {
d14a1e28 15231 {
0085ce49
RD
15232 arg10 = wxString_in_helper(obj9);
15233 if (arg10 == NULL) SWIG_fail;
15234 temp10 = true;
d14a1e28 15235 }
0085ce49
RD
15236 }
15237 {
15238 if (!wxPyCheckForApp()) SWIG_fail;
15239 PyThreadState* __tstate = wxPyBeginAllowThreads();
15240 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
15241 wxPyEndAllowThreads(__tstate);
15242 if (PyErr_Occurred()) SWIG_fail;
15243 }
15244 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_NEW | 0 );
15245 {
15246 if (temp3)
15247 delete arg3;
15248 }
15249 {
15250 if (temp10)
15251 delete arg10;
15252 }
15253 return resultobj;
15254fail:
15255 {
15256 if (temp3)
15257 delete arg3;
15258 }
15259 {
15260 if (temp10)
15261 delete arg10;
15262 }
15263 return NULL;
d14a1e28
RD
15264}
15265
15266
0085ce49
RD
15267SWIGINTERN PyObject *_wrap_new_PreSpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15268 PyObject *resultobj = 0;
15269 wxSpinCtrl *result = 0 ;
15270
15271 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinCtrl",0,0,0)) SWIG_fail;
15272 {
15273 if (!wxPyCheckForApp()) SWIG_fail;
15274 PyThreadState* __tstate = wxPyBeginAllowThreads();
15275 result = (wxSpinCtrl *)new wxSpinCtrl();
15276 wxPyEndAllowThreads(__tstate);
15277 if (PyErr_Occurred()) SWIG_fail;
15278 }
15279 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_OWN | 0 );
15280 return resultobj;
15281fail:
15282 return NULL;
15283}
15284
15285
15286SWIGINTERN PyObject *_wrap_SpinCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15287 PyObject *resultobj = 0;
15288 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15289 wxWindow *arg2 = (wxWindow *) 0 ;
15290 int arg3 = (int) -1 ;
15291 wxString const &arg4_defvalue = wxPyEmptyString ;
15292 wxString *arg4 = (wxString *) &arg4_defvalue ;
15293 wxPoint const &arg5_defvalue = wxDefaultPosition ;
15294 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
15295 wxSize const &arg6_defvalue = wxDefaultSize ;
15296 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
15297 long arg7 = (long) wxSP_ARROW_KEYS ;
15298 int arg8 = (int) 0 ;
15299 int arg9 = (int) 100 ;
15300 int arg10 = (int) 0 ;
15301 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
15302 wxString *arg11 = (wxString *) &arg11_defvalue ;
15303 bool result;
15304 void *argp1 = 0 ;
15305 int res1 = 0 ;
15306 void *argp2 = 0 ;
15307 int res2 = 0 ;
15308 int val3 ;
15309 int ecode3 = 0 ;
15310 bool temp4 = false ;
15311 wxPoint temp5 ;
15312 wxSize temp6 ;
15313 long val7 ;
15314 int ecode7 = 0 ;
15315 int val8 ;
15316 int ecode8 = 0 ;
15317 int val9 ;
15318 int ecode9 = 0 ;
15319 int val10 ;
15320 int ecode10 = 0 ;
15321 bool temp11 = false ;
15322 PyObject * obj0 = 0 ;
15323 PyObject * obj1 = 0 ;
15324 PyObject * obj2 = 0 ;
15325 PyObject * obj3 = 0 ;
15326 PyObject * obj4 = 0 ;
15327 PyObject * obj5 = 0 ;
15328 PyObject * obj6 = 0 ;
15329 PyObject * obj7 = 0 ;
15330 PyObject * obj8 = 0 ;
15331 PyObject * obj9 = 0 ;
15332 PyObject * obj10 = 0 ;
15333 char * kwnames[] = {
15334 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15335 };
15336
15337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
15338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15339 if (!SWIG_IsOK(res1)) {
15340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_Create" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15341 }
15342 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15343 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
15344 if (!SWIG_IsOK(res2)) {
15345 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
15346 }
15347 arg2 = reinterpret_cast< wxWindow * >(argp2);
15348 if (obj2) {
15349 ecode3 = SWIG_AsVal_int(obj2, &val3);
15350 if (!SWIG_IsOK(ecode3)) {
15351 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_Create" "', expected argument " "3"" of type '" "int""'");
15352 }
15353 arg3 = static_cast< int >(val3);
15354 }
15355 if (obj3) {
093d3ff1 15356 {
0085ce49
RD
15357 arg4 = wxString_in_helper(obj3);
15358 if (arg4 == NULL) SWIG_fail;
15359 temp4 = true;
093d3ff1 15360 }
0085ce49
RD
15361 }
15362 if (obj4) {
d14a1e28 15363 {
0085ce49
RD
15364 arg5 = &temp5;
15365 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 15366 }
0085ce49
RD
15367 }
15368 if (obj5) {
093d3ff1 15369 {
0085ce49
RD
15370 arg6 = &temp6;
15371 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d14a1e28 15372 }
0085ce49
RD
15373 }
15374 if (obj6) {
15375 ecode7 = SWIG_AsVal_long(obj6, &val7);
15376 if (!SWIG_IsOK(ecode7)) {
15377 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SpinCtrl_Create" "', expected argument " "7"" of type '" "long""'");
15378 }
15379 arg7 = static_cast< long >(val7);
15380 }
15381 if (obj7) {
15382 ecode8 = SWIG_AsVal_int(obj7, &val8);
15383 if (!SWIG_IsOK(ecode8)) {
15384 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "SpinCtrl_Create" "', expected argument " "8"" of type '" "int""'");
15385 }
15386 arg8 = static_cast< int >(val8);
15387 }
15388 if (obj8) {
15389 ecode9 = SWIG_AsVal_int(obj8, &val9);
15390 if (!SWIG_IsOK(ecode9)) {
15391 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "SpinCtrl_Create" "', expected argument " "9"" of type '" "int""'");
15392 }
15393 arg9 = static_cast< int >(val9);
15394 }
15395 if (obj9) {
15396 ecode10 = SWIG_AsVal_int(obj9, &val10);
15397 if (!SWIG_IsOK(ecode10)) {
15398 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "SpinCtrl_Create" "', expected argument " "10"" of type '" "int""'");
15399 }
15400 arg10 = static_cast< int >(val10);
15401 }
15402 if (obj10) {
d14a1e28 15403 {
0085ce49
RD
15404 arg11 = wxString_in_helper(obj10);
15405 if (arg11 == NULL) SWIG_fail;
15406 temp11 = true;
d14a1e28 15407 }
0085ce49
RD
15408 }
15409 {
15410 PyThreadState* __tstate = wxPyBeginAllowThreads();
15411 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
15412 wxPyEndAllowThreads(__tstate);
15413 if (PyErr_Occurred()) SWIG_fail;
15414 }
15415 {
15416 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15417 }
15418 {
15419 if (temp4)
15420 delete arg4;
15421 }
15422 {
15423 if (temp11)
15424 delete arg11;
15425 }
15426 return resultobj;
15427fail:
15428 {
15429 if (temp4)
15430 delete arg4;
15431 }
15432 {
15433 if (temp11)
15434 delete arg11;
15435 }
15436 return NULL;
d14a1e28
RD
15437}
15438
15439
0085ce49
RD
15440SWIGINTERN PyObject *_wrap_SpinCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15441 PyObject *resultobj = 0;
15442 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15443 int result;
15444 void *argp1 = 0 ;
15445 int res1 = 0 ;
15446 PyObject *swig_obj[1] ;
15447
15448 if (!args) SWIG_fail;
15449 swig_obj[0] = args;
15450 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15451 if (!SWIG_IsOK(res1)) {
15452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetValue" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15453 }
15454 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15455 {
15456 PyThreadState* __tstate = wxPyBeginAllowThreads();
15457 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
15458 wxPyEndAllowThreads(__tstate);
15459 if (PyErr_Occurred()) SWIG_fail;
15460 }
15461 resultobj = SWIG_From_int(static_cast< int >(result));
15462 return resultobj;
15463fail:
15464 return NULL;
15465}
15466
15467
15468SWIGINTERN PyObject *_wrap_SpinCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15469 PyObject *resultobj = 0;
15470 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15471 int arg2 ;
15472 void *argp1 = 0 ;
15473 int res1 = 0 ;
15474 int val2 ;
15475 int ecode2 = 0 ;
15476 PyObject * obj0 = 0 ;
15477 PyObject * obj1 = 0 ;
15478 char * kwnames[] = {
15479 (char *) "self",(char *) "value", NULL
15480 };
15481
15482 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15483 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15484 if (!SWIG_IsOK(res1)) {
15485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValue" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15486 }
15487 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15488 ecode2 = SWIG_AsVal_int(obj1, &val2);
15489 if (!SWIG_IsOK(ecode2)) {
15490 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetValue" "', expected argument " "2"" of type '" "int""'");
15491 }
15492 arg2 = static_cast< int >(val2);
15493 {
15494 PyThreadState* __tstate = wxPyBeginAllowThreads();
15495 (arg1)->SetValue(arg2);
15496 wxPyEndAllowThreads(__tstate);
15497 if (PyErr_Occurred()) SWIG_fail;
15498 }
15499 resultobj = SWIG_Py_Void();
15500 return resultobj;
15501fail:
15502 return NULL;
15503}
15504
15505
15506SWIGINTERN PyObject *_wrap_SpinCtrl_SetValueString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15507 PyObject *resultobj = 0;
15508 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15509 wxString *arg2 = 0 ;
15510 void *argp1 = 0 ;
15511 int res1 = 0 ;
15512 bool temp2 = false ;
15513 PyObject * obj0 = 0 ;
15514 PyObject * obj1 = 0 ;
15515 char * kwnames[] = {
15516 (char *) "self",(char *) "text", NULL
15517 };
15518
15519 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) SWIG_fail;
15520 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15521 if (!SWIG_IsOK(res1)) {
15522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValueString" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15523 }
15524 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15525 {
15526 arg2 = wxString_in_helper(obj1);
15527 if (arg2 == NULL) SWIG_fail;
15528 temp2 = true;
15529 }
15530 {
15531 PyThreadState* __tstate = wxPyBeginAllowThreads();
15532 (arg1)->SetValue((wxString const &)*arg2);
15533 wxPyEndAllowThreads(__tstate);
15534 if (PyErr_Occurred()) SWIG_fail;
15535 }
15536 resultobj = SWIG_Py_Void();
15537 {
15538 if (temp2)
15539 delete arg2;
15540 }
15541 return resultobj;
15542fail:
15543 {
15544 if (temp2)
15545 delete arg2;
15546 }
15547 return NULL;
15548}
15549
15550
15551SWIGINTERN PyObject *_wrap_SpinCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15552 PyObject *resultobj = 0;
15553 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15554 int arg2 ;
15555 int arg3 ;
15556 void *argp1 = 0 ;
15557 int res1 = 0 ;
15558 int val2 ;
15559 int ecode2 = 0 ;
15560 int val3 ;
15561 int ecode3 = 0 ;
15562 PyObject * obj0 = 0 ;
15563 PyObject * obj1 = 0 ;
15564 PyObject * obj2 = 0 ;
15565 char * kwnames[] = {
15566 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15567 };
15568
15569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15571 if (!SWIG_IsOK(res1)) {
15572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetRange" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15573 }
15574 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15575 ecode2 = SWIG_AsVal_int(obj1, &val2);
15576 if (!SWIG_IsOK(ecode2)) {
15577 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetRange" "', expected argument " "2"" of type '" "int""'");
15578 }
15579 arg2 = static_cast< int >(val2);
15580 ecode3 = SWIG_AsVal_int(obj2, &val3);
15581 if (!SWIG_IsOK(ecode3)) {
15582 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetRange" "', expected argument " "3"" of type '" "int""'");
15583 }
15584 arg3 = static_cast< int >(val3);
15585 {
15586 PyThreadState* __tstate = wxPyBeginAllowThreads();
15587 (arg1)->SetRange(arg2,arg3);
15588 wxPyEndAllowThreads(__tstate);
15589 if (PyErr_Occurred()) SWIG_fail;
15590 }
15591 resultobj = SWIG_Py_Void();
15592 return resultobj;
15593fail:
15594 return NULL;
d14a1e28
RD
15595}
15596
15597
0085ce49
RD
15598SWIGINTERN PyObject *_wrap_SpinCtrl_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15599 PyObject *resultobj = 0;
15600 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15601 int result;
15602 void *argp1 = 0 ;
15603 int res1 = 0 ;
15604 PyObject *swig_obj[1] ;
15605
15606 if (!args) SWIG_fail;
15607 swig_obj[0] = args;
15608 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15609 if (!SWIG_IsOK(res1)) {
15610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMin" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15611 }
15612 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15613 {
15614 PyThreadState* __tstate = wxPyBeginAllowThreads();
15615 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
15616 wxPyEndAllowThreads(__tstate);
15617 if (PyErr_Occurred()) SWIG_fail;
15618 }
15619 resultobj = SWIG_From_int(static_cast< int >(result));
15620 return resultobj;
15621fail:
15622 return NULL;
d14a1e28
RD
15623}
15624
15625
0085ce49
RD
15626SWIGINTERN PyObject *_wrap_SpinCtrl_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15627 PyObject *resultobj = 0;
15628 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15629 int result;
15630 void *argp1 = 0 ;
15631 int res1 = 0 ;
15632 PyObject *swig_obj[1] ;
15633
15634 if (!args) SWIG_fail;
15635 swig_obj[0] = args;
15636 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15637 if (!SWIG_IsOK(res1)) {
15638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMax" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15639 }
15640 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15641 {
15642 PyThreadState* __tstate = wxPyBeginAllowThreads();
15643 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
15644 wxPyEndAllowThreads(__tstate);
15645 if (PyErr_Occurred()) SWIG_fail;
15646 }
15647 resultobj = SWIG_From_int(static_cast< int >(result));
15648 return resultobj;
15649fail:
15650 return NULL;
15651}
15652
15653
15654SWIGINTERN PyObject *_wrap_SpinCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15655 PyObject *resultobj = 0;
15656 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15657 long arg2 ;
15658 long arg3 ;
15659 void *argp1 = 0 ;
15660 int res1 = 0 ;
15661 long val2 ;
15662 int ecode2 = 0 ;
15663 long val3 ;
15664 int ecode3 = 0 ;
15665 PyObject * obj0 = 0 ;
15666 PyObject * obj1 = 0 ;
15667 PyObject * obj2 = 0 ;
15668 char * kwnames[] = {
2131d850 15669 (char *) "self",(char *) "from",(char *) "to", NULL
0085ce49
RD
15670 };
15671
15672 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15673 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15674 if (!SWIG_IsOK(res1)) {
15675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetSelection" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15676 }
15677 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15678 ecode2 = SWIG_AsVal_long(obj1, &val2);
15679 if (!SWIG_IsOK(ecode2)) {
15680 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
15681 }
15682 arg2 = static_cast< long >(val2);
15683 ecode3 = SWIG_AsVal_long(obj2, &val3);
15684 if (!SWIG_IsOK(ecode3)) {
15685 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
15686 }
15687 arg3 = static_cast< long >(val3);
15688 {
15689 PyThreadState* __tstate = wxPyBeginAllowThreads();
15690 (arg1)->SetSelection(arg2,arg3);
15691 wxPyEndAllowThreads(__tstate);
15692 if (PyErr_Occurred()) SWIG_fail;
15693 }
15694 resultobj = SWIG_Py_Void();
15695 return resultobj;
15696fail:
15697 return NULL;
15698}
15699
15700
15701SWIGINTERN PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15702 PyObject *resultobj = 0;
15703 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15704 SwigValueWrapper<wxVisualAttributes > result;
15705 int val1 ;
15706 int ecode1 = 0 ;
15707 PyObject * obj0 = 0 ;
15708 char * kwnames[] = {
15709 (char *) "variant", NULL
15710 };
15711
15712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15713 if (obj0) {
15714 ecode1 = SWIG_AsVal_int(obj0, &val1);
15715 if (!SWIG_IsOK(ecode1)) {
15716 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15717 }
15718 arg1 = static_cast< wxWindowVariant >(val1);
15719 }
15720 {
15721 if (!wxPyCheckForApp()) SWIG_fail;
15722 PyThreadState* __tstate = wxPyBeginAllowThreads();
15723 result = wxSpinCtrl::GetClassDefaultAttributes(arg1);
15724 wxPyEndAllowThreads(__tstate);
15725 if (PyErr_Occurred()) SWIG_fail;
15726 }
15727 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15728 return resultobj;
15729fail:
15730 return NULL;
d14a1e28
RD
15731}
15732
15733
0085ce49
RD
15734SWIGINTERN PyObject *SpinCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15735 PyObject *obj;
15736 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15737 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinCtrl, SWIG_NewClientData(obj));
15738 return SWIG_Py_Void();
d14a1e28
RD
15739}
15740
0085ce49
RD
15741SWIGINTERN PyObject *SpinCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15742 return SWIG_Python_InitShadowInstance(args);
15743}
d14a1e28 15744
0085ce49
RD
15745SWIGINTERN PyObject *_wrap_new_SpinEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15746 PyObject *resultobj = 0;
15747 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15748 int arg2 = (int) 0 ;
15749 wxSpinEvent *result = 0 ;
15750 int val1 ;
15751 int ecode1 = 0 ;
15752 int val2 ;
15753 int ecode2 = 0 ;
15754 PyObject * obj0 = 0 ;
15755 PyObject * obj1 = 0 ;
15756 char * kwnames[] = {
15757 (char *) "commandType",(char *) "winid", NULL
15758 };
15759
15760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) SWIG_fail;
15761 if (obj0) {
15762 ecode1 = SWIG_AsVal_int(obj0, &val1);
15763 if (!SWIG_IsOK(ecode1)) {
15764 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SpinEvent" "', expected argument " "1"" of type '" "wxEventType""'");
15765 }
15766 arg1 = static_cast< wxEventType >(val1);
15767 }
15768 if (obj1) {
15769 ecode2 = SWIG_AsVal_int(obj1, &val2);
15770 if (!SWIG_IsOK(ecode2)) {
15771 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinEvent" "', expected argument " "2"" of type '" "int""'");
15772 }
15773 arg2 = static_cast< int >(val2);
15774 }
15775 {
15776 PyThreadState* __tstate = wxPyBeginAllowThreads();
15777 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
15778 wxPyEndAllowThreads(__tstate);
15779 if (PyErr_Occurred()) SWIG_fail;
15780 }
15781 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_NEW | 0 );
15782 return resultobj;
15783fail:
15784 return NULL;
d14a1e28
RD
15785}
15786
15787
0085ce49
RD
15788SWIGINTERN PyObject *_wrap_SpinEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15789 PyObject *resultobj = 0;
15790 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15791 int result;
15792 void *argp1 = 0 ;
15793 int res1 = 0 ;
15794 PyObject *swig_obj[1] ;
15795
15796 if (!args) SWIG_fail;
15797 swig_obj[0] = args;
15798 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15799 if (!SWIG_IsOK(res1)) {
15800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_GetPosition" "', expected argument " "1"" of type '" "wxSpinEvent const *""'");
15801 }
15802 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15803 {
15804 PyThreadState* __tstate = wxPyBeginAllowThreads();
15805 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
15806 wxPyEndAllowThreads(__tstate);
15807 if (PyErr_Occurred()) SWIG_fail;
15808 }
15809 resultobj = SWIG_From_int(static_cast< int >(result));
15810 return resultobj;
15811fail:
15812 return NULL;
15813}
15814
15815
15816SWIGINTERN PyObject *_wrap_SpinEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15817 PyObject *resultobj = 0;
15818 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15819 int arg2 ;
15820 void *argp1 = 0 ;
15821 int res1 = 0 ;
15822 int val2 ;
15823 int ecode2 = 0 ;
15824 PyObject * obj0 = 0 ;
15825 PyObject * obj1 = 0 ;
15826 char * kwnames[] = {
15827 (char *) "self",(char *) "pos", NULL
15828 };
15829
15830 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
15831 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15832 if (!SWIG_IsOK(res1)) {
15833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_SetPosition" "', expected argument " "1"" of type '" "wxSpinEvent *""'");
15834 }
15835 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15836 ecode2 = SWIG_AsVal_int(obj1, &val2);
15837 if (!SWIG_IsOK(ecode2)) {
15838 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinEvent_SetPosition" "', expected argument " "2"" of type '" "int""'");
15839 }
15840 arg2 = static_cast< int >(val2);
15841 {
15842 PyThreadState* __tstate = wxPyBeginAllowThreads();
15843 (arg1)->SetPosition(arg2);
15844 wxPyEndAllowThreads(__tstate);
15845 if (PyErr_Occurred()) SWIG_fail;
15846 }
15847 resultobj = SWIG_Py_Void();
15848 return resultobj;
15849fail:
15850 return NULL;
d14a1e28
RD
15851}
15852
15853
0085ce49
RD
15854SWIGINTERN PyObject *SpinEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15855 PyObject *obj;
15856 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15857 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinEvent, SWIG_NewClientData(obj));
15858 return SWIG_Py_Void();
15859}
15860
15861SWIGINTERN PyObject *SpinEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15862 return SWIG_Python_InitShadowInstance(args);
15863}
15864
15865SWIGINTERN int RadioBoxNameStr_set(PyObject *) {
15866 SWIG_Error(SWIG_AttributeError,"Variable RadioBoxNameStr is read-only.");
15867 return 1;
15868}
15869
15870
15871SWIGINTERN PyObject *RadioBoxNameStr_get(void) {
15872 PyObject *pyobj = 0;
15873
15874 {
d14a1e28 15875#if wxUSE_UNICODE
0085ce49 15876 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
d14a1e28 15877#else
0085ce49 15878 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
d14a1e28 15879#endif
0085ce49
RD
15880 }
15881 return pyobj;
d14a1e28
RD
15882}
15883
15884
0085ce49
RD
15885SWIGINTERN int RadioButtonNameStr_set(PyObject *) {
15886 SWIG_Error(SWIG_AttributeError,"Variable RadioButtonNameStr is read-only.");
15887 return 1;
d14a1e28
RD
15888}
15889
15890
0085ce49
RD
15891SWIGINTERN PyObject *RadioButtonNameStr_get(void) {
15892 PyObject *pyobj = 0;
15893
15894 {
15895#if wxUSE_UNICODE
15896 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15897#else
15898 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15899#endif
15900 }
15901 return pyobj;
15902}
15903
15904
15905SWIGINTERN PyObject *_wrap_new_RadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15906 PyObject *resultobj = 0;
15907 wxWindow *arg1 = (wxWindow *) 0 ;
15908 int arg2 = (int) -1 ;
15909 wxString const &arg3_defvalue = wxPyEmptyString ;
15910 wxString *arg3 = (wxString *) &arg3_defvalue ;
15911 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15912 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15913 wxSize const &arg5_defvalue = wxDefaultSize ;
15914 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15915 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
15916 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
15917 int arg7 = (int) 0 ;
15918 long arg8 = (long) wxRA_HORIZONTAL ;
15919 wxValidator const &arg9_defvalue = wxDefaultValidator ;
15920 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
15921 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
15922 wxString *arg10 = (wxString *) &arg10_defvalue ;
15923 wxRadioBox *result = 0 ;
15924 void *argp1 = 0 ;
15925 int res1 = 0 ;
15926 int val2 ;
15927 int ecode2 = 0 ;
15928 bool temp3 = false ;
15929 wxPoint temp4 ;
15930 wxSize temp5 ;
15931 bool temp6 = false ;
15932 int val7 ;
15933 int ecode7 = 0 ;
15934 long val8 ;
15935 int ecode8 = 0 ;
15936 void *argp9 = 0 ;
15937 int res9 = 0 ;
15938 bool temp10 = false ;
15939 PyObject * obj0 = 0 ;
15940 PyObject * obj1 = 0 ;
15941 PyObject * obj2 = 0 ;
15942 PyObject * obj3 = 0 ;
15943 PyObject * obj4 = 0 ;
15944 PyObject * obj5 = 0 ;
15945 PyObject * obj6 = 0 ;
15946 PyObject * obj7 = 0 ;
15947 PyObject * obj8 = 0 ;
15948 PyObject * obj9 = 0 ;
15949 char * kwnames[] = {
15950 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
15951 };
15952
15953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15955 if (!SWIG_IsOK(res1)) {
15956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioBox" "', expected argument " "1"" of type '" "wxWindow *""'");
15957 }
15958 arg1 = reinterpret_cast< wxWindow * >(argp1);
15959 if (obj1) {
15960 ecode2 = SWIG_AsVal_int(obj1, &val2);
15961 if (!SWIG_IsOK(ecode2)) {
15962 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioBox" "', expected argument " "2"" of type '" "int""'");
15963 }
15964 arg2 = static_cast< int >(val2);
15965 }
15966 if (obj2) {
093d3ff1 15967 {
0085ce49
RD
15968 arg3 = wxString_in_helper(obj2);
15969 if (arg3 == NULL) SWIG_fail;
15970 temp3 = true;
093d3ff1 15971 }
0085ce49
RD
15972 }
15973 if (obj3) {
093d3ff1 15974 {
0085ce49
RD
15975 arg4 = &temp4;
15976 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 15977 }
0085ce49
RD
15978 }
15979 if (obj4) {
d14a1e28 15980 {
0085ce49
RD
15981 arg5 = &temp5;
15982 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 15983 }
0085ce49
RD
15984 }
15985 if (obj5) {
d14a1e28 15986 {
0085ce49
RD
15987 if (! PySequence_Check(obj5)) {
15988 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
15989 SWIG_fail;
15990 }
15991 arg6 = new wxArrayString;
15992 temp6 = true;
15993 int i, len=PySequence_Length(obj5);
15994 for (i=0; i<len; i++) {
15995 PyObject* item = PySequence_GetItem(obj5, i);
15996 wxString* s = wxString_in_helper(item);
15997 if (PyErr_Occurred()) SWIG_fail;
15998 arg6->Add(*s);
15999 delete s;
16000 Py_DECREF(item);
16001 }
d14a1e28 16002 }
0085ce49
RD
16003 }
16004 if (obj6) {
16005 ecode7 = SWIG_AsVal_int(obj6, &val7);
16006 if (!SWIG_IsOK(ecode7)) {
16007 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_RadioBox" "', expected argument " "7"" of type '" "int""'");
16008 }
16009 arg7 = static_cast< int >(val7);
16010 }
16011 if (obj7) {
16012 ecode8 = SWIG_AsVal_long(obj7, &val8);
16013 if (!SWIG_IsOK(ecode8)) {
16014 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_RadioBox" "', expected argument " "8"" of type '" "long""'");
16015 }
16016 arg8 = static_cast< long >(val8);
16017 }
16018 if (obj8) {
16019 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
16020 if (!SWIG_IsOK(res9)) {
16021 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
16022 }
16023 if (!argp9) {
16024 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
d14a1e28 16025 }
0085ce49
RD
16026 arg9 = reinterpret_cast< wxValidator * >(argp9);
16027 }
16028 if (obj9) {
d14a1e28 16029 {
0085ce49
RD
16030 arg10 = wxString_in_helper(obj9);
16031 if (arg10 == NULL) SWIG_fail;
16032 temp10 = true;
d14a1e28 16033 }
0085ce49
RD
16034 }
16035 {
16036 if (!wxPyCheckForApp()) SWIG_fail;
16037 PyThreadState* __tstate = wxPyBeginAllowThreads();
16038 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);
16039 wxPyEndAllowThreads(__tstate);
16040 if (PyErr_Occurred()) SWIG_fail;
16041 }
16042 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_NEW | 0 );
16043 {
16044 if (temp3)
16045 delete arg3;
16046 }
16047 {
16048 if (temp6) delete arg6;
16049 }
16050 {
16051 if (temp10)
16052 delete arg10;
16053 }
16054 return resultobj;
16055fail:
16056 {
16057 if (temp3)
16058 delete arg3;
16059 }
16060 {
16061 if (temp6) delete arg6;
16062 }
16063 {
16064 if (temp10)
16065 delete arg10;
16066 }
16067 return NULL;
d14a1e28
RD
16068}
16069
16070
0085ce49
RD
16071SWIGINTERN PyObject *_wrap_new_PreRadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16072 PyObject *resultobj = 0;
16073 wxRadioBox *result = 0 ;
16074
16075 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioBox",0,0,0)) SWIG_fail;
16076 {
16077 if (!wxPyCheckForApp()) SWIG_fail;
16078 PyThreadState* __tstate = wxPyBeginAllowThreads();
16079 result = (wxRadioBox *)new wxRadioBox();
16080 wxPyEndAllowThreads(__tstate);
16081 if (PyErr_Occurred()) SWIG_fail;
16082 }
16083 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_OWN | 0 );
16084 return resultobj;
16085fail:
16086 return NULL;
16087}
16088
16089
16090SWIGINTERN PyObject *_wrap_RadioBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16091 PyObject *resultobj = 0;
16092 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16093 wxWindow *arg2 = (wxWindow *) 0 ;
16094 int arg3 = (int) -1 ;
16095 wxString const &arg4_defvalue = wxPyEmptyString ;
16096 wxString *arg4 = (wxString *) &arg4_defvalue ;
16097 wxPoint const &arg5_defvalue = wxDefaultPosition ;
16098 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
16099 wxSize const &arg6_defvalue = wxDefaultSize ;
16100 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
16101 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
16102 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
16103 int arg8 = (int) 0 ;
16104 long arg9 = (long) wxRA_HORIZONTAL ;
16105 wxValidator const &arg10_defvalue = wxDefaultValidator ;
16106 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
16107 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
16108 wxString *arg11 = (wxString *) &arg11_defvalue ;
16109 bool result;
16110 void *argp1 = 0 ;
16111 int res1 = 0 ;
16112 void *argp2 = 0 ;
16113 int res2 = 0 ;
16114 int val3 ;
16115 int ecode3 = 0 ;
16116 bool temp4 = false ;
16117 wxPoint temp5 ;
16118 wxSize temp6 ;
16119 bool temp7 = false ;
16120 int val8 ;
16121 int ecode8 = 0 ;
16122 long val9 ;
16123 int ecode9 = 0 ;
16124 void *argp10 = 0 ;
16125 int res10 = 0 ;
16126 bool temp11 = false ;
16127 PyObject * obj0 = 0 ;
16128 PyObject * obj1 = 0 ;
16129 PyObject * obj2 = 0 ;
16130 PyObject * obj3 = 0 ;
16131 PyObject * obj4 = 0 ;
16132 PyObject * obj5 = 0 ;
16133 PyObject * obj6 = 0 ;
16134 PyObject * obj7 = 0 ;
16135 PyObject * obj8 = 0 ;
16136 PyObject * obj9 = 0 ;
16137 PyObject * obj10 = 0 ;
16138 char * kwnames[] = {
16139 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16140 };
16141
16142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
16143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16144 if (!SWIG_IsOK(res1)) {
16145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_Create" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16146 }
16147 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16148 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
16149 if (!SWIG_IsOK(res2)) {
16150 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
16151 }
16152 arg2 = reinterpret_cast< wxWindow * >(argp2);
16153 if (obj2) {
16154 ecode3 = SWIG_AsVal_int(obj2, &val3);
16155 if (!SWIG_IsOK(ecode3)) {
16156 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_Create" "', expected argument " "3"" of type '" "int""'");
16157 }
16158 arg3 = static_cast< int >(val3);
16159 }
16160 if (obj3) {
093d3ff1 16161 {
0085ce49
RD
16162 arg4 = wxString_in_helper(obj3);
16163 if (arg4 == NULL) SWIG_fail;
16164 temp4 = true;
093d3ff1 16165 }
0085ce49
RD
16166 }
16167 if (obj4) {
d14a1e28 16168 {
0085ce49
RD
16169 arg5 = &temp5;
16170 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 16171 }
0085ce49
RD
16172 }
16173 if (obj5) {
d14a1e28 16174 {
0085ce49
RD
16175 arg6 = &temp6;
16176 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d14a1e28 16177 }
0085ce49
RD
16178 }
16179 if (obj6) {
d14a1e28 16180 {
0085ce49
RD
16181 if (! PySequence_Check(obj6)) {
16182 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16183 SWIG_fail;
16184 }
16185 arg7 = new wxArrayString;
16186 temp7 = true;
16187 int i, len=PySequence_Length(obj6);
16188 for (i=0; i<len; i++) {
16189 PyObject* item = PySequence_GetItem(obj6, i);
16190 wxString* s = wxString_in_helper(item);
16191 if (PyErr_Occurred()) SWIG_fail;
16192 arg7->Add(*s);
16193 delete s;
16194 Py_DECREF(item);
16195 }
d14a1e28 16196 }
0085ce49
RD
16197 }
16198 if (obj7) {
16199 ecode8 = SWIG_AsVal_int(obj7, &val8);
16200 if (!SWIG_IsOK(ecode8)) {
16201 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "RadioBox_Create" "', expected argument " "8"" of type '" "int""'");
16202 }
16203 arg8 = static_cast< int >(val8);
16204 }
16205 if (obj8) {
16206 ecode9 = SWIG_AsVal_long(obj8, &val9);
16207 if (!SWIG_IsOK(ecode9)) {
16208 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "RadioBox_Create" "', expected argument " "9"" of type '" "long""'");
16209 }
16210 arg9 = static_cast< long >(val9);
16211 }
16212 if (obj9) {
16213 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
16214 if (!SWIG_IsOK(res10)) {
16215 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
4f89f6a3 16216 }
0085ce49
RD
16217 if (!argp10) {
16218 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
d14a1e28 16219 }
0085ce49
RD
16220 arg10 = reinterpret_cast< wxValidator * >(argp10);
16221 }
16222 if (obj10) {
d14a1e28 16223 {
0085ce49
RD
16224 arg11 = wxString_in_helper(obj10);
16225 if (arg11 == NULL) SWIG_fail;
16226 temp11 = true;
d14a1e28 16227 }
0085ce49
RD
16228 }
16229 {
16230 PyThreadState* __tstate = wxPyBeginAllowThreads();
16231 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);
16232 wxPyEndAllowThreads(__tstate);
16233 if (PyErr_Occurred()) SWIG_fail;
16234 }
16235 {
16236 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16237 }
16238 {
16239 if (temp4)
16240 delete arg4;
16241 }
16242 {
16243 if (temp7) delete arg7;
16244 }
16245 {
16246 if (temp11)
16247 delete arg11;
16248 }
16249 return resultobj;
16250fail:
16251 {
16252 if (temp4)
16253 delete arg4;
16254 }
16255 {
16256 if (temp7) delete arg7;
16257 }
16258 {
16259 if (temp11)
16260 delete arg11;
16261 }
16262 return NULL;
16263}
16264
16265
16266SWIGINTERN PyObject *_wrap_RadioBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16267 PyObject *resultobj = 0;
16268 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16269 int arg2 ;
16270 void *argp1 = 0 ;
16271 int res1 = 0 ;
16272 int val2 ;
16273 int ecode2 = 0 ;
16274 PyObject * obj0 = 0 ;
16275 PyObject * obj1 = 0 ;
16276 char * kwnames[] = {
16277 (char *) "self",(char *) "n", NULL
16278 };
16279
16280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16282 if (!SWIG_IsOK(res1)) {
16283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16284 }
16285 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16286 ecode2 = SWIG_AsVal_int(obj1, &val2);
16287 if (!SWIG_IsOK(ecode2)) {
16288 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
16289 }
16290 arg2 = static_cast< int >(val2);
16291 {
16292 PyThreadState* __tstate = wxPyBeginAllowThreads();
16293 (arg1)->SetSelection(arg2);
16294 wxPyEndAllowThreads(__tstate);
16295 if (PyErr_Occurred()) SWIG_fail;
16296 }
16297 resultobj = SWIG_Py_Void();
16298 return resultobj;
16299fail:
16300 return NULL;
d14a1e28
RD
16301}
16302
16303
0085ce49
RD
16304SWIGINTERN PyObject *_wrap_RadioBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16305 PyObject *resultobj = 0;
16306 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16307 int result;
16308 void *argp1 = 0 ;
16309 int res1 = 0 ;
16310 PyObject *swig_obj[1] ;
16311
16312 if (!args) SWIG_fail;
16313 swig_obj[0] = args;
16314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16315 if (!SWIG_IsOK(res1)) {
16316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16317 }
16318 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16319 {
16320 PyThreadState* __tstate = wxPyBeginAllowThreads();
16321 result = (int)((wxRadioBox const *)arg1)->GetSelection();
16322 wxPyEndAllowThreads(__tstate);
16323 if (PyErr_Occurred()) SWIG_fail;
16324 }
16325 resultobj = SWIG_From_int(static_cast< int >(result));
16326 return resultobj;
16327fail:
16328 return NULL;
d14a1e28
RD
16329}
16330
16331
0085ce49
RD
16332SWIGINTERN PyObject *_wrap_RadioBox_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16333 PyObject *resultobj = 0;
16334 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16335 wxString result;
16336 void *argp1 = 0 ;
16337 int res1 = 0 ;
16338 PyObject *swig_obj[1] ;
16339
16340 if (!args) SWIG_fail;
16341 swig_obj[0] = args;
16342 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16343 if (!SWIG_IsOK(res1)) {
16344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16345 }
16346 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16347 {
16348 PyThreadState* __tstate = wxPyBeginAllowThreads();
16349 result = ((wxRadioBox const *)arg1)->GetStringSelection();
16350 wxPyEndAllowThreads(__tstate);
16351 if (PyErr_Occurred()) SWIG_fail;
16352 }
16353 {
16354#if wxUSE_UNICODE
16355 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16356#else
16357 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16358#endif
16359 }
16360 return resultobj;
16361fail:
16362 return NULL;
16363}
16364
16365
16366SWIGINTERN PyObject *_wrap_RadioBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16367 PyObject *resultobj = 0;
16368 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16369 wxString *arg2 = 0 ;
16370 bool result;
16371 void *argp1 = 0 ;
16372 int res1 = 0 ;
16373 bool temp2 = false ;
16374 PyObject * obj0 = 0 ;
16375 PyObject * obj1 = 0 ;
16376 char * kwnames[] = {
16377 (char *) "self",(char *) "s", NULL
16378 };
16379
16380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16382 if (!SWIG_IsOK(res1)) {
16383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16384 }
16385 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16386 {
16387 arg2 = wxString_in_helper(obj1);
16388 if (arg2 == NULL) SWIG_fail;
16389 temp2 = true;
16390 }
16391 {
16392 PyThreadState* __tstate = wxPyBeginAllowThreads();
16393 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
16394 wxPyEndAllowThreads(__tstate);
16395 if (PyErr_Occurred()) SWIG_fail;
16396 }
16397 {
16398 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16399 }
16400 {
16401 if (temp2)
16402 delete arg2;
16403 }
16404 return resultobj;
16405fail:
16406 {
16407 if (temp2)
16408 delete arg2;
16409 }
16410 return NULL;
d14a1e28
RD
16411}
16412
16413
0085ce49
RD
16414SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16415 PyObject *resultobj = 0;
16416 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
75219dcb 16417 size_t result;
0085ce49
RD
16418 void *argp1 = 0 ;
16419 int res1 = 0 ;
16420 PyObject *swig_obj[1] ;
16421
16422 if (!args) SWIG_fail;
16423 swig_obj[0] = args;
16424 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16425 if (!SWIG_IsOK(res1)) {
16426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16427 }
16428 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16429 {
16430 PyThreadState* __tstate = wxPyBeginAllowThreads();
75219dcb 16431 result = (size_t)((wxRadioBox const *)arg1)->GetCount();
0085ce49
RD
16432 wxPyEndAllowThreads(__tstate);
16433 if (PyErr_Occurred()) SWIG_fail;
16434 }
75219dcb 16435 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
0085ce49
RD
16436 return resultobj;
16437fail:
16438 return NULL;
16439}
16440
16441
16442SWIGINTERN PyObject *_wrap_RadioBox_FindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16443 PyObject *resultobj = 0;
16444 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16445 wxString *arg2 = 0 ;
16446 int result;
16447 void *argp1 = 0 ;
16448 int res1 = 0 ;
16449 bool temp2 = false ;
16450 PyObject * obj0 = 0 ;
16451 PyObject * obj1 = 0 ;
16452 char * kwnames[] = {
16453 (char *) "self",(char *) "s", NULL
16454 };
16455
16456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) SWIG_fail;
16457 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16458 if (!SWIG_IsOK(res1)) {
16459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_FindString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16460 }
16461 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16462 {
16463 arg2 = wxString_in_helper(obj1);
16464 if (arg2 == NULL) SWIG_fail;
16465 temp2 = true;
16466 }
16467 {
16468 PyThreadState* __tstate = wxPyBeginAllowThreads();
16469 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
16470 wxPyEndAllowThreads(__tstate);
16471 if (PyErr_Occurred()) SWIG_fail;
16472 }
16473 resultobj = SWIG_From_int(static_cast< int >(result));
16474 {
16475 if (temp2)
16476 delete arg2;
16477 }
16478 return resultobj;
16479fail:
16480 {
16481 if (temp2)
16482 delete arg2;
16483 }
16484 return NULL;
16485}
16486
16487
16488SWIGINTERN PyObject *_wrap_RadioBox_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16489 PyObject *resultobj = 0;
16490 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16491 int arg2 ;
16492 wxString result;
16493 void *argp1 = 0 ;
16494 int res1 = 0 ;
16495 int val2 ;
16496 int ecode2 = 0 ;
16497 PyObject * obj0 = 0 ;
16498 PyObject * obj1 = 0 ;
16499 char * kwnames[] = {
16500 (char *) "self",(char *) "n", NULL
16501 };
16502
16503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) SWIG_fail;
16504 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16505 if (!SWIG_IsOK(res1)) {
16506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16507 }
16508 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16509 ecode2 = SWIG_AsVal_int(obj1, &val2);
16510 if (!SWIG_IsOK(ecode2)) {
16511 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetString" "', expected argument " "2"" of type '" "int""'");
16512 }
16513 arg2 = static_cast< int >(val2);
16514 {
16515 PyThreadState* __tstate = wxPyBeginAllowThreads();
16516 result = ((wxRadioBox const *)arg1)->GetString(arg2);
16517 wxPyEndAllowThreads(__tstate);
16518 if (PyErr_Occurred()) SWIG_fail;
16519 }
16520 {
16521#if wxUSE_UNICODE
16522 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16523#else
16524 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16525#endif
16526 }
16527 return resultobj;
16528fail:
16529 return NULL;
16530}
16531
16532
16533SWIGINTERN PyObject *_wrap_RadioBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16534 PyObject *resultobj = 0;
16535 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16536 int arg2 ;
16537 wxString *arg3 = 0 ;
16538 void *argp1 = 0 ;
16539 int res1 = 0 ;
16540 int val2 ;
16541 int ecode2 = 0 ;
16542 bool temp3 = false ;
16543 PyObject * obj0 = 0 ;
16544 PyObject * obj1 = 0 ;
16545 PyObject * obj2 = 0 ;
16546 char * kwnames[] = {
16547 (char *) "self",(char *) "n",(char *) "label", NULL
16548 };
16549
16550 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16551 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16552 if (!SWIG_IsOK(res1)) {
16553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetString" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16554 }
16555 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16556 ecode2 = SWIG_AsVal_int(obj1, &val2);
16557 if (!SWIG_IsOK(ecode2)) {
16558 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetString" "', expected argument " "2"" of type '" "int""'");
16559 }
16560 arg2 = static_cast< int >(val2);
16561 {
16562 arg3 = wxString_in_helper(obj2);
16563 if (arg3 == NULL) SWIG_fail;
16564 temp3 = true;
16565 }
16566 {
16567 PyThreadState* __tstate = wxPyBeginAllowThreads();
16568 (arg1)->SetString(arg2,(wxString const &)*arg3);
16569 wxPyEndAllowThreads(__tstate);
16570 if (PyErr_Occurred()) SWIG_fail;
16571 }
16572 resultobj = SWIG_Py_Void();
16573 {
16574 if (temp3)
16575 delete arg3;
16576 }
16577 return resultobj;
16578fail:
16579 {
16580 if (temp3)
16581 delete arg3;
16582 }
16583 return NULL;
16584}
16585
16586
16587SWIGINTERN PyObject *_wrap_RadioBox_EnableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16588 PyObject *resultobj = 0;
16589 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16590 unsigned int arg2 ;
0085ce49
RD
16591 bool arg3 = (bool) true ;
16592 void *argp1 = 0 ;
16593 int res1 = 0 ;
50f151d7 16594 unsigned int val2 ;
0085ce49
RD
16595 int ecode2 = 0 ;
16596 bool val3 ;
16597 int ecode3 = 0 ;
16598 PyObject * obj0 = 0 ;
16599 PyObject * obj1 = 0 ;
16600 PyObject * obj2 = 0 ;
16601 char * kwnames[] = {
16602 (char *) "self",(char *) "n",(char *) "enable", NULL
16603 };
16604
16605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16607 if (!SWIG_IsOK(res1)) {
16608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_EnableItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16609 }
16610 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
50f151d7 16611 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
0085ce49 16612 if (!SWIG_IsOK(ecode2)) {
50f151d7 16613 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_EnableItem" "', expected argument " "2"" of type '" "unsigned int""'");
0085ce49 16614 }
50f151d7 16615 arg2 = static_cast< unsigned int >(val2);
0085ce49
RD
16616 if (obj2) {
16617 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16618 if (!SWIG_IsOK(ecode3)) {
16619 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_EnableItem" "', expected argument " "3"" of type '" "bool""'");
16620 }
16621 arg3 = static_cast< bool >(val3);
16622 }
16623 {
16624 PyThreadState* __tstate = wxPyBeginAllowThreads();
16625 (arg1)->Enable(arg2,arg3);
16626 wxPyEndAllowThreads(__tstate);
16627 if (PyErr_Occurred()) SWIG_fail;
16628 }
16629 resultobj = SWIG_Py_Void();
16630 return resultobj;
16631fail:
16632 return NULL;
16633}
16634
16635
16636SWIGINTERN PyObject *_wrap_RadioBox_ShowItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16637 PyObject *resultobj = 0;
16638 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16639 unsigned int arg2 ;
0085ce49
RD
16640 bool arg3 = (bool) true ;
16641 void *argp1 = 0 ;
16642 int res1 = 0 ;
50f151d7 16643 unsigned int val2 ;
0085ce49
RD
16644 int ecode2 = 0 ;
16645 bool val3 ;
16646 int ecode3 = 0 ;
16647 PyObject * obj0 = 0 ;
16648 PyObject * obj1 = 0 ;
16649 PyObject * obj2 = 0 ;
16650 char * kwnames[] = {
16651 (char *) "self",(char *) "n",(char *) "show", NULL
16652 };
16653
16654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16656 if (!SWIG_IsOK(res1)) {
16657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_ShowItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16658 }
16659 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
50f151d7 16660 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
0085ce49 16661 if (!SWIG_IsOK(ecode2)) {
50f151d7 16662 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_ShowItem" "', expected argument " "2"" of type '" "unsigned int""'");
0085ce49 16663 }
50f151d7 16664 arg2 = static_cast< unsigned int >(val2);
0085ce49
RD
16665 if (obj2) {
16666 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16667 if (!SWIG_IsOK(ecode3)) {
16668 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_ShowItem" "', expected argument " "3"" of type '" "bool""'");
16669 }
16670 arg3 = static_cast< bool >(val3);
16671 }
16672 {
16673 PyThreadState* __tstate = wxPyBeginAllowThreads();
16674 (arg1)->Show(arg2,arg3);
16675 wxPyEndAllowThreads(__tstate);
16676 if (PyErr_Occurred()) SWIG_fail;
16677 }
16678 resultobj = SWIG_Py_Void();
16679 return resultobj;
16680fail:
16681 return NULL;
d14a1e28
RD
16682}
16683
16684
50f151d7
RD
16685SWIGINTERN PyObject *_wrap_RadioBox_IsItemEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16686 PyObject *resultobj = 0;
16687 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16688 unsigned int arg2 ;
16689 bool result;
16690 void *argp1 = 0 ;
16691 int res1 = 0 ;
16692 unsigned int val2 ;
16693 int ecode2 = 0 ;
16694 PyObject * obj0 = 0 ;
16695 PyObject * obj1 = 0 ;
16696 char * kwnames[] = {
16697 (char *) "self",(char *) "n", NULL
16698 };
16699
16700 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
16701 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16702 if (!SWIG_IsOK(res1)) {
16703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16704 }
16705 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16706 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16707 if (!SWIG_IsOK(ecode2)) {
16708 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "2"" of type '" "unsigned int""'");
16709 }
16710 arg2 = static_cast< unsigned int >(val2);
16711 {
16712 PyThreadState* __tstate = wxPyBeginAllowThreads();
16713 result = (bool)((wxRadioBox const *)arg1)->IsItemEnabled(arg2);
16714 wxPyEndAllowThreads(__tstate);
16715 if (PyErr_Occurred()) SWIG_fail;
16716 }
16717 {
16718 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16719 }
16720 return resultobj;
16721fail:
16722 return NULL;
16723}
16724
16725
16726SWIGINTERN PyObject *_wrap_RadioBox_IsItemShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16727 PyObject *resultobj = 0;
16728 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16729 unsigned int arg2 ;
16730 bool result;
16731 void *argp1 = 0 ;
16732 int res1 = 0 ;
16733 unsigned int val2 ;
16734 int ecode2 = 0 ;
16735 PyObject * obj0 = 0 ;
16736 PyObject * obj1 = 0 ;
16737 char * kwnames[] = {
16738 (char *) "self",(char *) "n", NULL
16739 };
16740
16741 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemShown",kwnames,&obj0,&obj1)) SWIG_fail;
16742 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16743 if (!SWIG_IsOK(res1)) {
16744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemShown" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16745 }
16746 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16747 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16748 if (!SWIG_IsOK(ecode2)) {
16749 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemShown" "', expected argument " "2"" of type '" "unsigned int""'");
16750 }
16751 arg2 = static_cast< unsigned int >(val2);
16752 {
16753 PyThreadState* __tstate = wxPyBeginAllowThreads();
16754 result = (bool)((wxRadioBox const *)arg1)->IsItemShown(arg2);
16755 wxPyEndAllowThreads(__tstate);
16756 if (PyErr_Occurred()) SWIG_fail;
16757 }
16758 {
16759 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16760 }
16761 return resultobj;
16762fail:
16763 return NULL;
16764}
16765
16766
0085ce49
RD
16767SWIGINTERN PyObject *_wrap_RadioBox_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16768 PyObject *resultobj = 0;
16769 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16770 unsigned int result;
0085ce49
RD
16771 void *argp1 = 0 ;
16772 int res1 = 0 ;
16773 PyObject *swig_obj[1] ;
16774
16775 if (!args) SWIG_fail;
16776 swig_obj[0] = args;
16777 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16778 if (!SWIG_IsOK(res1)) {
16779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetColumnCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16780 }
16781 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16782 {
16783 PyThreadState* __tstate = wxPyBeginAllowThreads();
50f151d7 16784 result = (unsigned int)((wxRadioBox const *)arg1)->GetColumnCount();
0085ce49
RD
16785 wxPyEndAllowThreads(__tstate);
16786 if (PyErr_Occurred()) SWIG_fail;
16787 }
50f151d7 16788 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
0085ce49
RD
16789 return resultobj;
16790fail:
16791 return NULL;
d14a1e28
RD
16792}
16793
16794
0085ce49
RD
16795SWIGINTERN PyObject *_wrap_RadioBox_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16796 PyObject *resultobj = 0;
16797 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16798 unsigned int result;
0085ce49
RD
16799 void *argp1 = 0 ;
16800 int res1 = 0 ;
16801 PyObject *swig_obj[1] ;
16802
16803 if (!args) SWIG_fail;
16804 swig_obj[0] = args;
16805 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16806 if (!SWIG_IsOK(res1)) {
16807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetRowCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16808 }
16809 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16810 {
16811 PyThreadState* __tstate = wxPyBeginAllowThreads();
50f151d7 16812 result = (unsigned int)((wxRadioBox const *)arg1)->GetRowCount();
0085ce49
RD
16813 wxPyEndAllowThreads(__tstate);
16814 if (PyErr_Occurred()) SWIG_fail;
16815 }
50f151d7 16816 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
0085ce49
RD
16817 return resultobj;
16818fail:
16819 return NULL;
16820}
16821
16822
16823SWIGINTERN PyObject *_wrap_RadioBox_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16824 PyObject *resultobj = 0;
16825 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16826 int arg2 ;
16827 wxDirection arg3 ;
16828 long arg4 ;
16829 int result;
16830 void *argp1 = 0 ;
16831 int res1 = 0 ;
16832 int val2 ;
16833 int ecode2 = 0 ;
16834 int val3 ;
16835 int ecode3 = 0 ;
16836 long val4 ;
16837 int ecode4 = 0 ;
16838 PyObject * obj0 = 0 ;
16839 PyObject * obj1 = 0 ;
16840 PyObject * obj2 = 0 ;
16841 PyObject * obj3 = 0 ;
16842 char * kwnames[] = {
16843 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
16844 };
16845
16846 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16847 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16848 if (!SWIG_IsOK(res1)) {
16849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetNextItem" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16850 }
16851 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16852 ecode2 = SWIG_AsVal_int(obj1, &val2);
16853 if (!SWIG_IsOK(ecode2)) {
16854 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetNextItem" "', expected argument " "2"" of type '" "int""'");
16855 }
16856 arg2 = static_cast< int >(val2);
16857 ecode3 = SWIG_AsVal_int(obj2, &val3);
16858 if (!SWIG_IsOK(ecode3)) {
16859 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_GetNextItem" "', expected argument " "3"" of type '" "wxDirection""'");
16860 }
16861 arg3 = static_cast< wxDirection >(val3);
16862 ecode4 = SWIG_AsVal_long(obj3, &val4);
16863 if (!SWIG_IsOK(ecode4)) {
16864 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RadioBox_GetNextItem" "', expected argument " "4"" of type '" "long""'");
16865 }
16866 arg4 = static_cast< long >(val4);
16867 {
16868 PyThreadState* __tstate = wxPyBeginAllowThreads();
50f151d7 16869 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,arg3,arg4);
0085ce49
RD
16870 wxPyEndAllowThreads(__tstate);
16871 if (PyErr_Occurred()) SWIG_fail;
16872 }
16873 resultobj = SWIG_From_int(static_cast< int >(result));
16874 return resultobj;
16875fail:
16876 return NULL;
16877}
16878
16879
01f6b6d3
RD
16880SWIGINTERN PyObject *_wrap_RadioBox_SetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16881 PyObject *resultobj = 0;
16882 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16883 unsigned int arg2 ;
16884 wxString *arg3 = 0 ;
16885 void *argp1 = 0 ;
16886 int res1 = 0 ;
16887 unsigned int val2 ;
16888 int ecode2 = 0 ;
16889 bool temp3 = false ;
16890 PyObject * obj0 = 0 ;
16891 PyObject * obj1 = 0 ;
16892 PyObject * obj2 = 0 ;
16893 char * kwnames[] = {
16894 (char *) "self",(char *) "item",(char *) "text", NULL
16895 };
16896
16897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemToolTip",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16899 if (!SWIG_IsOK(res1)) {
16900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16901 }
16902 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16903 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16904 if (!SWIG_IsOK(ecode2)) {
16905 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
16906 }
16907 arg2 = static_cast< unsigned int >(val2);
16908 {
16909 arg3 = wxString_in_helper(obj2);
16910 if (arg3 == NULL) SWIG_fail;
16911 temp3 = true;
16912 }
16913 {
16914 PyThreadState* __tstate = wxPyBeginAllowThreads();
16915 (arg1)->SetItemToolTip(arg2,(wxString const &)*arg3);
16916 wxPyEndAllowThreads(__tstate);
16917 if (PyErr_Occurred()) SWIG_fail;
16918 }
16919 resultobj = SWIG_Py_Void();
16920 {
16921 if (temp3)
16922 delete arg3;
16923 }
16924 return resultobj;
16925fail:
16926 {
16927 if (temp3)
16928 delete arg3;
16929 }
16930 return NULL;
16931}
16932
16933
16934SWIGINTERN PyObject *_wrap_RadioBox_GetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16935 PyObject *resultobj = 0;
16936 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16937 unsigned int arg2 ;
16938 wxToolTip *result = 0 ;
16939 void *argp1 = 0 ;
16940 int res1 = 0 ;
16941 unsigned int val2 ;
16942 int ecode2 = 0 ;
16943 PyObject * obj0 = 0 ;
16944 PyObject * obj1 = 0 ;
16945 char * kwnames[] = {
16946 (char *) "self",(char *) "item", NULL
16947 };
16948
16949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
16950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16951 if (!SWIG_IsOK(res1)) {
16952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16953 }
16954 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16955 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16956 if (!SWIG_IsOK(ecode2)) {
16957 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
16958 }
16959 arg2 = static_cast< unsigned int >(val2);
16960 {
16961 PyThreadState* __tstate = wxPyBeginAllowThreads();
16962 result = (wxToolTip *)((wxRadioBox const *)arg1)->GetItemToolTip(arg2);
16963 wxPyEndAllowThreads(__tstate);
16964 if (PyErr_Occurred()) SWIG_fail;
16965 }
16966 {
16967 resultobj = wxPyMake_wxObject(result, (bool)0);
16968 }
16969 return resultobj;
16970fail:
16971 return NULL;
16972}
16973
16974
b850e7f3
RD
16975SWIGINTERN PyObject *_wrap_RadioBox_SetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16976 PyObject *resultobj = 0;
16977 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16978 unsigned int arg2 ;
16979 wxString *arg3 = 0 ;
16980 void *argp1 = 0 ;
16981 int res1 = 0 ;
16982 unsigned int val2 ;
16983 int ecode2 = 0 ;
16984 bool temp3 = false ;
16985 PyObject * obj0 = 0 ;
16986 PyObject * obj1 = 0 ;
16987 PyObject * obj2 = 0 ;
16988 char * kwnames[] = {
16989 (char *) "self",(char *) "n",(char *) "helpText", NULL
16990 };
16991
16992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemHelpText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16994 if (!SWIG_IsOK(res1)) {
16995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16996 }
16997 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16998 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16999 if (!SWIG_IsOK(ecode2)) {
17000 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17001 }
17002 arg2 = static_cast< unsigned int >(val2);
17003 {
17004 arg3 = wxString_in_helper(obj2);
17005 if (arg3 == NULL) SWIG_fail;
17006 temp3 = true;
17007 }
17008 {
17009 PyThreadState* __tstate = wxPyBeginAllowThreads();
17010 (arg1)->SetItemHelpText(arg2,(wxString const &)*arg3);
17011 wxPyEndAllowThreads(__tstate);
17012 if (PyErr_Occurred()) SWIG_fail;
17013 }
17014 resultobj = SWIG_Py_Void();
17015 {
17016 if (temp3)
17017 delete arg3;
17018 }
17019 return resultobj;
17020fail:
17021 {
17022 if (temp3)
17023 delete arg3;
17024 }
17025 return NULL;
17026}
17027
17028
17029SWIGINTERN PyObject *_wrap_RadioBox_GetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17030 PyObject *resultobj = 0;
17031 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17032 unsigned int arg2 ;
17033 wxString result;
17034 void *argp1 = 0 ;
17035 int res1 = 0 ;
17036 unsigned int val2 ;
17037 int ecode2 = 0 ;
17038 PyObject * obj0 = 0 ;
17039 PyObject * obj1 = 0 ;
17040 char * kwnames[] = {
17041 (char *) "self",(char *) "n", NULL
17042 };
17043
17044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemHelpText",kwnames,&obj0,&obj1)) SWIG_fail;
17045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17046 if (!SWIG_IsOK(res1)) {
17047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17048 }
17049 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17050 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17051 if (!SWIG_IsOK(ecode2)) {
17052 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17053 }
17054 arg2 = static_cast< unsigned int >(val2);
17055 {
17056 PyThreadState* __tstate = wxPyBeginAllowThreads();
17057 result = ((wxRadioBox const *)arg1)->GetItemHelpText(arg2);
17058 wxPyEndAllowThreads(__tstate);
17059 if (PyErr_Occurred()) SWIG_fail;
17060 }
17061 {
17062#if wxUSE_UNICODE
17063 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17064#else
17065 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17066#endif
17067 }
17068 return resultobj;
17069fail:
17070 return NULL;
17071}
17072
17073
0085ce49
RD
17074SWIGINTERN PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17075 PyObject *resultobj = 0;
17076 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17077 SwigValueWrapper<wxVisualAttributes > result;
17078 int val1 ;
17079 int ecode1 = 0 ;
17080 PyObject * obj0 = 0 ;
17081 char * kwnames[] = {
17082 (char *) "variant", NULL
17083 };
17084
17085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17086 if (obj0) {
17087 ecode1 = SWIG_AsVal_int(obj0, &val1);
17088 if (!SWIG_IsOK(ecode1)) {
17089 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17090 }
17091 arg1 = static_cast< wxWindowVariant >(val1);
17092 }
17093 {
17094 if (!wxPyCheckForApp()) SWIG_fail;
17095 PyThreadState* __tstate = wxPyBeginAllowThreads();
17096 result = wxRadioBox::GetClassDefaultAttributes(arg1);
17097 wxPyEndAllowThreads(__tstate);
17098 if (PyErr_Occurred()) SWIG_fail;
17099 }
17100 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17101 return resultobj;
17102fail:
17103 return NULL;
17104}
17105
17106
17107SWIGINTERN PyObject *RadioBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17108 PyObject *obj;
17109 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17110 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioBox, SWIG_NewClientData(obj));
17111 return SWIG_Py_Void();
17112}
17113
17114SWIGINTERN PyObject *RadioBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17115 return SWIG_Python_InitShadowInstance(args);
17116}
17117
17118SWIGINTERN PyObject *_wrap_new_RadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17119 PyObject *resultobj = 0;
17120 wxWindow *arg1 = (wxWindow *) 0 ;
17121 int arg2 = (int) -1 ;
17122 wxString const &arg3_defvalue = wxPyEmptyString ;
17123 wxString *arg3 = (wxString *) &arg3_defvalue ;
17124 wxPoint const &arg4_defvalue = wxDefaultPosition ;
17125 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
17126 wxSize const &arg5_defvalue = wxDefaultSize ;
17127 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
17128 long arg6 = (long) 0 ;
17129 wxValidator const &arg7_defvalue = wxDefaultValidator ;
17130 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
17131 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
17132 wxString *arg8 = (wxString *) &arg8_defvalue ;
17133 wxRadioButton *result = 0 ;
17134 void *argp1 = 0 ;
17135 int res1 = 0 ;
17136 int val2 ;
17137 int ecode2 = 0 ;
17138 bool temp3 = false ;
17139 wxPoint temp4 ;
17140 wxSize temp5 ;
17141 long val6 ;
17142 int ecode6 = 0 ;
17143 void *argp7 = 0 ;
17144 int res7 = 0 ;
17145 bool temp8 = false ;
17146 PyObject * obj0 = 0 ;
17147 PyObject * obj1 = 0 ;
17148 PyObject * obj2 = 0 ;
17149 PyObject * obj3 = 0 ;
17150 PyObject * obj4 = 0 ;
17151 PyObject * obj5 = 0 ;
17152 PyObject * obj6 = 0 ;
17153 PyObject * obj7 = 0 ;
17154 char * kwnames[] = {
17155 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17156 };
17157
17158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
17159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17160 if (!SWIG_IsOK(res1)) {
17161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioButton" "', expected argument " "1"" of type '" "wxWindow *""'");
17162 }
17163 arg1 = reinterpret_cast< wxWindow * >(argp1);
17164 if (obj1) {
17165 ecode2 = SWIG_AsVal_int(obj1, &val2);
17166 if (!SWIG_IsOK(ecode2)) {
17167 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioButton" "', expected argument " "2"" of type '" "int""'");
17168 }
17169 arg2 = static_cast< int >(val2);
17170 }
17171 if (obj2) {
d14a1e28 17172 {
0085ce49
RD
17173 arg3 = wxString_in_helper(obj2);
17174 if (arg3 == NULL) SWIG_fail;
17175 temp3 = true;
d14a1e28 17176 }
0085ce49
RD
17177 }
17178 if (obj3) {
d14a1e28 17179 {
0085ce49
RD
17180 arg4 = &temp4;
17181 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 17182 }
0085ce49
RD
17183 }
17184 if (obj4) {
d14a1e28 17185 {
0085ce49
RD
17186 arg5 = &temp5;
17187 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
17188 }
17189 }
17190 if (obj5) {
17191 ecode6 = SWIG_AsVal_long(obj5, &val6);
17192 if (!SWIG_IsOK(ecode6)) {
17193 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RadioButton" "', expected argument " "6"" of type '" "long""'");
17194 }
17195 arg6 = static_cast< long >(val6);
17196 }
17197 if (obj6) {
17198 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
17199 if (!SWIG_IsOK(res7)) {
17200 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 17201 }
0085ce49
RD
17202 if (!argp7) {
17203 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17204 }
17205 arg7 = reinterpret_cast< wxValidator * >(argp7);
17206 }
17207 if (obj7) {
d14a1e28 17208 {
0085ce49
RD
17209 arg8 = wxString_in_helper(obj7);
17210 if (arg8 == NULL) SWIG_fail;
17211 temp8 = true;
d14a1e28 17212 }
0085ce49
RD
17213 }
17214 {
17215 if (!wxPyCheckForApp()) SWIG_fail;
17216 PyThreadState* __tstate = wxPyBeginAllowThreads();
17217 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
17218 wxPyEndAllowThreads(__tstate);
17219 if (PyErr_Occurred()) SWIG_fail;
17220 }
17221 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_NEW | 0 );
17222 {
17223 if (temp3)
17224 delete arg3;
17225 }
17226 {
17227 if (temp8)
17228 delete arg8;
17229 }
17230 return resultobj;
17231fail:
17232 {
17233 if (temp3)
17234 delete arg3;
17235 }
17236 {
17237 if (temp8)
17238 delete arg8;
17239 }
17240 return NULL;
d14a1e28
RD
17241}
17242
17243
0085ce49
RD
17244SWIGINTERN PyObject *_wrap_new_PreRadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17245 PyObject *resultobj = 0;
17246 wxRadioButton *result = 0 ;
17247
17248 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioButton",0,0,0)) SWIG_fail;
17249 {
17250 if (!wxPyCheckForApp()) SWIG_fail;
17251 PyThreadState* __tstate = wxPyBeginAllowThreads();
17252 result = (wxRadioButton *)new wxRadioButton();
17253 wxPyEndAllowThreads(__tstate);
17254 if (PyErr_Occurred()) SWIG_fail;
17255 }
17256 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_OWN | 0 );
17257 return resultobj;
17258fail:
17259 return NULL;
17260}
17261
17262
17263SWIGINTERN PyObject *_wrap_RadioButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17264 PyObject *resultobj = 0;
17265 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17266 wxWindow *arg2 = (wxWindow *) 0 ;
17267 int arg3 = (int) -1 ;
17268 wxString const &arg4_defvalue = wxPyEmptyString ;
17269 wxString *arg4 = (wxString *) &arg4_defvalue ;
17270 wxPoint const &arg5_defvalue = wxDefaultPosition ;
17271 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
17272 wxSize const &arg6_defvalue = wxDefaultSize ;
17273 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
17274 long arg7 = (long) 0 ;
17275 wxValidator const &arg8_defvalue = wxDefaultValidator ;
17276 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
17277 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
17278 wxString *arg9 = (wxString *) &arg9_defvalue ;
17279 bool result;
17280 void *argp1 = 0 ;
17281 int res1 = 0 ;
17282 void *argp2 = 0 ;
17283 int res2 = 0 ;
17284 int val3 ;
17285 int ecode3 = 0 ;
17286 bool temp4 = false ;
17287 wxPoint temp5 ;
17288 wxSize temp6 ;
17289 long val7 ;
17290 int ecode7 = 0 ;
17291 void *argp8 = 0 ;
17292 int res8 = 0 ;
17293 bool temp9 = false ;
17294 PyObject * obj0 = 0 ;
17295 PyObject * obj1 = 0 ;
17296 PyObject * obj2 = 0 ;
17297 PyObject * obj3 = 0 ;
17298 PyObject * obj4 = 0 ;
17299 PyObject * obj5 = 0 ;
17300 PyObject * obj6 = 0 ;
17301 PyObject * obj7 = 0 ;
17302 PyObject * obj8 = 0 ;
17303 char * kwnames[] = {
17304 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17305 };
17306
17307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
17308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17309 if (!SWIG_IsOK(res1)) {
17310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_Create" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17311 }
17312 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17313 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17314 if (!SWIG_IsOK(res2)) {
17315 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17316 }
17317 arg2 = reinterpret_cast< wxWindow * >(argp2);
17318 if (obj2) {
17319 ecode3 = SWIG_AsVal_int(obj2, &val3);
17320 if (!SWIG_IsOK(ecode3)) {
17321 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioButton_Create" "', expected argument " "3"" of type '" "int""'");
17322 }
17323 arg3 = static_cast< int >(val3);
17324 }
17325 if (obj3) {
d14a1e28 17326 {
0085ce49
RD
17327 arg4 = wxString_in_helper(obj3);
17328 if (arg4 == NULL) SWIG_fail;
17329 temp4 = true;
d14a1e28 17330 }
0085ce49
RD
17331 }
17332 if (obj4) {
d14a1e28 17333 {
0085ce49
RD
17334 arg5 = &temp5;
17335 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 17336 }
0085ce49
RD
17337 }
17338 if (obj5) {
d14a1e28 17339 {
0085ce49
RD
17340 arg6 = &temp6;
17341 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
17342 }
17343 }
17344 if (obj6) {
17345 ecode7 = SWIG_AsVal_long(obj6, &val7);
17346 if (!SWIG_IsOK(ecode7)) {
17347 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RadioButton_Create" "', expected argument " "7"" of type '" "long""'");
17348 }
17349 arg7 = static_cast< long >(val7);
17350 }
17351 if (obj7) {
17352 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
17353 if (!SWIG_IsOK(res8)) {
17354 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17355 }
17356 if (!argp8) {
17357 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 17358 }
0085ce49
RD
17359 arg8 = reinterpret_cast< wxValidator * >(argp8);
17360 }
17361 if (obj8) {
d14a1e28 17362 {
0085ce49
RD
17363 arg9 = wxString_in_helper(obj8);
17364 if (arg9 == NULL) SWIG_fail;
17365 temp9 = true;
d14a1e28 17366 }
0085ce49
RD
17367 }
17368 {
17369 PyThreadState* __tstate = wxPyBeginAllowThreads();
17370 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
17371 wxPyEndAllowThreads(__tstate);
17372 if (PyErr_Occurred()) SWIG_fail;
17373 }
17374 {
17375 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17376 }
17377 {
17378 if (temp4)
17379 delete arg4;
17380 }
17381 {
17382 if (temp9)
17383 delete arg9;
17384 }
17385 return resultobj;
17386fail:
17387 {
17388 if (temp4)
17389 delete arg4;
17390 }
17391 {
17392 if (temp9)
17393 delete arg9;
17394 }
17395 return NULL;
d14a1e28
RD
17396}
17397
17398
0085ce49
RD
17399SWIGINTERN PyObject *_wrap_RadioButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17400 PyObject *resultobj = 0;
17401 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17402 bool result;
17403 void *argp1 = 0 ;
17404 int res1 = 0 ;
17405 PyObject *swig_obj[1] ;
17406
17407 if (!args) SWIG_fail;
17408 swig_obj[0] = args;
17409 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17410 if (!SWIG_IsOK(res1)) {
17411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_GetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17412 }
17413 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17414 {
17415 PyThreadState* __tstate = wxPyBeginAllowThreads();
17416 result = (bool)(arg1)->GetValue();
17417 wxPyEndAllowThreads(__tstate);
17418 if (PyErr_Occurred()) SWIG_fail;
17419 }
17420 {
17421 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17422 }
17423 return resultobj;
17424fail:
17425 return NULL;
17426}
17427
17428
17429SWIGINTERN PyObject *_wrap_RadioButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17430 PyObject *resultobj = 0;
17431 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17432 bool arg2 ;
17433 void *argp1 = 0 ;
17434 int res1 = 0 ;
17435 bool val2 ;
17436 int ecode2 = 0 ;
17437 PyObject * obj0 = 0 ;
17438 PyObject * obj1 = 0 ;
17439 char * kwnames[] = {
17440 (char *) "self",(char *) "value", NULL
17441 };
17442
17443 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17444 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17445 if (!SWIG_IsOK(res1)) {
17446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_SetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17447 }
17448 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17449 ecode2 = SWIG_AsVal_bool(obj1, &val2);
17450 if (!SWIG_IsOK(ecode2)) {
17451 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
17452 }
17453 arg2 = static_cast< bool >(val2);
17454 {
17455 PyThreadState* __tstate = wxPyBeginAllowThreads();
17456 (arg1)->SetValue(arg2);
17457 wxPyEndAllowThreads(__tstate);
17458 if (PyErr_Occurred()) SWIG_fail;
17459 }
17460 resultobj = SWIG_Py_Void();
17461 return resultobj;
17462fail:
17463 return NULL;
17464}
17465
17466
17467SWIGINTERN PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17468 PyObject *resultobj = 0;
17469 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17470 SwigValueWrapper<wxVisualAttributes > result;
17471 int val1 ;
17472 int ecode1 = 0 ;
17473 PyObject * obj0 = 0 ;
17474 char * kwnames[] = {
17475 (char *) "variant", NULL
17476 };
17477
17478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17479 if (obj0) {
17480 ecode1 = SWIG_AsVal_int(obj0, &val1);
17481 if (!SWIG_IsOK(ecode1)) {
17482 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17483 }
17484 arg1 = static_cast< wxWindowVariant >(val1);
17485 }
17486 {
17487 if (!wxPyCheckForApp()) SWIG_fail;
17488 PyThreadState* __tstate = wxPyBeginAllowThreads();
17489 result = wxRadioButton::GetClassDefaultAttributes(arg1);
17490 wxPyEndAllowThreads(__tstate);
17491 if (PyErr_Occurred()) SWIG_fail;
17492 }
17493 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17494 return resultobj;
17495fail:
17496 return NULL;
d14a1e28
RD
17497}
17498
17499
0085ce49
RD
17500SWIGINTERN PyObject *RadioButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17501 PyObject *obj;
17502 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17503 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioButton, SWIG_NewClientData(obj));
17504 return SWIG_Py_Void();
17505}
17506
17507SWIGINTERN PyObject *RadioButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17508 return SWIG_Python_InitShadowInstance(args);
17509}
17510
17511SWIGINTERN int SliderNameStr_set(PyObject *) {
17512 SWIG_Error(SWIG_AttributeError,"Variable SliderNameStr is read-only.");
17513 return 1;
17514}
17515
17516
17517SWIGINTERN PyObject *SliderNameStr_get(void) {
17518 PyObject *pyobj = 0;
17519
17520 {
17521#if wxUSE_UNICODE
17522 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17523#else
17524 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17525#endif
17526 }
17527 return pyobj;
17528}
17529
17530
17531SWIGINTERN PyObject *_wrap_new_Slider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17532 PyObject *resultobj = 0;
17533 wxWindow *arg1 = (wxWindow *) 0 ;
17534 int arg2 = (int) -1 ;
17535 int arg3 = (int) 0 ;
17536 int arg4 = (int) 0 ;
17537 int arg5 = (int) 100 ;
17538 wxPoint const &arg6_defvalue = wxDefaultPosition ;
17539 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
17540 wxSize const &arg7_defvalue = wxDefaultSize ;
17541 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
17542 long arg8 = (long) wxSL_HORIZONTAL ;
17543 wxValidator const &arg9_defvalue = wxDefaultValidator ;
17544 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
17545 wxString const &arg10_defvalue = wxPySliderNameStr ;
17546 wxString *arg10 = (wxString *) &arg10_defvalue ;
17547 wxSlider *result = 0 ;
17548 void *argp1 = 0 ;
17549 int res1 = 0 ;
17550 int val2 ;
17551 int ecode2 = 0 ;
17552 int val3 ;
17553 int ecode3 = 0 ;
17554 int val4 ;
17555 int ecode4 = 0 ;
17556 int val5 ;
17557 int ecode5 = 0 ;
17558 wxPoint temp6 ;
17559 wxSize temp7 ;
17560 long val8 ;
17561 int ecode8 = 0 ;
17562 void *argp9 = 0 ;
17563 int res9 = 0 ;
17564 bool temp10 = false ;
17565 PyObject * obj0 = 0 ;
17566 PyObject * obj1 = 0 ;
17567 PyObject * obj2 = 0 ;
17568 PyObject * obj3 = 0 ;
17569 PyObject * obj4 = 0 ;
17570 PyObject * obj5 = 0 ;
17571 PyObject * obj6 = 0 ;
17572 PyObject * obj7 = 0 ;
17573 PyObject * obj8 = 0 ;
17574 PyObject * obj9 = 0 ;
17575 char * kwnames[] = {
17576 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17577 };
17578
17579 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
17580 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17581 if (!SWIG_IsOK(res1)) {
17582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Slider" "', expected argument " "1"" of type '" "wxWindow *""'");
17583 }
17584 arg1 = reinterpret_cast< wxWindow * >(argp1);
17585 if (obj1) {
17586 ecode2 = SWIG_AsVal_int(obj1, &val2);
17587 if (!SWIG_IsOK(ecode2)) {
17588 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Slider" "', expected argument " "2"" of type '" "int""'");
17589 }
17590 arg2 = static_cast< int >(val2);
17591 }
17592 if (obj2) {
17593 ecode3 = SWIG_AsVal_int(obj2, &val3);
17594 if (!SWIG_IsOK(ecode3)) {
17595 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Slider" "', expected argument " "3"" of type '" "int""'");
17596 }
17597 arg3 = static_cast< int >(val3);
17598 }
17599 if (obj3) {
17600 ecode4 = SWIG_AsVal_int(obj3, &val4);
17601 if (!SWIG_IsOK(ecode4)) {
17602 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Slider" "', expected argument " "4"" of type '" "int""'");
17603 }
17604 arg4 = static_cast< int >(val4);
17605 }
17606 if (obj4) {
17607 ecode5 = SWIG_AsVal_int(obj4, &val5);
17608 if (!SWIG_IsOK(ecode5)) {
17609 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Slider" "', expected argument " "5"" of type '" "int""'");
17610 }
17611 arg5 = static_cast< int >(val5);
17612 }
17613 if (obj5) {
093d3ff1 17614 {
0085ce49
RD
17615 arg6 = &temp6;
17616 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
093d3ff1 17617 }
0085ce49
RD
17618 }
17619 if (obj6) {
093d3ff1 17620 {
0085ce49
RD
17621 arg7 = &temp7;
17622 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
093d3ff1 17623 }
0085ce49
RD
17624 }
17625 if (obj7) {
17626 ecode8 = SWIG_AsVal_long(obj7, &val8);
17627 if (!SWIG_IsOK(ecode8)) {
17628 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Slider" "', expected argument " "8"" of type '" "long""'");
17629 }
17630 arg8 = static_cast< long >(val8);
17631 }
17632 if (obj8) {
17633 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
17634 if (!SWIG_IsOK(res9)) {
17635 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
d14a1e28 17636 }
0085ce49
RD
17637 if (!argp9) {
17638 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
d14a1e28 17639 }
0085ce49
RD
17640 arg9 = reinterpret_cast< wxValidator * >(argp9);
17641 }
17642 if (obj9) {
4f89f6a3 17643 {
0085ce49
RD
17644 arg10 = wxString_in_helper(obj9);
17645 if (arg10 == NULL) SWIG_fail;
17646 temp10 = true;
4f89f6a3 17647 }
0085ce49
RD
17648 }
17649 {
17650 if (!wxPyCheckForApp()) SWIG_fail;
17651 PyThreadState* __tstate = wxPyBeginAllowThreads();
17652 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
17653 wxPyEndAllowThreads(__tstate);
17654 if (PyErr_Occurred()) SWIG_fail;
17655 }
17656 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_NEW | 0 );
17657 {
17658 if (temp10)
17659 delete arg10;
17660 }
17661 return resultobj;
17662fail:
17663 {
17664 if (temp10)
17665 delete arg10;
17666 }
17667 return NULL;
d14a1e28
RD
17668}
17669
17670
0085ce49
RD
17671SWIGINTERN PyObject *_wrap_new_PreSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17672 PyObject *resultobj = 0;
17673 wxSlider *result = 0 ;
17674
17675 if (!SWIG_Python_UnpackTuple(args,"new_PreSlider",0,0,0)) SWIG_fail;
17676 {
17677 if (!wxPyCheckForApp()) SWIG_fail;
17678 PyThreadState* __tstate = wxPyBeginAllowThreads();
17679 result = (wxSlider *)new wxSlider();
17680 wxPyEndAllowThreads(__tstate);
17681 if (PyErr_Occurred()) SWIG_fail;
17682 }
17683 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_OWN | 0 );
17684 return resultobj;
17685fail:
17686 return NULL;
17687}
17688
17689
17690SWIGINTERN PyObject *_wrap_Slider_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17691 PyObject *resultobj = 0;
17692 wxSlider *arg1 = (wxSlider *) 0 ;
17693 wxWindow *arg2 = (wxWindow *) 0 ;
17694 int arg3 = (int) -1 ;
17695 int arg4 = (int) 0 ;
17696 int arg5 = (int) 0 ;
17697 int arg6 = (int) 100 ;
17698 wxPoint const &arg7_defvalue = wxDefaultPosition ;
17699 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
17700 wxSize const &arg8_defvalue = wxDefaultSize ;
17701 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
17702 long arg9 = (long) wxSL_HORIZONTAL ;
17703 wxValidator const &arg10_defvalue = wxDefaultValidator ;
17704 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
17705 wxString const &arg11_defvalue = wxPySliderNameStr ;
17706 wxString *arg11 = (wxString *) &arg11_defvalue ;
17707 bool result;
17708 void *argp1 = 0 ;
17709 int res1 = 0 ;
17710 void *argp2 = 0 ;
17711 int res2 = 0 ;
17712 int val3 ;
17713 int ecode3 = 0 ;
17714 int val4 ;
17715 int ecode4 = 0 ;
17716 int val5 ;
17717 int ecode5 = 0 ;
17718 int val6 ;
17719 int ecode6 = 0 ;
17720 wxPoint temp7 ;
17721 wxSize temp8 ;
17722 long val9 ;
17723 int ecode9 = 0 ;
17724 void *argp10 = 0 ;
17725 int res10 = 0 ;
17726 bool temp11 = false ;
17727 PyObject * obj0 = 0 ;
17728 PyObject * obj1 = 0 ;
17729 PyObject * obj2 = 0 ;
17730 PyObject * obj3 = 0 ;
17731 PyObject * obj4 = 0 ;
17732 PyObject * obj5 = 0 ;
17733 PyObject * obj6 = 0 ;
17734 PyObject * obj7 = 0 ;
17735 PyObject * obj8 = 0 ;
17736 PyObject * obj9 = 0 ;
17737 PyObject * obj10 = 0 ;
17738 char * kwnames[] = {
17739 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17740 };
17741
17742 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
17743 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17744 if (!SWIG_IsOK(res1)) {
17745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_Create" "', expected argument " "1"" of type '" "wxSlider *""'");
17746 }
17747 arg1 = reinterpret_cast< wxSlider * >(argp1);
17748 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17749 if (!SWIG_IsOK(res2)) {
17750 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Slider_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17751 }
17752 arg2 = reinterpret_cast< wxWindow * >(argp2);
17753 if (obj2) {
17754 ecode3 = SWIG_AsVal_int(obj2, &val3);
17755 if (!SWIG_IsOK(ecode3)) {
17756 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_Create" "', expected argument " "3"" of type '" "int""'");
17757 }
17758 arg3 = static_cast< int >(val3);
17759 }
17760 if (obj3) {
17761 ecode4 = SWIG_AsVal_int(obj3, &val4);
17762 if (!SWIG_IsOK(ecode4)) {
17763 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Slider_Create" "', expected argument " "4"" of type '" "int""'");
17764 }
17765 arg4 = static_cast< int >(val4);
17766 }
17767 if (obj4) {
17768 ecode5 = SWIG_AsVal_int(obj4, &val5);
17769 if (!SWIG_IsOK(ecode5)) {
17770 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Slider_Create" "', expected argument " "5"" of type '" "int""'");
17771 }
17772 arg5 = static_cast< int >(val5);
17773 }
17774 if (obj5) {
17775 ecode6 = SWIG_AsVal_int(obj5, &val6);
17776 if (!SWIG_IsOK(ecode6)) {
17777 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Slider_Create" "', expected argument " "6"" of type '" "int""'");
17778 }
17779 arg6 = static_cast< int >(val6);
17780 }
17781 if (obj6) {
093d3ff1 17782 {
0085ce49
RD
17783 arg7 = &temp7;
17784 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
d14a1e28 17785 }
0085ce49
RD
17786 }
17787 if (obj7) {
d14a1e28 17788 {
0085ce49
RD
17789 arg8 = &temp8;
17790 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
d14a1e28 17791 }
0085ce49
RD
17792 }
17793 if (obj8) {
17794 ecode9 = SWIG_AsVal_long(obj8, &val9);
17795 if (!SWIG_IsOK(ecode9)) {
17796 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "Slider_Create" "', expected argument " "9"" of type '" "long""'");
17797 }
17798 arg9 = static_cast< long >(val9);
17799 }
17800 if (obj9) {
17801 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
17802 if (!SWIG_IsOK(res10)) {
17803 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
d14a1e28 17804 }
0085ce49
RD
17805 if (!argp10) {
17806 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
d14a1e28 17807 }
0085ce49
RD
17808 arg10 = reinterpret_cast< wxValidator * >(argp10);
17809 }
17810 if (obj10) {
4f89f6a3 17811 {
0085ce49
RD
17812 arg11 = wxString_in_helper(obj10);
17813 if (arg11 == NULL) SWIG_fail;
17814 temp11 = true;
4f89f6a3 17815 }
0085ce49
RD
17816 }
17817 {
17818 PyThreadState* __tstate = wxPyBeginAllowThreads();
17819 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
17820 wxPyEndAllowThreads(__tstate);
17821 if (PyErr_Occurred()) SWIG_fail;
17822 }
17823 {
17824 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17825 }
17826 {
17827 if (temp11)
17828 delete arg11;
17829 }
17830 return resultobj;
17831fail:
17832 {
17833 if (temp11)
17834 delete arg11;
17835 }
17836 return NULL;
d14a1e28
RD
17837}
17838
17839
0085ce49
RD
17840SWIGINTERN PyObject *_wrap_Slider_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17841 PyObject *resultobj = 0;
17842 wxSlider *arg1 = (wxSlider *) 0 ;
17843 int result;
17844 void *argp1 = 0 ;
17845 int res1 = 0 ;
17846 PyObject *swig_obj[1] ;
17847
17848 if (!args) SWIG_fail;
17849 swig_obj[0] = args;
17850 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17851 if (!SWIG_IsOK(res1)) {
17852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetValue" "', expected argument " "1"" of type '" "wxSlider const *""'");
17853 }
17854 arg1 = reinterpret_cast< wxSlider * >(argp1);
17855 {
17856 PyThreadState* __tstate = wxPyBeginAllowThreads();
17857 result = (int)((wxSlider const *)arg1)->GetValue();
17858 wxPyEndAllowThreads(__tstate);
17859 if (PyErr_Occurred()) SWIG_fail;
17860 }
17861 resultobj = SWIG_From_int(static_cast< int >(result));
17862 return resultobj;
17863fail:
17864 return NULL;
17865}
17866
17867
17868SWIGINTERN PyObject *_wrap_Slider_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17869 PyObject *resultobj = 0;
17870 wxSlider *arg1 = (wxSlider *) 0 ;
17871 int arg2 ;
17872 void *argp1 = 0 ;
17873 int res1 = 0 ;
17874 int val2 ;
17875 int ecode2 = 0 ;
17876 PyObject * obj0 = 0 ;
17877 PyObject * obj1 = 0 ;
17878 char * kwnames[] = {
17879 (char *) "self",(char *) "value", NULL
17880 };
17881
17882 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17883 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17884 if (!SWIG_IsOK(res1)) {
17885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetValue" "', expected argument " "1"" of type '" "wxSlider *""'");
17886 }
17887 arg1 = reinterpret_cast< wxSlider * >(argp1);
17888 ecode2 = SWIG_AsVal_int(obj1, &val2);
17889 if (!SWIG_IsOK(ecode2)) {
17890 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetValue" "', expected argument " "2"" of type '" "int""'");
17891 }
17892 arg2 = static_cast< int >(val2);
17893 {
17894 PyThreadState* __tstate = wxPyBeginAllowThreads();
17895 (arg1)->SetValue(arg2);
17896 wxPyEndAllowThreads(__tstate);
17897 if (PyErr_Occurred()) SWIG_fail;
17898 }
17899 resultobj = SWIG_Py_Void();
17900 return resultobj;
17901fail:
17902 return NULL;
17903}
17904
17905
17906SWIGINTERN PyObject *_wrap_Slider_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17907 PyObject *resultobj = 0;
17908 wxSlider *arg1 = (wxSlider *) 0 ;
17909 int arg2 ;
17910 int arg3 ;
17911 void *argp1 = 0 ;
17912 int res1 = 0 ;
17913 int val2 ;
17914 int ecode2 = 0 ;
17915 int val3 ;
17916 int ecode3 = 0 ;
17917 PyObject * obj0 = 0 ;
17918 PyObject * obj1 = 0 ;
17919 PyObject * obj2 = 0 ;
17920 char * kwnames[] = {
17921 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
17922 };
17923
17924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17925 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17926 if (!SWIG_IsOK(res1)) {
17927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetRange" "', expected argument " "1"" of type '" "wxSlider *""'");
17928 }
17929 arg1 = reinterpret_cast< wxSlider * >(argp1);
17930 ecode2 = SWIG_AsVal_int(obj1, &val2);
17931 if (!SWIG_IsOK(ecode2)) {
17932 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetRange" "', expected argument " "2"" of type '" "int""'");
17933 }
17934 arg2 = static_cast< int >(val2);
17935 ecode3 = SWIG_AsVal_int(obj2, &val3);
17936 if (!SWIG_IsOK(ecode3)) {
17937 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetRange" "', expected argument " "3"" of type '" "int""'");
17938 }
17939 arg3 = static_cast< int >(val3);
17940 {
17941 PyThreadState* __tstate = wxPyBeginAllowThreads();
17942 (arg1)->SetRange(arg2,arg3);
17943 wxPyEndAllowThreads(__tstate);
17944 if (PyErr_Occurred()) SWIG_fail;
17945 }
17946 resultobj = SWIG_Py_Void();
17947 return resultobj;
17948fail:
17949 return NULL;
d14a1e28
RD
17950}
17951
17952
0085ce49
RD
17953SWIGINTERN PyObject *_wrap_Slider_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17954 PyObject *resultobj = 0;
17955 wxSlider *arg1 = (wxSlider *) 0 ;
17956 int result;
17957 void *argp1 = 0 ;
17958 int res1 = 0 ;
17959 PyObject *swig_obj[1] ;
17960
17961 if (!args) SWIG_fail;
17962 swig_obj[0] = args;
17963 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17964 if (!SWIG_IsOK(res1)) {
17965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMin" "', expected argument " "1"" of type '" "wxSlider const *""'");
17966 }
17967 arg1 = reinterpret_cast< wxSlider * >(argp1);
17968 {
17969 PyThreadState* __tstate = wxPyBeginAllowThreads();
17970 result = (int)((wxSlider const *)arg1)->GetMin();
17971 wxPyEndAllowThreads(__tstate);
17972 if (PyErr_Occurred()) SWIG_fail;
17973 }
17974 resultobj = SWIG_From_int(static_cast< int >(result));
17975 return resultobj;
17976fail:
17977 return NULL;
d14a1e28
RD
17978}
17979
17980
0085ce49
RD
17981SWIGINTERN PyObject *_wrap_Slider_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17982 PyObject *resultobj = 0;
17983 wxSlider *arg1 = (wxSlider *) 0 ;
17984 int result;
17985 void *argp1 = 0 ;
17986 int res1 = 0 ;
17987 PyObject *swig_obj[1] ;
17988
17989 if (!args) SWIG_fail;
17990 swig_obj[0] = args;
17991 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17992 if (!SWIG_IsOK(res1)) {
17993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMax" "', expected argument " "1"" of type '" "wxSlider const *""'");
17994 }
17995 arg1 = reinterpret_cast< wxSlider * >(argp1);
17996 {
17997 PyThreadState* __tstate = wxPyBeginAllowThreads();
17998 result = (int)((wxSlider const *)arg1)->GetMax();
17999 wxPyEndAllowThreads(__tstate);
18000 if (PyErr_Occurred()) SWIG_fail;
18001 }
18002 resultobj = SWIG_From_int(static_cast< int >(result));
18003 return resultobj;
18004fail:
18005 return NULL;
18006}
18007
18008
18009SWIGINTERN PyObject *_wrap_Slider_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18010 PyObject *resultobj = 0;
18011 wxSlider *arg1 = (wxSlider *) 0 ;
18012 int arg2 ;
18013 void *argp1 = 0 ;
18014 int res1 = 0 ;
18015 int val2 ;
18016 int ecode2 = 0 ;
18017 PyObject * obj0 = 0 ;
18018 PyObject * obj1 = 0 ;
18019 char * kwnames[] = {
18020 (char *) "self",(char *) "minValue", NULL
18021 };
18022
18023 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
18024 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18025 if (!SWIG_IsOK(res1)) {
18026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMin" "', expected argument " "1"" of type '" "wxSlider *""'");
18027 }
18028 arg1 = reinterpret_cast< wxSlider * >(argp1);
18029 ecode2 = SWIG_AsVal_int(obj1, &val2);
18030 if (!SWIG_IsOK(ecode2)) {
18031 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMin" "', expected argument " "2"" of type '" "int""'");
18032 }
18033 arg2 = static_cast< int >(val2);
18034 {
18035 PyThreadState* __tstate = wxPyBeginAllowThreads();
18036 (arg1)->SetMin(arg2);
18037 wxPyEndAllowThreads(__tstate);
18038 if (PyErr_Occurred()) SWIG_fail;
18039 }
18040 resultobj = SWIG_Py_Void();
18041 return resultobj;
18042fail:
18043 return NULL;
18044}
18045
18046
18047SWIGINTERN PyObject *_wrap_Slider_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18048 PyObject *resultobj = 0;
18049 wxSlider *arg1 = (wxSlider *) 0 ;
18050 int arg2 ;
18051 void *argp1 = 0 ;
18052 int res1 = 0 ;
18053 int val2 ;
18054 int ecode2 = 0 ;
18055 PyObject * obj0 = 0 ;
18056 PyObject * obj1 = 0 ;
18057 char * kwnames[] = {
18058 (char *) "self",(char *) "maxValue", NULL
18059 };
18060
18061 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
18062 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18063 if (!SWIG_IsOK(res1)) {
18064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMax" "', expected argument " "1"" of type '" "wxSlider *""'");
18065 }
18066 arg1 = reinterpret_cast< wxSlider * >(argp1);
18067 ecode2 = SWIG_AsVal_int(obj1, &val2);
18068 if (!SWIG_IsOK(ecode2)) {
18069 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMax" "', expected argument " "2"" of type '" "int""'");
18070 }
18071 arg2 = static_cast< int >(val2);
18072 {
18073 PyThreadState* __tstate = wxPyBeginAllowThreads();
18074 (arg1)->SetMax(arg2);
18075 wxPyEndAllowThreads(__tstate);
18076 if (PyErr_Occurred()) SWIG_fail;
18077 }
18078 resultobj = SWIG_Py_Void();
18079 return resultobj;
18080fail:
18081 return NULL;
18082}
18083
18084
18085SWIGINTERN PyObject *_wrap_Slider_SetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18086 PyObject *resultobj = 0;
18087 wxSlider *arg1 = (wxSlider *) 0 ;
18088 int arg2 ;
18089 void *argp1 = 0 ;
18090 int res1 = 0 ;
18091 int val2 ;
18092 int ecode2 = 0 ;
18093 PyObject * obj0 = 0 ;
18094 PyObject * obj1 = 0 ;
18095 char * kwnames[] = {
18096 (char *) "self",(char *) "lineSize", NULL
18097 };
18098
18099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) SWIG_fail;
18100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18101 if (!SWIG_IsOK(res1)) {
18102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetLineSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18103 }
18104 arg1 = reinterpret_cast< wxSlider * >(argp1);
18105 ecode2 = SWIG_AsVal_int(obj1, &val2);
18106 if (!SWIG_IsOK(ecode2)) {
18107 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetLineSize" "', expected argument " "2"" of type '" "int""'");
18108 }
18109 arg2 = static_cast< int >(val2);
18110 {
18111 PyThreadState* __tstate = wxPyBeginAllowThreads();
18112 (arg1)->SetLineSize(arg2);
18113 wxPyEndAllowThreads(__tstate);
18114 if (PyErr_Occurred()) SWIG_fail;
18115 }
18116 resultobj = SWIG_Py_Void();
18117 return resultobj;
18118fail:
18119 return NULL;
18120}
18121
18122
18123SWIGINTERN PyObject *_wrap_Slider_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18124 PyObject *resultobj = 0;
18125 wxSlider *arg1 = (wxSlider *) 0 ;
18126 int arg2 ;
18127 void *argp1 = 0 ;
18128 int res1 = 0 ;
18129 int val2 ;
18130 int ecode2 = 0 ;
18131 PyObject * obj0 = 0 ;
18132 PyObject * obj1 = 0 ;
18133 char * kwnames[] = {
18134 (char *) "self",(char *) "pageSize", NULL
18135 };
18136
18137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) 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_SetPageSize" "', 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_SetPageSize" "', expected argument " "2"" of type '" "int""'");
18146 }
18147 arg2 = static_cast< int >(val2);
18148 {
18149 PyThreadState* __tstate = wxPyBeginAllowThreads();
18150 (arg1)->SetPageSize(arg2);
18151 wxPyEndAllowThreads(__tstate);
18152 if (PyErr_Occurred()) SWIG_fail;
18153 }
18154 resultobj = SWIG_Py_Void();
18155 return resultobj;
18156fail:
18157 return NULL;
d14a1e28
RD
18158}
18159
18160
0085ce49
RD
18161SWIGINTERN PyObject *_wrap_Slider_GetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18162 PyObject *resultobj = 0;
18163 wxSlider *arg1 = (wxSlider *) 0 ;
18164 int result;
18165 void *argp1 = 0 ;
18166 int res1 = 0 ;
18167 PyObject *swig_obj[1] ;
18168
18169 if (!args) SWIG_fail;
18170 swig_obj[0] = args;
18171 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18172 if (!SWIG_IsOK(res1)) {
18173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetLineSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18174 }
18175 arg1 = reinterpret_cast< wxSlider * >(argp1);
18176 {
18177 PyThreadState* __tstate = wxPyBeginAllowThreads();
18178 result = (int)((wxSlider const *)arg1)->GetLineSize();
18179 wxPyEndAllowThreads(__tstate);
18180 if (PyErr_Occurred()) SWIG_fail;
18181 }
18182 resultobj = SWIG_From_int(static_cast< int >(result));
18183 return resultobj;
18184fail:
18185 return NULL;
d14a1e28
RD
18186}
18187
18188
0085ce49
RD
18189SWIGINTERN PyObject *_wrap_Slider_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18190 PyObject *resultobj = 0;
18191 wxSlider *arg1 = (wxSlider *) 0 ;
18192 int result;
18193 void *argp1 = 0 ;
18194 int res1 = 0 ;
18195 PyObject *swig_obj[1] ;
18196
18197 if (!args) SWIG_fail;
18198 swig_obj[0] = args;
18199 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18200 if (!SWIG_IsOK(res1)) {
18201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetPageSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18202 }
18203 arg1 = reinterpret_cast< wxSlider * >(argp1);
18204 {
18205 PyThreadState* __tstate = wxPyBeginAllowThreads();
18206 result = (int)((wxSlider const *)arg1)->GetPageSize();
18207 wxPyEndAllowThreads(__tstate);
18208 if (PyErr_Occurred()) SWIG_fail;
18209 }
18210 resultobj = SWIG_From_int(static_cast< int >(result));
18211 return resultobj;
18212fail:
18213 return NULL;
18214}
18215
18216
18217SWIGINTERN PyObject *_wrap_Slider_SetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18218 PyObject *resultobj = 0;
18219 wxSlider *arg1 = (wxSlider *) 0 ;
18220 int arg2 ;
18221 void *argp1 = 0 ;
18222 int res1 = 0 ;
18223 int val2 ;
18224 int ecode2 = 0 ;
18225 PyObject * obj0 = 0 ;
18226 PyObject * obj1 = 0 ;
18227 char * kwnames[] = {
18228 (char *) "self",(char *) "lenPixels", NULL
18229 };
18230
18231 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) SWIG_fail;
18232 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18233 if (!SWIG_IsOK(res1)) {
18234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetThumbLength" "', expected argument " "1"" of type '" "wxSlider *""'");
18235 }
18236 arg1 = reinterpret_cast< wxSlider * >(argp1);
18237 ecode2 = SWIG_AsVal_int(obj1, &val2);
18238 if (!SWIG_IsOK(ecode2)) {
18239 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetThumbLength" "', expected argument " "2"" of type '" "int""'");
18240 }
18241 arg2 = static_cast< int >(val2);
18242 {
18243 PyThreadState* __tstate = wxPyBeginAllowThreads();
18244 (arg1)->SetThumbLength(arg2);
18245 wxPyEndAllowThreads(__tstate);
18246 if (PyErr_Occurred()) SWIG_fail;
18247 }
18248 resultobj = SWIG_Py_Void();
18249 return resultobj;
18250fail:
18251 return NULL;
4d5c3d91
RD
18252}
18253
18254
0085ce49
RD
18255SWIGINTERN PyObject *_wrap_Slider_GetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18256 PyObject *resultobj = 0;
18257 wxSlider *arg1 = (wxSlider *) 0 ;
18258 int result;
18259 void *argp1 = 0 ;
18260 int res1 = 0 ;
18261 PyObject *swig_obj[1] ;
18262
18263 if (!args) SWIG_fail;
18264 swig_obj[0] = args;
18265 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18266 if (!SWIG_IsOK(res1)) {
18267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetThumbLength" "', expected argument " "1"" of type '" "wxSlider const *""'");
18268 }
18269 arg1 = reinterpret_cast< wxSlider * >(argp1);
18270 {
18271 PyThreadState* __tstate = wxPyBeginAllowThreads();
18272 result = (int)((wxSlider const *)arg1)->GetThumbLength();
18273 wxPyEndAllowThreads(__tstate);
18274 if (PyErr_Occurred()) SWIG_fail;
18275 }
18276 resultobj = SWIG_From_int(static_cast< int >(result));
18277 return resultobj;
18278fail:
18279 return NULL;
18280}
18281
18282
18283SWIGINTERN PyObject *_wrap_Slider_SetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18284 PyObject *resultobj = 0;
18285 wxSlider *arg1 = (wxSlider *) 0 ;
18286 int arg2 ;
18287 int arg3 = (int) 1 ;
18288 void *argp1 = 0 ;
18289 int res1 = 0 ;
18290 int val2 ;
18291 int ecode2 = 0 ;
18292 int val3 ;
18293 int ecode3 = 0 ;
18294 PyObject * obj0 = 0 ;
18295 PyObject * obj1 = 0 ;
18296 PyObject * obj2 = 0 ;
18297 char * kwnames[] = {
18298 (char *) "self",(char *) "n",(char *) "pos", NULL
18299 };
18300
18301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18302 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18303 if (!SWIG_IsOK(res1)) {
18304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTickFreq" "', expected argument " "1"" of type '" "wxSlider *""'");
18305 }
18306 arg1 = reinterpret_cast< wxSlider * >(argp1);
18307 ecode2 = SWIG_AsVal_int(obj1, &val2);
18308 if (!SWIG_IsOK(ecode2)) {
18309 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTickFreq" "', expected argument " "2"" of type '" "int""'");
18310 }
18311 arg2 = static_cast< int >(val2);
18312 if (obj2) {
18313 ecode3 = SWIG_AsVal_int(obj2, &val3);
18314 if (!SWIG_IsOK(ecode3)) {
18315 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetTickFreq" "', expected argument " "3"" of type '" "int""'");
18316 }
18317 arg3 = static_cast< int >(val3);
18318 }
18319 {
18320 PyThreadState* __tstate = wxPyBeginAllowThreads();
18321 (arg1)->SetTickFreq(arg2,arg3);
18322 wxPyEndAllowThreads(__tstate);
18323 if (PyErr_Occurred()) SWIG_fail;
18324 }
18325 resultobj = SWIG_Py_Void();
18326 return resultobj;
18327fail:
18328 return NULL;
4896ac9e
RD
18329}
18330
18331
0085ce49
RD
18332SWIGINTERN PyObject *_wrap_Slider_GetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18333 PyObject *resultobj = 0;
18334 wxSlider *arg1 = (wxSlider *) 0 ;
18335 int result;
18336 void *argp1 = 0 ;
18337 int res1 = 0 ;
18338 PyObject *swig_obj[1] ;
18339
18340 if (!args) SWIG_fail;
18341 swig_obj[0] = args;
18342 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18343 if (!SWIG_IsOK(res1)) {
18344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetTickFreq" "', expected argument " "1"" of type '" "wxSlider const *""'");
18345 }
18346 arg1 = reinterpret_cast< wxSlider * >(argp1);
18347 {
18348 PyThreadState* __tstate = wxPyBeginAllowThreads();
18349 result = (int)((wxSlider const *)arg1)->GetTickFreq();
18350 wxPyEndAllowThreads(__tstate);
18351 if (PyErr_Occurred()) SWIG_fail;
18352 }
18353 resultobj = SWIG_From_int(static_cast< int >(result));
18354 return resultobj;
18355fail:
18356 return NULL;
d14a1e28
RD
18357}
18358
18359
0085ce49
RD
18360SWIGINTERN PyObject *_wrap_Slider_ClearTicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18361 PyObject *resultobj = 0;
18362 wxSlider *arg1 = (wxSlider *) 0 ;
18363 void *argp1 = 0 ;
18364 int res1 = 0 ;
18365 PyObject *swig_obj[1] ;
18366
18367 if (!args) SWIG_fail;
18368 swig_obj[0] = args;
18369 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18370 if (!SWIG_IsOK(res1)) {
18371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearTicks" "', expected argument " "1"" of type '" "wxSlider *""'");
18372 }
18373 arg1 = reinterpret_cast< wxSlider * >(argp1);
18374 {
18375 PyThreadState* __tstate = wxPyBeginAllowThreads();
18376 (arg1)->ClearTicks();
18377 wxPyEndAllowThreads(__tstate);
18378 if (PyErr_Occurred()) SWIG_fail;
18379 }
18380 resultobj = SWIG_Py_Void();
18381 return resultobj;
18382fail:
18383 return NULL;
18384}
18385
18386
18387SWIGINTERN PyObject *_wrap_Slider_SetTick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18388 PyObject *resultobj = 0;
18389 wxSlider *arg1 = (wxSlider *) 0 ;
18390 int arg2 ;
18391 void *argp1 = 0 ;
18392 int res1 = 0 ;
18393 int val2 ;
18394 int ecode2 = 0 ;
18395 PyObject * obj0 = 0 ;
18396 PyObject * obj1 = 0 ;
18397 char * kwnames[] = {
18398 (char *) "self",(char *) "tickPos", NULL
18399 };
18400
18401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) SWIG_fail;
18402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18403 if (!SWIG_IsOK(res1)) {
18404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTick" "', expected argument " "1"" of type '" "wxSlider *""'");
18405 }
18406 arg1 = reinterpret_cast< wxSlider * >(argp1);
18407 ecode2 = SWIG_AsVal_int(obj1, &val2);
18408 if (!SWIG_IsOK(ecode2)) {
18409 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTick" "', expected argument " "2"" of type '" "int""'");
18410 }
18411 arg2 = static_cast< int >(val2);
18412 {
18413 PyThreadState* __tstate = wxPyBeginAllowThreads();
18414 (arg1)->SetTick(arg2);
18415 wxPyEndAllowThreads(__tstate);
18416 if (PyErr_Occurred()) SWIG_fail;
18417 }
18418 resultobj = SWIG_Py_Void();
18419 return resultobj;
18420fail:
18421 return NULL;
d14a1e28
RD
18422}
18423
18424
0085ce49
RD
18425SWIGINTERN PyObject *_wrap_Slider_ClearSel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18426 PyObject *resultobj = 0;
18427 wxSlider *arg1 = (wxSlider *) 0 ;
18428 void *argp1 = 0 ;
18429 int res1 = 0 ;
18430 PyObject *swig_obj[1] ;
18431
18432 if (!args) SWIG_fail;
18433 swig_obj[0] = args;
18434 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18435 if (!SWIG_IsOK(res1)) {
18436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearSel" "', expected argument " "1"" of type '" "wxSlider *""'");
18437 }
18438 arg1 = reinterpret_cast< wxSlider * >(argp1);
18439 {
18440 PyThreadState* __tstate = wxPyBeginAllowThreads();
18441 (arg1)->ClearSel();
18442 wxPyEndAllowThreads(__tstate);
18443 if (PyErr_Occurred()) SWIG_fail;
18444 }
18445 resultobj = SWIG_Py_Void();
18446 return resultobj;
18447fail:
18448 return NULL;
d14a1e28
RD
18449}
18450
18451
0085ce49
RD
18452SWIGINTERN PyObject *_wrap_Slider_GetSelEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18453 PyObject *resultobj = 0;
18454 wxSlider *arg1 = (wxSlider *) 0 ;
18455 int result;
18456 void *argp1 = 0 ;
18457 int res1 = 0 ;
18458 PyObject *swig_obj[1] ;
18459
18460 if (!args) SWIG_fail;
18461 swig_obj[0] = args;
18462 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18463 if (!SWIG_IsOK(res1)) {
18464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelEnd" "', expected argument " "1"" of type '" "wxSlider const *""'");
18465 }
18466 arg1 = reinterpret_cast< wxSlider * >(argp1);
18467 {
18468 PyThreadState* __tstate = wxPyBeginAllowThreads();
18469 result = (int)((wxSlider const *)arg1)->GetSelEnd();
18470 wxPyEndAllowThreads(__tstate);
18471 if (PyErr_Occurred()) SWIG_fail;
18472 }
18473 resultobj = SWIG_From_int(static_cast< int >(result));
18474 return resultobj;
18475fail:
18476 return NULL;
d14a1e28
RD
18477}
18478
18479
0085ce49
RD
18480SWIGINTERN PyObject *_wrap_Slider_GetSelStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18481 PyObject *resultobj = 0;
18482 wxSlider *arg1 = (wxSlider *) 0 ;
18483 int result;
18484 void *argp1 = 0 ;
18485 int res1 = 0 ;
18486 PyObject *swig_obj[1] ;
18487
18488 if (!args) SWIG_fail;
18489 swig_obj[0] = args;
18490 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18491 if (!SWIG_IsOK(res1)) {
18492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelStart" "', expected argument " "1"" of type '" "wxSlider const *""'");
18493 }
18494 arg1 = reinterpret_cast< wxSlider * >(argp1);
18495 {
18496 PyThreadState* __tstate = wxPyBeginAllowThreads();
18497 result = (int)((wxSlider const *)arg1)->GetSelStart();
18498 wxPyEndAllowThreads(__tstate);
18499 if (PyErr_Occurred()) SWIG_fail;
18500 }
18501 resultobj = SWIG_From_int(static_cast< int >(result));
18502 return resultobj;
18503fail:
18504 return NULL;
18505}
18506
18507
18508SWIGINTERN PyObject *_wrap_Slider_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18509 PyObject *resultobj = 0;
18510 wxSlider *arg1 = (wxSlider *) 0 ;
18511 int arg2 ;
18512 int arg3 ;
18513 void *argp1 = 0 ;
18514 int res1 = 0 ;
18515 int val2 ;
18516 int ecode2 = 0 ;
18517 int val3 ;
18518 int ecode3 = 0 ;
18519 PyObject * obj0 = 0 ;
18520 PyObject * obj1 = 0 ;
18521 PyObject * obj2 = 0 ;
18522 char * kwnames[] = {
18523 (char *) "self",(char *) "min",(char *) "max", NULL
18524 };
18525
18526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18528 if (!SWIG_IsOK(res1)) {
18529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetSelection" "', expected argument " "1"" of type '" "wxSlider *""'");
18530 }
18531 arg1 = reinterpret_cast< wxSlider * >(argp1);
18532 ecode2 = SWIG_AsVal_int(obj1, &val2);
18533 if (!SWIG_IsOK(ecode2)) {
18534 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetSelection" "', expected argument " "2"" of type '" "int""'");
18535 }
18536 arg2 = static_cast< int >(val2);
18537 ecode3 = SWIG_AsVal_int(obj2, &val3);
18538 if (!SWIG_IsOK(ecode3)) {
18539 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetSelection" "', expected argument " "3"" of type '" "int""'");
18540 }
18541 arg3 = static_cast< int >(val3);
18542 {
18543 PyThreadState* __tstate = wxPyBeginAllowThreads();
18544 (arg1)->SetSelection(arg2,arg3);
18545 wxPyEndAllowThreads(__tstate);
18546 if (PyErr_Occurred()) SWIG_fail;
18547 }
18548 resultobj = SWIG_Py_Void();
18549 return resultobj;
18550fail:
18551 return NULL;
18552}
18553
18554
18555SWIGINTERN PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18556 PyObject *resultobj = 0;
18557 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18558 SwigValueWrapper<wxVisualAttributes > result;
18559 int val1 ;
18560 int ecode1 = 0 ;
18561 PyObject * obj0 = 0 ;
18562 char * kwnames[] = {
18563 (char *) "variant", NULL
18564 };
18565
18566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18567 if (obj0) {
18568 ecode1 = SWIG_AsVal_int(obj0, &val1);
18569 if (!SWIG_IsOK(ecode1)) {
18570 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Slider_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18571 }
18572 arg1 = static_cast< wxWindowVariant >(val1);
18573 }
18574 {
18575 if (!wxPyCheckForApp()) SWIG_fail;
18576 PyThreadState* __tstate = wxPyBeginAllowThreads();
18577 result = wxSlider::GetClassDefaultAttributes(arg1);
18578 wxPyEndAllowThreads(__tstate);
18579 if (PyErr_Occurred()) SWIG_fail;
18580 }
18581 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18582 return resultobj;
18583fail:
18584 return NULL;
d14a1e28
RD
18585}
18586
18587
0085ce49
RD
18588SWIGINTERN PyObject *Slider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18589 PyObject *obj;
18590 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18591 SWIG_TypeNewClientData(SWIGTYPE_p_wxSlider, SWIG_NewClientData(obj));
18592 return SWIG_Py_Void();
d14a1e28
RD
18593}
18594
0085ce49
RD
18595SWIGINTERN PyObject *Slider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18596 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
18597}
18598
0085ce49
RD
18599SWIGINTERN int ToggleButtonNameStr_set(PyObject *) {
18600 SWIG_Error(SWIG_AttributeError,"Variable ToggleButtonNameStr is read-only.");
18601 return 1;
d14a1e28
RD
18602}
18603
18604
0085ce49
RD
18605SWIGINTERN PyObject *ToggleButtonNameStr_get(void) {
18606 PyObject *pyobj = 0;
18607
18608 {
18609#if wxUSE_UNICODE
18610 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18611#else
18612 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18613#endif
18614 }
18615 return pyobj;
18616}
18617
18618
18619SWIGINTERN PyObject *_wrap_new_ToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18620 PyObject *resultobj = 0;
18621 wxWindow *arg1 = (wxWindow *) 0 ;
18622 int arg2 = (int) -1 ;
18623 wxString const &arg3_defvalue = wxPyEmptyString ;
18624 wxString *arg3 = (wxString *) &arg3_defvalue ;
18625 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18626 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18627 wxSize const &arg5_defvalue = wxDefaultSize ;
18628 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18629 long arg6 = (long) 0 ;
18630 wxValidator const &arg7_defvalue = wxDefaultValidator ;
18631 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
18632 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
18633 wxString *arg8 = (wxString *) &arg8_defvalue ;
18634 wxToggleButton *result = 0 ;
18635 void *argp1 = 0 ;
18636 int res1 = 0 ;
18637 int val2 ;
18638 int ecode2 = 0 ;
18639 bool temp3 = false ;
18640 wxPoint temp4 ;
18641 wxSize temp5 ;
18642 long val6 ;
18643 int ecode6 = 0 ;
18644 void *argp7 = 0 ;
18645 int res7 = 0 ;
18646 bool temp8 = false ;
18647 PyObject * obj0 = 0 ;
18648 PyObject * obj1 = 0 ;
18649 PyObject * obj2 = 0 ;
18650 PyObject * obj3 = 0 ;
18651 PyObject * obj4 = 0 ;
18652 PyObject * obj5 = 0 ;
18653 PyObject * obj6 = 0 ;
18654 PyObject * obj7 = 0 ;
18655 char * kwnames[] = {
18656 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18657 };
18658
18659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
18660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
18661 if (!SWIG_IsOK(res1)) {
18662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToggleButton" "', expected argument " "1"" of type '" "wxWindow *""'");
18663 }
18664 arg1 = reinterpret_cast< wxWindow * >(argp1);
18665 if (obj1) {
18666 ecode2 = SWIG_AsVal_int(obj1, &val2);
18667 if (!SWIG_IsOK(ecode2)) {
18668 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToggleButton" "', expected argument " "2"" of type '" "int""'");
18669 }
18670 arg2 = static_cast< int >(val2);
18671 }
18672 if (obj2) {
d14a1e28 18673 {
0085ce49
RD
18674 arg3 = wxString_in_helper(obj2);
18675 if (arg3 == NULL) SWIG_fail;
18676 temp3 = true;
d14a1e28 18677 }
0085ce49
RD
18678 }
18679 if (obj3) {
4f89f6a3 18680 {
0085ce49
RD
18681 arg4 = &temp4;
18682 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 18683 }
0085ce49
RD
18684 }
18685 if (obj4) {
d14a1e28 18686 {
0085ce49
RD
18687 arg5 = &temp5;
18688 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 18689 }
0085ce49
RD
18690 }
18691 if (obj5) {
18692 ecode6 = SWIG_AsVal_long(obj5, &val6);
18693 if (!SWIG_IsOK(ecode6)) {
18694 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ToggleButton" "', expected argument " "6"" of type '" "long""'");
18695 }
18696 arg6 = static_cast< long >(val6);
18697 }
18698 if (obj6) {
18699 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
18700 if (!SWIG_IsOK(res7)) {
18701 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
4f89f6a3 18702 }
0085ce49
RD
18703 if (!argp7) {
18704 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
093d3ff1 18705 }
0085ce49
RD
18706 arg7 = reinterpret_cast< wxValidator * >(argp7);
18707 }
18708 if (obj7) {
d14a1e28 18709 {
0085ce49
RD
18710 arg8 = wxString_in_helper(obj7);
18711 if (arg8 == NULL) SWIG_fail;
18712 temp8 = true;
d14a1e28 18713 }
0085ce49
RD
18714 }
18715 {
18716 if (!wxPyCheckForApp()) SWIG_fail;
18717 PyThreadState* __tstate = wxPyBeginAllowThreads();
18718 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
18719 wxPyEndAllowThreads(__tstate);
18720 if (PyErr_Occurred()) SWIG_fail;
18721 }
18722 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_NEW | 0 );
18723 {
18724 if (temp3)
18725 delete arg3;
18726 }
18727 {
18728 if (temp8)
18729 delete arg8;
18730 }
18731 return resultobj;
18732fail:
18733 {
18734 if (temp3)
18735 delete arg3;
18736 }
18737 {
18738 if (temp8)
18739 delete arg8;
18740 }
18741 return NULL;
d14a1e28
RD
18742}
18743
18744
0085ce49
RD
18745SWIGINTERN PyObject *_wrap_new_PreToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18746 PyObject *resultobj = 0;
18747 wxToggleButton *result = 0 ;
18748
18749 if (!SWIG_Python_UnpackTuple(args,"new_PreToggleButton",0,0,0)) SWIG_fail;
18750 {
18751 if (!wxPyCheckForApp()) SWIG_fail;
18752 PyThreadState* __tstate = wxPyBeginAllowThreads();
18753 result = (wxToggleButton *)new wxToggleButton();
18754 wxPyEndAllowThreads(__tstate);
18755 if (PyErr_Occurred()) SWIG_fail;
18756 }
18757 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_OWN | 0 );
18758 return resultobj;
18759fail:
18760 return NULL;
18761}
18762
18763
18764SWIGINTERN PyObject *_wrap_ToggleButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18765 PyObject *resultobj = 0;
18766 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18767 wxWindow *arg2 = (wxWindow *) 0 ;
18768 int arg3 = (int) -1 ;
18769 wxString const &arg4_defvalue = wxPyEmptyString ;
18770 wxString *arg4 = (wxString *) &arg4_defvalue ;
18771 wxPoint const &arg5_defvalue = wxDefaultPosition ;
18772 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
18773 wxSize const &arg6_defvalue = wxDefaultSize ;
18774 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
18775 long arg7 = (long) 0 ;
18776 wxValidator const &arg8_defvalue = wxDefaultValidator ;
18777 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
18778 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
18779 wxString *arg9 = (wxString *) &arg9_defvalue ;
18780 bool result;
18781 void *argp1 = 0 ;
18782 int res1 = 0 ;
18783 void *argp2 = 0 ;
18784 int res2 = 0 ;
18785 int val3 ;
18786 int ecode3 = 0 ;
18787 bool temp4 = false ;
18788 wxPoint temp5 ;
18789 wxSize temp6 ;
18790 long val7 ;
18791 int ecode7 = 0 ;
18792 void *argp8 = 0 ;
18793 int res8 = 0 ;
18794 bool temp9 = false ;
18795 PyObject * obj0 = 0 ;
18796 PyObject * obj1 = 0 ;
18797 PyObject * obj2 = 0 ;
18798 PyObject * obj3 = 0 ;
18799 PyObject * obj4 = 0 ;
18800 PyObject * obj5 = 0 ;
18801 PyObject * obj6 = 0 ;
18802 PyObject * obj7 = 0 ;
18803 PyObject * obj8 = 0 ;
18804 char * kwnames[] = {
18805 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18806 };
18807
18808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
18809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18810 if (!SWIG_IsOK(res1)) {
18811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_Create" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18812 }
18813 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18814 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
18815 if (!SWIG_IsOK(res2)) {
18816 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToggleButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
18817 }
18818 arg2 = reinterpret_cast< wxWindow * >(argp2);
18819 if (obj2) {
18820 ecode3 = SWIG_AsVal_int(obj2, &val3);
18821 if (!SWIG_IsOK(ecode3)) {
18822 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToggleButton_Create" "', expected argument " "3"" of type '" "int""'");
18823 }
18824 arg3 = static_cast< int >(val3);
18825 }
18826 if (obj3) {
d14a1e28 18827 {
0085ce49
RD
18828 arg4 = wxString_in_helper(obj3);
18829 if (arg4 == NULL) SWIG_fail;
18830 temp4 = true;
d14a1e28 18831 }
0085ce49
RD
18832 }
18833 if (obj4) {
d14a1e28 18834 {
0085ce49
RD
18835 arg5 = &temp5;
18836 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 18837 }
0085ce49
RD
18838 }
18839 if (obj5) {
093d3ff1 18840 {
0085ce49
RD
18841 arg6 = &temp6;
18842 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
093d3ff1 18843 }
0085ce49
RD
18844 }
18845 if (obj6) {
18846 ecode7 = SWIG_AsVal_long(obj6, &val7);
18847 if (!SWIG_IsOK(ecode7)) {
18848 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToggleButton_Create" "', expected argument " "7"" of type '" "long""'");
18849 }
18850 arg7 = static_cast< long >(val7);
18851 }
18852 if (obj7) {
18853 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
18854 if (!SWIG_IsOK(res8)) {
18855 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
18856 }
18857 if (!argp8) {
18858 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 18859 }
0085ce49
RD
18860 arg8 = reinterpret_cast< wxValidator * >(argp8);
18861 }
18862 if (obj8) {
093d3ff1 18863 {
0085ce49
RD
18864 arg9 = wxString_in_helper(obj8);
18865 if (arg9 == NULL) SWIG_fail;
18866 temp9 = true;
093d3ff1 18867 }
0085ce49
RD
18868 }
18869 {
18870 PyThreadState* __tstate = wxPyBeginAllowThreads();
18871 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
18872 wxPyEndAllowThreads(__tstate);
18873 if (PyErr_Occurred()) SWIG_fail;
18874 }
18875 {
18876 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18877 }
18878 {
18879 if (temp4)
18880 delete arg4;
18881 }
18882 {
18883 if (temp9)
18884 delete arg9;
18885 }
18886 return resultobj;
18887fail:
18888 {
18889 if (temp4)
18890 delete arg4;
18891 }
18892 {
18893 if (temp9)
18894 delete arg9;
18895 }
18896 return NULL;
18897}
18898
18899
18900SWIGINTERN PyObject *_wrap_ToggleButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18901 PyObject *resultobj = 0;
18902 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18903 bool arg2 ;
18904 void *argp1 = 0 ;
18905 int res1 = 0 ;
18906 bool val2 ;
18907 int ecode2 = 0 ;
18908 PyObject * obj0 = 0 ;
18909 PyObject * obj1 = 0 ;
18910 char * kwnames[] = {
18911 (char *) "self",(char *) "value", NULL
18912 };
18913
18914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
18915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18916 if (!SWIG_IsOK(res1)) {
18917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_SetValue" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18918 }
18919 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18920 ecode2 = SWIG_AsVal_bool(obj1, &val2);
18921 if (!SWIG_IsOK(ecode2)) {
18922 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToggleButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
18923 }
18924 arg2 = static_cast< bool >(val2);
18925 {
18926 PyThreadState* __tstate = wxPyBeginAllowThreads();
18927 (arg1)->SetValue(arg2);
18928 wxPyEndAllowThreads(__tstate);
18929 if (PyErr_Occurred()) SWIG_fail;
18930 }
18931 resultobj = SWIG_Py_Void();
18932 return resultobj;
18933fail:
18934 return NULL;
d14a1e28
RD
18935}
18936
18937
0085ce49
RD
18938SWIGINTERN PyObject *_wrap_ToggleButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18939 PyObject *resultobj = 0;
18940 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18941 bool result;
18942 void *argp1 = 0 ;
18943 int res1 = 0 ;
18944 PyObject *swig_obj[1] ;
18945
18946 if (!args) SWIG_fail;
18947 swig_obj[0] = args;
18948 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18949 if (!SWIG_IsOK(res1)) {
18950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_GetValue" "', expected argument " "1"" of type '" "wxToggleButton const *""'");
18951 }
18952 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18953 {
18954 PyThreadState* __tstate = wxPyBeginAllowThreads();
18955 result = (bool)((wxToggleButton const *)arg1)->GetValue();
18956 wxPyEndAllowThreads(__tstate);
18957 if (PyErr_Occurred()) SWIG_fail;
18958 }
18959 {
18960 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18961 }
18962 return resultobj;
18963fail:
18964 return NULL;
d14a1e28
RD
18965}
18966
18967
0085ce49
RD
18968SWIGINTERN PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18969 PyObject *resultobj = 0;
18970 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18971 SwigValueWrapper<wxVisualAttributes > result;
18972 int val1 ;
18973 int ecode1 = 0 ;
18974 PyObject * obj0 = 0 ;
18975 char * kwnames[] = {
18976 (char *) "variant", NULL
18977 };
18978
18979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18980 if (obj0) {
18981 ecode1 = SWIG_AsVal_int(obj0, &val1);
18982 if (!SWIG_IsOK(ecode1)) {
18983 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToggleButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18984 }
18985 arg1 = static_cast< wxWindowVariant >(val1);
18986 }
18987 {
18988 if (!wxPyCheckForApp()) SWIG_fail;
18989 PyThreadState* __tstate = wxPyBeginAllowThreads();
18990 result = wxToggleButton::GetClassDefaultAttributes(arg1);
18991 wxPyEndAllowThreads(__tstate);
18992 if (PyErr_Occurred()) SWIG_fail;
18993 }
18994 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18995 return resultobj;
18996fail:
18997 return NULL;
d14a1e28
RD
18998}
18999
19000
0085ce49
RD
19001SWIGINTERN PyObject *ToggleButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19002 PyObject *obj;
19003 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
19004 SWIG_TypeNewClientData(SWIGTYPE_p_wxToggleButton, SWIG_NewClientData(obj));
19005 return SWIG_Py_Void();
d14a1e28
RD
19006}
19007
0085ce49
RD
19008SWIGINTERN PyObject *ToggleButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19009 return SWIG_Python_InitShadowInstance(args);
19010}
d14a1e28 19011
0085ce49
RD
19012SWIGINTERN int NotebookNameStr_set(PyObject *) {
19013 SWIG_Error(SWIG_AttributeError,"Variable NotebookNameStr is read-only.");
19014 return 1;
d14a1e28
RD
19015}
19016
19017
0085ce49
RD
19018SWIGINTERN PyObject *NotebookNameStr_get(void) {
19019 PyObject *pyobj = 0;
19020
19021 {
d14a1e28 19022#if wxUSE_UNICODE
0085ce49 19023 pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
d14a1e28 19024#else
0085ce49 19025 pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
d14a1e28 19026#endif
0085ce49
RD
19027 }
19028 return pyobj;
d14a1e28
RD
19029}
19030
19031
0085ce49
RD
19032SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19033 PyObject *resultobj = 0;
19034 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19035 size_t result;
19036 void *argp1 = 0 ;
19037 int res1 = 0 ;
19038 PyObject *swig_obj[1] ;
19039
19040 if (!args) SWIG_fail;
19041 swig_obj[0] = args;
19042 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19043 if (!SWIG_IsOK(res1)) {
19044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageCount" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19045 }
19046 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19047 {
19048 PyThreadState* __tstate = wxPyBeginAllowThreads();
19049 result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount();
19050 wxPyEndAllowThreads(__tstate);
19051 if (PyErr_Occurred()) SWIG_fail;
19052 }
19053 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
19054 return resultobj;
19055fail:
19056 return NULL;
19057}
19058
19059
19060SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19061 PyObject *resultobj = 0;
19062 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19063 size_t arg2 ;
19064 wxWindow *result = 0 ;
19065 void *argp1 = 0 ;
19066 int res1 = 0 ;
19067 size_t val2 ;
19068 int ecode2 = 0 ;
19069 PyObject * obj0 = 0 ;
19070 PyObject * obj1 = 0 ;
19071 char * kwnames[] = {
19072 (char *) "self",(char *) "n", NULL
19073 };
19074
19075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) SWIG_fail;
19076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19077 if (!SWIG_IsOK(res1)) {
19078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19079 }
19080 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19081 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19082 if (!SWIG_IsOK(ecode2)) {
19083 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPage" "', expected argument " "2"" of type '" "size_t""'");
19084 }
19085 arg2 = static_cast< size_t >(val2);
19086 {
19087 PyThreadState* __tstate = wxPyBeginAllowThreads();
19088 result = (wxWindow *)(arg1)->GetPage(arg2);
19089 wxPyEndAllowThreads(__tstate);
19090 if (PyErr_Occurred()) SWIG_fail;
19091 }
19092 {
19093 resultobj = wxPyMake_wxObject(result, 0);
19094 }
19095 return resultobj;
19096fail:
19097 return NULL;
22bfe96c
RD
19098}
19099
19100
0085ce49
RD
19101SWIGINTERN PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19102 PyObject *resultobj = 0;
19103 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19104 wxWindow *result = 0 ;
19105 void *argp1 = 0 ;
19106 int res1 = 0 ;
19107 PyObject *swig_obj[1] ;
19108
19109 if (!args) SWIG_fail;
19110 swig_obj[0] = args;
19111 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19112 if (!SWIG_IsOK(res1)) {
19113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19114 }
19115 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19116 {
19117 PyThreadState* __tstate = wxPyBeginAllowThreads();
19118 result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage();
19119 wxPyEndAllowThreads(__tstate);
19120 if (PyErr_Occurred()) SWIG_fail;
19121 }
19122 {
19123 resultobj = wxPyMake_wxObject(result, 0);
19124 }
19125 return resultobj;
19126fail:
19127 return NULL;
d14a1e28
RD
19128}
19129
19130
0085ce49
RD
19131SWIGINTERN PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19132 PyObject *resultobj = 0;
19133 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19134 int result;
19135 void *argp1 = 0 ;
19136 int res1 = 0 ;
19137 PyObject *swig_obj[1] ;
19138
19139 if (!args) SWIG_fail;
19140 swig_obj[0] = args;
19141 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19142 if (!SWIG_IsOK(res1)) {
19143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19144 }
19145 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19146 {
19147 PyThreadState* __tstate = wxPyBeginAllowThreads();
19148 result = (int)((wxBookCtrlBase const *)arg1)->GetSelection();
19149 wxPyEndAllowThreads(__tstate);
19150 if (PyErr_Occurred()) SWIG_fail;
19151 }
19152 resultobj = SWIG_From_int(static_cast< int >(result));
19153 return resultobj;
19154fail:
19155 return NULL;
19156}
19157
19158
19159SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19160 PyObject *resultobj = 0;
19161 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19162 size_t arg2 ;
19163 wxString *arg3 = 0 ;
19164 bool result;
19165 void *argp1 = 0 ;
19166 int res1 = 0 ;
19167 size_t val2 ;
19168 int ecode2 = 0 ;
19169 bool temp3 = false ;
19170 PyObject * obj0 = 0 ;
19171 PyObject * obj1 = 0 ;
19172 PyObject * obj2 = 0 ;
19173 char * kwnames[] = {
19174 (char *) "self",(char *) "n",(char *) "strText", NULL
19175 };
19176
19177 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19178 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19179 if (!SWIG_IsOK(res1)) {
19180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19181 }
19182 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19183 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19184 if (!SWIG_IsOK(ecode2)) {
19185 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "2"" of type '" "size_t""'");
19186 }
19187 arg2 = static_cast< size_t >(val2);
19188 {
19189 arg3 = wxString_in_helper(obj2);
19190 if (arg3 == NULL) SWIG_fail;
19191 temp3 = true;
19192 }
19193 {
19194 PyThreadState* __tstate = wxPyBeginAllowThreads();
19195 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
19196 wxPyEndAllowThreads(__tstate);
19197 if (PyErr_Occurred()) SWIG_fail;
19198 }
19199 {
19200 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19201 }
19202 {
19203 if (temp3)
19204 delete arg3;
19205 }
19206 return resultobj;
19207fail:
19208 {
19209 if (temp3)
19210 delete arg3;
19211 }
19212 return NULL;
19213}
19214
19215
19216SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19217 PyObject *resultobj = 0;
19218 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19219 size_t arg2 ;
19220 wxString result;
19221 void *argp1 = 0 ;
19222 int res1 = 0 ;
19223 size_t val2 ;
19224 int ecode2 = 0 ;
19225 PyObject * obj0 = 0 ;
19226 PyObject * obj1 = 0 ;
19227 char * kwnames[] = {
19228 (char *) "self",(char *) "n", NULL
19229 };
19230
19231 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) SWIG_fail;
19232 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19233 if (!SWIG_IsOK(res1)) {
19234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19235 }
19236 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19237 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19238 if (!SWIG_IsOK(ecode2)) {
19239 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "2"" of type '" "size_t""'");
19240 }
19241 arg2 = static_cast< size_t >(val2);
19242 {
19243 PyThreadState* __tstate = wxPyBeginAllowThreads();
19244 result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2);
19245 wxPyEndAllowThreads(__tstate);
19246 if (PyErr_Occurred()) SWIG_fail;
19247 }
19248 {
19249#if wxUSE_UNICODE
19250 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19251#else
19252 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19253#endif
19254 }
19255 return resultobj;
19256fail:
19257 return NULL;
19258}
19259
19260
19261SWIGINTERN PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19262 PyObject *resultobj = 0;
19263 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19264 wxImageList *arg2 = (wxImageList *) 0 ;
19265 void *argp1 = 0 ;
19266 int res1 = 0 ;
19267 void *argp2 = 0 ;
19268 int res2 = 0 ;
19269 PyObject * obj0 = 0 ;
19270 PyObject * obj1 = 0 ;
19271 char * kwnames[] = {
19272 (char *) "self",(char *) "imageList", NULL
19273 };
19274
19275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19277 if (!SWIG_IsOK(res1)) {
19278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19279 }
19280 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19281 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
19282 if (!SWIG_IsOK(res2)) {
19283 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19284 }
19285 arg2 = reinterpret_cast< wxImageList * >(argp2);
19286 {
19287 PyThreadState* __tstate = wxPyBeginAllowThreads();
19288 (arg1)->SetImageList(arg2);
19289 wxPyEndAllowThreads(__tstate);
19290 if (PyErr_Occurred()) SWIG_fail;
19291 }
19292 resultobj = SWIG_Py_Void();
19293 return resultobj;
19294fail:
19295 return NULL;
19296}
19297
19298
19299SWIGINTERN PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19300 PyObject *resultobj = 0;
19301 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19302 wxImageList *arg2 = (wxImageList *) 0 ;
19303 void *argp1 = 0 ;
19304 int res1 = 0 ;
19305 int res2 = 0 ;
19306 PyObject * obj0 = 0 ;
19307 PyObject * obj1 = 0 ;
19308 char * kwnames[] = {
19309 (char *) "self",(char *) "imageList", NULL
19310 };
19311
19312 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19313 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19314 if (!SWIG_IsOK(res1)) {
19315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19316 }
19317 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19318 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
19319 if (!SWIG_IsOK(res2)) {
19320 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19321 }
19322 {
19323 PyThreadState* __tstate = wxPyBeginAllowThreads();
19324 (arg1)->AssignImageList(arg2);
19325 wxPyEndAllowThreads(__tstate);
19326 if (PyErr_Occurred()) SWIG_fail;
19327 }
19328 resultobj = SWIG_Py_Void();
19329 return resultobj;
19330fail:
19331 return NULL;
d14a1e28
RD
19332}
19333
19334
0085ce49
RD
19335SWIGINTERN PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19336 PyObject *resultobj = 0;
19337 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19338 wxImageList *result = 0 ;
19339 void *argp1 = 0 ;
19340 int res1 = 0 ;
19341 PyObject *swig_obj[1] ;
19342
19343 if (!args) SWIG_fail;
19344 swig_obj[0] = args;
19345 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19346 if (!SWIG_IsOK(res1)) {
19347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19348 }
19349 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19350 {
19351 PyThreadState* __tstate = wxPyBeginAllowThreads();
19352 result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList();
19353 wxPyEndAllowThreads(__tstate);
19354 if (PyErr_Occurred()) SWIG_fail;
19355 }
19356 {
19357 resultobj = wxPyMake_wxObject(result, (bool)0);
19358 }
19359 return resultobj;
19360fail:
19361 return NULL;
19362}
19363
19364
19365SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19366 PyObject *resultobj = 0;
19367 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19368 size_t arg2 ;
19369 int result;
19370 void *argp1 = 0 ;
19371 int res1 = 0 ;
19372 size_t val2 ;
19373 int ecode2 = 0 ;
19374 PyObject * obj0 = 0 ;
19375 PyObject * obj1 = 0 ;
19376 char * kwnames[] = {
19377 (char *) "self",(char *) "n", NULL
19378 };
19379
19380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) SWIG_fail;
19381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19382 if (!SWIG_IsOK(res1)) {
19383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19384 }
19385 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19386 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19387 if (!SWIG_IsOK(ecode2)) {
19388 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19389 }
19390 arg2 = static_cast< size_t >(val2);
19391 {
19392 PyThreadState* __tstate = wxPyBeginAllowThreads();
19393 result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2);
19394 wxPyEndAllowThreads(__tstate);
19395 if (PyErr_Occurred()) SWIG_fail;
19396 }
19397 resultobj = SWIG_From_int(static_cast< int >(result));
19398 return resultobj;
19399fail:
19400 return NULL;
19401}
19402
19403
19404SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19405 PyObject *resultobj = 0;
19406 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19407 size_t arg2 ;
19408 int arg3 ;
19409 bool result;
19410 void *argp1 = 0 ;
19411 int res1 = 0 ;
19412 size_t val2 ;
19413 int ecode2 = 0 ;
19414 int val3 ;
19415 int ecode3 = 0 ;
19416 PyObject * obj0 = 0 ;
19417 PyObject * obj1 = 0 ;
19418 PyObject * obj2 = 0 ;
19419 char * kwnames[] = {
19420 (char *) "self",(char *) "n",(char *) "imageId", NULL
19421 };
19422
19423 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19424 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19425 if (!SWIG_IsOK(res1)) {
19426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19427 }
19428 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19429 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19430 if (!SWIG_IsOK(ecode2)) {
19431 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19432 }
19433 arg2 = static_cast< size_t >(val2);
19434 ecode3 = SWIG_AsVal_int(obj2, &val3);
19435 if (!SWIG_IsOK(ecode3)) {
19436 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "3"" of type '" "int""'");
19437 }
19438 arg3 = static_cast< int >(val3);
19439 {
19440 PyThreadState* __tstate = wxPyBeginAllowThreads();
19441 result = (bool)(arg1)->SetPageImage(arg2,arg3);
19442 wxPyEndAllowThreads(__tstate);
19443 if (PyErr_Occurred()) SWIG_fail;
19444 }
19445 {
19446 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19447 }
19448 return resultobj;
19449fail:
19450 return NULL;
19451}
19452
19453
19454SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19455 PyObject *resultobj = 0;
19456 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19457 wxSize *arg2 = 0 ;
19458 void *argp1 = 0 ;
19459 int res1 = 0 ;
19460 wxSize temp2 ;
19461 PyObject * obj0 = 0 ;
19462 PyObject * obj1 = 0 ;
19463 char * kwnames[] = {
19464 (char *) "self",(char *) "size", NULL
19465 };
19466
19467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
19468 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19469 if (!SWIG_IsOK(res1)) {
19470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageSize" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19471 }
19472 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19473 {
19474 arg2 = &temp2;
19475 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19476 }
19477 {
19478 PyThreadState* __tstate = wxPyBeginAllowThreads();
19479 (arg1)->SetPageSize((wxSize const &)*arg2);
19480 wxPyEndAllowThreads(__tstate);
19481 if (PyErr_Occurred()) SWIG_fail;
19482 }
19483 resultobj = SWIG_Py_Void();
19484 return resultobj;
19485fail:
19486 return NULL;
19487}
19488
19489
19490SWIGINTERN PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19491 PyObject *resultobj = 0;
19492 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19493 wxSize *arg2 = 0 ;
19494 wxSize result;
19495 void *argp1 = 0 ;
19496 int res1 = 0 ;
19497 wxSize temp2 ;
19498 PyObject * obj0 = 0 ;
19499 PyObject * obj1 = 0 ;
19500 char * kwnames[] = {
19501 (char *) "self",(char *) "sizePage", NULL
19502 };
19503
19504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) SWIG_fail;
19505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19506 if (!SWIG_IsOK(res1)) {
19507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_CalcSizeFromPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19508 }
19509 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19510 {
19511 arg2 = &temp2;
19512 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19513 }
19514 {
19515 PyThreadState* __tstate = wxPyBeginAllowThreads();
19516 result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
19517 wxPyEndAllowThreads(__tstate);
19518 if (PyErr_Occurred()) SWIG_fail;
19519 }
19520 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
19521 return resultobj;
19522fail:
19523 return NULL;
d14a1e28
RD
19524}
19525
19526
0085ce49
RD
19527SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19528 PyObject *resultobj = 0;
19529 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
e9d6f3a4 19530 unsigned int result;
0085ce49
RD
19531 void *argp1 = 0 ;
19532 int res1 = 0 ;
19533 PyObject *swig_obj[1] ;
19534
19535 if (!args) SWIG_fail;
19536 swig_obj[0] = args;
19537 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19538 if (!SWIG_IsOK(res1)) {
19539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19540 }
19541 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19542 {
19543 PyThreadState* __tstate = wxPyBeginAllowThreads();
e9d6f3a4 19544 result = (unsigned int)((wxBookCtrlBase const *)arg1)->GetInternalBorder();
0085ce49
RD
19545 wxPyEndAllowThreads(__tstate);
19546 if (PyErr_Occurred()) SWIG_fail;
19547 }
e9d6f3a4 19548 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
0085ce49
RD
19549 return resultobj;
19550fail:
19551 return NULL;
19552}
19553
19554
19555SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19556 PyObject *resultobj = 0;
19557 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
e9d6f3a4 19558 unsigned int arg2 ;
0085ce49
RD
19559 void *argp1 = 0 ;
19560 int res1 = 0 ;
e9d6f3a4 19561 unsigned int val2 ;
0085ce49
RD
19562 int ecode2 = 0 ;
19563 PyObject * obj0 = 0 ;
19564 PyObject * obj1 = 0 ;
19565 char * kwnames[] = {
19566 (char *) "self",(char *) "internalBorder", NULL
19567 };
19568
19569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetInternalBorder",kwnames,&obj0,&obj1)) SWIG_fail;
19570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19571 if (!SWIG_IsOK(res1)) {
19572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19573 }
19574 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
e9d6f3a4 19575 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
0085ce49 19576 if (!SWIG_IsOK(ecode2)) {
e9d6f3a4 19577 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "unsigned int""'");
0085ce49 19578 }
e9d6f3a4 19579 arg2 = static_cast< unsigned int >(val2);
0085ce49
RD
19580 {
19581 PyThreadState* __tstate = wxPyBeginAllowThreads();
19582 (arg1)->SetInternalBorder(arg2);
19583 wxPyEndAllowThreads(__tstate);
19584 if (PyErr_Occurred()) SWIG_fail;
19585 }
19586 resultobj = SWIG_Py_Void();
19587 return resultobj;
19588fail:
19589 return NULL;
b2dc1044
RD
19590}
19591
19592
0085ce49
RD
19593SWIGINTERN PyObject *_wrap_BookCtrlBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19594 PyObject *resultobj = 0;
19595 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19596 bool result;
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_IsVertical" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19606 }
19607 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19608 {
19609 PyThreadState* __tstate = wxPyBeginAllowThreads();
19610 result = (bool)((wxBookCtrlBase const *)arg1)->IsVertical();
19611 wxPyEndAllowThreads(__tstate);
19612 if (PyErr_Occurred()) SWIG_fail;
19613 }
19614 {
19615 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19616 }
19617 return resultobj;
19618fail:
19619 return NULL;
19620}
19621
19622
e9d6f3a4
RD
19623SWIGINTERN PyObject *_wrap_BookCtrlBase_SetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19624 PyObject *resultobj = 0;
19625 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19626 int arg2 ;
19627 void *argp1 = 0 ;
19628 int res1 = 0 ;
19629 int val2 ;
19630 int ecode2 = 0 ;
19631 PyObject * obj0 = 0 ;
19632 PyObject * obj1 = 0 ;
19633 char * kwnames[] = {
19634 (char *) "self",(char *) "margin", NULL
19635 };
19636
19637 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetControlMargin",kwnames,&obj0,&obj1)) SWIG_fail;
19638 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19639 if (!SWIG_IsOK(res1)) {
19640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19641 }
19642 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19643 ecode2 = SWIG_AsVal_int(obj1, &val2);
19644 if (!SWIG_IsOK(ecode2)) {
19645 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "2"" of type '" "int""'");
19646 }
19647 arg2 = static_cast< int >(val2);
19648 {
19649 PyThreadState* __tstate = wxPyBeginAllowThreads();
19650 (arg1)->SetControlMargin(arg2);
19651 wxPyEndAllowThreads(__tstate);
19652 if (PyErr_Occurred()) SWIG_fail;
19653 }
19654 resultobj = SWIG_Py_Void();
19655 return resultobj;
19656fail:
19657 return NULL;
19658}
19659
19660
19661SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19662 PyObject *resultobj = 0;
19663 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19664 int result;
19665 void *argp1 = 0 ;
19666 int res1 = 0 ;
19667 PyObject *swig_obj[1] ;
19668
19669 if (!args) SWIG_fail;
19670 swig_obj[0] = args;
19671 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19672 if (!SWIG_IsOK(res1)) {
19673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19674 }
19675 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19676 {
19677 PyThreadState* __tstate = wxPyBeginAllowThreads();
19678 result = (int)((wxBookCtrlBase const *)arg1)->GetControlMargin();
19679 wxPyEndAllowThreads(__tstate);
19680 if (PyErr_Occurred()) SWIG_fail;
19681 }
19682 resultobj = SWIG_From_int(static_cast< int >(result));
19683 return resultobj;
19684fail:
19685 return NULL;
19686}
19687
19688
0085ce49
RD
19689SWIGINTERN PyObject *_wrap_BookCtrlBase_SetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19690 PyObject *resultobj = 0;
19691 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19692 bool arg2 ;
19693 void *argp1 = 0 ;
19694 int res1 = 0 ;
19695 bool val2 ;
19696 int ecode2 = 0 ;
19697 PyObject * obj0 = 0 ;
19698 PyObject * obj1 = 0 ;
19699 char * kwnames[] = {
19700 (char *) "self",(char *) "fit", NULL
19701 };
19702
19703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetFitToCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail;
19704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19705 if (!SWIG_IsOK(res1)) {
19706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19707 }
19708 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19709 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19710 if (!SWIG_IsOK(ecode2)) {
19711 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "2"" of type '" "bool""'");
19712 }
19713 arg2 = static_cast< bool >(val2);
19714 {
19715 PyThreadState* __tstate = wxPyBeginAllowThreads();
19716 (arg1)->SetFitToCurrentPage(arg2);
19717 wxPyEndAllowThreads(__tstate);
19718 if (PyErr_Occurred()) SWIG_fail;
19719 }
19720 resultobj = SWIG_Py_Void();
19721 return resultobj;
19722fail:
19723 return NULL;
d14a1e28
RD
19724}
19725
19726
0085ce49
RD
19727SWIGINTERN PyObject *_wrap_BookCtrlBase_GetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19728 PyObject *resultobj = 0;
19729 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19730 bool result;
19731 void *argp1 = 0 ;
19732 int res1 = 0 ;
19733 PyObject *swig_obj[1] ;
19734
19735 if (!args) SWIG_fail;
19736 swig_obj[0] = args;
19737 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19738 if (!SWIG_IsOK(res1)) {
19739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19740 }
19741 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19742 {
19743 PyThreadState* __tstate = wxPyBeginAllowThreads();
19744 result = (bool)((wxBookCtrlBase const *)arg1)->GetFitToCurrentPage();
19745 wxPyEndAllowThreads(__tstate);
19746 if (PyErr_Occurred()) SWIG_fail;
19747 }
19748 {
19749 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19750 }
19751 return resultobj;
19752fail:
19753 return NULL;
19754}
19755
19756
e9d6f3a4
RD
19757SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19758 PyObject *resultobj = 0;
19759 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19760 wxSizer *result = 0 ;
19761 void *argp1 = 0 ;
19762 int res1 = 0 ;
19763 PyObject *swig_obj[1] ;
19764
19765 if (!args) SWIG_fail;
19766 swig_obj[0] = args;
19767 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19768 if (!SWIG_IsOK(res1)) {
19769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlSizer" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19770 }
19771 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19772 {
19773 PyThreadState* __tstate = wxPyBeginAllowThreads();
19774 result = (wxSizer *)((wxBookCtrlBase const *)arg1)->GetControlSizer();
19775 wxPyEndAllowThreads(__tstate);
19776 if (PyErr_Occurred()) SWIG_fail;
19777 }
19778 {
19779 resultobj = wxPyMake_wxObject(result, (bool)0);
19780 }
19781 return resultobj;
19782fail:
19783 return NULL;
19784}
19785
19786
0085ce49
RD
19787SWIGINTERN PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19788 PyObject *resultobj = 0;
19789 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19790 size_t arg2 ;
19791 bool result;
19792 void *argp1 = 0 ;
19793 int res1 = 0 ;
19794 size_t val2 ;
19795 int ecode2 = 0 ;
19796 PyObject * obj0 = 0 ;
19797 PyObject * obj1 = 0 ;
19798 char * kwnames[] = {
19799 (char *) "self",(char *) "n", NULL
19800 };
19801
19802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) SWIG_fail;
19803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19804 if (!SWIG_IsOK(res1)) {
19805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19806 }
19807 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19808 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19809 if (!SWIG_IsOK(ecode2)) {
19810 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "2"" of type '" "size_t""'");
19811 }
19812 arg2 = static_cast< size_t >(val2);
19813 {
19814 PyThreadState* __tstate = wxPyBeginAllowThreads();
19815 result = (bool)(arg1)->DeletePage(arg2);
19816 wxPyEndAllowThreads(__tstate);
19817 if (PyErr_Occurred()) SWIG_fail;
19818 }
19819 {
19820 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19821 }
19822 return resultobj;
19823fail:
19824 return NULL;
19825}
19826
19827
19828SWIGINTERN PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19829 PyObject *resultobj = 0;
19830 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19831 size_t arg2 ;
19832 bool result;
19833 void *argp1 = 0 ;
19834 int res1 = 0 ;
19835 size_t val2 ;
19836 int ecode2 = 0 ;
19837 PyObject * obj0 = 0 ;
19838 PyObject * obj1 = 0 ;
19839 char * kwnames[] = {
19840 (char *) "self",(char *) "n", NULL
19841 };
19842
19843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) SWIG_fail;
19844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19845 if (!SWIG_IsOK(res1)) {
19846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19847 }
19848 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19849 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19850 if (!SWIG_IsOK(ecode2)) {
19851 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "2"" of type '" "size_t""'");
19852 }
19853 arg2 = static_cast< size_t >(val2);
19854 {
19855 PyThreadState* __tstate = wxPyBeginAllowThreads();
19856 result = (bool)(arg1)->RemovePage(arg2);
19857 wxPyEndAllowThreads(__tstate);
19858 if (PyErr_Occurred()) SWIG_fail;
19859 }
19860 {
19861 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19862 }
19863 return resultobj;
19864fail:
19865 return NULL;
d14a1e28
RD
19866}
19867
19868
0085ce49
RD
19869SWIGINTERN PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19870 PyObject *resultobj = 0;
19871 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19872 bool result;
19873 void *argp1 = 0 ;
19874 int res1 = 0 ;
19875 PyObject *swig_obj[1] ;
19876
19877 if (!args) SWIG_fail;
19878 swig_obj[0] = args;
19879 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19880 if (!SWIG_IsOK(res1)) {
19881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeleteAllPages" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19882 }
19883 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19884 {
19885 PyThreadState* __tstate = wxPyBeginAllowThreads();
19886 result = (bool)(arg1)->DeleteAllPages();
19887 wxPyEndAllowThreads(__tstate);
19888 if (PyErr_Occurred()) SWIG_fail;
19889 }
19890 {
19891 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19892 }
19893 return resultobj;
19894fail:
19895 return NULL;
19896}
19897
19898
19899SWIGINTERN PyObject *_wrap_BookCtrlBase_AddPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19900 PyObject *resultobj = 0;
19901 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19902 wxWindow *arg2 = (wxWindow *) 0 ;
19903 wxString *arg3 = 0 ;
19904 bool arg4 = (bool) false ;
19905 int arg5 = (int) -1 ;
19906 bool result;
19907 void *argp1 = 0 ;
19908 int res1 = 0 ;
19909 void *argp2 = 0 ;
19910 int res2 = 0 ;
19911 bool temp3 = false ;
19912 bool val4 ;
19913 int ecode4 = 0 ;
19914 int val5 ;
19915 int ecode5 = 0 ;
19916 PyObject * obj0 = 0 ;
19917 PyObject * obj1 = 0 ;
19918 PyObject * obj2 = 0 ;
19919 PyObject * obj3 = 0 ;
19920 PyObject * obj4 = 0 ;
19921 char * kwnames[] = {
19922 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
19923 };
19924
19925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19927 if (!SWIG_IsOK(res1)) {
19928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AddPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19929 }
19930 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19931 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
19932 if (!SWIG_IsOK(res2)) {
19933 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AddPage" "', expected argument " "2"" of type '" "wxWindow *""'");
19934 }
19935 arg2 = reinterpret_cast< wxWindow * >(argp2);
19936 {
19937 arg3 = wxString_in_helper(obj2);
19938 if (arg3 == NULL) SWIG_fail;
19939 temp3 = true;
19940 }
19941 if (obj3) {
19942 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19943 if (!SWIG_IsOK(ecode4)) {
19944 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BookCtrlBase_AddPage" "', expected argument " "4"" of type '" "bool""'");
19945 }
19946 arg4 = static_cast< bool >(val4);
19947 }
19948 if (obj4) {
19949 ecode5 = SWIG_AsVal_int(obj4, &val5);
19950 if (!SWIG_IsOK(ecode5)) {
19951 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_AddPage" "', expected argument " "5"" of type '" "int""'");
19952 }
19953 arg5 = static_cast< int >(val5);
19954 }
19955 {
19956 PyThreadState* __tstate = wxPyBeginAllowThreads();
19957 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
19958 wxPyEndAllowThreads(__tstate);
19959 if (PyErr_Occurred()) SWIG_fail;
19960 }
19961 {
19962 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19963 }
19964 {
19965 if (temp3)
19966 delete arg3;
19967 }
19968 return resultobj;
19969fail:
19970 {
19971 if (temp3)
19972 delete arg3;
19973 }
19974 return NULL;
19975}
19976
19977
19978SWIGINTERN PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19979 PyObject *resultobj = 0;
19980 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19981 size_t arg2 ;
19982 wxWindow *arg3 = (wxWindow *) 0 ;
19983 wxString *arg4 = 0 ;
19984 bool arg5 = (bool) false ;
19985 int arg6 = (int) -1 ;
19986 bool result;
19987 void *argp1 = 0 ;
19988 int res1 = 0 ;
19989 size_t val2 ;
19990 int ecode2 = 0 ;
19991 void *argp3 = 0 ;
19992 int res3 = 0 ;
19993 bool temp4 = false ;
19994 bool val5 ;
19995 int ecode5 = 0 ;
19996 int val6 ;
19997 int ecode6 = 0 ;
19998 PyObject * obj0 = 0 ;
19999 PyObject * obj1 = 0 ;
20000 PyObject * obj2 = 0 ;
20001 PyObject * obj3 = 0 ;
20002 PyObject * obj4 = 0 ;
20003 PyObject * obj5 = 0 ;
20004 char * kwnames[] = {
20005 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
20006 };
20007
20008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20010 if (!SWIG_IsOK(res1)) {
20011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20012 }
20013 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20014 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20015 if (!SWIG_IsOK(ecode2)) {
20016 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "2"" of type '" "size_t""'");
20017 }
20018 arg2 = static_cast< size_t >(val2);
20019 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
20020 if (!SWIG_IsOK(res3)) {
20021 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "3"" of type '" "wxWindow *""'");
20022 }
20023 arg3 = reinterpret_cast< wxWindow * >(argp3);
20024 {
20025 arg4 = wxString_in_helper(obj3);
20026 if (arg4 == NULL) SWIG_fail;
20027 temp4 = true;
20028 }
20029 if (obj4) {
20030 ecode5 = SWIG_AsVal_bool(obj4, &val5);
20031 if (!SWIG_IsOK(ecode5)) {
20032 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "5"" of type '" "bool""'");
20033 }
20034 arg5 = static_cast< bool >(val5);
20035 }
20036 if (obj5) {
20037 ecode6 = SWIG_AsVal_int(obj5, &val6);
20038 if (!SWIG_IsOK(ecode6)) {
20039 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "6"" of type '" "int""'");
20040 }
20041 arg6 = static_cast< int >(val6);
20042 }
20043 {
20044 PyThreadState* __tstate = wxPyBeginAllowThreads();
20045 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
20046 wxPyEndAllowThreads(__tstate);
20047 if (PyErr_Occurred()) SWIG_fail;
20048 }
20049 {
20050 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20051 }
20052 {
20053 if (temp4)
20054 delete arg4;
20055 }
20056 return resultobj;
20057fail:
20058 {
20059 if (temp4)
20060 delete arg4;
20061 }
20062 return NULL;
20063}
20064
20065
20066SWIGINTERN PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20067 PyObject *resultobj = 0;
20068 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20069 size_t arg2 ;
20070 int result;
20071 void *argp1 = 0 ;
20072 int res1 = 0 ;
20073 size_t val2 ;
20074 int ecode2 = 0 ;
20075 PyObject * obj0 = 0 ;
20076 PyObject * obj1 = 0 ;
20077 char * kwnames[] = {
20078 (char *) "self",(char *) "n", NULL
20079 };
20080
20081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20083 if (!SWIG_IsOK(res1)) {
20084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20085 }
20086 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20087 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20088 if (!SWIG_IsOK(ecode2)) {
20089 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "2"" of type '" "size_t""'");
20090 }
20091 arg2 = static_cast< size_t >(val2);
20092 {
20093 PyThreadState* __tstate = wxPyBeginAllowThreads();
20094 result = (int)(arg1)->SetSelection(arg2);
20095 wxPyEndAllowThreads(__tstate);
20096 if (PyErr_Occurred()) SWIG_fail;
20097 }
20098 resultobj = SWIG_From_int(static_cast< int >(result));
20099 return resultobj;
20100fail:
20101 return NULL;
20102}
20103
20104
20105SWIGINTERN PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20106 PyObject *resultobj = 0;
20107 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20108 bool arg2 = (bool) true ;
20109 void *argp1 = 0 ;
20110 int res1 = 0 ;
20111 bool val2 ;
20112 int ecode2 = 0 ;
20113 PyObject * obj0 = 0 ;
20114 PyObject * obj1 = 0 ;
20115 char * kwnames[] = {
20116 (char *) "self",(char *) "forward", NULL
20117 };
20118
20119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20121 if (!SWIG_IsOK(res1)) {
20122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20123 }
20124 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20125 if (obj1) {
20126 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20127 if (!SWIG_IsOK(ecode2)) {
20128 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "2"" of type '" "bool""'");
20129 }
20130 arg2 = static_cast< bool >(val2);
20131 }
20132 {
20133 PyThreadState* __tstate = wxPyBeginAllowThreads();
20134 (arg1)->AdvanceSelection(arg2);
20135 wxPyEndAllowThreads(__tstate);
20136 if (PyErr_Occurred()) SWIG_fail;
20137 }
20138 resultobj = SWIG_Py_Void();
20139 return resultobj;
20140fail:
20141 return NULL;
20142}
20143
20144
704eda0c
RD
20145SWIGINTERN PyObject *_wrap_BookCtrlBase_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20146 PyObject *resultobj = 0;
20147 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20148 wxPoint *arg2 = 0 ;
20149 long *arg3 = (long *) 0 ;
20150 int result;
20151 void *argp1 = 0 ;
20152 int res1 = 0 ;
20153 wxPoint temp2 ;
20154 long temp3 ;
20155 int res3 = SWIG_TMPOBJ ;
20156 PyObject * obj0 = 0 ;
20157 PyObject * obj1 = 0 ;
20158 char * kwnames[] = {
20159 (char *) "self",(char *) "pt", NULL
20160 };
20161
20162 arg3 = &temp3;
20163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
20164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20165 if (!SWIG_IsOK(res1)) {
20166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_HitTest" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
20167 }
20168 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20169 {
20170 arg2 = &temp2;
20171 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20172 }
20173 {
20174 PyThreadState* __tstate = wxPyBeginAllowThreads();
20175 result = (int)((wxBookCtrlBase const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
20176 wxPyEndAllowThreads(__tstate);
20177 if (PyErr_Occurred()) SWIG_fail;
20178 }
20179 resultobj = SWIG_From_int(static_cast< int >(result));
20180 if (SWIG_IsTmpObj(res3)) {
20181 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
20182 } else {
20183 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20184 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
20185 }
20186 return resultobj;
20187fail:
20188 return NULL;
20189}
20190
20191
0085ce49
RD
20192SWIGINTERN PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20193 PyObject *resultobj = 0;
20194 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20195 SwigValueWrapper<wxVisualAttributes > result;
20196 int val1 ;
20197 int ecode1 = 0 ;
20198 PyObject * obj0 = 0 ;
20199 char * kwnames[] = {
20200 (char *) "variant", NULL
20201 };
20202
20203 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20204 if (obj0) {
20205 ecode1 = SWIG_AsVal_int(obj0, &val1);
20206 if (!SWIG_IsOK(ecode1)) {
20207 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BookCtrlBase_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20208 }
20209 arg1 = static_cast< wxWindowVariant >(val1);
20210 }
20211 {
20212 if (!wxPyCheckForApp()) SWIG_fail;
20213 PyThreadState* __tstate = wxPyBeginAllowThreads();
20214 result = wxBookCtrlBase::GetClassDefaultAttributes(arg1);
20215 wxPyEndAllowThreads(__tstate);
20216 if (PyErr_Occurred()) SWIG_fail;
20217 }
20218 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20219 return resultobj;
20220fail:
20221 return NULL;
20222}
20223
20224
20225SWIGINTERN PyObject *BookCtrlBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20226 PyObject *obj;
20227 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20228 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBase, SWIG_NewClientData(obj));
20229 return SWIG_Py_Void();
20230}
20231
20232SWIGINTERN PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20233 PyObject *resultobj = 0;
20234 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20235 int arg2 = (int) 0 ;
20236 int arg3 = (int) -1 ;
20237 int arg4 = (int) -1 ;
20238 wxBookCtrlBaseEvent *result = 0 ;
20239 int val1 ;
20240 int ecode1 = 0 ;
20241 int val2 ;
20242 int ecode2 = 0 ;
20243 int val3 ;
20244 int ecode3 = 0 ;
20245 int val4 ;
20246 int ecode4 = 0 ;
20247 PyObject * obj0 = 0 ;
20248 PyObject * obj1 = 0 ;
20249 PyObject * obj2 = 0 ;
20250 PyObject * obj3 = 0 ;
20251 char * kwnames[] = {
20252 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20253 };
20254
20255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20256 if (obj0) {
20257 ecode1 = SWIG_AsVal_int(obj0, &val1);
20258 if (!SWIG_IsOK(ecode1)) {
20259 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20260 }
20261 arg1 = static_cast< wxEventType >(val1);
20262 }
20263 if (obj1) {
20264 ecode2 = SWIG_AsVal_int(obj1, &val2);
20265 if (!SWIG_IsOK(ecode2)) {
20266 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "2"" of type '" "int""'");
20267 }
20268 arg2 = static_cast< int >(val2);
20269 }
20270 if (obj2) {
20271 ecode3 = SWIG_AsVal_int(obj2, &val3);
20272 if (!SWIG_IsOK(ecode3)) {
20273 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "3"" of type '" "int""'");
20274 }
20275 arg3 = static_cast< int >(val3);
20276 }
20277 if (obj3) {
20278 ecode4 = SWIG_AsVal_int(obj3, &val4);
20279 if (!SWIG_IsOK(ecode4)) {
20280 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "4"" of type '" "int""'");
20281 }
20282 arg4 = static_cast< int >(val4);
20283 }
20284 {
20285 PyThreadState* __tstate = wxPyBeginAllowThreads();
20286 result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4);
20287 wxPyEndAllowThreads(__tstate);
20288 if (PyErr_Occurred()) SWIG_fail;
20289 }
20290 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_NEW | 0 );
20291 return resultobj;
20292fail:
20293 return NULL;
d14a1e28
RD
20294}
20295
20296
0085ce49
RD
20297SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20298 PyObject *resultobj = 0;
20299 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20300 int result;
20301 void *argp1 = 0 ;
20302 int res1 = 0 ;
20303 PyObject *swig_obj[1] ;
20304
20305 if (!args) SWIG_fail;
20306 swig_obj[0] = args;
20307 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20308 if (!SWIG_IsOK(res1)) {
20309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20310 }
20311 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20312 {
20313 PyThreadState* __tstate = wxPyBeginAllowThreads();
20314 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection();
20315 wxPyEndAllowThreads(__tstate);
20316 if (PyErr_Occurred()) SWIG_fail;
20317 }
20318 resultobj = SWIG_From_int(static_cast< int >(result));
20319 return resultobj;
20320fail:
20321 return NULL;
20322}
20323
20324
20325SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20326 PyObject *resultobj = 0;
20327 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20328 int arg2 ;
20329 void *argp1 = 0 ;
20330 int res1 = 0 ;
20331 int val2 ;
20332 int ecode2 = 0 ;
20333 PyObject * obj0 = 0 ;
20334 PyObject * obj1 = 0 ;
20335 char * kwnames[] = {
20336 (char *) "self",(char *) "nSel", NULL
20337 };
20338
20339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20340 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20341 if (!SWIG_IsOK(res1)) {
20342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20343 }
20344 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20345 ecode2 = SWIG_AsVal_int(obj1, &val2);
20346 if (!SWIG_IsOK(ecode2)) {
20347 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "2"" of type '" "int""'");
20348 }
20349 arg2 = static_cast< int >(val2);
20350 {
20351 PyThreadState* __tstate = wxPyBeginAllowThreads();
20352 (arg1)->SetSelection(arg2);
20353 wxPyEndAllowThreads(__tstate);
20354 if (PyErr_Occurred()) SWIG_fail;
20355 }
20356 resultobj = SWIG_Py_Void();
20357 return resultobj;
20358fail:
20359 return NULL;
d14a1e28
RD
20360}
20361
20362
0085ce49
RD
20363SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20364 PyObject *resultobj = 0;
20365 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20366 int result;
20367 void *argp1 = 0 ;
20368 int res1 = 0 ;
20369 PyObject *swig_obj[1] ;
20370
20371 if (!args) SWIG_fail;
20372 swig_obj[0] = args;
20373 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20374 if (!SWIG_IsOK(res1)) {
20375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20376 }
20377 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20378 {
20379 PyThreadState* __tstate = wxPyBeginAllowThreads();
20380 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection();
20381 wxPyEndAllowThreads(__tstate);
20382 if (PyErr_Occurred()) SWIG_fail;
20383 }
20384 resultobj = SWIG_From_int(static_cast< int >(result));
20385 return resultobj;
20386fail:
20387 return NULL;
20388}
20389
20390
20391SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20392 PyObject *resultobj = 0;
20393 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20394 int arg2 ;
20395 void *argp1 = 0 ;
20396 int res1 = 0 ;
20397 int val2 ;
20398 int ecode2 = 0 ;
20399 PyObject * obj0 = 0 ;
20400 PyObject * obj1 = 0 ;
20401 char * kwnames[] = {
20402 (char *) "self",(char *) "nOldSel", NULL
20403 };
20404
20405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20407 if (!SWIG_IsOK(res1)) {
20408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20409 }
20410 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20411 ecode2 = SWIG_AsVal_int(obj1, &val2);
20412 if (!SWIG_IsOK(ecode2)) {
20413 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "2"" of type '" "int""'");
20414 }
20415 arg2 = static_cast< int >(val2);
20416 {
20417 PyThreadState* __tstate = wxPyBeginAllowThreads();
20418 (arg1)->SetOldSelection(arg2);
20419 wxPyEndAllowThreads(__tstate);
20420 if (PyErr_Occurred()) SWIG_fail;
20421 }
20422 resultobj = SWIG_Py_Void();
20423 return resultobj;
20424fail:
20425 return NULL;
20426}
20427
20428
20429SWIGINTERN PyObject *BookCtrlBaseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20430 PyObject *obj;
20431 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20432 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_NewClientData(obj));
20433 return SWIG_Py_Void();
20434}
20435
20436SWIGINTERN PyObject *BookCtrlBaseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20437 return SWIG_Python_InitShadowInstance(args);
20438}
20439
20440SWIGINTERN PyObject *_wrap_new_Notebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20441 PyObject *resultobj = 0;
20442 wxWindow *arg1 = (wxWindow *) 0 ;
20443 int arg2 = (int) -1 ;
20444 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20445 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20446 wxSize const &arg4_defvalue = wxDefaultSize ;
20447 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20448 long arg5 = (long) 0 ;
20449 wxString const &arg6_defvalue = wxPyNotebookNameStr ;
20450 wxString *arg6 = (wxString *) &arg6_defvalue ;
20451 wxNotebook *result = 0 ;
20452 void *argp1 = 0 ;
20453 int res1 = 0 ;
20454 int val2 ;
20455 int ecode2 = 0 ;
20456 wxPoint temp3 ;
20457 wxSize temp4 ;
20458 long val5 ;
20459 int ecode5 = 0 ;
20460 bool temp6 = false ;
20461 PyObject * obj0 = 0 ;
20462 PyObject * obj1 = 0 ;
20463 PyObject * obj2 = 0 ;
20464 PyObject * obj3 = 0 ;
20465 PyObject * obj4 = 0 ;
20466 PyObject * obj5 = 0 ;
20467 char * kwnames[] = {
20468 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20469 };
20470
20471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20473 if (!SWIG_IsOK(res1)) {
20474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Notebook" "', expected argument " "1"" of type '" "wxWindow *""'");
20475 }
20476 arg1 = reinterpret_cast< wxWindow * >(argp1);
20477 if (obj1) {
20478 ecode2 = SWIG_AsVal_int(obj1, &val2);
20479 if (!SWIG_IsOK(ecode2)) {
20480 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Notebook" "', expected argument " "2"" of type '" "int""'");
20481 }
20482 arg2 = static_cast< int >(val2);
20483 }
20484 if (obj2) {
093d3ff1 20485 {
0085ce49
RD
20486 arg3 = &temp3;
20487 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 20488 }
0085ce49
RD
20489 }
20490 if (obj3) {
d14a1e28 20491 {
0085ce49
RD
20492 arg4 = &temp4;
20493 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 20494 }
0085ce49
RD
20495 }
20496 if (obj4) {
20497 ecode5 = SWIG_AsVal_long(obj4, &val5);
20498 if (!SWIG_IsOK(ecode5)) {
20499 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Notebook" "', expected argument " "5"" of type '" "long""'");
20500 }
20501 arg5 = static_cast< long >(val5);
20502 }
20503 if (obj5) {
093d3ff1 20504 {
0085ce49
RD
20505 arg6 = wxString_in_helper(obj5);
20506 if (arg6 == NULL) SWIG_fail;
20507 temp6 = true;
093d3ff1 20508 }
0085ce49
RD
20509 }
20510 {
20511 if (!wxPyCheckForApp()) SWIG_fail;
20512 PyThreadState* __tstate = wxPyBeginAllowThreads();
20513 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20514 wxPyEndAllowThreads(__tstate);
20515 if (PyErr_Occurred()) SWIG_fail;
20516 }
20517 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_NEW | 0 );
20518 {
20519 if (temp6)
20520 delete arg6;
20521 }
20522 return resultobj;
20523fail:
20524 {
20525 if (temp6)
20526 delete arg6;
20527 }
20528 return NULL;
d14a1e28
RD
20529}
20530
20531
0085ce49
RD
20532SWIGINTERN PyObject *_wrap_new_PreNotebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20533 PyObject *resultobj = 0;
20534 wxNotebook *result = 0 ;
20535
20536 if (!SWIG_Python_UnpackTuple(args,"new_PreNotebook",0,0,0)) SWIG_fail;
20537 {
20538 if (!wxPyCheckForApp()) SWIG_fail;
20539 PyThreadState* __tstate = wxPyBeginAllowThreads();
20540 result = (wxNotebook *)new wxNotebook();
20541 wxPyEndAllowThreads(__tstate);
20542 if (PyErr_Occurred()) SWIG_fail;
20543 }
20544 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_OWN | 0 );
20545 return resultobj;
20546fail:
20547 return NULL;
20548}
20549
20550
20551SWIGINTERN PyObject *_wrap_Notebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20552 PyObject *resultobj = 0;
20553 wxNotebook *arg1 = (wxNotebook *) 0 ;
20554 wxWindow *arg2 = (wxWindow *) 0 ;
20555 int arg3 = (int) -1 ;
20556 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20557 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20558 wxSize const &arg5_defvalue = wxDefaultSize ;
20559 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20560 long arg6 = (long) 0 ;
20561 wxString const &arg7_defvalue = wxPyNotebookNameStr ;
20562 wxString *arg7 = (wxString *) &arg7_defvalue ;
20563 bool result;
20564 void *argp1 = 0 ;
20565 int res1 = 0 ;
20566 void *argp2 = 0 ;
20567 int res2 = 0 ;
20568 int val3 ;
20569 int ecode3 = 0 ;
20570 wxPoint temp4 ;
20571 wxSize temp5 ;
20572 long val6 ;
20573 int ecode6 = 0 ;
20574 bool temp7 = false ;
20575 PyObject * obj0 = 0 ;
20576 PyObject * obj1 = 0 ;
20577 PyObject * obj2 = 0 ;
20578 PyObject * obj3 = 0 ;
20579 PyObject * obj4 = 0 ;
20580 PyObject * obj5 = 0 ;
20581 PyObject * obj6 = 0 ;
20582 char * kwnames[] = {
20583 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20584 };
20585
20586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20588 if (!SWIG_IsOK(res1)) {
20589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_Create" "', expected argument " "1"" of type '" "wxNotebook *""'");
20590 }
20591 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20592 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20593 if (!SWIG_IsOK(res2)) {
20594 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Notebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20595 }
20596 arg2 = reinterpret_cast< wxWindow * >(argp2);
20597 if (obj2) {
20598 ecode3 = SWIG_AsVal_int(obj2, &val3);
20599 if (!SWIG_IsOK(ecode3)) {
20600 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_Create" "', expected argument " "3"" of type '" "int""'");
20601 }
20602 arg3 = static_cast< int >(val3);
20603 }
20604 if (obj3) {
093d3ff1 20605 {
0085ce49
RD
20606 arg4 = &temp4;
20607 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 20608 }
0085ce49
RD
20609 }
20610 if (obj4) {
d14a1e28 20611 {
0085ce49
RD
20612 arg5 = &temp5;
20613 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 20614 }
0085ce49
RD
20615 }
20616 if (obj5) {
20617 ecode6 = SWIG_AsVal_long(obj5, &val6);
20618 if (!SWIG_IsOK(ecode6)) {
20619 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Notebook_Create" "', expected argument " "6"" of type '" "long""'");
20620 }
20621 arg6 = static_cast< long >(val6);
20622 }
20623 if (obj6) {
4f89f6a3 20624 {
0085ce49
RD
20625 arg7 = wxString_in_helper(obj6);
20626 if (arg7 == NULL) SWIG_fail;
20627 temp7 = true;
4f89f6a3 20628 }
0085ce49
RD
20629 }
20630 {
20631 PyThreadState* __tstate = wxPyBeginAllowThreads();
20632 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20633 wxPyEndAllowThreads(__tstate);
20634 if (PyErr_Occurred()) SWIG_fail;
20635 }
20636 {
20637 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20638 }
20639 {
20640 if (temp7)
20641 delete arg7;
20642 }
20643 return resultobj;
20644fail:
20645 {
20646 if (temp7)
20647 delete arg7;
20648 }
20649 return NULL;
d14a1e28
RD
20650}
20651
20652
0085ce49
RD
20653SWIGINTERN PyObject *_wrap_Notebook_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20654 PyObject *resultobj = 0;
20655 wxNotebook *arg1 = (wxNotebook *) 0 ;
20656 int result;
20657 void *argp1 = 0 ;
20658 int res1 = 0 ;
20659 PyObject *swig_obj[1] ;
20660
20661 if (!args) SWIG_fail;
20662 swig_obj[0] = args;
20663 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20664 if (!SWIG_IsOK(res1)) {
20665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetRowCount" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20666 }
20667 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20668 {
20669 PyThreadState* __tstate = wxPyBeginAllowThreads();
20670 result = (int)((wxNotebook const *)arg1)->GetRowCount();
20671 wxPyEndAllowThreads(__tstate);
20672 if (PyErr_Occurred()) SWIG_fail;
20673 }
20674 resultobj = SWIG_From_int(static_cast< int >(result));
20675 return resultobj;
20676fail:
20677 return NULL;
20678}
20679
20680
20681SWIGINTERN PyObject *_wrap_Notebook_SetPadding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20682 PyObject *resultobj = 0;
20683 wxNotebook *arg1 = (wxNotebook *) 0 ;
20684 wxSize *arg2 = 0 ;
20685 void *argp1 = 0 ;
20686 int res1 = 0 ;
20687 wxSize temp2 ;
20688 PyObject * obj0 = 0 ;
20689 PyObject * obj1 = 0 ;
20690 char * kwnames[] = {
20691 (char *) "self",(char *) "padding", NULL
20692 };
20693
20694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) SWIG_fail;
20695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20696 if (!SWIG_IsOK(res1)) {
20697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetPadding" "', expected argument " "1"" of type '" "wxNotebook *""'");
20698 }
20699 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20700 {
20701 arg2 = &temp2;
20702 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20703 }
20704 {
20705 PyThreadState* __tstate = wxPyBeginAllowThreads();
20706 (arg1)->SetPadding((wxSize const &)*arg2);
20707 wxPyEndAllowThreads(__tstate);
20708 if (PyErr_Occurred()) SWIG_fail;
20709 }
20710 resultobj = SWIG_Py_Void();
20711 return resultobj;
20712fail:
20713 return NULL;
20714}
20715
20716
20717SWIGINTERN PyObject *_wrap_Notebook_SetTabSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20718 PyObject *resultobj = 0;
20719 wxNotebook *arg1 = (wxNotebook *) 0 ;
20720 wxSize *arg2 = 0 ;
20721 void *argp1 = 0 ;
20722 int res1 = 0 ;
20723 wxSize temp2 ;
20724 PyObject * obj0 = 0 ;
20725 PyObject * obj1 = 0 ;
20726 char * kwnames[] = {
20727 (char *) "self",(char *) "sz", NULL
20728 };
20729
20730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) SWIG_fail;
20731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20732 if (!SWIG_IsOK(res1)) {
20733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetTabSize" "', expected argument " "1"" of type '" "wxNotebook *""'");
20734 }
20735 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20736 {
20737 arg2 = &temp2;
20738 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20739 }
20740 {
20741 PyThreadState* __tstate = wxPyBeginAllowThreads();
20742 (arg1)->SetTabSize((wxSize const &)*arg2);
20743 wxPyEndAllowThreads(__tstate);
20744 if (PyErr_Occurred()) SWIG_fail;
20745 }
20746 resultobj = SWIG_Py_Void();
20747 return resultobj;
20748fail:
20749 return NULL;
20750}
20751
20752
0085ce49
RD
20753SWIGINTERN PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20754 PyObject *resultobj = 0;
20755 wxNotebook *arg1 = (wxNotebook *) 0 ;
20756 wxColour result;
20757 void *argp1 = 0 ;
20758 int res1 = 0 ;
20759 PyObject *swig_obj[1] ;
20760
20761 if (!args) SWIG_fail;
20762 swig_obj[0] = args;
20763 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20764 if (!SWIG_IsOK(res1)) {
20765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetThemeBackgroundColour" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20766 }
20767 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20768 {
20769 PyThreadState* __tstate = wxPyBeginAllowThreads();
20770 result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour();
20771 wxPyEndAllowThreads(__tstate);
20772 if (PyErr_Occurred()) SWIG_fail;
20773 }
20774 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
20775 return resultobj;
20776fail:
20777 return NULL;
20778}
20779
20780
20781SWIGINTERN PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20782 PyObject *resultobj = 0;
20783 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20784 SwigValueWrapper<wxVisualAttributes > result;
20785 int val1 ;
20786 int ecode1 = 0 ;
20787 PyObject * obj0 = 0 ;
20788 char * kwnames[] = {
20789 (char *) "variant", NULL
20790 };
20791
20792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20793 if (obj0) {
20794 ecode1 = SWIG_AsVal_int(obj0, &val1);
20795 if (!SWIG_IsOK(ecode1)) {
20796 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Notebook_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20797 }
20798 arg1 = static_cast< wxWindowVariant >(val1);
20799 }
20800 {
20801 if (!wxPyCheckForApp()) SWIG_fail;
20802 PyThreadState* __tstate = wxPyBeginAllowThreads();
20803 result = wxNotebook::GetClassDefaultAttributes(arg1);
20804 wxPyEndAllowThreads(__tstate);
20805 if (PyErr_Occurred()) SWIG_fail;
20806 }
20807 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20808 return resultobj;
20809fail:
20810 return NULL;
20811}
20812
20813
20814SWIGINTERN PyObject *Notebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20815 PyObject *obj;
20816 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20817 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebook, SWIG_NewClientData(obj));
20818 return SWIG_Py_Void();
20819}
20820
20821SWIGINTERN PyObject *Notebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20822 return SWIG_Python_InitShadowInstance(args);
20823}
20824
20825SWIGINTERN PyObject *_wrap_new_NotebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20826 PyObject *resultobj = 0;
20827 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20828 int arg2 = (int) 0 ;
20829 int arg3 = (int) -1 ;
20830 int arg4 = (int) -1 ;
20831 wxNotebookEvent *result = 0 ;
20832 int val1 ;
20833 int ecode1 = 0 ;
20834 int val2 ;
20835 int ecode2 = 0 ;
20836 int val3 ;
20837 int ecode3 = 0 ;
20838 int val4 ;
20839 int ecode4 = 0 ;
20840 PyObject * obj0 = 0 ;
20841 PyObject * obj1 = 0 ;
20842 PyObject * obj2 = 0 ;
20843 PyObject * obj3 = 0 ;
20844 char * kwnames[] = {
20845 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20846 };
20847
20848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20849 if (obj0) {
20850 ecode1 = SWIG_AsVal_int(obj0, &val1);
20851 if (!SWIG_IsOK(ecode1)) {
20852 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NotebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20853 }
20854 arg1 = static_cast< wxEventType >(val1);
20855 }
20856 if (obj1) {
20857 ecode2 = SWIG_AsVal_int(obj1, &val2);
20858 if (!SWIG_IsOK(ecode2)) {
20859 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NotebookEvent" "', expected argument " "2"" of type '" "int""'");
20860 }
20861 arg2 = static_cast< int >(val2);
20862 }
20863 if (obj2) {
20864 ecode3 = SWIG_AsVal_int(obj2, &val3);
20865 if (!SWIG_IsOK(ecode3)) {
20866 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NotebookEvent" "', expected argument " "3"" of type '" "int""'");
20867 }
20868 arg3 = static_cast< int >(val3);
20869 }
20870 if (obj3) {
20871 ecode4 = SWIG_AsVal_int(obj3, &val4);
20872 if (!SWIG_IsOK(ecode4)) {
20873 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NotebookEvent" "', expected argument " "4"" of type '" "int""'");
20874 }
20875 arg4 = static_cast< int >(val4);
20876 }
20877 {
20878 PyThreadState* __tstate = wxPyBeginAllowThreads();
20879 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
20880 wxPyEndAllowThreads(__tstate);
20881 if (PyErr_Occurred()) SWIG_fail;
20882 }
20883 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebookEvent, SWIG_POINTER_NEW | 0 );
20884 return resultobj;
20885fail:
20886 return NULL;
20887}
20888
20889
20890SWIGINTERN PyObject *NotebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20891 PyObject *obj;
20892 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20893 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebookEvent, SWIG_NewClientData(obj));
20894 return SWIG_Py_Void();
20895}
20896
20897SWIGINTERN PyObject *NotebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20898 return SWIG_Python_InitShadowInstance(args);
20899}
20900
20901SWIGINTERN PyObject *_wrap_new_Listbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20902 PyObject *resultobj = 0;
20903 wxWindow *arg1 = (wxWindow *) 0 ;
20904 int arg2 = (int) -1 ;
20905 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20906 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20907 wxSize const &arg4_defvalue = wxDefaultSize ;
20908 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20909 long arg5 = (long) 0 ;
20910 wxString const &arg6_defvalue = wxPyEmptyString ;
20911 wxString *arg6 = (wxString *) &arg6_defvalue ;
20912 wxListbook *result = 0 ;
20913 void *argp1 = 0 ;
20914 int res1 = 0 ;
20915 int val2 ;
20916 int ecode2 = 0 ;
20917 wxPoint temp3 ;
20918 wxSize temp4 ;
20919 long val5 ;
20920 int ecode5 = 0 ;
20921 bool temp6 = false ;
20922 PyObject * obj0 = 0 ;
20923 PyObject * obj1 = 0 ;
20924 PyObject * obj2 = 0 ;
20925 PyObject * obj3 = 0 ;
20926 PyObject * obj4 = 0 ;
20927 PyObject * obj5 = 0 ;
20928 char * kwnames[] = {
20929 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20930 };
20931
20932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20934 if (!SWIG_IsOK(res1)) {
20935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Listbook" "', expected argument " "1"" of type '" "wxWindow *""'");
20936 }
20937 arg1 = reinterpret_cast< wxWindow * >(argp1);
20938 if (obj1) {
20939 ecode2 = SWIG_AsVal_int(obj1, &val2);
20940 if (!SWIG_IsOK(ecode2)) {
20941 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Listbook" "', expected argument " "2"" of type '" "int""'");
20942 }
20943 arg2 = static_cast< int >(val2);
20944 }
20945 if (obj2) {
093d3ff1 20946 {
0085ce49
RD
20947 arg3 = &temp3;
20948 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 20949 }
0085ce49
RD
20950 }
20951 if (obj3) {
093d3ff1 20952 {
0085ce49
RD
20953 arg4 = &temp4;
20954 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 20955 }
0085ce49
RD
20956 }
20957 if (obj4) {
20958 ecode5 = SWIG_AsVal_long(obj4, &val5);
20959 if (!SWIG_IsOK(ecode5)) {
20960 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Listbook" "', expected argument " "5"" of type '" "long""'");
20961 }
20962 arg5 = static_cast< long >(val5);
20963 }
20964 if (obj5) {
d14a1e28 20965 {
0085ce49
RD
20966 arg6 = wxString_in_helper(obj5);
20967 if (arg6 == NULL) SWIG_fail;
20968 temp6 = true;
d14a1e28 20969 }
0085ce49
RD
20970 }
20971 {
20972 if (!wxPyCheckForApp()) SWIG_fail;
20973 PyThreadState* __tstate = wxPyBeginAllowThreads();
20974 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20975 wxPyEndAllowThreads(__tstate);
20976 if (PyErr_Occurred()) SWIG_fail;
20977 }
20978 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_NEW | 0 );
20979 {
20980 if (temp6)
20981 delete arg6;
20982 }
20983 return resultobj;
20984fail:
20985 {
20986 if (temp6)
20987 delete arg6;
20988 }
20989 return NULL;
d14a1e28
RD
20990}
20991
20992
0085ce49
RD
20993SWIGINTERN PyObject *_wrap_new_PreListbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20994 PyObject *resultobj = 0;
20995 wxListbook *result = 0 ;
20996
20997 if (!SWIG_Python_UnpackTuple(args,"new_PreListbook",0,0,0)) SWIG_fail;
20998 {
20999 if (!wxPyCheckForApp()) SWIG_fail;
21000 PyThreadState* __tstate = wxPyBeginAllowThreads();
21001 result = (wxListbook *)new wxListbook();
21002 wxPyEndAllowThreads(__tstate);
21003 if (PyErr_Occurred()) SWIG_fail;
21004 }
21005 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_OWN | 0 );
21006 return resultobj;
21007fail:
21008 return NULL;
21009}
21010
21011
21012SWIGINTERN PyObject *_wrap_Listbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21013 PyObject *resultobj = 0;
21014 wxListbook *arg1 = (wxListbook *) 0 ;
21015 wxWindow *arg2 = (wxWindow *) 0 ;
21016 int arg3 = (int) -1 ;
21017 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21018 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21019 wxSize const &arg5_defvalue = wxDefaultSize ;
21020 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21021 long arg6 = (long) 0 ;
21022 wxString const &arg7_defvalue = wxPyEmptyString ;
21023 wxString *arg7 = (wxString *) &arg7_defvalue ;
21024 bool result;
21025 void *argp1 = 0 ;
21026 int res1 = 0 ;
21027 void *argp2 = 0 ;
21028 int res2 = 0 ;
21029 int val3 ;
21030 int ecode3 = 0 ;
21031 wxPoint temp4 ;
21032 wxSize temp5 ;
21033 long val6 ;
21034 int ecode6 = 0 ;
21035 bool temp7 = false ;
21036 PyObject * obj0 = 0 ;
21037 PyObject * obj1 = 0 ;
21038 PyObject * obj2 = 0 ;
21039 PyObject * obj3 = 0 ;
21040 PyObject * obj4 = 0 ;
21041 PyObject * obj5 = 0 ;
21042 PyObject * obj6 = 0 ;
21043 char * kwnames[] = {
21044 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21045 };
21046
21047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21049 if (!SWIG_IsOK(res1)) {
21050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_Create" "', expected argument " "1"" of type '" "wxListbook *""'");
21051 }
21052 arg1 = reinterpret_cast< wxListbook * >(argp1);
21053 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21054 if (!SWIG_IsOK(res2)) {
21055 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Listbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21056 }
21057 arg2 = reinterpret_cast< wxWindow * >(argp2);
21058 if (obj2) {
21059 ecode3 = SWIG_AsVal_int(obj2, &val3);
21060 if (!SWIG_IsOK(ecode3)) {
21061 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Listbook_Create" "', expected argument " "3"" of type '" "int""'");
21062 }
21063 arg3 = static_cast< int >(val3);
21064 }
21065 if (obj3) {
22bfe96c 21066 {
0085ce49
RD
21067 arg4 = &temp4;
21068 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
22bfe96c 21069 }
0085ce49
RD
21070 }
21071 if (obj4) {
22bfe96c 21072 {
0085ce49
RD
21073 arg5 = &temp5;
21074 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
22bfe96c 21075 }
0085ce49
RD
21076 }
21077 if (obj5) {
21078 ecode6 = SWIG_AsVal_long(obj5, &val6);
21079 if (!SWIG_IsOK(ecode6)) {
21080 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Listbook_Create" "', expected argument " "6"" of type '" "long""'");
21081 }
21082 arg6 = static_cast< long >(val6);
21083 }
21084 if (obj6) {
b2dc1044 21085 {
0085ce49
RD
21086 arg7 = wxString_in_helper(obj6);
21087 if (arg7 == NULL) SWIG_fail;
21088 temp7 = true;
b2dc1044 21089 }
0085ce49
RD
21090 }
21091 {
21092 PyThreadState* __tstate = wxPyBeginAllowThreads();
21093 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21094 wxPyEndAllowThreads(__tstate);
21095 if (PyErr_Occurred()) SWIG_fail;
21096 }
21097 {
21098 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21099 }
21100 {
21101 if (temp7)
21102 delete arg7;
21103 }
21104 return resultobj;
21105fail:
21106 {
21107 if (temp7)
21108 delete arg7;
21109 }
21110 return NULL;
b2dc1044
RD
21111}
21112
21113
0085ce49
RD
21114SWIGINTERN PyObject *_wrap_Listbook_GetListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21115 PyObject *resultobj = 0;
21116 wxListbook *arg1 = (wxListbook *) 0 ;
21117 wxListView *result = 0 ;
21118 void *argp1 = 0 ;
21119 int res1 = 0 ;
21120 PyObject *swig_obj[1] ;
21121
21122 if (!args) SWIG_fail;
21123 swig_obj[0] = args;
21124 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21125 if (!SWIG_IsOK(res1)) {
21126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_GetListView" "', expected argument " "1"" of type '" "wxListbook *""'");
21127 }
21128 arg1 = reinterpret_cast< wxListbook * >(argp1);
21129 {
21130 PyThreadState* __tstate = wxPyBeginAllowThreads();
21131 result = (wxListView *)(arg1)->GetListView();
21132 wxPyEndAllowThreads(__tstate);
21133 if (PyErr_Occurred()) SWIG_fail;
21134 }
21135 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, 0 | 0 );
21136 return resultobj;
21137fail:
21138 return NULL;
21139}
21140
21141
21142SWIGINTERN PyObject *Listbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21143 PyObject *obj;
21144 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21145 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbook, SWIG_NewClientData(obj));
21146 return SWIG_Py_Void();
21147}
21148
21149SWIGINTERN PyObject *Listbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21150 return SWIG_Python_InitShadowInstance(args);
21151}
21152
21153SWIGINTERN PyObject *_wrap_new_ListbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21154 PyObject *resultobj = 0;
21155 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21156 int arg2 = (int) 0 ;
21157 int arg3 = (int) -1 ;
21158 int arg4 = (int) -1 ;
21159 wxListbookEvent *result = 0 ;
21160 int val1 ;
21161 int ecode1 = 0 ;
21162 int val2 ;
21163 int ecode2 = 0 ;
21164 int val3 ;
21165 int ecode3 = 0 ;
21166 int val4 ;
21167 int ecode4 = 0 ;
21168 PyObject * obj0 = 0 ;
21169 PyObject * obj1 = 0 ;
21170 PyObject * obj2 = 0 ;
21171 PyObject * obj3 = 0 ;
21172 char * kwnames[] = {
21173 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21174 };
21175
21176 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21177 if (obj0) {
21178 ecode1 = SWIG_AsVal_int(obj0, &val1);
21179 if (!SWIG_IsOK(ecode1)) {
21180 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21181 }
21182 arg1 = static_cast< wxEventType >(val1);
21183 }
21184 if (obj1) {
21185 ecode2 = SWIG_AsVal_int(obj1, &val2);
21186 if (!SWIG_IsOK(ecode2)) {
21187 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListbookEvent" "', expected argument " "2"" of type '" "int""'");
21188 }
21189 arg2 = static_cast< int >(val2);
21190 }
21191 if (obj2) {
21192 ecode3 = SWIG_AsVal_int(obj2, &val3);
21193 if (!SWIG_IsOK(ecode3)) {
21194 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ListbookEvent" "', expected argument " "3"" of type '" "int""'");
21195 }
21196 arg3 = static_cast< int >(val3);
21197 }
21198 if (obj3) {
21199 ecode4 = SWIG_AsVal_int(obj3, &val4);
21200 if (!SWIG_IsOK(ecode4)) {
21201 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ListbookEvent" "', expected argument " "4"" of type '" "int""'");
21202 }
21203 arg4 = static_cast< int >(val4);
21204 }
21205 {
21206 PyThreadState* __tstate = wxPyBeginAllowThreads();
21207 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
21208 wxPyEndAllowThreads(__tstate);
21209 if (PyErr_Occurred()) SWIG_fail;
21210 }
21211 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbookEvent, SWIG_POINTER_NEW | 0 );
21212 return resultobj;
21213fail:
21214 return NULL;
21215}
21216
21217
21218SWIGINTERN PyObject *ListbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21219 PyObject *obj;
21220 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21221 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbookEvent, SWIG_NewClientData(obj));
21222 return SWIG_Py_Void();
21223}
21224
21225SWIGINTERN PyObject *ListbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21226 return SWIG_Python_InitShadowInstance(args);
21227}
21228
21229SWIGINTERN PyObject *_wrap_new_Choicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21230 PyObject *resultobj = 0;
21231 wxWindow *arg1 = (wxWindow *) 0 ;
21232 int arg2 ;
21233 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21234 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21235 wxSize const &arg4_defvalue = wxDefaultSize ;
21236 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21237 long arg5 = (long) 0 ;
21238 wxString const &arg6_defvalue = wxPyEmptyString ;
21239 wxString *arg6 = (wxString *) &arg6_defvalue ;
21240 wxChoicebook *result = 0 ;
21241 void *argp1 = 0 ;
21242 int res1 = 0 ;
21243 int val2 ;
21244 int ecode2 = 0 ;
21245 wxPoint temp3 ;
21246 wxSize temp4 ;
21247 long val5 ;
21248 int ecode5 = 0 ;
21249 bool temp6 = false ;
21250 PyObject * obj0 = 0 ;
21251 PyObject * obj1 = 0 ;
21252 PyObject * obj2 = 0 ;
21253 PyObject * obj3 = 0 ;
21254 PyObject * obj4 = 0 ;
21255 PyObject * obj5 = 0 ;
21256 char * kwnames[] = {
21257 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21258 };
21259
21260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21262 if (!SWIG_IsOK(res1)) {
21263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choicebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21264 }
21265 arg1 = reinterpret_cast< wxWindow * >(argp1);
21266 ecode2 = SWIG_AsVal_int(obj1, &val2);
21267 if (!SWIG_IsOK(ecode2)) {
21268 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choicebook" "', expected argument " "2"" of type '" "int""'");
21269 }
21270 arg2 = static_cast< int >(val2);
21271 if (obj2) {
d14a1e28 21272 {
0085ce49
RD
21273 arg3 = &temp3;
21274 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 21275 }
0085ce49
RD
21276 }
21277 if (obj3) {
d14a1e28 21278 {
0085ce49
RD
21279 arg4 = &temp4;
21280 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 21281 }
0085ce49
RD
21282 }
21283 if (obj4) {
21284 ecode5 = SWIG_AsVal_long(obj4, &val5);
21285 if (!SWIG_IsOK(ecode5)) {
21286 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Choicebook" "', expected argument " "5"" of type '" "long""'");
21287 }
21288 arg5 = static_cast< long >(val5);
21289 }
21290 if (obj5) {
d14a1e28 21291 {
0085ce49
RD
21292 arg6 = wxString_in_helper(obj5);
21293 if (arg6 == NULL) SWIG_fail;
21294 temp6 = true;
d14a1e28 21295 }
0085ce49
RD
21296 }
21297 {
21298 if (!wxPyCheckForApp()) SWIG_fail;
21299 PyThreadState* __tstate = wxPyBeginAllowThreads();
21300 result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21301 wxPyEndAllowThreads(__tstate);
21302 if (PyErr_Occurred()) SWIG_fail;
21303 }
21304 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_NEW | 0 );
21305 {
21306 if (temp6)
21307 delete arg6;
21308 }
21309 return resultobj;
21310fail:
21311 {
21312 if (temp6)
21313 delete arg6;
21314 }
21315 return NULL;
d14a1e28
RD
21316}
21317
21318
0085ce49
RD
21319SWIGINTERN PyObject *_wrap_new_PreChoicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21320 PyObject *resultobj = 0;
21321 wxChoicebook *result = 0 ;
21322
21323 if (!SWIG_Python_UnpackTuple(args,"new_PreChoicebook",0,0,0)) SWIG_fail;
21324 {
21325 if (!wxPyCheckForApp()) SWIG_fail;
21326 PyThreadState* __tstate = wxPyBeginAllowThreads();
21327 result = (wxChoicebook *)new wxChoicebook();
21328 wxPyEndAllowThreads(__tstate);
21329 if (PyErr_Occurred()) SWIG_fail;
21330 }
21331 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_OWN | 0 );
21332 return resultobj;
21333fail:
21334 return NULL;
21335}
21336
21337
21338SWIGINTERN PyObject *_wrap_Choicebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21339 PyObject *resultobj = 0;
21340 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21341 wxWindow *arg2 = (wxWindow *) 0 ;
21342 int arg3 ;
21343 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21344 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21345 wxSize const &arg5_defvalue = wxDefaultSize ;
21346 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21347 long arg6 = (long) 0 ;
21348 wxString const &arg7_defvalue = wxPyEmptyString ;
21349 wxString *arg7 = (wxString *) &arg7_defvalue ;
21350 bool result;
21351 void *argp1 = 0 ;
21352 int res1 = 0 ;
21353 void *argp2 = 0 ;
21354 int res2 = 0 ;
21355 int val3 ;
21356 int ecode3 = 0 ;
21357 wxPoint temp4 ;
21358 wxSize temp5 ;
21359 long val6 ;
21360 int ecode6 = 0 ;
21361 bool temp7 = false ;
21362 PyObject * obj0 = 0 ;
21363 PyObject * obj1 = 0 ;
21364 PyObject * obj2 = 0 ;
21365 PyObject * obj3 = 0 ;
21366 PyObject * obj4 = 0 ;
21367 PyObject * obj5 = 0 ;
21368 PyObject * obj6 = 0 ;
21369 char * kwnames[] = {
21370 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21371 };
21372
21373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21375 if (!SWIG_IsOK(res1)) {
21376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_Create" "', expected argument " "1"" of type '" "wxChoicebook *""'");
21377 }
21378 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21379 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21380 if (!SWIG_IsOK(res2)) {
21381 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choicebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21382 }
21383 arg2 = reinterpret_cast< wxWindow * >(argp2);
21384 ecode3 = SWIG_AsVal_int(obj2, &val3);
21385 if (!SWIG_IsOK(ecode3)) {
21386 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choicebook_Create" "', expected argument " "3"" of type '" "int""'");
21387 }
21388 arg3 = static_cast< int >(val3);
21389 if (obj3) {
4f89f6a3 21390 {
0085ce49
RD
21391 arg4 = &temp4;
21392 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 21393 }
0085ce49
RD
21394 }
21395 if (obj4) {
d14a1e28 21396 {
0085ce49
RD
21397 arg5 = &temp5;
21398 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 21399 }
0085ce49
RD
21400 }
21401 if (obj5) {
21402 ecode6 = SWIG_AsVal_long(obj5, &val6);
21403 if (!SWIG_IsOK(ecode6)) {
21404 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Choicebook_Create" "', expected argument " "6"" of type '" "long""'");
21405 }
21406 arg6 = static_cast< long >(val6);
21407 }
21408 if (obj6) {
d14a1e28 21409 {
0085ce49
RD
21410 arg7 = wxString_in_helper(obj6);
21411 if (arg7 == NULL) SWIG_fail;
21412 temp7 = true;
d14a1e28 21413 }
0085ce49
RD
21414 }
21415 {
21416 PyThreadState* __tstate = wxPyBeginAllowThreads();
21417 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21418 wxPyEndAllowThreads(__tstate);
21419 if (PyErr_Occurred()) SWIG_fail;
21420 }
21421 {
21422 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21423 }
21424 {
21425 if (temp7)
21426 delete arg7;
21427 }
21428 return resultobj;
21429fail:
21430 {
21431 if (temp7)
21432 delete arg7;
21433 }
21434 return NULL;
d14a1e28
RD
21435}
21436
21437
0085ce49
RD
21438SWIGINTERN PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21439 PyObject *resultobj = 0;
21440 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21441 wxChoice *result = 0 ;
21442 void *argp1 = 0 ;
21443 int res1 = 0 ;
21444 PyObject *swig_obj[1] ;
21445
21446 if (!args) SWIG_fail;
21447 swig_obj[0] = args;
21448 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21449 if (!SWIG_IsOK(res1)) {
21450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_GetChoiceCtrl" "', expected argument " "1"" of type '" "wxChoicebook const *""'");
21451 }
21452 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21453 {
21454 PyThreadState* __tstate = wxPyBeginAllowThreads();
21455 result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl();
21456 wxPyEndAllowThreads(__tstate);
21457 if (PyErr_Occurred()) SWIG_fail;
21458 }
21459 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, 0 | 0 );
21460 return resultobj;
21461fail:
21462 return NULL;
21463}
21464
21465
21466SWIGINTERN PyObject *Choicebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21467 PyObject *obj;
21468 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21469 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebook, SWIG_NewClientData(obj));
21470 return SWIG_Py_Void();
21471}
21472
21473SWIGINTERN PyObject *Choicebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21474 return SWIG_Python_InitShadowInstance(args);
21475}
21476
21477SWIGINTERN PyObject *_wrap_new_ChoicebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21478 PyObject *resultobj = 0;
21479 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21480 int arg2 = (int) 0 ;
21481 int arg3 = (int) -1 ;
21482 int arg4 = (int) -1 ;
21483 wxChoicebookEvent *result = 0 ;
21484 int val1 ;
21485 int ecode1 = 0 ;
21486 int val2 ;
21487 int ecode2 = 0 ;
21488 int val3 ;
21489 int ecode3 = 0 ;
21490 int val4 ;
21491 int ecode4 = 0 ;
21492 PyObject * obj0 = 0 ;
21493 PyObject * obj1 = 0 ;
21494 PyObject * obj2 = 0 ;
21495 PyObject * obj3 = 0 ;
21496 char * kwnames[] = {
21497 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21498 };
21499
21500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21501 if (obj0) {
21502 ecode1 = SWIG_AsVal_int(obj0, &val1);
21503 if (!SWIG_IsOK(ecode1)) {
21504 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ChoicebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21505 }
21506 arg1 = static_cast< wxEventType >(val1);
21507 }
21508 if (obj1) {
21509 ecode2 = SWIG_AsVal_int(obj1, &val2);
21510 if (!SWIG_IsOK(ecode2)) {
21511 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ChoicebookEvent" "', expected argument " "2"" of type '" "int""'");
21512 }
21513 arg2 = static_cast< int >(val2);
21514 }
21515 if (obj2) {
21516 ecode3 = SWIG_AsVal_int(obj2, &val3);
21517 if (!SWIG_IsOK(ecode3)) {
21518 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ChoicebookEvent" "', expected argument " "3"" of type '" "int""'");
21519 }
21520 arg3 = static_cast< int >(val3);
21521 }
21522 if (obj3) {
21523 ecode4 = SWIG_AsVal_int(obj3, &val4);
21524 if (!SWIG_IsOK(ecode4)) {
21525 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ChoicebookEvent" "', expected argument " "4"" of type '" "int""'");
21526 }
21527 arg4 = static_cast< int >(val4);
21528 }
21529 {
21530 PyThreadState* __tstate = wxPyBeginAllowThreads();
21531 result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4);
21532 wxPyEndAllowThreads(__tstate);
21533 if (PyErr_Occurred()) SWIG_fail;
21534 }
21535 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebookEvent, SWIG_POINTER_NEW | 0 );
21536 return resultobj;
21537fail:
21538 return NULL;
21539}
21540
21541
21542SWIGINTERN PyObject *ChoicebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21543 PyObject *obj;
21544 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21545 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebookEvent, SWIG_NewClientData(obj));
21546 return SWIG_Py_Void();
21547}
21548
21549SWIGINTERN PyObject *ChoicebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21550 return SWIG_Python_InitShadowInstance(args);
21551}
21552
21553SWIGINTERN PyObject *_wrap_new_Treebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21554 PyObject *resultobj = 0;
21555 wxWindow *arg1 = (wxWindow *) 0 ;
21556 int arg2 ;
21557 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21558 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21559 wxSize const &arg4_defvalue = wxDefaultSize ;
21560 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21561 long arg5 = (long) wxBK_DEFAULT ;
21562 wxString const &arg6_defvalue = wxPyEmptyString ;
21563 wxString *arg6 = (wxString *) &arg6_defvalue ;
21564 wxTreebook *result = 0 ;
21565 void *argp1 = 0 ;
21566 int res1 = 0 ;
21567 int val2 ;
21568 int ecode2 = 0 ;
21569 wxPoint temp3 ;
21570 wxSize temp4 ;
21571 long val5 ;
21572 int ecode5 = 0 ;
21573 bool temp6 = false ;
21574 PyObject * obj0 = 0 ;
21575 PyObject * obj1 = 0 ;
21576 PyObject * obj2 = 0 ;
21577 PyObject * obj3 = 0 ;
21578 PyObject * obj4 = 0 ;
21579 PyObject * obj5 = 0 ;
21580 char * kwnames[] = {
21581 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21582 };
21583
21584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Treebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21586 if (!SWIG_IsOK(res1)) {
21587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Treebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21588 }
21589 arg1 = reinterpret_cast< wxWindow * >(argp1);
21590 ecode2 = SWIG_AsVal_int(obj1, &val2);
21591 if (!SWIG_IsOK(ecode2)) {
21592 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Treebook" "', expected argument " "2"" of type '" "int""'");
21593 }
21594 arg2 = static_cast< int >(val2);
21595 if (obj2) {
093d3ff1 21596 {
0085ce49
RD
21597 arg3 = &temp3;
21598 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 21599 }
0085ce49
RD
21600 }
21601 if (obj3) {
d14a1e28 21602 {
0085ce49
RD
21603 arg4 = &temp4;
21604 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 21605 }
0085ce49
RD
21606 }
21607 if (obj4) {
21608 ecode5 = SWIG_AsVal_long(obj4, &val5);
21609 if (!SWIG_IsOK(ecode5)) {
21610 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Treebook" "', expected argument " "5"" of type '" "long""'");
21611 }
21612 arg5 = static_cast< long >(val5);
21613 }
21614 if (obj5) {
093d3ff1 21615 {
0085ce49
RD
21616 arg6 = wxString_in_helper(obj5);
21617 if (arg6 == NULL) SWIG_fail;
21618 temp6 = true;
093d3ff1 21619 }
0085ce49
RD
21620 }
21621 {
21622 if (!wxPyCheckForApp()) SWIG_fail;
21623 PyThreadState* __tstate = wxPyBeginAllowThreads();
21624 result = (wxTreebook *)new wxTreebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21625 wxPyEndAllowThreads(__tstate);
21626 if (PyErr_Occurred()) SWIG_fail;
21627 }
21628 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_NEW | 0 );
21629 {
21630 if (temp6)
21631 delete arg6;
21632 }
21633 return resultobj;
21634fail:
21635 {
21636 if (temp6)
21637 delete arg6;
21638 }
21639 return NULL;
d14a1e28
RD
21640}
21641
21642
0085ce49
RD
21643SWIGINTERN PyObject *_wrap_new_PreTreebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21644 PyObject *resultobj = 0;
21645 wxTreebook *result = 0 ;
21646
21647 if (!SWIG_Python_UnpackTuple(args,"new_PreTreebook",0,0,0)) SWIG_fail;
21648 {
21649 if (!wxPyCheckForApp()) SWIG_fail;
21650 PyThreadState* __tstate = wxPyBeginAllowThreads();
21651 result = (wxTreebook *)new wxTreebook();
21652 wxPyEndAllowThreads(__tstate);
21653 if (PyErr_Occurred()) SWIG_fail;
21654 }
21655 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_OWN | 0 );
21656 return resultobj;
21657fail:
21658 return NULL;
21659}
21660
21661
21662SWIGINTERN PyObject *_wrap_Treebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21663 PyObject *resultobj = 0;
21664 wxTreebook *arg1 = (wxTreebook *) 0 ;
21665 wxWindow *arg2 = (wxWindow *) 0 ;
21666 int arg3 ;
21667 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21668 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21669 wxSize const &arg5_defvalue = wxDefaultSize ;
21670 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21671 long arg6 = (long) wxBK_DEFAULT ;
21672 wxString const &arg7_defvalue = wxPyEmptyString ;
21673 wxString *arg7 = (wxString *) &arg7_defvalue ;
21674 bool result;
21675 void *argp1 = 0 ;
21676 int res1 = 0 ;
21677 void *argp2 = 0 ;
21678 int res2 = 0 ;
21679 int val3 ;
21680 int ecode3 = 0 ;
21681 wxPoint temp4 ;
21682 wxSize temp5 ;
21683 long val6 ;
21684 int ecode6 = 0 ;
21685 bool temp7 = false ;
21686 PyObject * obj0 = 0 ;
21687 PyObject * obj1 = 0 ;
21688 PyObject * obj2 = 0 ;
21689 PyObject * obj3 = 0 ;
21690 PyObject * obj4 = 0 ;
21691 PyObject * obj5 = 0 ;
21692 PyObject * obj6 = 0 ;
21693 char * kwnames[] = {
21694 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21695 };
21696
21697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Treebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21699 if (!SWIG_IsOK(res1)) {
21700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_Create" "', expected argument " "1"" of type '" "wxTreebook *""'");
21701 }
21702 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21703 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21704 if (!SWIG_IsOK(res2)) {
21705 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21706 }
21707 arg2 = reinterpret_cast< wxWindow * >(argp2);
21708 ecode3 = SWIG_AsVal_int(obj2, &val3);
21709 if (!SWIG_IsOK(ecode3)) {
21710 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_Create" "', expected argument " "3"" of type '" "int""'");
21711 }
21712 arg3 = static_cast< int >(val3);
21713 if (obj3) {
d14a1e28 21714 {
0085ce49
RD
21715 arg4 = &temp4;
21716 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 21717 }
0085ce49
RD
21718 }
21719 if (obj4) {
093d3ff1 21720 {
0085ce49
RD
21721 arg5 = &temp5;
21722 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 21723 }
0085ce49
RD
21724 }
21725 if (obj5) {
21726 ecode6 = SWIG_AsVal_long(obj5, &val6);
21727 if (!SWIG_IsOK(ecode6)) {
21728 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_Create" "', expected argument " "6"" of type '" "long""'");
21729 }
21730 arg6 = static_cast< long >(val6);
21731 }
21732 if (obj6) {
093d3ff1 21733 {
0085ce49
RD
21734 arg7 = wxString_in_helper(obj6);
21735 if (arg7 == NULL) SWIG_fail;
21736 temp7 = true;
093d3ff1 21737 }
0085ce49
RD
21738 }
21739 {
21740 PyThreadState* __tstate = wxPyBeginAllowThreads();
21741 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21742 wxPyEndAllowThreads(__tstate);
21743 if (PyErr_Occurred()) SWIG_fail;
21744 }
21745 {
21746 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21747 }
21748 {
21749 if (temp7)
21750 delete arg7;
21751 }
21752 return resultobj;
21753fail:
21754 {
21755 if (temp7)
21756 delete arg7;
21757 }
21758 return NULL;
21759}
21760
21761
21762SWIGINTERN PyObject *_wrap_Treebook_InsertSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21763 PyObject *resultobj = 0;
21764 wxTreebook *arg1 = (wxTreebook *) 0 ;
21765 size_t arg2 ;
21766 wxWindow *arg3 = (wxWindow *) 0 ;
21767 wxString *arg4 = 0 ;
21768 bool arg5 = (bool) false ;
21769 int arg6 = (int) wxNOT_FOUND ;
21770 bool result;
21771 void *argp1 = 0 ;
21772 int res1 = 0 ;
21773 size_t val2 ;
21774 int ecode2 = 0 ;
21775 void *argp3 = 0 ;
21776 int res3 = 0 ;
21777 bool temp4 = false ;
21778 bool val5 ;
21779 int ecode5 = 0 ;
21780 int val6 ;
21781 int ecode6 = 0 ;
21782 PyObject * obj0 = 0 ;
21783 PyObject * obj1 = 0 ;
21784 PyObject * obj2 = 0 ;
21785 PyObject * obj3 = 0 ;
21786 PyObject * obj4 = 0 ;
21787 PyObject * obj5 = 0 ;
21788 char * kwnames[] = {
21789 (char *) "self",(char *) "pos",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21790 };
21791
21792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Treebook_InsertSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21794 if (!SWIG_IsOK(res1)) {
21795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_InsertSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21796 }
21797 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21798 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21799 if (!SWIG_IsOK(ecode2)) {
21800 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_InsertSubPage" "', expected argument " "2"" of type '" "size_t""'");
21801 }
21802 arg2 = static_cast< size_t >(val2);
21803 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
21804 if (!SWIG_IsOK(res3)) {
21805 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Treebook_InsertSubPage" "', expected argument " "3"" of type '" "wxWindow *""'");
21806 }
21807 arg3 = reinterpret_cast< wxWindow * >(argp3);
21808 {
21809 arg4 = wxString_in_helper(obj3);
21810 if (arg4 == NULL) SWIG_fail;
21811 temp4 = true;
21812 }
21813 if (obj4) {
21814 ecode5 = SWIG_AsVal_bool(obj4, &val5);
21815 if (!SWIG_IsOK(ecode5)) {
21816 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_InsertSubPage" "', expected argument " "5"" of type '" "bool""'");
21817 }
21818 arg5 = static_cast< bool >(val5);
21819 }
21820 if (obj5) {
21821 ecode6 = SWIG_AsVal_int(obj5, &val6);
21822 if (!SWIG_IsOK(ecode6)) {
21823 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_InsertSubPage" "', expected argument " "6"" of type '" "int""'");
21824 }
21825 arg6 = static_cast< int >(val6);
21826 }
21827 {
21828 PyThreadState* __tstate = wxPyBeginAllowThreads();
21829 result = (bool)(arg1)->InsertSubPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
21830 wxPyEndAllowThreads(__tstate);
21831 if (PyErr_Occurred()) SWIG_fail;
21832 }
21833 {
21834 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21835 }
21836 {
21837 if (temp4)
21838 delete arg4;
21839 }
21840 return resultobj;
21841fail:
21842 {
21843 if (temp4)
21844 delete arg4;
21845 }
21846 return NULL;
21847}
21848
21849
21850SWIGINTERN PyObject *_wrap_Treebook_AddSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21851 PyObject *resultobj = 0;
21852 wxTreebook *arg1 = (wxTreebook *) 0 ;
21853 wxWindow *arg2 = (wxWindow *) 0 ;
21854 wxString *arg3 = 0 ;
21855 bool arg4 = (bool) false ;
21856 int arg5 = (int) wxNOT_FOUND ;
21857 bool result;
21858 void *argp1 = 0 ;
21859 int res1 = 0 ;
21860 void *argp2 = 0 ;
21861 int res2 = 0 ;
21862 bool temp3 = false ;
21863 bool val4 ;
21864 int ecode4 = 0 ;
21865 int val5 ;
21866 int ecode5 = 0 ;
21867 PyObject * obj0 = 0 ;
21868 PyObject * obj1 = 0 ;
21869 PyObject * obj2 = 0 ;
21870 PyObject * obj3 = 0 ;
21871 PyObject * obj4 = 0 ;
21872 char * kwnames[] = {
21873 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21874 };
21875
21876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Treebook_AddSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
21877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21878 if (!SWIG_IsOK(res1)) {
21879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_AddSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21880 }
21881 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21882 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21883 if (!SWIG_IsOK(res2)) {
21884 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_AddSubPage" "', expected argument " "2"" of type '" "wxWindow *""'");
21885 }
21886 arg2 = reinterpret_cast< wxWindow * >(argp2);
21887 {
21888 arg3 = wxString_in_helper(obj2);
21889 if (arg3 == NULL) SWIG_fail;
21890 temp3 = true;
21891 }
21892 if (obj3) {
21893 ecode4 = SWIG_AsVal_bool(obj3, &val4);
21894 if (!SWIG_IsOK(ecode4)) {
21895 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Treebook_AddSubPage" "', expected argument " "4"" of type '" "bool""'");
21896 }
21897 arg4 = static_cast< bool >(val4);
21898 }
21899 if (obj4) {
21900 ecode5 = SWIG_AsVal_int(obj4, &val5);
21901 if (!SWIG_IsOK(ecode5)) {
21902 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_AddSubPage" "', expected argument " "5"" of type '" "int""'");
21903 }
21904 arg5 = static_cast< int >(val5);
21905 }
21906 {
21907 PyThreadState* __tstate = wxPyBeginAllowThreads();
21908 result = (bool)(arg1)->AddSubPage(arg2,(wxString const &)*arg3,arg4,arg5);
21909 wxPyEndAllowThreads(__tstate);
21910 if (PyErr_Occurred()) SWIG_fail;
21911 }
21912 {
21913 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21914 }
21915 {
21916 if (temp3)
21917 delete arg3;
21918 }
21919 return resultobj;
21920fail:
21921 {
21922 if (temp3)
21923 delete arg3;
21924 }
21925 return NULL;
21926}
21927
21928
21929SWIGINTERN PyObject *_wrap_Treebook_IsNodeExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21930 PyObject *resultobj = 0;
21931 wxTreebook *arg1 = (wxTreebook *) 0 ;
21932 size_t arg2 ;
21933 bool result;
21934 void *argp1 = 0 ;
21935 int res1 = 0 ;
21936 size_t val2 ;
21937 int ecode2 = 0 ;
21938 PyObject * obj0 = 0 ;
21939 PyObject * obj1 = 0 ;
21940 char * kwnames[] = {
21941 (char *) "self",(char *) "pos", NULL
21942 };
21943
21944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_IsNodeExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
21945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21946 if (!SWIG_IsOK(res1)) {
21947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "1"" of type '" "wxTreebook const *""'");
21948 }
21949 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21950 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21951 if (!SWIG_IsOK(ecode2)) {
21952 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "2"" of type '" "size_t""'");
21953 }
21954 arg2 = static_cast< size_t >(val2);
21955 {
21956 PyThreadState* __tstate = wxPyBeginAllowThreads();
21957 result = (bool)((wxTreebook const *)arg1)->IsNodeExpanded(arg2);
21958 wxPyEndAllowThreads(__tstate);
21959 if (PyErr_Occurred()) SWIG_fail;
21960 }
21961 {
21962 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21963 }
21964 return resultobj;
21965fail:
21966 return NULL;
21967}
21968
21969
21970SWIGINTERN PyObject *_wrap_Treebook_ExpandNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21971 PyObject *resultobj = 0;
21972 wxTreebook *arg1 = (wxTreebook *) 0 ;
21973 size_t arg2 ;
21974 bool arg3 = (bool) true ;
21975 bool result;
21976 void *argp1 = 0 ;
21977 int res1 = 0 ;
21978 size_t val2 ;
21979 int ecode2 = 0 ;
21980 bool val3 ;
21981 int ecode3 = 0 ;
21982 PyObject * obj0 = 0 ;
21983 PyObject * obj1 = 0 ;
21984 PyObject * obj2 = 0 ;
21985 char * kwnames[] = {
21986 (char *) "self",(char *) "pos",(char *) "expand", NULL
21987 };
21988
21989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Treebook_ExpandNode",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21990 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21991 if (!SWIG_IsOK(res1)) {
21992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_ExpandNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
21993 }
21994 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21995 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21996 if (!SWIG_IsOK(ecode2)) {
21997 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_ExpandNode" "', expected argument " "2"" of type '" "size_t""'");
21998 }
21999 arg2 = static_cast< size_t >(val2);
22000 if (obj2) {
22001 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22002 if (!SWIG_IsOK(ecode3)) {
22003 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_ExpandNode" "', expected argument " "3"" of type '" "bool""'");
22004 }
22005 arg3 = static_cast< bool >(val3);
22006 }
22007 {
22008 PyThreadState* __tstate = wxPyBeginAllowThreads();
22009 result = (bool)(arg1)->ExpandNode(arg2,arg3);
22010 wxPyEndAllowThreads(__tstate);
22011 if (PyErr_Occurred()) SWIG_fail;
22012 }
22013 {
22014 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22015 }
22016 return resultobj;
22017fail:
22018 return NULL;
22019}
22020
22021
22022SWIGINTERN PyObject *_wrap_Treebook_CollapseNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22023 PyObject *resultobj = 0;
22024 wxTreebook *arg1 = (wxTreebook *) 0 ;
22025 size_t arg2 ;
22026 bool result;
22027 void *argp1 = 0 ;
22028 int res1 = 0 ;
22029 size_t val2 ;
22030 int ecode2 = 0 ;
22031 PyObject * obj0 = 0 ;
22032 PyObject * obj1 = 0 ;
22033 char * kwnames[] = {
22034 (char *) "self",(char *) "pos", NULL
22035 };
22036
22037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_CollapseNode",kwnames,&obj0,&obj1)) SWIG_fail;
22038 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22039 if (!SWIG_IsOK(res1)) {
22040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_CollapseNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
22041 }
22042 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22043 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22044 if (!SWIG_IsOK(ecode2)) {
22045 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_CollapseNode" "', expected argument " "2"" of type '" "size_t""'");
22046 }
22047 arg2 = static_cast< size_t >(val2);
22048 {
22049 PyThreadState* __tstate = wxPyBeginAllowThreads();
22050 result = (bool)(arg1)->CollapseNode(arg2);
22051 wxPyEndAllowThreads(__tstate);
22052 if (PyErr_Occurred()) SWIG_fail;
22053 }
22054 {
22055 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22056 }
22057 return resultobj;
22058fail:
22059 return NULL;
22060}
22061
22062
22063SWIGINTERN PyObject *_wrap_Treebook_GetPageParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22064 PyObject *resultobj = 0;
22065 wxTreebook *arg1 = (wxTreebook *) 0 ;
22066 size_t arg2 ;
22067 int result;
22068 void *argp1 = 0 ;
22069 int res1 = 0 ;
22070 size_t val2 ;
22071 int ecode2 = 0 ;
22072 PyObject * obj0 = 0 ;
22073 PyObject * obj1 = 0 ;
22074 char * kwnames[] = {
22075 (char *) "self",(char *) "pos", NULL
22076 };
22077
22078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_GetPageParent",kwnames,&obj0,&obj1)) SWIG_fail;
22079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22080 if (!SWIG_IsOK(res1)) {
22081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetPageParent" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22082 }
22083 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22084 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22085 if (!SWIG_IsOK(ecode2)) {
22086 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_GetPageParent" "', expected argument " "2"" of type '" "size_t""'");
22087 }
22088 arg2 = static_cast< size_t >(val2);
22089 {
22090 PyThreadState* __tstate = wxPyBeginAllowThreads();
22091 result = (int)((wxTreebook const *)arg1)->GetPageParent(arg2);
22092 wxPyEndAllowThreads(__tstate);
22093 if (PyErr_Occurred()) SWIG_fail;
22094 }
22095 resultobj = SWIG_From_int(static_cast< int >(result));
22096 return resultobj;
22097fail:
22098 return NULL;
d14a1e28
RD
22099}
22100
22101
0085ce49
RD
22102SWIGINTERN PyObject *_wrap_Treebook_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22103 PyObject *resultobj = 0;
22104 wxTreebook *arg1 = (wxTreebook *) 0 ;
22105 wxTreeCtrl *result = 0 ;
22106 void *argp1 = 0 ;
22107 int res1 = 0 ;
22108 PyObject *swig_obj[1] ;
22109
22110 if (!args) SWIG_fail;
22111 swig_obj[0] = args;
22112 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22113 if (!SWIG_IsOK(res1)) {
22114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetTreeCtrl" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22115 }
22116 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22117 {
22118 PyThreadState* __tstate = wxPyBeginAllowThreads();
22119 result = (wxTreeCtrl *)((wxTreebook const *)arg1)->GetTreeCtrl();
22120 wxPyEndAllowThreads(__tstate);
22121 if (PyErr_Occurred()) SWIG_fail;
22122 }
22123 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeCtrl, 0 | 0 );
22124 return resultobj;
22125fail:
22126 return NULL;
22127}
22128
22129
22130SWIGINTERN PyObject *Treebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22131 PyObject *obj;
22132 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22133 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebook, SWIG_NewClientData(obj));
22134 return SWIG_Py_Void();
22135}
22136
22137SWIGINTERN PyObject *Treebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22138 return SWIG_Python_InitShadowInstance(args);
22139}
22140
22141SWIGINTERN PyObject *_wrap_new_TreebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22142 PyObject *resultobj = 0;
22143 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22144 int arg2 = (int) 0 ;
22145 int arg3 = (int) wxNOT_FOUND ;
22146 int arg4 = (int) wxNOT_FOUND ;
22147 wxTreebookEvent *result = 0 ;
22148 int val1 ;
22149 int ecode1 = 0 ;
22150 int val2 ;
22151 int ecode2 = 0 ;
22152 int val3 ;
22153 int ecode3 = 0 ;
22154 int val4 ;
22155 int ecode4 = 0 ;
22156 PyObject * obj0 = 0 ;
22157 PyObject * obj1 = 0 ;
22158 PyObject * obj2 = 0 ;
22159 PyObject * obj3 = 0 ;
22160 char * kwnames[] = {
22161 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22162 };
22163
22164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TreebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22165 if (obj0) {
22166 ecode1 = SWIG_AsVal_int(obj0, &val1);
22167 if (!SWIG_IsOK(ecode1)) {
22168 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22169 }
22170 arg1 = static_cast< wxEventType >(val1);
22171 }
22172 if (obj1) {
22173 ecode2 = SWIG_AsVal_int(obj1, &val2);
22174 if (!SWIG_IsOK(ecode2)) {
22175 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreebookEvent" "', expected argument " "2"" of type '" "int""'");
22176 }
22177 arg2 = static_cast< int >(val2);
22178 }
22179 if (obj2) {
22180 ecode3 = SWIG_AsVal_int(obj2, &val3);
22181 if (!SWIG_IsOK(ecode3)) {
22182 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TreebookEvent" "', expected argument " "3"" of type '" "int""'");
22183 }
22184 arg3 = static_cast< int >(val3);
22185 }
22186 if (obj3) {
22187 ecode4 = SWIG_AsVal_int(obj3, &val4);
22188 if (!SWIG_IsOK(ecode4)) {
22189 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TreebookEvent" "', expected argument " "4"" of type '" "int""'");
22190 }
22191 arg4 = static_cast< int >(val4);
22192 }
22193 {
22194 PyThreadState* __tstate = wxPyBeginAllowThreads();
22195 result = (wxTreebookEvent *)new wxTreebookEvent(arg1,arg2,arg3,arg4);
22196 wxPyEndAllowThreads(__tstate);
22197 if (PyErr_Occurred()) SWIG_fail;
22198 }
22199 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebookEvent, SWIG_POINTER_NEW | 0 );
22200 return resultobj;
22201fail:
22202 return NULL;
22203}
22204
22205
22206SWIGINTERN PyObject *TreebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22207 PyObject *obj;
22208 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22209 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebookEvent, SWIG_NewClientData(obj));
22210 return SWIG_Py_Void();
22211}
22212
22213SWIGINTERN PyObject *TreebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22214 return SWIG_Python_InitShadowInstance(args);
22215}
22216
22217SWIGINTERN PyObject *_wrap_new_Toolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22218 PyObject *resultobj = 0;
22219 wxWindow *arg1 = (wxWindow *) 0 ;
22220 int arg2 ;
22221 wxPoint const &arg3_defvalue = wxDefaultPosition ;
22222 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
22223 wxSize const &arg4_defvalue = wxDefaultSize ;
22224 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
22225 long arg5 = (long) wxBK_DEFAULT ;
22226 wxString const &arg6_defvalue = wxPyEmptyString ;
22227 wxString *arg6 = (wxString *) &arg6_defvalue ;
22228 wxToolbook *result = 0 ;
22229 void *argp1 = 0 ;
22230 int res1 = 0 ;
22231 int val2 ;
22232 int ecode2 = 0 ;
22233 wxPoint temp3 ;
22234 wxSize temp4 ;
22235 long val5 ;
22236 int ecode5 = 0 ;
22237 bool temp6 = false ;
22238 PyObject * obj0 = 0 ;
22239 PyObject * obj1 = 0 ;
22240 PyObject * obj2 = 0 ;
22241 PyObject * obj3 = 0 ;
22242 PyObject * obj4 = 0 ;
22243 PyObject * obj5 = 0 ;
22244 char * kwnames[] = {
22245 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22246 };
22247
22248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Toolbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22249 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
22250 if (!SWIG_IsOK(res1)) {
22251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Toolbook" "', expected argument " "1"" of type '" "wxWindow *""'");
22252 }
22253 arg1 = reinterpret_cast< wxWindow * >(argp1);
22254 ecode2 = SWIG_AsVal_int(obj1, &val2);
22255 if (!SWIG_IsOK(ecode2)) {
22256 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Toolbook" "', expected argument " "2"" of type '" "int""'");
22257 }
22258 arg2 = static_cast< int >(val2);
22259 if (obj2) {
d14a1e28 22260 {
0085ce49
RD
22261 arg3 = &temp3;
22262 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 22263 }
0085ce49
RD
22264 }
22265 if (obj3) {
093d3ff1 22266 {
0085ce49
RD
22267 arg4 = &temp4;
22268 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 22269 }
0085ce49
RD
22270 }
22271 if (obj4) {
22272 ecode5 = SWIG_AsVal_long(obj4, &val5);
22273 if (!SWIG_IsOK(ecode5)) {
22274 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Toolbook" "', expected argument " "5"" of type '" "long""'");
22275 }
22276 arg5 = static_cast< long >(val5);
22277 }
22278 if (obj5) {
d14a1e28 22279 {
0085ce49
RD
22280 arg6 = wxString_in_helper(obj5);
22281 if (arg6 == NULL) SWIG_fail;
22282 temp6 = true;
d14a1e28 22283 }
0085ce49
RD
22284 }
22285 {
22286 PyThreadState* __tstate = wxPyBeginAllowThreads();
22287 result = (wxToolbook *)new wxToolbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
22288 wxPyEndAllowThreads(__tstate);
22289 if (PyErr_Occurred()) SWIG_fail;
22290 }
22291 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_NEW | 0 );
22292 {
22293 if (temp6)
22294 delete arg6;
22295 }
22296 return resultobj;
22297fail:
22298 {
22299 if (temp6)
22300 delete arg6;
22301 }
22302 return NULL;
d14a1e28
RD
22303}
22304
22305
0085ce49
RD
22306SWIGINTERN PyObject *_wrap_new_PreToolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22307 PyObject *resultobj = 0;
22308 wxToolbook *result = 0 ;
22309
22310 if (!SWIG_Python_UnpackTuple(args,"new_PreToolbook",0,0,0)) SWIG_fail;
22311 {
22312 PyThreadState* __tstate = wxPyBeginAllowThreads();
22313 result = (wxToolbook *)new wxToolbook();
22314 wxPyEndAllowThreads(__tstate);
22315 if (PyErr_Occurred()) SWIG_fail;
22316 }
22317 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_OWN | 0 );
22318 return resultobj;
22319fail:
22320 return NULL;
22321}
22322
22323
22324SWIGINTERN PyObject *_wrap_Toolbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22325 PyObject *resultobj = 0;
22326 wxToolbook *arg1 = (wxToolbook *) 0 ;
22327 wxWindow *arg2 = (wxWindow *) 0 ;
22328 int arg3 ;
22329 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22330 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22331 wxSize const &arg5_defvalue = wxDefaultSize ;
22332 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22333 long arg6 = (long) 0 ;
22334 wxString const &arg7_defvalue = wxEmptyString ;
22335 wxString *arg7 = (wxString *) &arg7_defvalue ;
22336 bool result;
22337 void *argp1 = 0 ;
22338 int res1 = 0 ;
22339 void *argp2 = 0 ;
22340 int res2 = 0 ;
22341 int val3 ;
22342 int ecode3 = 0 ;
22343 wxPoint temp4 ;
22344 wxSize temp5 ;
22345 long val6 ;
22346 int ecode6 = 0 ;
22347 bool temp7 = false ;
22348 PyObject * obj0 = 0 ;
22349 PyObject * obj1 = 0 ;
22350 PyObject * obj2 = 0 ;
22351 PyObject * obj3 = 0 ;
22352 PyObject * obj4 = 0 ;
22353 PyObject * obj5 = 0 ;
22354 PyObject * obj6 = 0 ;
22355 char * kwnames[] = {
22356 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22357 };
22358
22359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Toolbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22361 if (!SWIG_IsOK(res1)) {
22362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Create" "', expected argument " "1"" of type '" "wxToolbook *""'");
22363 }
22364 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22365 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22366 if (!SWIG_IsOK(res2)) {
22367 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Toolbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
22368 }
22369 arg2 = reinterpret_cast< wxWindow * >(argp2);
22370 ecode3 = SWIG_AsVal_int(obj2, &val3);
22371 if (!SWIG_IsOK(ecode3)) {
22372 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Toolbook_Create" "', expected argument " "3"" of type '" "int""'");
22373 }
22374 arg3 = static_cast< int >(val3);
22375 if (obj3) {
093d3ff1 22376 {
0085ce49
RD
22377 arg4 = &temp4;
22378 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 22379 }
0085ce49
RD
22380 }
22381 if (obj4) {
093d3ff1 22382 {
0085ce49
RD
22383 arg5 = &temp5;
22384 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 22385 }
0085ce49
RD
22386 }
22387 if (obj5) {
22388 ecode6 = SWIG_AsVal_long(obj5, &val6);
22389 if (!SWIG_IsOK(ecode6)) {
22390 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Toolbook_Create" "', expected argument " "6"" of type '" "long""'");
22391 }
22392 arg6 = static_cast< long >(val6);
22393 }
22394 if (obj6) {
994141e6 22395 {
0085ce49
RD
22396 arg7 = wxString_in_helper(obj6);
22397 if (arg7 == NULL) SWIG_fail;
22398 temp7 = true;
d14a1e28 22399 }
0085ce49
RD
22400 }
22401 {
22402 PyThreadState* __tstate = wxPyBeginAllowThreads();
22403 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22404 wxPyEndAllowThreads(__tstate);
22405 if (PyErr_Occurred()) SWIG_fail;
22406 }
22407 {
22408 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22409 }
22410 {
22411 if (temp7)
22412 delete arg7;
22413 }
22414 return resultobj;
22415fail:
22416 {
22417 if (temp7)
22418 delete arg7;
22419 }
22420 return NULL;
22bfe96c
RD
22421}
22422
22423
0085ce49
RD
22424SWIGINTERN PyObject *_wrap_Toolbook_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22425 PyObject *resultobj = 0;
22426 wxToolbook *arg1 = (wxToolbook *) 0 ;
22427 wxToolBarBase *result = 0 ;
22428 void *argp1 = 0 ;
22429 int res1 = 0 ;
22430 PyObject *swig_obj[1] ;
22431
22432 if (!args) SWIG_fail;
22433 swig_obj[0] = args;
22434 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22435 if (!SWIG_IsOK(res1)) {
22436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_GetToolBar" "', expected argument " "1"" of type '" "wxToolbook const *""'");
22437 }
22438 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22439 {
22440 PyThreadState* __tstate = wxPyBeginAllowThreads();
22441 result = (wxToolBarBase *)((wxToolbook const *)arg1)->GetToolBar();
22442 wxPyEndAllowThreads(__tstate);
22443 if (PyErr_Occurred()) SWIG_fail;
22444 }
22445 {
22446 resultobj = wxPyMake_wxObject(result, (bool)0);
22447 }
22448 return resultobj;
22449fail:
22450 return NULL;
d14a1e28
RD
22451}
22452
22453
0085ce49
RD
22454SWIGINTERN PyObject *_wrap_Toolbook_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22455 PyObject *resultobj = 0;
22456 wxToolbook *arg1 = (wxToolbook *) 0 ;
22457 void *argp1 = 0 ;
22458 int res1 = 0 ;
22459 PyObject *swig_obj[1] ;
22460
22461 if (!args) SWIG_fail;
22462 swig_obj[0] = args;
22463 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22464 if (!SWIG_IsOK(res1)) {
22465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Realize" "', expected argument " "1"" of type '" "wxToolbook *""'");
22466 }
22467 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22468 {
22469 PyThreadState* __tstate = wxPyBeginAllowThreads();
22470 (arg1)->Realize();
22471 wxPyEndAllowThreads(__tstate);
22472 if (PyErr_Occurred()) SWIG_fail;
22473 }
22474 resultobj = SWIG_Py_Void();
22475 return resultobj;
22476fail:
22477 return NULL;
22478}
22479
22480
22481SWIGINTERN PyObject *Toolbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22482 PyObject *obj;
22483 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22484 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbook, SWIG_NewClientData(obj));
22485 return SWIG_Py_Void();
22486}
22487
22488SWIGINTERN PyObject *Toolbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22489 return SWIG_Python_InitShadowInstance(args);
22490}
22491
22492SWIGINTERN PyObject *_wrap_new_ToolbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22493 PyObject *resultobj = 0;
22494 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22495 int arg2 = (int) 0 ;
22496 int arg3 = (int) wxNOT_FOUND ;
22497 int arg4 = (int) wxNOT_FOUND ;
22498 wxToolbookEvent *result = 0 ;
22499 int val1 ;
22500 int ecode1 = 0 ;
22501 int val2 ;
22502 int ecode2 = 0 ;
22503 int val3 ;
22504 int ecode3 = 0 ;
22505 int val4 ;
22506 int ecode4 = 0 ;
22507 PyObject * obj0 = 0 ;
22508 PyObject * obj1 = 0 ;
22509 PyObject * obj2 = 0 ;
22510 PyObject * obj3 = 0 ;
22511 char * kwnames[] = {
22512 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22513 };
22514
22515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ToolbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22516 if (obj0) {
22517 ecode1 = SWIG_AsVal_int(obj0, &val1);
22518 if (!SWIG_IsOK(ecode1)) {
22519 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ToolbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22520 }
22521 arg1 = static_cast< wxEventType >(val1);
22522 }
22523 if (obj1) {
22524 ecode2 = SWIG_AsVal_int(obj1, &val2);
22525 if (!SWIG_IsOK(ecode2)) {
22526 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolbookEvent" "', expected argument " "2"" of type '" "int""'");
22527 }
22528 arg2 = static_cast< int >(val2);
22529 }
22530 if (obj2) {
22531 ecode3 = SWIG_AsVal_int(obj2, &val3);
22532 if (!SWIG_IsOK(ecode3)) {
22533 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ToolbookEvent" "', expected argument " "3"" of type '" "int""'");
22534 }
22535 arg3 = static_cast< int >(val3);
22536 }
22537 if (obj3) {
22538 ecode4 = SWIG_AsVal_int(obj3, &val4);
22539 if (!SWIG_IsOK(ecode4)) {
22540 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ToolbookEvent" "', expected argument " "4"" of type '" "int""'");
22541 }
22542 arg4 = static_cast< int >(val4);
22543 }
22544 {
22545 PyThreadState* __tstate = wxPyBeginAllowThreads();
22546 result = (wxToolbookEvent *)new wxToolbookEvent(arg1,arg2,arg3,arg4);
22547 wxPyEndAllowThreads(__tstate);
22548 if (PyErr_Occurred()) SWIG_fail;
22549 }
22550 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbookEvent, SWIG_POINTER_NEW | 0 );
22551 return resultobj;
22552fail:
22553 return NULL;
d14a1e28
RD
22554}
22555
22556
0085ce49
RD
22557SWIGINTERN PyObject *ToolbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22558 PyObject *obj;
22559 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22560 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbookEvent, SWIG_NewClientData(obj));
22561 return SWIG_Py_Void();
d14a1e28
RD
22562}
22563
0085ce49
RD
22564SWIGINTERN PyObject *ToolbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22565 return SWIG_Python_InitShadowInstance(args);
22566}
d14a1e28 22567
0085ce49
RD
22568SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22569 PyObject *resultobj = 0;
22570 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22571 int result;
22572 void *argp1 = 0 ;
22573 int res1 = 0 ;
22574 PyObject *swig_obj[1] ;
22575
22576 if (!args) SWIG_fail;
22577 swig_obj[0] = args;
22578 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22579 if (!SWIG_IsOK(res1)) {
22580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetId" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22581 }
22582 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22583 {
22584 PyThreadState* __tstate = wxPyBeginAllowThreads();
22585 result = (int)(arg1)->GetId();
22586 wxPyEndAllowThreads(__tstate);
22587 if (PyErr_Occurred()) SWIG_fail;
22588 }
22589 resultobj = SWIG_From_int(static_cast< int >(result));
22590 return resultobj;
22591fail:
22592 return NULL;
d14a1e28
RD
22593}
22594
22595
0085ce49
RD
22596SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22597 PyObject *resultobj = 0;
22598 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22599 wxControl *result = 0 ;
22600 void *argp1 = 0 ;
22601 int res1 = 0 ;
22602 PyObject *swig_obj[1] ;
22603
22604 if (!args) SWIG_fail;
22605 swig_obj[0] = args;
22606 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22607 if (!SWIG_IsOK(res1)) {
22608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22609 }
22610 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22611 {
22612 PyThreadState* __tstate = wxPyBeginAllowThreads();
22613 result = (wxControl *)(arg1)->GetControl();
22614 wxPyEndAllowThreads(__tstate);
22615 if (PyErr_Occurred()) SWIG_fail;
22616 }
22617 {
22618 resultobj = wxPyMake_wxObject(result, 0);
22619 }
22620 return resultobj;
22621fail:
22622 return NULL;
d14a1e28
RD
22623}
22624
22625
0085ce49
RD
22626SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22627 PyObject *resultobj = 0;
22628 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22629 wxToolBarBase *result = 0 ;
22630 void *argp1 = 0 ;
22631 int res1 = 0 ;
22632 PyObject *swig_obj[1] ;
22633
22634 if (!args) SWIG_fail;
22635 swig_obj[0] = args;
22636 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22637 if (!SWIG_IsOK(res1)) {
22638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetToolBar" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22639 }
22640 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22641 {
22642 PyThreadState* __tstate = wxPyBeginAllowThreads();
22643 result = (wxToolBarBase *)(arg1)->GetToolBar();
22644 wxPyEndAllowThreads(__tstate);
22645 if (PyErr_Occurred()) SWIG_fail;
22646 }
22647 {
22648 resultobj = wxPyMake_wxObject(result, (bool)0);
22649 }
22650 return resultobj;
22651fail:
22652 return NULL;
d14a1e28
RD
22653}
22654
22655
0085ce49
RD
22656SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22657 PyObject *resultobj = 0;
22658 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22659 int result;
22660 void *argp1 = 0 ;
22661 int res1 = 0 ;
22662 PyObject *swig_obj[1] ;
22663
22664 if (!args) SWIG_fail;
22665 swig_obj[0] = args;
22666 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22667 if (!SWIG_IsOK(res1)) {
22668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsButton" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22669 }
22670 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22671 {
22672 PyThreadState* __tstate = wxPyBeginAllowThreads();
22673 result = (int)(arg1)->IsButton();
22674 wxPyEndAllowThreads(__tstate);
22675 if (PyErr_Occurred()) SWIG_fail;
22676 }
22677 resultobj = SWIG_From_int(static_cast< int >(result));
22678 return resultobj;
22679fail:
22680 return NULL;
d14a1e28
RD
22681}
22682
22683
0085ce49
RD
22684SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22685 PyObject *resultobj = 0;
22686 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22687 int result;
22688 void *argp1 = 0 ;
22689 int res1 = 0 ;
22690 PyObject *swig_obj[1] ;
22691
22692 if (!args) SWIG_fail;
22693 swig_obj[0] = args;
22694 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22695 if (!SWIG_IsOK(res1)) {
22696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22697 }
22698 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22699 {
22700 PyThreadState* __tstate = wxPyBeginAllowThreads();
22701 result = (int)(arg1)->IsControl();
22702 wxPyEndAllowThreads(__tstate);
22703 if (PyErr_Occurred()) SWIG_fail;
22704 }
22705 resultobj = SWIG_From_int(static_cast< int >(result));
22706 return resultobj;
22707fail:
22708 return NULL;
d14a1e28
RD
22709}
22710
22711
0085ce49
RD
22712SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22713 PyObject *resultobj = 0;
22714 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22715 int result;
22716 void *argp1 = 0 ;
22717 int res1 = 0 ;
22718 PyObject *swig_obj[1] ;
22719
22720 if (!args) SWIG_fail;
22721 swig_obj[0] = args;
22722 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22723 if (!SWIG_IsOK(res1)) {
22724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsSeparator" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22725 }
22726 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22727 {
22728 PyThreadState* __tstate = wxPyBeginAllowThreads();
22729 result = (int)(arg1)->IsSeparator();
22730 wxPyEndAllowThreads(__tstate);
22731 if (PyErr_Occurred()) SWIG_fail;
22732 }
22733 resultobj = SWIG_From_int(static_cast< int >(result));
22734 return resultobj;
22735fail:
22736 return NULL;
d14a1e28
RD
22737}
22738
22739
0085ce49
RD
22740SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22741 PyObject *resultobj = 0;
22742 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22743 int result;
22744 void *argp1 = 0 ;
22745 int res1 = 0 ;
22746 PyObject *swig_obj[1] ;
22747
22748 if (!args) SWIG_fail;
22749 swig_obj[0] = args;
22750 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22751 if (!SWIG_IsOK(res1)) {
22752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetStyle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22753 }
22754 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22755 {
22756 PyThreadState* __tstate = wxPyBeginAllowThreads();
22757 result = (int)(arg1)->GetStyle();
22758 wxPyEndAllowThreads(__tstate);
22759 if (PyErr_Occurred()) SWIG_fail;
22760 }
22761 resultobj = SWIG_From_int(static_cast< int >(result));
22762 return resultobj;
22763fail:
22764 return NULL;
d14a1e28
RD
22765}
22766
22767
0085ce49
RD
22768SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22769 PyObject *resultobj = 0;
22770 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22771 wxItemKind result;
22772 void *argp1 = 0 ;
22773 int res1 = 0 ;
22774 PyObject *swig_obj[1] ;
22775
22776 if (!args) SWIG_fail;
22777 swig_obj[0] = args;
22778 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22779 if (!SWIG_IsOK(res1)) {
22780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetKind" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22781 }
22782 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22783 {
22784 PyThreadState* __tstate = wxPyBeginAllowThreads();
22785 result = (wxItemKind)(arg1)->GetKind();
22786 wxPyEndAllowThreads(__tstate);
22787 if (PyErr_Occurred()) SWIG_fail;
22788 }
22789 resultobj = SWIG_From_int(static_cast< int >(result));
22790 return resultobj;
22791fail:
22792 return NULL;
d14a1e28
RD
22793}
22794
22795
0085ce49
RD
22796SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22797 PyObject *resultobj = 0;
22798 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22799 bool result;
22800 void *argp1 = 0 ;
22801 int res1 = 0 ;
22802 PyObject *swig_obj[1] ;
22803
22804 if (!args) SWIG_fail;
22805 swig_obj[0] = args;
22806 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22807 if (!SWIG_IsOK(res1)) {
22808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsEnabled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22809 }
22810 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22811 {
22812 PyThreadState* __tstate = wxPyBeginAllowThreads();
22813 result = (bool)(arg1)->IsEnabled();
22814 wxPyEndAllowThreads(__tstate);
22815 if (PyErr_Occurred()) SWIG_fail;
22816 }
22817 {
22818 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22819 }
22820 return resultobj;
22821fail:
22822 return NULL;
d14a1e28
RD
22823}
22824
22825
0085ce49
RD
22826SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22827 PyObject *resultobj = 0;
22828 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22829 bool result;
22830 void *argp1 = 0 ;
22831 int res1 = 0 ;
22832 PyObject *swig_obj[1] ;
22833
22834 if (!args) SWIG_fail;
22835 swig_obj[0] = args;
22836 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22837 if (!SWIG_IsOK(res1)) {
22838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22839 }
22840 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22841 {
22842 PyThreadState* __tstate = wxPyBeginAllowThreads();
22843 result = (bool)(arg1)->IsToggled();
22844 wxPyEndAllowThreads(__tstate);
22845 if (PyErr_Occurred()) SWIG_fail;
22846 }
22847 {
22848 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22849 }
22850 return resultobj;
22851fail:
22852 return NULL;
22bfe96c
RD
22853}
22854
22855
0085ce49
RD
22856SWIGINTERN PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22857 PyObject *resultobj = 0;
22858 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22859 bool result;
22860 void *argp1 = 0 ;
22861 int res1 = 0 ;
22862 PyObject *swig_obj[1] ;
22863
22864 if (!args) SWIG_fail;
22865 swig_obj[0] = args;
22866 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22867 if (!SWIG_IsOK(res1)) {
22868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_CanBeToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22869 }
22870 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22871 {
22872 PyThreadState* __tstate = wxPyBeginAllowThreads();
22873 result = (bool)(arg1)->CanBeToggled();
22874 wxPyEndAllowThreads(__tstate);
22875 if (PyErr_Occurred()) SWIG_fail;
22876 }
22877 {
22878 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22879 }
22880 return resultobj;
22881fail:
22882 return NULL;
d1e20054
RD
22883}
22884
22885
0085ce49
RD
22886SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22887 PyObject *resultobj = 0;
22888 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22889 wxBitmap *result = 0 ;
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_GetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22899 }
22900 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22901 {
22902 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22903 {
0085ce49
RD
22904 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
22905 result = (wxBitmap *) &_result_ref;
093d3ff1 22906 }
0085ce49
RD
22907 wxPyEndAllowThreads(__tstate);
22908 if (PyErr_Occurred()) SWIG_fail;
22909 }
22910 {
22911 wxBitmap* resultptr = new wxBitmap(*result);
22912 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
22913 }
22914 return resultobj;
22915fail:
22916 return NULL;
d1e20054
RD
22917}
22918
22919
0085ce49
RD
22920SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22921 PyObject *resultobj = 0;
22922 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22923 wxBitmap *result = 0 ;
22924 void *argp1 = 0 ;
22925 int res1 = 0 ;
22926 PyObject *swig_obj[1] ;
22927
22928 if (!args) SWIG_fail;
22929 swig_obj[0] = args;
22930 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22931 if (!SWIG_IsOK(res1)) {
22932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22933 }
22934 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22935 {
22936 PyThreadState* __tstate = wxPyBeginAllowThreads();
d1e20054 22937 {
0085ce49
RD
22938 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
22939 result = (wxBitmap *) &_result_ref;
d1e20054 22940 }
0085ce49
RD
22941 wxPyEndAllowThreads(__tstate);
22942 if (PyErr_Occurred()) SWIG_fail;
22943 }
22944 {
22945 wxBitmap* resultptr = new wxBitmap(*result);
22946 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
22947 }
22948 return resultobj;
22949fail:
22950 return NULL;
d1e20054
RD
22951}
22952
22953
0085ce49
RD
22954SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22955 PyObject *resultobj = 0;
22956 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22957 wxBitmap result;
22958 void *argp1 = 0 ;
22959 int res1 = 0 ;
22960 PyObject *swig_obj[1] ;
22961
22962 if (!args) SWIG_fail;
22963 swig_obj[0] = args;
22964 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22965 if (!SWIG_IsOK(res1)) {
22966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22967 }
22968 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22969 {
22970 PyThreadState* __tstate = wxPyBeginAllowThreads();
22971 result = (arg1)->GetBitmap();
22972 wxPyEndAllowThreads(__tstate);
22973 if (PyErr_Occurred()) SWIG_fail;
22974 }
22975 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
22976 return resultobj;
22977fail:
22978 return NULL;
b2dc1044
RD
22979}
22980
22981
0085ce49
RD
22982SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22983 PyObject *resultobj = 0;
22984 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22985 wxString result;
22986 void *argp1 = 0 ;
22987 int res1 = 0 ;
22988 PyObject *swig_obj[1] ;
22989
22990 if (!args) SWIG_fail;
22991 swig_obj[0] = args;
22992 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22993 if (!SWIG_IsOK(res1)) {
22994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22995 }
22996 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22997 {
22998 PyThreadState* __tstate = wxPyBeginAllowThreads();
22999 result = (arg1)->GetLabel();
23000 wxPyEndAllowThreads(__tstate);
23001 if (PyErr_Occurred()) SWIG_fail;
23002 }
23003 {
b2dc1044 23004#if wxUSE_UNICODE
0085ce49 23005 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
b2dc1044 23006#else
0085ce49 23007 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
b2dc1044 23008#endif
0085ce49
RD
23009 }
23010 return resultobj;
23011fail:
23012 return NULL;
b2dc1044
RD
23013}
23014
23015
0085ce49
RD
23016SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23017 PyObject *resultobj = 0;
23018 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23019 wxString result;
23020 void *argp1 = 0 ;
23021 int res1 = 0 ;
23022 PyObject *swig_obj[1] ;
23023
23024 if (!args) SWIG_fail;
23025 swig_obj[0] = args;
23026 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23027 if (!SWIG_IsOK(res1)) {
23028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23029 }
23030 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23031 {
23032 PyThreadState* __tstate = wxPyBeginAllowThreads();
23033 result = (arg1)->GetShortHelp();
23034 wxPyEndAllowThreads(__tstate);
23035 if (PyErr_Occurred()) SWIG_fail;
23036 }
23037 {
b2dc1044 23038#if wxUSE_UNICODE
0085ce49 23039 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
b2dc1044 23040#else
0085ce49 23041 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
b2dc1044 23042#endif
0085ce49
RD
23043 }
23044 return resultobj;
23045fail:
23046 return NULL;
d14a1e28
RD
23047}
23048
23049
0085ce49
RD
23050SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23051 PyObject *resultobj = 0;
23052 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23053 wxString result;
23054 void *argp1 = 0 ;
23055 int res1 = 0 ;
23056 PyObject *swig_obj[1] ;
23057
23058 if (!args) SWIG_fail;
23059 swig_obj[0] = args;
23060 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23061 if (!SWIG_IsOK(res1)) {
23062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23063 }
23064 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23065 {
23066 PyThreadState* __tstate = wxPyBeginAllowThreads();
23067 result = (arg1)->GetLongHelp();
23068 wxPyEndAllowThreads(__tstate);
23069 if (PyErr_Occurred()) SWIG_fail;
23070 }
23071 {
23072#if wxUSE_UNICODE
23073 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23074#else
23075 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23076#endif
23077 }
23078 return resultobj;
23079fail:
23080 return NULL;
23081}
23082
23083
23084SWIGINTERN PyObject *_wrap_ToolBarToolBase_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23085 PyObject *resultobj = 0;
23086 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23087 bool arg2 ;
23088 bool result;
23089 void *argp1 = 0 ;
23090 int res1 = 0 ;
23091 bool val2 ;
23092 int ecode2 = 0 ;
23093 PyObject * obj0 = 0 ;
23094 PyObject * obj1 = 0 ;
23095 char * kwnames[] = {
23096 (char *) "self",(char *) "enable", NULL
23097 };
23098
23099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) SWIG_fail;
23100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23101 if (!SWIG_IsOK(res1)) {
23102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Enable" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23103 }
23104 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23105 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23106 if (!SWIG_IsOK(ecode2)) {
23107 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_Enable" "', expected argument " "2"" of type '" "bool""'");
23108 }
23109 arg2 = static_cast< bool >(val2);
23110 {
23111 PyThreadState* __tstate = wxPyBeginAllowThreads();
23112 result = (bool)(arg1)->Enable(arg2);
23113 wxPyEndAllowThreads(__tstate);
23114 if (PyErr_Occurred()) SWIG_fail;
23115 }
23116 {
23117 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23118 }
23119 return resultobj;
23120fail:
23121 return NULL;
d14a1e28
RD
23122}
23123
23124
0085ce49
RD
23125SWIGINTERN PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23126 PyObject *resultobj = 0;
23127 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23128 void *argp1 = 0 ;
23129 int res1 = 0 ;
23130 PyObject *swig_obj[1] ;
23131
23132 if (!args) SWIG_fail;
23133 swig_obj[0] = args;
23134 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23135 if (!SWIG_IsOK(res1)) {
23136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Toggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23137 }
23138 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23139 {
23140 PyThreadState* __tstate = wxPyBeginAllowThreads();
23141 (arg1)->Toggle();
23142 wxPyEndAllowThreads(__tstate);
23143 if (PyErr_Occurred()) SWIG_fail;
23144 }
23145 resultobj = SWIG_Py_Void();
23146 return resultobj;
23147fail:
23148 return NULL;
23149}
23150
23151
23152SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23153 PyObject *resultobj = 0;
23154 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23155 bool arg2 ;
23156 bool result;
23157 void *argp1 = 0 ;
23158 int res1 = 0 ;
23159 bool val2 ;
23160 int ecode2 = 0 ;
23161 PyObject * obj0 = 0 ;
23162 PyObject * obj1 = 0 ;
23163 char * kwnames[] = {
23164 (char *) "self",(char *) "toggle", NULL
23165 };
23166
23167 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) SWIG_fail;
23168 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23169 if (!SWIG_IsOK(res1)) {
23170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23171 }
23172 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23173 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23174 if (!SWIG_IsOK(ecode2)) {
23175 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "2"" of type '" "bool""'");
23176 }
23177 arg2 = static_cast< bool >(val2);
23178 {
23179 PyThreadState* __tstate = wxPyBeginAllowThreads();
23180 result = (bool)(arg1)->SetToggle(arg2);
23181 wxPyEndAllowThreads(__tstate);
23182 if (PyErr_Occurred()) SWIG_fail;
23183 }
23184 {
23185 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23186 }
23187 return resultobj;
23188fail:
23189 return NULL;
23190}
23191
23192
23193SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23194 PyObject *resultobj = 0;
23195 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23196 wxString *arg2 = 0 ;
23197 bool result;
23198 void *argp1 = 0 ;
23199 int res1 = 0 ;
23200 bool temp2 = false ;
23201 PyObject * obj0 = 0 ;
23202 PyObject * obj1 = 0 ;
23203 char * kwnames[] = {
23204 (char *) "self",(char *) "help", NULL
23205 };
23206
23207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23208 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23209 if (!SWIG_IsOK(res1)) {
23210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23211 }
23212 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23213 {
23214 arg2 = wxString_in_helper(obj1);
23215 if (arg2 == NULL) SWIG_fail;
23216 temp2 = true;
23217 }
23218 {
23219 PyThreadState* __tstate = wxPyBeginAllowThreads();
23220 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
23221 wxPyEndAllowThreads(__tstate);
23222 if (PyErr_Occurred()) SWIG_fail;
23223 }
23224 {
23225 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23226 }
23227 {
23228 if (temp2)
23229 delete arg2;
23230 }
23231 return resultobj;
23232fail:
23233 {
23234 if (temp2)
23235 delete arg2;
23236 }
23237 return NULL;
23238}
23239
23240
23241SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23242 PyObject *resultobj = 0;
23243 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23244 wxString *arg2 = 0 ;
23245 bool result;
23246 void *argp1 = 0 ;
23247 int res1 = 0 ;
23248 bool temp2 = false ;
23249 PyObject * obj0 = 0 ;
23250 PyObject * obj1 = 0 ;
23251 char * kwnames[] = {
23252 (char *) "self",(char *) "help", NULL
23253 };
23254
23255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23256 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23257 if (!SWIG_IsOK(res1)) {
23258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23259 }
23260 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23261 {
23262 arg2 = wxString_in_helper(obj1);
23263 if (arg2 == NULL) SWIG_fail;
23264 temp2 = true;
23265 }
23266 {
23267 PyThreadState* __tstate = wxPyBeginAllowThreads();
23268 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
23269 wxPyEndAllowThreads(__tstate);
23270 if (PyErr_Occurred()) SWIG_fail;
23271 }
23272 {
23273 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23274 }
23275 {
23276 if (temp2)
23277 delete arg2;
23278 }
23279 return resultobj;
23280fail:
23281 {
23282 if (temp2)
23283 delete arg2;
23284 }
23285 return NULL;
23286}
23287
23288
23289SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23290 PyObject *resultobj = 0;
23291 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23292 wxBitmap *arg2 = 0 ;
23293 void *argp1 = 0 ;
23294 int res1 = 0 ;
23295 void *argp2 = 0 ;
23296 int res2 = 0 ;
23297 PyObject * obj0 = 0 ;
23298 PyObject * obj1 = 0 ;
23299 char * kwnames[] = {
23300 (char *) "self",(char *) "bmp", NULL
23301 };
23302
23303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23305 if (!SWIG_IsOK(res1)) {
23306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23307 }
23308 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23309 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23310 if (!SWIG_IsOK(res2)) {
23311 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23312 }
23313 if (!argp2) {
23314 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23315 }
23316 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23317 {
23318 PyThreadState* __tstate = wxPyBeginAllowThreads();
23319 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
23320 wxPyEndAllowThreads(__tstate);
23321 if (PyErr_Occurred()) SWIG_fail;
23322 }
23323 resultobj = SWIG_Py_Void();
23324 return resultobj;
23325fail:
23326 return NULL;
23327}
23328
23329
23330SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23331 PyObject *resultobj = 0;
23332 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23333 wxBitmap *arg2 = 0 ;
23334 void *argp1 = 0 ;
23335 int res1 = 0 ;
23336 void *argp2 = 0 ;
23337 int res2 = 0 ;
23338 PyObject * obj0 = 0 ;
23339 PyObject * obj1 = 0 ;
23340 char * kwnames[] = {
23341 (char *) "self",(char *) "bmp", NULL
23342 };
23343
23344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23346 if (!SWIG_IsOK(res1)) {
23347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23348 }
23349 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23350 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23351 if (!SWIG_IsOK(res2)) {
23352 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23353 }
23354 if (!argp2) {
23355 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23356 }
23357 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23358 {
23359 PyThreadState* __tstate = wxPyBeginAllowThreads();
23360 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
23361 wxPyEndAllowThreads(__tstate);
23362 if (PyErr_Occurred()) SWIG_fail;
23363 }
23364 resultobj = SWIG_Py_Void();
23365 return resultobj;
23366fail:
23367 return NULL;
23368}
23369
23370
23371SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23372 PyObject *resultobj = 0;
23373 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23374 wxString *arg2 = 0 ;
23375 void *argp1 = 0 ;
23376 int res1 = 0 ;
23377 bool temp2 = false ;
23378 PyObject * obj0 = 0 ;
23379 PyObject * obj1 = 0 ;
23380 char * kwnames[] = {
23381 (char *) "self",(char *) "label", NULL
23382 };
23383
23384 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
23385 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23386 if (!SWIG_IsOK(res1)) {
23387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23388 }
23389 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23390 {
23391 arg2 = wxString_in_helper(obj1);
23392 if (arg2 == NULL) SWIG_fail;
23393 temp2 = true;
23394 }
23395 {
23396 PyThreadState* __tstate = wxPyBeginAllowThreads();
23397 (arg1)->SetLabel((wxString const &)*arg2);
23398 wxPyEndAllowThreads(__tstate);
23399 if (PyErr_Occurred()) SWIG_fail;
23400 }
23401 resultobj = SWIG_Py_Void();
23402 {
23403 if (temp2)
23404 delete arg2;
23405 }
23406 return resultobj;
23407fail:
23408 {
23409 if (temp2)
23410 delete arg2;
23411 }
23412 return NULL;
d14a1e28
RD
23413}
23414
23415
0085ce49
RD
23416SWIGINTERN PyObject *_wrap_ToolBarToolBase_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23417 PyObject *resultobj = 0;
23418 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23419 void *argp1 = 0 ;
23420 int res1 = 0 ;
23421 PyObject *swig_obj[1] ;
23422
23423 if (!args) SWIG_fail;
23424 swig_obj[0] = args;
23425 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23426 if (!SWIG_IsOK(res1)) {
23427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Detach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23428 }
23429 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23430 {
23431 PyThreadState* __tstate = wxPyBeginAllowThreads();
23432 (arg1)->Detach();
23433 wxPyEndAllowThreads(__tstate);
23434 if (PyErr_Occurred()) SWIG_fail;
23435 }
23436 resultobj = SWIG_Py_Void();
23437 return resultobj;
23438fail:
23439 return NULL;
23440}
23441
23442
23443SWIGINTERN PyObject *_wrap_ToolBarToolBase_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23444 PyObject *resultobj = 0;
23445 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23446 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
23447 void *argp1 = 0 ;
23448 int res1 = 0 ;
23449 void *argp2 = 0 ;
23450 int res2 = 0 ;
23451 PyObject * obj0 = 0 ;
23452 PyObject * obj1 = 0 ;
23453 char * kwnames[] = {
23454 (char *) "self",(char *) "tbar", NULL
23455 };
23456
23457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) SWIG_fail;
23458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23459 if (!SWIG_IsOK(res1)) {
23460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Attach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23461 }
23462 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23463 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23464 if (!SWIG_IsOK(res2)) {
23465 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_Attach" "', expected argument " "2"" of type '" "wxToolBarBase *""'");
23466 }
23467 arg2 = reinterpret_cast< wxToolBarBase * >(argp2);
23468 {
23469 PyThreadState* __tstate = wxPyBeginAllowThreads();
23470 (arg1)->Attach(arg2);
23471 wxPyEndAllowThreads(__tstate);
23472 if (PyErr_Occurred()) SWIG_fail;
23473 }
23474 resultobj = SWIG_Py_Void();
23475 return resultobj;
23476fail:
23477 return NULL;
d14a1e28
RD
23478}
23479
23480
0085ce49
RD
23481SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23482 PyObject *resultobj = 0;
23483 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23484 PyObject *result = 0 ;
23485 void *argp1 = 0 ;
23486 int res1 = 0 ;
23487 PyObject *swig_obj[1] ;
23488
23489 if (!args) SWIG_fail;
23490 swig_obj[0] = args;
23491 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23492 if (!SWIG_IsOK(res1)) {
23493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23494 }
23495 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23496 {
23497 PyThreadState* __tstate = wxPyBeginAllowThreads();
23498 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
23499 wxPyEndAllowThreads(__tstate);
23500 if (PyErr_Occurred()) SWIG_fail;
23501 }
23502 resultobj = result;
23503 return resultobj;
23504fail:
23505 return NULL;
23506}
23507
23508
23509SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23510 PyObject *resultobj = 0;
23511 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23512 PyObject *arg2 = (PyObject *) 0 ;
23513 void *argp1 = 0 ;
23514 int res1 = 0 ;
23515 PyObject * obj0 = 0 ;
23516 PyObject * obj1 = 0 ;
23517 char * kwnames[] = {
23518 (char *) "self",(char *) "clientData", NULL
23519 };
23520
23521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) SWIG_fail;
23522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23523 if (!SWIG_IsOK(res1)) {
23524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23525 }
23526 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23527 arg2 = obj1;
23528 {
23529 PyThreadState* __tstate = wxPyBeginAllowThreads();
23530 wxToolBarToolBase_SetClientData(arg1,arg2);
23531 wxPyEndAllowThreads(__tstate);
23532 if (PyErr_Occurred()) SWIG_fail;
23533 }
23534 resultobj = SWIG_Py_Void();
23535 return resultobj;
23536fail:
23537 return NULL;
23538}
23539
23540
23541SWIGINTERN PyObject *ToolBarToolBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23542 PyObject *obj;
23543 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23544 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarToolBase, SWIG_NewClientData(obj));
23545 return SWIG_Py_Void();
23546}
23547
23548SWIGINTERN PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23549 PyObject *resultobj = 0;
23550 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23551 int arg2 ;
23552 wxString *arg3 = 0 ;
23553 wxBitmap *arg4 = 0 ;
23554 wxBitmap const &arg5_defvalue = wxNullBitmap ;
23555 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
23556 wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ;
23557 wxString const &arg7_defvalue = wxPyEmptyString ;
23558 wxString *arg7 = (wxString *) &arg7_defvalue ;
23559 wxString const &arg8_defvalue = wxPyEmptyString ;
23560 wxString *arg8 = (wxString *) &arg8_defvalue ;
23561 PyObject *arg9 = (PyObject *) NULL ;
23562 wxToolBarToolBase *result = 0 ;
23563 void *argp1 = 0 ;
23564 int res1 = 0 ;
23565 int val2 ;
23566 int ecode2 = 0 ;
23567 bool temp3 = false ;
23568 void *argp4 = 0 ;
23569 int res4 = 0 ;
23570 void *argp5 = 0 ;
23571 int res5 = 0 ;
23572 int val6 ;
23573 int ecode6 = 0 ;
23574 bool temp7 = false ;
23575 bool temp8 = false ;
23576 PyObject * obj0 = 0 ;
23577 PyObject * obj1 = 0 ;
23578 PyObject * obj2 = 0 ;
23579 PyObject * obj3 = 0 ;
23580 PyObject * obj4 = 0 ;
23581 PyObject * obj5 = 0 ;
23582 PyObject * obj6 = 0 ;
23583 PyObject * obj7 = 0 ;
23584 PyObject * obj8 = 0 ;
23585 char * kwnames[] = {
23586 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23587 };
23588
23589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
23590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23591 if (!SWIG_IsOK(res1)) {
23592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23593 }
23594 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23595 ecode2 = SWIG_AsVal_int(obj1, &val2);
23596 if (!SWIG_IsOK(ecode2)) {
23597 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "2"" of type '" "int""'");
23598 }
23599 arg2 = static_cast< int >(val2);
23600 {
23601 arg3 = wxString_in_helper(obj2);
23602 if (arg3 == NULL) SWIG_fail;
23603 temp3 = true;
23604 }
23605 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
23606 if (!SWIG_IsOK(res4)) {
23607 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23608 }
23609 if (!argp4) {
23610 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23611 }
23612 arg4 = reinterpret_cast< wxBitmap * >(argp4);
23613 if (obj4) {
23614 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23615 if (!SWIG_IsOK(res5)) {
23616 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
d14a1e28 23617 }
0085ce49
RD
23618 if (!argp5) {
23619 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
d14a1e28 23620 }
0085ce49
RD
23621 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23622 }
23623 if (obj5) {
23624 ecode6 = SWIG_AsVal_int(obj5, &val6);
23625 if (!SWIG_IsOK(ecode6)) {
23626 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "6"" of type '" "wxItemKind""'");
23627 }
23628 arg6 = static_cast< wxItemKind >(val6);
23629 }
23630 if (obj6) {
093d3ff1 23631 {
0085ce49
RD
23632 arg7 = wxString_in_helper(obj6);
23633 if (arg7 == NULL) SWIG_fail;
23634 temp7 = true;
093d3ff1 23635 }
0085ce49
RD
23636 }
23637 if (obj7) {
d14a1e28 23638 {
0085ce49
RD
23639 arg8 = wxString_in_helper(obj7);
23640 if (arg8 == NULL) SWIG_fail;
23641 temp8 = true;
d14a1e28 23642 }
0085ce49
RD
23643 }
23644 if (obj8) {
23645 arg9 = obj8;
23646 }
23647 {
23648 PyThreadState* __tstate = wxPyBeginAllowThreads();
23649 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
23650 wxPyEndAllowThreads(__tstate);
23651 if (PyErr_Occurred()) SWIG_fail;
23652 }
23653 {
23654 resultobj = wxPyMake_wxObject(result, (bool)0);
23655 }
23656 {
23657 if (temp3)
23658 delete arg3;
23659 }
23660 {
23661 if (temp7)
23662 delete arg7;
23663 }
23664 {
23665 if (temp8)
23666 delete arg8;
23667 }
23668 return resultobj;
23669fail:
23670 {
23671 if (temp3)
23672 delete arg3;
23673 }
23674 {
23675 if (temp7)
23676 delete arg7;
23677 }
23678 {
23679 if (temp8)
23680 delete arg8;
23681 }
23682 return NULL;
23683}
23684
23685
23686SWIGINTERN PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23687 PyObject *resultobj = 0;
23688 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23689 size_t arg2 ;
23690 int arg3 ;
23691 wxString *arg4 = 0 ;
23692 wxBitmap *arg5 = 0 ;
23693 wxBitmap const &arg6_defvalue = wxNullBitmap ;
23694 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
23695 wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ;
23696 wxString const &arg8_defvalue = wxPyEmptyString ;
23697 wxString *arg8 = (wxString *) &arg8_defvalue ;
23698 wxString const &arg9_defvalue = wxPyEmptyString ;
23699 wxString *arg9 = (wxString *) &arg9_defvalue ;
23700 PyObject *arg10 = (PyObject *) NULL ;
23701 wxToolBarToolBase *result = 0 ;
23702 void *argp1 = 0 ;
23703 int res1 = 0 ;
23704 size_t val2 ;
23705 int ecode2 = 0 ;
23706 int val3 ;
23707 int ecode3 = 0 ;
23708 bool temp4 = false ;
23709 void *argp5 = 0 ;
23710 int res5 = 0 ;
23711 void *argp6 = 0 ;
23712 int res6 = 0 ;
23713 int val7 ;
23714 int ecode7 = 0 ;
23715 bool temp8 = false ;
23716 bool temp9 = false ;
23717 PyObject * obj0 = 0 ;
23718 PyObject * obj1 = 0 ;
23719 PyObject * obj2 = 0 ;
23720 PyObject * obj3 = 0 ;
23721 PyObject * obj4 = 0 ;
23722 PyObject * obj5 = 0 ;
23723 PyObject * obj6 = 0 ;
23724 PyObject * obj7 = 0 ;
23725 PyObject * obj8 = 0 ;
23726 PyObject * obj9 = 0 ;
23727 char * kwnames[] = {
23728 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23729 };
23730
23731 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
23732 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23733 if (!SWIG_IsOK(res1)) {
23734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23735 }
23736 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23737 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23738 if (!SWIG_IsOK(ecode2)) {
23739 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "2"" of type '" "size_t""'");
23740 }
23741 arg2 = static_cast< size_t >(val2);
23742 ecode3 = SWIG_AsVal_int(obj2, &val3);
23743 if (!SWIG_IsOK(ecode3)) {
23744 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "3"" of type '" "int""'");
23745 }
23746 arg3 = static_cast< int >(val3);
23747 {
23748 arg4 = wxString_in_helper(obj3);
23749 if (arg4 == NULL) SWIG_fail;
23750 temp4 = true;
23751 }
23752 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23753 if (!SWIG_IsOK(res5)) {
23754 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23755 }
23756 if (!argp5) {
23757 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23758 }
23759 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23760 if (obj5) {
23761 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxBitmap, 0 | 0);
23762 if (!SWIG_IsOK(res6)) {
23763 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
d14a1e28 23764 }
0085ce49
RD
23765 if (!argp6) {
23766 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
093d3ff1 23767 }
0085ce49
RD
23768 arg6 = reinterpret_cast< wxBitmap * >(argp6);
23769 }
23770 if (obj6) {
23771 ecode7 = SWIG_AsVal_int(obj6, &val7);
23772 if (!SWIG_IsOK(ecode7)) {
23773 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "7"" of type '" "wxItemKind""'");
23774 }
23775 arg7 = static_cast< wxItemKind >(val7);
23776 }
23777 if (obj7) {
d14a1e28 23778 {
0085ce49
RD
23779 arg8 = wxString_in_helper(obj7);
23780 if (arg8 == NULL) SWIG_fail;
23781 temp8 = true;
d14a1e28 23782 }
0085ce49
RD
23783 }
23784 if (obj8) {
d14a1e28 23785 {
0085ce49
RD
23786 arg9 = wxString_in_helper(obj8);
23787 if (arg9 == NULL) SWIG_fail;
23788 temp9 = true;
d14a1e28 23789 }
0085ce49
RD
23790 }
23791 if (obj9) {
23792 arg10 = obj9;
23793 }
23794 {
23795 PyThreadState* __tstate = wxPyBeginAllowThreads();
23796 result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10);
23797 wxPyEndAllowThreads(__tstate);
23798 if (PyErr_Occurred()) SWIG_fail;
23799 }
23800 {
23801 resultobj = wxPyMake_wxObject(result, (bool)0);
23802 }
23803 {
23804 if (temp4)
23805 delete arg4;
23806 }
23807 {
23808 if (temp8)
23809 delete arg8;
23810 }
23811 {
23812 if (temp9)
23813 delete arg9;
23814 }
23815 return resultobj;
23816fail:
23817 {
23818 if (temp4)
23819 delete arg4;
23820 }
23821 {
23822 if (temp8)
23823 delete arg8;
23824 }
23825 {
23826 if (temp9)
23827 delete arg9;
23828 }
23829 return NULL;
23830}
23831
23832
23833SWIGINTERN PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23834 PyObject *resultobj = 0;
23835 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23836 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
23837 wxToolBarToolBase *result = 0 ;
23838 void *argp1 = 0 ;
23839 int res1 = 0 ;
23840 void *argp2 = 0 ;
23841 int res2 = 0 ;
23842 PyObject * obj0 = 0 ;
23843 PyObject * obj1 = 0 ;
23844 char * kwnames[] = {
23845 (char *) "self",(char *) "tool", NULL
23846 };
23847
23848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) SWIG_fail;
23849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23850 if (!SWIG_IsOK(res1)) {
23851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23852 }
23853 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23854 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23855 if (!SWIG_IsOK(res2)) {
23856 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "2"" of type '" "wxToolBarToolBase *""'");
23857 }
23858 arg2 = reinterpret_cast< wxToolBarToolBase * >(argp2);
23859 {
23860 PyThreadState* __tstate = wxPyBeginAllowThreads();
23861 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
23862 wxPyEndAllowThreads(__tstate);
23863 if (PyErr_Occurred()) SWIG_fail;
23864 }
23865 {
23866 resultobj = wxPyMake_wxObject(result, (bool)0);
23867 }
23868 return resultobj;
23869fail:
23870 return NULL;
23871}
23872
23873
23874SWIGINTERN PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23875 PyObject *resultobj = 0;
23876 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23877 size_t arg2 ;
23878 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
23879 wxToolBarToolBase *result = 0 ;
23880 void *argp1 = 0 ;
23881 int res1 = 0 ;
23882 size_t val2 ;
23883 int ecode2 = 0 ;
23884 void *argp3 = 0 ;
23885 int res3 = 0 ;
23886 PyObject * obj0 = 0 ;
23887 PyObject * obj1 = 0 ;
23888 PyObject * obj2 = 0 ;
23889 char * kwnames[] = {
23890 (char *) "self",(char *) "pos",(char *) "tool", NULL
23891 };
23892
23893 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23894 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23895 if (!SWIG_IsOK(res1)) {
23896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23897 }
23898 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23899 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23900 if (!SWIG_IsOK(ecode2)) {
23901 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "2"" of type '" "size_t""'");
23902 }
23903 arg2 = static_cast< size_t >(val2);
23904 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23905 if (!SWIG_IsOK(res3)) {
23906 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "3"" of type '" "wxToolBarToolBase *""'");
23907 }
23908 arg3 = reinterpret_cast< wxToolBarToolBase * >(argp3);
23909 {
23910 PyThreadState* __tstate = wxPyBeginAllowThreads();
23911 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
23912 wxPyEndAllowThreads(__tstate);
23913 if (PyErr_Occurred()) SWIG_fail;
23914 }
23915 {
23916 resultobj = wxPyMake_wxObject(result, (bool)0);
23917 }
23918 return resultobj;
23919fail:
23920 return NULL;
23921}
23922
23923
23924SWIGINTERN PyObject *_wrap_ToolBarBase_AddControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23925 PyObject *resultobj = 0;
23926 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23927 wxControl *arg2 = (wxControl *) 0 ;
23928 wxToolBarToolBase *result = 0 ;
23929 void *argp1 = 0 ;
23930 int res1 = 0 ;
23931 void *argp2 = 0 ;
23932 int res2 = 0 ;
23933 PyObject * obj0 = 0 ;
23934 PyObject * obj1 = 0 ;
23935 char * kwnames[] = {
23936 (char *) "self",(char *) "control", NULL
23937 };
23938
23939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) SWIG_fail;
23940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23941 if (!SWIG_IsOK(res1)) {
23942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23943 }
23944 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23945 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxControl, 0 | 0 );
23946 if (!SWIG_IsOK(res2)) {
23947 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddControl" "', expected argument " "2"" of type '" "wxControl *""'");
23948 }
23949 arg2 = reinterpret_cast< wxControl * >(argp2);
23950 {
23951 PyThreadState* __tstate = wxPyBeginAllowThreads();
23952 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
23953 wxPyEndAllowThreads(__tstate);
23954 if (PyErr_Occurred()) SWIG_fail;
23955 }
23956 {
23957 resultobj = wxPyMake_wxObject(result, (bool)0);
23958 }
23959 return resultobj;
23960fail:
23961 return NULL;
23962}
23963
23964
23965SWIGINTERN PyObject *_wrap_ToolBarBase_InsertControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23966 PyObject *resultobj = 0;
23967 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23968 size_t arg2 ;
23969 wxControl *arg3 = (wxControl *) 0 ;
23970 wxToolBarToolBase *result = 0 ;
23971 void *argp1 = 0 ;
23972 int res1 = 0 ;
23973 size_t val2 ;
23974 int ecode2 = 0 ;
23975 void *argp3 = 0 ;
23976 int res3 = 0 ;
23977 PyObject * obj0 = 0 ;
23978 PyObject * obj1 = 0 ;
23979 PyObject * obj2 = 0 ;
23980 char * kwnames[] = {
23981 (char *) "self",(char *) "pos",(char *) "control", NULL
23982 };
23983
23984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23985 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23986 if (!SWIG_IsOK(res1)) {
23987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23988 }
23989 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23990 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23991 if (!SWIG_IsOK(ecode2)) {
23992 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertControl" "', expected argument " "2"" of type '" "size_t""'");
23993 }
23994 arg2 = static_cast< size_t >(val2);
23995 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxControl, 0 | 0 );
23996 if (!SWIG_IsOK(res3)) {
23997 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertControl" "', expected argument " "3"" of type '" "wxControl *""'");
23998 }
23999 arg3 = reinterpret_cast< wxControl * >(argp3);
24000 {
24001 PyThreadState* __tstate = wxPyBeginAllowThreads();
24002 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
24003 wxPyEndAllowThreads(__tstate);
24004 if (PyErr_Occurred()) SWIG_fail;
24005 }
24006 {
24007 resultobj = wxPyMake_wxObject(result, (bool)0);
24008 }
24009 return resultobj;
24010fail:
24011 return NULL;
24012}
24013
24014
24015SWIGINTERN PyObject *_wrap_ToolBarBase_FindControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24016 PyObject *resultobj = 0;
24017 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24018 int arg2 ;
24019 wxControl *result = 0 ;
24020 void *argp1 = 0 ;
24021 int res1 = 0 ;
24022 int val2 ;
24023 int ecode2 = 0 ;
24024 PyObject * obj0 = 0 ;
24025 PyObject * obj1 = 0 ;
24026 char * kwnames[] = {
24027 (char *) "self",(char *) "id", NULL
24028 };
24029
24030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) SWIG_fail;
24031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24032 if (!SWIG_IsOK(res1)) {
24033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24034 }
24035 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24036 ecode2 = SWIG_AsVal_int(obj1, &val2);
24037 if (!SWIG_IsOK(ecode2)) {
24038 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindControl" "', expected argument " "2"" of type '" "int""'");
24039 }
24040 arg2 = static_cast< int >(val2);
24041 {
24042 PyThreadState* __tstate = wxPyBeginAllowThreads();
24043 result = (wxControl *)(arg1)->FindControl(arg2);
24044 wxPyEndAllowThreads(__tstate);
24045 if (PyErr_Occurred()) SWIG_fail;
24046 }
24047 {
24048 resultobj = wxPyMake_wxObject(result, 0);
24049 }
24050 return resultobj;
24051fail:
24052 return NULL;
d14a1e28
RD
24053}
24054
24055
0085ce49
RD
24056SWIGINTERN PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24057 PyObject *resultobj = 0;
24058 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24059 wxToolBarToolBase *result = 0 ;
24060 void *argp1 = 0 ;
24061 int res1 = 0 ;
24062 PyObject *swig_obj[1] ;
24063
24064 if (!args) SWIG_fail;
24065 swig_obj[0] = args;
24066 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24067 if (!SWIG_IsOK(res1)) {
24068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24069 }
24070 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24071 {
24072 PyThreadState* __tstate = wxPyBeginAllowThreads();
24073 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
24074 wxPyEndAllowThreads(__tstate);
24075 if (PyErr_Occurred()) SWIG_fail;
24076 }
24077 {
24078 resultobj = wxPyMake_wxObject(result, (bool)0);
24079 }
24080 return resultobj;
24081fail:
24082 return NULL;
24083}
24084
24085
24086SWIGINTERN PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24087 PyObject *resultobj = 0;
24088 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24089 size_t arg2 ;
24090 wxToolBarToolBase *result = 0 ;
24091 void *argp1 = 0 ;
24092 int res1 = 0 ;
24093 size_t val2 ;
24094 int ecode2 = 0 ;
24095 PyObject * obj0 = 0 ;
24096 PyObject * obj1 = 0 ;
24097 char * kwnames[] = {
24098 (char *) "self",(char *) "pos", NULL
24099 };
24100
24101 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) SWIG_fail;
24102 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24103 if (!SWIG_IsOK(res1)) {
24104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24105 }
24106 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24107 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24108 if (!SWIG_IsOK(ecode2)) {
24109 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "2"" of type '" "size_t""'");
24110 }
24111 arg2 = static_cast< size_t >(val2);
24112 {
24113 PyThreadState* __tstate = wxPyBeginAllowThreads();
24114 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
24115 wxPyEndAllowThreads(__tstate);
24116 if (PyErr_Occurred()) SWIG_fail;
24117 }
24118 {
24119 resultobj = wxPyMake_wxObject(result, (bool)0);
24120 }
24121 return resultobj;
24122fail:
24123 return NULL;
24124}
24125
24126
24127SWIGINTERN PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24128 PyObject *resultobj = 0;
24129 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24130 int arg2 ;
24131 wxToolBarToolBase *result = 0 ;
24132 void *argp1 = 0 ;
24133 int res1 = 0 ;
24134 int val2 ;
24135 int ecode2 = 0 ;
24136 PyObject * obj0 = 0 ;
24137 PyObject * obj1 = 0 ;
24138 char * kwnames[] = {
24139 (char *) "self",(char *) "id", NULL
24140 };
24141
24142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) SWIG_fail;
24143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24144 if (!SWIG_IsOK(res1)) {
24145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24146 }
24147 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24148 ecode2 = SWIG_AsVal_int(obj1, &val2);
24149 if (!SWIG_IsOK(ecode2)) {
24150 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "2"" of type '" "int""'");
24151 }
24152 arg2 = static_cast< int >(val2);
24153 {
24154 PyThreadState* __tstate = wxPyBeginAllowThreads();
24155 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
24156 wxPyEndAllowThreads(__tstate);
24157 if (PyErr_Occurred()) SWIG_fail;
24158 }
24159 {
24160 resultobj = wxPyMake_wxObject(result, (bool)0);
24161 }
24162 return resultobj;
24163fail:
24164 return NULL;
24165}
24166
24167
24168SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24169 PyObject *resultobj = 0;
24170 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24171 size_t arg2 ;
24172 bool result;
24173 void *argp1 = 0 ;
24174 int res1 = 0 ;
24175 size_t val2 ;
24176 int ecode2 = 0 ;
24177 PyObject * obj0 = 0 ;
24178 PyObject * obj1 = 0 ;
24179 char * kwnames[] = {
24180 (char *) "self",(char *) "pos", NULL
24181 };
24182
24183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) SWIG_fail;
24184 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24185 if (!SWIG_IsOK(res1)) {
24186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24187 }
24188 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24189 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24190 if (!SWIG_IsOK(ecode2)) {
24191 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "2"" of type '" "size_t""'");
24192 }
24193 arg2 = static_cast< size_t >(val2);
24194 {
24195 PyThreadState* __tstate = wxPyBeginAllowThreads();
24196 result = (bool)(arg1)->DeleteToolByPos(arg2);
24197 wxPyEndAllowThreads(__tstate);
24198 if (PyErr_Occurred()) SWIG_fail;
24199 }
24200 {
24201 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24202 }
24203 return resultobj;
24204fail:
24205 return NULL;
24206}
24207
24208
24209SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24210 PyObject *resultobj = 0;
24211 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24212 int arg2 ;
24213 bool result;
24214 void *argp1 = 0 ;
24215 int res1 = 0 ;
24216 int val2 ;
24217 int ecode2 = 0 ;
24218 PyObject * obj0 = 0 ;
24219 PyObject * obj1 = 0 ;
24220 char * kwnames[] = {
24221 (char *) "self",(char *) "id", NULL
24222 };
24223
24224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) SWIG_fail;
24225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24226 if (!SWIG_IsOK(res1)) {
24227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24228 }
24229 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24230 ecode2 = SWIG_AsVal_int(obj1, &val2);
24231 if (!SWIG_IsOK(ecode2)) {
24232 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "2"" of type '" "int""'");
24233 }
24234 arg2 = static_cast< int >(val2);
24235 {
24236 PyThreadState* __tstate = wxPyBeginAllowThreads();
24237 result = (bool)(arg1)->DeleteTool(arg2);
24238 wxPyEndAllowThreads(__tstate);
24239 if (PyErr_Occurred()) SWIG_fail;
24240 }
24241 {
24242 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24243 }
24244 return resultobj;
24245fail:
24246 return NULL;
d14a1e28
RD
24247}
24248
24249
0085ce49
RD
24250SWIGINTERN PyObject *_wrap_ToolBarBase_ClearTools(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24251 PyObject *resultobj = 0;
24252 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24253 void *argp1 = 0 ;
24254 int res1 = 0 ;
24255 PyObject *swig_obj[1] ;
24256
24257 if (!args) SWIG_fail;
24258 swig_obj[0] = args;
24259 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24260 if (!SWIG_IsOK(res1)) {
24261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ClearTools" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24262 }
24263 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24264 {
24265 PyThreadState* __tstate = wxPyBeginAllowThreads();
24266 (arg1)->ClearTools();
24267 wxPyEndAllowThreads(__tstate);
24268 if (PyErr_Occurred()) SWIG_fail;
24269 }
24270 resultobj = SWIG_Py_Void();
24271 return resultobj;
24272fail:
24273 return NULL;
d14a1e28
RD
24274}
24275
24276
0085ce49
RD
24277SWIGINTERN PyObject *_wrap_ToolBarBase_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24278 PyObject *resultobj = 0;
24279 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24280 bool result;
24281 void *argp1 = 0 ;
24282 int res1 = 0 ;
24283 PyObject *swig_obj[1] ;
24284
24285 if (!args) SWIG_fail;
24286 swig_obj[0] = args;
24287 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24288 if (!SWIG_IsOK(res1)) {
24289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_Realize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24290 }
24291 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24292 {
24293 PyThreadState* __tstate = wxPyBeginAllowThreads();
24294 result = (bool)(arg1)->Realize();
24295 wxPyEndAllowThreads(__tstate);
24296 if (PyErr_Occurred()) SWIG_fail;
24297 }
24298 {
24299 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24300 }
24301 return resultobj;
24302fail:
24303 return NULL;
24304}
24305
24306
24307SWIGINTERN PyObject *_wrap_ToolBarBase_EnableTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24308 PyObject *resultobj = 0;
24309 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24310 int arg2 ;
24311 bool arg3 ;
24312 void *argp1 = 0 ;
24313 int res1 = 0 ;
24314 int val2 ;
24315 int ecode2 = 0 ;
24316 bool val3 ;
24317 int ecode3 = 0 ;
24318 PyObject * obj0 = 0 ;
24319 PyObject * obj1 = 0 ;
24320 PyObject * obj2 = 0 ;
24321 char * kwnames[] = {
24322 (char *) "self",(char *) "id",(char *) "enable", NULL
24323 };
24324
24325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24327 if (!SWIG_IsOK(res1)) {
24328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_EnableTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24329 }
24330 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24331 ecode2 = SWIG_AsVal_int(obj1, &val2);
24332 if (!SWIG_IsOK(ecode2)) {
24333 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_EnableTool" "', expected argument " "2"" of type '" "int""'");
24334 }
24335 arg2 = static_cast< int >(val2);
24336 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24337 if (!SWIG_IsOK(ecode3)) {
24338 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_EnableTool" "', expected argument " "3"" of type '" "bool""'");
24339 }
24340 arg3 = static_cast< bool >(val3);
24341 {
24342 PyThreadState* __tstate = wxPyBeginAllowThreads();
24343 (arg1)->EnableTool(arg2,arg3);
24344 wxPyEndAllowThreads(__tstate);
24345 if (PyErr_Occurred()) SWIG_fail;
24346 }
24347 resultobj = SWIG_Py_Void();
24348 return resultobj;
24349fail:
24350 return NULL;
24351}
24352
24353
24354SWIGINTERN PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24355 PyObject *resultobj = 0;
24356 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24357 int arg2 ;
24358 bool arg3 ;
24359 void *argp1 = 0 ;
24360 int res1 = 0 ;
24361 int val2 ;
24362 int ecode2 = 0 ;
24363 bool val3 ;
24364 int ecode3 = 0 ;
24365 PyObject * obj0 = 0 ;
24366 PyObject * obj1 = 0 ;
24367 PyObject * obj2 = 0 ;
24368 char * kwnames[] = {
24369 (char *) "self",(char *) "id",(char *) "toggle", NULL
24370 };
24371
24372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24374 if (!SWIG_IsOK(res1)) {
24375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24376 }
24377 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24378 ecode2 = SWIG_AsVal_int(obj1, &val2);
24379 if (!SWIG_IsOK(ecode2)) {
24380 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "2"" of type '" "int""'");
24381 }
24382 arg2 = static_cast< int >(val2);
24383 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24384 if (!SWIG_IsOK(ecode3)) {
24385 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "3"" of type '" "bool""'");
24386 }
24387 arg3 = static_cast< bool >(val3);
24388 {
24389 PyThreadState* __tstate = wxPyBeginAllowThreads();
24390 (arg1)->ToggleTool(arg2,arg3);
24391 wxPyEndAllowThreads(__tstate);
24392 if (PyErr_Occurred()) SWIG_fail;
24393 }
24394 resultobj = SWIG_Py_Void();
24395 return resultobj;
24396fail:
24397 return NULL;
24398}
24399
24400
24401SWIGINTERN PyObject *_wrap_ToolBarBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24402 PyObject *resultobj = 0;
24403 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24404 int arg2 ;
24405 bool arg3 ;
24406 void *argp1 = 0 ;
24407 int res1 = 0 ;
24408 int val2 ;
24409 int ecode2 = 0 ;
24410 bool val3 ;
24411 int ecode3 = 0 ;
24412 PyObject * obj0 = 0 ;
24413 PyObject * obj1 = 0 ;
24414 PyObject * obj2 = 0 ;
24415 char * kwnames[] = {
24416 (char *) "self",(char *) "id",(char *) "toggle", NULL
24417 };
24418
24419 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24420 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24421 if (!SWIG_IsOK(res1)) {
24422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24423 }
24424 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24425 ecode2 = SWIG_AsVal_int(obj1, &val2);
24426 if (!SWIG_IsOK(ecode2)) {
24427 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToggle" "', expected argument " "2"" of type '" "int""'");
24428 }
24429 arg2 = static_cast< int >(val2);
24430 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24431 if (!SWIG_IsOK(ecode3)) {
24432 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetToggle" "', expected argument " "3"" of type '" "bool""'");
24433 }
24434 arg3 = static_cast< bool >(val3);
24435 {
24436 PyThreadState* __tstate = wxPyBeginAllowThreads();
24437 (arg1)->SetToggle(arg2,arg3);
24438 wxPyEndAllowThreads(__tstate);
24439 if (PyErr_Occurred()) SWIG_fail;
24440 }
24441 resultobj = SWIG_Py_Void();
24442 return resultobj;
24443fail:
24444 return NULL;
24445}
24446
24447
24448SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24449 PyObject *resultobj = 0;
24450 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24451 int arg2 ;
24452 PyObject *result = 0 ;
24453 void *argp1 = 0 ;
24454 int res1 = 0 ;
24455 int val2 ;
24456 int ecode2 = 0 ;
24457 PyObject * obj0 = 0 ;
24458 PyObject * obj1 = 0 ;
24459 char * kwnames[] = {
24460 (char *) "self",(char *) "id", NULL
24461 };
24462
24463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) SWIG_fail;
24464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24465 if (!SWIG_IsOK(res1)) {
24466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24467 }
24468 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24469 ecode2 = SWIG_AsVal_int(obj1, &val2);
24470 if (!SWIG_IsOK(ecode2)) {
24471 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "2"" of type '" "int""'");
24472 }
24473 arg2 = static_cast< int >(val2);
24474 {
24475 PyThreadState* __tstate = wxPyBeginAllowThreads();
24476 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
24477 wxPyEndAllowThreads(__tstate);
24478 if (PyErr_Occurred()) SWIG_fail;
24479 }
24480 resultobj = result;
24481 return resultobj;
24482fail:
24483 return NULL;
24484}
24485
24486
24487SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24488 PyObject *resultobj = 0;
24489 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24490 int arg2 ;
24491 PyObject *arg3 = (PyObject *) 0 ;
24492 void *argp1 = 0 ;
24493 int res1 = 0 ;
24494 int val2 ;
24495 int ecode2 = 0 ;
24496 PyObject * obj0 = 0 ;
24497 PyObject * obj1 = 0 ;
24498 PyObject * obj2 = 0 ;
24499 char * kwnames[] = {
24500 (char *) "self",(char *) "id",(char *) "clientData", NULL
24501 };
24502
24503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24504 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24505 if (!SWIG_IsOK(res1)) {
24506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24507 }
24508 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24509 ecode2 = SWIG_AsVal_int(obj1, &val2);
24510 if (!SWIG_IsOK(ecode2)) {
24511 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "2"" of type '" "int""'");
24512 }
24513 arg2 = static_cast< int >(val2);
24514 arg3 = obj2;
24515 {
24516 PyThreadState* __tstate = wxPyBeginAllowThreads();
24517 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
24518 wxPyEndAllowThreads(__tstate);
24519 if (PyErr_Occurred()) SWIG_fail;
24520 }
24521 resultobj = SWIG_Py_Void();
24522 return resultobj;
24523fail:
24524 return NULL;
24525}
24526
24527
24528SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24529 PyObject *resultobj = 0;
24530 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24531 int arg2 ;
24532 int result;
24533 void *argp1 = 0 ;
24534 int res1 = 0 ;
24535 int val2 ;
24536 int ecode2 = 0 ;
24537 PyObject * obj0 = 0 ;
24538 PyObject * obj1 = 0 ;
24539 char * kwnames[] = {
24540 (char *) "self",(char *) "id", NULL
24541 };
24542
24543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) SWIG_fail;
24544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24545 if (!SWIG_IsOK(res1)) {
24546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
24547 }
24548 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24549 ecode2 = SWIG_AsVal_int(obj1, &val2);
24550 if (!SWIG_IsOK(ecode2)) {
24551 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "2"" of type '" "int""'");
24552 }
24553 arg2 = static_cast< int >(val2);
24554 {
24555 PyThreadState* __tstate = wxPyBeginAllowThreads();
24556 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
24557 wxPyEndAllowThreads(__tstate);
24558 if (PyErr_Occurred()) SWIG_fail;
24559 }
24560 resultobj = SWIG_From_int(static_cast< int >(result));
24561 return resultobj;
24562fail:
24563 return NULL;
24564}
24565
24566
24567SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24568 PyObject *resultobj = 0;
24569 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24570 int arg2 ;
24571 bool result;
24572 void *argp1 = 0 ;
24573 int res1 = 0 ;
24574 int val2 ;
24575 int ecode2 = 0 ;
24576 PyObject * obj0 = 0 ;
24577 PyObject * obj1 = 0 ;
24578 char * kwnames[] = {
24579 (char *) "self",(char *) "id", NULL
24580 };
24581
24582 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) SWIG_fail;
24583 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24584 if (!SWIG_IsOK(res1)) {
24585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolState" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24586 }
24587 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24588 ecode2 = SWIG_AsVal_int(obj1, &val2);
24589 if (!SWIG_IsOK(ecode2)) {
24590 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolState" "', expected argument " "2"" of type '" "int""'");
24591 }
24592 arg2 = static_cast< int >(val2);
24593 {
24594 PyThreadState* __tstate = wxPyBeginAllowThreads();
24595 result = (bool)(arg1)->GetToolState(arg2);
24596 wxPyEndAllowThreads(__tstate);
24597 if (PyErr_Occurred()) SWIG_fail;
24598 }
24599 {
24600 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24601 }
24602 return resultobj;
24603fail:
24604 return NULL;
24605}
24606
24607
24608SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24609 PyObject *resultobj = 0;
24610 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24611 int arg2 ;
24612 bool result;
24613 void *argp1 = 0 ;
24614 int res1 = 0 ;
24615 int val2 ;
24616 int ecode2 = 0 ;
24617 PyObject * obj0 = 0 ;
24618 PyObject * obj1 = 0 ;
24619 char * kwnames[] = {
24620 (char *) "self",(char *) "id", NULL
24621 };
24622
24623 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
24624 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24625 if (!SWIG_IsOK(res1)) {
24626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24627 }
24628 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24629 ecode2 = SWIG_AsVal_int(obj1, &val2);
24630 if (!SWIG_IsOK(ecode2)) {
24631 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "2"" of type '" "int""'");
24632 }
24633 arg2 = static_cast< int >(val2);
24634 {
24635 PyThreadState* __tstate = wxPyBeginAllowThreads();
24636 result = (bool)(arg1)->GetToolEnabled(arg2);
24637 wxPyEndAllowThreads(__tstate);
24638 if (PyErr_Occurred()) SWIG_fail;
24639 }
24640 {
24641 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24642 }
24643 return resultobj;
24644fail:
24645 return NULL;
24646}
24647
24648
24649SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24650 PyObject *resultobj = 0;
24651 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24652 int arg2 ;
24653 wxString *arg3 = 0 ;
24654 void *argp1 = 0 ;
24655 int res1 = 0 ;
24656 int val2 ;
24657 int ecode2 = 0 ;
24658 bool temp3 = false ;
24659 PyObject * obj0 = 0 ;
24660 PyObject * obj1 = 0 ;
24661 PyObject * obj2 = 0 ;
24662 char * kwnames[] = {
24663 (char *) "self",(char *) "id",(char *) "helpString", NULL
24664 };
24665
24666 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24668 if (!SWIG_IsOK(res1)) {
24669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24670 }
24671 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24672 ecode2 = SWIG_AsVal_int(obj1, &val2);
24673 if (!SWIG_IsOK(ecode2)) {
24674 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24675 }
24676 arg2 = static_cast< int >(val2);
24677 {
24678 arg3 = wxString_in_helper(obj2);
24679 if (arg3 == NULL) SWIG_fail;
24680 temp3 = true;
24681 }
24682 {
24683 PyThreadState* __tstate = wxPyBeginAllowThreads();
24684 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
24685 wxPyEndAllowThreads(__tstate);
24686 if (PyErr_Occurred()) SWIG_fail;
24687 }
24688 resultobj = SWIG_Py_Void();
24689 {
24690 if (temp3)
24691 delete arg3;
24692 }
24693 return resultobj;
24694fail:
24695 {
24696 if (temp3)
24697 delete arg3;
24698 }
24699 return NULL;
24700}
24701
24702
24703SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24704 PyObject *resultobj = 0;
24705 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24706 int arg2 ;
24707 wxString result;
24708 void *argp1 = 0 ;
24709 int res1 = 0 ;
24710 int val2 ;
24711 int ecode2 = 0 ;
24712 PyObject * obj0 = 0 ;
24713 PyObject * obj1 = 0 ;
24714 char * kwnames[] = {
24715 (char *) "self",(char *) "id", NULL
24716 };
24717
24718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24720 if (!SWIG_IsOK(res1)) {
24721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24722 }
24723 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24724 ecode2 = SWIG_AsVal_int(obj1, &val2);
24725 if (!SWIG_IsOK(ecode2)) {
24726 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24727 }
24728 arg2 = static_cast< int >(val2);
24729 {
24730 PyThreadState* __tstate = wxPyBeginAllowThreads();
24731 result = (arg1)->GetToolShortHelp(arg2);
24732 wxPyEndAllowThreads(__tstate);
24733 if (PyErr_Occurred()) SWIG_fail;
24734 }
24735 {
24736#if wxUSE_UNICODE
24737 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24738#else
24739 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24740#endif
24741 }
24742 return resultobj;
24743fail:
24744 return NULL;
24745}
24746
24747
24748SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24749 PyObject *resultobj = 0;
24750 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24751 int arg2 ;
24752 wxString *arg3 = 0 ;
24753 void *argp1 = 0 ;
24754 int res1 = 0 ;
24755 int val2 ;
24756 int ecode2 = 0 ;
24757 bool temp3 = false ;
24758 PyObject * obj0 = 0 ;
24759 PyObject * obj1 = 0 ;
24760 PyObject * obj2 = 0 ;
24761 char * kwnames[] = {
24762 (char *) "self",(char *) "id",(char *) "helpString", NULL
24763 };
24764
24765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24767 if (!SWIG_IsOK(res1)) {
24768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24769 }
24770 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24771 ecode2 = SWIG_AsVal_int(obj1, &val2);
24772 if (!SWIG_IsOK(ecode2)) {
24773 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24774 }
24775 arg2 = static_cast< int >(val2);
24776 {
24777 arg3 = wxString_in_helper(obj2);
24778 if (arg3 == NULL) SWIG_fail;
24779 temp3 = true;
24780 }
24781 {
24782 PyThreadState* __tstate = wxPyBeginAllowThreads();
24783 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
24784 wxPyEndAllowThreads(__tstate);
24785 if (PyErr_Occurred()) SWIG_fail;
24786 }
24787 resultobj = SWIG_Py_Void();
24788 {
24789 if (temp3)
24790 delete arg3;
24791 }
24792 return resultobj;
24793fail:
24794 {
24795 if (temp3)
24796 delete arg3;
24797 }
24798 return NULL;
24799}
24800
24801
24802SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24803 PyObject *resultobj = 0;
24804 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24805 int arg2 ;
24806 wxString result;
24807 void *argp1 = 0 ;
24808 int res1 = 0 ;
24809 int val2 ;
24810 int ecode2 = 0 ;
24811 PyObject * obj0 = 0 ;
24812 PyObject * obj1 = 0 ;
24813 char * kwnames[] = {
24814 (char *) "self",(char *) "id", NULL
24815 };
24816
24817 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24818 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24819 if (!SWIG_IsOK(res1)) {
24820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24821 }
24822 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24823 ecode2 = SWIG_AsVal_int(obj1, &val2);
24824 if (!SWIG_IsOK(ecode2)) {
24825 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24826 }
24827 arg2 = static_cast< int >(val2);
24828 {
24829 PyThreadState* __tstate = wxPyBeginAllowThreads();
24830 result = (arg1)->GetToolLongHelp(arg2);
24831 wxPyEndAllowThreads(__tstate);
24832 if (PyErr_Occurred()) SWIG_fail;
24833 }
24834 {
24835#if wxUSE_UNICODE
24836 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24837#else
24838 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24839#endif
24840 }
24841 return resultobj;
24842fail:
24843 return NULL;
24844}
24845
24846
24847SWIGINTERN PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24848 PyObject *resultobj = 0;
24849 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24850 int arg2 ;
24851 int arg3 ;
24852 void *argp1 = 0 ;
24853 int res1 = 0 ;
24854 int val2 ;
24855 int ecode2 = 0 ;
24856 int val3 ;
24857 int ecode3 = 0 ;
24858 PyObject * obj0 = 0 ;
24859 PyObject * obj1 = 0 ;
24860 PyObject * obj2 = 0 ;
24861 char * kwnames[] = {
24862 (char *) "self",(char *) "x",(char *) "y", NULL
24863 };
24864
24865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24866 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24867 if (!SWIG_IsOK(res1)) {
24868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24869 }
24870 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24871 ecode2 = SWIG_AsVal_int(obj1, &val2);
24872 if (!SWIG_IsOK(ecode2)) {
24873 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "2"" of type '" "int""'");
24874 }
24875 arg2 = static_cast< int >(val2);
24876 ecode3 = SWIG_AsVal_int(obj2, &val3);
24877 if (!SWIG_IsOK(ecode3)) {
24878 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "3"" of type '" "int""'");
24879 }
24880 arg3 = static_cast< int >(val3);
24881 {
24882 PyThreadState* __tstate = wxPyBeginAllowThreads();
24883 (arg1)->SetMargins(arg2,arg3);
24884 wxPyEndAllowThreads(__tstate);
24885 if (PyErr_Occurred()) SWIG_fail;
24886 }
24887 resultobj = SWIG_Py_Void();
24888 return resultobj;
24889fail:
24890 return NULL;
24891}
24892
24893
24894SWIGINTERN PyObject *_wrap_ToolBarBase_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24895 PyObject *resultobj = 0;
24896 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24897 wxSize *arg2 = 0 ;
24898 void *argp1 = 0 ;
24899 int res1 = 0 ;
24900 wxSize temp2 ;
24901 PyObject * obj0 = 0 ;
24902 PyObject * obj1 = 0 ;
24903 char * kwnames[] = {
24904 (char *) "self",(char *) "size", NULL
24905 };
24906
24907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail;
24908 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24909 if (!SWIG_IsOK(res1)) {
24910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24911 }
24912 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24913 {
24914 arg2 = &temp2;
24915 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
24916 }
24917 {
24918 PyThreadState* __tstate = wxPyBeginAllowThreads();
24919 (arg1)->SetMargins((wxSize const &)*arg2);
24920 wxPyEndAllowThreads(__tstate);
24921 if (PyErr_Occurred()) SWIG_fail;
24922 }
24923 resultobj = SWIG_Py_Void();
24924 return resultobj;
24925fail:
24926 return NULL;
24927}
24928
24929
24930SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24931 PyObject *resultobj = 0;
24932 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24933 int arg2 ;
24934 void *argp1 = 0 ;
24935 int res1 = 0 ;
24936 int val2 ;
24937 int ecode2 = 0 ;
24938 PyObject * obj0 = 0 ;
24939 PyObject * obj1 = 0 ;
24940 char * kwnames[] = {
24941 (char *) "self",(char *) "packing", NULL
24942 };
24943
24944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) SWIG_fail;
24945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24946 if (!SWIG_IsOK(res1)) {
24947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24948 }
24949 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24950 ecode2 = SWIG_AsVal_int(obj1, &val2);
24951 if (!SWIG_IsOK(ecode2)) {
24952 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "2"" of type '" "int""'");
24953 }
24954 arg2 = static_cast< int >(val2);
24955 {
24956 PyThreadState* __tstate = wxPyBeginAllowThreads();
24957 (arg1)->SetToolPacking(arg2);
24958 wxPyEndAllowThreads(__tstate);
24959 if (PyErr_Occurred()) SWIG_fail;
24960 }
24961 resultobj = SWIG_Py_Void();
24962 return resultobj;
24963fail:
24964 return NULL;
24965}
24966
24967
24968SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24969 PyObject *resultobj = 0;
24970 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24971 int arg2 ;
24972 void *argp1 = 0 ;
24973 int res1 = 0 ;
24974 int val2 ;
24975 int ecode2 = 0 ;
24976 PyObject * obj0 = 0 ;
24977 PyObject * obj1 = 0 ;
24978 char * kwnames[] = {
24979 (char *) "self",(char *) "separation", NULL
24980 };
24981
24982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) SWIG_fail;
24983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24984 if (!SWIG_IsOK(res1)) {
24985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24986 }
24987 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24988 ecode2 = SWIG_AsVal_int(obj1, &val2);
24989 if (!SWIG_IsOK(ecode2)) {
24990 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "2"" of type '" "int""'");
24991 }
24992 arg2 = static_cast< int >(val2);
24993 {
24994 PyThreadState* __tstate = wxPyBeginAllowThreads();
24995 (arg1)->SetToolSeparation(arg2);
24996 wxPyEndAllowThreads(__tstate);
24997 if (PyErr_Occurred()) SWIG_fail;
24998 }
24999 resultobj = SWIG_Py_Void();
25000 return resultobj;
25001fail:
25002 return NULL;
d14a1e28
RD
25003}
25004
25005
0085ce49
RD
25006SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25007 PyObject *resultobj = 0;
25008 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25009 wxSize result;
25010 void *argp1 = 0 ;
25011 int res1 = 0 ;
25012 PyObject *swig_obj[1] ;
25013
25014 if (!args) SWIG_fail;
25015 swig_obj[0] = args;
25016 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25017 if (!SWIG_IsOK(res1)) {
25018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25019 }
25020 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25021 {
25022 PyThreadState* __tstate = wxPyBeginAllowThreads();
25023 result = (arg1)->GetToolMargins();
25024 wxPyEndAllowThreads(__tstate);
25025 if (PyErr_Occurred()) SWIG_fail;
25026 }
25027 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25028 return resultobj;
25029fail:
25030 return NULL;
d14a1e28
RD
25031}
25032
25033
0085ce49
RD
25034SWIGINTERN PyObject *_wrap_ToolBarBase_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25035 PyObject *resultobj = 0;
25036 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25037 wxSize result;
25038 void *argp1 = 0 ;
25039 int res1 = 0 ;
25040 PyObject *swig_obj[1] ;
25041
25042 if (!args) SWIG_fail;
25043 swig_obj[0] = args;
25044 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25045 if (!SWIG_IsOK(res1)) {
25046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25047 }
25048 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25049 {
25050 PyThreadState* __tstate = wxPyBeginAllowThreads();
25051 result = (arg1)->GetMargins();
25052 wxPyEndAllowThreads(__tstate);
25053 if (PyErr_Occurred()) SWIG_fail;
25054 }
25055 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25056 return resultobj;
25057fail:
25058 return NULL;
d14a1e28
RD
25059}
25060
25061
0085ce49
RD
25062SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25063 PyObject *resultobj = 0;
25064 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25065 int result;
25066 void *argp1 = 0 ;
25067 int res1 = 0 ;
25068 PyObject *swig_obj[1] ;
25069
25070 if (!args) SWIG_fail;
25071 swig_obj[0] = args;
25072 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25073 if (!SWIG_IsOK(res1)) {
25074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25075 }
25076 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25077 {
25078 PyThreadState* __tstate = wxPyBeginAllowThreads();
25079 result = (int)(arg1)->GetToolPacking();
25080 wxPyEndAllowThreads(__tstate);
25081 if (PyErr_Occurred()) SWIG_fail;
25082 }
25083 resultobj = SWIG_From_int(static_cast< int >(result));
25084 return resultobj;
25085fail:
25086 return NULL;
d14a1e28
RD
25087}
25088
25089
0085ce49
RD
25090SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25091 PyObject *resultobj = 0;
25092 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25093 int result;
25094 void *argp1 = 0 ;
25095 int res1 = 0 ;
25096 PyObject *swig_obj[1] ;
25097
25098 if (!args) SWIG_fail;
25099 swig_obj[0] = args;
25100 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25101 if (!SWIG_IsOK(res1)) {
25102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25103 }
25104 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25105 {
25106 PyThreadState* __tstate = wxPyBeginAllowThreads();
25107 result = (int)(arg1)->GetToolSeparation();
25108 wxPyEndAllowThreads(__tstate);
25109 if (PyErr_Occurred()) SWIG_fail;
25110 }
25111 resultobj = SWIG_From_int(static_cast< int >(result));
25112 return resultobj;
25113fail:
25114 return NULL;
25115}
25116
25117
25118SWIGINTERN PyObject *_wrap_ToolBarBase_SetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25119 PyObject *resultobj = 0;
25120 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25121 int arg2 ;
25122 void *argp1 = 0 ;
25123 int res1 = 0 ;
25124 int val2 ;
25125 int ecode2 = 0 ;
25126 PyObject * obj0 = 0 ;
25127 PyObject * obj1 = 0 ;
25128 char * kwnames[] = {
25129 (char *) "self",(char *) "nRows", NULL
25130 };
25131
25132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) SWIG_fail;
25133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25134 if (!SWIG_IsOK(res1)) {
25135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25136 }
25137 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25138 ecode2 = SWIG_AsVal_int(obj1, &val2);
25139 if (!SWIG_IsOK(ecode2)) {
25140 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetRows" "', expected argument " "2"" of type '" "int""'");
25141 }
25142 arg2 = static_cast< int >(val2);
25143 {
25144 PyThreadState* __tstate = wxPyBeginAllowThreads();
25145 (arg1)->SetRows(arg2);
25146 wxPyEndAllowThreads(__tstate);
25147 if (PyErr_Occurred()) SWIG_fail;
25148 }
25149 resultobj = SWIG_Py_Void();
25150 return resultobj;
25151fail:
25152 return NULL;
25153}
25154
25155
25156SWIGINTERN PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25157 PyObject *resultobj = 0;
25158 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25159 int arg2 ;
25160 int arg3 ;
25161 void *argp1 = 0 ;
25162 int res1 = 0 ;
25163 int val2 ;
25164 int ecode2 = 0 ;
25165 int val3 ;
25166 int ecode3 = 0 ;
25167 PyObject * obj0 = 0 ;
25168 PyObject * obj1 = 0 ;
25169 PyObject * obj2 = 0 ;
25170 char * kwnames[] = {
25171 (char *) "self",(char *) "rows",(char *) "cols", NULL
25172 };
25173
25174 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25175 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25176 if (!SWIG_IsOK(res1)) {
25177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25178 }
25179 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25180 ecode2 = SWIG_AsVal_int(obj1, &val2);
25181 if (!SWIG_IsOK(ecode2)) {
25182 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "2"" of type '" "int""'");
25183 }
25184 arg2 = static_cast< int >(val2);
25185 ecode3 = SWIG_AsVal_int(obj2, &val3);
25186 if (!SWIG_IsOK(ecode3)) {
25187 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "3"" of type '" "int""'");
25188 }
25189 arg3 = static_cast< int >(val3);
25190 {
25191 PyThreadState* __tstate = wxPyBeginAllowThreads();
25192 (arg1)->SetMaxRowsCols(arg2,arg3);
25193 wxPyEndAllowThreads(__tstate);
25194 if (PyErr_Occurred()) SWIG_fail;
25195 }
25196 resultobj = SWIG_Py_Void();
25197 return resultobj;
25198fail:
25199 return NULL;
22bfe96c
RD
25200}
25201
25202
0085ce49
RD
25203SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25204 PyObject *resultobj = 0;
25205 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25206 int result;
25207 void *argp1 = 0 ;
25208 int res1 = 0 ;
25209 PyObject *swig_obj[1] ;
25210
25211 if (!args) SWIG_fail;
25212 swig_obj[0] = args;
25213 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25214 if (!SWIG_IsOK(res1)) {
25215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25216 }
25217 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25218 {
25219 PyThreadState* __tstate = wxPyBeginAllowThreads();
25220 result = (int)(arg1)->GetMaxRows();
25221 wxPyEndAllowThreads(__tstate);
25222 if (PyErr_Occurred()) SWIG_fail;
25223 }
25224 resultobj = SWIG_From_int(static_cast< int >(result));
25225 return resultobj;
25226fail:
25227 return NULL;
d14a1e28
RD
25228}
25229
25230
0085ce49
RD
25231SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25232 PyObject *resultobj = 0;
25233 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25234 int result;
25235 void *argp1 = 0 ;
25236 int res1 = 0 ;
25237 PyObject *swig_obj[1] ;
25238
25239 if (!args) SWIG_fail;
25240 swig_obj[0] = args;
25241 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25242 if (!SWIG_IsOK(res1)) {
25243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25244 }
25245 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25246 {
25247 PyThreadState* __tstate = wxPyBeginAllowThreads();
25248 result = (int)(arg1)->GetMaxCols();
25249 wxPyEndAllowThreads(__tstate);
25250 if (PyErr_Occurred()) SWIG_fail;
25251 }
25252 resultobj = SWIG_From_int(static_cast< int >(result));
25253 return resultobj;
25254fail:
25255 return NULL;
25256}
25257
25258
25259SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25260 PyObject *resultobj = 0;
25261 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25262 wxSize *arg2 = 0 ;
25263 void *argp1 = 0 ;
25264 int res1 = 0 ;
25265 wxSize temp2 ;
25266 PyObject * obj0 = 0 ;
25267 PyObject * obj1 = 0 ;
25268 char * kwnames[] = {
25269 (char *) "self",(char *) "size", NULL
25270 };
25271
25272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) SWIG_fail;
25273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25274 if (!SWIG_IsOK(res1)) {
25275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25276 }
25277 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25278 {
25279 arg2 = &temp2;
25280 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25281 }
25282 {
25283 PyThreadState* __tstate = wxPyBeginAllowThreads();
25284 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
25285 wxPyEndAllowThreads(__tstate);
25286 if (PyErr_Occurred()) SWIG_fail;
25287 }
25288 resultobj = SWIG_Py_Void();
25289 return resultobj;
25290fail:
25291 return NULL;
d14a1e28
RD
25292}
25293
25294
0085ce49
RD
25295SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25296 PyObject *resultobj = 0;
25297 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25298 wxSize result;
25299 void *argp1 = 0 ;
25300 int res1 = 0 ;
25301 PyObject *swig_obj[1] ;
25302
25303 if (!args) SWIG_fail;
25304 swig_obj[0] = args;
25305 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25306 if (!SWIG_IsOK(res1)) {
25307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25308 }
25309 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25310 {
25311 PyThreadState* __tstate = wxPyBeginAllowThreads();
25312 result = (arg1)->GetToolBitmapSize();
25313 wxPyEndAllowThreads(__tstate);
25314 if (PyErr_Occurred()) SWIG_fail;
25315 }
25316 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25317 return resultobj;
25318fail:
25319 return NULL;
d14a1e28
RD
25320}
25321
25322
0085ce49
RD
25323SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25324 PyObject *resultobj = 0;
25325 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25326 wxSize result;
25327 void *argp1 = 0 ;
25328 int res1 = 0 ;
25329 PyObject *swig_obj[1] ;
25330
25331 if (!args) SWIG_fail;
25332 swig_obj[0] = args;
25333 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25334 if (!SWIG_IsOK(res1)) {
25335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25336 }
25337 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25338 {
25339 PyThreadState* __tstate = wxPyBeginAllowThreads();
25340 result = (arg1)->GetToolSize();
25341 wxPyEndAllowThreads(__tstate);
25342 if (PyErr_Occurred()) SWIG_fail;
25343 }
25344 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25345 return resultobj;
25346fail:
25347 return NULL;
25348}
25349
25350
25351SWIGINTERN PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25352 PyObject *resultobj = 0;
25353 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25354 int arg2 ;
25355 int arg3 ;
25356 wxToolBarToolBase *result = 0 ;
25357 void *argp1 = 0 ;
25358 int res1 = 0 ;
25359 int val2 ;
25360 int ecode2 = 0 ;
25361 int val3 ;
25362 int ecode3 = 0 ;
25363 PyObject * obj0 = 0 ;
25364 PyObject * obj1 = 0 ;
25365 PyObject * obj2 = 0 ;
25366 char * kwnames[] = {
25367 (char *) "self",(char *) "x",(char *) "y", NULL
25368 };
25369
25370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25371 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25372 if (!SWIG_IsOK(res1)) {
25373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25374 }
25375 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25376 ecode2 = SWIG_AsVal_int(obj1, &val2);
25377 if (!SWIG_IsOK(ecode2)) {
25378 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "2"" of type '" "int""'");
25379 }
25380 arg2 = static_cast< int >(val2);
25381 ecode3 = SWIG_AsVal_int(obj2, &val3);
25382 if (!SWIG_IsOK(ecode3)) {
25383 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "3"" of type '" "int""'");
25384 }
25385 arg3 = static_cast< int >(val3);
25386 {
25387 PyThreadState* __tstate = wxPyBeginAllowThreads();
25388 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
25389 wxPyEndAllowThreads(__tstate);
25390 if (PyErr_Occurred()) SWIG_fail;
25391 }
25392 {
25393 resultobj = wxPyMake_wxObject(result, (bool)0);
25394 }
25395 return resultobj;
25396fail:
25397 return NULL;
25398}
25399
25400
25401SWIGINTERN PyObject *_wrap_ToolBarBase_FindById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25402 PyObject *resultobj = 0;
25403 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25404 int arg2 ;
25405 wxToolBarToolBase *result = 0 ;
25406 void *argp1 = 0 ;
25407 int res1 = 0 ;
25408 int val2 ;
25409 int ecode2 = 0 ;
25410 PyObject * obj0 = 0 ;
25411 PyObject * obj1 = 0 ;
25412 char * kwnames[] = {
25413 (char *) "self",(char *) "toolid", NULL
25414 };
25415
25416 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) SWIG_fail;
25417 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25418 if (!SWIG_IsOK(res1)) {
25419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindById" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25420 }
25421 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25422 ecode2 = SWIG_AsVal_int(obj1, &val2);
25423 if (!SWIG_IsOK(ecode2)) {
25424 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindById" "', expected argument " "2"" of type '" "int""'");
25425 }
25426 arg2 = static_cast< int >(val2);
25427 {
25428 PyThreadState* __tstate = wxPyBeginAllowThreads();
25429 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
25430 wxPyEndAllowThreads(__tstate);
25431 if (PyErr_Occurred()) SWIG_fail;
25432 }
25433 {
25434 resultobj = wxPyMake_wxObject(result, (bool)0);
25435 }
25436 return resultobj;
25437fail:
25438 return NULL;
d14a1e28
RD
25439}
25440
25441
0085ce49
RD
25442SWIGINTERN PyObject *_wrap_ToolBarBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25443 PyObject *resultobj = 0;
25444 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25445 bool result;
25446 void *argp1 = 0 ;
25447 int res1 = 0 ;
25448 PyObject *swig_obj[1] ;
25449
25450 if (!args) SWIG_fail;
25451 swig_obj[0] = args;
25452 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25453 if (!SWIG_IsOK(res1)) {
25454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_IsVertical" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25455 }
25456 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25457 {
25458 PyThreadState* __tstate = wxPyBeginAllowThreads();
25459 result = (bool)(arg1)->IsVertical();
25460 wxPyEndAllowThreads(__tstate);
25461 if (PyErr_Occurred()) SWIG_fail;
25462 }
25463 {
25464 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25465 }
25466 return resultobj;
25467fail:
25468 return NULL;
25469}
25470
25471
25472SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25473 PyObject *resultobj = 0;
25474 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25475 size_t result;
25476 void *argp1 = 0 ;
25477 int res1 = 0 ;
25478 PyObject *swig_obj[1] ;
25479
25480 if (!args) SWIG_fail;
25481 swig_obj[0] = args;
25482 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25483 if (!SWIG_IsOK(res1)) {
25484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolsCount" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25485 }
25486 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25487 {
25488 PyThreadState* __tstate = wxPyBeginAllowThreads();
25489 result = (size_t)((wxToolBarBase const *)arg1)->GetToolsCount();
25490 wxPyEndAllowThreads(__tstate);
25491 if (PyErr_Occurred()) SWIG_fail;
25492 }
25493 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
25494 return resultobj;
25495fail:
25496 return NULL;
25497}
25498
25499
25500SWIGINTERN PyObject *ToolBarBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25501 PyObject *obj;
25502 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25503 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarBase, SWIG_NewClientData(obj));
25504 return SWIG_Py_Void();
25505}
25506
25507SWIGINTERN PyObject *_wrap_new_ToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25508 PyObject *resultobj = 0;
25509 wxWindow *arg1 = (wxWindow *) 0 ;
25510 int arg2 = (int) -1 ;
25511 wxPoint const &arg3_defvalue = wxDefaultPosition ;
25512 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
25513 wxSize const &arg4_defvalue = wxDefaultSize ;
25514 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
25515 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25516 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
25517 wxString *arg6 = (wxString *) &arg6_defvalue ;
25518 wxToolBar *result = 0 ;
25519 void *argp1 = 0 ;
25520 int res1 = 0 ;
25521 int val2 ;
25522 int ecode2 = 0 ;
25523 wxPoint temp3 ;
25524 wxSize temp4 ;
25525 long val5 ;
25526 int ecode5 = 0 ;
25527 bool temp6 = false ;
25528 PyObject * obj0 = 0 ;
25529 PyObject * obj1 = 0 ;
25530 PyObject * obj2 = 0 ;
25531 PyObject * obj3 = 0 ;
25532 PyObject * obj4 = 0 ;
25533 PyObject * obj5 = 0 ;
25534 char * kwnames[] = {
25535 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25536 };
25537
25538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25539 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25540 if (!SWIG_IsOK(res1)) {
25541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToolBar" "', expected argument " "1"" of type '" "wxWindow *""'");
25542 }
25543 arg1 = reinterpret_cast< wxWindow * >(argp1);
25544 if (obj1) {
25545 ecode2 = SWIG_AsVal_int(obj1, &val2);
25546 if (!SWIG_IsOK(ecode2)) {
25547 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolBar" "', expected argument " "2"" of type '" "int""'");
25548 }
25549 arg2 = static_cast< int >(val2);
25550 }
25551 if (obj2) {
25552 {
25553 arg3 = &temp3;
25554 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
25555 }
25556 }
25557 if (obj3) {
093d3ff1 25558 {
0085ce49
RD
25559 arg4 = &temp4;
25560 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 25561 }
0085ce49
RD
25562 }
25563 if (obj4) {
25564 ecode5 = SWIG_AsVal_long(obj4, &val5);
25565 if (!SWIG_IsOK(ecode5)) {
25566 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ToolBar" "', expected argument " "5"" of type '" "long""'");
25567 }
25568 arg5 = static_cast< long >(val5);
25569 }
25570 if (obj5) {
d14a1e28 25571 {
0085ce49
RD
25572 arg6 = wxString_in_helper(obj5);
25573 if (arg6 == NULL) SWIG_fail;
25574 temp6 = true;
d14a1e28 25575 }
0085ce49
RD
25576 }
25577 {
25578 if (!wxPyCheckForApp()) SWIG_fail;
25579 PyThreadState* __tstate = wxPyBeginAllowThreads();
25580 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
25581 wxPyEndAllowThreads(__tstate);
25582 if (PyErr_Occurred()) SWIG_fail;
25583 }
25584 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_NEW | 0 );
25585 {
25586 if (temp6)
25587 delete arg6;
25588 }
25589 return resultobj;
25590fail:
25591 {
25592 if (temp6)
25593 delete arg6;
25594 }
25595 return NULL;
d14a1e28
RD
25596}
25597
25598
0085ce49
RD
25599SWIGINTERN PyObject *_wrap_new_PreToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25600 PyObject *resultobj = 0;
25601 wxToolBar *result = 0 ;
25602
25603 if (!SWIG_Python_UnpackTuple(args,"new_PreToolBar",0,0,0)) SWIG_fail;
25604 {
25605 if (!wxPyCheckForApp()) SWIG_fail;
25606 PyThreadState* __tstate = wxPyBeginAllowThreads();
25607 result = (wxToolBar *)new wxToolBar();
25608 wxPyEndAllowThreads(__tstate);
25609 if (PyErr_Occurred()) SWIG_fail;
25610 }
25611 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_OWN | 0 );
25612 return resultobj;
25613fail:
25614 return NULL;
25615}
25616
25617
25618SWIGINTERN PyObject *_wrap_ToolBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25619 PyObject *resultobj = 0;
25620 wxToolBar *arg1 = (wxToolBar *) 0 ;
25621 wxWindow *arg2 = (wxWindow *) 0 ;
25622 int arg3 = (int) -1 ;
25623 wxPoint const &arg4_defvalue = wxDefaultPosition ;
25624 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
25625 wxSize const &arg5_defvalue = wxDefaultSize ;
25626 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
25627 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25628 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
25629 wxString *arg7 = (wxString *) &arg7_defvalue ;
25630 bool result;
25631 void *argp1 = 0 ;
25632 int res1 = 0 ;
25633 void *argp2 = 0 ;
25634 int res2 = 0 ;
25635 int val3 ;
25636 int ecode3 = 0 ;
25637 wxPoint temp4 ;
25638 wxSize temp5 ;
25639 long val6 ;
25640 int ecode6 = 0 ;
25641 bool temp7 = false ;
25642 PyObject * obj0 = 0 ;
25643 PyObject * obj1 = 0 ;
25644 PyObject * obj2 = 0 ;
25645 PyObject * obj3 = 0 ;
25646 PyObject * obj4 = 0 ;
25647 PyObject * obj5 = 0 ;
25648 PyObject * obj6 = 0 ;
25649 char * kwnames[] = {
25650 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25651 };
25652
25653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
25655 if (!SWIG_IsOK(res1)) {
25656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_Create" "', expected argument " "1"" of type '" "wxToolBar *""'");
25657 }
25658 arg1 = reinterpret_cast< wxToolBar * >(argp1);
25659 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25660 if (!SWIG_IsOK(res2)) {
25661 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
25662 }
25663 arg2 = reinterpret_cast< wxWindow * >(argp2);
25664 if (obj2) {
25665 ecode3 = SWIG_AsVal_int(obj2, &val3);
25666 if (!SWIG_IsOK(ecode3)) {
25667 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_Create" "', expected argument " "3"" of type '" "int""'");
25668 }
25669 arg3 = static_cast< int >(val3);
25670 }
25671 if (obj3) {
25672 {
25673 arg4 = &temp4;
25674 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
22bfe96c 25675 }
0085ce49
RD
25676 }
25677 if (obj4) {
22bfe96c 25678 {
0085ce49
RD
25679 arg5 = &temp5;
25680 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
22bfe96c 25681 }
0085ce49
RD
25682 }
25683 if (obj5) {
25684 ecode6 = SWIG_AsVal_long(obj5, &val6);
25685 if (!SWIG_IsOK(ecode6)) {
25686 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBar_Create" "', expected argument " "6"" of type '" "long""'");
25687 }
25688 arg6 = static_cast< long >(val6);
25689 }
25690 if (obj6) {
22bfe96c 25691 {
0085ce49
RD
25692 arg7 = wxString_in_helper(obj6);
25693 if (arg7 == NULL) SWIG_fail;
25694 temp7 = true;
22bfe96c 25695 }
0085ce49
RD
25696 }
25697 {
25698 PyThreadState* __tstate = wxPyBeginAllowThreads();
25699 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
25700 wxPyEndAllowThreads(__tstate);
25701 if (PyErr_Occurred()) SWIG_fail;
25702 }
25703 {
25704 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25705 }
25706 {
25707 if (temp7)
25708 delete arg7;
25709 }
25710 return resultobj;
25711fail:
25712 {
25713 if (temp7)
25714 delete arg7;
25715 }
25716 return NULL;
25717}
25718
25719
0085ce49
RD
25720SWIGINTERN PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25721 PyObject *resultobj = 0;
25722 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
25723 SwigValueWrapper<wxVisualAttributes > result;
25724 int val1 ;
25725 int ecode1 = 0 ;
25726 PyObject * obj0 = 0 ;
25727 char * kwnames[] = {
25728 (char *) "variant", NULL
25729 };
25730
25731 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
25732 if (obj0) {
25733 ecode1 = SWIG_AsVal_int(obj0, &val1);
25734 if (!SWIG_IsOK(ecode1)) {
25735 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
25736 }
25737 arg1 = static_cast< wxWindowVariant >(val1);
25738 }
25739 {
25740 if (!wxPyCheckForApp()) SWIG_fail;
25741 PyThreadState* __tstate = wxPyBeginAllowThreads();
25742 result = wxToolBar::GetClassDefaultAttributes(arg1);
25743 wxPyEndAllowThreads(__tstate);
25744 if (PyErr_Occurred()) SWIG_fail;
25745 }
25746 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
25747 return resultobj;
25748fail:
25749 return NULL;
22bfe96c
RD
25750}
25751
25752
0085ce49
RD
25753SWIGINTERN PyObject *ToolBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25754 PyObject *obj;
25755 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25756 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBar, SWIG_NewClientData(obj));
25757 return SWIG_Py_Void();
d14a1e28 25758}
0085ce49
RD
25759
25760SWIGINTERN PyObject *ToolBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25761 return SWIG_Python_InitShadowInstance(args);
b2dc1044
RD
25762}
25763
0085ce49
RD
25764SWIGINTERN int ListCtrlNameStr_set(PyObject *) {
25765 SWIG_Error(SWIG_AttributeError,"Variable ListCtrlNameStr is read-only.");
25766 return 1;
25767}
b2dc1044 25768
0085ce49
RD
25769
25770SWIGINTERN PyObject *ListCtrlNameStr_get(void) {
25771 PyObject *pyobj = 0;
25772
25773 {
b2dc1044 25774#if wxUSE_UNICODE
0085ce49 25775 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
b2dc1044 25776#else
0085ce49 25777 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
b2dc1044 25778#endif
0085ce49
RD
25779 }
25780 return pyobj;
25781}
25782
25783
25784SWIGINTERN PyObject *_wrap_new_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25785 PyObject *resultobj = 0;
25786 wxColour const &arg1_defvalue = wxNullColour ;
25787 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
25788 wxColour const &arg2_defvalue = wxNullColour ;
25789 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
25790 wxFont const &arg3_defvalue = wxNullFont ;
25791 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
25792 wxListItemAttr *result = 0 ;
25793 wxColour temp1 ;
25794 wxColour temp2 ;
25795 void *argp3 = 0 ;
25796 int res3 = 0 ;
25797 PyObject * obj0 = 0 ;
25798 PyObject * obj1 = 0 ;
25799 PyObject * obj2 = 0 ;
25800 char * kwnames[] = {
25801 (char *) "colText",(char *) "colBack",(char *) "font", NULL
25802 };
25803
25804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25805 if (obj0) {
d14a1e28 25806 {
0085ce49
RD
25807 arg1 = &temp1;
25808 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
d14a1e28 25809 }
0085ce49
RD
25810 }
25811 if (obj1) {
d14a1e28 25812 {
0085ce49
RD
25813 arg2 = &temp2;
25814 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d14a1e28 25815 }
0085ce49
RD
25816 }
25817 if (obj2) {
25818 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
25819 if (!SWIG_IsOK(res3)) {
25820 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
d14a1e28 25821 }
0085ce49
RD
25822 if (!argp3) {
25823 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
d14a1e28 25824 }
0085ce49
RD
25825 arg3 = reinterpret_cast< wxFont * >(argp3);
25826 }
25827 {
25828 PyThreadState* __tstate = wxPyBeginAllowThreads();
25829 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
25830 wxPyEndAllowThreads(__tstate);
25831 if (PyErr_Occurred()) SWIG_fail;
25832 }
25833 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_NEW | 0 );
25834 return resultobj;
25835fail:
25836 return NULL;
d14a1e28
RD
25837}
25838
25839
0085ce49
RD
25840SWIGINTERN PyObject *_wrap_delete_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25841 PyObject *resultobj = 0;
25842 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25843 void *argp1 = 0 ;
25844 int res1 = 0 ;
25845 PyObject *swig_obj[1] ;
25846
25847 if (!args) SWIG_fail;
25848 swig_obj[0] = args;
25849 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_DISOWN | 0 );
25850 if (!SWIG_IsOK(res1)) {
25851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItemAttr" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25852 }
25853 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25854 {
25855 PyThreadState* __tstate = wxPyBeginAllowThreads();
25856 delete arg1;
d14a1e28 25857
0085ce49
RD
25858 wxPyEndAllowThreads(__tstate);
25859 if (PyErr_Occurred()) SWIG_fail;
25860 }
25861 resultobj = SWIG_Py_Void();
25862 return resultobj;
25863fail:
25864 return NULL;
25865}
25866
25867
25868SWIGINTERN PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25869 PyObject *resultobj = 0;
25870 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25871 wxColour *arg2 = 0 ;
25872 void *argp1 = 0 ;
25873 int res1 = 0 ;
25874 wxColour temp2 ;
25875 PyObject * obj0 = 0 ;
25876 PyObject * obj1 = 0 ;
25877 char * kwnames[] = {
25878 (char *) "self",(char *) "colText", NULL
25879 };
25880
25881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
25882 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25883 if (!SWIG_IsOK(res1)) {
25884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25885 }
25886 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25887 {
25888 arg2 = &temp2;
25889 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25890 }
25891 {
25892 PyThreadState* __tstate = wxPyBeginAllowThreads();
25893 (arg1)->SetTextColour((wxColour const &)*arg2);
25894 wxPyEndAllowThreads(__tstate);
25895 if (PyErr_Occurred()) SWIG_fail;
25896 }
25897 resultobj = SWIG_Py_Void();
25898 return resultobj;
25899fail:
25900 return NULL;
25901}
25902
25903
25904SWIGINTERN PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25905 PyObject *resultobj = 0;
25906 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25907 wxColour *arg2 = 0 ;
25908 void *argp1 = 0 ;
25909 int res1 = 0 ;
25910 wxColour temp2 ;
25911 PyObject * obj0 = 0 ;
25912 PyObject * obj1 = 0 ;
25913 char * kwnames[] = {
25914 (char *) "self",(char *) "colBack", NULL
25915 };
25916
25917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
25918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25919 if (!SWIG_IsOK(res1)) {
25920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25921 }
25922 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25923 {
25924 arg2 = &temp2;
25925 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25926 }
25927 {
25928 PyThreadState* __tstate = wxPyBeginAllowThreads();
25929 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
25930 wxPyEndAllowThreads(__tstate);
25931 if (PyErr_Occurred()) SWIG_fail;
25932 }
25933 resultobj = SWIG_Py_Void();
25934 return resultobj;
25935fail:
25936 return NULL;
25937}
25938
25939
25940SWIGINTERN PyObject *_wrap_ListItemAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25941 PyObject *resultobj = 0;
25942 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25943 wxFont *arg2 = 0 ;
25944 void *argp1 = 0 ;
25945 int res1 = 0 ;
25946 void *argp2 = 0 ;
25947 int res2 = 0 ;
25948 PyObject * obj0 = 0 ;
25949 PyObject * obj1 = 0 ;
25950 char * kwnames[] = {
25951 (char *) "self",(char *) "font", NULL
25952 };
25953
25954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
25955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25956 if (!SWIG_IsOK(res1)) {
25957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25958 }
25959 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25960 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
25961 if (!SWIG_IsOK(res2)) {
25962 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25963 }
25964 if (!argp2) {
25965 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25966 }
25967 arg2 = reinterpret_cast< wxFont * >(argp2);
25968 {
25969 PyThreadState* __tstate = wxPyBeginAllowThreads();
25970 (arg1)->SetFont((wxFont const &)*arg2);
25971 wxPyEndAllowThreads(__tstate);
25972 if (PyErr_Occurred()) SWIG_fail;
25973 }
25974 resultobj = SWIG_Py_Void();
25975 return resultobj;
25976fail:
25977 return NULL;
d14a1e28
RD
25978}
25979
25980
0085ce49
RD
25981SWIGINTERN PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25982 PyObject *resultobj = 0;
25983 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25984 bool result;
25985 void *argp1 = 0 ;
25986 int res1 = 0 ;
25987 PyObject *swig_obj[1] ;
25988
25989 if (!args) SWIG_fail;
25990 swig_obj[0] = args;
25991 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25992 if (!SWIG_IsOK(res1)) {
25993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25994 }
25995 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25996 {
25997 PyThreadState* __tstate = wxPyBeginAllowThreads();
25998 result = (bool)(arg1)->HasTextColour();
25999 wxPyEndAllowThreads(__tstate);
26000 if (PyErr_Occurred()) SWIG_fail;
26001 }
26002 {
26003 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26004 }
26005 return resultobj;
26006fail:
26007 return NULL;
d14a1e28
RD
26008}
26009
26010
0085ce49
RD
26011SWIGINTERN PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26012 PyObject *resultobj = 0;
26013 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26014 bool result;
26015 void *argp1 = 0 ;
26016 int res1 = 0 ;
26017 PyObject *swig_obj[1] ;
26018
26019 if (!args) SWIG_fail;
26020 swig_obj[0] = args;
26021 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26022 if (!SWIG_IsOK(res1)) {
26023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26024 }
26025 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26026 {
26027 PyThreadState* __tstate = wxPyBeginAllowThreads();
26028 result = (bool)(arg1)->HasBackgroundColour();
26029 wxPyEndAllowThreads(__tstate);
26030 if (PyErr_Occurred()) SWIG_fail;
26031 }
26032 {
26033 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26034 }
26035 return resultobj;
26036fail:
26037 return NULL;
d14a1e28
RD
26038}
26039
26040
0085ce49
RD
26041SWIGINTERN PyObject *_wrap_ListItemAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26042 PyObject *resultobj = 0;
26043 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26044 bool result;
26045 void *argp1 = 0 ;
26046 int res1 = 0 ;
26047 PyObject *swig_obj[1] ;
26048
26049 if (!args) SWIG_fail;
26050 swig_obj[0] = args;
26051 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26052 if (!SWIG_IsOK(res1)) {
26053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26054 }
26055 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26056 {
26057 PyThreadState* __tstate = wxPyBeginAllowThreads();
26058 result = (bool)(arg1)->HasFont();
26059 wxPyEndAllowThreads(__tstate);
26060 if (PyErr_Occurred()) SWIG_fail;
26061 }
26062 {
26063 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26064 }
26065 return resultobj;
26066fail:
26067 return NULL;
d14a1e28
RD
26068}
26069
26070
0085ce49
RD
26071SWIGINTERN PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26072 PyObject *resultobj = 0;
26073 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26074 wxColour result;
26075 void *argp1 = 0 ;
26076 int res1 = 0 ;
26077 PyObject *swig_obj[1] ;
26078
26079 if (!args) SWIG_fail;
26080 swig_obj[0] = args;
26081 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26082 if (!SWIG_IsOK(res1)) {
26083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26084 }
26085 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26086 {
26087 PyThreadState* __tstate = wxPyBeginAllowThreads();
26088 result = (arg1)->GetTextColour();
26089 wxPyEndAllowThreads(__tstate);
26090 if (PyErr_Occurred()) SWIG_fail;
26091 }
26092 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26093 return resultobj;
26094fail:
26095 return NULL;
d14a1e28
RD
26096}
26097
26098
0085ce49
RD
26099SWIGINTERN PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26100 PyObject *resultobj = 0;
26101 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26102 wxColour result;
26103 void *argp1 = 0 ;
26104 int res1 = 0 ;
26105 PyObject *swig_obj[1] ;
26106
26107 if (!args) SWIG_fail;
26108 swig_obj[0] = args;
26109 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26110 if (!SWIG_IsOK(res1)) {
26111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26112 }
26113 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26114 {
26115 PyThreadState* __tstate = wxPyBeginAllowThreads();
26116 result = (arg1)->GetBackgroundColour();
26117 wxPyEndAllowThreads(__tstate);
26118 if (PyErr_Occurred()) SWIG_fail;
26119 }
26120 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26121 return resultobj;
26122fail:
26123 return NULL;
d14a1e28
RD
26124}
26125
26126
0085ce49
RD
26127SWIGINTERN PyObject *_wrap_ListItemAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26128 PyObject *resultobj = 0;
26129 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26130 wxFont result;
26131 void *argp1 = 0 ;
26132 int res1 = 0 ;
26133 PyObject *swig_obj[1] ;
26134
26135 if (!args) SWIG_fail;
26136 swig_obj[0] = args;
26137 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26138 if (!SWIG_IsOK(res1)) {
26139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26140 }
26141 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26142 {
26143 PyThreadState* __tstate = wxPyBeginAllowThreads();
26144 result = (arg1)->GetFont();
26145 wxPyEndAllowThreads(__tstate);
26146 if (PyErr_Occurred()) SWIG_fail;
26147 }
26148 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
26149 return resultobj;
26150fail:
26151 return NULL;
26152}
26153
26154
26155SWIGINTERN PyObject *_wrap_ListItemAttr_AssignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26156 PyObject *resultobj = 0;
26157 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26158 wxListItemAttr *arg2 = 0 ;
26159 void *argp1 = 0 ;
26160 int res1 = 0 ;
26161 void *argp2 = 0 ;
26162 int res2 = 0 ;
26163 PyObject * obj0 = 0 ;
26164 PyObject * obj1 = 0 ;
26165 char * kwnames[] = {
26166 (char *) "self",(char *) "source", NULL
26167 };
26168
26169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_AssignFrom",kwnames,&obj0,&obj1)) SWIG_fail;
26170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26171 if (!SWIG_IsOK(res1)) {
26172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26173 }
26174 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26175 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItemAttr, 0 | 0);
26176 if (!SWIG_IsOK(res2)) {
26177 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26178 }
26179 if (!argp2) {
26180 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26181 }
26182 arg2 = reinterpret_cast< wxListItemAttr * >(argp2);
26183 {
26184 PyThreadState* __tstate = wxPyBeginAllowThreads();
26185 (arg1)->AssignFrom((wxListItemAttr const &)*arg2);
26186 wxPyEndAllowThreads(__tstate);
26187 if (PyErr_Occurred()) SWIG_fail;
26188 }
26189 resultobj = SWIG_Py_Void();
26190 return resultobj;
26191fail:
26192 return NULL;
d14a1e28
RD
26193}
26194
26195
0085ce49
RD
26196SWIGINTERN PyObject *_wrap_ListItemAttr_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26197 PyObject *resultobj = 0;
26198 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26199 void *argp1 = 0 ;
26200 int res1 = 0 ;
26201 PyObject *swig_obj[1] ;
26202
26203 if (!args) SWIG_fail;
26204 swig_obj[0] = args;
26205 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26206 if (!SWIG_IsOK(res1)) {
26207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_Destroy" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26208 }
26209 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26210 {
26211 PyThreadState* __tstate = wxPyBeginAllowThreads();
26212 wxListItemAttr_Destroy(arg1);
26213 wxPyEndAllowThreads(__tstate);
26214 if (PyErr_Occurred()) SWIG_fail;
26215 }
26216 resultobj = SWIG_Py_Void();
26217 return resultobj;
26218fail:
26219 return NULL;
d14a1e28
RD
26220}
26221
26222
0085ce49
RD
26223SWIGINTERN PyObject *ListItemAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26224 PyObject *obj;
26225 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26226 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItemAttr, SWIG_NewClientData(obj));
26227 return SWIG_Py_Void();
d14a1e28
RD
26228}
26229
0085ce49
RD
26230SWIGINTERN PyObject *ListItemAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26231 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
26232}
26233
0085ce49
RD
26234SWIGINTERN PyObject *_wrap_new_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26235 PyObject *resultobj = 0;
26236 wxListItem *result = 0 ;
26237
26238 if (!SWIG_Python_UnpackTuple(args,"new_ListItem",0,0,0)) SWIG_fail;
26239 {
26240 PyThreadState* __tstate = wxPyBeginAllowThreads();
26241 result = (wxListItem *)new wxListItem();
26242 wxPyEndAllowThreads(__tstate);
26243 if (PyErr_Occurred()) SWIG_fail;
26244 }
26245 {
26246 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
26247 }
26248 return resultobj;
26249fail:
26250 return NULL;
d14a1e28
RD
26251}
26252
26253
0085ce49
RD
26254SWIGINTERN PyObject *_wrap_delete_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26255 PyObject *resultobj = 0;
26256 wxListItem *arg1 = (wxListItem *) 0 ;
26257 void *argp1 = 0 ;
26258 int res1 = 0 ;
26259 PyObject *swig_obj[1] ;
26260
26261 if (!args) SWIG_fail;
26262 swig_obj[0] = args;
26263 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, SWIG_POINTER_DISOWN | 0 );
26264 if (!SWIG_IsOK(res1)) {
26265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItem" "', expected argument " "1"" of type '" "wxListItem *""'");
26266 }
26267 arg1 = reinterpret_cast< wxListItem * >(argp1);
26268 {
26269 PyThreadState* __tstate = wxPyBeginAllowThreads();
26270 delete arg1;
d14a1e28 26271
0085ce49
RD
26272 wxPyEndAllowThreads(__tstate);
26273 if (PyErr_Occurred()) SWIG_fail;
26274 }
26275 resultobj = SWIG_Py_Void();
26276 return resultobj;
26277fail:
26278 return NULL;
d14a1e28
RD
26279}
26280
26281
0085ce49
RD
26282SWIGINTERN PyObject *_wrap_ListItem_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26283 PyObject *resultobj = 0;
26284 wxListItem *arg1 = (wxListItem *) 0 ;
26285 void *argp1 = 0 ;
26286 int res1 = 0 ;
26287 PyObject *swig_obj[1] ;
26288
26289 if (!args) SWIG_fail;
26290 swig_obj[0] = args;
26291 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26292 if (!SWIG_IsOK(res1)) {
26293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_Clear" "', expected argument " "1"" of type '" "wxListItem *""'");
26294 }
26295 arg1 = reinterpret_cast< wxListItem * >(argp1);
26296 {
26297 PyThreadState* __tstate = wxPyBeginAllowThreads();
26298 (arg1)->Clear();
26299 wxPyEndAllowThreads(__tstate);
26300 if (PyErr_Occurred()) SWIG_fail;
26301 }
26302 resultobj = SWIG_Py_Void();
26303 return resultobj;
26304fail:
26305 return NULL;
d14a1e28
RD
26306}
26307
26308
0085ce49
RD
26309SWIGINTERN PyObject *_wrap_ListItem_ClearAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26310 PyObject *resultobj = 0;
26311 wxListItem *arg1 = (wxListItem *) 0 ;
26312 void *argp1 = 0 ;
26313 int res1 = 0 ;
26314 PyObject *swig_obj[1] ;
26315
26316 if (!args) SWIG_fail;
26317 swig_obj[0] = args;
26318 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26319 if (!SWIG_IsOK(res1)) {
26320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_ClearAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26321 }
26322 arg1 = reinterpret_cast< wxListItem * >(argp1);
26323 {
26324 PyThreadState* __tstate = wxPyBeginAllowThreads();
26325 (arg1)->ClearAttributes();
26326 wxPyEndAllowThreads(__tstate);
26327 if (PyErr_Occurred()) SWIG_fail;
26328 }
26329 resultobj = SWIG_Py_Void();
26330 return resultobj;
26331fail:
26332 return NULL;
26333}
26334
26335
26336SWIGINTERN PyObject *_wrap_ListItem_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26337 PyObject *resultobj = 0;
26338 wxListItem *arg1 = (wxListItem *) 0 ;
26339 long arg2 ;
26340 void *argp1 = 0 ;
26341 int res1 = 0 ;
26342 long val2 ;
26343 int ecode2 = 0 ;
26344 PyObject * obj0 = 0 ;
26345 PyObject * obj1 = 0 ;
26346 char * kwnames[] = {
26347 (char *) "self",(char *) "mask", NULL
26348 };
26349
26350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
26351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26352 if (!SWIG_IsOK(res1)) {
26353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26354 }
26355 arg1 = reinterpret_cast< wxListItem * >(argp1);
26356 ecode2 = SWIG_AsVal_long(obj1, &val2);
26357 if (!SWIG_IsOK(ecode2)) {
26358 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetMask" "', expected argument " "2"" of type '" "long""'");
26359 }
26360 arg2 = static_cast< long >(val2);
26361 {
26362 PyThreadState* __tstate = wxPyBeginAllowThreads();
26363 (arg1)->SetMask(arg2);
26364 wxPyEndAllowThreads(__tstate);
26365 if (PyErr_Occurred()) SWIG_fail;
26366 }
26367 resultobj = SWIG_Py_Void();
26368 return resultobj;
26369fail:
26370 return NULL;
26371}
26372
26373
26374SWIGINTERN PyObject *_wrap_ListItem_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26375 PyObject *resultobj = 0;
26376 wxListItem *arg1 = (wxListItem *) 0 ;
26377 long arg2 ;
26378 void *argp1 = 0 ;
26379 int res1 = 0 ;
26380 long val2 ;
26381 int ecode2 = 0 ;
26382 PyObject * obj0 = 0 ;
26383 PyObject * obj1 = 0 ;
26384 char * kwnames[] = {
26385 (char *) "self",(char *) "id", NULL
26386 };
26387
26388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
26389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26390 if (!SWIG_IsOK(res1)) {
26391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26392 }
26393 arg1 = reinterpret_cast< wxListItem * >(argp1);
26394 ecode2 = SWIG_AsVal_long(obj1, &val2);
26395 if (!SWIG_IsOK(ecode2)) {
26396 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetId" "', expected argument " "2"" of type '" "long""'");
26397 }
26398 arg2 = static_cast< long >(val2);
26399 {
26400 PyThreadState* __tstate = wxPyBeginAllowThreads();
26401 (arg1)->SetId(arg2);
26402 wxPyEndAllowThreads(__tstate);
26403 if (PyErr_Occurred()) SWIG_fail;
26404 }
26405 resultobj = SWIG_Py_Void();
26406 return resultobj;
26407fail:
26408 return NULL;
26409}
26410
26411
26412SWIGINTERN PyObject *_wrap_ListItem_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26413 PyObject *resultobj = 0;
26414 wxListItem *arg1 = (wxListItem *) 0 ;
26415 int arg2 ;
26416 void *argp1 = 0 ;
26417 int res1 = 0 ;
26418 int val2 ;
26419 int ecode2 = 0 ;
26420 PyObject * obj0 = 0 ;
26421 PyObject * obj1 = 0 ;
26422 char * kwnames[] = {
26423 (char *) "self",(char *) "col", NULL
26424 };
26425
26426 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
26427 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26428 if (!SWIG_IsOK(res1)) {
26429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26430 }
26431 arg1 = reinterpret_cast< wxListItem * >(argp1);
26432 ecode2 = SWIG_AsVal_int(obj1, &val2);
26433 if (!SWIG_IsOK(ecode2)) {
26434 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetColumn" "', expected argument " "2"" of type '" "int""'");
26435 }
26436 arg2 = static_cast< int >(val2);
26437 {
26438 PyThreadState* __tstate = wxPyBeginAllowThreads();
26439 (arg1)->SetColumn(arg2);
26440 wxPyEndAllowThreads(__tstate);
26441 if (PyErr_Occurred()) SWIG_fail;
26442 }
26443 resultobj = SWIG_Py_Void();
26444 return resultobj;
26445fail:
26446 return NULL;
26447}
26448
26449
26450SWIGINTERN PyObject *_wrap_ListItem_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26451 PyObject *resultobj = 0;
26452 wxListItem *arg1 = (wxListItem *) 0 ;
26453 long arg2 ;
26454 void *argp1 = 0 ;
26455 int res1 = 0 ;
26456 long val2 ;
26457 int ecode2 = 0 ;
26458 PyObject * obj0 = 0 ;
26459 PyObject * obj1 = 0 ;
26460 char * kwnames[] = {
26461 (char *) "self",(char *) "state", NULL
26462 };
26463
26464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) SWIG_fail;
26465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26466 if (!SWIG_IsOK(res1)) {
26467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26468 }
26469 arg1 = reinterpret_cast< wxListItem * >(argp1);
26470 ecode2 = SWIG_AsVal_long(obj1, &val2);
26471 if (!SWIG_IsOK(ecode2)) {
26472 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetState" "', expected argument " "2"" of type '" "long""'");
26473 }
26474 arg2 = static_cast< long >(val2);
26475 {
26476 PyThreadState* __tstate = wxPyBeginAllowThreads();
26477 (arg1)->SetState(arg2);
26478 wxPyEndAllowThreads(__tstate);
26479 if (PyErr_Occurred()) SWIG_fail;
26480 }
26481 resultobj = SWIG_Py_Void();
26482 return resultobj;
26483fail:
26484 return NULL;
26485}
26486
26487
26488SWIGINTERN PyObject *_wrap_ListItem_SetStateMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26489 PyObject *resultobj = 0;
26490 wxListItem *arg1 = (wxListItem *) 0 ;
26491 long arg2 ;
26492 void *argp1 = 0 ;
26493 int res1 = 0 ;
26494 long val2 ;
26495 int ecode2 = 0 ;
26496 PyObject * obj0 = 0 ;
26497 PyObject * obj1 = 0 ;
26498 char * kwnames[] = {
26499 (char *) "self",(char *) "stateMask", NULL
26500 };
26501
26502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) SWIG_fail;
26503 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26504 if (!SWIG_IsOK(res1)) {
26505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetStateMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26506 }
26507 arg1 = reinterpret_cast< wxListItem * >(argp1);
26508 ecode2 = SWIG_AsVal_long(obj1, &val2);
26509 if (!SWIG_IsOK(ecode2)) {
26510 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetStateMask" "', expected argument " "2"" of type '" "long""'");
26511 }
26512 arg2 = static_cast< long >(val2);
26513 {
26514 PyThreadState* __tstate = wxPyBeginAllowThreads();
26515 (arg1)->SetStateMask(arg2);
26516 wxPyEndAllowThreads(__tstate);
26517 if (PyErr_Occurred()) SWIG_fail;
26518 }
26519 resultobj = SWIG_Py_Void();
26520 return resultobj;
26521fail:
26522 return NULL;
26523}
26524
26525
26526SWIGINTERN PyObject *_wrap_ListItem_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26527 PyObject *resultobj = 0;
26528 wxListItem *arg1 = (wxListItem *) 0 ;
26529 wxString *arg2 = 0 ;
26530 void *argp1 = 0 ;
26531 int res1 = 0 ;
26532 bool temp2 = false ;
26533 PyObject * obj0 = 0 ;
26534 PyObject * obj1 = 0 ;
26535 char * kwnames[] = {
26536 (char *) "self",(char *) "text", NULL
26537 };
26538
26539 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) SWIG_fail;
26540 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26541 if (!SWIG_IsOK(res1)) {
26542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26543 }
26544 arg1 = reinterpret_cast< wxListItem * >(argp1);
26545 {
26546 arg2 = wxString_in_helper(obj1);
26547 if (arg2 == NULL) SWIG_fail;
26548 temp2 = true;
26549 }
26550 {
26551 PyThreadState* __tstate = wxPyBeginAllowThreads();
26552 (arg1)->SetText((wxString const &)*arg2);
26553 wxPyEndAllowThreads(__tstate);
26554 if (PyErr_Occurred()) SWIG_fail;
26555 }
26556 resultobj = SWIG_Py_Void();
26557 {
26558 if (temp2)
26559 delete arg2;
26560 }
26561 return resultobj;
26562fail:
26563 {
26564 if (temp2)
26565 delete arg2;
26566 }
26567 return NULL;
26568}
26569
26570
26571SWIGINTERN PyObject *_wrap_ListItem_SetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26572 PyObject *resultobj = 0;
26573 wxListItem *arg1 = (wxListItem *) 0 ;
26574 int arg2 ;
26575 void *argp1 = 0 ;
26576 int res1 = 0 ;
26577 int val2 ;
26578 int ecode2 = 0 ;
26579 PyObject * obj0 = 0 ;
26580 PyObject * obj1 = 0 ;
26581 char * kwnames[] = {
26582 (char *) "self",(char *) "image", NULL
26583 };
26584
26585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) SWIG_fail;
26586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26587 if (!SWIG_IsOK(res1)) {
26588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26589 }
26590 arg1 = reinterpret_cast< wxListItem * >(argp1);
26591 ecode2 = SWIG_AsVal_int(obj1, &val2);
26592 if (!SWIG_IsOK(ecode2)) {
26593 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetImage" "', expected argument " "2"" of type '" "int""'");
26594 }
26595 arg2 = static_cast< int >(val2);
26596 {
26597 PyThreadState* __tstate = wxPyBeginAllowThreads();
26598 (arg1)->SetImage(arg2);
26599 wxPyEndAllowThreads(__tstate);
26600 if (PyErr_Occurred()) SWIG_fail;
26601 }
26602 resultobj = SWIG_Py_Void();
26603 return resultobj;
26604fail:
26605 return NULL;
26606}
26607
26608
26609SWIGINTERN PyObject *_wrap_ListItem_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26610 PyObject *resultobj = 0;
26611 wxListItem *arg1 = (wxListItem *) 0 ;
26612 long arg2 ;
26613 void *argp1 = 0 ;
26614 int res1 = 0 ;
26615 long val2 ;
26616 int ecode2 = 0 ;
26617 PyObject * obj0 = 0 ;
26618 PyObject * obj1 = 0 ;
26619 char * kwnames[] = {
26620 (char *) "self",(char *) "data", NULL
26621 };
26622
26623 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
26624 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26625 if (!SWIG_IsOK(res1)) {
26626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26627 }
26628 arg1 = reinterpret_cast< wxListItem * >(argp1);
26629 ecode2 = SWIG_AsVal_long(obj1, &val2);
26630 if (!SWIG_IsOK(ecode2)) {
26631 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetData" "', expected argument " "2"" of type '" "long""'");
26632 }
26633 arg2 = static_cast< long >(val2);
26634 {
26635 PyThreadState* __tstate = wxPyBeginAllowThreads();
26636 (arg1)->SetData(arg2);
26637 wxPyEndAllowThreads(__tstate);
26638 if (PyErr_Occurred()) SWIG_fail;
26639 }
26640 resultobj = SWIG_Py_Void();
26641 return resultobj;
26642fail:
26643 return NULL;
26644}
26645
26646
26647SWIGINTERN PyObject *_wrap_ListItem_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26648 PyObject *resultobj = 0;
26649 wxListItem *arg1 = (wxListItem *) 0 ;
26650 int arg2 ;
26651 void *argp1 = 0 ;
26652 int res1 = 0 ;
26653 int val2 ;
26654 int ecode2 = 0 ;
26655 PyObject * obj0 = 0 ;
26656 PyObject * obj1 = 0 ;
26657 char * kwnames[] = {
26658 (char *) "self",(char *) "width", NULL
26659 };
26660
26661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
26662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26663 if (!SWIG_IsOK(res1)) {
26664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26665 }
26666 arg1 = reinterpret_cast< wxListItem * >(argp1);
26667 ecode2 = SWIG_AsVal_int(obj1, &val2);
26668 if (!SWIG_IsOK(ecode2)) {
26669 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetWidth" "', expected argument " "2"" of type '" "int""'");
26670 }
26671 arg2 = static_cast< int >(val2);
26672 {
26673 PyThreadState* __tstate = wxPyBeginAllowThreads();
26674 (arg1)->SetWidth(arg2);
26675 wxPyEndAllowThreads(__tstate);
26676 if (PyErr_Occurred()) SWIG_fail;
26677 }
26678 resultobj = SWIG_Py_Void();
26679 return resultobj;
26680fail:
26681 return NULL;
26682}
26683
26684
26685SWIGINTERN PyObject *_wrap_ListItem_SetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26686 PyObject *resultobj = 0;
26687 wxListItem *arg1 = (wxListItem *) 0 ;
26688 wxListColumnFormat arg2 ;
26689 void *argp1 = 0 ;
26690 int res1 = 0 ;
26691 int val2 ;
26692 int ecode2 = 0 ;
26693 PyObject * obj0 = 0 ;
26694 PyObject * obj1 = 0 ;
26695 char * kwnames[] = {
26696 (char *) "self",(char *) "align", NULL
26697 };
26698
26699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) SWIG_fail;
26700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26701 if (!SWIG_IsOK(res1)) {
26702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
26703 }
26704 arg1 = reinterpret_cast< wxListItem * >(argp1);
26705 ecode2 = SWIG_AsVal_int(obj1, &val2);
26706 if (!SWIG_IsOK(ecode2)) {
26707 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetAlign" "', expected argument " "2"" of type '" "wxListColumnFormat""'");
26708 }
26709 arg2 = static_cast< wxListColumnFormat >(val2);
26710 {
26711 PyThreadState* __tstate = wxPyBeginAllowThreads();
26712 (arg1)->SetAlign(arg2);
26713 wxPyEndAllowThreads(__tstate);
26714 if (PyErr_Occurred()) SWIG_fail;
26715 }
26716 resultobj = SWIG_Py_Void();
26717 return resultobj;
26718fail:
26719 return NULL;
26720}
26721
26722
26723SWIGINTERN PyObject *_wrap_ListItem_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26724 PyObject *resultobj = 0;
26725 wxListItem *arg1 = (wxListItem *) 0 ;
26726 wxColour *arg2 = 0 ;
26727 void *argp1 = 0 ;
26728 int res1 = 0 ;
26729 wxColour temp2 ;
26730 PyObject * obj0 = 0 ;
26731 PyObject * obj1 = 0 ;
26732 char * kwnames[] = {
26733 (char *) "self",(char *) "colText", NULL
26734 };
26735
26736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
26737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26738 if (!SWIG_IsOK(res1)) {
26739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetTextColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26740 }
26741 arg1 = reinterpret_cast< wxListItem * >(argp1);
26742 {
26743 arg2 = &temp2;
26744 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26745 }
26746 {
26747 PyThreadState* __tstate = wxPyBeginAllowThreads();
26748 (arg1)->SetTextColour((wxColour const &)*arg2);
26749 wxPyEndAllowThreads(__tstate);
26750 if (PyErr_Occurred()) SWIG_fail;
26751 }
26752 resultobj = SWIG_Py_Void();
26753 return resultobj;
26754fail:
26755 return NULL;
26756}
26757
26758
26759SWIGINTERN PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26760 PyObject *resultobj = 0;
26761 wxListItem *arg1 = (wxListItem *) 0 ;
26762 wxColour *arg2 = 0 ;
26763 void *argp1 = 0 ;
26764 int res1 = 0 ;
26765 wxColour temp2 ;
26766 PyObject * obj0 = 0 ;
26767 PyObject * obj1 = 0 ;
26768 char * kwnames[] = {
26769 (char *) "self",(char *) "colBack", NULL
26770 };
26771
26772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
26773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26774 if (!SWIG_IsOK(res1)) {
26775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26776 }
26777 arg1 = reinterpret_cast< wxListItem * >(argp1);
26778 {
26779 arg2 = &temp2;
26780 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26781 }
26782 {
26783 PyThreadState* __tstate = wxPyBeginAllowThreads();
26784 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
26785 wxPyEndAllowThreads(__tstate);
26786 if (PyErr_Occurred()) SWIG_fail;
26787 }
26788 resultobj = SWIG_Py_Void();
26789 return resultobj;
26790fail:
26791 return NULL;
26792}
26793
26794
26795SWIGINTERN PyObject *_wrap_ListItem_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26796 PyObject *resultobj = 0;
26797 wxListItem *arg1 = (wxListItem *) 0 ;
26798 wxFont *arg2 = 0 ;
26799 void *argp1 = 0 ;
26800 int res1 = 0 ;
26801 void *argp2 = 0 ;
26802 int res2 = 0 ;
26803 PyObject * obj0 = 0 ;
26804 PyObject * obj1 = 0 ;
26805 char * kwnames[] = {
26806 (char *) "self",(char *) "font", NULL
26807 };
26808
26809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26811 if (!SWIG_IsOK(res1)) {
26812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetFont" "', expected argument " "1"" of type '" "wxListItem *""'");
26813 }
26814 arg1 = reinterpret_cast< wxListItem * >(argp1);
26815 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26816 if (!SWIG_IsOK(res2)) {
26817 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26818 }
26819 if (!argp2) {
26820 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26821 }
26822 arg2 = reinterpret_cast< wxFont * >(argp2);
26823 {
26824 PyThreadState* __tstate = wxPyBeginAllowThreads();
26825 (arg1)->SetFont((wxFont const &)*arg2);
26826 wxPyEndAllowThreads(__tstate);
26827 if (PyErr_Occurred()) SWIG_fail;
26828 }
26829 resultobj = SWIG_Py_Void();
26830 return resultobj;
26831fail:
26832 return NULL;
d14a1e28
RD
26833}
26834
26835
0085ce49
RD
26836SWIGINTERN PyObject *_wrap_ListItem_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26837 PyObject *resultobj = 0;
26838 wxListItem *arg1 = (wxListItem *) 0 ;
26839 long result;
26840 void *argp1 = 0 ;
26841 int res1 = 0 ;
26842 PyObject *swig_obj[1] ;
26843
26844 if (!args) SWIG_fail;
26845 swig_obj[0] = args;
26846 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26847 if (!SWIG_IsOK(res1)) {
26848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26849 }
26850 arg1 = reinterpret_cast< wxListItem * >(argp1);
26851 {
26852 PyThreadState* __tstate = wxPyBeginAllowThreads();
26853 result = (long)(arg1)->GetMask();
26854 wxPyEndAllowThreads(__tstate);
26855 if (PyErr_Occurred()) SWIG_fail;
26856 }
26857 resultobj = SWIG_From_long(static_cast< long >(result));
26858 return resultobj;
26859fail:
26860 return NULL;
d14a1e28
RD
26861}
26862
26863
0085ce49
RD
26864SWIGINTERN PyObject *_wrap_ListItem_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26865 PyObject *resultobj = 0;
26866 wxListItem *arg1 = (wxListItem *) 0 ;
26867 long result;
26868 void *argp1 = 0 ;
26869 int res1 = 0 ;
26870 PyObject *swig_obj[1] ;
26871
26872 if (!args) SWIG_fail;
26873 swig_obj[0] = args;
26874 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26875 if (!SWIG_IsOK(res1)) {
26876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26877 }
26878 arg1 = reinterpret_cast< wxListItem * >(argp1);
26879 {
26880 PyThreadState* __tstate = wxPyBeginAllowThreads();
26881 result = (long)(arg1)->GetId();
26882 wxPyEndAllowThreads(__tstate);
26883 if (PyErr_Occurred()) SWIG_fail;
26884 }
26885 resultobj = SWIG_From_long(static_cast< long >(result));
26886 return resultobj;
26887fail:
26888 return NULL;
d14a1e28
RD
26889}
26890
26891
0085ce49
RD
26892SWIGINTERN PyObject *_wrap_ListItem_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26893 PyObject *resultobj = 0;
26894 wxListItem *arg1 = (wxListItem *) 0 ;
26895 int result;
26896 void *argp1 = 0 ;
26897 int res1 = 0 ;
26898 PyObject *swig_obj[1] ;
26899
26900 if (!args) SWIG_fail;
26901 swig_obj[0] = args;
26902 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26903 if (!SWIG_IsOK(res1)) {
26904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26905 }
26906 arg1 = reinterpret_cast< wxListItem * >(argp1);
26907 {
26908 PyThreadState* __tstate = wxPyBeginAllowThreads();
26909 result = (int)(arg1)->GetColumn();
26910 wxPyEndAllowThreads(__tstate);
26911 if (PyErr_Occurred()) SWIG_fail;
26912 }
26913 resultobj = SWIG_From_int(static_cast< int >(result));
26914 return resultobj;
26915fail:
26916 return NULL;
22bfe96c
RD
26917}
26918
26919
0085ce49
RD
26920SWIGINTERN PyObject *_wrap_ListItem_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26921 PyObject *resultobj = 0;
26922 wxListItem *arg1 = (wxListItem *) 0 ;
26923 long result;
26924 void *argp1 = 0 ;
26925 int res1 = 0 ;
26926 PyObject *swig_obj[1] ;
26927
26928 if (!args) SWIG_fail;
26929 swig_obj[0] = args;
26930 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26931 if (!SWIG_IsOK(res1)) {
26932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26933 }
26934 arg1 = reinterpret_cast< wxListItem * >(argp1);
26935 {
26936 PyThreadState* __tstate = wxPyBeginAllowThreads();
26937 result = (long)(arg1)->GetState();
26938 wxPyEndAllowThreads(__tstate);
26939 if (PyErr_Occurred()) SWIG_fail;
26940 }
26941 resultobj = SWIG_From_long(static_cast< long >(result));
26942 return resultobj;
26943fail:
26944 return NULL;
b2dc1044
RD
26945}
26946
26947
0085ce49
RD
26948SWIGINTERN PyObject *_wrap_ListItem_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26949 PyObject *resultobj = 0;
26950 wxListItem *arg1 = (wxListItem *) 0 ;
26951 wxString *result = 0 ;
26952 void *argp1 = 0 ;
26953 int res1 = 0 ;
26954 PyObject *swig_obj[1] ;
26955
26956 if (!args) SWIG_fail;
26957 swig_obj[0] = args;
26958 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26959 if (!SWIG_IsOK(res1)) {
26960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26961 }
26962 arg1 = reinterpret_cast< wxListItem * >(argp1);
26963 {
26964 PyThreadState* __tstate = wxPyBeginAllowThreads();
b2dc1044 26965 {
0085ce49
RD
26966 wxString const &_result_ref = (arg1)->GetText();
26967 result = (wxString *) &_result_ref;
26968 }
26969 wxPyEndAllowThreads(__tstate);
26970 if (PyErr_Occurred()) SWIG_fail;
26971 }
26972 {
b2dc1044 26973#if wxUSE_UNICODE
0085ce49 26974 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
b2dc1044 26975#else
0085ce49 26976 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
b2dc1044 26977#endif
0085ce49
RD
26978 }
26979 return resultobj;
26980fail:
26981 return NULL;
d14a1e28
RD
26982}
26983
26984
0085ce49
RD
26985SWIGINTERN PyObject *_wrap_ListItem_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26986 PyObject *resultobj = 0;
26987 wxListItem *arg1 = (wxListItem *) 0 ;
26988 int result;
26989 void *argp1 = 0 ;
26990 int res1 = 0 ;
26991 PyObject *swig_obj[1] ;
26992
26993 if (!args) SWIG_fail;
26994 swig_obj[0] = args;
26995 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26996 if (!SWIG_IsOK(res1)) {
26997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26998 }
26999 arg1 = reinterpret_cast< wxListItem * >(argp1);
27000 {
27001 PyThreadState* __tstate = wxPyBeginAllowThreads();
27002 result = (int)(arg1)->GetImage();
27003 wxPyEndAllowThreads(__tstate);
27004 if (PyErr_Occurred()) SWIG_fail;
27005 }
27006 resultobj = SWIG_From_int(static_cast< int >(result));
27007 return resultobj;
27008fail:
27009 return NULL;
d14a1e28
RD
27010}
27011
27012
0085ce49
RD
27013SWIGINTERN PyObject *_wrap_ListItem_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27014 PyObject *resultobj = 0;
27015 wxListItem *arg1 = (wxListItem *) 0 ;
27016 long result;
27017 void *argp1 = 0 ;
27018 int res1 = 0 ;
27019 PyObject *swig_obj[1] ;
27020
27021 if (!args) SWIG_fail;
27022 swig_obj[0] = args;
27023 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27024 if (!SWIG_IsOK(res1)) {
27025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetData" "', expected argument " "1"" of type '" "wxListItem *""'");
27026 }
27027 arg1 = reinterpret_cast< wxListItem * >(argp1);
27028 {
27029 PyThreadState* __tstate = wxPyBeginAllowThreads();
27030 result = (long)(arg1)->GetData();
27031 wxPyEndAllowThreads(__tstate);
27032 if (PyErr_Occurred()) SWIG_fail;
27033 }
27034 resultobj = SWIG_From_long(static_cast< long >(result));
27035 return resultobj;
27036fail:
27037 return NULL;
d14a1e28
RD
27038}
27039
27040
0085ce49
RD
27041SWIGINTERN PyObject *_wrap_ListItem_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27042 PyObject *resultobj = 0;
27043 wxListItem *arg1 = (wxListItem *) 0 ;
27044 int result;
27045 void *argp1 = 0 ;
27046 int res1 = 0 ;
27047 PyObject *swig_obj[1] ;
27048
27049 if (!args) SWIG_fail;
27050 swig_obj[0] = args;
27051 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27052 if (!SWIG_IsOK(res1)) {
27053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
27054 }
27055 arg1 = reinterpret_cast< wxListItem * >(argp1);
27056 {
27057 PyThreadState* __tstate = wxPyBeginAllowThreads();
27058 result = (int)(arg1)->GetWidth();
27059 wxPyEndAllowThreads(__tstate);
27060 if (PyErr_Occurred()) SWIG_fail;
27061 }
27062 resultobj = SWIG_From_int(static_cast< int >(result));
27063 return resultobj;
27064fail:
27065 return NULL;
d14a1e28
RD
27066}
27067
27068
0085ce49
RD
27069SWIGINTERN PyObject *_wrap_ListItem_GetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27070 PyObject *resultobj = 0;
27071 wxListItem *arg1 = (wxListItem *) 0 ;
27072 wxListColumnFormat result;
27073 void *argp1 = 0 ;
27074 int res1 = 0 ;
27075 PyObject *swig_obj[1] ;
27076
27077 if (!args) SWIG_fail;
27078 swig_obj[0] = args;
27079 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27080 if (!SWIG_IsOK(res1)) {
27081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
27082 }
27083 arg1 = reinterpret_cast< wxListItem * >(argp1);
27084 {
27085 PyThreadState* __tstate = wxPyBeginAllowThreads();
27086 result = (wxListColumnFormat)(arg1)->GetAlign();
27087 wxPyEndAllowThreads(__tstate);
27088 if (PyErr_Occurred()) SWIG_fail;
27089 }
27090 resultobj = SWIG_From_int(static_cast< int >(result));
27091 return resultobj;
27092fail:
27093 return NULL;
d14a1e28
RD
27094}
27095
27096
0085ce49
RD
27097SWIGINTERN PyObject *_wrap_ListItem_GetAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27098 PyObject *resultobj = 0;
27099 wxListItem *arg1 = (wxListItem *) 0 ;
27100 wxListItemAttr *result = 0 ;
27101 void *argp1 = 0 ;
27102 int res1 = 0 ;
27103 PyObject *swig_obj[1] ;
27104
27105 if (!args) SWIG_fail;
27106 swig_obj[0] = args;
27107 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27108 if (!SWIG_IsOK(res1)) {
27109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27110 }
27111 arg1 = reinterpret_cast< wxListItem * >(argp1);
27112 {
27113 PyThreadState* __tstate = wxPyBeginAllowThreads();
27114 result = (wxListItemAttr *)(arg1)->GetAttributes();
27115 wxPyEndAllowThreads(__tstate);
27116 if (PyErr_Occurred()) SWIG_fail;
27117 }
27118 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, 0 | 0 );
27119 return resultobj;
27120fail:
27121 return NULL;
d14a1e28
RD
27122}
27123
27124
0085ce49
RD
27125SWIGINTERN PyObject *_wrap_ListItem_HasAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27126 PyObject *resultobj = 0;
27127 wxListItem *arg1 = (wxListItem *) 0 ;
27128 bool result;
27129 void *argp1 = 0 ;
27130 int res1 = 0 ;
27131 PyObject *swig_obj[1] ;
27132
27133 if (!args) SWIG_fail;
27134 swig_obj[0] = args;
27135 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27136 if (!SWIG_IsOK(res1)) {
27137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_HasAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27138 }
27139 arg1 = reinterpret_cast< wxListItem * >(argp1);
27140 {
27141 PyThreadState* __tstate = wxPyBeginAllowThreads();
27142 result = (bool)(arg1)->HasAttributes();
27143 wxPyEndAllowThreads(__tstate);
27144 if (PyErr_Occurred()) SWIG_fail;
27145 }
27146 {
27147 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27148 }
27149 return resultobj;
27150fail:
27151 return NULL;
22bfe96c
RD
27152}
27153
27154
0085ce49
RD
27155SWIGINTERN PyObject *_wrap_ListItem_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27156 PyObject *resultobj = 0;
27157 wxListItem *arg1 = (wxListItem *) 0 ;
27158 wxColour result;
27159 void *argp1 = 0 ;
27160 int res1 = 0 ;
27161 PyObject *swig_obj[1] ;
27162
27163 if (!args) SWIG_fail;
27164 swig_obj[0] = args;
27165 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27166 if (!SWIG_IsOK(res1)) {
27167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetTextColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27168 }
27169 arg1 = reinterpret_cast< wxListItem * >(argp1);
27170 {
27171 PyThreadState* __tstate = wxPyBeginAllowThreads();
27172 result = ((wxListItem const *)arg1)->GetTextColour();
27173 wxPyEndAllowThreads(__tstate);
27174 if (PyErr_Occurred()) SWIG_fail;
27175 }
27176 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27177 return resultobj;
27178fail:
27179 return NULL;
d14a1e28 27180}
0085ce49
RD
27181
27182
27183SWIGINTERN PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27184 PyObject *resultobj = 0;
27185 wxListItem *arg1 = (wxListItem *) 0 ;
27186 wxColour result;
27187 void *argp1 = 0 ;
27188 int res1 = 0 ;
27189 PyObject *swig_obj[1] ;
27190
27191 if (!args) SWIG_fail;
27192 swig_obj[0] = args;
27193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27194 if (!SWIG_IsOK(res1)) {
27195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27196 }
27197 arg1 = reinterpret_cast< wxListItem * >(argp1);
27198 {
27199 PyThreadState* __tstate = wxPyBeginAllowThreads();
27200 result = ((wxListItem const *)arg1)->GetBackgroundColour();
27201 wxPyEndAllowThreads(__tstate);
27202 if (PyErr_Occurred()) SWIG_fail;
27203 }
27204 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27205 return resultobj;
27206fail:
27207 return NULL;
b2dc1044
RD
27208}
27209
27210
0085ce49
RD
27211SWIGINTERN PyObject *_wrap_ListItem_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27212 PyObject *resultobj = 0;
27213 wxListItem *arg1 = (wxListItem *) 0 ;
27214 wxFont 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_GetFont" "', expected argument " "1"" of type '" "wxListItem const *""'");
27224 }
27225 arg1 = reinterpret_cast< wxListItem * >(argp1);
27226 {
27227 PyThreadState* __tstate = wxPyBeginAllowThreads();
27228 result = ((wxListItem const *)arg1)->GetFont();
27229 wxPyEndAllowThreads(__tstate);
27230 if (PyErr_Occurred()) SWIG_fail;
27231 }
27232 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
27233 return resultobj;
27234fail:
27235 return NULL;
27236}
27237
27238
27239SWIGINTERN PyObject *_wrap_ListItem_m_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27240 PyObject *resultobj = 0;
27241 wxListItem *arg1 = (wxListItem *) 0 ;
27242 long arg2 ;
27243 void *argp1 = 0 ;
27244 int res1 = 0 ;
27245 long val2 ;
27246 int ecode2 = 0 ;
27247 PyObject *swig_obj[2] ;
27248
27249 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_mask_set",2,2,swig_obj)) SWIG_fail;
27250 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27251 if (!SWIG_IsOK(res1)) {
27252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27253 }
27254 arg1 = reinterpret_cast< wxListItem * >(argp1);
27255 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27256 if (!SWIG_IsOK(ecode2)) {
27257 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_mask_set" "', expected argument " "2"" of type '" "long""'");
27258 }
27259 arg2 = static_cast< long >(val2);
27260 if (arg1) (arg1)->m_mask = arg2;
27261
27262 resultobj = SWIG_Py_Void();
27263 return resultobj;
27264fail:
27265 return NULL;
b2dc1044
RD
27266}
27267
27268
0085ce49
RD
27269SWIGINTERN PyObject *_wrap_ListItem_m_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27270 PyObject *resultobj = 0;
27271 wxListItem *arg1 = (wxListItem *) 0 ;
27272 long result;
27273 void *argp1 = 0 ;
27274 int res1 = 0 ;
27275 PyObject *swig_obj[1] ;
27276
27277 if (!args) SWIG_fail;
27278 swig_obj[0] = args;
27279 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27280 if (!SWIG_IsOK(res1)) {
27281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27282 }
27283 arg1 = reinterpret_cast< wxListItem * >(argp1);
27284 result = (long) ((arg1)->m_mask);
27285 resultobj = SWIG_From_long(static_cast< long >(result));
27286 return resultobj;
27287fail:
27288 return NULL;
27289}
27290
27291
27292SWIGINTERN PyObject *_wrap_ListItem_m_itemId_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27293 PyObject *resultobj = 0;
27294 wxListItem *arg1 = (wxListItem *) 0 ;
27295 long arg2 ;
27296 void *argp1 = 0 ;
27297 int res1 = 0 ;
27298 long val2 ;
27299 int ecode2 = 0 ;
27300 PyObject *swig_obj[2] ;
27301
27302 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_itemId_set",2,2,swig_obj)) SWIG_fail;
27303 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27304 if (!SWIG_IsOK(res1)) {
27305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27306 }
27307 arg1 = reinterpret_cast< wxListItem * >(argp1);
27308 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27309 if (!SWIG_IsOK(ecode2)) {
27310 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_itemId_set" "', expected argument " "2"" of type '" "long""'");
27311 }
27312 arg2 = static_cast< long >(val2);
27313 if (arg1) (arg1)->m_itemId = arg2;
27314
27315 resultobj = SWIG_Py_Void();
27316 return resultobj;
27317fail:
27318 return NULL;
d14a1e28
RD
27319}
27320
27321
0085ce49
RD
27322SWIGINTERN PyObject *_wrap_ListItem_m_itemId_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27323 PyObject *resultobj = 0;
27324 wxListItem *arg1 = (wxListItem *) 0 ;
27325 long result;
27326 void *argp1 = 0 ;
27327 int res1 = 0 ;
27328 PyObject *swig_obj[1] ;
27329
27330 if (!args) SWIG_fail;
27331 swig_obj[0] = args;
27332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27333 if (!SWIG_IsOK(res1)) {
27334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27335 }
27336 arg1 = reinterpret_cast< wxListItem * >(argp1);
27337 result = (long) ((arg1)->m_itemId);
27338 resultobj = SWIG_From_long(static_cast< long >(result));
27339 return resultobj;
27340fail:
27341 return NULL;
27342}
27343
27344
27345SWIGINTERN PyObject *_wrap_ListItem_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27346 PyObject *resultobj = 0;
27347 wxListItem *arg1 = (wxListItem *) 0 ;
27348 int arg2 ;
27349 void *argp1 = 0 ;
27350 int res1 = 0 ;
27351 int val2 ;
27352 int ecode2 = 0 ;
27353 PyObject *swig_obj[2] ;
27354
27355 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_col_set",2,2,swig_obj)) SWIG_fail;
27356 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27357 if (!SWIG_IsOK(res1)) {
27358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27359 }
27360 arg1 = reinterpret_cast< wxListItem * >(argp1);
27361 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27362 if (!SWIG_IsOK(ecode2)) {
27363 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_col_set" "', expected argument " "2"" of type '" "int""'");
27364 }
27365 arg2 = static_cast< int >(val2);
27366 if (arg1) (arg1)->m_col = arg2;
27367
27368 resultobj = SWIG_Py_Void();
27369 return resultobj;
27370fail:
27371 return NULL;
d14a1e28
RD
27372}
27373
27374
0085ce49
RD
27375SWIGINTERN PyObject *_wrap_ListItem_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27376 PyObject *resultobj = 0;
27377 wxListItem *arg1 = (wxListItem *) 0 ;
27378 int result;
27379 void *argp1 = 0 ;
27380 int res1 = 0 ;
27381 PyObject *swig_obj[1] ;
27382
27383 if (!args) SWIG_fail;
27384 swig_obj[0] = args;
27385 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27386 if (!SWIG_IsOK(res1)) {
27387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27388 }
27389 arg1 = reinterpret_cast< wxListItem * >(argp1);
27390 result = (int) ((arg1)->m_col);
27391 resultobj = SWIG_From_int(static_cast< int >(result));
27392 return resultobj;
27393fail:
27394 return NULL;
27395}
27396
27397
27398SWIGINTERN PyObject *_wrap_ListItem_m_state_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27399 PyObject *resultobj = 0;
27400 wxListItem *arg1 = (wxListItem *) 0 ;
27401 long arg2 ;
27402 void *argp1 = 0 ;
27403 int res1 = 0 ;
27404 long val2 ;
27405 int ecode2 = 0 ;
27406 PyObject *swig_obj[2] ;
27407
27408 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_state_set",2,2,swig_obj)) SWIG_fail;
27409 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27410 if (!SWIG_IsOK(res1)) {
27411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27412 }
27413 arg1 = reinterpret_cast< wxListItem * >(argp1);
27414 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27415 if (!SWIG_IsOK(ecode2)) {
27416 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_state_set" "', expected argument " "2"" of type '" "long""'");
27417 }
27418 arg2 = static_cast< long >(val2);
27419 if (arg1) (arg1)->m_state = arg2;
27420
27421 resultobj = SWIG_Py_Void();
27422 return resultobj;
27423fail:
27424 return NULL;
8fb0e70a
RD
27425}
27426
27427
0085ce49
RD
27428SWIGINTERN PyObject *_wrap_ListItem_m_state_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27429 PyObject *resultobj = 0;
27430 wxListItem *arg1 = (wxListItem *) 0 ;
27431 long result;
27432 void *argp1 = 0 ;
27433 int res1 = 0 ;
27434 PyObject *swig_obj[1] ;
27435
27436 if (!args) SWIG_fail;
27437 swig_obj[0] = args;
27438 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27439 if (!SWIG_IsOK(res1)) {
27440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27441 }
27442 arg1 = reinterpret_cast< wxListItem * >(argp1);
27443 result = (long) ((arg1)->m_state);
27444 resultobj = SWIG_From_long(static_cast< long >(result));
27445 return resultobj;
27446fail:
27447 return NULL;
27448}
27449
27450
27451SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27452 PyObject *resultobj = 0;
27453 wxListItem *arg1 = (wxListItem *) 0 ;
27454 long arg2 ;
27455 void *argp1 = 0 ;
27456 int res1 = 0 ;
27457 long val2 ;
27458 int ecode2 = 0 ;
27459 PyObject *swig_obj[2] ;
27460
27461 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_stateMask_set",2,2,swig_obj)) SWIG_fail;
27462 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27463 if (!SWIG_IsOK(res1)) {
27464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27465 }
27466 arg1 = reinterpret_cast< wxListItem * >(argp1);
27467 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27468 if (!SWIG_IsOK(ecode2)) {
27469 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_stateMask_set" "', expected argument " "2"" of type '" "long""'");
27470 }
27471 arg2 = static_cast< long >(val2);
27472 if (arg1) (arg1)->m_stateMask = arg2;
27473
27474 resultobj = SWIG_Py_Void();
27475 return resultobj;
27476fail:
27477 return NULL;
d14a1e28
RD
27478}
27479
27480
0085ce49
RD
27481SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27482 PyObject *resultobj = 0;
27483 wxListItem *arg1 = (wxListItem *) 0 ;
27484 long result;
27485 void *argp1 = 0 ;
27486 int res1 = 0 ;
27487 PyObject *swig_obj[1] ;
27488
27489 if (!args) SWIG_fail;
27490 swig_obj[0] = args;
27491 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27492 if (!SWIG_IsOK(res1)) {
27493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27494 }
27495 arg1 = reinterpret_cast< wxListItem * >(argp1);
27496 result = (long) ((arg1)->m_stateMask);
27497 resultobj = SWIG_From_long(static_cast< long >(result));
27498 return resultobj;
27499fail:
27500 return NULL;
27501}
27502
27503
27504SWIGINTERN PyObject *_wrap_ListItem_m_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27505 PyObject *resultobj = 0;
27506 wxListItem *arg1 = (wxListItem *) 0 ;
27507 wxString *arg2 = (wxString *) 0 ;
27508 void *argp1 = 0 ;
27509 int res1 = 0 ;
27510 bool temp2 = false ;
27511 PyObject *swig_obj[2] ;
27512
27513 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_text_set",2,2,swig_obj)) SWIG_fail;
27514 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27515 if (!SWIG_IsOK(res1)) {
27516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27517 }
27518 arg1 = reinterpret_cast< wxListItem * >(argp1);
27519 {
27520 arg2 = wxString_in_helper(swig_obj[1]);
27521 if (arg2 == NULL) SWIG_fail;
27522 temp2 = true;
27523 }
27524 if (arg1) (arg1)->m_text = *arg2;
27525
27526 resultobj = SWIG_Py_Void();
27527 {
27528 if (temp2)
27529 delete arg2;
27530 }
27531 return resultobj;
27532fail:
27533 {
27534 if (temp2)
27535 delete arg2;
27536 }
27537 return NULL;
d14a1e28
RD
27538}
27539
27540
0085ce49
RD
27541SWIGINTERN PyObject *_wrap_ListItem_m_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27542 PyObject *resultobj = 0;
27543 wxListItem *arg1 = (wxListItem *) 0 ;
27544 wxString *result = 0 ;
27545 void *argp1 = 0 ;
27546 int res1 = 0 ;
27547 PyObject *swig_obj[1] ;
27548
27549 if (!args) SWIG_fail;
27550 swig_obj[0] = args;
27551 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27552 if (!SWIG_IsOK(res1)) {
27553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27554 }
27555 arg1 = reinterpret_cast< wxListItem * >(argp1);
27556 result = (wxString *)& ((arg1)->m_text);
27557 {
d14a1e28 27558#if wxUSE_UNICODE
0085ce49 27559 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
d14a1e28 27560#else
0085ce49 27561 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
d14a1e28 27562#endif
0085ce49
RD
27563 }
27564 return resultobj;
27565fail:
27566 return NULL;
d14a1e28
RD
27567}
27568
27569
0085ce49
RD
27570SWIGINTERN PyObject *_wrap_ListItem_m_image_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27571 PyObject *resultobj = 0;
27572 wxListItem *arg1 = (wxListItem *) 0 ;
27573 int arg2 ;
27574 void *argp1 = 0 ;
27575 int res1 = 0 ;
27576 int val2 ;
27577 int ecode2 = 0 ;
27578 PyObject *swig_obj[2] ;
27579
27580 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_image_set",2,2,swig_obj)) SWIG_fail;
27581 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27582 if (!SWIG_IsOK(res1)) {
27583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27584 }
27585 arg1 = reinterpret_cast< wxListItem * >(argp1);
27586 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27587 if (!SWIG_IsOK(ecode2)) {
27588 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_image_set" "', expected argument " "2"" of type '" "int""'");
27589 }
27590 arg2 = static_cast< int >(val2);
27591 if (arg1) (arg1)->m_image = arg2;
27592
27593 resultobj = SWIG_Py_Void();
27594 return resultobj;
27595fail:
27596 return NULL;
d14a1e28
RD
27597}
27598
27599
0085ce49
RD
27600SWIGINTERN PyObject *_wrap_ListItem_m_image_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27601 PyObject *resultobj = 0;
27602 wxListItem *arg1 = (wxListItem *) 0 ;
27603 int result;
27604 void *argp1 = 0 ;
27605 int res1 = 0 ;
27606 PyObject *swig_obj[1] ;
27607
27608 if (!args) SWIG_fail;
27609 swig_obj[0] = args;
27610 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27611 if (!SWIG_IsOK(res1)) {
27612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27613 }
27614 arg1 = reinterpret_cast< wxListItem * >(argp1);
27615 result = (int) ((arg1)->m_image);
27616 resultobj = SWIG_From_int(static_cast< int >(result));
27617 return resultobj;
27618fail:
27619 return NULL;
27620}
27621
27622
27623SWIGINTERN PyObject *_wrap_ListItem_m_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27624 PyObject *resultobj = 0;
27625 wxListItem *arg1 = (wxListItem *) 0 ;
27626 long arg2 ;
27627 void *argp1 = 0 ;
27628 int res1 = 0 ;
27629 long val2 ;
27630 int ecode2 = 0 ;
27631 PyObject *swig_obj[2] ;
27632
27633 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_data_set",2,2,swig_obj)) SWIG_fail;
27634 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27635 if (!SWIG_IsOK(res1)) {
27636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27637 }
27638 arg1 = reinterpret_cast< wxListItem * >(argp1);
27639 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27640 if (!SWIG_IsOK(ecode2)) {
27641 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_data_set" "', expected argument " "2"" of type '" "long""'");
27642 }
27643 arg2 = static_cast< long >(val2);
27644 if (arg1) (arg1)->m_data = arg2;
27645
27646 resultobj = SWIG_Py_Void();
27647 return resultobj;
27648fail:
27649 return NULL;
d14a1e28
RD
27650}
27651
27652
0085ce49
RD
27653SWIGINTERN PyObject *_wrap_ListItem_m_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27654 PyObject *resultobj = 0;
27655 wxListItem *arg1 = (wxListItem *) 0 ;
27656 long result;
27657 void *argp1 = 0 ;
27658 int res1 = 0 ;
27659 PyObject *swig_obj[1] ;
27660
27661 if (!args) SWIG_fail;
27662 swig_obj[0] = args;
27663 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27664 if (!SWIG_IsOK(res1)) {
27665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27666 }
27667 arg1 = reinterpret_cast< wxListItem * >(argp1);
27668 result = (long) ((arg1)->m_data);
27669 resultobj = SWIG_From_long(static_cast< long >(result));
27670 return resultobj;
27671fail:
27672 return NULL;
27673}
27674
27675
27676SWIGINTERN PyObject *_wrap_ListItem_m_format_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27677 PyObject *resultobj = 0;
27678 wxListItem *arg1 = (wxListItem *) 0 ;
27679 int arg2 ;
27680 void *argp1 = 0 ;
27681 int res1 = 0 ;
27682 int val2 ;
27683 int ecode2 = 0 ;
27684 PyObject *swig_obj[2] ;
27685
27686 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_format_set",2,2,swig_obj)) SWIG_fail;
27687 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27688 if (!SWIG_IsOK(res1)) {
27689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27690 }
27691 arg1 = reinterpret_cast< wxListItem * >(argp1);
27692 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27693 if (!SWIG_IsOK(ecode2)) {
27694 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_format_set" "', expected argument " "2"" of type '" "int""'");
27695 }
27696 arg2 = static_cast< int >(val2);
27697 if (arg1) (arg1)->m_format = arg2;
27698
27699 resultobj = SWIG_Py_Void();
27700 return resultobj;
27701fail:
27702 return NULL;
d14a1e28
RD
27703}
27704
27705
0085ce49
RD
27706SWIGINTERN PyObject *_wrap_ListItem_m_format_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27707 PyObject *resultobj = 0;
27708 wxListItem *arg1 = (wxListItem *) 0 ;
27709 int result;
27710 void *argp1 = 0 ;
27711 int res1 = 0 ;
27712 PyObject *swig_obj[1] ;
27713
27714 if (!args) SWIG_fail;
27715 swig_obj[0] = args;
27716 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27717 if (!SWIG_IsOK(res1)) {
27718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27719 }
27720 arg1 = reinterpret_cast< wxListItem * >(argp1);
27721 result = (int) ((arg1)->m_format);
27722 resultobj = SWIG_From_int(static_cast< int >(result));
27723 return resultobj;
27724fail:
27725 return NULL;
27726}
27727
27728
27729SWIGINTERN PyObject *_wrap_ListItem_m_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27730 PyObject *resultobj = 0;
27731 wxListItem *arg1 = (wxListItem *) 0 ;
27732 int arg2 ;
27733 void *argp1 = 0 ;
27734 int res1 = 0 ;
27735 int val2 ;
27736 int ecode2 = 0 ;
27737 PyObject *swig_obj[2] ;
27738
27739 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_width_set",2,2,swig_obj)) SWIG_fail;
27740 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27741 if (!SWIG_IsOK(res1)) {
27742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27743 }
27744 arg1 = reinterpret_cast< wxListItem * >(argp1);
27745 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27746 if (!SWIG_IsOK(ecode2)) {
27747 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_width_set" "', expected argument " "2"" of type '" "int""'");
27748 }
27749 arg2 = static_cast< int >(val2);
27750 if (arg1) (arg1)->m_width = arg2;
27751
27752 resultobj = SWIG_Py_Void();
27753 return resultobj;
27754fail:
27755 return NULL;
d14a1e28
RD
27756}
27757
27758
0085ce49
RD
27759SWIGINTERN PyObject *_wrap_ListItem_m_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27760 PyObject *resultobj = 0;
27761 wxListItem *arg1 = (wxListItem *) 0 ;
27762 int result;
27763 void *argp1 = 0 ;
27764 int res1 = 0 ;
27765 PyObject *swig_obj[1] ;
27766
27767 if (!args) SWIG_fail;
27768 swig_obj[0] = args;
27769 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27770 if (!SWIG_IsOK(res1)) {
27771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27772 }
27773 arg1 = reinterpret_cast< wxListItem * >(argp1);
27774 result = (int) ((arg1)->m_width);
27775 resultobj = SWIG_From_int(static_cast< int >(result));
27776 return resultobj;
27777fail:
27778 return NULL;
27779}
27780
27781
27782SWIGINTERN PyObject *ListItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27783 PyObject *obj;
27784 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27785 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItem, SWIG_NewClientData(obj));
27786 return SWIG_Py_Void();
27787}
27788
27789SWIGINTERN PyObject *ListItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27790 return SWIG_Python_InitShadowInstance(args);
27791}
27792
27793SWIGINTERN PyObject *_wrap_new_ListEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27794 PyObject *resultobj = 0;
27795 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
27796 int arg2 = (int) 0 ;
27797 wxListEvent *result = 0 ;
27798 int val1 ;
27799 int ecode1 = 0 ;
27800 int val2 ;
27801 int ecode2 = 0 ;
27802 PyObject * obj0 = 0 ;
27803 PyObject * obj1 = 0 ;
27804 char * kwnames[] = {
27805 (char *) "commandType",(char *) "id", NULL
27806 };
27807
27808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) SWIG_fail;
27809 if (obj0) {
27810 ecode1 = SWIG_AsVal_int(obj0, &val1);
27811 if (!SWIG_IsOK(ecode1)) {
27812 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListEvent" "', expected argument " "1"" of type '" "wxEventType""'");
27813 }
27814 arg1 = static_cast< wxEventType >(val1);
27815 }
27816 if (obj1) {
27817 ecode2 = SWIG_AsVal_int(obj1, &val2);
27818 if (!SWIG_IsOK(ecode2)) {
27819 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListEvent" "', expected argument " "2"" of type '" "int""'");
27820 }
27821 arg2 = static_cast< int >(val2);
27822 }
27823 {
27824 PyThreadState* __tstate = wxPyBeginAllowThreads();
27825 result = (wxListEvent *)new wxListEvent(arg1,arg2);
27826 wxPyEndAllowThreads(__tstate);
27827 if (PyErr_Occurred()) SWIG_fail;
27828 }
27829 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListEvent, SWIG_POINTER_NEW | 0 );
27830 return resultobj;
27831fail:
27832 return NULL;
27833}
27834
27835
27836SWIGINTERN PyObject *_wrap_ListEvent_m_code_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27837 PyObject *resultobj = 0;
27838 wxListEvent *arg1 = (wxListEvent *) 0 ;
27839 int arg2 ;
27840 void *argp1 = 0 ;
27841 int res1 = 0 ;
27842 int val2 ;
27843 int ecode2 = 0 ;
27844 PyObject *swig_obj[2] ;
27845
27846 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_code_set",2,2,swig_obj)) SWIG_fail;
27847 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27848 if (!SWIG_IsOK(res1)) {
27849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27850 }
27851 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27852 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27853 if (!SWIG_IsOK(ecode2)) {
27854 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_code_set" "', expected argument " "2"" of type '" "int""'");
27855 }
27856 arg2 = static_cast< int >(val2);
27857 if (arg1) (arg1)->m_code = arg2;
27858
27859 resultobj = SWIG_Py_Void();
27860 return resultobj;
27861fail:
27862 return NULL;
d14a1e28
RD
27863}
27864
27865
0085ce49
RD
27866SWIGINTERN PyObject *_wrap_ListEvent_m_code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27867 PyObject *resultobj = 0;
27868 wxListEvent *arg1 = (wxListEvent *) 0 ;
27869 int result;
27870 void *argp1 = 0 ;
27871 int res1 = 0 ;
27872 PyObject *swig_obj[1] ;
27873
27874 if (!args) SWIG_fail;
27875 swig_obj[0] = args;
27876 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27877 if (!SWIG_IsOK(res1)) {
27878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27879 }
27880 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27881 result = (int) ((arg1)->m_code);
27882 resultobj = SWIG_From_int(static_cast< int >(result));
27883 return resultobj;
27884fail:
27885 return NULL;
27886}
27887
27888
27889SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27890 PyObject *resultobj = 0;
27891 wxListEvent *arg1 = (wxListEvent *) 0 ;
27892 long arg2 ;
27893 void *argp1 = 0 ;
27894 int res1 = 0 ;
27895 long val2 ;
27896 int ecode2 = 0 ;
27897 PyObject *swig_obj[2] ;
27898
27899 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_oldItemIndex_set",2,2,swig_obj)) SWIG_fail;
27900 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27901 if (!SWIG_IsOK(res1)) {
27902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27903 }
27904 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27905 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27906 if (!SWIG_IsOK(ecode2)) {
27907 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "2"" of type '" "long""'");
27908 }
27909 arg2 = static_cast< long >(val2);
27910 if (arg1) (arg1)->m_oldItemIndex = arg2;
27911
27912 resultobj = SWIG_Py_Void();
27913 return resultobj;
27914fail:
27915 return NULL;
d14a1e28
RD
27916}
27917
27918
0085ce49
RD
27919SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27920 PyObject *resultobj = 0;
27921 wxListEvent *arg1 = (wxListEvent *) 0 ;
27922 long result;
27923 void *argp1 = 0 ;
27924 int res1 = 0 ;
27925 PyObject *swig_obj[1] ;
27926
27927 if (!args) SWIG_fail;
27928 swig_obj[0] = args;
27929 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27930 if (!SWIG_IsOK(res1)) {
27931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27932 }
27933 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27934 result = (long) ((arg1)->m_oldItemIndex);
27935 resultobj = SWIG_From_long(static_cast< long >(result));
27936 return resultobj;
27937fail:
27938 return NULL;
27939}
27940
27941
27942SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27943 PyObject *resultobj = 0;
27944 wxListEvent *arg1 = (wxListEvent *) 0 ;
27945 long arg2 ;
27946 void *argp1 = 0 ;
27947 int res1 = 0 ;
27948 long val2 ;
27949 int ecode2 = 0 ;
27950 PyObject *swig_obj[2] ;
27951
27952 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_itemIndex_set",2,2,swig_obj)) SWIG_fail;
27953 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27954 if (!SWIG_IsOK(res1)) {
27955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27956 }
27957 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27958 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27959 if (!SWIG_IsOK(ecode2)) {
27960 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "2"" of type '" "long""'");
27961 }
27962 arg2 = static_cast< long >(val2);
27963 if (arg1) (arg1)->m_itemIndex = arg2;
27964
27965 resultobj = SWIG_Py_Void();
27966 return resultobj;
27967fail:
27968 return NULL;
d14a1e28
RD
27969}
27970
27971
0085ce49
RD
27972SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27973 PyObject *resultobj = 0;
27974 wxListEvent *arg1 = (wxListEvent *) 0 ;
27975 long result;
27976 void *argp1 = 0 ;
27977 int res1 = 0 ;
27978 PyObject *swig_obj[1] ;
27979
27980 if (!args) SWIG_fail;
27981 swig_obj[0] = args;
27982 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27983 if (!SWIG_IsOK(res1)) {
27984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27985 }
27986 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27987 result = (long) ((arg1)->m_itemIndex);
27988 resultobj = SWIG_From_long(static_cast< long >(result));
27989 return resultobj;
27990fail:
27991 return NULL;
27992}
27993
27994
27995SWIGINTERN PyObject *_wrap_ListEvent_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27996 PyObject *resultobj = 0;
27997 wxListEvent *arg1 = (wxListEvent *) 0 ;
27998 int arg2 ;
27999 void *argp1 = 0 ;
28000 int res1 = 0 ;
28001 int val2 ;
28002 int ecode2 = 0 ;
28003 PyObject *swig_obj[2] ;
28004
28005 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_col_set",2,2,swig_obj)) SWIG_fail;
28006 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28007 if (!SWIG_IsOK(res1)) {
28008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28009 }
28010 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28011 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28012 if (!SWIG_IsOK(ecode2)) {
28013 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_col_set" "', expected argument " "2"" of type '" "int""'");
28014 }
28015 arg2 = static_cast< int >(val2);
28016 if (arg1) (arg1)->m_col = arg2;
28017
28018 resultobj = SWIG_Py_Void();
28019 return resultobj;
28020fail:
28021 return NULL;
7e08d4ef
RD
28022}
28023
28024
0085ce49
RD
28025SWIGINTERN PyObject *_wrap_ListEvent_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28026 PyObject *resultobj = 0;
28027 wxListEvent *arg1 = (wxListEvent *) 0 ;
28028 int result;
28029 void *argp1 = 0 ;
28030 int res1 = 0 ;
28031 PyObject *swig_obj[1] ;
28032
28033 if (!args) SWIG_fail;
28034 swig_obj[0] = args;
28035 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28036 if (!SWIG_IsOK(res1)) {
28037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28038 }
28039 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28040 result = (int) ((arg1)->m_col);
28041 resultobj = SWIG_From_int(static_cast< int >(result));
28042 return resultobj;
28043fail:
28044 return NULL;
28045}
28046
28047
28048SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28049 PyObject *resultobj = 0;
28050 wxListEvent *arg1 = (wxListEvent *) 0 ;
28051 wxPoint *arg2 = (wxPoint *) 0 ;
28052 void *argp1 = 0 ;
28053 int res1 = 0 ;
28054 void *argp2 = 0 ;
28055 int res2 = 0 ;
28056 PyObject *swig_obj[2] ;
28057
28058 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_pointDrag_set",2,2,swig_obj)) SWIG_fail;
28059 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28060 if (!SWIG_IsOK(res1)) {
28061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28062 }
28063 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28064 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPoint, 0 | 0 );
28065 if (!SWIG_IsOK(res2)) {
28066 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "2"" of type '" "wxPoint *""'");
28067 }
28068 arg2 = reinterpret_cast< wxPoint * >(argp2);
28069 if (arg1) (arg1)->m_pointDrag = *arg2;
28070
28071 resultobj = SWIG_Py_Void();
28072 return resultobj;
28073fail:
28074 return NULL;
7e08d4ef
RD
28075}
28076
28077
0085ce49
RD
28078SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28079 PyObject *resultobj = 0;
28080 wxListEvent *arg1 = (wxListEvent *) 0 ;
28081 wxPoint *result = 0 ;
28082 void *argp1 = 0 ;
28083 int res1 = 0 ;
28084 PyObject *swig_obj[1] ;
28085
28086 if (!args) SWIG_fail;
28087 swig_obj[0] = args;
28088 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28089 if (!SWIG_IsOK(res1)) {
28090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28091 }
28092 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28093 result = (wxPoint *)& ((arg1)->m_pointDrag);
28094 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, 0 | 0 );
28095 return resultobj;
28096fail:
28097 return NULL;
28098}
28099
28100
28101SWIGINTERN PyObject *_wrap_ListEvent_m_item_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28102 PyObject *resultobj = 0;
28103 wxListEvent *arg1 = (wxListEvent *) 0 ;
28104 wxListItem *result = 0 ;
28105 void *argp1 = 0 ;
28106 int res1 = 0 ;
28107 PyObject *swig_obj[1] ;
28108
28109 if (!args) SWIG_fail;
28110 swig_obj[0] = args;
28111 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28112 if (!SWIG_IsOK(res1)) {
28113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_item_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28114 }
28115 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28116 result = (wxListItem *)& ((arg1)->m_item);
28117 {
28118 resultobj = wxPyMake_wxObject(result, (bool)0);
28119 }
28120 return resultobj;
28121fail:
28122 return NULL;
7e08d4ef
RD
28123}
28124
28125
0085ce49
RD
28126SWIGINTERN PyObject *_wrap_ListEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28127 PyObject *resultobj = 0;
28128 wxListEvent *arg1 = (wxListEvent *) 0 ;
28129 int result;
28130 void *argp1 = 0 ;
28131 int res1 = 0 ;
28132 PyObject *swig_obj[1] ;
28133
28134 if (!args) SWIG_fail;
28135 swig_obj[0] = args;
28136 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28137 if (!SWIG_IsOK(res1)) {
28138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxListEvent *""'");
28139 }
28140 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28141 {
28142 PyThreadState* __tstate = wxPyBeginAllowThreads();
28143 result = (int)(arg1)->GetKeyCode();
28144 wxPyEndAllowThreads(__tstate);
28145 if (PyErr_Occurred()) SWIG_fail;
28146 }
28147 resultobj = SWIG_From_int(static_cast< int >(result));
28148 return resultobj;
28149fail:
28150 return NULL;
7e08d4ef
RD
28151}
28152
28153
0085ce49
RD
28154SWIGINTERN PyObject *_wrap_ListEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28155 PyObject *resultobj = 0;
28156 wxListEvent *arg1 = (wxListEvent *) 0 ;
28157 long result;
28158 void *argp1 = 0 ;
28159 int res1 = 0 ;
28160 PyObject *swig_obj[1] ;
28161
28162 if (!args) SWIG_fail;
28163 swig_obj[0] = args;
28164 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28165 if (!SWIG_IsOK(res1)) {
28166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetIndex" "', expected argument " "1"" of type '" "wxListEvent *""'");
28167 }
28168 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28169 {
28170 PyThreadState* __tstate = wxPyBeginAllowThreads();
28171 result = (long)(arg1)->GetIndex();
28172 wxPyEndAllowThreads(__tstate);
28173 if (PyErr_Occurred()) SWIG_fail;
28174 }
28175 resultobj = SWIG_From_long(static_cast< long >(result));
28176 return resultobj;
28177fail:
28178 return NULL;
7e08d4ef
RD
28179}
28180
28181
0085ce49
RD
28182SWIGINTERN PyObject *_wrap_ListEvent_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28183 PyObject *resultobj = 0;
28184 wxListEvent *arg1 = (wxListEvent *) 0 ;
28185 int result;
28186 void *argp1 = 0 ;
28187 int res1 = 0 ;
28188 PyObject *swig_obj[1] ;
28189
28190 if (!args) SWIG_fail;
28191 swig_obj[0] = args;
28192 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28193 if (!SWIG_IsOK(res1)) {
28194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetColumn" "', expected argument " "1"" of type '" "wxListEvent *""'");
28195 }
28196 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28197 {
28198 PyThreadState* __tstate = wxPyBeginAllowThreads();
28199 result = (int)(arg1)->GetColumn();
28200 wxPyEndAllowThreads(__tstate);
28201 if (PyErr_Occurred()) SWIG_fail;
28202 }
28203 resultobj = SWIG_From_int(static_cast< int >(result));
28204 return resultobj;
28205fail:
28206 return NULL;
d14a1e28
RD
28207}
28208
28209
0085ce49
RD
28210SWIGINTERN PyObject *_wrap_ListEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28211 PyObject *resultobj = 0;
28212 wxListEvent *arg1 = (wxListEvent *) 0 ;
28213 wxPoint result;
28214 void *argp1 = 0 ;
28215 int res1 = 0 ;
28216 PyObject *swig_obj[1] ;
28217
28218 if (!args) SWIG_fail;
28219 swig_obj[0] = args;
28220 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28221 if (!SWIG_IsOK(res1)) {
28222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetPoint" "', expected argument " "1"" of type '" "wxListEvent *""'");
28223 }
28224 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28225 {
28226 PyThreadState* __tstate = wxPyBeginAllowThreads();
28227 result = (arg1)->GetPoint();
28228 wxPyEndAllowThreads(__tstate);
28229 if (PyErr_Occurred()) SWIG_fail;
28230 }
28231 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
28232 return resultobj;
28233fail:
28234 return NULL;
d14a1e28
RD
28235}
28236
28237
0085ce49
RD
28238SWIGINTERN PyObject *_wrap_ListEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28239 PyObject *resultobj = 0;
28240 wxListEvent *arg1 = (wxListEvent *) 0 ;
28241 wxString *result = 0 ;
28242 void *argp1 = 0 ;
28243 int res1 = 0 ;
28244 PyObject *swig_obj[1] ;
28245
28246 if (!args) SWIG_fail;
28247 swig_obj[0] = args;
28248 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28249 if (!SWIG_IsOK(res1)) {
28250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetLabel" "', expected argument " "1"" of type '" "wxListEvent *""'");
28251 }
28252 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28253 {
28254 PyThreadState* __tstate = wxPyBeginAllowThreads();
4f89f6a3 28255 {
0085ce49
RD
28256 wxString const &_result_ref = (arg1)->GetLabel();
28257 result = (wxString *) &_result_ref;
4f89f6a3 28258 }
0085ce49
RD
28259 wxPyEndAllowThreads(__tstate);
28260 if (PyErr_Occurred()) SWIG_fail;
28261 }
28262 {
28263#if wxUSE_UNICODE
28264 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28265#else
28266 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28267#endif
28268 }
28269 return resultobj;
28270fail:
28271 return NULL;
d14a1e28
RD
28272}
28273
28274
0085ce49
RD
28275SWIGINTERN PyObject *_wrap_ListEvent_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28276 PyObject *resultobj = 0;
28277 wxListEvent *arg1 = (wxListEvent *) 0 ;
28278 wxString *result = 0 ;
28279 void *argp1 = 0 ;
28280 int res1 = 0 ;
28281 PyObject *swig_obj[1] ;
28282
28283 if (!args) SWIG_fail;
28284 swig_obj[0] = args;
28285 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28286 if (!SWIG_IsOK(res1)) {
28287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetText" "', expected argument " "1"" of type '" "wxListEvent *""'");
28288 }
28289 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28290 {
28291 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 28292 {
0085ce49
RD
28293 wxString const &_result_ref = (arg1)->GetText();
28294 result = (wxString *) &_result_ref;
d14a1e28 28295 }
0085ce49
RD
28296 wxPyEndAllowThreads(__tstate);
28297 if (PyErr_Occurred()) SWIG_fail;
28298 }
28299 {
28300#if wxUSE_UNICODE
28301 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28302#else
28303 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28304#endif
28305 }
28306 return resultobj;
28307fail:
28308 return NULL;
d14a1e28
RD
28309}
28310
28311
0085ce49
RD
28312SWIGINTERN PyObject *_wrap_ListEvent_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28313 PyObject *resultobj = 0;
28314 wxListEvent *arg1 = (wxListEvent *) 0 ;
28315 int result;
28316 void *argp1 = 0 ;
28317 int res1 = 0 ;
28318 PyObject *swig_obj[1] ;
28319
28320 if (!args) SWIG_fail;
28321 swig_obj[0] = args;
28322 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28323 if (!SWIG_IsOK(res1)) {
28324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetImage" "', expected argument " "1"" of type '" "wxListEvent *""'");
28325 }
28326 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28327 {
28328 PyThreadState* __tstate = wxPyBeginAllowThreads();
28329 result = (int)(arg1)->GetImage();
28330 wxPyEndAllowThreads(__tstate);
28331 if (PyErr_Occurred()) SWIG_fail;
28332 }
28333 resultobj = SWIG_From_int(static_cast< int >(result));
28334 return resultobj;
28335fail:
28336 return NULL;
d14a1e28
RD
28337}
28338
28339
0085ce49
RD
28340SWIGINTERN PyObject *_wrap_ListEvent_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28341 PyObject *resultobj = 0;
28342 wxListEvent *arg1 = (wxListEvent *) 0 ;
28343 long result;
28344 void *argp1 = 0 ;
28345 int res1 = 0 ;
28346 PyObject *swig_obj[1] ;
28347
28348 if (!args) SWIG_fail;
28349 swig_obj[0] = args;
28350 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28351 if (!SWIG_IsOK(res1)) {
28352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetData" "', expected argument " "1"" of type '" "wxListEvent *""'");
28353 }
28354 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28355 {
28356 PyThreadState* __tstate = wxPyBeginAllowThreads();
28357 result = (long)(arg1)->GetData();
28358 wxPyEndAllowThreads(__tstate);
28359 if (PyErr_Occurred()) SWIG_fail;
28360 }
28361 resultobj = SWIG_From_long(static_cast< long >(result));
28362 return resultobj;
28363fail:
28364 return NULL;
d14a1e28
RD
28365}
28366
28367
0085ce49
RD
28368SWIGINTERN PyObject *_wrap_ListEvent_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28369 PyObject *resultobj = 0;
28370 wxListEvent *arg1 = (wxListEvent *) 0 ;
28371 long result;
28372 void *argp1 = 0 ;
28373 int res1 = 0 ;
28374 PyObject *swig_obj[1] ;
28375
28376 if (!args) SWIG_fail;
28377 swig_obj[0] = args;
28378 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28379 if (!SWIG_IsOK(res1)) {
28380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetMask" "', expected argument " "1"" of type '" "wxListEvent *""'");
28381 }
28382 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28383 {
28384 PyThreadState* __tstate = wxPyBeginAllowThreads();
28385 result = (long)(arg1)->GetMask();
28386 wxPyEndAllowThreads(__tstate);
28387 if (PyErr_Occurred()) SWIG_fail;
28388 }
28389 resultobj = SWIG_From_long(static_cast< long >(result));
28390 return resultobj;
28391fail:
28392 return NULL;
d14a1e28
RD
28393}
28394
28395
0085ce49
RD
28396SWIGINTERN PyObject *_wrap_ListEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28397 PyObject *resultobj = 0;
28398 wxListEvent *arg1 = (wxListEvent *) 0 ;
28399 wxListItem *result = 0 ;
28400 void *argp1 = 0 ;
28401 int res1 = 0 ;
28402 PyObject *swig_obj[1] ;
28403
28404 if (!args) SWIG_fail;
28405 swig_obj[0] = args;
28406 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28407 if (!SWIG_IsOK(res1)) {
28408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetItem" "', expected argument " "1"" of type '" "wxListEvent *""'");
28409 }
28410 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28411 {
28412 PyThreadState* __tstate = wxPyBeginAllowThreads();
22bfe96c 28413 {
0085ce49
RD
28414 wxListItem const &_result_ref = (arg1)->GetItem();
28415 result = (wxListItem *) &_result_ref;
22bfe96c 28416 }
0085ce49
RD
28417 wxPyEndAllowThreads(__tstate);
28418 if (PyErr_Occurred()) SWIG_fail;
28419 }
28420 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, 0 | 0 );
28421 return resultobj;
28422fail:
28423 return NULL;
22bfe96c
RD
28424}
28425
28426
0085ce49
RD
28427SWIGINTERN PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28428 PyObject *resultobj = 0;
28429 wxListEvent *arg1 = (wxListEvent *) 0 ;
28430 long result;
28431 void *argp1 = 0 ;
28432 int res1 = 0 ;
28433 PyObject *swig_obj[1] ;
28434
28435 if (!args) SWIG_fail;
28436 swig_obj[0] = args;
28437 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28438 if (!SWIG_IsOK(res1)) {
28439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheFrom" "', expected argument " "1"" of type '" "wxListEvent *""'");
28440 }
28441 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28442 {
28443 PyThreadState* __tstate = wxPyBeginAllowThreads();
28444 result = (long)(arg1)->GetCacheFrom();
28445 wxPyEndAllowThreads(__tstate);
28446 if (PyErr_Occurred()) SWIG_fail;
28447 }
28448 resultobj = SWIG_From_long(static_cast< long >(result));
28449 return resultobj;
28450fail:
28451 return NULL;
d14a1e28
RD
28452}
28453
28454
0085ce49
RD
28455SWIGINTERN PyObject *_wrap_ListEvent_GetCacheTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28456 PyObject *resultobj = 0;
28457 wxListEvent *arg1 = (wxListEvent *) 0 ;
28458 long result;
28459 void *argp1 = 0 ;
28460 int res1 = 0 ;
28461 PyObject *swig_obj[1] ;
28462
28463 if (!args) SWIG_fail;
28464 swig_obj[0] = args;
28465 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28466 if (!SWIG_IsOK(res1)) {
28467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheTo" "', expected argument " "1"" of type '" "wxListEvent *""'");
28468 }
28469 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28470 {
28471 PyThreadState* __tstate = wxPyBeginAllowThreads();
28472 result = (long)(arg1)->GetCacheTo();
28473 wxPyEndAllowThreads(__tstate);
28474 if (PyErr_Occurred()) SWIG_fail;
28475 }
28476 resultobj = SWIG_From_long(static_cast< long >(result));
28477 return resultobj;
28478fail:
28479 return NULL;
d14a1e28
RD
28480}
28481
28482
0085ce49
RD
28483SWIGINTERN PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28484 PyObject *resultobj = 0;
28485 wxListEvent *arg1 = (wxListEvent *) 0 ;
28486 bool result;
28487 void *argp1 = 0 ;
28488 int res1 = 0 ;
28489 PyObject *swig_obj[1] ;
28490
28491 if (!args) SWIG_fail;
28492 swig_obj[0] = args;
28493 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28494 if (!SWIG_IsOK(res1)) {
28495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxListEvent const *""'");
28496 }
28497 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28498 {
28499 PyThreadState* __tstate = wxPyBeginAllowThreads();
28500 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
28501 wxPyEndAllowThreads(__tstate);
28502 if (PyErr_Occurred()) SWIG_fail;
28503 }
28504 {
28505 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28506 }
28507 return resultobj;
28508fail:
28509 return NULL;
28510}
28511
28512
28513SWIGINTERN PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28514 PyObject *resultobj = 0;
28515 wxListEvent *arg1 = (wxListEvent *) 0 ;
28516 bool arg2 ;
28517 void *argp1 = 0 ;
28518 int res1 = 0 ;
28519 bool val2 ;
28520 int ecode2 = 0 ;
28521 PyObject * obj0 = 0 ;
28522 PyObject * obj1 = 0 ;
28523 char * kwnames[] = {
28524 (char *) "self",(char *) "editCancelled", NULL
28525 };
28526
28527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
28528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28529 if (!SWIG_IsOK(res1)) {
28530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxListEvent *""'");
28531 }
28532 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28533 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28534 if (!SWIG_IsOK(ecode2)) {
28535 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
28536 }
28537 arg2 = static_cast< bool >(val2);
28538 {
28539 PyThreadState* __tstate = wxPyBeginAllowThreads();
28540 (arg1)->SetEditCanceled(arg2);
28541 wxPyEndAllowThreads(__tstate);
28542 if (PyErr_Occurred()) SWIG_fail;
28543 }
28544 resultobj = SWIG_Py_Void();
28545 return resultobj;
28546fail:
28547 return NULL;
28548}
28549
28550
28551SWIGINTERN PyObject *ListEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28552 PyObject *obj;
28553 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28554 SWIG_TypeNewClientData(SWIGTYPE_p_wxListEvent, SWIG_NewClientData(obj));
28555 return SWIG_Py_Void();
28556}
28557
28558SWIGINTERN PyObject *ListEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28559 return SWIG_Python_InitShadowInstance(args);
28560}
28561
28562SWIGINTERN PyObject *_wrap_new_ListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28563 PyObject *resultobj = 0;
28564 wxWindow *arg1 = (wxWindow *) 0 ;
28565 int arg2 = (int) -1 ;
28566 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28567 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28568 wxSize const &arg4_defvalue = wxDefaultSize ;
28569 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28570 long arg5 = (long) wxLC_ICON ;
28571 wxValidator const &arg6_defvalue = wxDefaultValidator ;
28572 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
28573 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
28574 wxString *arg7 = (wxString *) &arg7_defvalue ;
28575 wxPyListCtrl *result = 0 ;
28576 void *argp1 = 0 ;
28577 int res1 = 0 ;
28578 int val2 ;
28579 int ecode2 = 0 ;
28580 wxPoint temp3 ;
28581 wxSize temp4 ;
28582 long val5 ;
28583 int ecode5 = 0 ;
28584 void *argp6 = 0 ;
28585 int res6 = 0 ;
28586 bool temp7 = false ;
28587 PyObject * obj0 = 0 ;
28588 PyObject * obj1 = 0 ;
28589 PyObject * obj2 = 0 ;
28590 PyObject * obj3 = 0 ;
28591 PyObject * obj4 = 0 ;
28592 PyObject * obj5 = 0 ;
28593 PyObject * obj6 = 0 ;
28594 char * kwnames[] = {
28595 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28596 };
28597
28598 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28600 if (!SWIG_IsOK(res1)) {
28601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
28602 }
28603 arg1 = reinterpret_cast< wxWindow * >(argp1);
28604 if (obj1) {
28605 ecode2 = SWIG_AsVal_int(obj1, &val2);
28606 if (!SWIG_IsOK(ecode2)) {
28607 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListCtrl" "', expected argument " "2"" of type '" "int""'");
28608 }
28609 arg2 = static_cast< int >(val2);
28610 }
28611 if (obj2) {
093d3ff1 28612 {
0085ce49
RD
28613 arg3 = &temp3;
28614 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 28615 }
0085ce49
RD
28616 }
28617 if (obj3) {
d14a1e28 28618 {
0085ce49
RD
28619 arg4 = &temp4;
28620 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 28621 }
0085ce49
RD
28622 }
28623 if (obj4) {
28624 ecode5 = SWIG_AsVal_long(obj4, &val5);
28625 if (!SWIG_IsOK(ecode5)) {
28626 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListCtrl" "', expected argument " "5"" of type '" "long""'");
28627 }
28628 arg5 = static_cast< long >(val5);
28629 }
28630 if (obj5) {
28631 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
28632 if (!SWIG_IsOK(res6)) {
28633 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d14a1e28 28634 }
0085ce49
RD
28635 if (!argp6) {
28636 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
28637 }
28638 arg6 = reinterpret_cast< wxValidator * >(argp6);
28639 }
28640 if (obj6) {
093d3ff1 28641 {
0085ce49
RD
28642 arg7 = wxString_in_helper(obj6);
28643 if (arg7 == NULL) SWIG_fail;
28644 temp7 = true;
093d3ff1 28645 }
0085ce49
RD
28646 }
28647 {
28648 if (!wxPyCheckForApp()) SWIG_fail;
28649 PyThreadState* __tstate = wxPyBeginAllowThreads();
28650 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
28651 wxPyEndAllowThreads(__tstate);
28652 if (PyErr_Occurred()) SWIG_fail;
28653 }
28654 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_NEW | 0 );
28655 {
28656 if (temp7)
28657 delete arg7;
28658 }
28659 return resultobj;
28660fail:
28661 {
28662 if (temp7)
28663 delete arg7;
28664 }
28665 return NULL;
d14a1e28
RD
28666}
28667
28668
0085ce49
RD
28669SWIGINTERN PyObject *_wrap_new_PreListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28670 PyObject *resultobj = 0;
28671 wxPyListCtrl *result = 0 ;
28672
28673 if (!SWIG_Python_UnpackTuple(args,"new_PreListCtrl",0,0,0)) SWIG_fail;
28674 {
28675 if (!wxPyCheckForApp()) SWIG_fail;
28676 PyThreadState* __tstate = wxPyBeginAllowThreads();
28677 result = (wxPyListCtrl *)new wxPyListCtrl();
28678 wxPyEndAllowThreads(__tstate);
28679 if (PyErr_Occurred()) SWIG_fail;
28680 }
28681 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_OWN | 0 );
28682 return resultobj;
28683fail:
28684 return NULL;
28685}
28686
28687
28688SWIGINTERN PyObject *_wrap_ListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28689 PyObject *resultobj = 0;
28690 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28691 wxWindow *arg2 = (wxWindow *) 0 ;
28692 int arg3 = (int) -1 ;
28693 wxPoint const &arg4_defvalue = wxDefaultPosition ;
28694 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
28695 wxSize const &arg5_defvalue = wxDefaultSize ;
28696 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
28697 long arg6 = (long) wxLC_ICON ;
28698 wxValidator const &arg7_defvalue = wxDefaultValidator ;
28699 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
28700 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
28701 wxString *arg8 = (wxString *) &arg8_defvalue ;
28702 bool result;
28703 void *argp1 = 0 ;
28704 int res1 = 0 ;
28705 void *argp2 = 0 ;
28706 int res2 = 0 ;
28707 int val3 ;
28708 int ecode3 = 0 ;
28709 wxPoint temp4 ;
28710 wxSize temp5 ;
28711 long val6 ;
28712 int ecode6 = 0 ;
28713 void *argp7 = 0 ;
28714 int res7 = 0 ;
28715 bool temp8 = false ;
28716 PyObject * obj0 = 0 ;
28717 PyObject * obj1 = 0 ;
28718 PyObject * obj2 = 0 ;
28719 PyObject * obj3 = 0 ;
28720 PyObject * obj4 = 0 ;
28721 PyObject * obj5 = 0 ;
28722 PyObject * obj6 = 0 ;
28723 PyObject * obj7 = 0 ;
28724 char * kwnames[] = {
28725 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28726 };
28727
28728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28730 if (!SWIG_IsOK(res1)) {
28731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Create" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28732 }
28733 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28734 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28735 if (!SWIG_IsOK(res2)) {
28736 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
28737 }
28738 arg2 = reinterpret_cast< wxWindow * >(argp2);
28739 if (obj2) {
28740 ecode3 = SWIG_AsVal_int(obj2, &val3);
28741 if (!SWIG_IsOK(ecode3)) {
28742 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
28743 }
28744 arg3 = static_cast< int >(val3);
28745 }
28746 if (obj3) {
093d3ff1 28747 {
0085ce49
RD
28748 arg4 = &temp4;
28749 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 28750 }
0085ce49
RD
28751 }
28752 if (obj4) {
d14a1e28 28753 {
0085ce49
RD
28754 arg5 = &temp5;
28755 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 28756 }
0085ce49
RD
28757 }
28758 if (obj5) {
28759 ecode6 = SWIG_AsVal_long(obj5, &val6);
28760 if (!SWIG_IsOK(ecode6)) {
28761 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
28762 }
28763 arg6 = static_cast< long >(val6);
28764 }
28765 if (obj6) {
28766 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
28767 if (!SWIG_IsOK(res7)) {
28768 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 28769 }
0085ce49
RD
28770 if (!argp7) {
28771 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 28772 }
0085ce49
RD
28773 arg7 = reinterpret_cast< wxValidator * >(argp7);
28774 }
28775 if (obj7) {
d14a1e28 28776 {
0085ce49
RD
28777 arg8 = wxString_in_helper(obj7);
28778 if (arg8 == NULL) SWIG_fail;
28779 temp8 = true;
d14a1e28 28780 }
0085ce49
RD
28781 }
28782 {
28783 PyThreadState* __tstate = wxPyBeginAllowThreads();
28784 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
28785 wxPyEndAllowThreads(__tstate);
28786 if (PyErr_Occurred()) SWIG_fail;
28787 }
28788 {
28789 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28790 }
28791 {
28792 if (temp8)
28793 delete arg8;
28794 }
28795 return resultobj;
28796fail:
28797 {
28798 if (temp8)
28799 delete arg8;
28800 }
28801 return NULL;
28802}
28803
28804
28805SWIGINTERN PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28806 PyObject *resultobj = 0;
28807 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28808 PyObject *arg2 = (PyObject *) 0 ;
28809 PyObject *arg3 = (PyObject *) 0 ;
28810 void *argp1 = 0 ;
28811 int res1 = 0 ;
28812 PyObject * obj0 = 0 ;
28813 PyObject * obj1 = 0 ;
28814 PyObject * obj2 = 0 ;
28815 char * kwnames[] = {
28816 (char *) "self",(char *) "self",(char *) "_class", NULL
28817 };
28818
28819 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28820 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28821 if (!SWIG_IsOK(res1)) {
28822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28823 }
28824 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28825 arg2 = obj1;
28826 arg3 = obj2;
28827 {
28828 PyThreadState* __tstate = wxPyBeginAllowThreads();
28829 (arg1)->_setCallbackInfo(arg2,arg3);
28830 wxPyEndAllowThreads(__tstate);
28831 if (PyErr_Occurred()) SWIG_fail;
28832 }
28833 resultobj = SWIG_Py_Void();
28834 return resultobj;
28835fail:
28836 return NULL;
28837}
28838
28839
28840SWIGINTERN PyObject *_wrap_ListCtrl_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28841 PyObject *resultobj = 0;
28842 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28843 int arg2 ;
28844 wxListItem *result = 0 ;
28845 void *argp1 = 0 ;
28846 int res1 = 0 ;
28847 int val2 ;
28848 int ecode2 = 0 ;
28849 PyObject * obj0 = 0 ;
28850 PyObject * obj1 = 0 ;
28851 char * kwnames[] = {
28852 (char *) "self",(char *) "col", NULL
28853 };
28854
28855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
28856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28857 if (!SWIG_IsOK(res1)) {
28858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28859 }
28860 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28861 ecode2 = SWIG_AsVal_int(obj1, &val2);
28862 if (!SWIG_IsOK(ecode2)) {
28863 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumn" "', expected argument " "2"" of type '" "int""'");
28864 }
28865 arg2 = static_cast< int >(val2);
28866 {
28867 PyThreadState* __tstate = wxPyBeginAllowThreads();
28868 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
28869 wxPyEndAllowThreads(__tstate);
28870 if (PyErr_Occurred()) SWIG_fail;
28871 }
28872 {
28873 resultobj = wxPyMake_wxObject(result, (bool)0);
28874 }
28875 return resultobj;
28876fail:
28877 return NULL;
28878}
28879
28880
28881SWIGINTERN PyObject *_wrap_ListCtrl_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28882 PyObject *resultobj = 0;
28883 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28884 int arg2 ;
28885 wxListItem *arg3 = 0 ;
28886 bool result;
28887 void *argp1 = 0 ;
28888 int res1 = 0 ;
28889 int val2 ;
28890 int ecode2 = 0 ;
28891 void *argp3 = 0 ;
28892 int res3 = 0 ;
28893 PyObject * obj0 = 0 ;
28894 PyObject * obj1 = 0 ;
28895 PyObject * obj2 = 0 ;
28896 char * kwnames[] = {
28897 (char *) "self",(char *) "col",(char *) "item", NULL
28898 };
28899
28900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28901 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28902 if (!SWIG_IsOK(res1)) {
28903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28904 }
28905 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28906 ecode2 = SWIG_AsVal_int(obj1, &val2);
28907 if (!SWIG_IsOK(ecode2)) {
28908 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumn" "', expected argument " "2"" of type '" "int""'");
28909 }
28910 arg2 = static_cast< int >(val2);
28911 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
28912 if (!SWIG_IsOK(res3)) {
28913 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
28914 }
28915 if (!argp3) {
28916 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
28917 }
28918 arg3 = reinterpret_cast< wxListItem * >(argp3);
28919 {
28920 PyThreadState* __tstate = wxPyBeginAllowThreads();
28921 result = (bool)(arg1)->SetColumn(arg2,*arg3);
28922 wxPyEndAllowThreads(__tstate);
28923 if (PyErr_Occurred()) SWIG_fail;
28924 }
28925 {
28926 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28927 }
28928 return resultobj;
28929fail:
28930 return NULL;
28931}
28932
28933
28934SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28935 PyObject *resultobj = 0;
28936 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28937 int arg2 ;
28938 int result;
28939 void *argp1 = 0 ;
28940 int res1 = 0 ;
28941 int val2 ;
28942 int ecode2 = 0 ;
28943 PyObject * obj0 = 0 ;
28944 PyObject * obj1 = 0 ;
28945 char * kwnames[] = {
28946 (char *) "self",(char *) "col", NULL
28947 };
28948
28949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) SWIG_fail;
28950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28951 if (!SWIG_IsOK(res1)) {
28952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28953 }
28954 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28955 ecode2 = SWIG_AsVal_int(obj1, &val2);
28956 if (!SWIG_IsOK(ecode2)) {
28957 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "2"" of type '" "int""'");
28958 }
28959 arg2 = static_cast< int >(val2);
28960 {
28961 PyThreadState* __tstate = wxPyBeginAllowThreads();
28962 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
28963 wxPyEndAllowThreads(__tstate);
28964 if (PyErr_Occurred()) SWIG_fail;
28965 }
28966 resultobj = SWIG_From_int(static_cast< int >(result));
28967 return resultobj;
28968fail:
28969 return NULL;
28970}
28971
28972
28973SWIGINTERN PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28974 PyObject *resultobj = 0;
28975 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28976 int arg2 ;
28977 int arg3 ;
28978 bool result;
28979 void *argp1 = 0 ;
28980 int res1 = 0 ;
28981 int val2 ;
28982 int ecode2 = 0 ;
28983 int val3 ;
28984 int ecode3 = 0 ;
28985 PyObject * obj0 = 0 ;
28986 PyObject * obj1 = 0 ;
28987 PyObject * obj2 = 0 ;
28988 char * kwnames[] = {
28989 (char *) "self",(char *) "col",(char *) "width", NULL
28990 };
28991
28992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28994 if (!SWIG_IsOK(res1)) {
28995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28996 }
28997 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28998 ecode2 = SWIG_AsVal_int(obj1, &val2);
28999 if (!SWIG_IsOK(ecode2)) {
29000 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "2"" of type '" "int""'");
29001 }
29002 arg2 = static_cast< int >(val2);
29003 ecode3 = SWIG_AsVal_int(obj2, &val3);
29004 if (!SWIG_IsOK(ecode3)) {
29005 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "3"" of type '" "int""'");
29006 }
29007 arg3 = static_cast< int >(val3);
29008 {
29009 PyThreadState* __tstate = wxPyBeginAllowThreads();
29010 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
29011 wxPyEndAllowThreads(__tstate);
29012 if (PyErr_Occurred()) SWIG_fail;
29013 }
29014 {
29015 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29016 }
29017 return resultobj;
29018fail:
29019 return NULL;
d14a1e28
RD
29020}
29021
29022
0085ce49
RD
29023SWIGINTERN PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29024 PyObject *resultobj = 0;
29025 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29026 int result;
29027 void *argp1 = 0 ;
29028 int res1 = 0 ;
29029 PyObject *swig_obj[1] ;
29030
29031 if (!args) SWIG_fail;
29032 swig_obj[0] = args;
29033 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29034 if (!SWIG_IsOK(res1)) {
29035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetCountPerPage" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29036 }
29037 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29038 {
29039 PyThreadState* __tstate = wxPyBeginAllowThreads();
29040 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
29041 wxPyEndAllowThreads(__tstate);
29042 if (PyErr_Occurred()) SWIG_fail;
29043 }
29044 resultobj = SWIG_From_int(static_cast< int >(result));
29045 return resultobj;
29046fail:
29047 return NULL;
d14a1e28
RD
29048}
29049
29050
0085ce49
RD
29051SWIGINTERN PyObject *_wrap_ListCtrl_GetViewRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29052 PyObject *resultobj = 0;
29053 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29054 wxRect result;
29055 void *argp1 = 0 ;
29056 int res1 = 0 ;
29057 PyObject *swig_obj[1] ;
29058
29059 if (!args) SWIG_fail;
29060 swig_obj[0] = args;
29061 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29062 if (!SWIG_IsOK(res1)) {
29063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetViewRect" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29064 }
29065 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29066 {
29067 PyThreadState* __tstate = wxPyBeginAllowThreads();
29068 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
29069 wxPyEndAllowThreads(__tstate);
29070 if (PyErr_Occurred()) SWIG_fail;
29071 }
29072 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29073 return resultobj;
29074fail:
29075 return NULL;
d14a1e28
RD
29076}
29077
29078
0085ce49
RD
29079SWIGINTERN PyObject *_wrap_ListCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29080 PyObject *resultobj = 0;
29081 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29082 wxTextCtrl *result = 0 ;
29083 void *argp1 = 0 ;
29084 int res1 = 0 ;
29085 PyObject *swig_obj[1] ;
29086
29087 if (!args) SWIG_fail;
29088 swig_obj[0] = args;
29089 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29090 if (!SWIG_IsOK(res1)) {
29091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29092 }
29093 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29094 {
29095 PyThreadState* __tstate = wxPyBeginAllowThreads();
29096 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
29097 wxPyEndAllowThreads(__tstate);
29098 if (PyErr_Occurred()) SWIG_fail;
29099 }
29100 {
29101 resultobj = wxPyMake_wxObject(result, 0);
29102 }
29103 return resultobj;
29104fail:
29105 return NULL;
29106}
29107
29108
29109SWIGINTERN PyObject *_wrap_ListCtrl_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29110 PyObject *resultobj = 0;
29111 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29112 long arg2 ;
29113 int arg3 = (int) 0 ;
29114 wxListItem *result = 0 ;
29115 void *argp1 = 0 ;
29116 int res1 = 0 ;
29117 long val2 ;
29118 int ecode2 = 0 ;
29119 int val3 ;
29120 int ecode3 = 0 ;
29121 PyObject * obj0 = 0 ;
29122 PyObject * obj1 = 0 ;
29123 PyObject * obj2 = 0 ;
29124 char * kwnames[] = {
29125 (char *) "self",(char *) "itemId",(char *) "col", NULL
29126 };
29127
29128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29130 if (!SWIG_IsOK(res1)) {
29131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29132 }
29133 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29134 ecode2 = SWIG_AsVal_long(obj1, &val2);
29135 if (!SWIG_IsOK(ecode2)) {
29136 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItem" "', expected argument " "2"" of type '" "long""'");
29137 }
29138 arg2 = static_cast< long >(val2);
29139 if (obj2) {
29140 ecode3 = SWIG_AsVal_int(obj2, &val3);
29141 if (!SWIG_IsOK(ecode3)) {
29142 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItem" "', expected argument " "3"" of type '" "int""'");
29143 }
29144 arg3 = static_cast< int >(val3);
29145 }
29146 {
29147 PyThreadState* __tstate = wxPyBeginAllowThreads();
29148 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
29149 wxPyEndAllowThreads(__tstate);
29150 if (PyErr_Occurred()) SWIG_fail;
29151 }
29152 {
29153 resultobj = wxPyMake_wxObject(result, (bool)0);
29154 }
29155 return resultobj;
29156fail:
29157 return NULL;
29158}
29159
29160
29161SWIGINTERN PyObject *_wrap_ListCtrl_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29162 PyObject *resultobj = 0;
29163 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29164 wxListItem *arg2 = 0 ;
29165 bool result;
29166 void *argp1 = 0 ;
29167 int res1 = 0 ;
29168 void *argp2 = 0 ;
29169 int res2 = 0 ;
29170 PyObject * obj0 = 0 ;
29171 PyObject * obj1 = 0 ;
29172 char * kwnames[] = {
29173 (char *) "self",(char *) "info", NULL
29174 };
29175
29176 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
29177 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29178 if (!SWIG_IsOK(res1)) {
29179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29180 }
29181 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29182 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
29183 if (!SWIG_IsOK(res2)) {
29184 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29185 }
29186 if (!argp2) {
29187 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29188 }
29189 arg2 = reinterpret_cast< wxListItem * >(argp2);
29190 {
29191 PyThreadState* __tstate = wxPyBeginAllowThreads();
29192 result = (bool)(arg1)->SetItem(*arg2);
29193 wxPyEndAllowThreads(__tstate);
29194 if (PyErr_Occurred()) SWIG_fail;
29195 }
29196 {
29197 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29198 }
29199 return resultobj;
29200fail:
29201 return NULL;
29202}
29203
29204
29205SWIGINTERN PyObject *_wrap_ListCtrl_SetStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29206 PyObject *resultobj = 0;
29207 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29208 long arg2 ;
29209 int arg3 ;
29210 wxString *arg4 = 0 ;
29211 int arg5 = (int) -1 ;
29212 long result;
29213 void *argp1 = 0 ;
29214 int res1 = 0 ;
29215 long val2 ;
29216 int ecode2 = 0 ;
29217 int val3 ;
29218 int ecode3 = 0 ;
29219 bool temp4 = false ;
29220 int val5 ;
29221 int ecode5 = 0 ;
29222 PyObject * obj0 = 0 ;
29223 PyObject * obj1 = 0 ;
29224 PyObject * obj2 = 0 ;
29225 PyObject * obj3 = 0 ;
29226 PyObject * obj4 = 0 ;
29227 char * kwnames[] = {
29228 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
29229 };
29230
29231 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29232 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29233 if (!SWIG_IsOK(res1)) {
29234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29235 }
29236 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29237 ecode2 = SWIG_AsVal_long(obj1, &val2);
29238 if (!SWIG_IsOK(ecode2)) {
29239 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetStringItem" "', expected argument " "2"" of type '" "long""'");
29240 }
29241 arg2 = static_cast< long >(val2);
29242 ecode3 = SWIG_AsVal_int(obj2, &val3);
29243 if (!SWIG_IsOK(ecode3)) {
29244 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetStringItem" "', expected argument " "3"" of type '" "int""'");
29245 }
29246 arg3 = static_cast< int >(val3);
29247 {
29248 arg4 = wxString_in_helper(obj3);
29249 if (arg4 == NULL) SWIG_fail;
29250 temp4 = true;
29251 }
29252 if (obj4) {
29253 ecode5 = SWIG_AsVal_int(obj4, &val5);
29254 if (!SWIG_IsOK(ecode5)) {
29255 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_SetStringItem" "', expected argument " "5"" of type '" "int""'");
29256 }
29257 arg5 = static_cast< int >(val5);
29258 }
29259 {
29260 PyThreadState* __tstate = wxPyBeginAllowThreads();
29261 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
29262 wxPyEndAllowThreads(__tstate);
29263 if (PyErr_Occurred()) SWIG_fail;
29264 }
29265 resultobj = SWIG_From_long(static_cast< long >(result));
29266 {
29267 if (temp4)
29268 delete arg4;
29269 }
29270 return resultobj;
29271fail:
29272 {
29273 if (temp4)
29274 delete arg4;
29275 }
29276 return NULL;
29277}
29278
29279
29280SWIGINTERN PyObject *_wrap_ListCtrl_GetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29281 PyObject *resultobj = 0;
29282 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29283 long arg2 ;
29284 long arg3 ;
29285 int result;
29286 void *argp1 = 0 ;
29287 int res1 = 0 ;
29288 long val2 ;
29289 int ecode2 = 0 ;
29290 long val3 ;
29291 int ecode3 = 0 ;
29292 PyObject * obj0 = 0 ;
29293 PyObject * obj1 = 0 ;
29294 PyObject * obj2 = 0 ;
29295 char * kwnames[] = {
29296 (char *) "self",(char *) "item",(char *) "stateMask", NULL
29297 };
29298
29299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29300 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29301 if (!SWIG_IsOK(res1)) {
29302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29303 }
29304 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29305 ecode2 = SWIG_AsVal_long(obj1, &val2);
29306 if (!SWIG_IsOK(ecode2)) {
29307 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemState" "', expected argument " "2"" of type '" "long""'");
29308 }
29309 arg2 = static_cast< long >(val2);
29310 ecode3 = SWIG_AsVal_long(obj2, &val3);
29311 if (!SWIG_IsOK(ecode3)) {
29312 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemState" "', expected argument " "3"" of type '" "long""'");
29313 }
29314 arg3 = static_cast< long >(val3);
29315 {
29316 PyThreadState* __tstate = wxPyBeginAllowThreads();
29317 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
29318 wxPyEndAllowThreads(__tstate);
29319 if (PyErr_Occurred()) SWIG_fail;
29320 }
29321 resultobj = SWIG_From_int(static_cast< int >(result));
29322 return resultobj;
29323fail:
29324 return NULL;
29325}
29326
29327
29328SWIGINTERN PyObject *_wrap_ListCtrl_SetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29329 PyObject *resultobj = 0;
29330 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29331 long arg2 ;
29332 long arg3 ;
29333 long arg4 ;
29334 bool result;
29335 void *argp1 = 0 ;
29336 int res1 = 0 ;
29337 long val2 ;
29338 int ecode2 = 0 ;
29339 long val3 ;
29340 int ecode3 = 0 ;
29341 long val4 ;
29342 int ecode4 = 0 ;
29343 PyObject * obj0 = 0 ;
29344 PyObject * obj1 = 0 ;
29345 PyObject * obj2 = 0 ;
29346 PyObject * obj3 = 0 ;
29347 char * kwnames[] = {
29348 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
29349 };
29350
29351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29353 if (!SWIG_IsOK(res1)) {
29354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29355 }
29356 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29357 ecode2 = SWIG_AsVal_long(obj1, &val2);
29358 if (!SWIG_IsOK(ecode2)) {
29359 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemState" "', expected argument " "2"" of type '" "long""'");
29360 }
29361 arg2 = static_cast< long >(val2);
29362 ecode3 = SWIG_AsVal_long(obj2, &val3);
29363 if (!SWIG_IsOK(ecode3)) {
29364 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemState" "', expected argument " "3"" of type '" "long""'");
29365 }
29366 arg3 = static_cast< long >(val3);
29367 ecode4 = SWIG_AsVal_long(obj3, &val4);
29368 if (!SWIG_IsOK(ecode4)) {
29369 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemState" "', expected argument " "4"" of type '" "long""'");
29370 }
29371 arg4 = static_cast< long >(val4);
29372 {
29373 PyThreadState* __tstate = wxPyBeginAllowThreads();
29374 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
29375 wxPyEndAllowThreads(__tstate);
29376 if (PyErr_Occurred()) SWIG_fail;
29377 }
29378 {
29379 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29380 }
29381 return resultobj;
29382fail:
29383 return NULL;
29384}
29385
29386
29387SWIGINTERN PyObject *_wrap_ListCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29388 PyObject *resultobj = 0;
29389 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29390 long arg2 ;
29391 int arg3 ;
29392 int arg4 = (int) -1 ;
29393 bool result;
29394 void *argp1 = 0 ;
29395 int res1 = 0 ;
29396 long val2 ;
29397 int ecode2 = 0 ;
29398 int val3 ;
29399 int ecode3 = 0 ;
29400 int val4 ;
29401 int ecode4 = 0 ;
29402 PyObject * obj0 = 0 ;
29403 PyObject * obj1 = 0 ;
29404 PyObject * obj2 = 0 ;
29405 PyObject * obj3 = 0 ;
29406 char * kwnames[] = {
29407 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
29408 };
29409
29410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29412 if (!SWIG_IsOK(res1)) {
29413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29414 }
29415 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29416 ecode2 = SWIG_AsVal_long(obj1, &val2);
29417 if (!SWIG_IsOK(ecode2)) {
29418 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemImage" "', expected argument " "2"" of type '" "long""'");
29419 }
29420 arg2 = static_cast< long >(val2);
29421 ecode3 = SWIG_AsVal_int(obj2, &val3);
29422 if (!SWIG_IsOK(ecode3)) {
29423 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
29424 }
29425 arg3 = static_cast< int >(val3);
29426 if (obj3) {
29427 ecode4 = SWIG_AsVal_int(obj3, &val4);
29428 if (!SWIG_IsOK(ecode4)) {
29429 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemImage" "', expected argument " "4"" of type '" "int""'");
29430 }
29431 arg4 = static_cast< int >(val4);
29432 }
29433 {
29434 PyThreadState* __tstate = wxPyBeginAllowThreads();
29435 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
29436 wxPyEndAllowThreads(__tstate);
29437 if (PyErr_Occurred()) SWIG_fail;
29438 }
29439 {
29440 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29441 }
29442 return resultobj;
29443fail:
29444 return NULL;
29445}
29446
29447
29448SWIGINTERN PyObject *_wrap_ListCtrl_SetItemColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29449 PyObject *resultobj = 0;
29450 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29451 long arg2 ;
29452 long arg3 ;
29453 int arg4 ;
29454 bool result;
29455 void *argp1 = 0 ;
29456 int res1 = 0 ;
29457 long val2 ;
29458 int ecode2 = 0 ;
29459 long val3 ;
29460 int ecode3 = 0 ;
29461 int val4 ;
29462 int ecode4 = 0 ;
29463 PyObject * obj0 = 0 ;
29464 PyObject * obj1 = 0 ;
29465 PyObject * obj2 = 0 ;
29466 PyObject * obj3 = 0 ;
29467 char * kwnames[] = {
29468 (char *) "self",(char *) "item",(char *) "column",(char *) "image", NULL
29469 };
29470
29471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemColumnImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29473 if (!SWIG_IsOK(res1)) {
29474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29475 }
29476 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29477 ecode2 = SWIG_AsVal_long(obj1, &val2);
29478 if (!SWIG_IsOK(ecode2)) {
29479 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "2"" of type '" "long""'");
29480 }
29481 arg2 = static_cast< long >(val2);
29482 ecode3 = SWIG_AsVal_long(obj2, &val3);
29483 if (!SWIG_IsOK(ecode3)) {
29484 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "3"" of type '" "long""'");
29485 }
29486 arg3 = static_cast< long >(val3);
29487 ecode4 = SWIG_AsVal_int(obj3, &val4);
29488 if (!SWIG_IsOK(ecode4)) {
29489 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "4"" of type '" "int""'");
29490 }
29491 arg4 = static_cast< int >(val4);
29492 {
29493 PyThreadState* __tstate = wxPyBeginAllowThreads();
29494 result = (bool)(arg1)->SetItemColumnImage(arg2,arg3,arg4);
29495 wxPyEndAllowThreads(__tstate);
29496 if (PyErr_Occurred()) SWIG_fail;
29497 }
29498 {
29499 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29500 }
29501 return resultobj;
29502fail:
29503 return NULL;
29504}
29505
29506
29507SWIGINTERN PyObject *_wrap_ListCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29508 PyObject *resultobj = 0;
29509 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29510 long arg2 ;
29511 wxString result;
29512 void *argp1 = 0 ;
29513 int res1 = 0 ;
29514 long val2 ;
29515 int ecode2 = 0 ;
29516 PyObject * obj0 = 0 ;
29517 PyObject * obj1 = 0 ;
29518 char * kwnames[] = {
29519 (char *) "self",(char *) "item", NULL
29520 };
29521
29522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
29523 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29524 if (!SWIG_IsOK(res1)) {
29525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29526 }
29527 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29528 ecode2 = SWIG_AsVal_long(obj1, &val2);
29529 if (!SWIG_IsOK(ecode2)) {
29530 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemText" "', expected argument " "2"" of type '" "long""'");
29531 }
29532 arg2 = static_cast< long >(val2);
29533 {
29534 PyThreadState* __tstate = wxPyBeginAllowThreads();
29535 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
29536 wxPyEndAllowThreads(__tstate);
29537 if (PyErr_Occurred()) SWIG_fail;
29538 }
29539 {
29540#if wxUSE_UNICODE
29541 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29542#else
29543 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29544#endif
29545 }
29546 return resultobj;
29547fail:
29548 return NULL;
29549}
29550
29551
29552SWIGINTERN PyObject *_wrap_ListCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29553 PyObject *resultobj = 0;
29554 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29555 long arg2 ;
29556 wxString *arg3 = 0 ;
29557 void *argp1 = 0 ;
29558 int res1 = 0 ;
29559 long val2 ;
29560 int ecode2 = 0 ;
29561 bool temp3 = false ;
29562 PyObject * obj0 = 0 ;
29563 PyObject * obj1 = 0 ;
29564 PyObject * obj2 = 0 ;
29565 char * kwnames[] = {
29566 (char *) "self",(char *) "item",(char *) "str", NULL
29567 };
29568
29569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29571 if (!SWIG_IsOK(res1)) {
29572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29573 }
29574 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29575 ecode2 = SWIG_AsVal_long(obj1, &val2);
29576 if (!SWIG_IsOK(ecode2)) {
29577 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemText" "', expected argument " "2"" of type '" "long""'");
29578 }
29579 arg2 = static_cast< long >(val2);
29580 {
29581 arg3 = wxString_in_helper(obj2);
29582 if (arg3 == NULL) SWIG_fail;
29583 temp3 = true;
29584 }
29585 {
29586 PyThreadState* __tstate = wxPyBeginAllowThreads();
29587 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
29588 wxPyEndAllowThreads(__tstate);
29589 if (PyErr_Occurred()) SWIG_fail;
29590 }
29591 resultobj = SWIG_Py_Void();
29592 {
29593 if (temp3)
29594 delete arg3;
29595 }
29596 return resultobj;
29597fail:
29598 {
29599 if (temp3)
29600 delete arg3;
29601 }
29602 return NULL;
29603}
29604
29605
29606SWIGINTERN PyObject *_wrap_ListCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29607 PyObject *resultobj = 0;
29608 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29609 long arg2 ;
29610 long result;
29611 void *argp1 = 0 ;
29612 int res1 = 0 ;
29613 long val2 ;
29614 int ecode2 = 0 ;
29615 PyObject * obj0 = 0 ;
29616 PyObject * obj1 = 0 ;
29617 char * kwnames[] = {
29618 (char *) "self",(char *) "item", NULL
29619 };
29620
29621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
29622 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29623 if (!SWIG_IsOK(res1)) {
29624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29625 }
29626 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29627 ecode2 = SWIG_AsVal_long(obj1, &val2);
29628 if (!SWIG_IsOK(ecode2)) {
29629 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemData" "', expected argument " "2"" of type '" "long""'");
29630 }
29631 arg2 = static_cast< long >(val2);
29632 {
29633 PyThreadState* __tstate = wxPyBeginAllowThreads();
29634 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
29635 wxPyEndAllowThreads(__tstate);
29636 if (PyErr_Occurred()) SWIG_fail;
29637 }
29638 resultobj = SWIG_From_long(static_cast< long >(result));
29639 return resultobj;
29640fail:
29641 return NULL;
29642}
29643
29644
29645SWIGINTERN PyObject *_wrap_ListCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29646 PyObject *resultobj = 0;
29647 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29648 long arg2 ;
29649 long arg3 ;
29650 bool result;
29651 void *argp1 = 0 ;
29652 int res1 = 0 ;
29653 long val2 ;
29654 int ecode2 = 0 ;
29655 long val3 ;
29656 int ecode3 = 0 ;
29657 PyObject * obj0 = 0 ;
29658 PyObject * obj1 = 0 ;
29659 PyObject * obj2 = 0 ;
29660 char * kwnames[] = {
29661 (char *) "self",(char *) "item",(char *) "data", NULL
29662 };
29663
29664 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29665 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29666 if (!SWIG_IsOK(res1)) {
29667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29668 }
29669 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29670 ecode2 = SWIG_AsVal_long(obj1, &val2);
29671 if (!SWIG_IsOK(ecode2)) {
29672 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemData" "', expected argument " "2"" of type '" "long""'");
29673 }
29674 arg2 = static_cast< long >(val2);
29675 ecode3 = SWIG_AsVal_long(obj2, &val3);
29676 if (!SWIG_IsOK(ecode3)) {
29677 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemData" "', expected argument " "3"" of type '" "long""'");
29678 }
29679 arg3 = static_cast< long >(val3);
29680 {
29681 PyThreadState* __tstate = wxPyBeginAllowThreads();
29682 result = (bool)(arg1)->SetItemData(arg2,arg3);
29683 wxPyEndAllowThreads(__tstate);
29684 if (PyErr_Occurred()) SWIG_fail;
29685 }
29686 {
29687 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29688 }
29689 return resultobj;
29690fail:
29691 return NULL;
29692}
29693
29694
29695SWIGINTERN PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29696 PyObject *resultobj = 0;
29697 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29698 long arg2 ;
29699 wxPoint result;
29700 void *argp1 = 0 ;
29701 int res1 = 0 ;
29702 long val2 ;
29703 int ecode2 = 0 ;
29704 PyObject * obj0 = 0 ;
29705 PyObject * obj1 = 0 ;
29706 char * kwnames[] = {
29707 (char *) "self",(char *) "item", NULL
29708 };
29709
29710 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) SWIG_fail;
29711 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29712 if (!SWIG_IsOK(res1)) {
29713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29714 }
29715 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29716 ecode2 = SWIG_AsVal_long(obj1, &val2);
29717 if (!SWIG_IsOK(ecode2)) {
29718 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "2"" of type '" "long""'");
29719 }
29720 arg2 = static_cast< long >(val2);
29721 {
29722 PyThreadState* __tstate = wxPyBeginAllowThreads();
29723 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
29724 wxPyEndAllowThreads(__tstate);
29725 if (PyErr_Occurred()) SWIG_fail;
29726 }
29727 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
29728 return resultobj;
29729fail:
29730 return NULL;
29731}
29732
29733
29734SWIGINTERN PyObject *_wrap_ListCtrl_GetItemRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29735 PyObject *resultobj = 0;
29736 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29737 long arg2 ;
29738 int arg3 = (int) wxLIST_RECT_BOUNDS ;
29739 wxRect result;
29740 void *argp1 = 0 ;
29741 int res1 = 0 ;
29742 long val2 ;
29743 int ecode2 = 0 ;
29744 int val3 ;
29745 int ecode3 = 0 ;
29746 PyObject * obj0 = 0 ;
29747 PyObject * obj1 = 0 ;
29748 PyObject * obj2 = 0 ;
29749 char * kwnames[] = {
29750 (char *) "self",(char *) "item",(char *) "code", NULL
29751 };
29752
29753 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29754 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29755 if (!SWIG_IsOK(res1)) {
29756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemRect" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29757 }
29758 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29759 ecode2 = SWIG_AsVal_long(obj1, &val2);
29760 if (!SWIG_IsOK(ecode2)) {
29761 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemRect" "', expected argument " "2"" of type '" "long""'");
29762 }
29763 arg2 = static_cast< long >(val2);
29764 if (obj2) {
29765 ecode3 = SWIG_AsVal_int(obj2, &val3);
29766 if (!SWIG_IsOK(ecode3)) {
29767 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemRect" "', expected argument " "3"" of type '" "int""'");
29768 }
29769 arg3 = static_cast< int >(val3);
29770 }
29771 {
29772 PyThreadState* __tstate = wxPyBeginAllowThreads();
29773 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
29774 wxPyEndAllowThreads(__tstate);
29775 if (PyErr_Occurred()) SWIG_fail;
29776 }
29777 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29778 return resultobj;
29779fail:
29780 return NULL;
29781}
29782
29783
29784SWIGINTERN PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29785 PyObject *resultobj = 0;
29786 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29787 long arg2 ;
29788 wxPoint *arg3 = 0 ;
29789 bool result;
29790 void *argp1 = 0 ;
29791 int res1 = 0 ;
29792 long val2 ;
29793 int ecode2 = 0 ;
29794 wxPoint temp3 ;
29795 PyObject * obj0 = 0 ;
29796 PyObject * obj1 = 0 ;
29797 PyObject * obj2 = 0 ;
29798 char * kwnames[] = {
29799 (char *) "self",(char *) "item",(char *) "pos", NULL
29800 };
29801
29802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29804 if (!SWIG_IsOK(res1)) {
29805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29806 }
29807 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29808 ecode2 = SWIG_AsVal_long(obj1, &val2);
29809 if (!SWIG_IsOK(ecode2)) {
29810 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "2"" of type '" "long""'");
29811 }
29812 arg2 = static_cast< long >(val2);
29813 {
29814 arg3 = &temp3;
29815 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29816 }
29817 {
29818 PyThreadState* __tstate = wxPyBeginAllowThreads();
29819 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
29820 wxPyEndAllowThreads(__tstate);
29821 if (PyErr_Occurred()) SWIG_fail;
29822 }
29823 {
29824 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29825 }
29826 return resultobj;
29827fail:
29828 return NULL;
d14a1e28
RD
29829}
29830
29831
0085ce49
RD
29832SWIGINTERN PyObject *_wrap_ListCtrl_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29833 PyObject *resultobj = 0;
29834 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29835 int result;
29836 void *argp1 = 0 ;
29837 int res1 = 0 ;
29838 PyObject *swig_obj[1] ;
29839
29840 if (!args) SWIG_fail;
29841 swig_obj[0] = args;
29842 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29843 if (!SWIG_IsOK(res1)) {
29844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29845 }
29846 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29847 {
29848 PyThreadState* __tstate = wxPyBeginAllowThreads();
29849 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
29850 wxPyEndAllowThreads(__tstate);
29851 if (PyErr_Occurred()) SWIG_fail;
29852 }
29853 resultobj = SWIG_From_int(static_cast< int >(result));
29854 return resultobj;
29855fail:
29856 return NULL;
d14a1e28
RD
29857}
29858
29859
0085ce49
RD
29860SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29861 PyObject *resultobj = 0;
29862 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29863 int result;
29864 void *argp1 = 0 ;
29865 int res1 = 0 ;
29866 PyObject *swig_obj[1] ;
29867
29868 if (!args) SWIG_fail;
29869 swig_obj[0] = args;
29870 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29871 if (!SWIG_IsOK(res1)) {
29872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29873 }
29874 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29875 {
29876 PyThreadState* __tstate = wxPyBeginAllowThreads();
29877 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
29878 wxPyEndAllowThreads(__tstate);
29879 if (PyErr_Occurred()) SWIG_fail;
29880 }
29881 resultobj = SWIG_From_int(static_cast< int >(result));
29882 return resultobj;
29883fail:
29884 return NULL;
d14a1e28
RD
29885}
29886
29887
0085ce49
RD
29888SWIGINTERN PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29889 PyObject *resultobj = 0;
29890 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29891 wxSize result;
29892 void *argp1 = 0 ;
29893 int res1 = 0 ;
29894 PyObject *swig_obj[1] ;
29895
29896 if (!args) SWIG_fail;
29897 swig_obj[0] = args;
29898 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29899 if (!SWIG_IsOK(res1)) {
29900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29901 }
29902 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29903 {
29904 PyThreadState* __tstate = wxPyBeginAllowThreads();
29905 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
29906 wxPyEndAllowThreads(__tstate);
29907 if (PyErr_Occurred()) SWIG_fail;
29908 }
29909 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
29910 return resultobj;
29911fail:
29912 return NULL;
29913}
29914
29915
29916SWIGINTERN PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29917 PyObject *resultobj = 0;
29918 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29919 int arg2 ;
29920 bool arg3 = (bool) false ;
29921 void *argp1 = 0 ;
29922 int res1 = 0 ;
29923 int val2 ;
29924 int ecode2 = 0 ;
29925 bool val3 ;
29926 int ecode3 = 0 ;
29927 PyObject * obj0 = 0 ;
29928 PyObject * obj1 = 0 ;
29929 PyObject * obj2 = 0 ;
29930 char * kwnames[] = {
29931 (char *) "self",(char *) "spacing",(char *) "isSmall", NULL
29932 };
29933
29934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29936 if (!SWIG_IsOK(res1)) {
29937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29938 }
29939 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29940 ecode2 = SWIG_AsVal_int(obj1, &val2);
29941 if (!SWIG_IsOK(ecode2)) {
29942 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "2"" of type '" "int""'");
29943 }
29944 arg2 = static_cast< int >(val2);
29945 if (obj2) {
29946 ecode3 = SWIG_AsVal_bool(obj2, &val3);
29947 if (!SWIG_IsOK(ecode3)) {
29948 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "3"" of type '" "bool""'");
29949 }
29950 arg3 = static_cast< bool >(val3);
29951 }
29952 {
29953 PyThreadState* __tstate = wxPyBeginAllowThreads();
29954 (arg1)->SetItemSpacing(arg2,arg3);
29955 wxPyEndAllowThreads(__tstate);
29956 if (PyErr_Occurred()) SWIG_fail;
29957 }
29958 resultobj = SWIG_Py_Void();
29959 return resultobj;
29960fail:
29961 return NULL;
22bfe96c
RD
29962}
29963
29964
0085ce49
RD
29965SWIGINTERN PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29966 PyObject *resultobj = 0;
29967 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29968 int result;
29969 void *argp1 = 0 ;
29970 int res1 = 0 ;
29971 PyObject *swig_obj[1] ;
29972
29973 if (!args) SWIG_fail;
29974 swig_obj[0] = args;
29975 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29976 if (!SWIG_IsOK(res1)) {
29977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetSelectedItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29978 }
29979 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29980 {
29981 PyThreadState* __tstate = wxPyBeginAllowThreads();
29982 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
29983 wxPyEndAllowThreads(__tstate);
29984 if (PyErr_Occurred()) SWIG_fail;
29985 }
29986 resultobj = SWIG_From_int(static_cast< int >(result));
29987 return resultobj;
29988fail:
29989 return NULL;
d14a1e28
RD
29990}
29991
29992
0085ce49
RD
29993SWIGINTERN PyObject *_wrap_ListCtrl_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29994 PyObject *resultobj = 0;
29995 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29996 wxColour result;
29997 void *argp1 = 0 ;
29998 int res1 = 0 ;
29999 PyObject *swig_obj[1] ;
30000
30001 if (!args) SWIG_fail;
30002 swig_obj[0] = args;
30003 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30004 if (!SWIG_IsOK(res1)) {
30005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30006 }
30007 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30008 {
30009 PyThreadState* __tstate = wxPyBeginAllowThreads();
30010 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
30011 wxPyEndAllowThreads(__tstate);
30012 if (PyErr_Occurred()) SWIG_fail;
30013 }
30014 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
30015 return resultobj;
30016fail:
30017 return NULL;
30018}
30019
30020
30021SWIGINTERN PyObject *_wrap_ListCtrl_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30022 PyObject *resultobj = 0;
30023 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30024 wxColour *arg2 = 0 ;
30025 void *argp1 = 0 ;
30026 int res1 = 0 ;
30027 wxColour temp2 ;
30028 PyObject * obj0 = 0 ;
30029 PyObject * obj1 = 0 ;
30030 char * kwnames[] = {
30031 (char *) "self",(char *) "col", NULL
30032 };
30033
30034 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
30035 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30036 if (!SWIG_IsOK(res1)) {
30037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30038 }
30039 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30040 {
30041 arg2 = &temp2;
30042 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30043 }
30044 {
30045 PyThreadState* __tstate = wxPyBeginAllowThreads();
30046 (arg1)->SetTextColour((wxColour const &)*arg2);
30047 wxPyEndAllowThreads(__tstate);
30048 if (PyErr_Occurred()) SWIG_fail;
30049 }
30050 resultobj = SWIG_Py_Void();
30051 return resultobj;
30052fail:
30053 return NULL;
d14a1e28
RD
30054}
30055
30056
0085ce49
RD
30057SWIGINTERN PyObject *_wrap_ListCtrl_GetTopItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30058 PyObject *resultobj = 0;
30059 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30060 long result;
30061 void *argp1 = 0 ;
30062 int res1 = 0 ;
30063 PyObject *swig_obj[1] ;
30064
30065 if (!args) SWIG_fail;
30066 swig_obj[0] = args;
30067 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30068 if (!SWIG_IsOK(res1)) {
30069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTopItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30070 }
30071 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30072 {
30073 PyThreadState* __tstate = wxPyBeginAllowThreads();
30074 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
30075 wxPyEndAllowThreads(__tstate);
30076 if (PyErr_Occurred()) SWIG_fail;
30077 }
30078 resultobj = SWIG_From_long(static_cast< long >(result));
30079 return resultobj;
30080fail:
30081 return NULL;
30082}
30083
30084
30085SWIGINTERN PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30086 PyObject *resultobj = 0;
30087 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30088 long arg2 ;
30089 bool arg3 = (bool) true ;
30090 void *argp1 = 0 ;
30091 int res1 = 0 ;
30092 long val2 ;
30093 int ecode2 = 0 ;
30094 bool val3 ;
30095 int ecode3 = 0 ;
30096 PyObject * obj0 = 0 ;
30097 PyObject * obj1 = 0 ;
30098 PyObject * obj2 = 0 ;
30099 char * kwnames[] = {
30100 (char *) "self",(char *) "style",(char *) "add", NULL
30101 };
30102
30103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30105 if (!SWIG_IsOK(res1)) {
30106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30107 }
30108 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30109 ecode2 = SWIG_AsVal_long(obj1, &val2);
30110 if (!SWIG_IsOK(ecode2)) {
30111 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "2"" of type '" "long""'");
30112 }
30113 arg2 = static_cast< long >(val2);
30114 if (obj2) {
30115 ecode3 = SWIG_AsVal_bool(obj2, &val3);
30116 if (!SWIG_IsOK(ecode3)) {
30117 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "3"" of type '" "bool""'");
30118 }
30119 arg3 = static_cast< bool >(val3);
30120 }
30121 {
30122 PyThreadState* __tstate = wxPyBeginAllowThreads();
30123 (arg1)->SetSingleStyle(arg2,arg3);
30124 wxPyEndAllowThreads(__tstate);
30125 if (PyErr_Occurred()) SWIG_fail;
30126 }
30127 resultobj = SWIG_Py_Void();
30128 return resultobj;
30129fail:
30130 return NULL;
30131}
30132
30133
30134SWIGINTERN PyObject *_wrap_ListCtrl_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30135 PyObject *resultobj = 0;
30136 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30137 long arg2 ;
30138 int arg3 = (int) wxLIST_NEXT_ALL ;
30139 int arg4 = (int) wxLIST_STATE_DONTCARE ;
30140 long result;
30141 void *argp1 = 0 ;
30142 int res1 = 0 ;
30143 long val2 ;
30144 int ecode2 = 0 ;
30145 int val3 ;
30146 int ecode3 = 0 ;
30147 int val4 ;
30148 int ecode4 = 0 ;
30149 PyObject * obj0 = 0 ;
30150 PyObject * obj1 = 0 ;
30151 PyObject * obj2 = 0 ;
30152 PyObject * obj3 = 0 ;
30153 char * kwnames[] = {
30154 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
30155 };
30156
30157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30159 if (!SWIG_IsOK(res1)) {
30160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetNextItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30161 }
30162 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30163 ecode2 = SWIG_AsVal_long(obj1, &val2);
30164 if (!SWIG_IsOK(ecode2)) {
30165 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetNextItem" "', expected argument " "2"" of type '" "long""'");
30166 }
30167 arg2 = static_cast< long >(val2);
30168 if (obj2) {
30169 ecode3 = SWIG_AsVal_int(obj2, &val3);
30170 if (!SWIG_IsOK(ecode3)) {
30171 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetNextItem" "', expected argument " "3"" of type '" "int""'");
30172 }
30173 arg3 = static_cast< int >(val3);
30174 }
30175 if (obj3) {
30176 ecode4 = SWIG_AsVal_int(obj3, &val4);
30177 if (!SWIG_IsOK(ecode4)) {
30178 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_GetNextItem" "', expected argument " "4"" of type '" "int""'");
30179 }
30180 arg4 = static_cast< int >(val4);
30181 }
30182 {
30183 PyThreadState* __tstate = wxPyBeginAllowThreads();
30184 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
30185 wxPyEndAllowThreads(__tstate);
30186 if (PyErr_Occurred()) SWIG_fail;
30187 }
30188 resultobj = SWIG_From_long(static_cast< long >(result));
30189 return resultobj;
30190fail:
30191 return NULL;
30192}
30193
30194
30195SWIGINTERN PyObject *_wrap_ListCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30196 PyObject *resultobj = 0;
30197 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30198 int arg2 ;
30199 wxImageList *result = 0 ;
30200 void *argp1 = 0 ;
30201 int res1 = 0 ;
30202 int val2 ;
30203 int ecode2 = 0 ;
30204 PyObject * obj0 = 0 ;
30205 PyObject * obj1 = 0 ;
30206 char * kwnames[] = {
30207 (char *) "self",(char *) "which", NULL
30208 };
30209
30210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
30211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30212 if (!SWIG_IsOK(res1)) {
30213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30214 }
30215 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30216 ecode2 = SWIG_AsVal_int(obj1, &val2);
30217 if (!SWIG_IsOK(ecode2)) {
30218 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetImageList" "', expected argument " "2"" of type '" "int""'");
30219 }
30220 arg2 = static_cast< int >(val2);
30221 {
30222 PyThreadState* __tstate = wxPyBeginAllowThreads();
30223 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
30224 wxPyEndAllowThreads(__tstate);
30225 if (PyErr_Occurred()) SWIG_fail;
30226 }
30227 {
30228 resultobj = wxPyMake_wxObject(result, (bool)0);
30229 }
30230 return resultobj;
30231fail:
30232 return NULL;
30233}
30234
30235
30236SWIGINTERN PyObject *_wrap_ListCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30237 PyObject *resultobj = 0;
30238 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30239 wxImageList *arg2 = (wxImageList *) 0 ;
30240 int arg3 ;
30241 void *argp1 = 0 ;
30242 int res1 = 0 ;
30243 void *argp2 = 0 ;
30244 int res2 = 0 ;
30245 int val3 ;
30246 int ecode3 = 0 ;
30247 PyObject * obj0 = 0 ;
30248 PyObject * obj1 = 0 ;
30249 PyObject * obj2 = 0 ;
30250 char * kwnames[] = {
30251 (char *) "self",(char *) "imageList",(char *) "which", NULL
30252 };
30253
30254 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30255 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30256 if (!SWIG_IsOK(res1)) {
30257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30258 }
30259 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30260 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
30261 if (!SWIG_IsOK(res2)) {
30262 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30263 }
30264 arg2 = reinterpret_cast< wxImageList * >(argp2);
30265 ecode3 = SWIG_AsVal_int(obj2, &val3);
30266 if (!SWIG_IsOK(ecode3)) {
30267 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetImageList" "', expected argument " "3"" of type '" "int""'");
30268 }
30269 arg3 = static_cast< int >(val3);
30270 {
30271 PyThreadState* __tstate = wxPyBeginAllowThreads();
30272 (arg1)->SetImageList(arg2,arg3);
30273 wxPyEndAllowThreads(__tstate);
30274 if (PyErr_Occurred()) SWIG_fail;
30275 }
30276 resultobj = SWIG_Py_Void();
30277 return resultobj;
30278fail:
30279 return NULL;
30280}
30281
30282
30283SWIGINTERN PyObject *_wrap_ListCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30284 PyObject *resultobj = 0;
30285 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30286 wxImageList *arg2 = (wxImageList *) 0 ;
30287 int arg3 ;
30288 void *argp1 = 0 ;
30289 int res1 = 0 ;
30290 int res2 = 0 ;
30291 int val3 ;
30292 int ecode3 = 0 ;
30293 PyObject * obj0 = 0 ;
30294 PyObject * obj1 = 0 ;
30295 PyObject * obj2 = 0 ;
30296 char * kwnames[] = {
30297 (char *) "self",(char *) "imageList",(char *) "which", NULL
30298 };
30299
30300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30302 if (!SWIG_IsOK(res1)) {
30303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30304 }
30305 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30306 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
30307 if (!SWIG_IsOK(res2)) {
30308 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30309 }
30310 ecode3 = SWIG_AsVal_int(obj2, &val3);
30311 if (!SWIG_IsOK(ecode3)) {
30312 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_AssignImageList" "', expected argument " "3"" of type '" "int""'");
30313 }
30314 arg3 = static_cast< int >(val3);
30315 {
30316 PyThreadState* __tstate = wxPyBeginAllowThreads();
30317 (arg1)->AssignImageList(arg2,arg3);
30318 wxPyEndAllowThreads(__tstate);
30319 if (PyErr_Occurred()) SWIG_fail;
30320 }
30321 resultobj = SWIG_Py_Void();
30322 return resultobj;
30323fail:
30324 return NULL;
d14a1e28
RD
30325}
30326
30327
0085ce49
RD
30328SWIGINTERN PyObject *_wrap_ListCtrl_InReportView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30329 PyObject *resultobj = 0;
30330 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30331 bool result;
30332 void *argp1 = 0 ;
30333 int res1 = 0 ;
30334 PyObject *swig_obj[1] ;
30335
30336 if (!args) SWIG_fail;
30337 swig_obj[0] = args;
30338 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30339 if (!SWIG_IsOK(res1)) {
30340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InReportView" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30341 }
30342 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30343 {
30344 PyThreadState* __tstate = wxPyBeginAllowThreads();
30345 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
30346 wxPyEndAllowThreads(__tstate);
30347 if (PyErr_Occurred()) SWIG_fail;
30348 }
30349 {
30350 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30351 }
30352 return resultobj;
30353fail:
30354 return NULL;
d14a1e28
RD
30355}
30356
30357
0085ce49
RD
30358SWIGINTERN PyObject *_wrap_ListCtrl_IsVirtual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30359 PyObject *resultobj = 0;
30360 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30361 bool result;
30362 void *argp1 = 0 ;
30363 int res1 = 0 ;
30364 PyObject *swig_obj[1] ;
30365
30366 if (!args) SWIG_fail;
30367 swig_obj[0] = args;
30368 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30369 if (!SWIG_IsOK(res1)) {
30370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_IsVirtual" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30371 }
30372 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30373 {
30374 PyThreadState* __tstate = wxPyBeginAllowThreads();
30375 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
30376 wxPyEndAllowThreads(__tstate);
30377 if (PyErr_Occurred()) SWIG_fail;
30378 }
30379 {
30380 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30381 }
30382 return resultobj;
30383fail:
30384 return NULL;
30385}
30386
30387
30388SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30389 PyObject *resultobj = 0;
30390 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30391 long arg2 ;
30392 void *argp1 = 0 ;
30393 int res1 = 0 ;
30394 long val2 ;
30395 int ecode2 = 0 ;
30396 PyObject * obj0 = 0 ;
30397 PyObject * obj1 = 0 ;
30398 char * kwnames[] = {
30399 (char *) "self",(char *) "item", NULL
30400 };
30401
30402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) SWIG_fail;
30403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30404 if (!SWIG_IsOK(res1)) {
30405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30406 }
30407 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30408 ecode2 = SWIG_AsVal_long(obj1, &val2);
30409 if (!SWIG_IsOK(ecode2)) {
30410 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItem" "', expected argument " "2"" of type '" "long""'");
30411 }
30412 arg2 = static_cast< long >(val2);
30413 {
30414 PyThreadState* __tstate = wxPyBeginAllowThreads();
30415 (arg1)->RefreshItem(arg2);
30416 wxPyEndAllowThreads(__tstate);
30417 if (PyErr_Occurred()) SWIG_fail;
30418 }
30419 resultobj = SWIG_Py_Void();
30420 return resultobj;
30421fail:
30422 return NULL;
30423}
30424
30425
30426SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30427 PyObject *resultobj = 0;
30428 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30429 long arg2 ;
30430 long arg3 ;
30431 void *argp1 = 0 ;
30432 int res1 = 0 ;
30433 long val2 ;
30434 int ecode2 = 0 ;
30435 long val3 ;
30436 int ecode3 = 0 ;
30437 PyObject * obj0 = 0 ;
30438 PyObject * obj1 = 0 ;
30439 PyObject * obj2 = 0 ;
30440 char * kwnames[] = {
30441 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
30442 };
30443
30444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30446 if (!SWIG_IsOK(res1)) {
30447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30448 }
30449 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30450 ecode2 = SWIG_AsVal_long(obj1, &val2);
30451 if (!SWIG_IsOK(ecode2)) {
30452 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItems" "', expected argument " "2"" of type '" "long""'");
30453 }
30454 arg2 = static_cast< long >(val2);
30455 ecode3 = SWIG_AsVal_long(obj2, &val3);
30456 if (!SWIG_IsOK(ecode3)) {
30457 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_RefreshItems" "', expected argument " "3"" of type '" "long""'");
30458 }
30459 arg3 = static_cast< long >(val3);
30460 {
30461 PyThreadState* __tstate = wxPyBeginAllowThreads();
30462 (arg1)->RefreshItems(arg2,arg3);
30463 wxPyEndAllowThreads(__tstate);
30464 if (PyErr_Occurred()) SWIG_fail;
30465 }
30466 resultobj = SWIG_Py_Void();
30467 return resultobj;
30468fail:
30469 return NULL;
30470}
30471
30472
30473SWIGINTERN PyObject *_wrap_ListCtrl_Arrange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30474 PyObject *resultobj = 0;
30475 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30476 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
30477 bool result;
30478 void *argp1 = 0 ;
30479 int res1 = 0 ;
30480 int val2 ;
30481 int ecode2 = 0 ;
30482 PyObject * obj0 = 0 ;
30483 PyObject * obj1 = 0 ;
30484 char * kwnames[] = {
30485 (char *) "self",(char *) "flag", NULL
30486 };
30487
30488 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) SWIG_fail;
30489 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30490 if (!SWIG_IsOK(res1)) {
30491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Arrange" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30492 }
30493 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30494 if (obj1) {
30495 ecode2 = SWIG_AsVal_int(obj1, &val2);
30496 if (!SWIG_IsOK(ecode2)) {
30497 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_Arrange" "', expected argument " "2"" of type '" "int""'");
30498 }
30499 arg2 = static_cast< int >(val2);
30500 }
30501 {
30502 PyThreadState* __tstate = wxPyBeginAllowThreads();
30503 result = (bool)(arg1)->Arrange(arg2);
30504 wxPyEndAllowThreads(__tstate);
30505 if (PyErr_Occurred()) SWIG_fail;
30506 }
30507 {
30508 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30509 }
30510 return resultobj;
30511fail:
30512 return NULL;
30513}
30514
30515
30516SWIGINTERN PyObject *_wrap_ListCtrl_DeleteItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30517 PyObject *resultobj = 0;
30518 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30519 long arg2 ;
30520 bool result;
30521 void *argp1 = 0 ;
30522 int res1 = 0 ;
30523 long val2 ;
30524 int ecode2 = 0 ;
30525 PyObject * obj0 = 0 ;
30526 PyObject * obj1 = 0 ;
30527 char * kwnames[] = {
30528 (char *) "self",(char *) "item", NULL
30529 };
30530
30531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) SWIG_fail;
30532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30533 if (!SWIG_IsOK(res1)) {
30534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30535 }
30536 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30537 ecode2 = SWIG_AsVal_long(obj1, &val2);
30538 if (!SWIG_IsOK(ecode2)) {
30539 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteItem" "', expected argument " "2"" of type '" "long""'");
30540 }
30541 arg2 = static_cast< long >(val2);
30542 {
30543 PyThreadState* __tstate = wxPyBeginAllowThreads();
30544 result = (bool)(arg1)->DeleteItem(arg2);
30545 wxPyEndAllowThreads(__tstate);
30546 if (PyErr_Occurred()) SWIG_fail;
30547 }
30548 {
30549 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30550 }
30551 return resultobj;
30552fail:
30553 return NULL;
7e08d4ef
RD
30554}
30555
30556
0085ce49
RD
30557SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30558 PyObject *resultobj = 0;
30559 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30560 bool result;
30561 void *argp1 = 0 ;
30562 int res1 = 0 ;
30563 PyObject *swig_obj[1] ;
30564
30565 if (!args) SWIG_fail;
30566 swig_obj[0] = args;
30567 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30568 if (!SWIG_IsOK(res1)) {
30569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30570 }
30571 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30572 {
30573 PyThreadState* __tstate = wxPyBeginAllowThreads();
30574 result = (bool)(arg1)->DeleteAllItems();
30575 wxPyEndAllowThreads(__tstate);
30576 if (PyErr_Occurred()) SWIG_fail;
30577 }
30578 {
30579 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30580 }
30581 return resultobj;
30582fail:
30583 return NULL;
30584}
30585
30586
30587SWIGINTERN PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30588 PyObject *resultobj = 0;
30589 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30590 int arg2 ;
30591 bool result;
30592 void *argp1 = 0 ;
30593 int res1 = 0 ;
30594 int val2 ;
30595 int ecode2 = 0 ;
30596 PyObject * obj0 = 0 ;
30597 PyObject * obj1 = 0 ;
30598 char * kwnames[] = {
30599 (char *) "self",(char *) "col", NULL
30600 };
30601
30602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) SWIG_fail;
30603 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30604 if (!SWIG_IsOK(res1)) {
30605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30606 }
30607 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30608 ecode2 = SWIG_AsVal_int(obj1, &val2);
30609 if (!SWIG_IsOK(ecode2)) {
30610 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "2"" of type '" "int""'");
30611 }
30612 arg2 = static_cast< int >(val2);
30613 {
30614 PyThreadState* __tstate = wxPyBeginAllowThreads();
30615 result = (bool)(arg1)->DeleteColumn(arg2);
30616 wxPyEndAllowThreads(__tstate);
30617 if (PyErr_Occurred()) SWIG_fail;
30618 }
30619 {
30620 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30621 }
30622 return resultobj;
30623fail:
30624 return NULL;
7e08d4ef
RD
30625}
30626
30627
0085ce49
RD
30628SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30629 PyObject *resultobj = 0;
30630 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30631 bool result;
30632 void *argp1 = 0 ;
30633 int res1 = 0 ;
30634 PyObject *swig_obj[1] ;
30635
30636 if (!args) SWIG_fail;
30637 swig_obj[0] = args;
30638 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30639 if (!SWIG_IsOK(res1)) {
30640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllColumns" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30641 }
30642 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30643 {
30644 PyThreadState* __tstate = wxPyBeginAllowThreads();
30645 result = (bool)(arg1)->DeleteAllColumns();
30646 wxPyEndAllowThreads(__tstate);
30647 if (PyErr_Occurred()) SWIG_fail;
30648 }
30649 {
30650 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30651 }
30652 return resultobj;
30653fail:
30654 return NULL;
7e08d4ef
RD
30655}
30656
30657
0085ce49
RD
30658SWIGINTERN PyObject *_wrap_ListCtrl_ClearAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30659 PyObject *resultobj = 0;
30660 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30661 void *argp1 = 0 ;
30662 int res1 = 0 ;
30663 PyObject *swig_obj[1] ;
30664
30665 if (!args) SWIG_fail;
30666 swig_obj[0] = args;
30667 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30668 if (!SWIG_IsOK(res1)) {
30669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ClearAll" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30670 }
30671 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30672 {
30673 PyThreadState* __tstate = wxPyBeginAllowThreads();
30674 (arg1)->ClearAll();
30675 wxPyEndAllowThreads(__tstate);
30676 if (PyErr_Occurred()) SWIG_fail;
30677 }
30678 resultobj = SWIG_Py_Void();
30679 return resultobj;
30680fail:
30681 return NULL;
30682}
30683
30684
30685SWIGINTERN PyObject *_wrap_ListCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30686 PyObject *resultobj = 0;
30687 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30688 long arg2 ;
30689 void *argp1 = 0 ;
30690 int res1 = 0 ;
30691 long val2 ;
30692 int ecode2 = 0 ;
30693 PyObject * obj0 = 0 ;
30694 PyObject * obj1 = 0 ;
30695 char * kwnames[] = {
30696 (char *) "self",(char *) "item", NULL
30697 };
30698
30699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
30700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30701 if (!SWIG_IsOK(res1)) {
30702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30703 }
30704 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30705 ecode2 = SWIG_AsVal_long(obj1, &val2);
30706 if (!SWIG_IsOK(ecode2)) {
30707 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EditLabel" "', expected argument " "2"" of type '" "long""'");
30708 }
30709 arg2 = static_cast< long >(val2);
30710 {
30711 PyThreadState* __tstate = wxPyBeginAllowThreads();
30712 (arg1)->EditLabel(arg2);
30713 wxPyEndAllowThreads(__tstate);
30714 if (PyErr_Occurred()) SWIG_fail;
30715 }
30716 resultobj = SWIG_Py_Void();
30717 return resultobj;
30718fail:
30719 return NULL;
30720}
30721
30722
30723SWIGINTERN PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30724 PyObject *resultobj = 0;
30725 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30726 long arg2 ;
30727 bool result;
30728 void *argp1 = 0 ;
30729 int res1 = 0 ;
30730 long val2 ;
30731 int ecode2 = 0 ;
30732 PyObject * obj0 = 0 ;
30733 PyObject * obj1 = 0 ;
30734 char * kwnames[] = {
30735 (char *) "self",(char *) "item", NULL
30736 };
30737
30738 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
30739 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30740 if (!SWIG_IsOK(res1)) {
30741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30742 }
30743 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30744 ecode2 = SWIG_AsVal_long(obj1, &val2);
30745 if (!SWIG_IsOK(ecode2)) {
30746 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "2"" of type '" "long""'");
30747 }
30748 arg2 = static_cast< long >(val2);
30749 {
30750 PyThreadState* __tstate = wxPyBeginAllowThreads();
30751 result = (bool)(arg1)->EnsureVisible(arg2);
30752 wxPyEndAllowThreads(__tstate);
30753 if (PyErr_Occurred()) SWIG_fail;
30754 }
30755 {
30756 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30757 }
30758 return resultobj;
30759fail:
30760 return NULL;
30761}
30762
30763
30764SWIGINTERN PyObject *_wrap_ListCtrl_FindItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30765 PyObject *resultobj = 0;
30766 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30767 long arg2 ;
30768 wxString *arg3 = 0 ;
30769 bool arg4 = (bool) false ;
30770 long result;
30771 void *argp1 = 0 ;
30772 int res1 = 0 ;
30773 long val2 ;
30774 int ecode2 = 0 ;
30775 bool temp3 = false ;
30776 bool val4 ;
30777 int ecode4 = 0 ;
30778 PyObject * obj0 = 0 ;
30779 PyObject * obj1 = 0 ;
30780 PyObject * obj2 = 0 ;
30781 PyObject * obj3 = 0 ;
30782 char * kwnames[] = {
30783 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
30784 };
30785
30786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30788 if (!SWIG_IsOK(res1)) {
30789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30790 }
30791 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30792 ecode2 = SWIG_AsVal_long(obj1, &val2);
30793 if (!SWIG_IsOK(ecode2)) {
30794 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItem" "', expected argument " "2"" of type '" "long""'");
30795 }
30796 arg2 = static_cast< long >(val2);
30797 {
30798 arg3 = wxString_in_helper(obj2);
30799 if (arg3 == NULL) SWIG_fail;
30800 temp3 = true;
30801 }
30802 if (obj3) {
30803 ecode4 = SWIG_AsVal_bool(obj3, &val4);
30804 if (!SWIG_IsOK(ecode4)) {
30805 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItem" "', expected argument " "4"" of type '" "bool""'");
30806 }
30807 arg4 = static_cast< bool >(val4);
30808 }
30809 {
30810 PyThreadState* __tstate = wxPyBeginAllowThreads();
30811 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
30812 wxPyEndAllowThreads(__tstate);
30813 if (PyErr_Occurred()) SWIG_fail;
30814 }
30815 resultobj = SWIG_From_long(static_cast< long >(result));
30816 {
30817 if (temp3)
30818 delete arg3;
30819 }
30820 return resultobj;
30821fail:
30822 {
30823 if (temp3)
30824 delete arg3;
30825 }
30826 return NULL;
30827}
30828
30829
30830SWIGINTERN PyObject *_wrap_ListCtrl_FindItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30831 PyObject *resultobj = 0;
30832 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30833 long arg2 ;
30834 long arg3 ;
30835 long result;
30836 void *argp1 = 0 ;
30837 int res1 = 0 ;
30838 long val2 ;
30839 int ecode2 = 0 ;
30840 long val3 ;
30841 int ecode3 = 0 ;
30842 PyObject * obj0 = 0 ;
30843 PyObject * obj1 = 0 ;
30844 PyObject * obj2 = 0 ;
30845 char * kwnames[] = {
30846 (char *) "self",(char *) "start",(char *) "data", NULL
30847 };
30848
30849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30851 if (!SWIG_IsOK(res1)) {
30852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30853 }
30854 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30855 ecode2 = SWIG_AsVal_long(obj1, &val2);
30856 if (!SWIG_IsOK(ecode2)) {
30857 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemData" "', expected argument " "2"" of type '" "long""'");
30858 }
30859 arg2 = static_cast< long >(val2);
30860 ecode3 = SWIG_AsVal_long(obj2, &val3);
30861 if (!SWIG_IsOK(ecode3)) {
30862 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_FindItemData" "', expected argument " "3"" of type '" "long""'");
30863 }
30864 arg3 = static_cast< long >(val3);
30865 {
30866 PyThreadState* __tstate = wxPyBeginAllowThreads();
30867 result = (long)(arg1)->FindItem(arg2,arg3);
30868 wxPyEndAllowThreads(__tstate);
30869 if (PyErr_Occurred()) SWIG_fail;
30870 }
30871 resultobj = SWIG_From_long(static_cast< long >(result));
30872 return resultobj;
30873fail:
30874 return NULL;
30875}
30876
30877
30878SWIGINTERN PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30879 PyObject *resultobj = 0;
30880 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30881 long arg2 ;
30882 wxPoint *arg3 = 0 ;
30883 int arg4 ;
30884 long result;
30885 void *argp1 = 0 ;
30886 int res1 = 0 ;
30887 long val2 ;
30888 int ecode2 = 0 ;
30889 wxPoint temp3 ;
30890 int val4 ;
30891 int ecode4 = 0 ;
30892 PyObject * obj0 = 0 ;
30893 PyObject * obj1 = 0 ;
30894 PyObject * obj2 = 0 ;
30895 PyObject * obj3 = 0 ;
30896 char * kwnames[] = {
30897 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
30898 };
30899
30900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30901 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30902 if (!SWIG_IsOK(res1)) {
30903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30904 }
30905 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30906 ecode2 = SWIG_AsVal_long(obj1, &val2);
30907 if (!SWIG_IsOK(ecode2)) {
30908 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "2"" of type '" "long""'");
30909 }
30910 arg2 = static_cast< long >(val2);
30911 {
30912 arg3 = &temp3;
30913 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30914 }
30915 ecode4 = SWIG_AsVal_int(obj3, &val4);
30916 if (!SWIG_IsOK(ecode4)) {
30917 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "4"" of type '" "int""'");
30918 }
30919 arg4 = static_cast< int >(val4);
30920 {
30921 PyThreadState* __tstate = wxPyBeginAllowThreads();
30922 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
30923 wxPyEndAllowThreads(__tstate);
30924 if (PyErr_Occurred()) SWIG_fail;
30925 }
30926 resultobj = SWIG_From_long(static_cast< long >(result));
30927 return resultobj;
30928fail:
30929 return NULL;
30930}
30931
30932
30933SWIGINTERN PyObject *_wrap_ListCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30934 PyObject *resultobj = 0;
30935 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30936 wxPoint *arg2 = 0 ;
30937 int *arg3 = 0 ;
30938 long result;
30939 void *argp1 = 0 ;
30940 int res1 = 0 ;
30941 wxPoint temp2 ;
30942 int temp3 ;
30943 int res3 = SWIG_TMPOBJ ;
30944 PyObject * obj0 = 0 ;
30945 PyObject * obj1 = 0 ;
30946 char * kwnames[] = {
30947 (char *) "self",(char *) "point", NULL
30948 };
30949
30950 arg3 = &temp3;
30951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
30952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30953 if (!SWIG_IsOK(res1)) {
30954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30955 }
30956 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30957 {
30958 arg2 = &temp2;
30959 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30960 }
30961 {
30962 PyThreadState* __tstate = wxPyBeginAllowThreads();
30963 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
30964 wxPyEndAllowThreads(__tstate);
30965 if (PyErr_Occurred()) SWIG_fail;
30966 }
30967 resultobj = SWIG_From_long(static_cast< long >(result));
30968 if (SWIG_IsTmpObj(res3)) {
30969 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
30970 } else {
30971 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30972 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
30973 }
30974 return resultobj;
30975fail:
30976 return NULL;
30977}
30978
30979
704eda0c
RD
30980SWIGINTERN PyObject *_wrap_ListCtrl_HitTestSubItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30981 PyObject *resultobj = 0;
30982 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30983 wxPoint *arg2 = 0 ;
30984 int *arg3 = 0 ;
30985 long *arg4 = (long *) 0 ;
30986 long result;
30987 void *argp1 = 0 ;
30988 int res1 = 0 ;
30989 wxPoint temp2 ;
30990 int temp3 ;
30991 int res3 = SWIG_TMPOBJ ;
30992 long temp4 ;
30993 int res4 = SWIG_TMPOBJ ;
30994 PyObject * obj0 = 0 ;
30995 PyObject * obj1 = 0 ;
30996 char * kwnames[] = {
30997 (char *) "self",(char *) "point", NULL
30998 };
30999
31000 arg3 = &temp3;
31001 arg4 = &temp4;
31002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTestSubItem",kwnames,&obj0,&obj1)) SWIG_fail;
31003 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31004 if (!SWIG_IsOK(res1)) {
31005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTestSubItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31006 }
31007 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31008 {
31009 arg2 = &temp2;
31010 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31011 }
31012 {
31013 PyThreadState* __tstate = wxPyBeginAllowThreads();
31014 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3,arg4);
31015 wxPyEndAllowThreads(__tstate);
31016 if (PyErr_Occurred()) SWIG_fail;
31017 }
31018 resultobj = SWIG_From_long(static_cast< long >(result));
31019 if (SWIG_IsTmpObj(res3)) {
31020 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31021 } else {
31022 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31023 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31024 }
31025 if (SWIG_IsTmpObj(res4)) {
31026 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
31027 } else {
31028 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31029 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
31030 }
31031 return resultobj;
31032fail:
31033 return NULL;
31034}
31035
31036
0085ce49
RD
31037SWIGINTERN PyObject *_wrap_ListCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31038 PyObject *resultobj = 0;
31039 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31040 wxListItem *arg2 = 0 ;
31041 long result;
31042 void *argp1 = 0 ;
31043 int res1 = 0 ;
31044 void *argp2 = 0 ;
31045 int res2 = 0 ;
31046 PyObject * obj0 = 0 ;
31047 PyObject * obj1 = 0 ;
31048 char * kwnames[] = {
31049 (char *) "self",(char *) "info", NULL
31050 };
31051
31052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) SWIG_fail;
31053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31054 if (!SWIG_IsOK(res1)) {
31055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31056 }
31057 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31058 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
31059 if (!SWIG_IsOK(res2)) {
31060 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31061 }
31062 if (!argp2) {
31063 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31064 }
31065 arg2 = reinterpret_cast< wxListItem * >(argp2);
31066 {
31067 PyThreadState* __tstate = wxPyBeginAllowThreads();
31068 result = (long)(arg1)->InsertItem(*arg2);
31069 wxPyEndAllowThreads(__tstate);
31070 if (PyErr_Occurred()) SWIG_fail;
31071 }
31072 resultobj = SWIG_From_long(static_cast< long >(result));
31073 return resultobj;
31074fail:
31075 return NULL;
31076}
31077
31078
31079SWIGINTERN PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31080 PyObject *resultobj = 0;
31081 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31082 long arg2 ;
31083 wxString *arg3 = 0 ;
31084 int arg4 = (int) -1 ;
31085 long result;
31086 void *argp1 = 0 ;
31087 int res1 = 0 ;
31088 long val2 ;
31089 int ecode2 = 0 ;
31090 bool temp3 = false ;
31091 int val4 ;
31092 int ecode4 = 0 ;
31093 PyObject * obj0 = 0 ;
31094 PyObject * obj1 = 0 ;
31095 PyObject * obj2 = 0 ;
31096 PyObject * obj3 = 0 ;
31097 char * kwnames[] = {
31098 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31099 };
31100
31101 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31102 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31103 if (!SWIG_IsOK(res1)) {
31104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31105 }
31106 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31107 ecode2 = SWIG_AsVal_long(obj1, &val2);
31108 if (!SWIG_IsOK(ecode2)) {
31109 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "2"" of type '" "long""'");
31110 }
31111 arg2 = static_cast< long >(val2);
31112 {
31113 arg3 = wxString_in_helper(obj2);
31114 if (arg3 == NULL) SWIG_fail;
31115 temp3 = true;
31116 }
31117 if (obj3) {
31118 ecode4 = SWIG_AsVal_int(obj3, &val4);
31119 if (!SWIG_IsOK(ecode4)) {
31120 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "4"" of type '" "int""'");
31121 }
31122 arg4 = static_cast< int >(val4);
31123 }
31124 {
31125 PyThreadState* __tstate = wxPyBeginAllowThreads();
31126 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31127 wxPyEndAllowThreads(__tstate);
31128 if (PyErr_Occurred()) SWIG_fail;
31129 }
31130 resultobj = SWIG_From_long(static_cast< long >(result));
31131 {
31132 if (temp3)
31133 delete arg3;
31134 }
31135 return resultobj;
31136fail:
31137 {
31138 if (temp3)
31139 delete arg3;
31140 }
31141 return NULL;
31142}
31143
31144
31145SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31146 PyObject *resultobj = 0;
31147 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31148 long arg2 ;
31149 int arg3 ;
31150 long result;
31151 void *argp1 = 0 ;
31152 int res1 = 0 ;
31153 long val2 ;
31154 int ecode2 = 0 ;
31155 int val3 ;
31156 int ecode3 = 0 ;
31157 PyObject * obj0 = 0 ;
31158 PyObject * obj1 = 0 ;
31159 PyObject * obj2 = 0 ;
31160 char * kwnames[] = {
31161 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
31162 };
31163
31164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31166 if (!SWIG_IsOK(res1)) {
31167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31168 }
31169 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31170 ecode2 = SWIG_AsVal_long(obj1, &val2);
31171 if (!SWIG_IsOK(ecode2)) {
31172 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "2"" of type '" "long""'");
31173 }
31174 arg2 = static_cast< long >(val2);
31175 ecode3 = SWIG_AsVal_int(obj2, &val3);
31176 if (!SWIG_IsOK(ecode3)) {
31177 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "3"" of type '" "int""'");
31178 }
31179 arg3 = static_cast< int >(val3);
31180 {
31181 PyThreadState* __tstate = wxPyBeginAllowThreads();
31182 result = (long)(arg1)->InsertItem(arg2,arg3);
31183 wxPyEndAllowThreads(__tstate);
31184 if (PyErr_Occurred()) SWIG_fail;
31185 }
31186 resultobj = SWIG_From_long(static_cast< long >(result));
31187 return resultobj;
31188fail:
31189 return NULL;
31190}
31191
31192
31193SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31194 PyObject *resultobj = 0;
31195 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31196 long arg2 ;
31197 wxString *arg3 = 0 ;
31198 int arg4 ;
31199 long result;
31200 void *argp1 = 0 ;
31201 int res1 = 0 ;
31202 long val2 ;
31203 int ecode2 = 0 ;
31204 bool temp3 = false ;
31205 int val4 ;
31206 int ecode4 = 0 ;
31207 PyObject * obj0 = 0 ;
31208 PyObject * obj1 = 0 ;
31209 PyObject * obj2 = 0 ;
31210 PyObject * obj3 = 0 ;
31211 char * kwnames[] = {
31212 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31213 };
31214
31215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31216 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31217 if (!SWIG_IsOK(res1)) {
31218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31219 }
31220 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31221 ecode2 = SWIG_AsVal_long(obj1, &val2);
31222 if (!SWIG_IsOK(ecode2)) {
31223 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "2"" of type '" "long""'");
31224 }
31225 arg2 = static_cast< long >(val2);
31226 {
31227 arg3 = wxString_in_helper(obj2);
31228 if (arg3 == NULL) SWIG_fail;
31229 temp3 = true;
31230 }
31231 ecode4 = SWIG_AsVal_int(obj3, &val4);
31232 if (!SWIG_IsOK(ecode4)) {
31233 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "4"" of type '" "int""'");
31234 }
31235 arg4 = static_cast< int >(val4);
31236 {
31237 PyThreadState* __tstate = wxPyBeginAllowThreads();
31238 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31239 wxPyEndAllowThreads(__tstate);
31240 if (PyErr_Occurred()) SWIG_fail;
31241 }
31242 resultobj = SWIG_From_long(static_cast< long >(result));
31243 {
31244 if (temp3)
31245 delete arg3;
31246 }
31247 return resultobj;
31248fail:
31249 {
31250 if (temp3)
31251 delete arg3;
31252 }
31253 return NULL;
31254}
31255
31256
31257SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31258 PyObject *resultobj = 0;
31259 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31260 long arg2 ;
31261 wxListItem *arg3 = 0 ;
31262 long result;
31263 void *argp1 = 0 ;
31264 int res1 = 0 ;
31265 long val2 ;
31266 int ecode2 = 0 ;
31267 void *argp3 = 0 ;
31268 int res3 = 0 ;
31269 PyObject * obj0 = 0 ;
31270 PyObject * obj1 = 0 ;
31271 PyObject * obj2 = 0 ;
31272 char * kwnames[] = {
31273 (char *) "self",(char *) "col",(char *) "info", NULL
31274 };
31275
31276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31278 if (!SWIG_IsOK(res1)) {
31279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31280 }
31281 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31282 ecode2 = SWIG_AsVal_long(obj1, &val2);
31283 if (!SWIG_IsOK(ecode2)) {
31284 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "2"" of type '" "long""'");
31285 }
31286 arg2 = static_cast< long >(val2);
31287 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
31288 if (!SWIG_IsOK(res3)) {
31289 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31290 }
31291 if (!argp3) {
31292 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31293 }
31294 arg3 = reinterpret_cast< wxListItem * >(argp3);
31295 {
31296 PyThreadState* __tstate = wxPyBeginAllowThreads();
31297 result = (long)(arg1)->InsertColumn(arg2,*arg3);
31298 wxPyEndAllowThreads(__tstate);
31299 if (PyErr_Occurred()) SWIG_fail;
31300 }
31301 resultobj = SWIG_From_long(static_cast< long >(result));
31302 return resultobj;
31303fail:
31304 return NULL;
31305}
31306
31307
31308SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31309 PyObject *resultobj = 0;
31310 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31311 long arg2 ;
31312 wxString *arg3 = 0 ;
31313 int arg4 = (int) wxLIST_FORMAT_LEFT ;
31314 int arg5 = (int) -1 ;
31315 long result;
31316 void *argp1 = 0 ;
31317 int res1 = 0 ;
31318 long val2 ;
31319 int ecode2 = 0 ;
31320 bool temp3 = false ;
31321 int val4 ;
31322 int ecode4 = 0 ;
31323 int val5 ;
31324 int ecode5 = 0 ;
31325 PyObject * obj0 = 0 ;
31326 PyObject * obj1 = 0 ;
31327 PyObject * obj2 = 0 ;
31328 PyObject * obj3 = 0 ;
31329 PyObject * obj4 = 0 ;
31330 char * kwnames[] = {
31331 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
31332 };
31333
31334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31336 if (!SWIG_IsOK(res1)) {
31337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31338 }
31339 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31340 ecode2 = SWIG_AsVal_long(obj1, &val2);
31341 if (!SWIG_IsOK(ecode2)) {
31342 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumn" "', expected argument " "2"" of type '" "long""'");
31343 }
31344 arg2 = static_cast< long >(val2);
31345 {
31346 arg3 = wxString_in_helper(obj2);
31347 if (arg3 == NULL) SWIG_fail;
31348 temp3 = true;
31349 }
31350 if (obj3) {
31351 ecode4 = SWIG_AsVal_int(obj3, &val4);
31352 if (!SWIG_IsOK(ecode4)) {
31353 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertColumn" "', expected argument " "4"" of type '" "int""'");
31354 }
31355 arg4 = static_cast< int >(val4);
31356 }
31357 if (obj4) {
31358 ecode5 = SWIG_AsVal_int(obj4, &val5);
31359 if (!SWIG_IsOK(ecode5)) {
31360 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_InsertColumn" "', expected argument " "5"" of type '" "int""'");
31361 }
31362 arg5 = static_cast< int >(val5);
31363 }
31364 {
31365 PyThreadState* __tstate = wxPyBeginAllowThreads();
31366 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
31367 wxPyEndAllowThreads(__tstate);
31368 if (PyErr_Occurred()) SWIG_fail;
31369 }
31370 resultobj = SWIG_From_long(static_cast< long >(result));
31371 {
31372 if (temp3)
31373 delete arg3;
31374 }
31375 return resultobj;
31376fail:
31377 {
31378 if (temp3)
31379 delete arg3;
31380 }
31381 return NULL;
31382}
31383
31384
31385SWIGINTERN PyObject *_wrap_ListCtrl_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31386 PyObject *resultobj = 0;
31387 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31388 long arg2 ;
31389 void *argp1 = 0 ;
31390 int res1 = 0 ;
31391 long val2 ;
31392 int ecode2 = 0 ;
31393 PyObject * obj0 = 0 ;
31394 PyObject * obj1 = 0 ;
31395 char * kwnames[] = {
31396 (char *) "self",(char *) "count", NULL
31397 };
31398
31399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail;
31400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31401 if (!SWIG_IsOK(res1)) {
31402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31403 }
31404 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31405 ecode2 = SWIG_AsVal_long(obj1, &val2);
31406 if (!SWIG_IsOK(ecode2)) {
31407 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemCount" "', expected argument " "2"" of type '" "long""'");
31408 }
31409 arg2 = static_cast< long >(val2);
31410 {
31411 PyThreadState* __tstate = wxPyBeginAllowThreads();
31412 (arg1)->SetItemCount(arg2);
31413 wxPyEndAllowThreads(__tstate);
31414 if (PyErr_Occurred()) SWIG_fail;
31415 }
31416 resultobj = SWIG_Py_Void();
31417 return resultobj;
31418fail:
31419 return NULL;
31420}
31421
31422
31423SWIGINTERN PyObject *_wrap_ListCtrl_ScrollList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31424 PyObject *resultobj = 0;
31425 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31426 int arg2 ;
31427 int arg3 ;
31428 bool result;
31429 void *argp1 = 0 ;
31430 int res1 = 0 ;
31431 int val2 ;
31432 int ecode2 = 0 ;
31433 int val3 ;
31434 int ecode3 = 0 ;
31435 PyObject * obj0 = 0 ;
31436 PyObject * obj1 = 0 ;
31437 PyObject * obj2 = 0 ;
31438 char * kwnames[] = {
31439 (char *) "self",(char *) "dx",(char *) "dy", NULL
31440 };
31441
31442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31444 if (!SWIG_IsOK(res1)) {
31445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ScrollList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31446 }
31447 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31448 ecode2 = SWIG_AsVal_int(obj1, &val2);
31449 if (!SWIG_IsOK(ecode2)) {
31450 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_ScrollList" "', expected argument " "2"" of type '" "int""'");
31451 }
31452 arg2 = static_cast< int >(val2);
31453 ecode3 = SWIG_AsVal_int(obj2, &val3);
31454 if (!SWIG_IsOK(ecode3)) {
31455 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_ScrollList" "', expected argument " "3"" of type '" "int""'");
31456 }
31457 arg3 = static_cast< int >(val3);
31458 {
31459 PyThreadState* __tstate = wxPyBeginAllowThreads();
31460 result = (bool)(arg1)->ScrollList(arg2,arg3);
31461 wxPyEndAllowThreads(__tstate);
31462 if (PyErr_Occurred()) SWIG_fail;
31463 }
31464 {
31465 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31466 }
31467 return resultobj;
31468fail:
31469 return NULL;
31470}
31471
31472
31473SWIGINTERN PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31474 PyObject *resultobj = 0;
31475 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31476 long arg2 ;
31477 wxColour *arg3 = 0 ;
31478 void *argp1 = 0 ;
31479 int res1 = 0 ;
31480 long val2 ;
31481 int ecode2 = 0 ;
31482 wxColour temp3 ;
31483 PyObject * obj0 = 0 ;
31484 PyObject * obj1 = 0 ;
31485 PyObject * obj2 = 0 ;
31486 char * kwnames[] = {
31487 (char *) "self",(char *) "item",(char *) "col", NULL
31488 };
31489
31490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31492 if (!SWIG_IsOK(res1)) {
31493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31494 }
31495 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31496 ecode2 = SWIG_AsVal_long(obj1, &val2);
31497 if (!SWIG_IsOK(ecode2)) {
31498 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31499 }
31500 arg2 = static_cast< long >(val2);
31501 {
31502 arg3 = &temp3;
31503 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31504 }
31505 {
31506 PyThreadState* __tstate = wxPyBeginAllowThreads();
31507 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
31508 wxPyEndAllowThreads(__tstate);
31509 if (PyErr_Occurred()) SWIG_fail;
31510 }
31511 resultobj = SWIG_Py_Void();
31512 return resultobj;
31513fail:
31514 return NULL;
31515}
31516
31517
31518SWIGINTERN PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31519 PyObject *resultobj = 0;
31520 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31521 long arg2 ;
31522 wxColour result;
31523 void *argp1 = 0 ;
31524 int res1 = 0 ;
31525 long val2 ;
31526 int ecode2 = 0 ;
31527 PyObject * obj0 = 0 ;
31528 PyObject * obj1 = 0 ;
31529 char * kwnames[] = {
31530 (char *) "self",(char *) "item", NULL
31531 };
31532
31533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
31534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31535 if (!SWIG_IsOK(res1)) {
31536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31537 }
31538 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31539 ecode2 = SWIG_AsVal_long(obj1, &val2);
31540 if (!SWIG_IsOK(ecode2)) {
31541 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31542 }
31543 arg2 = static_cast< long >(val2);
31544 {
31545 PyThreadState* __tstate = wxPyBeginAllowThreads();
31546 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
31547 wxPyEndAllowThreads(__tstate);
31548 if (PyErr_Occurred()) SWIG_fail;
31549 }
31550 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31551 return resultobj;
31552fail:
31553 return NULL;
31554}
31555
31556
31557SWIGINTERN PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31558 PyObject *resultobj = 0;
31559 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31560 long arg2 ;
31561 wxColour *arg3 = 0 ;
31562 void *argp1 = 0 ;
31563 int res1 = 0 ;
31564 long val2 ;
31565 int ecode2 = 0 ;
31566 wxColour temp3 ;
31567 PyObject * obj0 = 0 ;
31568 PyObject * obj1 = 0 ;
31569 PyObject * obj2 = 0 ;
31570 char * kwnames[] = {
31571 (char *) "self",(char *) "item",(char *) "col", NULL
31572 };
31573
31574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31576 if (!SWIG_IsOK(res1)) {
31577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31578 }
31579 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31580 ecode2 = SWIG_AsVal_long(obj1, &val2);
31581 if (!SWIG_IsOK(ecode2)) {
31582 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31583 }
31584 arg2 = static_cast< long >(val2);
31585 {
31586 arg3 = &temp3;
31587 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31588 }
31589 {
31590 PyThreadState* __tstate = wxPyBeginAllowThreads();
31591 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
31592 wxPyEndAllowThreads(__tstate);
31593 if (PyErr_Occurred()) SWIG_fail;
31594 }
31595 resultobj = SWIG_Py_Void();
31596 return resultobj;
31597fail:
31598 return NULL;
31599}
31600
31601
31602SWIGINTERN PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31603 PyObject *resultobj = 0;
31604 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31605 long arg2 ;
31606 wxColour result;
31607 void *argp1 = 0 ;
31608 int res1 = 0 ;
31609 long val2 ;
31610 int ecode2 = 0 ;
31611 PyObject * obj0 = 0 ;
31612 PyObject * obj1 = 0 ;
31613 char * kwnames[] = {
31614 (char *) "self",(char *) "item", NULL
31615 };
31616
31617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
31618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31619 if (!SWIG_IsOK(res1)) {
31620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31621 }
31622 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31623 ecode2 = SWIG_AsVal_long(obj1, &val2);
31624 if (!SWIG_IsOK(ecode2)) {
31625 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31626 }
31627 arg2 = static_cast< long >(val2);
31628 {
31629 PyThreadState* __tstate = wxPyBeginAllowThreads();
31630 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
31631 wxPyEndAllowThreads(__tstate);
31632 if (PyErr_Occurred()) SWIG_fail;
31633 }
31634 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31635 return resultobj;
31636fail:
31637 return NULL;
31638}
31639
31640
31641SWIGINTERN PyObject *_wrap_ListCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31642 PyObject *resultobj = 0;
31643 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31644 long arg2 ;
31645 wxFont *arg3 = 0 ;
31646 void *argp1 = 0 ;
31647 int res1 = 0 ;
31648 long val2 ;
31649 int ecode2 = 0 ;
31650 void *argp3 = 0 ;
31651 int res3 = 0 ;
31652 PyObject * obj0 = 0 ;
31653 PyObject * obj1 = 0 ;
31654 PyObject * obj2 = 0 ;
31655 char * kwnames[] = {
31656 (char *) "self",(char *) "item",(char *) "f", NULL
31657 };
31658
31659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31661 if (!SWIG_IsOK(res1)) {
31662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31663 }
31664 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31665 ecode2 = SWIG_AsVal_long(obj1, &val2);
31666 if (!SWIG_IsOK(ecode2)) {
31667 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemFont" "', expected argument " "2"" of type '" "long""'");
31668 }
31669 arg2 = static_cast< long >(val2);
31670 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
31671 if (!SWIG_IsOK(res3)) {
31672 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31673 }
31674 if (!argp3) {
31675 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31676 }
31677 arg3 = reinterpret_cast< wxFont * >(argp3);
31678 {
31679 PyThreadState* __tstate = wxPyBeginAllowThreads();
31680 (arg1)->SetItemFont(arg2,(wxFont const &)*arg3);
31681 wxPyEndAllowThreads(__tstate);
31682 if (PyErr_Occurred()) SWIG_fail;
31683 }
31684 resultobj = SWIG_Py_Void();
31685 return resultobj;
31686fail:
31687 return NULL;
31688}
31689
31690
31691SWIGINTERN PyObject *_wrap_ListCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31692 PyObject *resultobj = 0;
31693 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31694 long arg2 ;
31695 wxFont result;
31696 void *argp1 = 0 ;
31697 int res1 = 0 ;
31698 long val2 ;
31699 int ecode2 = 0 ;
31700 PyObject * obj0 = 0 ;
31701 PyObject * obj1 = 0 ;
31702 char * kwnames[] = {
31703 (char *) "self",(char *) "item", NULL
31704 };
31705
31706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
31707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31708 if (!SWIG_IsOK(res1)) {
31709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31710 }
31711 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31712 ecode2 = SWIG_AsVal_long(obj1, &val2);
31713 if (!SWIG_IsOK(ecode2)) {
31714 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemFont" "', expected argument " "2"" of type '" "long""'");
31715 }
31716 arg2 = static_cast< long >(val2);
31717 {
31718 PyThreadState* __tstate = wxPyBeginAllowThreads();
31719 result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2);
31720 wxPyEndAllowThreads(__tstate);
31721 if (PyErr_Occurred()) SWIG_fail;
31722 }
31723 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
31724 return resultobj;
31725fail:
31726 return NULL;
31727}
31728
31729
31730SWIGINTERN PyObject *_wrap_ListCtrl_SortItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31731 PyObject *resultobj = 0;
31732 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31733 PyObject *arg2 = (PyObject *) 0 ;
31734 bool result;
31735 void *argp1 = 0 ;
31736 int res1 = 0 ;
31737 PyObject * obj0 = 0 ;
31738 PyObject * obj1 = 0 ;
31739 char * kwnames[] = {
31740 (char *) "self",(char *) "func", NULL
31741 };
31742
31743 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) SWIG_fail;
31744 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31745 if (!SWIG_IsOK(res1)) {
31746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SortItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31747 }
31748 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31749 arg2 = obj1;
31750 {
31751 PyThreadState* __tstate = wxPyBeginAllowThreads();
31752 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
31753 wxPyEndAllowThreads(__tstate);
31754 if (PyErr_Occurred()) SWIG_fail;
31755 }
31756 {
31757 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31758 }
31759 return resultobj;
31760fail:
31761 return NULL;
7e08d4ef
RD
31762}
31763
31764
0085ce49
RD
31765SWIGINTERN PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31766 PyObject *resultobj = 0;
31767 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31768 wxWindow *result = 0 ;
31769 void *argp1 = 0 ;
31770 int res1 = 0 ;
31771 PyObject *swig_obj[1] ;
31772
31773 if (!args) SWIG_fail;
31774 swig_obj[0] = args;
31775 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31776 if (!SWIG_IsOK(res1)) {
31777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetMainWindow" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31778 }
31779 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31780 {
31781 PyThreadState* __tstate = wxPyBeginAllowThreads();
31782 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
31783 wxPyEndAllowThreads(__tstate);
31784 if (PyErr_Occurred()) SWIG_fail;
31785 }
31786 {
31787 resultobj = wxPyMake_wxObject(result, 0);
31788 }
31789 return resultobj;
31790fail:
31791 return NULL;
31792}
31793
31794
31795SWIGINTERN PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31796 PyObject *resultobj = 0;
31797 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
31798 SwigValueWrapper<wxVisualAttributes > result;
31799 int val1 ;
31800 int ecode1 = 0 ;
31801 PyObject * obj0 = 0 ;
31802 char * kwnames[] = {
31803 (char *) "variant", NULL
31804 };
31805
31806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
31807 if (obj0) {
31808 ecode1 = SWIG_AsVal_int(obj0, &val1);
31809 if (!SWIG_IsOK(ecode1)) {
31810 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
31811 }
31812 arg1 = static_cast< wxWindowVariant >(val1);
31813 }
31814 {
31815 if (!wxPyCheckForApp()) SWIG_fail;
31816 PyThreadState* __tstate = wxPyBeginAllowThreads();
31817 result = wxPyListCtrl::GetClassDefaultAttributes(arg1);
31818 wxPyEndAllowThreads(__tstate);
31819 if (PyErr_Occurred()) SWIG_fail;
31820 }
31821 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
31822 return resultobj;
31823fail:
31824 return NULL;
31825}
31826
31827
31828SWIGINTERN PyObject *ListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31829 PyObject *obj;
31830 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31831 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyListCtrl, SWIG_NewClientData(obj));
31832 return SWIG_Py_Void();
31833}
31834
31835SWIGINTERN PyObject *ListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31836 return SWIG_Python_InitShadowInstance(args);
31837}
31838
31839SWIGINTERN PyObject *_wrap_new_ListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31840 PyObject *resultobj = 0;
31841 wxWindow *arg1 = (wxWindow *) 0 ;
31842 int arg2 = (int) -1 ;
31843 wxPoint const &arg3_defvalue = wxDefaultPosition ;
31844 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
31845 wxSize const &arg4_defvalue = wxDefaultSize ;
31846 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
31847 long arg5 = (long) wxLC_REPORT ;
31848 wxValidator const &arg6_defvalue = wxDefaultValidator ;
31849 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
31850 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
31851 wxString *arg7 = (wxString *) &arg7_defvalue ;
31852 wxListView *result = 0 ;
31853 void *argp1 = 0 ;
31854 int res1 = 0 ;
31855 int val2 ;
31856 int ecode2 = 0 ;
31857 wxPoint temp3 ;
31858 wxSize temp4 ;
31859 long val5 ;
31860 int ecode5 = 0 ;
31861 void *argp6 = 0 ;
31862 int res6 = 0 ;
31863 bool temp7 = false ;
31864 PyObject * obj0 = 0 ;
31865 PyObject * obj1 = 0 ;
31866 PyObject * obj2 = 0 ;
31867 PyObject * obj3 = 0 ;
31868 PyObject * obj4 = 0 ;
31869 PyObject * obj5 = 0 ;
31870 PyObject * obj6 = 0 ;
31871 char * kwnames[] = {
31872 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
31873 };
31874
31875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
31877 if (!SWIG_IsOK(res1)) {
31878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListView" "', expected argument " "1"" of type '" "wxWindow *""'");
31879 }
31880 arg1 = reinterpret_cast< wxWindow * >(argp1);
31881 if (obj1) {
31882 ecode2 = SWIG_AsVal_int(obj1, &val2);
31883 if (!SWIG_IsOK(ecode2)) {
31884 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListView" "', expected argument " "2"" of type '" "int""'");
31885 }
31886 arg2 = static_cast< int >(val2);
31887 }
31888 if (obj2) {
7e08d4ef 31889 {
0085ce49
RD
31890 arg3 = &temp3;
31891 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
7e08d4ef 31892 }
0085ce49
RD
31893 }
31894 if (obj3) {
7e08d4ef 31895 {
0085ce49
RD
31896 arg4 = &temp4;
31897 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
7e08d4ef 31898 }
0085ce49
RD
31899 }
31900 if (obj4) {
31901 ecode5 = SWIG_AsVal_long(obj4, &val5);
31902 if (!SWIG_IsOK(ecode5)) {
31903 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListView" "', expected argument " "5"" of type '" "long""'");
31904 }
31905 arg5 = static_cast< long >(val5);
31906 }
31907 if (obj5) {
31908 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
31909 if (!SWIG_IsOK(res6)) {
31910 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
7e08d4ef 31911 }
0085ce49
RD
31912 if (!argp6) {
31913 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
7e08d4ef 31914 }
0085ce49
RD
31915 arg6 = reinterpret_cast< wxValidator * >(argp6);
31916 }
31917 if (obj6) {
7e08d4ef 31918 {
0085ce49
RD
31919 arg7 = wxString_in_helper(obj6);
31920 if (arg7 == NULL) SWIG_fail;
31921 temp7 = true;
7e08d4ef 31922 }
0085ce49
RD
31923 }
31924 {
31925 if (!wxPyCheckForApp()) SWIG_fail;
31926 PyThreadState* __tstate = wxPyBeginAllowThreads();
31927 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
31928 wxPyEndAllowThreads(__tstate);
31929 if (PyErr_Occurred()) SWIG_fail;
31930 }
31931 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_NEW | 0 );
31932 {
31933 if (temp7)
31934 delete arg7;
31935 }
31936 return resultobj;
31937fail:
31938 {
31939 if (temp7)
31940 delete arg7;
31941 }
31942 return NULL;
7e08d4ef
RD
31943}
31944
31945
0085ce49
RD
31946SWIGINTERN PyObject *_wrap_new_PreListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31947 PyObject *resultobj = 0;
31948 wxListView *result = 0 ;
31949
31950 if (!SWIG_Python_UnpackTuple(args,"new_PreListView",0,0,0)) SWIG_fail;
31951 {
31952 if (!wxPyCheckForApp()) SWIG_fail;
31953 PyThreadState* __tstate = wxPyBeginAllowThreads();
31954 result = (wxListView *)new wxListView();
31955 wxPyEndAllowThreads(__tstate);
31956 if (PyErr_Occurred()) SWIG_fail;
31957 }
31958 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_OWN | 0 );
31959 return resultobj;
31960fail:
31961 return NULL;
31962}
31963
31964
31965SWIGINTERN PyObject *_wrap_ListView_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31966 PyObject *resultobj = 0;
31967 wxListView *arg1 = (wxListView *) 0 ;
31968 wxWindow *arg2 = (wxWindow *) 0 ;
31969 int arg3 = (int) -1 ;
31970 wxPoint const &arg4_defvalue = wxDefaultPosition ;
31971 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
31972 wxSize const &arg5_defvalue = wxDefaultSize ;
31973 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
31974 long arg6 = (long) wxLC_REPORT ;
31975 wxValidator const &arg7_defvalue = wxDefaultValidator ;
31976 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
31977 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
31978 wxString *arg8 = (wxString *) &arg8_defvalue ;
31979 bool result;
31980 void *argp1 = 0 ;
31981 int res1 = 0 ;
31982 void *argp2 = 0 ;
31983 int res2 = 0 ;
31984 int val3 ;
31985 int ecode3 = 0 ;
31986 wxPoint temp4 ;
31987 wxSize temp5 ;
31988 long val6 ;
31989 int ecode6 = 0 ;
31990 void *argp7 = 0 ;
31991 int res7 = 0 ;
31992 bool temp8 = false ;
31993 PyObject * obj0 = 0 ;
31994 PyObject * obj1 = 0 ;
31995 PyObject * obj2 = 0 ;
31996 PyObject * obj3 = 0 ;
31997 PyObject * obj4 = 0 ;
31998 PyObject * obj5 = 0 ;
31999 PyObject * obj6 = 0 ;
32000 PyObject * obj7 = 0 ;
32001 char * kwnames[] = {
32002 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
32003 };
32004
32005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
32006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32007 if (!SWIG_IsOK(res1)) {
32008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Create" "', expected argument " "1"" of type '" "wxListView *""'");
32009 }
32010 arg1 = reinterpret_cast< wxListView * >(argp1);
32011 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
32012 if (!SWIG_IsOK(res2)) {
32013 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListView_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
32014 }
32015 arg2 = reinterpret_cast< wxWindow * >(argp2);
32016 if (obj2) {
32017 ecode3 = SWIG_AsVal_int(obj2, &val3);
32018 if (!SWIG_IsOK(ecode3)) {
32019 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Create" "', expected argument " "3"" of type '" "int""'");
32020 }
32021 arg3 = static_cast< int >(val3);
32022 }
32023 if (obj3) {
7e08d4ef 32024 {
0085ce49
RD
32025 arg4 = &temp4;
32026 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7e08d4ef 32027 }
0085ce49
RD
32028 }
32029 if (obj4) {
7e08d4ef 32030 {
0085ce49
RD
32031 arg5 = &temp5;
32032 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7e08d4ef 32033 }
0085ce49
RD
32034 }
32035 if (obj5) {
32036 ecode6 = SWIG_AsVal_long(obj5, &val6);
32037 if (!SWIG_IsOK(ecode6)) {
32038 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListView_Create" "', expected argument " "6"" of type '" "long""'");
32039 }
32040 arg6 = static_cast< long >(val6);
32041 }
32042 if (obj6) {
32043 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
32044 if (!SWIG_IsOK(res7)) {
32045 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
7e08d4ef 32046 }
0085ce49
RD
32047 if (!argp7) {
32048 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
7e08d4ef 32049 }
0085ce49
RD
32050 arg7 = reinterpret_cast< wxValidator * >(argp7);
32051 }
32052 if (obj7) {
7e08d4ef 32053 {
0085ce49
RD
32054 arg8 = wxString_in_helper(obj7);
32055 if (arg8 == NULL) SWIG_fail;
32056 temp8 = true;
7e08d4ef 32057 }
0085ce49
RD
32058 }
32059 {
32060 PyThreadState* __tstate = wxPyBeginAllowThreads();
32061 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
32062 wxPyEndAllowThreads(__tstate);
32063 if (PyErr_Occurred()) SWIG_fail;
32064 }
32065 {
32066 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32067 }
32068 {
32069 if (temp8)
32070 delete arg8;
32071 }
32072 return resultobj;
32073fail:
32074 {
32075 if (temp8)
32076 delete arg8;
32077 }
32078 return NULL;
32079}
32080
32081
32082SWIGINTERN PyObject *_wrap_ListView_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32083 PyObject *resultobj = 0;
32084 wxListView *arg1 = (wxListView *) 0 ;
32085 long arg2 ;
32086 bool arg3 = (bool) true ;
32087 void *argp1 = 0 ;
32088 int res1 = 0 ;
32089 long val2 ;
32090 int ecode2 = 0 ;
32091 bool val3 ;
32092 int ecode3 = 0 ;
32093 PyObject * obj0 = 0 ;
32094 PyObject * obj1 = 0 ;
32095 PyObject * obj2 = 0 ;
32096 char * kwnames[] = {
32097 (char *) "self",(char *) "n",(char *) "on", NULL
32098 };
32099
32100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32102 if (!SWIG_IsOK(res1)) {
32103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Select" "', expected argument " "1"" of type '" "wxListView *""'");
32104 }
32105 arg1 = reinterpret_cast< wxListView * >(argp1);
32106 ecode2 = SWIG_AsVal_long(obj1, &val2);
32107 if (!SWIG_IsOK(ecode2)) {
32108 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Select" "', expected argument " "2"" of type '" "long""'");
32109 }
32110 arg2 = static_cast< long >(val2);
32111 if (obj2) {
32112 ecode3 = SWIG_AsVal_bool(obj2, &val3);
32113 if (!SWIG_IsOK(ecode3)) {
32114 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Select" "', expected argument " "3"" of type '" "bool""'");
32115 }
32116 arg3 = static_cast< bool >(val3);
32117 }
32118 {
32119 PyThreadState* __tstate = wxPyBeginAllowThreads();
32120 (arg1)->Select(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_Focus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32132 PyObject *resultobj = 0;
32133 wxListView *arg1 = (wxListView *) 0 ;
32134 long arg2 ;
32135 void *argp1 = 0 ;
32136 int res1 = 0 ;
32137 long val2 ;
32138 int ecode2 = 0 ;
32139 PyObject * obj0 = 0 ;
32140 PyObject * obj1 = 0 ;
32141 char * kwnames[] = {
32142 (char *) "self",(char *) "index", NULL
32143 };
32144
32145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",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_Focus" "', expected argument " "1"" of type '" "wxListView *""'");
32149 }
32150 arg1 = reinterpret_cast< wxListView * >(argp1);
32151 ecode2 = SWIG_AsVal_long(obj1, &val2);
32152 if (!SWIG_IsOK(ecode2)) {
32153 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Focus" "', expected argument " "2"" of type '" "long""'");
32154 }
32155 arg2 = static_cast< long >(val2);
32156 {
32157 PyThreadState* __tstate = wxPyBeginAllowThreads();
32158 (arg1)->Focus(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 *_wrap_ListView_GetFocusedItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32170 PyObject *resultobj = 0;
32171 wxListView *arg1 = (wxListView *) 0 ;
32172 long result;
32173 void *argp1 = 0 ;
32174 int res1 = 0 ;
32175 PyObject *swig_obj[1] ;
32176
32177 if (!args) SWIG_fail;
32178 swig_obj[0] = args;
32179 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32180 if (!SWIG_IsOK(res1)) {
32181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFocusedItem" "', expected argument " "1"" of type '" "wxListView const *""'");
32182 }
32183 arg1 = reinterpret_cast< wxListView * >(argp1);
32184 {
32185 PyThreadState* __tstate = wxPyBeginAllowThreads();
32186 result = (long)((wxListView const *)arg1)->GetFocusedItem();
32187 wxPyEndAllowThreads(__tstate);
32188 if (PyErr_Occurred()) SWIG_fail;
32189 }
32190 resultobj = SWIG_From_long(static_cast< long >(result));
32191 return resultobj;
32192fail:
32193 return NULL;
32194}
32195
32196
32197SWIGINTERN PyObject *_wrap_ListView_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32198 PyObject *resultobj = 0;
32199 wxListView *arg1 = (wxListView *) 0 ;
32200 long arg2 ;
32201 long result;
32202 void *argp1 = 0 ;
32203 int res1 = 0 ;
32204 long val2 ;
32205 int ecode2 = 0 ;
32206 PyObject * obj0 = 0 ;
32207 PyObject * obj1 = 0 ;
32208 char * kwnames[] = {
32209 (char *) "self",(char *) "item", NULL
32210 };
32211
32212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32214 if (!SWIG_IsOK(res1)) {
32215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetNextSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32216 }
32217 arg1 = reinterpret_cast< wxListView * >(argp1);
32218 ecode2 = SWIG_AsVal_long(obj1, &val2);
32219 if (!SWIG_IsOK(ecode2)) {
32220 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_GetNextSelected" "', expected argument " "2"" of type '" "long""'");
32221 }
32222 arg2 = static_cast< long >(val2);
32223 {
32224 PyThreadState* __tstate = wxPyBeginAllowThreads();
32225 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
32226 wxPyEndAllowThreads(__tstate);
32227 if (PyErr_Occurred()) SWIG_fail;
32228 }
32229 resultobj = SWIG_From_long(static_cast< long >(result));
32230 return resultobj;
32231fail:
32232 return NULL;
7e08d4ef
RD
32233}
32234
32235
0085ce49
RD
32236SWIGINTERN PyObject *_wrap_ListView_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32237 PyObject *resultobj = 0;
32238 wxListView *arg1 = (wxListView *) 0 ;
32239 long result;
32240 void *argp1 = 0 ;
32241 int res1 = 0 ;
32242 PyObject *swig_obj[1] ;
32243
32244 if (!args) SWIG_fail;
32245 swig_obj[0] = args;
32246 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32247 if (!SWIG_IsOK(res1)) {
32248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFirstSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32249 }
32250 arg1 = reinterpret_cast< wxListView * >(argp1);
32251 {
32252 PyThreadState* __tstate = wxPyBeginAllowThreads();
32253 result = (long)((wxListView const *)arg1)->GetFirstSelected();
32254 wxPyEndAllowThreads(__tstate);
32255 if (PyErr_Occurred()) SWIG_fail;
32256 }
32257 resultobj = SWIG_From_long(static_cast< long >(result));
32258 return resultobj;
32259fail:
32260 return NULL;
32261}
32262
32263
32264SWIGINTERN PyObject *_wrap_ListView_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32265 PyObject *resultobj = 0;
32266 wxListView *arg1 = (wxListView *) 0 ;
32267 long arg2 ;
32268 bool result;
32269 void *argp1 = 0 ;
32270 int res1 = 0 ;
32271 long val2 ;
32272 int ecode2 = 0 ;
32273 PyObject * obj0 = 0 ;
32274 PyObject * obj1 = 0 ;
32275 char * kwnames[] = {
32276 (char *) "self",(char *) "index", NULL
32277 };
32278
32279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32281 if (!SWIG_IsOK(res1)) {
32282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_IsSelected" "', expected argument " "1"" of type '" "wxListView *""'");
32283 }
32284 arg1 = reinterpret_cast< wxListView * >(argp1);
32285 ecode2 = SWIG_AsVal_long(obj1, &val2);
32286 if (!SWIG_IsOK(ecode2)) {
32287 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_IsSelected" "', expected argument " "2"" of type '" "long""'");
32288 }
32289 arg2 = static_cast< long >(val2);
32290 {
32291 PyThreadState* __tstate = wxPyBeginAllowThreads();
32292 result = (bool)(arg1)->IsSelected(arg2);
32293 wxPyEndAllowThreads(__tstate);
32294 if (PyErr_Occurred()) SWIG_fail;
32295 }
32296 {
32297 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32298 }
32299 return resultobj;
32300fail:
32301 return NULL;
32302}
32303
32304
32305SWIGINTERN PyObject *_wrap_ListView_SetColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32306 PyObject *resultobj = 0;
32307 wxListView *arg1 = (wxListView *) 0 ;
32308 int arg2 ;
32309 int arg3 ;
32310 void *argp1 = 0 ;
32311 int res1 = 0 ;
32312 int val2 ;
32313 int ecode2 = 0 ;
32314 int val3 ;
32315 int ecode3 = 0 ;
32316 PyObject * obj0 = 0 ;
32317 PyObject * obj1 = 0 ;
32318 PyObject * obj2 = 0 ;
32319 char * kwnames[] = {
32320 (char *) "self",(char *) "col",(char *) "image", NULL
32321 };
32322
32323 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32324 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32325 if (!SWIG_IsOK(res1)) {
32326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_SetColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32327 }
32328 arg1 = reinterpret_cast< wxListView * >(argp1);
32329 ecode2 = SWIG_AsVal_int(obj1, &val2);
32330 if (!SWIG_IsOK(ecode2)) {
32331 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_SetColumnImage" "', expected argument " "2"" of type '" "int""'");
32332 }
32333 arg2 = static_cast< int >(val2);
32334 ecode3 = SWIG_AsVal_int(obj2, &val3);
32335 if (!SWIG_IsOK(ecode3)) {
32336 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_SetColumnImage" "', expected argument " "3"" of type '" "int""'");
32337 }
32338 arg3 = static_cast< int >(val3);
32339 {
32340 PyThreadState* __tstate = wxPyBeginAllowThreads();
32341 (arg1)->SetColumnImage(arg2,arg3);
32342 wxPyEndAllowThreads(__tstate);
32343 if (PyErr_Occurred()) SWIG_fail;
32344 }
32345 resultobj = SWIG_Py_Void();
32346 return resultobj;
32347fail:
32348 return NULL;
32349}
32350
32351
32352SWIGINTERN PyObject *_wrap_ListView_ClearColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32353 PyObject *resultobj = 0;
32354 wxListView *arg1 = (wxListView *) 0 ;
32355 int arg2 ;
32356 void *argp1 = 0 ;
32357 int res1 = 0 ;
32358 int val2 ;
32359 int ecode2 = 0 ;
32360 PyObject * obj0 = 0 ;
32361 PyObject * obj1 = 0 ;
32362 char * kwnames[] = {
32363 (char *) "self",(char *) "col", NULL
32364 };
32365
32366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) SWIG_fail;
32367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32368 if (!SWIG_IsOK(res1)) {
32369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_ClearColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32370 }
32371 arg1 = reinterpret_cast< wxListView * >(argp1);
32372 ecode2 = SWIG_AsVal_int(obj1, &val2);
32373 if (!SWIG_IsOK(ecode2)) {
32374 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_ClearColumnImage" "', expected argument " "2"" of type '" "int""'");
32375 }
32376 arg2 = static_cast< int >(val2);
32377 {
32378 PyThreadState* __tstate = wxPyBeginAllowThreads();
32379 (arg1)->ClearColumnImage(arg2);
32380 wxPyEndAllowThreads(__tstate);
32381 if (PyErr_Occurred()) SWIG_fail;
32382 }
32383 resultobj = SWIG_Py_Void();
32384 return resultobj;
32385fail:
32386 return NULL;
7e08d4ef
RD
32387}
32388
32389
0085ce49
RD
32390SWIGINTERN PyObject *ListView_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32391 PyObject *obj;
32392 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32393 SWIG_TypeNewClientData(SWIGTYPE_p_wxListView, SWIG_NewClientData(obj));
32394 return SWIG_Py_Void();
7e08d4ef
RD
32395}
32396
0085ce49
RD
32397SWIGINTERN PyObject *ListView_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32398 return SWIG_Python_InitShadowInstance(args);
32399}
7e08d4ef 32400
0085ce49
RD
32401SWIGINTERN int TreeCtrlNameStr_set(PyObject *) {
32402 SWIG_Error(SWIG_AttributeError,"Variable TreeCtrlNameStr is read-only.");
32403 return 1;
7e08d4ef
RD
32404}
32405
32406
0085ce49
RD
32407SWIGINTERN PyObject *TreeCtrlNameStr_get(void) {
32408 PyObject *pyobj = 0;
32409
32410 {
32411#if wxUSE_UNICODE
32412 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32413#else
32414 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32415#endif
32416 }
32417 return pyobj;
7e08d4ef
RD
32418}
32419
32420
0085ce49
RD
32421SWIGINTERN PyObject *_wrap_new_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32422 PyObject *resultobj = 0;
32423 wxTreeItemId *result = 0 ;
32424
32425 if (!SWIG_Python_UnpackTuple(args,"new_TreeItemId",0,0,0)) SWIG_fail;
32426 {
32427 PyThreadState* __tstate = wxPyBeginAllowThreads();
32428 result = (wxTreeItemId *)new wxTreeItemId();
32429 wxPyEndAllowThreads(__tstate);
32430 if (PyErr_Occurred()) SWIG_fail;
32431 }
32432 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_NEW | 0 );
32433 return resultobj;
32434fail:
32435 return NULL;
d14a1e28
RD
32436}
32437
32438
0085ce49
RD
32439SWIGINTERN PyObject *_wrap_delete_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32440 PyObject *resultobj = 0;
32441 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32442 void *argp1 = 0 ;
32443 int res1 = 0 ;
32444 PyObject *swig_obj[1] ;
32445
32446 if (!args) SWIG_fail;
32447 swig_obj[0] = args;
32448 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_DISOWN | 0 );
32449 if (!SWIG_IsOK(res1)) {
32450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemId" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32451 }
32452 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32453 {
32454 PyThreadState* __tstate = wxPyBeginAllowThreads();
32455 delete arg1;
7e08d4ef 32456
0085ce49
RD
32457 wxPyEndAllowThreads(__tstate);
32458 if (PyErr_Occurred()) SWIG_fail;
32459 }
32460 resultobj = SWIG_Py_Void();
32461 return resultobj;
32462fail:
32463 return NULL;
7e08d4ef
RD
32464}
32465
32466
0085ce49
RD
32467SWIGINTERN PyObject *_wrap_TreeItemId_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32468 PyObject *resultobj = 0;
32469 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32470 bool result;
32471 void *argp1 = 0 ;
32472 int res1 = 0 ;
32473 PyObject *swig_obj[1] ;
32474
32475 if (!args) SWIG_fail;
32476 swig_obj[0] = args;
32477 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32478 if (!SWIG_IsOK(res1)) {
32479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_IsOk" "', expected argument " "1"" of type '" "wxTreeItemId const *""'");
32480 }
32481 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32482 {
32483 PyThreadState* __tstate = wxPyBeginAllowThreads();
32484 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
32485 wxPyEndAllowThreads(__tstate);
32486 if (PyErr_Occurred()) SWIG_fail;
32487 }
32488 {
32489 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32490 }
32491 return resultobj;
32492fail:
32493 return NULL;
32494}
32495
32496
32497SWIGINTERN PyObject *_wrap_TreeItemId___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32498 PyObject *resultobj = 0;
32499 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32500 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32501 bool result;
32502 void *argp1 = 0 ;
32503 int res1 = 0 ;
32504 void *argp2 = 0 ;
32505 int res2 = 0 ;
32506 PyObject * obj0 = 0 ;
32507 PyObject * obj1 = 0 ;
32508 char * kwnames[] = {
32509 (char *) "self",(char *) "other", NULL
32510 };
32511
32512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
32513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32514 if (!SWIG_IsOK(res1)) {
32515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___eq__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32516 }
32517 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32518 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32519 if (!SWIG_IsOK(res2)) {
32520 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___eq__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32521 }
32522 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32523 {
32524 PyThreadState* __tstate = wxPyBeginAllowThreads();
32525 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
32526 wxPyEndAllowThreads(__tstate);
32527 if (PyErr_Occurred()) SWIG_fail;
32528 }
32529 {
32530 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32531 }
32532 return resultobj;
32533fail:
32534 return NULL;
32535}
32536
32537
32538SWIGINTERN PyObject *_wrap_TreeItemId___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32539 PyObject *resultobj = 0;
32540 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32541 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32542 bool result;
32543 void *argp1 = 0 ;
32544 int res1 = 0 ;
32545 void *argp2 = 0 ;
32546 int res2 = 0 ;
32547 PyObject * obj0 = 0 ;
32548 PyObject * obj1 = 0 ;
32549 char * kwnames[] = {
32550 (char *) "self",(char *) "other", NULL
32551 };
32552
32553 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
32554 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32555 if (!SWIG_IsOK(res1)) {
32556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___ne__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32557 }
32558 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32559 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32560 if (!SWIG_IsOK(res2)) {
32561 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___ne__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32562 }
32563 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32564 {
32565 PyThreadState* __tstate = wxPyBeginAllowThreads();
32566 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
32567 wxPyEndAllowThreads(__tstate);
32568 if (PyErr_Occurred()) SWIG_fail;
32569 }
32570 {
32571 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32572 }
32573 return resultobj;
32574fail:
32575 return NULL;
7e08d4ef
RD
32576}
32577
32578
0085ce49
RD
32579SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32580 PyObject *resultobj = 0;
32581 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32582 void *arg2 = (void *) 0 ;
32583 void *argp1 = 0 ;
32584 int res1 = 0 ;
32585 int res2 ;
32586 PyObject *swig_obj[2] ;
32587
32588 if (!SWIG_Python_UnpackTuple(args,"TreeItemId_m_pItem_set",2,2,swig_obj)) SWIG_fail;
32589 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32590 if (!SWIG_IsOK(res1)) {
32591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32592 }
32593 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32594 res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
32595 if (!SWIG_IsOK(res2)) {
32596 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "2"" of type '" "void *""'");
32597 }
32598 if (arg1) (arg1)->m_pItem = arg2;
32599
32600 resultobj = SWIG_Py_Void();
32601 return resultobj;
32602fail:
32603 return NULL;
7e08d4ef
RD
32604}
32605
32606
0085ce49
RD
32607SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32608 PyObject *resultobj = 0;
32609 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32610 void *result = 0 ;
32611 void *argp1 = 0 ;
32612 int res1 = 0 ;
32613 PyObject *swig_obj[1] ;
32614
32615 if (!args) SWIG_fail;
32616 swig_obj[0] = args;
32617 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32618 if (!SWIG_IsOK(res1)) {
32619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_get" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32620 }
32621 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32622 result = (void *) ((arg1)->m_pItem);
32623 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
32624 return resultobj;
32625fail:
32626 return NULL;
7e08d4ef
RD
32627}
32628
32629
0085ce49
RD
32630SWIGINTERN PyObject *TreeItemId_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32631 PyObject *obj;
32632 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32633 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeItemId, SWIG_NewClientData(obj));
32634 return SWIG_Py_Void();
7e08d4ef
RD
32635}
32636
0085ce49
RD
32637SWIGINTERN PyObject *TreeItemId_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32638 return SWIG_Python_InitShadowInstance(args);
32639}
7e08d4ef 32640
0085ce49
RD
32641SWIGINTERN PyObject *_wrap_new_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32642 PyObject *resultobj = 0;
32643 PyObject *arg1 = (PyObject *) NULL ;
32644 wxPyTreeItemData *result = 0 ;
32645 PyObject * obj0 = 0 ;
32646 char * kwnames[] = {
32647 (char *) "obj", NULL
32648 };
32649
32650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) SWIG_fail;
32651 if (obj0) {
32652 arg1 = obj0;
32653 }
32654 {
32655 PyThreadState* __tstate = wxPyBeginAllowThreads();
32656 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
32657 wxPyEndAllowThreads(__tstate);
32658 if (PyErr_Occurred()) SWIG_fail;
32659 }
32660 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_NEW | 0 );
32661 return resultobj;
32662fail:
32663 return NULL;
7e08d4ef
RD
32664}
32665
32666
0085ce49
RD
32667SWIGINTERN PyObject *_wrap_delete_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32668 PyObject *resultobj = 0;
32669 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32670 void *argp1 = 0 ;
32671 int res1 = 0 ;
32672 PyObject *swig_obj[1] ;
32673
32674 if (!args) SWIG_fail;
32675 swig_obj[0] = args;
32676 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
32677 if (!SWIG_IsOK(res1)) {
32678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32679 }
32680 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32681 {
32682 PyThreadState* __tstate = wxPyBeginAllowThreads();
32683 delete arg1;
1fbf26be 32684
0085ce49
RD
32685 wxPyEndAllowThreads(__tstate);
32686 if (PyErr_Occurred()) SWIG_fail;
32687 }
32688 resultobj = SWIG_Py_Void();
32689 return resultobj;
32690fail:
32691 return NULL;
1fbf26be
RD
32692}
32693
32694
0085ce49
RD
32695SWIGINTERN PyObject *_wrap_TreeItemData_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32696 PyObject *resultobj = 0;
32697 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32698 PyObject *result = 0 ;
32699 void *argp1 = 0 ;
32700 int res1 = 0 ;
32701 PyObject *swig_obj[1] ;
32702
32703 if (!args) SWIG_fail;
32704 swig_obj[0] = args;
32705 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32706 if (!SWIG_IsOK(res1)) {
32707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32708 }
32709 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32710 {
32711 PyThreadState* __tstate = wxPyBeginAllowThreads();
32712 result = (PyObject *)(arg1)->GetData();
32713 wxPyEndAllowThreads(__tstate);
32714 if (PyErr_Occurred()) SWIG_fail;
32715 }
32716 resultobj = result;
32717 return resultobj;
32718fail:
32719 return NULL;
32720}
32721
32722
32723SWIGINTERN PyObject *_wrap_TreeItemData_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32724 PyObject *resultobj = 0;
32725 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32726 PyObject *arg2 = (PyObject *) 0 ;
32727 void *argp1 = 0 ;
32728 int res1 = 0 ;
32729 PyObject * obj0 = 0 ;
32730 PyObject * obj1 = 0 ;
32731 char * kwnames[] = {
32732 (char *) "self",(char *) "obj", NULL
32733 };
32734
32735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
32736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32737 if (!SWIG_IsOK(res1)) {
32738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32739 }
32740 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32741 arg2 = obj1;
32742 {
32743 PyThreadState* __tstate = wxPyBeginAllowThreads();
32744 (arg1)->SetData(arg2);
32745 wxPyEndAllowThreads(__tstate);
32746 if (PyErr_Occurred()) SWIG_fail;
32747 }
32748 resultobj = SWIG_Py_Void();
32749 return resultobj;
32750fail:
32751 return NULL;
d14a1e28
RD
32752}
32753
32754
0085ce49
RD
32755SWIGINTERN PyObject *_wrap_TreeItemData_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32756 PyObject *resultobj = 0;
32757 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32758 wxTreeItemId *result = 0 ;
32759 void *argp1 = 0 ;
32760 int res1 = 0 ;
32761 PyObject *swig_obj[1] ;
32762
32763 if (!args) SWIG_fail;
32764 swig_obj[0] = args;
32765 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32766 if (!SWIG_IsOK(res1)) {
32767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32768 }
32769 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32770 {
32771 PyThreadState* __tstate = wxPyBeginAllowThreads();
2ef75293 32772 {
0085ce49
RD
32773 wxTreeItemId const &_result_ref = (arg1)->GetId();
32774 result = (wxTreeItemId *) &_result_ref;
2ef75293 32775 }
0085ce49
RD
32776 wxPyEndAllowThreads(__tstate);
32777 if (PyErr_Occurred()) SWIG_fail;
32778 }
32779 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32780 return resultobj;
32781fail:
32782 return NULL;
32783}
32784
32785
32786SWIGINTERN PyObject *_wrap_TreeItemData_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32787 PyObject *resultobj = 0;
32788 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32789 wxTreeItemId *arg2 = 0 ;
32790 void *argp1 = 0 ;
32791 int res1 = 0 ;
32792 void *argp2 = 0 ;
32793 int res2 = 0 ;
32794 PyObject * obj0 = 0 ;
32795 PyObject * obj1 = 0 ;
32796 char * kwnames[] = {
32797 (char *) "self",(char *) "id", NULL
32798 };
32799
32800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
32801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32802 if (!SWIG_IsOK(res1)) {
32803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32804 }
32805 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32806 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32807 if (!SWIG_IsOK(res2)) {
32808 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32809 }
32810 if (!argp2) {
32811 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32812 }
32813 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32814 {
32815 PyThreadState* __tstate = wxPyBeginAllowThreads();
32816 (arg1)->SetId((wxTreeItemId const &)*arg2);
32817 wxPyEndAllowThreads(__tstate);
32818 if (PyErr_Occurred()) SWIG_fail;
32819 }
32820 resultobj = SWIG_Py_Void();
32821 return resultobj;
32822fail:
32823 return NULL;
2ef75293
RD
32824}
32825
32826
0085ce49
RD
32827SWIGINTERN PyObject *_wrap_TreeItemData_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32828 PyObject *resultobj = 0;
32829 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32830 void *argp1 = 0 ;
32831 int res1 = 0 ;
32832 PyObject *swig_obj[1] ;
32833
32834 if (!args) SWIG_fail;
32835 swig_obj[0] = args;
32836 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32837 if (!SWIG_IsOK(res1)) {
32838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_Destroy" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32839 }
32840 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32841 {
32842 PyThreadState* __tstate = wxPyBeginAllowThreads();
32843 wxPyTreeItemData_Destroy(arg1);
32844 wxPyEndAllowThreads(__tstate);
32845 if (PyErr_Occurred()) SWIG_fail;
32846 }
32847 resultobj = SWIG_Py_Void();
32848 return resultobj;
32849fail:
32850 return NULL;
2ef75293
RD
32851}
32852
32853
0085ce49
RD
32854SWIGINTERN PyObject *TreeItemData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32855 PyObject *obj;
32856 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32857 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeItemData, SWIG_NewClientData(obj));
32858 return SWIG_Py_Void();
2ef75293
RD
32859}
32860
0085ce49
RD
32861SWIGINTERN PyObject *TreeItemData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32862 return SWIG_Python_InitShadowInstance(args);
32863}
2ef75293 32864
b02396e8
RD
32865SWIGINTERN int NullTreeItemId_set(PyObject *_val) {
32866 {
32867 void *argp = 0;
32868 int res = SWIG_ConvertPtr(_val, &argp, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32869 if (!SWIG_IsOK(res)) {
32870 SWIG_exception_fail(SWIG_ArgError(res), "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
32871 }
32872 if (!argp) {
32873 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
32874 } else {
32875 wxTreeItemId * temp;
32876 temp = reinterpret_cast< wxTreeItemId * >(argp);
32877 wxNullTreeItemId = *temp;
32878 if (SWIG_IsNewObj(res)) delete temp;
32879 }
32880 }
32881 return 0;
32882fail:
32883 return 1;
32884}
32885
32886
32887SWIGINTERN PyObject *NullTreeItemId_get(void) {
32888 PyObject *pyobj = 0;
32889
32890 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullTreeItemId), SWIGTYPE_p_wxTreeItemId, 0 );
32891 return pyobj;
32892}
32893
32894
32895SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
0085ce49
RD
32896 PyObject *resultobj = 0;
32897 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
32898 int arg2 = (int) 0 ;
32899 wxTreeEvent *result = 0 ;
32900 int val1 ;
32901 int ecode1 = 0 ;
32902 int val2 ;
32903 int ecode2 = 0 ;
0085ce49 32904
b02396e8
RD
32905 if ((nobjs < 0) || (nobjs > 2)) SWIG_fail;
32906 if (swig_obj[0]) {
32907 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
0085ce49
RD
32908 if (!SWIG_IsOK(ecode1)) {
32909 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
32910 }
32911 arg1 = static_cast< wxEventType >(val1);
32912 }
b02396e8
RD
32913 if (swig_obj[1]) {
32914 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
0085ce49
RD
32915 if (!SWIG_IsOK(ecode2)) {
32916 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "int""'");
32917 }
32918 arg2 = static_cast< int >(val2);
32919 }
32920 {
32921 PyThreadState* __tstate = wxPyBeginAllowThreads();
32922 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
32923 wxPyEndAllowThreads(__tstate);
32924 if (PyErr_Occurred()) SWIG_fail;
32925 }
32926 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
32927 return resultobj;
32928fail:
32929 return NULL;
70b7a5fe
RD
32930}
32931
32932
b02396e8
RD
32933SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
32934 PyObject *resultobj = 0;
32935 wxEventType arg1 ;
32936 wxPyTreeCtrl *arg2 = (wxPyTreeCtrl *) 0 ;
32937 wxTreeItemId &arg3_defvalue = wxNullTreeItemId ;
32938 wxTreeItemId *arg3 = (wxTreeItemId *) &arg3_defvalue ;
32939 wxTreeEvent *result = 0 ;
32940 int val1 ;
32941 int ecode1 = 0 ;
32942 void *argp2 = 0 ;
32943 int res2 = 0 ;
32944 void *argp3 = 0 ;
32945 int res3 = 0 ;
32946
32947 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
32948 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
32949 if (!SWIG_IsOK(ecode1)) {
32950 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
32951 }
32952 arg1 = static_cast< wxEventType >(val1);
32953 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
32954 if (!SWIG_IsOK(res2)) {
32955 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "wxPyTreeCtrl *""'");
32956 }
32957 arg2 = reinterpret_cast< wxPyTreeCtrl * >(argp2);
32958 if (swig_obj[2]) {
32959 res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_wxTreeItemId, 0 );
32960 if (!SWIG_IsOK(res3)) {
32961 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
32962 }
32963 if (!argp3) {
32964 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
32965 }
32966 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
32967 }
32968 {
32969 PyThreadState* __tstate = wxPyBeginAllowThreads();
32970 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2,*arg3);
32971 wxPyEndAllowThreads(__tstate);
32972 if (PyErr_Occurred()) SWIG_fail;
32973 }
32974 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
32975 return resultobj;
32976fail:
32977 return NULL;
32978}
32979
32980
32981SWIGINTERN PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args) {
32982 int argc;
32983 PyObject *argv[4];
32984
32985 if (!(argc = SWIG_Python_UnpackTuple(args,"new_TreeEvent",0,3,argv))) SWIG_fail;
32986 --argc;
32987 if ((argc >= 0) && (argc <= 2)) {
32988 int _v = 0;
32989 if (argc > 1) {
32990 {
32991 {
32992 int res = SWIG_AsVal_int(argv[1], NULL);
32993 _v = SWIG_CheckState(res);
32994 }
32995 }
32996 if (!_v) goto check_1;
32997 }
32998 return _wrap_new_TreeEvent__SWIG_0(self, argc, argv);
32999 }
33000check_1:
33001
33002 if ((argc >= 2) && (argc <= 3)) {
33003 return _wrap_new_TreeEvent__SWIG_1(self, argc, argv);
33004 }
33005
33006fail:
33007 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_TreeEvent'");
33008 return NULL;
33009}
33010
33011
0085ce49
RD
33012SWIGINTERN PyObject *_wrap_TreeEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33013 PyObject *resultobj = 0;
33014 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33015 wxTreeItemId result;
33016 void *argp1 = 0 ;
33017 int res1 = 0 ;
33018 PyObject *swig_obj[1] ;
33019
33020 if (!args) SWIG_fail;
33021 swig_obj[0] = args;
33022 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33023 if (!SWIG_IsOK(res1)) {
33024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33025 }
33026 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33027 {
33028 PyThreadState* __tstate = wxPyBeginAllowThreads();
33029 result = ((wxTreeEvent const *)arg1)->GetItem();
33030 wxPyEndAllowThreads(__tstate);
33031 if (PyErr_Occurred()) SWIG_fail;
33032 }
33033 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33034 return resultobj;
33035fail:
33036 return NULL;
33037}
33038
33039
33040SWIGINTERN PyObject *_wrap_TreeEvent_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33041 PyObject *resultobj = 0;
33042 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33043 wxTreeItemId *arg2 = 0 ;
33044 void *argp1 = 0 ;
33045 int res1 = 0 ;
33046 void *argp2 = 0 ;
33047 int res2 = 0 ;
33048 PyObject * obj0 = 0 ;
33049 PyObject * obj1 = 0 ;
33050 char * kwnames[] = {
33051 (char *) "self",(char *) "item", NULL
33052 };
33053
33054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
33055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33056 if (!SWIG_IsOK(res1)) {
33057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33058 }
33059 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33060 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33061 if (!SWIG_IsOK(res2)) {
33062 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33063 }
33064 if (!argp2) {
33065 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33066 }
33067 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33068 {
33069 PyThreadState* __tstate = wxPyBeginAllowThreads();
33070 (arg1)->SetItem((wxTreeItemId const &)*arg2);
33071 wxPyEndAllowThreads(__tstate);
33072 if (PyErr_Occurred()) SWIG_fail;
33073 }
33074 resultobj = SWIG_Py_Void();
33075 return resultobj;
33076fail:
33077 return NULL;
2ef75293
RD
33078}
33079
33080
0085ce49
RD
33081SWIGINTERN PyObject *_wrap_TreeEvent_GetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33082 PyObject *resultobj = 0;
33083 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33084 wxTreeItemId result;
33085 void *argp1 = 0 ;
33086 int res1 = 0 ;
33087 PyObject *swig_obj[1] ;
33088
33089 if (!args) SWIG_fail;
33090 swig_obj[0] = args;
33091 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33092 if (!SWIG_IsOK(res1)) {
33093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33094 }
33095 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33096 {
33097 PyThreadState* __tstate = wxPyBeginAllowThreads();
33098 result = ((wxTreeEvent const *)arg1)->GetOldItem();
33099 wxPyEndAllowThreads(__tstate);
33100 if (PyErr_Occurred()) SWIG_fail;
33101 }
33102 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33103 return resultobj;
33104fail:
33105 return NULL;
33106}
33107
33108
33109SWIGINTERN PyObject *_wrap_TreeEvent_SetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33110 PyObject *resultobj = 0;
33111 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33112 wxTreeItemId *arg2 = 0 ;
33113 void *argp1 = 0 ;
33114 int res1 = 0 ;
33115 void *argp2 = 0 ;
33116 int res2 = 0 ;
33117 PyObject * obj0 = 0 ;
33118 PyObject * obj1 = 0 ;
33119 char * kwnames[] = {
33120 (char *) "self",(char *) "item", NULL
33121 };
33122
33123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) SWIG_fail;
33124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33125 if (!SWIG_IsOK(res1)) {
33126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33127 }
33128 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33129 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33130 if (!SWIG_IsOK(res2)) {
33131 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33132 }
33133 if (!argp2) {
33134 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33135 }
33136 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33137 {
33138 PyThreadState* __tstate = wxPyBeginAllowThreads();
33139 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
33140 wxPyEndAllowThreads(__tstate);
33141 if (PyErr_Occurred()) SWIG_fail;
33142 }
33143 resultobj = SWIG_Py_Void();
33144 return resultobj;
33145fail:
33146 return NULL;
2ef75293
RD
33147}
33148
33149
0085ce49
RD
33150SWIGINTERN PyObject *_wrap_TreeEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33151 PyObject *resultobj = 0;
33152 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33153 wxPoint result;
33154 void *argp1 = 0 ;
33155 int res1 = 0 ;
33156 PyObject *swig_obj[1] ;
33157
33158 if (!args) SWIG_fail;
33159 swig_obj[0] = args;
33160 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33161 if (!SWIG_IsOK(res1)) {
33162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetPoint" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33163 }
33164 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33165 {
33166 PyThreadState* __tstate = wxPyBeginAllowThreads();
33167 result = ((wxTreeEvent const *)arg1)->GetPoint();
33168 wxPyEndAllowThreads(__tstate);
33169 if (PyErr_Occurred()) SWIG_fail;
33170 }
33171 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
33172 return resultobj;
33173fail:
33174 return NULL;
33175}
33176
33177
33178SWIGINTERN PyObject *_wrap_TreeEvent_SetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33179 PyObject *resultobj = 0;
33180 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33181 wxPoint *arg2 = 0 ;
33182 void *argp1 = 0 ;
33183 int res1 = 0 ;
33184 wxPoint temp2 ;
33185 PyObject * obj0 = 0 ;
33186 PyObject * obj1 = 0 ;
33187 char * kwnames[] = {
33188 (char *) "self",(char *) "pt", NULL
33189 };
33190
33191 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) SWIG_fail;
33192 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33193 if (!SWIG_IsOK(res1)) {
33194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetPoint" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33195 }
33196 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33197 {
33198 arg2 = &temp2;
33199 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33200 }
33201 {
33202 PyThreadState* __tstate = wxPyBeginAllowThreads();
33203 (arg1)->SetPoint((wxPoint const &)*arg2);
33204 wxPyEndAllowThreads(__tstate);
33205 if (PyErr_Occurred()) SWIG_fail;
33206 }
33207 resultobj = SWIG_Py_Void();
33208 return resultobj;
33209fail:
33210 return NULL;
d14a1e28
RD
33211}
33212
33213
0085ce49
RD
33214SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33215 PyObject *resultobj = 0;
33216 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33217 wxKeyEvent *result = 0 ;
33218 void *argp1 = 0 ;
33219 int res1 = 0 ;
33220 PyObject *swig_obj[1] ;
33221
33222 if (!args) SWIG_fail;
33223 swig_obj[0] = args;
33224 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33225 if (!SWIG_IsOK(res1)) {
33226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33227 }
33228 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33229 {
33230 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 33231 {
0085ce49
RD
33232 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
33233 result = (wxKeyEvent *) &_result_ref;
d14a1e28 33234 }
0085ce49
RD
33235 wxPyEndAllowThreads(__tstate);
33236 if (PyErr_Occurred()) SWIG_fail;
33237 }
33238 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxKeyEvent, 0 | 0 );
33239 return resultobj;
33240fail:
33241 return NULL;
d14a1e28
RD
33242}
33243
33244
0085ce49
RD
33245SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33246 PyObject *resultobj = 0;
33247 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33248 int result;
33249 void *argp1 = 0 ;
33250 int res1 = 0 ;
33251 PyObject *swig_obj[1] ;
33252
33253 if (!args) SWIG_fail;
33254 swig_obj[0] = args;
33255 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33256 if (!SWIG_IsOK(res1)) {
33257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33258 }
33259 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33260 {
33261 PyThreadState* __tstate = wxPyBeginAllowThreads();
33262 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
33263 wxPyEndAllowThreads(__tstate);
33264 if (PyErr_Occurred()) SWIG_fail;
33265 }
33266 resultobj = SWIG_From_int(static_cast< int >(result));
33267 return resultobj;
33268fail:
33269 return NULL;
33270}
33271
33272
33273SWIGINTERN PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33274 PyObject *resultobj = 0;
33275 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33276 wxKeyEvent *arg2 = 0 ;
33277 void *argp1 = 0 ;
33278 int res1 = 0 ;
33279 void *argp2 = 0 ;
33280 int res2 = 0 ;
33281 PyObject * obj0 = 0 ;
33282 PyObject * obj1 = 0 ;
33283 char * kwnames[] = {
33284 (char *) "self",(char *) "evt", NULL
33285 };
33286
33287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) SWIG_fail;
33288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33289 if (!SWIG_IsOK(res1)) {
33290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33291 }
33292 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33293 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
33294 if (!SWIG_IsOK(res2)) {
33295 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33296 }
33297 if (!argp2) {
33298 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33299 }
33300 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
33301 {
33302 PyThreadState* __tstate = wxPyBeginAllowThreads();
33303 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
33304 wxPyEndAllowThreads(__tstate);
33305 if (PyErr_Occurred()) SWIG_fail;
33306 }
33307 resultobj = SWIG_Py_Void();
33308 return resultobj;
33309fail:
33310 return NULL;
d14a1e28
RD
33311}
33312
33313
0085ce49
RD
33314SWIGINTERN PyObject *_wrap_TreeEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33315 PyObject *resultobj = 0;
33316 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33317 wxString *result = 0 ;
33318 void *argp1 = 0 ;
33319 int res1 = 0 ;
33320 PyObject *swig_obj[1] ;
33321
33322 if (!args) SWIG_fail;
33323 swig_obj[0] = args;
33324 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33325 if (!SWIG_IsOK(res1)) {
33326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetLabel" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33327 }
33328 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33329 {
33330 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 33331 {
0085ce49
RD
33332 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
33333 result = (wxString *) &_result_ref;
093d3ff1 33334 }
0085ce49
RD
33335 wxPyEndAllowThreads(__tstate);
33336 if (PyErr_Occurred()) SWIG_fail;
33337 }
33338 {
33339#if wxUSE_UNICODE
33340 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33341#else
33342 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33343#endif
33344 }
33345 return resultobj;
33346fail:
33347 return NULL;
33348}
33349
33350
33351SWIGINTERN PyObject *_wrap_TreeEvent_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33352 PyObject *resultobj = 0;
33353 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33354 wxString *arg2 = 0 ;
33355 void *argp1 = 0 ;
33356 int res1 = 0 ;
33357 bool temp2 = false ;
33358 PyObject * obj0 = 0 ;
33359 PyObject * obj1 = 0 ;
33360 char * kwnames[] = {
33361 (char *) "self",(char *) "label", NULL
33362 };
33363
33364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
33365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33366 if (!SWIG_IsOK(res1)) {
33367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetLabel" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33368 }
33369 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33370 {
33371 arg2 = wxString_in_helper(obj1);
33372 if (arg2 == NULL) SWIG_fail;
33373 temp2 = true;
33374 }
33375 {
33376 PyThreadState* __tstate = wxPyBeginAllowThreads();
33377 (arg1)->SetLabel((wxString const &)*arg2);
33378 wxPyEndAllowThreads(__tstate);
33379 if (PyErr_Occurred()) SWIG_fail;
33380 }
33381 resultobj = SWIG_Py_Void();
33382 {
33383 if (temp2)
33384 delete arg2;
33385 }
33386 return resultobj;
33387fail:
33388 {
33389 if (temp2)
33390 delete arg2;
33391 }
33392 return NULL;
d14a1e28
RD
33393}
33394
33395
0085ce49
RD
33396SWIGINTERN PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33397 PyObject *resultobj = 0;
33398 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33399 bool result;
33400 void *argp1 = 0 ;
33401 int res1 = 0 ;
33402 PyObject *swig_obj[1] ;
33403
33404 if (!args) SWIG_fail;
33405 swig_obj[0] = args;
33406 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33407 if (!SWIG_IsOK(res1)) {
33408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33409 }
33410 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33411 {
33412 PyThreadState* __tstate = wxPyBeginAllowThreads();
33413 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
33414 wxPyEndAllowThreads(__tstate);
33415 if (PyErr_Occurred()) SWIG_fail;
33416 }
33417 {
33418 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33419 }
33420 return resultobj;
33421fail:
33422 return NULL;
33423}
33424
33425
33426SWIGINTERN PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33427 PyObject *resultobj = 0;
33428 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33429 bool arg2 ;
33430 void *argp1 = 0 ;
33431 int res1 = 0 ;
33432 bool val2 ;
33433 int ecode2 = 0 ;
33434 PyObject * obj0 = 0 ;
33435 PyObject * obj1 = 0 ;
33436 char * kwnames[] = {
33437 (char *) "self",(char *) "editCancelled", NULL
33438 };
33439
33440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
33441 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33442 if (!SWIG_IsOK(res1)) {
33443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33444 }
33445 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33446 ecode2 = SWIG_AsVal_bool(obj1, &val2);
33447 if (!SWIG_IsOK(ecode2)) {
33448 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
33449 }
33450 arg2 = static_cast< bool >(val2);
33451 {
33452 PyThreadState* __tstate = wxPyBeginAllowThreads();
33453 (arg1)->SetEditCanceled(arg2);
33454 wxPyEndAllowThreads(__tstate);
33455 if (PyErr_Occurred()) SWIG_fail;
33456 }
33457 resultobj = SWIG_Py_Void();
33458 return resultobj;
33459fail:
33460 return NULL;
33461}
33462
33463
33464SWIGINTERN PyObject *_wrap_TreeEvent_SetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33465 PyObject *resultobj = 0;
33466 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33467 wxString *arg2 = 0 ;
33468 void *argp1 = 0 ;
33469 int res1 = 0 ;
33470 bool temp2 = false ;
33471 PyObject * obj0 = 0 ;
33472 PyObject * obj1 = 0 ;
33473 char * kwnames[] = {
33474 (char *) "self",(char *) "toolTip", NULL
33475 };
33476
33477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
33478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33479 if (!SWIG_IsOK(res1)) {
33480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33481 }
33482 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33483 {
33484 arg2 = wxString_in_helper(obj1);
33485 if (arg2 == NULL) SWIG_fail;
33486 temp2 = true;
33487 }
33488 {
33489 PyThreadState* __tstate = wxPyBeginAllowThreads();
33490 (arg1)->SetToolTip((wxString const &)*arg2);
33491 wxPyEndAllowThreads(__tstate);
33492 if (PyErr_Occurred()) SWIG_fail;
33493 }
33494 resultobj = SWIG_Py_Void();
33495 {
33496 if (temp2)
33497 delete arg2;
33498 }
33499 return resultobj;
33500fail:
33501 {
33502 if (temp2)
33503 delete arg2;
33504 }
33505 return NULL;
d14a1e28
RD
33506}
33507
33508
0085ce49
RD
33509SWIGINTERN PyObject *_wrap_TreeEvent_GetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33510 PyObject *resultobj = 0;
33511 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33512 wxString result;
33513 void *argp1 = 0 ;
33514 int res1 = 0 ;
33515 PyObject *swig_obj[1] ;
33516
33517 if (!args) SWIG_fail;
33518 swig_obj[0] = args;
33519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33520 if (!SWIG_IsOK(res1)) {
33521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33522 }
33523 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33524 {
33525 PyThreadState* __tstate = wxPyBeginAllowThreads();
33526 result = (arg1)->GetToolTip();
33527 wxPyEndAllowThreads(__tstate);
33528 if (PyErr_Occurred()) SWIG_fail;
33529 }
33530 {
33531#if wxUSE_UNICODE
33532 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33533#else
33534 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33535#endif
33536 }
33537 return resultobj;
33538fail:
33539 return NULL;
33540}
33541
33542
33543SWIGINTERN PyObject *TreeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33544 PyObject *obj;
33545 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33546 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeEvent, SWIG_NewClientData(obj));
33547 return SWIG_Py_Void();
33548}
33549
33550SWIGINTERN PyObject *TreeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33551 return SWIG_Python_InitShadowInstance(args);
33552}
33553
33554SWIGINTERN PyObject *_wrap_new_TreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33555 PyObject *resultobj = 0;
33556 wxWindow *arg1 = (wxWindow *) 0 ;
33557 int arg2 = (int) -1 ;
33558 wxPoint const &arg3_defvalue = wxDefaultPosition ;
33559 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
33560 wxSize const &arg4_defvalue = wxDefaultSize ;
33561 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
33562 long arg5 = (long) wxTR_DEFAULT_STYLE ;
33563 wxValidator const &arg6_defvalue = wxDefaultValidator ;
33564 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
33565 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
33566 wxString *arg7 = (wxString *) &arg7_defvalue ;
33567 wxPyTreeCtrl *result = 0 ;
33568 void *argp1 = 0 ;
33569 int res1 = 0 ;
33570 int val2 ;
33571 int ecode2 = 0 ;
33572 wxPoint temp3 ;
33573 wxSize temp4 ;
33574 long val5 ;
33575 int ecode5 = 0 ;
33576 void *argp6 = 0 ;
33577 int res6 = 0 ;
33578 bool temp7 = false ;
33579 PyObject * obj0 = 0 ;
33580 PyObject * obj1 = 0 ;
33581 PyObject * obj2 = 0 ;
33582 PyObject * obj3 = 0 ;
33583 PyObject * obj4 = 0 ;
33584 PyObject * obj5 = 0 ;
33585 PyObject * obj6 = 0 ;
33586 char * kwnames[] = {
33587 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33588 };
33589
33590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33592 if (!SWIG_IsOK(res1)) {
33593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
33594 }
33595 arg1 = reinterpret_cast< wxWindow * >(argp1);
33596 if (obj1) {
33597 ecode2 = SWIG_AsVal_int(obj1, &val2);
33598 if (!SWIG_IsOK(ecode2)) {
33599 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCtrl" "', expected argument " "2"" of type '" "int""'");
33600 }
33601 arg2 = static_cast< int >(val2);
33602 }
33603 if (obj2) {
d14a1e28 33604 {
0085ce49
RD
33605 arg3 = &temp3;
33606 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 33607 }
0085ce49
RD
33608 }
33609 if (obj3) {
093d3ff1 33610 {
0085ce49
RD
33611 arg4 = &temp4;
33612 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 33613 }
0085ce49
RD
33614 }
33615 if (obj4) {
33616 ecode5 = SWIG_AsVal_long(obj4, &val5);
33617 if (!SWIG_IsOK(ecode5)) {
33618 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TreeCtrl" "', expected argument " "5"" of type '" "long""'");
33619 }
33620 arg5 = static_cast< long >(val5);
33621 }
33622 if (obj5) {
33623 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
33624 if (!SWIG_IsOK(res6)) {
33625 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d14a1e28 33626 }
0085ce49
RD
33627 if (!argp6) {
33628 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d14a1e28 33629 }
0085ce49
RD
33630 arg6 = reinterpret_cast< wxValidator * >(argp6);
33631 }
33632 if (obj6) {
4f89f6a3 33633 {
0085ce49
RD
33634 arg7 = wxString_in_helper(obj6);
33635 if (arg7 == NULL) SWIG_fail;
33636 temp7 = true;
4f89f6a3 33637 }
0085ce49
RD
33638 }
33639 {
33640 if (!wxPyCheckForApp()) SWIG_fail;
33641 PyThreadState* __tstate = wxPyBeginAllowThreads();
33642 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
33643 wxPyEndAllowThreads(__tstate);
33644 if (PyErr_Occurred()) SWIG_fail;
33645 }
33646 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_NEW | 0 );
33647 {
33648 if (temp7)
33649 delete arg7;
33650 }
33651 return resultobj;
33652fail:
33653 {
33654 if (temp7)
33655 delete arg7;
33656 }
33657 return NULL;
d14a1e28
RD
33658}
33659
33660
0085ce49
RD
33661SWIGINTERN PyObject *_wrap_new_PreTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33662 PyObject *resultobj = 0;
33663 wxPyTreeCtrl *result = 0 ;
33664
33665 if (!SWIG_Python_UnpackTuple(args,"new_PreTreeCtrl",0,0,0)) SWIG_fail;
33666 {
33667 if (!wxPyCheckForApp()) SWIG_fail;
33668 PyThreadState* __tstate = wxPyBeginAllowThreads();
33669 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
33670 wxPyEndAllowThreads(__tstate);
33671 if (PyErr_Occurred()) SWIG_fail;
33672 }
33673 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_OWN | 0 );
33674 return resultobj;
33675fail:
33676 return NULL;
33677}
33678
33679
33680SWIGINTERN PyObject *_wrap_TreeCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33681 PyObject *resultobj = 0;
33682 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33683 wxWindow *arg2 = (wxWindow *) 0 ;
33684 int arg3 = (int) -1 ;
33685 wxPoint const &arg4_defvalue = wxDefaultPosition ;
33686 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
33687 wxSize const &arg5_defvalue = wxDefaultSize ;
33688 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
33689 long arg6 = (long) wxTR_DEFAULT_STYLE ;
33690 wxValidator const &arg7_defvalue = wxDefaultValidator ;
33691 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
33692 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
33693 wxString *arg8 = (wxString *) &arg8_defvalue ;
33694 bool result;
33695 void *argp1 = 0 ;
33696 int res1 = 0 ;
33697 void *argp2 = 0 ;
33698 int res2 = 0 ;
33699 int val3 ;
33700 int ecode3 = 0 ;
33701 wxPoint temp4 ;
33702 wxSize temp5 ;
33703 long val6 ;
33704 int ecode6 = 0 ;
33705 void *argp7 = 0 ;
33706 int res7 = 0 ;
33707 bool temp8 = false ;
33708 PyObject * obj0 = 0 ;
33709 PyObject * obj1 = 0 ;
33710 PyObject * obj2 = 0 ;
33711 PyObject * obj3 = 0 ;
33712 PyObject * obj4 = 0 ;
33713 PyObject * obj5 = 0 ;
33714 PyObject * obj6 = 0 ;
33715 PyObject * obj7 = 0 ;
33716 char * kwnames[] = {
33717 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33718 };
33719
33720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
33721 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33722 if (!SWIG_IsOK(res1)) {
33723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Create" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33724 }
33725 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33726 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33727 if (!SWIG_IsOK(res2)) {
33728 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
33729 }
33730 arg2 = reinterpret_cast< wxWindow * >(argp2);
33731 if (obj2) {
33732 ecode3 = SWIG_AsVal_int(obj2, &val3);
33733 if (!SWIG_IsOK(ecode3)) {
33734 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_Create" "', expected argument " "3"" of type '" "int""'");
33735 }
33736 arg3 = static_cast< int >(val3);
33737 }
33738 if (obj3) {
4f89f6a3 33739 {
0085ce49
RD
33740 arg4 = &temp4;
33741 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 33742 }
0085ce49
RD
33743 }
33744 if (obj4) {
d14a1e28 33745 {
0085ce49
RD
33746 arg5 = &temp5;
33747 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 33748 }
0085ce49
RD
33749 }
33750 if (obj5) {
33751 ecode6 = SWIG_AsVal_long(obj5, &val6);
33752 if (!SWIG_IsOK(ecode6)) {
33753 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_Create" "', expected argument " "6"" of type '" "long""'");
33754 }
33755 arg6 = static_cast< long >(val6);
33756 }
33757 if (obj6) {
33758 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
33759 if (!SWIG_IsOK(res7)) {
33760 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
4f89f6a3 33761 }
0085ce49
RD
33762 if (!argp7) {
33763 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 33764 }
0085ce49
RD
33765 arg7 = reinterpret_cast< wxValidator * >(argp7);
33766 }
33767 if (obj7) {
4276dc52 33768 {
0085ce49
RD
33769 arg8 = wxString_in_helper(obj7);
33770 if (arg8 == NULL) SWIG_fail;
33771 temp8 = true;
4276dc52 33772 }
0085ce49
RD
33773 }
33774 {
33775 PyThreadState* __tstate = wxPyBeginAllowThreads();
33776 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
33777 wxPyEndAllowThreads(__tstate);
33778 if (PyErr_Occurred()) SWIG_fail;
33779 }
33780 {
33781 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33782 }
33783 {
33784 if (temp8)
33785 delete arg8;
33786 }
33787 return resultobj;
33788fail:
33789 {
33790 if (temp8)
33791 delete arg8;
33792 }
33793 return NULL;
33794}
33795
33796
33797SWIGINTERN PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33798 PyObject *resultobj = 0;
33799 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33800 PyObject *arg2 = (PyObject *) 0 ;
33801 PyObject *arg3 = (PyObject *) 0 ;
33802 void *argp1 = 0 ;
33803 int res1 = 0 ;
33804 PyObject * obj0 = 0 ;
33805 PyObject * obj1 = 0 ;
33806 PyObject * obj2 = 0 ;
33807 char * kwnames[] = {
33808 (char *) "self",(char *) "self",(char *) "_class", NULL
33809 };
33810
33811 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33812 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33813 if (!SWIG_IsOK(res1)) {
33814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33815 }
33816 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33817 arg2 = obj1;
33818 arg3 = obj2;
33819 {
33820 PyThreadState* __tstate = wxPyBeginAllowThreads();
33821 (arg1)->_setCallbackInfo(arg2,arg3);
33822 wxPyEndAllowThreads(__tstate);
33823 if (PyErr_Occurred()) SWIG_fail;
33824 }
33825 resultobj = SWIG_Py_Void();
33826 return resultobj;
33827fail:
33828 return NULL;
d14a1e28
RD
33829}
33830
33831
0085ce49
RD
33832SWIGINTERN PyObject *_wrap_TreeCtrl_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33833 PyObject *resultobj = 0;
33834 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
e9d6f3a4 33835 unsigned int result;
0085ce49
RD
33836 void *argp1 = 0 ;
33837 int res1 = 0 ;
33838 PyObject *swig_obj[1] ;
33839
33840 if (!args) SWIG_fail;
33841 swig_obj[0] = args;
33842 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33843 if (!SWIG_IsOK(res1)) {
33844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33845 }
33846 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33847 {
33848 PyThreadState* __tstate = wxPyBeginAllowThreads();
e9d6f3a4 33849 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetCount();
0085ce49
RD
33850 wxPyEndAllowThreads(__tstate);
33851 if (PyErr_Occurred()) SWIG_fail;
33852 }
e9d6f3a4 33853 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
0085ce49
RD
33854 return resultobj;
33855fail:
33856 return NULL;
d14a1e28
RD
33857}
33858
33859
0085ce49
RD
33860SWIGINTERN PyObject *_wrap_TreeCtrl_GetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33861 PyObject *resultobj = 0;
33862 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33863 unsigned int result;
33864 void *argp1 = 0 ;
33865 int res1 = 0 ;
33866 PyObject *swig_obj[1] ;
33867
33868 if (!args) SWIG_fail;
33869 swig_obj[0] = args;
33870 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33871 if (!SWIG_IsOK(res1)) {
33872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33873 }
33874 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33875 {
33876 PyThreadState* __tstate = wxPyBeginAllowThreads();
33877 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
33878 wxPyEndAllowThreads(__tstate);
33879 if (PyErr_Occurred()) SWIG_fail;
33880 }
33881 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33882 return resultobj;
33883fail:
33884 return NULL;
33885}
33886
33887
33888SWIGINTERN PyObject *_wrap_TreeCtrl_SetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33889 PyObject *resultobj = 0;
33890 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33891 unsigned int arg2 ;
33892 void *argp1 = 0 ;
33893 int res1 = 0 ;
33894 unsigned int val2 ;
33895 int ecode2 = 0 ;
33896 PyObject * obj0 = 0 ;
33897 PyObject * obj1 = 0 ;
33898 char * kwnames[] = {
33899 (char *) "self",(char *) "indent", NULL
33900 };
33901
33902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) SWIG_fail;
33903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33904 if (!SWIG_IsOK(res1)) {
33905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33906 }
33907 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33908 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
33909 if (!SWIG_IsOK(ecode2)) {
33910 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetIndent" "', expected argument " "2"" of type '" "unsigned int""'");
33911 }
33912 arg2 = static_cast< unsigned int >(val2);
33913 {
33914 PyThreadState* __tstate = wxPyBeginAllowThreads();
33915 (arg1)->SetIndent(arg2);
33916 wxPyEndAllowThreads(__tstate);
33917 if (PyErr_Occurred()) SWIG_fail;
33918 }
33919 resultobj = SWIG_Py_Void();
33920 return resultobj;
33921fail:
33922 return NULL;
d14a1e28
RD
33923}
33924
33925
0085ce49
RD
33926SWIGINTERN PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33927 PyObject *resultobj = 0;
33928 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33929 unsigned int result;
33930 void *argp1 = 0 ;
33931 int res1 = 0 ;
33932 PyObject *swig_obj[1] ;
33933
33934 if (!args) SWIG_fail;
33935 swig_obj[0] = args;
33936 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33937 if (!SWIG_IsOK(res1)) {
33938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33939 }
33940 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33941 {
33942 PyThreadState* __tstate = wxPyBeginAllowThreads();
33943 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
33944 wxPyEndAllowThreads(__tstate);
33945 if (PyErr_Occurred()) SWIG_fail;
33946 }
33947 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33948 return resultobj;
33949fail:
33950 return NULL;
33951}
33952
33953
33954SWIGINTERN PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33955 PyObject *resultobj = 0;
33956 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33957 unsigned int arg2 ;
33958 void *argp1 = 0 ;
33959 int res1 = 0 ;
33960 unsigned int val2 ;
33961 int ecode2 = 0 ;
33962 PyObject * obj0 = 0 ;
33963 PyObject * obj1 = 0 ;
33964 char * kwnames[] = {
33965 (char *) "self",(char *) "spacing", NULL
33966 };
33967
33968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
33969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33970 if (!SWIG_IsOK(res1)) {
33971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33972 }
33973 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33974 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
33975 if (!SWIG_IsOK(ecode2)) {
33976 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "2"" of type '" "unsigned int""'");
33977 }
33978 arg2 = static_cast< unsigned int >(val2);
33979 {
33980 PyThreadState* __tstate = wxPyBeginAllowThreads();
33981 (arg1)->SetSpacing(arg2);
33982 wxPyEndAllowThreads(__tstate);
33983 if (PyErr_Occurred()) SWIG_fail;
33984 }
33985 resultobj = SWIG_Py_Void();
33986 return resultobj;
33987fail:
33988 return NULL;
d14a1e28
RD
33989}
33990
33991
0085ce49
RD
33992SWIGINTERN PyObject *_wrap_TreeCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33993 PyObject *resultobj = 0;
33994 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33995 wxImageList *result = 0 ;
33996 void *argp1 = 0 ;
33997 int res1 = 0 ;
33998 PyObject *swig_obj[1] ;
33999
34000 if (!args) SWIG_fail;
34001 swig_obj[0] = args;
34002 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34003 if (!SWIG_IsOK(res1)) {
34004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34005 }
34006 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34007 {
34008 PyThreadState* __tstate = wxPyBeginAllowThreads();
34009 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
34010 wxPyEndAllowThreads(__tstate);
34011 if (PyErr_Occurred()) SWIG_fail;
34012 }
34013 {
34014 resultobj = wxPyMake_wxObject(result, (bool)0);
34015 }
34016 return resultobj;
34017fail:
34018 return NULL;
d14a1e28
RD
34019}
34020
34021
0085ce49
RD
34022SWIGINTERN PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34023 PyObject *resultobj = 0;
34024 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34025 wxImageList *result = 0 ;
34026 void *argp1 = 0 ;
34027 int res1 = 0 ;
34028 PyObject *swig_obj[1] ;
34029
34030 if (!args) SWIG_fail;
34031 swig_obj[0] = args;
34032 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34033 if (!SWIG_IsOK(res1)) {
34034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34035 }
34036 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34037 {
34038 PyThreadState* __tstate = wxPyBeginAllowThreads();
34039 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
34040 wxPyEndAllowThreads(__tstate);
34041 if (PyErr_Occurred()) SWIG_fail;
34042 }
34043 {
34044 resultobj = wxPyMake_wxObject(result, (bool)0);
34045 }
34046 return resultobj;
34047fail:
34048 return NULL;
34049}
34050
34051
34052SWIGINTERN PyObject *_wrap_TreeCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34053 PyObject *resultobj = 0;
34054 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34055 wxImageList *arg2 = (wxImageList *) 0 ;
34056 void *argp1 = 0 ;
34057 int res1 = 0 ;
34058 void *argp2 = 0 ;
34059 int res2 = 0 ;
34060 PyObject * obj0 = 0 ;
34061 PyObject * obj1 = 0 ;
34062 char * kwnames[] = {
34063 (char *) "self",(char *) "imageList", NULL
34064 };
34065
34066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34068 if (!SWIG_IsOK(res1)) {
34069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34070 }
34071 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34072 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34073 if (!SWIG_IsOK(res2)) {
34074 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34075 }
34076 arg2 = reinterpret_cast< wxImageList * >(argp2);
34077 {
34078 PyThreadState* __tstate = wxPyBeginAllowThreads();
34079 (arg1)->SetImageList(arg2);
34080 wxPyEndAllowThreads(__tstate);
34081 if (PyErr_Occurred()) SWIG_fail;
34082 }
34083 resultobj = SWIG_Py_Void();
34084 return resultobj;
34085fail:
34086 return NULL;
34087}
34088
34089
34090SWIGINTERN PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34091 PyObject *resultobj = 0;
34092 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34093 wxImageList *arg2 = (wxImageList *) 0 ;
34094 void *argp1 = 0 ;
34095 int res1 = 0 ;
34096 void *argp2 = 0 ;
34097 int res2 = 0 ;
34098 PyObject * obj0 = 0 ;
34099 PyObject * obj1 = 0 ;
34100 char * kwnames[] = {
34101 (char *) "self",(char *) "imageList", NULL
34102 };
34103
34104 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34105 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34106 if (!SWIG_IsOK(res1)) {
34107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34108 }
34109 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34110 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34111 if (!SWIG_IsOK(res2)) {
34112 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34113 }
34114 arg2 = reinterpret_cast< wxImageList * >(argp2);
34115 {
34116 PyThreadState* __tstate = wxPyBeginAllowThreads();
34117 (arg1)->SetStateImageList(arg2);
34118 wxPyEndAllowThreads(__tstate);
34119 if (PyErr_Occurred()) SWIG_fail;
34120 }
34121 resultobj = SWIG_Py_Void();
34122 return resultobj;
34123fail:
34124 return NULL;
34125}
34126
34127
34128SWIGINTERN PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34129 PyObject *resultobj = 0;
34130 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34131 wxImageList *arg2 = (wxImageList *) 0 ;
34132 void *argp1 = 0 ;
34133 int res1 = 0 ;
34134 int res2 = 0 ;
34135 PyObject * obj0 = 0 ;
34136 PyObject * obj1 = 0 ;
34137 char * kwnames[] = {
34138 (char *) "self",(char *) "imageList", NULL
34139 };
34140
34141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34143 if (!SWIG_IsOK(res1)) {
34144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34145 }
34146 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34147 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34148 if (!SWIG_IsOK(res2)) {
34149 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34150 }
34151 {
34152 PyThreadState* __tstate = wxPyBeginAllowThreads();
34153 (arg1)->AssignImageList(arg2);
34154 wxPyEndAllowThreads(__tstate);
34155 if (PyErr_Occurred()) SWIG_fail;
34156 }
34157 resultobj = SWIG_Py_Void();
34158 return resultobj;
34159fail:
34160 return NULL;
34161}
34162
34163
34164SWIGINTERN PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34165 PyObject *resultobj = 0;
34166 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34167 wxImageList *arg2 = (wxImageList *) 0 ;
34168 void *argp1 = 0 ;
34169 int res1 = 0 ;
34170 int res2 = 0 ;
34171 PyObject * obj0 = 0 ;
34172 PyObject * obj1 = 0 ;
34173 char * kwnames[] = {
34174 (char *) "self",(char *) "imageList", NULL
34175 };
34176
34177 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34178 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34179 if (!SWIG_IsOK(res1)) {
34180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34181 }
34182 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34183 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34184 if (!SWIG_IsOK(res2)) {
34185 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34186 }
34187 {
34188 PyThreadState* __tstate = wxPyBeginAllowThreads();
34189 (arg1)->AssignStateImageList(arg2);
34190 wxPyEndAllowThreads(__tstate);
34191 if (PyErr_Occurred()) SWIG_fail;
34192 }
34193 resultobj = SWIG_Py_Void();
34194 return resultobj;
34195fail:
34196 return NULL;
34197}
34198
34199
34200SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34201 PyObject *resultobj = 0;
34202 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34203 wxTreeItemId *arg2 = 0 ;
34204 wxString result;
34205 void *argp1 = 0 ;
34206 int res1 = 0 ;
34207 void *argp2 = 0 ;
34208 int res2 = 0 ;
34209 PyObject * obj0 = 0 ;
34210 PyObject * obj1 = 0 ;
34211 char * kwnames[] = {
34212 (char *) "self",(char *) "item", NULL
34213 };
34214
34215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
34216 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34217 if (!SWIG_IsOK(res1)) {
34218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34219 }
34220 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34221 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34222 if (!SWIG_IsOK(res2)) {
34223 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34224 }
34225 if (!argp2) {
34226 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34227 }
34228 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34229 {
34230 PyThreadState* __tstate = wxPyBeginAllowThreads();
34231 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
34232 wxPyEndAllowThreads(__tstate);
34233 if (PyErr_Occurred()) SWIG_fail;
34234 }
34235 {
d14a1e28 34236#if wxUSE_UNICODE
0085ce49 34237 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d14a1e28 34238#else
0085ce49 34239 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d14a1e28 34240#endif
0085ce49
RD
34241 }
34242 return resultobj;
34243fail:
34244 return NULL;
34245}
34246
34247
34248SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34249 PyObject *resultobj = 0;
34250 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34251 wxTreeItemId *arg2 = 0 ;
34252 wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34253 int result;
34254 void *argp1 = 0 ;
34255 int res1 = 0 ;
34256 void *argp2 = 0 ;
34257 int res2 = 0 ;
34258 int val3 ;
34259 int ecode3 = 0 ;
34260 PyObject * obj0 = 0 ;
34261 PyObject * obj1 = 0 ;
34262 PyObject * obj2 = 0 ;
34263 char * kwnames[] = {
34264 (char *) "self",(char *) "item",(char *) "which", NULL
34265 };
34266
34267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34269 if (!SWIG_IsOK(res1)) {
34270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34271 }
34272 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34273 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34274 if (!SWIG_IsOK(res2)) {
34275 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34276 }
34277 if (!argp2) {
34278 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34279 }
34280 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34281 if (obj2) {
34282 ecode3 = SWIG_AsVal_int(obj2, &val3);
34283 if (!SWIG_IsOK(ecode3)) {
34284 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "3"" of type '" "wxTreeItemIcon""'");
34285 }
34286 arg3 = static_cast< wxTreeItemIcon >(val3);
34287 }
34288 {
34289 PyThreadState* __tstate = wxPyBeginAllowThreads();
34290 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,arg3);
34291 wxPyEndAllowThreads(__tstate);
34292 if (PyErr_Occurred()) SWIG_fail;
34293 }
34294 resultobj = SWIG_From_int(static_cast< int >(result));
34295 return resultobj;
34296fail:
34297 return NULL;
34298}
34299
34300
34301SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34302 PyObject *resultobj = 0;
34303 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34304 wxTreeItemId *arg2 = 0 ;
34305 wxPyTreeItemData *result = 0 ;
34306 void *argp1 = 0 ;
34307 int res1 = 0 ;
34308 void *argp2 = 0 ;
34309 int res2 = 0 ;
34310 PyObject * obj0 = 0 ;
34311 PyObject * obj1 = 0 ;
34312 char * kwnames[] = {
34313 (char *) "self",(char *) "item", NULL
34314 };
34315
34316 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
34317 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34318 if (!SWIG_IsOK(res1)) {
34319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34320 }
34321 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34322 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34323 if (!SWIG_IsOK(res2)) {
34324 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34325 }
34326 if (!argp2) {
34327 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34328 }
34329 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34330 {
34331 PyThreadState* __tstate = wxPyBeginAllowThreads();
34332 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
34333 wxPyEndAllowThreads(__tstate);
34334 if (PyErr_Occurred()) SWIG_fail;
34335 }
34336 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
34337 return resultobj;
34338fail:
34339 return NULL;
34340}
34341
34342
34343SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34344 PyObject *resultobj = 0;
34345 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34346 wxTreeItemId *arg2 = 0 ;
34347 PyObject *result = 0 ;
34348 void *argp1 = 0 ;
34349 int res1 = 0 ;
34350 void *argp2 = 0 ;
34351 int res2 = 0 ;
34352 PyObject * obj0 = 0 ;
34353 PyObject * obj1 = 0 ;
34354 char * kwnames[] = {
34355 (char *) "self",(char *) "item", NULL
34356 };
34357
34358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) SWIG_fail;
34359 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34360 if (!SWIG_IsOK(res1)) {
34361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34362 }
34363 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34364 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34365 if (!SWIG_IsOK(res2)) {
34366 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34367 }
34368 if (!argp2) {
34369 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34370 }
34371 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34372 {
34373 PyThreadState* __tstate = wxPyBeginAllowThreads();
34374 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
34375 wxPyEndAllowThreads(__tstate);
34376 if (PyErr_Occurred()) SWIG_fail;
34377 }
34378 resultobj = result;
34379 return resultobj;
34380fail:
34381 return NULL;
34382}
34383
34384
34385SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34386 PyObject *resultobj = 0;
34387 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34388 wxTreeItemId *arg2 = 0 ;
34389 wxColour result;
34390 void *argp1 = 0 ;
34391 int res1 = 0 ;
34392 void *argp2 = 0 ;
34393 int res2 = 0 ;
34394 PyObject * obj0 = 0 ;
34395 PyObject * obj1 = 0 ;
34396 char * kwnames[] = {
34397 (char *) "self",(char *) "item", NULL
34398 };
34399
34400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
34401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34402 if (!SWIG_IsOK(res1)) {
34403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34404 }
34405 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34406 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34407 if (!SWIG_IsOK(res2)) {
34408 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34409 }
34410 if (!argp2) {
34411 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34412 }
34413 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34414 {
34415 PyThreadState* __tstate = wxPyBeginAllowThreads();
34416 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
34417 wxPyEndAllowThreads(__tstate);
34418 if (PyErr_Occurred()) SWIG_fail;
34419 }
34420 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34421 return resultobj;
34422fail:
34423 return NULL;
34424}
34425
34426
34427SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34428 PyObject *resultobj = 0;
34429 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34430 wxTreeItemId *arg2 = 0 ;
34431 wxColour result;
34432 void *argp1 = 0 ;
34433 int res1 = 0 ;
34434 void *argp2 = 0 ;
34435 int res2 = 0 ;
34436 PyObject * obj0 = 0 ;
34437 PyObject * obj1 = 0 ;
34438 char * kwnames[] = {
34439 (char *) "self",(char *) "item", NULL
34440 };
34441
34442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
34443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34444 if (!SWIG_IsOK(res1)) {
34445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34446 }
34447 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34448 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34449 if (!SWIG_IsOK(res2)) {
34450 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34451 }
34452 if (!argp2) {
34453 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34454 }
34455 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34456 {
34457 PyThreadState* __tstate = wxPyBeginAllowThreads();
34458 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
34459 wxPyEndAllowThreads(__tstate);
34460 if (PyErr_Occurred()) SWIG_fail;
34461 }
34462 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34463 return resultobj;
34464fail:
34465 return NULL;
34466}
34467
34468
34469SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34470 PyObject *resultobj = 0;
34471 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34472 wxTreeItemId *arg2 = 0 ;
34473 wxFont result;
34474 void *argp1 = 0 ;
34475 int res1 = 0 ;
34476 void *argp2 = 0 ;
34477 int res2 = 0 ;
34478 PyObject * obj0 = 0 ;
34479 PyObject * obj1 = 0 ;
34480 char * kwnames[] = {
34481 (char *) "self",(char *) "item", NULL
34482 };
34483
34484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
34485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34486 if (!SWIG_IsOK(res1)) {
34487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34488 }
34489 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34490 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34491 if (!SWIG_IsOK(res2)) {
34492 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34493 }
34494 if (!argp2) {
34495 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34496 }
34497 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34498 {
34499 PyThreadState* __tstate = wxPyBeginAllowThreads();
34500 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
34501 wxPyEndAllowThreads(__tstate);
34502 if (PyErr_Occurred()) SWIG_fail;
34503 }
34504 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
34505 return resultobj;
34506fail:
34507 return NULL;
34508}
34509
34510
34511SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34512 PyObject *resultobj = 0;
34513 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34514 wxTreeItemId *arg2 = 0 ;
34515 wxString *arg3 = 0 ;
34516 void *argp1 = 0 ;
34517 int res1 = 0 ;
34518 void *argp2 = 0 ;
34519 int res2 = 0 ;
34520 bool temp3 = false ;
34521 PyObject * obj0 = 0 ;
34522 PyObject * obj1 = 0 ;
34523 PyObject * obj2 = 0 ;
34524 char * kwnames[] = {
34525 (char *) "self",(char *) "item",(char *) "text", NULL
34526 };
34527
34528 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34529 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34530 if (!SWIG_IsOK(res1)) {
34531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34532 }
34533 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34534 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34535 if (!SWIG_IsOK(res2)) {
34536 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34537 }
34538 if (!argp2) {
34539 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34540 }
34541 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34542 {
34543 arg3 = wxString_in_helper(obj2);
34544 if (arg3 == NULL) SWIG_fail;
34545 temp3 = true;
34546 }
34547 {
34548 PyThreadState* __tstate = wxPyBeginAllowThreads();
34549 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
34550 wxPyEndAllowThreads(__tstate);
34551 if (PyErr_Occurred()) SWIG_fail;
34552 }
34553 resultobj = SWIG_Py_Void();
34554 {
34555 if (temp3)
34556 delete arg3;
34557 }
34558 return resultobj;
34559fail:
34560 {
34561 if (temp3)
34562 delete arg3;
34563 }
34564 return NULL;
34565}
34566
34567
34568SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34569 PyObject *resultobj = 0;
34570 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34571 wxTreeItemId *arg2 = 0 ;
34572 int arg3 ;
34573 wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34574 void *argp1 = 0 ;
34575 int res1 = 0 ;
34576 void *argp2 = 0 ;
34577 int res2 = 0 ;
34578 int val3 ;
34579 int ecode3 = 0 ;
34580 int val4 ;
34581 int ecode4 = 0 ;
34582 PyObject * obj0 = 0 ;
34583 PyObject * obj1 = 0 ;
34584 PyObject * obj2 = 0 ;
34585 PyObject * obj3 = 0 ;
34586 char * kwnames[] = {
34587 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
34588 };
34589
34590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34592 if (!SWIG_IsOK(res1)) {
34593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34594 }
34595 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34596 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34597 if (!SWIG_IsOK(res2)) {
34598 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34599 }
34600 if (!argp2) {
34601 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34602 }
34603 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34604 ecode3 = SWIG_AsVal_int(obj2, &val3);
34605 if (!SWIG_IsOK(ecode3)) {
34606 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
34607 }
34608 arg3 = static_cast< int >(val3);
34609 if (obj3) {
34610 ecode4 = SWIG_AsVal_int(obj3, &val4);
34611 if (!SWIG_IsOK(ecode4)) {
34612 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "4"" of type '" "wxTreeItemIcon""'");
34613 }
34614 arg4 = static_cast< wxTreeItemIcon >(val4);
34615 }
34616 {
34617 PyThreadState* __tstate = wxPyBeginAllowThreads();
34618 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,arg4);
34619 wxPyEndAllowThreads(__tstate);
34620 if (PyErr_Occurred()) SWIG_fail;
34621 }
34622 resultobj = SWIG_Py_Void();
34623 return resultobj;
34624fail:
34625 return NULL;
34626}
34627
34628
34629SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34630 PyObject *resultobj = 0;
34631 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34632 wxTreeItemId *arg2 = 0 ;
34633 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
34634 void *argp1 = 0 ;
34635 int res1 = 0 ;
34636 void *argp2 = 0 ;
34637 int res2 = 0 ;
34638 int res3 = 0 ;
34639 PyObject * obj0 = 0 ;
34640 PyObject * obj1 = 0 ;
34641 PyObject * obj2 = 0 ;
34642 char * kwnames[] = {
34643 (char *) "self",(char *) "item",(char *) "data", NULL
34644 };
34645
34646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34648 if (!SWIG_IsOK(res1)) {
34649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34650 }
34651 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34652 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34653 if (!SWIG_IsOK(res2)) {
34654 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34655 }
34656 if (!argp2) {
34657 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34658 }
34659 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34660 res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
34661 if (!SWIG_IsOK(res3)) {
34662 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemData" "', expected argument " "3"" of type '" "wxPyTreeItemData *""'");
34663 }
34664 {
34665 PyThreadState* __tstate = wxPyBeginAllowThreads();
34666 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
34667 wxPyEndAllowThreads(__tstate);
34668 if (PyErr_Occurred()) SWIG_fail;
34669 }
34670 resultobj = SWIG_Py_Void();
34671 return resultobj;
34672fail:
34673 return NULL;
34674}
34675
34676
34677SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34678 PyObject *resultobj = 0;
34679 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34680 wxTreeItemId *arg2 = 0 ;
34681 PyObject *arg3 = (PyObject *) 0 ;
34682 void *argp1 = 0 ;
34683 int res1 = 0 ;
34684 void *argp2 = 0 ;
34685 int res2 = 0 ;
34686 PyObject * obj0 = 0 ;
34687 PyObject * obj1 = 0 ;
34688 PyObject * obj2 = 0 ;
34689 char * kwnames[] = {
34690 (char *) "self",(char *) "item",(char *) "obj", NULL
34691 };
34692
34693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34695 if (!SWIG_IsOK(res1)) {
34696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34697 }
34698 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34699 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34700 if (!SWIG_IsOK(res2)) {
34701 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34702 }
34703 if (!argp2) {
34704 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34705 }
34706 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34707 arg3 = obj2;
34708 {
34709 PyThreadState* __tstate = wxPyBeginAllowThreads();
34710 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
34711 wxPyEndAllowThreads(__tstate);
34712 if (PyErr_Occurred()) SWIG_fail;
34713 }
34714 resultobj = SWIG_Py_Void();
34715 return resultobj;
34716fail:
34717 return NULL;
34718}
34719
34720
34721SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34722 PyObject *resultobj = 0;
34723 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34724 wxTreeItemId *arg2 = 0 ;
34725 bool arg3 = (bool) true ;
34726 void *argp1 = 0 ;
34727 int res1 = 0 ;
34728 void *argp2 = 0 ;
34729 int res2 = 0 ;
34730 bool val3 ;
34731 int ecode3 = 0 ;
34732 PyObject * obj0 = 0 ;
34733 PyObject * obj1 = 0 ;
34734 PyObject * obj2 = 0 ;
34735 char * kwnames[] = {
34736 (char *) "self",(char *) "item",(char *) "has", NULL
34737 };
34738
34739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34740 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34741 if (!SWIG_IsOK(res1)) {
34742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34743 }
34744 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34745 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34746 if (!SWIG_IsOK(res2)) {
34747 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34748 }
34749 if (!argp2) {
34750 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34751 }
34752 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34753 if (obj2) {
34754 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34755 if (!SWIG_IsOK(ecode3)) {
34756 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "3"" of type '" "bool""'");
34757 }
34758 arg3 = static_cast< bool >(val3);
34759 }
34760 {
34761 PyThreadState* __tstate = wxPyBeginAllowThreads();
34762 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
34763 wxPyEndAllowThreads(__tstate);
34764 if (PyErr_Occurred()) SWIG_fail;
34765 }
34766 resultobj = SWIG_Py_Void();
34767 return resultobj;
34768fail:
34769 return NULL;
34770}
34771
34772
34773SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34774 PyObject *resultobj = 0;
34775 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34776 wxTreeItemId *arg2 = 0 ;
34777 bool arg3 = (bool) true ;
34778 void *argp1 = 0 ;
34779 int res1 = 0 ;
34780 void *argp2 = 0 ;
34781 int res2 = 0 ;
34782 bool val3 ;
34783 int ecode3 = 0 ;
34784 PyObject * obj0 = 0 ;
34785 PyObject * obj1 = 0 ;
34786 PyObject * obj2 = 0 ;
34787 char * kwnames[] = {
34788 (char *) "self",(char *) "item",(char *) "bold", NULL
34789 };
34790
34791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34792 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34793 if (!SWIG_IsOK(res1)) {
34794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34795 }
34796 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34797 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34798 if (!SWIG_IsOK(res2)) {
34799 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34800 }
34801 if (!argp2) {
34802 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34803 }
34804 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34805 if (obj2) {
34806 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34807 if (!SWIG_IsOK(ecode3)) {
34808 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "3"" of type '" "bool""'");
34809 }
34810 arg3 = static_cast< bool >(val3);
34811 }
34812 {
34813 PyThreadState* __tstate = wxPyBeginAllowThreads();
34814 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
34815 wxPyEndAllowThreads(__tstate);
34816 if (PyErr_Occurred()) SWIG_fail;
34817 }
34818 resultobj = SWIG_Py_Void();
34819 return resultobj;
34820fail:
34821 return NULL;
34822}
34823
34824
34825SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34826 PyObject *resultobj = 0;
34827 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34828 wxTreeItemId *arg2 = 0 ;
34829 bool arg3 = (bool) true ;
34830 void *argp1 = 0 ;
34831 int res1 = 0 ;
34832 void *argp2 = 0 ;
34833 int res2 = 0 ;
34834 bool val3 ;
34835 int ecode3 = 0 ;
34836 PyObject * obj0 = 0 ;
34837 PyObject * obj1 = 0 ;
34838 PyObject * obj2 = 0 ;
34839 char * kwnames[] = {
34840 (char *) "self",(char *) "item",(char *) "highlight", NULL
34841 };
34842
34843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34845 if (!SWIG_IsOK(res1)) {
34846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34847 }
34848 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34849 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34850 if (!SWIG_IsOK(res2)) {
34851 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34852 }
34853 if (!argp2) {
34854 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34855 }
34856 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34857 if (obj2) {
34858 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34859 if (!SWIG_IsOK(ecode3)) {
34860 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "3"" of type '" "bool""'");
34861 }
34862 arg3 = static_cast< bool >(val3);
34863 }
34864 {
34865 PyThreadState* __tstate = wxPyBeginAllowThreads();
34866 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
34867 wxPyEndAllowThreads(__tstate);
34868 if (PyErr_Occurred()) SWIG_fail;
34869 }
34870 resultobj = SWIG_Py_Void();
34871 return resultobj;
34872fail:
34873 return NULL;
34874}
34875
34876
34877SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34878 PyObject *resultobj = 0;
34879 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34880 wxTreeItemId *arg2 = 0 ;
34881 wxColour *arg3 = 0 ;
34882 void *argp1 = 0 ;
34883 int res1 = 0 ;
34884 void *argp2 = 0 ;
34885 int res2 = 0 ;
34886 wxColour temp3 ;
34887 PyObject * obj0 = 0 ;
34888 PyObject * obj1 = 0 ;
34889 PyObject * obj2 = 0 ;
34890 char * kwnames[] = {
34891 (char *) "self",(char *) "item",(char *) "col", NULL
34892 };
34893
34894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34896 if (!SWIG_IsOK(res1)) {
34897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34898 }
34899 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34900 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34901 if (!SWIG_IsOK(res2)) {
34902 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34903 }
34904 if (!argp2) {
34905 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34906 }
34907 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34908 {
34909 arg3 = &temp3;
34910 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34911 }
34912 {
34913 PyThreadState* __tstate = wxPyBeginAllowThreads();
34914 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
34915 wxPyEndAllowThreads(__tstate);
34916 if (PyErr_Occurred()) SWIG_fail;
34917 }
34918 resultobj = SWIG_Py_Void();
34919 return resultobj;
34920fail:
34921 return NULL;
34922}
34923
34924
34925SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34926 PyObject *resultobj = 0;
34927 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34928 wxTreeItemId *arg2 = 0 ;
34929 wxColour *arg3 = 0 ;
34930 void *argp1 = 0 ;
34931 int res1 = 0 ;
34932 void *argp2 = 0 ;
34933 int res2 = 0 ;
34934 wxColour temp3 ;
34935 PyObject * obj0 = 0 ;
34936 PyObject * obj1 = 0 ;
34937 PyObject * obj2 = 0 ;
34938 char * kwnames[] = {
34939 (char *) "self",(char *) "item",(char *) "col", NULL
34940 };
34941
34942 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34943 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34944 if (!SWIG_IsOK(res1)) {
34945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34946 }
34947 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34948 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34949 if (!SWIG_IsOK(res2)) {
34950 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34951 }
34952 if (!argp2) {
34953 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34954 }
34955 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34956 {
34957 arg3 = &temp3;
34958 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34959 }
34960 {
34961 PyThreadState* __tstate = wxPyBeginAllowThreads();
34962 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
34963 wxPyEndAllowThreads(__tstate);
34964 if (PyErr_Occurred()) SWIG_fail;
34965 }
34966 resultobj = SWIG_Py_Void();
34967 return resultobj;
34968fail:
34969 return NULL;
34970}
34971
34972
34973SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34974 PyObject *resultobj = 0;
34975 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34976 wxTreeItemId *arg2 = 0 ;
34977 wxFont *arg3 = 0 ;
34978 void *argp1 = 0 ;
34979 int res1 = 0 ;
34980 void *argp2 = 0 ;
34981 int res2 = 0 ;
34982 void *argp3 = 0 ;
34983 int res3 = 0 ;
34984 PyObject * obj0 = 0 ;
34985 PyObject * obj1 = 0 ;
34986 PyObject * obj2 = 0 ;
34987 char * kwnames[] = {
34988 (char *) "self",(char *) "item",(char *) "font", NULL
34989 };
34990
34991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34993 if (!SWIG_IsOK(res1)) {
34994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34995 }
34996 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34997 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34998 if (!SWIG_IsOK(res2)) {
34999 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35000 }
35001 if (!argp2) {
35002 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35003 }
35004 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35005 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
35006 if (!SWIG_IsOK(res3)) {
35007 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35008 }
35009 if (!argp3) {
35010 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35011 }
35012 arg3 = reinterpret_cast< wxFont * >(argp3);
35013 {
35014 PyThreadState* __tstate = wxPyBeginAllowThreads();
35015 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
35016 wxPyEndAllowThreads(__tstate);
35017 if (PyErr_Occurred()) SWIG_fail;
35018 }
35019 resultobj = SWIG_Py_Void();
35020 return resultobj;
35021fail:
35022 return NULL;
35023}
35024
35025
35026SWIGINTERN PyObject *_wrap_TreeCtrl_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35027 PyObject *resultobj = 0;
35028 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35029 wxTreeItemId *arg2 = 0 ;
35030 bool result;
35031 void *argp1 = 0 ;
35032 int res1 = 0 ;
35033 void *argp2 = 0 ;
35034 int res2 = 0 ;
35035 PyObject * obj0 = 0 ;
35036 PyObject * obj1 = 0 ;
35037 char * kwnames[] = {
35038 (char *) "self",(char *) "item", NULL
35039 };
35040
35041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35043 if (!SWIG_IsOK(res1)) {
35044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35045 }
35046 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35047 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35048 if (!SWIG_IsOK(res2)) {
35049 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35050 }
35051 if (!argp2) {
35052 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35053 }
35054 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35055 {
35056 PyThreadState* __tstate = wxPyBeginAllowThreads();
35057 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
35058 wxPyEndAllowThreads(__tstate);
35059 if (PyErr_Occurred()) SWIG_fail;
35060 }
35061 {
35062 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35063 }
35064 return resultobj;
35065fail:
35066 return NULL;
35067}
35068
35069
35070SWIGINTERN PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35071 PyObject *resultobj = 0;
35072 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35073 wxTreeItemId *arg2 = 0 ;
35074 bool result;
35075 void *argp1 = 0 ;
35076 int res1 = 0 ;
35077 void *argp2 = 0 ;
35078 int res2 = 0 ;
35079 PyObject * obj0 = 0 ;
35080 PyObject * obj1 = 0 ;
35081 char * kwnames[] = {
35082 (char *) "self",(char *) "item", NULL
35083 };
35084
35085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) SWIG_fail;
35086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35087 if (!SWIG_IsOK(res1)) {
35088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35089 }
35090 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35091 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35092 if (!SWIG_IsOK(res2)) {
35093 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35094 }
35095 if (!argp2) {
35096 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35097 }
35098 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35099 {
35100 PyThreadState* __tstate = wxPyBeginAllowThreads();
35101 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
35102 wxPyEndAllowThreads(__tstate);
35103 if (PyErr_Occurred()) SWIG_fail;
35104 }
35105 {
35106 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35107 }
35108 return resultobj;
35109fail:
35110 return NULL;
35111}
35112
35113
35114SWIGINTERN PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35115 PyObject *resultobj = 0;
35116 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35117 wxTreeItemId *arg2 = 0 ;
35118 bool result;
35119 void *argp1 = 0 ;
35120 int res1 = 0 ;
35121 void *argp2 = 0 ;
35122 int res2 = 0 ;
35123 PyObject * obj0 = 0 ;
35124 PyObject * obj1 = 0 ;
35125 char * kwnames[] = {
35126 (char *) "self",(char *) "item", NULL
35127 };
35128
35129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
35130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35131 if (!SWIG_IsOK(res1)) {
35132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35133 }
35134 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35135 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35136 if (!SWIG_IsOK(res2)) {
35137 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35138 }
35139 if (!argp2) {
35140 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35141 }
35142 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35143 {
35144 PyThreadState* __tstate = wxPyBeginAllowThreads();
35145 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
35146 wxPyEndAllowThreads(__tstate);
35147 if (PyErr_Occurred()) SWIG_fail;
35148 }
35149 {
35150 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35151 }
35152 return resultobj;
35153fail:
35154 return NULL;
35155}
35156
35157
35158SWIGINTERN PyObject *_wrap_TreeCtrl_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35159 PyObject *resultobj = 0;
35160 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35161 wxTreeItemId *arg2 = 0 ;
35162 bool result;
35163 void *argp1 = 0 ;
35164 int res1 = 0 ;
35165 void *argp2 = 0 ;
35166 int res2 = 0 ;
35167 PyObject * obj0 = 0 ;
35168 PyObject * obj1 = 0 ;
35169 char * kwnames[] = {
35170 (char *) "self",(char *) "item", NULL
35171 };
35172
35173 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
35174 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35175 if (!SWIG_IsOK(res1)) {
35176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsSelected" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35177 }
35178 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35179 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35180 if (!SWIG_IsOK(res2)) {
35181 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35182 }
35183 if (!argp2) {
35184 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35185 }
35186 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35187 {
35188 PyThreadState* __tstate = wxPyBeginAllowThreads();
35189 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
35190 wxPyEndAllowThreads(__tstate);
35191 if (PyErr_Occurred()) SWIG_fail;
35192 }
35193 {
35194 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35195 }
35196 return resultobj;
35197fail:
35198 return NULL;
35199}
35200
35201
35202SWIGINTERN PyObject *_wrap_TreeCtrl_IsBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35203 PyObject *resultobj = 0;
35204 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35205 wxTreeItemId *arg2 = 0 ;
35206 bool result;
35207 void *argp1 = 0 ;
35208 int res1 = 0 ;
35209 void *argp2 = 0 ;
35210 int res2 = 0 ;
35211 PyObject * obj0 = 0 ;
35212 PyObject * obj1 = 0 ;
35213 char * kwnames[] = {
35214 (char *) "self",(char *) "item", NULL
35215 };
35216
35217 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) SWIG_fail;
35218 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35219 if (!SWIG_IsOK(res1)) {
35220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35221 }
35222 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35223 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35224 if (!SWIG_IsOK(res2)) {
35225 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35226 }
35227 if (!argp2) {
35228 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35229 }
35230 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35231 {
35232 PyThreadState* __tstate = wxPyBeginAllowThreads();
35233 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
35234 wxPyEndAllowThreads(__tstate);
35235 if (PyErr_Occurred()) SWIG_fail;
35236 }
35237 {
35238 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35239 }
35240 return resultobj;
35241fail:
35242 return NULL;
35243}
35244
35245
35246SWIGINTERN PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35247 PyObject *resultobj = 0;
35248 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35249 wxTreeItemId *arg2 = 0 ;
35250 bool arg3 = (bool) true ;
35251 size_t result;
35252 void *argp1 = 0 ;
35253 int res1 = 0 ;
35254 void *argp2 = 0 ;
35255 int res2 = 0 ;
35256 bool val3 ;
35257 int ecode3 = 0 ;
35258 PyObject * obj0 = 0 ;
35259 PyObject * obj1 = 0 ;
35260 PyObject * obj2 = 0 ;
35261 char * kwnames[] = {
35262 (char *) "self",(char *) "item",(char *) "recursively", NULL
35263 };
35264
35265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35266 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35267 if (!SWIG_IsOK(res1)) {
35268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35269 }
35270 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35271 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35272 if (!SWIG_IsOK(res2)) {
35273 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35274 }
35275 if (!argp2) {
35276 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35277 }
35278 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35279 if (obj2) {
35280 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35281 if (!SWIG_IsOK(ecode3)) {
35282 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "3"" of type '" "bool""'");
35283 }
35284 arg3 = static_cast< bool >(val3);
35285 }
35286 {
35287 PyThreadState* __tstate = wxPyBeginAllowThreads();
35288 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
35289 wxPyEndAllowThreads(__tstate);
35290 if (PyErr_Occurred()) SWIG_fail;
35291 }
35292 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
35293 return resultobj;
35294fail:
35295 return NULL;
d14a1e28
RD
35296}
35297
35298
0085ce49
RD
35299SWIGINTERN PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35300 PyObject *resultobj = 0;
35301 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35302 wxTreeItemId result;
35303 void *argp1 = 0 ;
35304 int res1 = 0 ;
35305 PyObject *swig_obj[1] ;
35306
35307 if (!args) SWIG_fail;
35308 swig_obj[0] = args;
35309 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35310 if (!SWIG_IsOK(res1)) {
35311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetRootItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35312 }
35313 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35314 {
35315 PyThreadState* __tstate = wxPyBeginAllowThreads();
35316 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
35317 wxPyEndAllowThreads(__tstate);
35318 if (PyErr_Occurred()) SWIG_fail;
35319 }
35320 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35321 return resultobj;
35322fail:
35323 return NULL;
d14a1e28
RD
35324}
35325
35326
0085ce49
RD
35327SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35328 PyObject *resultobj = 0;
35329 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35330 wxTreeItemId result;
35331 void *argp1 = 0 ;
35332 int res1 = 0 ;
35333 PyObject *swig_obj[1] ;
35334
35335 if (!args) SWIG_fail;
35336 swig_obj[0] = args;
35337 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35338 if (!SWIG_IsOK(res1)) {
35339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35340 }
35341 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35342 {
35343 PyThreadState* __tstate = wxPyBeginAllowThreads();
35344 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
35345 wxPyEndAllowThreads(__tstate);
35346 if (PyErr_Occurred()) SWIG_fail;
35347 }
35348 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35349 return resultobj;
35350fail:
35351 return NULL;
d14a1e28
RD
35352}
35353
35354
0085ce49
RD
35355SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35356 PyObject *resultobj = 0;
35357 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35358 PyObject *result = 0 ;
35359 void *argp1 = 0 ;
35360 int res1 = 0 ;
35361 PyObject *swig_obj[1] ;
35362
35363 if (!args) SWIG_fail;
35364 swig_obj[0] = args;
35365 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35366 if (!SWIG_IsOK(res1)) {
35367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelections" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35368 }
35369 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35370 {
35371 PyThreadState* __tstate = wxPyBeginAllowThreads();
35372 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
35373 wxPyEndAllowThreads(__tstate);
35374 if (PyErr_Occurred()) SWIG_fail;
35375 }
35376 resultobj = result;
35377 return resultobj;
35378fail:
35379 return NULL;
35380}
35381
35382
35383SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35384 PyObject *resultobj = 0;
35385 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35386 wxTreeItemId *arg2 = 0 ;
35387 wxTreeItemId result;
35388 void *argp1 = 0 ;
35389 int res1 = 0 ;
35390 void *argp2 = 0 ;
35391 int res2 = 0 ;
35392 PyObject * obj0 = 0 ;
35393 PyObject * obj1 = 0 ;
35394 char * kwnames[] = {
35395 (char *) "self",(char *) "item", NULL
35396 };
35397
35398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) SWIG_fail;
35399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35400 if (!SWIG_IsOK(res1)) {
35401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35402 }
35403 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35404 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35405 if (!SWIG_IsOK(res2)) {
35406 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35407 }
35408 if (!argp2) {
35409 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35410 }
35411 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35412 {
35413 PyThreadState* __tstate = wxPyBeginAllowThreads();
35414 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
35415 wxPyEndAllowThreads(__tstate);
35416 if (PyErr_Occurred()) SWIG_fail;
35417 }
35418 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35419 return resultobj;
35420fail:
35421 return NULL;
35422}
35423
35424
35425SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35426 PyObject *resultobj = 0;
35427 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35428 wxTreeItemId *arg2 = 0 ;
35429 PyObject *result = 0 ;
35430 void *argp1 = 0 ;
35431 int res1 = 0 ;
35432 void *argp2 = 0 ;
35433 int res2 = 0 ;
35434 PyObject * obj0 = 0 ;
35435 PyObject * obj1 = 0 ;
35436 char * kwnames[] = {
35437 (char *) "self",(char *) "item", NULL
35438 };
35439
35440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) SWIG_fail;
35441 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35442 if (!SWIG_IsOK(res1)) {
35443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35444 }
35445 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35446 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35447 if (!SWIG_IsOK(res2)) {
35448 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35449 }
35450 if (!argp2) {
35451 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35452 }
35453 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35454 {
35455 PyThreadState* __tstate = wxPyBeginAllowThreads();
35456 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
35457 wxPyEndAllowThreads(__tstate);
35458 if (PyErr_Occurred()) SWIG_fail;
35459 }
35460 resultobj = result;
35461 return resultobj;
35462fail:
35463 return NULL;
35464}
35465
35466
35467SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35468 PyObject *resultobj = 0;
35469 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35470 wxTreeItemId *arg2 = 0 ;
35471 void *arg3 = (void *) 0 ;
35472 PyObject *result = 0 ;
35473 void *argp1 = 0 ;
35474 int res1 = 0 ;
35475 void *argp2 = 0 ;
35476 int res2 = 0 ;
35477 int res3 ;
35478 PyObject * obj0 = 0 ;
35479 PyObject * obj1 = 0 ;
35480 PyObject * obj2 = 0 ;
35481 char * kwnames[] = {
35482 (char *) "self",(char *) "item",(char *) "cookie", NULL
35483 };
35484
35485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35486 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35487 if (!SWIG_IsOK(res1)) {
35488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35489 }
35490 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35491 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35492 if (!SWIG_IsOK(res2)) {
35493 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35494 }
35495 if (!argp2) {
35496 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35497 }
35498 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35499 res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
35500 if (!SWIG_IsOK(res3)) {
35501 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "3"" of type '" "void *""'");
35502 }
35503 {
35504 PyThreadState* __tstate = wxPyBeginAllowThreads();
35505 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
35506 wxPyEndAllowThreads(__tstate);
35507 if (PyErr_Occurred()) SWIG_fail;
35508 }
35509 resultobj = result;
35510 return resultobj;
35511fail:
35512 return NULL;
35513}
35514
35515
35516SWIGINTERN PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35517 PyObject *resultobj = 0;
35518 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35519 wxTreeItemId *arg2 = 0 ;
35520 wxTreeItemId result;
35521 void *argp1 = 0 ;
35522 int res1 = 0 ;
35523 void *argp2 = 0 ;
35524 int res2 = 0 ;
35525 PyObject * obj0 = 0 ;
35526 PyObject * obj1 = 0 ;
35527 char * kwnames[] = {
35528 (char *) "self",(char *) "item", NULL
35529 };
35530
35531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) SWIG_fail;
35532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35533 if (!SWIG_IsOK(res1)) {
35534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35535 }
35536 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35537 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35538 if (!SWIG_IsOK(res2)) {
35539 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35540 }
35541 if (!argp2) {
35542 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35543 }
35544 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35545 {
35546 PyThreadState* __tstate = wxPyBeginAllowThreads();
35547 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
35548 wxPyEndAllowThreads(__tstate);
35549 if (PyErr_Occurred()) SWIG_fail;
35550 }
35551 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35552 return resultobj;
35553fail:
35554 return NULL;
35555}
35556
35557
35558SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35559 PyObject *resultobj = 0;
35560 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35561 wxTreeItemId *arg2 = 0 ;
35562 wxTreeItemId result;
35563 void *argp1 = 0 ;
35564 int res1 = 0 ;
35565 void *argp2 = 0 ;
35566 int res2 = 0 ;
35567 PyObject * obj0 = 0 ;
35568 PyObject * obj1 = 0 ;
35569 char * kwnames[] = {
35570 (char *) "self",(char *) "item", NULL
35571 };
35572
35573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35575 if (!SWIG_IsOK(res1)) {
35576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35577 }
35578 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35579 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35580 if (!SWIG_IsOK(res2)) {
35581 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35582 }
35583 if (!argp2) {
35584 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35585 }
35586 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35587 {
35588 PyThreadState* __tstate = wxPyBeginAllowThreads();
35589 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
35590 wxPyEndAllowThreads(__tstate);
35591 if (PyErr_Occurred()) SWIG_fail;
35592 }
35593 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35594 return resultobj;
35595fail:
35596 return NULL;
35597}
35598
35599
35600SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35601 PyObject *resultobj = 0;
35602 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35603 wxTreeItemId *arg2 = 0 ;
35604 wxTreeItemId result;
35605 void *argp1 = 0 ;
35606 int res1 = 0 ;
35607 void *argp2 = 0 ;
35608 int res2 = 0 ;
35609 PyObject * obj0 = 0 ;
35610 PyObject * obj1 = 0 ;
35611 char * kwnames[] = {
35612 (char *) "self",(char *) "item", NULL
35613 };
35614
35615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35617 if (!SWIG_IsOK(res1)) {
35618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35619 }
35620 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35621 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35622 if (!SWIG_IsOK(res2)) {
35623 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35624 }
35625 if (!argp2) {
35626 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35627 }
35628 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35629 {
35630 PyThreadState* __tstate = wxPyBeginAllowThreads();
35631 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
35632 wxPyEndAllowThreads(__tstate);
35633 if (PyErr_Occurred()) SWIG_fail;
35634 }
35635 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35636 return resultobj;
35637fail:
35638 return NULL;
d14a1e28
RD
35639}
35640
35641
0085ce49
RD
35642SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35643 PyObject *resultobj = 0;
35644 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35645 wxTreeItemId result;
35646 void *argp1 = 0 ;
35647 int res1 = 0 ;
35648 PyObject *swig_obj[1] ;
35649
35650 if (!args) SWIG_fail;
35651 swig_obj[0] = args;
35652 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35653 if (!SWIG_IsOK(res1)) {
35654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstVisibleItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35655 }
35656 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35657 {
35658 PyThreadState* __tstate = wxPyBeginAllowThreads();
35659 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
35660 wxPyEndAllowThreads(__tstate);
35661 if (PyErr_Occurred()) SWIG_fail;
35662 }
35663 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35664 return resultobj;
35665fail:
35666 return NULL;
35667}
35668
35669
35670SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35671 PyObject *resultobj = 0;
35672 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35673 wxTreeItemId *arg2 = 0 ;
35674 wxTreeItemId result;
35675 void *argp1 = 0 ;
35676 int res1 = 0 ;
35677 void *argp2 = 0 ;
35678 int res2 = 0 ;
35679 PyObject * obj0 = 0 ;
35680 PyObject * obj1 = 0 ;
35681 char * kwnames[] = {
35682 (char *) "self",(char *) "item", NULL
35683 };
35684
35685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35687 if (!SWIG_IsOK(res1)) {
35688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35689 }
35690 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35691 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35692 if (!SWIG_IsOK(res2)) {
35693 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35694 }
35695 if (!argp2) {
35696 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35697 }
35698 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35699 {
35700 PyThreadState* __tstate = wxPyBeginAllowThreads();
35701 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
35702 wxPyEndAllowThreads(__tstate);
35703 if (PyErr_Occurred()) SWIG_fail;
35704 }
35705 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35706 return resultobj;
35707fail:
35708 return NULL;
35709}
35710
35711
35712SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35713 PyObject *resultobj = 0;
35714 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35715 wxTreeItemId *arg2 = 0 ;
35716 wxTreeItemId result;
35717 void *argp1 = 0 ;
35718 int res1 = 0 ;
35719 void *argp2 = 0 ;
35720 int res2 = 0 ;
35721 PyObject * obj0 = 0 ;
35722 PyObject * obj1 = 0 ;
35723 char * kwnames[] = {
35724 (char *) "self",(char *) "item", NULL
35725 };
35726
35727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35729 if (!SWIG_IsOK(res1)) {
35730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35731 }
35732 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35733 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35734 if (!SWIG_IsOK(res2)) {
35735 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35736 }
35737 if (!argp2) {
35738 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35739 }
35740 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35741 {
35742 PyThreadState* __tstate = wxPyBeginAllowThreads();
35743 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
35744 wxPyEndAllowThreads(__tstate);
35745 if (PyErr_Occurred()) SWIG_fail;
35746 }
35747 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35748 return resultobj;
35749fail:
35750 return NULL;
35751}
35752
35753
35754SWIGINTERN PyObject *_wrap_TreeCtrl_AddRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35755 PyObject *resultobj = 0;
35756 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35757 wxString *arg2 = 0 ;
35758 int arg3 = (int) -1 ;
35759 int arg4 = (int) -1 ;
35760 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
35761 wxTreeItemId result;
35762 void *argp1 = 0 ;
35763 int res1 = 0 ;
35764 bool temp2 = false ;
35765 int val3 ;
35766 int ecode3 = 0 ;
35767 int val4 ;
35768 int ecode4 = 0 ;
35769 int res5 = 0 ;
35770 PyObject * obj0 = 0 ;
35771 PyObject * obj1 = 0 ;
35772 PyObject * obj2 = 0 ;
35773 PyObject * obj3 = 0 ;
35774 PyObject * obj4 = 0 ;
35775 char * kwnames[] = {
35776 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35777 };
35778
35779 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35780 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35781 if (!SWIG_IsOK(res1)) {
35782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AddRoot" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35783 }
35784 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35785 {
35786 arg2 = wxString_in_helper(obj1);
35787 if (arg2 == NULL) SWIG_fail;
35788 temp2 = true;
35789 }
35790 if (obj2) {
35791 ecode3 = SWIG_AsVal_int(obj2, &val3);
35792 if (!SWIG_IsOK(ecode3)) {
35793 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_AddRoot" "', expected argument " "3"" of type '" "int""'");
35794 }
35795 arg3 = static_cast< int >(val3);
35796 }
35797 if (obj3) {
35798 ecode4 = SWIG_AsVal_int(obj3, &val4);
35799 if (!SWIG_IsOK(ecode4)) {
35800 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AddRoot" "', expected argument " "4"" of type '" "int""'");
35801 }
35802 arg4 = static_cast< int >(val4);
35803 }
35804 if (obj4) {
35805 res5 = SWIG_ConvertPtr(obj4, SWIG_as_voidptrptr(&arg5), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35806 if (!SWIG_IsOK(res5)) {
35807 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "TreeCtrl_AddRoot" "', expected argument " "5"" of type '" "wxPyTreeItemData *""'");
3a04f143 35808 }
0085ce49
RD
35809 }
35810 {
35811 PyThreadState* __tstate = wxPyBeginAllowThreads();
35812 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
35813 wxPyEndAllowThreads(__tstate);
35814 if (PyErr_Occurred()) SWIG_fail;
35815 }
35816 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35817 {
35818 if (temp2)
35819 delete arg2;
35820 }
35821 return resultobj;
35822fail:
35823 {
35824 if (temp2)
35825 delete arg2;
35826 }
35827 return NULL;
35828}
35829
35830
35831SWIGINTERN PyObject *_wrap_TreeCtrl_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35832 PyObject *resultobj = 0;
35833 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35834 wxTreeItemId *arg2 = 0 ;
35835 wxString *arg3 = 0 ;
35836 int arg4 = (int) -1 ;
35837 int arg5 = (int) -1 ;
35838 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
35839 wxTreeItemId result;
35840 void *argp1 = 0 ;
35841 int res1 = 0 ;
35842 void *argp2 = 0 ;
35843 int res2 = 0 ;
35844 bool temp3 = false ;
35845 int val4 ;
35846 int ecode4 = 0 ;
35847 int val5 ;
35848 int ecode5 = 0 ;
35849 int res6 = 0 ;
35850 PyObject * obj0 = 0 ;
35851 PyObject * obj1 = 0 ;
35852 PyObject * obj2 = 0 ;
35853 PyObject * obj3 = 0 ;
35854 PyObject * obj4 = 0 ;
35855 PyObject * obj5 = 0 ;
35856 char * kwnames[] = {
35857 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35858 };
35859
35860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
35861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35862 if (!SWIG_IsOK(res1)) {
35863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_PrependItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35864 }
35865 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35866 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35867 if (!SWIG_IsOK(res2)) {
35868 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35869 }
35870 if (!argp2) {
35871 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35872 }
35873 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35874 {
35875 arg3 = wxString_in_helper(obj2);
35876 if (arg3 == NULL) SWIG_fail;
35877 temp3 = true;
35878 }
35879 if (obj3) {
35880 ecode4 = SWIG_AsVal_int(obj3, &val4);
35881 if (!SWIG_IsOK(ecode4)) {
35882 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_PrependItem" "', expected argument " "4"" of type '" "int""'");
35883 }
35884 arg4 = static_cast< int >(val4);
35885 }
35886 if (obj4) {
35887 ecode5 = SWIG_AsVal_int(obj4, &val5);
35888 if (!SWIG_IsOK(ecode5)) {
35889 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_PrependItem" "', expected argument " "5"" of type '" "int""'");
35890 }
35891 arg5 = static_cast< int >(val5);
35892 }
35893 if (obj5) {
35894 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35895 if (!SWIG_IsOK(res6)) {
35896 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_PrependItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
3a04f143 35897 }
0085ce49
RD
35898 }
35899 {
35900 PyThreadState* __tstate = wxPyBeginAllowThreads();
35901 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
35902 wxPyEndAllowThreads(__tstate);
35903 if (PyErr_Occurred()) SWIG_fail;
35904 }
35905 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35906 {
35907 if (temp3)
35908 delete arg3;
35909 }
35910 return resultobj;
35911fail:
35912 {
35913 if (temp3)
35914 delete arg3;
35915 }
35916 return NULL;
35917}
35918
35919
35920SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35921 PyObject *resultobj = 0;
35922 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35923 wxTreeItemId *arg2 = 0 ;
35924 wxTreeItemId *arg3 = 0 ;
35925 wxString *arg4 = 0 ;
35926 int arg5 = (int) -1 ;
35927 int arg6 = (int) -1 ;
35928 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
35929 wxTreeItemId result;
35930 void *argp1 = 0 ;
35931 int res1 = 0 ;
35932 void *argp2 = 0 ;
35933 int res2 = 0 ;
35934 void *argp3 = 0 ;
35935 int res3 = 0 ;
35936 bool temp4 = false ;
35937 int val5 ;
35938 int ecode5 = 0 ;
35939 int val6 ;
35940 int ecode6 = 0 ;
35941 int res7 = 0 ;
35942 PyObject * obj0 = 0 ;
35943 PyObject * obj1 = 0 ;
35944 PyObject * obj2 = 0 ;
35945 PyObject * obj3 = 0 ;
35946 PyObject * obj4 = 0 ;
35947 PyObject * obj5 = 0 ;
35948 PyObject * obj6 = 0 ;
35949 char * kwnames[] = {
35950 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35951 };
35952
35953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35955 if (!SWIG_IsOK(res1)) {
35956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35957 }
35958 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35959 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35960 if (!SWIG_IsOK(res2)) {
35961 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35962 }
35963 if (!argp2) {
35964 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35965 }
35966 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35967 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35968 if (!SWIG_IsOK(res3)) {
35969 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
35970 }
35971 if (!argp3) {
35972 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
35973 }
35974 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
35975 {
35976 arg4 = wxString_in_helper(obj3);
35977 if (arg4 == NULL) SWIG_fail;
35978 temp4 = true;
35979 }
35980 if (obj4) {
35981 ecode5 = SWIG_AsVal_int(obj4, &val5);
35982 if (!SWIG_IsOK(ecode5)) {
35983 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItem" "', expected argument " "5"" of type '" "int""'");
35984 }
35985 arg5 = static_cast< int >(val5);
35986 }
35987 if (obj5) {
35988 ecode6 = SWIG_AsVal_int(obj5, &val6);
35989 if (!SWIG_IsOK(ecode6)) {
35990 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItem" "', expected argument " "6"" of type '" "int""'");
35991 }
35992 arg6 = static_cast< int >(val6);
35993 }
35994 if (obj6) {
35995 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35996 if (!SWIG_IsOK(res7)) {
35997 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItem" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
093d3ff1 35998 }
0085ce49
RD
35999 }
36000 {
36001 PyThreadState* __tstate = wxPyBeginAllowThreads();
36002 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36003 wxPyEndAllowThreads(__tstate);
36004 if (PyErr_Occurred()) SWIG_fail;
36005 }
36006 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36007 {
36008 if (temp4)
36009 delete arg4;
36010 }
36011 return resultobj;
36012fail:
36013 {
36014 if (temp4)
36015 delete arg4;
36016 }
36017 return NULL;
36018}
36019
36020
36021SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36022 PyObject *resultobj = 0;
36023 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36024 wxTreeItemId *arg2 = 0 ;
36025 size_t arg3 ;
36026 wxString *arg4 = 0 ;
36027 int arg5 = (int) -1 ;
36028 int arg6 = (int) -1 ;
36029 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
36030 wxTreeItemId result;
36031 void *argp1 = 0 ;
36032 int res1 = 0 ;
36033 void *argp2 = 0 ;
36034 int res2 = 0 ;
36035 size_t val3 ;
36036 int ecode3 = 0 ;
36037 bool temp4 = false ;
36038 int val5 ;
36039 int ecode5 = 0 ;
36040 int val6 ;
36041 int ecode6 = 0 ;
36042 int res7 = 0 ;
36043 PyObject * obj0 = 0 ;
36044 PyObject * obj1 = 0 ;
36045 PyObject * obj2 = 0 ;
36046 PyObject * obj3 = 0 ;
36047 PyObject * obj4 = 0 ;
36048 PyObject * obj5 = 0 ;
36049 PyObject * obj6 = 0 ;
36050 char * kwnames[] = {
36051 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36052 };
36053
36054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36056 if (!SWIG_IsOK(res1)) {
36057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36058 }
36059 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36060 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36061 if (!SWIG_IsOK(res2)) {
36062 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36063 }
36064 if (!argp2) {
36065 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36066 }
36067 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36068 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
36069 if (!SWIG_IsOK(ecode3)) {
36070 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "3"" of type '" "size_t""'");
36071 }
36072 arg3 = static_cast< size_t >(val3);
36073 {
36074 arg4 = wxString_in_helper(obj3);
36075 if (arg4 == NULL) SWIG_fail;
36076 temp4 = true;
36077 }
36078 if (obj4) {
36079 ecode5 = SWIG_AsVal_int(obj4, &val5);
36080 if (!SWIG_IsOK(ecode5)) {
36081 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "5"" of type '" "int""'");
36082 }
36083 arg5 = static_cast< int >(val5);
36084 }
36085 if (obj5) {
36086 ecode6 = SWIG_AsVal_int(obj5, &val6);
36087 if (!SWIG_IsOK(ecode6)) {
36088 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "6"" of type '" "int""'");
36089 }
36090 arg6 = static_cast< int >(val6);
36091 }
36092 if (obj6) {
36093 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36094 if (!SWIG_IsOK(res7)) {
36095 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
3a04f143 36096 }
0085ce49
RD
36097 }
36098 {
36099 PyThreadState* __tstate = wxPyBeginAllowThreads();
36100 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36101 wxPyEndAllowThreads(__tstate);
36102 if (PyErr_Occurred()) SWIG_fail;
36103 }
36104 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36105 {
36106 if (temp4)
36107 delete arg4;
36108 }
36109 return resultobj;
36110fail:
36111 {
36112 if (temp4)
36113 delete arg4;
36114 }
36115 return NULL;
36116}
36117
36118
36119SWIGINTERN PyObject *_wrap_TreeCtrl_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36120 PyObject *resultobj = 0;
36121 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36122 wxTreeItemId *arg2 = 0 ;
36123 wxString *arg3 = 0 ;
36124 int arg4 = (int) -1 ;
36125 int arg5 = (int) -1 ;
36126 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
36127 wxTreeItemId result;
36128 void *argp1 = 0 ;
36129 int res1 = 0 ;
36130 void *argp2 = 0 ;
36131 int res2 = 0 ;
36132 bool temp3 = false ;
36133 int val4 ;
36134 int ecode4 = 0 ;
36135 int val5 ;
36136 int ecode5 = 0 ;
36137 int res6 = 0 ;
36138 PyObject * obj0 = 0 ;
36139 PyObject * obj1 = 0 ;
36140 PyObject * obj2 = 0 ;
36141 PyObject * obj3 = 0 ;
36142 PyObject * obj4 = 0 ;
36143 PyObject * obj5 = 0 ;
36144 char * kwnames[] = {
36145 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36146 };
36147
36148 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36149 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36150 if (!SWIG_IsOK(res1)) {
36151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AppendItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36152 }
36153 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36154 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36155 if (!SWIG_IsOK(res2)) {
36156 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36157 }
36158 if (!argp2) {
36159 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36160 }
36161 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36162 {
36163 arg3 = wxString_in_helper(obj2);
36164 if (arg3 == NULL) SWIG_fail;
36165 temp3 = true;
36166 }
36167 if (obj3) {
36168 ecode4 = SWIG_AsVal_int(obj3, &val4);
36169 if (!SWIG_IsOK(ecode4)) {
36170 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AppendItem" "', expected argument " "4"" of type '" "int""'");
36171 }
36172 arg4 = static_cast< int >(val4);
36173 }
36174 if (obj4) {
36175 ecode5 = SWIG_AsVal_int(obj4, &val5);
36176 if (!SWIG_IsOK(ecode5)) {
36177 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_AppendItem" "', expected argument " "5"" of type '" "int""'");
36178 }
36179 arg5 = static_cast< int >(val5);
36180 }
36181 if (obj5) {
36182 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36183 if (!SWIG_IsOK(res6)) {
36184 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_AppendItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
3a04f143 36185 }
0085ce49
RD
36186 }
36187 {
36188 PyThreadState* __tstate = wxPyBeginAllowThreads();
36189 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
36190 wxPyEndAllowThreads(__tstate);
36191 if (PyErr_Occurred()) SWIG_fail;
36192 }
36193 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36194 {
36195 if (temp3)
36196 delete arg3;
36197 }
36198 return resultobj;
36199fail:
36200 {
36201 if (temp3)
36202 delete arg3;
36203 }
36204 return NULL;
36205}
36206
36207
36208SWIGINTERN PyObject *_wrap_TreeCtrl_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36209 PyObject *resultobj = 0;
36210 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36211 wxTreeItemId *arg2 = 0 ;
36212 void *argp1 = 0 ;
36213 int res1 = 0 ;
36214 void *argp2 = 0 ;
36215 int res2 = 0 ;
36216 PyObject * obj0 = 0 ;
36217 PyObject * obj1 = 0 ;
36218 char * kwnames[] = {
36219 (char *) "self",(char *) "item", NULL
36220 };
36221
36222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) SWIG_fail;
36223 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36224 if (!SWIG_IsOK(res1)) {
36225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Delete" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36226 }
36227 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36228 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36229 if (!SWIG_IsOK(res2)) {
36230 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36231 }
36232 if (!argp2) {
36233 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36234 }
36235 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36236 {
36237 PyThreadState* __tstate = wxPyBeginAllowThreads();
36238 (arg1)->Delete((wxTreeItemId const &)*arg2);
36239 wxPyEndAllowThreads(__tstate);
36240 if (PyErr_Occurred()) SWIG_fail;
36241 }
36242 resultobj = SWIG_Py_Void();
36243 return resultobj;
36244fail:
36245 return NULL;
36246}
36247
36248
36249SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36250 PyObject *resultobj = 0;
36251 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36252 wxTreeItemId *arg2 = 0 ;
36253 void *argp1 = 0 ;
36254 int res1 = 0 ;
36255 void *argp2 = 0 ;
36256 int res2 = 0 ;
36257 PyObject * obj0 = 0 ;
36258 PyObject * obj1 = 0 ;
36259 char * kwnames[] = {
36260 (char *) "self",(char *) "item", NULL
36261 };
36262
36263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36265 if (!SWIG_IsOK(res1)) {
36266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36267 }
36268 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36269 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36270 if (!SWIG_IsOK(res2)) {
36271 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36272 }
36273 if (!argp2) {
36274 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36275 }
36276 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36277 {
36278 PyThreadState* __tstate = wxPyBeginAllowThreads();
36279 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
36280 wxPyEndAllowThreads(__tstate);
36281 if (PyErr_Occurred()) SWIG_fail;
36282 }
36283 resultobj = SWIG_Py_Void();
36284 return resultobj;
36285fail:
36286 return NULL;
3a04f143
RD
36287}
36288
36289
0085ce49
RD
36290SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36291 PyObject *resultobj = 0;
36292 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36293 void *argp1 = 0 ;
36294 int res1 = 0 ;
36295 PyObject *swig_obj[1] ;
36296
36297 if (!args) SWIG_fail;
36298 swig_obj[0] = args;
36299 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36300 if (!SWIG_IsOK(res1)) {
36301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36302 }
36303 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36304 {
36305 PyThreadState* __tstate = wxPyBeginAllowThreads();
36306 (arg1)->DeleteAllItems();
36307 wxPyEndAllowThreads(__tstate);
36308 if (PyErr_Occurred()) SWIG_fail;
36309 }
36310 resultobj = SWIG_Py_Void();
36311 return resultobj;
36312fail:
36313 return NULL;
36314}
36315
36316
36317SWIGINTERN PyObject *_wrap_TreeCtrl_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36318 PyObject *resultobj = 0;
36319 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36320 wxTreeItemId *arg2 = 0 ;
36321 void *argp1 = 0 ;
36322 int res1 = 0 ;
36323 void *argp2 = 0 ;
36324 int res2 = 0 ;
36325 PyObject * obj0 = 0 ;
36326 PyObject * obj1 = 0 ;
36327 char * kwnames[] = {
36328 (char *) "self",(char *) "item", NULL
36329 };
36330
36331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) SWIG_fail;
36332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36333 if (!SWIG_IsOK(res1)) {
36334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Expand" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36335 }
36336 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36337 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36338 if (!SWIG_IsOK(res2)) {
36339 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36340 }
36341 if (!argp2) {
36342 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36343 }
36344 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36345 {
36346 PyThreadState* __tstate = wxPyBeginAllowThreads();
36347 (arg1)->Expand((wxTreeItemId const &)*arg2);
36348 wxPyEndAllowThreads(__tstate);
36349 if (PyErr_Occurred()) SWIG_fail;
36350 }
36351 resultobj = SWIG_Py_Void();
36352 return resultobj;
36353fail:
36354 return NULL;
36355}
36356
36357
453fb36b
RD
36358SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAllChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36359 PyObject *resultobj = 0;
36360 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36361 wxTreeItemId *arg2 = 0 ;
36362 void *argp1 = 0 ;
36363 int res1 = 0 ;
36364 void *argp2 = 0 ;
36365 int res2 = 0 ;
36366 PyObject * obj0 = 0 ;
36367 PyObject * obj1 = 0 ;
36368 char * kwnames[] = {
36369 (char *) "self",(char *) "item", NULL
36370 };
36371
36372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ExpandAllChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36374 if (!SWIG_IsOK(res1)) {
36375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36376 }
36377 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36378 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36379 if (!SWIG_IsOK(res2)) {
36380 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36381 }
36382 if (!argp2) {
36383 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36384 }
36385 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36386 {
36387 PyThreadState* __tstate = wxPyBeginAllowThreads();
36388 (arg1)->ExpandAllChildren((wxTreeItemId const &)*arg2);
36389 wxPyEndAllowThreads(__tstate);
36390 if (PyErr_Occurred()) SWIG_fail;
36391 }
36392 resultobj = SWIG_Py_Void();
36393 return resultobj;
36394fail:
36395 return NULL;
36396}
36397
36398
36399SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36400 PyObject *resultobj = 0;
36401 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36402 void *argp1 = 0 ;
36403 int res1 = 0 ;
36404 PyObject *swig_obj[1] ;
36405
36406 if (!args) SWIG_fail;
36407 swig_obj[0] = args;
36408 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36409 if (!SWIG_IsOK(res1)) {
36410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36411 }
36412 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36413 {
36414 PyThreadState* __tstate = wxPyBeginAllowThreads();
36415 (arg1)->ExpandAll();
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
0085ce49
RD
36426SWIGINTERN PyObject *_wrap_TreeCtrl_Collapse(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_Collapse",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_Collapse" "', 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_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36449 }
36450 if (!argp2) {
36451 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36452 }
36453 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36454 {
36455 PyThreadState* __tstate = wxPyBeginAllowThreads();
36456 (arg1)->Collapse((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;
36464}
36465
36466
36467SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36468 PyObject *resultobj = 0;
36469 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36470 wxTreeItemId *arg2 = 0 ;
36471 void *argp1 = 0 ;
36472 int res1 = 0 ;
36473 void *argp2 = 0 ;
36474 int res2 = 0 ;
36475 PyObject * obj0 = 0 ;
36476 PyObject * obj1 = 0 ;
36477 char * kwnames[] = {
36478 (char *) "self",(char *) "item", NULL
36479 };
36480
36481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) SWIG_fail;
36482 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36483 if (!SWIG_IsOK(res1)) {
36484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36485 }
36486 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36487 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36488 if (!SWIG_IsOK(res2)) {
36489 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36490 }
36491 if (!argp2) {
36492 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36493 }
36494 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36495 {
36496 PyThreadState* __tstate = wxPyBeginAllowThreads();
36497 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
36498 wxPyEndAllowThreads(__tstate);
36499 if (PyErr_Occurred()) SWIG_fail;
36500 }
36501 resultobj = SWIG_Py_Void();
36502 return resultobj;
36503fail:
36504 return NULL;
36505}
36506
36507
36508SWIGINTERN PyObject *_wrap_TreeCtrl_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36509 PyObject *resultobj = 0;
36510 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36511 wxTreeItemId *arg2 = 0 ;
36512 void *argp1 = 0 ;
36513 int res1 = 0 ;
36514 void *argp2 = 0 ;
36515 int res2 = 0 ;
36516 PyObject * obj0 = 0 ;
36517 PyObject * obj1 = 0 ;
36518 char * kwnames[] = {
36519 (char *) "self",(char *) "item", NULL
36520 };
36521
36522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) SWIG_fail;
36523 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36524 if (!SWIG_IsOK(res1)) {
36525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Toggle" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36526 }
36527 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36528 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36529 if (!SWIG_IsOK(res2)) {
36530 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36531 }
36532 if (!argp2) {
36533 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36534 }
36535 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36536 {
36537 PyThreadState* __tstate = wxPyBeginAllowThreads();
36538 (arg1)->Toggle((wxTreeItemId const &)*arg2);
36539 wxPyEndAllowThreads(__tstate);
36540 if (PyErr_Occurred()) SWIG_fail;
36541 }
36542 resultobj = SWIG_Py_Void();
36543 return resultobj;
36544fail:
36545 return NULL;
d14a1e28
RD
36546}
36547
36548
0085ce49
RD
36549SWIGINTERN PyObject *_wrap_TreeCtrl_Unselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36550 PyObject *resultobj = 0;
36551 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36552 void *argp1 = 0 ;
36553 int res1 = 0 ;
36554 PyObject *swig_obj[1] ;
36555
36556 if (!args) SWIG_fail;
36557 swig_obj[0] = args;
36558 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36559 if (!SWIG_IsOK(res1)) {
36560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Unselect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36561 }
36562 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36563 {
36564 PyThreadState* __tstate = wxPyBeginAllowThreads();
36565 (arg1)->Unselect();
36566 wxPyEndAllowThreads(__tstate);
36567 if (PyErr_Occurred()) SWIG_fail;
36568 }
36569 resultobj = SWIG_Py_Void();
36570 return resultobj;
36571fail:
36572 return NULL;
36573}
36574
36575
36576SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36577 PyObject *resultobj = 0;
36578 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36579 wxTreeItemId *arg2 = 0 ;
36580 void *argp1 = 0 ;
36581 int res1 = 0 ;
36582 void *argp2 = 0 ;
36583 int res2 = 0 ;
36584 PyObject * obj0 = 0 ;
36585 PyObject * obj1 = 0 ;
36586 char * kwnames[] = {
36587 (char *) "self",(char *) "item", NULL
36588 };
36589
36590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) SWIG_fail;
36591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36592 if (!SWIG_IsOK(res1)) {
36593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36594 }
36595 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36596 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36597 if (!SWIG_IsOK(res2)) {
36598 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36599 }
36600 if (!argp2) {
36601 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36602 }
36603 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36604 {
36605 PyThreadState* __tstate = wxPyBeginAllowThreads();
36606 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
36607 wxPyEndAllowThreads(__tstate);
36608 if (PyErr_Occurred()) SWIG_fail;
36609 }
36610 resultobj = SWIG_Py_Void();
36611 return resultobj;
36612fail:
36613 return NULL;
d14a1e28
RD
36614}
36615
36616
0085ce49
RD
36617SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36618 PyObject *resultobj = 0;
36619 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36620 void *argp1 = 0 ;
36621 int res1 = 0 ;
36622 PyObject *swig_obj[1] ;
36623
36624 if (!args) SWIG_fail;
36625 swig_obj[0] = args;
36626 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36627 if (!SWIG_IsOK(res1)) {
36628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36629 }
36630 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36631 {
36632 PyThreadState* __tstate = wxPyBeginAllowThreads();
36633 (arg1)->UnselectAll();
36634 wxPyEndAllowThreads(__tstate);
36635 if (PyErr_Occurred()) SWIG_fail;
36636 }
36637 resultobj = SWIG_Py_Void();
36638 return resultobj;
36639fail:
36640 return NULL;
36641}
36642
36643
36644SWIGINTERN PyObject *_wrap_TreeCtrl_SelectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36645 PyObject *resultobj = 0;
36646 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36647 wxTreeItemId *arg2 = 0 ;
36648 bool arg3 = (bool) true ;
36649 void *argp1 = 0 ;
36650 int res1 = 0 ;
36651 void *argp2 = 0 ;
36652 int res2 = 0 ;
36653 bool val3 ;
36654 int ecode3 = 0 ;
36655 PyObject * obj0 = 0 ;
36656 PyObject * obj1 = 0 ;
36657 PyObject * obj2 = 0 ;
36658 char * kwnames[] = {
36659 (char *) "self",(char *) "item",(char *) "select", NULL
36660 };
36661
36662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36664 if (!SWIG_IsOK(res1)) {
36665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SelectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36666 }
36667 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36668 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36669 if (!SWIG_IsOK(res2)) {
36670 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36671 }
36672 if (!argp2) {
36673 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36674 }
36675 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36676 if (obj2) {
36677 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36678 if (!SWIG_IsOK(ecode3)) {
36679 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SelectItem" "', expected argument " "3"" of type '" "bool""'");
36680 }
36681 arg3 = static_cast< bool >(val3);
36682 }
36683 {
36684 PyThreadState* __tstate = wxPyBeginAllowThreads();
36685 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
36686 wxPyEndAllowThreads(__tstate);
36687 if (PyErr_Occurred()) SWIG_fail;
36688 }
36689 resultobj = SWIG_Py_Void();
36690 return resultobj;
36691fail:
36692 return NULL;
36693}
36694
36695
36696SWIGINTERN PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36697 PyObject *resultobj = 0;
36698 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36699 wxTreeItemId *arg2 = 0 ;
36700 void *argp1 = 0 ;
36701 int res1 = 0 ;
36702 void *argp2 = 0 ;
36703 int res2 = 0 ;
36704 PyObject * obj0 = 0 ;
36705 PyObject * obj1 = 0 ;
36706 char * kwnames[] = {
36707 (char *) "self",(char *) "item", NULL
36708 };
36709
36710 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) SWIG_fail;
36711 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36712 if (!SWIG_IsOK(res1)) {
36713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36714 }
36715 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36716 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36717 if (!SWIG_IsOK(res2)) {
36718 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36719 }
36720 if (!argp2) {
36721 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36722 }
36723 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36724 {
36725 PyThreadState* __tstate = wxPyBeginAllowThreads();
36726 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
36727 wxPyEndAllowThreads(__tstate);
36728 if (PyErr_Occurred()) SWIG_fail;
36729 }
36730 resultobj = SWIG_Py_Void();
36731 return resultobj;
36732fail:
36733 return NULL;
36734}
36735
36736
36737SWIGINTERN PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36738 PyObject *resultobj = 0;
36739 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36740 wxTreeItemId *arg2 = 0 ;
36741 void *argp1 = 0 ;
36742 int res1 = 0 ;
36743 void *argp2 = 0 ;
36744 int res2 = 0 ;
36745 PyObject * obj0 = 0 ;
36746 PyObject * obj1 = 0 ;
36747 char * kwnames[] = {
36748 (char *) "self",(char *) "item", NULL
36749 };
36750
36751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
36752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36753 if (!SWIG_IsOK(res1)) {
36754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36755 }
36756 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36757 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36758 if (!SWIG_IsOK(res2)) {
36759 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36760 }
36761 if (!argp2) {
36762 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36763 }
36764 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36765 {
36766 PyThreadState* __tstate = wxPyBeginAllowThreads();
36767 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
36768 wxPyEndAllowThreads(__tstate);
36769 if (PyErr_Occurred()) SWIG_fail;
36770 }
36771 resultobj = SWIG_Py_Void();
36772 return resultobj;
36773fail:
36774 return NULL;
36775}
36776
36777
36778SWIGINTERN PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36779 PyObject *resultobj = 0;
36780 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36781 wxTreeItemId *arg2 = 0 ;
36782 void *argp1 = 0 ;
36783 int res1 = 0 ;
36784 void *argp2 = 0 ;
36785 int res2 = 0 ;
36786 PyObject * obj0 = 0 ;
36787 PyObject * obj1 = 0 ;
36788 char * kwnames[] = {
36789 (char *) "self",(char *) "item", NULL
36790 };
36791
36792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) SWIG_fail;
36793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36794 if (!SWIG_IsOK(res1)) {
36795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36796 }
36797 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36798 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36799 if (!SWIG_IsOK(res2)) {
36800 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36801 }
36802 if (!argp2) {
36803 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36804 }
36805 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36806 {
36807 PyThreadState* __tstate = wxPyBeginAllowThreads();
36808 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
36809 wxPyEndAllowThreads(__tstate);
36810 if (PyErr_Occurred()) SWIG_fail;
36811 }
36812 resultobj = SWIG_Py_Void();
36813 return resultobj;
36814fail:
36815 return NULL;
36816}
36817
36818
36819SWIGINTERN PyObject *_wrap_TreeCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36820 PyObject *resultobj = 0;
36821 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36822 wxTreeItemId *arg2 = 0 ;
36823 void *argp1 = 0 ;
36824 int res1 = 0 ;
36825 void *argp2 = 0 ;
36826 int res2 = 0 ;
36827 PyObject * obj0 = 0 ;
36828 PyObject * obj1 = 0 ;
36829 char * kwnames[] = {
36830 (char *) "self",(char *) "item", NULL
36831 };
36832
36833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
36834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36835 if (!SWIG_IsOK(res1)) {
36836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36837 }
36838 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36839 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36840 if (!SWIG_IsOK(res2)) {
36841 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36842 }
36843 if (!argp2) {
36844 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36845 }
36846 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36847 {
36848 PyThreadState* __tstate = wxPyBeginAllowThreads();
36849 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
36850 wxPyEndAllowThreads(__tstate);
36851 if (PyErr_Occurred()) SWIG_fail;
36852 }
36853 resultobj = SWIG_Py_Void();
36854 return resultobj;
36855fail:
36856 return NULL;
d14a1e28
RD
36857}
36858
36859
0085ce49
RD
36860SWIGINTERN PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36861 PyObject *resultobj = 0;
36862 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36863 wxTextCtrl *result = 0 ;
36864 void *argp1 = 0 ;
36865 int res1 = 0 ;
36866 PyObject *swig_obj[1] ;
36867
36868 if (!args) SWIG_fail;
36869 swig_obj[0] = args;
36870 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36871 if (!SWIG_IsOK(res1)) {
36872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36873 }
36874 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36875 {
36876 PyThreadState* __tstate = wxPyBeginAllowThreads();
36877 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
36878 wxPyEndAllowThreads(__tstate);
36879 if (PyErr_Occurred()) SWIG_fail;
36880 }
36881 {
36882 resultobj = wxPyMake_wxObject(result, 0);
36883 }
36884 return resultobj;
36885fail:
36886 return NULL;
36887}
36888
36889
36890SWIGINTERN PyObject *_wrap_TreeCtrl_SortChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36891 PyObject *resultobj = 0;
36892 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36893 wxTreeItemId *arg2 = 0 ;
36894 void *argp1 = 0 ;
36895 int res1 = 0 ;
36896 void *argp2 = 0 ;
36897 int res2 = 0 ;
36898 PyObject * obj0 = 0 ;
36899 PyObject * obj1 = 0 ;
36900 char * kwnames[] = {
36901 (char *) "self",(char *) "item", NULL
36902 };
36903
36904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36906 if (!SWIG_IsOK(res1)) {
36907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SortChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36908 }
36909 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36910 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36911 if (!SWIG_IsOK(res2)) {
36912 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36913 }
36914 if (!argp2) {
36915 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36916 }
36917 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36918 {
36919 PyThreadState* __tstate = wxPyBeginAllowThreads();
36920 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
36921 wxPyEndAllowThreads(__tstate);
36922 if (PyErr_Occurred()) SWIG_fail;
36923 }
36924 resultobj = SWIG_Py_Void();
36925 return resultobj;
36926fail:
36927 return NULL;
36928}
36929
36930
36931SWIGINTERN PyObject *_wrap_TreeCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36932 PyObject *resultobj = 0;
36933 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36934 wxPoint *arg2 = 0 ;
36935 int *arg3 = 0 ;
36936 wxTreeItemId result;
36937 void *argp1 = 0 ;
36938 int res1 = 0 ;
36939 wxPoint temp2 ;
36940 int temp3 ;
36941 int res3 = SWIG_TMPOBJ ;
36942 PyObject * obj0 = 0 ;
36943 PyObject * obj1 = 0 ;
36944 char * kwnames[] = {
36945 (char *) "self",(char *) "point", NULL
36946 };
36947
36948 arg3 = &temp3;
36949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
36950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36951 if (!SWIG_IsOK(res1)) {
36952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36953 }
36954 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36955 {
36956 arg2 = &temp2;
36957 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36958 }
36959 {
36960 PyThreadState* __tstate = wxPyBeginAllowThreads();
36961 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
36962 wxPyEndAllowThreads(__tstate);
36963 if (PyErr_Occurred()) SWIG_fail;
36964 }
36965 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36966 if (SWIG_IsTmpObj(res3)) {
36967 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
36968 } else {
36969 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
36970 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
36971 }
36972 return resultobj;
36973fail:
36974 return NULL;
36975}
36976
36977
36978SWIGINTERN PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36979 PyObject *resultobj = 0;
36980 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36981 wxTreeItemId *arg2 = 0 ;
36982 bool arg3 = (bool) false ;
36983 PyObject *result = 0 ;
36984 void *argp1 = 0 ;
36985 int res1 = 0 ;
36986 void *argp2 = 0 ;
36987 int res2 = 0 ;
36988 bool val3 ;
36989 int ecode3 = 0 ;
36990 PyObject * obj0 = 0 ;
36991 PyObject * obj1 = 0 ;
36992 PyObject * obj2 = 0 ;
36993 char * kwnames[] = {
36994 (char *) "self",(char *) "item",(char *) "textOnly", NULL
36995 };
36996
36997 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36998 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36999 if (!SWIG_IsOK(res1)) {
37000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37001 }
37002 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37003 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37004 if (!SWIG_IsOK(res2)) {
37005 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37006 }
37007 if (!argp2) {
37008 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37009 }
37010 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37011 if (obj2) {
37012 ecode3 = SWIG_AsVal_bool(obj2, &val3);
37013 if (!SWIG_IsOK(ecode3)) {
37014 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "3"" of type '" "bool""'");
37015 }
37016 arg3 = static_cast< bool >(val3);
37017 }
37018 {
37019 PyThreadState* __tstate = wxPyBeginAllowThreads();
37020 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
37021 wxPyEndAllowThreads(__tstate);
37022 if (PyErr_Occurred()) SWIG_fail;
37023 }
37024 resultobj = result;
37025 return resultobj;
37026fail:
37027 return NULL;
37028}
37029
37030
37031SWIGINTERN PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37032 PyObject *resultobj = 0;
37033 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
37034 SwigValueWrapper<wxVisualAttributes > result;
37035 int val1 ;
37036 int ecode1 = 0 ;
37037 PyObject * obj0 = 0 ;
37038 char * kwnames[] = {
37039 (char *) "variant", NULL
37040 };
37041
37042 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
37043 if (obj0) {
37044 ecode1 = SWIG_AsVal_int(obj0, &val1);
37045 if (!SWIG_IsOK(ecode1)) {
37046 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TreeCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
37047 }
37048 arg1 = static_cast< wxWindowVariant >(val1);
37049 }
37050 {
37051 if (!wxPyCheckForApp()) SWIG_fail;
37052 PyThreadState* __tstate = wxPyBeginAllowThreads();
37053 result = wxPyTreeCtrl::GetClassDefaultAttributes(arg1);
37054 wxPyEndAllowThreads(__tstate);
37055 if (PyErr_Occurred()) SWIG_fail;
37056 }
37057 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
37058 return resultobj;
37059fail:
37060 return NULL;
d14a1e28
RD
37061}
37062
37063
2131d850
RD
37064SWIGINTERN PyObject *_wrap_TreeCtrl_SetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37065 PyObject *resultobj = 0;
37066 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37067 bool arg2 ;
37068 void *argp1 = 0 ;
37069 int res1 = 0 ;
37070 bool val2 ;
37071 int ecode2 = 0 ;
37072 PyObject * obj0 = 0 ;
37073 PyObject * obj1 = 0 ;
37074 char * kwnames[] = {
37075 (char *) "self",(char *) "q", NULL
37076 };
37077
37078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetQuickBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
37079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37080 if (!SWIG_IsOK(res1)) {
37081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37082 }
37083 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37084 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37085 if (!SWIG_IsOK(ecode2)) {
37086 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "2"" of type '" "bool""'");
37087 }
37088 arg2 = static_cast< bool >(val2);
37089 {
37090 PyThreadState* __tstate = wxPyBeginAllowThreads();
37091 (arg1)->SetQuickBestSize(arg2);
37092 wxPyEndAllowThreads(__tstate);
37093 if (PyErr_Occurred()) SWIG_fail;
37094 }
37095 resultobj = SWIG_Py_Void();
37096 return resultobj;
37097fail:
37098 return NULL;
37099}
37100
37101
37102SWIGINTERN PyObject *_wrap_TreeCtrl_GetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37103 PyObject *resultobj = 0;
37104 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37105 bool result;
37106 void *argp1 = 0 ;
37107 int res1 = 0 ;
37108 PyObject *swig_obj[1] ;
37109
37110 if (!args) SWIG_fail;
37111 swig_obj[0] = args;
37112 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37113 if (!SWIG_IsOK(res1)) {
37114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
37115 }
37116 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37117 {
37118 PyThreadState* __tstate = wxPyBeginAllowThreads();
37119 result = (bool)((wxPyTreeCtrl const *)arg1)->GetQuickBestSize();
37120 wxPyEndAllowThreads(__tstate);
37121 if (PyErr_Occurred()) SWIG_fail;
37122 }
37123 {
37124 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37125 }
37126 return resultobj;
37127fail:
37128 return NULL;
37129}
37130
37131
0085ce49
RD
37132SWIGINTERN PyObject *TreeCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37133 PyObject *obj;
37134 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37135 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeCtrl, SWIG_NewClientData(obj));
37136 return SWIG_Py_Void();
d14a1e28
RD
37137}
37138
0085ce49
RD
37139SWIGINTERN PyObject *TreeCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37140 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
37141}
37142
0085ce49
RD
37143SWIGINTERN int DirDialogDefaultFolderStr_set(PyObject *) {
37144 SWIG_Error(SWIG_AttributeError,"Variable DirDialogDefaultFolderStr is read-only.");
37145 return 1;
d14a1e28
RD
37146}
37147
37148
0085ce49
RD
37149SWIGINTERN PyObject *DirDialogDefaultFolderStr_get(void) {
37150 PyObject *pyobj = 0;
37151
37152 {
37153#if wxUSE_UNICODE
37154 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37155#else
37156 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37157#endif
37158 }
37159 return pyobj;
37160}
37161
37162
37163SWIGINTERN PyObject *_wrap_new_GenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37164 PyObject *resultobj = 0;
37165 wxWindow *arg1 = (wxWindow *) 0 ;
37166 int arg2 = (int) (int)-1 ;
37167 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
37168 wxString *arg3 = (wxString *) &arg3_defvalue ;
37169 wxPoint const &arg4_defvalue = wxDefaultPosition ;
37170 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
37171 wxSize const &arg5_defvalue = wxDefaultSize ;
37172 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
37173 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37174 wxString const &arg7_defvalue = wxPyEmptyString ;
37175 wxString *arg7 = (wxString *) &arg7_defvalue ;
37176 int arg8 = (int) 0 ;
37177 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
37178 wxString *arg9 = (wxString *) &arg9_defvalue ;
37179 wxGenericDirCtrl *result = 0 ;
37180 void *argp1 = 0 ;
37181 int res1 = 0 ;
37182 int val2 ;
37183 int ecode2 = 0 ;
37184 bool temp3 = false ;
37185 wxPoint temp4 ;
37186 wxSize temp5 ;
37187 long val6 ;
37188 int ecode6 = 0 ;
37189 bool temp7 = false ;
37190 int val8 ;
37191 int ecode8 = 0 ;
37192 bool temp9 = false ;
37193 PyObject * obj0 = 0 ;
37194 PyObject * obj1 = 0 ;
37195 PyObject * obj2 = 0 ;
37196 PyObject * obj3 = 0 ;
37197 PyObject * obj4 = 0 ;
37198 PyObject * obj5 = 0 ;
37199 PyObject * obj6 = 0 ;
37200 PyObject * obj7 = 0 ;
37201 PyObject * obj8 = 0 ;
37202 char * kwnames[] = {
37203 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37204 };
37205
37206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
37207 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37208 if (!SWIG_IsOK(res1)) {
37209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GenericDirCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
37210 }
37211 arg1 = reinterpret_cast< wxWindow * >(argp1);
37212 if (obj1) {
37213 ecode2 = SWIG_AsVal_int(obj1, &val2);
37214 if (!SWIG_IsOK(ecode2)) {
37215 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GenericDirCtrl" "', expected argument " "2"" of type '" "int""'");
37216 }
37217 arg2 = static_cast< int >(val2);
37218 }
37219 if (obj2) {
d14a1e28 37220 {
0085ce49
RD
37221 arg3 = wxString_in_helper(obj2);
37222 if (arg3 == NULL) SWIG_fail;
37223 temp3 = true;
d14a1e28 37224 }
0085ce49
RD
37225 }
37226 if (obj3) {
4f89f6a3 37227 {
0085ce49
RD
37228 arg4 = &temp4;
37229 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 37230 }
0085ce49
RD
37231 }
37232 if (obj4) {
093d3ff1 37233 {
0085ce49
RD
37234 arg5 = &temp5;
37235 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 37236 }
0085ce49
RD
37237 }
37238 if (obj5) {
37239 ecode6 = SWIG_AsVal_long(obj5, &val6);
37240 if (!SWIG_IsOK(ecode6)) {
37241 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GenericDirCtrl" "', expected argument " "6"" of type '" "long""'");
37242 }
37243 arg6 = static_cast< long >(val6);
37244 }
37245 if (obj6) {
093d3ff1 37246 {
0085ce49
RD
37247 arg7 = wxString_in_helper(obj6);
37248 if (arg7 == NULL) SWIG_fail;
37249 temp7 = true;
093d3ff1 37250 }
0085ce49
RD
37251 }
37252 if (obj7) {
37253 ecode8 = SWIG_AsVal_int(obj7, &val8);
37254 if (!SWIG_IsOK(ecode8)) {
37255 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GenericDirCtrl" "', expected argument " "8"" of type '" "int""'");
37256 }
37257 arg8 = static_cast< int >(val8);
37258 }
37259 if (obj8) {
d14a1e28 37260 {
0085ce49
RD
37261 arg9 = wxString_in_helper(obj8);
37262 if (arg9 == NULL) SWIG_fail;
37263 temp9 = true;
d14a1e28 37264 }
0085ce49
RD
37265 }
37266 {
37267 if (!wxPyCheckForApp()) SWIG_fail;
37268 PyThreadState* __tstate = wxPyBeginAllowThreads();
37269 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
37270 wxPyEndAllowThreads(__tstate);
37271 if (PyErr_Occurred()) SWIG_fail;
37272 }
37273 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_NEW | 0 );
37274 {
37275 if (temp3)
37276 delete arg3;
37277 }
37278 {
37279 if (temp7)
37280 delete arg7;
37281 }
37282 {
37283 if (temp9)
37284 delete arg9;
37285 }
37286 return resultobj;
37287fail:
37288 {
37289 if (temp3)
37290 delete arg3;
37291 }
37292 {
37293 if (temp7)
37294 delete arg7;
37295 }
37296 {
37297 if (temp9)
37298 delete arg9;
37299 }
37300 return NULL;
d14a1e28
RD
37301}
37302
37303
0085ce49
RD
37304SWIGINTERN PyObject *_wrap_new_PreGenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37305 PyObject *resultobj = 0;
37306 wxGenericDirCtrl *result = 0 ;
37307
37308 if (!SWIG_Python_UnpackTuple(args,"new_PreGenericDirCtrl",0,0,0)) SWIG_fail;
37309 {
37310 if (!wxPyCheckForApp()) SWIG_fail;
37311 PyThreadState* __tstate = wxPyBeginAllowThreads();
37312 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
37313 wxPyEndAllowThreads(__tstate);
37314 if (PyErr_Occurred()) SWIG_fail;
37315 }
37316 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_OWN | 0 );
37317 return resultobj;
37318fail:
37319 return NULL;
37320}
37321
37322
37323SWIGINTERN PyObject *_wrap_GenericDirCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37324 PyObject *resultobj = 0;
37325 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37326 wxWindow *arg2 = (wxWindow *) 0 ;
37327 int arg3 = (int) (int)-1 ;
37328 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
37329 wxString *arg4 = (wxString *) &arg4_defvalue ;
37330 wxPoint const &arg5_defvalue = wxDefaultPosition ;
37331 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
37332 wxSize const &arg6_defvalue = wxDefaultSize ;
37333 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
37334 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37335 wxString const &arg8_defvalue = wxPyEmptyString ;
37336 wxString *arg8 = (wxString *) &arg8_defvalue ;
37337 int arg9 = (int) 0 ;
37338 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
37339 wxString *arg10 = (wxString *) &arg10_defvalue ;
37340 bool result;
37341 void *argp1 = 0 ;
37342 int res1 = 0 ;
37343 void *argp2 = 0 ;
37344 int res2 = 0 ;
37345 int val3 ;
37346 int ecode3 = 0 ;
37347 bool temp4 = false ;
37348 wxPoint temp5 ;
37349 wxSize temp6 ;
37350 long val7 ;
37351 int ecode7 = 0 ;
37352 bool temp8 = false ;
37353 int val9 ;
37354 int ecode9 = 0 ;
37355 bool temp10 = false ;
37356 PyObject * obj0 = 0 ;
37357 PyObject * obj1 = 0 ;
37358 PyObject * obj2 = 0 ;
37359 PyObject * obj3 = 0 ;
37360 PyObject * obj4 = 0 ;
37361 PyObject * obj5 = 0 ;
37362 PyObject * obj6 = 0 ;
37363 PyObject * obj7 = 0 ;
37364 PyObject * obj8 = 0 ;
37365 PyObject * obj9 = 0 ;
37366 char * kwnames[] = {
37367 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37368 };
37369
37370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
37371 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37372 if (!SWIG_IsOK(res1)) {
37373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_Create" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37374 }
37375 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37376 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
37377 if (!SWIG_IsOK(res2)) {
37378 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
37379 }
37380 arg2 = reinterpret_cast< wxWindow * >(argp2);
37381 if (obj2) {
37382 ecode3 = SWIG_AsVal_int(obj2, &val3);
37383 if (!SWIG_IsOK(ecode3)) {
37384 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GenericDirCtrl_Create" "', expected argument " "3"" of type '" "int""'");
37385 }
37386 arg3 = static_cast< int >(val3);
37387 }
37388 if (obj3) {
093d3ff1 37389 {
0085ce49
RD
37390 arg4 = wxString_in_helper(obj3);
37391 if (arg4 == NULL) SWIG_fail;
37392 temp4 = true;
093d3ff1 37393 }
0085ce49
RD
37394 }
37395 if (obj4) {
093d3ff1 37396 {
0085ce49
RD
37397 arg5 = &temp5;
37398 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 37399 }
0085ce49
RD
37400 }
37401 if (obj5) {
d14a1e28 37402 {
0085ce49
RD
37403 arg6 = &temp6;
37404 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d14a1e28 37405 }
0085ce49
RD
37406 }
37407 if (obj6) {
37408 ecode7 = SWIG_AsVal_long(obj6, &val7);
37409 if (!SWIG_IsOK(ecode7)) {
37410 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GenericDirCtrl_Create" "', expected argument " "7"" of type '" "long""'");
37411 }
37412 arg7 = static_cast< long >(val7);
37413 }
37414 if (obj7) {
093d3ff1 37415 {
0085ce49
RD
37416 arg8 = wxString_in_helper(obj7);
37417 if (arg8 == NULL) SWIG_fail;
37418 temp8 = true;
093d3ff1 37419 }
0085ce49
RD
37420 }
37421 if (obj8) {
37422 ecode9 = SWIG_AsVal_int(obj8, &val9);
37423 if (!SWIG_IsOK(ecode9)) {
37424 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GenericDirCtrl_Create" "', expected argument " "9"" of type '" "int""'");
37425 }
37426 arg9 = static_cast< int >(val9);
37427 }
37428 if (obj9) {
093d3ff1 37429 {
0085ce49
RD
37430 arg10 = wxString_in_helper(obj9);
37431 if (arg10 == NULL) SWIG_fail;
37432 temp10 = true;
093d3ff1 37433 }
0085ce49
RD
37434 }
37435 {
37436 PyThreadState* __tstate = wxPyBeginAllowThreads();
37437 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
37438 wxPyEndAllowThreads(__tstate);
37439 if (PyErr_Occurred()) SWIG_fail;
37440 }
37441 {
37442 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37443 }
37444 {
37445 if (temp4)
37446 delete arg4;
37447 }
37448 {
37449 if (temp8)
37450 delete arg8;
37451 }
37452 {
37453 if (temp10)
37454 delete arg10;
37455 }
37456 return resultobj;
37457fail:
37458 {
37459 if (temp4)
37460 delete arg4;
37461 }
37462 {
37463 if (temp8)
37464 delete arg8;
37465 }
37466 {
37467 if (temp10)
37468 delete arg10;
37469 }
37470 return NULL;
37471}
37472
37473
37474SWIGINTERN PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37475 PyObject *resultobj = 0;
37476 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37477 wxString *arg2 = 0 ;
37478 bool result;
37479 void *argp1 = 0 ;
37480 int res1 = 0 ;
37481 bool temp2 = false ;
37482 PyObject * obj0 = 0 ;
37483 PyObject * obj1 = 0 ;
37484 char * kwnames[] = {
37485 (char *) "self",(char *) "path", NULL
37486 };
37487
37488 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) SWIG_fail;
37489 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37490 if (!SWIG_IsOK(res1)) {
37491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ExpandPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37492 }
37493 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37494 {
37495 arg2 = wxString_in_helper(obj1);
37496 if (arg2 == NULL) SWIG_fail;
37497 temp2 = true;
37498 }
37499 {
37500 PyThreadState* __tstate = wxPyBeginAllowThreads();
37501 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
37502 wxPyEndAllowThreads(__tstate);
37503 if (PyErr_Occurred()) SWIG_fail;
37504 }
37505 {
37506 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37507 }
37508 {
37509 if (temp2)
37510 delete arg2;
37511 }
37512 return resultobj;
37513fail:
37514 {
37515 if (temp2)
37516 delete arg2;
37517 }
37518 return NULL;
d14a1e28
RD
37519}
37520
37521
704eda0c
RD
37522SWIGINTERN PyObject *_wrap_GenericDirCtrl_CollapsePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37523 PyObject *resultobj = 0;
37524 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37525 wxString *arg2 = 0 ;
37526 bool result;
37527 void *argp1 = 0 ;
37528 int res1 = 0 ;
37529 bool temp2 = false ;
37530 PyObject * obj0 = 0 ;
37531 PyObject * obj1 = 0 ;
37532 char * kwnames[] = {
37533 (char *) "self",(char *) "path", NULL
37534 };
37535
37536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_CollapsePath",kwnames,&obj0,&obj1)) SWIG_fail;
37537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37538 if (!SWIG_IsOK(res1)) {
37539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_CollapsePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37540 }
37541 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37542 {
37543 arg2 = wxString_in_helper(obj1);
37544 if (arg2 == NULL) SWIG_fail;
37545 temp2 = true;
37546 }
37547 {
37548 PyThreadState* __tstate = wxPyBeginAllowThreads();
37549 result = (bool)(arg1)->CollapsePath((wxString const &)*arg2);
37550 wxPyEndAllowThreads(__tstate);
37551 if (PyErr_Occurred()) SWIG_fail;
37552 }
37553 {
37554 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37555 }
37556 {
37557 if (temp2)
37558 delete arg2;
37559 }
37560 return resultobj;
37561fail:
37562 {
37563 if (temp2)
37564 delete arg2;
37565 }
37566 return NULL;
37567}
37568
37569
0085ce49
RD
37570SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37571 PyObject *resultobj = 0;
37572 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37573 wxString result;
37574 void *argp1 = 0 ;
37575 int res1 = 0 ;
37576 PyObject *swig_obj[1] ;
37577
37578 if (!args) SWIG_fail;
37579 swig_obj[0] = args;
37580 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37581 if (!SWIG_IsOK(res1)) {
37582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37583 }
37584 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37585 {
37586 PyThreadState* __tstate = wxPyBeginAllowThreads();
37587 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
37588 wxPyEndAllowThreads(__tstate);
37589 if (PyErr_Occurred()) SWIG_fail;
37590 }
37591 {
37592#if wxUSE_UNICODE
37593 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37594#else
37595 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37596#endif
37597 }
37598 return resultobj;
37599fail:
37600 return NULL;
37601}
37602
37603
37604SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37605 PyObject *resultobj = 0;
37606 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37607 wxString *arg2 = 0 ;
37608 void *argp1 = 0 ;
37609 int res1 = 0 ;
37610 bool temp2 = false ;
37611 PyObject * obj0 = 0 ;
37612 PyObject * obj1 = 0 ;
37613 char * kwnames[] = {
37614 (char *) "self",(char *) "path", NULL
37615 };
37616
37617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) SWIG_fail;
37618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37619 if (!SWIG_IsOK(res1)) {
37620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37621 }
37622 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37623 {
37624 arg2 = wxString_in_helper(obj1);
37625 if (arg2 == NULL) SWIG_fail;
37626 temp2 = true;
37627 }
37628 {
37629 PyThreadState* __tstate = wxPyBeginAllowThreads();
37630 (arg1)->SetDefaultPath((wxString const &)*arg2);
37631 wxPyEndAllowThreads(__tstate);
37632 if (PyErr_Occurred()) SWIG_fail;
37633 }
37634 resultobj = SWIG_Py_Void();
37635 {
37636 if (temp2)
37637 delete arg2;
37638 }
37639 return resultobj;
37640fail:
37641 {
37642 if (temp2)
37643 delete arg2;
37644 }
37645 return NULL;
d14a1e28
RD
37646}
37647
37648
0085ce49
RD
37649SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37650 PyObject *resultobj = 0;
37651 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37652 wxString result;
37653 void *argp1 = 0 ;
37654 int res1 = 0 ;
37655 PyObject *swig_obj[1] ;
37656
37657 if (!args) SWIG_fail;
37658 swig_obj[0] = args;
37659 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37660 if (!SWIG_IsOK(res1)) {
37661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37662 }
37663 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37664 {
37665 PyThreadState* __tstate = wxPyBeginAllowThreads();
37666 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
37667 wxPyEndAllowThreads(__tstate);
37668 if (PyErr_Occurred()) SWIG_fail;
37669 }
37670 {
37671#if wxUSE_UNICODE
37672 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37673#else
37674 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37675#endif
37676 }
37677 return resultobj;
37678fail:
37679 return NULL;
d14a1e28
RD
37680}
37681
37682
0085ce49
RD
37683SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37684 PyObject *resultobj = 0;
37685 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37686 wxString result;
37687 void *argp1 = 0 ;
37688 int res1 = 0 ;
37689 PyObject *swig_obj[1] ;
37690
37691 if (!args) SWIG_fail;
37692 swig_obj[0] = args;
37693 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37694 if (!SWIG_IsOK(res1)) {
37695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37696 }
37697 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37698 {
37699 PyThreadState* __tstate = wxPyBeginAllowThreads();
37700 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
37701 wxPyEndAllowThreads(__tstate);
37702 if (PyErr_Occurred()) SWIG_fail;
37703 }
37704 {
37705#if wxUSE_UNICODE
37706 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37707#else
37708 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37709#endif
37710 }
37711 return resultobj;
37712fail:
37713 return NULL;
37714}
37715
37716
37717SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37718 PyObject *resultobj = 0;
37719 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37720 wxString *arg2 = 0 ;
37721 void *argp1 = 0 ;
37722 int res1 = 0 ;
37723 bool temp2 = false ;
37724 PyObject * obj0 = 0 ;
37725 PyObject * obj1 = 0 ;
37726 char * kwnames[] = {
37727 (char *) "self",(char *) "path", NULL
37728 };
37729
37730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
37731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37732 if (!SWIG_IsOK(res1)) {
37733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37734 }
37735 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37736 {
37737 arg2 = wxString_in_helper(obj1);
37738 if (arg2 == NULL) SWIG_fail;
37739 temp2 = true;
37740 }
37741 {
37742 PyThreadState* __tstate = wxPyBeginAllowThreads();
37743 (arg1)->SetPath((wxString const &)*arg2);
37744 wxPyEndAllowThreads(__tstate);
37745 if (PyErr_Occurred()) SWIG_fail;
37746 }
37747 resultobj = SWIG_Py_Void();
37748 {
37749 if (temp2)
37750 delete arg2;
37751 }
37752 return resultobj;
37753fail:
37754 {
37755 if (temp2)
37756 delete arg2;
37757 }
37758 return NULL;
37759}
37760
37761
37762SWIGINTERN PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37763 PyObject *resultobj = 0;
37764 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37765 bool arg2 ;
37766 void *argp1 = 0 ;
37767 int res1 = 0 ;
37768 bool val2 ;
37769 int ecode2 = 0 ;
37770 PyObject * obj0 = 0 ;
37771 PyObject * obj1 = 0 ;
37772 char * kwnames[] = {
37773 (char *) "self",(char *) "show", NULL
37774 };
37775
37776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) SWIG_fail;
37777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37778 if (!SWIG_IsOK(res1)) {
37779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37780 }
37781 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37782 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37783 if (!SWIG_IsOK(ecode2)) {
37784 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "2"" of type '" "bool""'");
37785 }
37786 arg2 = static_cast< bool >(val2);
37787 {
37788 PyThreadState* __tstate = wxPyBeginAllowThreads();
37789 (arg1)->ShowHidden(arg2);
37790 wxPyEndAllowThreads(__tstate);
37791 if (PyErr_Occurred()) SWIG_fail;
37792 }
37793 resultobj = SWIG_Py_Void();
37794 return resultobj;
37795fail:
37796 return NULL;
d14a1e28
RD
37797}
37798
37799
0085ce49
RD
37800SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37801 PyObject *resultobj = 0;
37802 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37803 bool result;
37804 void *argp1 = 0 ;
37805 int res1 = 0 ;
37806 PyObject *swig_obj[1] ;
37807
37808 if (!args) SWIG_fail;
37809 swig_obj[0] = args;
37810 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37811 if (!SWIG_IsOK(res1)) {
37812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37813 }
37814 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37815 {
37816 PyThreadState* __tstate = wxPyBeginAllowThreads();
37817 result = (bool)(arg1)->GetShowHidden();
37818 wxPyEndAllowThreads(__tstate);
37819 if (PyErr_Occurred()) SWIG_fail;
37820 }
37821 {
37822 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37823 }
37824 return resultobj;
37825fail:
37826 return NULL;
d14a1e28
RD
37827}
37828
37829
0085ce49
RD
37830SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37831 PyObject *resultobj = 0;
37832 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37833 wxString result;
37834 void *argp1 = 0 ;
37835 int res1 = 0 ;
37836 PyObject *swig_obj[1] ;
37837
37838 if (!args) SWIG_fail;
37839 swig_obj[0] = args;
37840 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37841 if (!SWIG_IsOK(res1)) {
37842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37843 }
37844 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37845 {
37846 PyThreadState* __tstate = wxPyBeginAllowThreads();
37847 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
37848 wxPyEndAllowThreads(__tstate);
37849 if (PyErr_Occurred()) SWIG_fail;
37850 }
37851 {
37852#if wxUSE_UNICODE
37853 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37854#else
37855 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37856#endif
37857 }
37858 return resultobj;
37859fail:
37860 return NULL;
37861}
37862
37863
37864SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37865 PyObject *resultobj = 0;
37866 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37867 wxString *arg2 = 0 ;
37868 void *argp1 = 0 ;
37869 int res1 = 0 ;
37870 bool temp2 = false ;
37871 PyObject * obj0 = 0 ;
37872 PyObject * obj1 = 0 ;
37873 char * kwnames[] = {
37874 (char *) "self",(char *) "filter", NULL
37875 };
37876
37877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) SWIG_fail;
37878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37879 if (!SWIG_IsOK(res1)) {
37880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37881 }
37882 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37883 {
37884 arg2 = wxString_in_helper(obj1);
37885 if (arg2 == NULL) SWIG_fail;
37886 temp2 = true;
37887 }
37888 {
37889 PyThreadState* __tstate = wxPyBeginAllowThreads();
37890 (arg1)->SetFilter((wxString const &)*arg2);
37891 wxPyEndAllowThreads(__tstate);
37892 if (PyErr_Occurred()) SWIG_fail;
37893 }
37894 resultobj = SWIG_Py_Void();
37895 {
37896 if (temp2)
37897 delete arg2;
37898 }
37899 return resultobj;
37900fail:
37901 {
37902 if (temp2)
37903 delete arg2;
37904 }
37905 return NULL;
d14a1e28
RD
37906}
37907
37908
0085ce49
RD
37909SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37910 PyObject *resultobj = 0;
37911 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37912 int result;
37913 void *argp1 = 0 ;
37914 int res1 = 0 ;
37915 PyObject *swig_obj[1] ;
37916
37917 if (!args) SWIG_fail;
37918 swig_obj[0] = args;
37919 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37920 if (!SWIG_IsOK(res1)) {
37921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37922 }
37923 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37924 {
37925 PyThreadState* __tstate = wxPyBeginAllowThreads();
37926 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
37927 wxPyEndAllowThreads(__tstate);
37928 if (PyErr_Occurred()) SWIG_fail;
37929 }
37930 resultobj = SWIG_From_int(static_cast< int >(result));
37931 return resultobj;
37932fail:
37933 return NULL;
37934}
37935
37936
37937SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37938 PyObject *resultobj = 0;
37939 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37940 int arg2 ;
37941 void *argp1 = 0 ;
37942 int res1 = 0 ;
37943 int val2 ;
37944 int ecode2 = 0 ;
37945 PyObject * obj0 = 0 ;
37946 PyObject * obj1 = 0 ;
37947 char * kwnames[] = {
37948 (char *) "self",(char *) "n", NULL
37949 };
37950
37951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail;
37952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37953 if (!SWIG_IsOK(res1)) {
37954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37955 }
37956 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37957 ecode2 = SWIG_AsVal_int(obj1, &val2);
37958 if (!SWIG_IsOK(ecode2)) {
37959 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "2"" of type '" "int""'");
37960 }
37961 arg2 = static_cast< int >(val2);
37962 {
37963 PyThreadState* __tstate = wxPyBeginAllowThreads();
37964 (arg1)->SetFilterIndex(arg2);
37965 wxPyEndAllowThreads(__tstate);
37966 if (PyErr_Occurred()) SWIG_fail;
37967 }
37968 resultobj = SWIG_Py_Void();
37969 return resultobj;
37970fail:
37971 return NULL;
d14a1e28
RD
37972}
37973
37974
0085ce49
RD
37975SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37976 PyObject *resultobj = 0;
37977 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37978 wxTreeItemId result;
37979 void *argp1 = 0 ;
37980 int res1 = 0 ;
37981 PyObject *swig_obj[1] ;
37982
37983 if (!args) SWIG_fail;
37984 swig_obj[0] = args;
37985 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37986 if (!SWIG_IsOK(res1)) {
37987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetRootId" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37988 }
37989 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37990 {
37991 PyThreadState* __tstate = wxPyBeginAllowThreads();
37992 result = (arg1)->GetRootId();
37993 wxPyEndAllowThreads(__tstate);
37994 if (PyErr_Occurred()) SWIG_fail;
37995 }
37996 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37997 return resultobj;
37998fail:
37999 return NULL;
d14a1e28
RD
38000}
38001
38002
0085ce49
RD
38003SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38004 PyObject *resultobj = 0;
38005 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38006 wxPyTreeCtrl *result = 0 ;
38007 void *argp1 = 0 ;
38008 int res1 = 0 ;
38009 PyObject *swig_obj[1] ;
38010
38011 if (!args) SWIG_fail;
38012 swig_obj[0] = args;
38013 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38014 if (!SWIG_IsOK(res1)) {
38015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetTreeCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38016 }
38017 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38018 {
38019 PyThreadState* __tstate = wxPyBeginAllowThreads();
38020 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
38021 wxPyEndAllowThreads(__tstate);
38022 if (PyErr_Occurred()) SWIG_fail;
38023 }
38024 {
38025 resultobj = wxPyMake_wxObject(result, 0);
38026 }
38027 return resultobj;
38028fail:
38029 return NULL;
d14a1e28
RD
38030}
38031
38032
0085ce49
RD
38033SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38034 PyObject *resultobj = 0;
38035 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38036 wxDirFilterListCtrl *result = 0 ;
38037 void *argp1 = 0 ;
38038 int res1 = 0 ;
38039 PyObject *swig_obj[1] ;
38040
38041 if (!args) SWIG_fail;
38042 swig_obj[0] = args;
38043 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38044 if (!SWIG_IsOK(res1)) {
38045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38046 }
38047 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38048 {
38049 PyThreadState* __tstate = wxPyBeginAllowThreads();
38050 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
38051 wxPyEndAllowThreads(__tstate);
38052 if (PyErr_Occurred()) SWIG_fail;
38053 }
38054 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38055 return resultobj;
38056fail:
38057 return NULL;
38058}
38059
38060
38061SWIGINTERN PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38062 PyObject *resultobj = 0;
38063 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38064 wxTreeItemId arg2 ;
38065 wxString *arg3 = 0 ;
38066 bool *arg4 = 0 ;
38067 wxTreeItemId result;
38068 void *argp1 = 0 ;
38069 int res1 = 0 ;
38070 void *argp2 ;
38071 int res2 = 0 ;
38072 bool temp3 = false ;
38073 bool temp4 ;
38074 int res4 = SWIG_TMPOBJ ;
38075 PyObject * obj0 = 0 ;
38076 PyObject * obj1 = 0 ;
38077 PyObject * obj2 = 0 ;
38078 char * kwnames[] = {
38079 (char *) "self",(char *) "parentId",(char *) "path", NULL
38080 };
38081
38082 arg4 = &temp4;
38083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38085 if (!SWIG_IsOK(res1)) {
38086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38087 }
38088 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38089 {
38090 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
38091 if (!SWIG_IsOK(res2)) {
38092 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38093 }
38094 if (!argp2) {
38095 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38096 } else {
38097 wxTreeItemId * temp = reinterpret_cast< wxTreeItemId * >(argp2);
38098 arg2 = *temp;
38099 if (SWIG_IsNewObj(res2)) delete temp;
d14a1e28 38100 }
0085ce49
RD
38101 }
38102 {
38103 arg3 = wxString_in_helper(obj2);
38104 if (arg3 == NULL) SWIG_fail;
38105 temp3 = true;
38106 }
38107 {
38108 PyThreadState* __tstate = wxPyBeginAllowThreads();
38109 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
38110 wxPyEndAllowThreads(__tstate);
38111 if (PyErr_Occurred()) SWIG_fail;
38112 }
38113 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38114 if (SWIG_IsTmpObj(res4)) {
38115 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4)));
38116 } else {
38117 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38118 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags));
38119 }
38120 {
38121 if (temp3)
38122 delete arg3;
38123 }
38124 return resultobj;
38125fail:
38126 {
38127 if (temp3)
38128 delete arg3;
38129 }
38130 return NULL;
d14a1e28
RD
38131}
38132
38133
0085ce49
RD
38134SWIGINTERN PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38135 PyObject *resultobj = 0;
38136 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38137 void *argp1 = 0 ;
38138 int res1 = 0 ;
38139 PyObject *swig_obj[1] ;
38140
38141 if (!args) SWIG_fail;
38142 swig_obj[0] = args;
38143 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38144 if (!SWIG_IsOK(res1)) {
38145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_DoResize" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38146 }
38147 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38148 {
38149 PyThreadState* __tstate = wxPyBeginAllowThreads();
38150 (arg1)->DoResize();
38151 wxPyEndAllowThreads(__tstate);
38152 if (PyErr_Occurred()) SWIG_fail;
38153 }
38154 resultobj = SWIG_Py_Void();
38155 return resultobj;
38156fail:
38157 return NULL;
d14a1e28
RD
38158}
38159
38160
0085ce49
RD
38161SWIGINTERN PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38162 PyObject *resultobj = 0;
38163 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38164 void *argp1 = 0 ;
38165 int res1 = 0 ;
38166 PyObject *swig_obj[1] ;
38167
38168 if (!args) SWIG_fail;
38169 swig_obj[0] = args;
38170 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38171 if (!SWIG_IsOK(res1)) {
38172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ReCreateTree" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38173 }
38174 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38175 {
38176 PyThreadState* __tstate = wxPyBeginAllowThreads();
38177 (arg1)->ReCreateTree();
38178 wxPyEndAllowThreads(__tstate);
38179 if (PyErr_Occurred()) SWIG_fail;
38180 }
38181 resultobj = SWIG_Py_Void();
38182 return resultobj;
38183fail:
38184 return NULL;
38185}
38186
38187
38188SWIGINTERN PyObject *GenericDirCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38189 PyObject *obj;
38190 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38191 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDirCtrl, SWIG_NewClientData(obj));
38192 return SWIG_Py_Void();
38193}
38194
38195SWIGINTERN PyObject *GenericDirCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38196 return SWIG_Python_InitShadowInstance(args);
38197}
38198
38199SWIGINTERN PyObject *_wrap_new_DirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38200 PyObject *resultobj = 0;
38201 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38202 int arg2 = (int) (int)-1 ;
38203 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38204 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38205 wxSize const &arg4_defvalue = wxDefaultSize ;
38206 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38207 long arg5 = (long) 0 ;
38208 wxDirFilterListCtrl *result = 0 ;
38209 void *argp1 = 0 ;
38210 int res1 = 0 ;
38211 int val2 ;
38212 int ecode2 = 0 ;
38213 wxPoint temp3 ;
38214 wxSize temp4 ;
38215 long val5 ;
38216 int ecode5 = 0 ;
38217 PyObject * obj0 = 0 ;
38218 PyObject * obj1 = 0 ;
38219 PyObject * obj2 = 0 ;
38220 PyObject * obj3 = 0 ;
38221 PyObject * obj4 = 0 ;
38222 char * kwnames[] = {
38223 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38224 };
38225
38226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38228 if (!SWIG_IsOK(res1)) {
38229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38230 }
38231 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38232 if (obj1) {
38233 ecode2 = SWIG_AsVal_int(obj1, &val2);
38234 if (!SWIG_IsOK(ecode2)) {
38235 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirFilterListCtrl" "', expected argument " "2"" of type '" "int""'");
38236 }
38237 arg2 = static_cast< int >(val2);
38238 }
38239 if (obj2) {
d14a1e28 38240 {
0085ce49
RD
38241 arg3 = &temp3;
38242 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 38243 }
0085ce49
RD
38244 }
38245 if (obj3) {
d14a1e28 38246 {
0085ce49
RD
38247 arg4 = &temp4;
38248 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 38249 }
0085ce49
RD
38250 }
38251 if (obj4) {
38252 ecode5 = SWIG_AsVal_long(obj4, &val5);
38253 if (!SWIG_IsOK(ecode5)) {
38254 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DirFilterListCtrl" "', expected argument " "5"" of type '" "long""'");
38255 }
38256 arg5 = static_cast< long >(val5);
38257 }
38258 {
38259 if (!wxPyCheckForApp()) SWIG_fail;
38260 PyThreadState* __tstate = wxPyBeginAllowThreads();
38261 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
38262 wxPyEndAllowThreads(__tstate);
38263 if (PyErr_Occurred()) SWIG_fail;
38264 }
38265 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_NEW | 0 );
38266 return resultobj;
38267fail:
38268 return NULL;
d14a1e28
RD
38269}
38270
38271
0085ce49
RD
38272SWIGINTERN PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38273 PyObject *resultobj = 0;
38274 wxDirFilterListCtrl *result = 0 ;
38275
38276 if (!SWIG_Python_UnpackTuple(args,"new_PreDirFilterListCtrl",0,0,0)) SWIG_fail;
38277 {
38278 if (!wxPyCheckForApp()) SWIG_fail;
38279 PyThreadState* __tstate = wxPyBeginAllowThreads();
38280 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
38281 wxPyEndAllowThreads(__tstate);
38282 if (PyErr_Occurred()) SWIG_fail;
38283 }
38284 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_OWN | 0 );
38285 return resultobj;
38286fail:
38287 return NULL;
38288}
38289
38290
38291SWIGINTERN PyObject *_wrap_DirFilterListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38292 PyObject *resultobj = 0;
38293 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38294 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
38295 int arg3 = (int) (int)-1 ;
38296 wxPoint const &arg4_defvalue = wxDefaultPosition ;
38297 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
38298 wxSize const &arg5_defvalue = wxDefaultSize ;
38299 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
38300 long arg6 = (long) 0 ;
38301 bool result;
38302 void *argp1 = 0 ;
38303 int res1 = 0 ;
38304 void *argp2 = 0 ;
38305 int res2 = 0 ;
38306 int val3 ;
38307 int ecode3 = 0 ;
38308 wxPoint temp4 ;
38309 wxSize temp5 ;
38310 long val6 ;
38311 int ecode6 = 0 ;
38312 PyObject * obj0 = 0 ;
38313 PyObject * obj1 = 0 ;
38314 PyObject * obj2 = 0 ;
38315 PyObject * obj3 = 0 ;
38316 PyObject * obj4 = 0 ;
38317 PyObject * obj5 = 0 ;
38318 char * kwnames[] = {
38319 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38320 };
38321
38322 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38323 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38324 if (!SWIG_IsOK(res1)) {
38325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_Create" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38326 }
38327 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38328 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38329 if (!SWIG_IsOK(res2)) {
38330 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirFilterListCtrl_Create" "', expected argument " "2"" of type '" "wxGenericDirCtrl *""'");
38331 }
38332 arg2 = reinterpret_cast< wxGenericDirCtrl * >(argp2);
38333 if (obj2) {
38334 ecode3 = SWIG_AsVal_int(obj2, &val3);
38335 if (!SWIG_IsOK(ecode3)) {
38336 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
38337 }
38338 arg3 = static_cast< int >(val3);
38339 }
38340 if (obj3) {
093d3ff1 38341 {
0085ce49
RD
38342 arg4 = &temp4;
38343 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 38344 }
0085ce49
RD
38345 }
38346 if (obj4) {
d14a1e28 38347 {
0085ce49
RD
38348 arg5 = &temp5;
38349 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 38350 }
0085ce49
RD
38351 }
38352 if (obj5) {
38353 ecode6 = SWIG_AsVal_long(obj5, &val6);
38354 if (!SWIG_IsOK(ecode6)) {
38355 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DirFilterListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
38356 }
38357 arg6 = static_cast< long >(val6);
38358 }
38359 {
38360 PyThreadState* __tstate = wxPyBeginAllowThreads();
38361 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
38362 wxPyEndAllowThreads(__tstate);
38363 if (PyErr_Occurred()) SWIG_fail;
38364 }
38365 {
38366 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38367 }
38368 return resultobj;
38369fail:
38370 return NULL;
38371}
38372
38373
38374SWIGINTERN PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38375 PyObject *resultobj = 0;
38376 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38377 wxString *arg2 = 0 ;
38378 int arg3 ;
38379 void *argp1 = 0 ;
38380 int res1 = 0 ;
38381 bool temp2 = false ;
38382 int val3 ;
38383 int ecode3 = 0 ;
38384 PyObject * obj0 = 0 ;
38385 PyObject * obj1 = 0 ;
38386 PyObject * obj2 = 0 ;
38387 char * kwnames[] = {
38388 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
38389 };
38390
38391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38393 if (!SWIG_IsOK(res1)) {
38394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38395 }
38396 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38397 {
38398 arg2 = wxString_in_helper(obj1);
38399 if (arg2 == NULL) SWIG_fail;
38400 temp2 = true;
38401 }
38402 ecode3 = SWIG_AsVal_int(obj2, &val3);
38403 if (!SWIG_IsOK(ecode3)) {
38404 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "3"" of type '" "int""'");
38405 }
38406 arg3 = static_cast< int >(val3);
38407 {
38408 PyThreadState* __tstate = wxPyBeginAllowThreads();
38409 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
38410 wxPyEndAllowThreads(__tstate);
38411 if (PyErr_Occurred()) SWIG_fail;
38412 }
38413 resultobj = SWIG_Py_Void();
38414 {
38415 if (temp2)
38416 delete arg2;
38417 }
38418 return resultobj;
38419fail:
38420 {
38421 if (temp2)
38422 delete arg2;
38423 }
38424 return NULL;
38425}
38426
38427
38428SWIGINTERN PyObject *DirFilterListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38429 PyObject *obj;
38430 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38431 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirFilterListCtrl, SWIG_NewClientData(obj));
38432 return SWIG_Py_Void();
38433}
38434
38435SWIGINTERN PyObject *DirFilterListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38436 return SWIG_Python_InitShadowInstance(args);
38437}
38438
38439SWIGINTERN PyObject *_wrap_new_PyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38440 PyObject *resultobj = 0;
38441 wxWindow *arg1 = (wxWindow *) 0 ;
38442 int arg2 = (int) (int)-1 ;
38443 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38444 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38445 wxSize const &arg4_defvalue = wxDefaultSize ;
38446 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38447 long arg5 = (long) 0 ;
38448 wxValidator const &arg6_defvalue = wxDefaultValidator ;
38449 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
38450 wxString const &arg7_defvalue = wxPyControlNameStr ;
38451 wxString *arg7 = (wxString *) &arg7_defvalue ;
38452 wxPyControl *result = 0 ;
38453 void *argp1 = 0 ;
38454 int res1 = 0 ;
38455 int val2 ;
38456 int ecode2 = 0 ;
38457 wxPoint temp3 ;
38458 wxSize temp4 ;
38459 long val5 ;
38460 int ecode5 = 0 ;
38461 void *argp6 = 0 ;
38462 int res6 = 0 ;
38463 bool temp7 = false ;
38464 PyObject * obj0 = 0 ;
38465 PyObject * obj1 = 0 ;
38466 PyObject * obj2 = 0 ;
38467 PyObject * obj3 = 0 ;
38468 PyObject * obj4 = 0 ;
38469 PyObject * obj5 = 0 ;
38470 PyObject * obj6 = 0 ;
38471 char * kwnames[] = {
38472 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
38473 };
38474
38475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
38476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38477 if (!SWIG_IsOK(res1)) {
38478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyControl" "', expected argument " "1"" of type '" "wxWindow *""'");
38479 }
38480 arg1 = reinterpret_cast< wxWindow * >(argp1);
38481 if (obj1) {
38482 ecode2 = SWIG_AsVal_int(obj1, &val2);
38483 if (!SWIG_IsOK(ecode2)) {
38484 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyControl" "', expected argument " "2"" of type '" "int""'");
38485 }
38486 arg2 = static_cast< int >(val2);
38487 }
38488 if (obj2) {
093d3ff1 38489 {
0085ce49
RD
38490 arg3 = &temp3;
38491 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 38492 }
0085ce49
RD
38493 }
38494 if (obj3) {
d14a1e28 38495 {
0085ce49
RD
38496 arg4 = &temp4;
38497 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 38498 }
0085ce49
RD
38499 }
38500 if (obj4) {
38501 ecode5 = SWIG_AsVal_long(obj4, &val5);
38502 if (!SWIG_IsOK(ecode5)) {
38503 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyControl" "', expected argument " "5"" of type '" "long""'");
38504 }
38505 arg5 = static_cast< long >(val5);
38506 }
38507 if (obj5) {
38508 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
38509 if (!SWIG_IsOK(res6)) {
38510 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
38511 }
38512 if (!argp6) {
38513 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d14a1e28 38514 }
0085ce49
RD
38515 arg6 = reinterpret_cast< wxValidator * >(argp6);
38516 }
38517 if (obj6) {
d14a1e28 38518 {
0085ce49
RD
38519 arg7 = wxString_in_helper(obj6);
38520 if (arg7 == NULL) SWIG_fail;
38521 temp7 = true;
d14a1e28 38522 }
0085ce49
RD
38523 }
38524 {
38525 if (!wxPyCheckForApp()) SWIG_fail;
38526 PyThreadState* __tstate = wxPyBeginAllowThreads();
38527 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
38528 wxPyEndAllowThreads(__tstate);
38529 if (PyErr_Occurred()) SWIG_fail;
38530 }
38531 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_NEW | 0 );
38532 {
38533 if (temp7)
38534 delete arg7;
38535 }
38536 return resultobj;
38537fail:
38538 {
38539 if (temp7)
38540 delete arg7;
38541 }
38542 return NULL;
d14a1e28
RD
38543}
38544
38545
0085ce49
RD
38546SWIGINTERN PyObject *_wrap_new_PrePyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38547 PyObject *resultobj = 0;
38548 wxPyControl *result = 0 ;
38549
38550 if (!SWIG_Python_UnpackTuple(args,"new_PrePyControl",0,0,0)) SWIG_fail;
38551 {
38552 if (!wxPyCheckForApp()) SWIG_fail;
38553 PyThreadState* __tstate = wxPyBeginAllowThreads();
38554 result = (wxPyControl *)new wxPyControl();
38555 wxPyEndAllowThreads(__tstate);
38556 if (PyErr_Occurred()) SWIG_fail;
38557 }
38558 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_OWN | 0 );
38559 return resultobj;
38560fail:
38561 return NULL;
38562}
38563
38564
38565SWIGINTERN PyObject *_wrap_PyControl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38566 PyObject *resultobj = 0;
38567 wxPyControl *arg1 = (wxPyControl *) 0 ;
38568 PyObject *arg2 = (PyObject *) 0 ;
38569 PyObject *arg3 = (PyObject *) 0 ;
38570 void *argp1 = 0 ;
38571 int res1 = 0 ;
38572 PyObject * obj0 = 0 ;
38573 PyObject * obj1 = 0 ;
38574 PyObject * obj2 = 0 ;
38575 char * kwnames[] = {
38576 (char *) "self",(char *) "self",(char *) "_class", NULL
38577 };
38578
38579 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38580 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38581 if (!SWIG_IsOK(res1)) {
38582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyControl *""'");
38583 }
38584 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38585 arg2 = obj1;
38586 arg3 = obj2;
38587 {
38588 PyThreadState* __tstate = wxPyBeginAllowThreads();
38589 (arg1)->_setCallbackInfo(arg2,arg3);
38590 wxPyEndAllowThreads(__tstate);
38591 if (PyErr_Occurred()) SWIG_fail;
38592 }
38593 resultobj = SWIG_Py_Void();
38594 return resultobj;
38595fail:
38596 return NULL;
38597}
38598
38599
38600SWIGINTERN PyObject *_wrap_PyControl_SetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38601 PyObject *resultobj = 0;
38602 wxPyControl *arg1 = (wxPyControl *) 0 ;
38603 wxSize *arg2 = 0 ;
38604 void *argp1 = 0 ;
38605 int res1 = 0 ;
38606 wxSize temp2 ;
38607 PyObject * obj0 = 0 ;
38608 PyObject * obj1 = 0 ;
38609 char * kwnames[] = {
38610 (char *) "self",(char *) "size", NULL
38611 };
38612
38613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
38614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38615 if (!SWIG_IsOK(res1)) {
38616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_SetBestSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38617 }
38618 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38619 {
38620 arg2 = &temp2;
38621 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
38622 }
38623 {
38624 PyThreadState* __tstate = wxPyBeginAllowThreads();
38625 (arg1)->SetBestSize((wxSize const &)*arg2);
38626 wxPyEndAllowThreads(__tstate);
38627 if (PyErr_Occurred()) SWIG_fail;
38628 }
38629 resultobj = SWIG_Py_Void();
38630 return resultobj;
38631fail:
38632 return NULL;
38633}
38634
38635
38636SWIGINTERN PyObject *_wrap_PyControl_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38637 PyObject *resultobj = 0;
38638 wxPyControl *arg1 = (wxPyControl *) 0 ;
38639 wxDC *arg2 = (wxDC *) 0 ;
38640 bool result;
38641 void *argp1 = 0 ;
38642 int res1 = 0 ;
38643 void *argp2 = 0 ;
38644 int res2 = 0 ;
38645 PyObject * obj0 = 0 ;
38646 PyObject * obj1 = 0 ;
38647 char * kwnames[] = {
38648 (char *) "self",(char *) "dc", NULL
38649 };
38650
38651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38653 if (!SWIG_IsOK(res1)) {
38654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyControl *""'");
38655 }
38656 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38657 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
38658 if (!SWIG_IsOK(res2)) {
38659 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyControl_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'");
38660 }
38661 arg2 = reinterpret_cast< wxDC * >(argp2);
38662 {
38663 PyThreadState* __tstate = wxPyBeginAllowThreads();
38664 result = (bool)(arg1)->DoEraseBackground(arg2);
38665 wxPyEndAllowThreads(__tstate);
38666 if (PyErr_Occurred()) SWIG_fail;
38667 }
38668 {
38669 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38670 }
38671 return resultobj;
38672fail:
38673 return NULL;
38674}
38675
38676
38677SWIGINTERN PyObject *_wrap_PyControl_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38678 PyObject *resultobj = 0;
38679 wxPyControl *arg1 = (wxPyControl *) 0 ;
38680 int arg2 ;
38681 int arg3 ;
38682 int arg4 ;
38683 int arg5 ;
38684 void *argp1 = 0 ;
38685 int res1 = 0 ;
38686 int val2 ;
38687 int ecode2 = 0 ;
38688 int val3 ;
38689 int ecode3 = 0 ;
38690 int val4 ;
38691 int ecode4 = 0 ;
38692 int val5 ;
38693 int ecode5 = 0 ;
38694 PyObject * obj0 = 0 ;
38695 PyObject * obj1 = 0 ;
38696 PyObject * obj2 = 0 ;
38697 PyObject * obj3 = 0 ;
38698 PyObject * obj4 = 0 ;
38699 char * kwnames[] = {
38700 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
38701 };
38702
38703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38705 if (!SWIG_IsOK(res1)) {
38706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyControl *""'");
38707 }
38708 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38709 ecode2 = SWIG_AsVal_int(obj1, &val2);
38710 if (!SWIG_IsOK(ecode2)) {
38711 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoMoveWindow" "', expected argument " "2"" of type '" "int""'");
38712 }
38713 arg2 = static_cast< int >(val2);
38714 ecode3 = SWIG_AsVal_int(obj2, &val3);
38715 if (!SWIG_IsOK(ecode3)) {
38716 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoMoveWindow" "', expected argument " "3"" of type '" "int""'");
38717 }
38718 arg3 = static_cast< int >(val3);
38719 ecode4 = SWIG_AsVal_int(obj3, &val4);
38720 if (!SWIG_IsOK(ecode4)) {
38721 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoMoveWindow" "', expected argument " "4"" of type '" "int""'");
38722 }
38723 arg4 = static_cast< int >(val4);
38724 ecode5 = SWIG_AsVal_int(obj4, &val5);
38725 if (!SWIG_IsOK(ecode5)) {
38726 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoMoveWindow" "', expected argument " "5"" of type '" "int""'");
38727 }
38728 arg5 = static_cast< int >(val5);
38729 {
38730 PyThreadState* __tstate = wxPyBeginAllowThreads();
38731 (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5);
38732 wxPyEndAllowThreads(__tstate);
38733 if (PyErr_Occurred()) SWIG_fail;
38734 }
38735 resultobj = SWIG_Py_Void();
38736 return resultobj;
38737fail:
38738 return NULL;
38739}
38740
38741
38742SWIGINTERN PyObject *_wrap_PyControl_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38743 PyObject *resultobj = 0;
38744 wxPyControl *arg1 = (wxPyControl *) 0 ;
38745 int arg2 ;
38746 int arg3 ;
38747 int arg4 ;
38748 int arg5 ;
38749 int arg6 = (int) wxSIZE_AUTO ;
38750 void *argp1 = 0 ;
38751 int res1 = 0 ;
38752 int val2 ;
38753 int ecode2 = 0 ;
38754 int val3 ;
38755 int ecode3 = 0 ;
38756 int val4 ;
38757 int ecode4 = 0 ;
38758 int val5 ;
38759 int ecode5 = 0 ;
38760 int val6 ;
38761 int ecode6 = 0 ;
38762 PyObject * obj0 = 0 ;
38763 PyObject * obj1 = 0 ;
38764 PyObject * obj2 = 0 ;
38765 PyObject * obj3 = 0 ;
38766 PyObject * obj4 = 0 ;
38767 PyObject * obj5 = 0 ;
38768 char * kwnames[] = {
38769 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
38770 };
38771
38772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38774 if (!SWIG_IsOK(res1)) {
38775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38776 }
38777 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38778 ecode2 = SWIG_AsVal_int(obj1, &val2);
38779 if (!SWIG_IsOK(ecode2)) {
38780 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetSize" "', expected argument " "2"" of type '" "int""'");
38781 }
38782 arg2 = static_cast< int >(val2);
38783 ecode3 = SWIG_AsVal_int(obj2, &val3);
38784 if (!SWIG_IsOK(ecode3)) {
38785 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetSize" "', expected argument " "3"" of type '" "int""'");
38786 }
38787 arg3 = static_cast< int >(val3);
38788 ecode4 = SWIG_AsVal_int(obj3, &val4);
38789 if (!SWIG_IsOK(ecode4)) {
38790 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoSetSize" "', expected argument " "4"" of type '" "int""'");
38791 }
38792 arg4 = static_cast< int >(val4);
38793 ecode5 = SWIG_AsVal_int(obj4, &val5);
38794 if (!SWIG_IsOK(ecode5)) {
38795 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoSetSize" "', expected argument " "5"" of type '" "int""'");
38796 }
38797 arg5 = static_cast< int >(val5);
38798 if (obj5) {
38799 ecode6 = SWIG_AsVal_int(obj5, &val6);
38800 if (!SWIG_IsOK(ecode6)) {
38801 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyControl_DoSetSize" "', expected argument " "6"" of type '" "int""'");
38802 }
38803 arg6 = static_cast< int >(val6);
38804 }
38805 {
38806 PyThreadState* __tstate = wxPyBeginAllowThreads();
38807 (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6);
38808 wxPyEndAllowThreads(__tstate);
38809 if (PyErr_Occurred()) SWIG_fail;
38810 }
38811 resultobj = SWIG_Py_Void();
38812 return resultobj;
38813fail:
38814 return NULL;
38815}
38816
38817
38818SWIGINTERN PyObject *_wrap_PyControl_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38819 PyObject *resultobj = 0;
38820 wxPyControl *arg1 = (wxPyControl *) 0 ;
38821 int arg2 ;
38822 int arg3 ;
38823 void *argp1 = 0 ;
38824 int res1 = 0 ;
38825 int val2 ;
38826 int ecode2 = 0 ;
38827 int val3 ;
38828 int ecode3 = 0 ;
38829 PyObject * obj0 = 0 ;
38830 PyObject * obj1 = 0 ;
38831 PyObject * obj2 = 0 ;
38832 char * kwnames[] = {
38833 (char *) "self",(char *) "width",(char *) "height", NULL
38834 };
38835
38836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38838 if (!SWIG_IsOK(res1)) {
38839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38840 }
38841 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38842 ecode2 = SWIG_AsVal_int(obj1, &val2);
38843 if (!SWIG_IsOK(ecode2)) {
38844 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetClientSize" "', expected argument " "2"" of type '" "int""'");
38845 }
38846 arg2 = static_cast< int >(val2);
38847 ecode3 = SWIG_AsVal_int(obj2, &val3);
38848 if (!SWIG_IsOK(ecode3)) {
38849 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetClientSize" "', expected argument " "3"" of type '" "int""'");
38850 }
38851 arg3 = static_cast< int >(val3);
38852 {
38853 PyThreadState* __tstate = wxPyBeginAllowThreads();
38854 (arg1)->DoSetClientSize(arg2,arg3);
38855 wxPyEndAllowThreads(__tstate);
38856 if (PyErr_Occurred()) SWIG_fail;
38857 }
38858 resultobj = SWIG_Py_Void();
38859 return resultobj;
38860fail:
38861 return NULL;
38862}
38863
38864
38865SWIGINTERN PyObject *_wrap_PyControl_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38866 PyObject *resultobj = 0;
38867 wxPyControl *arg1 = (wxPyControl *) 0 ;
38868 int arg2 ;
38869 int arg3 ;
38870 void *argp1 = 0 ;
38871 int res1 = 0 ;
38872 int val2 ;
38873 int ecode2 = 0 ;
38874 int val3 ;
38875 int ecode3 = 0 ;
38876 PyObject * obj0 = 0 ;
38877 PyObject * obj1 = 0 ;
38878 PyObject * obj2 = 0 ;
38879 char * kwnames[] = {
38880 (char *) "self",(char *) "x",(char *) "y", NULL
38881 };
38882
38883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38885 if (!SWIG_IsOK(res1)) {
38886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38887 }
38888 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38889 ecode2 = SWIG_AsVal_int(obj1, &val2);
38890 if (!SWIG_IsOK(ecode2)) {
38891 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'");
38892 }
38893 arg2 = static_cast< int >(val2);
38894 ecode3 = SWIG_AsVal_int(obj2, &val3);
38895 if (!SWIG_IsOK(ecode3)) {
38896 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'");
38897 }
38898 arg3 = static_cast< int >(val3);
38899 {
38900 PyThreadState* __tstate = wxPyBeginAllowThreads();
38901 (arg1)->DoSetVirtualSize(arg2,arg3);
38902 wxPyEndAllowThreads(__tstate);
38903 if (PyErr_Occurred()) SWIG_fail;
38904 }
38905 resultobj = SWIG_Py_Void();
38906 return resultobj;
38907fail:
38908 return NULL;
38909}
38910
38911
38912SWIGINTERN PyObject *_wrap_PyControl_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38913 PyObject *resultobj = 0;
38914 wxPyControl *arg1 = (wxPyControl *) 0 ;
38915 int *arg2 = (int *) 0 ;
38916 int *arg3 = (int *) 0 ;
38917 void *argp1 = 0 ;
38918 int res1 = 0 ;
38919 int temp2 ;
38920 int res2 = SWIG_TMPOBJ ;
38921 int temp3 ;
38922 int res3 = SWIG_TMPOBJ ;
38923 PyObject *swig_obj[1] ;
38924
38925 arg2 = &temp2;
38926 arg3 = &temp3;
38927 if (!args) SWIG_fail;
38928 swig_obj[0] = args;
38929 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38930 if (!SWIG_IsOK(res1)) {
38931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38932 }
38933 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38934 {
38935 PyThreadState* __tstate = wxPyBeginAllowThreads();
38936 ((wxPyControl const *)arg1)->DoGetSize(arg2,arg3);
38937 wxPyEndAllowThreads(__tstate);
38938 if (PyErr_Occurred()) SWIG_fail;
38939 }
38940 resultobj = SWIG_Py_Void();
38941 if (SWIG_IsTmpObj(res2)) {
38942 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38943 } else {
38944 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38945 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38946 }
38947 if (SWIG_IsTmpObj(res3)) {
38948 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38949 } else {
38950 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38951 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38952 }
38953 return resultobj;
38954fail:
38955 return NULL;
38956}
38957
38958
38959SWIGINTERN PyObject *_wrap_PyControl_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38960 PyObject *resultobj = 0;
38961 wxPyControl *arg1 = (wxPyControl *) 0 ;
38962 int *arg2 = (int *) 0 ;
38963 int *arg3 = (int *) 0 ;
38964 void *argp1 = 0 ;
38965 int res1 = 0 ;
38966 int temp2 ;
38967 int res2 = SWIG_TMPOBJ ;
38968 int temp3 ;
38969 int res3 = SWIG_TMPOBJ ;
38970 PyObject *swig_obj[1] ;
38971
38972 arg2 = &temp2;
38973 arg3 = &temp3;
38974 if (!args) SWIG_fail;
38975 swig_obj[0] = args;
38976 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38977 if (!SWIG_IsOK(res1)) {
38978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38979 }
38980 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38981 {
38982 PyThreadState* __tstate = wxPyBeginAllowThreads();
38983 ((wxPyControl const *)arg1)->DoGetClientSize(arg2,arg3);
38984 wxPyEndAllowThreads(__tstate);
38985 if (PyErr_Occurred()) SWIG_fail;
38986 }
38987 resultobj = SWIG_Py_Void();
38988 if (SWIG_IsTmpObj(res2)) {
38989 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38990 } else {
38991 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38992 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38993 }
38994 if (SWIG_IsTmpObj(res3)) {
38995 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38996 } else {
38997 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38998 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38999 }
39000 return resultobj;
39001fail:
39002 return NULL;
39003}
39004
39005
39006SWIGINTERN PyObject *_wrap_PyControl_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39007 PyObject *resultobj = 0;
39008 wxPyControl *arg1 = (wxPyControl *) 0 ;
39009 int *arg2 = (int *) 0 ;
39010 int *arg3 = (int *) 0 ;
39011 void *argp1 = 0 ;
39012 int res1 = 0 ;
39013 int temp2 ;
39014 int res2 = SWIG_TMPOBJ ;
39015 int temp3 ;
39016 int res3 = SWIG_TMPOBJ ;
39017 PyObject *swig_obj[1] ;
39018
39019 arg2 = &temp2;
39020 arg3 = &temp3;
39021 if (!args) SWIG_fail;
39022 swig_obj[0] = args;
39023 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39024 if (!SWIG_IsOK(res1)) {
39025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetPosition" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39026 }
39027 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39028 {
39029 PyThreadState* __tstate = wxPyBeginAllowThreads();
39030 ((wxPyControl const *)arg1)->DoGetPosition(arg2,arg3);
39031 wxPyEndAllowThreads(__tstate);
39032 if (PyErr_Occurred()) SWIG_fail;
39033 }
39034 resultobj = SWIG_Py_Void();
39035 if (SWIG_IsTmpObj(res2)) {
39036 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39037 } else {
39038 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39039 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39040 }
39041 if (SWIG_IsTmpObj(res3)) {
39042 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39043 } else {
39044 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39045 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39046 }
39047 return resultobj;
39048fail:
39049 return NULL;
d14a1e28
RD
39050}
39051
39052
0085ce49
RD
39053SWIGINTERN PyObject *_wrap_PyControl_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39054 PyObject *resultobj = 0;
39055 wxPyControl *arg1 = (wxPyControl *) 0 ;
39056 wxSize result;
39057 void *argp1 = 0 ;
39058 int res1 = 0 ;
39059 PyObject *swig_obj[1] ;
39060
39061 if (!args) SWIG_fail;
39062 swig_obj[0] = args;
39063 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39064 if (!SWIG_IsOK(res1)) {
39065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39066 }
39067 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39068 {
39069 PyThreadState* __tstate = wxPyBeginAllowThreads();
39070 result = ((wxPyControl const *)arg1)->DoGetVirtualSize();
39071 wxPyEndAllowThreads(__tstate);
39072 if (PyErr_Occurred()) SWIG_fail;
39073 }
39074 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39075 return resultobj;
39076fail:
39077 return NULL;
d14a1e28
RD
39078}
39079
39080
0085ce49
RD
39081SWIGINTERN PyObject *_wrap_PyControl_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39082 PyObject *resultobj = 0;
39083 wxPyControl *arg1 = (wxPyControl *) 0 ;
39084 wxSize result;
39085 void *argp1 = 0 ;
39086 int res1 = 0 ;
39087 PyObject *swig_obj[1] ;
39088
39089 if (!args) SWIG_fail;
39090 swig_obj[0] = args;
39091 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39092 if (!SWIG_IsOK(res1)) {
39093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39094 }
39095 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39096 {
39097 PyThreadState* __tstate = wxPyBeginAllowThreads();
39098 result = ((wxPyControl const *)arg1)->DoGetBestSize();
39099 wxPyEndAllowThreads(__tstate);
39100 if (PyErr_Occurred()) SWIG_fail;
39101 }
39102 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39103 return resultobj;
39104fail:
39105 return NULL;
d14a1e28
RD
39106}
39107
39108
0085ce49
RD
39109SWIGINTERN PyObject *_wrap_PyControl_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39110 PyObject *resultobj = 0;
39111 wxPyControl *arg1 = (wxPyControl *) 0 ;
39112 SwigValueWrapper<wxVisualAttributes > result;
39113 void *argp1 = 0 ;
39114 int res1 = 0 ;
39115 PyObject *swig_obj[1] ;
39116
39117 if (!args) SWIG_fail;
39118 swig_obj[0] = args;
39119 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39120 if (!SWIG_IsOK(res1)) {
39121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyControl *""'");
39122 }
39123 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39124 {
39125 PyThreadState* __tstate = wxPyBeginAllowThreads();
39126 result = (arg1)->GetDefaultAttributes();
39127 wxPyEndAllowThreads(__tstate);
39128 if (PyErr_Occurred()) SWIG_fail;
39129 }
39130 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
39131 return resultobj;
39132fail:
39133 return NULL;
d14a1e28
RD
39134}
39135
39136
0085ce49
RD
39137SWIGINTERN PyObject *_wrap_PyControl_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39138 PyObject *resultobj = 0;
39139 wxPyControl *arg1 = (wxPyControl *) 0 ;
39140 void *argp1 = 0 ;
39141 int res1 = 0 ;
39142 PyObject *swig_obj[1] ;
39143
39144 if (!args) SWIG_fail;
39145 swig_obj[0] = args;
39146 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39147 if (!SWIG_IsOK(res1)) {
39148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyControl *""'");
39149 }
39150 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39151 {
39152 PyThreadState* __tstate = wxPyBeginAllowThreads();
39153 (arg1)->OnInternalIdle();
39154 wxPyEndAllowThreads(__tstate);
39155 if (PyErr_Occurred()) SWIG_fail;
39156 }
39157 resultobj = SWIG_Py_Void();
39158 return resultobj;
39159fail:
39160 return NULL;
39161}
39162
39163
39164SWIGINTERN PyObject *PyControl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39165 PyObject *obj;
39166 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39167 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyControl, SWIG_NewClientData(obj));
39168 return SWIG_Py_Void();
39169}
39170
39171SWIGINTERN PyObject *PyControl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39172 return SWIG_Python_InitShadowInstance(args);
39173}
39174
39175SWIGINTERN PyObject *_wrap_new_HelpEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39176 PyObject *resultobj = 0;
39177 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
39178 int arg2 = (int) 0 ;
39179 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39180 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
704eda0c 39181 wxHelpEvent::Origin arg4 = (wxHelpEvent::Origin) wxHelpEvent::Origin_Unknown ;
0085ce49
RD
39182 wxHelpEvent *result = 0 ;
39183 int val1 ;
39184 int ecode1 = 0 ;
39185 int val2 ;
39186 int ecode2 = 0 ;
39187 wxPoint temp3 ;
704eda0c
RD
39188 int val4 ;
39189 int ecode4 = 0 ;
0085ce49
RD
39190 PyObject * obj0 = 0 ;
39191 PyObject * obj1 = 0 ;
39192 PyObject * obj2 = 0 ;
704eda0c 39193 PyObject * obj3 = 0 ;
0085ce49 39194 char * kwnames[] = {
704eda0c 39195 (char *) "type",(char *) "winid",(char *) "pt",(char *) "origin", NULL
0085ce49
RD
39196 };
39197
704eda0c 39198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
0085ce49
RD
39199 if (obj0) {
39200 ecode1 = SWIG_AsVal_int(obj0, &val1);
39201 if (!SWIG_IsOK(ecode1)) {
39202 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HelpEvent" "', expected argument " "1"" of type '" "wxEventType""'");
39203 }
39204 arg1 = static_cast< wxEventType >(val1);
39205 }
39206 if (obj1) {
39207 ecode2 = SWIG_AsVal_int(obj1, &val2);
39208 if (!SWIG_IsOK(ecode2)) {
39209 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HelpEvent" "', expected argument " "2"" of type '" "int""'");
39210 }
39211 arg2 = static_cast< int >(val2);
39212 }
39213 if (obj2) {
d14a1e28 39214 {
0085ce49
RD
39215 arg3 = &temp3;
39216 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 39217 }
0085ce49 39218 }
704eda0c
RD
39219 if (obj3) {
39220 ecode4 = SWIG_AsVal_int(obj3, &val4);
39221 if (!SWIG_IsOK(ecode4)) {
39222 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_HelpEvent" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
39223 }
39224 arg4 = static_cast< wxHelpEvent::Origin >(val4);
39225 }
0085ce49
RD
39226 {
39227 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 39228 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3,arg4);
0085ce49
RD
39229 wxPyEndAllowThreads(__tstate);
39230 if (PyErr_Occurred()) SWIG_fail;
39231 }
39232 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_NEW | 0 );
39233 return resultobj;
39234fail:
39235 return NULL;
d14a1e28
RD
39236}
39237
39238
0085ce49
RD
39239SWIGINTERN PyObject *_wrap_HelpEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39240 PyObject *resultobj = 0;
39241 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39242 wxPoint result;
39243 void *argp1 = 0 ;
39244 int res1 = 0 ;
39245 PyObject *swig_obj[1] ;
39246
39247 if (!args) SWIG_fail;
39248 swig_obj[0] = args;
39249 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39250 if (!SWIG_IsOK(res1)) {
39251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetPosition" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39252 }
39253 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39254 {
39255 PyThreadState* __tstate = wxPyBeginAllowThreads();
39256 result = ((wxHelpEvent const *)arg1)->GetPosition();
39257 wxPyEndAllowThreads(__tstate);
39258 if (PyErr_Occurred()) SWIG_fail;
39259 }
39260 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
39261 return resultobj;
39262fail:
39263 return NULL;
39264}
39265
39266
39267SWIGINTERN PyObject *_wrap_HelpEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39268 PyObject *resultobj = 0;
39269 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39270 wxPoint *arg2 = 0 ;
39271 void *argp1 = 0 ;
39272 int res1 = 0 ;
39273 wxPoint temp2 ;
39274 PyObject * obj0 = 0 ;
39275 PyObject * obj1 = 0 ;
39276 char * kwnames[] = {
39277 (char *) "self",(char *) "pos", NULL
39278 };
39279
39280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
39281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39282 if (!SWIG_IsOK(res1)) {
39283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetPosition" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39284 }
39285 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39286 {
39287 arg2 = &temp2;
39288 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39289 }
39290 {
39291 PyThreadState* __tstate = wxPyBeginAllowThreads();
39292 (arg1)->SetPosition((wxPoint const &)*arg2);
39293 wxPyEndAllowThreads(__tstate);
39294 if (PyErr_Occurred()) SWIG_fail;
39295 }
39296 resultobj = SWIG_Py_Void();
39297 return resultobj;
39298fail:
39299 return NULL;
d14a1e28
RD
39300}
39301
39302
0085ce49
RD
39303SWIGINTERN PyObject *_wrap_HelpEvent_GetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39304 PyObject *resultobj = 0;
39305 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39306 wxString *result = 0 ;
39307 void *argp1 = 0 ;
39308 int res1 = 0 ;
39309 PyObject *swig_obj[1] ;
39310
39311 if (!args) SWIG_fail;
39312 swig_obj[0] = args;
39313 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39314 if (!SWIG_IsOK(res1)) {
39315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetLink" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39316 }
39317 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39318 {
39319 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 39320 {
0085ce49
RD
39321 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
39322 result = (wxString *) &_result_ref;
093d3ff1 39323 }
0085ce49
RD
39324 wxPyEndAllowThreads(__tstate);
39325 if (PyErr_Occurred()) SWIG_fail;
39326 }
39327 {
39328#if wxUSE_UNICODE
39329 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39330#else
39331 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39332#endif
39333 }
39334 return resultobj;
39335fail:
39336 return NULL;
39337}
39338
39339
39340SWIGINTERN PyObject *_wrap_HelpEvent_SetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39341 PyObject *resultobj = 0;
39342 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39343 wxString *arg2 = 0 ;
39344 void *argp1 = 0 ;
39345 int res1 = 0 ;
39346 bool temp2 = false ;
39347 PyObject * obj0 = 0 ;
39348 PyObject * obj1 = 0 ;
39349 char * kwnames[] = {
39350 (char *) "self",(char *) "link", NULL
39351 };
39352
39353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) SWIG_fail;
39354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39355 if (!SWIG_IsOK(res1)) {
39356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetLink" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39357 }
39358 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39359 {
39360 arg2 = wxString_in_helper(obj1);
39361 if (arg2 == NULL) SWIG_fail;
39362 temp2 = true;
39363 }
39364 {
39365 PyThreadState* __tstate = wxPyBeginAllowThreads();
39366 (arg1)->SetLink((wxString const &)*arg2);
39367 wxPyEndAllowThreads(__tstate);
39368 if (PyErr_Occurred()) SWIG_fail;
39369 }
39370 resultobj = SWIG_Py_Void();
39371 {
39372 if (temp2)
39373 delete arg2;
39374 }
39375 return resultobj;
39376fail:
39377 {
39378 if (temp2)
39379 delete arg2;
39380 }
39381 return NULL;
d14a1e28
RD
39382}
39383
39384
0085ce49
RD
39385SWIGINTERN PyObject *_wrap_HelpEvent_GetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39386 PyObject *resultobj = 0;
39387 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39388 wxString *result = 0 ;
39389 void *argp1 = 0 ;
39390 int res1 = 0 ;
39391 PyObject *swig_obj[1] ;
39392
39393 if (!args) SWIG_fail;
39394 swig_obj[0] = args;
39395 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39396 if (!SWIG_IsOK(res1)) {
39397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetTarget" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39398 }
39399 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39400 {
39401 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 39402 {
0085ce49
RD
39403 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
39404 result = (wxString *) &_result_ref;
d14a1e28 39405 }
0085ce49
RD
39406 wxPyEndAllowThreads(__tstate);
39407 if (PyErr_Occurred()) SWIG_fail;
39408 }
39409 {
39410#if wxUSE_UNICODE
39411 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39412#else
39413 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39414#endif
39415 }
39416 return resultobj;
39417fail:
39418 return NULL;
39419}
39420
39421
39422SWIGINTERN PyObject *_wrap_HelpEvent_SetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39423 PyObject *resultobj = 0;
39424 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39425 wxString *arg2 = 0 ;
39426 void *argp1 = 0 ;
39427 int res1 = 0 ;
39428 bool temp2 = false ;
39429 PyObject * obj0 = 0 ;
39430 PyObject * obj1 = 0 ;
39431 char * kwnames[] = {
39432 (char *) "self",(char *) "target", NULL
39433 };
39434
39435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) SWIG_fail;
39436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39437 if (!SWIG_IsOK(res1)) {
39438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetTarget" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39439 }
39440 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39441 {
39442 arg2 = wxString_in_helper(obj1);
39443 if (arg2 == NULL) SWIG_fail;
39444 temp2 = true;
39445 }
39446 {
39447 PyThreadState* __tstate = wxPyBeginAllowThreads();
39448 (arg1)->SetTarget((wxString const &)*arg2);
39449 wxPyEndAllowThreads(__tstate);
39450 if (PyErr_Occurred()) SWIG_fail;
39451 }
39452 resultobj = SWIG_Py_Void();
39453 {
39454 if (temp2)
39455 delete arg2;
39456 }
39457 return resultobj;
39458fail:
39459 {
39460 if (temp2)
39461 delete arg2;
39462 }
39463 return NULL;
d14a1e28
RD
39464}
39465
39466
704eda0c
RD
39467SWIGINTERN PyObject *_wrap_HelpEvent_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39468 PyObject *resultobj = 0;
39469 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39470 wxHelpEvent::Origin result;
39471 void *argp1 = 0 ;
39472 int res1 = 0 ;
39473 PyObject *swig_obj[1] ;
39474
39475 if (!args) SWIG_fail;
39476 swig_obj[0] = args;
39477 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39478 if (!SWIG_IsOK(res1)) {
39479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39480 }
39481 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39482 {
39483 PyThreadState* __tstate = wxPyBeginAllowThreads();
39484 result = (wxHelpEvent::Origin)((wxHelpEvent const *)arg1)->GetOrigin();
39485 wxPyEndAllowThreads(__tstate);
39486 if (PyErr_Occurred()) SWIG_fail;
39487 }
39488 resultobj = SWIG_From_int(static_cast< int >(result));
39489 return resultobj;
39490fail:
39491 return NULL;
39492}
39493
39494
39495SWIGINTERN PyObject *_wrap_HelpEvent_SetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39496 PyObject *resultobj = 0;
39497 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39498 wxHelpEvent::Origin arg2 ;
39499 void *argp1 = 0 ;
39500 int res1 = 0 ;
39501 int val2 ;
39502 int ecode2 = 0 ;
39503 PyObject * obj0 = 0 ;
39504 PyObject * obj1 = 0 ;
39505 char * kwnames[] = {
39506 (char *) "self",(char *) "origin", NULL
39507 };
39508
39509 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetOrigin",kwnames,&obj0,&obj1)) SWIG_fail;
39510 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39511 if (!SWIG_IsOK(res1)) {
39512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39513 }
39514 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39515 ecode2 = SWIG_AsVal_int(obj1, &val2);
39516 if (!SWIG_IsOK(ecode2)) {
39517 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpEvent_SetOrigin" "', expected argument " "2"" of type '" "wxHelpEvent::Origin""'");
39518 }
39519 arg2 = static_cast< wxHelpEvent::Origin >(val2);
39520 {
39521 PyThreadState* __tstate = wxPyBeginAllowThreads();
39522 (arg1)->SetOrigin(arg2);
39523 wxPyEndAllowThreads(__tstate);
39524 if (PyErr_Occurred()) SWIG_fail;
39525 }
39526 resultobj = SWIG_Py_Void();
39527 return resultobj;
39528fail:
39529 return NULL;
39530}
39531
39532
0085ce49
RD
39533SWIGINTERN PyObject *HelpEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39534 PyObject *obj;
39535 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39536 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpEvent, SWIG_NewClientData(obj));
39537 return SWIG_Py_Void();
d14a1e28
RD
39538}
39539
0085ce49
RD
39540SWIGINTERN PyObject *HelpEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39541 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
39542}
39543
0085ce49
RD
39544SWIGINTERN PyObject *_wrap_new_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39545 PyObject *resultobj = 0;
39546 wxWindow *arg1 = (wxWindow *) NULL ;
39547 bool arg2 = (bool) true ;
39548 wxContextHelp *result = 0 ;
39549 void *argp1 = 0 ;
39550 int res1 = 0 ;
39551 bool val2 ;
39552 int ecode2 = 0 ;
39553 PyObject * obj0 = 0 ;
39554 PyObject * obj1 = 0 ;
39555 char * kwnames[] = {
39556 (char *) "window",(char *) "doNow", NULL
39557 };
39558
39559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39560 if (obj0) {
39561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39562 if (!SWIG_IsOK(res1)) {
39563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelp" "', expected argument " "1"" of type '" "wxWindow *""'");
d14a1e28 39564 }
0085ce49
RD
39565 arg1 = reinterpret_cast< wxWindow * >(argp1);
39566 }
39567 if (obj1) {
39568 ecode2 = SWIG_AsVal_bool(obj1, &val2);
39569 if (!SWIG_IsOK(ecode2)) {
39570 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelp" "', expected argument " "2"" of type '" "bool""'");
39571 }
39572 arg2 = static_cast< bool >(val2);
39573 }
39574 {
39575 if (!wxPyCheckForApp()) SWIG_fail;
39576 PyThreadState* __tstate = wxPyBeginAllowThreads();
39577 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
39578 wxPyEndAllowThreads(__tstate);
39579 if (PyErr_Occurred()) SWIG_fail;
39580 }
39581 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelp, SWIG_POINTER_NEW | 0 );
39582 return resultobj;
39583fail:
39584 return NULL;
d14a1e28
RD
39585}
39586
39587
0085ce49
RD
39588SWIGINTERN PyObject *_wrap_delete_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39589 PyObject *resultobj = 0;
39590 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39591 void *argp1 = 0 ;
39592 int res1 = 0 ;
39593 PyObject *swig_obj[1] ;
39594
39595 if (!args) SWIG_fail;
39596 swig_obj[0] = args;
39597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, SWIG_POINTER_DISOWN | 0 );
39598 if (!SWIG_IsOK(res1)) {
39599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39600 }
39601 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39602 {
39603 PyThreadState* __tstate = wxPyBeginAllowThreads();
39604 delete arg1;
3a04f143 39605
0085ce49
RD
39606 wxPyEndAllowThreads(__tstate);
39607 if (PyErr_Occurred()) SWIG_fail;
39608 }
39609 resultobj = SWIG_Py_Void();
39610 return resultobj;
39611fail:
39612 return NULL;
39613}
39614
39615
39616SWIGINTERN PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39617 PyObject *resultobj = 0;
39618 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39619 wxWindow *arg2 = (wxWindow *) NULL ;
39620 bool result;
39621 void *argp1 = 0 ;
39622 int res1 = 0 ;
39623 void *argp2 = 0 ;
39624 int res2 = 0 ;
39625 PyObject * obj0 = 0 ;
39626 PyObject * obj1 = 0 ;
39627 char * kwnames[] = {
39628 (char *) "self",(char *) "window", NULL
39629 };
39630
39631 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39632 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39633 if (!SWIG_IsOK(res1)) {
39634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39635 }
39636 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39637 if (obj1) {
39638 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39639 if (!SWIG_IsOK(res2)) {
39640 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
3a04f143 39641 }
0085ce49
RD
39642 arg2 = reinterpret_cast< wxWindow * >(argp2);
39643 }
39644 {
39645 PyThreadState* __tstate = wxPyBeginAllowThreads();
39646 result = (bool)(arg1)->BeginContextHelp(arg2);
39647 wxPyEndAllowThreads(__tstate);
39648 if (PyErr_Occurred()) SWIG_fail;
39649 }
39650 {
39651 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39652 }
39653 return resultobj;
39654fail:
39655 return NULL;
3a04f143
RD
39656}
39657
39658
0085ce49
RD
39659SWIGINTERN PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39660 PyObject *resultobj = 0;
39661 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39662 bool result;
39663 void *argp1 = 0 ;
39664 int res1 = 0 ;
39665 PyObject *swig_obj[1] ;
39666
39667 if (!args) SWIG_fail;
39668 swig_obj[0] = args;
39669 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39670 if (!SWIG_IsOK(res1)) {
39671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_EndContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39672 }
39673 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39674 {
39675 PyThreadState* __tstate = wxPyBeginAllowThreads();
39676 result = (bool)(arg1)->EndContextHelp();
39677 wxPyEndAllowThreads(__tstate);
39678 if (PyErr_Occurred()) SWIG_fail;
39679 }
39680 {
39681 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39682 }
39683 return resultobj;
39684fail:
39685 return NULL;
39686}
39687
39688
39689SWIGINTERN PyObject *ContextHelp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39690 PyObject *obj;
39691 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39692 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelp, SWIG_NewClientData(obj));
39693 return SWIG_Py_Void();
39694}
39695
39696SWIGINTERN PyObject *ContextHelp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39697 return SWIG_Python_InitShadowInstance(args);
39698}
39699
39700SWIGINTERN PyObject *_wrap_new_ContextHelpButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39701 PyObject *resultobj = 0;
39702 wxWindow *arg1 = (wxWindow *) 0 ;
39703 int arg2 = (int) wxID_CONTEXT_HELP ;
39704 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39705 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39706 wxSize const &arg4_defvalue = wxDefaultSize ;
39707 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
39708 long arg5 = (long) wxBU_AUTODRAW ;
39709 wxContextHelpButton *result = 0 ;
39710 void *argp1 = 0 ;
39711 int res1 = 0 ;
39712 int val2 ;
39713 int ecode2 = 0 ;
39714 wxPoint temp3 ;
39715 wxSize temp4 ;
39716 long val5 ;
39717 int ecode5 = 0 ;
39718 PyObject * obj0 = 0 ;
39719 PyObject * obj1 = 0 ;
39720 PyObject * obj2 = 0 ;
39721 PyObject * obj3 = 0 ;
39722 PyObject * obj4 = 0 ;
39723 char * kwnames[] = {
39724 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
39725 };
39726
39727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39729 if (!SWIG_IsOK(res1)) {
39730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelpButton" "', expected argument " "1"" of type '" "wxWindow *""'");
39731 }
39732 arg1 = reinterpret_cast< wxWindow * >(argp1);
39733 if (obj1) {
39734 ecode2 = SWIG_AsVal_int(obj1, &val2);
39735 if (!SWIG_IsOK(ecode2)) {
39736 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelpButton" "', expected argument " "2"" of type '" "int""'");
39737 }
39738 arg2 = static_cast< int >(val2);
39739 }
39740 if (obj2) {
d14a1e28 39741 {
0085ce49
RD
39742 arg3 = &temp3;
39743 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 39744 }
0085ce49
RD
39745 }
39746 if (obj3) {
4f89f6a3 39747 {
0085ce49
RD
39748 arg4 = &temp4;
39749 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 39750 }
0085ce49
RD
39751 }
39752 if (obj4) {
39753 ecode5 = SWIG_AsVal_long(obj4, &val5);
39754 if (!SWIG_IsOK(ecode5)) {
39755 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ContextHelpButton" "', expected argument " "5"" of type '" "long""'");
39756 }
39757 arg5 = static_cast< long >(val5);
39758 }
39759 {
39760 if (!wxPyCheckForApp()) SWIG_fail;
39761 PyThreadState* __tstate = wxPyBeginAllowThreads();
39762 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
39763 wxPyEndAllowThreads(__tstate);
39764 if (PyErr_Occurred()) SWIG_fail;
39765 }
39766 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelpButton, SWIG_POINTER_NEW | 0 );
39767 return resultobj;
39768fail:
39769 return NULL;
d14a1e28
RD
39770}
39771
39772
0085ce49
RD
39773SWIGINTERN PyObject *ContextHelpButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39774 PyObject *obj;
39775 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39776 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelpButton, SWIG_NewClientData(obj));
39777 return SWIG_Py_Void();
d14a1e28
RD
39778}
39779
0085ce49
RD
39780SWIGINTERN PyObject *ContextHelpButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39781 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
39782}
39783
f52cbe90
RD
39784SWIGINTERN PyObject *_wrap_delete_HelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39785 PyObject *resultobj = 0;
39786 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39787 void *argp1 = 0 ;
39788 int res1 = 0 ;
39789 PyObject *swig_obj[1] ;
39790
39791 if (!args) SWIG_fail;
39792 swig_obj[0] = args;
39793 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
39794 if (!SWIG_IsOK(res1)) {
39795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HelpProvider" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39796 }
39797 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39798 {
39799 PyThreadState* __tstate = wxPyBeginAllowThreads();
39800 delete arg1;
39801
39802 wxPyEndAllowThreads(__tstate);
39803 if (PyErr_Occurred()) SWIG_fail;
39804 }
39805 resultobj = SWIG_Py_Void();
39806 return resultobj;
39807fail:
39808 return NULL;
39809}
39810
39811
0085ce49
RD
39812SWIGINTERN PyObject *_wrap_HelpProvider_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39813 PyObject *resultobj = 0;
39814 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39815 wxHelpProvider *result = 0 ;
39816 int res1 = 0 ;
39817 PyObject * obj0 = 0 ;
39818 char * kwnames[] = {
39819 (char *) "helpProvider", NULL
39820 };
39821
39822 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) SWIG_fail;
39823 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
39824 if (!SWIG_IsOK(res1)) {
39825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Set" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39826 }
39827 {
39828 PyThreadState* __tstate = wxPyBeginAllowThreads();
39829 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
39830 wxPyEndAllowThreads(__tstate);
39831 if (PyErr_Occurred()) SWIG_fail;
39832 }
39833 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_OWN | 0 );
39834 return resultobj;
39835fail:
39836 return NULL;
d14a1e28
RD
39837}
39838
39839
0085ce49
RD
39840SWIGINTERN PyObject *_wrap_HelpProvider_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39841 PyObject *resultobj = 0;
39842 wxHelpProvider *result = 0 ;
39843
39844 if (!SWIG_Python_UnpackTuple(args,"HelpProvider_Get",0,0,0)) SWIG_fail;
39845 {
39846 PyThreadState* __tstate = wxPyBeginAllowThreads();
39847 result = (wxHelpProvider *)wxHelpProvider::Get();
39848 wxPyEndAllowThreads(__tstate);
39849 if (PyErr_Occurred()) SWIG_fail;
39850 }
39851 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39852 return resultobj;
39853fail:
39854 return NULL;
39855}
39856
39857
39858SWIGINTERN PyObject *_wrap_HelpProvider_GetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39859 PyObject *resultobj = 0;
39860 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39861 wxWindow *arg2 = (wxWindow *) 0 ;
39862 wxString result;
39863 void *argp1 = 0 ;
39864 int res1 = 0 ;
39865 void *argp2 = 0 ;
39866 int res2 = 0 ;
39867 PyObject * obj0 = 0 ;
39868 PyObject * obj1 = 0 ;
39869 char * kwnames[] = {
39870 (char *) "self",(char *) "window", NULL
39871 };
39872
39873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39874 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39875 if (!SWIG_IsOK(res1)) {
39876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_GetHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39877 }
39878 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39879 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39880 if (!SWIG_IsOK(res2)) {
39881 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_GetHelp" "', expected argument " "2"" of type '" "wxWindow const *""'");
39882 }
39883 arg2 = reinterpret_cast< wxWindow * >(argp2);
39884 {
39885 PyThreadState* __tstate = wxPyBeginAllowThreads();
39886 result = (arg1)->GetHelp((wxWindow const *)arg2);
39887 wxPyEndAllowThreads(__tstate);
39888 if (PyErr_Occurred()) SWIG_fail;
39889 }
39890 {
39891#if wxUSE_UNICODE
39892 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
39893#else
39894 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
39895#endif
39896 }
39897 return resultobj;
39898fail:
39899 return NULL;
39900}
39901
39902
39903SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39904 PyObject *resultobj = 0;
39905 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39906 wxWindow *arg2 = (wxWindow *) 0 ;
39907 bool result;
39908 void *argp1 = 0 ;
39909 int res1 = 0 ;
39910 void *argp2 = 0 ;
39911 int res2 = 0 ;
39912 PyObject * obj0 = 0 ;
39913 PyObject * obj1 = 0 ;
39914 char * kwnames[] = {
39915 (char *) "self",(char *) "window", NULL
39916 };
39917
39918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39920 if (!SWIG_IsOK(res1)) {
39921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39922 }
39923 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39924 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39925 if (!SWIG_IsOK(res2)) {
39926 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39927 }
39928 arg2 = reinterpret_cast< wxWindow * >(argp2);
39929 {
39930 PyThreadState* __tstate = wxPyBeginAllowThreads();
39931 result = (bool)(arg1)->ShowHelp(arg2);
39932 wxPyEndAllowThreads(__tstate);
39933 if (PyErr_Occurred()) SWIG_fail;
39934 }
39935 {
39936 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39937 }
39938 return resultobj;
39939fail:
39940 return NULL;
39941}
39942
39943
b850e7f3
RD
39944SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelpAtPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39945 PyObject *resultobj = 0;
39946 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39947 wxWindowBase *arg2 = (wxWindowBase *) 0 ;
39948 wxPoint *arg3 = 0 ;
39949 wxHelpEvent::Origin arg4 ;
39950 bool result;
39951 void *argp1 = 0 ;
39952 int res1 = 0 ;
39953 void *argp2 = 0 ;
39954 int res2 = 0 ;
39955 wxPoint temp3 ;
39956 int val4 ;
39957 int ecode4 = 0 ;
39958 PyObject * obj0 = 0 ;
39959 PyObject * obj1 = 0 ;
39960 PyObject * obj2 = 0 ;
39961 PyObject * obj3 = 0 ;
39962 char * kwnames[] = {
39963 (char *) "self",(char *) "window",(char *) "pt",(char *) "origin", NULL
39964 };
39965
39966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:HelpProvider_ShowHelpAtPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
39967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39968 if (!SWIG_IsOK(res1)) {
39969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39970 }
39971 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39972 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindowBase, 0 | 0 );
39973 if (!SWIG_IsOK(res2)) {
39974 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "2"" of type '" "wxWindowBase *""'");
39975 }
39976 arg2 = reinterpret_cast< wxWindowBase * >(argp2);
39977 {
39978 arg3 = &temp3;
39979 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
39980 }
39981 ecode4 = SWIG_AsVal_int(obj3, &val4);
39982 if (!SWIG_IsOK(ecode4)) {
39983 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
39984 }
39985 arg4 = static_cast< wxHelpEvent::Origin >(val4);
39986 {
39987 PyThreadState* __tstate = wxPyBeginAllowThreads();
39988 result = (bool)(arg1)->ShowHelpAtPoint(arg2,(wxPoint const &)*arg3,arg4);
39989 wxPyEndAllowThreads(__tstate);
39990 if (PyErr_Occurred()) SWIG_fail;
39991 }
39992 {
39993 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39994 }
39995 return resultobj;
39996fail:
39997 return NULL;
39998}
39999
40000
0085ce49
RD
40001SWIGINTERN PyObject *_wrap_HelpProvider_AddHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40002 PyObject *resultobj = 0;
40003 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40004 wxWindow *arg2 = (wxWindow *) 0 ;
40005 wxString *arg3 = 0 ;
40006 void *argp1 = 0 ;
40007 int res1 = 0 ;
40008 void *argp2 = 0 ;
40009 int res2 = 0 ;
40010 bool temp3 = false ;
40011 PyObject * obj0 = 0 ;
40012 PyObject * obj1 = 0 ;
40013 PyObject * obj2 = 0 ;
40014 char * kwnames[] = {
40015 (char *) "self",(char *) "window",(char *) "text", NULL
40016 };
40017
40018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40020 if (!SWIG_IsOK(res1)) {
40021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40022 }
40023 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40024 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40025 if (!SWIG_IsOK(res2)) {
40026 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_AddHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40027 }
40028 arg2 = reinterpret_cast< wxWindow * >(argp2);
40029 {
40030 arg3 = wxString_in_helper(obj2);
40031 if (arg3 == NULL) SWIG_fail;
40032 temp3 = true;
40033 }
40034 {
40035 PyThreadState* __tstate = wxPyBeginAllowThreads();
40036 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40037 wxPyEndAllowThreads(__tstate);
40038 if (PyErr_Occurred()) SWIG_fail;
40039 }
40040 resultobj = SWIG_Py_Void();
40041 {
40042 if (temp3)
40043 delete arg3;
40044 }
40045 return resultobj;
40046fail:
40047 {
40048 if (temp3)
40049 delete arg3;
40050 }
40051 return NULL;
40052}
40053
40054
40055SWIGINTERN PyObject *_wrap_HelpProvider_AddHelpById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40056 PyObject *resultobj = 0;
40057 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40058 int arg2 ;
40059 wxString *arg3 = 0 ;
40060 void *argp1 = 0 ;
40061 int res1 = 0 ;
40062 int val2 ;
40063 int ecode2 = 0 ;
40064 bool temp3 = false ;
40065 PyObject * obj0 = 0 ;
40066 PyObject * obj1 = 0 ;
40067 PyObject * obj2 = 0 ;
40068 char * kwnames[] = {
40069 (char *) "self",(char *) "id",(char *) "text", NULL
40070 };
40071
40072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40073 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40074 if (!SWIG_IsOK(res1)) {
40075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelpById" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40076 }
40077 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40078 ecode2 = SWIG_AsVal_int(obj1, &val2);
40079 if (!SWIG_IsOK(ecode2)) {
40080 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpProvider_AddHelpById" "', expected argument " "2"" of type '" "int""'");
40081 }
40082 arg2 = static_cast< int >(val2);
40083 {
40084 arg3 = wxString_in_helper(obj2);
40085 if (arg3 == NULL) SWIG_fail;
40086 temp3 = true;
40087 }
40088 {
40089 PyThreadState* __tstate = wxPyBeginAllowThreads();
40090 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40091 wxPyEndAllowThreads(__tstate);
40092 if (PyErr_Occurred()) SWIG_fail;
40093 }
40094 resultobj = SWIG_Py_Void();
40095 {
40096 if (temp3)
40097 delete arg3;
40098 }
40099 return resultobj;
40100fail:
40101 {
40102 if (temp3)
40103 delete arg3;
40104 }
40105 return NULL;
40106}
40107
40108
40109SWIGINTERN PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40110 PyObject *resultobj = 0;
40111 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40112 wxWindow *arg2 = (wxWindow *) 0 ;
40113 void *argp1 = 0 ;
40114 int res1 = 0 ;
40115 void *argp2 = 0 ;
40116 int res2 = 0 ;
40117 PyObject * obj0 = 0 ;
40118 PyObject * obj1 = 0 ;
40119 char * kwnames[] = {
40120 (char *) "self",(char *) "window", NULL
40121 };
40122
40123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40125 if (!SWIG_IsOK(res1)) {
40126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40127 }
40128 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40129 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40130 if (!SWIG_IsOK(res2)) {
40131 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40132 }
40133 arg2 = reinterpret_cast< wxWindow * >(argp2);
40134 {
40135 PyThreadState* __tstate = wxPyBeginAllowThreads();
40136 (arg1)->RemoveHelp(arg2);
40137 wxPyEndAllowThreads(__tstate);
40138 if (PyErr_Occurred()) SWIG_fail;
40139 }
40140 resultobj = SWIG_Py_Void();
40141 return resultobj;
40142fail:
40143 return NULL;
d14a1e28
RD
40144}
40145
40146
0085ce49
RD
40147SWIGINTERN PyObject *_wrap_HelpProvider_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40148 PyObject *resultobj = 0;
40149 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40150 void *argp1 = 0 ;
40151 int res1 = 0 ;
40152 PyObject *swig_obj[1] ;
40153
40154 if (!args) SWIG_fail;
40155 swig_obj[0] = args;
40156 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40157 if (!SWIG_IsOK(res1)) {
40158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Destroy" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40159 }
40160 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40161 {
40162 PyThreadState* __tstate = wxPyBeginAllowThreads();
40163 wxHelpProvider_Destroy(arg1);
40164 wxPyEndAllowThreads(__tstate);
40165 if (PyErr_Occurred()) SWIG_fail;
40166 }
40167 resultobj = SWIG_Py_Void();
40168 return resultobj;
40169fail:
40170 return NULL;
22bfe96c
RD
40171}
40172
40173
0085ce49
RD
40174SWIGINTERN PyObject *HelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40175 PyObject *obj;
40176 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40177 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpProvider, SWIG_NewClientData(obj));
40178 return SWIG_Py_Void();
b2dc1044
RD
40179}
40180
0085ce49
RD
40181SWIGINTERN PyObject *_wrap_new_SimpleHelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40182 PyObject *resultobj = 0;
40183 wxSimpleHelpProvider *result = 0 ;
40184
40185 if (!SWIG_Python_UnpackTuple(args,"new_SimpleHelpProvider",0,0,0)) SWIG_fail;
40186 {
40187 PyThreadState* __tstate = wxPyBeginAllowThreads();
40188 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
40189 wxPyEndAllowThreads(__tstate);
40190 if (PyErr_Occurred()) SWIG_fail;
40191 }
40192 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSimpleHelpProvider, SWIG_POINTER_NEW | 0 );
40193 return resultobj;
40194fail:
40195 return NULL;
40196}
40197
40198
40199SWIGINTERN PyObject *SimpleHelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40200 PyObject *obj;
40201 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40202 SWIG_TypeNewClientData(SWIGTYPE_p_wxSimpleHelpProvider, SWIG_NewClientData(obj));
40203 return SWIG_Py_Void();
40204}
40205
40206SWIGINTERN PyObject *SimpleHelpProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40207 return SWIG_Python_InitShadowInstance(args);
40208}
40209
40210SWIGINTERN PyObject *_wrap_new_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40211 PyObject *resultobj = 0;
40212 wxBitmap *arg1 = 0 ;
40213 wxCursor const &arg2_defvalue = wxNullCursor ;
40214 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40215 wxGenericDragImage *result = 0 ;
40216 void *argp1 = 0 ;
40217 int res1 = 0 ;
40218 void *argp2 = 0 ;
40219 int res2 = 0 ;
40220 PyObject * obj0 = 0 ;
40221 PyObject * obj1 = 0 ;
40222 char * kwnames[] = {
40223 (char *) "image",(char *) "cursor", NULL
40224 };
40225
40226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) SWIG_fail;
40227 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
40228 if (!SWIG_IsOK(res1)) {
40229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40230 }
40231 if (!argp1) {
40232 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40233 }
40234 arg1 = reinterpret_cast< wxBitmap * >(argp1);
40235 if (obj1) {
40236 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40237 if (!SWIG_IsOK(res2)) {
40238 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
d14a1e28 40239 }
0085ce49
RD
40240 if (!argp2) {
40241 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
d14a1e28 40242 }
0085ce49
RD
40243 arg2 = reinterpret_cast< wxCursor * >(argp2);
40244 }
40245 {
40246 if (!wxPyCheckForApp()) SWIG_fail;
40247 PyThreadState* __tstate = wxPyBeginAllowThreads();
40248 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
40249 wxPyEndAllowThreads(__tstate);
40250 if (PyErr_Occurred()) SWIG_fail;
40251 }
40252 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_NEW | 0 );
40253 return resultobj;
40254fail:
40255 return NULL;
40256}
40257
40258
40259SWIGINTERN PyObject *_wrap_new_DragIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40260 PyObject *resultobj = 0;
40261 wxIcon *arg1 = 0 ;
40262 wxCursor const &arg2_defvalue = wxNullCursor ;
40263 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40264 wxGenericDragImage *result = 0 ;
40265 void *argp1 = 0 ;
40266 int res1 = 0 ;
40267 void *argp2 = 0 ;
40268 int res2 = 0 ;
40269 PyObject * obj0 = 0 ;
40270 PyObject * obj1 = 0 ;
40271 char * kwnames[] = {
40272 (char *) "image",(char *) "cursor", NULL
40273 };
40274
40275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) SWIG_fail;
40276 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
40277 if (!SWIG_IsOK(res1)) {
40278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40279 }
40280 if (!argp1) {
40281 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40282 }
40283 arg1 = reinterpret_cast< wxIcon * >(argp1);
40284 if (obj1) {
40285 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40286 if (!SWIG_IsOK(res2)) {
40287 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
d14a1e28 40288 }
0085ce49
RD
40289 if (!argp2) {
40290 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
d14a1e28 40291 }
0085ce49
RD
40292 arg2 = reinterpret_cast< wxCursor * >(argp2);
40293 }
40294 {
40295 if (!wxPyCheckForApp()) SWIG_fail;
40296 PyThreadState* __tstate = wxPyBeginAllowThreads();
40297 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
40298 wxPyEndAllowThreads(__tstate);
40299 if (PyErr_Occurred()) SWIG_fail;
40300 }
40301 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40302 return resultobj;
40303fail:
40304 return NULL;
40305}
40306
40307
40308SWIGINTERN PyObject *_wrap_new_DragString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40309 PyObject *resultobj = 0;
40310 wxString *arg1 = 0 ;
40311 wxCursor const &arg2_defvalue = wxNullCursor ;
40312 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40313 wxGenericDragImage *result = 0 ;
40314 bool temp1 = false ;
40315 void *argp2 = 0 ;
40316 int res2 = 0 ;
40317 PyObject * obj0 = 0 ;
40318 PyObject * obj1 = 0 ;
40319 char * kwnames[] = {
40320 (char *) "str",(char *) "cursor", NULL
40321 };
40322
40323 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) SWIG_fail;
40324 {
40325 arg1 = wxString_in_helper(obj0);
40326 if (arg1 == NULL) SWIG_fail;
40327 temp1 = true;
40328 }
40329 if (obj1) {
40330 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40331 if (!SWIG_IsOK(res2)) {
40332 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
7e08d4ef 40333 }
0085ce49
RD
40334 if (!argp2) {
40335 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
40336 }
40337 arg2 = reinterpret_cast< wxCursor * >(argp2);
40338 }
40339 {
40340 if (!wxPyCheckForApp()) SWIG_fail;
40341 PyThreadState* __tstate = wxPyBeginAllowThreads();
40342 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
40343 wxPyEndAllowThreads(__tstate);
40344 if (PyErr_Occurred()) SWIG_fail;
40345 }
40346 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40347 {
40348 if (temp1)
40349 delete arg1;
40350 }
40351 return resultobj;
40352fail:
40353 {
40354 if (temp1)
40355 delete arg1;
40356 }
40357 return NULL;
40358}
40359
40360
40361SWIGINTERN PyObject *_wrap_new_DragTreeItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40362 PyObject *resultobj = 0;
40363 wxPyTreeCtrl *arg1 = 0 ;
40364 wxTreeItemId *arg2 = 0 ;
40365 wxGenericDragImage *result = 0 ;
40366 void *argp1 = 0 ;
40367 int res1 = 0 ;
40368 void *argp2 = 0 ;
40369 int res2 = 0 ;
40370 PyObject * obj0 = 0 ;
40371 PyObject * obj1 = 0 ;
40372 char * kwnames[] = {
40373 (char *) "treeCtrl",(char *) "id", NULL
40374 };
40375
40376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) SWIG_fail;
40377 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyTreeCtrl, 0 | 0);
40378 if (!SWIG_IsOK(res1)) {
40379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40380 }
40381 if (!argp1) {
40382 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40383 }
40384 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
40385 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 );
40386 if (!SWIG_IsOK(res2)) {
40387 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40388 }
40389 if (!argp2) {
40390 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40391 }
40392 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
40393 {
40394 if (!wxPyCheckForApp()) SWIG_fail;
40395 PyThreadState* __tstate = wxPyBeginAllowThreads();
40396 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
40397 wxPyEndAllowThreads(__tstate);
40398 if (PyErr_Occurred()) SWIG_fail;
40399 }
40400 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40401 return resultobj;
40402fail:
40403 return NULL;
40404}
40405
40406
40407SWIGINTERN PyObject *_wrap_new_DragListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40408 PyObject *resultobj = 0;
40409 wxPyListCtrl *arg1 = 0 ;
40410 long arg2 ;
40411 wxGenericDragImage *result = 0 ;
40412 void *argp1 = 0 ;
40413 int res1 = 0 ;
40414 long val2 ;
40415 int ecode2 = 0 ;
40416 PyObject * obj0 = 0 ;
40417 PyObject * obj1 = 0 ;
40418 char * kwnames[] = {
40419 (char *) "listCtrl",(char *) "id", NULL
40420 };
40421
40422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) SWIG_fail;
40423 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyListCtrl, 0 | 0);
40424 if (!SWIG_IsOK(res1)) {
40425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40426 }
40427 if (!argp1) {
40428 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40429 }
40430 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
40431 ecode2 = SWIG_AsVal_long(obj1, &val2);
40432 if (!SWIG_IsOK(ecode2)) {
40433 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DragListItem" "', expected argument " "2"" of type '" "long""'");
40434 }
40435 arg2 = static_cast< long >(val2);
40436 {
40437 if (!wxPyCheckForApp()) SWIG_fail;
40438 PyThreadState* __tstate = wxPyBeginAllowThreads();
40439 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
40440 wxPyEndAllowThreads(__tstate);
40441 if (PyErr_Occurred()) SWIG_fail;
40442 }
40443 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40444 return resultobj;
40445fail:
40446 return NULL;
7e08d4ef
RD
40447}
40448
40449
0085ce49
RD
40450SWIGINTERN PyObject *_wrap_delete_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40451 PyObject *resultobj = 0;
40452 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40453 void *argp1 = 0 ;
40454 int res1 = 0 ;
40455 PyObject *swig_obj[1] ;
40456
40457 if (!args) SWIG_fail;
40458 swig_obj[0] = args;
40459 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_DISOWN | 0 );
40460 if (!SWIG_IsOK(res1)) {
40461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DragImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40462 }
40463 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40464 {
40465 PyThreadState* __tstate = wxPyBeginAllowThreads();
40466 delete arg1;
d14a1e28 40467
0085ce49
RD
40468 wxPyEndAllowThreads(__tstate);
40469 if (PyErr_Occurred()) SWIG_fail;
40470 }
40471 resultobj = SWIG_Py_Void();
40472 return resultobj;
40473fail:
40474 return NULL;
40475}
40476
40477
40478SWIGINTERN PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40479 PyObject *resultobj = 0;
40480 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40481 wxBitmap *arg2 = (wxBitmap *) 0 ;
40482 void *argp1 = 0 ;
40483 int res1 = 0 ;
40484 void *argp2 = 0 ;
40485 int res2 = 0 ;
40486 PyObject * obj0 = 0 ;
40487 PyObject * obj1 = 0 ;
40488 char * kwnames[] = {
40489 (char *) "self",(char *) "bitmap", NULL
40490 };
40491
40492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
40493 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40494 if (!SWIG_IsOK(res1)) {
40495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40496 }
40497 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40498 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
40499 if (!SWIG_IsOK(res2)) {
40500 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "2"" of type '" "wxBitmap *""'");
40501 }
40502 arg2 = reinterpret_cast< wxBitmap * >(argp2);
40503 {
40504 PyThreadState* __tstate = wxPyBeginAllowThreads();
40505 (arg1)->SetBackingBitmap(arg2);
40506 wxPyEndAllowThreads(__tstate);
40507 if (PyErr_Occurred()) SWIG_fail;
40508 }
40509 resultobj = SWIG_Py_Void();
40510 return resultobj;
40511fail:
40512 return NULL;
40513}
40514
40515
40516SWIGINTERN PyObject *_wrap_DragImage_BeginDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40517 PyObject *resultobj = 0;
40518 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40519 wxPoint *arg2 = 0 ;
40520 wxWindow *arg3 = (wxWindow *) 0 ;
40521 bool arg4 = (bool) false ;
40522 wxRect *arg5 = (wxRect *) NULL ;
40523 bool result;
40524 void *argp1 = 0 ;
40525 int res1 = 0 ;
40526 wxPoint temp2 ;
40527 void *argp3 = 0 ;
40528 int res3 = 0 ;
40529 bool val4 ;
40530 int ecode4 = 0 ;
40531 void *argp5 = 0 ;
40532 int res5 = 0 ;
40533 PyObject * obj0 = 0 ;
40534 PyObject * obj1 = 0 ;
40535 PyObject * obj2 = 0 ;
40536 PyObject * obj3 = 0 ;
40537 PyObject * obj4 = 0 ;
40538 char * kwnames[] = {
40539 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
40540 };
40541
40542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40544 if (!SWIG_IsOK(res1)) {
40545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40546 }
40547 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40548 {
40549 arg2 = &temp2;
40550 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40551 }
40552 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40553 if (!SWIG_IsOK(res3)) {
40554 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDrag" "', expected argument " "3"" of type '" "wxWindow *""'");
40555 }
40556 arg3 = reinterpret_cast< wxWindow * >(argp3);
40557 if (obj3) {
40558 ecode4 = SWIG_AsVal_bool(obj3, &val4);
40559 if (!SWIG_IsOK(ecode4)) {
40560 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_BeginDrag" "', expected argument " "4"" of type '" "bool""'");
40561 }
40562 arg4 = static_cast< bool >(val4);
40563 }
40564 if (obj4) {
40565 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxRect, 0 | 0 );
40566 if (!SWIG_IsOK(res5)) {
40567 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DragImage_BeginDrag" "', expected argument " "5"" of type '" "wxRect *""'");
d14a1e28 40568 }
0085ce49
RD
40569 arg5 = reinterpret_cast< wxRect * >(argp5);
40570 }
40571 {
40572 PyThreadState* __tstate = wxPyBeginAllowThreads();
40573 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
40574 wxPyEndAllowThreads(__tstate);
40575 if (PyErr_Occurred()) SWIG_fail;
40576 }
40577 {
40578 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40579 }
40580 return resultobj;
40581fail:
40582 return NULL;
40583}
40584
40585
40586SWIGINTERN PyObject *_wrap_DragImage_BeginDragBounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40587 PyObject *resultobj = 0;
40588 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40589 wxPoint *arg2 = 0 ;
40590 wxWindow *arg3 = (wxWindow *) 0 ;
40591 wxWindow *arg4 = (wxWindow *) 0 ;
40592 bool result;
40593 void *argp1 = 0 ;
40594 int res1 = 0 ;
40595 wxPoint temp2 ;
40596 void *argp3 = 0 ;
40597 int res3 = 0 ;
40598 void *argp4 = 0 ;
40599 int res4 = 0 ;
40600 PyObject * obj0 = 0 ;
40601 PyObject * obj1 = 0 ;
40602 PyObject * obj2 = 0 ;
40603 PyObject * obj3 = 0 ;
40604 char * kwnames[] = {
40605 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
40606 };
40607
40608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40610 if (!SWIG_IsOK(res1)) {
40611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDragBounded" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40612 }
40613 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40614 {
40615 arg2 = &temp2;
40616 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40617 }
40618 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40619 if (!SWIG_IsOK(res3)) {
40620 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDragBounded" "', expected argument " "3"" of type '" "wxWindow *""'");
40621 }
40622 arg3 = reinterpret_cast< wxWindow * >(argp3);
40623 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
40624 if (!SWIG_IsOK(res4)) {
40625 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DragImage_BeginDragBounded" "', expected argument " "4"" of type '" "wxWindow *""'");
40626 }
40627 arg4 = reinterpret_cast< wxWindow * >(argp4);
40628 {
40629 PyThreadState* __tstate = wxPyBeginAllowThreads();
40630 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
40631 wxPyEndAllowThreads(__tstate);
40632 if (PyErr_Occurred()) SWIG_fail;
40633 }
40634 {
40635 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40636 }
40637 return resultobj;
40638fail:
40639 return NULL;
d14a1e28
RD
40640}
40641
40642
0085ce49
RD
40643SWIGINTERN PyObject *_wrap_DragImage_EndDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40644 PyObject *resultobj = 0;
40645 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40646 bool result;
40647 void *argp1 = 0 ;
40648 int res1 = 0 ;
40649 PyObject *swig_obj[1] ;
40650
40651 if (!args) SWIG_fail;
40652 swig_obj[0] = args;
40653 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40654 if (!SWIG_IsOK(res1)) {
40655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_EndDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40656 }
40657 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40658 {
40659 PyThreadState* __tstate = wxPyBeginAllowThreads();
40660 result = (bool)(arg1)->EndDrag();
40661 wxPyEndAllowThreads(__tstate);
40662 if (PyErr_Occurred()) SWIG_fail;
40663 }
40664 {
40665 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40666 }
40667 return resultobj;
40668fail:
40669 return NULL;
40670}
40671
40672
40673SWIGINTERN PyObject *_wrap_DragImage_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40674 PyObject *resultobj = 0;
40675 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40676 wxPoint *arg2 = 0 ;
40677 bool result;
40678 void *argp1 = 0 ;
40679 int res1 = 0 ;
40680 wxPoint temp2 ;
40681 PyObject * obj0 = 0 ;
40682 PyObject * obj1 = 0 ;
40683 char * kwnames[] = {
40684 (char *) "self",(char *) "pt", NULL
40685 };
40686
40687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) SWIG_fail;
40688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40689 if (!SWIG_IsOK(res1)) {
40690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Move" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40691 }
40692 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40693 {
40694 arg2 = &temp2;
40695 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40696 }
40697 {
40698 PyThreadState* __tstate = wxPyBeginAllowThreads();
40699 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
40700 wxPyEndAllowThreads(__tstate);
40701 if (PyErr_Occurred()) SWIG_fail;
40702 }
40703 {
40704 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40705 }
40706 return resultobj;
40707fail:
40708 return NULL;
d14a1e28
RD
40709}
40710
40711
0085ce49
RD
40712SWIGINTERN PyObject *_wrap_DragImage_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40713 PyObject *resultobj = 0;
40714 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40715 bool result;
40716 void *argp1 = 0 ;
40717 int res1 = 0 ;
40718 PyObject *swig_obj[1] ;
40719
40720 if (!args) SWIG_fail;
40721 swig_obj[0] = args;
40722 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40723 if (!SWIG_IsOK(res1)) {
40724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Show" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40725 }
40726 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40727 {
40728 PyThreadState* __tstate = wxPyBeginAllowThreads();
40729 result = (bool)(arg1)->Show();
40730 wxPyEndAllowThreads(__tstate);
40731 if (PyErr_Occurred()) SWIG_fail;
40732 }
40733 {
40734 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40735 }
40736 return resultobj;
40737fail:
40738 return NULL;
d14a1e28
RD
40739}
40740
40741
0085ce49
RD
40742SWIGINTERN PyObject *_wrap_DragImage_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40743 PyObject *resultobj = 0;
40744 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40745 bool result;
40746 void *argp1 = 0 ;
40747 int res1 = 0 ;
40748 PyObject *swig_obj[1] ;
40749
40750 if (!args) SWIG_fail;
40751 swig_obj[0] = args;
40752 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40753 if (!SWIG_IsOK(res1)) {
40754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Hide" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40755 }
40756 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40757 {
40758 PyThreadState* __tstate = wxPyBeginAllowThreads();
40759 result = (bool)(arg1)->Hide();
40760 wxPyEndAllowThreads(__tstate);
40761 if (PyErr_Occurred()) SWIG_fail;
40762 }
40763 {
40764 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40765 }
40766 return resultobj;
40767fail:
40768 return NULL;
40769}
40770
40771
40772SWIGINTERN PyObject *_wrap_DragImage_GetImageRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40773 PyObject *resultobj = 0;
40774 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40775 wxPoint *arg2 = 0 ;
40776 wxRect result;
40777 void *argp1 = 0 ;
40778 int res1 = 0 ;
40779 wxPoint temp2 ;
40780 PyObject * obj0 = 0 ;
40781 PyObject * obj1 = 0 ;
40782 char * kwnames[] = {
40783 (char *) "self",(char *) "pos", NULL
40784 };
40785
40786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) SWIG_fail;
40787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40788 if (!SWIG_IsOK(res1)) {
40789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_GetImageRect" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40790 }
40791 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40792 {
40793 arg2 = &temp2;
40794 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40795 }
40796 {
40797 PyThreadState* __tstate = wxPyBeginAllowThreads();
40798 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
40799 wxPyEndAllowThreads(__tstate);
40800 if (PyErr_Occurred()) SWIG_fail;
40801 }
40802 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
40803 return resultobj;
40804fail:
40805 return NULL;
40806}
40807
40808
40809SWIGINTERN PyObject *_wrap_DragImage_DoDrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40810 PyObject *resultobj = 0;
40811 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40812 wxDC *arg2 = 0 ;
40813 wxPoint *arg3 = 0 ;
40814 bool result;
40815 void *argp1 = 0 ;
40816 int res1 = 0 ;
40817 void *argp2 = 0 ;
40818 int res2 = 0 ;
40819 wxPoint temp3 ;
40820 PyObject * obj0 = 0 ;
40821 PyObject * obj1 = 0 ;
40822 PyObject * obj2 = 0 ;
40823 char * kwnames[] = {
40824 (char *) "self",(char *) "dc",(char *) "pos", NULL
40825 };
40826
40827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40829 if (!SWIG_IsOK(res1)) {
40830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_DoDrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40831 }
40832 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40833 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
40834 if (!SWIG_IsOK(res2)) {
40835 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
40836 }
40837 if (!argp2) {
40838 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
40839 }
40840 arg2 = reinterpret_cast< wxDC * >(argp2);
40841 {
40842 arg3 = &temp3;
40843 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40844 }
40845 {
40846 PyThreadState* __tstate = wxPyBeginAllowThreads();
40847 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
40848 wxPyEndAllowThreads(__tstate);
40849 if (PyErr_Occurred()) SWIG_fail;
40850 }
40851 {
40852 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40853 }
40854 return resultobj;
40855fail:
40856 return NULL;
40857}
40858
40859
40860SWIGINTERN PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40861 PyObject *resultobj = 0;
40862 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40863 wxDC *arg2 = 0 ;
40864 wxMemoryDC *arg3 = 0 ;
40865 wxRect *arg4 = 0 ;
40866 wxRect *arg5 = 0 ;
40867 bool result;
40868 void *argp1 = 0 ;
40869 int res1 = 0 ;
40870 void *argp2 = 0 ;
40871 int res2 = 0 ;
40872 void *argp3 = 0 ;
40873 int res3 = 0 ;
40874 wxRect temp4 ;
40875 wxRect temp5 ;
40876 PyObject * obj0 = 0 ;
40877 PyObject * obj1 = 0 ;
40878 PyObject * obj2 = 0 ;
40879 PyObject * obj3 = 0 ;
40880 PyObject * obj4 = 0 ;
40881 char * kwnames[] = {
40882 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
40883 };
40884
40885 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40887 if (!SWIG_IsOK(res1)) {
40888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40889 }
40890 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40891 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
40892 if (!SWIG_IsOK(res2)) {
40893 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
40894 }
40895 if (!argp2) {
40896 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
40897 }
40898 arg2 = reinterpret_cast< wxDC * >(argp2);
40899 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxMemoryDC, 0 );
40900 if (!SWIG_IsOK(res3)) {
40901 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
40902 }
40903 if (!argp3) {
40904 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
40905 }
40906 arg3 = reinterpret_cast< wxMemoryDC * >(argp3);
40907 {
40908 arg4 = &temp4;
40909 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
40910 }
40911 {
40912 arg5 = &temp5;
40913 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
40914 }
40915 {
40916 PyThreadState* __tstate = wxPyBeginAllowThreads();
40917 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
40918 wxPyEndAllowThreads(__tstate);
40919 if (PyErr_Occurred()) SWIG_fail;
40920 }
40921 {
40922 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40923 }
40924 return resultobj;
40925fail:
40926 return NULL;
40927}
40928
40929
40930SWIGINTERN PyObject *_wrap_DragImage_RedrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40931 PyObject *resultobj = 0;
40932 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40933 wxPoint *arg2 = 0 ;
40934 wxPoint *arg3 = 0 ;
40935 bool arg4 ;
40936 bool arg5 ;
40937 bool result;
40938 void *argp1 = 0 ;
40939 int res1 = 0 ;
40940 wxPoint temp2 ;
40941 wxPoint temp3 ;
40942 bool val4 ;
40943 int ecode4 = 0 ;
40944 bool val5 ;
40945 int ecode5 = 0 ;
40946 PyObject * obj0 = 0 ;
40947 PyObject * obj1 = 0 ;
40948 PyObject * obj2 = 0 ;
40949 PyObject * obj3 = 0 ;
40950 PyObject * obj4 = 0 ;
40951 char * kwnames[] = {
40952 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
40953 };
40954
40955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40957 if (!SWIG_IsOK(res1)) {
40958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_RedrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40959 }
40960 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40961 {
40962 arg2 = &temp2;
40963 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40964 }
40965 {
40966 arg3 = &temp3;
40967 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40968 }
40969 ecode4 = SWIG_AsVal_bool(obj3, &val4);
40970 if (!SWIG_IsOK(ecode4)) {
40971 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_RedrawImage" "', expected argument " "4"" of type '" "bool""'");
40972 }
40973 arg4 = static_cast< bool >(val4);
40974 ecode5 = SWIG_AsVal_bool(obj4, &val5);
40975 if (!SWIG_IsOK(ecode5)) {
40976 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DragImage_RedrawImage" "', expected argument " "5"" of type '" "bool""'");
40977 }
40978 arg5 = static_cast< bool >(val5);
40979 {
40980 PyThreadState* __tstate = wxPyBeginAllowThreads();
40981 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
40982 wxPyEndAllowThreads(__tstate);
40983 if (PyErr_Occurred()) SWIG_fail;
40984 }
40985 {
40986 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40987 }
40988 return resultobj;
40989fail:
40990 return NULL;
d14a1e28
RD
40991}
40992
40993
0085ce49
RD
40994SWIGINTERN PyObject *DragImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40995 PyObject *obj;
40996 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40997 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDragImage, SWIG_NewClientData(obj));
40998 return SWIG_Py_Void();
d14a1e28
RD
40999}
41000
0085ce49
RD
41001SWIGINTERN PyObject *DragImage_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41002 return SWIG_Python_InitShadowInstance(args);
41003}
d14a1e28 41004
0085ce49
RD
41005SWIGINTERN int DatePickerCtrlNameStr_set(PyObject *) {
41006 SWIG_Error(SWIG_AttributeError,"Variable DatePickerCtrlNameStr is read-only.");
41007 return 1;
d14a1e28
RD
41008}
41009
41010
0085ce49
RD
41011SWIGINTERN PyObject *DatePickerCtrlNameStr_get(void) {
41012 PyObject *pyobj = 0;
41013
41014 {
41015#if wxUSE_UNICODE
41016 pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
41017#else
41018 pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
41019#endif
41020 }
41021 return pyobj;
41022}
41023
41024
41025SWIGINTERN PyObject *_wrap_new_DatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41026 PyObject *resultobj = 0;
41027 wxWindow *arg1 = (wxWindow *) 0 ;
41028 int arg2 = (int) -1 ;
41029 wxDateTime const &arg3_defvalue = wxDefaultDateTime ;
41030 wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ;
41031 wxPoint const &arg4_defvalue = wxDefaultPosition ;
41032 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
41033 wxSize const &arg5_defvalue = wxDefaultSize ;
41034 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
41035 long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41036 wxValidator const &arg7_defvalue = wxDefaultValidator ;
41037 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
41038 wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ;
41039 wxString *arg8 = (wxString *) &arg8_defvalue ;
41040 wxDatePickerCtrl *result = 0 ;
41041 void *argp1 = 0 ;
41042 int res1 = 0 ;
41043 int val2 ;
41044 int ecode2 = 0 ;
41045 void *argp3 = 0 ;
41046 int res3 = 0 ;
41047 wxPoint temp4 ;
41048 wxSize temp5 ;
41049 long val6 ;
41050 int ecode6 = 0 ;
41051 void *argp7 = 0 ;
41052 int res7 = 0 ;
41053 bool temp8 = false ;
41054 PyObject * obj0 = 0 ;
41055 PyObject * obj1 = 0 ;
41056 PyObject * obj2 = 0 ;
41057 PyObject * obj3 = 0 ;
41058 PyObject * obj4 = 0 ;
41059 PyObject * obj5 = 0 ;
41060 PyObject * obj6 = 0 ;
41061 PyObject * obj7 = 0 ;
41062 char * kwnames[] = {
41063 (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41064 };
41065
41066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41068 if (!SWIG_IsOK(res1)) {
41069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41070 }
41071 arg1 = reinterpret_cast< wxWindow * >(argp1);
41072 if (obj1) {
41073 ecode2 = SWIG_AsVal_int(obj1, &val2);
41074 if (!SWIG_IsOK(ecode2)) {
41075 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatePickerCtrl" "', expected argument " "2"" of type '" "int""'");
41076 }
41077 arg2 = static_cast< int >(val2);
41078 }
41079 if (obj2) {
41080 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41081 if (!SWIG_IsOK(res3)) {
41082 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
d14a1e28 41083 }
0085ce49
RD
41084 if (!argp3) {
41085 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
d14a1e28 41086 }
0085ce49
RD
41087 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41088 }
41089 if (obj3) {
d14a1e28 41090 {
0085ce49
RD
41091 arg4 = &temp4;
41092 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 41093 }
0085ce49
RD
41094 }
41095 if (obj4) {
d14a1e28 41096 {
0085ce49
RD
41097 arg5 = &temp5;
41098 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 41099 }
0085ce49
RD
41100 }
41101 if (obj5) {
41102 ecode6 = SWIG_AsVal_long(obj5, &val6);
41103 if (!SWIG_IsOK(ecode6)) {
41104 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DatePickerCtrl" "', expected argument " "6"" of type '" "long""'");
41105 }
41106 arg6 = static_cast< long >(val6);
41107 }
41108 if (obj6) {
41109 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
41110 if (!SWIG_IsOK(res7)) {
41111 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
41112 }
41113 if (!argp7) {
41114 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 41115 }
0085ce49
RD
41116 arg7 = reinterpret_cast< wxValidator * >(argp7);
41117 }
41118 if (obj7) {
d14a1e28 41119 {
0085ce49
RD
41120 arg8 = wxString_in_helper(obj7);
41121 if (arg8 == NULL) SWIG_fail;
41122 temp8 = true;
d14a1e28 41123 }
0085ce49
RD
41124 }
41125 {
41126 if (!wxPyCheckForApp()) SWIG_fail;
41127 PyThreadState* __tstate = wxPyBeginAllowThreads();
41128 result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
41129 wxPyEndAllowThreads(__tstate);
41130 if (PyErr_Occurred()) SWIG_fail;
41131 }
41132 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_NEW | 0 );
41133 {
41134 if (temp8)
41135 delete arg8;
41136 }
41137 return resultobj;
41138fail:
41139 {
41140 if (temp8)
41141 delete arg8;
41142 }
41143 return NULL;
d14a1e28
RD
41144}
41145
41146
0085ce49
RD
41147SWIGINTERN PyObject *_wrap_new_PreDatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41148 PyObject *resultobj = 0;
41149 wxDatePickerCtrl *result = 0 ;
41150
41151 if (!SWIG_Python_UnpackTuple(args,"new_PreDatePickerCtrl",0,0,0)) SWIG_fail;
41152 {
41153 if (!wxPyCheckForApp()) SWIG_fail;
41154 PyThreadState* __tstate = wxPyBeginAllowThreads();
41155 result = (wxDatePickerCtrl *)new wxDatePickerCtrl();
41156 wxPyEndAllowThreads(__tstate);
41157 if (PyErr_Occurred()) SWIG_fail;
41158 }
41159 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_OWN | 0 );
41160 return resultobj;
41161fail:
41162 return NULL;
41163}
41164
41165
41166SWIGINTERN PyObject *_wrap_DatePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41167 PyObject *resultobj = 0;
41168 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41169 wxWindow *arg2 = (wxWindow *) 0 ;
41170 int arg3 = (int) -1 ;
41171 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
41172 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
41173 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41174 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41175 wxSize const &arg6_defvalue = wxDefaultSize ;
41176 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41177 long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41178 wxValidator const &arg8_defvalue = wxDefaultValidator ;
41179 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
41180 wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ;
41181 wxString *arg9 = (wxString *) &arg9_defvalue ;
41182 bool result;
41183 void *argp1 = 0 ;
41184 int res1 = 0 ;
41185 void *argp2 = 0 ;
41186 int res2 = 0 ;
41187 int val3 ;
41188 int ecode3 = 0 ;
41189 void *argp4 = 0 ;
41190 int res4 = 0 ;
41191 wxPoint temp5 ;
41192 wxSize temp6 ;
41193 long val7 ;
41194 int ecode7 = 0 ;
41195 void *argp8 = 0 ;
41196 int res8 = 0 ;
41197 bool temp9 = false ;
41198 PyObject * obj0 = 0 ;
41199 PyObject * obj1 = 0 ;
41200 PyObject * obj2 = 0 ;
41201 PyObject * obj3 = 0 ;
41202 PyObject * obj4 = 0 ;
41203 PyObject * obj5 = 0 ;
41204 PyObject * obj6 = 0 ;
41205 PyObject * obj7 = 0 ;
41206 PyObject * obj8 = 0 ;
41207 char * kwnames[] = {
41208 (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41209 };
41210
41211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41213 if (!SWIG_IsOK(res1)) {
41214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_Create" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41215 }
41216 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41217 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41218 if (!SWIG_IsOK(res2)) {
41219 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41220 }
41221 arg2 = reinterpret_cast< wxWindow * >(argp2);
41222 if (obj2) {
41223 ecode3 = SWIG_AsVal_int(obj2, &val3);
41224 if (!SWIG_IsOK(ecode3)) {
41225 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DatePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41226 }
41227 arg3 = static_cast< int >(val3);
41228 }
41229 if (obj3) {
41230 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDateTime, 0 | 0);
41231 if (!SWIG_IsOK(res4)) {
41232 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
7e08d4ef 41233 }
0085ce49
RD
41234 if (!argp4) {
41235 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
7e08d4ef 41236 }
0085ce49
RD
41237 arg4 = reinterpret_cast< wxDateTime * >(argp4);
41238 }
41239 if (obj4) {
d14a1e28 41240 {
0085ce49
RD
41241 arg5 = &temp5;
41242 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 41243 }
0085ce49
RD
41244 }
41245 if (obj5) {
d14a1e28 41246 {
0085ce49
RD
41247 arg6 = &temp6;
41248 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
41249 }
41250 }
41251 if (obj6) {
41252 ecode7 = SWIG_AsVal_long(obj6, &val7);
41253 if (!SWIG_IsOK(ecode7)) {
41254 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DatePickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
41255 }
41256 arg7 = static_cast< long >(val7);
41257 }
41258 if (obj7) {
41259 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
41260 if (!SWIG_IsOK(res8)) {
41261 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
41262 }
41263 if (!argp8) {
41264 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 41265 }
0085ce49
RD
41266 arg8 = reinterpret_cast< wxValidator * >(argp8);
41267 }
41268 if (obj8) {
d14a1e28 41269 {
0085ce49
RD
41270 arg9 = wxString_in_helper(obj8);
41271 if (arg9 == NULL) SWIG_fail;
41272 temp9 = true;
d14a1e28 41273 }
0085ce49
RD
41274 }
41275 {
41276 PyThreadState* __tstate = wxPyBeginAllowThreads();
41277 result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
41278 wxPyEndAllowThreads(__tstate);
41279 if (PyErr_Occurred()) SWIG_fail;
41280 }
41281 {
41282 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41283 }
41284 {
41285 if (temp9)
41286 delete arg9;
41287 }
41288 return resultobj;
41289fail:
41290 {
41291 if (temp9)
41292 delete arg9;
41293 }
41294 return NULL;
41295}
41296
41297
41298SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41299 PyObject *resultobj = 0;
41300 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41301 wxDateTime *arg2 = 0 ;
41302 void *argp1 = 0 ;
41303 int res1 = 0 ;
41304 void *argp2 = 0 ;
41305 int res2 = 0 ;
41306 PyObject * obj0 = 0 ;
41307 PyObject * obj1 = 0 ;
41308 char * kwnames[] = {
41309 (char *) "self",(char *) "dt", NULL
41310 };
41311
41312 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
41313 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41314 if (!SWIG_IsOK(res1)) {
41315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41316 }
41317 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41318 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41319 if (!SWIG_IsOK(res2)) {
41320 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41321 }
41322 if (!argp2) {
41323 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41324 }
41325 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41326 {
41327 PyThreadState* __tstate = wxPyBeginAllowThreads();
41328 (arg1)->SetValue((wxDateTime const &)*arg2);
41329 wxPyEndAllowThreads(__tstate);
41330 if (PyErr_Occurred()) SWIG_fail;
41331 }
41332 resultobj = SWIG_Py_Void();
41333 return resultobj;
41334fail:
41335 return NULL;
d14a1e28
RD
41336}
41337
41338
0085ce49
RD
41339SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41340 PyObject *resultobj = 0;
41341 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41342 wxDateTime result;
41343 void *argp1 = 0 ;
41344 int res1 = 0 ;
41345 PyObject *swig_obj[1] ;
41346
41347 if (!args) SWIG_fail;
41348 swig_obj[0] = args;
41349 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41350 if (!SWIG_IsOK(res1)) {
41351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl const *""'");
41352 }
41353 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41354 {
41355 PyThreadState* __tstate = wxPyBeginAllowThreads();
41356 result = ((wxDatePickerCtrl const *)arg1)->GetValue();
41357 wxPyEndAllowThreads(__tstate);
41358 if (PyErr_Occurred()) SWIG_fail;
41359 }
41360 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41361 return resultobj;
41362fail:
41363 return NULL;
41364}
41365
41366
41367SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41368 PyObject *resultobj = 0;
41369 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41370 wxDateTime *arg2 = 0 ;
41371 wxDateTime *arg3 = 0 ;
41372 void *argp1 = 0 ;
41373 int res1 = 0 ;
41374 void *argp2 = 0 ;
41375 int res2 = 0 ;
41376 void *argp3 = 0 ;
41377 int res3 = 0 ;
41378 PyObject * obj0 = 0 ;
41379 PyObject * obj1 = 0 ;
41380 PyObject * obj2 = 0 ;
41381 char * kwnames[] = {
41382 (char *) "self",(char *) "dt1",(char *) "dt2", NULL
41383 };
41384
41385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41387 if (!SWIG_IsOK(res1)) {
41388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41389 }
41390 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41391 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41392 if (!SWIG_IsOK(res2)) {
41393 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41394 }
41395 if (!argp2) {
41396 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41397 }
41398 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41399 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41400 if (!SWIG_IsOK(res3)) {
41401 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41402 }
41403 if (!argp3) {
41404 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41405 }
41406 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41407 {
41408 PyThreadState* __tstate = wxPyBeginAllowThreads();
41409 (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
41410 wxPyEndAllowThreads(__tstate);
41411 if (PyErr_Occurred()) SWIG_fail;
41412 }
41413 resultobj = SWIG_Py_Void();
41414 return resultobj;
41415fail:
41416 return NULL;
d14a1e28
RD
41417}
41418
41419
0085ce49
RD
41420SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41421 PyObject *resultobj = 0;
41422 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41423 wxDateTime result;
41424 void *argp1 = 0 ;
41425 int res1 = 0 ;
41426 PyObject *swig_obj[1] ;
41427
41428 if (!args) SWIG_fail;
41429 swig_obj[0] = args;
41430 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41431 if (!SWIG_IsOK(res1)) {
41432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetLowerLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41433 }
41434 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41435 {
41436 PyThreadState* __tstate = wxPyBeginAllowThreads();
41437 result = wxDatePickerCtrl_GetLowerLimit(arg1);
41438 wxPyEndAllowThreads(__tstate);
41439 if (PyErr_Occurred()) SWIG_fail;
41440 }
41441 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41442 return resultobj;
41443fail:
41444 return NULL;
d14a1e28
RD
41445}
41446
41447
0085ce49
RD
41448SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41449 PyObject *resultobj = 0;
41450 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41451 wxDateTime result;
41452 void *argp1 = 0 ;
41453 int res1 = 0 ;
41454 PyObject *swig_obj[1] ;
41455
41456 if (!args) SWIG_fail;
41457 swig_obj[0] = args;
41458 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41459 if (!SWIG_IsOK(res1)) {
41460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetUpperLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41461 }
41462 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41463 {
41464 PyThreadState* __tstate = wxPyBeginAllowThreads();
41465 result = wxDatePickerCtrl_GetUpperLimit(arg1);
41466 wxPyEndAllowThreads(__tstate);
41467 if (PyErr_Occurred()) SWIG_fail;
41468 }
41469 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41470 return resultobj;
41471fail:
41472 return NULL;
d14a1e28
RD
41473}
41474
41475
0085ce49
RD
41476SWIGINTERN PyObject *DatePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41477 PyObject *obj;
41478 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41479 SWIG_TypeNewClientData(SWIGTYPE_p_wxDatePickerCtrl, SWIG_NewClientData(obj));
41480 return SWIG_Py_Void();
d14a1e28
RD
41481}
41482
0085ce49
RD
41483SWIGINTERN PyObject *DatePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41484 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
41485}
41486
704eda0c
RD
41487SWIGINTERN int HyperlinkCtrlNameStr_set(PyObject *) {
41488 SWIG_Error(SWIG_AttributeError,"Variable HyperlinkCtrlNameStr is read-only.");
41489 return 1;
41490}
41491
41492
41493SWIGINTERN PyObject *HyperlinkCtrlNameStr_get(void) {
41494 PyObject *pyobj = 0;
41495
41496 {
41497#if wxUSE_UNICODE
41498 pyobj = PyUnicode_FromWideChar((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41499#else
41500 pyobj = PyString_FromStringAndSize((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41501#endif
41502 }
41503 return pyobj;
41504}
41505
41506
41507SWIGINTERN PyObject *_wrap_new_HyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41508 PyObject *resultobj = 0;
41509 wxWindow *arg1 = (wxWindow *) 0 ;
41510 int arg2 ;
41511 wxString *arg3 = 0 ;
41512 wxString *arg4 = 0 ;
41513 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41514 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41515 wxSize const &arg6_defvalue = wxDefaultSize ;
41516 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41517 long arg7 = (long) wxHL_DEFAULT_STYLE ;
41518 wxString const &arg8_defvalue = wxPyHyperlinkCtrlNameStr ;
41519 wxString *arg8 = (wxString *) &arg8_defvalue ;
41520 wxHyperlinkCtrl *result = 0 ;
41521 void *argp1 = 0 ;
41522 int res1 = 0 ;
41523 int val2 ;
41524 int ecode2 = 0 ;
41525 bool temp3 = false ;
41526 bool temp4 = false ;
41527 wxPoint temp5 ;
41528 wxSize temp6 ;
41529 long val7 ;
41530 int ecode7 = 0 ;
41531 bool temp8 = false ;
41532 PyObject * obj0 = 0 ;
41533 PyObject * obj1 = 0 ;
41534 PyObject * obj2 = 0 ;
41535 PyObject * obj3 = 0 ;
41536 PyObject * obj4 = 0 ;
41537 PyObject * obj5 = 0 ;
41538 PyObject * obj6 = 0 ;
41539 PyObject * obj7 = 0 ;
41540 char * kwnames[] = {
41541 (char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41542 };
41543
41544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:new_HyperlinkCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41546 if (!SWIG_IsOK(res1)) {
41547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41548 }
41549 arg1 = reinterpret_cast< wxWindow * >(argp1);
41550 ecode2 = SWIG_AsVal_int(obj1, &val2);
41551 if (!SWIG_IsOK(ecode2)) {
41552 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkCtrl" "', expected argument " "2"" of type '" "int""'");
41553 }
41554 arg2 = static_cast< int >(val2);
41555 {
41556 arg3 = wxString_in_helper(obj2);
41557 if (arg3 == NULL) SWIG_fail;
41558 temp3 = true;
41559 }
41560 {
41561 arg4 = wxString_in_helper(obj3);
41562 if (arg4 == NULL) SWIG_fail;
41563 temp4 = true;
41564 }
41565 if (obj4) {
41566 {
41567 arg5 = &temp5;
41568 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
41569 }
41570 }
41571 if (obj5) {
41572 {
41573 arg6 = &temp6;
41574 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
41575 }
41576 }
41577 if (obj6) {
41578 ecode7 = SWIG_AsVal_long(obj6, &val7);
41579 if (!SWIG_IsOK(ecode7)) {
41580 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_HyperlinkCtrl" "', expected argument " "7"" of type '" "long""'");
41581 }
41582 arg7 = static_cast< long >(val7);
41583 }
41584 if (obj7) {
41585 {
41586 arg8 = wxString_in_helper(obj7);
41587 if (arg8 == NULL) SWIG_fail;
41588 temp8 = true;
41589 }
41590 }
41591 {
41592 if (!wxPyCheckForApp()) SWIG_fail;
41593 PyThreadState* __tstate = wxPyBeginAllowThreads();
41594 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
41595 wxPyEndAllowThreads(__tstate);
41596 if (PyErr_Occurred()) SWIG_fail;
41597 }
41598 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_NEW | 0 );
41599 {
41600 if (temp3)
41601 delete arg3;
41602 }
41603 {
41604 if (temp4)
41605 delete arg4;
41606 }
41607 {
41608 if (temp8)
41609 delete arg8;
41610 }
41611 return resultobj;
41612fail:
41613 {
41614 if (temp3)
41615 delete arg3;
41616 }
41617 {
41618 if (temp4)
41619 delete arg4;
41620 }
41621 {
41622 if (temp8)
41623 delete arg8;
41624 }
41625 return NULL;
41626}
41627
41628
41629SWIGINTERN PyObject *_wrap_new_PreHyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41630 PyObject *resultobj = 0;
41631 wxHyperlinkCtrl *result = 0 ;
41632
41633 if (!SWIG_Python_UnpackTuple(args,"new_PreHyperlinkCtrl",0,0,0)) SWIG_fail;
41634 {
41635 if (!wxPyCheckForApp()) SWIG_fail;
41636 PyThreadState* __tstate = wxPyBeginAllowThreads();
41637 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl();
41638 wxPyEndAllowThreads(__tstate);
41639 if (PyErr_Occurred()) SWIG_fail;
41640 }
41641 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_OWN | 0 );
41642 return resultobj;
41643fail:
41644 return NULL;
41645}
41646
41647
41648SWIGINTERN PyObject *_wrap_HyperlinkCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41649 PyObject *resultobj = 0;
41650 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41651 wxWindow *arg2 = (wxWindow *) 0 ;
41652 int arg3 ;
41653 wxString *arg4 = 0 ;
41654 wxString *arg5 = 0 ;
41655 wxPoint const &arg6_defvalue = wxDefaultPosition ;
41656 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
41657 wxSize const &arg7_defvalue = wxDefaultSize ;
41658 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
41659 long arg8 = (long) wxHL_DEFAULT_STYLE ;
41660 wxString const &arg9_defvalue = wxPyHyperlinkCtrlNameStr ;
41661 wxString *arg9 = (wxString *) &arg9_defvalue ;
41662 bool result;
41663 void *argp1 = 0 ;
41664 int res1 = 0 ;
41665 void *argp2 = 0 ;
41666 int res2 = 0 ;
41667 int val3 ;
41668 int ecode3 = 0 ;
41669 bool temp4 = false ;
41670 bool temp5 = false ;
41671 wxPoint temp6 ;
41672 wxSize temp7 ;
41673 long val8 ;
41674 int ecode8 = 0 ;
41675 bool temp9 = false ;
41676 PyObject * obj0 = 0 ;
41677 PyObject * obj1 = 0 ;
41678 PyObject * obj2 = 0 ;
41679 PyObject * obj3 = 0 ;
41680 PyObject * obj4 = 0 ;
41681 PyObject * obj5 = 0 ;
41682 PyObject * obj6 = 0 ;
41683 PyObject * obj7 = 0 ;
41684 PyObject * obj8 = 0 ;
41685 char * kwnames[] = {
41686 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41687 };
41688
41689 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOO:HyperlinkCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41690 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41691 if (!SWIG_IsOK(res1)) {
41692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_Create" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41693 }
41694 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41695 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41696 if (!SWIG_IsOK(res2)) {
41697 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HyperlinkCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41698 }
41699 arg2 = reinterpret_cast< wxWindow * >(argp2);
41700 ecode3 = SWIG_AsVal_int(obj2, &val3);
41701 if (!SWIG_IsOK(ecode3)) {
41702 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HyperlinkCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41703 }
41704 arg3 = static_cast< int >(val3);
41705 {
41706 arg4 = wxString_in_helper(obj3);
41707 if (arg4 == NULL) SWIG_fail;
41708 temp4 = true;
41709 }
41710 {
41711 arg5 = wxString_in_helper(obj4);
41712 if (arg5 == NULL) SWIG_fail;
41713 temp5 = true;
41714 }
41715 if (obj5) {
41716 {
41717 arg6 = &temp6;
41718 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
41719 }
41720 }
41721 if (obj6) {
41722 {
41723 arg7 = &temp7;
41724 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
41725 }
41726 }
41727 if (obj7) {
41728 ecode8 = SWIG_AsVal_long(obj7, &val8);
41729 if (!SWIG_IsOK(ecode8)) {
41730 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "HyperlinkCtrl_Create" "', expected argument " "8"" of type '" "long""'");
41731 }
41732 arg8 = static_cast< long >(val8);
41733 }
41734 if (obj8) {
41735 {
41736 arg9 = wxString_in_helper(obj8);
41737 if (arg9 == NULL) SWIG_fail;
41738 temp9 = true;
41739 }
41740 }
41741 {
41742 PyThreadState* __tstate = wxPyBeginAllowThreads();
41743 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxString const &)*arg9);
41744 wxPyEndAllowThreads(__tstate);
41745 if (PyErr_Occurred()) SWIG_fail;
41746 }
41747 {
41748 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41749 }
41750 {
41751 if (temp4)
41752 delete arg4;
41753 }
41754 {
41755 if (temp5)
41756 delete arg5;
41757 }
41758 {
41759 if (temp9)
41760 delete arg9;
41761 }
41762 return resultobj;
41763fail:
41764 {
41765 if (temp4)
41766 delete arg4;
41767 }
41768 {
41769 if (temp5)
41770 delete arg5;
41771 }
41772 {
41773 if (temp9)
41774 delete arg9;
41775 }
41776 return NULL;
41777}
41778
41779
41780SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41781 PyObject *resultobj = 0;
41782 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41783 wxColour result;
41784 void *argp1 = 0 ;
41785 int res1 = 0 ;
41786 PyObject *swig_obj[1] ;
41787
41788 if (!args) SWIG_fail;
41789 swig_obj[0] = args;
41790 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41791 if (!SWIG_IsOK(res1)) {
41792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41793 }
41794 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41795 {
41796 PyThreadState* __tstate = wxPyBeginAllowThreads();
41797 result = ((wxHyperlinkCtrl const *)arg1)->GetHoverColour();
41798 wxPyEndAllowThreads(__tstate);
41799 if (PyErr_Occurred()) SWIG_fail;
41800 }
41801 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
41802 return resultobj;
41803fail:
41804 return NULL;
41805}
41806
41807
41808SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41809 PyObject *resultobj = 0;
41810 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41811 wxColour *arg2 = 0 ;
41812 void *argp1 = 0 ;
41813 int res1 = 0 ;
41814 wxColour temp2 ;
41815 PyObject * obj0 = 0 ;
41816 PyObject * obj1 = 0 ;
41817 char * kwnames[] = {
41818 (char *) "self",(char *) "colour", NULL
41819 };
41820
41821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetHoverColour",kwnames,&obj0,&obj1)) SWIG_fail;
41822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41823 if (!SWIG_IsOK(res1)) {
41824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41825 }
41826 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41827 {
41828 arg2 = &temp2;
41829 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
41830 }
41831 {
41832 PyThreadState* __tstate = wxPyBeginAllowThreads();
41833 (arg1)->SetHoverColour((wxColour const &)*arg2);
41834 wxPyEndAllowThreads(__tstate);
41835 if (PyErr_Occurred()) SWIG_fail;
41836 }
41837 resultobj = SWIG_Py_Void();
41838 return resultobj;
41839fail:
41840 return NULL;
41841}
41842
41843
41844SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41845 PyObject *resultobj = 0;
41846 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41847 wxColour result;
41848 void *argp1 = 0 ;
41849 int res1 = 0 ;
41850 PyObject *swig_obj[1] ;
41851
41852 if (!args) SWIG_fail;
41853 swig_obj[0] = args;
41854 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41855 if (!SWIG_IsOK(res1)) {
41856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41857 }
41858 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41859 {
41860 PyThreadState* __tstate = wxPyBeginAllowThreads();
41861 result = ((wxHyperlinkCtrl const *)arg1)->GetNormalColour();
41862 wxPyEndAllowThreads(__tstate);
41863 if (PyErr_Occurred()) SWIG_fail;
41864 }
41865 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
41866 return resultobj;
41867fail:
41868 return NULL;
41869}
41870
41871
41872SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41873 PyObject *resultobj = 0;
41874 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41875 wxColour *arg2 = 0 ;
41876 void *argp1 = 0 ;
41877 int res1 = 0 ;
41878 wxColour temp2 ;
41879 PyObject * obj0 = 0 ;
41880 PyObject * obj1 = 0 ;
41881 char * kwnames[] = {
41882 (char *) "self",(char *) "colour", NULL
41883 };
41884
41885 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetNormalColour",kwnames,&obj0,&obj1)) SWIG_fail;
41886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41887 if (!SWIG_IsOK(res1)) {
41888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41889 }
41890 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41891 {
41892 arg2 = &temp2;
41893 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
41894 }
41895 {
41896 PyThreadState* __tstate = wxPyBeginAllowThreads();
41897 (arg1)->SetNormalColour((wxColour const &)*arg2);
41898 wxPyEndAllowThreads(__tstate);
41899 if (PyErr_Occurred()) SWIG_fail;
41900 }
41901 resultobj = SWIG_Py_Void();
41902 return resultobj;
41903fail:
41904 return NULL;
41905}
41906
41907
41908SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41909 PyObject *resultobj = 0;
41910 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41911 wxColour result;
41912 void *argp1 = 0 ;
41913 int res1 = 0 ;
41914 PyObject *swig_obj[1] ;
41915
41916 if (!args) SWIG_fail;
41917 swig_obj[0] = args;
41918 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41919 if (!SWIG_IsOK(res1)) {
41920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41921 }
41922 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41923 {
41924 PyThreadState* __tstate = wxPyBeginAllowThreads();
41925 result = ((wxHyperlinkCtrl const *)arg1)->GetVisitedColour();
41926 wxPyEndAllowThreads(__tstate);
41927 if (PyErr_Occurred()) SWIG_fail;
41928 }
41929 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
41930 return resultobj;
41931fail:
41932 return NULL;
41933}
41934
41935
41936SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41937 PyObject *resultobj = 0;
41938 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41939 wxColour *arg2 = 0 ;
41940 void *argp1 = 0 ;
41941 int res1 = 0 ;
41942 wxColour temp2 ;
41943 PyObject * obj0 = 0 ;
41944 PyObject * obj1 = 0 ;
41945 char * kwnames[] = {
41946 (char *) "self",(char *) "colour", NULL
41947 };
41948
41949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetVisitedColour",kwnames,&obj0,&obj1)) SWIG_fail;
41950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41951 if (!SWIG_IsOK(res1)) {
41952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41953 }
41954 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41955 {
41956 arg2 = &temp2;
41957 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
41958 }
41959 {
41960 PyThreadState* __tstate = wxPyBeginAllowThreads();
41961 (arg1)->SetVisitedColour((wxColour const &)*arg2);
41962 wxPyEndAllowThreads(__tstate);
41963 if (PyErr_Occurred()) SWIG_fail;
41964 }
41965 resultobj = SWIG_Py_Void();
41966 return resultobj;
41967fail:
41968 return NULL;
41969}
41970
41971
41972SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41973 PyObject *resultobj = 0;
41974 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41975 wxString result;
41976 void *argp1 = 0 ;
41977 int res1 = 0 ;
41978 PyObject *swig_obj[1] ;
41979
41980 if (!args) SWIG_fail;
41981 swig_obj[0] = args;
41982 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41983 if (!SWIG_IsOK(res1)) {
41984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41985 }
41986 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41987 {
41988 PyThreadState* __tstate = wxPyBeginAllowThreads();
41989 result = ((wxHyperlinkCtrl const *)arg1)->GetURL();
41990 wxPyEndAllowThreads(__tstate);
41991 if (PyErr_Occurred()) SWIG_fail;
41992 }
41993 {
41994#if wxUSE_UNICODE
41995 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
41996#else
41997 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
41998#endif
41999 }
42000 return resultobj;
42001fail:
42002 return NULL;
42003}
42004
42005
42006SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42007 PyObject *resultobj = 0;
42008 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42009 wxString *arg2 = 0 ;
42010 void *argp1 = 0 ;
42011 int res1 = 0 ;
42012 bool temp2 = false ;
42013 PyObject * obj0 = 0 ;
42014 PyObject * obj1 = 0 ;
42015 char * kwnames[] = {
42016 (char *) "self",(char *) "url", NULL
42017 };
42018
42019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42021 if (!SWIG_IsOK(res1)) {
42022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42023 }
42024 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42025 {
42026 arg2 = wxString_in_helper(obj1);
42027 if (arg2 == NULL) SWIG_fail;
42028 temp2 = true;
42029 }
42030 {
42031 PyThreadState* __tstate = wxPyBeginAllowThreads();
42032 (arg1)->SetURL((wxString const &)*arg2);
42033 wxPyEndAllowThreads(__tstate);
42034 if (PyErr_Occurred()) SWIG_fail;
42035 }
42036 resultobj = SWIG_Py_Void();
42037 {
42038 if (temp2)
42039 delete arg2;
42040 }
42041 return resultobj;
42042fail:
42043 {
42044 if (temp2)
42045 delete arg2;
42046 }
42047 return NULL;
42048}
42049
42050
42051SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42052 PyObject *resultobj = 0;
42053 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42054 bool arg2 = (bool) true ;
42055 void *argp1 = 0 ;
42056 int res1 = 0 ;
42057 bool val2 ;
42058 int ecode2 = 0 ;
42059 PyObject * obj0 = 0 ;
42060 PyObject * obj1 = 0 ;
42061 char * kwnames[] = {
42062 (char *) "self",(char *) "visited", NULL
42063 };
42064
42065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:HyperlinkCtrl_SetVisited",kwnames,&obj0,&obj1)) SWIG_fail;
42066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42067 if (!SWIG_IsOK(res1)) {
42068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42069 }
42070 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42071 if (obj1) {
42072 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42073 if (!SWIG_IsOK(ecode2)) {
42074 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "2"" of type '" "bool""'");
42075 }
42076 arg2 = static_cast< bool >(val2);
42077 }
42078 {
42079 PyThreadState* __tstate = wxPyBeginAllowThreads();
42080 (arg1)->SetVisited(arg2);
42081 wxPyEndAllowThreads(__tstate);
42082 if (PyErr_Occurred()) SWIG_fail;
42083 }
42084 resultobj = SWIG_Py_Void();
42085 return resultobj;
42086fail:
42087 return NULL;
42088}
42089
42090
42091SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42092 PyObject *resultobj = 0;
42093 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42094 bool result;
42095 void *argp1 = 0 ;
42096 int res1 = 0 ;
42097 PyObject *swig_obj[1] ;
42098
42099 if (!args) SWIG_fail;
42100 swig_obj[0] = args;
42101 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42102 if (!SWIG_IsOK(res1)) {
42103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42104 }
42105 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42106 {
42107 PyThreadState* __tstate = wxPyBeginAllowThreads();
42108 result = (bool)((wxHyperlinkCtrl const *)arg1)->GetVisited();
42109 wxPyEndAllowThreads(__tstate);
42110 if (PyErr_Occurred()) SWIG_fail;
42111 }
42112 {
42113 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42114 }
42115 return resultobj;
42116fail:
42117 return NULL;
42118}
42119
42120
42121SWIGINTERN PyObject *HyperlinkCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42122 PyObject *obj;
42123 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42124 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkCtrl, SWIG_NewClientData(obj));
42125 return SWIG_Py_Void();
42126}
42127
42128SWIGINTERN PyObject *HyperlinkCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42129 return SWIG_Python_InitShadowInstance(args);
42130}
42131
42132SWIGINTERN PyObject *_wrap_new_HyperlinkEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42133 PyObject *resultobj = 0;
42134 wxObject *arg1 = (wxObject *) 0 ;
42135 int arg2 ;
42136 wxString *arg3 = 0 ;
42137 wxHyperlinkEvent *result = 0 ;
42138 void *argp1 = 0 ;
42139 int res1 = 0 ;
42140 int val2 ;
42141 int ecode2 = 0 ;
42142 bool temp3 = false ;
42143 PyObject * obj0 = 0 ;
42144 PyObject * obj1 = 0 ;
42145 PyObject * obj2 = 0 ;
42146 char * kwnames[] = {
42147 (char *) "generator",(char *) "id",(char *) "url", NULL
42148 };
42149
42150 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_HyperlinkEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
42151 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
42152 if (!SWIG_IsOK(res1)) {
42153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkEvent" "', expected argument " "1"" of type '" "wxObject *""'");
42154 }
42155 arg1 = reinterpret_cast< wxObject * >(argp1);
42156 ecode2 = SWIG_AsVal_int(obj1, &val2);
42157 if (!SWIG_IsOK(ecode2)) {
42158 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkEvent" "', expected argument " "2"" of type '" "int""'");
42159 }
42160 arg2 = static_cast< int >(val2);
42161 {
42162 arg3 = wxString_in_helper(obj2);
42163 if (arg3 == NULL) SWIG_fail;
42164 temp3 = true;
42165 }
42166 {
42167 PyThreadState* __tstate = wxPyBeginAllowThreads();
42168 result = (wxHyperlinkEvent *)new wxHyperlinkEvent(arg1,arg2,(wxString const &)*arg3);
42169 wxPyEndAllowThreads(__tstate);
42170 if (PyErr_Occurred()) SWIG_fail;
42171 }
42172 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkEvent, SWIG_POINTER_NEW | 0 );
42173 {
42174 if (temp3)
42175 delete arg3;
42176 }
42177 return resultobj;
42178fail:
42179 {
42180 if (temp3)
42181 delete arg3;
42182 }
42183 return NULL;
42184}
42185
42186
42187SWIGINTERN PyObject *_wrap_HyperlinkEvent_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42188 PyObject *resultobj = 0;
42189 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42190 wxString result;
42191 void *argp1 = 0 ;
42192 int res1 = 0 ;
42193 PyObject *swig_obj[1] ;
42194
42195 if (!args) SWIG_fail;
42196 swig_obj[0] = args;
42197 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42198 if (!SWIG_IsOK(res1)) {
42199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent const *""'");
42200 }
42201 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42202 {
42203 PyThreadState* __tstate = wxPyBeginAllowThreads();
42204 result = ((wxHyperlinkEvent const *)arg1)->GetURL();
42205 wxPyEndAllowThreads(__tstate);
42206 if (PyErr_Occurred()) SWIG_fail;
42207 }
42208 {
42209#if wxUSE_UNICODE
42210 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42211#else
42212 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42213#endif
42214 }
42215 return resultobj;
42216fail:
42217 return NULL;
42218}
42219
42220
42221SWIGINTERN PyObject *_wrap_HyperlinkEvent_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42222 PyObject *resultobj = 0;
42223 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42224 wxString *arg2 = 0 ;
42225 void *argp1 = 0 ;
42226 int res1 = 0 ;
42227 bool temp2 = false ;
42228 PyObject * obj0 = 0 ;
42229 PyObject * obj1 = 0 ;
42230 char * kwnames[] = {
42231 (char *) "self",(char *) "url", NULL
42232 };
42233
42234 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkEvent_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42235 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42236 if (!SWIG_IsOK(res1)) {
42237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent *""'");
42238 }
42239 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42240 {
42241 arg2 = wxString_in_helper(obj1);
42242 if (arg2 == NULL) SWIG_fail;
42243 temp2 = true;
42244 }
42245 {
42246 PyThreadState* __tstate = wxPyBeginAllowThreads();
42247 (arg1)->SetURL((wxString const &)*arg2);
42248 wxPyEndAllowThreads(__tstate);
42249 if (PyErr_Occurred()) SWIG_fail;
42250 }
42251 resultobj = SWIG_Py_Void();
42252 {
42253 if (temp2)
42254 delete arg2;
42255 }
42256 return resultobj;
42257fail:
42258 {
42259 if (temp2)
42260 delete arg2;
42261 }
42262 return NULL;
42263}
42264
42265
42266SWIGINTERN PyObject *HyperlinkEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42267 PyObject *obj;
42268 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42269 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkEvent, SWIG_NewClientData(obj));
42270 return SWIG_Py_Void();
42271}
42272
42273SWIGINTERN PyObject *HyperlinkEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42274 return SWIG_Python_InitShadowInstance(args);
42275}
42276
b850e7f3
RD
42277SWIGINTERN PyObject *_wrap_PickerBase_CreateBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42278 PyObject *resultobj = 0;
42279 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42280 wxWindow *arg2 = (wxWindow *) 0 ;
42281 int arg3 ;
42282 wxString const &arg4_defvalue = wxEmptyString ;
42283 wxString *arg4 = (wxString *) &arg4_defvalue ;
42284 wxPoint const &arg5_defvalue = wxDefaultPosition ;
42285 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
42286 wxSize const &arg6_defvalue = wxDefaultSize ;
42287 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
42288 long arg7 = (long) 0 ;
42289 wxValidator const &arg8_defvalue = wxDefaultValidator ;
42290 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
42291 wxString const &arg9_defvalue = wxButtonNameStr ;
42292 wxString *arg9 = (wxString *) &arg9_defvalue ;
42293 bool result;
42294 void *argp1 = 0 ;
42295 int res1 = 0 ;
42296 void *argp2 = 0 ;
42297 int res2 = 0 ;
42298 int val3 ;
42299 int ecode3 = 0 ;
42300 bool temp4 = false ;
42301 wxPoint temp5 ;
42302 wxSize temp6 ;
42303 long val7 ;
42304 int ecode7 = 0 ;
42305 void *argp8 = 0 ;
42306 int res8 = 0 ;
42307 bool temp9 = false ;
42308 PyObject * obj0 = 0 ;
42309 PyObject * obj1 = 0 ;
42310 PyObject * obj2 = 0 ;
42311 PyObject * obj3 = 0 ;
42312 PyObject * obj4 = 0 ;
42313 PyObject * obj5 = 0 ;
42314 PyObject * obj6 = 0 ;
42315 PyObject * obj7 = 0 ;
42316 PyObject * obj8 = 0 ;
42317 char * kwnames[] = {
42318 (char *) "self",(char *) "parent",(char *) "id",(char *) "text",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
42319 };
42320
42321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:PickerBase_CreateBase",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
42322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42323 if (!SWIG_IsOK(res1)) {
42324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_CreateBase" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42325 }
42326 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42327 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
42328 if (!SWIG_IsOK(res2)) {
42329 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PickerBase_CreateBase" "', expected argument " "2"" of type '" "wxWindow *""'");
42330 }
42331 arg2 = reinterpret_cast< wxWindow * >(argp2);
42332 ecode3 = SWIG_AsVal_int(obj2, &val3);
42333 if (!SWIG_IsOK(ecode3)) {
42334 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PickerBase_CreateBase" "', expected argument " "3"" of type '" "int""'");
42335 }
42336 arg3 = static_cast< int >(val3);
42337 if (obj3) {
42338 {
42339 arg4 = wxString_in_helper(obj3);
42340 if (arg4 == NULL) SWIG_fail;
42341 temp4 = true;
42342 }
42343 }
42344 if (obj4) {
42345 {
42346 arg5 = &temp5;
42347 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
42348 }
42349 }
42350 if (obj5) {
42351 {
42352 arg6 = &temp6;
42353 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
42354 }
42355 }
42356 if (obj6) {
42357 ecode7 = SWIG_AsVal_long(obj6, &val7);
42358 if (!SWIG_IsOK(ecode7)) {
42359 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PickerBase_CreateBase" "', expected argument " "7"" of type '" "long""'");
42360 }
42361 arg7 = static_cast< long >(val7);
42362 }
42363 if (obj7) {
42364 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
42365 if (!SWIG_IsOK(res8)) {
42366 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42367 }
42368 if (!argp8) {
42369 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42370 }
42371 arg8 = reinterpret_cast< wxValidator * >(argp8);
42372 }
42373 if (obj8) {
42374 {
42375 arg9 = wxString_in_helper(obj8);
42376 if (arg9 == NULL) SWIG_fail;
42377 temp9 = true;
42378 }
42379 }
42380 {
42381 PyThreadState* __tstate = wxPyBeginAllowThreads();
42382 result = (bool)(arg1)->CreateBase(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
42383 wxPyEndAllowThreads(__tstate);
42384 if (PyErr_Occurred()) SWIG_fail;
42385 }
42386 {
42387 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42388 }
42389 {
42390 if (temp4)
42391 delete arg4;
42392 }
42393 {
42394 if (temp9)
42395 delete arg9;
42396 }
42397 return resultobj;
42398fail:
42399 {
42400 if (temp4)
42401 delete arg4;
42402 }
42403 {
42404 if (temp9)
42405 delete arg9;
42406 }
42407 return NULL;
42408}
42409
42410
42411SWIGINTERN PyObject *_wrap_PickerBase_SetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42412 PyObject *resultobj = 0;
42413 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42414 int arg2 ;
42415 void *argp1 = 0 ;
42416 int res1 = 0 ;
42417 int val2 ;
42418 int ecode2 = 0 ;
42419 PyObject * obj0 = 0 ;
42420 PyObject * obj1 = 0 ;
42421 char * kwnames[] = {
42422 (char *) "self",(char *) "newmargin", NULL
42423 };
42424
42425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetInternalMargin",kwnames,&obj0,&obj1)) SWIG_fail;
42426 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42427 if (!SWIG_IsOK(res1)) {
42428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42429 }
42430 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42431 ecode2 = SWIG_AsVal_int(obj1, &val2);
42432 if (!SWIG_IsOK(ecode2)) {
42433 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "2"" of type '" "int""'");
42434 }
42435 arg2 = static_cast< int >(val2);
42436 {
42437 PyThreadState* __tstate = wxPyBeginAllowThreads();
42438 (arg1)->SetInternalMargin(arg2);
42439 wxPyEndAllowThreads(__tstate);
42440 if (PyErr_Occurred()) SWIG_fail;
42441 }
42442 resultobj = SWIG_Py_Void();
42443 return resultobj;
42444fail:
42445 return NULL;
42446}
42447
42448
42449SWIGINTERN PyObject *_wrap_PickerBase_GetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42450 PyObject *resultobj = 0;
42451 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42452 int result;
42453 void *argp1 = 0 ;
42454 int res1 = 0 ;
42455 PyObject *swig_obj[1] ;
42456
42457 if (!args) SWIG_fail;
42458 swig_obj[0] = args;
42459 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42460 if (!SWIG_IsOK(res1)) {
42461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42462 }
42463 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42464 {
42465 PyThreadState* __tstate = wxPyBeginAllowThreads();
42466 result = (int)((wxPickerBase const *)arg1)->GetInternalMargin();
42467 wxPyEndAllowThreads(__tstate);
42468 if (PyErr_Occurred()) SWIG_fail;
42469 }
42470 resultobj = SWIG_From_int(static_cast< int >(result));
42471 return resultobj;
42472fail:
42473 return NULL;
42474}
42475
42476
42477SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42478 PyObject *resultobj = 0;
42479 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42480 int arg2 ;
42481 void *argp1 = 0 ;
42482 int res1 = 0 ;
42483 int val2 ;
42484 int ecode2 = 0 ;
42485 PyObject * obj0 = 0 ;
42486 PyObject * obj1 = 0 ;
42487 char * kwnames[] = {
42488 (char *) "self",(char *) "prop", NULL
42489 };
42490
42491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetTextCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
42492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42493 if (!SWIG_IsOK(res1)) {
42494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42495 }
42496 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42497 ecode2 = SWIG_AsVal_int(obj1, &val2);
42498 if (!SWIG_IsOK(ecode2)) {
42499 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "2"" of type '" "int""'");
42500 }
42501 arg2 = static_cast< int >(val2);
42502 {
42503 PyThreadState* __tstate = wxPyBeginAllowThreads();
42504 (arg1)->SetTextCtrlProportion(arg2);
42505 wxPyEndAllowThreads(__tstate);
42506 if (PyErr_Occurred()) SWIG_fail;
42507 }
42508 resultobj = SWIG_Py_Void();
42509 return resultobj;
42510fail:
42511 return NULL;
42512}
42513
42514
42515SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42516 PyObject *resultobj = 0;
42517 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42518 int result;
42519 void *argp1 = 0 ;
42520 int res1 = 0 ;
42521 PyObject *swig_obj[1] ;
42522
42523 if (!args) SWIG_fail;
42524 swig_obj[0] = args;
42525 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42526 if (!SWIG_IsOK(res1)) {
42527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42528 }
42529 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42530 {
42531 PyThreadState* __tstate = wxPyBeginAllowThreads();
42532 result = (int)((wxPickerBase const *)arg1)->GetTextCtrlProportion();
42533 wxPyEndAllowThreads(__tstate);
42534 if (PyErr_Occurred()) SWIG_fail;
42535 }
42536 resultobj = SWIG_From_int(static_cast< int >(result));
42537 return resultobj;
42538fail:
42539 return NULL;
42540}
42541
42542
b02396e8
RD
42543SWIGINTERN PyObject *_wrap_PickerBase_IsTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42544 PyObject *resultobj = 0;
42545 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42546 bool result;
42547 void *argp1 = 0 ;
42548 int res1 = 0 ;
42549 PyObject *swig_obj[1] ;
42550
42551 if (!args) SWIG_fail;
42552 swig_obj[0] = args;
42553 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42554 if (!SWIG_IsOK(res1)) {
42555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42556 }
42557 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42558 {
42559 PyThreadState* __tstate = wxPyBeginAllowThreads();
42560 result = (bool)((wxPickerBase const *)arg1)->IsTextCtrlGrowable();
42561 wxPyEndAllowThreads(__tstate);
42562 if (PyErr_Occurred()) SWIG_fail;
42563 }
42564 {
42565 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42566 }
42567 return resultobj;
42568fail:
42569 return NULL;
42570}
42571
42572
42573SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42574 PyObject *resultobj = 0;
42575 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42576 bool arg2 = (bool) true ;
42577 void *argp1 = 0 ;
42578 int res1 = 0 ;
42579 bool val2 ;
42580 int ecode2 = 0 ;
42581 PyObject * obj0 = 0 ;
42582 PyObject * obj1 = 0 ;
42583 char * kwnames[] = {
42584 (char *) "self",(char *) "grow", NULL
42585 };
42586
42587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetTextCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
42588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42589 if (!SWIG_IsOK(res1)) {
42590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42591 }
42592 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42593 if (obj1) {
42594 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42595 if (!SWIG_IsOK(ecode2)) {
42596 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
42597 }
42598 arg2 = static_cast< bool >(val2);
42599 }
42600 {
42601 PyThreadState* __tstate = wxPyBeginAllowThreads();
42602 (arg1)->SetTextCtrlGrowable(arg2);
42603 wxPyEndAllowThreads(__tstate);
42604 if (PyErr_Occurred()) SWIG_fail;
42605 }
42606 resultobj = SWIG_Py_Void();
42607 return resultobj;
42608fail:
42609 return NULL;
42610}
42611
42612
42613SWIGINTERN PyObject *_wrap_PickerBase_IsPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42614 PyObject *resultobj = 0;
42615 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42616 bool result;
42617 void *argp1 = 0 ;
42618 int res1 = 0 ;
42619 PyObject *swig_obj[1] ;
42620
42621 if (!args) SWIG_fail;
42622 swig_obj[0] = args;
42623 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42624 if (!SWIG_IsOK(res1)) {
42625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42626 }
42627 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42628 {
42629 PyThreadState* __tstate = wxPyBeginAllowThreads();
42630 result = (bool)((wxPickerBase const *)arg1)->IsPickerCtrlGrowable();
42631 wxPyEndAllowThreads(__tstate);
42632 if (PyErr_Occurred()) SWIG_fail;
42633 }
42634 {
42635 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42636 }
42637 return resultobj;
42638fail:
42639 return NULL;
42640}
42641
42642
42643SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42644 PyObject *resultobj = 0;
42645 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42646 bool arg2 = (bool) true ;
42647 void *argp1 = 0 ;
42648 int res1 = 0 ;
42649 bool val2 ;
42650 int ecode2 = 0 ;
42651 PyObject * obj0 = 0 ;
42652 PyObject * obj1 = 0 ;
42653 char * kwnames[] = {
42654 (char *) "self",(char *) "grow", NULL
42655 };
42656
42657 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetPickerCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
42658 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42659 if (!SWIG_IsOK(res1)) {
42660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42661 }
42662 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42663 if (obj1) {
42664 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42665 if (!SWIG_IsOK(ecode2)) {
42666 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
42667 }
42668 arg2 = static_cast< bool >(val2);
42669 }
42670 {
42671 PyThreadState* __tstate = wxPyBeginAllowThreads();
42672 (arg1)->SetPickerCtrlGrowable(arg2);
42673 wxPyEndAllowThreads(__tstate);
42674 if (PyErr_Occurred()) SWIG_fail;
42675 }
42676 resultobj = SWIG_Py_Void();
42677 return resultobj;
42678fail:
42679 return NULL;
42680}
42681
42682
b850e7f3
RD
42683SWIGINTERN PyObject *_wrap_PickerBase_HasTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42684 PyObject *resultobj = 0;
42685 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42686 bool result;
42687 void *argp1 = 0 ;
42688 int res1 = 0 ;
42689 PyObject *swig_obj[1] ;
42690
42691 if (!args) SWIG_fail;
42692 swig_obj[0] = args;
42693 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42694 if (!SWIG_IsOK(res1)) {
42695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_HasTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42696 }
42697 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42698 {
42699 PyThreadState* __tstate = wxPyBeginAllowThreads();
42700 result = (bool)((wxPickerBase const *)arg1)->HasTextCtrl();
42701 wxPyEndAllowThreads(__tstate);
42702 if (PyErr_Occurred()) SWIG_fail;
42703 }
42704 {
42705 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42706 }
42707 return resultobj;
42708fail:
42709 return NULL;
42710}
42711
42712
42713SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42714 PyObject *resultobj = 0;
42715 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42716 wxTextCtrl *result = 0 ;
42717 void *argp1 = 0 ;
42718 int res1 = 0 ;
42719 PyObject *swig_obj[1] ;
42720
42721 if (!args) SWIG_fail;
42722 swig_obj[0] = args;
42723 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42724 if (!SWIG_IsOK(res1)) {
42725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42726 }
42727 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42728 {
42729 PyThreadState* __tstate = wxPyBeginAllowThreads();
42730 result = (wxTextCtrl *)(arg1)->GetTextCtrl();
42731 wxPyEndAllowThreads(__tstate);
42732 if (PyErr_Occurred()) SWIG_fail;
42733 }
42734 {
42735 resultobj = wxPyMake_wxObject(result, 0);
42736 }
42737 return resultobj;
42738fail:
42739 return NULL;
42740}
42741
42742
42743SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42744 PyObject *resultobj = 0;
42745 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42746 wxControl *result = 0 ;
42747 void *argp1 = 0 ;
42748 int res1 = 0 ;
42749 PyObject *swig_obj[1] ;
42750
42751 if (!args) SWIG_fail;
42752 swig_obj[0] = args;
42753 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42754 if (!SWIG_IsOK(res1)) {
42755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42756 }
42757 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42758 {
42759 PyThreadState* __tstate = wxPyBeginAllowThreads();
42760 result = (wxControl *)(arg1)->GetPickerCtrl();
42761 wxPyEndAllowThreads(__tstate);
42762 if (PyErr_Occurred()) SWIG_fail;
42763 }
42764 {
42765 resultobj = wxPyMake_wxObject(result, 0);
42766 }
42767 return resultobj;
42768fail:
42769 return NULL;
42770}
42771
42772
42773SWIGINTERN PyObject *PickerBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42774 PyObject *obj;
42775 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42776 SWIG_TypeNewClientData(SWIGTYPE_p_wxPickerBase, SWIG_NewClientData(obj));
42777 return SWIG_Py_Void();
42778}
42779
42780SWIGINTERN int ColourPickerCtrlNameStr_set(PyObject *) {
42781 SWIG_Error(SWIG_AttributeError,"Variable ColourPickerCtrlNameStr is read-only.");
42782 return 1;
42783}
42784
42785
42786SWIGINTERN PyObject *ColourPickerCtrlNameStr_get(void) {
42787 PyObject *pyobj = 0;
42788
42789 {
42790#if wxUSE_UNICODE
42791 pyobj = PyUnicode_FromWideChar((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
42792#else
42793 pyobj = PyString_FromStringAndSize((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
42794#endif
42795 }
42796 return pyobj;
42797}
42798
42799
42800SWIGINTERN PyObject *_wrap_new_ColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42801 PyObject *resultobj = 0;
42802 wxWindow *arg1 = (wxWindow *) 0 ;
42803 int arg2 = (int) -1 ;
42804 wxColour const &arg3_defvalue = *wxBLACK ;
42805 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
42806 wxPoint const &arg4_defvalue = wxDefaultPosition ;
42807 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
42808 wxSize const &arg5_defvalue = wxDefaultSize ;
42809 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
42810 long arg6 = (long) wxCLRP_DEFAULT_STYLE ;
42811 wxValidator const &arg7_defvalue = wxDefaultValidator ;
42812 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
42813 wxString const &arg8_defvalue = wxPyColourPickerCtrlNameStr ;
42814 wxString *arg8 = (wxString *) &arg8_defvalue ;
42815 wxColourPickerCtrl *result = 0 ;
42816 void *argp1 = 0 ;
42817 int res1 = 0 ;
42818 int val2 ;
42819 int ecode2 = 0 ;
42820 wxColour temp3 ;
42821 wxPoint temp4 ;
42822 wxSize temp5 ;
42823 long val6 ;
42824 int ecode6 = 0 ;
42825 void *argp7 = 0 ;
42826 int res7 = 0 ;
42827 bool temp8 = false ;
42828 PyObject * obj0 = 0 ;
42829 PyObject * obj1 = 0 ;
42830 PyObject * obj2 = 0 ;
42831 PyObject * obj3 = 0 ;
42832 PyObject * obj4 = 0 ;
42833 PyObject * obj5 = 0 ;
42834 PyObject * obj6 = 0 ;
42835 PyObject * obj7 = 0 ;
42836 char * kwnames[] = {
42837 (char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
42838 };
42839
42840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ColourPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
42841 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
42842 if (!SWIG_IsOK(res1)) {
42843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
42844 }
42845 arg1 = reinterpret_cast< wxWindow * >(argp1);
42846 if (obj1) {
42847 ecode2 = SWIG_AsVal_int(obj1, &val2);
42848 if (!SWIG_IsOK(ecode2)) {
42849 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerCtrl" "', expected argument " "2"" of type '" "int""'");
42850 }
42851 arg2 = static_cast< int >(val2);
42852 }
42853 if (obj2) {
42854 {
42855 arg3 = &temp3;
42856 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
42857 }
42858 }
42859 if (obj3) {
42860 {
42861 arg4 = &temp4;
42862 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
42863 }
42864 }
42865 if (obj4) {
42866 {
42867 arg5 = &temp5;
42868 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
42869 }
42870 }
42871 if (obj5) {
42872 ecode6 = SWIG_AsVal_long(obj5, &val6);
42873 if (!SWIG_IsOK(ecode6)) {
42874 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ColourPickerCtrl" "', expected argument " "6"" of type '" "long""'");
42875 }
42876 arg6 = static_cast< long >(val6);
42877 }
42878 if (obj6) {
42879 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
42880 if (!SWIG_IsOK(res7)) {
42881 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
42882 }
42883 if (!argp7) {
42884 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
42885 }
42886 arg7 = reinterpret_cast< wxValidator * >(argp7);
42887 }
42888 if (obj7) {
42889 {
42890 arg8 = wxString_in_helper(obj7);
42891 if (arg8 == NULL) SWIG_fail;
42892 temp8 = true;
42893 }
42894 }
42895 {
42896 if (!wxPyCheckForApp()) SWIG_fail;
42897 PyThreadState* __tstate = wxPyBeginAllowThreads();
42898 result = (wxColourPickerCtrl *)new wxColourPickerCtrl(arg1,arg2,(wxColour const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
42899 wxPyEndAllowThreads(__tstate);
42900 if (PyErr_Occurred()) SWIG_fail;
42901 }
42902 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_NEW | 0 );
42903 {
42904 if (temp8)
42905 delete arg8;
42906 }
42907 return resultobj;
42908fail:
42909 {
42910 if (temp8)
42911 delete arg8;
42912 }
42913 return NULL;
42914}
42915
42916
42917SWIGINTERN PyObject *_wrap_new_PreColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42918 PyObject *resultobj = 0;
42919 wxColourPickerCtrl *result = 0 ;
42920
42921 if (!SWIG_Python_UnpackTuple(args,"new_PreColourPickerCtrl",0,0,0)) SWIG_fail;
42922 {
42923 if (!wxPyCheckForApp()) SWIG_fail;
42924 PyThreadState* __tstate = wxPyBeginAllowThreads();
42925 result = (wxColourPickerCtrl *)new wxColourPickerCtrl();
42926 wxPyEndAllowThreads(__tstate);
42927 if (PyErr_Occurred()) SWIG_fail;
42928 }
42929 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_OWN | 0 );
42930 return resultobj;
42931fail:
42932 return NULL;
42933}
42934
42935
42936SWIGINTERN PyObject *_wrap_ColourPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42937 PyObject *resultobj = 0;
42938 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
42939 wxWindow *arg2 = (wxWindow *) 0 ;
42940 int arg3 ;
42941 wxColour const &arg4_defvalue = *wxBLACK ;
42942 wxColour *arg4 = (wxColour *) &arg4_defvalue ;
42943 wxPoint const &arg5_defvalue = wxDefaultPosition ;
42944 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
42945 wxSize const &arg6_defvalue = wxDefaultSize ;
42946 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
42947 long arg7 = (long) wxCLRP_DEFAULT_STYLE ;
42948 wxValidator const &arg8_defvalue = wxDefaultValidator ;
42949 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
42950 wxString const &arg9_defvalue = wxPyColourPickerCtrlNameStr ;
42951 wxString *arg9 = (wxString *) &arg9_defvalue ;
42952 bool result;
42953 void *argp1 = 0 ;
42954 int res1 = 0 ;
42955 void *argp2 = 0 ;
42956 int res2 = 0 ;
42957 int val3 ;
42958 int ecode3 = 0 ;
42959 wxColour temp4 ;
42960 wxPoint temp5 ;
42961 wxSize temp6 ;
42962 long val7 ;
42963 int ecode7 = 0 ;
42964 void *argp8 = 0 ;
42965 int res8 = 0 ;
42966 bool temp9 = false ;
42967 PyObject * obj0 = 0 ;
42968 PyObject * obj1 = 0 ;
42969 PyObject * obj2 = 0 ;
42970 PyObject * obj3 = 0 ;
42971 PyObject * obj4 = 0 ;
42972 PyObject * obj5 = 0 ;
42973 PyObject * obj6 = 0 ;
42974 PyObject * obj7 = 0 ;
42975 PyObject * obj8 = 0 ;
42976 char * kwnames[] = {
42977 (char *) "self",(char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
42978 };
42979
42980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ColourPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
42981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
42982 if (!SWIG_IsOK(res1)) {
42983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_Create" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
42984 }
42985 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
42986 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
42987 if (!SWIG_IsOK(res2)) {
42988 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ColourPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
42989 }
42990 arg2 = reinterpret_cast< wxWindow * >(argp2);
42991 ecode3 = SWIG_AsVal_int(obj2, &val3);
42992 if (!SWIG_IsOK(ecode3)) {
42993 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
42994 }
42995 arg3 = static_cast< int >(val3);
42996 if (obj3) {
42997 {
42998 arg4 = &temp4;
42999 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
43000 }
43001 }
43002 if (obj4) {
43003 {
43004 arg5 = &temp5;
43005 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
43006 }
43007 }
43008 if (obj5) {
43009 {
43010 arg6 = &temp6;
43011 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
43012 }
43013 }
43014 if (obj6) {
43015 ecode7 = SWIG_AsVal_long(obj6, &val7);
43016 if (!SWIG_IsOK(ecode7)) {
43017 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ColourPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
43018 }
43019 arg7 = static_cast< long >(val7);
43020 }
43021 if (obj7) {
43022 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
43023 if (!SWIG_IsOK(res8)) {
43024 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43025 }
43026 if (!argp8) {
43027 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43028 }
43029 arg8 = reinterpret_cast< wxValidator * >(argp8);
43030 }
43031 if (obj8) {
43032 {
43033 arg9 = wxString_in_helper(obj8);
43034 if (arg9 == NULL) SWIG_fail;
43035 temp9 = true;
43036 }
43037 }
43038 {
43039 PyThreadState* __tstate = wxPyBeginAllowThreads();
43040 result = (bool)(arg1)->Create(arg2,arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
43041 wxPyEndAllowThreads(__tstate);
43042 if (PyErr_Occurred()) SWIG_fail;
43043 }
43044 {
43045 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43046 }
43047 {
43048 if (temp9)
43049 delete arg9;
43050 }
43051 return resultobj;
43052fail:
43053 {
43054 if (temp9)
43055 delete arg9;
43056 }
43057 return NULL;
43058}
43059
43060
43061SWIGINTERN PyObject *_wrap_ColourPickerCtrl_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43062 PyObject *resultobj = 0;
43063 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43064 wxColour result;
43065 void *argp1 = 0 ;
43066 int res1 = 0 ;
43067 PyObject *swig_obj[1] ;
43068
43069 if (!args) SWIG_fail;
43070 swig_obj[0] = args;
43071 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43072 if (!SWIG_IsOK(res1)) {
43073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_GetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl const *""'");
43074 }
43075 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43076 {
43077 PyThreadState* __tstate = wxPyBeginAllowThreads();
43078 result = ((wxColourPickerCtrl const *)arg1)->GetColour();
43079 wxPyEndAllowThreads(__tstate);
43080 if (PyErr_Occurred()) SWIG_fail;
43081 }
43082 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43083 return resultobj;
43084fail:
43085 return NULL;
43086}
43087
43088
43089SWIGINTERN PyObject *_wrap_ColourPickerCtrl_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43090 PyObject *resultobj = 0;
43091 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43092 wxColour *arg2 = 0 ;
43093 void *argp1 = 0 ;
43094 int res1 = 0 ;
43095 wxColour temp2 ;
43096 PyObject * obj0 = 0 ;
43097 PyObject * obj1 = 0 ;
43098 char * kwnames[] = {
43099 (char *) "self",(char *) "col", NULL
43100 };
43101
43102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerCtrl_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43104 if (!SWIG_IsOK(res1)) {
43105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_SetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43106 }
43107 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43108 {
43109 arg2 = &temp2;
43110 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43111 }
43112 {
43113 PyThreadState* __tstate = wxPyBeginAllowThreads();
43114 (arg1)->SetColour((wxColour const &)*arg2);
43115 wxPyEndAllowThreads(__tstate);
43116 if (PyErr_Occurred()) SWIG_fail;
43117 }
43118 resultobj = SWIG_Py_Void();
43119 return resultobj;
43120fail:
43121 return NULL;
43122}
43123
43124
43125SWIGINTERN PyObject *ColourPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43126 PyObject *obj;
43127 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43128 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerCtrl, SWIG_NewClientData(obj));
43129 return SWIG_Py_Void();
43130}
43131
43132SWIGINTERN PyObject *ColourPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43133 return SWIG_Python_InitShadowInstance(args);
43134}
43135
43136SWIGINTERN PyObject *_wrap_new_ColourPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43137 PyObject *resultobj = 0;
43138 wxObject *arg1 = (wxObject *) 0 ;
43139 int arg2 ;
43140 wxColour *arg3 = 0 ;
43141 wxColourPickerEvent *result = 0 ;
43142 void *argp1 = 0 ;
43143 int res1 = 0 ;
43144 int val2 ;
43145 int ecode2 = 0 ;
43146 wxColour temp3 ;
43147 PyObject * obj0 = 0 ;
43148 PyObject * obj1 = 0 ;
43149 PyObject * obj2 = 0 ;
43150 char * kwnames[] = {
43151 (char *) "generator",(char *) "id",(char *) "col", NULL
43152 };
43153
43154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ColourPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
43155 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
43156 if (!SWIG_IsOK(res1)) {
43157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
43158 }
43159 arg1 = reinterpret_cast< wxObject * >(argp1);
43160 ecode2 = SWIG_AsVal_int(obj1, &val2);
43161 if (!SWIG_IsOK(ecode2)) {
43162 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerEvent" "', expected argument " "2"" of type '" "int""'");
43163 }
43164 arg2 = static_cast< int >(val2);
43165 {
43166 arg3 = &temp3;
43167 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
43168 }
43169 {
43170 PyThreadState* __tstate = wxPyBeginAllowThreads();
43171 result = (wxColourPickerEvent *)new wxColourPickerEvent(arg1,arg2,(wxColour const &)*arg3);
43172 wxPyEndAllowThreads(__tstate);
43173 if (PyErr_Occurred()) SWIG_fail;
43174 }
43175 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerEvent, SWIG_POINTER_NEW | 0 );
43176 return resultobj;
43177fail:
43178 return NULL;
43179}
43180
43181
43182SWIGINTERN PyObject *_wrap_ColourPickerEvent_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43183 PyObject *resultobj = 0;
43184 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43185 wxColour result;
43186 void *argp1 = 0 ;
43187 int res1 = 0 ;
43188 PyObject *swig_obj[1] ;
43189
43190 if (!args) SWIG_fail;
43191 swig_obj[0] = args;
43192 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43193 if (!SWIG_IsOK(res1)) {
43194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_GetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent const *""'");
43195 }
43196 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43197 {
43198 PyThreadState* __tstate = wxPyBeginAllowThreads();
43199 result = ((wxColourPickerEvent const *)arg1)->GetColour();
43200 wxPyEndAllowThreads(__tstate);
43201 if (PyErr_Occurred()) SWIG_fail;
43202 }
43203 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43204 return resultobj;
43205fail:
43206 return NULL;
43207}
43208
43209
43210SWIGINTERN PyObject *_wrap_ColourPickerEvent_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43211 PyObject *resultobj = 0;
43212 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43213 wxColour *arg2 = 0 ;
43214 void *argp1 = 0 ;
43215 int res1 = 0 ;
43216 wxColour temp2 ;
43217 PyObject * obj0 = 0 ;
43218 PyObject * obj1 = 0 ;
43219 char * kwnames[] = {
43220 (char *) "self",(char *) "c", NULL
43221 };
43222
43223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerEvent_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43225 if (!SWIG_IsOK(res1)) {
43226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_SetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent *""'");
43227 }
43228 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43229 {
43230 arg2 = &temp2;
43231 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43232 }
43233 {
43234 PyThreadState* __tstate = wxPyBeginAllowThreads();
43235 (arg1)->SetColour((wxColour const &)*arg2);
43236 wxPyEndAllowThreads(__tstate);
43237 if (PyErr_Occurred()) SWIG_fail;
43238 }
43239 resultobj = SWIG_Py_Void();
43240 return resultobj;
43241fail:
43242 return NULL;
43243}
43244
43245
43246SWIGINTERN PyObject *ColourPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43247 PyObject *obj;
43248 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43249 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerEvent, SWIG_NewClientData(obj));
43250 return SWIG_Py_Void();
43251}
43252
43253SWIGINTERN PyObject *ColourPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43254 return SWIG_Python_InitShadowInstance(args);
43255}
43256
43257SWIGINTERN int FilePickerCtrlNameStr_set(PyObject *) {
43258 SWIG_Error(SWIG_AttributeError,"Variable FilePickerCtrlNameStr is read-only.");
43259 return 1;
43260}
43261
43262
43263SWIGINTERN PyObject *FilePickerCtrlNameStr_get(void) {
43264 PyObject *pyobj = 0;
43265
43266 {
43267#if wxUSE_UNICODE
43268 pyobj = PyUnicode_FromWideChar((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43269#else
43270 pyobj = PyString_FromStringAndSize((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43271#endif
43272 }
43273 return pyobj;
43274}
43275
43276
43277SWIGINTERN int FileSelectorPromptStr_set(PyObject *) {
43278 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorPromptStr is read-only.");
43279 return 1;
43280}
43281
43282
43283SWIGINTERN PyObject *FileSelectorPromptStr_get(void) {
43284 PyObject *pyobj = 0;
43285
43286 {
43287#if wxUSE_UNICODE
43288 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43289#else
43290 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43291#endif
43292 }
43293 return pyobj;
43294}
43295
43296
43297SWIGINTERN int DirPickerCtrlNameStr_set(PyObject *) {
43298 SWIG_Error(SWIG_AttributeError,"Variable DirPickerCtrlNameStr is read-only.");
43299 return 1;
43300}
43301
43302
43303SWIGINTERN PyObject *DirPickerCtrlNameStr_get(void) {
43304 PyObject *pyobj = 0;
43305
43306 {
43307#if wxUSE_UNICODE
43308 pyobj = PyUnicode_FromWideChar((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43309#else
43310 pyobj = PyString_FromStringAndSize((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43311#endif
43312 }
43313 return pyobj;
43314}
43315
43316
43317SWIGINTERN int DirSelectorPromptStr_set(PyObject *) {
43318 SWIG_Error(SWIG_AttributeError,"Variable DirSelectorPromptStr is read-only.");
43319 return 1;
43320}
43321
43322
43323SWIGINTERN PyObject *DirSelectorPromptStr_get(void) {
43324 PyObject *pyobj = 0;
43325
43326 {
43327#if wxUSE_UNICODE
43328 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43329#else
43330 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43331#endif
43332 }
43333 return pyobj;
43334}
43335
43336
43337SWIGINTERN int FileSelectorDefaultWildcardStr_set(PyObject *) {
43338 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
43339 return 1;
43340}
43341
43342
43343SWIGINTERN PyObject *FileSelectorDefaultWildcardStr_get(void) {
43344 PyObject *pyobj = 0;
43345
43346 {
43347#if wxUSE_UNICODE
43348 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43349#else
43350 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43351#endif
43352 }
43353 return pyobj;
43354}
43355
43356
43357SWIGINTERN PyObject *_wrap_new_FilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43358 PyObject *resultobj = 0;
43359 wxWindow *arg1 = (wxWindow *) 0 ;
43360 int arg2 = (int) -1 ;
43361 wxString const &arg3_defvalue = wxPyEmptyString ;
43362 wxString *arg3 = (wxString *) &arg3_defvalue ;
43363 wxString const &arg4_defvalue = wxPyFileSelectorPromptStr ;
43364 wxString *arg4 = (wxString *) &arg4_defvalue ;
43365 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
43366 wxString *arg5 = (wxString *) &arg5_defvalue ;
43367 wxPoint const &arg6_defvalue = wxDefaultPosition ;
43368 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
43369 wxSize const &arg7_defvalue = wxDefaultSize ;
43370 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
43371 long arg8 = (long) wxFLP_DEFAULT_STYLE ;
43372 wxValidator const &arg9_defvalue = wxDefaultValidator ;
43373 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
43374 wxString const &arg10_defvalue = wxPyFilePickerCtrlNameStr ;
43375 wxString *arg10 = (wxString *) &arg10_defvalue ;
43376 wxFilePickerCtrl *result = 0 ;
43377 void *argp1 = 0 ;
43378 int res1 = 0 ;
43379 int val2 ;
43380 int ecode2 = 0 ;
43381 bool temp3 = false ;
43382 bool temp4 = false ;
43383 bool temp5 = false ;
43384 wxPoint temp6 ;
43385 wxSize temp7 ;
43386 long val8 ;
43387 int ecode8 = 0 ;
43388 void *argp9 = 0 ;
43389 int res9 = 0 ;
43390 bool temp10 = false ;
43391 PyObject * obj0 = 0 ;
43392 PyObject * obj1 = 0 ;
43393 PyObject * obj2 = 0 ;
43394 PyObject * obj3 = 0 ;
43395 PyObject * obj4 = 0 ;
43396 PyObject * obj5 = 0 ;
43397 PyObject * obj6 = 0 ;
43398 PyObject * obj7 = 0 ;
43399 PyObject * obj8 = 0 ;
43400 PyObject * obj9 = 0 ;
43401 char * kwnames[] = {
43402 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43403 };
43404
43405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_FilePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
43406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43407 if (!SWIG_IsOK(res1)) {
43408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FilePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43409 }
43410 arg1 = reinterpret_cast< wxWindow * >(argp1);
43411 if (obj1) {
43412 ecode2 = SWIG_AsVal_int(obj1, &val2);
43413 if (!SWIG_IsOK(ecode2)) {
43414 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FilePickerCtrl" "', expected argument " "2"" of type '" "int""'");
43415 }
43416 arg2 = static_cast< int >(val2);
43417 }
43418 if (obj2) {
43419 {
43420 arg3 = wxString_in_helper(obj2);
43421 if (arg3 == NULL) SWIG_fail;
43422 temp3 = true;
43423 }
43424 }
43425 if (obj3) {
43426 {
43427 arg4 = wxString_in_helper(obj3);
43428 if (arg4 == NULL) SWIG_fail;
43429 temp4 = true;
43430 }
43431 }
43432 if (obj4) {
43433 {
43434 arg5 = wxString_in_helper(obj4);
43435 if (arg5 == NULL) SWIG_fail;
43436 temp5 = true;
43437 }
43438 }
43439 if (obj5) {
43440 {
43441 arg6 = &temp6;
43442 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
43443 }
43444 }
43445 if (obj6) {
43446 {
43447 arg7 = &temp7;
43448 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
43449 }
43450 }
43451 if (obj7) {
43452 ecode8 = SWIG_AsVal_long(obj7, &val8);
43453 if (!SWIG_IsOK(ecode8)) {
43454 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_FilePickerCtrl" "', expected argument " "8"" of type '" "long""'");
43455 }
43456 arg8 = static_cast< long >(val8);
43457 }
43458 if (obj8) {
43459 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
43460 if (!SWIG_IsOK(res9)) {
43461 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
43462 }
43463 if (!argp9) {
43464 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
43465 }
43466 arg9 = reinterpret_cast< wxValidator * >(argp9);
43467 }
43468 if (obj9) {
43469 {
43470 arg10 = wxString_in_helper(obj9);
43471 if (arg10 == NULL) SWIG_fail;
43472 temp10 = true;
43473 }
43474 }
43475 {
43476 if (!wxPyCheckForApp()) SWIG_fail;
43477 PyThreadState* __tstate = wxPyBeginAllowThreads();
43478 result = (wxFilePickerCtrl *)new wxFilePickerCtrl(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
43479 wxPyEndAllowThreads(__tstate);
43480 if (PyErr_Occurred()) SWIG_fail;
43481 }
43482 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_NEW | 0 );
43483 {
43484 if (temp3)
43485 delete arg3;
43486 }
43487 {
43488 if (temp4)
43489 delete arg4;
43490 }
43491 {
43492 if (temp5)
43493 delete arg5;
43494 }
43495 {
43496 if (temp10)
43497 delete arg10;
43498 }
43499 return resultobj;
43500fail:
43501 {
43502 if (temp3)
43503 delete arg3;
43504 }
43505 {
43506 if (temp4)
43507 delete arg4;
43508 }
43509 {
43510 if (temp5)
43511 delete arg5;
43512 }
43513 {
43514 if (temp10)
43515 delete arg10;
43516 }
43517 return NULL;
43518}
43519
43520
43521SWIGINTERN PyObject *_wrap_new_PreFilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43522 PyObject *resultobj = 0;
43523 wxFilePickerCtrl *result = 0 ;
43524
43525 if (!SWIG_Python_UnpackTuple(args,"new_PreFilePickerCtrl",0,0,0)) SWIG_fail;
43526 {
43527 if (!wxPyCheckForApp()) SWIG_fail;
43528 PyThreadState* __tstate = wxPyBeginAllowThreads();
43529 result = (wxFilePickerCtrl *)new wxFilePickerCtrl();
43530 wxPyEndAllowThreads(__tstate);
43531 if (PyErr_Occurred()) SWIG_fail;
43532 }
43533 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_OWN | 0 );
43534 return resultobj;
43535fail:
43536 return NULL;
43537}
43538
43539
43540SWIGINTERN PyObject *_wrap_FilePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43541 PyObject *resultobj = 0;
43542 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43543 wxWindow *arg2 = (wxWindow *) 0 ;
43544 int arg3 = (int) -1 ;
43545 wxString const &arg4_defvalue = wxPyEmptyString ;
43546 wxString *arg4 = (wxString *) &arg4_defvalue ;
43547 wxString const &arg5_defvalue = wxPyFileSelectorPromptStr ;
43548 wxString *arg5 = (wxString *) &arg5_defvalue ;
43549 wxString const &arg6_defvalue = wxPyFileSelectorDefaultWildcardStr ;
43550 wxString *arg6 = (wxString *) &arg6_defvalue ;
43551 wxPoint const &arg7_defvalue = wxDefaultPosition ;
43552 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
43553 wxSize const &arg8_defvalue = wxDefaultSize ;
43554 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
43555 long arg9 = (long) wxFLP_DEFAULT_STYLE ;
43556 wxValidator const &arg10_defvalue = wxDefaultValidator ;
43557 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
43558 wxString const &arg11_defvalue = wxPyFilePickerCtrlNameStr ;
43559 wxString *arg11 = (wxString *) &arg11_defvalue ;
43560 bool result;
43561 void *argp1 = 0 ;
43562 int res1 = 0 ;
43563 void *argp2 = 0 ;
43564 int res2 = 0 ;
43565 int val3 ;
43566 int ecode3 = 0 ;
43567 bool temp4 = false ;
43568 bool temp5 = false ;
43569 bool temp6 = false ;
43570 wxPoint temp7 ;
43571 wxSize temp8 ;
43572 long val9 ;
43573 int ecode9 = 0 ;
43574 void *argp10 = 0 ;
43575 int res10 = 0 ;
43576 bool temp11 = false ;
43577 PyObject * obj0 = 0 ;
43578 PyObject * obj1 = 0 ;
43579 PyObject * obj2 = 0 ;
43580 PyObject * obj3 = 0 ;
43581 PyObject * obj4 = 0 ;
43582 PyObject * obj5 = 0 ;
43583 PyObject * obj6 = 0 ;
43584 PyObject * obj7 = 0 ;
43585 PyObject * obj8 = 0 ;
43586 PyObject * obj9 = 0 ;
43587 PyObject * obj10 = 0 ;
43588 char * kwnames[] = {
43589 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43590 };
43591
43592 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:FilePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
43593 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43594 if (!SWIG_IsOK(res1)) {
43595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_Create" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
43596 }
43597 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43598 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
43599 if (!SWIG_IsOK(res2)) {
43600 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FilePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
43601 }
43602 arg2 = reinterpret_cast< wxWindow * >(argp2);
43603 if (obj2) {
43604 ecode3 = SWIG_AsVal_int(obj2, &val3);
43605 if (!SWIG_IsOK(ecode3)) {
43606 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FilePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
43607 }
43608 arg3 = static_cast< int >(val3);
43609 }
43610 if (obj3) {
43611 {
43612 arg4 = wxString_in_helper(obj3);
43613 if (arg4 == NULL) SWIG_fail;
43614 temp4 = true;
43615 }
43616 }
43617 if (obj4) {
43618 {
43619 arg5 = wxString_in_helper(obj4);
43620 if (arg5 == NULL) SWIG_fail;
43621 temp5 = true;
43622 }
43623 }
43624 if (obj5) {
43625 {
43626 arg6 = wxString_in_helper(obj5);
43627 if (arg6 == NULL) SWIG_fail;
43628 temp6 = true;
43629 }
43630 }
43631 if (obj6) {
43632 {
43633 arg7 = &temp7;
43634 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
43635 }
43636 }
43637 if (obj7) {
43638 {
43639 arg8 = &temp8;
43640 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
43641 }
43642 }
43643 if (obj8) {
43644 ecode9 = SWIG_AsVal_long(obj8, &val9);
43645 if (!SWIG_IsOK(ecode9)) {
43646 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "FilePickerCtrl_Create" "', expected argument " "9"" of type '" "long""'");
43647 }
43648 arg9 = static_cast< long >(val9);
43649 }
43650 if (obj9) {
43651 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
43652 if (!SWIG_IsOK(res10)) {
43653 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
43654 }
43655 if (!argp10) {
43656 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
43657 }
43658 arg10 = reinterpret_cast< wxValidator * >(argp10);
43659 }
43660 if (obj10) {
43661 {
43662 arg11 = wxString_in_helper(obj10);
43663 if (arg11 == NULL) SWIG_fail;
43664 temp11 = true;
43665 }
43666 }
43667 {
43668 PyThreadState* __tstate = wxPyBeginAllowThreads();
43669 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxString const &)*arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
43670 wxPyEndAllowThreads(__tstate);
43671 if (PyErr_Occurred()) SWIG_fail;
43672 }
43673 {
43674 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43675 }
43676 {
43677 if (temp4)
43678 delete arg4;
43679 }
43680 {
43681 if (temp5)
43682 delete arg5;
43683 }
43684 {
43685 if (temp6)
43686 delete arg6;
43687 }
43688 {
43689 if (temp11)
43690 delete arg11;
43691 }
43692 return resultobj;
43693fail:
43694 {
43695 if (temp4)
43696 delete arg4;
43697 }
43698 {
43699 if (temp5)
43700 delete arg5;
43701 }
43702 {
43703 if (temp6)
43704 delete arg6;
43705 }
43706 {
43707 if (temp11)
43708 delete arg11;
43709 }
43710 return NULL;
43711}
43712
43713
43714SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43715 PyObject *resultobj = 0;
43716 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43717 wxString result;
43718 void *argp1 = 0 ;
43719 int res1 = 0 ;
43720 PyObject *swig_obj[1] ;
43721
43722 if (!args) SWIG_fail;
43723 swig_obj[0] = args;
43724 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43725 if (!SWIG_IsOK(res1)) {
43726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
43727 }
43728 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43729 {
43730 PyThreadState* __tstate = wxPyBeginAllowThreads();
43731 result = ((wxFilePickerCtrl const *)arg1)->GetPath();
43732 wxPyEndAllowThreads(__tstate);
43733 if (PyErr_Occurred()) SWIG_fail;
43734 }
43735 {
43736#if wxUSE_UNICODE
43737 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
43738#else
43739 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
43740#endif
43741 }
43742 return resultobj;
43743fail:
43744 return NULL;
43745}
43746
43747
43748SWIGINTERN PyObject *_wrap_FilePickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43749 PyObject *resultobj = 0;
43750 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43751 wxString *arg2 = 0 ;
43752 void *argp1 = 0 ;
43753 int res1 = 0 ;
43754 bool temp2 = false ;
43755 PyObject * obj0 = 0 ;
43756 PyObject * obj1 = 0 ;
43757 char * kwnames[] = {
43758 (char *) "self",(char *) "str", NULL
43759 };
43760
43761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
43762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43763 if (!SWIG_IsOK(res1)) {
43764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
43765 }
43766 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43767 {
43768 arg2 = wxString_in_helper(obj1);
43769 if (arg2 == NULL) SWIG_fail;
43770 temp2 = true;
43771 }
43772 {
43773 PyThreadState* __tstate = wxPyBeginAllowThreads();
43774 (arg1)->SetPath((wxString const &)*arg2);
43775 wxPyEndAllowThreads(__tstate);
43776 if (PyErr_Occurred()) SWIG_fail;
43777 }
43778 resultobj = SWIG_Py_Void();
43779 {
43780 if (temp2)
43781 delete arg2;
43782 }
43783 return resultobj;
43784fail:
43785 {
43786 if (temp2)
43787 delete arg2;
43788 }
43789 return NULL;
43790}
43791
43792
b02396e8
RD
43793SWIGINTERN PyObject *_wrap_FilePickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43794 PyObject *resultobj = 0;
43795 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43796 wxString *arg2 = 0 ;
43797 bool result;
43798 void *argp1 = 0 ;
43799 int res1 = 0 ;
43800 bool temp2 = false ;
43801 PyObject * obj0 = 0 ;
43802 PyObject * obj1 = 0 ;
43803 char * kwnames[] = {
43804 (char *) "self",(char *) "path", NULL
43805 };
43806
43807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
43808 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43809 if (!SWIG_IsOK(res1)) {
43810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
43811 }
43812 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43813 {
43814 arg2 = wxString_in_helper(obj1);
43815 if (arg2 == NULL) SWIG_fail;
43816 temp2 = true;
43817 }
43818 {
43819 PyThreadState* __tstate = wxPyBeginAllowThreads();
43820 result = (bool)((wxFilePickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
43821 wxPyEndAllowThreads(__tstate);
43822 if (PyErr_Occurred()) SWIG_fail;
43823 }
43824 {
43825 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43826 }
43827 {
43828 if (temp2)
43829 delete arg2;
43830 }
43831 return resultobj;
43832fail:
43833 {
43834 if (temp2)
43835 delete arg2;
43836 }
43837 return NULL;
43838}
43839
43840
43841SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43842 PyObject *resultobj = 0;
43843 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43844 wxString result;
43845 void *argp1 = 0 ;
43846 int res1 = 0 ;
43847 PyObject *swig_obj[1] ;
43848
43849 if (!args) SWIG_fail;
43850 swig_obj[0] = args;
43851 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43852 if (!SWIG_IsOK(res1)) {
43853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
43854 }
43855 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43856 {
43857 PyThreadState* __tstate = wxPyBeginAllowThreads();
43858 result = ((wxFilePickerCtrl const *)arg1)->GetTextCtrlValue();
43859 wxPyEndAllowThreads(__tstate);
43860 if (PyErr_Occurred()) SWIG_fail;
43861 }
43862 {
43863#if wxUSE_UNICODE
43864 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
43865#else
43866 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
43867#endif
43868 }
43869 return resultobj;
43870fail:
43871 return NULL;
43872}
43873
43874
b850e7f3
RD
43875SWIGINTERN PyObject *FilePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43876 PyObject *obj;
43877 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43878 SWIG_TypeNewClientData(SWIGTYPE_p_wxFilePickerCtrl, SWIG_NewClientData(obj));
43879 return SWIG_Py_Void();
43880}
43881
43882SWIGINTERN PyObject *FilePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43883 return SWIG_Python_InitShadowInstance(args);
43884}
43885
43886SWIGINTERN PyObject *_wrap_new_DirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43887 PyObject *resultobj = 0;
43888 wxWindow *arg1 = (wxWindow *) 0 ;
43889 int arg2 = (int) -1 ;
43890 wxString const &arg3_defvalue = wxPyEmptyString ;
43891 wxString *arg3 = (wxString *) &arg3_defvalue ;
43892 wxString const &arg4_defvalue = wxPyDirSelectorPromptStr ;
43893 wxString *arg4 = (wxString *) &arg4_defvalue ;
43894 wxPoint const &arg5_defvalue = wxDefaultPosition ;
43895 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
43896 wxSize const &arg6_defvalue = wxDefaultSize ;
43897 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
43898 long arg7 = (long) wxDIRP_DEFAULT_STYLE ;
43899 wxValidator const &arg8_defvalue = wxDefaultValidator ;
43900 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
43901 wxString const &arg9_defvalue = wxPyDirPickerCtrlNameStr ;
43902 wxString *arg9 = (wxString *) &arg9_defvalue ;
43903 wxDirPickerCtrl *result = 0 ;
43904 void *argp1 = 0 ;
43905 int res1 = 0 ;
43906 int val2 ;
43907 int ecode2 = 0 ;
43908 bool temp3 = false ;
43909 bool temp4 = false ;
43910 wxPoint temp5 ;
43911 wxSize temp6 ;
43912 long val7 ;
43913 int ecode7 = 0 ;
43914 void *argp8 = 0 ;
43915 int res8 = 0 ;
43916 bool temp9 = false ;
43917 PyObject * obj0 = 0 ;
43918 PyObject * obj1 = 0 ;
43919 PyObject * obj2 = 0 ;
43920 PyObject * obj3 = 0 ;
43921 PyObject * obj4 = 0 ;
43922 PyObject * obj5 = 0 ;
43923 PyObject * obj6 = 0 ;
43924 PyObject * obj7 = 0 ;
43925 PyObject * obj8 = 0 ;
43926 char * kwnames[] = {
43927 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43928 };
43929
43930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_DirPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
43931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43932 if (!SWIG_IsOK(res1)) {
43933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43934 }
43935 arg1 = reinterpret_cast< wxWindow * >(argp1);
43936 if (obj1) {
43937 ecode2 = SWIG_AsVal_int(obj1, &val2);
43938 if (!SWIG_IsOK(ecode2)) {
43939 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirPickerCtrl" "', expected argument " "2"" of type '" "int""'");
43940 }
43941 arg2 = static_cast< int >(val2);
43942 }
43943 if (obj2) {
43944 {
43945 arg3 = wxString_in_helper(obj2);
43946 if (arg3 == NULL) SWIG_fail;
43947 temp3 = true;
43948 }
43949 }
43950 if (obj3) {
43951 {
43952 arg4 = wxString_in_helper(obj3);
43953 if (arg4 == NULL) SWIG_fail;
43954 temp4 = true;
43955 }
43956 }
43957 if (obj4) {
43958 {
43959 arg5 = &temp5;
43960 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
43961 }
43962 }
43963 if (obj5) {
43964 {
43965 arg6 = &temp6;
43966 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
43967 }
43968 }
43969 if (obj6) {
43970 ecode7 = SWIG_AsVal_long(obj6, &val7);
43971 if (!SWIG_IsOK(ecode7)) {
43972 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_DirPickerCtrl" "', expected argument " "7"" of type '" "long""'");
43973 }
43974 arg7 = static_cast< long >(val7);
43975 }
43976 if (obj7) {
43977 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
43978 if (!SWIG_IsOK(res8)) {
43979 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
43980 }
43981 if (!argp8) {
43982 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
43983 }
43984 arg8 = reinterpret_cast< wxValidator * >(argp8);
43985 }
43986 if (obj8) {
43987 {
43988 arg9 = wxString_in_helper(obj8);
43989 if (arg9 == NULL) SWIG_fail;
43990 temp9 = true;
43991 }
43992 }
43993 {
43994 if (!wxPyCheckForApp()) SWIG_fail;
43995 PyThreadState* __tstate = wxPyBeginAllowThreads();
43996 result = (wxDirPickerCtrl *)new wxDirPickerCtrl(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
43997 wxPyEndAllowThreads(__tstate);
43998 if (PyErr_Occurred()) SWIG_fail;
43999 }
44000 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_NEW | 0 );
44001 {
44002 if (temp3)
44003 delete arg3;
44004 }
44005 {
44006 if (temp4)
44007 delete arg4;
44008 }
44009 {
44010 if (temp9)
44011 delete arg9;
44012 }
44013 return resultobj;
44014fail:
44015 {
44016 if (temp3)
44017 delete arg3;
44018 }
44019 {
44020 if (temp4)
44021 delete arg4;
44022 }
44023 {
44024 if (temp9)
44025 delete arg9;
44026 }
44027 return NULL;
44028}
44029
44030
44031SWIGINTERN PyObject *_wrap_new_PreDirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44032 PyObject *resultobj = 0;
44033 wxDirPickerCtrl *result = 0 ;
44034
44035 if (!SWIG_Python_UnpackTuple(args,"new_PreDirPickerCtrl",0,0,0)) SWIG_fail;
44036 {
44037 if (!wxPyCheckForApp()) SWIG_fail;
44038 PyThreadState* __tstate = wxPyBeginAllowThreads();
44039 result = (wxDirPickerCtrl *)new wxDirPickerCtrl();
44040 wxPyEndAllowThreads(__tstate);
44041 if (PyErr_Occurred()) SWIG_fail;
44042 }
44043 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_OWN | 0 );
44044 return resultobj;
44045fail:
44046 return NULL;
44047}
44048
44049
44050SWIGINTERN PyObject *_wrap_DirPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44051 PyObject *resultobj = 0;
44052 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44053 wxWindow *arg2 = (wxWindow *) 0 ;
44054 int arg3 = (int) -1 ;
44055 wxString const &arg4_defvalue = wxPyEmptyString ;
44056 wxString *arg4 = (wxString *) &arg4_defvalue ;
44057 wxString const &arg5_defvalue = wxPyDirSelectorPromptStr ;
44058 wxString *arg5 = (wxString *) &arg5_defvalue ;
44059 wxPoint const &arg6_defvalue = wxDefaultPosition ;
44060 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
44061 wxSize const &arg7_defvalue = wxDefaultSize ;
44062 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
44063 long arg8 = (long) wxDIRP_DEFAULT_STYLE ;
44064 wxValidator const &arg9_defvalue = wxDefaultValidator ;
44065 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
44066 wxString const &arg10_defvalue = wxPyDirPickerCtrlNameStr ;
44067 wxString *arg10 = (wxString *) &arg10_defvalue ;
44068 bool result;
44069 void *argp1 = 0 ;
44070 int res1 = 0 ;
44071 void *argp2 = 0 ;
44072 int res2 = 0 ;
44073 int val3 ;
44074 int ecode3 = 0 ;
44075 bool temp4 = false ;
44076 bool temp5 = false ;
44077 wxPoint temp6 ;
44078 wxSize temp7 ;
44079 long val8 ;
44080 int ecode8 = 0 ;
44081 void *argp9 = 0 ;
44082 int res9 = 0 ;
44083 bool temp10 = false ;
44084 PyObject * obj0 = 0 ;
44085 PyObject * obj1 = 0 ;
44086 PyObject * obj2 = 0 ;
44087 PyObject * obj3 = 0 ;
44088 PyObject * obj4 = 0 ;
44089 PyObject * obj5 = 0 ;
44090 PyObject * obj6 = 0 ;
44091 PyObject * obj7 = 0 ;
44092 PyObject * obj8 = 0 ;
44093 PyObject * obj9 = 0 ;
44094 char * kwnames[] = {
44095 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44096 };
44097
44098 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:DirPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
44099 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44100 if (!SWIG_IsOK(res1)) {
44101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_Create" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44102 }
44103 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44104 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44105 if (!SWIG_IsOK(res2)) {
44106 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44107 }
44108 arg2 = reinterpret_cast< wxWindow * >(argp2);
44109 if (obj2) {
44110 ecode3 = SWIG_AsVal_int(obj2, &val3);
44111 if (!SWIG_IsOK(ecode3)) {
44112 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44113 }
44114 arg3 = static_cast< int >(val3);
44115 }
44116 if (obj3) {
44117 {
44118 arg4 = wxString_in_helper(obj3);
44119 if (arg4 == NULL) SWIG_fail;
44120 temp4 = true;
44121 }
44122 }
44123 if (obj4) {
44124 {
44125 arg5 = wxString_in_helper(obj4);
44126 if (arg5 == NULL) SWIG_fail;
44127 temp5 = true;
44128 }
44129 }
44130 if (obj5) {
44131 {
44132 arg6 = &temp6;
44133 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
44134 }
44135 }
44136 if (obj6) {
44137 {
44138 arg7 = &temp7;
44139 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
44140 }
44141 }
44142 if (obj7) {
44143 ecode8 = SWIG_AsVal_long(obj7, &val8);
44144 if (!SWIG_IsOK(ecode8)) {
44145 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DirPickerCtrl_Create" "', expected argument " "8"" of type '" "long""'");
44146 }
44147 arg8 = static_cast< long >(val8);
44148 }
44149 if (obj8) {
44150 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
44151 if (!SWIG_IsOK(res9)) {
44152 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44153 }
44154 if (!argp9) {
44155 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44156 }
44157 arg9 = reinterpret_cast< wxValidator * >(argp9);
44158 }
44159 if (obj9) {
44160 {
44161 arg10 = wxString_in_helper(obj9);
44162 if (arg10 == NULL) SWIG_fail;
44163 temp10 = true;
44164 }
44165 }
44166 {
44167 PyThreadState* __tstate = wxPyBeginAllowThreads();
44168 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
44169 wxPyEndAllowThreads(__tstate);
44170 if (PyErr_Occurred()) SWIG_fail;
44171 }
44172 {
44173 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44174 }
44175 {
44176 if (temp4)
44177 delete arg4;
44178 }
44179 {
44180 if (temp5)
44181 delete arg5;
44182 }
44183 {
44184 if (temp10)
44185 delete arg10;
44186 }
44187 return resultobj;
44188fail:
44189 {
44190 if (temp4)
44191 delete arg4;
44192 }
44193 {
44194 if (temp5)
44195 delete arg5;
44196 }
44197 {
44198 if (temp10)
44199 delete arg10;
44200 }
44201 return NULL;
44202}
44203
44204
44205SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44206 PyObject *resultobj = 0;
44207 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44208 wxString result;
44209 void *argp1 = 0 ;
44210 int res1 = 0 ;
44211 PyObject *swig_obj[1] ;
44212
44213 if (!args) SWIG_fail;
44214 swig_obj[0] = args;
44215 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44216 if (!SWIG_IsOK(res1)) {
44217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44218 }
44219 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44220 {
44221 PyThreadState* __tstate = wxPyBeginAllowThreads();
44222 result = ((wxDirPickerCtrl const *)arg1)->GetPath();
44223 wxPyEndAllowThreads(__tstate);
44224 if (PyErr_Occurred()) SWIG_fail;
44225 }
44226 {
44227#if wxUSE_UNICODE
44228 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44229#else
44230 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44231#endif
44232 }
44233 return resultobj;
44234fail:
44235 return NULL;
44236}
44237
44238
44239SWIGINTERN PyObject *_wrap_DirPickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44240 PyObject *resultobj = 0;
44241 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44242 wxString *arg2 = 0 ;
44243 void *argp1 = 0 ;
44244 int res1 = 0 ;
44245 bool temp2 = false ;
44246 PyObject * obj0 = 0 ;
44247 PyObject * obj1 = 0 ;
44248 char * kwnames[] = {
44249 (char *) "self",(char *) "str", NULL
44250 };
44251
44252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44253 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44254 if (!SWIG_IsOK(res1)) {
44255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44256 }
44257 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44258 {
44259 arg2 = wxString_in_helper(obj1);
44260 if (arg2 == NULL) SWIG_fail;
44261 temp2 = true;
44262 }
44263 {
44264 PyThreadState* __tstate = wxPyBeginAllowThreads();
44265 (arg1)->SetPath((wxString const &)*arg2);
44266 wxPyEndAllowThreads(__tstate);
44267 if (PyErr_Occurred()) SWIG_fail;
44268 }
44269 resultobj = SWIG_Py_Void();
44270 {
44271 if (temp2)
44272 delete arg2;
44273 }
44274 return resultobj;
44275fail:
44276 {
44277 if (temp2)
44278 delete arg2;
44279 }
44280 return NULL;
44281}
44282
44283
b02396e8
RD
44284SWIGINTERN PyObject *_wrap_DirPickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44285 PyObject *resultobj = 0;
44286 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44287 wxString *arg2 = 0 ;
44288 bool result;
44289 void *argp1 = 0 ;
44290 int res1 = 0 ;
44291 bool temp2 = false ;
44292 PyObject * obj0 = 0 ;
44293 PyObject * obj1 = 0 ;
44294 char * kwnames[] = {
44295 (char *) "self",(char *) "path", NULL
44296 };
44297
44298 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
44299 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44300 if (!SWIG_IsOK(res1)) {
44301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44302 }
44303 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44304 {
44305 arg2 = wxString_in_helper(obj1);
44306 if (arg2 == NULL) SWIG_fail;
44307 temp2 = true;
44308 }
44309 {
44310 PyThreadState* __tstate = wxPyBeginAllowThreads();
44311 result = (bool)((wxDirPickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
44312 wxPyEndAllowThreads(__tstate);
44313 if (PyErr_Occurred()) SWIG_fail;
44314 }
44315 {
44316 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44317 }
44318 {
44319 if (temp2)
44320 delete arg2;
44321 }
44322 return resultobj;
44323fail:
44324 {
44325 if (temp2)
44326 delete arg2;
44327 }
44328 return NULL;
44329}
44330
44331
44332SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44333 PyObject *resultobj = 0;
44334 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44335 wxString result;
44336 void *argp1 = 0 ;
44337 int res1 = 0 ;
44338 PyObject *swig_obj[1] ;
44339
44340 if (!args) SWIG_fail;
44341 swig_obj[0] = args;
44342 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44343 if (!SWIG_IsOK(res1)) {
44344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44345 }
44346 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44347 {
44348 PyThreadState* __tstate = wxPyBeginAllowThreads();
44349 result = ((wxDirPickerCtrl const *)arg1)->GetTextCtrlValue();
44350 wxPyEndAllowThreads(__tstate);
44351 if (PyErr_Occurred()) SWIG_fail;
44352 }
44353 {
44354#if wxUSE_UNICODE
44355 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44356#else
44357 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44358#endif
44359 }
44360 return resultobj;
44361fail:
44362 return NULL;
44363}
44364
44365
b850e7f3
RD
44366SWIGINTERN PyObject *DirPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44367 PyObject *obj;
44368 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44369 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirPickerCtrl, SWIG_NewClientData(obj));
44370 return SWIG_Py_Void();
44371}
44372
44373SWIGINTERN PyObject *DirPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44374 return SWIG_Python_InitShadowInstance(args);
44375}
44376
44377SWIGINTERN PyObject *_wrap_new_FileDirPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44378 PyObject *resultobj = 0;
44379 wxEventType arg1 ;
44380 wxObject *arg2 = (wxObject *) 0 ;
44381 int arg3 ;
44382 wxString *arg4 = 0 ;
44383 wxFileDirPickerEvent *result = 0 ;
44384 int val1 ;
44385 int ecode1 = 0 ;
44386 void *argp2 = 0 ;
44387 int res2 = 0 ;
44388 int val3 ;
44389 int ecode3 = 0 ;
44390 bool temp4 = false ;
44391 PyObject * obj0 = 0 ;
44392 PyObject * obj1 = 0 ;
44393 PyObject * obj2 = 0 ;
44394 PyObject * obj3 = 0 ;
44395 char * kwnames[] = {
44396 (char *) "type",(char *) "generator",(char *) "id",(char *) "path", NULL
44397 };
44398
44399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileDirPickerEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
44400 ecode1 = SWIG_AsVal_int(obj0, &val1);
44401 if (!SWIG_IsOK(ecode1)) {
44402 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FileDirPickerEvent" "', expected argument " "1"" of type '" "wxEventType""'");
44403 }
44404 arg1 = static_cast< wxEventType >(val1);
44405 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxObject, 0 | 0 );
44406 if (!SWIG_IsOK(res2)) {
44407 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FileDirPickerEvent" "', expected argument " "2"" of type '" "wxObject *""'");
44408 }
44409 arg2 = reinterpret_cast< wxObject * >(argp2);
44410 ecode3 = SWIG_AsVal_int(obj2, &val3);
44411 if (!SWIG_IsOK(ecode3)) {
44412 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FileDirPickerEvent" "', expected argument " "3"" of type '" "int""'");
44413 }
44414 arg3 = static_cast< int >(val3);
44415 {
44416 arg4 = wxString_in_helper(obj3);
44417 if (arg4 == NULL) SWIG_fail;
44418 temp4 = true;
44419 }
44420 {
44421 PyThreadState* __tstate = wxPyBeginAllowThreads();
44422 result = (wxFileDirPickerEvent *)new wxFileDirPickerEvent(arg1,arg2,arg3,(wxString const &)*arg4);
44423 wxPyEndAllowThreads(__tstate);
44424 if (PyErr_Occurred()) SWIG_fail;
44425 }
44426 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileDirPickerEvent, SWIG_POINTER_NEW | 0 );
44427 {
44428 if (temp4)
44429 delete arg4;
44430 }
44431 return resultobj;
44432fail:
44433 {
44434 if (temp4)
44435 delete arg4;
44436 }
44437 return NULL;
44438}
44439
44440
44441SWIGINTERN PyObject *_wrap_FileDirPickerEvent_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44442 PyObject *resultobj = 0;
44443 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
44444 wxString result;
44445 void *argp1 = 0 ;
44446 int res1 = 0 ;
44447 PyObject *swig_obj[1] ;
44448
44449 if (!args) SWIG_fail;
44450 swig_obj[0] = args;
44451 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
44452 if (!SWIG_IsOK(res1)) {
44453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_GetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent const *""'");
44454 }
44455 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
44456 {
44457 PyThreadState* __tstate = wxPyBeginAllowThreads();
44458 result = ((wxFileDirPickerEvent const *)arg1)->GetPath();
44459 wxPyEndAllowThreads(__tstate);
44460 if (PyErr_Occurred()) SWIG_fail;
44461 }
44462 {
44463#if wxUSE_UNICODE
44464 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44465#else
44466 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44467#endif
44468 }
44469 return resultobj;
44470fail:
44471 return NULL;
44472}
44473
44474
44475SWIGINTERN PyObject *_wrap_FileDirPickerEvent_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44476 PyObject *resultobj = 0;
44477 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
44478 wxString *arg2 = 0 ;
44479 void *argp1 = 0 ;
44480 int res1 = 0 ;
44481 bool temp2 = false ;
44482 PyObject * obj0 = 0 ;
44483 PyObject * obj1 = 0 ;
44484 char * kwnames[] = {
44485 (char *) "self",(char *) "p", NULL
44486 };
44487
44488 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDirPickerEvent_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44489 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
44490 if (!SWIG_IsOK(res1)) {
44491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_SetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent *""'");
44492 }
44493 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
44494 {
44495 arg2 = wxString_in_helper(obj1);
44496 if (arg2 == NULL) SWIG_fail;
44497 temp2 = true;
44498 }
44499 {
44500 PyThreadState* __tstate = wxPyBeginAllowThreads();
44501 (arg1)->SetPath((wxString const &)*arg2);
44502 wxPyEndAllowThreads(__tstate);
44503 if (PyErr_Occurred()) SWIG_fail;
44504 }
44505 resultobj = SWIG_Py_Void();
44506 {
44507 if (temp2)
44508 delete arg2;
44509 }
44510 return resultobj;
44511fail:
44512 {
44513 if (temp2)
44514 delete arg2;
44515 }
44516 return NULL;
44517}
44518
44519
44520SWIGINTERN PyObject *FileDirPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44521 PyObject *obj;
44522 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44523 SWIG_TypeNewClientData(SWIGTYPE_p_wxFileDirPickerEvent, SWIG_NewClientData(obj));
44524 return SWIG_Py_Void();
44525}
44526
44527SWIGINTERN PyObject *FileDirPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44528 return SWIG_Python_InitShadowInstance(args);
44529}
44530
44531SWIGINTERN int FontPickerCtrlNameStr_set(PyObject *) {
44532 SWIG_Error(SWIG_AttributeError,"Variable FontPickerCtrlNameStr is read-only.");
44533 return 1;
44534}
44535
44536
44537SWIGINTERN PyObject *FontPickerCtrlNameStr_get(void) {
44538 PyObject *pyobj = 0;
44539
44540 {
44541#if wxUSE_UNICODE
44542 pyobj = PyUnicode_FromWideChar((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
44543#else
44544 pyobj = PyString_FromStringAndSize((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
44545#endif
44546 }
44547 return pyobj;
44548}
44549
44550
44551SWIGINTERN PyObject *_wrap_new_FontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44552 PyObject *resultobj = 0;
44553 wxWindow *arg1 = (wxWindow *) 0 ;
44554 int arg2 = (int) -1 ;
44555 wxFont const &arg3_defvalue = *wxNORMAL_FONT ;
44556 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
44557 wxPoint const &arg4_defvalue = wxDefaultPosition ;
44558 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
44559 wxSize const &arg5_defvalue = wxDefaultSize ;
44560 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
44561 long arg6 = (long) wxFNTP_DEFAULT_STYLE ;
44562 wxValidator const &arg7_defvalue = wxDefaultValidator ;
44563 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
44564 wxString const &arg8_defvalue = wxPyFontPickerCtrlNameStr ;
44565 wxString *arg8 = (wxString *) &arg8_defvalue ;
44566 wxFontPickerCtrl *result = 0 ;
44567 void *argp1 = 0 ;
44568 int res1 = 0 ;
44569 int val2 ;
44570 int ecode2 = 0 ;
44571 void *argp3 = 0 ;
44572 int res3 = 0 ;
44573 wxPoint temp4 ;
44574 wxSize temp5 ;
44575 long val6 ;
44576 int ecode6 = 0 ;
44577 void *argp7 = 0 ;
44578 int res7 = 0 ;
44579 bool temp8 = false ;
44580 PyObject * obj0 = 0 ;
44581 PyObject * obj1 = 0 ;
44582 PyObject * obj2 = 0 ;
44583 PyObject * obj3 = 0 ;
44584 PyObject * obj4 = 0 ;
44585 PyObject * obj5 = 0 ;
44586 PyObject * obj6 = 0 ;
44587 PyObject * obj7 = 0 ;
44588 char * kwnames[] = {
44589 (char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44590 };
44591
44592 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_FontPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
44593 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44594 if (!SWIG_IsOK(res1)) {
44595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44596 }
44597 arg1 = reinterpret_cast< wxWindow * >(argp1);
44598 if (obj1) {
44599 ecode2 = SWIG_AsVal_int(obj1, &val2);
44600 if (!SWIG_IsOK(ecode2)) {
44601 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerCtrl" "', expected argument " "2"" of type '" "int""'");
44602 }
44603 arg2 = static_cast< int >(val2);
44604 }
44605 if (obj2) {
44606 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
44607 if (!SWIG_IsOK(res3)) {
44608 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
44609 }
44610 if (!argp3) {
44611 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
44612 }
44613 arg3 = reinterpret_cast< wxFont * >(argp3);
44614 }
44615 if (obj3) {
44616 {
44617 arg4 = &temp4;
44618 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
44619 }
44620 }
44621 if (obj4) {
44622 {
44623 arg5 = &temp5;
44624 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
44625 }
44626 }
44627 if (obj5) {
44628 ecode6 = SWIG_AsVal_long(obj5, &val6);
44629 if (!SWIG_IsOK(ecode6)) {
44630 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FontPickerCtrl" "', expected argument " "6"" of type '" "long""'");
44631 }
44632 arg6 = static_cast< long >(val6);
44633 }
44634 if (obj6) {
44635 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
44636 if (!SWIG_IsOK(res7)) {
44637 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
44638 }
44639 if (!argp7) {
44640 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
44641 }
44642 arg7 = reinterpret_cast< wxValidator * >(argp7);
44643 }
44644 if (obj7) {
44645 {
44646 arg8 = wxString_in_helper(obj7);
44647 if (arg8 == NULL) SWIG_fail;
44648 temp8 = true;
44649 }
44650 }
44651 {
44652 if (!wxPyCheckForApp()) SWIG_fail;
44653 PyThreadState* __tstate = wxPyBeginAllowThreads();
44654 result = (wxFontPickerCtrl *)new wxFontPickerCtrl(arg1,arg2,(wxFont const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
44655 wxPyEndAllowThreads(__tstate);
44656 if (PyErr_Occurred()) SWIG_fail;
44657 }
44658 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_NEW | 0 );
44659 {
44660 if (temp8)
44661 delete arg8;
44662 }
44663 return resultobj;
44664fail:
44665 {
44666 if (temp8)
44667 delete arg8;
44668 }
44669 return NULL;
44670}
44671
44672
44673SWIGINTERN PyObject *_wrap_new_PreFontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44674 PyObject *resultobj = 0;
44675 wxFontPickerCtrl *result = 0 ;
44676
44677 if (!SWIG_Python_UnpackTuple(args,"new_PreFontPickerCtrl",0,0,0)) SWIG_fail;
44678 {
44679 if (!wxPyCheckForApp()) SWIG_fail;
44680 PyThreadState* __tstate = wxPyBeginAllowThreads();
44681 result = (wxFontPickerCtrl *)new wxFontPickerCtrl();
44682 wxPyEndAllowThreads(__tstate);
44683 if (PyErr_Occurred()) SWIG_fail;
44684 }
44685 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_OWN | 0 );
44686 return resultobj;
44687fail:
44688 return NULL;
44689}
44690
44691
44692SWIGINTERN PyObject *_wrap_FontPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44693 PyObject *resultobj = 0;
44694 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44695 wxWindow *arg2 = (wxWindow *) 0 ;
44696 int arg3 = (int) -1 ;
44697 wxFont const &arg4_defvalue = *wxNORMAL_FONT ;
44698 wxFont *arg4 = (wxFont *) &arg4_defvalue ;
44699 wxPoint const &arg5_defvalue = wxDefaultPosition ;
44700 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
44701 wxSize const &arg6_defvalue = wxDefaultSize ;
44702 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
44703 long arg7 = (long) wxFNTP_DEFAULT_STYLE ;
44704 wxValidator const &arg8_defvalue = wxDefaultValidator ;
44705 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
44706 wxString const &arg9_defvalue = wxPyFontPickerCtrlNameStr ;
44707 wxString *arg9 = (wxString *) &arg9_defvalue ;
44708 bool result;
44709 void *argp1 = 0 ;
44710 int res1 = 0 ;
44711 void *argp2 = 0 ;
44712 int res2 = 0 ;
44713 int val3 ;
44714 int ecode3 = 0 ;
44715 void *argp4 = 0 ;
44716 int res4 = 0 ;
44717 wxPoint temp5 ;
44718 wxSize temp6 ;
44719 long val7 ;
44720 int ecode7 = 0 ;
44721 void *argp8 = 0 ;
44722 int res8 = 0 ;
44723 bool temp9 = false ;
44724 PyObject * obj0 = 0 ;
44725 PyObject * obj1 = 0 ;
44726 PyObject * obj2 = 0 ;
44727 PyObject * obj3 = 0 ;
44728 PyObject * obj4 = 0 ;
44729 PyObject * obj5 = 0 ;
44730 PyObject * obj6 = 0 ;
44731 PyObject * obj7 = 0 ;
44732 PyObject * obj8 = 0 ;
44733 char * kwnames[] = {
44734 (char *) "self",(char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44735 };
44736
44737 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:FontPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
44738 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
44739 if (!SWIG_IsOK(res1)) {
44740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_Create" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
44741 }
44742 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
44743 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44744 if (!SWIG_IsOK(res2)) {
44745 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44746 }
44747 arg2 = reinterpret_cast< wxWindow * >(argp2);
44748 if (obj2) {
44749 ecode3 = SWIG_AsVal_int(obj2, &val3);
44750 if (!SWIG_IsOK(ecode3)) {
44751 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44752 }
44753 arg3 = static_cast< int >(val3);
44754 }
44755 if (obj3) {
44756 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxFont, 0 | 0);
44757 if (!SWIG_IsOK(res4)) {
44758 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
44759 }
44760 if (!argp4) {
44761 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
44762 }
44763 arg4 = reinterpret_cast< wxFont * >(argp4);
44764 }
44765 if (obj4) {
44766 {
44767 arg5 = &temp5;
44768 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
44769 }
44770 }
44771 if (obj5) {
44772 {
44773 arg6 = &temp6;
44774 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
44775 }
44776 }
44777 if (obj6) {
44778 ecode7 = SWIG_AsVal_long(obj6, &val7);
44779 if (!SWIG_IsOK(ecode7)) {
44780 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "FontPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
44781 }
44782 arg7 = static_cast< long >(val7);
44783 }
44784 if (obj7) {
44785 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
44786 if (!SWIG_IsOK(res8)) {
44787 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
44788 }
44789 if (!argp8) {
44790 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
44791 }
44792 arg8 = reinterpret_cast< wxValidator * >(argp8);
44793 }
44794 if (obj8) {
44795 {
44796 arg9 = wxString_in_helper(obj8);
44797 if (arg9 == NULL) SWIG_fail;
44798 temp9 = true;
44799 }
44800 }
44801 {
44802 PyThreadState* __tstate = wxPyBeginAllowThreads();
44803 result = (bool)(arg1)->Create(arg2,arg3,(wxFont const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
44804 wxPyEndAllowThreads(__tstate);
44805 if (PyErr_Occurred()) SWIG_fail;
44806 }
44807 {
44808 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44809 }
44810 {
44811 if (temp9)
44812 delete arg9;
44813 }
44814 return resultobj;
44815fail:
44816 {
44817 if (temp9)
44818 delete arg9;
44819 }
44820 return NULL;
44821}
44822
44823
44824SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44825 PyObject *resultobj = 0;
44826 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44827 wxFont result;
44828 void *argp1 = 0 ;
44829 int res1 = 0 ;
44830 PyObject *swig_obj[1] ;
44831
44832 if (!args) SWIG_fail;
44833 swig_obj[0] = args;
44834 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
44835 if (!SWIG_IsOK(res1)) {
44836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
44837 }
44838 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
44839 {
44840 PyThreadState* __tstate = wxPyBeginAllowThreads();
44841 result = ((wxFontPickerCtrl const *)arg1)->GetSelectedFont();
44842 wxPyEndAllowThreads(__tstate);
44843 if (PyErr_Occurred()) SWIG_fail;
44844 }
44845 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
44846 return resultobj;
44847fail:
44848 return NULL;
44849}
44850
44851
44852SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44853 PyObject *resultobj = 0;
44854 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44855 wxFont *arg2 = 0 ;
44856 void *argp1 = 0 ;
44857 int res1 = 0 ;
44858 void *argp2 = 0 ;
44859 int res2 = 0 ;
44860 PyObject * obj0 = 0 ;
44861 PyObject * obj1 = 0 ;
44862 char * kwnames[] = {
44863 (char *) "self",(char *) "f", NULL
44864 };
44865
44866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetSelectedFont",kwnames,&obj0,&obj1)) SWIG_fail;
44867 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
44868 if (!SWIG_IsOK(res1)) {
44869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
44870 }
44871 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
44872 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
44873 if (!SWIG_IsOK(res2)) {
44874 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
44875 }
44876 if (!argp2) {
44877 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
44878 }
44879 arg2 = reinterpret_cast< wxFont * >(argp2);
44880 {
44881 PyThreadState* __tstate = wxPyBeginAllowThreads();
44882 (arg1)->SetSelectedFont((wxFont const &)*arg2);
44883 wxPyEndAllowThreads(__tstate);
44884 if (PyErr_Occurred()) SWIG_fail;
44885 }
44886 resultobj = SWIG_Py_Void();
44887 return resultobj;
44888fail:
44889 return NULL;
44890}
44891
44892
44893SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44894 PyObject *resultobj = 0;
44895 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44896 unsigned int arg2 ;
44897 void *argp1 = 0 ;
44898 int res1 = 0 ;
44899 unsigned int val2 ;
44900 int ecode2 = 0 ;
44901 PyObject * obj0 = 0 ;
44902 PyObject * obj1 = 0 ;
44903 char * kwnames[] = {
44904 (char *) "self",(char *) "max", NULL
44905 };
44906
44907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetMaxPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
44908 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
44909 if (!SWIG_IsOK(res1)) {
44910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
44911 }
44912 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
44913 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
44914 if (!SWIG_IsOK(ecode2)) {
44915 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "2"" of type '" "unsigned int""'");
44916 }
44917 arg2 = static_cast< unsigned int >(val2);
44918 {
44919 PyThreadState* __tstate = wxPyBeginAllowThreads();
44920 (arg1)->SetMaxPointSize(arg2);
44921 wxPyEndAllowThreads(__tstate);
44922 if (PyErr_Occurred()) SWIG_fail;
44923 }
44924 resultobj = SWIG_Py_Void();
44925 return resultobj;
44926fail:
44927 return NULL;
44928}
44929
44930
44931SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44932 PyObject *resultobj = 0;
44933 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44934 unsigned int result;
44935 void *argp1 = 0 ;
44936 int res1 = 0 ;
44937 PyObject *swig_obj[1] ;
44938
44939 if (!args) SWIG_fail;
44940 swig_obj[0] = args;
44941 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
44942 if (!SWIG_IsOK(res1)) {
44943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
44944 }
44945 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
44946 {
44947 PyThreadState* __tstate = wxPyBeginAllowThreads();
44948 result = (unsigned int)((wxFontPickerCtrl const *)arg1)->GetMaxPointSize();
44949 wxPyEndAllowThreads(__tstate);
44950 if (PyErr_Occurred()) SWIG_fail;
44951 }
44952 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
44953 return resultobj;
44954fail:
44955 return NULL;
44956}
44957
44958
44959SWIGINTERN PyObject *FontPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44960 PyObject *obj;
44961 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44962 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerCtrl, SWIG_NewClientData(obj));
44963 return SWIG_Py_Void();
44964}
44965
44966SWIGINTERN PyObject *FontPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44967 return SWIG_Python_InitShadowInstance(args);
44968}
44969
44970SWIGINTERN PyObject *_wrap_new_FontPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44971 PyObject *resultobj = 0;
44972 wxObject *arg1 = (wxObject *) 0 ;
44973 int arg2 ;
44974 wxFont *arg3 = 0 ;
44975 wxFontPickerEvent *result = 0 ;
44976 void *argp1 = 0 ;
44977 int res1 = 0 ;
44978 int val2 ;
44979 int ecode2 = 0 ;
44980 void *argp3 = 0 ;
44981 int res3 = 0 ;
44982 PyObject * obj0 = 0 ;
44983 PyObject * obj1 = 0 ;
44984 PyObject * obj2 = 0 ;
44985 char * kwnames[] = {
44986 (char *) "generator",(char *) "id",(char *) "f", NULL
44987 };
44988
44989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_FontPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
44990 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
44991 if (!SWIG_IsOK(res1)) {
44992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
44993 }
44994 arg1 = reinterpret_cast< wxObject * >(argp1);
44995 ecode2 = SWIG_AsVal_int(obj1, &val2);
44996 if (!SWIG_IsOK(ecode2)) {
44997 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerEvent" "', expected argument " "2"" of type '" "int""'");
44998 }
44999 arg2 = static_cast< int >(val2);
45000 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
45001 if (!SWIG_IsOK(res3)) {
45002 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45003 }
45004 if (!argp3) {
45005 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45006 }
45007 arg3 = reinterpret_cast< wxFont * >(argp3);
45008 {
45009 PyThreadState* __tstate = wxPyBeginAllowThreads();
45010 result = (wxFontPickerEvent *)new wxFontPickerEvent(arg1,arg2,(wxFont const &)*arg3);
45011 wxPyEndAllowThreads(__tstate);
45012 if (PyErr_Occurred()) SWIG_fail;
45013 }
45014 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerEvent, SWIG_POINTER_NEW | 0 );
45015 return resultobj;
45016fail:
45017 return NULL;
45018}
45019
45020
45021SWIGINTERN PyObject *_wrap_FontPickerEvent_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45022 PyObject *resultobj = 0;
45023 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45024 wxFont result;
45025 void *argp1 = 0 ;
45026 int res1 = 0 ;
45027 PyObject *swig_obj[1] ;
45028
45029 if (!args) SWIG_fail;
45030 swig_obj[0] = args;
45031 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45032 if (!SWIG_IsOK(res1)) {
45033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_GetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent const *""'");
45034 }
45035 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45036 {
45037 PyThreadState* __tstate = wxPyBeginAllowThreads();
45038 result = ((wxFontPickerEvent const *)arg1)->GetFont();
45039 wxPyEndAllowThreads(__tstate);
45040 if (PyErr_Occurred()) SWIG_fail;
45041 }
45042 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
45043 return resultobj;
45044fail:
45045 return NULL;
45046}
45047
45048
45049SWIGINTERN PyObject *_wrap_FontPickerEvent_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45050 PyObject *resultobj = 0;
45051 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45052 wxFont *arg2 = 0 ;
45053 void *argp1 = 0 ;
45054 int res1 = 0 ;
45055 void *argp2 = 0 ;
45056 int res2 = 0 ;
45057 PyObject * obj0 = 0 ;
45058 PyObject * obj1 = 0 ;
45059 char * kwnames[] = {
45060 (char *) "self",(char *) "c", NULL
45061 };
45062
45063 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerEvent_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
45064 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45065 if (!SWIG_IsOK(res1)) {
45066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_SetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent *""'");
45067 }
45068 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45069 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
45070 if (!SWIG_IsOK(res2)) {
45071 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45072 }
45073 if (!argp2) {
45074 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45075 }
45076 arg2 = reinterpret_cast< wxFont * >(argp2);
45077 {
45078 PyThreadState* __tstate = wxPyBeginAllowThreads();
45079 (arg1)->SetFont((wxFont const &)*arg2);
45080 wxPyEndAllowThreads(__tstate);
45081 if (PyErr_Occurred()) SWIG_fail;
45082 }
45083 resultobj = SWIG_Py_Void();
45084 return resultobj;
45085fail:
45086 return NULL;
45087}
45088
45089
45090SWIGINTERN PyObject *FontPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45091 PyObject *obj;
45092 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45093 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerEvent, SWIG_NewClientData(obj));
45094 return SWIG_Py_Void();
45095}
45096
45097SWIGINTERN PyObject *FontPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45098 return SWIG_Python_InitShadowInstance(args);
45099}
45100
45101static PyMethodDef SwigMethods[] = {
45102 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL},
45103 { (char *)"new_PreButton", (PyCFunction)_wrap_new_PreButton, METH_NOARGS, NULL},
45104 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45105 { (char *)"Button_SetDefault", (PyCFunction)_wrap_Button_SetDefault, METH_O, NULL},
45106 { (char *)"Button_GetDefaultSize", (PyCFunction)_wrap_Button_GetDefaultSize, METH_NOARGS, NULL},
45107 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45108 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL},
45109 { (char *)"Button_swiginit", Button_swiginit, METH_VARARGS, NULL},
45110 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL},
45111 { (char *)"new_PreBitmapButton", (PyCFunction)_wrap_new_PreBitmapButton, METH_NOARGS, NULL},
45112 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45113 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction)_wrap_BitmapButton_GetBitmapLabel, METH_O, NULL},
45114 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction)_wrap_BitmapButton_GetBitmapDisabled, METH_O, NULL},
45115 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction)_wrap_BitmapButton_GetBitmapFocus, METH_O, NULL},
45116 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction)_wrap_BitmapButton_GetBitmapSelected, METH_O, NULL},
45117 { (char *)"BitmapButton_GetBitmapHover", (PyCFunction)_wrap_BitmapButton_GetBitmapHover, METH_O, NULL},
45118 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL},
45119 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL},
45120 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45121 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45122 { (char *)"BitmapButton_SetBitmapHover", (PyCFunction) _wrap_BitmapButton_SetBitmapHover, METH_VARARGS | METH_KEYWORDS, NULL},
45123 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
45124 { (char *)"BitmapButton_GetMarginX", (PyCFunction)_wrap_BitmapButton_GetMarginX, METH_O, NULL},
45125 { (char *)"BitmapButton_GetMarginY", (PyCFunction)_wrap_BitmapButton_GetMarginY, METH_O, NULL},
45126 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL},
45127 { (char *)"BitmapButton_swiginit", BitmapButton_swiginit, METH_VARARGS, NULL},
45128 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
45129 { (char *)"new_PreCheckBox", (PyCFunction)_wrap_new_PreCheckBox, METH_NOARGS, NULL},
45130 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45131 { (char *)"CheckBox_GetValue", (PyCFunction)_wrap_CheckBox_GetValue, METH_O, NULL},
45132 { (char *)"CheckBox_IsChecked", (PyCFunction)_wrap_CheckBox_IsChecked, METH_O, NULL},
45133 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45134 { (char *)"CheckBox_Get3StateValue", (PyCFunction)_wrap_CheckBox_Get3StateValue, METH_O, NULL},
45135 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL},
45136 { (char *)"CheckBox_Is3State", (PyCFunction)_wrap_CheckBox_Is3State, METH_O, NULL},
45137 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction)_wrap_CheckBox_Is3rdStateAllowedForUser, METH_O, NULL},
45138 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45139 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL},
45140 { (char *)"CheckBox_swiginit", CheckBox_swiginit, METH_VARARGS, NULL},
45141 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL},
45142 { (char *)"new_PreChoice", (PyCFunction)_wrap_new_PreChoice, METH_NOARGS, NULL},
45143 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45144 { (char *)"Choice_GetCurrentSelection", (PyCFunction)_wrap_Choice_GetCurrentSelection, METH_O, NULL},
45145 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45146 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL},
45147 { (char *)"Choice_swiginit", Choice_swiginit, METH_VARARGS, NULL},
45148 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL},
45149 { (char *)"new_PreComboBox", (PyCFunction)_wrap_new_PreComboBox, METH_NOARGS, NULL},
45150 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45151 { (char *)"ComboBox_GetValue", (PyCFunction)_wrap_ComboBox_GetValue, METH_O, NULL},
45152 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45153 { (char *)"ComboBox_Copy", (PyCFunction)_wrap_ComboBox_Copy, METH_O, NULL},
45154 { (char *)"ComboBox_Cut", (PyCFunction)_wrap_ComboBox_Cut, METH_O, NULL},
45155 { (char *)"ComboBox_Paste", (PyCFunction)_wrap_ComboBox_Paste, METH_O, NULL},
45156 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
45157 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction)_wrap_ComboBox_GetInsertionPoint, METH_O, NULL},
45158 { (char *)"ComboBox_GetLastPosition", (PyCFunction)_wrap_ComboBox_GetLastPosition, METH_O, NULL},
45159 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
45160 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL},
45161 { (char *)"ComboBox_GetMark", (PyCFunction)_wrap_ComboBox_GetMark, METH_O, NULL},
45162 { (char *)"ComboBox_GetCurrentSelection", (PyCFunction)_wrap_ComboBox_GetCurrentSelection, METH_O, NULL},
45163 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45164 { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
45165 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
45166 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction)_wrap_ComboBox_SetInsertionPointEnd, METH_O, NULL},
45167 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
45168 { (char *)"ComboBox_IsEditable", (PyCFunction)_wrap_ComboBox_IsEditable, METH_O, NULL},
45169 { (char *)"ComboBox_Undo", (PyCFunction)_wrap_ComboBox_Undo, METH_O, NULL},
45170 { (char *)"ComboBox_Redo", (PyCFunction)_wrap_ComboBox_Redo, METH_O, NULL},
45171 { (char *)"ComboBox_SelectAll", (PyCFunction)_wrap_ComboBox_SelectAll, METH_O, NULL},
45172 { (char *)"ComboBox_CanCopy", (PyCFunction)_wrap_ComboBox_CanCopy, METH_O, NULL},
45173 { (char *)"ComboBox_CanCut", (PyCFunction)_wrap_ComboBox_CanCut, METH_O, NULL},
45174 { (char *)"ComboBox_CanPaste", (PyCFunction)_wrap_ComboBox_CanPaste, METH_O, NULL},
45175 { (char *)"ComboBox_CanUndo", (PyCFunction)_wrap_ComboBox_CanUndo, METH_O, NULL},
45176 { (char *)"ComboBox_CanRedo", (PyCFunction)_wrap_ComboBox_CanRedo, METH_O, NULL},
45177 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45178 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL},
45179 { (char *)"ComboBox_swiginit", ComboBox_swiginit, METH_VARARGS, NULL},
45180 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL},
45181 { (char *)"new_PreGauge", (PyCFunction)_wrap_new_PreGauge, METH_NOARGS, NULL},
45182 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45183 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45184 { (char *)"Gauge_GetRange", (PyCFunction)_wrap_Gauge_GetRange, METH_O, NULL},
45185 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45186 { (char *)"Gauge_GetValue", (PyCFunction)_wrap_Gauge_GetValue, METH_O, NULL},
45187 { (char *)"Gauge_IsVertical", (PyCFunction)_wrap_Gauge_IsVertical, METH_O, NULL},
45188 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45189 { (char *)"Gauge_GetShadowWidth", (PyCFunction)_wrap_Gauge_GetShadowWidth, METH_O, NULL},
45190 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL},
45191 { (char *)"Gauge_GetBezelFace", (PyCFunction)_wrap_Gauge_GetBezelFace, METH_O, NULL},
45192 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45193 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL},
45194 { (char *)"Gauge_swiginit", Gauge_swiginit, METH_VARARGS, NULL},
45195 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL},
45196 { (char *)"new_PreStaticBox", (PyCFunction)_wrap_new_PreStaticBox, METH_NOARGS, NULL},
45197 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45198 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45199 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL},
45200 { (char *)"StaticBox_swiginit", StaticBox_swiginit, METH_VARARGS, NULL},
45201 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL},
45202 { (char *)"new_PreStaticLine", (PyCFunction)_wrap_new_PreStaticLine, METH_NOARGS, NULL},
45203 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45204 { (char *)"StaticLine_IsVertical", (PyCFunction)_wrap_StaticLine_IsVertical, METH_O, NULL},
45205 { (char *)"StaticLine_GetDefaultSize", (PyCFunction)_wrap_StaticLine_GetDefaultSize, METH_NOARGS, NULL},
45206 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45207 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL},
45208 { (char *)"StaticLine_swiginit", StaticLine_swiginit, METH_VARARGS, NULL},
45209 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL},
45210 { (char *)"new_PreStaticText", (PyCFunction)_wrap_new_PreStaticText, METH_NOARGS, NULL},
45211 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45212 { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL},
45213 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45214 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL},
45215 { (char *)"StaticText_swiginit", StaticText_swiginit, METH_VARARGS, NULL},
45216 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45217 { (char *)"new_PreStaticBitmap", (PyCFunction)_wrap_new_PreStaticBitmap, METH_NOARGS, NULL},
45218 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45219 { (char *)"StaticBitmap_GetBitmap", (PyCFunction)_wrap_StaticBitmap_GetBitmap, METH_O, NULL},
45220 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45221 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
45222 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45223 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL},
45224 { (char *)"StaticBitmap_swiginit", StaticBitmap_swiginit, METH_VARARGS, NULL},
45225 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL},
45226 { (char *)"new_PreListBox", (PyCFunction)_wrap_new_PreListBox, METH_NOARGS, NULL},
45227 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45228 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
45229 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL},
45230 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL},
45231 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45232 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45233 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL},
45234 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL},
45235 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL},
45236 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45237 { (char *)"ListBox_GetSelections", (PyCFunction)_wrap_ListBox_GetSelections, METH_O, NULL},
45238 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL},
45239 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL},
45240 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45241 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45242 { (char *)"ListBox_IsSorted", (PyCFunction)_wrap_ListBox_IsSorted, METH_O, NULL},
45243 { (char *)"ListBox_HitTest", (PyCFunction) _wrap_ListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
45244 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45245 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45246 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
45247 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45248 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL},
45249 { (char *)"ListBox_swiginit", ListBox_swiginit, METH_VARARGS, NULL},
45250 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL},
45251 { (char *)"new_PreCheckListBox", (PyCFunction)_wrap_new_PreCheckListBox, METH_NOARGS, NULL},
45252 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45253 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
45254 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL},
45255 { (char *)"CheckListBox_GetItemHeight", (PyCFunction)_wrap_CheckListBox_GetItemHeight, METH_O, NULL},
45256 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL},
45257 { (char *)"CheckListBox_swiginit", CheckListBox_swiginit, METH_VARARGS, NULL},
45258 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL},
45259 { (char *)"delete_TextAttr", (PyCFunction)_wrap_delete_TextAttr, METH_O, NULL},
45260 { (char *)"TextAttr_Init", (PyCFunction)_wrap_TextAttr_Init, METH_O, NULL},
45261 { (char *)"TextAttr_Merge", (PyCFunction) _wrap_TextAttr_Merge, METH_VARARGS | METH_KEYWORDS, NULL},
45262 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45263 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45264 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
45265 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
45266 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL},
45267 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
45268 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
45269 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
45270 { (char *)"TextAttr_HasTextColour", (PyCFunction)_wrap_TextAttr_HasTextColour, METH_O, NULL},
45271 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction)_wrap_TextAttr_HasBackgroundColour, METH_O, NULL},
45272 { (char *)"TextAttr_HasFont", (PyCFunction)_wrap_TextAttr_HasFont, METH_O, NULL},
45273 { (char *)"TextAttr_HasAlignment", (PyCFunction)_wrap_TextAttr_HasAlignment, METH_O, NULL},
45274 { (char *)"TextAttr_HasTabs", (PyCFunction)_wrap_TextAttr_HasTabs, METH_O, NULL},
45275 { (char *)"TextAttr_HasLeftIndent", (PyCFunction)_wrap_TextAttr_HasLeftIndent, METH_O, NULL},
45276 { (char *)"TextAttr_HasRightIndent", (PyCFunction)_wrap_TextAttr_HasRightIndent, METH_O, NULL},
45277 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL},
45278 { (char *)"TextAttr_GetTextColour", (PyCFunction)_wrap_TextAttr_GetTextColour, METH_O, NULL},
45279 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction)_wrap_TextAttr_GetBackgroundColour, METH_O, NULL},
45280 { (char *)"TextAttr_GetFont", (PyCFunction)_wrap_TextAttr_GetFont, METH_O, NULL},
45281 { (char *)"TextAttr_GetAlignment", (PyCFunction)_wrap_TextAttr_GetAlignment, METH_O, NULL},
45282 { (char *)"TextAttr_GetTabs", (PyCFunction)_wrap_TextAttr_GetTabs, METH_O, NULL},
45283 { (char *)"TextAttr_GetLeftIndent", (PyCFunction)_wrap_TextAttr_GetLeftIndent, METH_O, NULL},
45284 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction)_wrap_TextAttr_GetLeftSubIndent, METH_O, NULL},
45285 { (char *)"TextAttr_GetRightIndent", (PyCFunction)_wrap_TextAttr_GetRightIndent, METH_O, NULL},
45286 { (char *)"TextAttr_GetFlags", (PyCFunction)_wrap_TextAttr_GetFlags, METH_O, NULL},
45287 { (char *)"TextAttr_IsDefault", (PyCFunction)_wrap_TextAttr_IsDefault, METH_O, NULL},
45288 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL},
45289 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL},
45290 { (char *)"TextAttr_swiginit", TextAttr_swiginit, METH_VARARGS, NULL},
45291 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45292 { (char *)"new_PreTextCtrl", (PyCFunction)_wrap_new_PreTextCtrl, METH_NOARGS, NULL},
45293 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45294 { (char *)"TextCtrl_GetValue", (PyCFunction)_wrap_TextCtrl_GetValue, METH_O, NULL},
45295 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45296 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45297 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL},
45298 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL},
45299 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction)_wrap_TextCtrl_GetNumberOfLines, METH_O, NULL},
45300 { (char *)"TextCtrl_IsModified", (PyCFunction)_wrap_TextCtrl_IsModified, METH_O, NULL},
45301 { (char *)"TextCtrl_IsEditable", (PyCFunction)_wrap_TextCtrl_IsEditable, METH_O, NULL},
45302 { (char *)"TextCtrl_IsSingleLine", (PyCFunction)_wrap_TextCtrl_IsSingleLine, METH_O, NULL},
45303 { (char *)"TextCtrl_IsMultiLine", (PyCFunction)_wrap_TextCtrl_IsMultiLine, METH_O, NULL},
45304 { (char *)"TextCtrl_GetSelection", (PyCFunction)_wrap_TextCtrl_GetSelection, METH_O, NULL},
45305 { (char *)"TextCtrl_GetStringSelection", (PyCFunction)_wrap_TextCtrl_GetStringSelection, METH_O, NULL},
45306 { (char *)"TextCtrl_Clear", (PyCFunction)_wrap_TextCtrl_Clear, METH_O, NULL},
45307 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
45308 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
45309 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
45310 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
45311 { (char *)"TextCtrl_MarkDirty", (PyCFunction)_wrap_TextCtrl_MarkDirty, METH_O, NULL},
45312 { (char *)"TextCtrl_DiscardEdits", (PyCFunction)_wrap_TextCtrl_DiscardEdits, METH_O, NULL},
b02396e8 45313 { (char *)"TextCtrl_SetModified", (PyCFunction) _wrap_TextCtrl_SetModified, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3
RD
45314 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL},
45315 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL},
45316 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL},
45317 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL},
45318 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45319 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45320 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45321 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction)_wrap_TextCtrl_GetDefaultStyle, METH_O, NULL},
45322 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45323 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL},
45324 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45325 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
45326 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL},
45327 { (char *)"TextCtrl_Copy", (PyCFunction)_wrap_TextCtrl_Copy, METH_O, NULL},
45328 { (char *)"TextCtrl_Cut", (PyCFunction)_wrap_TextCtrl_Cut, METH_O, NULL},
45329 { (char *)"TextCtrl_Paste", (PyCFunction)_wrap_TextCtrl_Paste, METH_O, NULL},
45330 { (char *)"TextCtrl_CanCopy", (PyCFunction)_wrap_TextCtrl_CanCopy, METH_O, NULL},
45331 { (char *)"TextCtrl_CanCut", (PyCFunction)_wrap_TextCtrl_CanCut, METH_O, NULL},
45332 { (char *)"TextCtrl_CanPaste", (PyCFunction)_wrap_TextCtrl_CanPaste, METH_O, NULL},
45333 { (char *)"TextCtrl_Undo", (PyCFunction)_wrap_TextCtrl_Undo, METH_O, NULL},
45334 { (char *)"TextCtrl_Redo", (PyCFunction)_wrap_TextCtrl_Redo, METH_O, NULL},
45335 { (char *)"TextCtrl_CanUndo", (PyCFunction)_wrap_TextCtrl_CanUndo, METH_O, NULL},
45336 { (char *)"TextCtrl_CanRedo", (PyCFunction)_wrap_TextCtrl_CanRedo, METH_O, NULL},
45337 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
45338 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_TextCtrl_SetInsertionPointEnd, METH_O, NULL},
45339 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction)_wrap_TextCtrl_GetInsertionPoint, METH_O, NULL},
45340 { (char *)"TextCtrl_GetLastPosition", (PyCFunction)_wrap_TextCtrl_GetLastPosition, METH_O, NULL},
45341 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45342 { (char *)"TextCtrl_SelectAll", (PyCFunction)_wrap_TextCtrl_SelectAll, METH_O, NULL},
45343 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
45344 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL},
45345 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
45346 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45347 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL},
45348 { (char *)"TextCtrl_swiginit", TextCtrl_swiginit, METH_VARARGS, NULL},
45349 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45350 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction)_wrap_TextUrlEvent_GetMouseEvent, METH_O, NULL},
45351 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction)_wrap_TextUrlEvent_GetURLStart, METH_O, NULL},
45352 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction)_wrap_TextUrlEvent_GetURLEnd, METH_O, NULL},
45353 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL},
45354 { (char *)"TextUrlEvent_swiginit", TextUrlEvent_swiginit, METH_VARARGS, NULL},
45355 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL},
45356 { (char *)"new_PreScrollBar", (PyCFunction)_wrap_new_PreScrollBar, METH_NOARGS, NULL},
45357 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45358 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction)_wrap_ScrollBar_GetThumbPosition, METH_O, NULL},
45359 { (char *)"ScrollBar_GetThumbSize", (PyCFunction)_wrap_ScrollBar_GetThumbSize, METH_O, NULL},
45360 { (char *)"ScrollBar_GetPageSize", (PyCFunction)_wrap_ScrollBar_GetPageSize, METH_O, NULL},
45361 { (char *)"ScrollBar_GetRange", (PyCFunction)_wrap_ScrollBar_GetRange, METH_O, NULL},
45362 { (char *)"ScrollBar_IsVertical", (PyCFunction)_wrap_ScrollBar_IsVertical, METH_O, NULL},
45363 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45364 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45365 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL},
45366 { (char *)"ScrollBar_swiginit", ScrollBar_swiginit, METH_VARARGS, NULL},
45367 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL},
45368 { (char *)"new_PreSpinButton", (PyCFunction)_wrap_new_PreSpinButton, METH_NOARGS, NULL},
45369 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45370 { (char *)"SpinButton_GetValue", (PyCFunction)_wrap_SpinButton_GetValue, METH_O, NULL},
45371 { (char *)"SpinButton_GetMin", (PyCFunction)_wrap_SpinButton_GetMin, METH_O, NULL},
45372 { (char *)"SpinButton_GetMax", (PyCFunction)_wrap_SpinButton_GetMax, METH_O, NULL},
45373 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45374 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
45375 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
45376 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45377 { (char *)"SpinButton_IsVertical", (PyCFunction)_wrap_SpinButton_IsVertical, METH_O, NULL},
45378 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45379 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL},
45380 { (char *)"SpinButton_swiginit", SpinButton_swiginit, METH_VARARGS, NULL},
45381 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45382 { (char *)"new_PreSpinCtrl", (PyCFunction)_wrap_new_PreSpinCtrl, METH_NOARGS, NULL},
45383 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45384 { (char *)"SpinCtrl_GetValue", (PyCFunction)_wrap_SpinCtrl_GetValue, METH_O, NULL},
45385 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45386 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL},
45387 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45388 { (char *)"SpinCtrl_GetMin", (PyCFunction)_wrap_SpinCtrl_GetMin, METH_O, NULL},
45389 { (char *)"SpinCtrl_GetMax", (PyCFunction)_wrap_SpinCtrl_GetMax, METH_O, NULL},
45390 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45391 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45392 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL},
45393 { (char *)"SpinCtrl_swiginit", SpinCtrl_swiginit, METH_VARARGS, NULL},
45394 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45395 { (char *)"SpinEvent_GetPosition", (PyCFunction)_wrap_SpinEvent_GetPosition, METH_O, NULL},
45396 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45397 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL},
45398 { (char *)"SpinEvent_swiginit", SpinEvent_swiginit, METH_VARARGS, NULL},
45399 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL},
45400 { (char *)"new_PreRadioBox", (PyCFunction)_wrap_new_PreRadioBox, METH_NOARGS, NULL},
45401 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45402 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45403 { (char *)"RadioBox_GetSelection", (PyCFunction)_wrap_RadioBox_GetSelection, METH_O, NULL},
45404 { (char *)"RadioBox_GetStringSelection", (PyCFunction)_wrap_RadioBox_GetStringSelection, METH_O, NULL},
45405 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45406 { (char *)"RadioBox_GetCount", (PyCFunction)_wrap_RadioBox_GetCount, METH_O, NULL},
45407 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL},
45408 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
45409 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
45410 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL},
45411 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL},
45412 { (char *)"RadioBox_IsItemEnabled", (PyCFunction) _wrap_RadioBox_IsItemEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
45413 { (char *)"RadioBox_IsItemShown", (PyCFunction) _wrap_RadioBox_IsItemShown, METH_VARARGS | METH_KEYWORDS, NULL},
45414 { (char *)"RadioBox_GetColumnCount", (PyCFunction)_wrap_RadioBox_GetColumnCount, METH_O, NULL},
45415 { (char *)"RadioBox_GetRowCount", (PyCFunction)_wrap_RadioBox_GetRowCount, METH_O, NULL},
45416 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
45417 { (char *)"RadioBox_SetItemToolTip", (PyCFunction) _wrap_RadioBox_SetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
45418 { (char *)"RadioBox_GetItemToolTip", (PyCFunction) _wrap_RadioBox_GetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
45419 { (char *)"RadioBox_SetItemHelpText", (PyCFunction) _wrap_RadioBox_SetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
45420 { (char *)"RadioBox_GetItemHelpText", (PyCFunction) _wrap_RadioBox_GetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
45421 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45422 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL},
45423 { (char *)"RadioBox_swiginit", RadioBox_swiginit, METH_VARARGS, NULL},
45424 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL},
45425 { (char *)"new_PreRadioButton", (PyCFunction)_wrap_new_PreRadioButton, METH_NOARGS, NULL},
45426 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45427 { (char *)"RadioButton_GetValue", (PyCFunction)_wrap_RadioButton_GetValue, METH_O, NULL},
45428 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45429 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45430 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL},
45431 { (char *)"RadioButton_swiginit", RadioButton_swiginit, METH_VARARGS, NULL},
45432 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL},
45433 { (char *)"new_PreSlider", (PyCFunction)_wrap_new_PreSlider, METH_NOARGS, NULL},
45434 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45435 { (char *)"Slider_GetValue", (PyCFunction)_wrap_Slider_GetValue, METH_O, NULL},
45436 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45437 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45438 { (char *)"Slider_GetMin", (PyCFunction)_wrap_Slider_GetMin, METH_O, NULL},
45439 { (char *)"Slider_GetMax", (PyCFunction)_wrap_Slider_GetMax, METH_O, NULL},
45440 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
45441 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
45442 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL},
45443 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
45444 { (char *)"Slider_GetLineSize", (PyCFunction)_wrap_Slider_GetLineSize, METH_O, NULL},
45445 { (char *)"Slider_GetPageSize", (PyCFunction)_wrap_Slider_GetPageSize, METH_O, NULL},
45446 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL},
45447 { (char *)"Slider_GetThumbLength", (PyCFunction)_wrap_Slider_GetThumbLength, METH_O, NULL},
45448 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL},
45449 { (char *)"Slider_GetTickFreq", (PyCFunction)_wrap_Slider_GetTickFreq, METH_O, NULL},
45450 { (char *)"Slider_ClearTicks", (PyCFunction)_wrap_Slider_ClearTicks, METH_O, NULL},
45451 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL},
45452 { (char *)"Slider_ClearSel", (PyCFunction)_wrap_Slider_ClearSel, METH_O, NULL},
45453 { (char *)"Slider_GetSelEnd", (PyCFunction)_wrap_Slider_GetSelEnd, METH_O, NULL},
45454 { (char *)"Slider_GetSelStart", (PyCFunction)_wrap_Slider_GetSelStart, METH_O, NULL},
45455 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45456 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45457 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL},
45458 { (char *)"Slider_swiginit", Slider_swiginit, METH_VARARGS, NULL},
45459 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL},
45460 { (char *)"new_PreToggleButton", (PyCFunction)_wrap_new_PreToggleButton, METH_NOARGS, NULL},
45461 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45462 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45463 { (char *)"ToggleButton_GetValue", (PyCFunction)_wrap_ToggleButton_GetValue, METH_O, NULL},
45464 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45465 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL},
45466 { (char *)"ToggleButton_swiginit", ToggleButton_swiginit, METH_VARARGS, NULL},
45467 { (char *)"BookCtrlBase_GetPageCount", (PyCFunction)_wrap_BookCtrlBase_GetPageCount, METH_O, NULL},
45468 { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL},
45469 { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetCurrentPage, METH_O, NULL},
45470 { (char *)"BookCtrlBase_GetSelection", (PyCFunction)_wrap_BookCtrlBase_GetSelection, METH_O, NULL},
45471 { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
45472 { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
45473 { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45474 { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45475 { (char *)"BookCtrlBase_GetImageList", (PyCFunction)_wrap_BookCtrlBase_GetImageList, METH_O, NULL},
45476 { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
45477 { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
45478 { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
45479 { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL},
45480 { (char *)"BookCtrlBase_GetInternalBorder", (PyCFunction)_wrap_BookCtrlBase_GetInternalBorder, METH_O, NULL},
45481 { (char *)"BookCtrlBase_SetInternalBorder", (PyCFunction) _wrap_BookCtrlBase_SetInternalBorder, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49 45482 { (char *)"BookCtrlBase_IsVertical", (PyCFunction)_wrap_BookCtrlBase_IsVertical, METH_O, NULL},
e9d6f3a4
RD
45483 { (char *)"BookCtrlBase_SetControlMargin", (PyCFunction) _wrap_BookCtrlBase_SetControlMargin, METH_VARARGS | METH_KEYWORDS, NULL},
45484 { (char *)"BookCtrlBase_GetControlMargin", (PyCFunction)_wrap_BookCtrlBase_GetControlMargin, METH_O, NULL},
0085ce49
RD
45485 { (char *)"BookCtrlBase_SetFitToCurrentPage", (PyCFunction) _wrap_BookCtrlBase_SetFitToCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL},
45486 { (char *)"BookCtrlBase_GetFitToCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetFitToCurrentPage, METH_O, NULL},
e9d6f3a4 45487 { (char *)"BookCtrlBase_GetControlSizer", (PyCFunction)_wrap_BookCtrlBase_GetControlSizer, METH_O, NULL},
0085ce49
RD
45488 { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL},
45489 { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL},
45490 { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction)_wrap_BookCtrlBase_DeleteAllPages, METH_O, NULL},
45491 { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL},
45492 { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL},
45493 { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45494 { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c 45495 { (char *)"BookCtrlBase_HitTest", (PyCFunction) _wrap_BookCtrlBase_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
45496 { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45497 { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL},
45498 { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45499 { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetSelection, METH_O, NULL},
45500 { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45501 { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetOldSelection, METH_O, NULL},
45502 { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45503 { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL},
45504 { (char *)"BookCtrlBaseEvent_swiginit", BookCtrlBaseEvent_swiginit, METH_VARARGS, NULL},
45505 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL},
45506 { (char *)"new_PreNotebook", (PyCFunction)_wrap_new_PreNotebook, METH_NOARGS, NULL},
45507 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45508 { (char *)"Notebook_GetRowCount", (PyCFunction)_wrap_Notebook_GetRowCount, METH_O, NULL},
45509 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL},
45510 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
45511 { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction)_wrap_Notebook_GetThemeBackgroundColour, METH_O, NULL},
45512 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45513 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL},
45514 { (char *)"Notebook_swiginit", Notebook_swiginit, METH_VARARGS, NULL},
45515 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45516 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL},
45517 { (char *)"NotebookEvent_swiginit", NotebookEvent_swiginit, METH_VARARGS, NULL},
45518 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL},
45519 { (char *)"new_PreListbook", (PyCFunction)_wrap_new_PreListbook, METH_NOARGS, NULL},
45520 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45521 { (char *)"Listbook_GetListView", (PyCFunction)_wrap_Listbook_GetListView, METH_O, NULL},
45522 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL},
45523 { (char *)"Listbook_swiginit", Listbook_swiginit, METH_VARARGS, NULL},
45524 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45525 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL},
45526 { (char *)"ListbookEvent_swiginit", ListbookEvent_swiginit, METH_VARARGS, NULL},
45527 { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL},
45528 { (char *)"new_PreChoicebook", (PyCFunction)_wrap_new_PreChoicebook, METH_NOARGS, NULL},
45529 { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45530 { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction)_wrap_Choicebook_GetChoiceCtrl, METH_O, NULL},
45531 { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL},
45532 { (char *)"Choicebook_swiginit", Choicebook_swiginit, METH_VARARGS, NULL},
45533 { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45534 { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL},
45535 { (char *)"ChoicebookEvent_swiginit", ChoicebookEvent_swiginit, METH_VARARGS, NULL},
45536 { (char *)"new_Treebook", (PyCFunction) _wrap_new_Treebook, METH_VARARGS | METH_KEYWORDS, NULL},
45537 { (char *)"new_PreTreebook", (PyCFunction)_wrap_new_PreTreebook, METH_NOARGS, NULL},
45538 { (char *)"Treebook_Create", (PyCFunction) _wrap_Treebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45539 { (char *)"Treebook_InsertSubPage", (PyCFunction) _wrap_Treebook_InsertSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
45540 { (char *)"Treebook_AddSubPage", (PyCFunction) _wrap_Treebook_AddSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
45541 { (char *)"Treebook_IsNodeExpanded", (PyCFunction) _wrap_Treebook_IsNodeExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
45542 { (char *)"Treebook_ExpandNode", (PyCFunction) _wrap_Treebook_ExpandNode, METH_VARARGS | METH_KEYWORDS, NULL},
45543 { (char *)"Treebook_CollapseNode", (PyCFunction) _wrap_Treebook_CollapseNode, METH_VARARGS | METH_KEYWORDS, NULL},
45544 { (char *)"Treebook_GetPageParent", (PyCFunction) _wrap_Treebook_GetPageParent, METH_VARARGS | METH_KEYWORDS, NULL},
45545 { (char *)"Treebook_GetTreeCtrl", (PyCFunction)_wrap_Treebook_GetTreeCtrl, METH_O, NULL},
45546 { (char *)"Treebook_swigregister", Treebook_swigregister, METH_VARARGS, NULL},
45547 { (char *)"Treebook_swiginit", Treebook_swiginit, METH_VARARGS, NULL},
45548 { (char *)"new_TreebookEvent", (PyCFunction) _wrap_new_TreebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45549 { (char *)"TreebookEvent_swigregister", TreebookEvent_swigregister, METH_VARARGS, NULL},
45550 { (char *)"TreebookEvent_swiginit", TreebookEvent_swiginit, METH_VARARGS, NULL},
45551 { (char *)"new_Toolbook", (PyCFunction) _wrap_new_Toolbook, METH_VARARGS | METH_KEYWORDS, NULL},
45552 { (char *)"new_PreToolbook", (PyCFunction)_wrap_new_PreToolbook, METH_NOARGS, NULL},
45553 { (char *)"Toolbook_Create", (PyCFunction) _wrap_Toolbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45554 { (char *)"Toolbook_GetToolBar", (PyCFunction)_wrap_Toolbook_GetToolBar, METH_O, NULL},
45555 { (char *)"Toolbook_Realize", (PyCFunction)_wrap_Toolbook_Realize, METH_O, NULL},
45556 { (char *)"Toolbook_swigregister", Toolbook_swigregister, METH_VARARGS, NULL},
45557 { (char *)"Toolbook_swiginit", Toolbook_swiginit, METH_VARARGS, NULL},
45558 { (char *)"new_ToolbookEvent", (PyCFunction) _wrap_new_ToolbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45559 { (char *)"ToolbookEvent_swigregister", ToolbookEvent_swigregister, METH_VARARGS, NULL},
45560 { (char *)"ToolbookEvent_swiginit", ToolbookEvent_swiginit, METH_VARARGS, NULL},
45561 { (char *)"ToolBarToolBase_GetId", (PyCFunction)_wrap_ToolBarToolBase_GetId, METH_O, NULL},
45562 { (char *)"ToolBarToolBase_GetControl", (PyCFunction)_wrap_ToolBarToolBase_GetControl, METH_O, NULL},
45563 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction)_wrap_ToolBarToolBase_GetToolBar, METH_O, NULL},
45564 { (char *)"ToolBarToolBase_IsButton", (PyCFunction)_wrap_ToolBarToolBase_IsButton, METH_O, NULL},
45565 { (char *)"ToolBarToolBase_IsControl", (PyCFunction)_wrap_ToolBarToolBase_IsControl, METH_O, NULL},
45566 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction)_wrap_ToolBarToolBase_IsSeparator, METH_O, NULL},
45567 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction)_wrap_ToolBarToolBase_GetStyle, METH_O, NULL},
45568 { (char *)"ToolBarToolBase_GetKind", (PyCFunction)_wrap_ToolBarToolBase_GetKind, METH_O, NULL},
45569 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction)_wrap_ToolBarToolBase_IsEnabled, METH_O, NULL},
45570 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction)_wrap_ToolBarToolBase_IsToggled, METH_O, NULL},
45571 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction)_wrap_ToolBarToolBase_CanBeToggled, METH_O, NULL},
45572 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetNormalBitmap, METH_O, NULL},
45573 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetDisabledBitmap, METH_O, NULL},
45574 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetBitmap, METH_O, NULL},
45575 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction)_wrap_ToolBarToolBase_GetLabel, METH_O, NULL},
45576 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction)_wrap_ToolBarToolBase_GetShortHelp, METH_O, NULL},
45577 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction)_wrap_ToolBarToolBase_GetLongHelp, METH_O, NULL},
45578 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
45579 { (char *)"ToolBarToolBase_Toggle", (PyCFunction)_wrap_ToolBarToolBase_Toggle, METH_O, NULL},
45580 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
45581 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45582 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45583 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45584 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45585 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45586 { (char *)"ToolBarToolBase_Detach", (PyCFunction)_wrap_ToolBarToolBase_Detach, METH_O, NULL},
45587 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL},
45588 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction)_wrap_ToolBarToolBase_GetClientData, METH_O, NULL},
45589 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
45590 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL},
45591 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL},
45592 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL},
45593 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
45594 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
45595 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL},
45596 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL},
45597 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL},
45598 { (char *)"ToolBarBase_AddSeparator", (PyCFunction)_wrap_ToolBarBase_AddSeparator, METH_O, NULL},
45599 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL},
45600 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL},
45601 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL},
45602 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL},
45603 { (char *)"ToolBarBase_ClearTools", (PyCFunction)_wrap_ToolBarBase_ClearTools, METH_O, NULL},
45604 { (char *)"ToolBarBase_Realize", (PyCFunction)_wrap_ToolBarBase_Realize, METH_O, NULL},
45605 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL},
45606 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL},
45607 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
45608 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
45609 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
45610 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL},
45611 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL},
45612 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
45613 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45614 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45615 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45616 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45617 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL},
45618 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
45619 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL},
45620 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL},
45621 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction)_wrap_ToolBarBase_GetToolMargins, METH_O, NULL},
45622 { (char *)"ToolBarBase_GetMargins", (PyCFunction)_wrap_ToolBarBase_GetMargins, METH_O, NULL},
45623 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction)_wrap_ToolBarBase_GetToolPacking, METH_O, NULL},
45624 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction)_wrap_ToolBarBase_GetToolSeparation, METH_O, NULL},
45625 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL},
45626 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL},
45627 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction)_wrap_ToolBarBase_GetMaxRows, METH_O, NULL},
45628 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction)_wrap_ToolBarBase_GetMaxCols, METH_O, NULL},
45629 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL},
45630 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction)_wrap_ToolBarBase_GetToolBitmapSize, METH_O, NULL},
45631 { (char *)"ToolBarBase_GetToolSize", (PyCFunction)_wrap_ToolBarBase_GetToolSize, METH_O, NULL},
45632 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45633 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL},
45634 { (char *)"ToolBarBase_IsVertical", (PyCFunction)_wrap_ToolBarBase_IsVertical, METH_O, NULL},
45635 { (char *)"ToolBarBase_GetToolsCount", (PyCFunction)_wrap_ToolBarBase_GetToolsCount, METH_O, NULL},
45636 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL},
45637 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL},
45638 { (char *)"new_PreToolBar", (PyCFunction)_wrap_new_PreToolBar, METH_NOARGS, NULL},
45639 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
45640 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45641 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL},
45642 { (char *)"ToolBar_swiginit", ToolBar_swiginit, METH_VARARGS, NULL},
45643 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL},
45644 { (char *)"delete_ListItemAttr", (PyCFunction)_wrap_delete_ListItemAttr, METH_O, NULL},
45645 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45646 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45647 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
45648 { (char *)"ListItemAttr_HasTextColour", (PyCFunction)_wrap_ListItemAttr_HasTextColour, METH_O, NULL},
45649 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction)_wrap_ListItemAttr_HasBackgroundColour, METH_O, NULL},
45650 { (char *)"ListItemAttr_HasFont", (PyCFunction)_wrap_ListItemAttr_HasFont, METH_O, NULL},
45651 { (char *)"ListItemAttr_GetTextColour", (PyCFunction)_wrap_ListItemAttr_GetTextColour, METH_O, NULL},
45652 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction)_wrap_ListItemAttr_GetBackgroundColour, METH_O, NULL},
45653 { (char *)"ListItemAttr_GetFont", (PyCFunction)_wrap_ListItemAttr_GetFont, METH_O, NULL},
45654 { (char *)"ListItemAttr_AssignFrom", (PyCFunction) _wrap_ListItemAttr_AssignFrom, METH_VARARGS | METH_KEYWORDS, NULL},
45655 { (char *)"ListItemAttr_Destroy", (PyCFunction)_wrap_ListItemAttr_Destroy, METH_O, NULL},
45656 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL},
45657 { (char *)"ListItemAttr_swiginit", ListItemAttr_swiginit, METH_VARARGS, NULL},
45658 { (char *)"new_ListItem", (PyCFunction)_wrap_new_ListItem, METH_NOARGS, NULL},
45659 { (char *)"delete_ListItem", (PyCFunction)_wrap_delete_ListItem, METH_O, NULL},
45660 { (char *)"ListItem_Clear", (PyCFunction)_wrap_ListItem_Clear, METH_O, NULL},
45661 { (char *)"ListItem_ClearAttributes", (PyCFunction)_wrap_ListItem_ClearAttributes, METH_O, NULL},
45662 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
45663 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
45664 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45665 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
45666 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL},
45667 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
45668 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL},
45669 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
45670 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45671 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL},
45672 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45673 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45674 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
45675 { (char *)"ListItem_GetMask", (PyCFunction)_wrap_ListItem_GetMask, METH_O, NULL},
45676 { (char *)"ListItem_GetId", (PyCFunction)_wrap_ListItem_GetId, METH_O, NULL},
45677 { (char *)"ListItem_GetColumn", (PyCFunction)_wrap_ListItem_GetColumn, METH_O, NULL},
45678 { (char *)"ListItem_GetState", (PyCFunction)_wrap_ListItem_GetState, METH_O, NULL},
45679 { (char *)"ListItem_GetText", (PyCFunction)_wrap_ListItem_GetText, METH_O, NULL},
45680 { (char *)"ListItem_GetImage", (PyCFunction)_wrap_ListItem_GetImage, METH_O, NULL},
45681 { (char *)"ListItem_GetData", (PyCFunction)_wrap_ListItem_GetData, METH_O, NULL},
45682 { (char *)"ListItem_GetWidth", (PyCFunction)_wrap_ListItem_GetWidth, METH_O, NULL},
45683 { (char *)"ListItem_GetAlign", (PyCFunction)_wrap_ListItem_GetAlign, METH_O, NULL},
45684 { (char *)"ListItem_GetAttributes", (PyCFunction)_wrap_ListItem_GetAttributes, METH_O, NULL},
45685 { (char *)"ListItem_HasAttributes", (PyCFunction)_wrap_ListItem_HasAttributes, METH_O, NULL},
45686 { (char *)"ListItem_GetTextColour", (PyCFunction)_wrap_ListItem_GetTextColour, METH_O, NULL},
45687 { (char *)"ListItem_GetBackgroundColour", (PyCFunction)_wrap_ListItem_GetBackgroundColour, METH_O, NULL},
45688 { (char *)"ListItem_GetFont", (PyCFunction)_wrap_ListItem_GetFont, METH_O, NULL},
45689 { (char *)"ListItem_m_mask_set", _wrap_ListItem_m_mask_set, METH_VARARGS, NULL},
45690 { (char *)"ListItem_m_mask_get", (PyCFunction)_wrap_ListItem_m_mask_get, METH_O, NULL},
45691 { (char *)"ListItem_m_itemId_set", _wrap_ListItem_m_itemId_set, METH_VARARGS, NULL},
45692 { (char *)"ListItem_m_itemId_get", (PyCFunction)_wrap_ListItem_m_itemId_get, METH_O, NULL},
45693 { (char *)"ListItem_m_col_set", _wrap_ListItem_m_col_set, METH_VARARGS, NULL},
45694 { (char *)"ListItem_m_col_get", (PyCFunction)_wrap_ListItem_m_col_get, METH_O, NULL},
45695 { (char *)"ListItem_m_state_set", _wrap_ListItem_m_state_set, METH_VARARGS, NULL},
45696 { (char *)"ListItem_m_state_get", (PyCFunction)_wrap_ListItem_m_state_get, METH_O, NULL},
45697 { (char *)"ListItem_m_stateMask_set", _wrap_ListItem_m_stateMask_set, METH_VARARGS, NULL},
45698 { (char *)"ListItem_m_stateMask_get", (PyCFunction)_wrap_ListItem_m_stateMask_get, METH_O, NULL},
45699 { (char *)"ListItem_m_text_set", _wrap_ListItem_m_text_set, METH_VARARGS, NULL},
45700 { (char *)"ListItem_m_text_get", (PyCFunction)_wrap_ListItem_m_text_get, METH_O, NULL},
45701 { (char *)"ListItem_m_image_set", _wrap_ListItem_m_image_set, METH_VARARGS, NULL},
45702 { (char *)"ListItem_m_image_get", (PyCFunction)_wrap_ListItem_m_image_get, METH_O, NULL},
45703 { (char *)"ListItem_m_data_set", _wrap_ListItem_m_data_set, METH_VARARGS, NULL},
45704 { (char *)"ListItem_m_data_get", (PyCFunction)_wrap_ListItem_m_data_get, METH_O, NULL},
45705 { (char *)"ListItem_m_format_set", _wrap_ListItem_m_format_set, METH_VARARGS, NULL},
45706 { (char *)"ListItem_m_format_get", (PyCFunction)_wrap_ListItem_m_format_get, METH_O, NULL},
45707 { (char *)"ListItem_m_width_set", _wrap_ListItem_m_width_set, METH_VARARGS, NULL},
45708 { (char *)"ListItem_m_width_get", (PyCFunction)_wrap_ListItem_m_width_get, METH_O, NULL},
45709 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL},
45710 { (char *)"ListItem_swiginit", ListItem_swiginit, METH_VARARGS, NULL},
45711 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45712 { (char *)"ListEvent_m_code_set", _wrap_ListEvent_m_code_set, METH_VARARGS, NULL},
45713 { (char *)"ListEvent_m_code_get", (PyCFunction)_wrap_ListEvent_m_code_get, METH_O, NULL},
45714 { (char *)"ListEvent_m_oldItemIndex_set", _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS, NULL},
45715 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction)_wrap_ListEvent_m_oldItemIndex_get, METH_O, NULL},
45716 { (char *)"ListEvent_m_itemIndex_set", _wrap_ListEvent_m_itemIndex_set, METH_VARARGS, NULL},
45717 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction)_wrap_ListEvent_m_itemIndex_get, METH_O, NULL},
45718 { (char *)"ListEvent_m_col_set", _wrap_ListEvent_m_col_set, METH_VARARGS, NULL},
45719 { (char *)"ListEvent_m_col_get", (PyCFunction)_wrap_ListEvent_m_col_get, METH_O, NULL},
45720 { (char *)"ListEvent_m_pointDrag_set", _wrap_ListEvent_m_pointDrag_set, METH_VARARGS, NULL},
45721 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction)_wrap_ListEvent_m_pointDrag_get, METH_O, NULL},
45722 { (char *)"ListEvent_m_item_get", (PyCFunction)_wrap_ListEvent_m_item_get, METH_O, NULL},
45723 { (char *)"ListEvent_GetKeyCode", (PyCFunction)_wrap_ListEvent_GetKeyCode, METH_O, NULL},
45724 { (char *)"ListEvent_GetIndex", (PyCFunction)_wrap_ListEvent_GetIndex, METH_O, NULL},
45725 { (char *)"ListEvent_GetColumn", (PyCFunction)_wrap_ListEvent_GetColumn, METH_O, NULL},
45726 { (char *)"ListEvent_GetPoint", (PyCFunction)_wrap_ListEvent_GetPoint, METH_O, NULL},
45727 { (char *)"ListEvent_GetLabel", (PyCFunction)_wrap_ListEvent_GetLabel, METH_O, NULL},
45728 { (char *)"ListEvent_GetText", (PyCFunction)_wrap_ListEvent_GetText, METH_O, NULL},
45729 { (char *)"ListEvent_GetImage", (PyCFunction)_wrap_ListEvent_GetImage, METH_O, NULL},
45730 { (char *)"ListEvent_GetData", (PyCFunction)_wrap_ListEvent_GetData, METH_O, NULL},
45731 { (char *)"ListEvent_GetMask", (PyCFunction)_wrap_ListEvent_GetMask, METH_O, NULL},
45732 { (char *)"ListEvent_GetItem", (PyCFunction)_wrap_ListEvent_GetItem, METH_O, NULL},
45733 { (char *)"ListEvent_GetCacheFrom", (PyCFunction)_wrap_ListEvent_GetCacheFrom, METH_O, NULL},
45734 { (char *)"ListEvent_GetCacheTo", (PyCFunction)_wrap_ListEvent_GetCacheTo, METH_O, NULL},
45735 { (char *)"ListEvent_IsEditCancelled", (PyCFunction)_wrap_ListEvent_IsEditCancelled, METH_O, NULL},
45736 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
45737 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL},
45738 { (char *)"ListEvent_swiginit", ListEvent_swiginit, METH_VARARGS, NULL},
45739 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45740 { (char *)"new_PreListCtrl", (PyCFunction)_wrap_new_PreListCtrl, METH_NOARGS, NULL},
45741 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45742 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
45743 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45744 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45745 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45746 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45747 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction)_wrap_ListCtrl_GetCountPerPage, METH_O, NULL},
45748 { (char *)"ListCtrl_GetViewRect", (PyCFunction)_wrap_ListCtrl_GetViewRect, METH_O, NULL},
45749 { (char *)"ListCtrl_GetEditControl", (PyCFunction)_wrap_ListCtrl_GetEditControl, METH_O, NULL},
45750 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL},
45751 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
45752 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
45753 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
45754 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
45755 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
45756 { (char *)"ListCtrl_SetItemColumnImage", (PyCFunction) _wrap_ListCtrl_SetItemColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
45757 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
45758 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
45759 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45760 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45761 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45762 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL},
45763 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45764 { (char *)"ListCtrl_GetItemCount", (PyCFunction)_wrap_ListCtrl_GetItemCount, METH_O, NULL},
45765 { (char *)"ListCtrl_GetColumnCount", (PyCFunction)_wrap_ListCtrl_GetColumnCount, METH_O, NULL},
45766 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction)_wrap_ListCtrl_GetItemSpacing, METH_O, NULL},
45767 { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
45768 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction)_wrap_ListCtrl_GetSelectedItemCount, METH_O, NULL},
45769 { (char *)"ListCtrl_GetTextColour", (PyCFunction)_wrap_ListCtrl_GetTextColour, METH_O, NULL},
45770 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45771 { (char *)"ListCtrl_GetTopItem", (PyCFunction)_wrap_ListCtrl_GetTopItem, METH_O, NULL},
45772 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45773 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
45774 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45775 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45776 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45777 { (char *)"ListCtrl_InReportView", (PyCFunction)_wrap_ListCtrl_InReportView, METH_O, NULL},
45778 { (char *)"ListCtrl_IsVirtual", (PyCFunction)_wrap_ListCtrl_IsVirtual, METH_O, NULL},
45779 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL},
45780 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL},
45781 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL},
45782 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL},
45783 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction)_wrap_ListCtrl_DeleteAllItems, METH_O, NULL},
45784 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45785 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction)_wrap_ListCtrl_DeleteAllColumns, METH_O, NULL},
45786 { (char *)"ListCtrl_ClearAll", (PyCFunction)_wrap_ListCtrl_ClearAll, METH_O, NULL},
45787 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45788 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45789 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL},
45790 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45791 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL},
45792 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c 45793 { (char *)"ListCtrl_HitTestSubItem", (PyCFunction) _wrap_ListCtrl_HitTestSubItem, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
45794 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
45795 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
45796 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL},
45797 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
45798 { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL},
45799 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45800 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL},
45801 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL},
45802 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45803 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45804 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45805 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45806 { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
45807 { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
45808 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL},
45809 { (char *)"ListCtrl_GetMainWindow", (PyCFunction)_wrap_ListCtrl_GetMainWindow, METH_O, NULL},
45810 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45811 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL},
45812 { (char *)"ListCtrl_swiginit", ListCtrl_swiginit, METH_VARARGS, NULL},
45813 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL},
45814 { (char *)"new_PreListView", (PyCFunction)_wrap_new_PreListView, METH_NOARGS, NULL},
45815 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45816 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL},
45817 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL},
45818 { (char *)"ListView_GetFocusedItem", (PyCFunction)_wrap_ListView_GetFocusedItem, METH_O, NULL},
45819 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45820 { (char *)"ListView_GetFirstSelected", (PyCFunction)_wrap_ListView_GetFirstSelected, METH_O, NULL},
45821 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45822 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
45823 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
45824 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL},
45825 { (char *)"ListView_swiginit", ListView_swiginit, METH_VARARGS, NULL},
45826 { (char *)"new_TreeItemId", (PyCFunction)_wrap_new_TreeItemId, METH_NOARGS, NULL},
45827 { (char *)"delete_TreeItemId", (PyCFunction)_wrap_delete_TreeItemId, METH_O, NULL},
45828 { (char *)"TreeItemId_IsOk", (PyCFunction)_wrap_TreeItemId_IsOk, METH_O, NULL},
45829 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
45830 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
45831 { (char *)"TreeItemId_m_pItem_set", _wrap_TreeItemId_m_pItem_set, METH_VARARGS, NULL},
45832 { (char *)"TreeItemId_m_pItem_get", (PyCFunction)_wrap_TreeItemId_m_pItem_get, METH_O, NULL},
45833 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL},
45834 { (char *)"TreeItemId_swiginit", TreeItemId_swiginit, METH_VARARGS, NULL},
45835 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45836 { (char *)"delete_TreeItemData", (PyCFunction)_wrap_delete_TreeItemData, METH_O, NULL},
45837 { (char *)"TreeItemData_GetData", (PyCFunction)_wrap_TreeItemData_GetData, METH_O, NULL},
45838 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
45839 { (char *)"TreeItemData_GetId", (PyCFunction)_wrap_TreeItemData_GetId, METH_O, NULL},
45840 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
45841 { (char *)"TreeItemData_Destroy", (PyCFunction)_wrap_TreeItemData_Destroy, METH_O, NULL},
45842 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL},
45843 { (char *)"TreeItemData_swiginit", TreeItemData_swiginit, METH_VARARGS, NULL},
b02396e8 45844 { (char *)"new_TreeEvent", _wrap_new_TreeEvent, METH_VARARGS, NULL},
0085ce49
RD
45845 { (char *)"TreeEvent_GetItem", (PyCFunction)_wrap_TreeEvent_GetItem, METH_O, NULL},
45846 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
45847 { (char *)"TreeEvent_GetOldItem", (PyCFunction)_wrap_TreeEvent_GetOldItem, METH_O, NULL},
45848 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL},
45849 { (char *)"TreeEvent_GetPoint", (PyCFunction)_wrap_TreeEvent_GetPoint, METH_O, NULL},
45850 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL},
45851 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction)_wrap_TreeEvent_GetKeyEvent, METH_O, NULL},
45852 { (char *)"TreeEvent_GetKeyCode", (PyCFunction)_wrap_TreeEvent_GetKeyCode, METH_O, NULL},
45853 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45854 { (char *)"TreeEvent_GetLabel", (PyCFunction)_wrap_TreeEvent_GetLabel, METH_O, NULL},
45855 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45856 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction)_wrap_TreeEvent_IsEditCancelled, METH_O, NULL},
45857 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
45858 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
45859 { (char *)"TreeEvent_GetToolTip", (PyCFunction)_wrap_TreeEvent_GetToolTip, METH_O, NULL},
45860 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL},
45861 { (char *)"TreeEvent_swiginit", TreeEvent_swiginit, METH_VARARGS, NULL},
45862 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45863 { (char *)"new_PreTreeCtrl", (PyCFunction)_wrap_new_PreTreeCtrl, METH_NOARGS, NULL},
45864 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45865 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
45866 { (char *)"TreeCtrl_GetCount", (PyCFunction)_wrap_TreeCtrl_GetCount, METH_O, NULL},
45867 { (char *)"TreeCtrl_GetIndent", (PyCFunction)_wrap_TreeCtrl_GetIndent, METH_O, NULL},
45868 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL},
45869 { (char *)"TreeCtrl_GetSpacing", (PyCFunction)_wrap_TreeCtrl_GetSpacing, METH_O, NULL},
45870 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
45871 { (char *)"TreeCtrl_GetImageList", (PyCFunction)_wrap_TreeCtrl_GetImageList, METH_O, NULL},
45872 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction)_wrap_TreeCtrl_GetStateImageList, METH_O, NULL},
45873 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45874 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45875 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45876 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45877 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
45878 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
45879 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45880 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
45881 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45882 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45883 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
45884 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
45885 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
45886 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45887 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
45888 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
45889 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL},
45890 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL},
45891 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45892 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45893 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
45894 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45895 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
45896 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
45897 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45898 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL},
45899 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL},
45900 { (char *)"TreeCtrl_GetRootItem", (PyCFunction)_wrap_TreeCtrl_GetRootItem, METH_O, NULL},
45901 { (char *)"TreeCtrl_GetSelection", (PyCFunction)_wrap_TreeCtrl_GetSelection, METH_O, NULL},
45902 { (char *)"TreeCtrl_GetSelections", (PyCFunction)_wrap_TreeCtrl_GetSelections, METH_O, NULL},
45903 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL},
45904 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL},
45905 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL},
45906 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL},
45907 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL},
45908 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL},
45909 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction)_wrap_TreeCtrl_GetFirstVisibleItem, METH_O, NULL},
45910 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45911 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45912 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL},
45913 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},
45914 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
45915 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL},
45916 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL},
45917 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
45918 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL},
45919 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction)_wrap_TreeCtrl_DeleteAllItems, METH_O, NULL},
45920 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL},
453fb36b
RD
45921 { (char *)"TreeCtrl_ExpandAllChildren", (PyCFunction) _wrap_TreeCtrl_ExpandAllChildren, METH_VARARGS | METH_KEYWORDS, NULL},
45922 { (char *)"TreeCtrl_ExpandAll", (PyCFunction)_wrap_TreeCtrl_ExpandAll, METH_O, NULL},
0085ce49
RD
45923 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
45924 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL},
45925 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL},
45926 { (char *)"TreeCtrl_Unselect", (PyCFunction)_wrap_TreeCtrl_Unselect, METH_O, NULL},
45927 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL},
45928 { (char *)"TreeCtrl_UnselectAll", (PyCFunction)_wrap_TreeCtrl_UnselectAll, METH_O, NULL},
45929 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL},
45930 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45931 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45932 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL},
45933 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45934 { (char *)"TreeCtrl_GetEditControl", (PyCFunction)_wrap_TreeCtrl_GetEditControl, METH_O, NULL},
45935 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL},
45936 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
45937 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL},
45938 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
2131d850
RD
45939 { (char *)"TreeCtrl_SetQuickBestSize", (PyCFunction) _wrap_TreeCtrl_SetQuickBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
45940 { (char *)"TreeCtrl_GetQuickBestSize", (PyCFunction)_wrap_TreeCtrl_GetQuickBestSize, METH_O, NULL},
0085ce49
RD
45941 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL},
45942 { (char *)"TreeCtrl_swiginit", TreeCtrl_swiginit, METH_VARARGS, NULL},
45943 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45944 { (char *)"new_PreGenericDirCtrl", (PyCFunction)_wrap_new_PreGenericDirCtrl, METH_NOARGS, NULL},
45945 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45946 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c 45947 { (char *)"GenericDirCtrl_CollapsePath", (PyCFunction) _wrap_GenericDirCtrl_CollapsePath, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
45948 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction)_wrap_GenericDirCtrl_GetDefaultPath, METH_O, NULL},
45949 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL},
45950 { (char *)"GenericDirCtrl_GetPath", (PyCFunction)_wrap_GenericDirCtrl_GetPath, METH_O, NULL},
45951 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction)_wrap_GenericDirCtrl_GetFilePath, METH_O, NULL},
45952 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
45953 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL},
45954 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction)_wrap_GenericDirCtrl_GetShowHidden, METH_O, NULL},
45955 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction)_wrap_GenericDirCtrl_GetFilter, METH_O, NULL},
45956 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL},
45957 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction)_wrap_GenericDirCtrl_GetFilterIndex, METH_O, NULL},
45958 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL},
45959 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction)_wrap_GenericDirCtrl_GetRootId, METH_O, NULL},
45960 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetTreeCtrl, METH_O, NULL},
45961 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetFilterListCtrl, METH_O, NULL},
45962 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL},
45963 { (char *)"GenericDirCtrl_DoResize", (PyCFunction)_wrap_GenericDirCtrl_DoResize, METH_O, NULL},
45964 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction)_wrap_GenericDirCtrl_ReCreateTree, METH_O, NULL},
45965 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL},
45966 { (char *)"GenericDirCtrl_swiginit", GenericDirCtrl_swiginit, METH_VARARGS, NULL},
45967 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45968 { (char *)"new_PreDirFilterListCtrl", (PyCFunction)_wrap_new_PreDirFilterListCtrl, METH_NOARGS, NULL},
45969 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45970 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL},
45971 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL},
45972 { (char *)"DirFilterListCtrl_swiginit", DirFilterListCtrl_swiginit, METH_VARARGS, NULL},
45973 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL},
45974 { (char *)"new_PrePyControl", (PyCFunction)_wrap_new_PrePyControl, METH_NOARGS, NULL},
45975 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
45976 { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
45977 { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL},
45978 { (char *)"PyControl_DoMoveWindow", (PyCFunction) _wrap_PyControl_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL},
45979 { (char *)"PyControl_DoSetSize", (PyCFunction) _wrap_PyControl_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL},
45980 { (char *)"PyControl_DoSetClientSize", (PyCFunction) _wrap_PyControl_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL},
45981 { (char *)"PyControl_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL},
45982 { (char *)"PyControl_DoGetSize", (PyCFunction)_wrap_PyControl_DoGetSize, METH_O, NULL},
45983 { (char *)"PyControl_DoGetClientSize", (PyCFunction)_wrap_PyControl_DoGetClientSize, METH_O, NULL},
45984 { (char *)"PyControl_DoGetPosition", (PyCFunction)_wrap_PyControl_DoGetPosition, METH_O, NULL},
45985 { (char *)"PyControl_DoGetVirtualSize", (PyCFunction)_wrap_PyControl_DoGetVirtualSize, METH_O, NULL},
45986 { (char *)"PyControl_DoGetBestSize", (PyCFunction)_wrap_PyControl_DoGetBestSize, METH_O, NULL},
45987 { (char *)"PyControl_GetDefaultAttributes", (PyCFunction)_wrap_PyControl_GetDefaultAttributes, METH_O, NULL},
45988 { (char *)"PyControl_OnInternalIdle", (PyCFunction)_wrap_PyControl_OnInternalIdle, METH_O, NULL},
45989 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL},
45990 { (char *)"PyControl_swiginit", PyControl_swiginit, METH_VARARGS, NULL},
45991 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45992 { (char *)"HelpEvent_GetPosition", (PyCFunction)_wrap_HelpEvent_GetPosition, METH_O, NULL},
45993 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45994 { (char *)"HelpEvent_GetLink", (PyCFunction)_wrap_HelpEvent_GetLink, METH_O, NULL},
45995 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL},
45996 { (char *)"HelpEvent_GetTarget", (PyCFunction)_wrap_HelpEvent_GetTarget, METH_O, NULL},
45997 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c
RD
45998 { (char *)"HelpEvent_GetOrigin", (PyCFunction)_wrap_HelpEvent_GetOrigin, METH_O, NULL},
45999 { (char *)"HelpEvent_SetOrigin", (PyCFunction) _wrap_HelpEvent_SetOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
46000 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL},
46001 { (char *)"HelpEvent_swiginit", HelpEvent_swiginit, METH_VARARGS, NULL},
46002 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46003 { (char *)"delete_ContextHelp", (PyCFunction)_wrap_delete_ContextHelp, METH_O, NULL},
46004 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46005 { (char *)"ContextHelp_EndContextHelp", (PyCFunction)_wrap_ContextHelp_EndContextHelp, METH_O, NULL},
46006 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL},
46007 { (char *)"ContextHelp_swiginit", ContextHelp_swiginit, METH_VARARGS, NULL},
46008 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL},
46009 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL},
46010 { (char *)"ContextHelpButton_swiginit", ContextHelpButton_swiginit, METH_VARARGS, NULL},
f52cbe90 46011 { (char *)"delete_HelpProvider", (PyCFunction)_wrap_delete_HelpProvider, METH_O, NULL},
0085ce49
RD
46012 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL},
46013 { (char *)"HelpProvider_Get", (PyCFunction)_wrap_HelpProvider_Get, METH_NOARGS, NULL},
46014 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46015 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3 46016 { (char *)"HelpProvider_ShowHelpAtPoint", (PyCFunction) _wrap_HelpProvider_ShowHelpAtPoint, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
46017 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46018 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL},
46019 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46020 { (char *)"HelpProvider_Destroy", (PyCFunction)_wrap_HelpProvider_Destroy, METH_O, NULL},
46021 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL},
46022 { (char *)"new_SimpleHelpProvider", (PyCFunction)_wrap_new_SimpleHelpProvider, METH_NOARGS, NULL},
46023 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL},
46024 { (char *)"SimpleHelpProvider_swiginit", SimpleHelpProvider_swiginit, METH_VARARGS, NULL},
46025 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL},
46026 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL},
46027 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL},
46028 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL},
46029 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL},
46030 { (char *)"delete_DragImage", (PyCFunction)_wrap_delete_DragImage, METH_O, NULL},
46031 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
46032 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL},
46033 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL},
46034 { (char *)"DragImage_EndDrag", (PyCFunction)_wrap_DragImage_EndDrag, METH_O, NULL},
46035 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL},
46036 { (char *)"DragImage_Show", (PyCFunction)_wrap_DragImage_Show, METH_O, NULL},
46037 { (char *)"DragImage_Hide", (PyCFunction)_wrap_DragImage_Hide, METH_O, NULL},
46038 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL},
46039 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
46040 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL},
46041 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
46042 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL},
46043 { (char *)"DragImage_swiginit", DragImage_swiginit, METH_VARARGS, NULL},
46044 { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46045 { (char *)"new_PreDatePickerCtrl", (PyCFunction)_wrap_new_PreDatePickerCtrl, METH_NOARGS, NULL},
46046 { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46047 { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46048 { (char *)"DatePickerCtrl_GetValue", (PyCFunction)_wrap_DatePickerCtrl_GetValue, METH_O, NULL},
46049 { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46050 { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction)_wrap_DatePickerCtrl_GetLowerLimit, METH_O, NULL},
46051 { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction)_wrap_DatePickerCtrl_GetUpperLimit, METH_O, NULL},
46052 { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL},
46053 { (char *)"DatePickerCtrl_swiginit", DatePickerCtrl_swiginit, METH_VARARGS, NULL},
704eda0c
RD
46054 { (char *)"new_HyperlinkCtrl", (PyCFunction) _wrap_new_HyperlinkCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46055 { (char *)"new_PreHyperlinkCtrl", (PyCFunction)_wrap_new_PreHyperlinkCtrl, METH_NOARGS, NULL},
46056 { (char *)"HyperlinkCtrl_Create", (PyCFunction) _wrap_HyperlinkCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46057 { (char *)"HyperlinkCtrl_GetHoverColour", (PyCFunction)_wrap_HyperlinkCtrl_GetHoverColour, METH_O, NULL},
46058 { (char *)"HyperlinkCtrl_SetHoverColour", (PyCFunction) _wrap_HyperlinkCtrl_SetHoverColour, METH_VARARGS | METH_KEYWORDS, NULL},
46059 { (char *)"HyperlinkCtrl_GetNormalColour", (PyCFunction)_wrap_HyperlinkCtrl_GetNormalColour, METH_O, NULL},
46060 { (char *)"HyperlinkCtrl_SetNormalColour", (PyCFunction) _wrap_HyperlinkCtrl_SetNormalColour, METH_VARARGS | METH_KEYWORDS, NULL},
46061 { (char *)"HyperlinkCtrl_GetVisitedColour", (PyCFunction)_wrap_HyperlinkCtrl_GetVisitedColour, METH_O, NULL},
46062 { (char *)"HyperlinkCtrl_SetVisitedColour", (PyCFunction) _wrap_HyperlinkCtrl_SetVisitedColour, METH_VARARGS | METH_KEYWORDS, NULL},
46063 { (char *)"HyperlinkCtrl_GetURL", (PyCFunction)_wrap_HyperlinkCtrl_GetURL, METH_O, NULL},
46064 { (char *)"HyperlinkCtrl_SetURL", (PyCFunction) _wrap_HyperlinkCtrl_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
46065 { (char *)"HyperlinkCtrl_SetVisited", (PyCFunction) _wrap_HyperlinkCtrl_SetVisited, METH_VARARGS | METH_KEYWORDS, NULL},
46066 { (char *)"HyperlinkCtrl_GetVisited", (PyCFunction)_wrap_HyperlinkCtrl_GetVisited, METH_O, NULL},
46067 { (char *)"HyperlinkCtrl_swigregister", HyperlinkCtrl_swigregister, METH_VARARGS, NULL},
46068 { (char *)"HyperlinkCtrl_swiginit", HyperlinkCtrl_swiginit, METH_VARARGS, NULL},
46069 { (char *)"new_HyperlinkEvent", (PyCFunction) _wrap_new_HyperlinkEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46070 { (char *)"HyperlinkEvent_GetURL", (PyCFunction)_wrap_HyperlinkEvent_GetURL, METH_O, NULL},
46071 { (char *)"HyperlinkEvent_SetURL", (PyCFunction) _wrap_HyperlinkEvent_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
46072 { (char *)"HyperlinkEvent_swigregister", HyperlinkEvent_swigregister, METH_VARARGS, NULL},
46073 { (char *)"HyperlinkEvent_swiginit", HyperlinkEvent_swiginit, METH_VARARGS, NULL},
b850e7f3
RD
46074 { (char *)"PickerBase_CreateBase", (PyCFunction) _wrap_PickerBase_CreateBase, METH_VARARGS | METH_KEYWORDS, NULL},
46075 { (char *)"PickerBase_SetInternalMargin", (PyCFunction) _wrap_PickerBase_SetInternalMargin, METH_VARARGS | METH_KEYWORDS, NULL},
46076 { (char *)"PickerBase_GetInternalMargin", (PyCFunction)_wrap_PickerBase_GetInternalMargin, METH_O, NULL},
46077 { (char *)"PickerBase_SetTextCtrlProportion", (PyCFunction) _wrap_PickerBase_SetTextCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
46078 { (char *)"PickerBase_GetTextCtrlProportion", (PyCFunction)_wrap_PickerBase_GetTextCtrlProportion, METH_O, NULL},
b02396e8
RD
46079 { (char *)"PickerBase_IsTextCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsTextCtrlGrowable, METH_O, NULL},
46080 { (char *)"PickerBase_SetTextCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetTextCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
46081 { (char *)"PickerBase_IsPickerCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsPickerCtrlGrowable, METH_O, NULL},
46082 { (char *)"PickerBase_SetPickerCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetPickerCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3
RD
46083 { (char *)"PickerBase_HasTextCtrl", (PyCFunction)_wrap_PickerBase_HasTextCtrl, METH_O, NULL},
46084 { (char *)"PickerBase_GetTextCtrl", (PyCFunction)_wrap_PickerBase_GetTextCtrl, METH_O, NULL},
46085 { (char *)"PickerBase_GetPickerCtrl", (PyCFunction)_wrap_PickerBase_GetPickerCtrl, METH_O, NULL},
46086 { (char *)"PickerBase_swigregister", PickerBase_swigregister, METH_VARARGS, NULL},
46087 { (char *)"new_ColourPickerCtrl", (PyCFunction) _wrap_new_ColourPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46088 { (char *)"new_PreColourPickerCtrl", (PyCFunction)_wrap_new_PreColourPickerCtrl, METH_NOARGS, NULL},
46089 { (char *)"ColourPickerCtrl_Create", (PyCFunction) _wrap_ColourPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46090 { (char *)"ColourPickerCtrl_GetColour", (PyCFunction)_wrap_ColourPickerCtrl_GetColour, METH_O, NULL},
46091 { (char *)"ColourPickerCtrl_SetColour", (PyCFunction) _wrap_ColourPickerCtrl_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
46092 { (char *)"ColourPickerCtrl_swigregister", ColourPickerCtrl_swigregister, METH_VARARGS, NULL},
46093 { (char *)"ColourPickerCtrl_swiginit", ColourPickerCtrl_swiginit, METH_VARARGS, NULL},
46094 { (char *)"new_ColourPickerEvent", (PyCFunction) _wrap_new_ColourPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46095 { (char *)"ColourPickerEvent_GetColour", (PyCFunction)_wrap_ColourPickerEvent_GetColour, METH_O, NULL},
46096 { (char *)"ColourPickerEvent_SetColour", (PyCFunction) _wrap_ColourPickerEvent_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
46097 { (char *)"ColourPickerEvent_swigregister", ColourPickerEvent_swigregister, METH_VARARGS, NULL},
46098 { (char *)"ColourPickerEvent_swiginit", ColourPickerEvent_swiginit, METH_VARARGS, NULL},
46099 { (char *)"new_FilePickerCtrl", (PyCFunction) _wrap_new_FilePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46100 { (char *)"new_PreFilePickerCtrl", (PyCFunction)_wrap_new_PreFilePickerCtrl, METH_NOARGS, NULL},
46101 { (char *)"FilePickerCtrl_Create", (PyCFunction) _wrap_FilePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46102 { (char *)"FilePickerCtrl_GetPath", (PyCFunction)_wrap_FilePickerCtrl_GetPath, METH_O, NULL},
46103 { (char *)"FilePickerCtrl_SetPath", (PyCFunction) _wrap_FilePickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
b02396e8
RD
46104 { (char *)"FilePickerCtrl_CheckPath", (PyCFunction) _wrap_FilePickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
46105 { (char *)"FilePickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_FilePickerCtrl_GetTextCtrlValue, METH_O, NULL},
b850e7f3
RD
46106 { (char *)"FilePickerCtrl_swigregister", FilePickerCtrl_swigregister, METH_VARARGS, NULL},
46107 { (char *)"FilePickerCtrl_swiginit", FilePickerCtrl_swiginit, METH_VARARGS, NULL},
46108 { (char *)"new_DirPickerCtrl", (PyCFunction) _wrap_new_DirPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46109 { (char *)"new_PreDirPickerCtrl", (PyCFunction)_wrap_new_PreDirPickerCtrl, METH_NOARGS, NULL},
46110 { (char *)"DirPickerCtrl_Create", (PyCFunction) _wrap_DirPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46111 { (char *)"DirPickerCtrl_GetPath", (PyCFunction)_wrap_DirPickerCtrl_GetPath, METH_O, NULL},
46112 { (char *)"DirPickerCtrl_SetPath", (PyCFunction) _wrap_DirPickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
b02396e8
RD
46113 { (char *)"DirPickerCtrl_CheckPath", (PyCFunction) _wrap_DirPickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
46114 { (char *)"DirPickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_DirPickerCtrl_GetTextCtrlValue, METH_O, NULL},
b850e7f3
RD
46115 { (char *)"DirPickerCtrl_swigregister", DirPickerCtrl_swigregister, METH_VARARGS, NULL},
46116 { (char *)"DirPickerCtrl_swiginit", DirPickerCtrl_swiginit, METH_VARARGS, NULL},
46117 { (char *)"new_FileDirPickerEvent", (PyCFunction) _wrap_new_FileDirPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46118 { (char *)"FileDirPickerEvent_GetPath", (PyCFunction)_wrap_FileDirPickerEvent_GetPath, METH_O, NULL},
46119 { (char *)"FileDirPickerEvent_SetPath", (PyCFunction) _wrap_FileDirPickerEvent_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
46120 { (char *)"FileDirPickerEvent_swigregister", FileDirPickerEvent_swigregister, METH_VARARGS, NULL},
46121 { (char *)"FileDirPickerEvent_swiginit", FileDirPickerEvent_swiginit, METH_VARARGS, NULL},
46122 { (char *)"new_FontPickerCtrl", (PyCFunction) _wrap_new_FontPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46123 { (char *)"new_PreFontPickerCtrl", (PyCFunction)_wrap_new_PreFontPickerCtrl, METH_NOARGS, NULL},
46124 { (char *)"FontPickerCtrl_Create", (PyCFunction) _wrap_FontPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46125 { (char *)"FontPickerCtrl_GetSelectedFont", (PyCFunction)_wrap_FontPickerCtrl_GetSelectedFont, METH_O, NULL},
46126 { (char *)"FontPickerCtrl_SetSelectedFont", (PyCFunction) _wrap_FontPickerCtrl_SetSelectedFont, METH_VARARGS | METH_KEYWORDS, NULL},
46127 { (char *)"FontPickerCtrl_SetMaxPointSize", (PyCFunction) _wrap_FontPickerCtrl_SetMaxPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
46128 { (char *)"FontPickerCtrl_GetMaxPointSize", (PyCFunction)_wrap_FontPickerCtrl_GetMaxPointSize, METH_O, NULL},
46129 { (char *)"FontPickerCtrl_swigregister", FontPickerCtrl_swigregister, METH_VARARGS, NULL},
46130 { (char *)"FontPickerCtrl_swiginit", FontPickerCtrl_swiginit, METH_VARARGS, NULL},
46131 { (char *)"new_FontPickerEvent", (PyCFunction) _wrap_new_FontPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46132 { (char *)"FontPickerEvent_GetFont", (PyCFunction)_wrap_FontPickerEvent_GetFont, METH_O, NULL},
46133 { (char *)"FontPickerEvent_SetFont", (PyCFunction) _wrap_FontPickerEvent_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
46134 { (char *)"FontPickerEvent_swigregister", FontPickerEvent_swigregister, METH_VARARGS, NULL},
46135 { (char *)"FontPickerEvent_swiginit", FontPickerEvent_swiginit, METH_VARARGS, NULL},
0085ce49
RD
46136 { NULL, NULL, 0, NULL }
46137};
46138
46139
46140/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
46141
46142static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
46143 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
46144}
46145static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
46146 return (void *)((wxEvent *) ((wxMenuEvent *) x));
46147}
46148static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
46149 return (void *)((wxEvent *) ((wxCloseEvent *) x));
46150}
46151static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
46152 return (void *)((wxEvent *) ((wxMouseEvent *) x));
46153}
46154static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
46155 return (void *)((wxEvent *) ((wxEraseEvent *) x));
46156}
46157static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) {
46158 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
46159}
46160static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
46161 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
46162}
46163static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
46164 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
46165}
b850e7f3
RD
46166static void *_p_wxColourPickerEventTo_p_wxEvent(void *x) {
46167 return (void *)((wxEvent *) (wxCommandEvent *) ((wxColourPickerEvent *) x));
46168}
46169static void *_p_wxFileDirPickerEventTo_p_wxEvent(void *x) {
46170 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFileDirPickerEvent *) x));
46171}
46172static void *_p_wxFontPickerEventTo_p_wxEvent(void *x) {
46173 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFontPickerEvent *) x));
46174}
0085ce49
RD
46175static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
46176 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
46177}
46178static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
46179 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
46180}
46181static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
46182 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
46183}
0085ce49
RD
46184static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
46185 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
46186}
2131d850
RD
46187static void *_p_wxPyEventTo_p_wxEvent(void *x) {
46188 return (void *)((wxEvent *) ((wxPyEvent *) x));
46189}
0085ce49
RD
46190static void *_p_wxListEventTo_p_wxEvent(void *x) {
46191 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
46192}
46193static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
46194 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
46195}
46196static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
46197 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
46198}
46199static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) {
46200 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
46201}
46202static void *_p_wxTreebookEventTo_p_wxEvent(void *x) {
46203 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
46204}
46205static void *_p_wxToolbookEventTo_p_wxEvent(void *x) {
46206 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
46207}
46208static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
46209 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
46210}
46211static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
46212 return (void *)((wxEvent *) ((wxIdleEvent *) x));
46213}
46214static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
46215 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
46216}
46217static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
46218 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
46219}
46220static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
46221 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
46222}
46223static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
46224 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
46225}
46226static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
46227 return (void *)((wxEvent *) ((wxActivateEvent *) x));
46228}
46229static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
46230 return (void *)((wxEvent *) ((wxSizeEvent *) x));
46231}
46232static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
46233 return (void *)((wxEvent *) ((wxMoveEvent *) x));
46234}
46235static void *_p_wxDateEventTo_p_wxEvent(void *x) {
46236 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
46237}
2131d850
RD
46238static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) {
46239 return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x));
46240}
0085ce49
RD
46241static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
46242 return (void *)((wxEvent *) ((wxPaintEvent *) x));
46243}
46244static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
46245 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
46246}
46247static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
46248 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
46249}
46250static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
46251 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
46252}
46253static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
46254 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
46255}
46256static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
46257 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
46258}
46259static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
46260 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
46261}
704eda0c
RD
46262static void *_p_wxHyperlinkEventTo_p_wxEvent(void *x) {
46263 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHyperlinkEvent *) x));
46264}
0085ce49
RD
46265static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
46266 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
46267}
46268static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
46269 return (void *)((wxEvent *) ((wxFocusEvent *) x));
46270}
46271static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
46272 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
46273}
46274static void *_p_wxShowEventTo_p_wxEvent(void *x) {
46275 return (void *)((wxEvent *) ((wxShowEvent *) x));
46276}
46277static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
46278 return (void *)((wxEvent *) ((wxCommandEvent *) x));
46279}
46280static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
46281 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
46282}
46283static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
46284 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
46285}
46286static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
46287 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
46288}
46289static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
46290 return (void *)((wxEvent *) ((wxKeyEvent *) x));
46291}
46292static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
46293 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
46294}
46295static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
46296 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
46297}
b850e7f3
RD
46298static void *_p_wxColourPickerCtrlTo_p_wxPickerBase(void *x) {
46299 return (void *)((wxPickerBase *) ((wxColourPickerCtrl *) x));
46300}
46301static void *_p_wxFilePickerCtrlTo_p_wxPickerBase(void *x) {
46302 return (void *)((wxPickerBase *) ((wxFilePickerCtrl *) x));
46303}
46304static void *_p_wxDirPickerCtrlTo_p_wxPickerBase(void *x) {
46305 return (void *)((wxPickerBase *) ((wxDirPickerCtrl *) x));
46306}
46307static void *_p_wxFontPickerCtrlTo_p_wxPickerBase(void *x) {
46308 return (void *)((wxPickerBase *) ((wxFontPickerCtrl *) x));
46309}
0085ce49
RD
46310static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
46311 return (void *)((wxItemContainer *) ((wxComboBox *) x));
46312}
46313static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
46314 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46315}
46316static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
46317 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
46318}
46319static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
46320 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
46321}
46322static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
46323 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
46324}
46325static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
46326 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46327}
46328static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
46329 return (void *)((wxPyListCtrl *) ((wxListView *) x));
46330}
46331static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) {
46332 return (void *)((wxControl *) ((wxBookCtrlBase *) x));
46333}
46334static void *_p_wxToolBarTo_p_wxControl(void *x) {
46335 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
46336}
b850e7f3
RD
46337static void *_p_wxPickerBaseTo_p_wxControl(void *x) {
46338 return (void *)((wxControl *) ((wxPickerBase *) x));
46339}
0085ce49
RD
46340static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
46341 return (void *)((wxControl *) ((wxToggleButton *) x));
46342}
46343static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
46344 return (void *)((wxControl *) ((wxRadioButton *) x));
46345}
46346static void *_p_wxToolbookTo_p_wxControl(void *x) {
46347 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxToolbook *) x));
46348}
46349static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
46350 return (void *)((wxControl *) ((wxToolBarBase *) x));
46351}
46352static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
46353 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46354}
46355static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
46356 return (void *)((wxControl *) ((wxPyListCtrl *) x));
46357}
46358static void *_p_wxComboBoxTo_p_wxControl(void *x) {
46359 return (void *)((wxControl *) ((wxComboBox *) x));
46360}
46361static void *_p_wxPyControlTo_p_wxControl(void *x) {
46362 return (void *)((wxControl *) ((wxPyControl *) x));
46363}
46364static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
46365 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
46366}
46367static void *_p_wxScrollBarTo_p_wxControl(void *x) {
46368 return (void *)((wxControl *) ((wxScrollBar *) x));
46369}
46370static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
46371 return (void *)((wxControl *) ((wxControlWithItems *) x));
46372}
46373static void *_p_wxGaugeTo_p_wxControl(void *x) {
46374 return (void *)((wxControl *) ((wxGauge *) x));
46375}
46376static void *_p_wxStaticLineTo_p_wxControl(void *x) {
46377 return (void *)((wxControl *) ((wxStaticLine *) x));
46378}
46379static void *_p_wxChoicebookTo_p_wxControl(void *x) {
46380 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x));
46381}
46382static void *_p_wxListbookTo_p_wxControl(void *x) {
46383 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x));
46384}
704eda0c
RD
46385static void *_p_wxHyperlinkCtrlTo_p_wxControl(void *x) {
46386 return (void *)((wxControl *) ((wxHyperlinkCtrl *) x));
46387}
0085ce49
RD
46388static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
46389 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
46390}
46391static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
46392 return (void *)((wxControl *) ((wxCheckBox *) x));
46393}
46394static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
46395 return (void *)((wxControl *) ((wxRadioBox *) x));
46396}
46397static void *_p_wxChoiceTo_p_wxControl(void *x) {
46398 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
46399}
46400static void *_p_wxListBoxTo_p_wxControl(void *x) {
46401 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
46402}
46403static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
46404 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46405}
46406static void *_p_wxListViewTo_p_wxControl(void *x) {
46407 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
46408}
46409static void *_p_wxNotebookTo_p_wxControl(void *x) {
46410 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x));
46411}
46412static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
46413 return (void *)((wxControl *) ((wxStaticBitmap *) x));
46414}
46415static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
46416 return (void *)((wxControl *) ((wxSpinCtrl *) x));
46417}
46418static void *_p_wxStaticTextTo_p_wxControl(void *x) {
46419 return (void *)((wxControl *) ((wxStaticText *) x));
46420}
46421static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
46422 return (void *)((wxControl *) ((wxStaticBox *) x));
46423}
46424static void *_p_wxSliderTo_p_wxControl(void *x) {
46425 return (void *)((wxControl *) ((wxSlider *) x));
46426}
46427static void *_p_wxTreebookTo_p_wxControl(void *x) {
46428 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxTreebook *) x));
46429}
46430static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
46431 return (void *)((wxControl *) ((wxSpinButton *) x));
46432}
46433static void *_p_wxButtonTo_p_wxControl(void *x) {
46434 return (void *)((wxControl *) ((wxButton *) x));
46435}
46436static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
46437 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
46438}
46439static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
46440 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
46441}
46442static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) {
46443 return (void *)((wxControl *) ((wxDatePickerCtrl *) x));
46444}
b850e7f3
RD
46445static void *_p_wxColourPickerCtrlTo_p_wxControl(void *x) {
46446 return (void *)((wxControl *) (wxPickerBase *) ((wxColourPickerCtrl *) x));
46447}
46448static void *_p_wxFilePickerCtrlTo_p_wxControl(void *x) {
46449 return (void *)((wxControl *) (wxPickerBase *) ((wxFilePickerCtrl *) x));
46450}
46451static void *_p_wxDirPickerCtrlTo_p_wxControl(void *x) {
46452 return (void *)((wxControl *) (wxPickerBase *) ((wxDirPickerCtrl *) x));
46453}
46454static void *_p_wxFontPickerCtrlTo_p_wxControl(void *x) {
46455 return (void *)((wxControl *) (wxPickerBase *) ((wxFontPickerCtrl *) x));
46456}
0085ce49
RD
46457static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
46458 return (void *)((wxControl *) ((wxTextCtrl *) x));
46459}
46460static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
46461 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
46462}
46463static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
46464 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
46465}
46466static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) {
46467 return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
46468}
46469static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
46470 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
46471}
46472static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
46473 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
46474}
46475static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
46476 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
46477}
46478static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
46479 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
46480}
46481static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
46482 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
46483}
46484static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) {
46485 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
46486}
46487static void *_p_wxTreebookEventTo_p_wxNotifyEvent(void *x) {
46488 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
46489}
46490static void *_p_wxToolbookEventTo_p_wxNotifyEvent(void *x) {
46491 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
46492}
46493static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) {
46494 return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x));
46495}
46496static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) {
46497 return (void *)((wxBookCtrlBase *) ((wxListbook *) x));
46498}
46499static void *_p_wxToolbookTo_p_wxBookCtrlBase(void *x) {
46500 return (void *)((wxBookCtrlBase *) ((wxToolbook *) x));
46501}
46502static void *_p_wxTreebookTo_p_wxBookCtrlBase(void *x) {
46503 return (void *)((wxBookCtrlBase *) ((wxTreebook *) x));
46504}
46505static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) {
46506 return (void *)((wxBookCtrlBase *) ((wxNotebook *) x));
46507}
46508static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
46509 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
46510}
46511static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) {
46512 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
46513}
46514static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
46515 return (void *)((wxEvtHandler *) ((wxValidator *) x));
46516}
46517static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
46518 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
46519}
46520static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
46521 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
46522}
b850e7f3
RD
46523static void *_p_wxPickerBaseTo_p_wxEvtHandler(void *x) {
46524 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPickerBase *) x));
46525}
0085ce49
RD
46526static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
46527 return (void *)((wxEvtHandler *) ((wxMenu *) x));
46528}
46529static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
46530 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
46531}
46532static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
46533 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
46534}
46535static void *_p_wxToolbookTo_p_wxEvtHandler(void *x) {
46536 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
46537}
46538static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
46539 return (void *)((wxEvtHandler *) ((wxWindow *) x));
46540}
46541static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
46542 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
46543}
46544static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
46545 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x));
46546}
46547static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
46548 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
46549}
46550static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
46551 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
46552}
46553static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
46554 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46555}
46556static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
46557 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
46558}
46559static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
46560 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
46561}
46562static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
46563 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
46564}
46565static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
46566 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
46567}
46568static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
46569 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
46570}
46571static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
46572 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
46573}
46574static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
46575 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
46576}
46577static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) {
46578 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
46579}
46580static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
46581 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
46582}
704eda0c
RD
46583static void *_p_wxHyperlinkCtrlTo_p_wxEvtHandler(void *x) {
46584 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
46585}
0085ce49
RD
46586static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
46587 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
46588}
46589static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
46590 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
46591}
46592static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
46593 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
46594}
46595static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
46596 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46597}
46598static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
46599 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
46600}
46601static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
46602 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
46603}
46604static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
46605 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
46606}
46607static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
46608 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
46609}
46610static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
46611 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
46612}
46613static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
46614 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
46615}
46616static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
46617 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
46618}
46619static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
46620 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
46621}
46622static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
46623 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
46624}
46625static void *_p_wxTreebookTo_p_wxEvtHandler(void *x) {
46626 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
46627}
46628static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
46629 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
46630}
46631static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
46632 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
46633}
46634static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
46635 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
46636}
46637static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
46638 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
46639}
46640static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) {
46641 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
46642}
b850e7f3
RD
46643static void *_p_wxColourPickerCtrlTo_p_wxEvtHandler(void *x) {
46644 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
46645}
46646static void *_p_wxFilePickerCtrlTo_p_wxEvtHandler(void *x) {
46647 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
46648}
46649static void *_p_wxDirPickerCtrlTo_p_wxEvtHandler(void *x) {
46650 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
46651}
46652static void *_p_wxFontPickerCtrlTo_p_wxEvtHandler(void *x) {
46653 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
46654}
0085ce49
RD
46655static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
46656 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
46657}
46658static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
46659 return (void *)((wxListBox *) ((wxCheckListBox *) x));
46660}
46661static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
46662 return (void *)((wxButton *) ((wxBitmapButton *) x));
46663}
46664static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
46665 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
46666}
46667static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
46668 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
46669}
46670static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
46671 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
46672}
46673static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
46674 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
46675}
46676static void *_p_wxToolbookTo_p_wxObject(void *x) {
46677 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
46678}
46679static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
46680 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
46681}
46682static void *_p_wxSizerItemTo_p_wxObject(void *x) {
46683 return (void *)((wxObject *) ((wxSizerItem *) x));
46684}
46685static void *_p_wxScrollEventTo_p_wxObject(void *x) {
46686 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
46687}
46688static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
46689 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
46690}
46691static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
46692 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
46693}
46694static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
46695 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
46696}
46697static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
46698 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
46699}
46700static void *_p_wxSizerTo_p_wxObject(void *x) {
46701 return (void *)((wxObject *) ((wxSizer *) x));
46702}
46703static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
46704 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
46705}
46706static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
46707 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
46708}
46709static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
46710 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
46711}
46712static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
46713 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
46714}
46715static void *_p_wxEventTo_p_wxObject(void *x) {
46716 return (void *)((wxObject *) ((wxEvent *) x));
46717}
46718static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
46719 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
46720}
46721static void *_p_wxGridSizerTo_p_wxObject(void *x) {
46722 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
46723}
46724static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
46725 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
46726}
46727static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
46728 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
46729}
b850e7f3
RD
46730static void *_p_wxPickerBaseTo_p_wxObject(void *x) {
46731 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPickerBase *) x));
46732}
0085ce49
RD
46733static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
46734 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
46735}
46736static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
46737 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46738}
2131d850
RD
46739static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
46740 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
46741}
0085ce49
RD
46742static void *_p_wxPaintEventTo_p_wxObject(void *x) {
46743 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
46744}
46745static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
46746 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
46747}
46748static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
46749 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
46750}
46751static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
46752 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
46753}
46754static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
46755 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
46756}
46757static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
46758 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
46759}
46760static void *_p_wxStaticLineTo_p_wxObject(void *x) {
46761 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
46762}
46763static void *_p_wxControlTo_p_wxObject(void *x) {
46764 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
46765}
46766static void *_p_wxPyControlTo_p_wxObject(void *x) {
46767 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
46768}
46769static void *_p_wxGaugeTo_p_wxObject(void *x) {
46770 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
46771}
46772static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
46773 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
46774}
46775static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
46776 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
46777}
46778static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
46779 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
46780}
46781static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
46782 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
46783}
b850e7f3
RD
46784static void *_p_wxColourPickerEventTo_p_wxObject(void *x) {
46785 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxColourPickerEvent *) x));
46786}
46787static void *_p_wxFileDirPickerEventTo_p_wxObject(void *x) {
46788 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFileDirPickerEvent *) x));
46789}
46790static void *_p_wxFontPickerEventTo_p_wxObject(void *x) {
46791 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFontPickerEvent *) x));
46792}
0085ce49
RD
46793static void *_p_wxChoiceTo_p_wxObject(void *x) {
46794 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
46795}
46796static void *_p_wxFSFileTo_p_wxObject(void *x) {
46797 return (void *)((wxObject *) ((wxFSFile *) x));
46798}
46799static void *_p_wxPySizerTo_p_wxObject(void *x) {
46800 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
46801}
46802static void *_p_wxTreebookTo_p_wxObject(void *x) {
46803 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
46804}
46805static void *_p_wxListViewTo_p_wxObject(void *x) {
46806 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
46807}
704eda0c
RD
46808static void *_p_wxHyperlinkEventTo_p_wxObject(void *x) {
46809 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHyperlinkEvent *) x));
46810}
0085ce49
RD
46811static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
46812 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
46813}
46814static void *_p_wxNotebookTo_p_wxObject(void *x) {
46815 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
46816}
46817static void *_p_wxPyEventTo_p_wxObject(void *x) {
46818 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
46819}
46820static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
46821 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
46822}
46823static void *_p_wxChoicebookTo_p_wxObject(void *x) {
46824 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
46825}
46826static void *_p_wxListbookTo_p_wxObject(void *x) {
46827 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
46828}
46829static void *_p_wxShowEventTo_p_wxObject(void *x) {
46830 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
46831}
46832static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
46833 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
46834}
46835static void *_p_wxSliderTo_p_wxObject(void *x) {
46836 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
46837}
46838static void *_p_wxMenuItemTo_p_wxObject(void *x) {
46839 return (void *)((wxObject *) ((wxMenuItem *) x));
46840}
46841static void *_p_wxDateEventTo_p_wxObject(void *x) {
46842 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
46843}
46844static void *_p_wxIdleEventTo_p_wxObject(void *x) {
46845 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
46846}
46847static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
46848 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
46849}
46850static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
46851 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
46852}
46853static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
46854 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
46855}
46856static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
46857 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
46858}
46859static void *_p_wxSizeEventTo_p_wxObject(void *x) {
46860 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
46861}
46862static void *_p_wxMoveEventTo_p_wxObject(void *x) {
46863 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
46864}
46865static void *_p_wxActivateEventTo_p_wxObject(void *x) {
46866 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
46867}
46868static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
46869 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
46870}
46871static void *_p_wxContextHelpTo_p_wxObject(void *x) {
46872 return (void *)((wxObject *) ((wxContextHelp *) x));
46873}
46874static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) {
46875 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
46876}
46877static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
46878 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
46879}
46880static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
46881 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
46882}
46883static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
46884 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
46885}
46886static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
46887 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
46888}
46889static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
46890 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
46891}
46892static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
46893 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
46894}
46895static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
46896 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
46897}
46898static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
46899 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
46900}
46901static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
46902 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
46903}
46904static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
46905 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
46906}
46907static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
46908 return (void *)((wxObject *) ((wxImageHandler *) x));
46909}
46910static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
46911 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
46912}
46913static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
46914 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
46915}
46916static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
46917 return (void *)((wxObject *) ((wxEvtHandler *) x));
46918}
46919static void *_p_wxListEventTo_p_wxObject(void *x) {
46920 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
46921}
46922static void *_p_wxListBoxTo_p_wxObject(void *x) {
46923 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
46924}
46925static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
46926 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46927}
46928static void *_p_wxButtonTo_p_wxObject(void *x) {
46929 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
46930}
46931static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
46932 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
46933}
46934static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
46935 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
46936}
46937static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
46938 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
46939}
46940static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
46941 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
46942}
46943static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
46944 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
46945}
46946static void *_p_wxScrollBarTo_p_wxObject(void *x) {
46947 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
46948}
46949static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
46950 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
46951}
46952static void *_p_wxComboBoxTo_p_wxObject(void *x) {
46953 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x));
46954}
46955static void *_p_wxHelpEventTo_p_wxObject(void *x) {
46956 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
46957}
46958static void *_p_wxListItemTo_p_wxObject(void *x) {
46959 return (void *)((wxObject *) ((wxListItem *) x));
46960}
46961static void *_p_wxImageTo_p_wxObject(void *x) {
46962 return (void *)((wxObject *) ((wxImage *) x));
46963}
46964static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
46965 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
46966}
46967static void *_p_wxSpinEventTo_p_wxObject(void *x) {
46968 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
46969}
46970static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
46971 return (void *)((wxObject *) ((wxGenericDragImage *) x));
46972}
46973static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
46974 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
46975}
46976static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
46977 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
46978}
46979static void *_p_wxListbookEventTo_p_wxObject(void *x) {
46980 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
46981}
46982static void *_p_wxChoicebookEventTo_p_wxObject(void *x) {
46983 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
46984}
46985static void *_p_wxTreebookEventTo_p_wxObject(void *x) {
46986 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
46987}
46988static void *_p_wxToolbookEventTo_p_wxObject(void *x) {
46989 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
46990}
46991static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
46992 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
46993}
46994static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
46995 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
46996}
46997static void *_p_wxKeyEventTo_p_wxObject(void *x) {
46998 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
46999}
47000static void *_p_wxWindowTo_p_wxObject(void *x) {
47001 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
47002}
47003static void *_p_wxMenuTo_p_wxObject(void *x) {
47004 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
47005}
47006static void *_p_wxMenuBarTo_p_wxObject(void *x) {
47007 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
47008}
47009static void *_p_wxFileSystemTo_p_wxObject(void *x) {
47010 return (void *)((wxObject *) ((wxFileSystem *) x));
47011}
47012static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
47013 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
47014}
47015static void *_p_wxMenuEventTo_p_wxObject(void *x) {
47016 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
47017}
47018static void *_p_wxPyAppTo_p_wxObject(void *x) {
47019 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
47020}
47021static void *_p_wxCloseEventTo_p_wxObject(void *x) {
47022 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
47023}
47024static void *_p_wxMouseEventTo_p_wxObject(void *x) {
47025 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
47026}
47027static void *_p_wxEraseEventTo_p_wxObject(void *x) {
47028 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
47029}
47030static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) {
47031 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
47032}
47033static void *_p_wxTreeEventTo_p_wxObject(void *x) {
47034 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
47035}
47036static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
47037 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
47038}
47039static void *_p_wxCommandEventTo_p_wxObject(void *x) {
47040 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
47041}
47042static void *_p_wxStaticTextTo_p_wxObject(void *x) {
47043 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
47044}
47045static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
47046 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
47047}
47048static void *_p_wxFocusEventTo_p_wxObject(void *x) {
47049 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
47050}
47051static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
47052 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
47053}
47054static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) {
47055 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
47056}
b850e7f3
RD
47057static void *_p_wxColourPickerCtrlTo_p_wxObject(void *x) {
47058 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
47059}
47060static void *_p_wxFilePickerCtrlTo_p_wxObject(void *x) {
47061 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
47062}
47063static void *_p_wxDirPickerCtrlTo_p_wxObject(void *x) {
47064 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
47065}
47066static void *_p_wxFontPickerCtrlTo_p_wxObject(void *x) {
47067 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
47068}
0085ce49
RD
47069static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
47070 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
47071}
704eda0c
RD
47072static void *_p_wxHyperlinkCtrlTo_p_wxObject(void *x) {
47073 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
47074}
0085ce49
RD
47075static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
47076 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
47077}
47078static void *_p_wxToolBarTo_p_wxObject(void *x) {
47079 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
47080}
47081static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
47082 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
47083}
47084static void *_p_wxValidatorTo_p_wxObject(void *x) {
47085 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
47086}
47087static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
47088 return (void *)((wxWindow *) ((wxMenuBar *) x));
47089}
47090static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) {
47091 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x));
47092}
47093static void *_p_wxToolBarTo_p_wxWindow(void *x) {
47094 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
47095}
b850e7f3
RD
47096static void *_p_wxPickerBaseTo_p_wxWindow(void *x) {
47097 return (void *)((wxWindow *) (wxControl *) ((wxPickerBase *) x));
47098}
0085ce49
RD
47099static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
47100 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
47101}
47102static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
47103 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
47104}
47105static void *_p_wxToolbookTo_p_wxWindow(void *x) {
47106 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
47107}
47108static void *_p_wxControlTo_p_wxWindow(void *x) {
47109 return (void *)((wxWindow *) ((wxControl *) x));
47110}
47111static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
47112 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
47113}
47114static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
47115 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
47116}
47117static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
47118 return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x));
47119}
47120static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
47121 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
47122}
47123static void *_p_wxPyControlTo_p_wxWindow(void *x) {
47124 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
47125}
47126static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
47127 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
47128}
47129static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
47130 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
47131}
47132static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
47133 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
47134}
47135static void *_p_wxGaugeTo_p_wxWindow(void *x) {
47136 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
47137}
47138static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
47139 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
47140}
47141static void *_p_wxChoicebookTo_p_wxWindow(void *x) {
47142 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
47143}
47144static void *_p_wxListbookTo_p_wxWindow(void *x) {
47145 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
47146}
704eda0c
RD
47147static void *_p_wxHyperlinkCtrlTo_p_wxWindow(void *x) {
47148 return (void *)((wxWindow *) (wxControl *) ((wxHyperlinkCtrl *) x));
47149}
0085ce49
RD
47150static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
47151 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
47152}
47153static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
47154 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
47155}
47156static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
47157 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
47158}
47159static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
47160 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
47161}
47162static void *_p_wxChoiceTo_p_wxWindow(void *x) {
47163 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
47164}
47165static void *_p_wxListBoxTo_p_wxWindow(void *x) {
47166 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
47167}
47168static void *_p_wxListViewTo_p_wxWindow(void *x) {
47169 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
47170}
47171static void *_p_wxNotebookTo_p_wxWindow(void *x) {
47172 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
47173}
47174static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
47175 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
47176}
47177static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
47178 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
47179}
47180static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
47181 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
47182}
47183static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
47184 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
47185}
47186static void *_p_wxSliderTo_p_wxWindow(void *x) {
47187 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
47188}
47189static void *_p_wxTreebookTo_p_wxWindow(void *x) {
47190 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
47191}
47192static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
47193 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
47194}
47195static void *_p_wxButtonTo_p_wxWindow(void *x) {
47196 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
47197}
47198static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
47199 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
47200}
47201static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
47202 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
47203}
47204static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) {
47205 return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x));
47206}
b850e7f3
RD
47207static void *_p_wxColourPickerCtrlTo_p_wxWindow(void *x) {
47208 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
47209}
47210static void *_p_wxFilePickerCtrlTo_p_wxWindow(void *x) {
47211 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
47212}
47213static void *_p_wxDirPickerCtrlTo_p_wxWindow(void *x) {
47214 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
47215}
47216static void *_p_wxFontPickerCtrlTo_p_wxWindow(void *x) {
47217 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
47218}
0085ce49
RD
47219static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
47220 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
47221}
47222static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47223 return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47224}
47225static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47226 return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47227}
47228static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47229 return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47230}
47231static void *_p_wxTreebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47232 return (void *)((wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47233}
47234static void *_p_wxToolbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47235 return (void *)((wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47236}
47237static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
47238 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
47239}
704eda0c
RD
47240static void *_p_wxHyperlinkEventTo_p_wxCommandEvent(void *x) {
47241 return (void *)((wxCommandEvent *) ((wxHyperlinkEvent *) x));
47242}
2131d850
RD
47243static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) {
47244 return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x));
47245}
b850e7f3
RD
47246static void *_p_wxColourPickerEventTo_p_wxCommandEvent(void *x) {
47247 return (void *)((wxCommandEvent *) ((wxColourPickerEvent *) x));
47248}
47249static void *_p_wxFileDirPickerEventTo_p_wxCommandEvent(void *x) {
47250 return (void *)((wxCommandEvent *) ((wxFileDirPickerEvent *) x));
47251}
47252static void *_p_wxFontPickerEventTo_p_wxCommandEvent(void *x) {
47253 return (void *)((wxCommandEvent *) ((wxFontPickerEvent *) x));
47254}
0085ce49
RD
47255static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
47256 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
47257}
47258static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
47259 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
47260}
47261static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
47262 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
47263}
47264static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
47265 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
47266}
47267static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
47268 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
47269}
0085ce49
RD
47270static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
47271 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47272}
2131d850
RD
47273static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
47274 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47275}
0085ce49
RD
47276static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) {
47277 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47278}
47279static void *_p_wxTreebookEventTo_p_wxCommandEvent(void *x) {
47280 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47281}
47282static void *_p_wxToolbookEventTo_p_wxCommandEvent(void *x) {
47283 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47284}
47285static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
47286 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
47287}
47288static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
47289 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
47290}
47291static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
47292 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
47293}
47294static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) {
47295 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
47296}
47297static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
47298 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
47299}
47300static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
47301 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
47302}
47303static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
47304 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
47305}
47306static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
47307 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
47308}
47309static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
47310 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
47311}
47312static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
47313 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
47314}
47315static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
47316 return (void *)((wxControlWithItems *) ((wxChoice *) x));
47317}
47318static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
47319 return (void *)((wxControlWithItems *) ((wxListBox *) x));
47320}
47321static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
47322 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
47323}
47324static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
47325 return (void *)((wxValidator *) ((wxPyValidator *) x));
47326}
47327static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0};
47328static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
47329static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
47330static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
47331static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
47332static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
47333static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
47334static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
47335static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
47336static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0};
47337static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0};
47338static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
47339static swig_type_info _swigt__p_wxBitmapButton = {"_p_wxBitmapButton", "wxBitmapButton *", 0, 0, (void*)0, 0};
47340static swig_type_info _swigt__p_wxBookCtrlBase = {"_p_wxBookCtrlBase", "wxBookCtrlBase *", 0, 0, (void*)0, 0};
47341static swig_type_info _swigt__p_wxBookCtrlBaseEvent = {"_p_wxBookCtrlBaseEvent", "wxBookCtrlBaseEvent *", 0, 0, (void*)0, 0};
47342static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, (void*)0, 0};
47343static swig_type_info _swigt__p_wxCheckBox = {"_p_wxCheckBox", "wxCheckBox *", 0, 0, (void*)0, 0};
47344static swig_type_info _swigt__p_wxCheckListBox = {"_p_wxCheckListBox", "wxCheckListBox *", 0, 0, (void*)0, 0};
47345static swig_type_info _swigt__p_wxChoice = {"_p_wxChoice", "wxChoice *", 0, 0, (void*)0, 0};
47346static swig_type_info _swigt__p_wxChoicebook = {"_p_wxChoicebook", "wxChoicebook *", 0, 0, (void*)0, 0};
47347static swig_type_info _swigt__p_wxChoicebookEvent = {"_p_wxChoicebookEvent", "wxChoicebookEvent *", 0, 0, (void*)0, 0};
47348static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
b850e7f3
RD
47349static swig_type_info _swigt__p_wxColourPickerCtrl = {"_p_wxColourPickerCtrl", "wxColourPickerCtrl *", 0, 0, (void*)0, 0};
47350static swig_type_info _swigt__p_wxColourPickerEvent = {"_p_wxColourPickerEvent", "wxColourPickerEvent *", 0, 0, (void*)0, 0};
0085ce49
RD
47351static swig_type_info _swigt__p_wxComboBox = {"_p_wxComboBox", "wxComboBox *", 0, 0, (void*)0, 0};
47352static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0};
47353static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
2131d850 47354static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
0085ce49
RD
47355static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
47356static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
47357static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
47358static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
47359static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
47360static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
47361static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
47362static swig_type_info _swigt__p_wxContextHelp = {"_p_wxContextHelp", "wxContextHelp *", 0, 0, (void*)0, 0};
47363static swig_type_info _swigt__p_wxContextHelpButton = {"_p_wxContextHelpButton", "wxContextHelpButton *", 0, 0, (void*)0, 0};
47364static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, (void*)0, 0};
47365static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, (void*)0, 0};
47366static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
47367static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
47368static swig_type_info _swigt__p_wxDatePickerCtrl = {"_p_wxDatePickerCtrl", "wxDatePickerCtrl *", 0, 0, (void*)0, 0};
47369static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0};
47370static swig_type_info _swigt__p_wxDirFilterListCtrl = {"_p_wxDirFilterListCtrl", "wxDirFilterListCtrl *", 0, 0, (void*)0, 0};
b850e7f3 47371static swig_type_info _swigt__p_wxDirPickerCtrl = {"_p_wxDirPickerCtrl", "wxDirPickerCtrl *", 0, 0, (void*)0, 0};
0085ce49
RD
47372static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
47373static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
47374static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
47375static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
47376static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
47377static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
47378static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
47379static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
47380static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
47381static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
47382static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
47383static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
47384static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
47385static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
47386static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
47387static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
47388static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
47389static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
47390static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
47391static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
47392static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
47393static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
47394static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
47395static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
47396static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
47397static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
47398static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
47399static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
47400static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
47401static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
47402static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
b850e7f3
RD
47403static swig_type_info _swigt__p_wxFileDirPickerEvent = {"_p_wxFileDirPickerEvent", "wxFileDirPickerEvent *", 0, 0, (void*)0, 0};
47404static swig_type_info _swigt__p_wxFilePickerCtrl = {"_p_wxFilePickerCtrl", "wxFilePickerCtrl *", 0, 0, (void*)0, 0};
0085ce49 47405static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
b850e7f3
RD
47406static swig_type_info _swigt__p_wxFontPickerCtrl = {"_p_wxFontPickerCtrl", "wxFontPickerCtrl *", 0, 0, (void*)0, 0};
47407static swig_type_info _swigt__p_wxFontPickerEvent = {"_p_wxFontPickerEvent", "wxFontPickerEvent *", 0, 0, (void*)0, 0};
0085ce49
RD
47408static swig_type_info _swigt__p_wxGauge = {"_p_wxGauge", "wxGauge *", 0, 0, (void*)0, 0};
47409static swig_type_info _swigt__p_wxGenericDirCtrl = {"_p_wxGenericDirCtrl", "wxGenericDirCtrl *", 0, 0, (void*)0, 0};
47410static swig_type_info _swigt__p_wxGenericDragImage = {"_p_wxGenericDragImage", "wxGenericDragImage *", 0, 0, (void*)0, 0};
47411static swig_type_info _swigt__p_wxHelpEvent = {"_p_wxHelpEvent", "wxHelpEvent *", 0, 0, (void*)0, 0};
47412static swig_type_info _swigt__p_wxHelpProvider = {"_p_wxHelpProvider", "wxHelpProvider *", 0, 0, (void*)0, 0};
704eda0c
RD
47413static swig_type_info _swigt__p_wxHyperlinkCtrl = {"_p_wxHyperlinkCtrl", "wxHyperlinkCtrl *", 0, 0, (void*)0, 0};
47414static swig_type_info _swigt__p_wxHyperlinkEvent = {"_p_wxHyperlinkEvent", "wxHyperlinkEvent *", 0, 0, (void*)0, 0};
0085ce49
RD
47415static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
47416static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
47417static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0};
47418static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, (void*)0, 0};
47419static swig_type_info _swigt__p_wxListBox = {"_p_wxListBox", "wxListBox *", 0, 0, (void*)0, 0};
47420static swig_type_info _swigt__p_wxListEvent = {"_p_wxListEvent", "wxListEvent *", 0, 0, (void*)0, 0};
47421static swig_type_info _swigt__p_wxListItem = {"_p_wxListItem", "wxListItem *", 0, 0, (void*)0, 0};
47422static swig_type_info _swigt__p_wxListItemAttr = {"_p_wxListItemAttr", "wxListItemAttr *", 0, 0, (void*)0, 0};
47423static swig_type_info _swigt__p_wxListView = {"_p_wxListView", "wxListView *", 0, 0, (void*)0, 0};
47424static swig_type_info _swigt__p_wxListbook = {"_p_wxListbook", "wxListbook *", 0, 0, (void*)0, 0};
47425static swig_type_info _swigt__p_wxListbookEvent = {"_p_wxListbookEvent", "wxListbookEvent *", 0, 0, (void*)0, 0};
47426static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
47427static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, (void*)0, 0};
47428static swig_type_info _swigt__p_wxNotebook = {"_p_wxNotebook", "wxNotebook *", 0, 0, (void*)0, 0};
47429static swig_type_info _swigt__p_wxNotebookEvent = {"_p_wxNotebookEvent", "wxNotebookEvent *", 0, 0, (void*)0, 0};
47430static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0};
47431static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
47432static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
47433static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
47434static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
47435static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
47436static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
47437static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
47438static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
47439static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
47440static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
47441static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
47442static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
47443static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
47444static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
0085ce49
RD
47445static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
47446static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
47447static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
47448static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
47449static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
b850e7f3
RD
47450static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
47451static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
47452static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
47453static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
704eda0c 47454static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
2131d850 47455static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
0085ce49
RD
47456static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
47457static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
47458static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
47459static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
47460static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0};
47461static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
47462static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
b850e7f3 47463static swig_type_info _swigt__p_wxPickerBase = {"_p_wxPickerBase", "wxPickerBase *", 0, 0, (void*)0, 0};
0085ce49
RD
47464static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
47465static swig_type_info _swigt__p_wxPyControl = {"_p_wxPyControl", "wxPyControl *", 0, 0, (void*)0, 0};
47466static swig_type_info _swigt__p_wxPyListCtrl = {"_p_wxPyListCtrl", "wxPyListCtrl *", 0, 0, (void*)0, 0};
47467static swig_type_info _swigt__p_wxPyTreeCtrl = {"_p_wxPyTreeCtrl", "wxPyTreeCtrl *", 0, 0, (void*)0, 0};
47468static swig_type_info _swigt__p_wxPyTreeItemData = {"_p_wxPyTreeItemData", "wxPyTreeItemData *", 0, 0, (void*)0, 0};
47469static swig_type_info _swigt__p_wxRadioBox = {"_p_wxRadioBox", "wxRadioBox *", 0, 0, (void*)0, 0};
47470static swig_type_info _swigt__p_wxRadioButton = {"_p_wxRadioButton", "wxRadioButton *", 0, 0, (void*)0, 0};
47471static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
47472static swig_type_info _swigt__p_wxScrollBar = {"_p_wxScrollBar", "wxScrollBar *", 0, 0, (void*)0, 0};
47473static swig_type_info _swigt__p_wxSimpleHelpProvider = {"_p_wxSimpleHelpProvider", "wxSimpleHelpProvider *", 0, 0, (void*)0, 0};
47474static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
47475static swig_type_info _swigt__p_wxSlider = {"_p_wxSlider", "wxSlider *", 0, 0, (void*)0, 0};
47476static swig_type_info _swigt__p_wxSpinButton = {"_p_wxSpinButton", "wxSpinButton *", 0, 0, (void*)0, 0};
47477static swig_type_info _swigt__p_wxSpinCtrl = {"_p_wxSpinCtrl", "wxSpinCtrl *", 0, 0, (void*)0, 0};
47478static swig_type_info _swigt__p_wxSpinEvent = {"_p_wxSpinEvent", "wxSpinEvent *", 0, 0, (void*)0, 0};
47479static swig_type_info _swigt__p_wxStaticBitmap = {"_p_wxStaticBitmap", "wxStaticBitmap *", 0, 0, (void*)0, 0};
47480static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, (void*)0, 0};
47481static swig_type_info _swigt__p_wxStaticLine = {"_p_wxStaticLine", "wxStaticLine *", 0, 0, (void*)0, 0};
47482static swig_type_info _swigt__p_wxStaticText = {"_p_wxStaticText", "wxStaticText *", 0, 0, (void*)0, 0};
47483static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
47484static swig_type_info _swigt__p_wxTextAttr = {"_p_wxTextAttr", "wxTextAttr *", 0, 0, (void*)0, 0};
47485static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, (void*)0, 0};
47486static swig_type_info _swigt__p_wxTextUrlEvent = {"_p_wxTextUrlEvent", "wxTextUrlEvent *", 0, 0, (void*)0, 0};
47487static swig_type_info _swigt__p_wxToggleButton = {"_p_wxToggleButton", "wxToggleButton *", 0, 0, (void*)0, 0};
47488static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0};
47489static swig_type_info _swigt__p_wxToolBarBase = {"_p_wxToolBarBase", "wxToolBarBase *", 0, 0, (void*)0, 0};
47490static swig_type_info _swigt__p_wxToolBarToolBase = {"_p_wxToolBarToolBase", "wxToolBarToolBase *", 0, 0, (void*)0, 0};
47491static swig_type_info _swigt__p_wxToolbook = {"_p_wxToolbook", "wxToolbook *", 0, 0, (void*)0, 0};
47492static swig_type_info _swigt__p_wxToolbookEvent = {"_p_wxToolbookEvent", "wxToolbookEvent *", 0, 0, (void*)0, 0};
47493static swig_type_info _swigt__p_wxTreeCtrl = {"_p_wxTreeCtrl", "wxTreeCtrl *", 0, 0, (void*)0, 0};
47494static swig_type_info _swigt__p_wxTreeEvent = {"_p_wxTreeEvent", "wxTreeEvent *", 0, 0, (void*)0, 0};
47495static swig_type_info _swigt__p_wxTreeItemId = {"_p_wxTreeItemId", "wxTreeItemId *", 0, 0, (void*)0, 0};
47496static swig_type_info _swigt__p_wxTreebook = {"_p_wxTreebook", "wxTreebook *", 0, 0, (void*)0, 0};
47497static swig_type_info _swigt__p_wxTreebookEvent = {"_p_wxTreebookEvent", "wxTreebookEvent *", 0, 0, (void*)0, 0};
47498static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0};
47499static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0};
47500static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
b850e7f3 47501static swig_type_info _swigt__p_wxWindowBase = {"_p_wxWindowBase", "wxWindowBase *", 0, 0, (void*)0, 0};
0085ce49
RD
47502
47503static swig_type_info *swig_type_initial[] = {
47504 &_swigt__p_bool,
47505 &_swigt__p_char,
47506 &_swigt__p_form_ops_t,
47507 &_swigt__p_int,
47508 &_swigt__p_long,
47509 &_swigt__p_unsigned_char,
47510 &_swigt__p_unsigned_int,
47511 &_swigt__p_unsigned_long,
47512 &_swigt__p_void,
47513 &_swigt__p_wxANIHandler,
47514 &_swigt__p_wxAcceleratorTable,
47515 &_swigt__p_wxActivateEvent,
47516 &_swigt__p_wxArrayInt,
47517 &_swigt__p_wxArrayString,
47518 &_swigt__p_wxBMPHandler,
47519 &_swigt__p_wxBitmap,
47520 &_swigt__p_wxBitmapButton,
47521 &_swigt__p_wxBookCtrlBase,
47522 &_swigt__p_wxBookCtrlBaseEvent,
47523 &_swigt__p_wxBoxSizer,
47524 &_swigt__p_wxButton,
47525 &_swigt__p_wxCURHandler,
47526 &_swigt__p_wxCheckBox,
47527 &_swigt__p_wxCheckListBox,
47528 &_swigt__p_wxChildFocusEvent,
47529 &_swigt__p_wxChoice,
47530 &_swigt__p_wxChoicebook,
47531 &_swigt__p_wxChoicebookEvent,
2131d850 47532 &_swigt__p_wxClipboardTextEvent,
0085ce49
RD
47533 &_swigt__p_wxCloseEvent,
47534 &_swigt__p_wxColour,
b850e7f3
RD
47535 &_swigt__p_wxColourPickerCtrl,
47536 &_swigt__p_wxColourPickerEvent,
0085ce49
RD
47537 &_swigt__p_wxComboBox,
47538 &_swigt__p_wxCommandEvent,
47539 &_swigt__p_wxContextHelp,
47540 &_swigt__p_wxContextHelpButton,
47541 &_swigt__p_wxContextMenuEvent,
47542 &_swigt__p_wxControl,
47543 &_swigt__p_wxControlWithItems,
47544 &_swigt__p_wxCursor,
47545 &_swigt__p_wxDC,
47546 &_swigt__p_wxDateEvent,
47547 &_swigt__p_wxDatePickerCtrl,
47548 &_swigt__p_wxDateTime,
47549 &_swigt__p_wxDirFilterListCtrl,
b850e7f3 47550 &_swigt__p_wxDirPickerCtrl,
0085ce49
RD
47551 &_swigt__p_wxDisplayChangedEvent,
47552 &_swigt__p_wxDropFilesEvent,
47553 &_swigt__p_wxDuplexMode,
47554 &_swigt__p_wxEraseEvent,
47555 &_swigt__p_wxEvent,
47556 &_swigt__p_wxEvtHandler,
47557 &_swigt__p_wxFSFile,
b850e7f3
RD
47558 &_swigt__p_wxFileDirPickerEvent,
47559 &_swigt__p_wxFilePickerCtrl,
0085ce49
RD
47560 &_swigt__p_wxFileSystem,
47561 &_swigt__p_wxFlexGridSizer,
47562 &_swigt__p_wxFocusEvent,
47563 &_swigt__p_wxFont,
b850e7f3
RD
47564 &_swigt__p_wxFontPickerCtrl,
47565 &_swigt__p_wxFontPickerEvent,
0085ce49
RD
47566 &_swigt__p_wxGBSizerItem,
47567 &_swigt__p_wxGIFHandler,
47568 &_swigt__p_wxGauge,
47569 &_swigt__p_wxGenericDirCtrl,
47570 &_swigt__p_wxGenericDragImage,
47571 &_swigt__p_wxGridBagSizer,
47572 &_swigt__p_wxGridSizer,
47573 &_swigt__p_wxHelpEvent,
47574 &_swigt__p_wxHelpProvider,
704eda0c
RD
47575 &_swigt__p_wxHyperlinkCtrl,
47576 &_swigt__p_wxHyperlinkEvent,
0085ce49
RD
47577 &_swigt__p_wxICOHandler,
47578 &_swigt__p_wxIcon,
47579 &_swigt__p_wxIconizeEvent,
47580 &_swigt__p_wxIdleEvent,
47581 &_swigt__p_wxImage,
47582 &_swigt__p_wxImageHandler,
47583 &_swigt__p_wxImageList,
47584 &_swigt__p_wxIndividualLayoutConstraint,
47585 &_swigt__p_wxInitDialogEvent,
47586 &_swigt__p_wxItemContainer,
47587 &_swigt__p_wxJPEGHandler,
47588 &_swigt__p_wxKeyEvent,
47589 &_swigt__p_wxLayoutConstraints,
47590 &_swigt__p_wxListBox,
47591 &_swigt__p_wxListEvent,
47592 &_swigt__p_wxListItem,
47593 &_swigt__p_wxListItemAttr,
47594 &_swigt__p_wxListView,
47595 &_swigt__p_wxListbook,
47596 &_swigt__p_wxListbookEvent,
47597 &_swigt__p_wxMaximizeEvent,
47598 &_swigt__p_wxMemoryDC,
47599 &_swigt__p_wxMenu,
47600 &_swigt__p_wxMenuBar,
47601 &_swigt__p_wxMenuEvent,
47602 &_swigt__p_wxMenuItem,
47603 &_swigt__p_wxMouseCaptureChangedEvent,
47604 &_swigt__p_wxMouseEvent,
47605 &_swigt__p_wxMoveEvent,
47606 &_swigt__p_wxNavigationKeyEvent,
47607 &_swigt__p_wxNcPaintEvent,
47608 &_swigt__p_wxNotebook,
47609 &_swigt__p_wxNotebookEvent,
47610 &_swigt__p_wxNotifyEvent,
47611 &_swigt__p_wxObject,
47612 &_swigt__p_wxPCXHandler,
47613 &_swigt__p_wxPNGHandler,
47614 &_swigt__p_wxPNMHandler,
47615 &_swigt__p_wxPaintEvent,
47616 &_swigt__p_wxPaletteChangedEvent,
47617 &_swigt__p_wxPaperSize,
b850e7f3 47618 &_swigt__p_wxPickerBase,
0085ce49
RD
47619 &_swigt__p_wxPoint,
47620 &_swigt__p_wxPyApp,
47621 &_swigt__p_wxPyCommandEvent,
47622 &_swigt__p_wxPyControl,
47623 &_swigt__p_wxPyEvent,
47624 &_swigt__p_wxPyImageHandler,
47625 &_swigt__p_wxPyListCtrl,
47626 &_swigt__p_wxPySizer,
47627 &_swigt__p_wxPyTreeCtrl,
47628 &_swigt__p_wxPyTreeItemData,
47629 &_swigt__p_wxPyValidator,
47630 &_swigt__p_wxQueryNewPaletteEvent,
47631 &_swigt__p_wxRadioBox,
47632 &_swigt__p_wxRadioButton,
47633 &_swigt__p_wxRect,
47634 &_swigt__p_wxScrollBar,
47635 &_swigt__p_wxScrollEvent,
47636 &_swigt__p_wxScrollWinEvent,
47637 &_swigt__p_wxSetCursorEvent,
47638 &_swigt__p_wxShowEvent,
47639 &_swigt__p_wxSimpleHelpProvider,
47640 &_swigt__p_wxSize,
47641 &_swigt__p_wxSizeEvent,
47642 &_swigt__p_wxSizer,
47643 &_swigt__p_wxSizerItem,
47644 &_swigt__p_wxSlider,
47645 &_swigt__p_wxSpinButton,
47646 &_swigt__p_wxSpinCtrl,
47647 &_swigt__p_wxSpinEvent,
47648 &_swigt__p_wxStaticBitmap,
47649 &_swigt__p_wxStaticBox,
47650 &_swigt__p_wxStaticBoxSizer,
47651 &_swigt__p_wxStaticLine,
47652 &_swigt__p_wxStaticText,
47653 &_swigt__p_wxStdDialogButtonSizer,
47654 &_swigt__p_wxString,
47655 &_swigt__p_wxSysColourChangedEvent,
47656 &_swigt__p_wxTIFFHandler,
47657 &_swigt__p_wxTextAttr,
47658 &_swigt__p_wxTextCtrl,
47659 &_swigt__p_wxTextUrlEvent,
47660 &_swigt__p_wxToggleButton,
47661 &_swigt__p_wxToolBar,
47662 &_swigt__p_wxToolBarBase,
47663 &_swigt__p_wxToolBarToolBase,
47664 &_swigt__p_wxToolbook,
47665 &_swigt__p_wxToolbookEvent,
47666 &_swigt__p_wxTreeCtrl,
47667 &_swigt__p_wxTreeEvent,
47668 &_swigt__p_wxTreeItemId,
47669 &_swigt__p_wxTreebook,
47670 &_swigt__p_wxTreebookEvent,
47671 &_swigt__p_wxUpdateUIEvent,
47672 &_swigt__p_wxValidator,
47673 &_swigt__p_wxVisualAttributes,
47674 &_swigt__p_wxWindow,
b850e7f3 47675 &_swigt__p_wxWindowBase,
0085ce49
RD
47676 &_swigt__p_wxWindowCreateEvent,
47677 &_swigt__p_wxWindowDestroyEvent,
47678 &_swigt__p_wxXPMHandler,
47679};
47680
47681static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}};
47682static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
47683static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
47684static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
47685static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
47686static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
47687static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
47688static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
47689static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
47690static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}};
47691static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}};
47692static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
47693static 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}};
47694static 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}};
47695static 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}};
47696static 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}};
47697static swig_cast_info _swigc__p_wxCheckBox[] = { {&_swigt__p_wxCheckBox, 0, 0, 0},{0, 0, 0, 0}};
47698static swig_cast_info _swigc__p_wxCheckListBox[] = { {&_swigt__p_wxCheckListBox, 0, 0, 0},{0, 0, 0, 0}};
47699static 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}};
47700static swig_cast_info _swigc__p_wxChoicebook[] = { {&_swigt__p_wxChoicebook, 0, 0, 0},{0, 0, 0, 0}};
47701static swig_cast_info _swigc__p_wxChoicebookEvent[] = { {&_swigt__p_wxChoicebookEvent, 0, 0, 0},{0, 0, 0, 0}};
47702static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
47703static swig_cast_info _swigc__p_wxColourPickerCtrl[] = { {&_swigt__p_wxColourPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
47704static swig_cast_info _swigc__p_wxColourPickerEvent[] = { {&_swigt__p_wxColourPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
47705static swig_cast_info _swigc__p_wxComboBox[] = { {&_swigt__p_wxComboBox, 0, 0, 0},{0, 0, 0, 0}};
47706static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
2131d850 47707static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
47708static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
47709static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
47710static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
47711static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
47712static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
47713static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
47714static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 47715static swig_cast_info _swigc__p_wxCommandEvent[] = { {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxCommandEvent, 0, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
47716static swig_cast_info _swigc__p_wxContextHelp[] = { {&_swigt__p_wxContextHelp, 0, 0, 0},{0, 0, 0, 0}};
47717static swig_cast_info _swigc__p_wxContextHelpButton[] = { {&_swigt__p_wxContextHelpButton, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 47718static swig_cast_info _swigc__p_wxControl[] = { {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxControl, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxControl, 0, 0}, {&_swigt__p_wxControl, 0, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxControl, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxControl, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxControl, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxControl, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxControl, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxControl, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxControl, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxControl, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxControl, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
47719static 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}};
47720static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
47721static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}};
47722static swig_cast_info _swigc__p_wxDatePickerCtrl[] = { {&_swigt__p_wxDatePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
47723static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}};
47724static swig_cast_info _swigc__p_wxDirFilterListCtrl[] = { {&_swigt__p_wxDirFilterListCtrl, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 47725static swig_cast_info _swigc__p_wxDirPickerCtrl[] = { {&_swigt__p_wxDirPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
47726static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
47727static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
47728static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
47729static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
47730static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
47731static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
47732static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
47733static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
47734static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
47735static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
47736static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
47737static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
47738static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
47739static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
47740static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
47741static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
47742static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47743static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47744static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47745static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47746static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
47747static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
47748static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
47749static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
47750static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 47751static swig_cast_info _swigc__p_wxEvent[] = { {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEvent, 0, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxEvent, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
47752static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
47753static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
47754static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
47755static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
47756static swig_cast_info _swigc__p_wxEvtHandler[] = { {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxEvtHandler, 0, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxEvtHandler, 0, 0},{0, 0, 0, 0}};
47757static swig_cast_info _swigc__p_wxFileDirPickerEvent[] = { {&_swigt__p_wxFileDirPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
47758static swig_cast_info _swigc__p_wxFilePickerCtrl[] = { {&_swigt__p_wxFilePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
0085ce49 47759static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
47760static swig_cast_info _swigc__p_wxFontPickerCtrl[] = { {&_swigt__p_wxFontPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
47761static swig_cast_info _swigc__p_wxFontPickerEvent[] = { {&_swigt__p_wxFontPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
47762static swig_cast_info _swigc__p_wxGauge[] = { {&_swigt__p_wxGauge, 0, 0, 0},{0, 0, 0, 0}};
47763static swig_cast_info _swigc__p_wxGenericDirCtrl[] = { {&_swigt__p_wxGenericDirCtrl, 0, 0, 0},{0, 0, 0, 0}};
47764static swig_cast_info _swigc__p_wxGenericDragImage[] = { {&_swigt__p_wxGenericDragImage, 0, 0, 0},{0, 0, 0, 0}};
47765static swig_cast_info _swigc__p_wxHelpEvent[] = { {&_swigt__p_wxHelpEvent, 0, 0, 0},{0, 0, 0, 0}};
47766static swig_cast_info _swigc__p_wxHelpProvider[] = { {&_swigt__p_wxHelpProvider, 0, 0, 0}, {&_swigt__p_wxSimpleHelpProvider, _p_wxSimpleHelpProviderTo_p_wxHelpProvider, 0, 0},{0, 0, 0, 0}};
704eda0c
RD
47767static swig_cast_info _swigc__p_wxHyperlinkCtrl[] = { {&_swigt__p_wxHyperlinkCtrl, 0, 0, 0},{0, 0, 0, 0}};
47768static swig_cast_info _swigc__p_wxHyperlinkEvent[] = { {&_swigt__p_wxHyperlinkEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
47769static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
47770static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
47771static 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}};
47772static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
47773static 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}};
47774static swig_cast_info _swigc__p_wxListEvent[] = { {&_swigt__p_wxListEvent, 0, 0, 0},{0, 0, 0, 0}};
47775static swig_cast_info _swigc__p_wxListItem[] = { {&_swigt__p_wxListItem, 0, 0, 0},{0, 0, 0, 0}};
47776static swig_cast_info _swigc__p_wxListItemAttr[] = { {&_swigt__p_wxListItemAttr, 0, 0, 0},{0, 0, 0, 0}};
47777static swig_cast_info _swigc__p_wxListView[] = { {&_swigt__p_wxListView, 0, 0, 0},{0, 0, 0, 0}};
47778static swig_cast_info _swigc__p_wxListbook[] = { {&_swigt__p_wxListbook, 0, 0, 0},{0, 0, 0, 0}};
47779static swig_cast_info _swigc__p_wxListbookEvent[] = { {&_swigt__p_wxListbookEvent, 0, 0, 0},{0, 0, 0, 0}};
47780static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}};
47781static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
47782static swig_cast_info _swigc__p_wxNotebook[] = { {&_swigt__p_wxNotebook, 0, 0, 0},{0, 0, 0, 0}};
47783static swig_cast_info _swigc__p_wxNotebookEvent[] = { {&_swigt__p_wxNotebookEvent, 0, 0, 0},{0, 0, 0, 0}};
47784static 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}};
47785static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
47786static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
47787static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
47788static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
47789static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
47790static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
47791static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
47792static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
47793static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
47794static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
47795static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
47796static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
47797static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
47798static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
47799static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
47800static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
47801static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
47802static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
47803static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
47804static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
47805static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
47806static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
704eda0c 47807static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
2131d850 47808static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
47809static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
47810static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
47811static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
47812static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
47813static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
47814static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 47815static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelp, _p_wxContextHelpTo_p_wxObject, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxListItem, _p_wxListItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGenericDragImage, _p_wxGenericDragImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarToolBase, _p_wxToolBarToolBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
0085ce49 47816static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 47817static swig_cast_info _swigc__p_wxPickerBase[] = { {&_swigt__p_wxPickerBase, 0, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxPickerBase, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxPickerBase, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxPickerBase, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxPickerBase, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
47818static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
47819static swig_cast_info _swigc__p_wxPyControl[] = { {&_swigt__p_wxPyControl, 0, 0, 0},{0, 0, 0, 0}};
47820static 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}};
47821static swig_cast_info _swigc__p_wxPyTreeCtrl[] = { {&_swigt__p_wxPyTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
47822static swig_cast_info _swigc__p_wxPyTreeItemData[] = { {&_swigt__p_wxPyTreeItemData, 0, 0, 0},{0, 0, 0, 0}};
47823static swig_cast_info _swigc__p_wxRadioBox[] = { {&_swigt__p_wxRadioBox, 0, 0, 0},{0, 0, 0, 0}};
47824static swig_cast_info _swigc__p_wxRadioButton[] = { {&_swigt__p_wxRadioButton, 0, 0, 0},{0, 0, 0, 0}};
47825static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
47826static swig_cast_info _swigc__p_wxScrollBar[] = { {&_swigt__p_wxScrollBar, 0, 0, 0},{0, 0, 0, 0}};
47827static swig_cast_info _swigc__p_wxSimpleHelpProvider[] = { {&_swigt__p_wxSimpleHelpProvider, 0, 0, 0},{0, 0, 0, 0}};
47828static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
47829static swig_cast_info _swigc__p_wxSlider[] = { {&_swigt__p_wxSlider, 0, 0, 0},{0, 0, 0, 0}};
47830static swig_cast_info _swigc__p_wxSpinButton[] = { {&_swigt__p_wxSpinButton, 0, 0, 0},{0, 0, 0, 0}};
47831static swig_cast_info _swigc__p_wxSpinCtrl[] = { {&_swigt__p_wxSpinCtrl, 0, 0, 0},{0, 0, 0, 0}};
47832static swig_cast_info _swigc__p_wxSpinEvent[] = { {&_swigt__p_wxSpinEvent, 0, 0, 0},{0, 0, 0, 0}};
47833static swig_cast_info _swigc__p_wxStaticBitmap[] = { {&_swigt__p_wxStaticBitmap, 0, 0, 0},{0, 0, 0, 0}};
47834static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}};
47835static swig_cast_info _swigc__p_wxStaticLine[] = { {&_swigt__p_wxStaticLine, 0, 0, 0},{0, 0, 0, 0}};
47836static swig_cast_info _swigc__p_wxStaticText[] = { {&_swigt__p_wxStaticText, 0, 0, 0},{0, 0, 0, 0}};
47837static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
47838static swig_cast_info _swigc__p_wxTextAttr[] = { {&_swigt__p_wxTextAttr, 0, 0, 0},{0, 0, 0, 0}};
47839static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0},{0, 0, 0, 0}};
47840static swig_cast_info _swigc__p_wxTextUrlEvent[] = { {&_swigt__p_wxTextUrlEvent, 0, 0, 0},{0, 0, 0, 0}};
47841static swig_cast_info _swigc__p_wxToggleButton[] = { {&_swigt__p_wxToggleButton, 0, 0, 0},{0, 0, 0, 0}};
47842static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}};
47843static 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}};
47844static swig_cast_info _swigc__p_wxToolBarToolBase[] = { {&_swigt__p_wxToolBarToolBase, 0, 0, 0},{0, 0, 0, 0}};
47845static swig_cast_info _swigc__p_wxToolbook[] = { {&_swigt__p_wxToolbook, 0, 0, 0},{0, 0, 0, 0}};
47846static swig_cast_info _swigc__p_wxToolbookEvent[] = { {&_swigt__p_wxToolbookEvent, 0, 0, 0},{0, 0, 0, 0}};
47847static swig_cast_info _swigc__p_wxTreeCtrl[] = { {&_swigt__p_wxTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
47848static swig_cast_info _swigc__p_wxTreeEvent[] = { {&_swigt__p_wxTreeEvent, 0, 0, 0},{0, 0, 0, 0}};
47849static swig_cast_info _swigc__p_wxTreeItemId[] = { {&_swigt__p_wxTreeItemId, 0, 0, 0},{0, 0, 0, 0}};
47850static swig_cast_info _swigc__p_wxTreebook[] = { {&_swigt__p_wxTreebook, 0, 0, 0},{0, 0, 0, 0}};
47851static swig_cast_info _swigc__p_wxTreebookEvent[] = { {&_swigt__p_wxTreebookEvent, 0, 0, 0},{0, 0, 0, 0}};
47852static 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}};
47853static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
47854static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxWindow, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxWindow, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxWindow, 0, 0},{0, 0, 0, 0}};
47855static swig_cast_info _swigc__p_wxWindowBase[] = { {&_swigt__p_wxWindowBase, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
47856
47857static swig_cast_info *swig_cast_initial[] = {
47858 _swigc__p_bool,
47859 _swigc__p_char,
47860 _swigc__p_form_ops_t,
47861 _swigc__p_int,
47862 _swigc__p_long,
47863 _swigc__p_unsigned_char,
47864 _swigc__p_unsigned_int,
47865 _swigc__p_unsigned_long,
47866 _swigc__p_void,
47867 _swigc__p_wxANIHandler,
47868 _swigc__p_wxAcceleratorTable,
47869 _swigc__p_wxActivateEvent,
47870 _swigc__p_wxArrayInt,
47871 _swigc__p_wxArrayString,
47872 _swigc__p_wxBMPHandler,
47873 _swigc__p_wxBitmap,
47874 _swigc__p_wxBitmapButton,
47875 _swigc__p_wxBookCtrlBase,
47876 _swigc__p_wxBookCtrlBaseEvent,
47877 _swigc__p_wxBoxSizer,
47878 _swigc__p_wxButton,
47879 _swigc__p_wxCURHandler,
47880 _swigc__p_wxCheckBox,
47881 _swigc__p_wxCheckListBox,
47882 _swigc__p_wxChildFocusEvent,
47883 _swigc__p_wxChoice,
47884 _swigc__p_wxChoicebook,
47885 _swigc__p_wxChoicebookEvent,
2131d850 47886 _swigc__p_wxClipboardTextEvent,
0085ce49
RD
47887 _swigc__p_wxCloseEvent,
47888 _swigc__p_wxColour,
b850e7f3
RD
47889 _swigc__p_wxColourPickerCtrl,
47890 _swigc__p_wxColourPickerEvent,
0085ce49
RD
47891 _swigc__p_wxComboBox,
47892 _swigc__p_wxCommandEvent,
47893 _swigc__p_wxContextHelp,
47894 _swigc__p_wxContextHelpButton,
47895 _swigc__p_wxContextMenuEvent,
47896 _swigc__p_wxControl,
47897 _swigc__p_wxControlWithItems,
47898 _swigc__p_wxCursor,
47899 _swigc__p_wxDC,
47900 _swigc__p_wxDateEvent,
47901 _swigc__p_wxDatePickerCtrl,
47902 _swigc__p_wxDateTime,
47903 _swigc__p_wxDirFilterListCtrl,
b850e7f3 47904 _swigc__p_wxDirPickerCtrl,
0085ce49
RD
47905 _swigc__p_wxDisplayChangedEvent,
47906 _swigc__p_wxDropFilesEvent,
47907 _swigc__p_wxDuplexMode,
47908 _swigc__p_wxEraseEvent,
47909 _swigc__p_wxEvent,
47910 _swigc__p_wxEvtHandler,
47911 _swigc__p_wxFSFile,
b850e7f3
RD
47912 _swigc__p_wxFileDirPickerEvent,
47913 _swigc__p_wxFilePickerCtrl,
0085ce49
RD
47914 _swigc__p_wxFileSystem,
47915 _swigc__p_wxFlexGridSizer,
47916 _swigc__p_wxFocusEvent,
47917 _swigc__p_wxFont,
b850e7f3
RD
47918 _swigc__p_wxFontPickerCtrl,
47919 _swigc__p_wxFontPickerEvent,
0085ce49
RD
47920 _swigc__p_wxGBSizerItem,
47921 _swigc__p_wxGIFHandler,
47922 _swigc__p_wxGauge,
47923 _swigc__p_wxGenericDirCtrl,
47924 _swigc__p_wxGenericDragImage,
47925 _swigc__p_wxGridBagSizer,
47926 _swigc__p_wxGridSizer,
47927 _swigc__p_wxHelpEvent,
47928 _swigc__p_wxHelpProvider,
704eda0c
RD
47929 _swigc__p_wxHyperlinkCtrl,
47930 _swigc__p_wxHyperlinkEvent,
0085ce49
RD
47931 _swigc__p_wxICOHandler,
47932 _swigc__p_wxIcon,
47933 _swigc__p_wxIconizeEvent,
47934 _swigc__p_wxIdleEvent,
47935 _swigc__p_wxImage,
47936 _swigc__p_wxImageHandler,
47937 _swigc__p_wxImageList,
47938 _swigc__p_wxIndividualLayoutConstraint,
47939 _swigc__p_wxInitDialogEvent,
47940 _swigc__p_wxItemContainer,
47941 _swigc__p_wxJPEGHandler,
47942 _swigc__p_wxKeyEvent,
47943 _swigc__p_wxLayoutConstraints,
47944 _swigc__p_wxListBox,
47945 _swigc__p_wxListEvent,
47946 _swigc__p_wxListItem,
47947 _swigc__p_wxListItemAttr,
47948 _swigc__p_wxListView,
47949 _swigc__p_wxListbook,
47950 _swigc__p_wxListbookEvent,
47951 _swigc__p_wxMaximizeEvent,
47952 _swigc__p_wxMemoryDC,
47953 _swigc__p_wxMenu,
47954 _swigc__p_wxMenuBar,
47955 _swigc__p_wxMenuEvent,
47956 _swigc__p_wxMenuItem,
47957 _swigc__p_wxMouseCaptureChangedEvent,
47958 _swigc__p_wxMouseEvent,
47959 _swigc__p_wxMoveEvent,
47960 _swigc__p_wxNavigationKeyEvent,
47961 _swigc__p_wxNcPaintEvent,
47962 _swigc__p_wxNotebook,
47963 _swigc__p_wxNotebookEvent,
47964 _swigc__p_wxNotifyEvent,
47965 _swigc__p_wxObject,
47966 _swigc__p_wxPCXHandler,
47967 _swigc__p_wxPNGHandler,
47968 _swigc__p_wxPNMHandler,
47969 _swigc__p_wxPaintEvent,
47970 _swigc__p_wxPaletteChangedEvent,
47971 _swigc__p_wxPaperSize,
b850e7f3 47972 _swigc__p_wxPickerBase,
0085ce49
RD
47973 _swigc__p_wxPoint,
47974 _swigc__p_wxPyApp,
47975 _swigc__p_wxPyCommandEvent,
47976 _swigc__p_wxPyControl,
47977 _swigc__p_wxPyEvent,
47978 _swigc__p_wxPyImageHandler,
47979 _swigc__p_wxPyListCtrl,
47980 _swigc__p_wxPySizer,
47981 _swigc__p_wxPyTreeCtrl,
47982 _swigc__p_wxPyTreeItemData,
47983 _swigc__p_wxPyValidator,
47984 _swigc__p_wxQueryNewPaletteEvent,
47985 _swigc__p_wxRadioBox,
47986 _swigc__p_wxRadioButton,
47987 _swigc__p_wxRect,
47988 _swigc__p_wxScrollBar,
47989 _swigc__p_wxScrollEvent,
47990 _swigc__p_wxScrollWinEvent,
47991 _swigc__p_wxSetCursorEvent,
47992 _swigc__p_wxShowEvent,
47993 _swigc__p_wxSimpleHelpProvider,
47994 _swigc__p_wxSize,
47995 _swigc__p_wxSizeEvent,
47996 _swigc__p_wxSizer,
47997 _swigc__p_wxSizerItem,
47998 _swigc__p_wxSlider,
47999 _swigc__p_wxSpinButton,
48000 _swigc__p_wxSpinCtrl,
48001 _swigc__p_wxSpinEvent,
48002 _swigc__p_wxStaticBitmap,
48003 _swigc__p_wxStaticBox,
48004 _swigc__p_wxStaticBoxSizer,
48005 _swigc__p_wxStaticLine,
48006 _swigc__p_wxStaticText,
48007 _swigc__p_wxStdDialogButtonSizer,
48008 _swigc__p_wxString,
48009 _swigc__p_wxSysColourChangedEvent,
48010 _swigc__p_wxTIFFHandler,
48011 _swigc__p_wxTextAttr,
48012 _swigc__p_wxTextCtrl,
48013 _swigc__p_wxTextUrlEvent,
48014 _swigc__p_wxToggleButton,
48015 _swigc__p_wxToolBar,
48016 _swigc__p_wxToolBarBase,
48017 _swigc__p_wxToolBarToolBase,
48018 _swigc__p_wxToolbook,
48019 _swigc__p_wxToolbookEvent,
48020 _swigc__p_wxTreeCtrl,
48021 _swigc__p_wxTreeEvent,
48022 _swigc__p_wxTreeItemId,
48023 _swigc__p_wxTreebook,
48024 _swigc__p_wxTreebookEvent,
48025 _swigc__p_wxUpdateUIEvent,
48026 _swigc__p_wxValidator,
48027 _swigc__p_wxVisualAttributes,
48028 _swigc__p_wxWindow,
b850e7f3 48029 _swigc__p_wxWindowBase,
0085ce49
RD
48030 _swigc__p_wxWindowCreateEvent,
48031 _swigc__p_wxWindowDestroyEvent,
48032 _swigc__p_wxXPMHandler,
48033};
48034
48035
48036/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
48037
48038static swig_const_info swig_const_table[] = {
48039{0, 0, 0, 0.0, 0, 0}};
48040
48041#ifdef __cplusplus
48042}
48043#endif
48044/* -----------------------------------------------------------------------------
48045 * Type initialization:
48046 * This problem is tough by the requirement that no dynamic
48047 * memory is used. Also, since swig_type_info structures store pointers to
48048 * swig_cast_info structures and swig_cast_info structures store pointers back
48049 * to swig_type_info structures, we need some lookup code at initialization.
48050 * The idea is that swig generates all the structures that are needed.
48051 * The runtime then collects these partially filled structures.
48052 * The SWIG_InitializeModule function takes these initial arrays out of
48053 * swig_module, and does all the lookup, filling in the swig_module.types
48054 * array with the correct data and linking the correct swig_cast_info
48055 * structures together.
48056 *
48057 * The generated swig_type_info structures are assigned staticly to an initial
48058 * array. We just loop though that array, and handle each type individually.
48059 * First we lookup if this type has been already loaded, and if so, use the
48060 * loaded structure instead of the generated one. Then we have to fill in the
48061 * cast linked list. The cast data is initially stored in something like a
48062 * two-dimensional array. Each row corresponds to a type (there are the same
48063 * number of rows as there are in the swig_type_initial array). Each entry in
48064 * a column is one of the swig_cast_info structures for that type.
48065 * The cast_initial array is actually an array of arrays, because each row has
48066 * a variable number of columns. So to actually build the cast linked list,
48067 * we find the array of casts associated with the type, and loop through it
48068 * adding the casts to the list. The one last trick we need to do is making
48069 * sure the type pointer in the swig_cast_info struct is correct.
48070 *
48071 * First off, we lookup the cast->type name to see if it is already loaded.
48072 * There are three cases to handle:
48073 * 1) If the cast->type has already been loaded AND the type we are adding
48074 * casting info to has not been loaded (it is in this module), THEN we
48075 * replace the cast->type pointer with the type pointer that has already
48076 * been loaded.
48077 * 2) If BOTH types (the one we are adding casting info to, and the
48078 * cast->type) are loaded, THEN the cast info has already been loaded by
48079 * the previous module so we just ignore it.
48080 * 3) Finally, if cast->type has not already been loaded, then we add that
48081 * swig_cast_info to the linked list (because the cast->type) pointer will
48082 * be correct.
48083 * ----------------------------------------------------------------------------- */
48084
48085#ifdef __cplusplus
48086extern "C" {
48087#if 0
48088} /* c-mode */
48089#endif
48090#endif
48091
48092#if 0
48093#define SWIGRUNTIME_DEBUG
48094#endif
48095
48096SWIGRUNTIME void
48097SWIG_InitializeModule(void *clientdata) {
48098 size_t i;
48099 swig_module_info *module_head;
48100 static int init_run = 0;
48101
48102 clientdata = clientdata;
48103
48104 if (init_run) return;
48105 init_run = 1;
48106
48107 /* Initialize the swig_module */
48108 swig_module.type_initial = swig_type_initial;
48109 swig_module.cast_initial = swig_cast_initial;
48110
48111 /* Try and load any already created modules */
48112 module_head = SWIG_GetModule(clientdata);
48113 if (module_head) {
48114 swig_module.next = module_head->next;
48115 module_head->next = &swig_module;
48116 } else {
48117 /* This is the first module loaded */
48118 swig_module.next = &swig_module;
48119 SWIG_SetModule(clientdata, &swig_module);
48120 }
48121
48122 /* Now work on filling in swig_module.types */
48123#ifdef SWIGRUNTIME_DEBUG
48124 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
48125#endif
48126 for (i = 0; i < swig_module.size; ++i) {
48127 swig_type_info *type = 0;
48128 swig_type_info *ret;
48129 swig_cast_info *cast;
d14a1e28 48130
0085ce49
RD
48131#ifdef SWIGRUNTIME_DEBUG
48132 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
48133#endif
d14a1e28 48134
0085ce49
RD
48135 /* if there is another module already loaded */
48136 if (swig_module.next != &swig_module) {
48137 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
093d3ff1 48138 }
0085ce49
RD
48139 if (type) {
48140 /* Overwrite clientdata field */
48141#ifdef SWIGRUNTIME_DEBUG
48142 printf("SWIG_InitializeModule: found type %s\n", type->name);
48143#endif
48144 if (swig_module.type_initial[i]->clientdata) {
48145 type->clientdata = swig_module.type_initial[i]->clientdata;
48146#ifdef SWIGRUNTIME_DEBUG
48147 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
48148#endif
48149 }
48150 } else {
48151 type = swig_module.type_initial[i];
093d3ff1 48152 }
d14a1e28 48153
0085ce49
RD
48154 /* Insert casting types */
48155 cast = swig_module.cast_initial[i];
48156 while (cast->type) {
48157 /* Don't need to add information already in the list */
48158 ret = 0;
48159#ifdef SWIGRUNTIME_DEBUG
48160 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
48161#endif
48162 if (swig_module.next != &swig_module) {
48163 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
48164#ifdef SWIGRUNTIME_DEBUG
48165 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
48166#endif
48167 }
48168 if (ret) {
48169 if (type == swig_module.type_initial[i]) {
48170#ifdef SWIGRUNTIME_DEBUG
48171 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
48172#endif
48173 cast->type = ret;
48174 ret = 0;
48175 } else {
48176 /* Check for casting already in the list */
48177 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
48178#ifdef SWIGRUNTIME_DEBUG
48179 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
48180#endif
48181 if (!ocast) ret = 0;
48182 }
48183 }
48184
48185 if (!ret) {
48186#ifdef SWIGRUNTIME_DEBUG
48187 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
48188#endif
48189 if (type->cast) {
48190 type->cast->prev = cast;
48191 cast->next = type->cast;
48192 }
48193 type->cast = cast;
48194 }
48195 cast++;
093d3ff1 48196 }
0085ce49
RD
48197 /* Set entry in modules->types array equal to the type */
48198 swig_module.types[i] = type;
48199 }
48200 swig_module.types[i] = 0;
48201
48202#ifdef SWIGRUNTIME_DEBUG
48203 printf("**** SWIG_InitializeModule: Cast List ******\n");
48204 for (i = 0; i < swig_module.size; ++i) {
48205 int j = 0;
48206 swig_cast_info *cast = swig_module.cast_initial[i];
48207 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
48208 while (cast->type) {
48209 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
48210 cast++;
48211 ++j;
48212 }
48213 printf("---- Total casts: %d\n",j);
48214 }
48215 printf("**** SWIG_InitializeModule: Cast List ******\n");
48216#endif
48217}
48218
48219/* This function will propagate the clientdata field of type to
48220* any new swig_type_info structures that have been added into the list
48221* of equivalent types. It is like calling
48222* SWIG_TypeClientData(type, clientdata) a second time.
48223*/
48224SWIGRUNTIME void
48225SWIG_PropagateClientData(void) {
48226 size_t i;
48227 swig_cast_info *equiv;
48228 static int init_run = 0;
48229
48230 if (init_run) return;
48231 init_run = 1;
48232
48233 for (i = 0; i < swig_module.size; i++) {
48234 if (swig_module.types[i]->clientdata) {
48235 equiv = swig_module.types[i]->cast;
48236 while (equiv) {
48237 if (!equiv->converter) {
48238 if (equiv->type && !equiv->type->clientdata)
48239 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
48240 }
48241 equiv = equiv->next;
48242 }
093d3ff1 48243 }
0085ce49
RD
48244 }
48245}
48246
48247#ifdef __cplusplus
48248#if 0
48249{
48250 /* c-mode */
48251#endif
48252}
48253#endif
48254
48255
48256
48257#ifdef __cplusplus
48258extern "C" {
48259#endif
48260
48261 /* Python-specific SWIG API */
48262#define SWIG_newvarlink() SWIG_Python_newvarlink()
48263#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
48264#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
48265
48266 /* -----------------------------------------------------------------------------
48267 * global variable support code.
48268 * ----------------------------------------------------------------------------- */
48269
48270 typedef struct swig_globalvar {
48271 char *name; /* Name of global variable */
48272 PyObject *(*get_attr)(void); /* Return the current value */
48273 int (*set_attr)(PyObject *); /* Set the value */
48274 struct swig_globalvar *next;
48275 } swig_globalvar;
48276
48277 typedef struct swig_varlinkobject {
48278 PyObject_HEAD
48279 swig_globalvar *vars;
48280 } swig_varlinkobject;
48281
48282 SWIGINTERN PyObject *
48283 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
48284 return PyString_FromString("<Swig global variables>");
48285 }
48286
48287 SWIGINTERN PyObject *
48288 swig_varlink_str(swig_varlinkobject *v) {
48289 PyObject *str = PyString_FromString("(");
48290 swig_globalvar *var;
48291 for (var = v->vars; var; var=var->next) {
48292 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
48293 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
48294 }
48295 PyString_ConcatAndDel(&str,PyString_FromString(")"));
48296 return str;
48297 }
48298
48299 SWIGINTERN int
48300 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
48301 PyObject *str = swig_varlink_str(v);
48302 fprintf(fp,"Swig global variables ");
48303 fprintf(fp,"%s\n", PyString_AsString(str));
48304 Py_DECREF(str);
48305 return 0;
48306 }
48307
48308 SWIGINTERN void
48309 swig_varlink_dealloc(swig_varlinkobject *v) {
48310 swig_globalvar *var = v->vars;
48311 while (var) {
48312 swig_globalvar *n = var->next;
48313 free(var->name);
48314 free(var);
48315 var = n;
093d3ff1 48316 }
0085ce49
RD
48317 }
48318
48319 SWIGINTERN PyObject *
48320 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
48321 PyObject *res = NULL;
48322 swig_globalvar *var = v->vars;
48323 while (var) {
48324 if (strcmp(var->name,n) == 0) {
48325 res = (*var->get_attr)();
48326 break;
48327 }
48328 var = var->next;
093d3ff1 48329 }
0085ce49
RD
48330 if (res == NULL && !PyErr_Occurred()) {
48331 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
093d3ff1 48332 }
0085ce49
RD
48333 return res;
48334 }
48335
48336 SWIGINTERN int
48337 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
48338 int res = 1;
48339 swig_globalvar *var = v->vars;
48340 while (var) {
48341 if (strcmp(var->name,n) == 0) {
48342 res = (*var->set_attr)(p);
48343 break;
48344 }
48345 var = var->next;
093d3ff1 48346 }
0085ce49
RD
48347 if (res == 1 && !PyErr_Occurred()) {
48348 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
53aa7709 48349 }
0085ce49
RD
48350 return res;
48351 }
48352
48353 SWIGINTERN PyTypeObject*
48354 swig_varlink_type(void) {
48355 static char varlink__doc__[] = "Swig var link object";
48356 static PyTypeObject varlink_type;
48357 static int type_init = 0;
48358 if (!type_init) {
48359 const PyTypeObject tmp
48360 = {
48361 PyObject_HEAD_INIT(NULL)
48362 0, /* Number of items in variable part (ob_size) */
48363 (char *)"swigvarlink", /* Type name (tp_name) */
48364 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
48365 0, /* Itemsize (tp_itemsize) */
48366 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
48367 (printfunc) swig_varlink_print, /* Print (tp_print) */
48368 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
48369 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
48370 0, /* tp_compare */
48371 (reprfunc) swig_varlink_repr, /* tp_repr */
48372 0, /* tp_as_number */
48373 0, /* tp_as_sequence */
48374 0, /* tp_as_mapping */
48375 0, /* tp_hash */
48376 0, /* tp_call */
48377 (reprfunc)swig_varlink_str, /* tp_str */
48378 0, /* tp_getattro */
48379 0, /* tp_setattro */
48380 0, /* tp_as_buffer */
48381 0, /* tp_flags */
48382 varlink__doc__, /* tp_doc */
48383 0, /* tp_traverse */
48384 0, /* tp_clear */
48385 0, /* tp_richcompare */
48386 0, /* tp_weaklistoffset */
48387#if PY_VERSION_HEX >= 0x02020000
48388 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
48389#endif
48390#if PY_VERSION_HEX >= 0x02030000
48391 0, /* tp_del */
48392#endif
48393#ifdef COUNT_ALLOCS
48394 0,0,0,0 /* tp_alloc -> tp_next */
48395#endif
48396 };
48397 varlink_type = tmp;
48398 varlink_type.ob_type = &PyType_Type;
48399 type_init = 1;
53aa7709 48400 }
0085ce49
RD
48401 return &varlink_type;
48402 }
48403
48404 /* Create a variable linking object for use later */
48405 SWIGINTERN PyObject *
48406 SWIG_Python_newvarlink(void) {
48407 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
48408 if (result) {
48409 result->vars = 0;
48410 }
48411 return ((PyObject*) result);
48412 }
48413
48414 SWIGINTERN void
48415 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
48416 swig_varlinkobject *v = (swig_varlinkobject *) p;
48417 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
48418 if (gv) {
48419 size_t size = strlen(name)+1;
48420 gv->name = (char *)malloc(size);
48421 if (gv->name) {
48422 strncpy(gv->name,name,size);
48423 gv->get_attr = get_attr;
48424 gv->set_attr = set_attr;
48425 gv->next = v->vars;
48426 }
53aa7709 48427 }
0085ce49
RD
48428 v->vars = gv;
48429 }
48430
48431 SWIGINTERN PyObject *
48432 SWIG_globals() {
48433 static PyObject *_SWIG_globals = 0;
48434 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
48435 return _SWIG_globals;
48436 }
48437
48438 /* -----------------------------------------------------------------------------
48439 * constants/methods manipulation
48440 * ----------------------------------------------------------------------------- */
48441
48442 /* Install Constants */
48443 SWIGINTERN void
48444 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
48445 PyObject *obj = 0;
48446 size_t i;
48447 for (i = 0; constants[i].type; ++i) {
48448 switch(constants[i].type) {
48449 case SWIG_PY_POINTER:
48450 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
48451 break;
48452 case SWIG_PY_BINARY:
48453 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
48454 break;
48455 default:
48456 obj = 0;
48457 break;
48458 }
48459 if (obj) {
48460 PyDict_SetItemString(d, constants[i].name, obj);
48461 Py_DECREF(obj);
48462 }
53aa7709 48463 }
0085ce49
RD
48464 }
48465
48466 /* -----------------------------------------------------------------------------*/
48467 /* Fix SwigMethods to carry the callback ptrs when needed */
48468 /* -----------------------------------------------------------------------------*/
48469
48470 SWIGINTERN void
48471 SWIG_Python_FixMethods(PyMethodDef *methods,
48472 swig_const_info *const_table,
48473 swig_type_info **types,
48474 swig_type_info **types_initial) {
48475 size_t i;
48476 for (i = 0; methods[i].ml_name; ++i) {
453fb36b 48477 const char *c = methods[i].ml_doc;
0085ce49
RD
48478 if (c && (c = strstr(c, "swig_ptr: "))) {
48479 int j;
48480 swig_const_info *ci = 0;
453fb36b 48481 const char *name = c + 10;
0085ce49
RD
48482 for (j = 0; const_table[j].type; ++j) {
48483 if (strncmp(const_table[j].name, name,
48484 strlen(const_table[j].name)) == 0) {
48485 ci = &(const_table[j]);
48486 break;
48487 }
48488 }
48489 if (ci) {
48490 size_t shift = (ci->ptype) - types;
48491 swig_type_info *ty = types_initial[shift];
48492 size_t ldoc = (c - methods[i].ml_doc);
48493 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
48494 char *ndoc = (char*)malloc(ldoc + lptr + 10);
48495 if (ndoc) {
48496 char *buff = ndoc;
48497 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
48498 if (ptr) {
48499 strncpy(buff, methods[i].ml_doc, ldoc);
48500 buff += ldoc;
48501 strncpy(buff, "swig_ptr: ", 10);
48502 buff += 10;
48503 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
48504 methods[i].ml_doc = ndoc;
48505 }
48506 }
48507 }
48508 }
53aa7709 48509 }
0085ce49
RD
48510 }
48511
48512#ifdef __cplusplus
48513}
48514#endif
48515
48516/* -----------------------------------------------------------------------------*
48517 * Partial Init method
48518 * -----------------------------------------------------------------------------*/
48519
48520#ifdef __cplusplus
48521extern "C"
48522#endif
48523SWIGEXPORT void SWIG_init(void) {
48524 PyObject *m, *d;
48525
48526 /* Fix SwigMethods to carry the callback ptrs when needed */
48527 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
48528
48529 m = Py_InitModule((char *) SWIG_name, SwigMethods);
48530 d = PyModule_GetDict(m);
48531
48532 SWIG_InitializeModule(0);
48533 SWIG_InstallConstants(d,swig_const_table);
48534
48535
48536 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
48537 SWIG_addvarlink(SWIG_globals(),(char*)"ButtonNameStr",ButtonNameStr_get, ButtonNameStr_set);
48538 SWIG_Python_SetConstant(d, "BU_LEFT",SWIG_From_int(static_cast< int >(wxBU_LEFT)));
48539 SWIG_Python_SetConstant(d, "BU_TOP",SWIG_From_int(static_cast< int >(wxBU_TOP)));
48540 SWIG_Python_SetConstant(d, "BU_RIGHT",SWIG_From_int(static_cast< int >(wxBU_RIGHT)));
48541 SWIG_Python_SetConstant(d, "BU_BOTTOM",SWIG_From_int(static_cast< int >(wxBU_BOTTOM)));
48542 SWIG_Python_SetConstant(d, "BU_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBU_ALIGN_MASK)));
48543 SWIG_Python_SetConstant(d, "BU_EXACTFIT",SWIG_From_int(static_cast< int >(wxBU_EXACTFIT)));
48544 SWIG_Python_SetConstant(d, "BU_AUTODRAW",SWIG_From_int(static_cast< int >(wxBU_AUTODRAW)));
48545 SWIG_addvarlink(SWIG_globals(),(char*)"CheckBoxNameStr",CheckBoxNameStr_get, CheckBoxNameStr_set);
48546 SWIG_Python_SetConstant(d, "CHK_2STATE",SWIG_From_int(static_cast< int >(wxCHK_2STATE)));
48547 SWIG_Python_SetConstant(d, "CHK_3STATE",SWIG_From_int(static_cast< int >(wxCHK_3STATE)));
48548 SWIG_Python_SetConstant(d, "CHK_ALLOW_3RD_STATE_FOR_USER",SWIG_From_int(static_cast< int >(wxCHK_ALLOW_3RD_STATE_FOR_USER)));
48549 SWIG_Python_SetConstant(d, "CHK_UNCHECKED",SWIG_From_int(static_cast< int >(wxCHK_UNCHECKED)));
48550 SWIG_Python_SetConstant(d, "CHK_CHECKED",SWIG_From_int(static_cast< int >(wxCHK_CHECKED)));
48551 SWIG_Python_SetConstant(d, "CHK_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCHK_UNDETERMINED)));
48552 SWIG_addvarlink(SWIG_globals(),(char*)"ChoiceNameStr",ChoiceNameStr_get, ChoiceNameStr_set);
48553 SWIG_addvarlink(SWIG_globals(),(char*)"ComboBoxNameStr",ComboBoxNameStr_get, ComboBoxNameStr_set);
48554 SWIG_addvarlink(SWIG_globals(),(char*)"GaugeNameStr",GaugeNameStr_get, GaugeNameStr_set);
48555 SWIG_Python_SetConstant(d, "GA_HORIZONTAL",SWIG_From_int(static_cast< int >(wxGA_HORIZONTAL)));
48556 SWIG_Python_SetConstant(d, "GA_VERTICAL",SWIG_From_int(static_cast< int >(wxGA_VERTICAL)));
48557 SWIG_Python_SetConstant(d, "GA_SMOOTH",SWIG_From_int(static_cast< int >(wxGA_SMOOTH)));
0085ce49
RD
48558 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBitmapNameStr",StaticBitmapNameStr_get, StaticBitmapNameStr_set);
48559 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBoxNameStr",StaticBoxNameStr_get, StaticBoxNameStr_set);
48560 SWIG_addvarlink(SWIG_globals(),(char*)"StaticTextNameStr",StaticTextNameStr_get, StaticTextNameStr_set);
48561 SWIG_addvarlink(SWIG_globals(),(char*)"ListBoxNameStr",ListBoxNameStr_get, ListBoxNameStr_set);
48562 SWIG_addvarlink(SWIG_globals(),(char*)"TextCtrlNameStr",TextCtrlNameStr_get, TextCtrlNameStr_set);
48563 SWIG_Python_SetConstant(d, "TE_NO_VSCROLL",SWIG_From_int(static_cast< int >(wxTE_NO_VSCROLL)));
48564 SWIG_Python_SetConstant(d, "TE_AUTO_SCROLL",SWIG_From_int(static_cast< int >(wxTE_AUTO_SCROLL)));
48565 SWIG_Python_SetConstant(d, "TE_READONLY",SWIG_From_int(static_cast< int >(wxTE_READONLY)));
48566 SWIG_Python_SetConstant(d, "TE_MULTILINE",SWIG_From_int(static_cast< int >(wxTE_MULTILINE)));
48567 SWIG_Python_SetConstant(d, "TE_PROCESS_TAB",SWIG_From_int(static_cast< int >(wxTE_PROCESS_TAB)));
48568 SWIG_Python_SetConstant(d, "TE_LEFT",SWIG_From_int(static_cast< int >(wxTE_LEFT)));
48569 SWIG_Python_SetConstant(d, "TE_CENTER",SWIG_From_int(static_cast< int >(wxTE_CENTER)));
48570 SWIG_Python_SetConstant(d, "TE_RIGHT",SWIG_From_int(static_cast< int >(wxTE_RIGHT)));
48571 SWIG_Python_SetConstant(d, "TE_CENTRE",SWIG_From_int(static_cast< int >(wxTE_CENTRE)));
48572 SWIG_Python_SetConstant(d, "TE_RICH",SWIG_From_int(static_cast< int >(wxTE_RICH)));
48573 SWIG_Python_SetConstant(d, "TE_PROCESS_ENTER",SWIG_From_int(static_cast< int >(wxTE_PROCESS_ENTER)));
48574 SWIG_Python_SetConstant(d, "TE_PASSWORD",SWIG_From_int(static_cast< int >(wxTE_PASSWORD)));
48575 SWIG_Python_SetConstant(d, "TE_AUTO_URL",SWIG_From_int(static_cast< int >(wxTE_AUTO_URL)));
48576 SWIG_Python_SetConstant(d, "TE_NOHIDESEL",SWIG_From_int(static_cast< int >(wxTE_NOHIDESEL)));
48577 SWIG_Python_SetConstant(d, "TE_DONTWRAP",SWIG_From_int(static_cast< int >(wxTE_DONTWRAP)));
48578 SWIG_Python_SetConstant(d, "TE_CHARWRAP",SWIG_From_int(static_cast< int >(wxTE_CHARWRAP)));
48579 SWIG_Python_SetConstant(d, "TE_WORDWRAP",SWIG_From_int(static_cast< int >(wxTE_WORDWRAP)));
48580 SWIG_Python_SetConstant(d, "TE_BESTWRAP",SWIG_From_int(static_cast< int >(wxTE_BESTWRAP)));
0085ce49
RD
48581 SWIG_Python_SetConstant(d, "TE_RICH2",SWIG_From_int(static_cast< int >(wxTE_RICH2)));
48582 SWIG_Python_SetConstant(d, "TE_CAPITALIZE",SWIG_From_int(static_cast< int >(wxTE_CAPITALIZE)));
48583 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT)));
48584 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT)));
48585 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE)));
48586 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER)));
48587 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT)));
48588 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED)));
48589 SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR)));
48590 SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR)));
48591 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE)));
48592 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE)));
48593 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT)));
48594 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC)));
48595 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE)));
48596 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT)));
48597 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT)));
48598 SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT)));
48599 SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT)));
48600 SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS)));
48601 SWIG_Python_SetConstant(d, "TE_HT_UNKNOWN",SWIG_From_int(static_cast< int >(wxTE_HT_UNKNOWN)));
48602 SWIG_Python_SetConstant(d, "TE_HT_BEFORE",SWIG_From_int(static_cast< int >(wxTE_HT_BEFORE)));
48603 SWIG_Python_SetConstant(d, "TE_HT_ON_TEXT",SWIG_From_int(static_cast< int >(wxTE_HT_ON_TEXT)));
48604 SWIG_Python_SetConstant(d, "TE_HT_BELOW",SWIG_From_int(static_cast< int >(wxTE_HT_BELOW)));
48605 SWIG_Python_SetConstant(d, "TE_HT_BEYOND",SWIG_From_int(static_cast< int >(wxTE_HT_BEYOND)));
48606 SWIG_Python_SetConstant(d, "OutOfRangeTextCoord",SWIG_From_int(static_cast< int >(wxOutOfRangeTextCoord)));
48607 SWIG_Python_SetConstant(d, "InvalidTextCoord",SWIG_From_int(static_cast< int >(wxInvalidTextCoord)));
48608 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
48609 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
48610 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
48611 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
48612 SWIG_addvarlink(SWIG_globals(),(char*)"ScrollBarNameStr",ScrollBarNameStr_get, ScrollBarNameStr_set);
48613 SWIG_addvarlink(SWIG_globals(),(char*)"SPIN_BUTTON_NAME",SPIN_BUTTON_NAME_get, SPIN_BUTTON_NAME_set);
48614 SWIG_addvarlink(SWIG_globals(),(char*)"SpinCtrlNameStr",SpinCtrlNameStr_get, SpinCtrlNameStr_set);
48615 SWIG_Python_SetConstant(d, "SP_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSP_HORIZONTAL)));
48616 SWIG_Python_SetConstant(d, "SP_VERTICAL",SWIG_From_int(static_cast< int >(wxSP_VERTICAL)));
48617 SWIG_Python_SetConstant(d, "SP_ARROW_KEYS",SWIG_From_int(static_cast< int >(wxSP_ARROW_KEYS)));
48618 SWIG_Python_SetConstant(d, "SP_WRAP",SWIG_From_int(static_cast< int >(wxSP_WRAP)));
48619 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
48620 SWIG_addvarlink(SWIG_globals(),(char*)"RadioBoxNameStr",RadioBoxNameStr_get, RadioBoxNameStr_set);
48621 SWIG_addvarlink(SWIG_globals(),(char*)"RadioButtonNameStr",RadioButtonNameStr_get, RadioButtonNameStr_set);
48622 SWIG_addvarlink(SWIG_globals(),(char*)"SliderNameStr",SliderNameStr_get, SliderNameStr_set);
48623 SWIG_Python_SetConstant(d, "SL_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSL_HORIZONTAL)));
48624 SWIG_Python_SetConstant(d, "SL_VERTICAL",SWIG_From_int(static_cast< int >(wxSL_VERTICAL)));
48625 SWIG_Python_SetConstant(d, "SL_TICKS",SWIG_From_int(static_cast< int >(wxSL_TICKS)));
48626 SWIG_Python_SetConstant(d, "SL_AUTOTICKS",SWIG_From_int(static_cast< int >(wxSL_AUTOTICKS)));
48627 SWIG_Python_SetConstant(d, "SL_LABELS",SWIG_From_int(static_cast< int >(wxSL_LABELS)));
48628 SWIG_Python_SetConstant(d, "SL_LEFT",SWIG_From_int(static_cast< int >(wxSL_LEFT)));
48629 SWIG_Python_SetConstant(d, "SL_TOP",SWIG_From_int(static_cast< int >(wxSL_TOP)));
48630 SWIG_Python_SetConstant(d, "SL_RIGHT",SWIG_From_int(static_cast< int >(wxSL_RIGHT)));
48631 SWIG_Python_SetConstant(d, "SL_BOTTOM",SWIG_From_int(static_cast< int >(wxSL_BOTTOM)));
48632 SWIG_Python_SetConstant(d, "SL_BOTH",SWIG_From_int(static_cast< int >(wxSL_BOTH)));
48633 SWIG_Python_SetConstant(d, "SL_SELRANGE",SWIG_From_int(static_cast< int >(wxSL_SELRANGE)));
48634 SWIG_Python_SetConstant(d, "SL_INVERSE",SWIG_From_int(static_cast< int >(wxSL_INVERSE)));
48635 SWIG_addvarlink(SWIG_globals(),(char*)"ToggleButtonNameStr",ToggleButtonNameStr_get, ToggleButtonNameStr_set);
48636 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
48637 SWIG_addvarlink(SWIG_globals(),(char*)"NotebookNameStr",NotebookNameStr_get, NotebookNameStr_set);
48638 SWIG_Python_SetConstant(d, "BK_DEFAULT",SWIG_From_int(static_cast< int >(wxBK_DEFAULT)));
48639 SWIG_Python_SetConstant(d, "BK_TOP",SWIG_From_int(static_cast< int >(wxBK_TOP)));
48640 SWIG_Python_SetConstant(d, "BK_BOTTOM",SWIG_From_int(static_cast< int >(wxBK_BOTTOM)));
48641 SWIG_Python_SetConstant(d, "BK_LEFT",SWIG_From_int(static_cast< int >(wxBK_LEFT)));
48642 SWIG_Python_SetConstant(d, "BK_RIGHT",SWIG_From_int(static_cast< int >(wxBK_RIGHT)));
48643 SWIG_Python_SetConstant(d, "BK_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBK_ALIGN_MASK)));
e9d6f3a4 48644 SWIG_Python_SetConstant(d, "BK_BUTTONBAR",SWIG_From_int(static_cast< int >(wxBK_BUTTONBAR)));
110fa173
RD
48645 SWIG_Python_SetConstant(d, "BK_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_NOWHERE)));
48646 SWIG_Python_SetConstant(d, "BK_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONICON)));
48647 SWIG_Python_SetConstant(d, "BK_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONLABEL)));
48648 SWIG_Python_SetConstant(d, "BK_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONITEM)));
48649 SWIG_Python_SetConstant(d, "BK_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONPAGE)));
0085ce49
RD
48650 SWIG_Python_SetConstant(d, "NB_FIXEDWIDTH",SWIG_From_int(static_cast< int >(wxNB_FIXEDWIDTH)));
48651 SWIG_Python_SetConstant(d, "NB_TOP",SWIG_From_int(static_cast< int >(wxNB_TOP)));
48652 SWIG_Python_SetConstant(d, "NB_LEFT",SWIG_From_int(static_cast< int >(wxNB_LEFT)));
48653 SWIG_Python_SetConstant(d, "NB_RIGHT",SWIG_From_int(static_cast< int >(wxNB_RIGHT)));
48654 SWIG_Python_SetConstant(d, "NB_BOTTOM",SWIG_From_int(static_cast< int >(wxNB_BOTTOM)));
48655 SWIG_Python_SetConstant(d, "NB_MULTILINE",SWIG_From_int(static_cast< int >(wxNB_MULTILINE)));
48656 SWIG_Python_SetConstant(d, "NB_NOPAGETHEME",SWIG_From_int(static_cast< int >(wxNB_NOPAGETHEME)));
48657 SWIG_Python_SetConstant(d, "NB_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_NOWHERE)));
48658 SWIG_Python_SetConstant(d, "NB_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONICON)));
48659 SWIG_Python_SetConstant(d, "NB_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONLABEL)));
48660 SWIG_Python_SetConstant(d, "NB_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONITEM)));
b02396e8 48661 SWIG_Python_SetConstant(d, "NB_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONPAGE)));
0085ce49
RD
48662 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
48663 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
48664 SWIG_Python_SetConstant(d, "LB_DEFAULT",SWIG_From_int(static_cast< int >(wxLB_DEFAULT)));
48665 SWIG_Python_SetConstant(d, "LB_TOP",SWIG_From_int(static_cast< int >(wxLB_TOP)));
48666 SWIG_Python_SetConstant(d, "LB_BOTTOM",SWIG_From_int(static_cast< int >(wxLB_BOTTOM)));
48667 SWIG_Python_SetConstant(d, "LB_LEFT",SWIG_From_int(static_cast< int >(wxLB_LEFT)));
48668 SWIG_Python_SetConstant(d, "LB_RIGHT",SWIG_From_int(static_cast< int >(wxLB_RIGHT)));
48669 SWIG_Python_SetConstant(d, "LB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxLB_ALIGN_MASK)));
48670 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
48671 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
48672 SWIG_Python_SetConstant(d, "CHB_DEFAULT",SWIG_From_int(static_cast< int >(wxCHB_DEFAULT)));
48673 SWIG_Python_SetConstant(d, "CHB_TOP",SWIG_From_int(static_cast< int >(wxCHB_TOP)));
48674 SWIG_Python_SetConstant(d, "CHB_BOTTOM",SWIG_From_int(static_cast< int >(wxCHB_BOTTOM)));
48675 SWIG_Python_SetConstant(d, "CHB_LEFT",SWIG_From_int(static_cast< int >(wxCHB_LEFT)));
48676 SWIG_Python_SetConstant(d, "CHB_RIGHT",SWIG_From_int(static_cast< int >(wxCHB_RIGHT)));
48677 SWIG_Python_SetConstant(d, "CHB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxCHB_ALIGN_MASK)));
48678 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED));
48679 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING));
48680 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED));
48681 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING));
48682 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED));
48683 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED));
48684 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED));
48685 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING));
48686 SWIG_Python_SetConstant(d, "TOOL_STYLE_BUTTON",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_BUTTON)));
48687 SWIG_Python_SetConstant(d, "TOOL_STYLE_SEPARATOR",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_SEPARATOR)));
48688 SWIG_Python_SetConstant(d, "TOOL_STYLE_CONTROL",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_CONTROL)));
48689 SWIG_Python_SetConstant(d, "TB_HORIZONTAL",SWIG_From_int(static_cast< int >(wxTB_HORIZONTAL)));
48690 SWIG_Python_SetConstant(d, "TB_VERTICAL",SWIG_From_int(static_cast< int >(wxTB_VERTICAL)));
48691 SWIG_Python_SetConstant(d, "TB_3DBUTTONS",SWIG_From_int(static_cast< int >(wxTB_3DBUTTONS)));
48692 SWIG_Python_SetConstant(d, "TB_FLAT",SWIG_From_int(static_cast< int >(wxTB_FLAT)));
48693 SWIG_Python_SetConstant(d, "TB_DOCKABLE",SWIG_From_int(static_cast< int >(wxTB_DOCKABLE)));
48694 SWIG_Python_SetConstant(d, "TB_NOICONS",SWIG_From_int(static_cast< int >(wxTB_NOICONS)));
48695 SWIG_Python_SetConstant(d, "TB_TEXT",SWIG_From_int(static_cast< int >(wxTB_TEXT)));
48696 SWIG_Python_SetConstant(d, "TB_NODIVIDER",SWIG_From_int(static_cast< int >(wxTB_NODIVIDER)));
48697 SWIG_Python_SetConstant(d, "TB_NOALIGN",SWIG_From_int(static_cast< int >(wxTB_NOALIGN)));
48698 SWIG_Python_SetConstant(d, "TB_HORZ_LAYOUT",SWIG_From_int(static_cast< int >(wxTB_HORZ_LAYOUT)));
48699 SWIG_Python_SetConstant(d, "TB_HORZ_TEXT",SWIG_From_int(static_cast< int >(wxTB_HORZ_TEXT)));
704eda0c 48700 SWIG_Python_SetConstant(d, "TB_NO_TOOLTIPS",SWIG_From_int(static_cast< int >(wxTB_NO_TOOLTIPS)));
0085ce49
RD
48701 SWIG_addvarlink(SWIG_globals(),(char*)"ListCtrlNameStr",ListCtrlNameStr_get, ListCtrlNameStr_set);
48702 SWIG_Python_SetConstant(d, "LC_VRULES",SWIG_From_int(static_cast< int >(wxLC_VRULES)));
48703 SWIG_Python_SetConstant(d, "LC_HRULES",SWIG_From_int(static_cast< int >(wxLC_HRULES)));
48704 SWIG_Python_SetConstant(d, "LC_ICON",SWIG_From_int(static_cast< int >(wxLC_ICON)));
48705 SWIG_Python_SetConstant(d, "LC_SMALL_ICON",SWIG_From_int(static_cast< int >(wxLC_SMALL_ICON)));
48706 SWIG_Python_SetConstant(d, "LC_LIST",SWIG_From_int(static_cast< int >(wxLC_LIST)));
48707 SWIG_Python_SetConstant(d, "LC_REPORT",SWIG_From_int(static_cast< int >(wxLC_REPORT)));
48708 SWIG_Python_SetConstant(d, "LC_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLC_ALIGN_TOP)));
48709 SWIG_Python_SetConstant(d, "LC_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLC_ALIGN_LEFT)));
48710 SWIG_Python_SetConstant(d, "LC_AUTOARRANGE",SWIG_From_int(static_cast< int >(wxLC_AUTOARRANGE)));
48711 SWIG_Python_SetConstant(d, "LC_VIRTUAL",SWIG_From_int(static_cast< int >(wxLC_VIRTUAL)));
48712 SWIG_Python_SetConstant(d, "LC_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxLC_EDIT_LABELS)));
48713 SWIG_Python_SetConstant(d, "LC_NO_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_HEADER)));
48714 SWIG_Python_SetConstant(d, "LC_NO_SORT_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_SORT_HEADER)));
48715 SWIG_Python_SetConstant(d, "LC_SINGLE_SEL",SWIG_From_int(static_cast< int >(wxLC_SINGLE_SEL)));
48716 SWIG_Python_SetConstant(d, "LC_SORT_ASCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_ASCENDING)));
48717 SWIG_Python_SetConstant(d, "LC_SORT_DESCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_DESCENDING)));
48718 SWIG_Python_SetConstant(d, "LC_MASK_TYPE",SWIG_From_int(static_cast< int >(wxLC_MASK_TYPE)));
48719 SWIG_Python_SetConstant(d, "LC_MASK_ALIGN",SWIG_From_int(static_cast< int >(wxLC_MASK_ALIGN)));
48720 SWIG_Python_SetConstant(d, "LC_MASK_SORT",SWIG_From_int(static_cast< int >(wxLC_MASK_SORT)));
48721 SWIG_Python_SetConstant(d, "LIST_MASK_STATE",SWIG_From_int(static_cast< int >(wxLIST_MASK_STATE)));
48722 SWIG_Python_SetConstant(d, "LIST_MASK_TEXT",SWIG_From_int(static_cast< int >(wxLIST_MASK_TEXT)));
48723 SWIG_Python_SetConstant(d, "LIST_MASK_IMAGE",SWIG_From_int(static_cast< int >(wxLIST_MASK_IMAGE)));
48724 SWIG_Python_SetConstant(d, "LIST_MASK_DATA",SWIG_From_int(static_cast< int >(wxLIST_MASK_DATA)));
48725 SWIG_Python_SetConstant(d, "LIST_SET_ITEM",SWIG_From_int(static_cast< int >(wxLIST_SET_ITEM)));
48726 SWIG_Python_SetConstant(d, "LIST_MASK_WIDTH",SWIG_From_int(static_cast< int >(wxLIST_MASK_WIDTH)));
48727 SWIG_Python_SetConstant(d, "LIST_MASK_FORMAT",SWIG_From_int(static_cast< int >(wxLIST_MASK_FORMAT)));
48728 SWIG_Python_SetConstant(d, "LIST_STATE_DONTCARE",SWIG_From_int(static_cast< int >(wxLIST_STATE_DONTCARE)));
48729 SWIG_Python_SetConstant(d, "LIST_STATE_DROPHILITED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DROPHILITED)));
48730 SWIG_Python_SetConstant(d, "LIST_STATE_FOCUSED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FOCUSED)));
48731 SWIG_Python_SetConstant(d, "LIST_STATE_SELECTED",SWIG_From_int(static_cast< int >(wxLIST_STATE_SELECTED)));
48732 SWIG_Python_SetConstant(d, "LIST_STATE_CUT",SWIG_From_int(static_cast< int >(wxLIST_STATE_CUT)));
48733 SWIG_Python_SetConstant(d, "LIST_STATE_DISABLED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DISABLED)));
48734 SWIG_Python_SetConstant(d, "LIST_STATE_FILTERED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FILTERED)));
48735 SWIG_Python_SetConstant(d, "LIST_STATE_INUSE",SWIG_From_int(static_cast< int >(wxLIST_STATE_INUSE)));
48736 SWIG_Python_SetConstant(d, "LIST_STATE_PICKED",SWIG_From_int(static_cast< int >(wxLIST_STATE_PICKED)));
48737 SWIG_Python_SetConstant(d, "LIST_STATE_SOURCE",SWIG_From_int(static_cast< int >(wxLIST_STATE_SOURCE)));
48738 SWIG_Python_SetConstant(d, "LIST_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ABOVE)));
48739 SWIG_Python_SetConstant(d, "LIST_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_BELOW)));
48740 SWIG_Python_SetConstant(d, "LIST_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_NOWHERE)));
48741 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMICON)));
48742 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMLABEL)));
48743 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMRIGHT)));
48744 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMSTATEICON)));
48745 SWIG_Python_SetConstant(d, "LIST_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TOLEFT)));
48746 SWIG_Python_SetConstant(d, "LIST_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TORIGHT)));
48747 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEM)));
704eda0c 48748 SWIG_Python_SetConstant(d, "LIST_GETSUBITEMRECT_WHOLEITEM",SWIG_From_int(static_cast< int >(wxLIST_GETSUBITEMRECT_WHOLEITEM)));
0085ce49
RD
48749 SWIG_Python_SetConstant(d, "LIST_NEXT_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ABOVE)));
48750 SWIG_Python_SetConstant(d, "LIST_NEXT_ALL",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ALL)));
48751 SWIG_Python_SetConstant(d, "LIST_NEXT_BELOW",SWIG_From_int(static_cast< int >(wxLIST_NEXT_BELOW)));
48752 SWIG_Python_SetConstant(d, "LIST_NEXT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_LEFT)));
48753 SWIG_Python_SetConstant(d, "LIST_NEXT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_RIGHT)));
48754 SWIG_Python_SetConstant(d, "LIST_ALIGN_DEFAULT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_DEFAULT)));
48755 SWIG_Python_SetConstant(d, "LIST_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_LEFT)));
48756 SWIG_Python_SetConstant(d, "LIST_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_TOP)));
48757 SWIG_Python_SetConstant(d, "LIST_ALIGN_SNAP_TO_GRID",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_SNAP_TO_GRID)));
48758 SWIG_Python_SetConstant(d, "LIST_FORMAT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_LEFT)));
48759 SWIG_Python_SetConstant(d, "LIST_FORMAT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_RIGHT)));
48760 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTRE",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTRE)));
48761 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTER",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTER)));
48762 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE)));
48763 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE_USEHEADER",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE_USEHEADER)));
48764 SWIG_Python_SetConstant(d, "LIST_RECT_BOUNDS",SWIG_From_int(static_cast< int >(wxLIST_RECT_BOUNDS)));
48765 SWIG_Python_SetConstant(d, "LIST_RECT_ICON",SWIG_From_int(static_cast< int >(wxLIST_RECT_ICON)));
48766 SWIG_Python_SetConstant(d, "LIST_RECT_LABEL",SWIG_From_int(static_cast< int >(wxLIST_RECT_LABEL)));
48767 SWIG_Python_SetConstant(d, "LIST_FIND_UP",SWIG_From_int(static_cast< int >(wxLIST_FIND_UP)));
48768 SWIG_Python_SetConstant(d, "LIST_FIND_DOWN",SWIG_From_int(static_cast< int >(wxLIST_FIND_DOWN)));
48769 SWIG_Python_SetConstant(d, "LIST_FIND_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FIND_LEFT)));
48770 SWIG_Python_SetConstant(d, "LIST_FIND_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FIND_RIGHT)));
48771 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
48772 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
48773 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
48774 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
48775 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
48776 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
48777 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
48778 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
48779 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
48780 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
48781 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
48782 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
48783 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
48784 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
48785 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
48786 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
48787 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
48788 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
48789 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
48790 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
48791
48792 // Map renamed classes back to their common name for OOR
48793 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
48794
48795 SWIG_addvarlink(SWIG_globals(),(char*)"TreeCtrlNameStr",TreeCtrlNameStr_get, TreeCtrlNameStr_set);
48796 SWIG_Python_SetConstant(d, "TR_NO_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_NO_BUTTONS)));
48797 SWIG_Python_SetConstant(d, "TR_HAS_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_HAS_BUTTONS)));
48798 SWIG_Python_SetConstant(d, "TR_NO_LINES",SWIG_From_int(static_cast< int >(wxTR_NO_LINES)));
48799 SWIG_Python_SetConstant(d, "TR_LINES_AT_ROOT",SWIG_From_int(static_cast< int >(wxTR_LINES_AT_ROOT)));
48800 SWIG_Python_SetConstant(d, "TR_SINGLE",SWIG_From_int(static_cast< int >(wxTR_SINGLE)));
48801 SWIG_Python_SetConstant(d, "TR_MULTIPLE",SWIG_From_int(static_cast< int >(wxTR_MULTIPLE)));
48802 SWIG_Python_SetConstant(d, "TR_EXTENDED",SWIG_From_int(static_cast< int >(wxTR_EXTENDED)));
48803 SWIG_Python_SetConstant(d, "TR_HAS_VARIABLE_ROW_HEIGHT",SWIG_From_int(static_cast< int >(wxTR_HAS_VARIABLE_ROW_HEIGHT)));
48804 SWIG_Python_SetConstant(d, "TR_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxTR_EDIT_LABELS)));
48805 SWIG_Python_SetConstant(d, "TR_HIDE_ROOT",SWIG_From_int(static_cast< int >(wxTR_HIDE_ROOT)));
48806 SWIG_Python_SetConstant(d, "TR_ROW_LINES",SWIG_From_int(static_cast< int >(wxTR_ROW_LINES)));
48807 SWIG_Python_SetConstant(d, "TR_FULL_ROW_HIGHLIGHT",SWIG_From_int(static_cast< int >(wxTR_FULL_ROW_HIGHLIGHT)));
48808 SWIG_Python_SetConstant(d, "TR_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxTR_DEFAULT_STYLE)));
48809 SWIG_Python_SetConstant(d, "TR_TWIST_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_TWIST_BUTTONS)));
0085ce49
RD
48810 SWIG_Python_SetConstant(d, "TreeItemIcon_Normal",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Normal)));
48811 SWIG_Python_SetConstant(d, "TreeItemIcon_Selected",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Selected)));
48812 SWIG_Python_SetConstant(d, "TreeItemIcon_Expanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Expanded)));
48813 SWIG_Python_SetConstant(d, "TreeItemIcon_SelectedExpanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_SelectedExpanded)));
48814 SWIG_Python_SetConstant(d, "TreeItemIcon_Max",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Max)));
48815 SWIG_Python_SetConstant(d, "TREE_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ABOVE)));
48816 SWIG_Python_SetConstant(d, "TREE_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_BELOW)));
48817 SWIG_Python_SetConstant(d, "TREE_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_NOWHERE)));
48818 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMBUTTON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMBUTTON)));
48819 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMICON)));
48820 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMINDENT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMINDENT)));
48821 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLABEL)));
48822 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMRIGHT)));
48823 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMSTATEICON)));
48824 SWIG_Python_SetConstant(d, "TREE_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TOLEFT)));
48825 SWIG_Python_SetConstant(d, "TREE_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TORIGHT)));
48826 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMUPPERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMUPPERPART)));
48827 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLOWERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLOWERPART)));
48828 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEM)));
48829 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
48830 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
48831 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
48832 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
48833 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
48834 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
48835 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
48836 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
48837 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
48838 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
48839 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
48840 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
48841 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
48842 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
48843 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
48844 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
48845 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
48846 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
48847 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
48848 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
48849 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU));
b02396e8 48850 SWIG_addvarlink(SWIG_globals(),(char*)"NullTreeItemId",NullTreeItemId_get, NullTreeItemId_set);
0085ce49
RD
48851
48852 // Map renamed classes back to their common name for OOR
48853 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
48854 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
48855
48856 SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogDefaultFolderStr",DirDialogDefaultFolderStr_get, DirDialogDefaultFolderStr_set);
48857 SWIG_Python_SetConstant(d, "DIRCTRL_DIR_ONLY",SWIG_From_int(static_cast< int >(wxDIRCTRL_DIR_ONLY)));
48858 SWIG_Python_SetConstant(d, "DIRCTRL_SELECT_FIRST",SWIG_From_int(static_cast< int >(wxDIRCTRL_SELECT_FIRST)));
48859 SWIG_Python_SetConstant(d, "DIRCTRL_SHOW_FILTERS",SWIG_From_int(static_cast< int >(wxDIRCTRL_SHOW_FILTERS)));
48860 SWIG_Python_SetConstant(d, "DIRCTRL_3D_INTERNAL",SWIG_From_int(static_cast< int >(wxDIRCTRL_3D_INTERNAL)));
48861 SWIG_Python_SetConstant(d, "DIRCTRL_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxDIRCTRL_EDIT_LABELS)));
48862 SWIG_Python_SetConstant(d, "FRAME_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxFRAME_EX_CONTEXTHELP)));
48863 SWIG_Python_SetConstant(d, "DIALOG_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxDIALOG_EX_CONTEXTHELP)));
48864 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
48865 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
704eda0c
RD
48866 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Unknown",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Unknown)));
48867 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Keyboard",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Keyboard)));
48868 SWIG_Python_SetConstant(d, "HelpEvent_Origin_HelpButton",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_HelpButton)));
0085ce49
RD
48869
48870 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
48871
48872 SWIG_addvarlink(SWIG_globals(),(char*)"DatePickerCtrlNameStr",DatePickerCtrlNameStr_get, DatePickerCtrlNameStr_set);
48873 SWIG_Python_SetConstant(d, "DP_DEFAULT",SWIG_From_int(static_cast< int >(wxDP_DEFAULT)));
48874 SWIG_Python_SetConstant(d, "DP_SPIN",SWIG_From_int(static_cast< int >(wxDP_SPIN)));
48875 SWIG_Python_SetConstant(d, "DP_DROPDOWN",SWIG_From_int(static_cast< int >(wxDP_DROPDOWN)));
48876 SWIG_Python_SetConstant(d, "DP_SHOWCENTURY",SWIG_From_int(static_cast< int >(wxDP_SHOWCENTURY)));
48877 SWIG_Python_SetConstant(d, "DP_ALLOWNONE",SWIG_From_int(static_cast< int >(wxDP_ALLOWNONE)));
704eda0c
RD
48878 SWIG_addvarlink(SWIG_globals(),(char*)"HyperlinkCtrlNameStr",HyperlinkCtrlNameStr_get, HyperlinkCtrlNameStr_set);
48879 SWIG_Python_SetConstant(d, "HL_CONTEXTMENU",SWIG_From_int(static_cast< int >(wxHL_CONTEXTMENU)));
48880 SWIG_Python_SetConstant(d, "HL_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxHL_DEFAULT_STYLE)));
48881 PyDict_SetItemString(d, "wxEVT_COMMAND_HYPERLINK", PyInt_FromLong(wxEVT_COMMAND_HYPERLINK));
b850e7f3
RD
48882 SWIG_Python_SetConstant(d, "PB_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxPB_USE_TEXTCTRL)));
48883 SWIG_addvarlink(SWIG_globals(),(char*)"ColourPickerCtrlNameStr",ColourPickerCtrlNameStr_get, ColourPickerCtrlNameStr_set);
48884 SWIG_Python_SetConstant(d, "CLRP_SHOW_LABEL",SWIG_From_int(static_cast< int >(wxCLRP_SHOW_LABEL)));
48885 SWIG_Python_SetConstant(d, "CLRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxCLRP_USE_TEXTCTRL)));
48886 SWIG_Python_SetConstant(d, "CLRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCLRP_DEFAULT_STYLE)));
48887 PyDict_SetItemString(d, "wxEVT_COMMAND_COLOURPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLOURPICKER_CHANGED));
48888 SWIG_addvarlink(SWIG_globals(),(char*)"FilePickerCtrlNameStr",FilePickerCtrlNameStr_get, FilePickerCtrlNameStr_set);
48889 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorPromptStr",FileSelectorPromptStr_get, FileSelectorPromptStr_set);
48890 SWIG_addvarlink(SWIG_globals(),(char*)"DirPickerCtrlNameStr",DirPickerCtrlNameStr_get, DirPickerCtrlNameStr_set);
48891 SWIG_addvarlink(SWIG_globals(),(char*)"DirSelectorPromptStr",DirSelectorPromptStr_get, DirSelectorPromptStr_set);
48892 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorDefaultWildcardStr",FileSelectorDefaultWildcardStr_get, FileSelectorDefaultWildcardStr_set);
48893 SWIG_Python_SetConstant(d, "FLP_OPEN",SWIG_From_int(static_cast< int >(wxFLP_OPEN)));
48894 SWIG_Python_SetConstant(d, "FLP_SAVE",SWIG_From_int(static_cast< int >(wxFLP_SAVE)));
48895 SWIG_Python_SetConstant(d, "FLP_OVERWRITE_PROMPT",SWIG_From_int(static_cast< int >(wxFLP_OVERWRITE_PROMPT)));
48896 SWIG_Python_SetConstant(d, "FLP_FILE_MUST_EXIST",SWIG_From_int(static_cast< int >(wxFLP_FILE_MUST_EXIST)));
48897 SWIG_Python_SetConstant(d, "FLP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxFLP_CHANGE_DIR)));
48898 SWIG_Python_SetConstant(d, "DIRP_DIR_MUST_EXIST",SWIG_From_int(static_cast< int >(wxDIRP_DIR_MUST_EXIST)));
48899 SWIG_Python_SetConstant(d, "DIRP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxDIRP_CHANGE_DIR)));
48900 SWIG_Python_SetConstant(d, "FLP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFLP_USE_TEXTCTRL)));
48901 SWIG_Python_SetConstant(d, "FLP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFLP_DEFAULT_STYLE)));
48902 SWIG_Python_SetConstant(d, "DIRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxDIRP_USE_TEXTCTRL)));
48903 SWIG_Python_SetConstant(d, "DIRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxDIRP_DEFAULT_STYLE)));
48904 PyDict_SetItemString(d, "wxEVT_COMMAND_FILEPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FILEPICKER_CHANGED));
48905 PyDict_SetItemString(d, "wxEVT_COMMAND_DIRPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_DIRPICKER_CHANGED));
48906 SWIG_addvarlink(SWIG_globals(),(char*)"FontPickerCtrlNameStr",FontPickerCtrlNameStr_get, FontPickerCtrlNameStr_set);
48907 SWIG_Python_SetConstant(d, "FNTP_FONTDESC_AS_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_FONTDESC_AS_LABEL)));
48908 SWIG_Python_SetConstant(d, "FNTP_USEFONT_FOR_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_USEFONT_FOR_LABEL)));
48909 SWIG_Python_SetConstant(d, "FNTP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFNTP_USE_TEXTCTRL)));
48910 SWIG_Python_SetConstant(d, "FNTP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFNTP_DEFAULT_STYLE)));
48911 PyDict_SetItemString(d, "wxEVT_COMMAND_FONTPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FONTPICKER_CHANGED));
d14a1e28
RD
48912}
48913